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