1#! /bin/sh 2# From configure.in Revision: 1.12 . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by Autoconf 2.52.20210509. 5# 6# Copyright 2003-2020,2021 Thomas E. Dickey 7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 8# Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11 12# Avoid depending upon Character Ranges. 13as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16as_cr_digits='0123456789' 17as_cr_alnum=$as_cr_Letters$as_cr_digits 18 19# Sed expression to map a string onto a valid variable name. 20as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 21 22# Sed expression to map a string onto a valid CPP name. 23as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 24 25# Be Bourne compatible 26if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 27 emulate sh 28 NULLCMD=: 29elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 30 set -o posix 31fi 32 33# Name of the executable. 34as_me=`echo "$0" |sed 's,.*[\\/],,'` 35 36if expr a : '\(a\)' >/dev/null 2>&1; then 37 as_expr=expr 38else 39 as_expr=false 40fi 41 42rm -f conf$$ conf$$.exe conf$$.file 43echo >conf$$.file 44if ln -s conf$$.file conf$$ 2>/dev/null; then 45 # We could just check for DJGPP; but this test a) works b) is more generic 46 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 47 if test -f conf$$.exe; then 48 # Don't use ln at all; we don't have any links 49 as_ln_s='cp -p' 50 else 51 as_ln_s='ln -s' 52 fi 53elif ln conf$$.file conf$$ 2>/dev/null; then 54 as_ln_s=ln 55else 56 as_ln_s='cp -p' 57fi 58rm -f conf$$ conf$$.exe conf$$.file 59 60as_executable_p="test -f" 61 62# Support unset when possible. 63if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 64 as_unset="unset" 65else 66 as_unset="false" 67fi 68 69# NLS nuisances. 70$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 71$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 72$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 73$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 74$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 75$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 76$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 77$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 78 79# IFS 80# We need space, tab and new line, in precisely that order. 81as_nl=' 82' 83IFS=" $as_nl" 84 85# CDPATH. 86$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 87 88# Name of the host. 89# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 90# so uname gets run too. 91ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 92 93exec 6>&1 94 95# 96# Initializations. 97# 98ac_default_prefix=/usr/local 99cross_compiling=no 100subdirs= 101MFLAGS= 102MAKEFLAGS= 103SHELL=${CONFIG_SHELL-/bin/sh} 104 105# Maximum number of lines to put in a shell here document. 106# This variable seems obsolete. It should probably be removed, and 107# only ac_max_sed_lines should be used. 108: "${ac_max_here_lines=38}" 109 110ac_unique_file="initscan.c" 111# Factoring default headers for most tests. 112ac_includes_default="\ 113#include <stdio.h> 114#if HAVE_SYS_TYPES_H 115# include <sys/types.h> 116#endif 117#if HAVE_SYS_STAT_H 118# include <sys/stat.h> 119#endif 120#if STDC_HEADERS 121# include <stdlib.h> 122# include <stddef.h> 123#else 124# if HAVE_STDLIB_H 125# include <stdlib.h> 126# endif 127#endif 128#if HAVE_STRING_H 129# if !STDC_HEADERS && HAVE_MEMORY_H 130# include <memory.h> 131# endif 132# include <string.h> 133#endif 134#if HAVE_STRINGS_H 135# include <strings.h> 136#endif 137#if HAVE_INTTYPES_H 138# include <inttypes.h> 139#else 140# if HAVE_STDINT_H 141# include <stdint.h> 142# endif 143#endif 144#if HAVE_UNISTD_H 145# include <unistd.h> 146#endif" 147 148# Initialize some variables set by options. 149ac_init_help= 150ac_init_version=false 151# The variables have the same names as the options, with 152# dashes changed to underlines. 153cache_file=/dev/null 154exec_prefix=NONE 155no_create= 156no_recursion= 157prefix=NONE 158program_prefix=NONE 159program_suffix=NONE 160program_transform_name=s,x,x, 161silent= 162site= 163srcdir= 164verbose= 165x_includes=NONE 166x_libraries=NONE 167 168# Installation directory options. 169# These are left unexpanded so users can "make install exec_prefix=/foo" 170# and all the variables that are supposed to be based on exec_prefix 171# by default will actually change. 172# Use braces instead of parens because sh, perl, etc. also accept them. 173bindir='${exec_prefix}/bin' 174sbindir='${exec_prefix}/sbin' 175libexecdir='${exec_prefix}/libexec' 176datarootdir='${prefix}/share' 177datadir='${datarootdir}' 178sysconfdir='${prefix}/etc' 179sharedstatedir='${prefix}/com' 180localstatedir='${prefix}/var' 181runstatedir='${localstatedir}/run' 182libdir='${exec_prefix}/lib' 183includedir='${prefix}/include' 184oldincludedir='/usr/include' 185infodir='${datarootdir}/info' 186mandir='${datarootdir}/man' 187 188# Identity of this package. 189PACKAGE_NAME= 190PACKAGE_TARNAME= 191PACKAGE_VERSION= 192PACKAGE_STRING= 193PACKAGE_BUGREPORT= 194 195ac_prev= 196for ac_option 197do 198 # If the previous option needs an argument, assign it. 199 if test -n "$ac_prev"; then 200 eval "$ac_prev=\$ac_option" 201 ac_prev= 202 continue 203 fi 204 205 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 206 207 # Accept the important Cygnus configure options, so we can diagnose typos. 208 209 case "$ac_option" in 210 211 -bindir | --bindir | --bindi | --bind | --bin | --bi) 212 ac_prev=bindir ;; 213 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 214 bindir=$ac_optarg ;; 215 216 -build | --build | --buil | --bui | --bu) 217 ac_prev=build_alias ;; 218 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 219 build_alias=$ac_optarg ;; 220 221 -cache-file | --cache-file | --cache-fil | --cache-fi \ 222 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 223 ac_prev=cache_file ;; 224 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 225 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 226 cache_file=$ac_optarg ;; 227 228 --config-cache | -C) 229 cache_file=config.cache ;; 230 231 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 232 ac_prev=datadir ;; 233 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 234 | --da=*) 235 datadir=$ac_optarg ;; 236 237 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 238 | --dataroo | --dataro | --datar) 239 ac_prev=datarootdir ;; 240 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 241 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 242 datarootdir=$ac_optarg ;; 243 244 -disable-* | --disable-*) 245 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 246 # Reject names that are not valid shell variable names. 247 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 248 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 249 { (exit 1); exit 1; }; } 250 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'` 251 eval "enable_$ac_feature=no" ;; 252 253 -enable-* | --enable-*) 254 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 255 # Reject names that are not valid shell variable names. 256 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 257 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 258 { (exit 1); exit 1; }; } 259 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'` 260 case "$ac_option" in 261 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 262 *) ac_optarg=yes ;; 263 esac 264 eval "enable_$ac_feature='$ac_optarg'" ;; 265 266 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 267 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 268 | --exec | --exe | --ex) 269 ac_prev=exec_prefix ;; 270 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 271 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 272 | --exec=* | --exe=* | --ex=*) 273 exec_prefix=$ac_optarg ;; 274 275 -gas | --gas | --ga | --g) 276 # Obsolete; use --with-gas. 277 with_gas=yes ;; 278 279 -help | --help | --hel | --he | -h) 280 ac_init_help=long ;; 281 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 282 ac_init_help=recursive ;; 283 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 284 ac_init_help=short ;; 285 286 -host | --host | --hos | --ho) 287 ac_prev=host_alias ;; 288 -host=* | --host=* | --hos=* | --ho=*) 289 host_alias=$ac_optarg ;; 290 291 -includedir | --includedir | --includedi | --included | --include \ 292 | --includ | --inclu | --incl | --inc) 293 ac_prev=includedir ;; 294 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 295 | --includ=* | --inclu=* | --incl=* | --inc=*) 296 includedir=$ac_optarg ;; 297 298 -infodir | --infodir | --infodi | --infod | --info | --inf) 299 ac_prev=infodir ;; 300 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 301 infodir=$ac_optarg ;; 302 303 -libdir | --libdir | --libdi | --libd) 304 ac_prev=libdir ;; 305 -libdir=* | --libdir=* | --libdi=* | --libd=*) 306 libdir=$ac_optarg ;; 307 308 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 309 | --libexe | --libex | --libe) 310 ac_prev=libexecdir ;; 311 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 312 | --libexe=* | --libex=* | --libe=*) 313 libexecdir=$ac_optarg ;; 314 315 -localstatedir | --localstatedir | --localstatedi | --localstated \ 316 | --localstate | --localstat | --localsta | --localst \ 317 | --locals | --local | --loca | --loc | --lo) 318 ac_prev=localstatedir ;; 319 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 320 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 321 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 322 localstatedir=$ac_optarg ;; 323 324 -runstatedir | --runstatedir | --runstatedi | --runstated \ 325 | --runstate | --runstat | --runsta | --runst \ 326 | --runs | --run | --ru) 327 ac_prev=runstatedir ;; 328 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 329 | --runstate=* | --runstat=* | --runsta=* | --runst=* \ 330 | --runs=* | --run=* | --ru=*) 331 runstatedir=$ac_optarg ;; 332 333 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 334 ac_prev=mandir ;; 335 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 336 mandir=$ac_optarg ;; 337 338 -nfp | --nfp | --nf) 339 # Obsolete; use --without-fp. 340 with_fp=no ;; 341 342 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 343 | --no-cr | --no-c) 344 no_create=yes ;; 345 346 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 347 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 348 no_recursion=yes ;; 349 350 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 351 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 352 | --oldin | --oldi | --old | --ol | --o) 353 ac_prev=oldincludedir ;; 354 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 355 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 356 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 357 oldincludedir=$ac_optarg ;; 358 359 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 360 ac_prev=prefix ;; 361 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 362 prefix=$ac_optarg ;; 363 364 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 365 | --program-pre | --program-pr | --program-p) 366 ac_prev=program_prefix ;; 367 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 368 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 369 program_prefix=$ac_optarg ;; 370 371 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 372 | --program-suf | --program-su | --program-s) 373 ac_prev=program_suffix ;; 374 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 375 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 376 program_suffix=$ac_optarg ;; 377 378 -program-transform-name | --program-transform-name \ 379 | --program-transform-nam | --program-transform-na \ 380 | --program-transform-n | --program-transform- \ 381 | --program-transform | --program-transfor \ 382 | --program-transfo | --program-transf \ 383 | --program-trans | --program-tran \ 384 | --progr-tra | --program-tr | --program-t) 385 ac_prev=program_transform_name ;; 386 -program-transform-name=* | --program-transform-name=* \ 387 | --program-transform-nam=* | --program-transform-na=* \ 388 | --program-transform-n=* | --program-transform-=* \ 389 | --program-transform=* | --program-transfor=* \ 390 | --program-transfo=* | --program-transf=* \ 391 | --program-trans=* | --program-tran=* \ 392 | --progr-tra=* | --program-tr=* | --program-t=*) 393 program_transform_name=$ac_optarg ;; 394 395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 396 | -silent | --silent | --silen | --sile | --sil) 397 silent=yes ;; 398 399 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 400 ac_prev=sbindir ;; 401 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 402 | --sbi=* | --sb=*) 403 sbindir=$ac_optarg ;; 404 405 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 406 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 407 | --sharedst | --shareds | --shared | --share | --shar \ 408 | --sha | --sh) 409 ac_prev=sharedstatedir ;; 410 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 411 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 412 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 413 | --sha=* | --sh=*) 414 sharedstatedir=$ac_optarg ;; 415 416 -site | --site | --sit) 417 ac_prev=site ;; 418 -site=* | --site=* | --sit=*) 419 site=$ac_optarg ;; 420 421 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 422 ac_prev=srcdir ;; 423 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 424 srcdir=$ac_optarg ;; 425 426 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 427 | --syscon | --sysco | --sysc | --sys | --sy) 428 ac_prev=sysconfdir ;; 429 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 430 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 431 sysconfdir=$ac_optarg ;; 432 433 -target | --target | --targe | --targ | --tar | --ta | --t) 434 ac_prev=target_alias ;; 435 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 436 target_alias=$ac_optarg ;; 437 438 -v | -verbose | --verbose | --verbos | --verbo | --verb) 439 verbose=yes ;; 440 441 -version | --version | --versio | --versi | --vers | -V) 442 ac_init_version=: ;; 443 444 -with-* | --with-*) 445 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 446 # Reject names that are not valid shell variable names. 447 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 448 { echo "$as_me: error: invalid package name: $ac_package" >&2 449 { (exit 1); exit 1; }; } 450 ac_package=`echo "$ac_package" | sed 's/-/_/g'` 451 case "$ac_option" in 452 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 453 *) ac_optarg=yes ;; 454 esac 455 eval "with_$ac_package='$ac_optarg'" ;; 456 457 -without-* | --without-*) 458 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 459 # Reject names that are not valid shell variable names. 460 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 461 { echo "$as_me: error: invalid package name: $ac_package" >&2 462 { (exit 1); exit 1; }; } 463 ac_package=`echo "$ac_package" | sed 's/-/_/g'` 464 eval "with_$ac_package=no" ;; 465 466 --x) 467 # Obsolete; use --with-x. 468 with_x=yes ;; 469 470 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 471 | --x-incl | --x-inc | --x-in | --x-i) 472 ac_prev=x_includes ;; 473 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 474 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 475 x_includes=$ac_optarg ;; 476 477 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 478 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 479 ac_prev=x_libraries ;; 480 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 481 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 482 x_libraries=$ac_optarg ;; 483 484 -*) { echo "$as_me: error: unrecognized option: $ac_option 485Try \`$0 --help' for more information." >&2 486 { (exit 1); exit 1; }; } 487 ;; 488 489 *=*) 490 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 491 # Reject names that are not valid shell variable names. 492 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 493 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 494 { (exit 1); exit 1; }; } 495 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 496 eval "$ac_envvar='$ac_optarg'" 497 export "$ac_envvar" ;; 498 499 *) 500 # FIXME: should be removed in autoconf 3.0. 501 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 502 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 503 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 504 : "${build_alias=$ac_option}" "${host_alias=$ac_option}" "${target_alias=$ac_option}" 505 ;; 506 507 esac 508done 509 510if test -n "$ac_prev"; then 511 ac_option=--`echo "$ac_prev" | sed 's/_/-/g'` 512 { echo "$as_me: error: missing argument to $ac_option" >&2 513 { (exit 1); exit 1; }; } 514fi 515 516# Be sure to have absolute paths. 517for ac_var in exec_prefix prefix 518do 519 eval ac_val=$`echo "$ac_var"` 520 case "$ac_val" in 521 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 522 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 523 { (exit 1); exit 1; }; };; 524 esac 525done 526 527# Be sure to have absolute paths. 528for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \ 529 localstatedir libdir includedir oldincludedir infodir mandir 530do 531 eval ac_val=$`echo "$ac_var"` 532 case "$ac_val" in 533 [\\/$]* | ?:[\\/]* ) ;; 534 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 535 { (exit 1); exit 1; }; };; 536 esac 537done 538 539# There might be people who depend on the old broken behavior: `$host' 540# used to hold the argument of --host etc. 541build=$build_alias 542host=$host_alias 543target=$target_alias 544 545# FIXME: should be removed in autoconf 3.0. 546if test "x$host_alias" != x; then 547 if test "x$build_alias" = x; then 548 cross_compiling=maybe 549 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 550 If a cross compiler is detected then cross compile mode will be used." >&2 551 elif test "x$build_alias" != "x$host_alias"; then 552 cross_compiling=yes 553 fi 554fi 555 556ac_tool_prefix= 557test -n "$host_alias" && ac_tool_prefix=$host_alias- 558 559test "$silent" = yes && exec 6>/dev/null 560 561# Find the source files, if location was not specified. 562if test -z "$srcdir"; then 563 ac_srcdir_defaulted=yes 564 # Try the directory containing this script, then its parent. 565 ac_prog=$0 566 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` 567 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 568 srcdir=$ac_confdir 569 if test ! -r "$srcdir/$ac_unique_file"; then 570 srcdir=.. 571 fi 572else 573 ac_srcdir_defaulted=no 574fi 575if test ! -r "$srcdir/$ac_unique_file"; then 576 if test "$ac_srcdir_defaulted" = yes; then 577 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 578 { (exit 1); exit 1; }; } 579 else 580 { echo "$as_me: error: cannot find sources in $srcdir" >&2 581 { (exit 1); exit 1; }; } 582 fi 583fi 584srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 585ac_env_build_alias_set=${build_alias+set} 586ac_env_build_alias_value=$build_alias 587ac_cv_env_build_alias_set=${build_alias+set} 588ac_cv_env_build_alias_value=$build_alias 589ac_env_host_alias_set=${host_alias+set} 590ac_env_host_alias_value=$host_alias 591ac_cv_env_host_alias_set=${host_alias+set} 592ac_cv_env_host_alias_value=$host_alias 593ac_env_target_alias_set=${target_alias+set} 594ac_env_target_alias_value=$target_alias 595ac_cv_env_target_alias_set=${target_alias+set} 596ac_cv_env_target_alias_value=$target_alias 597ac_env_CC_set=${CC+set} 598ac_env_CC_value=$CC 599ac_cv_env_CC_set=${CC+set} 600ac_cv_env_CC_value=$CC 601ac_env_CFLAGS_set=${CFLAGS+set} 602ac_env_CFLAGS_value=$CFLAGS 603ac_cv_env_CFLAGS_set=${CFLAGS+set} 604ac_cv_env_CFLAGS_value=$CFLAGS 605ac_env_LDFLAGS_set=${LDFLAGS+set} 606ac_env_LDFLAGS_value=$LDFLAGS 607ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 608ac_cv_env_LDFLAGS_value=$LDFLAGS 609ac_env_CPPFLAGS_set=${CPPFLAGS+set} 610ac_env_CPPFLAGS_value=$CPPFLAGS 611ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 612ac_cv_env_CPPFLAGS_value=$CPPFLAGS 613ac_env_CPP_set=${CPP+set} 614ac_env_CPP_value=$CPP 615ac_cv_env_CPP_set=${CPP+set} 616ac_cv_env_CPP_value=$CPP 617 618# 619# Report the --help message. 620# 621if test "$ac_init_help" = "long"; then 622 # Omit some internal or obsolete options to make the list less imposing. 623 # This message is too long to be a string in the A/UX 3.1 sh. 624 cat <<EOF 625\`configure' configures this package to adapt to many kinds of systems. 626 627Usage: $0 [OPTION]... [VAR=VALUE]... 628 629To assign environment variables (e.g., CC, CFLAGS...), specify them as 630VAR=VALUE. See below for descriptions of some of the useful variables. 631 632Defaults for the options are specified in brackets. 633 634Configuration: 635 -h, --help display this help and exit 636 --help=short display options specific to this package 637 --help=recursive display the short help of all the included packages 638 -V, --version display version information and exit 639 -q, --quiet, --silent do not print \`checking...' messages 640 --cache-file=FILE cache test results in FILE [disabled] 641 -C, --config-cache alias for \`--cache-file=config.cache' 642 -n, --no-create do not create output files 643 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 644 645EOF 646 647 cat <<EOF 648Installation directories: 649 --prefix=PREFIX install architecture-independent files in PREFIX 650 [$ac_default_prefix] 651 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 652 [PREFIX] 653 654By default, \`make install' will install all the files in 655\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 656an installation prefix other than \`$ac_default_prefix' using \`--prefix', 657for instance \`--prefix=\$HOME'. 658 659For better control, use the options below. 660 661Fine tuning of the installation directories: 662 --bindir=DIR user executables [EPREFIX/bin] 663 --sbindir=DIR system admin executables [EPREFIX/sbin] 664 --libexecdir=DIR program executables [EPREFIX/libexec] 665 --datarootdir=DIR read-only architecture-independent data [PREFIX/share] 666 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 667 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 668 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 669 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 670 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run] 671 --libdir=DIR object code libraries [EPREFIX/lib] 672 --includedir=DIR C header files [PREFIX/include] 673 --oldincludedir=DIR C header files for non-gcc [/usr/include] 674 --infodir=DIR info documentation [DATAROOTDIR/info] 675 --mandir=DIR man documentation [DATAROOTDIR/man] 676EOF 677 678 cat <<\EOF 679 680Program names: 681 --program-prefix=PREFIX prepend PREFIX to installed program names 682 --program-suffix=SUFFIX append SUFFIX to installed program names 683 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 684 685System types: 686 --build=BUILD configure for building on BUILD [guessed] 687 --host=HOST build programs to run on HOST [BUILD] 688EOF 689fi 690 691if test -n "$ac_init_help"; then 692 693 cat <<\EOF 694 695Optional Features: 696 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 697 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 698 699Optional Packages: 700 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 701 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 702 703 --disable-echo do not display "compiling" commands 704 --with-warnings test: turn on gcc warnings 705 --enable-stdnoreturn enable C11 _Noreturn feature for diagnostics 706 --with-man2html=XXX use XXX rather than groff 707 708Some influential environment variables: 709 CC C compiler command 710 CFLAGS C compiler flags 711 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 712 nonstandard directory <lib dir> 713 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 714 headers in a nonstandard directory <include dir> 715 CPP C preprocessor 716 717Use these variables to override the choices made by `configure' or to help 718it to find libraries and programs with nonstandard names/locations. 719 720EOF 721fi 722 723if test "$ac_init_help" = "recursive"; then 724 # If there are subdirs, report their specific --help. 725 ac_popdir=`pwd` 726 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 727 cd "$ac_subdir" 728 # A "../" for each directory in /$ac_subdir. 729 ac_dots=`echo "$ac_subdir" | 730 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 731 732 case "$srcdir" in 733 .) # No --srcdir option. We are building in place. 734 ac_sub_srcdir="$srcdir" ;; 735 [\\/]* | ?:[\\/]* ) # Absolute path. 736 ac_sub_srcdir="$srcdir/$ac_subdir" ;; 737 *) # Relative path. 738 ac_sub_srcdir="$ac_dots$srcdir/$ac_subdir" ;; 739 esac 740 741 # Check for guested configure; otherwise get Cygnus style configure. 742 if test -f "$ac_sub_srcdir/configure.gnu"; then 743 echo 744 $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive 745 elif test -f "$ac_sub_srcdir/configure"; then 746 echo 747 $SHELL "$ac_sub_srcdir/configure" --help=recursive 748 elif test -f "$ac_sub_srcdir/configure.ac" || 749 test -f "$ac_sub_srcdir/configure.in"; then 750 echo 751 "$ac_configure" --help 752 else 753 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 754 fi 755 cd "$ac_popdir" 756 done 757fi 758 759test -n "$ac_init_help" && exit 0 760if "$ac_init_version"; then 761 cat <<\EOF 762 763Copyright 2003-2020,2021 Thomas E. Dickey 764Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 765Free Software Foundation, Inc. 766This configure script is free software; the Free Software Foundation 767gives unlimited permission to copy, distribute and modify it. 768EOF 769 exit 0 770fi 771exec 5>config.log 772cat >&5 <<EOF 773This file contains any messages produced by compilers while 774running configure, to aid debugging if configure makes a mistake. 775 776It was created by $as_me, which was 777generated by GNU Autoconf 2.52.20210509. Invocation command line was 778 779 $ $0 $@ 780 781EOF 782{ 783cat <<_ASUNAME 784## ---------- ## 785## Platform. ## 786## ---------- ## 787 788hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 789uname -m = `(uname -m) 2>/dev/null || echo unknown` 790uname -r = `(uname -r) 2>/dev/null || echo unknown` 791uname -s = `(uname -s) 2>/dev/null || echo unknown` 792uname -v = `(uname -v) 2>/dev/null || echo unknown` 793 794/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 795/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 796 797/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 798/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 799/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 800hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 801/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 802/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 803/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 804 805PATH = $PATH 806 807_ASUNAME 808} >&5 809 810cat >&5 <<EOF 811## ------------ ## 812## Core tests. ## 813## ------------ ## 814 815EOF 816 817# Keep a trace of the command line. 818# Strip out --no-create and --no-recursion so they do not pile up. 819# Also quote any args containing shell meta-characters. 820ac_configure_args= 821ac_sep= 822for ac_arg 823do 824 case "$ac_arg" in 825 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 826 | --no-cr | --no-c) ;; 827 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 828 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 829 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 830 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 831 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 832 ac_sep=" " ;; 833 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 834 ac_sep=" " ;; 835 esac 836 # Get rid of the leading space. 837done 838 839# When interrupted or exit'd, cleanup temporary files, and complete 840# config.log. We remove comments because anyway the quotes in there 841# would cause problems or look ugly. 842trap 'exit_status=$? 843 # Save into config.log some information that might help in debugging. 844 echo >&5 845 echo "## ----------------- ##" >&5 846 echo "## Cache variables. ##" >&5 847 echo "## ----------------- ##" >&5 848 echo >&5 849 # The following way of writing the cache mishandles newlines in values, 850{ 851 (set) 2>&1 | 852 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 853 *ac_space=\ *) 854 sed -n \ 855 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 856 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 857 ;; 858 *) 859 sed -n \ 860 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 861 ;; 862 esac; 863} >&5 864 sed "/^$/d" confdefs.h >conftest.log 865 if test -s conftest.log; then 866 echo >&5 867 echo "## ------------ ##" >&5 868 echo "## confdefs.h. ##" >&5 869 echo "## ------------ ##" >&5 870 echo >&5 871 cat conftest.log >&5 872 fi 873 (echo; echo) >&5 874 test "$ac_signal" != 0 && 875 echo "$as_me: caught signal $ac_signal" >&5 876 echo "$as_me: exit $exit_status" >&5 877 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 878 exit $exit_status 879 ' 0 880for ac_signal in 1 2 13 15; do 881 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' "$ac_signal" 882done 883ac_signal=0 884 885# confdefs.h avoids OS command line length limits that DEFS can exceed. 886rm -rf conftest* confdefs.h 887# AIX cpp loses on an empty file, so make sure it contains at least a newline. 888echo >confdefs.h 889 890# Let the site file select an alternate cache file if it wants to. 891# Prefer explicitly selected file to automatically selected ones. 892if test -z "$CONFIG_SITE"; then 893 if test "x$prefix" != xNONE; then 894 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 895 else 896 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 897 fi 898fi 899for ac_site_file in $CONFIG_SITE; do 900 if test -r "$ac_site_file"; then 901 { echo "$as_me:901: loading site script $ac_site_file" >&5 902echo "$as_me: loading site script $ac_site_file" >&6;} 903 cat "$ac_site_file" >&5 904 . "$ac_site_file" 905 fi 906done 907 908if test -r "$cache_file"; then 909 # Some versions of bash will fail to source /dev/null (special 910 # files actually), so we avoid doing that. 911 if test -f "$cache_file"; then 912 { echo "$as_me:912: loading cache $cache_file" >&5 913echo "$as_me: loading cache $cache_file" >&6;} 914 case $cache_file in 915 [\\/]* | ?:[\\/]* ) . $cache_file;; 916 *) . ./$cache_file;; 917 esac 918 fi 919else 920 { echo "$as_me:920: creating cache $cache_file" >&5 921echo "$as_me: creating cache $cache_file" >&6;} 922 >$cache_file 923fi 924 925# Check that the precious variables saved in the cache have kept the same 926# value. 927ac_cache_corrupted=false 928for ac_var in `(set) 2>&1 | 929 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 930 eval ac_old_set=\$ac_cv_env_${ac_var}_set 931 eval ac_new_set=\$ac_env_${ac_var}_set 932 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 933 eval ac_new_val="\$ac_env_${ac_var}_value" 934 case "$ac_old_set,$ac_new_set" in 935 set,) 936 { echo "$as_me:936: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 937echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 938 ac_cache_corrupted=: ;; 939 ,set) 940 { echo "$as_me:940: error: \`$ac_var' was not set in the previous run" >&5 941echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 942 ac_cache_corrupted=: ;; 943 ,);; 944 *) 945 if test "x$ac_old_val" != "x$ac_new_val"; then 946 { echo "$as_me:946: error: \`$ac_var' has changed since the previous run:" >&5 947echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 948 { echo "$as_me:948: former value: $ac_old_val" >&5 949echo "$as_me: former value: $ac_old_val" >&2;} 950 { echo "$as_me:950: current value: $ac_new_val" >&5 951echo "$as_me: current value: $ac_new_val" >&2;} 952 ac_cache_corrupted=: 953 fi;; 954 esac 955 # Pass precious variables to config.status. It doesn't matter if 956 # we pass some twice (in addition to the command line arguments). 957 if test "$ac_new_set" = set; then 958 case "$ac_new_val" in 959 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 960 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` 961 ac_configure_args="$ac_configure_args '$ac_arg'" 962 ;; 963 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" 964 ;; 965 esac 966 fi 967done 968if "$ac_cache_corrupted"; then 969 { echo "$as_me:969: error: changes in the environment can compromise the build" >&5 970echo "$as_me: error: changes in the environment can compromise the build" >&2;} 971 { { echo "$as_me:971: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 972echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 973 { (exit 1); exit 1; }; } 974fi 975 976ac_ext=c 977ac_cpp='$CPP $CPPFLAGS' 978ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 979ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 980ac_compiler_gnu=$ac_cv_c_compiler_gnu 981ac_main_return="return" 982 983case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in 984 *c*,-n*) ECHO_N= 985 ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway 986 ECHO_T=' ' 987 ;; 988 *c*,* ) ECHO_N=-n 989 ECHO_C= 990 ECHO_T= 991 ;; 992 *) ECHO_N= 993 ECHO_C='\c' 994 ECHO_T= 995 ;; 996esac 997echo "#! $SHELL" >conftest.sh 998echo "exit 0" >>conftest.sh 999chmod +x conftest.sh 1000if { (echo "$as_me:1000: PATH=\".;.\"; conftest.sh") >&5 1001 (PATH=".;."; conftest.sh) 2>&5 1002 ac_status=$? 1003 echo "$as_me:1003: \$? = $ac_status" >&5 1004 (exit "$ac_status"); }; then 1005 ac_path_separator=';' 1006else 1007 ac_path_separator=: 1008fi 1009PATH_SEPARATOR="$ac_path_separator" 1010rm -f conftest.sh 1011 1012ac_config_headers="$ac_config_headers config.h:conf.in" 1013 1014# This can be overridden, but makes --program-prefix default to "re", so 1015# it will install as "reflex". 1016program_prefix=re 1017test "$program_prefix" != NONE && 1018 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1019# Use a double $ so make ignores it. 1020test "$program_suffix" != NONE && 1021 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1022# Double any \ or $. echo might interpret backslashes. 1023# By default was `s,x,x', remove it if useless. 1024cat <<\_ACEOF >conftest.sed 1025s/[\\$]/&&/g;s/;s,x,x,$// 1026_ACEOF 1027program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1028rm conftest.sed 1029 1030ac_aux_dir= 1031for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1032 if test -f "$ac_dir/install-sh"; then 1033 ac_aux_dir=$ac_dir 1034 ac_install_sh="$ac_aux_dir/install-sh -c" 1035 break 1036 elif test -f "$ac_dir/install.sh"; then 1037 ac_aux_dir=$ac_dir 1038 ac_install_sh="$ac_aux_dir/install.sh -c" 1039 break 1040 elif test -f "$ac_dir/shtool"; then 1041 ac_aux_dir=$ac_dir 1042 ac_install_sh="$ac_aux_dir/shtool install -c" 1043 break 1044 fi 1045done 1046if test -z "$ac_aux_dir"; then 1047 { { echo "$as_me:1047: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1048echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1049 { (exit 1); exit 1; }; } 1050fi 1051ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1052ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1053ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1054 1055# Make sure we can run config.sub. 1056$ac_config_sub sun4 >/dev/null 2>&1 || 1057 { { echo "$as_me:1057: error: cannot run $ac_config_sub" >&5 1058echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1059 { (exit 1); exit 1; }; } 1060 1061echo "$as_me:1061: checking build system type" >&5 1062echo $ECHO_N "checking build system type... $ECHO_C" >&6 1063if test "${ac_cv_build+set}" = set; then 1064 echo $ECHO_N "(cached) $ECHO_C" >&6 1065else 1066 ac_cv_build_alias=$build_alias 1067test -z "$ac_cv_build_alias" && 1068 ac_cv_build_alias=`$ac_config_guess` 1069test -z "$ac_cv_build_alias" && 1070 { { echo "$as_me:1070: error: cannot guess build type; you must specify one" >&5 1071echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1072 { (exit 1); exit 1; }; } 1073ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` || 1074 { { echo "$as_me:1074: error: $ac_config_sub $ac_cv_build_alias failed." >&5 1075echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} 1076 { (exit 1); exit 1; }; } 1077 1078fi 1079echo "$as_me:1079: result: $ac_cv_build" >&5 1080echo "${ECHO_T}$ac_cv_build" >&6 1081build=$ac_cv_build 1082build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1083build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1084build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1085 1086if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then 1087 echo "$as_me:1087: checking host system type" >&5 1088echo $ECHO_N "checking host system type... $ECHO_C" >&6 1089if test "${ac_cv_host+set}" = set; then 1090 echo $ECHO_N "(cached) $ECHO_C" >&6 1091else 1092 ac_cv_host_alias=$host_alias 1093test -z "$ac_cv_host_alias" && 1094 ac_cv_host_alias=$ac_cv_build_alias 1095ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` || 1096 { { echo "$as_me:1096: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1097echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1098 { (exit 1); exit 1; }; } 1099 1100fi 1101echo "$as_me:1101: result: $ac_cv_host" >&5 1102echo "${ECHO_T}$ac_cv_host" >&6 1103host=$ac_cv_host 1104host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1105host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1106host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1107 1108 system_name="$host_os" 1109else 1110 system_name="`(uname -s -r) 2>/dev/null`" 1111 if test -z "$system_name" ; then 1112 system_name="`(hostname) 2>/dev/null`" 1113 fi 1114fi 1115test -n "$system_name" && 1116cat >>confdefs.h <<EOF 1117#define SYSTEM_NAME "$system_name" 1118EOF 1119 1120if test "${cf_cv_system_name+set}" = set; then 1121 echo $ECHO_N "(cached) $ECHO_C" >&6 1122else 1123 cf_cv_system_name="$system_name" 1124fi 1125 1126test -z "$system_name" && system_name="$cf_cv_system_name" 1127test -n "$cf_cv_system_name" && echo "$as_me:1127: result: Configuring for $cf_cv_system_name" >&5 1128echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6 1129 1130if test ".$system_name" != ".$cf_cv_system_name" ; then 1131 echo "$as_me:1131: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5 1132echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6 1133 { { echo "$as_me:1133: error: \"Please remove config.cache and try again.\"" >&5 1134echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;} 1135 { (exit 1); exit 1; }; } 1136fi 1137 1138case "$cf_cv_system_name" in 1139(os2*) 1140 CFLAGS="$CFLAGS -Zmt" 1141 1142 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 1143 CPPFLAGS="${CPPFLAGS}-D__ST_MT_ERRNO__" 1144 1145 CXXFLAGS="$CXXFLAGS -Zmt" 1146 # autoconf's macro sets -Zexe and suffix both, which conflict:w 1147 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll" 1148 ac_cv_exeext=.exe 1149 ;; 1150esac 1151 1152PROG_EXT="$EXEEXT" 1153 1154test -n "$PROG_EXT" && 1155cat >>confdefs.h <<EOF 1156#define PROG_EXT "$PROG_EXT" 1157EOF 1158 1159echo "$as_me:1159: checking whether ln -s works" >&5 1160echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 1161LN_S=$as_ln_s 1162if test "$LN_S" = "ln -s"; then 1163 echo "$as_me:1163: result: yes" >&5 1164echo "${ECHO_T}yes" >&6 1165else 1166 echo "$as_me:1166: result: no, using $LN_S" >&5 1167echo "${ECHO_T}no, using $LN_S" >&6 1168fi 1169 1170for ac_prog in byacc 'bison -y' 1171do 1172 # Extract the first word of "$ac_prog", so it can be a program name with args. 1173set dummy $ac_prog; ac_word=$2 1174echo "$as_me:1174: checking for $ac_word" >&5 1175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1176if test "${ac_cv_prog_YACC+set}" = set; then 1177 echo $ECHO_N "(cached) $ECHO_C" >&6 1178else 1179 if test -n "$YACC"; then 1180 ac_cv_prog_YACC="$YACC" # Let the user override the test. 1181else 1182 ac_save_IFS=$IFS; IFS=$ac_path_separator 1183ac_dummy="$PATH" 1184for ac_dir in $ac_dummy; do 1185 IFS=$ac_save_IFS 1186 test -z "$ac_dir" && ac_dir=. 1187 $as_executable_p "$ac_dir/$ac_word" || continue 1188ac_cv_prog_YACC="$ac_prog" 1189echo "$as_me:1189: found $ac_dir/$ac_word" >&5 1190break 1191done 1192 1193fi 1194fi 1195YACC=$ac_cv_prog_YACC 1196if test -n "$YACC"; then 1197 echo "$as_me:1197: result: $YACC" >&5 1198echo "${ECHO_T}$YACC" >&6 1199else 1200 echo "$as_me:1200: result: no" >&5 1201echo "${ECHO_T}no" >&6 1202fi 1203 1204 test -n "$YACC" && break 1205done 1206test -n "$YACC" || YACC="yacc" 1207 1208ac_ext=c 1209ac_cpp='$CPP $CPPFLAGS' 1210ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 1211ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 1212ac_compiler_gnu=$ac_cv_c_compiler_gnu 1213ac_main_return="return" 1214if test -n "$ac_tool_prefix"; then 1215 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1216set dummy ${ac_tool_prefix}gcc; ac_word=$2 1217echo "$as_me:1217: checking for $ac_word" >&5 1218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1219if test "${ac_cv_prog_CC+set}" = set; then 1220 echo $ECHO_N "(cached) $ECHO_C" >&6 1221else 1222 if test -n "$CC"; then 1223 ac_cv_prog_CC="$CC" # Let the user override the test. 1224else 1225 ac_save_IFS=$IFS; IFS=$ac_path_separator 1226ac_dummy="$PATH" 1227for ac_dir in $ac_dummy; do 1228 IFS=$ac_save_IFS 1229 test -z "$ac_dir" && ac_dir=. 1230 $as_executable_p "$ac_dir/$ac_word" || continue 1231ac_cv_prog_CC="${ac_tool_prefix}gcc" 1232echo "$as_me:1232: found $ac_dir/$ac_word" >&5 1233break 1234done 1235 1236fi 1237fi 1238CC=$ac_cv_prog_CC 1239if test -n "$CC"; then 1240 echo "$as_me:1240: result: $CC" >&5 1241echo "${ECHO_T}$CC" >&6 1242else 1243 echo "$as_me:1243: result: no" >&5 1244echo "${ECHO_T}no" >&6 1245fi 1246 1247fi 1248if test -z "$ac_cv_prog_CC"; then 1249 ac_ct_CC=$CC 1250 # Extract the first word of "gcc", so it can be a program name with args. 1251set dummy gcc; ac_word=$2 1252echo "$as_me:1252: checking for $ac_word" >&5 1253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1254if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1255 echo $ECHO_N "(cached) $ECHO_C" >&6 1256else 1257 if test -n "$ac_ct_CC"; then 1258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1259else 1260 ac_save_IFS=$IFS; IFS=$ac_path_separator 1261ac_dummy="$PATH" 1262for ac_dir in $ac_dummy; do 1263 IFS=$ac_save_IFS 1264 test -z "$ac_dir" && ac_dir=. 1265 $as_executable_p "$ac_dir/$ac_word" || continue 1266ac_cv_prog_ac_ct_CC="gcc" 1267echo "$as_me:1267: found $ac_dir/$ac_word" >&5 1268break 1269done 1270 1271fi 1272fi 1273ac_ct_CC=$ac_cv_prog_ac_ct_CC 1274if test -n "$ac_ct_CC"; then 1275 echo "$as_me:1275: result: $ac_ct_CC" >&5 1276echo "${ECHO_T}$ac_ct_CC" >&6 1277else 1278 echo "$as_me:1278: result: no" >&5 1279echo "${ECHO_T}no" >&6 1280fi 1281 1282 CC=$ac_ct_CC 1283else 1284 CC="$ac_cv_prog_CC" 1285fi 1286 1287if test -z "$CC"; then 1288 if test -n "$ac_tool_prefix"; then 1289 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1290set dummy ${ac_tool_prefix}cc; ac_word=$2 1291echo "$as_me:1291: checking for $ac_word" >&5 1292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1293if test "${ac_cv_prog_CC+set}" = set; then 1294 echo $ECHO_N "(cached) $ECHO_C" >&6 1295else 1296 if test -n "$CC"; then 1297 ac_cv_prog_CC="$CC" # Let the user override the test. 1298else 1299 ac_save_IFS=$IFS; IFS=$ac_path_separator 1300ac_dummy="$PATH" 1301for ac_dir in $ac_dummy; do 1302 IFS=$ac_save_IFS 1303 test -z "$ac_dir" && ac_dir=. 1304 $as_executable_p "$ac_dir/$ac_word" || continue 1305ac_cv_prog_CC="${ac_tool_prefix}cc" 1306echo "$as_me:1306: found $ac_dir/$ac_word" >&5 1307break 1308done 1309 1310fi 1311fi 1312CC=$ac_cv_prog_CC 1313if test -n "$CC"; then 1314 echo "$as_me:1314: result: $CC" >&5 1315echo "${ECHO_T}$CC" >&6 1316else 1317 echo "$as_me:1317: result: no" >&5 1318echo "${ECHO_T}no" >&6 1319fi 1320 1321fi 1322if test -z "$ac_cv_prog_CC"; then 1323 ac_ct_CC=$CC 1324 # Extract the first word of "cc", so it can be a program name with args. 1325set dummy cc; ac_word=$2 1326echo "$as_me:1326: checking for $ac_word" >&5 1327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1328if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1329 echo $ECHO_N "(cached) $ECHO_C" >&6 1330else 1331 if test -n "$ac_ct_CC"; then 1332 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1333else 1334 ac_save_IFS=$IFS; IFS=$ac_path_separator 1335ac_dummy="$PATH" 1336for ac_dir in $ac_dummy; do 1337 IFS=$ac_save_IFS 1338 test -z "$ac_dir" && ac_dir=. 1339 $as_executable_p "$ac_dir/$ac_word" || continue 1340ac_cv_prog_ac_ct_CC="cc" 1341echo "$as_me:1341: found $ac_dir/$ac_word" >&5 1342break 1343done 1344 1345fi 1346fi 1347ac_ct_CC=$ac_cv_prog_ac_ct_CC 1348if test -n "$ac_ct_CC"; then 1349 echo "$as_me:1349: result: $ac_ct_CC" >&5 1350echo "${ECHO_T}$ac_ct_CC" >&6 1351else 1352 echo "$as_me:1352: result: no" >&5 1353echo "${ECHO_T}no" >&6 1354fi 1355 1356 CC=$ac_ct_CC 1357else 1358 CC="$ac_cv_prog_CC" 1359fi 1360 1361fi 1362if test -z "$CC"; then 1363 # Extract the first word of "cc", so it can be a program name with args. 1364set dummy cc; ac_word=$2 1365echo "$as_me:1365: checking for $ac_word" >&5 1366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1367if test "${ac_cv_prog_CC+set}" = set; then 1368 echo $ECHO_N "(cached) $ECHO_C" >&6 1369else 1370 if test -n "$CC"; then 1371 ac_cv_prog_CC="$CC" # Let the user override the test. 1372else 1373 ac_prog_rejected=no 1374 ac_save_IFS=$IFS; IFS=$ac_path_separator 1375ac_dummy="$PATH" 1376for ac_dir in $ac_dummy; do 1377 IFS=$ac_save_IFS 1378 test -z "$ac_dir" && ac_dir=. 1379 $as_executable_p "$ac_dir/$ac_word" || continue 1380if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1381 ac_prog_rejected=yes 1382 continue 1383fi 1384ac_cv_prog_CC="cc" 1385echo "$as_me:1385: found $ac_dir/$ac_word" >&5 1386break 1387done 1388 1389if test "$ac_prog_rejected" = yes; then 1390 # We found a bogon in the path, so make sure we never use it. 1391 set dummy $ac_cv_prog_CC 1392 shift 1393 if test $# != 0; then 1394 # We chose a different compiler from the bogus one. 1395 # However, it has the same basename, so the bogon will be chosen 1396 # first if we set CC to just the basename; use the full file name. 1397 shift 1398 set dummy "$ac_dir/$ac_word" ${1+"$@"} 1399 shift 1400 ac_cv_prog_CC="$@" 1401 fi 1402fi 1403fi 1404fi 1405CC=$ac_cv_prog_CC 1406if test -n "$CC"; then 1407 echo "$as_me:1407: result: $CC" >&5 1408echo "${ECHO_T}$CC" >&6 1409else 1410 echo "$as_me:1410: result: no" >&5 1411echo "${ECHO_T}no" >&6 1412fi 1413 1414fi 1415if test -z "$CC"; then 1416 if test -n "$ac_tool_prefix"; then 1417 for ac_prog in cl 1418 do 1419 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1420set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1421echo "$as_me:1421: checking for $ac_word" >&5 1422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1423if test "${ac_cv_prog_CC+set}" = set; then 1424 echo $ECHO_N "(cached) $ECHO_C" >&6 1425else 1426 if test -n "$CC"; then 1427 ac_cv_prog_CC="$CC" # Let the user override the test. 1428else 1429 ac_save_IFS=$IFS; IFS=$ac_path_separator 1430ac_dummy="$PATH" 1431for ac_dir in $ac_dummy; do 1432 IFS=$ac_save_IFS 1433 test -z "$ac_dir" && ac_dir=. 1434 $as_executable_p "$ac_dir/$ac_word" || continue 1435ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1436echo "$as_me:1436: found $ac_dir/$ac_word" >&5 1437break 1438done 1439 1440fi 1441fi 1442CC=$ac_cv_prog_CC 1443if test -n "$CC"; then 1444 echo "$as_me:1444: result: $CC" >&5 1445echo "${ECHO_T}$CC" >&6 1446else 1447 echo "$as_me:1447: result: no" >&5 1448echo "${ECHO_T}no" >&6 1449fi 1450 1451 test -n "$CC" && break 1452 done 1453fi 1454if test -z "$CC"; then 1455 ac_ct_CC=$CC 1456 for ac_prog in cl 1457do 1458 # Extract the first word of "$ac_prog", so it can be a program name with args. 1459set dummy $ac_prog; ac_word=$2 1460echo "$as_me:1460: checking for $ac_word" >&5 1461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1462if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1463 echo $ECHO_N "(cached) $ECHO_C" >&6 1464else 1465 if test -n "$ac_ct_CC"; then 1466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1467else 1468 ac_save_IFS=$IFS; IFS=$ac_path_separator 1469ac_dummy="$PATH" 1470for ac_dir in $ac_dummy; do 1471 IFS=$ac_save_IFS 1472 test -z "$ac_dir" && ac_dir=. 1473 $as_executable_p "$ac_dir/$ac_word" || continue 1474ac_cv_prog_ac_ct_CC="$ac_prog" 1475echo "$as_me:1475: found $ac_dir/$ac_word" >&5 1476break 1477done 1478 1479fi 1480fi 1481ac_ct_CC=$ac_cv_prog_ac_ct_CC 1482if test -n "$ac_ct_CC"; then 1483 echo "$as_me:1483: result: $ac_ct_CC" >&5 1484echo "${ECHO_T}$ac_ct_CC" >&6 1485else 1486 echo "$as_me:1486: result: no" >&5 1487echo "${ECHO_T}no" >&6 1488fi 1489 1490 test -n "$ac_ct_CC" && break 1491done 1492 1493 CC=$ac_ct_CC 1494fi 1495 1496fi 1497 1498test -z "$CC" && { { echo "$as_me:1498: error: no acceptable cc found in \$PATH" >&5 1499echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1500 { (exit 1); exit 1; }; } 1501 1502# Provide some information about the compiler. 1503echo "$as_me:1503:" \ 1504 "checking for C compiler version" >&5 1505ac_compiler=`set X $ac_compile; echo "$2"` 1506{ (eval echo "$as_me:1506: \"$ac_compiler --version </dev/null >&5\"") >&5 1507 (eval $ac_compiler --version </dev/null >&5) 2>&5 1508 ac_status=$? 1509 echo "$as_me:1509: \$? = $ac_status" >&5 1510 (exit "$ac_status"); } 1511{ (eval echo "$as_me:1511: \"$ac_compiler -v </dev/null >&5\"") >&5 1512 (eval $ac_compiler -v </dev/null >&5) 2>&5 1513 ac_status=$? 1514 echo "$as_me:1514: \$? = $ac_status" >&5 1515 (exit "$ac_status"); } 1516{ (eval echo "$as_me:1516: \"$ac_compiler -V </dev/null >&5\"") >&5 1517 (eval $ac_compiler -V </dev/null >&5) 2>&5 1518 ac_status=$? 1519 echo "$as_me:1519: \$? = $ac_status" >&5 1520 (exit "$ac_status"); } 1521 1522cat >"conftest.$ac_ext" <<_ACEOF 1523#line 1523 "configure" 1524#include "confdefs.h" 1525 1526int 1527main (void) 1528{ 1529 1530 ; 1531 return 0; 1532} 1533_ACEOF 1534ac_clean_files_save=$ac_clean_files 1535ac_clean_files="$ac_clean_files a.out a.exe" 1536# Try to create an executable without -o first, disregard a.out. 1537# It will help us diagnose broken compilers, and finding out an intuition 1538# of exeext. 1539echo "$as_me:1539: checking for C compiler default output" >&5 1540echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1541ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'` 1542if { (eval echo "$as_me:1542: \"$ac_link_default\"") >&5 1543 (eval $ac_link_default) 2>&5 1544 ac_status=$? 1545 echo "$as_me:1545: \$? = $ac_status" >&5 1546 (exit "$ac_status"); }; then 1547 # Find the output, starting from the most likely. This scheme is 1548# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1549# resort. 1550for ac_file in `ls a.exe conftest.exe 2>/dev/null; 1551 ls a.out conftest 2>/dev/null; 1552 ls a.* conftest.* 2>/dev/null`; do 1553 case $ac_file in 1554 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1555 a.out ) # We found the default executable, but exeext='' is most 1556 # certainly right. 1557 break;; 1558 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1559 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 1560 export ac_cv_exeext 1561 break;; 1562 * ) break;; 1563 esac 1564done 1565else 1566 echo "$as_me: failed program was:" >&5 1567cat "conftest.$ac_ext" >&5 1568{ { echo "$as_me:1568: error: C compiler cannot create executables" >&5 1569echo "$as_me: error: C compiler cannot create executables" >&2;} 1570 { (exit 77); exit 77; }; } 1571fi 1572 1573ac_exeext=$ac_cv_exeext 1574echo "$as_me:1574: result: $ac_file" >&5 1575echo "${ECHO_T}$ac_file" >&6 1576 1577# Check the compiler produces executables we can run. If not, either 1578# the compiler is broken, or we cross compile. 1579echo "$as_me:1579: checking whether the C compiler works" >&5 1580echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1581# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1582# If not cross compiling, check that we can run a simple program. 1583if test "$cross_compiling" != yes; then 1584 if { ac_try='./$ac_file' 1585 { (eval echo "$as_me:1585: \"$ac_try\"") >&5 1586 (eval $ac_try) 2>&5 1587 ac_status=$? 1588 echo "$as_me:1588: \$? = $ac_status" >&5 1589 (exit "$ac_status"); }; }; then 1590 cross_compiling=no 1591 else 1592 if test "$cross_compiling" = maybe; then 1593 cross_compiling=yes 1594 else 1595 { { echo "$as_me:1595: error: cannot run C compiled programs. 1596If you meant to cross compile, use \`--host'." >&5 1597echo "$as_me: error: cannot run C compiled programs. 1598If you meant to cross compile, use \`--host'." >&2;} 1599 { (exit 1); exit 1; }; } 1600 fi 1601 fi 1602fi 1603echo "$as_me:1603: result: yes" >&5 1604echo "${ECHO_T}yes" >&6 1605 1606rm -f a.out a.exe "conftest$ac_cv_exeext" 1607ac_clean_files=$ac_clean_files_save 1608# Check the compiler produces executables we can run. If not, either 1609# the compiler is broken, or we cross compile. 1610echo "$as_me:1610: checking whether we are cross compiling" >&5 1611echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1612echo "$as_me:1612: result: $cross_compiling" >&5 1613echo "${ECHO_T}$cross_compiling" >&6 1614 1615echo "$as_me:1615: checking for executable suffix" >&5 1616echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1617if { (eval echo "$as_me:1617: \"$ac_link\"") >&5 1618 (eval $ac_link) 2>&5 1619 ac_status=$? 1620 echo "$as_me:1620: \$? = $ac_status" >&5 1621 (exit "$ac_status"); }; then 1622 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1623# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1624# work properly (i.e., refer to `conftest.exe'), while it won't with 1625# `rm'. 1626for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1627 case $ac_file in 1628 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1629 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1630 export ac_cv_exeext 1631 break;; 1632 * ) break;; 1633 esac 1634done 1635else 1636 { { echo "$as_me:1636: error: cannot compute EXEEXT: cannot compile and link" >&5 1637echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1638 { (exit 1); exit 1; }; } 1639fi 1640 1641rm -f "conftest$ac_cv_exeext" 1642echo "$as_me:1642: result: $ac_cv_exeext" >&5 1643echo "${ECHO_T}$ac_cv_exeext" >&6 1644 1645rm -f "conftest.$ac_ext" 1646EXEEXT=$ac_cv_exeext 1647ac_exeext=$EXEEXT 1648echo "$as_me:1648: checking for object suffix" >&5 1649echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 1650if test "${ac_cv_objext+set}" = set; then 1651 echo $ECHO_N "(cached) $ECHO_C" >&6 1652else 1653 cat >"conftest.$ac_ext" <<_ACEOF 1654#line 1654 "configure" 1655#include "confdefs.h" 1656 1657int 1658main (void) 1659{ 1660 1661 ; 1662 return 0; 1663} 1664_ACEOF 1665rm -f conftest.o conftest.obj 1666if { (eval echo "$as_me:1666: \"$ac_compile\"") >&5 1667 (eval $ac_compile) 2>&5 1668 ac_status=$? 1669 echo "$as_me:1669: \$? = $ac_status" >&5 1670 (exit "$ac_status"); }; then 1671 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1672 case $ac_file in 1673 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;; 1674 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1675 break;; 1676 esac 1677done 1678else 1679 echo "$as_me: failed program was:" >&5 1680cat "conftest.$ac_ext" >&5 1681{ { echo "$as_me:1681: error: cannot compute OBJEXT: cannot compile" >&5 1682echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1683 { (exit 1); exit 1; }; } 1684fi 1685 1686rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext" 1687fi 1688echo "$as_me:1688: result: $ac_cv_objext" >&5 1689echo "${ECHO_T}$ac_cv_objext" >&6 1690OBJEXT=$ac_cv_objext 1691ac_objext=$OBJEXT 1692echo "$as_me:1692: checking whether we are using the GNU C compiler" >&5 1693echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1694if test "${ac_cv_c_compiler_gnu+set}" = set; then 1695 echo $ECHO_N "(cached) $ECHO_C" >&6 1696else 1697 cat >"conftest.$ac_ext" <<_ACEOF 1698#line 1698 "configure" 1699#include "confdefs.h" 1700 1701int 1702main (void) 1703{ 1704#ifndef __GNUC__ 1705 choke me 1706#endif 1707 1708 ; 1709 return 0; 1710} 1711_ACEOF 1712rm -f "conftest.$ac_objext" 1713if { (eval echo "$as_me:1713: \"$ac_compile\"") >&5 1714 (eval $ac_compile) 2>&5 1715 ac_status=$? 1716 echo "$as_me:1716: \$? = $ac_status" >&5 1717 (exit "$ac_status"); } && 1718 { ac_try='test -s "conftest.$ac_objext"' 1719 { (eval echo "$as_me:1719: \"$ac_try\"") >&5 1720 (eval $ac_try) 2>&5 1721 ac_status=$? 1722 echo "$as_me:1722: \$? = $ac_status" >&5 1723 (exit "$ac_status"); }; }; then 1724 ac_compiler_gnu=yes 1725else 1726 echo "$as_me: failed program was:" >&5 1727cat "conftest.$ac_ext" >&5 1728ac_compiler_gnu=no 1729fi 1730rm -f "conftest.$ac_objext" "conftest.$ac_ext" 1731ac_cv_c_compiler_gnu=$ac_compiler_gnu 1732 1733fi 1734echo "$as_me:1734: result: $ac_cv_c_compiler_gnu" >&5 1735echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1736GCC=`test $ac_compiler_gnu = yes && echo yes` 1737ac_test_CFLAGS=${CFLAGS+set} 1738ac_save_CFLAGS=$CFLAGS 1739CFLAGS="-g" 1740echo "$as_me:1740: checking whether $CC accepts -g" >&5 1741echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1742if test "${ac_cv_prog_cc_g+set}" = set; then 1743 echo $ECHO_N "(cached) $ECHO_C" >&6 1744else 1745 cat >"conftest.$ac_ext" <<_ACEOF 1746#line 1746 "configure" 1747#include "confdefs.h" 1748 1749int 1750main (void) 1751{ 1752 1753 ; 1754 return 0; 1755} 1756_ACEOF 1757rm -f "conftest.$ac_objext" 1758if { (eval echo "$as_me:1758: \"$ac_compile\"") >&5 1759 (eval $ac_compile) 2>&5 1760 ac_status=$? 1761 echo "$as_me:1761: \$? = $ac_status" >&5 1762 (exit "$ac_status"); } && 1763 { ac_try='test -s "conftest.$ac_objext"' 1764 { (eval echo "$as_me:1764: \"$ac_try\"") >&5 1765 (eval $ac_try) 2>&5 1766 ac_status=$? 1767 echo "$as_me:1767: \$? = $ac_status" >&5 1768 (exit "$ac_status"); }; }; then 1769 ac_cv_prog_cc_g=yes 1770else 1771 echo "$as_me: failed program was:" >&5 1772cat "conftest.$ac_ext" >&5 1773ac_cv_prog_cc_g=no 1774fi 1775rm -f "conftest.$ac_objext" "conftest.$ac_ext" 1776fi 1777echo "$as_me:1777: result: $ac_cv_prog_cc_g" >&5 1778echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1779if test "$ac_test_CFLAGS" = set; then 1780 CFLAGS=$ac_save_CFLAGS 1781elif test $ac_cv_prog_cc_g = yes; then 1782 if test "$GCC" = yes; then 1783 CFLAGS="-g -O2" 1784 else 1785 CFLAGS="-g" 1786 fi 1787else 1788 if test "$GCC" = yes; then 1789 CFLAGS="-O2" 1790 else 1791 CFLAGS= 1792 fi 1793fi 1794# Some people use a C++ compiler to compile C. Since we use `exit', 1795# in C++ we need to declare it. In case someone uses the same compiler 1796# for both compiling C and C++ we need to have the C++ compiler decide 1797# the declaration of exit, since it's the most demanding environment. 1798cat >"conftest.$ac_ext" <<_ACEOF 1799#ifndef __cplusplus 1800 choke me 1801#endif 1802_ACEOF 1803rm -f "conftest.$ac_objext" 1804if { (eval echo "$as_me:1804: \"$ac_compile\"") >&5 1805 (eval $ac_compile) 2>&5 1806 ac_status=$? 1807 echo "$as_me:1807: \$? = $ac_status" >&5 1808 (exit "$ac_status"); } && 1809 { ac_try='test -s "conftest.$ac_objext"' 1810 { (eval echo "$as_me:1810: \"$ac_try\"") >&5 1811 (eval $ac_try) 2>&5 1812 ac_status=$? 1813 echo "$as_me:1813: \$? = $ac_status" >&5 1814 (exit "$ac_status"); }; }; then 1815 for ac_declaration in \ 1816 ''\ 1817 '#include <stdlib.h>' \ 1818 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1819 'extern "C" void std::exit (int); using std::exit;' \ 1820 'extern "C" void exit (int) throw ();' \ 1821 'extern "C" void exit (int);' \ 1822 'void exit (int);' 1823do 1824 cat >"conftest.$ac_ext" <<_ACEOF 1825#line 1825 "configure" 1826#include "confdefs.h" 1827#include <stdlib.h> 1828$ac_declaration 1829int 1830main (void) 1831{ 1832exit (42); 1833 ; 1834 return 0; 1835} 1836_ACEOF 1837rm -f "conftest.$ac_objext" 1838if { (eval echo "$as_me:1838: \"$ac_compile\"") >&5 1839 (eval $ac_compile) 2>&5 1840 ac_status=$? 1841 echo "$as_me:1841: \$? = $ac_status" >&5 1842 (exit "$ac_status"); } && 1843 { ac_try='test -s "conftest.$ac_objext"' 1844 { (eval echo "$as_me:1844: \"$ac_try\"") >&5 1845 (eval $ac_try) 2>&5 1846 ac_status=$? 1847 echo "$as_me:1847: \$? = $ac_status" >&5 1848 (exit "$ac_status"); }; }; then 1849 : 1850else 1851 echo "$as_me: failed program was:" >&5 1852cat "conftest.$ac_ext" >&5 1853continue 1854fi 1855rm -f "conftest.$ac_objext" "conftest.$ac_ext" 1856 cat >"conftest.$ac_ext" <<_ACEOF 1857#line 1857 "configure" 1858#include "confdefs.h" 1859$ac_declaration 1860int 1861main (void) 1862{ 1863exit (42); 1864 ; 1865 return 0; 1866} 1867_ACEOF 1868rm -f "conftest.$ac_objext" 1869if { (eval echo "$as_me:1869: \"$ac_compile\"") >&5 1870 (eval $ac_compile) 2>&5 1871 ac_status=$? 1872 echo "$as_me:1872: \$? = $ac_status" >&5 1873 (exit "$ac_status"); } && 1874 { ac_try='test -s "conftest.$ac_objext"' 1875 { (eval echo "$as_me:1875: \"$ac_try\"") >&5 1876 (eval $ac_try) 2>&5 1877 ac_status=$? 1878 echo "$as_me:1878: \$? = $ac_status" >&5 1879 (exit "$ac_status"); }; }; then 1880 break 1881else 1882 echo "$as_me: failed program was:" >&5 1883cat "conftest.$ac_ext" >&5 1884fi 1885rm -f "conftest.$ac_objext" "conftest.$ac_ext" 1886done 1887rm -rf conftest* 1888if test -n "$ac_declaration"; then 1889 echo '#ifdef __cplusplus' >>confdefs.h 1890 echo "$ac_declaration" >>confdefs.h 1891 echo '#endif' >>confdefs.h 1892fi 1893 1894else 1895 echo "$as_me: failed program was:" >&5 1896cat "conftest.$ac_ext" >&5 1897fi 1898rm -f "conftest.$ac_objext" "conftest.$ac_ext" 1899ac_ext=c 1900ac_cpp='$CPP $CPPFLAGS' 1901ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 1902ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 1903ac_compiler_gnu=$ac_cv_c_compiler_gnu 1904ac_main_return="return" 1905 1906GCC_VERSION=none 1907if test "$GCC" = yes ; then 1908 echo "$as_me:1908: checking version of $CC" >&5 1909echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 1910 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`" 1911 test -z "$GCC_VERSION" && GCC_VERSION=unknown 1912 echo "$as_me:1912: result: $GCC_VERSION" >&5 1913echo "${ECHO_T}$GCC_VERSION" >&6 1914fi 1915 1916INTEL_COMPILER=no 1917 1918if test "$GCC" = yes ; then 1919 case "$host_os" in 1920 (linux*|gnu*) 1921 echo "$as_me:1921: checking if this is really Intel C compiler" >&5 1922echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6 1923 cf_save_CFLAGS="$CFLAGS" 1924 CFLAGS="$CFLAGS -no-gcc" 1925 cat >"conftest.$ac_ext" <<_ACEOF 1926#line 1926 "configure" 1927#include "confdefs.h" 1928 1929int 1930main (void) 1931{ 1932 1933#ifdef __INTEL_COMPILER 1934#else 1935make an error 1936#endif 1937 1938 ; 1939 return 0; 1940} 1941_ACEOF 1942rm -f "conftest.$ac_objext" 1943if { (eval echo "$as_me:1943: \"$ac_compile\"") >&5 1944 (eval $ac_compile) 2>&5 1945 ac_status=$? 1946 echo "$as_me:1946: \$? = $ac_status" >&5 1947 (exit "$ac_status"); } && 1948 { ac_try='test -s "conftest.$ac_objext"' 1949 { (eval echo "$as_me:1949: \"$ac_try\"") >&5 1950 (eval $ac_try) 2>&5 1951 ac_status=$? 1952 echo "$as_me:1952: \$? = $ac_status" >&5 1953 (exit "$ac_status"); }; }; then 1954 INTEL_COMPILER=yes 1955cf_save_CFLAGS="$cf_save_CFLAGS -we147" 1956 1957else 1958 echo "$as_me: failed program was:" >&5 1959cat "conftest.$ac_ext" >&5 1960fi 1961rm -f "conftest.$ac_objext" "conftest.$ac_ext" 1962 CFLAGS="$cf_save_CFLAGS" 1963 echo "$as_me:1963: result: $INTEL_COMPILER" >&5 1964echo "${ECHO_T}$INTEL_COMPILER" >&6 1965 ;; 1966 esac 1967fi 1968 1969CLANG_COMPILER=no 1970 1971if test "$GCC" = yes ; then 1972 echo "$as_me:1972: checking if this is really Clang C compiler" >&5 1973echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6 1974 cf_save_CFLAGS="$CFLAGS" 1975 cat >"conftest.$ac_ext" <<_ACEOF 1976#line 1976 "configure" 1977#include "confdefs.h" 1978 1979int 1980main (void) 1981{ 1982 1983#ifdef __clang__ 1984#else 1985make an error 1986#endif 1987 1988 ; 1989 return 0; 1990} 1991_ACEOF 1992rm -f "conftest.$ac_objext" 1993if { (eval echo "$as_me:1993: \"$ac_compile\"") >&5 1994 (eval $ac_compile) 2>&5 1995 ac_status=$? 1996 echo "$as_me:1996: \$? = $ac_status" >&5 1997 (exit "$ac_status"); } && 1998 { ac_try='test -s "conftest.$ac_objext"' 1999 { (eval echo "$as_me:1999: \"$ac_try\"") >&5 2000 (eval $ac_try) 2>&5 2001 ac_status=$? 2002 echo "$as_me:2002: \$? = $ac_status" >&5 2003 (exit "$ac_status"); }; }; then 2004 CLANG_COMPILER=yes 2005 2006else 2007 echo "$as_me: failed program was:" >&5 2008cat "conftest.$ac_ext" >&5 2009fi 2010rm -f "conftest.$ac_objext" "conftest.$ac_ext" 2011 CFLAGS="$cf_save_CFLAGS" 2012 echo "$as_me:2012: result: $CLANG_COMPILER" >&5 2013echo "${ECHO_T}$CLANG_COMPILER" >&6 2014fi 2015 2016CLANG_VERSION=none 2017 2018if test "x$CLANG_COMPILER" = "xyes" ; then 2019 case "$CC" in 2020 (c[1-9][0-9]|*/c[1-9][0-9]) 2021 { echo "$as_me:2021: WARNING: replacing broken compiler alias $CC" >&5 2022echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;} 2023 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`" 2024 CC=clang 2025 ;; 2026 esac 2027 2028 echo "$as_me:2028: checking version of $CC" >&5 2029echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 2030 CLANG_VERSION="`$CC --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(CLANG[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`" 2031 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown 2032 echo "$as_me:2032: result: $CLANG_VERSION" >&5 2033echo "${ECHO_T}$CLANG_VERSION" >&6 2034 2035 for cf_clang_opt in \ 2036 -Qunused-arguments \ 2037 -Wno-error=implicit-function-declaration 2038 do 2039 echo "$as_me:2039: checking if option $cf_clang_opt works" >&5 2040echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6 2041 cf_save_CFLAGS="$CFLAGS" 2042 CFLAGS="$CFLAGS $cf_clang_opt" 2043 cat >"conftest.$ac_ext" <<_ACEOF 2044#line 2044 "configure" 2045#include "confdefs.h" 2046 2047 #include <stdio.h> 2048int 2049main (void) 2050{ 2051 2052 printf("hello!\\n"); 2053 ; 2054 return 0; 2055} 2056_ACEOF 2057rm -f "conftest.$ac_objext" "conftest$ac_exeext" 2058if { (eval echo "$as_me:2058: \"$ac_link\"") >&5 2059 (eval $ac_link) 2>&5 2060 ac_status=$? 2061 echo "$as_me:2061: \$? = $ac_status" >&5 2062 (exit "$ac_status"); } && 2063 { ac_try='test -s "conftest$ac_exeext"' 2064 { (eval echo "$as_me:2064: \"$ac_try\"") >&5 2065 (eval $ac_try) 2>&5 2066 ac_status=$? 2067 echo "$as_me:2067: \$? = $ac_status" >&5 2068 (exit "$ac_status"); }; }; then 2069 2070 cf_clang_optok=yes 2071else 2072 echo "$as_me: failed program was:" >&5 2073cat "conftest.$ac_ext" >&5 2074 2075 cf_clang_optok=no 2076fi 2077rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 2078 echo "$as_me:2078: result: $cf_clang_optok" >&5 2079echo "${ECHO_T}$cf_clang_optok" >&6 2080 CFLAGS="$cf_save_CFLAGS" 2081 if test "$cf_clang_optok" = yes; then 2082 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6 2083 2084echo "${as_me:-configure}:2084: testing adding option $cf_clang_opt ..." 1>&5 2085 2086 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 2087 CFLAGS="${CFLAGS}$cf_clang_opt" 2088 2089 fi 2090 done 2091fi 2092 2093echo "$as_me:2093: checking for $CC option to accept ANSI C" >&5 2094echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2095if test "${ac_cv_prog_cc_stdc+set}" = set; then 2096 echo $ECHO_N "(cached) $ECHO_C" >&6 2097else 2098 ac_cv_prog_cc_stdc=no 2099ac_save_CC=$CC 2100cat >"conftest.$ac_ext" <<_ACEOF 2101#line 2101 "configure" 2102#include "confdefs.h" 2103#include <stdarg.h> 2104#include <stdio.h> 2105#include <sys/types.h> 2106#include <sys/stat.h> 2107/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2108struct buf { int x; }; 2109FILE * (*rcsopen) (struct buf *, struct stat *, int); 2110static char *e (p, i) 2111 char **p; 2112 int i; 2113{ 2114 return p[i]; 2115} 2116static char *f (char * (*g) (char **, int), char **p, ...) 2117{ 2118 char *s; 2119 va_list v; 2120 va_start (v,p); 2121 s = g (p, va_arg (v,int)); 2122 va_end (v); 2123 return s; 2124} 2125int test (int i, double x); 2126struct s1 {int (*f) (int a);}; 2127struct s2 {int (*f) (double a);}; 2128int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2129int argc; 2130char **argv; 2131int 2132main (void) 2133{ 2134return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2135 ; 2136 return 0; 2137} 2138_ACEOF 2139# Don't try gcc -ansi; that turns off useful extensions and 2140# breaks some systems' header files. 2141# AIX -qlanglvl=ansi 2142# Ultrix and OSF/1 -std1 2143# HP-UX 10.20 and later -Ae 2144# HP-UX older versions -Aa -D_HPUX_SOURCE 2145# SVR4 -Xc -D__EXTENSIONS__ 2146for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2147do 2148 CC="$ac_save_CC $ac_arg" 2149 rm -f "conftest.$ac_objext" 2150if { (eval echo "$as_me:2150: \"$ac_compile\"") >&5 2151 (eval $ac_compile) 2>&5 2152 ac_status=$? 2153 echo "$as_me:2153: \$? = $ac_status" >&5 2154 (exit "$ac_status"); } && 2155 { ac_try='test -s "conftest.$ac_objext"' 2156 { (eval echo "$as_me:2156: \"$ac_try\"") >&5 2157 (eval $ac_try) 2>&5 2158 ac_status=$? 2159 echo "$as_me:2159: \$? = $ac_status" >&5 2160 (exit "$ac_status"); }; }; then 2161 ac_cv_prog_cc_stdc=$ac_arg 2162break 2163else 2164 echo "$as_me: failed program was:" >&5 2165cat "conftest.$ac_ext" >&5 2166fi 2167rm -f "conftest.$ac_objext" 2168done 2169rm -f "conftest.$ac_ext" "conftest.$ac_objext" 2170CC=$ac_save_CC 2171 2172fi 2173 2174case "x$ac_cv_prog_cc_stdc" in 2175 x|xno) 2176 echo "$as_me:2176: result: none needed" >&5 2177echo "${ECHO_T}none needed" >&6 ;; 2178 *) 2179 echo "$as_me:2179: result: $ac_cv_prog_cc_stdc" >&5 2180echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2181 CC="$CC $ac_cv_prog_cc_stdc" ;; 2182esac 2183 2184# This should have been defined by AC_PROG_CC 2185: "${CC:=cc}" 2186 2187echo "$as_me:2187: checking \$CFLAGS variable" >&5 2188echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6 2189case "x$CFLAGS" in 2190(*-[IUD]*) 2191 echo "$as_me:2191: result: broken" >&5 2192echo "${ECHO_T}broken" >&6 2193 { echo "$as_me:2193: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5 2194echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;} 2195 cf_flags="$CFLAGS" 2196 CFLAGS= 2197 for cf_arg in $cf_flags 2198 do 2199 2200cf_fix_cppflags=no 2201cf_new_cflags= 2202cf_new_cppflags= 2203cf_new_extra_cppflags= 2204 2205for cf_add_cflags in $cf_arg 2206do 2207case "$cf_fix_cppflags" in 2208(no) 2209 case "$cf_add_cflags" in 2210 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 2211 case "$cf_add_cflags" in 2212 (-D*) 2213 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2214 2215 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2216 && test -z "${cf_tst_cflags}" \ 2217 && cf_fix_cppflags=yes 2218 2219 if test "$cf_fix_cppflags" = yes ; then 2220 2221 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2222 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2223 2224 continue 2225 elif test "${cf_tst_cflags}" = "\"'" ; then 2226 2227 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2228 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2229 2230 continue 2231 fi 2232 ;; 2233 esac 2234 case "$CPPFLAGS" in 2235 (*$cf_add_cflags) 2236 ;; 2237 (*) 2238 case "$cf_add_cflags" in 2239 (-D*) 2240 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2241 2242CPPFLAGS=`echo "$CPPFLAGS" | \ 2243 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2244 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2245 2246 ;; 2247 esac 2248 2249 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 2250 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 2251 2252 ;; 2253 esac 2254 ;; 2255 (*) 2256 2257 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 2258 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 2259 2260 ;; 2261 esac 2262 ;; 2263(yes) 2264 2265 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2266 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2267 2268 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 2269 2270 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2271 && test -z "${cf_tst_cflags}" \ 2272 && cf_fix_cppflags=no 2273 ;; 2274esac 2275done 2276 2277if test -n "$cf_new_cflags" ; then 2278 2279 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 2280 CFLAGS="${CFLAGS}$cf_new_cflags" 2281 2282fi 2283 2284if test -n "$cf_new_cppflags" ; then 2285 2286 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 2287 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 2288 2289fi 2290 2291if test -n "$cf_new_extra_cppflags" ; then 2292 2293 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 2294 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 2295 2296fi 2297 2298 done 2299 ;; 2300(*) 2301 echo "$as_me:2301: result: ok" >&5 2302echo "${ECHO_T}ok" >&6 2303 ;; 2304esac 2305 2306echo "$as_me:2306: checking \$CC variable" >&5 2307echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6 2308case "$CC" in 2309(*[\ \ ]-*) 2310 echo "$as_me:2310: result: broken" >&5 2311echo "${ECHO_T}broken" >&6 2312 { echo "$as_me:2312: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5 2313echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;} 2314 # humor him... 2315 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'` 2316 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'` 2317 CC="$cf_prog" 2318 for cf_arg in $cf_flags 2319 do 2320 case "x$cf_arg" in 2321 (x-[IUDfgOW]*) 2322 2323cf_fix_cppflags=no 2324cf_new_cflags= 2325cf_new_cppflags= 2326cf_new_extra_cppflags= 2327 2328for cf_add_cflags in $cf_arg 2329do 2330case "$cf_fix_cppflags" in 2331(no) 2332 case "$cf_add_cflags" in 2333 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 2334 case "$cf_add_cflags" in 2335 (-D*) 2336 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2337 2338 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2339 && test -z "${cf_tst_cflags}" \ 2340 && cf_fix_cppflags=yes 2341 2342 if test "$cf_fix_cppflags" = yes ; then 2343 2344 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2345 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2346 2347 continue 2348 elif test "${cf_tst_cflags}" = "\"'" ; then 2349 2350 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2351 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2352 2353 continue 2354 fi 2355 ;; 2356 esac 2357 case "$CPPFLAGS" in 2358 (*$cf_add_cflags) 2359 ;; 2360 (*) 2361 case "$cf_add_cflags" in 2362 (-D*) 2363 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2364 2365CPPFLAGS=`echo "$CPPFLAGS" | \ 2366 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2367 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2368 2369 ;; 2370 esac 2371 2372 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 2373 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 2374 2375 ;; 2376 esac 2377 ;; 2378 (*) 2379 2380 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 2381 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 2382 2383 ;; 2384 esac 2385 ;; 2386(yes) 2387 2388 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2389 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2390 2391 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 2392 2393 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2394 && test -z "${cf_tst_cflags}" \ 2395 && cf_fix_cppflags=no 2396 ;; 2397esac 2398done 2399 2400if test -n "$cf_new_cflags" ; then 2401 2402 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 2403 CFLAGS="${CFLAGS}$cf_new_cflags" 2404 2405fi 2406 2407if test -n "$cf_new_cppflags" ; then 2408 2409 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 2410 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 2411 2412fi 2413 2414if test -n "$cf_new_extra_cppflags" ; then 2415 2416 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 2417 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 2418 2419fi 2420 2421 ;; 2422 (*) 2423 CC="$CC $cf_arg" 2424 ;; 2425 esac 2426 done 2427 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6 2428 2429echo "${as_me:-configure}:2429: testing resulting CC: '$CC' ..." 1>&5 2430 2431 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6 2432 2433echo "${as_me:-configure}:2433: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5 2434 2435 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6 2436 2437echo "${as_me:-configure}:2437: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5 2438 2439 ;; 2440(*) 2441 echo "$as_me:2441: result: ok" >&5 2442echo "${ECHO_T}ok" >&6 2443 ;; 2444esac 2445 2446# Find a good install program. We prefer a C program (faster), 2447# so one script is as good as another. But avoid the broken or 2448# incompatible versions: 2449# SysV /etc/install, /usr/sbin/install 2450# SunOS /usr/etc/install 2451# IRIX /sbin/install 2452# AIX /bin/install 2453# AmigaOS /C/install, which installs bootblocks on floppy discs 2454# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2455# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2456# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2457# ./install, which can be erroneously created by make from ./install.sh. 2458echo "$as_me:2458: checking for a BSD compatible install" >&5 2459echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 2460if test -z "$INSTALL"; then 2461if test "${ac_cv_path_install+set}" = set; then 2462 echo $ECHO_N "(cached) $ECHO_C" >&6 2463else 2464 ac_save_IFS=$IFS; IFS=$ac_path_separator 2465 for ac_dir in $PATH; do 2466 IFS=$ac_save_IFS 2467 # Account for people who put trailing slashes in PATH elements. 2468 case $ac_dir/ in 2469 / | ./ | .// | /cC/* \ 2470 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 2471 | /usr/ucb/* ) ;; 2472 *) 2473 # OSF1 and SCO ODT 3.0 have their own names for install. 2474 # Don't use installbsd from OSF since it installs stuff as root 2475 # by default. 2476 for ac_prog in ginstall scoinst install; do 2477 if $as_executable_p "$ac_dir/$ac_prog"; then 2478 if test $ac_prog = install && 2479 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2480 # AIX install. It has an incompatible calling convention. 2481 : 2482 elif test $ac_prog = install && 2483 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2484 # program-specific install script used by HP pwplus--don't use. 2485 : 2486 else 2487 ac_cv_path_install="$ac_dir/$ac_prog -c" 2488 break 2 2489 fi 2490 fi 2491 done 2492 ;; 2493 esac 2494 done 2495 2496fi 2497 if test "${ac_cv_path_install+set}" = set; then 2498 INSTALL=$ac_cv_path_install 2499 else 2500 # As a last resort, use the slow shell script. We don't cache a 2501 # path for INSTALL within a source directory, because that will 2502 # break other packages using the cache if that directory is 2503 # removed, or if the path is relative. 2504 INSTALL=$ac_install_sh 2505 fi 2506fi 2507echo "$as_me:2507: result: $INSTALL" >&5 2508echo "${ECHO_T}$INSTALL" >&6 2509 2510# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2511# It thinks the first close brace ends the variable substitution. 2512test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2513 2514test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2515 2516test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2517 2518if test -n "$ac_tool_prefix"; then 2519 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2520set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2521echo "$as_me:2521: checking for $ac_word" >&5 2522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2523if test "${ac_cv_prog_RANLIB+set}" = set; then 2524 echo $ECHO_N "(cached) $ECHO_C" >&6 2525else 2526 if test -n "$RANLIB"; then 2527 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2528else 2529 ac_save_IFS=$IFS; IFS=$ac_path_separator 2530ac_dummy="$PATH" 2531for ac_dir in $ac_dummy; do 2532 IFS=$ac_save_IFS 2533 test -z "$ac_dir" && ac_dir=. 2534 $as_executable_p "$ac_dir/$ac_word" || continue 2535ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2536echo "$as_me:2536: found $ac_dir/$ac_word" >&5 2537break 2538done 2539 2540fi 2541fi 2542RANLIB=$ac_cv_prog_RANLIB 2543if test -n "$RANLIB"; then 2544 echo "$as_me:2544: result: $RANLIB" >&5 2545echo "${ECHO_T}$RANLIB" >&6 2546else 2547 echo "$as_me:2547: result: no" >&5 2548echo "${ECHO_T}no" >&6 2549fi 2550 2551fi 2552if test -z "$ac_cv_prog_RANLIB"; then 2553 ac_ct_RANLIB=$RANLIB 2554 # Extract the first word of "ranlib", so it can be a program name with args. 2555set dummy ranlib; ac_word=$2 2556echo "$as_me:2556: checking for $ac_word" >&5 2557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2558if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2559 echo $ECHO_N "(cached) $ECHO_C" >&6 2560else 2561 if test -n "$ac_ct_RANLIB"; then 2562 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2563else 2564 ac_save_IFS=$IFS; IFS=$ac_path_separator 2565ac_dummy="$PATH" 2566for ac_dir in $ac_dummy; do 2567 IFS=$ac_save_IFS 2568 test -z "$ac_dir" && ac_dir=. 2569 $as_executable_p "$ac_dir/$ac_word" || continue 2570ac_cv_prog_ac_ct_RANLIB="ranlib" 2571echo "$as_me:2571: found $ac_dir/$ac_word" >&5 2572break 2573done 2574 2575 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'" 2576fi 2577fi 2578ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2579if test -n "$ac_ct_RANLIB"; then 2580 echo "$as_me:2580: result: $ac_ct_RANLIB" >&5 2581echo "${ECHO_T}$ac_ct_RANLIB" >&6 2582else 2583 echo "$as_me:2583: result: no" >&5 2584echo "${ECHO_T}no" >&6 2585fi 2586 2587 RANLIB=$ac_ct_RANLIB 2588else 2589 RANLIB="$ac_cv_prog_RANLIB" 2590fi 2591 2592if test -n "$ac_tool_prefix"; then 2593 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. 2594set dummy ${ac_tool_prefix}ld; ac_word=$2 2595echo "$as_me:2595: checking for $ac_word" >&5 2596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2597if test "${ac_cv_prog_LD+set}" = set; then 2598 echo $ECHO_N "(cached) $ECHO_C" >&6 2599else 2600 if test -n "$LD"; then 2601 ac_cv_prog_LD="$LD" # Let the user override the test. 2602else 2603 ac_save_IFS=$IFS; IFS=$ac_path_separator 2604ac_dummy="$PATH" 2605for ac_dir in $ac_dummy; do 2606 IFS=$ac_save_IFS 2607 test -z "$ac_dir" && ac_dir=. 2608 $as_executable_p "$ac_dir/$ac_word" || continue 2609ac_cv_prog_LD="${ac_tool_prefix}ld" 2610echo "$as_me:2610: found $ac_dir/$ac_word" >&5 2611break 2612done 2613 2614fi 2615fi 2616LD=$ac_cv_prog_LD 2617if test -n "$LD"; then 2618 echo "$as_me:2618: result: $LD" >&5 2619echo "${ECHO_T}$LD" >&6 2620else 2621 echo "$as_me:2621: result: no" >&5 2622echo "${ECHO_T}no" >&6 2623fi 2624 2625fi 2626if test -z "$ac_cv_prog_LD"; then 2627 ac_ct_LD=$LD 2628 # Extract the first word of "ld", so it can be a program name with args. 2629set dummy ld; ac_word=$2 2630echo "$as_me:2630: checking for $ac_word" >&5 2631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2632if test "${ac_cv_prog_ac_ct_LD+set}" = set; then 2633 echo $ECHO_N "(cached) $ECHO_C" >&6 2634else 2635 if test -n "$ac_ct_LD"; then 2636 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. 2637else 2638 ac_save_IFS=$IFS; IFS=$ac_path_separator 2639ac_dummy="$PATH" 2640for ac_dir in $ac_dummy; do 2641 IFS=$ac_save_IFS 2642 test -z "$ac_dir" && ac_dir=. 2643 $as_executable_p "$ac_dir/$ac_word" || continue 2644ac_cv_prog_ac_ct_LD="ld" 2645echo "$as_me:2645: found $ac_dir/$ac_word" >&5 2646break 2647done 2648 2649 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld" 2650fi 2651fi 2652ac_ct_LD=$ac_cv_prog_ac_ct_LD 2653if test -n "$ac_ct_LD"; then 2654 echo "$as_me:2654: result: $ac_ct_LD" >&5 2655echo "${ECHO_T}$ac_ct_LD" >&6 2656else 2657 echo "$as_me:2657: result: no" >&5 2658echo "${ECHO_T}no" >&6 2659fi 2660 2661 LD=$ac_ct_LD 2662else 2663 LD="$ac_cv_prog_LD" 2664fi 2665 2666if test -n "$ac_tool_prefix"; then 2667 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 2668set dummy ${ac_tool_prefix}ar; ac_word=$2 2669echo "$as_me:2669: checking for $ac_word" >&5 2670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2671if test "${ac_cv_prog_AR+set}" = set; then 2672 echo $ECHO_N "(cached) $ECHO_C" >&6 2673else 2674 if test -n "$AR"; then 2675 ac_cv_prog_AR="$AR" # Let the user override the test. 2676else 2677 ac_save_IFS=$IFS; IFS=$ac_path_separator 2678ac_dummy="$PATH" 2679for ac_dir in $ac_dummy; do 2680 IFS=$ac_save_IFS 2681 test -z "$ac_dir" && ac_dir=. 2682 $as_executable_p "$ac_dir/$ac_word" || continue 2683ac_cv_prog_AR="${ac_tool_prefix}ar" 2684echo "$as_me:2684: found $ac_dir/$ac_word" >&5 2685break 2686done 2687 2688fi 2689fi 2690AR=$ac_cv_prog_AR 2691if test -n "$AR"; then 2692 echo "$as_me:2692: result: $AR" >&5 2693echo "${ECHO_T}$AR" >&6 2694else 2695 echo "$as_me:2695: result: no" >&5 2696echo "${ECHO_T}no" >&6 2697fi 2698 2699fi 2700if test -z "$ac_cv_prog_AR"; then 2701 ac_ct_AR=$AR 2702 # Extract the first word of "ar", so it can be a program name with args. 2703set dummy ar; ac_word=$2 2704echo "$as_me:2704: checking for $ac_word" >&5 2705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2706if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 2707 echo $ECHO_N "(cached) $ECHO_C" >&6 2708else 2709 if test -n "$ac_ct_AR"; then 2710 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 2711else 2712 ac_save_IFS=$IFS; IFS=$ac_path_separator 2713ac_dummy="$PATH" 2714for ac_dir in $ac_dummy; do 2715 IFS=$ac_save_IFS 2716 test -z "$ac_dir" && ac_dir=. 2717 $as_executable_p "$ac_dir/$ac_word" || continue 2718ac_cv_prog_ac_ct_AR="ar" 2719echo "$as_me:2719: found $ac_dir/$ac_word" >&5 2720break 2721done 2722 2723 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" 2724fi 2725fi 2726ac_ct_AR=$ac_cv_prog_ac_ct_AR 2727if test -n "$ac_ct_AR"; then 2728 echo "$as_me:2728: result: $ac_ct_AR" >&5 2729echo "${ECHO_T}$ac_ct_AR" >&6 2730else 2731 echo "$as_me:2731: result: no" >&5 2732echo "${ECHO_T}no" >&6 2733fi 2734 2735 AR=$ac_ct_AR 2736else 2737 AR="$ac_cv_prog_AR" 2738fi 2739 2740if test -n "$ac_tool_prefix"; then 2741 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 2742set dummy ${ac_tool_prefix}ar; ac_word=$2 2743echo "$as_me:2743: checking for $ac_word" >&5 2744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2745if test "${ac_cv_prog_AR+set}" = set; then 2746 echo $ECHO_N "(cached) $ECHO_C" >&6 2747else 2748 if test -n "$AR"; then 2749 ac_cv_prog_AR="$AR" # Let the user override the test. 2750else 2751 ac_save_IFS=$IFS; IFS=$ac_path_separator 2752ac_dummy="$PATH" 2753for ac_dir in $ac_dummy; do 2754 IFS=$ac_save_IFS 2755 test -z "$ac_dir" && ac_dir=. 2756 $as_executable_p "$ac_dir/$ac_word" || continue 2757ac_cv_prog_AR="${ac_tool_prefix}ar" 2758echo "$as_me:2758: found $ac_dir/$ac_word" >&5 2759break 2760done 2761 2762fi 2763fi 2764AR=$ac_cv_prog_AR 2765if test -n "$AR"; then 2766 echo "$as_me:2766: result: $AR" >&5 2767echo "${ECHO_T}$AR" >&6 2768else 2769 echo "$as_me:2769: result: no" >&5 2770echo "${ECHO_T}no" >&6 2771fi 2772 2773fi 2774if test -z "$ac_cv_prog_AR"; then 2775 ac_ct_AR=$AR 2776 # Extract the first word of "ar", so it can be a program name with args. 2777set dummy ar; ac_word=$2 2778echo "$as_me:2778: checking for $ac_word" >&5 2779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2780if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 2781 echo $ECHO_N "(cached) $ECHO_C" >&6 2782else 2783 if test -n "$ac_ct_AR"; then 2784 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 2785else 2786 ac_save_IFS=$IFS; IFS=$ac_path_separator 2787ac_dummy="$PATH" 2788for ac_dir in $ac_dummy; do 2789 IFS=$ac_save_IFS 2790 test -z "$ac_dir" && ac_dir=. 2791 $as_executable_p "$ac_dir/$ac_word" || continue 2792ac_cv_prog_ac_ct_AR="ar" 2793echo "$as_me:2793: found $ac_dir/$ac_word" >&5 2794break 2795done 2796 2797 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" 2798fi 2799fi 2800ac_ct_AR=$ac_cv_prog_ac_ct_AR 2801if test -n "$ac_ct_AR"; then 2802 echo "$as_me:2802: result: $ac_ct_AR" >&5 2803echo "${ECHO_T}$ac_ct_AR" >&6 2804else 2805 echo "$as_me:2805: result: no" >&5 2806echo "${ECHO_T}no" >&6 2807fi 2808 2809 AR=$ac_ct_AR 2810else 2811 AR="$ac_cv_prog_AR" 2812fi 2813 2814echo "$as_me:2814: checking for options to update archives" >&5 2815echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6 2816if test "${cf_cv_ar_flags+set}" = set; then 2817 echo $ECHO_N "(cached) $ECHO_C" >&6 2818else 2819 2820 case "$cf_cv_system_name" in 2821 (*-msvc*) 2822 cf_cv_ar_flags='' 2823 cat >mk_static_lib.sh <<-EOF 2824 #!$SHELL 2825 MSVC_BIN="$AR" 2826 out="\$1" 2827 shift 2828 exec \$MSVC_BIN -out:"\$out" \$@ 2829 EOF 2830 chmod +x mk_static_lib.sh 2831 AR=`pwd`/mk_static_lib.sh 2832 ;; 2833 (*) 2834 cf_cv_ar_flags=unknown 2835 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv 2836 do 2837 2838 # check if $ARFLAGS already contains this choice 2839 if test "x$ARFLAGS" != "x" ; then 2840 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"` 2841 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then 2842 cf_cv_ar_flags= 2843 break 2844 fi 2845 fi 2846 2847 rm -f "conftest.$ac_cv_objext" 2848 rm -f conftest.a 2849 2850 cat >"conftest.$ac_ext" <<EOF 2851#line 2851 "configure" 2852int testdata[3] = { 123, 456, 789 }; 2853EOF 2854 if { (eval echo "$as_me:2854: \"$ac_compile\"") >&5 2855 (eval $ac_compile) 2>&5 2856 ac_status=$? 2857 echo "$as_me:2857: \$? = $ac_status" >&5 2858 (exit "$ac_status"); } ; then 2859 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5 2860 $AR $ARFLAGS "$cf_ar_flags" conftest.a "conftest.$ac_cv_objext" 2>&5 1>/dev/null 2861 if test -f conftest.a ; then 2862 cf_cv_ar_flags="$cf_ar_flags" 2863 break 2864 fi 2865 else 2866 test -n "$verbose" && echo " cannot compile test-program" 1>&6 2867 2868echo "${as_me:-configure}:2868: testing cannot compile test-program ..." 1>&5 2869 2870 break 2871 fi 2872 done 2873 rm -f conftest.a "conftest.$ac_ext" "conftest.$ac_cv_objext" 2874 ;; 2875 esac 2876 2877fi 2878echo "$as_me:2878: result: $cf_cv_ar_flags" >&5 2879echo "${ECHO_T}$cf_cv_ar_flags" >&6 2880 2881if test -n "$ARFLAGS" ; then 2882 if test -n "$cf_cv_ar_flags" ; then 2883 ARFLAGS="$ARFLAGS $cf_cv_ar_flags" 2884 fi 2885else 2886 ARFLAGS=$cf_cv_ar_flags 2887fi 2888 2889echo "$as_me:2889: checking if filesystem supports mixed-case filenames" >&5 2890echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6 2891if test "${cf_cv_mixedcase+set}" = set; then 2892 echo $ECHO_N "(cached) $ECHO_C" >&6 2893else 2894 2895if test "$cross_compiling" = yes ; then 2896 case "$target_alias" in 2897 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*) 2898 cf_cv_mixedcase=no 2899 ;; 2900 (*) 2901 cf_cv_mixedcase=yes 2902 ;; 2903 esac 2904else 2905 rm -f conftest CONFTEST 2906 echo test >conftest 2907 if test -f CONFTEST ; then 2908 cf_cv_mixedcase=no 2909 else 2910 cf_cv_mixedcase=yes 2911 fi 2912 rm -f conftest CONFTEST 2913fi 2914 2915fi 2916echo "$as_me:2916: result: $cf_cv_mixedcase" >&5 2917echo "${ECHO_T}$cf_cv_mixedcase" >&6 2918test "$cf_cv_mixedcase" = yes && 2919cat >>confdefs.h <<\EOF 2920#define MIXEDCASE_FILENAMES 1 2921EOF 2922 2923for ac_prog in exctags ctags 2924do 2925 # Extract the first word of "$ac_prog", so it can be a program name with args. 2926set dummy $ac_prog; ac_word=$2 2927echo "$as_me:2927: checking for $ac_word" >&5 2928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2929if test "${ac_cv_prog_CTAGS+set}" = set; then 2930 echo $ECHO_N "(cached) $ECHO_C" >&6 2931else 2932 if test -n "$CTAGS"; then 2933 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test. 2934else 2935 ac_save_IFS=$IFS; IFS=$ac_path_separator 2936ac_dummy="$PATH" 2937for ac_dir in $ac_dummy; do 2938 IFS=$ac_save_IFS 2939 test -z "$ac_dir" && ac_dir=. 2940 $as_executable_p "$ac_dir/$ac_word" || continue 2941ac_cv_prog_CTAGS="$ac_prog" 2942echo "$as_me:2942: found $ac_dir/$ac_word" >&5 2943break 2944done 2945 2946fi 2947fi 2948CTAGS=$ac_cv_prog_CTAGS 2949if test -n "$CTAGS"; then 2950 echo "$as_me:2950: result: $CTAGS" >&5 2951echo "${ECHO_T}$CTAGS" >&6 2952else 2953 echo "$as_me:2953: result: no" >&5 2954echo "${ECHO_T}no" >&6 2955fi 2956 2957 test -n "$CTAGS" && break 2958done 2959 2960for ac_prog in exetags etags 2961do 2962 # Extract the first word of "$ac_prog", so it can be a program name with args. 2963set dummy $ac_prog; ac_word=$2 2964echo "$as_me:2964: checking for $ac_word" >&5 2965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2966if test "${ac_cv_prog_ETAGS+set}" = set; then 2967 echo $ECHO_N "(cached) $ECHO_C" >&6 2968else 2969 if test -n "$ETAGS"; then 2970 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test. 2971else 2972 ac_save_IFS=$IFS; IFS=$ac_path_separator 2973ac_dummy="$PATH" 2974for ac_dir in $ac_dummy; do 2975 IFS=$ac_save_IFS 2976 test -z "$ac_dir" && ac_dir=. 2977 $as_executable_p "$ac_dir/$ac_word" || continue 2978ac_cv_prog_ETAGS="$ac_prog" 2979echo "$as_me:2979: found $ac_dir/$ac_word" >&5 2980break 2981done 2982 2983fi 2984fi 2985ETAGS=$ac_cv_prog_ETAGS 2986if test -n "$ETAGS"; then 2987 echo "$as_me:2987: result: $ETAGS" >&5 2988echo "${ECHO_T}$ETAGS" >&6 2989else 2990 echo "$as_me:2990: result: no" >&5 2991echo "${ECHO_T}no" >&6 2992fi 2993 2994 test -n "$ETAGS" && break 2995done 2996 2997# Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args. 2998set dummy ${CTAGS:-ctags}; ac_word=$2 2999echo "$as_me:2999: checking for $ac_word" >&5 3000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3001if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then 3002 echo $ECHO_N "(cached) $ECHO_C" >&6 3003else 3004 if test -n "$MAKE_LOWER_TAGS"; then 3005 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test. 3006else 3007 ac_save_IFS=$IFS; IFS=$ac_path_separator 3008ac_dummy="$PATH" 3009for ac_dir in $ac_dummy; do 3010 IFS=$ac_save_IFS 3011 test -z "$ac_dir" && ac_dir=. 3012 $as_executable_p "$ac_dir/$ac_word" || continue 3013ac_cv_prog_MAKE_LOWER_TAGS="yes" 3014echo "$as_me:3014: found $ac_dir/$ac_word" >&5 3015break 3016done 3017 3018 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no" 3019fi 3020fi 3021MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS 3022if test -n "$MAKE_LOWER_TAGS"; then 3023 echo "$as_me:3023: result: $MAKE_LOWER_TAGS" >&5 3024echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6 3025else 3026 echo "$as_me:3026: result: no" >&5 3027echo "${ECHO_T}no" >&6 3028fi 3029 3030if test "$cf_cv_mixedcase" = yes ; then 3031 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args. 3032set dummy ${ETAGS:-etags}; ac_word=$2 3033echo "$as_me:3033: checking for $ac_word" >&5 3034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3035if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then 3036 echo $ECHO_N "(cached) $ECHO_C" >&6 3037else 3038 if test -n "$MAKE_UPPER_TAGS"; then 3039 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test. 3040else 3041 ac_save_IFS=$IFS; IFS=$ac_path_separator 3042ac_dummy="$PATH" 3043for ac_dir in $ac_dummy; do 3044 IFS=$ac_save_IFS 3045 test -z "$ac_dir" && ac_dir=. 3046 $as_executable_p "$ac_dir/$ac_word" || continue 3047ac_cv_prog_MAKE_UPPER_TAGS="yes" 3048echo "$as_me:3048: found $ac_dir/$ac_word" >&5 3049break 3050done 3051 3052 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no" 3053fi 3054fi 3055MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS 3056if test -n "$MAKE_UPPER_TAGS"; then 3057 echo "$as_me:3057: result: $MAKE_UPPER_TAGS" >&5 3058echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6 3059else 3060 echo "$as_me:3060: result: no" >&5 3061echo "${ECHO_T}no" >&6 3062fi 3063 3064else 3065 MAKE_UPPER_TAGS=no 3066fi 3067 3068if test "$MAKE_UPPER_TAGS" = yes ; then 3069 MAKE_UPPER_TAGS= 3070else 3071 MAKE_UPPER_TAGS="#" 3072fi 3073 3074if test "$MAKE_LOWER_TAGS" = yes ; then 3075 MAKE_LOWER_TAGS= 3076else 3077 MAKE_LOWER_TAGS="#" 3078fi 3079 3080for ac_prog in lint cppcheck splint 3081do 3082 # Extract the first word of "$ac_prog", so it can be a program name with args. 3083set dummy $ac_prog; ac_word=$2 3084echo "$as_me:3084: checking for $ac_word" >&5 3085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3086if test "${ac_cv_prog_LINT+set}" = set; then 3087 echo $ECHO_N "(cached) $ECHO_C" >&6 3088else 3089 if test -n "$LINT"; then 3090 ac_cv_prog_LINT="$LINT" # Let the user override the test. 3091else 3092 ac_save_IFS=$IFS; IFS=$ac_path_separator 3093ac_dummy="$PATH" 3094for ac_dir in $ac_dummy; do 3095 IFS=$ac_save_IFS 3096 test -z "$ac_dir" && ac_dir=. 3097 $as_executable_p "$ac_dir/$ac_word" || continue 3098ac_cv_prog_LINT="$ac_prog" 3099echo "$as_me:3099: found $ac_dir/$ac_word" >&5 3100break 3101done 3102 3103fi 3104fi 3105LINT=$ac_cv_prog_LINT 3106if test -n "$LINT"; then 3107 echo "$as_me:3107: result: $LINT" >&5 3108echo "${ECHO_T}$LINT" >&6 3109else 3110 echo "$as_me:3110: result: no" >&5 3111echo "${ECHO_T}no" >&6 3112fi 3113 3114 test -n "$LINT" && break 3115done 3116 3117case "x$LINT" in 3118(xcppcheck|x*/cppcheck) 3119 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all" 3120 ;; 3121esac 3122 3123echo "$as_me:3123: checking if you want to see long compiling messages" >&5 3124echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6 3125 3126# Check whether --enable-echo or --disable-echo was given. 3127if test "${enable_echo+set}" = set; then 3128 enableval="$enable_echo" 3129 test "$enableval" != no && enableval=yes 3130 if test "$enableval" != "yes" ; then 3131 3132 ECHO_LT='--silent' 3133 ECHO_LD='@echo linking $@;' 3134 RULE_CC='@echo compiling $<' 3135 SHOW_CC='@echo compiling $@' 3136 ECHO_CC='@' 3137 3138 else 3139 3140 ECHO_LT='' 3141 ECHO_LD='' 3142 RULE_CC='' 3143 SHOW_CC='' 3144 ECHO_CC='' 3145 3146 fi 3147else 3148 enableval=yes 3149 3150 ECHO_LT='' 3151 ECHO_LD='' 3152 RULE_CC='' 3153 SHOW_CC='' 3154 ECHO_CC='' 3155 3156fi; 3157echo "$as_me:3157: result: $enableval" >&5 3158echo "${ECHO_T}$enableval" >&6 3159 3160echo "$as_me:3160: checking whether ${MAKE-make} sets \${MAKE}" >&5 3161echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 3162set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 3163if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 3164 echo $ECHO_N "(cached) $ECHO_C" >&6 3165else 3166 cat >conftest.make <<\EOF 3167all: 3168 @echo 'ac_maketemp="${MAKE}"' 3169EOF 3170# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3171eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 3172if test -n "$ac_maketemp"; then 3173 eval ac_cv_prog_make_${ac_make}_set=yes 3174else 3175 eval ac_cv_prog_make_${ac_make}_set=no 3176fi 3177rm -f conftest.make 3178fi 3179if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 3180 echo "$as_me:3180: result: yes" >&5 3181echo "${ECHO_T}yes" >&6 3182 SET_MAKE= 3183else 3184 echo "$as_me:3184: result: no" >&5 3185echo "${ECHO_T}no" >&6 3186 SET_MAKE="MAKE=${MAKE-make}" 3187fi 3188 3189echo "$as_me:3189: checking for an ANSI C-conforming const" >&5 3190echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 3191if test "${ac_cv_c_const+set}" = set; then 3192 echo $ECHO_N "(cached) $ECHO_C" >&6 3193else 3194 cat >"conftest.$ac_ext" <<_ACEOF 3195#line 3195 "configure" 3196#include "confdefs.h" 3197 3198int 3199main (void) 3200{ 3201/* FIXME: Include the comments suggested by Paul. */ 3202#ifndef __cplusplus 3203 /* Ultrix mips cc rejects this. */ 3204 typedef int charset[2]; 3205 const charset x; 3206 /* SunOS 4.1.1 cc rejects this. */ 3207 char const *const *ccp; 3208 char **p; 3209 /* NEC SVR4.0.2 mips cc rejects this. */ 3210 struct point {int x, y;}; 3211 static struct point const zero = {0,0}; 3212 /* AIX XL C 1.02.0.0 rejects this. 3213 It does not let you subtract one const X* pointer from another in 3214 an arm of an if-expression whose if-part is not a constant 3215 expression */ 3216 const char *g = "string"; 3217 ccp = &g + (g ? g-g : 0); 3218 /* HPUX 7.0 cc rejects these. */ 3219 ++ccp; 3220 p = (char**) ccp; 3221 ccp = (char const *const *) p; 3222 { /* SCO 3.2v4 cc rejects this. */ 3223 char *t; 3224 char const *s = 0 ? (char *) 0 : (char const *) 0; 3225 3226 *t++ = 0; 3227 } 3228 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 3229 int x[] = {25, 17}; 3230 const int *foo = &x[0]; 3231 ++foo; 3232 } 3233 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 3234 typedef const int *iptr; 3235 iptr p = 0; 3236 ++p; 3237 } 3238 { /* AIX XL C 1.02.0.0 rejects this saying 3239 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 3240 struct s { int j; const int *ap[3]; }; 3241 struct s *b; b->j = 5; 3242 } 3243 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 3244 const int foo = 10; 3245 } 3246#endif 3247 3248 ; 3249 return 0; 3250} 3251_ACEOF 3252rm -f "conftest.$ac_objext" 3253if { (eval echo "$as_me:3253: \"$ac_compile\"") >&5 3254 (eval $ac_compile) 2>&5 3255 ac_status=$? 3256 echo "$as_me:3256: \$? = $ac_status" >&5 3257 (exit "$ac_status"); } && 3258 { ac_try='test -s "conftest.$ac_objext"' 3259 { (eval echo "$as_me:3259: \"$ac_try\"") >&5 3260 (eval $ac_try) 2>&5 3261 ac_status=$? 3262 echo "$as_me:3262: \$? = $ac_status" >&5 3263 (exit "$ac_status"); }; }; then 3264 ac_cv_c_const=yes 3265else 3266 echo "$as_me: failed program was:" >&5 3267cat "conftest.$ac_ext" >&5 3268ac_cv_c_const=no 3269fi 3270rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3271fi 3272echo "$as_me:3272: result: $ac_cv_c_const" >&5 3273echo "${ECHO_T}$ac_cv_c_const" >&6 3274if test $ac_cv_c_const = no; then 3275 3276cat >>confdefs.h <<\EOF 3277#define const 3278EOF 3279 3280fi 3281 3282for ac_prog in ggrep grep 3283do 3284 # Extract the first word of "$ac_prog", so it can be a program name with args. 3285set dummy $ac_prog; ac_word=$2 3286echo "$as_me:3286: checking for $ac_word" >&5 3287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3288if test "${ac_cv_prog_GREP+set}" = set; then 3289 echo $ECHO_N "(cached) $ECHO_C" >&6 3290else 3291 if test -n "$GREP"; then 3292 ac_cv_prog_GREP="$GREP" # Let the user override the test. 3293else 3294 ac_save_IFS=$IFS; IFS=$ac_path_separator 3295ac_dummy="$PATH" 3296for ac_dir in $ac_dummy; do 3297 IFS=$ac_save_IFS 3298 test -z "$ac_dir" && ac_dir=. 3299 $as_executable_p "$ac_dir/$ac_word" || continue 3300ac_cv_prog_GREP="$ac_prog" 3301echo "$as_me:3301: found $ac_dir/$ac_word" >&5 3302break 3303done 3304 3305fi 3306fi 3307GREP=$ac_cv_prog_GREP 3308if test -n "$GREP"; then 3309 echo "$as_me:3309: result: $GREP" >&5 3310echo "${ECHO_T}$GREP" >&6 3311else 3312 echo "$as_me:3312: result: no" >&5 3313echo "${ECHO_T}no" >&6 3314fi 3315 3316 test -n "$GREP" && break 3317done 3318test -n "$GREP" || GREP=": " 3319 3320echo "$as_me:3320: checking for egrep" >&5 3321echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3322if test "${ac_cv_path_EGREP+set}" = set; then 3323 echo $ECHO_N "(cached) $ECHO_C" >&6 3324else 3325 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3326 then ac_cv_path_EGREP="$GREP -E" 3327 else 3328 for ac_prog in gegrep egrep 3329do 3330 # Extract the first word of "$ac_prog", so it can be a program name with args. 3331set dummy $ac_prog; ac_word=$2 3332echo "$as_me:3332: checking for $ac_word" >&5 3333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3334if test "${ac_cv_path_EGREP+set}" = set; then 3335 echo $ECHO_N "(cached) $ECHO_C" >&6 3336else 3337 case $EGREP in 3338 [\\/]* | ?:[\\/]*) 3339 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 3340 ;; 3341 *) 3342 ac_save_IFS=$IFS; IFS=$ac_path_separator 3343ac_dummy="$PATH" 3344for ac_dir in $ac_dummy; do 3345 IFS=$ac_save_IFS 3346 test -z "$ac_dir" && ac_dir=. 3347 if $as_executable_p "$ac_dir/$ac_word"; then 3348 ac_cv_path_EGREP="$ac_dir/$ac_word" 3349 echo "$as_me:3349: found $ac_dir/$ac_word" >&5 3350 break 3351fi 3352done 3353 3354 ;; 3355esac 3356fi 3357EGREP=$ac_cv_path_EGREP 3358 3359if test -n "$EGREP"; then 3360 echo "$as_me:3360: result: $EGREP" >&5 3361echo "${ECHO_T}$EGREP" >&6 3362else 3363 echo "$as_me:3363: result: no" >&5 3364echo "${ECHO_T}no" >&6 3365fi 3366 3367 test -n "$EGREP" && break 3368done 3369test -n "$EGREP" || EGREP=": " 3370 3371 test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:3371: error: cannot find workable egrep" >&5 3372echo "$as_me: error: cannot find workable egrep" >&2;} 3373 { (exit 1); exit 1; }; } 3374 fi 3375fi 3376echo "$as_me:3376: result: $ac_cv_path_EGREP" >&5 3377echo "${ECHO_T}$ac_cv_path_EGREP" >&6 3378 EGREP="$ac_cv_path_EGREP" 3379 3380ac_ext=c 3381ac_cpp='$CPP $CPPFLAGS' 3382ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 3383ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 3384ac_compiler_gnu=$ac_cv_c_compiler_gnu 3385ac_main_return="return" 3386echo "$as_me:3386: checking how to run the C preprocessor" >&5 3387echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3388# On Suns, sometimes $CPP names a directory. 3389if test -n "$CPP" && test -d "$CPP"; then 3390 CPP= 3391fi 3392if test -z "$CPP"; then 3393 if test "${ac_cv_prog_CPP+set}" = set; then 3394 echo $ECHO_N "(cached) $ECHO_C" >&6 3395else 3396 # Double quotes because CPP needs to be expanded 3397 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3398 do 3399 ac_preproc_ok=false 3400for ac_c_preproc_warn_flag in '' yes 3401do 3402 # Use a header file that comes with gcc, so configuring glibc 3403 # with a fresh cross-compiler works. 3404 # On the NeXT, cc -E runs the code through the compiler's parser, 3405 # not just through cpp. "Syntax error" is here to catch this case. 3406 cat >"conftest.$ac_ext" <<_ACEOF 3407#line 3407 "configure" 3408#include "confdefs.h" 3409#include <assert.h> 3410 Syntax error 3411_ACEOF 3412if { (eval echo "$as_me:3412: \"$ac_cpp "conftest.$ac_ext"\"") >&5 3413 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 3414 ac_status=$? 3415 $EGREP -v '^ *\+' conftest.er1 >conftest.err 3416 rm -f conftest.er1 3417 cat conftest.err >&5 3418 echo "$as_me:3418: \$? = $ac_status" >&5 3419 (exit "$ac_status"); } >/dev/null; then 3420 if test -s conftest.err; then 3421 ac_cpp_err=$ac_c_preproc_warn_flag 3422 else 3423 ac_cpp_err= 3424 fi 3425else 3426 ac_cpp_err=yes 3427fi 3428if test -z "$ac_cpp_err"; then 3429 : 3430else 3431 echo "$as_me: failed program was:" >&5 3432 cat "conftest.$ac_ext" >&5 3433 # Broken: fails on valid input. 3434continue 3435fi 3436rm -f conftest.err "conftest.$ac_ext" 3437 3438 # OK, works on sane cases. Now check whether non-existent headers 3439 # can be detected and how. 3440 cat >"conftest.$ac_ext" <<_ACEOF 3441#line 3441 "configure" 3442#include "confdefs.h" 3443#include <ac_nonexistent.h> 3444_ACEOF 3445if { (eval echo "$as_me:3445: \"$ac_cpp "conftest.$ac_ext"\"") >&5 3446 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 3447 ac_status=$? 3448 $EGREP -v '^ *\+' conftest.er1 >conftest.err 3449 rm -f conftest.er1 3450 cat conftest.err >&5 3451 echo "$as_me:3451: \$? = $ac_status" >&5 3452 (exit "$ac_status"); } >/dev/null; then 3453 if test -s conftest.err; then 3454 ac_cpp_err=$ac_c_preproc_warn_flag 3455 else 3456 ac_cpp_err= 3457 fi 3458else 3459 ac_cpp_err=yes 3460fi 3461if test -z "$ac_cpp_err"; then 3462 # Broken: success on invalid input. 3463continue 3464else 3465 echo "$as_me: failed program was:" >&5 3466 cat "conftest.$ac_ext" >&5 3467 # Passes both tests. 3468ac_preproc_ok=: 3469break 3470fi 3471rm -f conftest.err "conftest.$ac_ext" 3472 3473done 3474# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3475rm -f conftest.err "conftest.$ac_ext" 3476if $ac_preproc_ok; then 3477 break 3478fi 3479 3480 done 3481 ac_cv_prog_CPP=$CPP 3482 3483fi 3484 CPP=$ac_cv_prog_CPP 3485else 3486 ac_cv_prog_CPP=$CPP 3487fi 3488echo "$as_me:3488: result: $CPP" >&5 3489echo "${ECHO_T}$CPP" >&6 3490ac_preproc_ok=false 3491for ac_c_preproc_warn_flag in '' yes 3492do 3493 # Use a header file that comes with gcc, so configuring glibc 3494 # with a fresh cross-compiler works. 3495 # On the NeXT, cc -E runs the code through the compiler's parser, 3496 # not just through cpp. "Syntax error" is here to catch this case. 3497 cat >"conftest.$ac_ext" <<_ACEOF 3498#line 3498 "configure" 3499#include "confdefs.h" 3500#include <assert.h> 3501 Syntax error 3502_ACEOF 3503if { (eval echo "$as_me:3503: \"$ac_cpp "conftest.$ac_ext"\"") >&5 3504 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 3505 ac_status=$? 3506 $EGREP -v '^ *\+' conftest.er1 >conftest.err 3507 rm -f conftest.er1 3508 cat conftest.err >&5 3509 echo "$as_me:3509: \$? = $ac_status" >&5 3510 (exit "$ac_status"); } >/dev/null; then 3511 if test -s conftest.err; then 3512 ac_cpp_err=$ac_c_preproc_warn_flag 3513 else 3514 ac_cpp_err= 3515 fi 3516else 3517 ac_cpp_err=yes 3518fi 3519if test -z "$ac_cpp_err"; then 3520 : 3521else 3522 echo "$as_me: failed program was:" >&5 3523 cat "conftest.$ac_ext" >&5 3524 # Broken: fails on valid input. 3525continue 3526fi 3527rm -f conftest.err "conftest.$ac_ext" 3528 3529 # OK, works on sane cases. Now check whether non-existent headers 3530 # can be detected and how. 3531 cat >"conftest.$ac_ext" <<_ACEOF 3532#line 3532 "configure" 3533#include "confdefs.h" 3534#include <ac_nonexistent.h> 3535_ACEOF 3536if { (eval echo "$as_me:3536: \"$ac_cpp "conftest.$ac_ext"\"") >&5 3537 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 3538 ac_status=$? 3539 $EGREP -v '^ *\+' conftest.er1 >conftest.err 3540 rm -f conftest.er1 3541 cat conftest.err >&5 3542 echo "$as_me:3542: \$? = $ac_status" >&5 3543 (exit "$ac_status"); } >/dev/null; then 3544 if test -s conftest.err; then 3545 ac_cpp_err=$ac_c_preproc_warn_flag 3546 else 3547 ac_cpp_err= 3548 fi 3549else 3550 ac_cpp_err=yes 3551fi 3552if test -z "$ac_cpp_err"; then 3553 # Broken: success on invalid input. 3554continue 3555else 3556 echo "$as_me: failed program was:" >&5 3557 cat "conftest.$ac_ext" >&5 3558 # Passes both tests. 3559ac_preproc_ok=: 3560break 3561fi 3562rm -f conftest.err "conftest.$ac_ext" 3563 3564done 3565# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3566rm -f conftest.err "conftest.$ac_ext" 3567if $ac_preproc_ok; then 3568 : 3569else 3570 { { echo "$as_me:3570: error: C preprocessor \"$CPP\" fails sanity check" >&5 3571echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 3572 { (exit 1); exit 1; }; } 3573fi 3574 3575ac_ext=c 3576ac_cpp='$CPP $CPPFLAGS' 3577ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 3578ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 3579ac_compiler_gnu=$ac_cv_c_compiler_gnu 3580ac_main_return="return" 3581 3582echo "$as_me:3582: checking for ANSI C header files" >&5 3583echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3584if test "${ac_cv_header_stdc+set}" = set; then 3585 echo $ECHO_N "(cached) $ECHO_C" >&6 3586else 3587 cat >"conftest.$ac_ext" <<_ACEOF 3588#line 3588 "configure" 3589#include "confdefs.h" 3590#include <stdlib.h> 3591#include <stdarg.h> 3592#include <string.h> 3593#include <float.h> 3594 3595_ACEOF 3596if { (eval echo "$as_me:3596: \"$ac_cpp "conftest.$ac_ext"\"") >&5 3597 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 3598 ac_status=$? 3599 $EGREP -v '^ *\+' conftest.er1 >conftest.err 3600 rm -f conftest.er1 3601 cat conftest.err >&5 3602 echo "$as_me:3602: \$? = $ac_status" >&5 3603 (exit "$ac_status"); } >/dev/null; then 3604 if test -s conftest.err; then 3605 ac_cpp_err=$ac_c_preproc_warn_flag 3606 else 3607 ac_cpp_err= 3608 fi 3609else 3610 ac_cpp_err=yes 3611fi 3612if test -z "$ac_cpp_err"; then 3613 ac_cv_header_stdc=yes 3614else 3615 echo "$as_me: failed program was:" >&5 3616 cat "conftest.$ac_ext" >&5 3617 ac_cv_header_stdc=no 3618fi 3619rm -f conftest.err "conftest.$ac_ext" 3620 3621if test $ac_cv_header_stdc = yes; then 3622 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3623 cat >"conftest.$ac_ext" <<_ACEOF 3624#line 3624 "configure" 3625#include "confdefs.h" 3626#include <string.h> 3627 3628_ACEOF 3629if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3630 $EGREP "memchr" >/dev/null 2>&1; then 3631 : 3632else 3633 ac_cv_header_stdc=no 3634fi 3635rm -rf conftest* 3636 3637fi 3638 3639if test $ac_cv_header_stdc = yes; then 3640 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3641 cat >"conftest.$ac_ext" <<_ACEOF 3642#line 3642 "configure" 3643#include "confdefs.h" 3644#include <stdlib.h> 3645 3646_ACEOF 3647if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3648 $EGREP "free" >/dev/null 2>&1; then 3649 : 3650else 3651 ac_cv_header_stdc=no 3652fi 3653rm -rf conftest* 3654 3655fi 3656 3657if test $ac_cv_header_stdc = yes; then 3658 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3659 if test "$cross_compiling" = yes; then 3660 : 3661else 3662 cat >"conftest.$ac_ext" <<_ACEOF 3663#line 3663 "configure" 3664#include "confdefs.h" 3665#include <ctype.h> 3666#if ((' ' & 0x0FF) == 0x020) 3667# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3668# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3669#else 3670# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 3671 || ('j' <= (c) && (c) <= 'r') \ 3672 || ('s' <= (c) && (c) <= 'z')) 3673# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3674#endif 3675 3676#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3677int 3678main (void) 3679{ 3680 int i; 3681 for (i = 0; i < 256; i++) 3682 if (XOR (islower (i), ISLOWER (i)) 3683 || toupper (i) != TOUPPER (i)) 3684 $ac_main_return(2); 3685 $ac_main_return (0); 3686} 3687_ACEOF 3688rm -f "conftest$ac_exeext" 3689if { (eval echo "$as_me:3689: \"$ac_link\"") >&5 3690 (eval $ac_link) 2>&5 3691 ac_status=$? 3692 echo "$as_me:3692: \$? = $ac_status" >&5 3693 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 3694 { (eval echo "$as_me:3694: \"$ac_try\"") >&5 3695 (eval $ac_try) 2>&5 3696 ac_status=$? 3697 echo "$as_me:3697: \$? = $ac_status" >&5 3698 (exit "$ac_status"); }; }; then 3699 : 3700else 3701 echo "$as_me: program exited with status $ac_status" >&5 3702echo "$as_me: failed program was:" >&5 3703cat "conftest.$ac_ext" >&5 3704ac_cv_header_stdc=no 3705fi 3706rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 3707fi 3708fi 3709fi 3710echo "$as_me:3710: result: $ac_cv_header_stdc" >&5 3711echo "${ECHO_T}$ac_cv_header_stdc" >&6 3712if test $ac_cv_header_stdc = yes; then 3713 3714cat >>confdefs.h <<\EOF 3715#define STDC_HEADERS 1 3716EOF 3717 3718fi 3719 3720# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3721 3722for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3723 inttypes.h stdint.h unistd.h 3724do 3725as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3726echo "$as_me:3726: checking for $ac_header" >&5 3727echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3728if eval "test \"\${$as_ac_Header+set}\" = set"; then 3729 echo $ECHO_N "(cached) $ECHO_C" >&6 3730else 3731 cat >"conftest.$ac_ext" <<_ACEOF 3732#line 3732 "configure" 3733#include "confdefs.h" 3734$ac_includes_default 3735#include <$ac_header> 3736_ACEOF 3737rm -f "conftest.$ac_objext" 3738if { (eval echo "$as_me:3738: \"$ac_compile\"") >&5 3739 (eval $ac_compile) 2>&5 3740 ac_status=$? 3741 echo "$as_me:3741: \$? = $ac_status" >&5 3742 (exit "$ac_status"); } && 3743 { ac_try='test -s "conftest.$ac_objext"' 3744 { (eval echo "$as_me:3744: \"$ac_try\"") >&5 3745 (eval $ac_try) 2>&5 3746 ac_status=$? 3747 echo "$as_me:3747: \$? = $ac_status" >&5 3748 (exit "$ac_status"); }; }; then 3749 eval "$as_ac_Header=yes" 3750else 3751 echo "$as_me: failed program was:" >&5 3752cat "conftest.$ac_ext" >&5 3753eval "$as_ac_Header=no" 3754fi 3755rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3756fi 3757echo "$as_me:3757: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 3758echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 3759if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 3760 cat >>confdefs.h <<EOF 3761#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3762EOF 3763 3764fi 3765done 3766 3767echo "$as_me:3767: checking for size_t" >&5 3768echo $ECHO_N "checking for size_t... $ECHO_C" >&6 3769if test "${ac_cv_type_size_t+set}" = set; then 3770 echo $ECHO_N "(cached) $ECHO_C" >&6 3771else 3772 cat >"conftest.$ac_ext" <<_ACEOF 3773#line 3773 "configure" 3774#include "confdefs.h" 3775$ac_includes_default 3776int 3777main (void) 3778{ 3779if ((size_t *) 0) 3780 return 0; 3781if (sizeof (size_t)) 3782 return 0; 3783 ; 3784 return 0; 3785} 3786_ACEOF 3787rm -f "conftest.$ac_objext" 3788if { (eval echo "$as_me:3788: \"$ac_compile\"") >&5 3789 (eval $ac_compile) 2>&5 3790 ac_status=$? 3791 echo "$as_me:3791: \$? = $ac_status" >&5 3792 (exit "$ac_status"); } && 3793 { ac_try='test -s "conftest.$ac_objext"' 3794 { (eval echo "$as_me:3794: \"$ac_try\"") >&5 3795 (eval $ac_try) 2>&5 3796 ac_status=$? 3797 echo "$as_me:3797: \$? = $ac_status" >&5 3798 (exit "$ac_status"); }; }; then 3799 ac_cv_type_size_t=yes 3800else 3801 echo "$as_me: failed program was:" >&5 3802cat "conftest.$ac_ext" >&5 3803ac_cv_type_size_t=no 3804fi 3805rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3806fi 3807echo "$as_me:3807: result: $ac_cv_type_size_t" >&5 3808echo "${ECHO_T}$ac_cv_type_size_t" >&6 3809if test "$ac_cv_type_size_t" = yes; then 3810 : 3811else 3812 3813cat >>confdefs.h <<EOF 3814#define size_t unsigned 3815EOF 3816 3817fi 3818 3819echo "$as_me:3819: checking if the POSIX test-macros are already defined" >&5 3820echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6 3821if test "${cf_cv_posix_visible+set}" = set; then 3822 echo $ECHO_N "(cached) $ECHO_C" >&6 3823else 3824 3825cat >"conftest.$ac_ext" <<_ACEOF 3826#line 3826 "configure" 3827#include "confdefs.h" 3828#include <stdio.h> 3829int 3830main (void) 3831{ 3832 3833#if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \ 3834 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \ 3835 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \ 3836 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0) 3837#error conflicting symbols found 3838#endif 3839 3840 ; 3841 return 0; 3842} 3843_ACEOF 3844rm -f "conftest.$ac_objext" 3845if { (eval echo "$as_me:3845: \"$ac_compile\"") >&5 3846 (eval $ac_compile) 2>&5 3847 ac_status=$? 3848 echo "$as_me:3848: \$? = $ac_status" >&5 3849 (exit "$ac_status"); } && 3850 { ac_try='test -s "conftest.$ac_objext"' 3851 { (eval echo "$as_me:3851: \"$ac_try\"") >&5 3852 (eval $ac_try) 2>&5 3853 ac_status=$? 3854 echo "$as_me:3854: \$? = $ac_status" >&5 3855 (exit "$ac_status"); }; }; then 3856 cf_cv_posix_visible=no 3857else 3858 echo "$as_me: failed program was:" >&5 3859cat "conftest.$ac_ext" >&5 3860cf_cv_posix_visible=yes 3861fi 3862rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3863 3864fi 3865echo "$as_me:3865: result: $cf_cv_posix_visible" >&5 3866echo "${ECHO_T}$cf_cv_posix_visible" >&6 3867 3868if test "$cf_cv_posix_visible" = no; then 3869 3870cf_XOPEN_SOURCE=500 3871cf_POSIX_C_SOURCE=199506L 3872cf_xopen_source= 3873 3874case "$host_os" in 3875(aix[4-7]*) 3876 cf_xopen_source="-D_ALL_SOURCE" 3877 ;; 3878(msys) 3879 cf_XOPEN_SOURCE=600 3880 ;; 3881(darwin[0-8].*) 3882 cf_xopen_source="-D_APPLE_C_SOURCE" 3883 ;; 3884(darwin*) 3885 cf_xopen_source="-D_DARWIN_C_SOURCE" 3886 cf_XOPEN_SOURCE= 3887 ;; 3888(freebsd*|dragonfly*|midnightbsd*) 3889 # 5.x headers associate 3890 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L 3891 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L 3892 cf_POSIX_C_SOURCE=200112L 3893 cf_XOPEN_SOURCE=600 3894 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 3895 ;; 3896(hpux11*) 3897 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500" 3898 ;; 3899(hpux*) 3900 cf_xopen_source="-D_HPUX_SOURCE" 3901 ;; 3902(irix[56].*) 3903 cf_xopen_source="-D_SGI_SOURCE" 3904 cf_XOPEN_SOURCE= 3905 ;; 3906(linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin) 3907 3908cf_gnu_xopen_source=$cf_XOPEN_SOURCE 3909 3910echo "$as_me:3910: checking if this is the GNU C library" >&5 3911echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6 3912if test "${cf_cv_gnu_library+set}" = set; then 3913 echo $ECHO_N "(cached) $ECHO_C" >&6 3914else 3915 3916cat >"conftest.$ac_ext" <<_ACEOF 3917#line 3917 "configure" 3918#include "confdefs.h" 3919#include <sys/types.h> 3920int 3921main (void) 3922{ 3923 3924 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0 3925 return 0; 3926 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0 3927 return 0; 3928 #else 3929 # error not GNU C library 3930 #endif 3931 ; 3932 return 0; 3933} 3934_ACEOF 3935rm -f "conftest.$ac_objext" 3936if { (eval echo "$as_me:3936: \"$ac_compile\"") >&5 3937 (eval $ac_compile) 2>&5 3938 ac_status=$? 3939 echo "$as_me:3939: \$? = $ac_status" >&5 3940 (exit "$ac_status"); } && 3941 { ac_try='test -s "conftest.$ac_objext"' 3942 { (eval echo "$as_me:3942: \"$ac_try\"") >&5 3943 (eval $ac_try) 2>&5 3944 ac_status=$? 3945 echo "$as_me:3945: \$? = $ac_status" >&5 3946 (exit "$ac_status"); }; }; then 3947 cf_cv_gnu_library=yes 3948else 3949 echo "$as_me: failed program was:" >&5 3950cat "conftest.$ac_ext" >&5 3951cf_cv_gnu_library=no 3952fi 3953rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3954 3955fi 3956echo "$as_me:3956: result: $cf_cv_gnu_library" >&5 3957echo "${ECHO_T}$cf_cv_gnu_library" >&6 3958 3959if test x$cf_cv_gnu_library = xyes; then 3960 3961 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE 3962 # was changed to help a little. newlib incorporated the change about 4 3963 # years later. 3964 echo "$as_me:3964: checking if _DEFAULT_SOURCE can be used as a basis" >&5 3965echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6 3966if test "${cf_cv_gnu_library_219+set}" = set; then 3967 echo $ECHO_N "(cached) $ECHO_C" >&6 3968else 3969 3970 cf_save="$CPPFLAGS" 3971 3972 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3973 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE" 3974 3975 cat >"conftest.$ac_ext" <<_ACEOF 3976#line 3976 "configure" 3977#include "confdefs.h" 3978#include <sys/types.h> 3979int 3980main (void) 3981{ 3982 3983 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2) 3984 return 0; 3985 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3) 3986 return 0; 3987 #else 3988 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old 3989 #endif 3990 ; 3991 return 0; 3992} 3993_ACEOF 3994rm -f "conftest.$ac_objext" 3995if { (eval echo "$as_me:3995: \"$ac_compile\"") >&5 3996 (eval $ac_compile) 2>&5 3997 ac_status=$? 3998 echo "$as_me:3998: \$? = $ac_status" >&5 3999 (exit "$ac_status"); } && 4000 { ac_try='test -s "conftest.$ac_objext"' 4001 { (eval echo "$as_me:4001: \"$ac_try\"") >&5 4002 (eval $ac_try) 2>&5 4003 ac_status=$? 4004 echo "$as_me:4004: \$? = $ac_status" >&5 4005 (exit "$ac_status"); }; }; then 4006 cf_cv_gnu_library_219=yes 4007else 4008 echo "$as_me: failed program was:" >&5 4009cat "conftest.$ac_ext" >&5 4010cf_cv_gnu_library_219=no 4011fi 4012rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4013 CPPFLAGS="$cf_save" 4014 4015fi 4016echo "$as_me:4016: result: $cf_cv_gnu_library_219" >&5 4017echo "${ECHO_T}$cf_cv_gnu_library_219" >&6 4018 4019 if test "x$cf_cv_gnu_library_219" = xyes; then 4020 cf_save="$CPPFLAGS" 4021 echo "$as_me:4021: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5 4022echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6 4023if test "${cf_cv_gnu_dftsrc_219+set}" = set; then 4024 echo $ECHO_N "(cached) $ECHO_C" >&6 4025else 4026 4027cf_fix_cppflags=no 4028cf_new_cflags= 4029cf_new_cppflags= 4030cf_new_extra_cppflags= 4031 4032for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source 4033do 4034case "$cf_fix_cppflags" in 4035(no) 4036 case "$cf_add_cflags" in 4037 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 4038 case "$cf_add_cflags" in 4039 (-D*) 4040 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4041 4042 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4043 && test -z "${cf_tst_cflags}" \ 4044 && cf_fix_cppflags=yes 4045 4046 if test "$cf_fix_cppflags" = yes ; then 4047 4048 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4049 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4050 4051 continue 4052 elif test "${cf_tst_cflags}" = "\"'" ; then 4053 4054 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4055 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4056 4057 continue 4058 fi 4059 ;; 4060 esac 4061 case "$CPPFLAGS" in 4062 (*$cf_add_cflags) 4063 ;; 4064 (*) 4065 case "$cf_add_cflags" in 4066 (-D*) 4067 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4068 4069CPPFLAGS=`echo "$CPPFLAGS" | \ 4070 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4071 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4072 4073 ;; 4074 esac 4075 4076 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 4077 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 4078 4079 ;; 4080 esac 4081 ;; 4082 (*) 4083 4084 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 4085 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 4086 4087 ;; 4088 esac 4089 ;; 4090(yes) 4091 4092 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4093 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4094 4095 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 4096 4097 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4098 && test -z "${cf_tst_cflags}" \ 4099 && cf_fix_cppflags=no 4100 ;; 4101esac 4102done 4103 4104if test -n "$cf_new_cflags" ; then 4105 4106 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 4107 CFLAGS="${CFLAGS}$cf_new_cflags" 4108 4109fi 4110 4111if test -n "$cf_new_cppflags" ; then 4112 4113 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4114 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 4115 4116fi 4117 4118if test -n "$cf_new_extra_cppflags" ; then 4119 4120 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 4121 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 4122 4123fi 4124 4125 cat >"conftest.$ac_ext" <<_ACEOF 4126#line 4126 "configure" 4127#include "confdefs.h" 4128 4129 #include <limits.h> 4130 #include <sys/types.h> 4131 4132int 4133main (void) 4134{ 4135 4136 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1) 4137 return 0; 4138 #else 4139 # error GNU C library is too old 4140 #endif 4141 ; 4142 return 0; 4143} 4144_ACEOF 4145rm -f "conftest.$ac_objext" 4146if { (eval echo "$as_me:4146: \"$ac_compile\"") >&5 4147 (eval $ac_compile) 2>&5 4148 ac_status=$? 4149 echo "$as_me:4149: \$? = $ac_status" >&5 4150 (exit "$ac_status"); } && 4151 { ac_try='test -s "conftest.$ac_objext"' 4152 { (eval echo "$as_me:4152: \"$ac_try\"") >&5 4153 (eval $ac_try) 2>&5 4154 ac_status=$? 4155 echo "$as_me:4155: \$? = $ac_status" >&5 4156 (exit "$ac_status"); }; }; then 4157 cf_cv_gnu_dftsrc_219=yes 4158else 4159 echo "$as_me: failed program was:" >&5 4160cat "conftest.$ac_ext" >&5 4161cf_cv_gnu_dftsrc_219=no 4162fi 4163rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4164 4165fi 4166echo "$as_me:4166: result: $cf_cv_gnu_dftsrc_219" >&5 4167echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6 4168 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save" 4169 else 4170 cf_cv_gnu_dftsrc_219=maybe 4171 fi 4172 4173 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then 4174 4175 echo "$as_me:4175: checking if we must define _GNU_SOURCE" >&5 4176echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6 4177if test "${cf_cv_gnu_source+set}" = set; then 4178 echo $ECHO_N "(cached) $ECHO_C" >&6 4179else 4180 4181 cat >"conftest.$ac_ext" <<_ACEOF 4182#line 4182 "configure" 4183#include "confdefs.h" 4184#include <sys/types.h> 4185int 4186main (void) 4187{ 4188 4189 #ifndef _XOPEN_SOURCE 4190 #error expected _XOPEN_SOURCE to be defined 4191 #endif 4192 ; 4193 return 0; 4194} 4195_ACEOF 4196rm -f "conftest.$ac_objext" 4197if { (eval echo "$as_me:4197: \"$ac_compile\"") >&5 4198 (eval $ac_compile) 2>&5 4199 ac_status=$? 4200 echo "$as_me:4200: \$? = $ac_status" >&5 4201 (exit "$ac_status"); } && 4202 { ac_try='test -s "conftest.$ac_objext"' 4203 { (eval echo "$as_me:4203: \"$ac_try\"") >&5 4204 (eval $ac_try) 2>&5 4205 ac_status=$? 4206 echo "$as_me:4206: \$? = $ac_status" >&5 4207 (exit "$ac_status"); }; }; then 4208 cf_cv_gnu_source=no 4209else 4210 echo "$as_me: failed program was:" >&5 4211cat "conftest.$ac_ext" >&5 4212cf_save="$CPPFLAGS" 4213 4214cf_fix_cppflags=no 4215cf_new_cflags= 4216cf_new_cppflags= 4217cf_new_extra_cppflags= 4218 4219for cf_add_cflags in -D_GNU_SOURCE 4220do 4221case "$cf_fix_cppflags" in 4222(no) 4223 case "$cf_add_cflags" in 4224 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 4225 case "$cf_add_cflags" in 4226 (-D*) 4227 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4228 4229 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4230 && test -z "${cf_tst_cflags}" \ 4231 && cf_fix_cppflags=yes 4232 4233 if test "$cf_fix_cppflags" = yes ; then 4234 4235 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4236 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4237 4238 continue 4239 elif test "${cf_tst_cflags}" = "\"'" ; then 4240 4241 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4242 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4243 4244 continue 4245 fi 4246 ;; 4247 esac 4248 case "$CPPFLAGS" in 4249 (*$cf_add_cflags) 4250 ;; 4251 (*) 4252 case "$cf_add_cflags" in 4253 (-D*) 4254 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4255 4256CPPFLAGS=`echo "$CPPFLAGS" | \ 4257 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4258 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4259 4260 ;; 4261 esac 4262 4263 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 4264 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 4265 4266 ;; 4267 esac 4268 ;; 4269 (*) 4270 4271 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 4272 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 4273 4274 ;; 4275 esac 4276 ;; 4277(yes) 4278 4279 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4280 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4281 4282 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 4283 4284 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4285 && test -z "${cf_tst_cflags}" \ 4286 && cf_fix_cppflags=no 4287 ;; 4288esac 4289done 4290 4291if test -n "$cf_new_cflags" ; then 4292 4293 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 4294 CFLAGS="${CFLAGS}$cf_new_cflags" 4295 4296fi 4297 4298if test -n "$cf_new_cppflags" ; then 4299 4300 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4301 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 4302 4303fi 4304 4305if test -n "$cf_new_extra_cppflags" ; then 4306 4307 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 4308 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 4309 4310fi 4311 4312 cat >"conftest.$ac_ext" <<_ACEOF 4313#line 4313 "configure" 4314#include "confdefs.h" 4315#include <sys/types.h> 4316int 4317main (void) 4318{ 4319 4320 #ifdef _XOPEN_SOURCE 4321 #error expected _XOPEN_SOURCE to be undefined 4322 #endif 4323 ; 4324 return 0; 4325} 4326_ACEOF 4327rm -f "conftest.$ac_objext" 4328if { (eval echo "$as_me:4328: \"$ac_compile\"") >&5 4329 (eval $ac_compile) 2>&5 4330 ac_status=$? 4331 echo "$as_me:4331: \$? = $ac_status" >&5 4332 (exit "$ac_status"); } && 4333 { ac_try='test -s "conftest.$ac_objext"' 4334 { (eval echo "$as_me:4334: \"$ac_try\"") >&5 4335 (eval $ac_try) 2>&5 4336 ac_status=$? 4337 echo "$as_me:4337: \$? = $ac_status" >&5 4338 (exit "$ac_status"); }; }; then 4339 cf_cv_gnu_source=no 4340else 4341 echo "$as_me: failed program was:" >&5 4342cat "conftest.$ac_ext" >&5 4343cf_cv_gnu_source=yes 4344fi 4345rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4346 CPPFLAGS="$cf_save" 4347 4348fi 4349rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4350 4351fi 4352echo "$as_me:4352: result: $cf_cv_gnu_source" >&5 4353echo "${ECHO_T}$cf_cv_gnu_source" >&6 4354 4355 if test "$cf_cv_gnu_source" = yes 4356 then 4357 echo "$as_me:4357: checking if we should also define _DEFAULT_SOURCE" >&5 4358echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6 4359if test "${cf_cv_default_source+set}" = set; then 4360 echo $ECHO_N "(cached) $ECHO_C" >&6 4361else 4362 4363 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4364 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE" 4365 4366 cat >"conftest.$ac_ext" <<_ACEOF 4367#line 4367 "configure" 4368#include "confdefs.h" 4369#include <sys/types.h> 4370int 4371main (void) 4372{ 4373 4374 #ifdef _DEFAULT_SOURCE 4375 #error expected _DEFAULT_SOURCE to be undefined 4376 #endif 4377 ; 4378 return 0; 4379} 4380_ACEOF 4381rm -f "conftest.$ac_objext" 4382if { (eval echo "$as_me:4382: \"$ac_compile\"") >&5 4383 (eval $ac_compile) 2>&5 4384 ac_status=$? 4385 echo "$as_me:4385: \$? = $ac_status" >&5 4386 (exit "$ac_status"); } && 4387 { ac_try='test -s "conftest.$ac_objext"' 4388 { (eval echo "$as_me:4388: \"$ac_try\"") >&5 4389 (eval $ac_try) 2>&5 4390 ac_status=$? 4391 echo "$as_me:4391: \$? = $ac_status" >&5 4392 (exit "$ac_status"); }; }; then 4393 cf_cv_default_source=no 4394else 4395 echo "$as_me: failed program was:" >&5 4396cat "conftest.$ac_ext" >&5 4397cf_cv_default_source=yes 4398fi 4399rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4400 4401fi 4402echo "$as_me:4402: result: $cf_cv_default_source" >&5 4403echo "${ECHO_T}$cf_cv_default_source" >&6 4404 if test "$cf_cv_default_source" = yes 4405 then 4406 4407 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4408 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE" 4409 4410 fi 4411 fi 4412 fi 4413 4414fi 4415 4416 ;; 4417(minix*) 4418 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this... 4419 ;; 4420(mirbsd*) 4421 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types 4422 cf_XOPEN_SOURCE= 4423 4424if test "$cf_cv_posix_visible" = no; then 4425 4426cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 4427 4428cf_save_CFLAGS="$CFLAGS" 4429cf_save_CPPFLAGS="$CPPFLAGS" 4430 4431cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 4432 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 4433 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 4434 4435cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 4436 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 4437 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 4438 4439echo "$as_me:4439: checking if we should define _POSIX_C_SOURCE" >&5 4440echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 4441if test "${cf_cv_posix_c_source+set}" = set; then 4442 echo $ECHO_N "(cached) $ECHO_C" >&6 4443else 4444 4445echo "${as_me:-configure}:4445: testing if the symbol is already defined go no further ..." 1>&5 4446 4447 cat >"conftest.$ac_ext" <<_ACEOF 4448#line 4448 "configure" 4449#include "confdefs.h" 4450#include <sys/types.h> 4451int 4452main (void) 4453{ 4454 4455#ifndef _POSIX_C_SOURCE 4456make an error 4457#endif 4458 ; 4459 return 0; 4460} 4461_ACEOF 4462rm -f "conftest.$ac_objext" 4463if { (eval echo "$as_me:4463: \"$ac_compile\"") >&5 4464 (eval $ac_compile) 2>&5 4465 ac_status=$? 4466 echo "$as_me:4466: \$? = $ac_status" >&5 4467 (exit "$ac_status"); } && 4468 { ac_try='test -s "conftest.$ac_objext"' 4469 { (eval echo "$as_me:4469: \"$ac_try\"") >&5 4470 (eval $ac_try) 2>&5 4471 ac_status=$? 4472 echo "$as_me:4472: \$? = $ac_status" >&5 4473 (exit "$ac_status"); }; }; then 4474 cf_cv_posix_c_source=no 4475else 4476 echo "$as_me: failed program was:" >&5 4477cat "conftest.$ac_ext" >&5 4478cf_want_posix_source=no 4479 case .$cf_POSIX_C_SOURCE in 4480 (.[12]??*) 4481 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 4482 ;; 4483 (.2) 4484 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 4485 cf_want_posix_source=yes 4486 ;; 4487 (.*) 4488 cf_want_posix_source=yes 4489 ;; 4490 esac 4491 if test "$cf_want_posix_source" = yes ; then 4492 cat >"conftest.$ac_ext" <<_ACEOF 4493#line 4493 "configure" 4494#include "confdefs.h" 4495#include <sys/types.h> 4496int 4497main (void) 4498{ 4499 4500#ifdef _POSIX_SOURCE 4501make an error 4502#endif 4503 ; 4504 return 0; 4505} 4506_ACEOF 4507rm -f "conftest.$ac_objext" 4508if { (eval echo "$as_me:4508: \"$ac_compile\"") >&5 4509 (eval $ac_compile) 2>&5 4510 ac_status=$? 4511 echo "$as_me:4511: \$? = $ac_status" >&5 4512 (exit "$ac_status"); } && 4513 { ac_try='test -s "conftest.$ac_objext"' 4514 { (eval echo "$as_me:4514: \"$ac_try\"") >&5 4515 (eval $ac_try) 2>&5 4516 ac_status=$? 4517 echo "$as_me:4517: \$? = $ac_status" >&5 4518 (exit "$ac_status"); }; }; then 4519 : 4520else 4521 echo "$as_me: failed program was:" >&5 4522cat "conftest.$ac_ext" >&5 4523cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 4524fi 4525rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4526 fi 4527 4528echo "${as_me:-configure}:4528: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 4529 4530 CFLAGS="$cf_trim_CFLAGS" 4531 CPPFLAGS="$cf_trim_CPPFLAGS" 4532 4533 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4534 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source" 4535 4536echo "${as_me:-configure}:4536: testing if the second compile does not leave our definition intact error ..." 1>&5 4537 4538 cat >"conftest.$ac_ext" <<_ACEOF 4539#line 4539 "configure" 4540#include "confdefs.h" 4541#include <sys/types.h> 4542int 4543main (void) 4544{ 4545 4546#ifndef _POSIX_C_SOURCE 4547make an error 4548#endif 4549 ; 4550 return 0; 4551} 4552_ACEOF 4553rm -f "conftest.$ac_objext" 4554if { (eval echo "$as_me:4554: \"$ac_compile\"") >&5 4555 (eval $ac_compile) 2>&5 4556 ac_status=$? 4557 echo "$as_me:4557: \$? = $ac_status" >&5 4558 (exit "$ac_status"); } && 4559 { ac_try='test -s "conftest.$ac_objext"' 4560 { (eval echo "$as_me:4560: \"$ac_try\"") >&5 4561 (eval $ac_try) 2>&5 4562 ac_status=$? 4563 echo "$as_me:4563: \$? = $ac_status" >&5 4564 (exit "$ac_status"); }; }; then 4565 : 4566else 4567 echo "$as_me: failed program was:" >&5 4568cat "conftest.$ac_ext" >&5 4569cf_cv_posix_c_source=no 4570fi 4571rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4572 CFLAGS="$cf_save_CFLAGS" 4573 CPPFLAGS="$cf_save_CPPFLAGS" 4574 4575fi 4576rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4577 4578fi 4579echo "$as_me:4579: result: $cf_cv_posix_c_source" >&5 4580echo "${ECHO_T}$cf_cv_posix_c_source" >&6 4581 4582if test "$cf_cv_posix_c_source" != no ; then 4583 CFLAGS="$cf_trim_CFLAGS" 4584 CPPFLAGS="$cf_trim_CPPFLAGS" 4585 4586cf_fix_cppflags=no 4587cf_new_cflags= 4588cf_new_cppflags= 4589cf_new_extra_cppflags= 4590 4591for cf_add_cflags in $cf_cv_posix_c_source 4592do 4593case "$cf_fix_cppflags" in 4594(no) 4595 case "$cf_add_cflags" in 4596 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 4597 case "$cf_add_cflags" in 4598 (-D*) 4599 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4600 4601 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4602 && test -z "${cf_tst_cflags}" \ 4603 && cf_fix_cppflags=yes 4604 4605 if test "$cf_fix_cppflags" = yes ; then 4606 4607 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4608 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4609 4610 continue 4611 elif test "${cf_tst_cflags}" = "\"'" ; then 4612 4613 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4614 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4615 4616 continue 4617 fi 4618 ;; 4619 esac 4620 case "$CPPFLAGS" in 4621 (*$cf_add_cflags) 4622 ;; 4623 (*) 4624 case "$cf_add_cflags" in 4625 (-D*) 4626 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4627 4628CPPFLAGS=`echo "$CPPFLAGS" | \ 4629 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4630 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4631 4632 ;; 4633 esac 4634 4635 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 4636 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 4637 4638 ;; 4639 esac 4640 ;; 4641 (*) 4642 4643 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 4644 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 4645 4646 ;; 4647 esac 4648 ;; 4649(yes) 4650 4651 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4652 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4653 4654 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 4655 4656 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4657 && test -z "${cf_tst_cflags}" \ 4658 && cf_fix_cppflags=no 4659 ;; 4660esac 4661done 4662 4663if test -n "$cf_new_cflags" ; then 4664 4665 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 4666 CFLAGS="${CFLAGS}$cf_new_cflags" 4667 4668fi 4669 4670if test -n "$cf_new_cppflags" ; then 4671 4672 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4673 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 4674 4675fi 4676 4677if test -n "$cf_new_extra_cppflags" ; then 4678 4679 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 4680 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 4681 4682fi 4683 4684fi 4685 4686fi # cf_cv_posix_visible 4687 4688 ;; 4689(netbsd*) 4690 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw 4691 ;; 4692(openbsd[6-9]*) 4693 # OpenBSD 6.x has broken locale support, both compile-time and runtime. 4694 # see https://www.mail-archive.com/bugs@openbsd.org/msg13200.html 4695 # Abusing the conformance level is a workaround. 4696 { echo "$as_me:4696: WARNING: this system does not provide usable locale support" >&5 4697echo "$as_me: WARNING: this system does not provide usable locale support" >&2;} 4698 cf_xopen_source="-D_BSD_SOURCE" 4699 cf_XOPEN_SOURCE=700 4700 ;; 4701(openbsd[4-5]*) 4702 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw 4703 cf_xopen_source="-D_BSD_SOURCE" 4704 cf_XOPEN_SOURCE=600 4705 ;; 4706(openbsd*) 4707 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw 4708 ;; 4709(osf[45]*) 4710 cf_xopen_source="-D_OSF_SOURCE" 4711 ;; 4712(nto-qnx*) 4713 cf_xopen_source="-D_QNX_SOURCE" 4714 ;; 4715(sco*) 4716 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer 4717 ;; 4718(solaris2.*) 4719 cf_xopen_source="-D__EXTENSIONS__" 4720 cf_cv_xopen_source=broken 4721 ;; 4722(sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2) 4723 cf_XOPEN_SOURCE= 4724 cf_POSIX_C_SOURCE= 4725 ;; 4726(*) 4727 4728echo "$as_me:4728: checking if we should define _XOPEN_SOURCE" >&5 4729echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 4730if test "${cf_cv_xopen_source+set}" = set; then 4731 echo $ECHO_N "(cached) $ECHO_C" >&6 4732else 4733 4734 cat >"conftest.$ac_ext" <<_ACEOF 4735#line 4735 "configure" 4736#include "confdefs.h" 4737 4738#include <stdlib.h> 4739#include <string.h> 4740#include <sys/types.h> 4741 4742int 4743main (void) 4744{ 4745 4746#ifndef _XOPEN_SOURCE 4747make an error 4748#endif 4749 ; 4750 return 0; 4751} 4752_ACEOF 4753rm -f "conftest.$ac_objext" 4754if { (eval echo "$as_me:4754: \"$ac_compile\"") >&5 4755 (eval $ac_compile) 2>&5 4756 ac_status=$? 4757 echo "$as_me:4757: \$? = $ac_status" >&5 4758 (exit "$ac_status"); } && 4759 { ac_try='test -s "conftest.$ac_objext"' 4760 { (eval echo "$as_me:4760: \"$ac_try\"") >&5 4761 (eval $ac_try) 2>&5 4762 ac_status=$? 4763 echo "$as_me:4763: \$? = $ac_status" >&5 4764 (exit "$ac_status"); }; }; then 4765 cf_cv_xopen_source=no 4766else 4767 echo "$as_me: failed program was:" >&5 4768cat "conftest.$ac_ext" >&5 4769cf_save="$CPPFLAGS" 4770 4771 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4772 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 4773 4774 cat >"conftest.$ac_ext" <<_ACEOF 4775#line 4775 "configure" 4776#include "confdefs.h" 4777 4778#include <stdlib.h> 4779#include <string.h> 4780#include <sys/types.h> 4781 4782int 4783main (void) 4784{ 4785 4786#ifdef _XOPEN_SOURCE 4787make an error 4788#endif 4789 ; 4790 return 0; 4791} 4792_ACEOF 4793rm -f "conftest.$ac_objext" 4794if { (eval echo "$as_me:4794: \"$ac_compile\"") >&5 4795 (eval $ac_compile) 2>&5 4796 ac_status=$? 4797 echo "$as_me:4797: \$? = $ac_status" >&5 4798 (exit "$ac_status"); } && 4799 { ac_try='test -s "conftest.$ac_objext"' 4800 { (eval echo "$as_me:4800: \"$ac_try\"") >&5 4801 (eval $ac_try) 2>&5 4802 ac_status=$? 4803 echo "$as_me:4803: \$? = $ac_status" >&5 4804 (exit "$ac_status"); }; }; then 4805 cf_cv_xopen_source=no 4806else 4807 echo "$as_me: failed program was:" >&5 4808cat "conftest.$ac_ext" >&5 4809cf_cv_xopen_source=$cf_XOPEN_SOURCE 4810fi 4811rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4812 CPPFLAGS="$cf_save" 4813 4814fi 4815rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4816 4817fi 4818echo "$as_me:4818: result: $cf_cv_xopen_source" >&5 4819echo "${ECHO_T}$cf_cv_xopen_source" >&6 4820 4821if test "$cf_cv_xopen_source" != no ; then 4822 4823CFLAGS=`echo "$CFLAGS" | \ 4824 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 4825 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 4826 4827CPPFLAGS=`echo "$CPPFLAGS" | \ 4828 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 4829 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 4830 4831 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 4832 4833cf_fix_cppflags=no 4834cf_new_cflags= 4835cf_new_cppflags= 4836cf_new_extra_cppflags= 4837 4838for cf_add_cflags in $cf_temp_xopen_source 4839do 4840case "$cf_fix_cppflags" in 4841(no) 4842 case "$cf_add_cflags" in 4843 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 4844 case "$cf_add_cflags" in 4845 (-D*) 4846 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4847 4848 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4849 && test -z "${cf_tst_cflags}" \ 4850 && cf_fix_cppflags=yes 4851 4852 if test "$cf_fix_cppflags" = yes ; then 4853 4854 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4855 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4856 4857 continue 4858 elif test "${cf_tst_cflags}" = "\"'" ; then 4859 4860 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4861 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4862 4863 continue 4864 fi 4865 ;; 4866 esac 4867 case "$CPPFLAGS" in 4868 (*$cf_add_cflags) 4869 ;; 4870 (*) 4871 case "$cf_add_cflags" in 4872 (-D*) 4873 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4874 4875CPPFLAGS=`echo "$CPPFLAGS" | \ 4876 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4877 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4878 4879 ;; 4880 esac 4881 4882 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 4883 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 4884 4885 ;; 4886 esac 4887 ;; 4888 (*) 4889 4890 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 4891 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 4892 4893 ;; 4894 esac 4895 ;; 4896(yes) 4897 4898 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4899 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4900 4901 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 4902 4903 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4904 && test -z "${cf_tst_cflags}" \ 4905 && cf_fix_cppflags=no 4906 ;; 4907esac 4908done 4909 4910if test -n "$cf_new_cflags" ; then 4911 4912 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 4913 CFLAGS="${CFLAGS}$cf_new_cflags" 4914 4915fi 4916 4917if test -n "$cf_new_cppflags" ; then 4918 4919 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4920 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 4921 4922fi 4923 4924if test -n "$cf_new_extra_cppflags" ; then 4925 4926 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 4927 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 4928 4929fi 4930 4931fi 4932 4933if test "$cf_cv_posix_visible" = no; then 4934 4935cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 4936 4937cf_save_CFLAGS="$CFLAGS" 4938cf_save_CPPFLAGS="$CPPFLAGS" 4939 4940cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 4941 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 4942 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 4943 4944cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 4945 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 4946 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 4947 4948echo "$as_me:4948: checking if we should define _POSIX_C_SOURCE" >&5 4949echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 4950if test "${cf_cv_posix_c_source+set}" = set; then 4951 echo $ECHO_N "(cached) $ECHO_C" >&6 4952else 4953 4954echo "${as_me:-configure}:4954: testing if the symbol is already defined go no further ..." 1>&5 4955 4956 cat >"conftest.$ac_ext" <<_ACEOF 4957#line 4957 "configure" 4958#include "confdefs.h" 4959#include <sys/types.h> 4960int 4961main (void) 4962{ 4963 4964#ifndef _POSIX_C_SOURCE 4965make an error 4966#endif 4967 ; 4968 return 0; 4969} 4970_ACEOF 4971rm -f "conftest.$ac_objext" 4972if { (eval echo "$as_me:4972: \"$ac_compile\"") >&5 4973 (eval $ac_compile) 2>&5 4974 ac_status=$? 4975 echo "$as_me:4975: \$? = $ac_status" >&5 4976 (exit "$ac_status"); } && 4977 { ac_try='test -s "conftest.$ac_objext"' 4978 { (eval echo "$as_me:4978: \"$ac_try\"") >&5 4979 (eval $ac_try) 2>&5 4980 ac_status=$? 4981 echo "$as_me:4981: \$? = $ac_status" >&5 4982 (exit "$ac_status"); }; }; then 4983 cf_cv_posix_c_source=no 4984else 4985 echo "$as_me: failed program was:" >&5 4986cat "conftest.$ac_ext" >&5 4987cf_want_posix_source=no 4988 case .$cf_POSIX_C_SOURCE in 4989 (.[12]??*) 4990 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 4991 ;; 4992 (.2) 4993 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 4994 cf_want_posix_source=yes 4995 ;; 4996 (.*) 4997 cf_want_posix_source=yes 4998 ;; 4999 esac 5000 if test "$cf_want_posix_source" = yes ; then 5001 cat >"conftest.$ac_ext" <<_ACEOF 5002#line 5002 "configure" 5003#include "confdefs.h" 5004#include <sys/types.h> 5005int 5006main (void) 5007{ 5008 5009#ifdef _POSIX_SOURCE 5010make an error 5011#endif 5012 ; 5013 return 0; 5014} 5015_ACEOF 5016rm -f "conftest.$ac_objext" 5017if { (eval echo "$as_me:5017: \"$ac_compile\"") >&5 5018 (eval $ac_compile) 2>&5 5019 ac_status=$? 5020 echo "$as_me:5020: \$? = $ac_status" >&5 5021 (exit "$ac_status"); } && 5022 { ac_try='test -s "conftest.$ac_objext"' 5023 { (eval echo "$as_me:5023: \"$ac_try\"") >&5 5024 (eval $ac_try) 2>&5 5025 ac_status=$? 5026 echo "$as_me:5026: \$? = $ac_status" >&5 5027 (exit "$ac_status"); }; }; then 5028 : 5029else 5030 echo "$as_me: failed program was:" >&5 5031cat "conftest.$ac_ext" >&5 5032cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 5033fi 5034rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5035 fi 5036 5037echo "${as_me:-configure}:5037: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 5038 5039 CFLAGS="$cf_trim_CFLAGS" 5040 CPPFLAGS="$cf_trim_CPPFLAGS" 5041 5042 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 5043 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source" 5044 5045echo "${as_me:-configure}:5045: testing if the second compile does not leave our definition intact error ..." 1>&5 5046 5047 cat >"conftest.$ac_ext" <<_ACEOF 5048#line 5048 "configure" 5049#include "confdefs.h" 5050#include <sys/types.h> 5051int 5052main (void) 5053{ 5054 5055#ifndef _POSIX_C_SOURCE 5056make an error 5057#endif 5058 ; 5059 return 0; 5060} 5061_ACEOF 5062rm -f "conftest.$ac_objext" 5063if { (eval echo "$as_me:5063: \"$ac_compile\"") >&5 5064 (eval $ac_compile) 2>&5 5065 ac_status=$? 5066 echo "$as_me:5066: \$? = $ac_status" >&5 5067 (exit "$ac_status"); } && 5068 { ac_try='test -s "conftest.$ac_objext"' 5069 { (eval echo "$as_me:5069: \"$ac_try\"") >&5 5070 (eval $ac_try) 2>&5 5071 ac_status=$? 5072 echo "$as_me:5072: \$? = $ac_status" >&5 5073 (exit "$ac_status"); }; }; then 5074 : 5075else 5076 echo "$as_me: failed program was:" >&5 5077cat "conftest.$ac_ext" >&5 5078cf_cv_posix_c_source=no 5079fi 5080rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5081 CFLAGS="$cf_save_CFLAGS" 5082 CPPFLAGS="$cf_save_CPPFLAGS" 5083 5084fi 5085rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5086 5087fi 5088echo "$as_me:5088: result: $cf_cv_posix_c_source" >&5 5089echo "${ECHO_T}$cf_cv_posix_c_source" >&6 5090 5091if test "$cf_cv_posix_c_source" != no ; then 5092 CFLAGS="$cf_trim_CFLAGS" 5093 CPPFLAGS="$cf_trim_CPPFLAGS" 5094 5095cf_fix_cppflags=no 5096cf_new_cflags= 5097cf_new_cppflags= 5098cf_new_extra_cppflags= 5099 5100for cf_add_cflags in $cf_cv_posix_c_source 5101do 5102case "$cf_fix_cppflags" in 5103(no) 5104 case "$cf_add_cflags" in 5105 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 5106 case "$cf_add_cflags" in 5107 (-D*) 5108 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 5109 5110 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 5111 && test -z "${cf_tst_cflags}" \ 5112 && cf_fix_cppflags=yes 5113 5114 if test "$cf_fix_cppflags" = yes ; then 5115 5116 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 5117 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 5118 5119 continue 5120 elif test "${cf_tst_cflags}" = "\"'" ; then 5121 5122 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 5123 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 5124 5125 continue 5126 fi 5127 ;; 5128 esac 5129 case "$CPPFLAGS" in 5130 (*$cf_add_cflags) 5131 ;; 5132 (*) 5133 case "$cf_add_cflags" in 5134 (-D*) 5135 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 5136 5137CPPFLAGS=`echo "$CPPFLAGS" | \ 5138 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 5139 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 5140 5141 ;; 5142 esac 5143 5144 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 5145 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 5146 5147 ;; 5148 esac 5149 ;; 5150 (*) 5151 5152 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 5153 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 5154 5155 ;; 5156 esac 5157 ;; 5158(yes) 5159 5160 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 5161 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 5162 5163 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 5164 5165 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 5166 && test -z "${cf_tst_cflags}" \ 5167 && cf_fix_cppflags=no 5168 ;; 5169esac 5170done 5171 5172if test -n "$cf_new_cflags" ; then 5173 5174 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 5175 CFLAGS="${CFLAGS}$cf_new_cflags" 5176 5177fi 5178 5179if test -n "$cf_new_cppflags" ; then 5180 5181 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 5182 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 5183 5184fi 5185 5186if test -n "$cf_new_extra_cppflags" ; then 5187 5188 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 5189 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 5190 5191fi 5192 5193fi 5194 5195fi # cf_cv_posix_visible 5196 5197 ;; 5198esac 5199 5200if test -n "$cf_xopen_source" ; then 5201 5202cf_fix_cppflags=no 5203cf_new_cflags= 5204cf_new_cppflags= 5205cf_new_extra_cppflags= 5206 5207for cf_add_cflags in $cf_xopen_source 5208do 5209case "$cf_fix_cppflags" in 5210(no) 5211 case "$cf_add_cflags" in 5212 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 5213 case "$cf_add_cflags" in 5214 (-D*) 5215 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 5216 5217 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 5218 && test -z "${cf_tst_cflags}" \ 5219 && cf_fix_cppflags=yes 5220 5221 if test "$cf_fix_cppflags" = yes ; then 5222 5223 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 5224 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 5225 5226 continue 5227 elif test "${cf_tst_cflags}" = "\"'" ; then 5228 5229 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 5230 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 5231 5232 continue 5233 fi 5234 ;; 5235 esac 5236 case "$CPPFLAGS" in 5237 (*$cf_add_cflags) 5238 ;; 5239 (*) 5240 case "$cf_add_cflags" in 5241 (-D*) 5242 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 5243 5244CPPFLAGS=`echo "$CPPFLAGS" | \ 5245 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 5246 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 5247 5248 ;; 5249 esac 5250 5251 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 5252 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 5253 5254 ;; 5255 esac 5256 ;; 5257 (*) 5258 5259 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 5260 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 5261 5262 ;; 5263 esac 5264 ;; 5265(yes) 5266 5267 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 5268 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 5269 5270 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 5271 5272 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 5273 && test -z "${cf_tst_cflags}" \ 5274 && cf_fix_cppflags=no 5275 ;; 5276esac 5277done 5278 5279if test -n "$cf_new_cflags" ; then 5280 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 5281 5282echo "${as_me:-configure}:5282: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 5283 5284 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 5285 CFLAGS="${CFLAGS}$cf_new_cflags" 5286 5287fi 5288 5289if test -n "$cf_new_cppflags" ; then 5290 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 5291 5292echo "${as_me:-configure}:5292: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 5293 5294 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 5295 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 5296 5297fi 5298 5299if test -n "$cf_new_extra_cppflags" ; then 5300 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6 5301 5302echo "${as_me:-configure}:5302: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5 5303 5304 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 5305 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 5306 5307fi 5308 5309fi 5310 5311if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then 5312 echo "$as_me:5312: checking if _XOPEN_SOURCE really is set" >&5 5313echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6 5314 cat >"conftest.$ac_ext" <<_ACEOF 5315#line 5315 "configure" 5316#include "confdefs.h" 5317#include <stdlib.h> 5318int 5319main (void) 5320{ 5321 5322#ifndef _XOPEN_SOURCE 5323make an error 5324#endif 5325 ; 5326 return 0; 5327} 5328_ACEOF 5329rm -f "conftest.$ac_objext" 5330if { (eval echo "$as_me:5330: \"$ac_compile\"") >&5 5331 (eval $ac_compile) 2>&5 5332 ac_status=$? 5333 echo "$as_me:5333: \$? = $ac_status" >&5 5334 (exit "$ac_status"); } && 5335 { ac_try='test -s "conftest.$ac_objext"' 5336 { (eval echo "$as_me:5336: \"$ac_try\"") >&5 5337 (eval $ac_try) 2>&5 5338 ac_status=$? 5339 echo "$as_me:5339: \$? = $ac_status" >&5 5340 (exit "$ac_status"); }; }; then 5341 cf_XOPEN_SOURCE_set=yes 5342else 5343 echo "$as_me: failed program was:" >&5 5344cat "conftest.$ac_ext" >&5 5345cf_XOPEN_SOURCE_set=no 5346fi 5347rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5348 echo "$as_me:5348: result: $cf_XOPEN_SOURCE_set" >&5 5349echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6 5350 if test "$cf_XOPEN_SOURCE_set" = yes 5351 then 5352 cat >"conftest.$ac_ext" <<_ACEOF 5353#line 5353 "configure" 5354#include "confdefs.h" 5355#include <stdlib.h> 5356int 5357main (void) 5358{ 5359 5360#if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE 5361make an error 5362#endif 5363 ; 5364 return 0; 5365} 5366_ACEOF 5367rm -f "conftest.$ac_objext" 5368if { (eval echo "$as_me:5368: \"$ac_compile\"") >&5 5369 (eval $ac_compile) 2>&5 5370 ac_status=$? 5371 echo "$as_me:5371: \$? = $ac_status" >&5 5372 (exit "$ac_status"); } && 5373 { ac_try='test -s "conftest.$ac_objext"' 5374 { (eval echo "$as_me:5374: \"$ac_try\"") >&5 5375 (eval $ac_try) 2>&5 5376 ac_status=$? 5377 echo "$as_me:5377: \$? = $ac_status" >&5 5378 (exit "$ac_status"); }; }; then 5379 cf_XOPEN_SOURCE_set_ok=yes 5380else 5381 echo "$as_me: failed program was:" >&5 5382cat "conftest.$ac_ext" >&5 5383cf_XOPEN_SOURCE_set_ok=no 5384fi 5385rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5386 if test "$cf_XOPEN_SOURCE_set_ok" = no 5387 then 5388 { echo "$as_me:5388: WARNING: _XOPEN_SOURCE is lower than requested" >&5 5389echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;} 5390 fi 5391 else 5392 5393echo "$as_me:5393: checking if we should define _XOPEN_SOURCE" >&5 5394echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 5395if test "${cf_cv_xopen_source+set}" = set; then 5396 echo $ECHO_N "(cached) $ECHO_C" >&6 5397else 5398 5399 cat >"conftest.$ac_ext" <<_ACEOF 5400#line 5400 "configure" 5401#include "confdefs.h" 5402 5403#include <stdlib.h> 5404#include <string.h> 5405#include <sys/types.h> 5406 5407int 5408main (void) 5409{ 5410 5411#ifndef _XOPEN_SOURCE 5412make an error 5413#endif 5414 ; 5415 return 0; 5416} 5417_ACEOF 5418rm -f "conftest.$ac_objext" 5419if { (eval echo "$as_me:5419: \"$ac_compile\"") >&5 5420 (eval $ac_compile) 2>&5 5421 ac_status=$? 5422 echo "$as_me:5422: \$? = $ac_status" >&5 5423 (exit "$ac_status"); } && 5424 { ac_try='test -s "conftest.$ac_objext"' 5425 { (eval echo "$as_me:5425: \"$ac_try\"") >&5 5426 (eval $ac_try) 2>&5 5427 ac_status=$? 5428 echo "$as_me:5428: \$? = $ac_status" >&5 5429 (exit "$ac_status"); }; }; then 5430 cf_cv_xopen_source=no 5431else 5432 echo "$as_me: failed program was:" >&5 5433cat "conftest.$ac_ext" >&5 5434cf_save="$CPPFLAGS" 5435 5436 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 5437 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 5438 5439 cat >"conftest.$ac_ext" <<_ACEOF 5440#line 5440 "configure" 5441#include "confdefs.h" 5442 5443#include <stdlib.h> 5444#include <string.h> 5445#include <sys/types.h> 5446 5447int 5448main (void) 5449{ 5450 5451#ifdef _XOPEN_SOURCE 5452make an error 5453#endif 5454 ; 5455 return 0; 5456} 5457_ACEOF 5458rm -f "conftest.$ac_objext" 5459if { (eval echo "$as_me:5459: \"$ac_compile\"") >&5 5460 (eval $ac_compile) 2>&5 5461 ac_status=$? 5462 echo "$as_me:5462: \$? = $ac_status" >&5 5463 (exit "$ac_status"); } && 5464 { ac_try='test -s "conftest.$ac_objext"' 5465 { (eval echo "$as_me:5465: \"$ac_try\"") >&5 5466 (eval $ac_try) 2>&5 5467 ac_status=$? 5468 echo "$as_me:5468: \$? = $ac_status" >&5 5469 (exit "$ac_status"); }; }; then 5470 cf_cv_xopen_source=no 5471else 5472 echo "$as_me: failed program was:" >&5 5473cat "conftest.$ac_ext" >&5 5474cf_cv_xopen_source=$cf_XOPEN_SOURCE 5475fi 5476rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5477 CPPFLAGS="$cf_save" 5478 5479fi 5480rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5481 5482fi 5483echo "$as_me:5483: result: $cf_cv_xopen_source" >&5 5484echo "${ECHO_T}$cf_cv_xopen_source" >&6 5485 5486if test "$cf_cv_xopen_source" != no ; then 5487 5488CFLAGS=`echo "$CFLAGS" | \ 5489 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 5490 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 5491 5492CPPFLAGS=`echo "$CPPFLAGS" | \ 5493 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 5494 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 5495 5496 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 5497 5498cf_fix_cppflags=no 5499cf_new_cflags= 5500cf_new_cppflags= 5501cf_new_extra_cppflags= 5502 5503for cf_add_cflags in $cf_temp_xopen_source 5504do 5505case "$cf_fix_cppflags" in 5506(no) 5507 case "$cf_add_cflags" in 5508 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 5509 case "$cf_add_cflags" in 5510 (-D*) 5511 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 5512 5513 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 5514 && test -z "${cf_tst_cflags}" \ 5515 && cf_fix_cppflags=yes 5516 5517 if test "$cf_fix_cppflags" = yes ; then 5518 5519 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 5520 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 5521 5522 continue 5523 elif test "${cf_tst_cflags}" = "\"'" ; then 5524 5525 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 5526 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 5527 5528 continue 5529 fi 5530 ;; 5531 esac 5532 case "$CPPFLAGS" in 5533 (*$cf_add_cflags) 5534 ;; 5535 (*) 5536 case "$cf_add_cflags" in 5537 (-D*) 5538 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 5539 5540CPPFLAGS=`echo "$CPPFLAGS" | \ 5541 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 5542 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 5543 5544 ;; 5545 esac 5546 5547 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 5548 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 5549 5550 ;; 5551 esac 5552 ;; 5553 (*) 5554 5555 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 5556 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 5557 5558 ;; 5559 esac 5560 ;; 5561(yes) 5562 5563 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 5564 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 5565 5566 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 5567 5568 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 5569 && test -z "${cf_tst_cflags}" \ 5570 && cf_fix_cppflags=no 5571 ;; 5572esac 5573done 5574 5575if test -n "$cf_new_cflags" ; then 5576 5577 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 5578 CFLAGS="${CFLAGS}$cf_new_cflags" 5579 5580fi 5581 5582if test -n "$cf_new_cppflags" ; then 5583 5584 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 5585 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 5586 5587fi 5588 5589if test -n "$cf_new_extra_cppflags" ; then 5590 5591 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 5592 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 5593 5594fi 5595 5596fi 5597 5598 fi 5599fi 5600fi # cf_cv_posix_visible 5601 5602echo "$as_me:5602: checking for setlocale()" >&5 5603echo $ECHO_N "checking for setlocale()... $ECHO_C" >&6 5604if test "${cf_cv_locale+set}" = set; then 5605 echo $ECHO_N "(cached) $ECHO_C" >&6 5606else 5607 5608cat >"conftest.$ac_ext" <<_ACEOF 5609#line 5609 "configure" 5610#include "confdefs.h" 5611#include <locale.h> 5612int 5613main (void) 5614{ 5615setlocale(LC_ALL, "") 5616 ; 5617 return 0; 5618} 5619_ACEOF 5620rm -f "conftest.$ac_objext" "conftest$ac_exeext" 5621if { (eval echo "$as_me:5621: \"$ac_link\"") >&5 5622 (eval $ac_link) 2>&5 5623 ac_status=$? 5624 echo "$as_me:5624: \$? = $ac_status" >&5 5625 (exit "$ac_status"); } && 5626 { ac_try='test -s "conftest$ac_exeext"' 5627 { (eval echo "$as_me:5627: \"$ac_try\"") >&5 5628 (eval $ac_try) 2>&5 5629 ac_status=$? 5630 echo "$as_me:5630: \$? = $ac_status" >&5 5631 (exit "$ac_status"); }; }; then 5632 cf_cv_locale=yes 5633else 5634 echo "$as_me: failed program was:" >&5 5635cat "conftest.$ac_ext" >&5 5636cf_cv_locale=no 5637fi 5638rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 5639 5640fi 5641 5642echo "$as_me:5642: result: $cf_cv_locale" >&5 5643echo "${ECHO_T}$cf_cv_locale" >&6 5644test "$cf_cv_locale" = yes && { 5645cat >>confdefs.h <<\EOF 5646#define LOCALE 1 5647EOF 5648 } 5649 5650echo "$as_me:5650: checking for fgrep" >&5 5651echo $ECHO_N "checking for fgrep... $ECHO_C" >&6 5652if test "${ac_cv_path_FGREP+set}" = set; then 5653 echo $ECHO_N "(cached) $ECHO_C" >&6 5654else 5655 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5656 then ac_cv_path_FGREP="$GREP -F" 5657 else 5658 for ac_prog in gfgrep fgrep 5659do 5660 # Extract the first word of "$ac_prog", so it can be a program name with args. 5661set dummy $ac_prog; ac_word=$2 5662echo "$as_me:5662: checking for $ac_word" >&5 5663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5664if test "${ac_cv_path_FGREP+set}" = set; then 5665 echo $ECHO_N "(cached) $ECHO_C" >&6 5666else 5667 case $FGREP in 5668 [\\/]* | ?:[\\/]*) 5669 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 5670 ;; 5671 *) 5672 ac_save_IFS=$IFS; IFS=$ac_path_separator 5673ac_dummy="$PATH" 5674for ac_dir in $ac_dummy; do 5675 IFS=$ac_save_IFS 5676 test -z "$ac_dir" && ac_dir=. 5677 if $as_executable_p "$ac_dir/$ac_word"; then 5678 ac_cv_path_FGREP="$ac_dir/$ac_word" 5679 echo "$as_me:5679: found $ac_dir/$ac_word" >&5 5680 break 5681fi 5682done 5683 5684 ;; 5685esac 5686fi 5687FGREP=$ac_cv_path_FGREP 5688 5689if test -n "$FGREP"; then 5690 echo "$as_me:5690: result: $FGREP" >&5 5691echo "${ECHO_T}$FGREP" >&6 5692else 5693 echo "$as_me:5693: result: no" >&5 5694echo "${ECHO_T}no" >&6 5695fi 5696 5697 test -n "$FGREP" && break 5698done 5699test -n "$FGREP" || FGREP=": " 5700 5701 test "x$ac_cv_path_FGREP" = "x:" && { { echo "$as_me:5701: error: cannot find workable fgrep" >&5 5702echo "$as_me: error: cannot find workable fgrep" >&2;} 5703 { (exit 1); exit 1; }; } 5704 fi 5705fi 5706echo "$as_me:5706: result: $ac_cv_path_FGREP" >&5 5707echo "${ECHO_T}$ac_cv_path_FGREP" >&6 5708 FGREP="$ac_cv_path_FGREP" 5709 5710echo "$as_me:5710: checking if you want to use C11 _Noreturn feature" >&5 5711echo $ECHO_N "checking if you want to use C11 _Noreturn feature... $ECHO_C" >&6 5712 5713# Check whether --enable-stdnoreturn or --disable-stdnoreturn was given. 5714if test "${enable_stdnoreturn+set}" = set; then 5715 enableval="$enable_stdnoreturn" 5716 test "$enableval" != yes && enableval=no 5717 if test "$enableval" != "no" ; then 5718 enable_stdnoreturn=yes 5719 else 5720 enable_stdnoreturn=no 5721 fi 5722else 5723 enableval=no 5724 enable_stdnoreturn=no 5725 5726fi; 5727echo "$as_me:5727: result: $enable_stdnoreturn" >&5 5728echo "${ECHO_T}$enable_stdnoreturn" >&6 5729 5730if test $enable_stdnoreturn = yes; then 5731echo "$as_me:5731: checking for C11 _Noreturn feature" >&5 5732echo $ECHO_N "checking for C11 _Noreturn feature... $ECHO_C" >&6 5733if test "${cf_cv_c11_noreturn+set}" = set; then 5734 echo $ECHO_N "(cached) $ECHO_C" >&6 5735else 5736 cat >"conftest.$ac_ext" <<_ACEOF 5737#line 5737 "configure" 5738#include "confdefs.h" 5739 5740#include <stdio.h> 5741#include <stdlib.h> 5742#include <stdnoreturn.h> 5743static _Noreturn void giveup(void) { exit(0); } 5744 5745int 5746main (void) 5747{ 5748if (feof(stdin)) giveup() 5749 ; 5750 return 0; 5751} 5752_ACEOF 5753rm -f "conftest.$ac_objext" 5754if { (eval echo "$as_me:5754: \"$ac_compile\"") >&5 5755 (eval $ac_compile) 2>&5 5756 ac_status=$? 5757 echo "$as_me:5757: \$? = $ac_status" >&5 5758 (exit "$ac_status"); } && 5759 { ac_try='test -s "conftest.$ac_objext"' 5760 { (eval echo "$as_me:5760: \"$ac_try\"") >&5 5761 (eval $ac_try) 2>&5 5762 ac_status=$? 5763 echo "$as_me:5763: \$? = $ac_status" >&5 5764 (exit "$ac_status"); }; }; then 5765 cf_cv_c11_noreturn=yes 5766else 5767 echo "$as_me: failed program was:" >&5 5768cat "conftest.$ac_ext" >&5 5769cf_cv_c11_noreturn=no 5770fi 5771rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5772 5773fi 5774echo "$as_me:5774: result: $cf_cv_c11_noreturn" >&5 5775echo "${ECHO_T}$cf_cv_c11_noreturn" >&6 5776else 5777 cf_cv_c11_noreturn=no, 5778fi 5779 5780if test "$cf_cv_c11_noreturn" = yes; then 5781 5782cat >>confdefs.h <<\EOF 5783#define HAVE_STDNORETURN_H 1 5784EOF 5785 5786cat >>confdefs.h <<EOF 5787#define STDC_NORETURN _Noreturn 5788EOF 5789 5790 HAVE_STDNORETURN_H=1 5791else 5792 HAVE_STDNORETURN_H=0 5793fi 5794 5795if ( test "$GCC" = yes || test "$GXX" = yes ) 5796then 5797echo "$as_me:5797: checking if you want to check for gcc warnings" >&5 5798echo $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6 5799 5800# Check whether --with-warnings or --without-warnings was given. 5801if test "${with_warnings+set}" = set; then 5802 withval="$with_warnings" 5803 cf_opt_with_warnings=$withval 5804else 5805 cf_opt_with_warnings=no 5806fi; 5807echo "$as_me:5807: result: $cf_opt_with_warnings" >&5 5808echo "${ECHO_T}$cf_opt_with_warnings" >&6 5809if test "$cf_opt_with_warnings" != no ; then 5810 5811if test "$GCC" = yes || test "$GXX" = yes 5812then 5813cat > conftest.i <<EOF 5814#ifndef GCC_PRINTF 5815#define GCC_PRINTF 0 5816#endif 5817#ifndef GCC_SCANF 5818#define GCC_SCANF 0 5819#endif 5820#ifndef GCC_NORETURN 5821#define GCC_NORETURN /* nothing */ 5822#endif 5823#ifndef GCC_UNUSED 5824#define GCC_UNUSED /* nothing */ 5825#endif 5826EOF 5827if test "$GCC" = yes 5828then 5829 { echo "$as_me:5829: checking for $CC __attribute__ directives..." >&5 5830echo "$as_me: checking for $CC __attribute__ directives..." >&6;} 5831cat > "conftest.$ac_ext" <<EOF 5832#line 5832 "${as_me:-configure}" 5833#include "confdefs.h" 5834#include "conftest.h" 5835#include "conftest.i" 5836#if GCC_PRINTF 5837#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) 5838#else 5839#define GCC_PRINTFLIKE(fmt,var) /*nothing*/ 5840#endif 5841#if GCC_SCANF 5842#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) 5843#else 5844#define GCC_SCANFLIKE(fmt,var) /*nothing*/ 5845#endif 5846extern void wow(char *,...) GCC_SCANFLIKE(1,2); 5847extern GCC_NORETURN void oops(char *,...) GCC_PRINTFLIKE(1,2); 5848extern GCC_NORETURN void foo(void); 5849int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; } 5850EOF 5851 cf_printf_attribute=no 5852 cf_scanf_attribute=no 5853 for cf_attribute in scanf printf unused noreturn 5854 do 5855 5856cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 5857 5858 cf_directive="__attribute__(($cf_attribute))" 5859 echo "checking for $CC $cf_directive" 1>&5 5860 5861 case "$cf_attribute" in 5862 (printf) 5863 cf_printf_attribute=yes 5864 cat >conftest.h <<EOF 5865#define GCC_$cf_ATTRIBUTE 1 5866EOF 5867 ;; 5868 (scanf) 5869 cf_scanf_attribute=yes 5870 cat >conftest.h <<EOF 5871#define GCC_$cf_ATTRIBUTE 1 5872EOF 5873 ;; 5874 (*) 5875 cat >conftest.h <<EOF 5876#define GCC_$cf_ATTRIBUTE $cf_directive 5877EOF 5878 ;; 5879 esac 5880 5881 if { (eval echo "$as_me:5881: \"$ac_compile\"") >&5 5882 (eval $ac_compile) 2>&5 5883 ac_status=$? 5884 echo "$as_me:5884: \$? = $ac_status" >&5 5885 (exit "$ac_status"); }; then 5886 test -n "$verbose" && echo "$as_me:5886: result: ... $cf_attribute" >&5 5887echo "${ECHO_T}... $cf_attribute" >&6 5888 cat conftest.h >>confdefs.h 5889 case "$cf_attribute" in 5890 (noreturn) 5891 5892cat >>confdefs.h <<EOF 5893#define GCC_NORETURN $cf_directive 5894EOF 5895 5896 ;; 5897 (printf) 5898 cf_value='/* nothing */' 5899 if test "$cf_printf_attribute" != no ; then 5900 cf_value='__attribute__((format(printf,fmt,var)))' 5901 5902cat >>confdefs.h <<\EOF 5903#define GCC_PRINTF 1 5904EOF 5905 5906 fi 5907 5908cat >>confdefs.h <<EOF 5909#define GCC_PRINTFLIKE(fmt,var) $cf_value 5910EOF 5911 5912 ;; 5913 (scanf) 5914 cf_value='/* nothing */' 5915 if test "$cf_scanf_attribute" != no ; then 5916 cf_value='__attribute__((format(scanf,fmt,var)))' 5917 5918cat >>confdefs.h <<\EOF 5919#define GCC_SCANF 1 5920EOF 5921 5922 fi 5923 5924cat >>confdefs.h <<EOF 5925#define GCC_SCANFLIKE(fmt,var) $cf_value 5926EOF 5927 5928 ;; 5929 (unused) 5930 5931cat >>confdefs.h <<EOF 5932#define GCC_UNUSED $cf_directive 5933EOF 5934 5935 ;; 5936 esac 5937 fi 5938 done 5939else 5940 ${FGREP-fgrep} define conftest.i >>confdefs.h 5941fi 5942rm -rf ./conftest* 5943fi 5944 5945if test "x$have_x" = xyes; then echo "skipping X-const check"; fi 5946cat > "conftest.$ac_ext" <<EOF 5947#line 5947 "${as_me:-configure}" 5948int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; } 5949EOF 5950if test "$INTEL_COMPILER" = yes 5951then 5952# The "-wdXXX" options suppress warnings: 5953# remark #1419: external declaration in primary source file 5954# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem) 5955# remark #1684: conversion from pointer to same-sized integral type (potential portability problem) 5956# remark #193: zero used for undefined preprocessing identifier 5957# remark #593: variable "curs_sb_left_arrow" was set but never used 5958# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits 5959# remark #869: parameter "tw" was never referenced 5960# remark #981: operands are evaluated in unspecified order 5961# warning #279: controlling expression is constant 5962 5963 { echo "$as_me:5963: checking for $CC warning options..." >&5 5964echo "$as_me: checking for $CC warning options..." >&6;} 5965 cf_save_CFLAGS="$CFLAGS" 5966 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall" 5967 for cf_opt in \ 5968 wd1419 \ 5969 wd1683 \ 5970 wd1684 \ 5971 wd193 \ 5972 wd593 \ 5973 wd279 \ 5974 wd810 \ 5975 wd869 \ 5976 wd981 5977 do 5978 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 5979 if { (eval echo "$as_me:5979: \"$ac_compile\"") >&5 5980 (eval $ac_compile) 2>&5 5981 ac_status=$? 5982 echo "$as_me:5982: \$? = $ac_status" >&5 5983 (exit "$ac_status"); }; then 5984 test -n "$verbose" && echo "$as_me:5984: result: ... -$cf_opt" >&5 5985echo "${ECHO_T}... -$cf_opt" >&6 5986 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 5987 fi 5988 done 5989 CFLAGS="$cf_save_CFLAGS" 5990elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown" 5991then 5992 { echo "$as_me:5992: checking for $CC warning options..." >&5 5993echo "$as_me: checking for $CC warning options..." >&6;} 5994 cf_save_CFLAGS="$CFLAGS" 5995 cf_warn_CONST="" 5996 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings" 5997 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs" 5998 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings= 5999 for cf_opt in W Wall \ 6000 Wbad-function-cast \ 6001 Wcast-align \ 6002 Wcast-qual \ 6003 Wdeclaration-after-statement \ 6004 Wextra \ 6005 Winline \ 6006 Wmissing-declarations \ 6007 Wmissing-prototypes \ 6008 Wnested-externs \ 6009 Wpointer-arith \ 6010 Wshadow \ 6011 Wstrict-prototypes \ 6012 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST 6013 do 6014 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 6015 if { (eval echo "$as_me:6015: \"$ac_compile\"") >&5 6016 (eval $ac_compile) 2>&5 6017 ac_status=$? 6018 echo "$as_me:6018: \$? = $ac_status" >&5 6019 (exit "$ac_status"); }; then 6020 test -n "$verbose" && echo "$as_me:6020: result: ... -$cf_opt" >&5 6021echo "${ECHO_T}... -$cf_opt" >&6 6022 case "$cf_opt" in 6023 (Winline) 6024 case "$GCC_VERSION" in 6025 ([34].*) 6026 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 6027 6028echo "${as_me:-configure}:6028: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 6029 6030 continue;; 6031 esac 6032 ;; 6033 (Wpointer-arith) 6034 case "$GCC_VERSION" in 6035 ([12].*) 6036 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 6037 6038echo "${as_me:-configure}:6038: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 6039 6040 continue;; 6041 esac 6042 ;; 6043 esac 6044 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 6045 fi 6046 done 6047 CFLAGS="$cf_save_CFLAGS" 6048fi 6049rm -rf ./conftest* 6050 6051fi 6052fi 6053 6054echo "$as_me:6054: checking for ANSI C header files" >&5 6055echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 6056if test "${ac_cv_header_stdc+set}" = set; then 6057 echo $ECHO_N "(cached) $ECHO_C" >&6 6058else 6059 cat >"conftest.$ac_ext" <<_ACEOF 6060#line 6060 "configure" 6061#include "confdefs.h" 6062#include <stdlib.h> 6063#include <stdarg.h> 6064#include <string.h> 6065#include <float.h> 6066 6067_ACEOF 6068if { (eval echo "$as_me:6068: \"$ac_cpp "conftest.$ac_ext"\"") >&5 6069 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 6070 ac_status=$? 6071 $EGREP -v '^ *\+' conftest.er1 >conftest.err 6072 rm -f conftest.er1 6073 cat conftest.err >&5 6074 echo "$as_me:6074: \$? = $ac_status" >&5 6075 (exit "$ac_status"); } >/dev/null; then 6076 if test -s conftest.err; then 6077 ac_cpp_err=$ac_c_preproc_warn_flag 6078 else 6079 ac_cpp_err= 6080 fi 6081else 6082 ac_cpp_err=yes 6083fi 6084if test -z "$ac_cpp_err"; then 6085 ac_cv_header_stdc=yes 6086else 6087 echo "$as_me: failed program was:" >&5 6088 cat "conftest.$ac_ext" >&5 6089 ac_cv_header_stdc=no 6090fi 6091rm -f conftest.err "conftest.$ac_ext" 6092 6093if test $ac_cv_header_stdc = yes; then 6094 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6095 cat >"conftest.$ac_ext" <<_ACEOF 6096#line 6096 "configure" 6097#include "confdefs.h" 6098#include <string.h> 6099 6100_ACEOF 6101if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6102 $EGREP "memchr" >/dev/null 2>&1; then 6103 : 6104else 6105 ac_cv_header_stdc=no 6106fi 6107rm -rf conftest* 6108 6109fi 6110 6111if test $ac_cv_header_stdc = yes; then 6112 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6113 cat >"conftest.$ac_ext" <<_ACEOF 6114#line 6114 "configure" 6115#include "confdefs.h" 6116#include <stdlib.h> 6117 6118_ACEOF 6119if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6120 $EGREP "free" >/dev/null 2>&1; then 6121 : 6122else 6123 ac_cv_header_stdc=no 6124fi 6125rm -rf conftest* 6126 6127fi 6128 6129if test $ac_cv_header_stdc = yes; then 6130 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6131 if test "$cross_compiling" = yes; then 6132 : 6133else 6134 cat >"conftest.$ac_ext" <<_ACEOF 6135#line 6135 "configure" 6136#include "confdefs.h" 6137#include <ctype.h> 6138#if ((' ' & 0x0FF) == 0x020) 6139# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6140# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6141#else 6142# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 6143 || ('j' <= (c) && (c) <= 'r') \ 6144 || ('s' <= (c) && (c) <= 'z')) 6145# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6146#endif 6147 6148#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6149int 6150main (void) 6151{ 6152 int i; 6153 for (i = 0; i < 256; i++) 6154 if (XOR (islower (i), ISLOWER (i)) 6155 || toupper (i) != TOUPPER (i)) 6156 $ac_main_return(2); 6157 $ac_main_return (0); 6158} 6159_ACEOF 6160rm -f "conftest$ac_exeext" 6161if { (eval echo "$as_me:6161: \"$ac_link\"") >&5 6162 (eval $ac_link) 2>&5 6163 ac_status=$? 6164 echo "$as_me:6164: \$? = $ac_status" >&5 6165 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 6166 { (eval echo "$as_me:6166: \"$ac_try\"") >&5 6167 (eval $ac_try) 2>&5 6168 ac_status=$? 6169 echo "$as_me:6169: \$? = $ac_status" >&5 6170 (exit "$ac_status"); }; }; then 6171 : 6172else 6173 echo "$as_me: program exited with status $ac_status" >&5 6174echo "$as_me: failed program was:" >&5 6175cat "conftest.$ac_ext" >&5 6176ac_cv_header_stdc=no 6177fi 6178rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 6179fi 6180fi 6181fi 6182echo "$as_me:6182: result: $ac_cv_header_stdc" >&5 6183echo "${ECHO_T}$ac_cv_header_stdc" >&6 6184if test $ac_cv_header_stdc = yes; then 6185 6186cat >>confdefs.h <<\EOF 6187#define STDC_HEADERS 1 6188EOF 6189 6190fi 6191 6192for ac_header in string.h malloc.h sys/types.h 6193do 6194as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6195echo "$as_me:6195: checking for $ac_header" >&5 6196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6197if eval "test \"\${$as_ac_Header+set}\" = set"; then 6198 echo $ECHO_N "(cached) $ECHO_C" >&6 6199else 6200 cat >"conftest.$ac_ext" <<_ACEOF 6201#line 6201 "configure" 6202#include "confdefs.h" 6203#include <$ac_header> 6204_ACEOF 6205if { (eval echo "$as_me:6205: \"$ac_cpp "conftest.$ac_ext"\"") >&5 6206 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 6207 ac_status=$? 6208 $EGREP -v '^ *\+' conftest.er1 >conftest.err 6209 rm -f conftest.er1 6210 cat conftest.err >&5 6211 echo "$as_me:6211: \$? = $ac_status" >&5 6212 (exit "$ac_status"); } >/dev/null; then 6213 if test -s conftest.err; then 6214 ac_cpp_err=$ac_c_preproc_warn_flag 6215 else 6216 ac_cpp_err= 6217 fi 6218else 6219 ac_cpp_err=yes 6220fi 6221if test -z "$ac_cpp_err"; then 6222 eval "$as_ac_Header=yes" 6223else 6224 echo "$as_me: failed program was:" >&5 6225 cat "conftest.$ac_ext" >&5 6226 eval "$as_ac_Header=no" 6227fi 6228rm -f conftest.err "conftest.$ac_ext" 6229fi 6230echo "$as_me:6230: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 6231echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 6232if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 6233 cat >>confdefs.h <<EOF 6234#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6235EOF 6236 6237fi 6238done 6239 6240case "$YACC" in 6241*bison*) 6242 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 6243# for constant arguments. Useless! 6244echo "$as_me:6244: checking for working alloca.h" >&5 6245echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 6246if test "${ac_cv_working_alloca_h+set}" = set; then 6247 echo $ECHO_N "(cached) $ECHO_C" >&6 6248else 6249 cat >"conftest.$ac_ext" <<_ACEOF 6250#line 6250 "configure" 6251#include "confdefs.h" 6252#include <alloca.h> 6253int 6254main (void) 6255{ 6256char *p = (char *) alloca (2 * sizeof (int)); 6257 ; 6258 return 0; 6259} 6260_ACEOF 6261rm -f "conftest.$ac_objext" "conftest$ac_exeext" 6262if { (eval echo "$as_me:6262: \"$ac_link\"") >&5 6263 (eval $ac_link) 2>&5 6264 ac_status=$? 6265 echo "$as_me:6265: \$? = $ac_status" >&5 6266 (exit "$ac_status"); } && 6267 { ac_try='test -s "conftest$ac_exeext"' 6268 { (eval echo "$as_me:6268: \"$ac_try\"") >&5 6269 (eval $ac_try) 2>&5 6270 ac_status=$? 6271 echo "$as_me:6271: \$? = $ac_status" >&5 6272 (exit "$ac_status"); }; }; then 6273 ac_cv_working_alloca_h=yes 6274else 6275 echo "$as_me: failed program was:" >&5 6276cat "conftest.$ac_ext" >&5 6277ac_cv_working_alloca_h=no 6278fi 6279rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 6280fi 6281echo "$as_me:6281: result: $ac_cv_working_alloca_h" >&5 6282echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 6283if test $ac_cv_working_alloca_h = yes; then 6284 6285cat >>confdefs.h <<\EOF 6286#define HAVE_ALLOCA_H 1 6287EOF 6288 6289fi 6290 6291echo "$as_me:6291: checking for alloca" >&5 6292echo $ECHO_N "checking for alloca... $ECHO_C" >&6 6293if test "${ac_cv_func_alloca_works+set}" = set; then 6294 echo $ECHO_N "(cached) $ECHO_C" >&6 6295else 6296 cat >"conftest.$ac_ext" <<_ACEOF 6297#line 6297 "configure" 6298#include "confdefs.h" 6299#ifdef __GNUC__ 6300# define alloca __builtin_alloca 6301#else 6302# ifdef _MSC_VER 6303# include <malloc.h> 6304# define alloca _alloca 6305# else 6306# if HAVE_ALLOCA_H 6307# include <alloca.h> 6308# else 6309# ifdef _AIX 6310 #pragma alloca 6311# else 6312# ifndef alloca /* predefined by HP cc +Olibcalls */ 6313char *alloca (); 6314# endif 6315# endif 6316# endif 6317# endif 6318#endif 6319 6320int 6321main (void) 6322{ 6323char *p = (char *) alloca (1); 6324 ; 6325 return 0; 6326} 6327_ACEOF 6328rm -f "conftest.$ac_objext" "conftest$ac_exeext" 6329if { (eval echo "$as_me:6329: \"$ac_link\"") >&5 6330 (eval $ac_link) 2>&5 6331 ac_status=$? 6332 echo "$as_me:6332: \$? = $ac_status" >&5 6333 (exit "$ac_status"); } && 6334 { ac_try='test -s "conftest$ac_exeext"' 6335 { (eval echo "$as_me:6335: \"$ac_try\"") >&5 6336 (eval $ac_try) 2>&5 6337 ac_status=$? 6338 echo "$as_me:6338: \$? = $ac_status" >&5 6339 (exit "$ac_status"); }; }; then 6340 ac_cv_func_alloca_works=yes 6341else 6342 echo "$as_me: failed program was:" >&5 6343cat "conftest.$ac_ext" >&5 6344ac_cv_func_alloca_works=no 6345fi 6346rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 6347fi 6348echo "$as_me:6348: result: $ac_cv_func_alloca_works" >&5 6349echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 6350 6351if test $ac_cv_func_alloca_works = yes; then 6352 6353cat >>confdefs.h <<\EOF 6354#define HAVE_ALLOCA 1 6355EOF 6356 6357else 6358 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 6359# that cause trouble. Some versions do not even contain alloca or 6360# contain a buggy version. If you still want to use their alloca, 6361# use ar to extract alloca.o from them instead of compiling alloca.c. 6362 6363ALLOCA="alloca.$ac_objext" 6364 6365cat >>confdefs.h <<\EOF 6366#define C_ALLOCA 1 6367EOF 6368 6369echo "$as_me:6369: checking whether \`alloca.c' needs Cray hooks" >&5 6370echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 6371if test "${ac_cv_os_cray+set}" = set; then 6372 echo $ECHO_N "(cached) $ECHO_C" >&6 6373else 6374 cat >"conftest.$ac_ext" <<_ACEOF 6375#line 6375 "configure" 6376#include "confdefs.h" 6377#if defined(CRAY) && ! defined(CRAY2) 6378webecray 6379#else 6380wenotbecray 6381#endif 6382 6383_ACEOF 6384if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6385 $EGREP "webecray" >/dev/null 2>&1; then 6386 ac_cv_os_cray=yes 6387else 6388 ac_cv_os_cray=no 6389fi 6390rm -rf conftest* 6391 6392fi 6393echo "$as_me:6393: result: $ac_cv_os_cray" >&5 6394echo "${ECHO_T}$ac_cv_os_cray" >&6 6395if test $ac_cv_os_cray = yes; then 6396 for ac_func in _getb67 GETB67 getb67; do 6397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6398echo "$as_me:6398: checking for $ac_func" >&5 6399echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6400if eval "test \"\${$as_ac_var+set}\" = set"; then 6401 echo $ECHO_N "(cached) $ECHO_C" >&6 6402else 6403 cat >"conftest.$ac_ext" <<_ACEOF 6404#line 6404 "configure" 6405#include "confdefs.h" 6406#define $ac_func autoconf_temporary 6407#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 6408#undef $ac_func 6409 6410#ifdef __cplusplus 6411extern "C" 6412#endif 6413 6414/* We use char because int might match the return type of a gcc2 6415 builtin and then its argument prototype would still apply. */ 6416char $ac_func (void); 6417 6418int 6419main (void) 6420{ 6421 6422/* The GNU C library defines stubs for functions which it implements 6423 to always fail with ENOSYS. Some functions are actually named 6424 something starting with __ and the normal name is an alias. */ 6425#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6426#error found stub for $ac_func 6427#endif 6428 6429 return $ac_func (); 6430 ; 6431 return 0; 6432} 6433_ACEOF 6434rm -f "conftest.$ac_objext" "conftest$ac_exeext" 6435if { (eval echo "$as_me:6435: \"$ac_link\"") >&5 6436 (eval $ac_link) 2>&5 6437 ac_status=$? 6438 echo "$as_me:6438: \$? = $ac_status" >&5 6439 (exit "$ac_status"); } && 6440 { ac_try='test -s "conftest$ac_exeext"' 6441 { (eval echo "$as_me:6441: \"$ac_try\"") >&5 6442 (eval $ac_try) 2>&5 6443 ac_status=$? 6444 echo "$as_me:6444: \$? = $ac_status" >&5 6445 (exit "$ac_status"); }; }; then 6446 eval "$as_ac_var=yes" 6447else 6448 echo "$as_me: failed program was:" >&5 6449cat "conftest.$ac_ext" >&5 6450eval "$as_ac_var=no" 6451fi 6452rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 6453fi 6454echo "$as_me:6454: result: `eval echo '${'"$as_ac_var"'}'`" >&5 6455echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 6456if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 6457 6458cat >>confdefs.h <<EOF 6459#define CRAY_STACKSEG_END $ac_func 6460EOF 6461 6462 break 6463fi 6464 6465 done 6466fi 6467 6468echo "$as_me:6468: checking stack direction for C alloca" >&5 6469echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 6470if test "${ac_cv_c_stack_direction+set}" = set; then 6471 echo $ECHO_N "(cached) $ECHO_C" >&6 6472else 6473 if test "$cross_compiling" = yes; then 6474 ac_cv_c_stack_direction=0 6475else 6476 cat >"conftest.$ac_ext" <<_ACEOF 6477#line 6477 "configure" 6478#include "confdefs.h" 6479int 6480find_stack_direction (void) 6481{ 6482 static char *addr = 0; 6483 auto char dummy; 6484 if (addr == 0) 6485 { 6486 addr = &dummy; 6487 return find_stack_direction (); 6488 } 6489 else 6490 return (&dummy > addr) ? 1 : -1; 6491} 6492 6493int 6494main (void) 6495{ 6496 $ac_main_return (find_stack_direction () < 0); 6497} 6498_ACEOF 6499rm -f "conftest$ac_exeext" 6500if { (eval echo "$as_me:6500: \"$ac_link\"") >&5 6501 (eval $ac_link) 2>&5 6502 ac_status=$? 6503 echo "$as_me:6503: \$? = $ac_status" >&5 6504 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 6505 { (eval echo "$as_me:6505: \"$ac_try\"") >&5 6506 (eval $ac_try) 2>&5 6507 ac_status=$? 6508 echo "$as_me:6508: \$? = $ac_status" >&5 6509 (exit "$ac_status"); }; }; then 6510 ac_cv_c_stack_direction=1 6511else 6512 echo "$as_me: program exited with status $ac_status" >&5 6513echo "$as_me: failed program was:" >&5 6514cat "conftest.$ac_ext" >&5 6515ac_cv_c_stack_direction=-1 6516fi 6517rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 6518fi 6519fi 6520echo "$as_me:6520: result: $ac_cv_c_stack_direction" >&5 6521echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 6522 6523cat >>confdefs.h <<EOF 6524#define STACK_DIRECTION $ac_cv_c_stack_direction 6525EOF 6526 6527fi 6528 6529 ;; 6530esac 6531 6532# Extract the first word of "groff", so it can be a program name with args. 6533set dummy groff; ac_word=$2 6534echo "$as_me:6534: checking for $ac_word" >&5 6535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6536if test "${ac_cv_path_GROFF_PATH+set}" = set; then 6537 echo $ECHO_N "(cached) $ECHO_C" >&6 6538else 6539 case $GROFF_PATH in 6540 [\\/]* | ?:[\\/]*) 6541 ac_cv_path_GROFF_PATH="$GROFF_PATH" # Let the user override the test with a path. 6542 ;; 6543 *) 6544 ac_save_IFS=$IFS; IFS=$ac_path_separator 6545ac_dummy="$PATH" 6546for ac_dir in $ac_dummy; do 6547 IFS=$ac_save_IFS 6548 test -z "$ac_dir" && ac_dir=. 6549 if $as_executable_p "$ac_dir/$ac_word"; then 6550 ac_cv_path_GROFF_PATH="$ac_dir/$ac_word" 6551 echo "$as_me:6551: found $ac_dir/$ac_word" >&5 6552 break 6553fi 6554done 6555 6556 test -z "$ac_cv_path_GROFF_PATH" && ac_cv_path_GROFF_PATH="no" 6557 ;; 6558esac 6559fi 6560GROFF_PATH=$ac_cv_path_GROFF_PATH 6561 6562if test -n "$GROFF_PATH"; then 6563 echo "$as_me:6563: result: $GROFF_PATH" >&5 6564echo "${ECHO_T}$GROFF_PATH" >&6 6565else 6566 echo "$as_me:6566: result: no" >&5 6567echo "${ECHO_T}no" >&6 6568fi 6569 6570for ac_prog in nroff mandoc 6571do 6572 # Extract the first word of "$ac_prog", so it can be a program name with args. 6573set dummy $ac_prog; ac_word=$2 6574echo "$as_me:6574: checking for $ac_word" >&5 6575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6576if test "${ac_cv_path_NROFF_PATH+set}" = set; then 6577 echo $ECHO_N "(cached) $ECHO_C" >&6 6578else 6579 case $NROFF_PATH in 6580 [\\/]* | ?:[\\/]*) 6581 ac_cv_path_NROFF_PATH="$NROFF_PATH" # Let the user override the test with a path. 6582 ;; 6583 *) 6584 ac_save_IFS=$IFS; IFS=$ac_path_separator 6585ac_dummy="$PATH" 6586for ac_dir in $ac_dummy; do 6587 IFS=$ac_save_IFS 6588 test -z "$ac_dir" && ac_dir=. 6589 if $as_executable_p "$ac_dir/$ac_word"; then 6590 ac_cv_path_NROFF_PATH="$ac_dir/$ac_word" 6591 echo "$as_me:6591: found $ac_dir/$ac_word" >&5 6592 break 6593fi 6594done 6595 6596 ;; 6597esac 6598fi 6599NROFF_PATH=$ac_cv_path_NROFF_PATH 6600 6601if test -n "$NROFF_PATH"; then 6602 echo "$as_me:6602: result: $NROFF_PATH" >&5 6603echo "${ECHO_T}$NROFF_PATH" >&6 6604else 6605 echo "$as_me:6605: result: no" >&5 6606echo "${ECHO_T}no" >&6 6607fi 6608 6609 test -n "$NROFF_PATH" && break 6610done 6611test -n "$NROFF_PATH" || NROFF_PATH="no" 6612 6613# Extract the first word of "tbl", so it can be a program name with args. 6614set dummy tbl; ac_word=$2 6615echo "$as_me:6615: checking for $ac_word" >&5 6616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6617if test "${ac_cv_path_TBL_PATH+set}" = set; then 6618 echo $ECHO_N "(cached) $ECHO_C" >&6 6619else 6620 case $TBL_PATH in 6621 [\\/]* | ?:[\\/]*) 6622 ac_cv_path_TBL_PATH="$TBL_PATH" # Let the user override the test with a path. 6623 ;; 6624 *) 6625 ac_save_IFS=$IFS; IFS=$ac_path_separator 6626ac_dummy="$PATH" 6627for ac_dir in $ac_dummy; do 6628 IFS=$ac_save_IFS 6629 test -z "$ac_dir" && ac_dir=. 6630 if $as_executable_p "$ac_dir/$ac_word"; then 6631 ac_cv_path_TBL_PATH="$ac_dir/$ac_word" 6632 echo "$as_me:6632: found $ac_dir/$ac_word" >&5 6633 break 6634fi 6635done 6636 6637 test -z "$ac_cv_path_TBL_PATH" && ac_cv_path_TBL_PATH="cat" 6638 ;; 6639esac 6640fi 6641TBL_PATH=$ac_cv_path_TBL_PATH 6642 6643if test -n "$TBL_PATH"; then 6644 echo "$as_me:6644: result: $TBL_PATH" >&5 6645echo "${ECHO_T}$TBL_PATH" >&6 6646else 6647 echo "$as_me:6647: result: no" >&5 6648echo "${ECHO_T}no" >&6 6649fi 6650 6651if test "x$GROFF_PATH" = xno 6652then 6653 NROFF_NOTE= 6654 GROFF_NOTE="#" 6655else 6656 NROFF_NOTE="#" 6657 GROFF_NOTE= 6658fi 6659 6660case "x${with_man2html}" in 6661(xno) 6662 cf_man2html=no 6663 ;; 6664(x|xyes) 6665 # Extract the first word of "man2html", so it can be a program name with args. 6666set dummy man2html; ac_word=$2 6667echo "$as_me:6667: checking for $ac_word" >&5 6668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6669if test "${ac_cv_path_cf_man2html+set}" = set; then 6670 echo $ECHO_N "(cached) $ECHO_C" >&6 6671else 6672 case $cf_man2html in 6673 [\\/]* | ?:[\\/]*) 6674 ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path. 6675 ;; 6676 *) 6677 ac_save_IFS=$IFS; IFS=$ac_path_separator 6678ac_dummy="$PATH" 6679for ac_dir in $ac_dummy; do 6680 IFS=$ac_save_IFS 6681 test -z "$ac_dir" && ac_dir=. 6682 if $as_executable_p "$ac_dir/$ac_word"; then 6683 ac_cv_path_cf_man2html="$ac_dir/$ac_word" 6684 echo "$as_me:6684: found $ac_dir/$ac_word" >&5 6685 break 6686fi 6687done 6688 6689 test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no" 6690 ;; 6691esac 6692fi 6693cf_man2html=$ac_cv_path_cf_man2html 6694 6695if test -n "$cf_man2html"; then 6696 echo "$as_me:6696: result: $cf_man2html" >&5 6697echo "${ECHO_T}$cf_man2html" >&6 6698else 6699 echo "$as_me:6699: result: no" >&5 6700echo "${ECHO_T}no" >&6 6701fi 6702 6703 case "x$cf_man2html" in 6704 (x/*) 6705 echo "$as_me:6705: checking for the modified Earl Hood script" >&5 6706echo $ECHO_N "checking for the modified Earl Hood script... $ECHO_C" >&6 6707 if ( $cf_man2html -help 2>&1 | grep 'Make an index of headers at the end' >/dev/null ) 6708 then 6709 cf_man2html_ok=yes 6710 else 6711 cf_man2html=no 6712 cf_man2html_ok=no 6713 fi 6714 echo "$as_me:6714: result: $cf_man2html_ok" >&5 6715echo "${ECHO_T}$cf_man2html_ok" >&6 6716 ;; 6717 (*) 6718 cf_man2html=no 6719 ;; 6720 esac 6721esac 6722 6723echo "$as_me:6723: checking for program to convert manpage to html" >&5 6724echo $ECHO_N "checking for program to convert manpage to html... $ECHO_C" >&6 6725 6726# Check whether --with-man2html or --without-man2html was given. 6727if test "${with_man2html+set}" = set; then 6728 withval="$with_man2html" 6729 cf_man2html=$withval 6730else 6731 cf_man2html=$cf_man2html 6732fi; 6733 6734cf_with_groff=no 6735 6736case $cf_man2html in 6737(yes) 6738 echo "$as_me:6738: result: man2html" >&5 6739echo "${ECHO_T}man2html" >&6 6740 # Extract the first word of "man2html", so it can be a program name with args. 6741set dummy man2html; ac_word=$2 6742echo "$as_me:6742: checking for $ac_word" >&5 6743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6744if test "${ac_cv_path_cf_man2html+set}" = set; then 6745 echo $ECHO_N "(cached) $ECHO_C" >&6 6746else 6747 case $cf_man2html in 6748 [\\/]* | ?:[\\/]*) 6749 ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path. 6750 ;; 6751 *) 6752 ac_save_IFS=$IFS; IFS=$ac_path_separator 6753ac_dummy="$PATH" 6754for ac_dir in $ac_dummy; do 6755 IFS=$ac_save_IFS 6756 test -z "$ac_dir" && ac_dir=. 6757 if $as_executable_p "$ac_dir/$ac_word"; then 6758 ac_cv_path_cf_man2html="$ac_dir/$ac_word" 6759 echo "$as_me:6759: found $ac_dir/$ac_word" >&5 6760 break 6761fi 6762done 6763 6764 test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no" 6765 ;; 6766esac 6767fi 6768cf_man2html=$ac_cv_path_cf_man2html 6769 6770if test -n "$cf_man2html"; then 6771 echo "$as_me:6771: result: $cf_man2html" >&5 6772echo "${ECHO_T}$cf_man2html" >&6 6773else 6774 echo "$as_me:6774: result: no" >&5 6775echo "${ECHO_T}no" >&6 6776fi 6777 6778 ;; 6779(no|groff|*/groff*) 6780 cf_with_groff=yes 6781 cf_man2html=$GROFF_PATH 6782 echo "$as_me:6782: result: $cf_man2html" >&5 6783echo "${ECHO_T}$cf_man2html" >&6 6784 ;; 6785(*) 6786 echo "$as_me:6786: result: $cf_man2html" >&5 6787echo "${ECHO_T}$cf_man2html" >&6 6788 ;; 6789esac 6790 6791MAN2HTML_TEMP="man2html.tmp" 6792 cat >$MAN2HTML_TEMP <<CF_EOF 6793#!$SHELL 6794# Temporary script generated by CF_WITH_MAN2HTML 6795# Convert inputs to html, sending result to standard output. 6796# 6797# Parameters: 6798# \${1} = rootname of file to convert 6799# \${2} = suffix of file to convert, e.g., "1" 6800# \${3} = macros to use, e.g., "man" 6801# 6802ROOT=\$1 6803TYPE=\$2 6804MACS=\$3 6805 6806unset LANG 6807unset LC_ALL 6808unset LC_CTYPE 6809unset LANGUAGE 6810GROFF_NO_SGR=stupid 6811export GROFF_NO_SGR 6812 6813CF_EOF 6814 6815NROFF_OPTS= 6816if test "x$cf_with_groff" = xyes 6817then 6818 MAN2HTML_NOTE="$GROFF_NOTE" 6819 MAN2HTML_PATH="$GROFF_PATH" 6820 cat >>$MAN2HTML_TEMP <<CF_EOF 6821$SHELL -c "$TBL_PATH \${ROOT}.\${TYPE} | $GROFF_PATH -P -o0 -I\${ROOT}_ -Thtml -\${MACS}" 6822CF_EOF 6823else 6824 # disable hyphenation if this is groff 6825 if test "x$GROFF_PATH" != xno 6826 then 6827 echo "$as_me:6827: checking if nroff is really groff" >&5 6828echo $ECHO_N "checking if nroff is really groff... $ECHO_C" >&6 6829 cf_check_groff="`$NROFF_PATH --version 2>/dev/null | grep groff`" 6830 test -n "$cf_check_groff" && cf_check_groff=yes 6831 test -n "$cf_check_groff" || cf_check_groff=no 6832 echo "$as_me:6832: result: $cf_check_groff" >&5 6833echo "${ECHO_T}$cf_check_groff" >&6 6834 test "x$cf_check_groff" = xyes && NROFF_OPTS="-rHY=0" 6835 fi 6836 MAN2HTML_NOTE="" 6837 6838if test "x$prefix" != xNONE; then 6839 cf_path_syntax="$prefix" 6840else 6841 cf_path_syntax="$ac_default_prefix" 6842fi 6843 6844case ".$cf_man2html" in 6845(.\$\(*\)*|.\'*\'*) 6846 ;; 6847(..|./*|.\\*) 6848 ;; 6849(.[a-zA-Z]:[\\/]*) # OS/2 EMX 6850 ;; 6851(.\$\{*prefix\}*|.\$\{*dir\}*) 6852 eval cf_man2html="$cf_man2html" 6853 case ".$cf_man2html" in 6854 (.NONE/*) 6855 cf_man2html=`echo "$cf_man2html" | sed -e s%NONE%$cf_path_syntax%` 6856 ;; 6857 esac 6858 ;; 6859(.no|.NONE/*) 6860 cf_man2html=`echo "$cf_man2html" | sed -e s%NONE%$cf_path_syntax%` 6861 ;; 6862(*) 6863 { { echo "$as_me:6863: error: expected a pathname, not \"$cf_man2html\"" >&5 6864echo "$as_me: error: expected a pathname, not \"$cf_man2html\"" >&2;} 6865 { (exit 1); exit 1; }; } 6866 ;; 6867esac 6868 6869 MAN2HTML_PATH="$cf_man2html" 6870 echo "$as_me:6870: checking for $cf_man2html top/bottom margins" >&5 6871echo $ECHO_N "checking for $cf_man2html top/bottom margins... $ECHO_C" >&6 6872 6873 # for this example, expect 3 lines of content, the remainder is head/foot 6874 cat >conftest.in <<CF_EOF 6875.TH HEAD1 HEAD2 HEAD3 HEAD4 HEAD5 6876.SH SECTION 6877MARKER 6878CF_EOF 6879 6880 LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out 6881 6882 cf_man2html_1st="`${FGREP-fgrep} -n MARKER conftest.out |sed -e 's/^[^0-9]*://' -e 's/:.*//'`" 6883 cf_man2html_top=`expr "$cf_man2html_1st" - 2` 6884 cf_man2html_bot="`wc -l conftest.out |sed -e 's/[^0-9]//g'`" 6885 cf_man2html_bot=`expr "$cf_man2html_bot" - 2 - "$cf_man2html_top"` 6886 cf_man2html_top_bot="-topm=$cf_man2html_top -botm=$cf_man2html_bot" 6887 6888 echo "$as_me:6888: result: $cf_man2html_top_bot" >&5 6889echo "${ECHO_T}$cf_man2html_top_bot" >&6 6890 6891 echo "$as_me:6891: checking for pagesize to use" >&5 6892echo $ECHO_N "checking for pagesize to use... $ECHO_C" >&6 6893 for cf_block in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 6894 do 6895 cat >>conftest.in <<CF_EOF 6896.nf 68970 68981 68992 69003 69014 69025 69036 69047 69058 69069 6907CF_EOF 6908 done 6909 6910 LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out 6911 cf_man2html_page="`${FGREP-fgrep} -n HEAD1 conftest.out |sed -n '$p' |sed -e 's/^[^0-9]*://' -e 's/:.*//'`" 6912 test -z "$cf_man2html_page" && cf_man2html_page=99999 6913 test "$cf_man2html_page" -gt 100 && cf_man2html_page=99999 6914 6915 rm -rf conftest* 6916 echo "$as_me:6916: result: $cf_man2html_page" >&5 6917echo "${ECHO_T}$cf_man2html_page" >&6 6918 6919 cat >>$MAN2HTML_TEMP <<CF_EOF 6920: \${MAN2HTML_PATH=$MAN2HTML_PATH} 6921MAN2HTML_OPTS="\$MAN2HTML_OPTS -index -title=\"\$ROOT(\$TYPE)\" -compress -pgsize $cf_man2html_page" 6922case \${TYPE} in 6923(ms) 6924 $TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH $NROFF_OPTS -\${MACS} | \$MAN2HTML_PATH -topm=0 -botm=0 \$MAN2HTML_OPTS 6925 ;; 6926(*) 6927 $TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH $NROFF_OPTS -\${MACS} | \$MAN2HTML_PATH $cf_man2html_top_bot \$MAN2HTML_OPTS 6928 ;; 6929esac 6930CF_EOF 6931fi 6932 6933chmod 700 $MAN2HTML_TEMP 6934 6935ac_config_files="$ac_config_files Makefile" 6936ac_config_commands="$ac_config_commands default" 6937cat >confcache <<\_ACEOF 6938# This file is a shell script that caches the results of configure 6939# tests run on this system so they can be shared between configure 6940# scripts and configure runs, see configure's option --config-cache. 6941# It is not useful on other systems. If it contains results you don't 6942# want to keep, you may remove or edit it. 6943# 6944# config.status only pays attention to the cache file if you give it 6945# the --recheck option to rerun configure. 6946# 6947# `ac_cv_env_foo' variables (set or unset) will be overriden when 6948# loading this file, other *unset* `ac_cv_foo' will be assigned the 6949# following values. 6950 6951_ACEOF 6952 6953# The following way of writing the cache mishandles newlines in values, 6954# but we know of no workaround that is simple, portable, and efficient. 6955# So, don't put newlines in cache variables' values. 6956# Ultrix sh set writes to stderr and can't be redirected directly, 6957# and sets the high bit in the cache file unless we assign to the vars. 6958{ 6959 (set) 2>&1 | 6960 case `(ac_space=' '; set | grep ac_space) 2>&1` in 6961 *ac_space=\ *) 6962 # `set' does not quote correctly, so add quotes (double-quote 6963 # substitution turns \\\\ into \\, and sed turns \\ into \). 6964 sed -n \ 6965 "s/'/'\\\\''/g; 6966 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 6967 ;; 6968 *) 6969 # `set' quotes correctly as required by POSIX, so do not add quotes. 6970 sed -n \ 6971 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 6972 ;; 6973 esac; 6974} | 6975 sed ' 6976 t clear 6977 : clear 6978 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 6979 t end 6980 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 6981 : end' >>confcache 6982if cmp -s $cache_file confcache; then :; else 6983 if test -w $cache_file; then 6984 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 6985 cat confcache >$cache_file 6986 else 6987 echo "not updating unwritable cache $cache_file" 6988 fi 6989fi 6990rm -f confcache 6991 6992test "x$prefix" = xNONE && prefix=$ac_default_prefix 6993# Let make expand exec_prefix. 6994test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 6995 6996# VPATH may cause trouble with some makes, so we remove $(srcdir), 6997# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 6998# trailing colons and then remove the whole line if VPATH becomes empty 6999# (actually we leave an empty line to preserve line numbers). 7000if test "x$srcdir" = x.; then 7001 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 7002s/:*\$(srcdir):*/:/; 7003s/:*\${srcdir}:*/:/; 7004s/:*@srcdir@:*/:/; 7005s/^\([^=]*=[ ]*\):*/\1/; 7006s/:*$//; 7007s/^[^=]*=[ ]*$//; 7008}' 7009fi 7010 7011DEFS=-DHAVE_CONFIG_H 7012 7013: "${CONFIG_STATUS=./config.status}" 7014ac_clean_files_save=$ac_clean_files 7015ac_clean_files="$ac_clean_files $CONFIG_STATUS" 7016{ echo "$as_me:7016: creating $CONFIG_STATUS" >&5 7017echo "$as_me: creating $CONFIG_STATUS" >&6;} 7018cat >"$CONFIG_STATUS" <<_ACEOF 7019#! $SHELL 7020# Generated automatically by configure. 7021# Run this file to recreate the current configuration. 7022# Compiler output produced by configure, useful for debugging 7023# configure, is in config.log if it exists. 7024 7025debug=false 7026SHELL=\${CONFIG_SHELL-$SHELL} 7027ac_cs_invocation="\$0 \$@" 7028 7029CLICOLOR_FORCE= GREP_OPTIONS= 7030unset CLICOLOR_FORCE GREP_OPTIONS 7031_ACEOF 7032 7033cat >>"$CONFIG_STATUS" <<\_ACEOF 7034# Be Bourne compatible 7035if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 7036 emulate sh 7037 NULLCMD=: 7038elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 7039 set -o posix 7040fi 7041 7042# Name of the executable. 7043as_me=`echo "$0" |sed 's,.*[\\/],,'` 7044 7045if expr a : '\(a\)' >/dev/null 2>&1; then 7046 as_expr=expr 7047else 7048 as_expr=false 7049fi 7050 7051rm -f conf$$ conf$$.exe conf$$.file 7052echo >conf$$.file 7053if ln -s conf$$.file conf$$ 2>/dev/null; then 7054 # We could just check for DJGPP; but this test a) works b) is more generic 7055 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 7056 if test -f conf$$.exe; then 7057 # Don't use ln at all; we don't have any links 7058 as_ln_s='cp -p' 7059 else 7060 as_ln_s='ln -s' 7061 fi 7062elif ln conf$$.file conf$$ 2>/dev/null; then 7063 as_ln_s=ln 7064else 7065 as_ln_s='cp -p' 7066fi 7067rm -f conf$$ conf$$.exe conf$$.file 7068 7069as_executable_p="test -f" 7070 7071# Support unset when possible. 7072if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 7073 as_unset="unset" 7074else 7075 as_unset="false" 7076fi 7077 7078# NLS nuisances. 7079$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 7080$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 7081$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 7082$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 7083$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 7084$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 7085$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 7086$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 7087 7088# IFS 7089# We need space, tab and new line, in precisely that order. 7090as_nl=' 7091' 7092IFS=" $as_nl" 7093 7094# CDPATH. 7095$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 7096 7097exec 6>&1 7098 7099_ACEOF 7100 7101# Files that config.status was made for. 7102if test -n "$ac_config_files"; then 7103 echo "config_files=\"$ac_config_files\"" >>"$CONFIG_STATUS" 7104fi 7105 7106if test -n "$ac_config_headers"; then 7107 echo "config_headers=\"$ac_config_headers\"" >>"$CONFIG_STATUS" 7108fi 7109 7110if test -n "$ac_config_links"; then 7111 echo "config_links=\"$ac_config_links\"" >>"$CONFIG_STATUS" 7112fi 7113 7114if test -n "$ac_config_commands"; then 7115 echo "config_commands=\"$ac_config_commands\"" >>"$CONFIG_STATUS" 7116fi 7117 7118cat >>"$CONFIG_STATUS" <<\EOF 7119 7120ac_cs_usage="\ 7121\`$as_me' instantiates files from templates according to the 7122current configuration. 7123 7124Usage: $0 [OPTIONS] [FILE]... 7125 7126 -h, --help print this help, then exit 7127 -V, --version print version number, then exit 7128 -d, --debug don't remove temporary files 7129 --recheck update $as_me by reconfiguring in the same conditions 7130 --file=FILE[:TEMPLATE] 7131 instantiate the configuration file FILE 7132 --header=FILE[:TEMPLATE] 7133 instantiate the configuration header FILE 7134 7135Configuration files: 7136$config_files 7137 7138Configuration headers: 7139$config_headers 7140 7141Configuration commands: 7142$config_commands 7143 7144Report bugs to <dickey@invisible-island.net>." 7145EOF 7146 7147cat >>"$CONFIG_STATUS" <<EOF 7148ac_cs_version="\\ 7149config.status 7150configured by $0, generated by GNU Autoconf 2.52.20210509, 7151 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 7152 7153Copyright 2003-2020,2021 Thomas E. Dickey 7154Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 7155Free Software Foundation, Inc. 7156This config.status script is free software; the Free Software Foundation 7157gives unlimited permission to copy, distribute and modify it." 7158srcdir="$srcdir" 7159INSTALL="$INSTALL" 7160EOF 7161 7162cat >>"$CONFIG_STATUS" <<\EOF 7163# If no file are specified by the user, then we need to provide default 7164# value. By we need to know if files were specified by the user. 7165ac_need_defaults=: 7166while test $# != 0 7167do 7168 case $1 in 7169 --*=*) 7170 ac_option=`expr "x$1" : 'x\([^=]*\)='` 7171 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 7172 shift 7173 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 7174 shift 7175 ;; 7176 -*);; 7177 *) # This is not an option, so the user has probably given explicit 7178 # arguments. 7179 ac_need_defaults=false;; 7180 esac 7181 7182 case $1 in 7183 # Handling of the options. 7184EOF 7185cat >>"$CONFIG_STATUS" <<EOF 7186 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 7187 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 7188 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 7189EOF 7190cat >>"$CONFIG_STATUS" <<\EOF 7191 --version | --vers* | -V ) 7192 echo "$ac_cs_version"; exit 0 ;; 7193 --he | --h) 7194 # Conflict between --help and --header 7195 { { echo "$as_me:7195: error: ambiguous option: $1 7196Try \`$0 --help' for more information." >&5 7197echo "$as_me: error: ambiguous option: $1 7198Try \`$0 --help' for more information." >&2;} 7199 { (exit 1); exit 1; }; };; 7200 --help | --hel | -h ) 7201 echo "$ac_cs_usage"; exit 0 ;; 7202 --debug | --d* | -d ) 7203 debug=: ;; 7204 --file | --fil | --fi | --f ) 7205 shift 7206 CONFIG_FILES="$CONFIG_FILES $1" 7207 ac_need_defaults=false;; 7208 --header | --heade | --head | --hea ) 7209 shift 7210 CONFIG_HEADERS="$CONFIG_HEADERS $1" 7211 ac_need_defaults=false;; 7212 7213 # This is an error. 7214 -*) { { echo "$as_me:7214: error: unrecognized option: $1 7215Try \`$0 --help' for more information." >&5 7216echo "$as_me: error: unrecognized option: $1 7217Try \`$0 --help' for more information." >&2;} 7218 { (exit 1); exit 1; }; } ;; 7219 7220 *) ac_config_targets="$ac_config_targets $1" ;; 7221 7222 esac 7223 shift 7224done 7225 7226exec 5>>config.log 7227cat >&5 << _ACEOF 7228 7229## ----------------------- ## 7230## Running config.status. ## 7231## ----------------------- ## 7232 7233This file was extended by $as_me 2.52.20210509, executed with 7234 CONFIG_FILES = $CONFIG_FILES 7235 CONFIG_HEADERS = $CONFIG_HEADERS 7236 CONFIG_LINKS = $CONFIG_LINKS 7237 CONFIG_COMMANDS = $CONFIG_COMMANDS 7238 > "$ac_cs_invocation" 7239on `(hostname || uname -n) 2>/dev/null | sed 1q` 7240 7241_ACEOF 7242EOF 7243 7244cat >>"$CONFIG_STATUS" <<\EOF 7245for ac_config_target in $ac_config_targets 7246do 7247 case "$ac_config_target" in 7248 # Handling of arguments. 7249 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 7250 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 7251 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:conf.in" ;; 7252 *) { { echo "$as_me:7252: error: invalid argument: $ac_config_target" >&5 7253echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 7254 { (exit 1); exit 1; }; };; 7255 esac 7256done 7257 7258# If the user did not use the arguments to specify the items to instantiate, 7259# then the envvar interface is used. Set only those that are not. 7260# We use the long form for the default assignment because of an extremely 7261# bizarre bug on SunOS 4.1.3. 7262if "$ac_need_defaults"; then 7263 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 7264 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 7265 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 7266fi 7267 7268# Create a temporary directory, and hook for its removal unless debugging. 7269$debug || 7270{ 7271 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 7272 trap '{ (exit 1); exit 1; }' 1 2 13 15 7273} 7274 7275# Create a (secure) tmp directory for tmp files. 7276: ${TMPDIR=/tmp} 7277{ 7278 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 7279 test -n "$tmp" && test -d "$tmp" 7280} || 7281{ 7282 tmp=$TMPDIR/cs$$-$RANDOM 7283 (umask 077 && mkdir $tmp) 7284} || 7285{ 7286 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 7287 { (exit 1); exit 1; } 7288} 7289 7290EOF 7291 7292cat >>"$CONFIG_STATUS" <<EOF 7293 7294# 7295# CONFIG_FILES section. 7296# 7297 7298# No need to generate the scripts if there are no CONFIG_FILES. 7299# This happens for instance when ./config.status config.h 7300if test -n "\$CONFIG_FILES"; then 7301 # Protect against being on the right side of a sed subst in config.status. 7302 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 7303 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 7304s,@X_CFLAGS@,$X_CFLAGS,;t t 7305s,@X_LIBS@,$X_LIBS,;t t 7306s,@SHELL@,$SHELL,;t t 7307s,@exec_prefix@,$exec_prefix,;t t 7308s,@prefix@,$prefix,;t t 7309s,@program_transform_name@,$program_transform_name,;t t 7310s,@bindir@,$bindir,;t t 7311s,@sbindir@,$sbindir,;t t 7312s,@libexecdir@,$libexecdir,;t t 7313s,@datarootdir@,$datarootdir,;t t 7314s,@datadir@,$datadir,;t t 7315s,@sysconfdir@,$sysconfdir,;t t 7316s,@sharedstatedir@,$sharedstatedir,;t t 7317s,@localstatedir@,$localstatedir,;t t 7318s,@runstatedir@,$runstatedir,;t t 7319s,@libdir@,$libdir,;t t 7320s,@includedir@,$includedir,;t t 7321s,@oldincludedir@,$oldincludedir,;t t 7322s,@infodir@,$infodir,;t t 7323s,@mandir@,$mandir,;t t 7324s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 7325s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 7326s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 7327s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 7328s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 7329s,@build_alias@,$build_alias,;t t 7330s,@host_alias@,$host_alias,;t t 7331s,@target_alias@,$target_alias,;t t 7332s,@ECHO_C@,$ECHO_C,;t t 7333s,@ECHO_N@,$ECHO_N,;t t 7334s,@ECHO_T@,$ECHO_T,;t t 7335s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 7336s,@DEFS@,$DEFS,;t t 7337s,@LIBS@,$LIBS,;t t 7338s,@build@,$build,;t t 7339s,@build_cpu@,$build_cpu,;t t 7340s,@build_vendor@,$build_vendor,;t t 7341s,@build_os@,$build_os,;t t 7342s,@host@,$host,;t t 7343s,@host_cpu@,$host_cpu,;t t 7344s,@host_vendor@,$host_vendor,;t t 7345s,@host_os@,$host_os,;t t 7346s,@PROG_EXT@,$PROG_EXT,;t t 7347s,@LN_S@,$LN_S,;t t 7348s,@YACC@,$YACC,;t t 7349s,@CC@,$CC,;t t 7350s,@CFLAGS@,$CFLAGS,;t t 7351s,@LDFLAGS@,$LDFLAGS,;t t 7352s,@CPPFLAGS@,$CPPFLAGS,;t t 7353s,@ac_ct_CC@,$ac_ct_CC,;t t 7354s,@EXEEXT@,$EXEEXT,;t t 7355s,@OBJEXT@,$OBJEXT,;t t 7356s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t 7357s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 7358s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 7359s,@INSTALL_DATA@,$INSTALL_DATA,;t t 7360s,@RANLIB@,$RANLIB,;t t 7361s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 7362s,@LD@,$LD,;t t 7363s,@ac_ct_LD@,$ac_ct_LD,;t t 7364s,@AR@,$AR,;t t 7365s,@ac_ct_AR@,$ac_ct_AR,;t t 7366s,@ARFLAGS@,$ARFLAGS,;t t 7367s,@CTAGS@,$CTAGS,;t t 7368s,@ETAGS@,$ETAGS,;t t 7369s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t 7370s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t 7371s,@LINT@,$LINT,;t t 7372s,@LINT_OPTS@,$LINT_OPTS,;t t 7373s,@ECHO_LT@,$ECHO_LT,;t t 7374s,@ECHO_LD@,$ECHO_LD,;t t 7375s,@RULE_CC@,$RULE_CC,;t t 7376s,@SHOW_CC@,$SHOW_CC,;t t 7377s,@ECHO_CC@,$ECHO_CC,;t t 7378s,@SET_MAKE@,$SET_MAKE,;t t 7379s,@CPP@,$CPP,;t t 7380s,@GREP@,$GREP,;t t 7381s,@EGREP@,$EGREP,;t t 7382s,@FGREP@,$FGREP,;t t 7383s,@HAVE_STDNORETURN_H@,$HAVE_STDNORETURN_H,;t t 7384s,@STDC_NORETURN@,$STDC_NORETURN,;t t 7385s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t 7386s,@ALLOCA@,$ALLOCA,;t t 7387s,@GROFF_PATH@,$GROFF_PATH,;t t 7388s,@NROFF_PATH@,$NROFF_PATH,;t t 7389s,@TBL_PATH@,$TBL_PATH,;t t 7390s,@GROFF_NOTE@,$GROFF_NOTE,;t t 7391s,@NROFF_NOTE@,$NROFF_NOTE,;t t 7392s,@cf_man2html@,$cf_man2html,;t t 7393s,@MAN2HTML_NOTE@,$MAN2HTML_NOTE,;t t 7394s,@MAN2HTML_PATH@,$MAN2HTML_PATH,;t t 7395s,@MAN2HTML_TEMP@,$MAN2HTML_TEMP,;t t 7396CEOF 7397 7398EOF 7399 7400 cat >>"$CONFIG_STATUS" <<\EOF 7401 # Split the substitutions into bite-sized pieces for seds with 7402 # small command number limits, like on Digital OSF/1 and HP-UX. 7403 ac_max_sed_lines=48 7404 ac_sed_frag=1 # Number of current file. 7405 ac_beg=1 # First line for current file. 7406 ac_end=$ac_max_sed_lines # Line after last line for current file. 7407 ac_more_lines=: 7408 ac_sed_cmds= 7409 while "$ac_more_lines"; do 7410 if test "$ac_beg" -gt 1; then 7411 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 7412 else 7413 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 7414 fi 7415 if test ! -s $tmp/subs.frag; then 7416 ac_more_lines=false 7417 else 7418 # The purpose of the label and of the branching condition is to 7419 # speed up the sed processing (if there are no `@' at all, there 7420 # is no need to browse any of the substitutions). 7421 # These are the two extra sed commands mentioned above. 7422 (echo ':t 7423 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 7424 # It is possible to make a multiline substitution using escaped newlines. 7425 # Ensure that we do not split the substitution between script fragments. 7426 ac_BEG=$ac_end 7427 ac_END=`expr "$ac_end" + "$ac_max_sed_lines"` 7428 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next 7429 if test -s $tmp/subs.next; then 7430 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit 7431 if test ! -s $tmp/subs.edit; then 7432 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit 7433 if test ! -s $tmp/subs.edit; then 7434 if test "$ac_beg" -gt 1; then 7435 ac_end=`expr "$ac_end" - 1` 7436 continue 7437 fi 7438 fi 7439 fi 7440 fi 7441 7442 if test -z "$ac_sed_cmds"; then 7443 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 7444 else 7445 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 7446 fi 7447 ac_sed_frag=`expr "$ac_sed_frag" + 1` 7448 ac_beg=$ac_end 7449 ac_end=`expr "$ac_end" + "$ac_max_sed_lines"` 7450 fi 7451 done 7452 if test -z "$ac_sed_cmds"; then 7453 ac_sed_cmds=cat 7454 fi 7455fi # test -n "$CONFIG_FILES" 7456 7457EOF 7458cat >>"$CONFIG_STATUS" <<\EOF 7459for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 7460 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 7461 case "$ac_file" in 7462 - | *:- | *:-:* ) # input from stdin 7463 cat >$tmp/stdin 7464 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7465 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7466 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7467 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7468 * ) ac_file_in=$ac_file.in ;; 7469 esac 7470 7471 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 7472 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7473 X"$ac_file" : 'X\(//\)[^/]' \| \ 7474 X"$ac_file" : 'X\(//\)$' \| \ 7475 X"$ac_file" : 'X\(/\)' \| \ 7476 . : '\(.\)' 2>/dev/null || 7477echo X"$ac_file" | 7478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7479 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7480 /^X\(\/\/\)$/{ s//\1/; q; } 7481 /^X\(\/\).*/{ s//\1/; q; } 7482 s/.*/./; q'` 7483 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 7484 { case "$ac_dir" in 7485 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 7486 *) as_incr_dir=.;; 7487esac 7488as_dummy="$ac_dir" 7489for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 7490 case $as_mkdir_dir in 7491 # Skip DOS drivespec 7492 ?:) as_incr_dir=$as_mkdir_dir ;; 7493 *) 7494 as_incr_dir=$as_incr_dir/$as_mkdir_dir 7495 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 7496 ;; 7497 esac 7498done; } 7499 7500 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 7501 # A "../" for each directory in $ac_dir_suffix. 7502 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 7503 else 7504 ac_dir_suffix= ac_dots= 7505 fi 7506 7507 case "$srcdir" in 7508 .) ac_srcdir=. 7509 if test -z "$ac_dots"; then 7510 ac_top_srcdir=. 7511 else 7512 ac_top_srcdir=`echo "$ac_dots" | sed 's,/$,,'` 7513 fi ;; 7514 [\\/]* | ?:[\\/]* ) 7515 ac_srcdir="$srcdir$ac_dir_suffix"; 7516 ac_top_srcdir="$srcdir" ;; 7517 *) # Relative path. 7518 ac_srcdir="$ac_dots$srcdir$ac_dir_suffix" 7519 ac_top_srcdir="$ac_dots$srcdir" ;; 7520 esac 7521 7522 case $INSTALL in 7523 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 7524 *) ac_INSTALL=$ac_dots$INSTALL ;; 7525 esac 7526 7527 if test x"$ac_file" != x-; then 7528 { echo "$as_me:7528: creating $ac_file" >&5 7529echo "$as_me: creating $ac_file" >&6;} 7530 rm -f "$ac_file" 7531 fi 7532 # Let's still pretend it is `configure' which instantiates (i.e., don't 7533 # use $as_me), people would be surprised to read: 7534 # /* config.h. Generated automatically by config.status. */ 7535 configure_input="Generated automatically from `echo $ac_file_in | 7536 sed 's,.*/,,'` by configure." 7537 7538 # First look for the input files in the build tree, otherwise in the 7539 # src tree. 7540 ac_file_inputs=`IFS=: 7541 for f in $ac_file_in; do 7542 case $f in 7543 -) echo $tmp/stdin ;; 7544 [\\/$]*) 7545 # Absolute (can't be DOS-style, as IFS=:) 7546 test -f "$f" || { { echo "$as_me:7546: error: cannot find input file: $f" >&5 7547echo "$as_me: error: cannot find input file: $f" >&2;} 7548 { (exit 1); exit 1; }; } 7549 echo $f;; 7550 *) # Relative 7551 if test -f "$f"; then 7552 # Build tree 7553 echo $f 7554 elif test -f "$srcdir/$f"; then 7555 # Source tree 7556 echo "$srcdir/$f" 7557 else 7558 # /dev/null tree 7559 { { echo "$as_me:7559: error: cannot find input file: $f" >&5 7560echo "$as_me: error: cannot find input file: $f" >&2;} 7561 { (exit 1); exit 1; }; } 7562 fi;; 7563 esac 7564 done` || { (exit 1); exit 1; } 7565EOF 7566cat >>"$CONFIG_STATUS" <<\EOF 7567 ac_warn_datarootdir=no 7568 if test x"$ac_file" != x-; then 7569 for ac_item in $ac_file_inputs 7570 do 7571 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' "$ac_item"` 7572 if test -n "$ac_seen"; then 7573 ac_used=`grep '@datarootdir@' "$ac_item"` 7574 if test -z "$ac_used"; then 7575 { echo "$as_me:7575: WARNING: datarootdir was used implicitly but not set: 7576$ac_seen" >&5 7577echo "$as_me: WARNING: datarootdir was used implicitly but not set: 7578$ac_seen" >&2;} 7579 ac_warn_datarootdir=yes 7580 fi 7581 fi 7582 ac_seen=`grep '${datarootdir}' "$ac_item"` 7583 if test -n "$ac_seen"; then 7584 { echo "$as_me:7584: WARNING: datarootdir was used explicitly but not set: 7585$ac_seen" >&5 7586echo "$as_me: WARNING: datarootdir was used explicitly but not set: 7587$ac_seen" >&2;} 7588 ac_warn_datarootdir=yes 7589 fi 7590 done 7591 fi 7592 7593if test "x$ac_warn_datarootdir" = xyes; then 7594 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'" 7595fi 7596 7597EOF 7598cat >>"$CONFIG_STATUS" <<EOF 7599 sed "$ac_vpsub 7600$extrasub 7601EOF 7602cat >>"$CONFIG_STATUS" <<\EOF 7603:t 7604/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 7605s,@configure_input@,$configure_input,;t t 7606s,@srcdir@,$ac_srcdir,;t t 7607s,@top_srcdir@,$ac_top_srcdir,;t t 7608s,@INSTALL@,$ac_INSTALL,;t t 7609" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 7610 rm -f $tmp/stdin 7611 if test x"$ac_file" != x-; then 7612 cp "$tmp/out" "$ac_file" 7613 7614 for ac_name in prefix exec_prefix datarootdir 7615 do 7616 ac_seen=`${FGREP-fgrep} -n '${'$ac_name'[:=].*}' "$ac_file"` 7617 if test -n "$ac_seen"; then 7618 ac_init=`${EGREP-egrep} '[ ]*'$ac_name'[ ]*=' "$ac_file"` 7619 if test -z "$ac_init"; then 7620 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'` 7621 { echo "$as_me:7621: WARNING: Variable $ac_name is used but was not set: 7622$ac_seen" >&5 7623echo "$as_me: WARNING: Variable $ac_name is used but was not set: 7624$ac_seen" >&2;} 7625 fi 7626 fi 7627 done 7628 ${EGREP-egrep} -n '@[a-z_][a-z_0-9]+@' "$ac_file" >$tmp/out 7629 ${EGREP-egrep} -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>$tmp/out 7630 if test -s $tmp/out; then 7631 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out` 7632 { echo "$as_me:7632: WARNING: Some variables may not be substituted: 7633$ac_seen" >&5 7634echo "$as_me: WARNING: Some variables may not be substituted: 7635$ac_seen" >&2;} 7636 fi 7637 else 7638 cat $tmp/out 7639 fi 7640 rm -f $tmp/out 7641 7642done 7643EOF 7644cat >>"$CONFIG_STATUS" <<\EOF 7645 7646# 7647# CONFIG_HEADER section. 7648# 7649 7650# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 7651# NAME is the cpp macro being defined and VALUE is the value it is being given. 7652# 7653# ac_d sets the value in "#define NAME VALUE" lines. 7654ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 7655ac_dB='[ ].*$,\1#\2' 7656ac_dC=' ' 7657ac_dD=',;t' 7658# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 7659ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 7660ac_iB='\([ ]\),\1#\2define\3' 7661ac_iC=' ' 7662ac_iD='\4,;t' 7663# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 7664ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 7665ac_uB='$,\1#\2define\3' 7666ac_uC=' ' 7667ac_uD=',;t' 7668 7669for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 7670 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 7671 case "$ac_file" in 7672 - | *:- | *:-:* ) # input from stdin 7673 cat >$tmp/stdin 7674 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7675 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7676 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7677 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7678 * ) ac_file_in=$ac_file.in ;; 7679 esac 7680 7681 test x"$ac_file" != x- && { echo "$as_me:7681: creating $ac_file" >&5 7682echo "$as_me: creating $ac_file" >&6;} 7683 7684 # First look for the input files in the build tree, otherwise in the 7685 # src tree. 7686 ac_file_inputs=`IFS=: 7687 for f in $ac_file_in; do 7688 case $f in 7689 -) echo $tmp/stdin ;; 7690 [\\/$]*) 7691 # Absolute (can't be DOS-style, as IFS=:) 7692 test -f "$f" || { { echo "$as_me:7692: error: cannot find input file: $f" >&5 7693echo "$as_me: error: cannot find input file: $f" >&2;} 7694 { (exit 1); exit 1; }; } 7695 echo $f;; 7696 *) # Relative 7697 if test -f "$f"; then 7698 # Build tree 7699 echo $f 7700 elif test -f "$srcdir/$f"; then 7701 # Source tree 7702 echo "$srcdir/$f" 7703 else 7704 # /dev/null tree 7705 { { echo "$as_me:7705: error: cannot find input file: $f" >&5 7706echo "$as_me: error: cannot find input file: $f" >&2;} 7707 { (exit 1); exit 1; }; } 7708 fi;; 7709 esac 7710 done` || { (exit 1); exit 1; } 7711 # Remove the trailing spaces. 7712 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 7713 7714EOF 7715 7716# Transform confdefs.h into two sed scripts, `conftest.defines' and 7717# `conftest.undefs', that substitutes the proper values into 7718# config.h.in to produce config.h. The first handles `#define' 7719# templates, and the second `#undef' templates. 7720# And first: Protect against being on the right side of a sed subst in 7721# config.status. Protect against being in an unquoted here document 7722# in config.status. 7723rm -f conftest.defines conftest.undefs 7724# Using a here document instead of a string reduces the quoting nightmare. 7725# Putting comments in sed scripts is not portable. 7726# 7727# `end' is used to avoid that the second main sed command (meant for 7728# 0-ary CPP macros) applies to n-ary macro definitions. 7729# See the Autoconf documentation for `clear'. 7730cat >confdef2sed.sed <<\EOF 7731s/[\\&,]/\\&/g 7732s,[\\$`],\\&,g 7733t clear 7734: clear 7735s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp 7736t end 7737s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 7738: end 7739EOF 7740# If some macros were called several times there might be several times 7741# the same #defines, which is useless. Nevertheless, we may not want to 7742# sort them, since we want the *last* AC-DEFINE to be honored. 7743uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 7744sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 7745sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs 7746rm -f confdef2sed.sed 7747 7748# This sed command replaces #undef with comments. This is necessary, for 7749# example, in the case of _POSIX_SOURCE, which is predefined and required 7750# on some systems where configure will not decide to define it. 7751cat >>conftest.undefs <<\EOF 7752s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 7753EOF 7754 7755# Break up conftest.defines because some shells have a limit on the size 7756# of here documents, and old seds have small limits too (100 cmds). 7757echo ' # Handle all the #define templates only if necessary.' >>"$CONFIG_STATUS" 7758echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>"$CONFIG_STATUS" 7759echo ' # If there are no defines, we may have an empty if/fi' >>"$CONFIG_STATUS" 7760echo ' :' >>"$CONFIG_STATUS" 7761rm -f conftest.tail 7762while grep . conftest.defines >/dev/null 7763do 7764 # Write a limited-size here document to $tmp/defines.sed. 7765 echo ' cat >$tmp/defines.sed <<CEOF' >>"$CONFIG_STATUS" 7766 # Speed up: don't consider the non `#define' lines. 7767 echo '/^[ ]*#[ ]*define/!b' >>"$CONFIG_STATUS" 7768 # Work around the forget-to-reset-the-flag bug. 7769 echo 't clr' >>"$CONFIG_STATUS" 7770 echo ': clr' >>"$CONFIG_STATUS" 7771 sed "${ac_max_here_lines}q" conftest.defines >>"$CONFIG_STATUS" 7772 echo 'CEOF 7773 sed -f $tmp/defines.sed $tmp/in >$tmp/out 7774 rm -f $tmp/in 7775 mv $tmp/out $tmp/in 7776' >>"$CONFIG_STATUS" 7777 sed "1,${ac_max_here_lines}d" conftest.defines >conftest.tail 7778 rm -f conftest.defines 7779 mv conftest.tail conftest.defines 7780done 7781rm -f conftest.defines 7782echo ' fi # egrep' >>"$CONFIG_STATUS" 7783echo >>"$CONFIG_STATUS" 7784 7785# Break up conftest.undefs because some shells have a limit on the size 7786# of here documents, and old seds have small limits too (100 cmds). 7787echo ' # Handle all the #undef templates' >>"$CONFIG_STATUS" 7788rm -f conftest.tail 7789while grep . conftest.undefs >/dev/null 7790do 7791 # Write a limited-size here document to $tmp/undefs.sed. 7792 echo ' cat >$tmp/undefs.sed <<CEOF' >>"$CONFIG_STATUS" 7793 # Speed up: don't consider the non `#undef' 7794 echo '/^[ ]*#[ ]*undef/!b' >>"$CONFIG_STATUS" 7795 # Work around the forget-to-reset-the-flag bug. 7796 echo 't clr' >>"$CONFIG_STATUS" 7797 echo ': clr' >>"$CONFIG_STATUS" 7798 sed "${ac_max_here_lines}q" conftest.undefs >>"$CONFIG_STATUS" 7799 echo 'CEOF 7800 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 7801 rm -f $tmp/in 7802 mv $tmp/out $tmp/in 7803' >>"$CONFIG_STATUS" 7804 sed "1,${ac_max_here_lines}d" conftest.undefs >conftest.tail 7805 rm -f conftest.undefs 7806 mv conftest.tail conftest.undefs 7807done 7808rm -f conftest.undefs 7809 7810cat >>"$CONFIG_STATUS" <<\EOF 7811 # Let's still pretend it is `configure' which instantiates (i.e., don't 7812 # use $as_me), people would be surprised to read: 7813 # /* config.h. Generated automatically by config.status. */ 7814 if test x"$ac_file" = x-; then 7815 echo "/* Generated automatically by configure. */" >$tmp/config.h 7816 else 7817 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 7818 fi 7819 cat $tmp/in >>$tmp/config.h 7820 rm -f $tmp/in 7821 if test x"$ac_file" != x-; then 7822 if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then 7823 { echo "$as_me:7823: $ac_file is unchanged" >&5 7824echo "$as_me: $ac_file is unchanged" >&6;} 7825 else 7826 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7827 X"$ac_file" : 'X\(//\)[^/]' \| \ 7828 X"$ac_file" : 'X\(//\)$' \| \ 7829 X"$ac_file" : 'X\(/\)' \| \ 7830 . : '\(.\)' 2>/dev/null || 7831echo X"$ac_file" | 7832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7833 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7834 /^X\(\/\/\)$/{ s//\1/; q; } 7835 /^X\(\/\).*/{ s//\1/; q; } 7836 s/.*/./; q'` 7837 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 7838 { case "$ac_dir" in 7839 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 7840 *) as_incr_dir=.;; 7841esac 7842as_dummy="$ac_dir" 7843for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 7844 case $as_mkdir_dir in 7845 # Skip DOS drivespec 7846 ?:) as_incr_dir=$as_mkdir_dir ;; 7847 *) 7848 as_incr_dir=$as_incr_dir/$as_mkdir_dir 7849 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 7850 ;; 7851 esac 7852done; } 7853 7854 fi 7855 rm -f "$ac_file" 7856 mv "$tmp/config.h" "$ac_file" 7857 fi 7858 else 7859 cat $tmp/config.h 7860 rm -f $tmp/config.h 7861 fi 7862done 7863EOF 7864cat >>"$CONFIG_STATUS" <<\EOF 7865# 7866# CONFIG_COMMANDS section. 7867# 7868for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 7869 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 7870 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 7871 7872 case "$ac_dest" in 7873 default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;; 7874 esac 7875done 7876EOF 7877 7878cat >>"$CONFIG_STATUS" <<\EOF 7879 7880{ (exit 0); exit 0; } 7881EOF 7882chmod +x "$CONFIG_STATUS" 7883ac_clean_files=$ac_clean_files_save 7884 7885# configure is writing to config.log, and then calls config.status. 7886# config.status does its own redirection, appending to config.log. 7887# Unfortunately, on DOS this fails, as config.log is still kept open 7888# by configure, so config.status won't be able to write to it; its 7889# output is simply discarded. So we exec the FD to /dev/null, 7890# effectively closing config.log, so it can be properly (re)opened and 7891# appended to by config.status. When coming back to configure, we 7892# need to make the FD available again. 7893if test "$no_create" != yes; then 7894 ac_cs_success=: 7895 exec 5>/dev/null 7896 $SHELL "$CONFIG_STATUS" || ac_cs_success=false 7897 exec 5>>config.log 7898 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 7899 # would make configure fail if this is the last instruction. 7900 "$ac_cs_success" || { (exit 1); exit 1; } 7901fi 7902 7903test -z "$cf_make_docs" && cf_make_docs=0 7904 7905cf_output=makefile 7906test -f "$cf_output" || cf_output=Makefile 7907 7908if test "$cf_make_docs" = 0 7909then 7910cat >>$cf_output <<CF_EOF 7911################################################################################ 7912## generated by CF_MAKE_DOCS 7913.SUFFIXES : .html .1 .man .ps .pdf .txt 7914 7915${NROFF_NOTE}.1.txt : 7916${NROFF_NOTE} \$(SHELL) -c "tbl \$*.1 | nroff -man | col -bx" >\$@ 7917 7918${GROFF_NOTE}.ps.pdf : 7919${GROFF_NOTE} ps2pdf \$*.ps 7920${GROFF_NOTE} 7921${GROFF_NOTE}.1.ps : 7922${GROFF_NOTE} \$(SHELL) -c "tbl \$*.1 | groff -man" >\$@ 7923${GROFF_NOTE} 7924${GROFF_NOTE}.1.txt : 7925${GROFF_NOTE} GROFF_NO_SGR=stupid \$(SHELL) -c "tbl \$*.1 | nroff -rHY=0 -Tascii -man | col -bx" >\$@ 7926 7927${MAN2HTML_NOTE}.1.html : 7928${MAN2HTML_NOTE} ./${MAN2HTML_TEMP} \$* 1 man >\$@ 7929 7930CF_EOF 7931 cf_make_docs=1 7932fi 7933 7934for cf_name in flex 7935do 7936cat >>$cf_output <<CF_EOF 7937################################################################################ 7938${NROFF_NOTE}docs docs-$cf_name :: $cf_name.txt 7939${MAN2HTML_NOTE}docs docs-$cf_name :: $cf_name.html 7940${GROFF_NOTE}docs docs-$cf_name :: $cf_name.pdf 7941${GROFF_NOTE}docs docs-$cf_name :: $cf_name.ps 7942${GROFF_NOTE}docs docs-$cf_name :: $cf_name.txt 7943 7944clean \\ 7945docs-clean :: 7946${NROFF_NOTE} rm -f $cf_name.txt 7947${MAN2HTML_NOTE} rm -f $cf_name.html 7948${GROFF_NOTE} rm -f $cf_name.pdf 7949${GROFF_NOTE} rm -f $cf_name.ps 7950${GROFF_NOTE} rm -f $cf_name.txt 7951 7952${NROFF_NOTE}$cf_name.txt : $cf_name.1 7953${MAN2HTML_NOTE}$cf_name.html : $cf_name.1 7954${GROFF_NOTE}$cf_name.pdf : $cf_name.ps 7955${GROFF_NOTE}$cf_name.ps : $cf_name.1 7956${GROFF_NOTE}$cf_name.txt : $cf_name.1 7957CF_EOF 7958done 7959 7960