1#! /bin/sh 2# From configure.in Revision: 1.19 . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by Autoconf 2.52.20121002. 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 110# Initialize some variables set by options. 111ac_init_help= 112ac_init_version=false 113# The variables have the same names as the options, with 114# dashes changed to underlines. 115cache_file=/dev/null 116exec_prefix=NONE 117no_create= 118no_recursion= 119prefix=NONE 120program_prefix=NONE 121program_suffix=NONE 122program_transform_name=s,x,x, 123silent= 124site= 125srcdir= 126verbose= 127x_includes=NONE 128x_libraries=NONE 129 130# Installation directory options. 131# These are left unexpanded so users can "make install exec_prefix=/foo" 132# and all the variables that are supposed to be based on exec_prefix 133# by default will actually change. 134# Use braces instead of parens because sh, perl, etc. also accept them. 135bindir='${exec_prefix}/bin' 136sbindir='${exec_prefix}/sbin' 137libexecdir='${exec_prefix}/libexec' 138datarootdir='${prefix}/share' 139datadir='${datarootdir}' 140sysconfdir='${prefix}/etc' 141sharedstatedir='${prefix}/com' 142localstatedir='${prefix}/var' 143libdir='${exec_prefix}/lib' 144includedir='${prefix}/include' 145oldincludedir='/usr/include' 146infodir='${datarootdir}/info' 147mandir='${datarootdir}/man' 148 149# Identity of this package. 150PACKAGE_NAME= 151PACKAGE_TARNAME= 152PACKAGE_VERSION= 153PACKAGE_STRING= 154PACKAGE_BUGREPORT= 155 156ac_prev= 157for ac_option 158do 159 # If the previous option needs an argument, assign it. 160 if test -n "$ac_prev"; then 161 eval "$ac_prev=\$ac_option" 162 ac_prev= 163 continue 164 fi 165 166 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 167 168 # Accept the important Cygnus configure options, so we can diagnose typos. 169 170 case $ac_option in 171 172 -bindir | --bindir | --bindi | --bind | --bin | --bi) 173 ac_prev=bindir ;; 174 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 175 bindir=$ac_optarg ;; 176 177 -build | --build | --buil | --bui | --bu) 178 ac_prev=build_alias ;; 179 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 180 build_alias=$ac_optarg ;; 181 182 -cache-file | --cache-file | --cache-fil | --cache-fi \ 183 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 184 ac_prev=cache_file ;; 185 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 186 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 187 cache_file=$ac_optarg ;; 188 189 --config-cache | -C) 190 cache_file=config.cache ;; 191 192 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 193 ac_prev=datadir ;; 194 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 195 | --da=*) 196 datadir=$ac_optarg ;; 197 198 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 199 | --dataroo | --dataro | --datar) 200 ac_prev=datarootdir ;; 201 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 202 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 203 datarootdir=$ac_optarg ;; 204 205 -disable-* | --disable-*) 206 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 207 # Reject names that are not valid shell variable names. 208 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 209 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 210 { (exit 1); exit 1; }; } 211 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 212 eval "enable_$ac_feature=no" ;; 213 214 -enable-* | --enable-*) 215 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 216 # Reject names that are not valid shell variable names. 217 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 218 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 219 { (exit 1); exit 1; }; } 220 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 221 case $ac_option in 222 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 223 *) ac_optarg=yes ;; 224 esac 225 eval "enable_$ac_feature='$ac_optarg'" ;; 226 227 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 228 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 229 | --exec | --exe | --ex) 230 ac_prev=exec_prefix ;; 231 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 232 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 233 | --exec=* | --exe=* | --ex=*) 234 exec_prefix=$ac_optarg ;; 235 236 -gas | --gas | --ga | --g) 237 # Obsolete; use --with-gas. 238 with_gas=yes ;; 239 240 -help | --help | --hel | --he | -h) 241 ac_init_help=long ;; 242 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 243 ac_init_help=recursive ;; 244 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 245 ac_init_help=short ;; 246 247 -host | --host | --hos | --ho) 248 ac_prev=host_alias ;; 249 -host=* | --host=* | --hos=* | --ho=*) 250 host_alias=$ac_optarg ;; 251 252 -includedir | --includedir | --includedi | --included | --include \ 253 | --includ | --inclu | --incl | --inc) 254 ac_prev=includedir ;; 255 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 256 | --includ=* | --inclu=* | --incl=* | --inc=*) 257 includedir=$ac_optarg ;; 258 259 -infodir | --infodir | --infodi | --infod | --info | --inf) 260 ac_prev=infodir ;; 261 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 262 infodir=$ac_optarg ;; 263 264 -libdir | --libdir | --libdi | --libd) 265 ac_prev=libdir ;; 266 -libdir=* | --libdir=* | --libdi=* | --libd=*) 267 libdir=$ac_optarg ;; 268 269 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 270 | --libexe | --libex | --libe) 271 ac_prev=libexecdir ;; 272 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 273 | --libexe=* | --libex=* | --libe=*) 274 libexecdir=$ac_optarg ;; 275 276 -localstatedir | --localstatedir | --localstatedi | --localstated \ 277 | --localstate | --localstat | --localsta | --localst \ 278 | --locals | --local | --loca | --loc | --lo) 279 ac_prev=localstatedir ;; 280 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 281 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 282 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 283 localstatedir=$ac_optarg ;; 284 285 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 286 ac_prev=mandir ;; 287 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 288 mandir=$ac_optarg ;; 289 290 -nfp | --nfp | --nf) 291 # Obsolete; use --without-fp. 292 with_fp=no ;; 293 294 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 295 | --no-cr | --no-c) 296 no_create=yes ;; 297 298 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 299 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 300 no_recursion=yes ;; 301 302 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 303 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 304 | --oldin | --oldi | --old | --ol | --o) 305 ac_prev=oldincludedir ;; 306 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 307 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 308 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 309 oldincludedir=$ac_optarg ;; 310 311 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 312 ac_prev=prefix ;; 313 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 314 prefix=$ac_optarg ;; 315 316 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 317 | --program-pre | --program-pr | --program-p) 318 ac_prev=program_prefix ;; 319 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 320 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 321 program_prefix=$ac_optarg ;; 322 323 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 324 | --program-suf | --program-su | --program-s) 325 ac_prev=program_suffix ;; 326 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 327 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 328 program_suffix=$ac_optarg ;; 329 330 -program-transform-name | --program-transform-name \ 331 | --program-transform-nam | --program-transform-na \ 332 | --program-transform-n | --program-transform- \ 333 | --program-transform | --program-transfor \ 334 | --program-transfo | --program-transf \ 335 | --program-trans | --program-tran \ 336 | --progr-tra | --program-tr | --program-t) 337 ac_prev=program_transform_name ;; 338 -program-transform-name=* | --program-transform-name=* \ 339 | --program-transform-nam=* | --program-transform-na=* \ 340 | --program-transform-n=* | --program-transform-=* \ 341 | --program-transform=* | --program-transfor=* \ 342 | --program-transfo=* | --program-transf=* \ 343 | --program-trans=* | --program-tran=* \ 344 | --progr-tra=* | --program-tr=* | --program-t=*) 345 program_transform_name=$ac_optarg ;; 346 347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 348 | -silent | --silent | --silen | --sile | --sil) 349 silent=yes ;; 350 351 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 352 ac_prev=sbindir ;; 353 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 354 | --sbi=* | --sb=*) 355 sbindir=$ac_optarg ;; 356 357 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 358 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 359 | --sharedst | --shareds | --shared | --share | --shar \ 360 | --sha | --sh) 361 ac_prev=sharedstatedir ;; 362 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 363 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 364 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 365 | --sha=* | --sh=*) 366 sharedstatedir=$ac_optarg ;; 367 368 -site | --site | --sit) 369 ac_prev=site ;; 370 -site=* | --site=* | --sit=*) 371 site=$ac_optarg ;; 372 373 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 374 ac_prev=srcdir ;; 375 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 376 srcdir=$ac_optarg ;; 377 378 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 379 | --syscon | --sysco | --sysc | --sys | --sy) 380 ac_prev=sysconfdir ;; 381 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 382 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 383 sysconfdir=$ac_optarg ;; 384 385 -target | --target | --targe | --targ | --tar | --ta | --t) 386 ac_prev=target_alias ;; 387 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 388 target_alias=$ac_optarg ;; 389 390 -v | -verbose | --verbose | --verbos | --verbo | --verb) 391 verbose=yes ;; 392 393 -version | --version | --versio | --versi | --vers | -V) 394 ac_init_version=: ;; 395 396 -with-* | --with-*) 397 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 398 # Reject names that are not valid shell variable names. 399 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 400 { echo "$as_me: error: invalid package name: $ac_package" >&2 401 { (exit 1); exit 1; }; } 402 ac_package=`echo $ac_package| sed 's/-/_/g'` 403 case $ac_option in 404 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 405 *) ac_optarg=yes ;; 406 esac 407 eval "with_$ac_package='$ac_optarg'" ;; 408 409 -without-* | --without-*) 410 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 411 # Reject names that are not valid shell variable names. 412 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 413 { echo "$as_me: error: invalid package name: $ac_package" >&2 414 { (exit 1); exit 1; }; } 415 ac_package=`echo $ac_package | sed 's/-/_/g'` 416 eval "with_$ac_package=no" ;; 417 418 --x) 419 # Obsolete; use --with-x. 420 with_x=yes ;; 421 422 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 423 | --x-incl | --x-inc | --x-in | --x-i) 424 ac_prev=x_includes ;; 425 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 426 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 427 x_includes=$ac_optarg ;; 428 429 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 430 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 431 ac_prev=x_libraries ;; 432 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 433 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 434 x_libraries=$ac_optarg ;; 435 436 -*) { echo "$as_me: error: unrecognized option: $ac_option 437Try \`$0 --help' for more information." >&2 438 { (exit 1); exit 1; }; } 439 ;; 440 441 *=*) 442 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 443 # Reject names that are not valid shell variable names. 444 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 445 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 446 { (exit 1); exit 1; }; } 447 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 448 eval "$ac_envvar='$ac_optarg'" 449 export $ac_envvar ;; 450 451 *) 452 # FIXME: should be removed in autoconf 3.0. 453 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 454 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 455 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 456 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 457 ;; 458 459 esac 460done 461 462if test -n "$ac_prev"; then 463 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 464 { echo "$as_me: error: missing argument to $ac_option" >&2 465 { (exit 1); exit 1; }; } 466fi 467 468# Be sure to have absolute paths. 469for ac_var in exec_prefix prefix 470do 471 eval ac_val=$`echo $ac_var` 472 case $ac_val in 473 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 474 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 475 { (exit 1); exit 1; }; };; 476 esac 477done 478 479# Be sure to have absolute paths. 480for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \ 481 localstatedir libdir includedir oldincludedir infodir mandir 482do 483 eval ac_val=$`echo $ac_var` 484 case $ac_val in 485 [\\/$]* | ?:[\\/]* ) ;; 486 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 487 { (exit 1); exit 1; }; };; 488 esac 489done 490 491# There might be people who depend on the old broken behavior: `$host' 492# used to hold the argument of --host etc. 493build=$build_alias 494host=$host_alias 495target=$target_alias 496 497# FIXME: should be removed in autoconf 3.0. 498if test "x$host_alias" != x; then 499 if test "x$build_alias" = x; then 500 cross_compiling=maybe 501 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 502 If a cross compiler is detected then cross compile mode will be used." >&2 503 elif test "x$build_alias" != "x$host_alias"; then 504 cross_compiling=yes 505 fi 506fi 507 508ac_tool_prefix= 509test -n "$host_alias" && ac_tool_prefix=$host_alias- 510 511test "$silent" = yes && exec 6>/dev/null 512 513# Find the source files, if location was not specified. 514if test -z "$srcdir"; then 515 ac_srcdir_defaulted=yes 516 # Try the directory containing this script, then its parent. 517 ac_prog=$0 518 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` 519 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 520 srcdir=$ac_confdir 521 if test ! -r $srcdir/$ac_unique_file; then 522 srcdir=.. 523 fi 524else 525 ac_srcdir_defaulted=no 526fi 527if test ! -r $srcdir/$ac_unique_file; then 528 if test "$ac_srcdir_defaulted" = yes; then 529 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 530 { (exit 1); exit 1; }; } 531 else 532 { echo "$as_me: error: cannot find sources in $srcdir" >&2 533 { (exit 1); exit 1; }; } 534 fi 535fi 536srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 537ac_env_build_alias_set=${build_alias+set} 538ac_env_build_alias_value=$build_alias 539ac_cv_env_build_alias_set=${build_alias+set} 540ac_cv_env_build_alias_value=$build_alias 541ac_env_host_alias_set=${host_alias+set} 542ac_env_host_alias_value=$host_alias 543ac_cv_env_host_alias_set=${host_alias+set} 544ac_cv_env_host_alias_value=$host_alias 545ac_env_target_alias_set=${target_alias+set} 546ac_env_target_alias_value=$target_alias 547ac_cv_env_target_alias_set=${target_alias+set} 548ac_cv_env_target_alias_value=$target_alias 549ac_env_CC_set=${CC+set} 550ac_env_CC_value=$CC 551ac_cv_env_CC_set=${CC+set} 552ac_cv_env_CC_value=$CC 553ac_env_CFLAGS_set=${CFLAGS+set} 554ac_env_CFLAGS_value=$CFLAGS 555ac_cv_env_CFLAGS_set=${CFLAGS+set} 556ac_cv_env_CFLAGS_value=$CFLAGS 557ac_env_LDFLAGS_set=${LDFLAGS+set} 558ac_env_LDFLAGS_value=$LDFLAGS 559ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 560ac_cv_env_LDFLAGS_value=$LDFLAGS 561ac_env_CPPFLAGS_set=${CPPFLAGS+set} 562ac_env_CPPFLAGS_value=$CPPFLAGS 563ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 564ac_cv_env_CPPFLAGS_value=$CPPFLAGS 565ac_env_CPP_set=${CPP+set} 566ac_env_CPP_value=$CPP 567ac_cv_env_CPP_set=${CPP+set} 568ac_cv_env_CPP_value=$CPP 569 570# 571# Report the --help message. 572# 573if test "$ac_init_help" = "long"; then 574 # Omit some internal or obsolete options to make the list less imposing. 575 # This message is too long to be a string in the A/UX 3.1 sh. 576 cat <<EOF 577\`configure' configures this package to adapt to many kinds of systems. 578 579Usage: $0 [OPTION]... [VAR=VALUE]... 580 581To assign environment variables (e.g., CC, CFLAGS...), specify them as 582VAR=VALUE. See below for descriptions of some of the useful variables. 583 584Defaults for the options are specified in brackets. 585 586Configuration: 587 -h, --help display this help and exit 588 --help=short display options specific to this package 589 --help=recursive display the short help of all the included packages 590 -V, --version display version information and exit 591 -q, --quiet, --silent do not print \`checking...' messages 592 --cache-file=FILE cache test results in FILE [disabled] 593 -C, --config-cache alias for \`--cache-file=config.cache' 594 -n, --no-create do not create output files 595 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 596 597EOF 598 599 cat <<EOF 600Installation directories: 601 --prefix=PREFIX install architecture-independent files in PREFIX 602 [$ac_default_prefix] 603 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 604 [PREFIX] 605 606By default, \`make install' will install all the files in 607\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 608an installation prefix other than \`$ac_default_prefix' using \`--prefix', 609for instance \`--prefix=\$HOME'. 610 611For better control, use the options below. 612 613Fine tuning of the installation directories: 614 --bindir=DIR user executables [EPREFIX/bin] 615 --sbindir=DIR system admin executables [EPREFIX/sbin] 616 --libexecdir=DIR program executables [EPREFIX/libexec] 617 --datarootdir=DIR read-only architecture-independent data [PREFIX/share] 618 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 619 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 620 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 621 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 622 --libdir=DIR object code libraries [EPREFIX/lib] 623 --includedir=DIR C header files [PREFIX/include] 624 --oldincludedir=DIR C header files for non-gcc [/usr/include] 625 --infodir=DIR info documentation [DATAROOTDIR/info] 626 --mandir=DIR man documentation [DATAROOTDIR/man] 627EOF 628 629 cat <<\EOF 630 631Program names: 632 --program-prefix=PREFIX prepend PREFIX to installed program names 633 --program-suffix=SUFFIX append SUFFIX to installed program names 634 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 635 636System types: 637 --build=BUILD configure for building on BUILD [guessed] 638 --host=HOST build programs to run on HOST [BUILD] 639 --target=TARGET configure for building compilers for TARGET [HOST] 640EOF 641fi 642 643if test -n "$ac_init_help"; then 644 645 cat <<\EOF 646 647Optional Packages: 648 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 649 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 650 651Optional Features: 652 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 653 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 654 655 --with-max-table-size=N set the maximum table size = N (no default) 656 --enable-btyacc turn on support for the btyacc backtracking 657 extension (default: no) 658 --with-warnings test: turn on gcc warnings 659 --disable-echo do not display "compiling" commands 660 --with-dmalloc test: use Gray Watson's dmalloc library 661 --with-dbmalloc test: use Conor Cahill's dbmalloc library 662 --with-valgrind test: use valgrind 663 --disable-leaks test: free permanent memory, analyze leaks 664 665Some influential environment variables: 666 CC C compiler command 667 CFLAGS C compiler flags 668 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 669 nonstandard directory <lib dir> 670 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 671 headers in a nonstandard directory <include dir> 672 CPP C preprocessor 673 674Use these variables to override the choices made by `configure' or to help 675it to find libraries and programs with nonstandard names/locations. 676 677EOF 678fi 679 680if test "$ac_init_help" = "recursive"; then 681 # If there are subdirs, report their specific --help. 682 ac_popdir=`pwd` 683 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 684 cd $ac_subdir 685 # A "../" for each directory in /$ac_subdir. 686 ac_dots=`echo $ac_subdir | 687 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 688 689 case $srcdir in 690 .) # No --srcdir option. We are building in place. 691 ac_sub_srcdir=$srcdir ;; 692 [\\/]* | ?:[\\/]* ) # Absolute path. 693 ac_sub_srcdir=$srcdir/$ac_subdir ;; 694 *) # Relative path. 695 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; 696 esac 697 698 # Check for guested configure; otherwise get Cygnus style configure. 699 if test -f $ac_sub_srcdir/configure.gnu; then 700 echo 701 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive 702 elif test -f $ac_sub_srcdir/configure; then 703 echo 704 $SHELL $ac_sub_srcdir/configure --help=recursive 705 elif test -f $ac_sub_srcdir/configure.ac || 706 test -f $ac_sub_srcdir/configure.in; then 707 echo 708 $ac_configure --help 709 else 710 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 711 fi 712 cd $ac_popdir 713 done 714fi 715 716test -n "$ac_init_help" && exit 0 717if $ac_init_version; then 718 cat <<\EOF 719 720Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 721Free Software Foundation, Inc. 722This configure script is free software; the Free Software Foundation 723gives unlimited permission to copy, distribute and modify it. 724EOF 725 exit 0 726fi 727exec 5>config.log 728cat >&5 <<EOF 729This file contains any messages produced by compilers while 730running configure, to aid debugging if configure makes a mistake. 731 732It was created by $as_me, which was 733generated by GNU Autoconf 2.52.20121002. Invocation command line was 734 735 $ $0 $@ 736 737EOF 738{ 739cat <<_ASUNAME 740## ---------- ## 741## Platform. ## 742## ---------- ## 743 744hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 745uname -m = `(uname -m) 2>/dev/null || echo unknown` 746uname -r = `(uname -r) 2>/dev/null || echo unknown` 747uname -s = `(uname -s) 2>/dev/null || echo unknown` 748uname -v = `(uname -v) 2>/dev/null || echo unknown` 749 750/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 751/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 752 753/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 754/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 755/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 756hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 757/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 758/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 759/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 760 761PATH = $PATH 762 763_ASUNAME 764} >&5 765 766cat >&5 <<EOF 767## ------------ ## 768## Core tests. ## 769## ------------ ## 770 771EOF 772 773# Keep a trace of the command line. 774# Strip out --no-create and --no-recursion so they do not pile up. 775# Also quote any args containing shell meta-characters. 776ac_configure_args= 777ac_sep= 778for ac_arg 779do 780 case $ac_arg in 781 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 782 | --no-cr | --no-c) ;; 783 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 784 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 785 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 786 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 787 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 788 ac_sep=" " ;; 789 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 790 ac_sep=" " ;; 791 esac 792 # Get rid of the leading space. 793done 794 795# When interrupted or exit'd, cleanup temporary files, and complete 796# config.log. We remove comments because anyway the quotes in there 797# would cause problems or look ugly. 798trap 'exit_status=$? 799 # Save into config.log some information that might help in debugging. 800 echo >&5 801 echo "## ----------------- ##" >&5 802 echo "## Cache variables. ##" >&5 803 echo "## ----------------- ##" >&5 804 echo >&5 805 # The following way of writing the cache mishandles newlines in values, 806{ 807 (set) 2>&1 | 808 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 809 *ac_space=\ *) 810 sed -n \ 811 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 812 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 813 ;; 814 *) 815 sed -n \ 816 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 817 ;; 818 esac; 819} >&5 820 sed "/^$/d" confdefs.h >conftest.log 821 if test -s conftest.log; then 822 echo >&5 823 echo "## ------------ ##" >&5 824 echo "## confdefs.h. ##" >&5 825 echo "## ------------ ##" >&5 826 echo >&5 827 cat conftest.log >&5 828 fi 829 (echo; echo) >&5 830 test "$ac_signal" != 0 && 831 echo "$as_me: caught signal $ac_signal" >&5 832 echo "$as_me: exit $exit_status" >&5 833 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 834 exit $exit_status 835 ' 0 836for ac_signal in 1 2 13 15; do 837 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 838done 839ac_signal=0 840 841# confdefs.h avoids OS command line length limits that DEFS can exceed. 842rm -rf conftest* confdefs.h 843# AIX cpp loses on an empty file, so make sure it contains at least a newline. 844echo >confdefs.h 845 846# Let the site file select an alternate cache file if it wants to. 847# Prefer explicitly selected file to automatically selected ones. 848if test -z "$CONFIG_SITE"; then 849 if test "x$prefix" != xNONE; then 850 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 851 else 852 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 853 fi 854fi 855for ac_site_file in $CONFIG_SITE; do 856 if test -r "$ac_site_file"; then 857 { echo "$as_me:857: loading site script $ac_site_file" >&5 858echo "$as_me: loading site script $ac_site_file" >&6;} 859 cat "$ac_site_file" >&5 860 . "$ac_site_file" 861 fi 862done 863 864if test -r "$cache_file"; then 865 # Some versions of bash will fail to source /dev/null (special 866 # files actually), so we avoid doing that. 867 if test -f "$cache_file"; then 868 { echo "$as_me:868: loading cache $cache_file" >&5 869echo "$as_me: loading cache $cache_file" >&6;} 870 case $cache_file in 871 [\\/]* | ?:[\\/]* ) . $cache_file;; 872 *) . ./$cache_file;; 873 esac 874 fi 875else 876 { echo "$as_me:876: creating cache $cache_file" >&5 877echo "$as_me: creating cache $cache_file" >&6;} 878 >$cache_file 879fi 880 881# Check that the precious variables saved in the cache have kept the same 882# value. 883ac_cache_corrupted=false 884for ac_var in `(set) 2>&1 | 885 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 886 eval ac_old_set=\$ac_cv_env_${ac_var}_set 887 eval ac_new_set=\$ac_env_${ac_var}_set 888 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 889 eval ac_new_val="\$ac_env_${ac_var}_value" 890 case $ac_old_set,$ac_new_set in 891 set,) 892 { echo "$as_me:892: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 893echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 894 ac_cache_corrupted=: ;; 895 ,set) 896 { echo "$as_me:896: error: \`$ac_var' was not set in the previous run" >&5 897echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 898 ac_cache_corrupted=: ;; 899 ,);; 900 *) 901 if test "x$ac_old_val" != "x$ac_new_val"; then 902 { echo "$as_me:902: error: \`$ac_var' has changed since the previous run:" >&5 903echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 904 { echo "$as_me:904: former value: $ac_old_val" >&5 905echo "$as_me: former value: $ac_old_val" >&2;} 906 { echo "$as_me:906: current value: $ac_new_val" >&5 907echo "$as_me: current value: $ac_new_val" >&2;} 908 ac_cache_corrupted=: 909 fi;; 910 esac 911 # Pass precious variables to config.status. It doesn't matter if 912 # we pass some twice (in addition to the command line arguments). 913 if test "$ac_new_set" = set; then 914 case $ac_new_val in 915 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 916 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` 917 ac_configure_args="$ac_configure_args '$ac_arg'" 918 ;; 919 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" 920 ;; 921 esac 922 fi 923done 924if $ac_cache_corrupted; then 925 { echo "$as_me:925: error: changes in the environment can compromise the build" >&5 926echo "$as_me: error: changes in the environment can compromise the build" >&2;} 927 { { echo "$as_me:927: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 928echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 929 { (exit 1); exit 1; }; } 930fi 931 932ac_ext=c 933ac_cpp='$CPP $CPPFLAGS' 934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 936ac_compiler_gnu=$ac_cv_c_compiler_gnu 937ac_main_return=return 938 939case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 940 *c*,-n*) ECHO_N= ECHO_C=' 941' ECHO_T=' ' ;; 942 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 943 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 944esac 945echo "#! $SHELL" >conftest.sh 946echo "exit 0" >>conftest.sh 947chmod +x conftest.sh 948if { (echo "$as_me:948: PATH=\".;.\"; conftest.sh") >&5 949 (PATH=".;."; conftest.sh) 2>&5 950 ac_status=$? 951 echo "$as_me:951: \$? = $ac_status" >&5 952 (exit $ac_status); }; then 953 ac_path_separator=';' 954else 955 ac_path_separator=: 956fi 957PATH_SEPARATOR="$ac_path_separator" 958rm -f conftest.sh 959 960ac_config_headers="$ac_config_headers config.h:config_h.in" 961 962ac_aux_dir= 963for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 964 if test -f $ac_dir/install-sh; then 965 ac_aux_dir=$ac_dir 966 ac_install_sh="$ac_aux_dir/install-sh -c" 967 break 968 elif test -f $ac_dir/install.sh; then 969 ac_aux_dir=$ac_dir 970 ac_install_sh="$ac_aux_dir/install.sh -c" 971 break 972 elif test -f $ac_dir/shtool; then 973 ac_aux_dir=$ac_dir 974 ac_install_sh="$ac_aux_dir/shtool install -c" 975 break 976 fi 977done 978if test -z "$ac_aux_dir"; then 979 { { echo "$as_me:979: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 980echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 981 { (exit 1); exit 1; }; } 982fi 983ac_config_guess="$SHELL $ac_aux_dir/config.guess" 984ac_config_sub="$SHELL $ac_aux_dir/config.sub" 985ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 986 987# Make sure we can run config.sub. 988$ac_config_sub sun4 >/dev/null 2>&1 || 989 { { echo "$as_me:989: error: cannot run $ac_config_sub" >&5 990echo "$as_me: error: cannot run $ac_config_sub" >&2;} 991 { (exit 1); exit 1; }; } 992 993echo "$as_me:993: checking build system type" >&5 994echo $ECHO_N "checking build system type... $ECHO_C" >&6 995if test "${ac_cv_build+set}" = set; then 996 echo $ECHO_N "(cached) $ECHO_C" >&6 997else 998 ac_cv_build_alias=$build_alias 999test -z "$ac_cv_build_alias" && 1000 ac_cv_build_alias=`$ac_config_guess` 1001test -z "$ac_cv_build_alias" && 1002 { { echo "$as_me:1002: error: cannot guess build type; you must specify one" >&5 1003echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1004 { (exit 1); exit 1; }; } 1005ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1006 { { echo "$as_me:1006: error: $ac_config_sub $ac_cv_build_alias failed." >&5 1007echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} 1008 { (exit 1); exit 1; }; } 1009 1010fi 1011echo "$as_me:1011: result: $ac_cv_build" >&5 1012echo "${ECHO_T}$ac_cv_build" >&6 1013build=$ac_cv_build 1014build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1015build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1016build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1017 1018echo "$as_me:1018: checking host system type" >&5 1019echo $ECHO_N "checking host system type... $ECHO_C" >&6 1020if test "${ac_cv_host+set}" = set; then 1021 echo $ECHO_N "(cached) $ECHO_C" >&6 1022else 1023 ac_cv_host_alias=$host_alias 1024test -z "$ac_cv_host_alias" && 1025 ac_cv_host_alias=$ac_cv_build_alias 1026ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1027 { { echo "$as_me:1027: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1028echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1029 { (exit 1); exit 1; }; } 1030 1031fi 1032echo "$as_me:1032: result: $ac_cv_host" >&5 1033echo "${ECHO_T}$ac_cv_host" >&6 1034host=$ac_cv_host 1035host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1036host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1037host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1038 1039if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then 1040 echo "$as_me:1040: checking target system type" >&5 1041echo $ECHO_N "checking target system type... $ECHO_C" >&6 1042if test "${ac_cv_target+set}" = set; then 1043 echo $ECHO_N "(cached) $ECHO_C" >&6 1044else 1045 ac_cv_target_alias=$target_alias 1046test "x$ac_cv_target_alias" = "x" && 1047 ac_cv_target_alias=$ac_cv_host_alias 1048ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1049 { { echo "$as_me:1049: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1050echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1051 { (exit 1); exit 1; }; } 1052 1053fi 1054echo "$as_me:1054: result: $ac_cv_target" >&5 1055echo "${ECHO_T}$ac_cv_target" >&6 1056target=$ac_cv_target 1057target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1058target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1059target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1060 1061# The aliases save the names the user supplied, while $host etc. 1062# will get canonicalized. 1063test -n "$target_alias" && 1064 test "$program_prefix$program_suffix$program_transform_name" = \ 1065 NONENONEs,x,x, && 1066 program_prefix=${target_alias}- 1067 system_name="$host_os" 1068else 1069 system_name="`(uname -s -r) 2>/dev/null`" 1070 if test -z "$system_name" ; then 1071 system_name="`(hostname) 2>/dev/null`" 1072 fi 1073fi 1074test -n "$system_name" && 1075cat >>confdefs.h <<EOF 1076#define SYSTEM_NAME "$system_name" 1077EOF 1078 1079if test "${cf_cv_system_name+set}" = set; then 1080 echo $ECHO_N "(cached) $ECHO_C" >&6 1081else 1082 cf_cv_system_name="$system_name" 1083fi 1084 1085test -z "$system_name" && system_name="$cf_cv_system_name" 1086test -n "$cf_cv_system_name" && echo "$as_me:1086: result: Configuring for $cf_cv_system_name" >&5 1087echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6 1088 1089if test ".$system_name" != ".$cf_cv_system_name" ; then 1090 echo "$as_me:1090: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5 1091echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6 1092 { { echo "$as_me:1092: error: \"Please remove config.cache and try again.\"" >&5 1093echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;} 1094 { (exit 1); exit 1; }; } 1095fi 1096 1097test "$program_prefix" != NONE && 1098 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1099# Use a double $ so make ignores it. 1100test "$program_suffix" != NONE && 1101 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1102# Double any \ or $. echo might interpret backslashes. 1103# By default was `s,x,x', remove it if useless. 1104cat <<\_ACEOF >conftest.sed 1105s/[\\$]/&&/g;s/;s,x,x,$// 1106_ACEOF 1107program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1108rm conftest.sed 1109 1110ac_ext=c 1111ac_cpp='$CPP $CPPFLAGS' 1112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1114ac_compiler_gnu=$ac_cv_c_compiler_gnu 1115ac_main_return=return 1116if test -n "$ac_tool_prefix"; then 1117 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1118set dummy ${ac_tool_prefix}gcc; ac_word=$2 1119echo "$as_me:1119: checking for $ac_word" >&5 1120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1121if test "${ac_cv_prog_CC+set}" = set; then 1122 echo $ECHO_N "(cached) $ECHO_C" >&6 1123else 1124 if test -n "$CC"; then 1125 ac_cv_prog_CC="$CC" # Let the user override the test. 1126else 1127 ac_save_IFS=$IFS; IFS=$ac_path_separator 1128ac_dummy="$PATH" 1129for ac_dir in $ac_dummy; do 1130 IFS=$ac_save_IFS 1131 test -z "$ac_dir" && ac_dir=. 1132 $as_executable_p "$ac_dir/$ac_word" || continue 1133ac_cv_prog_CC="${ac_tool_prefix}gcc" 1134echo "$as_me:1134: found $ac_dir/$ac_word" >&5 1135break 1136done 1137 1138fi 1139fi 1140CC=$ac_cv_prog_CC 1141if test -n "$CC"; then 1142 echo "$as_me:1142: result: $CC" >&5 1143echo "${ECHO_T}$CC" >&6 1144else 1145 echo "$as_me:1145: result: no" >&5 1146echo "${ECHO_T}no" >&6 1147fi 1148 1149fi 1150if test -z "$ac_cv_prog_CC"; then 1151 ac_ct_CC=$CC 1152 # Extract the first word of "gcc", so it can be a program name with args. 1153set dummy gcc; ac_word=$2 1154echo "$as_me:1154: checking for $ac_word" >&5 1155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1156if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1157 echo $ECHO_N "(cached) $ECHO_C" >&6 1158else 1159 if test -n "$ac_ct_CC"; then 1160 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1161else 1162 ac_save_IFS=$IFS; IFS=$ac_path_separator 1163ac_dummy="$PATH" 1164for ac_dir in $ac_dummy; do 1165 IFS=$ac_save_IFS 1166 test -z "$ac_dir" && ac_dir=. 1167 $as_executable_p "$ac_dir/$ac_word" || continue 1168ac_cv_prog_ac_ct_CC="gcc" 1169echo "$as_me:1169: found $ac_dir/$ac_word" >&5 1170break 1171done 1172 1173fi 1174fi 1175ac_ct_CC=$ac_cv_prog_ac_ct_CC 1176if test -n "$ac_ct_CC"; then 1177 echo "$as_me:1177: result: $ac_ct_CC" >&5 1178echo "${ECHO_T}$ac_ct_CC" >&6 1179else 1180 echo "$as_me:1180: result: no" >&5 1181echo "${ECHO_T}no" >&6 1182fi 1183 1184 CC=$ac_ct_CC 1185else 1186 CC="$ac_cv_prog_CC" 1187fi 1188 1189if test -z "$CC"; then 1190 if test -n "$ac_tool_prefix"; then 1191 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1192set dummy ${ac_tool_prefix}cc; ac_word=$2 1193echo "$as_me:1193: checking for $ac_word" >&5 1194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1195if test "${ac_cv_prog_CC+set}" = set; then 1196 echo $ECHO_N "(cached) $ECHO_C" >&6 1197else 1198 if test -n "$CC"; then 1199 ac_cv_prog_CC="$CC" # Let the user override the test. 1200else 1201 ac_save_IFS=$IFS; IFS=$ac_path_separator 1202ac_dummy="$PATH" 1203for ac_dir in $ac_dummy; do 1204 IFS=$ac_save_IFS 1205 test -z "$ac_dir" && ac_dir=. 1206 $as_executable_p "$ac_dir/$ac_word" || continue 1207ac_cv_prog_CC="${ac_tool_prefix}cc" 1208echo "$as_me:1208: found $ac_dir/$ac_word" >&5 1209break 1210done 1211 1212fi 1213fi 1214CC=$ac_cv_prog_CC 1215if test -n "$CC"; then 1216 echo "$as_me:1216: result: $CC" >&5 1217echo "${ECHO_T}$CC" >&6 1218else 1219 echo "$as_me:1219: result: no" >&5 1220echo "${ECHO_T}no" >&6 1221fi 1222 1223fi 1224if test -z "$ac_cv_prog_CC"; then 1225 ac_ct_CC=$CC 1226 # Extract the first word of "cc", so it can be a program name with args. 1227set dummy cc; ac_word=$2 1228echo "$as_me:1228: checking for $ac_word" >&5 1229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1230if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1231 echo $ECHO_N "(cached) $ECHO_C" >&6 1232else 1233 if test -n "$ac_ct_CC"; then 1234 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1235else 1236 ac_save_IFS=$IFS; IFS=$ac_path_separator 1237ac_dummy="$PATH" 1238for ac_dir in $ac_dummy; do 1239 IFS=$ac_save_IFS 1240 test -z "$ac_dir" && ac_dir=. 1241 $as_executable_p "$ac_dir/$ac_word" || continue 1242ac_cv_prog_ac_ct_CC="cc" 1243echo "$as_me:1243: found $ac_dir/$ac_word" >&5 1244break 1245done 1246 1247fi 1248fi 1249ac_ct_CC=$ac_cv_prog_ac_ct_CC 1250if test -n "$ac_ct_CC"; then 1251 echo "$as_me:1251: result: $ac_ct_CC" >&5 1252echo "${ECHO_T}$ac_ct_CC" >&6 1253else 1254 echo "$as_me:1254: result: no" >&5 1255echo "${ECHO_T}no" >&6 1256fi 1257 1258 CC=$ac_ct_CC 1259else 1260 CC="$ac_cv_prog_CC" 1261fi 1262 1263fi 1264if test -z "$CC"; then 1265 # Extract the first word of "cc", so it can be a program name with args. 1266set dummy cc; ac_word=$2 1267echo "$as_me:1267: checking for $ac_word" >&5 1268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1269if test "${ac_cv_prog_CC+set}" = set; then 1270 echo $ECHO_N "(cached) $ECHO_C" >&6 1271else 1272 if test -n "$CC"; then 1273 ac_cv_prog_CC="$CC" # Let the user override the test. 1274else 1275 ac_prog_rejected=no 1276 ac_save_IFS=$IFS; IFS=$ac_path_separator 1277ac_dummy="$PATH" 1278for ac_dir in $ac_dummy; do 1279 IFS=$ac_save_IFS 1280 test -z "$ac_dir" && ac_dir=. 1281 $as_executable_p "$ac_dir/$ac_word" || continue 1282if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1283 ac_prog_rejected=yes 1284 continue 1285fi 1286ac_cv_prog_CC="cc" 1287echo "$as_me:1287: found $ac_dir/$ac_word" >&5 1288break 1289done 1290 1291if test $ac_prog_rejected = yes; then 1292 # We found a bogon in the path, so make sure we never use it. 1293 set dummy $ac_cv_prog_CC 1294 shift 1295 if test $# != 0; then 1296 # We chose a different compiler from the bogus one. 1297 # However, it has the same basename, so the bogon will be chosen 1298 # first if we set CC to just the basename; use the full file name. 1299 shift 1300 set dummy "$ac_dir/$ac_word" ${1+"$@"} 1301 shift 1302 ac_cv_prog_CC="$@" 1303 fi 1304fi 1305fi 1306fi 1307CC=$ac_cv_prog_CC 1308if test -n "$CC"; then 1309 echo "$as_me:1309: result: $CC" >&5 1310echo "${ECHO_T}$CC" >&6 1311else 1312 echo "$as_me:1312: result: no" >&5 1313echo "${ECHO_T}no" >&6 1314fi 1315 1316fi 1317if test -z "$CC"; then 1318 if test -n "$ac_tool_prefix"; then 1319 for ac_prog in cl 1320 do 1321 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1322set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1323echo "$as_me:1323: checking for $ac_word" >&5 1324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1325if test "${ac_cv_prog_CC+set}" = set; then 1326 echo $ECHO_N "(cached) $ECHO_C" >&6 1327else 1328 if test -n "$CC"; then 1329 ac_cv_prog_CC="$CC" # Let the user override the test. 1330else 1331 ac_save_IFS=$IFS; IFS=$ac_path_separator 1332ac_dummy="$PATH" 1333for ac_dir in $ac_dummy; do 1334 IFS=$ac_save_IFS 1335 test -z "$ac_dir" && ac_dir=. 1336 $as_executable_p "$ac_dir/$ac_word" || continue 1337ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1338echo "$as_me:1338: found $ac_dir/$ac_word" >&5 1339break 1340done 1341 1342fi 1343fi 1344CC=$ac_cv_prog_CC 1345if test -n "$CC"; then 1346 echo "$as_me:1346: result: $CC" >&5 1347echo "${ECHO_T}$CC" >&6 1348else 1349 echo "$as_me:1349: result: no" >&5 1350echo "${ECHO_T}no" >&6 1351fi 1352 1353 test -n "$CC" && break 1354 done 1355fi 1356if test -z "$CC"; then 1357 ac_ct_CC=$CC 1358 for ac_prog in cl 1359do 1360 # Extract the first word of "$ac_prog", so it can be a program name with args. 1361set dummy $ac_prog; ac_word=$2 1362echo "$as_me:1362: checking for $ac_word" >&5 1363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1364if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1365 echo $ECHO_N "(cached) $ECHO_C" >&6 1366else 1367 if test -n "$ac_ct_CC"; then 1368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1369else 1370 ac_save_IFS=$IFS; IFS=$ac_path_separator 1371ac_dummy="$PATH" 1372for ac_dir in $ac_dummy; do 1373 IFS=$ac_save_IFS 1374 test -z "$ac_dir" && ac_dir=. 1375 $as_executable_p "$ac_dir/$ac_word" || continue 1376ac_cv_prog_ac_ct_CC="$ac_prog" 1377echo "$as_me:1377: found $ac_dir/$ac_word" >&5 1378break 1379done 1380 1381fi 1382fi 1383ac_ct_CC=$ac_cv_prog_ac_ct_CC 1384if test -n "$ac_ct_CC"; then 1385 echo "$as_me:1385: result: $ac_ct_CC" >&5 1386echo "${ECHO_T}$ac_ct_CC" >&6 1387else 1388 echo "$as_me:1388: result: no" >&5 1389echo "${ECHO_T}no" >&6 1390fi 1391 1392 test -n "$ac_ct_CC" && break 1393done 1394 1395 CC=$ac_ct_CC 1396fi 1397 1398fi 1399 1400test -z "$CC" && { { echo "$as_me:1400: error: no acceptable cc found in \$PATH" >&5 1401echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1402 { (exit 1); exit 1; }; } 1403 1404# Provide some information about the compiler. 1405echo "$as_me:1405:" \ 1406 "checking for C compiler version" >&5 1407ac_compiler=`set X $ac_compile; echo $2` 1408{ (eval echo "$as_me:1408: \"$ac_compiler --version </dev/null >&5\"") >&5 1409 (eval $ac_compiler --version </dev/null >&5) 2>&5 1410 ac_status=$? 1411 echo "$as_me:1411: \$? = $ac_status" >&5 1412 (exit $ac_status); } 1413{ (eval echo "$as_me:1413: \"$ac_compiler -v </dev/null >&5\"") >&5 1414 (eval $ac_compiler -v </dev/null >&5) 2>&5 1415 ac_status=$? 1416 echo "$as_me:1416: \$? = $ac_status" >&5 1417 (exit $ac_status); } 1418{ (eval echo "$as_me:1418: \"$ac_compiler -V </dev/null >&5\"") >&5 1419 (eval $ac_compiler -V </dev/null >&5) 2>&5 1420 ac_status=$? 1421 echo "$as_me:1421: \$? = $ac_status" >&5 1422 (exit $ac_status); } 1423 1424cat >conftest.$ac_ext <<_ACEOF 1425#line 1425 "configure" 1426#include "confdefs.h" 1427 1428int 1429main () 1430{ 1431 1432 ; 1433 return 0; 1434} 1435_ACEOF 1436ac_clean_files_save=$ac_clean_files 1437ac_clean_files="$ac_clean_files a.out a.exe" 1438# Try to create an executable without -o first, disregard a.out. 1439# It will help us diagnose broken compilers, and finding out an intuition 1440# of exeext. 1441echo "$as_me:1441: checking for C compiler default output" >&5 1442echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1443ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1444if { (eval echo "$as_me:1444: \"$ac_link_default\"") >&5 1445 (eval $ac_link_default) 2>&5 1446 ac_status=$? 1447 echo "$as_me:1447: \$? = $ac_status" >&5 1448 (exit $ac_status); }; then 1449 # Find the output, starting from the most likely. This scheme is 1450# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1451# resort. 1452for ac_file in `ls a.exe conftest.exe 2>/dev/null; 1453 ls a.out conftest 2>/dev/null; 1454 ls a.* conftest.* 2>/dev/null`; do 1455 case $ac_file in 1456 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1457 a.out ) # We found the default executable, but exeext='' is most 1458 # certainly right. 1459 break;; 1460 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1461 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 1462 export ac_cv_exeext 1463 break;; 1464 * ) break;; 1465 esac 1466done 1467else 1468 echo "$as_me: failed program was:" >&5 1469cat conftest.$ac_ext >&5 1470{ { echo "$as_me:1470: error: C compiler cannot create executables" >&5 1471echo "$as_me: error: C compiler cannot create executables" >&2;} 1472 { (exit 77); exit 77; }; } 1473fi 1474 1475ac_exeext=$ac_cv_exeext 1476echo "$as_me:1476: result: $ac_file" >&5 1477echo "${ECHO_T}$ac_file" >&6 1478 1479# Check the compiler produces executables we can run. If not, either 1480# the compiler is broken, or we cross compile. 1481echo "$as_me:1481: checking whether the C compiler works" >&5 1482echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1483# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1484# If not cross compiling, check that we can run a simple program. 1485if test "$cross_compiling" != yes; then 1486 if { ac_try='./$ac_file' 1487 { (eval echo "$as_me:1487: \"$ac_try\"") >&5 1488 (eval $ac_try) 2>&5 1489 ac_status=$? 1490 echo "$as_me:1490: \$? = $ac_status" >&5 1491 (exit $ac_status); }; }; then 1492 cross_compiling=no 1493 else 1494 if test "$cross_compiling" = maybe; then 1495 cross_compiling=yes 1496 else 1497 { { echo "$as_me:1497: error: cannot run C compiled programs. 1498If you meant to cross compile, use \`--host'." >&5 1499echo "$as_me: error: cannot run C compiled programs. 1500If you meant to cross compile, use \`--host'." >&2;} 1501 { (exit 1); exit 1; }; } 1502 fi 1503 fi 1504fi 1505echo "$as_me:1505: result: yes" >&5 1506echo "${ECHO_T}yes" >&6 1507 1508rm -f a.out a.exe conftest$ac_cv_exeext 1509ac_clean_files=$ac_clean_files_save 1510# Check the compiler produces executables we can run. If not, either 1511# the compiler is broken, or we cross compile. 1512echo "$as_me:1512: checking whether we are cross compiling" >&5 1513echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1514echo "$as_me:1514: result: $cross_compiling" >&5 1515echo "${ECHO_T}$cross_compiling" >&6 1516 1517echo "$as_me:1517: checking for executable suffix" >&5 1518echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1519if { (eval echo "$as_me:1519: \"$ac_link\"") >&5 1520 (eval $ac_link) 2>&5 1521 ac_status=$? 1522 echo "$as_me:1522: \$? = $ac_status" >&5 1523 (exit $ac_status); }; then 1524 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1525# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1526# work properly (i.e., refer to `conftest.exe'), while it won't with 1527# `rm'. 1528for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1529 case $ac_file in 1530 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1531 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1532 export ac_cv_exeext 1533 break;; 1534 * ) break;; 1535 esac 1536done 1537else 1538 { { echo "$as_me:1538: error: cannot compute EXEEXT: cannot compile and link" >&5 1539echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1540 { (exit 1); exit 1; }; } 1541fi 1542 1543rm -f conftest$ac_cv_exeext 1544echo "$as_me:1544: result: $ac_cv_exeext" >&5 1545echo "${ECHO_T}$ac_cv_exeext" >&6 1546 1547rm -f conftest.$ac_ext 1548EXEEXT=$ac_cv_exeext 1549ac_exeext=$EXEEXT 1550echo "$as_me:1550: checking for object suffix" >&5 1551echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 1552if test "${ac_cv_objext+set}" = set; then 1553 echo $ECHO_N "(cached) $ECHO_C" >&6 1554else 1555 cat >conftest.$ac_ext <<_ACEOF 1556#line 1556 "configure" 1557#include "confdefs.h" 1558 1559int 1560main () 1561{ 1562 1563 ; 1564 return 0; 1565} 1566_ACEOF 1567rm -f conftest.o conftest.obj 1568if { (eval echo "$as_me:1568: \"$ac_compile\"") >&5 1569 (eval $ac_compile) 2>&5 1570 ac_status=$? 1571 echo "$as_me:1571: \$? = $ac_status" >&5 1572 (exit $ac_status); }; then 1573 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1574 case $ac_file in 1575 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;; 1576 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1577 break;; 1578 esac 1579done 1580else 1581 echo "$as_me: failed program was:" >&5 1582cat conftest.$ac_ext >&5 1583{ { echo "$as_me:1583: error: cannot compute OBJEXT: cannot compile" >&5 1584echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1585 { (exit 1); exit 1; }; } 1586fi 1587 1588rm -f conftest.$ac_cv_objext conftest.$ac_ext 1589fi 1590echo "$as_me:1590: result: $ac_cv_objext" >&5 1591echo "${ECHO_T}$ac_cv_objext" >&6 1592OBJEXT=$ac_cv_objext 1593ac_objext=$OBJEXT 1594echo "$as_me:1594: checking whether we are using the GNU C compiler" >&5 1595echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1596if test "${ac_cv_c_compiler_gnu+set}" = set; then 1597 echo $ECHO_N "(cached) $ECHO_C" >&6 1598else 1599 cat >conftest.$ac_ext <<_ACEOF 1600#line 1600 "configure" 1601#include "confdefs.h" 1602 1603int 1604main () 1605{ 1606#ifndef __GNUC__ 1607 choke me 1608#endif 1609 1610 ; 1611 return 0; 1612} 1613_ACEOF 1614rm -f conftest.$ac_objext 1615if { (eval echo "$as_me:1615: \"$ac_compile\"") >&5 1616 (eval $ac_compile) 2>&5 1617 ac_status=$? 1618 echo "$as_me:1618: \$? = $ac_status" >&5 1619 (exit $ac_status); } && 1620 { ac_try='test -s conftest.$ac_objext' 1621 { (eval echo "$as_me:1621: \"$ac_try\"") >&5 1622 (eval $ac_try) 2>&5 1623 ac_status=$? 1624 echo "$as_me:1624: \$? = $ac_status" >&5 1625 (exit $ac_status); }; }; then 1626 ac_compiler_gnu=yes 1627else 1628 echo "$as_me: failed program was:" >&5 1629cat conftest.$ac_ext >&5 1630ac_compiler_gnu=no 1631fi 1632rm -f conftest.$ac_objext conftest.$ac_ext 1633ac_cv_c_compiler_gnu=$ac_compiler_gnu 1634 1635fi 1636echo "$as_me:1636: result: $ac_cv_c_compiler_gnu" >&5 1637echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1638GCC=`test $ac_compiler_gnu = yes && echo yes` 1639ac_test_CFLAGS=${CFLAGS+set} 1640ac_save_CFLAGS=$CFLAGS 1641CFLAGS="-g" 1642echo "$as_me:1642: checking whether $CC accepts -g" >&5 1643echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1644if test "${ac_cv_prog_cc_g+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 () 1653{ 1654 1655 ; 1656 return 0; 1657} 1658_ACEOF 1659rm -f conftest.$ac_objext 1660if { (eval echo "$as_me:1660: \"$ac_compile\"") >&5 1661 (eval $ac_compile) 2>&5 1662 ac_status=$? 1663 echo "$as_me:1663: \$? = $ac_status" >&5 1664 (exit $ac_status); } && 1665 { ac_try='test -s conftest.$ac_objext' 1666 { (eval echo "$as_me:1666: \"$ac_try\"") >&5 1667 (eval $ac_try) 2>&5 1668 ac_status=$? 1669 echo "$as_me:1669: \$? = $ac_status" >&5 1670 (exit $ac_status); }; }; then 1671 ac_cv_prog_cc_g=yes 1672else 1673 echo "$as_me: failed program was:" >&5 1674cat conftest.$ac_ext >&5 1675ac_cv_prog_cc_g=no 1676fi 1677rm -f conftest.$ac_objext conftest.$ac_ext 1678fi 1679echo "$as_me:1679: result: $ac_cv_prog_cc_g" >&5 1680echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1681if test "$ac_test_CFLAGS" = set; then 1682 CFLAGS=$ac_save_CFLAGS 1683elif test $ac_cv_prog_cc_g = yes; then 1684 if test "$GCC" = yes; then 1685 CFLAGS="-g -O2" 1686 else 1687 CFLAGS="-g" 1688 fi 1689else 1690 if test "$GCC" = yes; then 1691 CFLAGS="-O2" 1692 else 1693 CFLAGS= 1694 fi 1695fi 1696# Some people use a C++ compiler to compile C. Since we use `exit', 1697# in C++ we need to declare it. In case someone uses the same compiler 1698# for both compiling C and C++ we need to have the C++ compiler decide 1699# the declaration of exit, since it's the most demanding environment. 1700cat >conftest.$ac_ext <<_ACEOF 1701#ifndef __cplusplus 1702 choke me 1703#endif 1704_ACEOF 1705rm -f conftest.$ac_objext 1706if { (eval echo "$as_me:1706: \"$ac_compile\"") >&5 1707 (eval $ac_compile) 2>&5 1708 ac_status=$? 1709 echo "$as_me:1709: \$? = $ac_status" >&5 1710 (exit $ac_status); } && 1711 { ac_try='test -s conftest.$ac_objext' 1712 { (eval echo "$as_me:1712: \"$ac_try\"") >&5 1713 (eval $ac_try) 2>&5 1714 ac_status=$? 1715 echo "$as_me:1715: \$? = $ac_status" >&5 1716 (exit $ac_status); }; }; then 1717 for ac_declaration in \ 1718 ''\ 1719 '#include <stdlib.h>' \ 1720 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1721 'extern "C" void std::exit (int); using std::exit;' \ 1722 'extern "C" void exit (int) throw ();' \ 1723 'extern "C" void exit (int);' \ 1724 'void exit (int);' 1725do 1726 cat >conftest.$ac_ext <<_ACEOF 1727#line 1727 "configure" 1728#include "confdefs.h" 1729#include <stdlib.h> 1730$ac_declaration 1731int 1732main () 1733{ 1734exit (42); 1735 ; 1736 return 0; 1737} 1738_ACEOF 1739rm -f conftest.$ac_objext 1740if { (eval echo "$as_me:1740: \"$ac_compile\"") >&5 1741 (eval $ac_compile) 2>&5 1742 ac_status=$? 1743 echo "$as_me:1743: \$? = $ac_status" >&5 1744 (exit $ac_status); } && 1745 { ac_try='test -s conftest.$ac_objext' 1746 { (eval echo "$as_me:1746: \"$ac_try\"") >&5 1747 (eval $ac_try) 2>&5 1748 ac_status=$? 1749 echo "$as_me:1749: \$? = $ac_status" >&5 1750 (exit $ac_status); }; }; then 1751 : 1752else 1753 echo "$as_me: failed program was:" >&5 1754cat conftest.$ac_ext >&5 1755continue 1756fi 1757rm -f conftest.$ac_objext conftest.$ac_ext 1758 cat >conftest.$ac_ext <<_ACEOF 1759#line 1759 "configure" 1760#include "confdefs.h" 1761$ac_declaration 1762int 1763main () 1764{ 1765exit (42); 1766 ; 1767 return 0; 1768} 1769_ACEOF 1770rm -f conftest.$ac_objext 1771if { (eval echo "$as_me:1771: \"$ac_compile\"") >&5 1772 (eval $ac_compile) 2>&5 1773 ac_status=$? 1774 echo "$as_me:1774: \$? = $ac_status" >&5 1775 (exit $ac_status); } && 1776 { ac_try='test -s conftest.$ac_objext' 1777 { (eval echo "$as_me:1777: \"$ac_try\"") >&5 1778 (eval $ac_try) 2>&5 1779 ac_status=$? 1780 echo "$as_me:1780: \$? = $ac_status" >&5 1781 (exit $ac_status); }; }; then 1782 break 1783else 1784 echo "$as_me: failed program was:" >&5 1785cat conftest.$ac_ext >&5 1786fi 1787rm -f conftest.$ac_objext conftest.$ac_ext 1788done 1789rm -rf conftest* 1790if test -n "$ac_declaration"; then 1791 echo '#ifdef __cplusplus' >>confdefs.h 1792 echo $ac_declaration >>confdefs.h 1793 echo '#endif' >>confdefs.h 1794fi 1795 1796else 1797 echo "$as_me: failed program was:" >&5 1798cat conftest.$ac_ext >&5 1799fi 1800rm -f conftest.$ac_objext conftest.$ac_ext 1801ac_ext=c 1802ac_cpp='$CPP $CPPFLAGS' 1803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1805ac_compiler_gnu=$ac_cv_c_compiler_gnu 1806ac_main_return=return 1807 1808GCC_VERSION=none 1809if test "$GCC" = yes ; then 1810 echo "$as_me:1810: checking version of $CC" >&5 1811echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 1812 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.].*//'`" 1813 test -z "$GCC_VERSION" && GCC_VERSION=unknown 1814 echo "$as_me:1814: result: $GCC_VERSION" >&5 1815echo "${ECHO_T}$GCC_VERSION" >&6 1816fi 1817 1818echo "$as_me:1818: checking for $CC option to accept ANSI C" >&5 1819echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 1820if test "${ac_cv_prog_cc_stdc+set}" = set; then 1821 echo $ECHO_N "(cached) $ECHO_C" >&6 1822else 1823 ac_cv_prog_cc_stdc=no 1824ac_save_CC=$CC 1825cat >conftest.$ac_ext <<_ACEOF 1826#line 1826 "configure" 1827#include "confdefs.h" 1828#include <stdarg.h> 1829#include <stdio.h> 1830#include <sys/types.h> 1831#include <sys/stat.h> 1832/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 1833struct buf { int x; }; 1834FILE * (*rcsopen) (struct buf *, struct stat *, int); 1835static char *e (p, i) 1836 char **p; 1837 int i; 1838{ 1839 return p[i]; 1840} 1841static char *f (char * (*g) (char **, int), char **p, ...) 1842{ 1843 char *s; 1844 va_list v; 1845 va_start (v,p); 1846 s = g (p, va_arg (v,int)); 1847 va_end (v); 1848 return s; 1849} 1850int test (int i, double x); 1851struct s1 {int (*f) (int a);}; 1852struct s2 {int (*f) (double a);}; 1853int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 1854int argc; 1855char **argv; 1856int 1857main () 1858{ 1859return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 1860 ; 1861 return 0; 1862} 1863_ACEOF 1864# Don't try gcc -ansi; that turns off useful extensions and 1865# breaks some systems' header files. 1866# AIX -qlanglvl=ansi 1867# Ultrix and OSF/1 -std1 1868# HP-UX 10.20 and later -Ae 1869# HP-UX older versions -Aa -D_HPUX_SOURCE 1870# SVR4 -Xc -D__EXTENSIONS__ 1871for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 1872do 1873 CC="$ac_save_CC $ac_arg" 1874 rm -f conftest.$ac_objext 1875if { (eval echo "$as_me:1875: \"$ac_compile\"") >&5 1876 (eval $ac_compile) 2>&5 1877 ac_status=$? 1878 echo "$as_me:1878: \$? = $ac_status" >&5 1879 (exit $ac_status); } && 1880 { ac_try='test -s conftest.$ac_objext' 1881 { (eval echo "$as_me:1881: \"$ac_try\"") >&5 1882 (eval $ac_try) 2>&5 1883 ac_status=$? 1884 echo "$as_me:1884: \$? = $ac_status" >&5 1885 (exit $ac_status); }; }; then 1886 ac_cv_prog_cc_stdc=$ac_arg 1887break 1888else 1889 echo "$as_me: failed program was:" >&5 1890cat conftest.$ac_ext >&5 1891fi 1892rm -f conftest.$ac_objext 1893done 1894rm -f conftest.$ac_ext conftest.$ac_objext 1895CC=$ac_save_CC 1896 1897fi 1898 1899case "x$ac_cv_prog_cc_stdc" in 1900 x|xno) 1901 echo "$as_me:1901: result: none needed" >&5 1902echo "${ECHO_T}none needed" >&6 ;; 1903 *) 1904 echo "$as_me:1904: result: $ac_cv_prog_cc_stdc" >&5 1905echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 1906 CC="$CC $ac_cv_prog_cc_stdc" ;; 1907esac 1908 1909# This should have been defined by AC_PROG_CC 1910: ${CC:=cc} 1911 1912echo "$as_me:1912: checking \$CC variable" >&5 1913echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6 1914case "$CC" in #(vi 1915*[\ \ ]-[IUD]*) 1916 echo "$as_me:1916: result: broken" >&5 1917echo "${ECHO_T}broken" >&6 1918 { echo "$as_me:1918: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5 1919echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;} 1920 # humor him... 1921 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'` 1922 CC=`echo "$CC" | sed -e 's/[ ].*//'` 1923 1924cf_fix_cppflags=no 1925cf_new_cflags= 1926cf_new_cppflags= 1927cf_new_extra_cppflags= 1928 1929for cf_add_cflags in $cf_flags 1930do 1931case $cf_fix_cppflags in 1932no) 1933 case $cf_add_cflags in #(vi 1934 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 1935 case $cf_add_cflags in 1936 -D*) 1937 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 1938 1939 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 1940 && test -z "${cf_tst_cflags}" \ 1941 && cf_fix_cppflags=yes 1942 1943 if test $cf_fix_cppflags = yes ; then 1944 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 1945 continue 1946 elif test "${cf_tst_cflags}" = "\"'" ; then 1947 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 1948 continue 1949 fi 1950 ;; 1951 esac 1952 case "$CPPFLAGS" in 1953 *$cf_add_cflags) #(vi 1954 ;; 1955 *) #(vi 1956 case $cf_add_cflags in #(vi 1957 -D*) 1958 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 1959 1960CPPFLAGS=`echo "$CPPFLAGS" | \ 1961 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 1962 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 1963 1964 ;; 1965 esac 1966 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 1967 ;; 1968 esac 1969 ;; 1970 *) 1971 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 1972 ;; 1973 esac 1974 ;; 1975yes) 1976 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 1977 1978 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 1979 1980 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 1981 && test -z "${cf_tst_cflags}" \ 1982 && cf_fix_cppflags=no 1983 ;; 1984esac 1985done 1986 1987if test -n "$cf_new_cflags" ; then 1988 1989 CFLAGS="$CFLAGS $cf_new_cflags" 1990fi 1991 1992if test -n "$cf_new_cppflags" ; then 1993 1994 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 1995fi 1996 1997if test -n "$cf_new_extra_cppflags" ; then 1998 1999 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 2000fi 2001 2002 ;; 2003*) 2004 echo "$as_me:2004: result: ok" >&5 2005echo "${ECHO_T}ok" >&6 2006 ;; 2007esac 2008 2009echo "$as_me:2009: checking whether ${MAKE-make} sets \${MAKE}" >&5 2010echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 2011set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 2012if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2013 echo $ECHO_N "(cached) $ECHO_C" >&6 2014else 2015 cat >conftest.make <<\EOF 2016all: 2017 @echo 'ac_maketemp="${MAKE}"' 2018EOF 2019# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2020eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2021if test -n "$ac_maketemp"; then 2022 eval ac_cv_prog_make_${ac_make}_set=yes 2023else 2024 eval ac_cv_prog_make_${ac_make}_set=no 2025fi 2026rm -f conftest.make 2027fi 2028if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2029 echo "$as_me:2029: result: yes" >&5 2030echo "${ECHO_T}yes" >&6 2031 SET_MAKE= 2032else 2033 echo "$as_me:2033: result: no" >&5 2034echo "${ECHO_T}no" >&6 2035 SET_MAKE="MAKE=${MAKE-make}" 2036fi 2037 2038# Find a good install program. We prefer a C program (faster), 2039# so one script is as good as another. But avoid the broken or 2040# incompatible versions: 2041# SysV /etc/install, /usr/sbin/install 2042# SunOS /usr/etc/install 2043# IRIX /sbin/install 2044# AIX /bin/install 2045# AmigaOS /C/install, which installs bootblocks on floppy discs 2046# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2047# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2048# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2049# ./install, which can be erroneously created by make from ./install.sh. 2050echo "$as_me:2050: checking for a BSD compatible install" >&5 2051echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 2052if test -z "$INSTALL"; then 2053if test "${ac_cv_path_install+set}" = set; then 2054 echo $ECHO_N "(cached) $ECHO_C" >&6 2055else 2056 ac_save_IFS=$IFS; IFS=$ac_path_separator 2057 for ac_dir in $PATH; do 2058 IFS=$ac_save_IFS 2059 # Account for people who put trailing slashes in PATH elements. 2060 case $ac_dir/ in 2061 / | ./ | .// | /cC/* \ 2062 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 2063 | /usr/ucb/* ) ;; 2064 *) 2065 # OSF1 and SCO ODT 3.0 have their own names for install. 2066 # Don't use installbsd from OSF since it installs stuff as root 2067 # by default. 2068 for ac_prog in ginstall scoinst install; do 2069 if $as_executable_p "$ac_dir/$ac_prog"; then 2070 if test $ac_prog = install && 2071 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2072 # AIX install. It has an incompatible calling convention. 2073 : 2074 elif test $ac_prog = install && 2075 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2076 # program-specific install script used by HP pwplus--don't use. 2077 : 2078 else 2079 ac_cv_path_install="$ac_dir/$ac_prog -c" 2080 break 2 2081 fi 2082 fi 2083 done 2084 ;; 2085 esac 2086 done 2087 2088fi 2089 if test "${ac_cv_path_install+set}" = set; then 2090 INSTALL=$ac_cv_path_install 2091 else 2092 # As a last resort, use the slow shell script. We don't cache a 2093 # path for INSTALL within a source directory, because that will 2094 # break other packages using the cache if that directory is 2095 # removed, or if the path is relative. 2096 INSTALL=$ac_install_sh 2097 fi 2098fi 2099echo "$as_me:2099: result: $INSTALL" >&5 2100echo "${ECHO_T}$INSTALL" >&6 2101 2102# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2103# It thinks the first close brace ends the variable substitution. 2104test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2105 2106test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2107 2108test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2109 2110echo "$as_me:2110: checking if filesystem supports mixed-case filenames" >&5 2111echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6 2112if test "${cf_cv_mixedcase+set}" = set; then 2113 echo $ECHO_N "(cached) $ECHO_C" >&6 2114else 2115 2116if test "$cross_compiling" = yes ; then 2117 case $target_alias in #(vi 2118 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*) #(vi 2119 cf_cv_mixedcase=no 2120 ;; 2121 *) 2122 cf_cv_mixedcase=yes 2123 ;; 2124 esac 2125else 2126 rm -f conftest CONFTEST 2127 echo test >conftest 2128 if test -f CONFTEST ; then 2129 cf_cv_mixedcase=no 2130 else 2131 cf_cv_mixedcase=yes 2132 fi 2133 rm -f conftest CONFTEST 2134fi 2135 2136fi 2137echo "$as_me:2137: result: $cf_cv_mixedcase" >&5 2138echo "${ECHO_T}$cf_cv_mixedcase" >&6 2139test "$cf_cv_mixedcase" = yes && 2140cat >>confdefs.h <<\EOF 2141#define MIXEDCASE_FILENAMES 1 2142EOF 2143 2144for ac_prog in exctags ctags 2145do 2146 # Extract the first word of "$ac_prog", so it can be a program name with args. 2147set dummy $ac_prog; ac_word=$2 2148echo "$as_me:2148: checking for $ac_word" >&5 2149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2150if test "${ac_cv_prog_CTAGS+set}" = set; then 2151 echo $ECHO_N "(cached) $ECHO_C" >&6 2152else 2153 if test -n "$CTAGS"; then 2154 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test. 2155else 2156 ac_save_IFS=$IFS; IFS=$ac_path_separator 2157ac_dummy="$PATH" 2158for ac_dir in $ac_dummy; do 2159 IFS=$ac_save_IFS 2160 test -z "$ac_dir" && ac_dir=. 2161 $as_executable_p "$ac_dir/$ac_word" || continue 2162ac_cv_prog_CTAGS="$ac_prog" 2163echo "$as_me:2163: found $ac_dir/$ac_word" >&5 2164break 2165done 2166 2167fi 2168fi 2169CTAGS=$ac_cv_prog_CTAGS 2170if test -n "$CTAGS"; then 2171 echo "$as_me:2171: result: $CTAGS" >&5 2172echo "${ECHO_T}$CTAGS" >&6 2173else 2174 echo "$as_me:2174: result: no" >&5 2175echo "${ECHO_T}no" >&6 2176fi 2177 2178 test -n "$CTAGS" && break 2179done 2180 2181for ac_prog in exetags etags 2182do 2183 # Extract the first word of "$ac_prog", so it can be a program name with args. 2184set dummy $ac_prog; ac_word=$2 2185echo "$as_me:2185: checking for $ac_word" >&5 2186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2187if test "${ac_cv_prog_ETAGS+set}" = set; then 2188 echo $ECHO_N "(cached) $ECHO_C" >&6 2189else 2190 if test -n "$ETAGS"; then 2191 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test. 2192else 2193 ac_save_IFS=$IFS; IFS=$ac_path_separator 2194ac_dummy="$PATH" 2195for ac_dir in $ac_dummy; do 2196 IFS=$ac_save_IFS 2197 test -z "$ac_dir" && ac_dir=. 2198 $as_executable_p "$ac_dir/$ac_word" || continue 2199ac_cv_prog_ETAGS="$ac_prog" 2200echo "$as_me:2200: found $ac_dir/$ac_word" >&5 2201break 2202done 2203 2204fi 2205fi 2206ETAGS=$ac_cv_prog_ETAGS 2207if test -n "$ETAGS"; then 2208 echo "$as_me:2208: result: $ETAGS" >&5 2209echo "${ECHO_T}$ETAGS" >&6 2210else 2211 echo "$as_me:2211: result: no" >&5 2212echo "${ECHO_T}no" >&6 2213fi 2214 2215 test -n "$ETAGS" && break 2216done 2217 2218# Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args. 2219set dummy ${CTAGS:-ctags}; ac_word=$2 2220echo "$as_me:2220: checking for $ac_word" >&5 2221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2222if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then 2223 echo $ECHO_N "(cached) $ECHO_C" >&6 2224else 2225 if test -n "$MAKE_LOWER_TAGS"; then 2226 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test. 2227else 2228 ac_save_IFS=$IFS; IFS=$ac_path_separator 2229ac_dummy="$PATH" 2230for ac_dir in $ac_dummy; do 2231 IFS=$ac_save_IFS 2232 test -z "$ac_dir" && ac_dir=. 2233 $as_executable_p "$ac_dir/$ac_word" || continue 2234ac_cv_prog_MAKE_LOWER_TAGS="yes" 2235echo "$as_me:2235: found $ac_dir/$ac_word" >&5 2236break 2237done 2238 2239 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no" 2240fi 2241fi 2242MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS 2243if test -n "$MAKE_LOWER_TAGS"; then 2244 echo "$as_me:2244: result: $MAKE_LOWER_TAGS" >&5 2245echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6 2246else 2247 echo "$as_me:2247: result: no" >&5 2248echo "${ECHO_T}no" >&6 2249fi 2250 2251if test "$cf_cv_mixedcase" = yes ; then 2252 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args. 2253set dummy ${ETAGS:-etags}; ac_word=$2 2254echo "$as_me:2254: checking for $ac_word" >&5 2255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2256if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then 2257 echo $ECHO_N "(cached) $ECHO_C" >&6 2258else 2259 if test -n "$MAKE_UPPER_TAGS"; then 2260 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test. 2261else 2262 ac_save_IFS=$IFS; IFS=$ac_path_separator 2263ac_dummy="$PATH" 2264for ac_dir in $ac_dummy; do 2265 IFS=$ac_save_IFS 2266 test -z "$ac_dir" && ac_dir=. 2267 $as_executable_p "$ac_dir/$ac_word" || continue 2268ac_cv_prog_MAKE_UPPER_TAGS="yes" 2269echo "$as_me:2269: found $ac_dir/$ac_word" >&5 2270break 2271done 2272 2273 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no" 2274fi 2275fi 2276MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS 2277if test -n "$MAKE_UPPER_TAGS"; then 2278 echo "$as_me:2278: result: $MAKE_UPPER_TAGS" >&5 2279echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6 2280else 2281 echo "$as_me:2281: result: no" >&5 2282echo "${ECHO_T}no" >&6 2283fi 2284 2285else 2286 MAKE_UPPER_TAGS=no 2287fi 2288 2289if test "$MAKE_UPPER_TAGS" = yes ; then 2290 MAKE_UPPER_TAGS= 2291else 2292 MAKE_UPPER_TAGS="#" 2293fi 2294 2295if test "$MAKE_LOWER_TAGS" = yes ; then 2296 MAKE_LOWER_TAGS= 2297else 2298 MAKE_LOWER_TAGS="#" 2299fi 2300 2301for ac_prog in mawk gawk nawk awk 2302do 2303 # Extract the first word of "$ac_prog", so it can be a program name with args. 2304set dummy $ac_prog; ac_word=$2 2305echo "$as_me:2305: checking for $ac_word" >&5 2306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2307if test "${ac_cv_prog_AWK+set}" = set; then 2308 echo $ECHO_N "(cached) $ECHO_C" >&6 2309else 2310 if test -n "$AWK"; then 2311 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2312else 2313 ac_save_IFS=$IFS; IFS=$ac_path_separator 2314ac_dummy="$PATH" 2315for ac_dir in $ac_dummy; do 2316 IFS=$ac_save_IFS 2317 test -z "$ac_dir" && ac_dir=. 2318 $as_executable_p "$ac_dir/$ac_word" || continue 2319ac_cv_prog_AWK="$ac_prog" 2320echo "$as_me:2320: found $ac_dir/$ac_word" >&5 2321break 2322done 2323 2324fi 2325fi 2326AWK=$ac_cv_prog_AWK 2327if test -n "$AWK"; then 2328 echo "$as_me:2328: result: $AWK" >&5 2329echo "${ECHO_T}$AWK" >&6 2330else 2331 echo "$as_me:2331: result: no" >&5 2332echo "${ECHO_T}no" >&6 2333fi 2334 2335 test -n "$AWK" && break 2336done 2337 2338test -z "$AWK" && { { echo "$as_me:2338: error: No awk program found" >&5 2339echo "$as_me: error: No awk program found" >&2;} 2340 { (exit 1); exit 1; }; } 2341 2342for ac_prog in tdlint lint alint splint lclint 2343do 2344 # Extract the first word of "$ac_prog", so it can be a program name with args. 2345set dummy $ac_prog; ac_word=$2 2346echo "$as_me:2346: checking for $ac_word" >&5 2347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2348if test "${ac_cv_prog_LINT+set}" = set; then 2349 echo $ECHO_N "(cached) $ECHO_C" >&6 2350else 2351 if test -n "$LINT"; then 2352 ac_cv_prog_LINT="$LINT" # Let the user override the test. 2353else 2354 ac_save_IFS=$IFS; IFS=$ac_path_separator 2355ac_dummy="$PATH" 2356for ac_dir in $ac_dummy; do 2357 IFS=$ac_save_IFS 2358 test -z "$ac_dir" && ac_dir=. 2359 $as_executable_p "$ac_dir/$ac_word" || continue 2360ac_cv_prog_LINT="$ac_prog" 2361echo "$as_me:2361: found $ac_dir/$ac_word" >&5 2362break 2363done 2364 2365fi 2366fi 2367LINT=$ac_cv_prog_LINT 2368if test -n "$LINT"; then 2369 echo "$as_me:2369: result: $LINT" >&5 2370echo "${ECHO_T}$LINT" >&6 2371else 2372 echo "$as_me:2372: result: no" >&5 2373echo "${ECHO_T}no" >&6 2374fi 2375 2376 test -n "$LINT" && break 2377done 2378 2379cf_XOPEN_SOURCE=500 2380cf_POSIX_C_SOURCE=199506L 2381cf_xopen_source= 2382 2383case $host_os in #(vi 2384aix[4-7]*) #(vi 2385 cf_xopen_source="-D_ALL_SOURCE" 2386 ;; 2387cygwin|msys) #(vi 2388 cf_XOPEN_SOURCE=600 2389 ;; 2390darwin[0-8].*) #(vi 2391 cf_xopen_source="-D_APPLE_C_SOURCE" 2392 ;; 2393darwin*) #(vi 2394 cf_xopen_source="-D_DARWIN_C_SOURCE" 2395 cf_XOPEN_SOURCE= 2396 ;; 2397freebsd*|dragonfly*) #(vi 2398 # 5.x headers associate 2399 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L 2400 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L 2401 cf_POSIX_C_SOURCE=200112L 2402 cf_XOPEN_SOURCE=600 2403 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 2404 ;; 2405hpux11*) #(vi 2406 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500" 2407 ;; 2408hpux*) #(vi 2409 cf_xopen_source="-D_HPUX_SOURCE" 2410 ;; 2411irix[56].*) #(vi 2412 cf_xopen_source="-D_SGI_SOURCE" 2413 cf_XOPEN_SOURCE= 2414 ;; 2415linux*|gnu*|mint*|k*bsd*-gnu) #(vi 2416 2417echo "$as_me:2417: checking if we must define _GNU_SOURCE" >&5 2418echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6 2419if test "${cf_cv_gnu_source+set}" = set; then 2420 echo $ECHO_N "(cached) $ECHO_C" >&6 2421else 2422 2423cat >conftest.$ac_ext <<_ACEOF 2424#line 2424 "configure" 2425#include "confdefs.h" 2426#include <sys/types.h> 2427int 2428main () 2429{ 2430 2431#ifndef _XOPEN_SOURCE 2432make an error 2433#endif 2434 ; 2435 return 0; 2436} 2437_ACEOF 2438rm -f conftest.$ac_objext 2439if { (eval echo "$as_me:2439: \"$ac_compile\"") >&5 2440 (eval $ac_compile) 2>&5 2441 ac_status=$? 2442 echo "$as_me:2442: \$? = $ac_status" >&5 2443 (exit $ac_status); } && 2444 { ac_try='test -s conftest.$ac_objext' 2445 { (eval echo "$as_me:2445: \"$ac_try\"") >&5 2446 (eval $ac_try) 2>&5 2447 ac_status=$? 2448 echo "$as_me:2448: \$? = $ac_status" >&5 2449 (exit $ac_status); }; }; then 2450 cf_cv_gnu_source=no 2451else 2452 echo "$as_me: failed program was:" >&5 2453cat conftest.$ac_ext >&5 2454cf_save="$CPPFLAGS" 2455 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 2456 cat >conftest.$ac_ext <<_ACEOF 2457#line 2457 "configure" 2458#include "confdefs.h" 2459#include <sys/types.h> 2460int 2461main () 2462{ 2463 2464#ifdef _XOPEN_SOURCE 2465make an error 2466#endif 2467 ; 2468 return 0; 2469} 2470_ACEOF 2471rm -f conftest.$ac_objext 2472if { (eval echo "$as_me:2472: \"$ac_compile\"") >&5 2473 (eval $ac_compile) 2>&5 2474 ac_status=$? 2475 echo "$as_me:2475: \$? = $ac_status" >&5 2476 (exit $ac_status); } && 2477 { ac_try='test -s conftest.$ac_objext' 2478 { (eval echo "$as_me:2478: \"$ac_try\"") >&5 2479 (eval $ac_try) 2>&5 2480 ac_status=$? 2481 echo "$as_me:2481: \$? = $ac_status" >&5 2482 (exit $ac_status); }; }; then 2483 cf_cv_gnu_source=no 2484else 2485 echo "$as_me: failed program was:" >&5 2486cat conftest.$ac_ext >&5 2487cf_cv_gnu_source=yes 2488fi 2489rm -f conftest.$ac_objext conftest.$ac_ext 2490 CPPFLAGS="$cf_save" 2491 2492fi 2493rm -f conftest.$ac_objext conftest.$ac_ext 2494 2495fi 2496echo "$as_me:2496: result: $cf_cv_gnu_source" >&5 2497echo "${ECHO_T}$cf_cv_gnu_source" >&6 2498test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 2499 2500 ;; 2501mirbsd*) #(vi 2502 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types 2503 cf_XOPEN_SOURCE= 2504 2505cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 2506 2507cf_save_CFLAGS="$CFLAGS" 2508cf_save_CPPFLAGS="$CPPFLAGS" 2509 2510cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 2511 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 2512 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 2513 2514cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 2515 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 2516 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 2517 2518echo "$as_me:2518: checking if we should define _POSIX_C_SOURCE" >&5 2519echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 2520if test "${cf_cv_posix_c_source+set}" = set; then 2521 echo $ECHO_N "(cached) $ECHO_C" >&6 2522else 2523 2524echo "${as_me:-configure}:2524: testing if the symbol is already defined go no further ..." 1>&5 2525 2526 cat >conftest.$ac_ext <<_ACEOF 2527#line 2527 "configure" 2528#include "confdefs.h" 2529#include <sys/types.h> 2530int 2531main () 2532{ 2533 2534#ifndef _POSIX_C_SOURCE 2535make an error 2536#endif 2537 ; 2538 return 0; 2539} 2540_ACEOF 2541rm -f conftest.$ac_objext 2542if { (eval echo "$as_me:2542: \"$ac_compile\"") >&5 2543 (eval $ac_compile) 2>&5 2544 ac_status=$? 2545 echo "$as_me:2545: \$? = $ac_status" >&5 2546 (exit $ac_status); } && 2547 { ac_try='test -s conftest.$ac_objext' 2548 { (eval echo "$as_me:2548: \"$ac_try\"") >&5 2549 (eval $ac_try) 2>&5 2550 ac_status=$? 2551 echo "$as_me:2551: \$? = $ac_status" >&5 2552 (exit $ac_status); }; }; then 2553 cf_cv_posix_c_source=no 2554else 2555 echo "$as_me: failed program was:" >&5 2556cat conftest.$ac_ext >&5 2557cf_want_posix_source=no 2558 case .$cf_POSIX_C_SOURCE in #(vi 2559 .[12]??*) #(vi 2560 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 2561 ;; 2562 .2) #(vi 2563 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 2564 cf_want_posix_source=yes 2565 ;; 2566 .*) 2567 cf_want_posix_source=yes 2568 ;; 2569 esac 2570 if test "$cf_want_posix_source" = yes ; then 2571 cat >conftest.$ac_ext <<_ACEOF 2572#line 2572 "configure" 2573#include "confdefs.h" 2574#include <sys/types.h> 2575int 2576main () 2577{ 2578 2579#ifdef _POSIX_SOURCE 2580make an error 2581#endif 2582 ; 2583 return 0; 2584} 2585_ACEOF 2586rm -f conftest.$ac_objext 2587if { (eval echo "$as_me:2587: \"$ac_compile\"") >&5 2588 (eval $ac_compile) 2>&5 2589 ac_status=$? 2590 echo "$as_me:2590: \$? = $ac_status" >&5 2591 (exit $ac_status); } && 2592 { ac_try='test -s conftest.$ac_objext' 2593 { (eval echo "$as_me:2593: \"$ac_try\"") >&5 2594 (eval $ac_try) 2>&5 2595 ac_status=$? 2596 echo "$as_me:2596: \$? = $ac_status" >&5 2597 (exit $ac_status); }; }; then 2598 : 2599else 2600 echo "$as_me: failed program was:" >&5 2601cat conftest.$ac_ext >&5 2602cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 2603fi 2604rm -f conftest.$ac_objext conftest.$ac_ext 2605 fi 2606 2607echo "${as_me:-configure}:2607: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 2608 2609 CFLAGS="$cf_trim_CFLAGS" 2610 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source" 2611 2612echo "${as_me:-configure}:2612: testing if the second compile does not leave our definition intact error ..." 1>&5 2613 2614 cat >conftest.$ac_ext <<_ACEOF 2615#line 2615 "configure" 2616#include "confdefs.h" 2617#include <sys/types.h> 2618int 2619main () 2620{ 2621 2622#ifndef _POSIX_C_SOURCE 2623make an error 2624#endif 2625 ; 2626 return 0; 2627} 2628_ACEOF 2629rm -f conftest.$ac_objext 2630if { (eval echo "$as_me:2630: \"$ac_compile\"") >&5 2631 (eval $ac_compile) 2>&5 2632 ac_status=$? 2633 echo "$as_me:2633: \$? = $ac_status" >&5 2634 (exit $ac_status); } && 2635 { ac_try='test -s conftest.$ac_objext' 2636 { (eval echo "$as_me:2636: \"$ac_try\"") >&5 2637 (eval $ac_try) 2>&5 2638 ac_status=$? 2639 echo "$as_me:2639: \$? = $ac_status" >&5 2640 (exit $ac_status); }; }; then 2641 : 2642else 2643 echo "$as_me: failed program was:" >&5 2644cat conftest.$ac_ext >&5 2645cf_cv_posix_c_source=no 2646fi 2647rm -f conftest.$ac_objext conftest.$ac_ext 2648 CFLAGS="$cf_save_CFLAGS" 2649 CPPFLAGS="$cf_save_CPPFLAGS" 2650 2651fi 2652rm -f conftest.$ac_objext conftest.$ac_ext 2653 2654fi 2655echo "$as_me:2655: result: $cf_cv_posix_c_source" >&5 2656echo "${ECHO_T}$cf_cv_posix_c_source" >&6 2657 2658if test "$cf_cv_posix_c_source" != no ; then 2659 CFLAGS="$cf_trim_CFLAGS" 2660 CPPFLAGS="$cf_trim_CPPFLAGS" 2661 2662cf_fix_cppflags=no 2663cf_new_cflags= 2664cf_new_cppflags= 2665cf_new_extra_cppflags= 2666 2667for cf_add_cflags in $cf_cv_posix_c_source 2668do 2669case $cf_fix_cppflags in 2670no) 2671 case $cf_add_cflags in #(vi 2672 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 2673 case $cf_add_cflags in 2674 -D*) 2675 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2676 2677 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2678 && test -z "${cf_tst_cflags}" \ 2679 && cf_fix_cppflags=yes 2680 2681 if test $cf_fix_cppflags = yes ; then 2682 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2683 continue 2684 elif test "${cf_tst_cflags}" = "\"'" ; then 2685 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2686 continue 2687 fi 2688 ;; 2689 esac 2690 case "$CPPFLAGS" in 2691 *$cf_add_cflags) #(vi 2692 ;; 2693 *) #(vi 2694 case $cf_add_cflags in #(vi 2695 -D*) 2696 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2697 2698CPPFLAGS=`echo "$CPPFLAGS" | \ 2699 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2700 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2701 2702 ;; 2703 esac 2704 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 2705 ;; 2706 esac 2707 ;; 2708 *) 2709 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 2710 ;; 2711 esac 2712 ;; 2713yes) 2714 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2715 2716 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 2717 2718 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2719 && test -z "${cf_tst_cflags}" \ 2720 && cf_fix_cppflags=no 2721 ;; 2722esac 2723done 2724 2725if test -n "$cf_new_cflags" ; then 2726 2727 CFLAGS="$CFLAGS $cf_new_cflags" 2728fi 2729 2730if test -n "$cf_new_cppflags" ; then 2731 2732 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 2733fi 2734 2735if test -n "$cf_new_extra_cppflags" ; then 2736 2737 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 2738fi 2739 2740fi 2741 2742 ;; 2743netbsd*) #(vi 2744 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw 2745 ;; 2746openbsd[4-9]*) #(vi 2747 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw 2748 cf_xopen_source="-D_BSD_SOURCE" 2749 cf_XOPEN_SOURCE=600 2750 ;; 2751openbsd*) #(vi 2752 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw 2753 ;; 2754osf[45]*) #(vi 2755 cf_xopen_source="-D_OSF_SOURCE" 2756 ;; 2757nto-qnx*) #(vi 2758 cf_xopen_source="-D_QNX_SOURCE" 2759 ;; 2760sco*) #(vi 2761 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer 2762 ;; 2763solaris2.*) #(vi 2764 cf_xopen_source="-D__EXTENSIONS__" 2765 cf_cv_xopen_source=broken 2766 ;; 2767*) 2768 2769echo "$as_me:2769: checking if we should define _XOPEN_SOURCE" >&5 2770echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 2771if test "${cf_cv_xopen_source+set}" = set; then 2772 echo $ECHO_N "(cached) $ECHO_C" >&6 2773else 2774 2775 cat >conftest.$ac_ext <<_ACEOF 2776#line 2776 "configure" 2777#include "confdefs.h" 2778 2779#include <stdlib.h> 2780#include <string.h> 2781#include <sys/types.h> 2782 2783int 2784main () 2785{ 2786 2787#ifndef _XOPEN_SOURCE 2788make an error 2789#endif 2790 ; 2791 return 0; 2792} 2793_ACEOF 2794rm -f conftest.$ac_objext 2795if { (eval echo "$as_me:2795: \"$ac_compile\"") >&5 2796 (eval $ac_compile) 2>&5 2797 ac_status=$? 2798 echo "$as_me:2798: \$? = $ac_status" >&5 2799 (exit $ac_status); } && 2800 { ac_try='test -s conftest.$ac_objext' 2801 { (eval echo "$as_me:2801: \"$ac_try\"") >&5 2802 (eval $ac_try) 2>&5 2803 ac_status=$? 2804 echo "$as_me:2804: \$? = $ac_status" >&5 2805 (exit $ac_status); }; }; then 2806 cf_cv_xopen_source=no 2807else 2808 echo "$as_me: failed program was:" >&5 2809cat conftest.$ac_ext >&5 2810cf_save="$CPPFLAGS" 2811 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 2812 cat >conftest.$ac_ext <<_ACEOF 2813#line 2813 "configure" 2814#include "confdefs.h" 2815 2816#include <stdlib.h> 2817#include <string.h> 2818#include <sys/types.h> 2819 2820int 2821main () 2822{ 2823 2824#ifdef _XOPEN_SOURCE 2825make an error 2826#endif 2827 ; 2828 return 0; 2829} 2830_ACEOF 2831rm -f conftest.$ac_objext 2832if { (eval echo "$as_me:2832: \"$ac_compile\"") >&5 2833 (eval $ac_compile) 2>&5 2834 ac_status=$? 2835 echo "$as_me:2835: \$? = $ac_status" >&5 2836 (exit $ac_status); } && 2837 { ac_try='test -s conftest.$ac_objext' 2838 { (eval echo "$as_me:2838: \"$ac_try\"") >&5 2839 (eval $ac_try) 2>&5 2840 ac_status=$? 2841 echo "$as_me:2841: \$? = $ac_status" >&5 2842 (exit $ac_status); }; }; then 2843 cf_cv_xopen_source=no 2844else 2845 echo "$as_me: failed program was:" >&5 2846cat conftest.$ac_ext >&5 2847cf_cv_xopen_source=$cf_XOPEN_SOURCE 2848fi 2849rm -f conftest.$ac_objext conftest.$ac_ext 2850 CPPFLAGS="$cf_save" 2851 2852fi 2853rm -f conftest.$ac_objext conftest.$ac_ext 2854 2855fi 2856echo "$as_me:2856: result: $cf_cv_xopen_source" >&5 2857echo "${ECHO_T}$cf_cv_xopen_source" >&6 2858 2859if test "$cf_cv_xopen_source" != no ; then 2860 2861CFLAGS=`echo "$CFLAGS" | \ 2862 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 2863 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 2864 2865CPPFLAGS=`echo "$CPPFLAGS" | \ 2866 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 2867 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 2868 2869 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 2870 2871cf_fix_cppflags=no 2872cf_new_cflags= 2873cf_new_cppflags= 2874cf_new_extra_cppflags= 2875 2876for cf_add_cflags in $cf_temp_xopen_source 2877do 2878case $cf_fix_cppflags in 2879no) 2880 case $cf_add_cflags in #(vi 2881 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 2882 case $cf_add_cflags in 2883 -D*) 2884 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2885 2886 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2887 && test -z "${cf_tst_cflags}" \ 2888 && cf_fix_cppflags=yes 2889 2890 if test $cf_fix_cppflags = yes ; then 2891 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2892 continue 2893 elif test "${cf_tst_cflags}" = "\"'" ; then 2894 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2895 continue 2896 fi 2897 ;; 2898 esac 2899 case "$CPPFLAGS" in 2900 *$cf_add_cflags) #(vi 2901 ;; 2902 *) #(vi 2903 case $cf_add_cflags in #(vi 2904 -D*) 2905 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2906 2907CPPFLAGS=`echo "$CPPFLAGS" | \ 2908 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2909 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2910 2911 ;; 2912 esac 2913 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 2914 ;; 2915 esac 2916 ;; 2917 *) 2918 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 2919 ;; 2920 esac 2921 ;; 2922yes) 2923 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2924 2925 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 2926 2927 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2928 && test -z "${cf_tst_cflags}" \ 2929 && cf_fix_cppflags=no 2930 ;; 2931esac 2932done 2933 2934if test -n "$cf_new_cflags" ; then 2935 2936 CFLAGS="$CFLAGS $cf_new_cflags" 2937fi 2938 2939if test -n "$cf_new_cppflags" ; then 2940 2941 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 2942fi 2943 2944if test -n "$cf_new_extra_cppflags" ; then 2945 2946 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 2947fi 2948 2949fi 2950 2951cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 2952 2953cf_save_CFLAGS="$CFLAGS" 2954cf_save_CPPFLAGS="$CPPFLAGS" 2955 2956cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 2957 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 2958 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 2959 2960cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 2961 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 2962 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 2963 2964echo "$as_me:2964: checking if we should define _POSIX_C_SOURCE" >&5 2965echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 2966if test "${cf_cv_posix_c_source+set}" = set; then 2967 echo $ECHO_N "(cached) $ECHO_C" >&6 2968else 2969 2970echo "${as_me:-configure}:2970: testing if the symbol is already defined go no further ..." 1>&5 2971 2972 cat >conftest.$ac_ext <<_ACEOF 2973#line 2973 "configure" 2974#include "confdefs.h" 2975#include <sys/types.h> 2976int 2977main () 2978{ 2979 2980#ifndef _POSIX_C_SOURCE 2981make an error 2982#endif 2983 ; 2984 return 0; 2985} 2986_ACEOF 2987rm -f conftest.$ac_objext 2988if { (eval echo "$as_me:2988: \"$ac_compile\"") >&5 2989 (eval $ac_compile) 2>&5 2990 ac_status=$? 2991 echo "$as_me:2991: \$? = $ac_status" >&5 2992 (exit $ac_status); } && 2993 { ac_try='test -s conftest.$ac_objext' 2994 { (eval echo "$as_me:2994: \"$ac_try\"") >&5 2995 (eval $ac_try) 2>&5 2996 ac_status=$? 2997 echo "$as_me:2997: \$? = $ac_status" >&5 2998 (exit $ac_status); }; }; then 2999 cf_cv_posix_c_source=no 3000else 3001 echo "$as_me: failed program was:" >&5 3002cat conftest.$ac_ext >&5 3003cf_want_posix_source=no 3004 case .$cf_POSIX_C_SOURCE in #(vi 3005 .[12]??*) #(vi 3006 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3007 ;; 3008 .2) #(vi 3009 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3010 cf_want_posix_source=yes 3011 ;; 3012 .*) 3013 cf_want_posix_source=yes 3014 ;; 3015 esac 3016 if test "$cf_want_posix_source" = yes ; then 3017 cat >conftest.$ac_ext <<_ACEOF 3018#line 3018 "configure" 3019#include "confdefs.h" 3020#include <sys/types.h> 3021int 3022main () 3023{ 3024 3025#ifdef _POSIX_SOURCE 3026make an error 3027#endif 3028 ; 3029 return 0; 3030} 3031_ACEOF 3032rm -f conftest.$ac_objext 3033if { (eval echo "$as_me:3033: \"$ac_compile\"") >&5 3034 (eval $ac_compile) 2>&5 3035 ac_status=$? 3036 echo "$as_me:3036: \$? = $ac_status" >&5 3037 (exit $ac_status); } && 3038 { ac_try='test -s conftest.$ac_objext' 3039 { (eval echo "$as_me:3039: \"$ac_try\"") >&5 3040 (eval $ac_try) 2>&5 3041 ac_status=$? 3042 echo "$as_me:3042: \$? = $ac_status" >&5 3043 (exit $ac_status); }; }; then 3044 : 3045else 3046 echo "$as_me: failed program was:" >&5 3047cat conftest.$ac_ext >&5 3048cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 3049fi 3050rm -f conftest.$ac_objext conftest.$ac_ext 3051 fi 3052 3053echo "${as_me:-configure}:3053: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 3054 3055 CFLAGS="$cf_trim_CFLAGS" 3056 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source" 3057 3058echo "${as_me:-configure}:3058: testing if the second compile does not leave our definition intact error ..." 1>&5 3059 3060 cat >conftest.$ac_ext <<_ACEOF 3061#line 3061 "configure" 3062#include "confdefs.h" 3063#include <sys/types.h> 3064int 3065main () 3066{ 3067 3068#ifndef _POSIX_C_SOURCE 3069make an error 3070#endif 3071 ; 3072 return 0; 3073} 3074_ACEOF 3075rm -f conftest.$ac_objext 3076if { (eval echo "$as_me:3076: \"$ac_compile\"") >&5 3077 (eval $ac_compile) 2>&5 3078 ac_status=$? 3079 echo "$as_me:3079: \$? = $ac_status" >&5 3080 (exit $ac_status); } && 3081 { ac_try='test -s conftest.$ac_objext' 3082 { (eval echo "$as_me:3082: \"$ac_try\"") >&5 3083 (eval $ac_try) 2>&5 3084 ac_status=$? 3085 echo "$as_me:3085: \$? = $ac_status" >&5 3086 (exit $ac_status); }; }; then 3087 : 3088else 3089 echo "$as_me: failed program was:" >&5 3090cat conftest.$ac_ext >&5 3091cf_cv_posix_c_source=no 3092fi 3093rm -f conftest.$ac_objext conftest.$ac_ext 3094 CFLAGS="$cf_save_CFLAGS" 3095 CPPFLAGS="$cf_save_CPPFLAGS" 3096 3097fi 3098rm -f conftest.$ac_objext conftest.$ac_ext 3099 3100fi 3101echo "$as_me:3101: result: $cf_cv_posix_c_source" >&5 3102echo "${ECHO_T}$cf_cv_posix_c_source" >&6 3103 3104if test "$cf_cv_posix_c_source" != no ; then 3105 CFLAGS="$cf_trim_CFLAGS" 3106 CPPFLAGS="$cf_trim_CPPFLAGS" 3107 3108cf_fix_cppflags=no 3109cf_new_cflags= 3110cf_new_cppflags= 3111cf_new_extra_cppflags= 3112 3113for cf_add_cflags in $cf_cv_posix_c_source 3114do 3115case $cf_fix_cppflags in 3116no) 3117 case $cf_add_cflags in #(vi 3118 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 3119 case $cf_add_cflags in 3120 -D*) 3121 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3122 3123 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3124 && test -z "${cf_tst_cflags}" \ 3125 && cf_fix_cppflags=yes 3126 3127 if test $cf_fix_cppflags = yes ; then 3128 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3129 continue 3130 elif test "${cf_tst_cflags}" = "\"'" ; then 3131 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3132 continue 3133 fi 3134 ;; 3135 esac 3136 case "$CPPFLAGS" in 3137 *$cf_add_cflags) #(vi 3138 ;; 3139 *) #(vi 3140 case $cf_add_cflags in #(vi 3141 -D*) 3142 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3143 3144CPPFLAGS=`echo "$CPPFLAGS" | \ 3145 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3146 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3147 3148 ;; 3149 esac 3150 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3151 ;; 3152 esac 3153 ;; 3154 *) 3155 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3156 ;; 3157 esac 3158 ;; 3159yes) 3160 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3161 3162 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3163 3164 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3165 && test -z "${cf_tst_cflags}" \ 3166 && cf_fix_cppflags=no 3167 ;; 3168esac 3169done 3170 3171if test -n "$cf_new_cflags" ; then 3172 3173 CFLAGS="$CFLAGS $cf_new_cflags" 3174fi 3175 3176if test -n "$cf_new_cppflags" ; then 3177 3178 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3179fi 3180 3181if test -n "$cf_new_extra_cppflags" ; then 3182 3183 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3184fi 3185 3186fi 3187 3188 ;; 3189esac 3190 3191if test -n "$cf_xopen_source" ; then 3192 3193cf_fix_cppflags=no 3194cf_new_cflags= 3195cf_new_cppflags= 3196cf_new_extra_cppflags= 3197 3198for cf_add_cflags in $cf_xopen_source 3199do 3200case $cf_fix_cppflags in 3201no) 3202 case $cf_add_cflags in #(vi 3203 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 3204 case $cf_add_cflags in 3205 -D*) 3206 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3207 3208 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3209 && test -z "${cf_tst_cflags}" \ 3210 && cf_fix_cppflags=yes 3211 3212 if test $cf_fix_cppflags = yes ; then 3213 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3214 continue 3215 elif test "${cf_tst_cflags}" = "\"'" ; then 3216 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3217 continue 3218 fi 3219 ;; 3220 esac 3221 case "$CPPFLAGS" in 3222 *$cf_add_cflags) #(vi 3223 ;; 3224 *) #(vi 3225 case $cf_add_cflags in #(vi 3226 -D*) 3227 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3228 3229CPPFLAGS=`echo "$CPPFLAGS" | \ 3230 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3231 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3232 3233 ;; 3234 esac 3235 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3236 ;; 3237 esac 3238 ;; 3239 *) 3240 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3241 ;; 3242 esac 3243 ;; 3244yes) 3245 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3246 3247 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3248 3249 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3250 && test -z "${cf_tst_cflags}" \ 3251 && cf_fix_cppflags=no 3252 ;; 3253esac 3254done 3255 3256if test -n "$cf_new_cflags" ; then 3257 3258 CFLAGS="$CFLAGS $cf_new_cflags" 3259fi 3260 3261if test -n "$cf_new_cppflags" ; then 3262 3263 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3264fi 3265 3266if test -n "$cf_new_extra_cppflags" ; then 3267 3268 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3269fi 3270 3271fi 3272 3273if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then 3274 echo "$as_me:3274: checking if _XOPEN_SOURCE really is set" >&5 3275echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6 3276 cat >conftest.$ac_ext <<_ACEOF 3277#line 3277 "configure" 3278#include "confdefs.h" 3279#include <stdlib.h> 3280int 3281main () 3282{ 3283 3284#ifndef _XOPEN_SOURCE 3285make an error 3286#endif 3287 ; 3288 return 0; 3289} 3290_ACEOF 3291rm -f conftest.$ac_objext 3292if { (eval echo "$as_me:3292: \"$ac_compile\"") >&5 3293 (eval $ac_compile) 2>&5 3294 ac_status=$? 3295 echo "$as_me:3295: \$? = $ac_status" >&5 3296 (exit $ac_status); } && 3297 { ac_try='test -s conftest.$ac_objext' 3298 { (eval echo "$as_me:3298: \"$ac_try\"") >&5 3299 (eval $ac_try) 2>&5 3300 ac_status=$? 3301 echo "$as_me:3301: \$? = $ac_status" >&5 3302 (exit $ac_status); }; }; then 3303 cf_XOPEN_SOURCE_set=yes 3304else 3305 echo "$as_me: failed program was:" >&5 3306cat conftest.$ac_ext >&5 3307cf_XOPEN_SOURCE_set=no 3308fi 3309rm -f conftest.$ac_objext conftest.$ac_ext 3310 echo "$as_me:3310: result: $cf_XOPEN_SOURCE_set" >&5 3311echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6 3312 if test $cf_XOPEN_SOURCE_set = yes 3313 then 3314 cat >conftest.$ac_ext <<_ACEOF 3315#line 3315 "configure" 3316#include "confdefs.h" 3317#include <stdlib.h> 3318int 3319main () 3320{ 3321 3322#if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE 3323make an error 3324#endif 3325 ; 3326 return 0; 3327} 3328_ACEOF 3329rm -f conftest.$ac_objext 3330if { (eval echo "$as_me:3330: \"$ac_compile\"") >&5 3331 (eval $ac_compile) 2>&5 3332 ac_status=$? 3333 echo "$as_me:3333: \$? = $ac_status" >&5 3334 (exit $ac_status); } && 3335 { ac_try='test -s conftest.$ac_objext' 3336 { (eval echo "$as_me:3336: \"$ac_try\"") >&5 3337 (eval $ac_try) 2>&5 3338 ac_status=$? 3339 echo "$as_me:3339: \$? = $ac_status" >&5 3340 (exit $ac_status); }; }; then 3341 cf_XOPEN_SOURCE_set_ok=yes 3342else 3343 echo "$as_me: failed program was:" >&5 3344cat conftest.$ac_ext >&5 3345cf_XOPEN_SOURCE_set_ok=no 3346fi 3347rm -f conftest.$ac_objext conftest.$ac_ext 3348 if test $cf_XOPEN_SOURCE_set_ok = no 3349 then 3350 { echo "$as_me:3350: WARNING: _XOPEN_SOURCE is lower than requested" >&5 3351echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;} 3352 fi 3353 else 3354 3355echo "$as_me:3355: checking if we should define _XOPEN_SOURCE" >&5 3356echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 3357if test "${cf_cv_xopen_source+set}" = set; then 3358 echo $ECHO_N "(cached) $ECHO_C" >&6 3359else 3360 3361 cat >conftest.$ac_ext <<_ACEOF 3362#line 3362 "configure" 3363#include "confdefs.h" 3364 3365#include <stdlib.h> 3366#include <string.h> 3367#include <sys/types.h> 3368 3369int 3370main () 3371{ 3372 3373#ifndef _XOPEN_SOURCE 3374make an error 3375#endif 3376 ; 3377 return 0; 3378} 3379_ACEOF 3380rm -f conftest.$ac_objext 3381if { (eval echo "$as_me:3381: \"$ac_compile\"") >&5 3382 (eval $ac_compile) 2>&5 3383 ac_status=$? 3384 echo "$as_me:3384: \$? = $ac_status" >&5 3385 (exit $ac_status); } && 3386 { ac_try='test -s conftest.$ac_objext' 3387 { (eval echo "$as_me:3387: \"$ac_try\"") >&5 3388 (eval $ac_try) 2>&5 3389 ac_status=$? 3390 echo "$as_me:3390: \$? = $ac_status" >&5 3391 (exit $ac_status); }; }; then 3392 cf_cv_xopen_source=no 3393else 3394 echo "$as_me: failed program was:" >&5 3395cat conftest.$ac_ext >&5 3396cf_save="$CPPFLAGS" 3397 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 3398 cat >conftest.$ac_ext <<_ACEOF 3399#line 3399 "configure" 3400#include "confdefs.h" 3401 3402#include <stdlib.h> 3403#include <string.h> 3404#include <sys/types.h> 3405 3406int 3407main () 3408{ 3409 3410#ifdef _XOPEN_SOURCE 3411make an error 3412#endif 3413 ; 3414 return 0; 3415} 3416_ACEOF 3417rm -f conftest.$ac_objext 3418if { (eval echo "$as_me:3418: \"$ac_compile\"") >&5 3419 (eval $ac_compile) 2>&5 3420 ac_status=$? 3421 echo "$as_me:3421: \$? = $ac_status" >&5 3422 (exit $ac_status); } && 3423 { ac_try='test -s conftest.$ac_objext' 3424 { (eval echo "$as_me:3424: \"$ac_try\"") >&5 3425 (eval $ac_try) 2>&5 3426 ac_status=$? 3427 echo "$as_me:3427: \$? = $ac_status" >&5 3428 (exit $ac_status); }; }; then 3429 cf_cv_xopen_source=no 3430else 3431 echo "$as_me: failed program was:" >&5 3432cat conftest.$ac_ext >&5 3433cf_cv_xopen_source=$cf_XOPEN_SOURCE 3434fi 3435rm -f conftest.$ac_objext conftest.$ac_ext 3436 CPPFLAGS="$cf_save" 3437 3438fi 3439rm -f conftest.$ac_objext conftest.$ac_ext 3440 3441fi 3442echo "$as_me:3442: result: $cf_cv_xopen_source" >&5 3443echo "${ECHO_T}$cf_cv_xopen_source" >&6 3444 3445if test "$cf_cv_xopen_source" != no ; then 3446 3447CFLAGS=`echo "$CFLAGS" | \ 3448 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3449 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3450 3451CPPFLAGS=`echo "$CPPFLAGS" | \ 3452 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3453 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3454 3455 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 3456 3457cf_fix_cppflags=no 3458cf_new_cflags= 3459cf_new_cppflags= 3460cf_new_extra_cppflags= 3461 3462for cf_add_cflags in $cf_temp_xopen_source 3463do 3464case $cf_fix_cppflags in 3465no) 3466 case $cf_add_cflags in #(vi 3467 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 3468 case $cf_add_cflags in 3469 -D*) 3470 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3471 3472 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3473 && test -z "${cf_tst_cflags}" \ 3474 && cf_fix_cppflags=yes 3475 3476 if test $cf_fix_cppflags = yes ; then 3477 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3478 continue 3479 elif test "${cf_tst_cflags}" = "\"'" ; then 3480 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3481 continue 3482 fi 3483 ;; 3484 esac 3485 case "$CPPFLAGS" in 3486 *$cf_add_cflags) #(vi 3487 ;; 3488 *) #(vi 3489 case $cf_add_cflags in #(vi 3490 -D*) 3491 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3492 3493CPPFLAGS=`echo "$CPPFLAGS" | \ 3494 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3495 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3496 3497 ;; 3498 esac 3499 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3500 ;; 3501 esac 3502 ;; 3503 *) 3504 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3505 ;; 3506 esac 3507 ;; 3508yes) 3509 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3510 3511 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3512 3513 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3514 && test -z "${cf_tst_cflags}" \ 3515 && cf_fix_cppflags=no 3516 ;; 3517esac 3518done 3519 3520if test -n "$cf_new_cflags" ; then 3521 3522 CFLAGS="$CFLAGS $cf_new_cflags" 3523fi 3524 3525if test -n "$cf_new_cppflags" ; then 3526 3527 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3528fi 3529 3530if test -n "$cf_new_extra_cppflags" ; then 3531 3532 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3533fi 3534 3535fi 3536 3537 fi 3538fi 3539 3540ac_ext=c 3541ac_cpp='$CPP $CPPFLAGS' 3542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3544ac_compiler_gnu=$ac_cv_c_compiler_gnu 3545ac_main_return=return 3546echo "$as_me:3546: checking how to run the C preprocessor" >&5 3547echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3548# On Suns, sometimes $CPP names a directory. 3549if test -n "$CPP" && test -d "$CPP"; then 3550 CPP= 3551fi 3552if test -z "$CPP"; then 3553 if test "${ac_cv_prog_CPP+set}" = set; then 3554 echo $ECHO_N "(cached) $ECHO_C" >&6 3555else 3556 # Double quotes because CPP needs to be expanded 3557 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3558 do 3559 ac_preproc_ok=false 3560for ac_c_preproc_warn_flag in '' yes 3561do 3562 # Use a header file that comes with gcc, so configuring glibc 3563 # with a fresh cross-compiler works. 3564 # On the NeXT, cc -E runs the code through the compiler's parser, 3565 # not just through cpp. "Syntax error" is here to catch this case. 3566 cat >conftest.$ac_ext <<_ACEOF 3567#line 3567 "configure" 3568#include "confdefs.h" 3569#include <assert.h> 3570 Syntax error 3571_ACEOF 3572if { (eval echo "$as_me:3572: \"$ac_cpp conftest.$ac_ext\"") >&5 3573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3574 ac_status=$? 3575 egrep -v '^ *\+' conftest.er1 >conftest.err 3576 rm -f conftest.er1 3577 cat conftest.err >&5 3578 echo "$as_me:3578: \$? = $ac_status" >&5 3579 (exit $ac_status); } >/dev/null; then 3580 if test -s conftest.err; then 3581 ac_cpp_err=$ac_c_preproc_warn_flag 3582 else 3583 ac_cpp_err= 3584 fi 3585else 3586 ac_cpp_err=yes 3587fi 3588if test -z "$ac_cpp_err"; then 3589 : 3590else 3591 echo "$as_me: failed program was:" >&5 3592 cat conftest.$ac_ext >&5 3593 # Broken: fails on valid input. 3594continue 3595fi 3596rm -f conftest.err conftest.$ac_ext 3597 3598 # OK, works on sane cases. Now check whether non-existent headers 3599 # can be detected and how. 3600 cat >conftest.$ac_ext <<_ACEOF 3601#line 3601 "configure" 3602#include "confdefs.h" 3603#include <ac_nonexistent.h> 3604_ACEOF 3605if { (eval echo "$as_me:3605: \"$ac_cpp conftest.$ac_ext\"") >&5 3606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3607 ac_status=$? 3608 egrep -v '^ *\+' conftest.er1 >conftest.err 3609 rm -f conftest.er1 3610 cat conftest.err >&5 3611 echo "$as_me:3611: \$? = $ac_status" >&5 3612 (exit $ac_status); } >/dev/null; then 3613 if test -s conftest.err; then 3614 ac_cpp_err=$ac_c_preproc_warn_flag 3615 else 3616 ac_cpp_err= 3617 fi 3618else 3619 ac_cpp_err=yes 3620fi 3621if test -z "$ac_cpp_err"; then 3622 # Broken: success on invalid input. 3623continue 3624else 3625 echo "$as_me: failed program was:" >&5 3626 cat conftest.$ac_ext >&5 3627 # Passes both tests. 3628ac_preproc_ok=: 3629break 3630fi 3631rm -f conftest.err conftest.$ac_ext 3632 3633done 3634# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3635rm -f conftest.err conftest.$ac_ext 3636if $ac_preproc_ok; then 3637 break 3638fi 3639 3640 done 3641 ac_cv_prog_CPP=$CPP 3642 3643fi 3644 CPP=$ac_cv_prog_CPP 3645else 3646 ac_cv_prog_CPP=$CPP 3647fi 3648echo "$as_me:3648: result: $CPP" >&5 3649echo "${ECHO_T}$CPP" >&6 3650ac_preproc_ok=false 3651for ac_c_preproc_warn_flag in '' yes 3652do 3653 # Use a header file that comes with gcc, so configuring glibc 3654 # with a fresh cross-compiler works. 3655 # On the NeXT, cc -E runs the code through the compiler's parser, 3656 # not just through cpp. "Syntax error" is here to catch this case. 3657 cat >conftest.$ac_ext <<_ACEOF 3658#line 3658 "configure" 3659#include "confdefs.h" 3660#include <assert.h> 3661 Syntax error 3662_ACEOF 3663if { (eval echo "$as_me:3663: \"$ac_cpp conftest.$ac_ext\"") >&5 3664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3665 ac_status=$? 3666 egrep -v '^ *\+' conftest.er1 >conftest.err 3667 rm -f conftest.er1 3668 cat conftest.err >&5 3669 echo "$as_me:3669: \$? = $ac_status" >&5 3670 (exit $ac_status); } >/dev/null; then 3671 if test -s conftest.err; then 3672 ac_cpp_err=$ac_c_preproc_warn_flag 3673 else 3674 ac_cpp_err= 3675 fi 3676else 3677 ac_cpp_err=yes 3678fi 3679if test -z "$ac_cpp_err"; then 3680 : 3681else 3682 echo "$as_me: failed program was:" >&5 3683 cat conftest.$ac_ext >&5 3684 # Broken: fails on valid input. 3685continue 3686fi 3687rm -f conftest.err conftest.$ac_ext 3688 3689 # OK, works on sane cases. Now check whether non-existent headers 3690 # can be detected and how. 3691 cat >conftest.$ac_ext <<_ACEOF 3692#line 3692 "configure" 3693#include "confdefs.h" 3694#include <ac_nonexistent.h> 3695_ACEOF 3696if { (eval echo "$as_me:3696: \"$ac_cpp conftest.$ac_ext\"") >&5 3697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3698 ac_status=$? 3699 egrep -v '^ *\+' conftest.er1 >conftest.err 3700 rm -f conftest.er1 3701 cat conftest.err >&5 3702 echo "$as_me:3702: \$? = $ac_status" >&5 3703 (exit $ac_status); } >/dev/null; then 3704 if test -s conftest.err; then 3705 ac_cpp_err=$ac_c_preproc_warn_flag 3706 else 3707 ac_cpp_err= 3708 fi 3709else 3710 ac_cpp_err=yes 3711fi 3712if test -z "$ac_cpp_err"; then 3713 # Broken: success on invalid input. 3714continue 3715else 3716 echo "$as_me: failed program was:" >&5 3717 cat conftest.$ac_ext >&5 3718 # Passes both tests. 3719ac_preproc_ok=: 3720break 3721fi 3722rm -f conftest.err conftest.$ac_ext 3723 3724done 3725# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3726rm -f conftest.err conftest.$ac_ext 3727if $ac_preproc_ok; then 3728 : 3729else 3730 { { echo "$as_me:3730: error: C preprocessor \"$CPP\" fails sanity check" >&5 3731echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 3732 { (exit 1); exit 1; }; } 3733fi 3734 3735ac_ext=c 3736ac_cpp='$CPP $CPPFLAGS' 3737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3739ac_compiler_gnu=$ac_cv_c_compiler_gnu 3740ac_main_return=return 3741 3742for ac_header in fcntl.h 3743do 3744as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3745echo "$as_me:3745: checking for $ac_header" >&5 3746echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3747if eval "test \"\${$as_ac_Header+set}\" = set"; then 3748 echo $ECHO_N "(cached) $ECHO_C" >&6 3749else 3750 cat >conftest.$ac_ext <<_ACEOF 3751#line 3751 "configure" 3752#include "confdefs.h" 3753#include <$ac_header> 3754_ACEOF 3755if { (eval echo "$as_me:3755: \"$ac_cpp conftest.$ac_ext\"") >&5 3756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3757 ac_status=$? 3758 egrep -v '^ *\+' conftest.er1 >conftest.err 3759 rm -f conftest.er1 3760 cat conftest.err >&5 3761 echo "$as_me:3761: \$? = $ac_status" >&5 3762 (exit $ac_status); } >/dev/null; then 3763 if test -s conftest.err; then 3764 ac_cpp_err=$ac_c_preproc_warn_flag 3765 else 3766 ac_cpp_err= 3767 fi 3768else 3769 ac_cpp_err=yes 3770fi 3771if test -z "$ac_cpp_err"; then 3772 eval "$as_ac_Header=yes" 3773else 3774 echo "$as_me: failed program was:" >&5 3775 cat conftest.$ac_ext >&5 3776 eval "$as_ac_Header=no" 3777fi 3778rm -f conftest.err conftest.$ac_ext 3779fi 3780echo "$as_me:3780: result: `eval echo '${'$as_ac_Header'}'`" >&5 3781echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3782if test `eval echo '${'$as_ac_Header'}'` = yes; then 3783 cat >>confdefs.h <<EOF 3784#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3785EOF 3786 3787fi 3788done 3789 3790echo "$as_me:3790: checking for working mkstemp" >&5 3791echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6 3792if test "${cf_cv_func_mkstemp+set}" = set; then 3793 echo $ECHO_N "(cached) $ECHO_C" >&6 3794else 3795 3796rm -rf conftest* 3797if test "$cross_compiling" = yes; then 3798 cf_cv_func_mkstemp=maybe 3799else 3800 cat >conftest.$ac_ext <<_ACEOF 3801#line 3801 "configure" 3802#include "confdefs.h" 3803 3804#include <sys/types.h> 3805#include <stdlib.h> 3806#include <stdio.h> 3807#include <string.h> 3808#include <sys/stat.h> 3809int main() 3810{ 3811 char *tmpl = "conftestXXXXXX"; 3812 char name[2][80]; 3813 int n; 3814 int result = 0; 3815 int fd; 3816 struct stat sb; 3817 3818 umask(077); 3819 for (n = 0; n < 2; ++n) { 3820 strcpy(name[n], tmpl); 3821 if ((fd = mkstemp(name[n])) >= 0) { 3822 if (!strcmp(name[n], tmpl) 3823 || stat(name[n], &sb) != 0 3824 || (sb.st_mode & S_IFMT) != S_IFREG 3825 || (sb.st_mode & 077) != 0) { 3826 result = 1; 3827 } 3828 close(fd); 3829 } 3830 } 3831 if (result == 0 3832 && !strcmp(name[0], name[1])) 3833 result = 1; 3834 ${cf_cv_main_return:-return}(result); 3835} 3836 3837_ACEOF 3838rm -f conftest$ac_exeext 3839if { (eval echo "$as_me:3839: \"$ac_link\"") >&5 3840 (eval $ac_link) 2>&5 3841 ac_status=$? 3842 echo "$as_me:3842: \$? = $ac_status" >&5 3843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3844 { (eval echo "$as_me:3844: \"$ac_try\"") >&5 3845 (eval $ac_try) 2>&5 3846 ac_status=$? 3847 echo "$as_me:3847: \$? = $ac_status" >&5 3848 (exit $ac_status); }; }; then 3849 cf_cv_func_mkstemp=yes 3850 3851else 3852 echo "$as_me: program exited with status $ac_status" >&5 3853echo "$as_me: failed program was:" >&5 3854cat conftest.$ac_ext >&5 3855cf_cv_func_mkstemp=no 3856 3857fi 3858rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3859fi 3860 3861fi 3862echo "$as_me:3862: result: $cf_cv_func_mkstemp" >&5 3863echo "${ECHO_T}$cf_cv_func_mkstemp" >&6 3864if test "x$cf_cv_func_mkstemp" = xmaybe ; then 3865 echo "$as_me:3865: checking for mkstemp" >&5 3866echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6 3867if test "${ac_cv_func_mkstemp+set}" = set; then 3868 echo $ECHO_N "(cached) $ECHO_C" >&6 3869else 3870 cat >conftest.$ac_ext <<_ACEOF 3871#line 3871 "configure" 3872#include "confdefs.h" 3873/* System header to define __stub macros and hopefully few prototypes, 3874 which can conflict with char mkstemp (); below. */ 3875#include <assert.h> 3876/* Override any gcc2 internal prototype to avoid an error. */ 3877#ifdef __cplusplus 3878extern "C" 3879#endif 3880/* We use char because int might match the return type of a gcc2 3881 builtin and then its argument prototype would still apply. */ 3882char mkstemp (); 3883char (*f) (); 3884 3885int 3886main () 3887{ 3888/* The GNU C library defines this for functions which it implements 3889 to always fail with ENOSYS. Some functions are actually named 3890 something starting with __ and the normal name is an alias. */ 3891#if defined (__stub_mkstemp) || defined (__stub___mkstemp) 3892choke me 3893#else 3894f = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 3895#endif 3896 3897 ; 3898 return 0; 3899} 3900_ACEOF 3901rm -f conftest.$ac_objext conftest$ac_exeext 3902if { (eval echo "$as_me:3902: \"$ac_link\"") >&5 3903 (eval $ac_link) 2>&5 3904 ac_status=$? 3905 echo "$as_me:3905: \$? = $ac_status" >&5 3906 (exit $ac_status); } && 3907 { ac_try='test -s conftest$ac_exeext' 3908 { (eval echo "$as_me:3908: \"$ac_try\"") >&5 3909 (eval $ac_try) 2>&5 3910 ac_status=$? 3911 echo "$as_me:3911: \$? = $ac_status" >&5 3912 (exit $ac_status); }; }; then 3913 ac_cv_func_mkstemp=yes 3914else 3915 echo "$as_me: failed program was:" >&5 3916cat conftest.$ac_ext >&5 3917ac_cv_func_mkstemp=no 3918fi 3919rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3920fi 3921echo "$as_me:3921: result: $ac_cv_func_mkstemp" >&5 3922echo "${ECHO_T}$ac_cv_func_mkstemp" >&6 3923 3924fi 3925if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then 3926 3927cat >>confdefs.h <<\EOF 3928#define HAVE_MKSTEMP 1 3929EOF 3930 3931fi 3932 3933for ac_func in vsnprintf 3934do 3935as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 3936echo "$as_me:3936: checking for $ac_func" >&5 3937echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 3938if eval "test \"\${$as_ac_var+set}\" = set"; then 3939 echo $ECHO_N "(cached) $ECHO_C" >&6 3940else 3941 cat >conftest.$ac_ext <<_ACEOF 3942#line 3942 "configure" 3943#include "confdefs.h" 3944/* System header to define __stub macros and hopefully few prototypes, 3945 which can conflict with char $ac_func (); below. */ 3946#include <assert.h> 3947/* Override any gcc2 internal prototype to avoid an error. */ 3948#ifdef __cplusplus 3949extern "C" 3950#endif 3951/* We use char because int might match the return type of a gcc2 3952 builtin and then its argument prototype would still apply. */ 3953char $ac_func (); 3954char (*f) (); 3955 3956int 3957main () 3958{ 3959/* The GNU C library defines this for functions which it implements 3960 to always fail with ENOSYS. Some functions are actually named 3961 something starting with __ and the normal name is an alias. */ 3962#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3963choke me 3964#else 3965f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 3966#endif 3967 3968 ; 3969 return 0; 3970} 3971_ACEOF 3972rm -f conftest.$ac_objext conftest$ac_exeext 3973if { (eval echo "$as_me:3973: \"$ac_link\"") >&5 3974 (eval $ac_link) 2>&5 3975 ac_status=$? 3976 echo "$as_me:3976: \$? = $ac_status" >&5 3977 (exit $ac_status); } && 3978 { ac_try='test -s conftest$ac_exeext' 3979 { (eval echo "$as_me:3979: \"$ac_try\"") >&5 3980 (eval $ac_try) 2>&5 3981 ac_status=$? 3982 echo "$as_me:3982: \$? = $ac_status" >&5 3983 (exit $ac_status); }; }; then 3984 eval "$as_ac_var=yes" 3985else 3986 echo "$as_me: failed program was:" >&5 3987cat conftest.$ac_ext >&5 3988eval "$as_ac_var=no" 3989fi 3990rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3991fi 3992echo "$as_me:3992: result: `eval echo '${'$as_ac_var'}'`" >&5 3993echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 3994if test `eval echo '${'$as_ac_var'}'` = yes; then 3995 cat >>confdefs.h <<EOF 3996#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 3997EOF 3998 3999fi 4000done 4001 4002echo "$as_me:4002: checking for maximum table size" >&5 4003echo $ECHO_N "checking for maximum table size... $ECHO_C" >&6 4004 4005# Check whether --with-max-table-size or --without-max-table-size was given. 4006if test "${with_max_table_size+set}" = set; then 4007 withval="$with_max_table_size" 4008 4009fi; 4010if test -n "$with_max_table_size" 4011then 4012 echo "$as_me:4012: result: $with_max_table_size" >&5 4013echo "${ECHO_T}$with_max_table_size" >&6 4014 check=`expr "$with_max_table_size" + 0` 4015 if test "x$check" != "x$with_max_table_size" 4016 then 4017 { { echo "$as_me:4017: error: invalid value for --with-max-table-size: $with_max_table_size" >&5 4018echo "$as_me: error: invalid value for --with-max-table-size: $with_max_table_size" >&2;} 4019 { (exit 1); exit 1; }; } 4020 fi 4021 4022cat >>confdefs.h <<EOF 4023#define MAXTABLE $with_max_table_size 4024EOF 4025 4026else 4027 echo "$as_me:4027: result: default" >&5 4028echo "${ECHO_T}default" >&6 4029fi 4030 4031echo "$as_me:4031: checking if backtracking extension is wanted" >&5 4032echo $ECHO_N "checking if backtracking extension is wanted... $ECHO_C" >&6 4033 4034# Check whether --enable-btyacc or --disable-btyacc was given. 4035if test "${enable_btyacc+set}" = set; then 4036 enableval="$enable_btyacc" 4037 4038fi; 4039echo "$as_me:4039: result: $enable_btyacc" >&5 4040echo "${ECHO_T}$enable_btyacc" >&6 4041if test "$enable_btyacc" = "yes"; then 4042 4043cat >>confdefs.h <<\EOF 4044#define YYBTYACC 1 4045EOF 4046 4047 SKELETON=btyaccpar 4048else 4049 SKELETON=yaccpar 4050fi 4051 4052if ( test "$GCC" = yes || test "$GXX" = yes ) 4053then 4054echo "$as_me:4054: checking if you want to check for gcc warnings" >&5 4055echo $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6 4056 4057# Check whether --with-warnings or --without-warnings was given. 4058if test "${with_warnings+set}" = set; then 4059 withval="$with_warnings" 4060 cf_opt_with_warnings=$withval 4061else 4062 cf_opt_with_warnings=no 4063fi; 4064echo "$as_me:4064: result: $cf_opt_with_warnings" >&5 4065echo "${ECHO_T}$cf_opt_with_warnings" >&6 4066if test "$cf_opt_with_warnings" != no ; then 4067 4068if test "$GCC" = yes 4069then 4070cat > conftest.i <<EOF 4071#ifndef GCC_PRINTF 4072#define GCC_PRINTF 0 4073#endif 4074#ifndef GCC_SCANF 4075#define GCC_SCANF 0 4076#endif 4077#ifndef GCC_NORETURN 4078#define GCC_NORETURN /* nothing */ 4079#endif 4080#ifndef GCC_UNUSED 4081#define GCC_UNUSED /* nothing */ 4082#endif 4083EOF 4084if test "$GCC" = yes 4085then 4086 { echo "$as_me:4086: checking for $CC __attribute__ directives..." >&5 4087echo "$as_me: checking for $CC __attribute__ directives..." >&6;} 4088cat > conftest.$ac_ext <<EOF 4089#line 4089 "${as_me:-configure}" 4090#include "confdefs.h" 4091#include "conftest.h" 4092#include "conftest.i" 4093#if GCC_PRINTF 4094#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) 4095#else 4096#define GCC_PRINTFLIKE(fmt,var) /*nothing*/ 4097#endif 4098#if GCC_SCANF 4099#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) 4100#else 4101#define GCC_SCANFLIKE(fmt,var) /*nothing*/ 4102#endif 4103extern void wow(char *,...) GCC_SCANFLIKE(1,2); 4104extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN; 4105extern void foo(void) GCC_NORETURN; 4106int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; } 4107EOF 4108 cf_printf_attribute=no 4109 cf_scanf_attribute=no 4110 for cf_attribute in scanf printf unused noreturn 4111 do 4112 4113cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 4114 4115 cf_directive="__attribute__(($cf_attribute))" 4116 echo "checking for $CC $cf_directive" 1>&5 4117 4118 case $cf_attribute in #(vi 4119 printf) #(vi 4120 cf_printf_attribute=yes 4121 cat >conftest.h <<EOF 4122#define GCC_$cf_ATTRIBUTE 1 4123EOF 4124 ;; 4125 scanf) #(vi 4126 cf_scanf_attribute=yes 4127 cat >conftest.h <<EOF 4128#define GCC_$cf_ATTRIBUTE 1 4129EOF 4130 ;; 4131 *) #(vi 4132 cat >conftest.h <<EOF 4133#define GCC_$cf_ATTRIBUTE $cf_directive 4134EOF 4135 ;; 4136 esac 4137 4138 if { (eval echo "$as_me:4138: \"$ac_compile\"") >&5 4139 (eval $ac_compile) 2>&5 4140 ac_status=$? 4141 echo "$as_me:4141: \$? = $ac_status" >&5 4142 (exit $ac_status); }; then 4143 test -n "$verbose" && echo "$as_me:4143: result: ... $cf_attribute" >&5 4144echo "${ECHO_T}... $cf_attribute" >&6 4145 cat conftest.h >>confdefs.h 4146 case $cf_attribute in #(vi 4147 noreturn) #(vi 4148 4149cat >>confdefs.h <<EOF 4150#define GCC_NORETURN $cf_directive 4151EOF 4152 4153 ;; 4154 printf) #(vi 4155 cf_value='/* nothing */' 4156 if test "$cf_printf_attribute" != no ; then 4157 cf_value='__attribute__((format(printf,fmt,var)))' 4158 4159cat >>confdefs.h <<\EOF 4160#define GCC_PRINTF 1 4161EOF 4162 4163 fi 4164 4165cat >>confdefs.h <<EOF 4166#define GCC_PRINTFLIKE(fmt,var) $cf_value 4167EOF 4168 4169 ;; 4170 scanf) #(vi 4171 cf_value='/* nothing */' 4172 if test "$cf_scanf_attribute" != no ; then 4173 cf_value='__attribute__((format(scanf,fmt,var)))' 4174 4175cat >>confdefs.h <<\EOF 4176#define GCC_SCANF 1 4177EOF 4178 4179 fi 4180 4181cat >>confdefs.h <<EOF 4182#define GCC_SCANFLIKE(fmt,var) $cf_value 4183EOF 4184 4185 ;; 4186 unused) #(vi 4187 4188cat >>confdefs.h <<EOF 4189#define GCC_UNUSED $cf_directive 4190EOF 4191 4192 ;; 4193 esac 4194 fi 4195 done 4196else 4197 fgrep define conftest.i >>confdefs.h 4198fi 4199rm -rf conftest* 4200fi 4201 4202INTEL_COMPILER=no 4203 4204if test "$GCC" = yes ; then 4205 case $host_os in 4206 linux*|gnu*) 4207 echo "$as_me:4207: checking if this is really Intel C compiler" >&5 4208echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6 4209 cf_save_CFLAGS="$CFLAGS" 4210 CFLAGS="$CFLAGS -no-gcc" 4211 cat >conftest.$ac_ext <<_ACEOF 4212#line 4212 "configure" 4213#include "confdefs.h" 4214 4215int 4216main () 4217{ 4218 4219#ifdef __INTEL_COMPILER 4220#else 4221make an error 4222#endif 4223 4224 ; 4225 return 0; 4226} 4227_ACEOF 4228rm -f conftest.$ac_objext 4229if { (eval echo "$as_me:4229: \"$ac_compile\"") >&5 4230 (eval $ac_compile) 2>&5 4231 ac_status=$? 4232 echo "$as_me:4232: \$? = $ac_status" >&5 4233 (exit $ac_status); } && 4234 { ac_try='test -s conftest.$ac_objext' 4235 { (eval echo "$as_me:4235: \"$ac_try\"") >&5 4236 (eval $ac_try) 2>&5 4237 ac_status=$? 4238 echo "$as_me:4238: \$? = $ac_status" >&5 4239 (exit $ac_status); }; }; then 4240 INTEL_COMPILER=yes 4241cf_save_CFLAGS="$cf_save_CFLAGS -we147" 4242 4243else 4244 echo "$as_me: failed program was:" >&5 4245cat conftest.$ac_ext >&5 4246fi 4247rm -f conftest.$ac_objext conftest.$ac_ext 4248 CFLAGS="$cf_save_CFLAGS" 4249 echo "$as_me:4249: result: $INTEL_COMPILER" >&5 4250echo "${ECHO_T}$INTEL_COMPILER" >&6 4251 ;; 4252 esac 4253fi 4254 4255CLANG_COMPILER=no 4256 4257if test "$GCC" = yes ; then 4258 echo "$as_me:4258: checking if this is really Clang C compiler" >&5 4259echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6 4260 cf_save_CFLAGS="$CFLAGS" 4261 CFLAGS="$CFLAGS -Qunused-arguments" 4262 cat >conftest.$ac_ext <<_ACEOF 4263#line 4263 "configure" 4264#include "confdefs.h" 4265 4266int 4267main () 4268{ 4269 4270#ifdef __clang__ 4271#else 4272make an error 4273#endif 4274 4275 ; 4276 return 0; 4277} 4278_ACEOF 4279rm -f conftest.$ac_objext 4280if { (eval echo "$as_me:4280: \"$ac_compile\"") >&5 4281 (eval $ac_compile) 2>&5 4282 ac_status=$? 4283 echo "$as_me:4283: \$? = $ac_status" >&5 4284 (exit $ac_status); } && 4285 { ac_try='test -s conftest.$ac_objext' 4286 { (eval echo "$as_me:4286: \"$ac_try\"") >&5 4287 (eval $ac_try) 2>&5 4288 ac_status=$? 4289 echo "$as_me:4289: \$? = $ac_status" >&5 4290 (exit $ac_status); }; }; then 4291 CLANG_COMPILER=yes 4292cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments" 4293 4294else 4295 echo "$as_me: failed program was:" >&5 4296cat conftest.$ac_ext >&5 4297fi 4298rm -f conftest.$ac_objext conftest.$ac_ext 4299 CFLAGS="$cf_save_CFLAGS" 4300 echo "$as_me:4300: result: $CLANG_COMPILER" >&5 4301echo "${ECHO_T}$CLANG_COMPILER" >&6 4302fi 4303 4304cat > conftest.$ac_ext <<EOF 4305#line 4305 "${as_me:-configure}" 4306int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; } 4307EOF 4308 4309if test "$INTEL_COMPILER" = yes 4310then 4311# The "-wdXXX" options suppress warnings: 4312# remark #1419: external declaration in primary source file 4313# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem) 4314# remark #1684: conversion from pointer to same-sized integral type (potential portability problem) 4315# remark #193: zero used for undefined preprocessing identifier 4316# remark #593: variable "curs_sb_left_arrow" was set but never used 4317# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits 4318# remark #869: parameter "tw" was never referenced 4319# remark #981: operands are evaluated in unspecified order 4320# warning #279: controlling expression is constant 4321 4322 { echo "$as_me:4322: checking for $CC warning options..." >&5 4323echo "$as_me: checking for $CC warning options..." >&6;} 4324 cf_save_CFLAGS="$CFLAGS" 4325 EXTRA_CFLAGS="-Wall" 4326 for cf_opt in \ 4327 wd1419 \ 4328 wd1683 \ 4329 wd1684 \ 4330 wd193 \ 4331 wd593 \ 4332 wd279 \ 4333 wd810 \ 4334 wd869 \ 4335 wd981 4336 do 4337 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 4338 if { (eval echo "$as_me:4338: \"$ac_compile\"") >&5 4339 (eval $ac_compile) 2>&5 4340 ac_status=$? 4341 echo "$as_me:4341: \$? = $ac_status" >&5 4342 (exit $ac_status); }; then 4343 test -n "$verbose" && echo "$as_me:4343: result: ... -$cf_opt" >&5 4344echo "${ECHO_T}... -$cf_opt" >&6 4345 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 4346 fi 4347 done 4348 CFLAGS="$cf_save_CFLAGS" 4349 4350elif test "$GCC" = yes 4351then 4352 { echo "$as_me:4352: checking for $CC warning options..." >&5 4353echo "$as_me: checking for $CC warning options..." >&6;} 4354 cf_save_CFLAGS="$CFLAGS" 4355 EXTRA_CFLAGS= 4356 cf_warn_CONST="" 4357 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings" 4358 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs" 4359 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings= 4360 for cf_opt in W Wall \ 4361 Wbad-function-cast \ 4362 Wcast-align \ 4363 Wcast-qual \ 4364 Wdeclaration-after-statement \ 4365 Wextra \ 4366 Winline \ 4367 Wmissing-declarations \ 4368 Wmissing-prototypes \ 4369 Wnested-externs \ 4370 Wpointer-arith \ 4371 Wshadow \ 4372 Wstrict-prototypes \ 4373 Wundef $cf_gcc_warnings $cf_warn_CONST Wwrite-strings 4374 do 4375 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 4376 if { (eval echo "$as_me:4376: \"$ac_compile\"") >&5 4377 (eval $ac_compile) 2>&5 4378 ac_status=$? 4379 echo "$as_me:4379: \$? = $ac_status" >&5 4380 (exit $ac_status); }; then 4381 test -n "$verbose" && echo "$as_me:4381: result: ... -$cf_opt" >&5 4382echo "${ECHO_T}... -$cf_opt" >&6 4383 case $cf_opt in #(vi 4384 Wcast-qual) #(vi 4385 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES" 4386 ;; 4387 Winline) #(vi 4388 case $GCC_VERSION in 4389 [34].*) 4390 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 4391 4392echo "${as_me:-configure}:4392: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 4393 4394 continue;; 4395 esac 4396 ;; 4397 Wpointer-arith) #(vi 4398 case $GCC_VERSION in 4399 [12].*) 4400 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 4401 4402echo "${as_me:-configure}:4402: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 4403 4404 continue;; 4405 esac 4406 ;; 4407 esac 4408 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 4409 fi 4410 done 4411 CFLAGS="$cf_save_CFLAGS" 4412fi 4413rm -rf conftest* 4414 4415fi 4416fi 4417 4418echo "$as_me:4418: checking if you want to see long compiling messages" >&5 4419echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6 4420 4421# Check whether --enable-echo or --disable-echo was given. 4422if test "${enable_echo+set}" = set; then 4423 enableval="$enable_echo" 4424 test "$enableval" != no && enableval=yes 4425 if test "$enableval" != "yes" ; then 4426 4427 ECHO_LT='--silent' 4428 ECHO_LD='@echo linking $@;' 4429 RULE_CC='@echo compiling $<' 4430 SHOW_CC='@echo compiling $@' 4431 ECHO_CC='@' 4432 4433 else 4434 4435 ECHO_LT='' 4436 ECHO_LD='' 4437 RULE_CC='' 4438 SHOW_CC='' 4439 ECHO_CC='' 4440 4441 fi 4442else 4443 enableval=yes 4444 4445 ECHO_LT='' 4446 ECHO_LD='' 4447 RULE_CC='' 4448 SHOW_CC='' 4449 ECHO_CC='' 4450 4451fi; 4452echo "$as_me:4452: result: $enableval" >&5 4453echo "${ECHO_T}$enableval" >&6 4454 4455echo "$as_me:4455: checking if you want to use dmalloc for testing" >&5 4456echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6 4457 4458# Check whether --with-dmalloc or --without-dmalloc was given. 4459if test "${with_dmalloc+set}" = set; then 4460 withval="$with_dmalloc" 4461 4462cat >>confdefs.h <<EOF 4463#define USE_DMALLOC 1 4464EOF 4465 4466 : ${with_cflags:=-g} 4467 : ${with_no_leaks:=yes} 4468 with_dmalloc=yes 4469else 4470 with_dmalloc= 4471fi; 4472echo "$as_me:4472: result: ${with_dmalloc:-no}" >&5 4473echo "${ECHO_T}${with_dmalloc:-no}" >&6 4474 4475case .$with_cflags in #(vi 4476.*-g*) 4477 case .$CFLAGS in #(vi 4478 .*-g*) #(vi 4479 ;; 4480 *) 4481 4482cf_fix_cppflags=no 4483cf_new_cflags= 4484cf_new_cppflags= 4485cf_new_extra_cppflags= 4486 4487for cf_add_cflags in -g 4488do 4489case $cf_fix_cppflags in 4490no) 4491 case $cf_add_cflags in #(vi 4492 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 4493 case $cf_add_cflags in 4494 -D*) 4495 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4496 4497 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 4498 && test -z "${cf_tst_cflags}" \ 4499 && cf_fix_cppflags=yes 4500 4501 if test $cf_fix_cppflags = yes ; then 4502 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4503 continue 4504 elif test "${cf_tst_cflags}" = "\"'" ; then 4505 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4506 continue 4507 fi 4508 ;; 4509 esac 4510 case "$CPPFLAGS" in 4511 *$cf_add_cflags) #(vi 4512 ;; 4513 *) #(vi 4514 case $cf_add_cflags in #(vi 4515 -D*) 4516 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4517 4518CPPFLAGS=`echo "$CPPFLAGS" | \ 4519 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4520 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4521 4522 ;; 4523 esac 4524 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 4525 ;; 4526 esac 4527 ;; 4528 *) 4529 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 4530 ;; 4531 esac 4532 ;; 4533yes) 4534 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4535 4536 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 4537 4538 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 4539 && test -z "${cf_tst_cflags}" \ 4540 && cf_fix_cppflags=no 4541 ;; 4542esac 4543done 4544 4545if test -n "$cf_new_cflags" ; then 4546 4547 CFLAGS="$CFLAGS $cf_new_cflags" 4548fi 4549 4550if test -n "$cf_new_cppflags" ; then 4551 4552 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 4553fi 4554 4555if test -n "$cf_new_extra_cppflags" ; then 4556 4557 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 4558fi 4559 4560 ;; 4561 esac 4562 ;; 4563esac 4564 4565if test "$with_dmalloc" = yes ; then 4566 echo "$as_me:4566: checking for dmalloc.h" >&5 4567echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6 4568if test "${ac_cv_header_dmalloc_h+set}" = set; then 4569 echo $ECHO_N "(cached) $ECHO_C" >&6 4570else 4571 cat >conftest.$ac_ext <<_ACEOF 4572#line 4572 "configure" 4573#include "confdefs.h" 4574#include <dmalloc.h> 4575_ACEOF 4576if { (eval echo "$as_me:4576: \"$ac_cpp conftest.$ac_ext\"") >&5 4577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4578 ac_status=$? 4579 egrep -v '^ *\+' conftest.er1 >conftest.err 4580 rm -f conftest.er1 4581 cat conftest.err >&5 4582 echo "$as_me:4582: \$? = $ac_status" >&5 4583 (exit $ac_status); } >/dev/null; then 4584 if test -s conftest.err; then 4585 ac_cpp_err=$ac_c_preproc_warn_flag 4586 else 4587 ac_cpp_err= 4588 fi 4589else 4590 ac_cpp_err=yes 4591fi 4592if test -z "$ac_cpp_err"; then 4593 ac_cv_header_dmalloc_h=yes 4594else 4595 echo "$as_me: failed program was:" >&5 4596 cat conftest.$ac_ext >&5 4597 ac_cv_header_dmalloc_h=no 4598fi 4599rm -f conftest.err conftest.$ac_ext 4600fi 4601echo "$as_me:4601: result: $ac_cv_header_dmalloc_h" >&5 4602echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6 4603if test $ac_cv_header_dmalloc_h = yes; then 4604 4605echo "$as_me:4605: checking for dmalloc_debug in -ldmalloc" >&5 4606echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6 4607if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then 4608 echo $ECHO_N "(cached) $ECHO_C" >&6 4609else 4610 ac_check_lib_save_LIBS=$LIBS 4611LIBS="-ldmalloc $LIBS" 4612cat >conftest.$ac_ext <<_ACEOF 4613#line 4613 "configure" 4614#include "confdefs.h" 4615 4616/* Override any gcc2 internal prototype to avoid an error. */ 4617#ifdef __cplusplus 4618extern "C" 4619#endif 4620/* We use char because int might match the return type of a gcc2 4621 builtin and then its argument prototype would still apply. */ 4622char dmalloc_debug (); 4623int 4624main () 4625{ 4626dmalloc_debug (); 4627 ; 4628 return 0; 4629} 4630_ACEOF 4631rm -f conftest.$ac_objext conftest$ac_exeext 4632if { (eval echo "$as_me:4632: \"$ac_link\"") >&5 4633 (eval $ac_link) 2>&5 4634 ac_status=$? 4635 echo "$as_me:4635: \$? = $ac_status" >&5 4636 (exit $ac_status); } && 4637 { ac_try='test -s conftest$ac_exeext' 4638 { (eval echo "$as_me:4638: \"$ac_try\"") >&5 4639 (eval $ac_try) 2>&5 4640 ac_status=$? 4641 echo "$as_me:4641: \$? = $ac_status" >&5 4642 (exit $ac_status); }; }; then 4643 ac_cv_lib_dmalloc_dmalloc_debug=yes 4644else 4645 echo "$as_me: failed program was:" >&5 4646cat conftest.$ac_ext >&5 4647ac_cv_lib_dmalloc_dmalloc_debug=no 4648fi 4649rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4650LIBS=$ac_check_lib_save_LIBS 4651fi 4652echo "$as_me:4652: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5 4653echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6 4654if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then 4655 cat >>confdefs.h <<EOF 4656#define HAVE_LIBDMALLOC 1 4657EOF 4658 4659 LIBS="-ldmalloc $LIBS" 4660 4661fi 4662 4663fi 4664 4665fi 4666 4667echo "$as_me:4667: checking if you want to use dbmalloc for testing" >&5 4668echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6 4669 4670# Check whether --with-dbmalloc or --without-dbmalloc was given. 4671if test "${with_dbmalloc+set}" = set; then 4672 withval="$with_dbmalloc" 4673 4674cat >>confdefs.h <<EOF 4675#define USE_DBMALLOC 1 4676EOF 4677 4678 : ${with_cflags:=-g} 4679 : ${with_no_leaks:=yes} 4680 with_dbmalloc=yes 4681else 4682 with_dbmalloc= 4683fi; 4684echo "$as_me:4684: result: ${with_dbmalloc:-no}" >&5 4685echo "${ECHO_T}${with_dbmalloc:-no}" >&6 4686 4687case .$with_cflags in #(vi 4688.*-g*) 4689 case .$CFLAGS in #(vi 4690 .*-g*) #(vi 4691 ;; 4692 *) 4693 4694cf_fix_cppflags=no 4695cf_new_cflags= 4696cf_new_cppflags= 4697cf_new_extra_cppflags= 4698 4699for cf_add_cflags in -g 4700do 4701case $cf_fix_cppflags in 4702no) 4703 case $cf_add_cflags in #(vi 4704 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 4705 case $cf_add_cflags in 4706 -D*) 4707 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4708 4709 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 4710 && test -z "${cf_tst_cflags}" \ 4711 && cf_fix_cppflags=yes 4712 4713 if test $cf_fix_cppflags = yes ; then 4714 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4715 continue 4716 elif test "${cf_tst_cflags}" = "\"'" ; then 4717 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4718 continue 4719 fi 4720 ;; 4721 esac 4722 case "$CPPFLAGS" in 4723 *$cf_add_cflags) #(vi 4724 ;; 4725 *) #(vi 4726 case $cf_add_cflags in #(vi 4727 -D*) 4728 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4729 4730CPPFLAGS=`echo "$CPPFLAGS" | \ 4731 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4732 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4733 4734 ;; 4735 esac 4736 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 4737 ;; 4738 esac 4739 ;; 4740 *) 4741 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 4742 ;; 4743 esac 4744 ;; 4745yes) 4746 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4747 4748 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 4749 4750 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 4751 && test -z "${cf_tst_cflags}" \ 4752 && cf_fix_cppflags=no 4753 ;; 4754esac 4755done 4756 4757if test -n "$cf_new_cflags" ; then 4758 4759 CFLAGS="$CFLAGS $cf_new_cflags" 4760fi 4761 4762if test -n "$cf_new_cppflags" ; then 4763 4764 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 4765fi 4766 4767if test -n "$cf_new_extra_cppflags" ; then 4768 4769 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 4770fi 4771 4772 ;; 4773 esac 4774 ;; 4775esac 4776 4777if test "$with_dbmalloc" = yes ; then 4778 echo "$as_me:4778: checking for dbmalloc.h" >&5 4779echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6 4780if test "${ac_cv_header_dbmalloc_h+set}" = set; then 4781 echo $ECHO_N "(cached) $ECHO_C" >&6 4782else 4783 cat >conftest.$ac_ext <<_ACEOF 4784#line 4784 "configure" 4785#include "confdefs.h" 4786#include <dbmalloc.h> 4787_ACEOF 4788if { (eval echo "$as_me:4788: \"$ac_cpp conftest.$ac_ext\"") >&5 4789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4790 ac_status=$? 4791 egrep -v '^ *\+' conftest.er1 >conftest.err 4792 rm -f conftest.er1 4793 cat conftest.err >&5 4794 echo "$as_me:4794: \$? = $ac_status" >&5 4795 (exit $ac_status); } >/dev/null; then 4796 if test -s conftest.err; then 4797 ac_cpp_err=$ac_c_preproc_warn_flag 4798 else 4799 ac_cpp_err= 4800 fi 4801else 4802 ac_cpp_err=yes 4803fi 4804if test -z "$ac_cpp_err"; then 4805 ac_cv_header_dbmalloc_h=yes 4806else 4807 echo "$as_me: failed program was:" >&5 4808 cat conftest.$ac_ext >&5 4809 ac_cv_header_dbmalloc_h=no 4810fi 4811rm -f conftest.err conftest.$ac_ext 4812fi 4813echo "$as_me:4813: result: $ac_cv_header_dbmalloc_h" >&5 4814echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6 4815if test $ac_cv_header_dbmalloc_h = yes; then 4816 4817echo "$as_me:4817: checking for debug_malloc in -ldbmalloc" >&5 4818echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6 4819if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then 4820 echo $ECHO_N "(cached) $ECHO_C" >&6 4821else 4822 ac_check_lib_save_LIBS=$LIBS 4823LIBS="-ldbmalloc $LIBS" 4824cat >conftest.$ac_ext <<_ACEOF 4825#line 4825 "configure" 4826#include "confdefs.h" 4827 4828/* Override any gcc2 internal prototype to avoid an error. */ 4829#ifdef __cplusplus 4830extern "C" 4831#endif 4832/* We use char because int might match the return type of a gcc2 4833 builtin and then its argument prototype would still apply. */ 4834char debug_malloc (); 4835int 4836main () 4837{ 4838debug_malloc (); 4839 ; 4840 return 0; 4841} 4842_ACEOF 4843rm -f conftest.$ac_objext conftest$ac_exeext 4844if { (eval echo "$as_me:4844: \"$ac_link\"") >&5 4845 (eval $ac_link) 2>&5 4846 ac_status=$? 4847 echo "$as_me:4847: \$? = $ac_status" >&5 4848 (exit $ac_status); } && 4849 { ac_try='test -s conftest$ac_exeext' 4850 { (eval echo "$as_me:4850: \"$ac_try\"") >&5 4851 (eval $ac_try) 2>&5 4852 ac_status=$? 4853 echo "$as_me:4853: \$? = $ac_status" >&5 4854 (exit $ac_status); }; }; then 4855 ac_cv_lib_dbmalloc_debug_malloc=yes 4856else 4857 echo "$as_me: failed program was:" >&5 4858cat conftest.$ac_ext >&5 4859ac_cv_lib_dbmalloc_debug_malloc=no 4860fi 4861rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4862LIBS=$ac_check_lib_save_LIBS 4863fi 4864echo "$as_me:4864: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5 4865echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6 4866if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then 4867 cat >>confdefs.h <<EOF 4868#define HAVE_LIBDBMALLOC 1 4869EOF 4870 4871 LIBS="-ldbmalloc $LIBS" 4872 4873fi 4874 4875fi 4876 4877fi 4878 4879echo "$as_me:4879: checking if you want to use valgrind for testing" >&5 4880echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6 4881 4882# Check whether --with-valgrind or --without-valgrind was given. 4883if test "${with_valgrind+set}" = set; then 4884 withval="$with_valgrind" 4885 4886cat >>confdefs.h <<EOF 4887#define USE_VALGRIND 1 4888EOF 4889 4890 : ${with_cflags:=-g} 4891 : ${with_no_leaks:=yes} 4892 with_valgrind=yes 4893else 4894 with_valgrind= 4895fi; 4896echo "$as_me:4896: result: ${with_valgrind:-no}" >&5 4897echo "${ECHO_T}${with_valgrind:-no}" >&6 4898 4899case .$with_cflags in #(vi 4900.*-g*) 4901 case .$CFLAGS in #(vi 4902 .*-g*) #(vi 4903 ;; 4904 *) 4905 4906cf_fix_cppflags=no 4907cf_new_cflags= 4908cf_new_cppflags= 4909cf_new_extra_cppflags= 4910 4911for cf_add_cflags in -g 4912do 4913case $cf_fix_cppflags in 4914no) 4915 case $cf_add_cflags in #(vi 4916 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 4917 case $cf_add_cflags in 4918 -D*) 4919 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4920 4921 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 4922 && test -z "${cf_tst_cflags}" \ 4923 && cf_fix_cppflags=yes 4924 4925 if test $cf_fix_cppflags = yes ; then 4926 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4927 continue 4928 elif test "${cf_tst_cflags}" = "\"'" ; then 4929 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4930 continue 4931 fi 4932 ;; 4933 esac 4934 case "$CPPFLAGS" in 4935 *$cf_add_cflags) #(vi 4936 ;; 4937 *) #(vi 4938 case $cf_add_cflags in #(vi 4939 -D*) 4940 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4941 4942CPPFLAGS=`echo "$CPPFLAGS" | \ 4943 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4944 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4945 4946 ;; 4947 esac 4948 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 4949 ;; 4950 esac 4951 ;; 4952 *) 4953 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 4954 ;; 4955 esac 4956 ;; 4957yes) 4958 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4959 4960 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 4961 4962 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 4963 && test -z "${cf_tst_cflags}" \ 4964 && cf_fix_cppflags=no 4965 ;; 4966esac 4967done 4968 4969if test -n "$cf_new_cflags" ; then 4970 4971 CFLAGS="$CFLAGS $cf_new_cflags" 4972fi 4973 4974if test -n "$cf_new_cppflags" ; then 4975 4976 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 4977fi 4978 4979if test -n "$cf_new_extra_cppflags" ; then 4980 4981 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 4982fi 4983 4984 ;; 4985 esac 4986 ;; 4987esac 4988 4989echo "$as_me:4989: checking if you want to perform memory-leak testing" >&5 4990echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6 4991 4992# Check whether --enable-leaks or --disable-leaks was given. 4993if test "${enable_leaks+set}" = set; then 4994 enableval="$enable_leaks" 4995 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi 4996else 4997 : ${with_no_leaks:=no} 4998fi; 4999echo "$as_me:4999: result: $with_no_leaks" >&5 5000echo "${ECHO_T}$with_no_leaks" >&6 5001 5002if test "$with_no_leaks" = yes ; then 5003 5004cat >>confdefs.h <<\EOF 5005#define NO_LEAKS 1 5006EOF 5007 5008cat >>confdefs.h <<\EOF 5009#define YY_NO_LEAKS 1 5010EOF 5011 5012fi 5013 5014### output makefile 5015ac_config_files="$ac_config_files makefile" 5016cat >confcache <<\_ACEOF 5017# This file is a shell script that caches the results of configure 5018# tests run on this system so they can be shared between configure 5019# scripts and configure runs, see configure's option --config-cache. 5020# It is not useful on other systems. If it contains results you don't 5021# want to keep, you may remove or edit it. 5022# 5023# config.status only pays attention to the cache file if you give it 5024# the --recheck option to rerun configure. 5025# 5026# `ac_cv_env_foo' variables (set or unset) will be overriden when 5027# loading this file, other *unset* `ac_cv_foo' will be assigned the 5028# following values. 5029 5030_ACEOF 5031 5032# The following way of writing the cache mishandles newlines in values, 5033# but we know of no workaround that is simple, portable, and efficient. 5034# So, don't put newlines in cache variables' values. 5035# Ultrix sh set writes to stderr and can't be redirected directly, 5036# and sets the high bit in the cache file unless we assign to the vars. 5037{ 5038 (set) 2>&1 | 5039 case `(ac_space=' '; set | grep ac_space) 2>&1` in 5040 *ac_space=\ *) 5041 # `set' does not quote correctly, so add quotes (double-quote 5042 # substitution turns \\\\ into \\, and sed turns \\ into \). 5043 sed -n \ 5044 "s/'/'\\\\''/g; 5045 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5046 ;; 5047 *) 5048 # `set' quotes correctly as required by POSIX, so do not add quotes. 5049 sed -n \ 5050 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 5051 ;; 5052 esac; 5053} | 5054 sed ' 5055 t clear 5056 : clear 5057 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5058 t end 5059 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5060 : end' >>confcache 5061if cmp -s $cache_file confcache; then :; else 5062 if test -w $cache_file; then 5063 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 5064 cat confcache >$cache_file 5065 else 5066 echo "not updating unwritable cache $cache_file" 5067 fi 5068fi 5069rm -f confcache 5070 5071test "x$prefix" = xNONE && prefix=$ac_default_prefix 5072# Let make expand exec_prefix. 5073test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5074 5075# VPATH may cause trouble with some makes, so we remove $(srcdir), 5076# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 5077# trailing colons and then remove the whole line if VPATH becomes empty 5078# (actually we leave an empty line to preserve line numbers). 5079if test "x$srcdir" = x.; then 5080 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 5081s/:*\$(srcdir):*/:/; 5082s/:*\${srcdir}:*/:/; 5083s/:*@srcdir@:*/:/; 5084s/^\([^=]*=[ ]*\):*/\1/; 5085s/:*$//; 5086s/^[^=]*=[ ]*$//; 5087}' 5088fi 5089 5090DEFS=-DHAVE_CONFIG_H 5091 5092: ${CONFIG_STATUS=./config.status} 5093ac_clean_files_save=$ac_clean_files 5094ac_clean_files="$ac_clean_files $CONFIG_STATUS" 5095{ echo "$as_me:5095: creating $CONFIG_STATUS" >&5 5096echo "$as_me: creating $CONFIG_STATUS" >&6;} 5097cat >$CONFIG_STATUS <<_ACEOF 5098#! $SHELL 5099# Generated automatically by configure. 5100# Run this file to recreate the current configuration. 5101# Compiler output produced by configure, useful for debugging 5102# configure, is in config.log if it exists. 5103 5104debug=false 5105SHELL=\${CONFIG_SHELL-$SHELL} 5106ac_cs_invocation="\$0 \$@" 5107 5108_ACEOF 5109 5110cat >>$CONFIG_STATUS <<\_ACEOF 5111# Be Bourne compatible 5112if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 5113 emulate sh 5114 NULLCMD=: 5115elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 5116 set -o posix 5117fi 5118 5119# Name of the executable. 5120as_me=`echo "$0" |sed 's,.*[\\/],,'` 5121 5122if expr a : '\(a\)' >/dev/null 2>&1; then 5123 as_expr=expr 5124else 5125 as_expr=false 5126fi 5127 5128rm -f conf$$ conf$$.exe conf$$.file 5129echo >conf$$.file 5130if ln -s conf$$.file conf$$ 2>/dev/null; then 5131 # We could just check for DJGPP; but this test a) works b) is more generic 5132 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 5133 if test -f conf$$.exe; then 5134 # Don't use ln at all; we don't have any links 5135 as_ln_s='cp -p' 5136 else 5137 as_ln_s='ln -s' 5138 fi 5139elif ln conf$$.file conf$$ 2>/dev/null; then 5140 as_ln_s=ln 5141else 5142 as_ln_s='cp -p' 5143fi 5144rm -f conf$$ conf$$.exe conf$$.file 5145 5146as_executable_p="test -f" 5147 5148# Support unset when possible. 5149if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 5150 as_unset=unset 5151else 5152 as_unset=false 5153fi 5154 5155# NLS nuisances. 5156$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 5157$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 5158$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 5159$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 5160$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 5161$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 5162$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 5163$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 5164 5165# IFS 5166# We need space, tab and new line, in precisely that order. 5167as_nl=' 5168' 5169IFS=" $as_nl" 5170 5171# CDPATH. 5172$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 5173 5174exec 6>&1 5175 5176_ACEOF 5177 5178# Files that config.status was made for. 5179if test -n "$ac_config_files"; then 5180 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 5181fi 5182 5183if test -n "$ac_config_headers"; then 5184 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 5185fi 5186 5187if test -n "$ac_config_links"; then 5188 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 5189fi 5190 5191if test -n "$ac_config_commands"; then 5192 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 5193fi 5194 5195cat >>$CONFIG_STATUS <<\EOF 5196 5197ac_cs_usage="\ 5198\`$as_me' instantiates files from templates according to the 5199current configuration. 5200 5201Usage: $0 [OPTIONS] [FILE]... 5202 5203 -h, --help print this help, then exit 5204 -V, --version print version number, then exit 5205 -d, --debug don't remove temporary files 5206 --recheck update $as_me by reconfiguring in the same conditions 5207 --file=FILE[:TEMPLATE] 5208 instantiate the configuration file FILE 5209 --header=FILE[:TEMPLATE] 5210 instantiate the configuration header FILE 5211 5212Configuration files: 5213$config_files 5214 5215Configuration headers: 5216$config_headers 5217 5218Report bugs to <dickey@invisible-island.net>." 5219EOF 5220 5221cat >>$CONFIG_STATUS <<EOF 5222ac_cs_version="\\ 5223config.status 5224configured by $0, generated by GNU Autoconf 2.52.20121002, 5225 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 5226 5227Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 5228Free Software Foundation, Inc. 5229This config.status script is free software; the Free Software Foundation 5230gives unlimited permission to copy, distribute and modify it." 5231srcdir=$srcdir 5232INSTALL="$INSTALL" 5233EOF 5234 5235cat >>$CONFIG_STATUS <<\EOF 5236# If no file are specified by the user, then we need to provide default 5237# value. By we need to know if files were specified by the user. 5238ac_need_defaults=: 5239while test $# != 0 5240do 5241 case $1 in 5242 --*=*) 5243 ac_option=`expr "x$1" : 'x\([^=]*\)='` 5244 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 5245 shift 5246 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 5247 shift 5248 ;; 5249 -*);; 5250 *) # This is not an option, so the user has probably given explicit 5251 # arguments. 5252 ac_need_defaults=false;; 5253 esac 5254 5255 case $1 in 5256 # Handling of the options. 5257EOF 5258cat >>$CONFIG_STATUS <<EOF 5259 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5260 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 5261 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 5262EOF 5263cat >>$CONFIG_STATUS <<\EOF 5264 --version | --vers* | -V ) 5265 echo "$ac_cs_version"; exit 0 ;; 5266 --he | --h) 5267 # Conflict between --help and --header 5268 { { echo "$as_me:5268: error: ambiguous option: $1 5269Try \`$0 --help' for more information." >&5 5270echo "$as_me: error: ambiguous option: $1 5271Try \`$0 --help' for more information." >&2;} 5272 { (exit 1); exit 1; }; };; 5273 --help | --hel | -h ) 5274 echo "$ac_cs_usage"; exit 0 ;; 5275 --debug | --d* | -d ) 5276 debug=: ;; 5277 --file | --fil | --fi | --f ) 5278 shift 5279 CONFIG_FILES="$CONFIG_FILES $1" 5280 ac_need_defaults=false;; 5281 --header | --heade | --head | --hea ) 5282 shift 5283 CONFIG_HEADERS="$CONFIG_HEADERS $1" 5284 ac_need_defaults=false;; 5285 5286 # This is an error. 5287 -*) { { echo "$as_me:5287: error: unrecognized option: $1 5288Try \`$0 --help' for more information." >&5 5289echo "$as_me: error: unrecognized option: $1 5290Try \`$0 --help' for more information." >&2;} 5291 { (exit 1); exit 1; }; } ;; 5292 5293 *) ac_config_targets="$ac_config_targets $1" ;; 5294 5295 esac 5296 shift 5297done 5298 5299exec 5>>config.log 5300cat >&5 << _ACEOF 5301 5302## ----------------------- ## 5303## Running config.status. ## 5304## ----------------------- ## 5305 5306This file was extended by $as_me 2.52.20121002, executed with 5307 CONFIG_FILES = $CONFIG_FILES 5308 CONFIG_HEADERS = $CONFIG_HEADERS 5309 CONFIG_LINKS = $CONFIG_LINKS 5310 CONFIG_COMMANDS = $CONFIG_COMMANDS 5311 > $ac_cs_invocation 5312on `(hostname || uname -n) 2>/dev/null | sed 1q` 5313 5314_ACEOF 5315EOF 5316 5317cat >>$CONFIG_STATUS <<\EOF 5318for ac_config_target in $ac_config_targets 5319do 5320 case "$ac_config_target" in 5321 # Handling of arguments. 5322 "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;; 5323 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;; 5324 *) { { echo "$as_me:5324: error: invalid argument: $ac_config_target" >&5 5325echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 5326 { (exit 1); exit 1; }; };; 5327 esac 5328done 5329 5330# If the user did not use the arguments to specify the items to instantiate, 5331# then the envvar interface is used. Set only those that are not. 5332# We use the long form for the default assignment because of an extremely 5333# bizarre bug on SunOS 4.1.3. 5334if $ac_need_defaults; then 5335 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 5336 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 5337fi 5338 5339# Create a temporary directory, and hook for its removal unless debugging. 5340$debug || 5341{ 5342 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 5343 trap '{ (exit 1); exit 1; }' 1 2 13 15 5344} 5345 5346# Create a (secure) tmp directory for tmp files. 5347: ${TMPDIR=/tmp} 5348{ 5349 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 5350 test -n "$tmp" && test -d "$tmp" 5351} || 5352{ 5353 tmp=$TMPDIR/cs$$-$RANDOM 5354 (umask 077 && mkdir $tmp) 5355} || 5356{ 5357 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 5358 { (exit 1); exit 1; } 5359} 5360 5361EOF 5362 5363cat >>$CONFIG_STATUS <<EOF 5364 5365# 5366# CONFIG_FILES section. 5367# 5368 5369# No need to generate the scripts if there are no CONFIG_FILES. 5370# This happens for instance when ./config.status config.h 5371if test -n "\$CONFIG_FILES"; then 5372 # Protect against being on the right side of a sed subst in config.status. 5373 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 5374 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 5375s,@SHELL@,$SHELL,;t t 5376s,@exec_prefix@,$exec_prefix,;t t 5377s,@prefix@,$prefix,;t t 5378s,@program_transform_name@,$program_transform_name,;t t 5379s,@bindir@,$bindir,;t t 5380s,@sbindir@,$sbindir,;t t 5381s,@libexecdir@,$libexecdir,;t t 5382s,@datarootdir@,$datarootdir,;t t 5383s,@datadir@,$datadir,;t t 5384s,@sysconfdir@,$sysconfdir,;t t 5385s,@sharedstatedir@,$sharedstatedir,;t t 5386s,@localstatedir@,$localstatedir,;t t 5387s,@libdir@,$libdir,;t t 5388s,@includedir@,$includedir,;t t 5389s,@oldincludedir@,$oldincludedir,;t t 5390s,@infodir@,$infodir,;t t 5391s,@mandir@,$mandir,;t t 5392s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 5393s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 5394s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 5395s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 5396s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 5397s,@build_alias@,$build_alias,;t t 5398s,@host_alias@,$host_alias,;t t 5399s,@target_alias@,$target_alias,;t t 5400s,@ECHO_C@,$ECHO_C,;t t 5401s,@ECHO_N@,$ECHO_N,;t t 5402s,@ECHO_T@,$ECHO_T,;t t 5403s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 5404s,@DEFS@,$DEFS,;t t 5405s,@LIBS@,$LIBS,;t t 5406s,@build@,$build,;t t 5407s,@build_cpu@,$build_cpu,;t t 5408s,@build_vendor@,$build_vendor,;t t 5409s,@build_os@,$build_os,;t t 5410s,@host@,$host,;t t 5411s,@host_cpu@,$host_cpu,;t t 5412s,@host_vendor@,$host_vendor,;t t 5413s,@host_os@,$host_os,;t t 5414s,@target@,$target,;t t 5415s,@target_cpu@,$target_cpu,;t t 5416s,@target_vendor@,$target_vendor,;t t 5417s,@target_os@,$target_os,;t t 5418s,@CC@,$CC,;t t 5419s,@CFLAGS@,$CFLAGS,;t t 5420s,@LDFLAGS@,$LDFLAGS,;t t 5421s,@CPPFLAGS@,$CPPFLAGS,;t t 5422s,@ac_ct_CC@,$ac_ct_CC,;t t 5423s,@EXEEXT@,$EXEEXT,;t t 5424s,@OBJEXT@,$OBJEXT,;t t 5425s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t 5426s,@SET_MAKE@,$SET_MAKE,;t t 5427s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 5428s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 5429s,@INSTALL_DATA@,$INSTALL_DATA,;t t 5430s,@CTAGS@,$CTAGS,;t t 5431s,@ETAGS@,$ETAGS,;t t 5432s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t 5433s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t 5434s,@AWK@,$AWK,;t t 5435s,@LINT@,$LINT,;t t 5436s,@LINT_OPTS@,$LINT_OPTS,;t t 5437s,@CPP@,$CPP,;t t 5438s,@SKELETON@,$SKELETON,;t t 5439s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t 5440s,@ECHO_LT@,$ECHO_LT,;t t 5441s,@ECHO_LD@,$ECHO_LD,;t t 5442s,@RULE_CC@,$RULE_CC,;t t 5443s,@SHOW_CC@,$SHOW_CC,;t t 5444s,@ECHO_CC@,$ECHO_CC,;t t 5445CEOF 5446 5447EOF 5448 5449 cat >>$CONFIG_STATUS <<\EOF 5450 # Split the substitutions into bite-sized pieces for seds with 5451 # small command number limits, like on Digital OSF/1 and HP-UX. 5452 ac_max_sed_lines=48 5453 ac_sed_frag=1 # Number of current file. 5454 ac_beg=1 # First line for current file. 5455 ac_end=$ac_max_sed_lines # Line after last line for current file. 5456 ac_more_lines=: 5457 ac_sed_cmds= 5458 while $ac_more_lines; do 5459 if test $ac_beg -gt 1; then 5460 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5461 else 5462 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5463 fi 5464 if test ! -s $tmp/subs.frag; then 5465 ac_more_lines=false 5466 else 5467 # The purpose of the label and of the branching condition is to 5468 # speed up the sed processing (if there are no `@' at all, there 5469 # is no need to browse any of the substitutions). 5470 # These are the two extra sed commands mentioned above. 5471 (echo ':t 5472 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 5473 if test -z "$ac_sed_cmds"; then 5474 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 5475 else 5476 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 5477 fi 5478 ac_sed_frag=`expr $ac_sed_frag + 1` 5479 ac_beg=$ac_end 5480 ac_end=`expr $ac_end + $ac_max_sed_lines` 5481 fi 5482 done 5483 if test -z "$ac_sed_cmds"; then 5484 ac_sed_cmds=cat 5485 fi 5486fi # test -n "$CONFIG_FILES" 5487 5488EOF 5489cat >>$CONFIG_STATUS <<\EOF 5490for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 5491 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5492 case $ac_file in 5493 - | *:- | *:-:* ) # input from stdin 5494 cat >$tmp/stdin 5495 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5496 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5497 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5498 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5499 * ) ac_file_in=$ac_file.in ;; 5500 esac 5501 5502 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 5503 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5504 X"$ac_file" : 'X\(//\)[^/]' \| \ 5505 X"$ac_file" : 'X\(//\)$' \| \ 5506 X"$ac_file" : 'X\(/\)' \| \ 5507 . : '\(.\)' 2>/dev/null || 5508echo X"$ac_file" | 5509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5510 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5511 /^X\(\/\/\)$/{ s//\1/; q; } 5512 /^X\(\/\).*/{ s//\1/; q; } 5513 s/.*/./; q'` 5514 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 5515 { case "$ac_dir" in 5516 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 5517 *) as_incr_dir=.;; 5518esac 5519as_dummy="$ac_dir" 5520for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 5521 case $as_mkdir_dir in 5522 # Skip DOS drivespec 5523 ?:) as_incr_dir=$as_mkdir_dir ;; 5524 *) 5525 as_incr_dir=$as_incr_dir/$as_mkdir_dir 5526 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 5527 ;; 5528 esac 5529done; } 5530 5531 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 5532 # A "../" for each directory in $ac_dir_suffix. 5533 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 5534 else 5535 ac_dir_suffix= ac_dots= 5536 fi 5537 5538 case $srcdir in 5539 .) ac_srcdir=. 5540 if test -z "$ac_dots"; then 5541 ac_top_srcdir=. 5542 else 5543 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` 5544 fi ;; 5545 [\\/]* | ?:[\\/]* ) 5546 ac_srcdir=$srcdir$ac_dir_suffix; 5547 ac_top_srcdir=$srcdir ;; 5548 *) # Relative path. 5549 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix 5550 ac_top_srcdir=$ac_dots$srcdir ;; 5551 esac 5552 5553 case $INSTALL in 5554 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 5555 *) ac_INSTALL=$ac_dots$INSTALL ;; 5556 esac 5557 5558 if test x"$ac_file" != x-; then 5559 { echo "$as_me:5559: creating $ac_file" >&5 5560echo "$as_me: creating $ac_file" >&6;} 5561 rm -f "$ac_file" 5562 fi 5563 # Let's still pretend it is `configure' which instantiates (i.e., don't 5564 # use $as_me), people would be surprised to read: 5565 # /* config.h. Generated automatically by config.status. */ 5566 configure_input="Generated automatically from `echo $ac_file_in | 5567 sed 's,.*/,,'` by configure." 5568 5569 # First look for the input files in the build tree, otherwise in the 5570 # src tree. 5571 ac_file_inputs=`IFS=: 5572 for f in $ac_file_in; do 5573 case $f in 5574 -) echo $tmp/stdin ;; 5575 [\\/$]*) 5576 # Absolute (can't be DOS-style, as IFS=:) 5577 test -f "$f" || { { echo "$as_me:5577: error: cannot find input file: $f" >&5 5578echo "$as_me: error: cannot find input file: $f" >&2;} 5579 { (exit 1); exit 1; }; } 5580 echo $f;; 5581 *) # Relative 5582 if test -f "$f"; then 5583 # Build tree 5584 echo $f 5585 elif test -f "$srcdir/$f"; then 5586 # Source tree 5587 echo $srcdir/$f 5588 else 5589 # /dev/null tree 5590 { { echo "$as_me:5590: error: cannot find input file: $f" >&5 5591echo "$as_me: error: cannot find input file: $f" >&2;} 5592 { (exit 1); exit 1; }; } 5593 fi;; 5594 esac 5595 done` || { (exit 1); exit 1; } 5596EOF 5597cat >>$CONFIG_STATUS <<\EOF 5598 ac_warn_datarootdir=no 5599 if test x"$ac_file" != x-; then 5600 for ac_item in $ac_file_inputs 5601 do 5602 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item` 5603 if test -n "$ac_seen"; then 5604 ac_used=`grep '@datarootdir@' $ac_item` 5605 if test -z "$ac_used"; then 5606 { echo "$as_me:5606: WARNING: datarootdir was used implicitly but not set: 5607$ac_seen" >&5 5608echo "$as_me: WARNING: datarootdir was used implicitly but not set: 5609$ac_seen" >&2;} 5610 ac_warn_datarootdir=yes 5611 fi 5612 fi 5613 ac_seen=`grep '${datarootdir}' $ac_item` 5614 if test -n "$ac_seen"; then 5615 { echo "$as_me:5615: WARNING: datarootdir was used explicitly but not set: 5616$ac_seen" >&5 5617echo "$as_me: WARNING: datarootdir was used explicitly but not set: 5618$ac_seen" >&2;} 5619 ac_warn_datarootdir=yes 5620 fi 5621 done 5622 fi 5623 5624if test "x$ac_warn_datarootdir" = xyes; then 5625 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'" 5626fi 5627 5628EOF 5629cat >>$CONFIG_STATUS <<EOF 5630 sed "$ac_vpsub 5631$extrasub 5632EOF 5633cat >>$CONFIG_STATUS <<\EOF 5634:t 5635/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 5636s,@configure_input@,$configure_input,;t t 5637s,@srcdir@,$ac_srcdir,;t t 5638s,@top_srcdir@,$ac_top_srcdir,;t t 5639s,@INSTALL@,$ac_INSTALL,;t t 5640" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 5641 rm -f $tmp/stdin 5642 if test x"$ac_file" != x-; then 5643 cp $tmp/out $ac_file 5644 5645 for ac_name in prefix exec_prefix datarootdir 5646 do 5647 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file` 5648 if test -n "$ac_seen"; then 5649 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file` 5650 if test -z "$ac_init"; then 5651 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'` 5652 { echo "$as_me:5652: WARNING: Variable $ac_name is used but was not set: 5653$ac_seen" >&5 5654echo "$as_me: WARNING: Variable $ac_name is used but was not set: 5655$ac_seen" >&2;} 5656 fi 5657 fi 5658 done 5659 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out 5660 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out 5661 if test -s $tmp/out; then 5662 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out` 5663 { echo "$as_me:5663: WARNING: Some variables may not be substituted: 5664$ac_seen" >&5 5665echo "$as_me: WARNING: Some variables may not be substituted: 5666$ac_seen" >&2;} 5667 fi 5668 else 5669 cat $tmp/out 5670 fi 5671 rm -f $tmp/out 5672 5673done 5674EOF 5675cat >>$CONFIG_STATUS <<\EOF 5676 5677# 5678# CONFIG_HEADER section. 5679# 5680 5681# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 5682# NAME is the cpp macro being defined and VALUE is the value it is being given. 5683# 5684# ac_d sets the value in "#define NAME VALUE" lines. 5685ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 5686ac_dB='[ ].*$,\1#\2' 5687ac_dC=' ' 5688ac_dD=',;t' 5689# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 5690ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 5691ac_iB='\([ ]\),\1#\2define\3' 5692ac_iC=' ' 5693ac_iD='\4,;t' 5694# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 5695ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 5696ac_uB='$,\1#\2define\3' 5697ac_uC=' ' 5698ac_uD=',;t' 5699 5700for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 5701 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5702 case $ac_file in 5703 - | *:- | *:-:* ) # input from stdin 5704 cat >$tmp/stdin 5705 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5706 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5707 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5708 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5709 * ) ac_file_in=$ac_file.in ;; 5710 esac 5711 5712 test x"$ac_file" != x- && { echo "$as_me:5712: creating $ac_file" >&5 5713echo "$as_me: creating $ac_file" >&6;} 5714 5715 # First look for the input files in the build tree, otherwise in the 5716 # src tree. 5717 ac_file_inputs=`IFS=: 5718 for f in $ac_file_in; do 5719 case $f in 5720 -) echo $tmp/stdin ;; 5721 [\\/$]*) 5722 # Absolute (can't be DOS-style, as IFS=:) 5723 test -f "$f" || { { echo "$as_me:5723: error: cannot find input file: $f" >&5 5724echo "$as_me: error: cannot find input file: $f" >&2;} 5725 { (exit 1); exit 1; }; } 5726 echo $f;; 5727 *) # Relative 5728 if test -f "$f"; then 5729 # Build tree 5730 echo $f 5731 elif test -f "$srcdir/$f"; then 5732 # Source tree 5733 echo $srcdir/$f 5734 else 5735 # /dev/null tree 5736 { { echo "$as_me:5736: error: cannot find input file: $f" >&5 5737echo "$as_me: error: cannot find input file: $f" >&2;} 5738 { (exit 1); exit 1; }; } 5739 fi;; 5740 esac 5741 done` || { (exit 1); exit 1; } 5742 # Remove the trailing spaces. 5743 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 5744 5745EOF 5746 5747# Transform confdefs.h into two sed scripts, `conftest.defines' and 5748# `conftest.undefs', that substitutes the proper values into 5749# config.h.in to produce config.h. The first handles `#define' 5750# templates, and the second `#undef' templates. 5751# And first: Protect against being on the right side of a sed subst in 5752# config.status. Protect against being in an unquoted here document 5753# in config.status. 5754rm -f conftest.defines conftest.undefs 5755# Using a here document instead of a string reduces the quoting nightmare. 5756# Putting comments in sed scripts is not portable. 5757# 5758# `end' is used to avoid that the second main sed command (meant for 5759# 0-ary CPP macros) applies to n-ary macro definitions. 5760# See the Autoconf documentation for `clear'. 5761cat >confdef2sed.sed <<\EOF 5762s/[\\&,]/\\&/g 5763s,[\\$`],\\&,g 5764t clear 5765: clear 5766s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp 5767t end 5768s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 5769: end 5770EOF 5771# If some macros were called several times there might be several times 5772# the same #defines, which is useless. Nevertheless, we may not want to 5773# sort them, since we want the *last* AC-DEFINE to be honored. 5774uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 5775sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 5776sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs 5777rm -f confdef2sed.sed 5778 5779# This sed command replaces #undef with comments. This is necessary, for 5780# example, in the case of _POSIX_SOURCE, which is predefined and required 5781# on some systems where configure will not decide to define it. 5782cat >>conftest.undefs <<\EOF 5783s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 5784EOF 5785 5786# Break up conftest.defines because some shells have a limit on the size 5787# of here documents, and old seds have small limits too (100 cmds). 5788echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 5789echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 5790echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 5791echo ' :' >>$CONFIG_STATUS 5792rm -f conftest.tail 5793while grep . conftest.defines >/dev/null 5794do 5795 # Write a limited-size here document to $tmp/defines.sed. 5796 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 5797 # Speed up: don't consider the non `#define' lines. 5798 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 5799 # Work around the forget-to-reset-the-flag bug. 5800 echo 't clr' >>$CONFIG_STATUS 5801 echo ': clr' >>$CONFIG_STATUS 5802 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 5803 echo 'CEOF 5804 sed -f $tmp/defines.sed $tmp/in >$tmp/out 5805 rm -f $tmp/in 5806 mv $tmp/out $tmp/in 5807' >>$CONFIG_STATUS 5808 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 5809 rm -f conftest.defines 5810 mv conftest.tail conftest.defines 5811done 5812rm -f conftest.defines 5813echo ' fi # egrep' >>$CONFIG_STATUS 5814echo >>$CONFIG_STATUS 5815 5816# Break up conftest.undefs because some shells have a limit on the size 5817# of here documents, and old seds have small limits too (100 cmds). 5818echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 5819rm -f conftest.tail 5820while grep . conftest.undefs >/dev/null 5821do 5822 # Write a limited-size here document to $tmp/undefs.sed. 5823 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 5824 # Speed up: don't consider the non `#undef' 5825 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 5826 # Work around the forget-to-reset-the-flag bug. 5827 echo 't clr' >>$CONFIG_STATUS 5828 echo ': clr' >>$CONFIG_STATUS 5829 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 5830 echo 'CEOF 5831 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 5832 rm -f $tmp/in 5833 mv $tmp/out $tmp/in 5834' >>$CONFIG_STATUS 5835 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 5836 rm -f conftest.undefs 5837 mv conftest.tail conftest.undefs 5838done 5839rm -f conftest.undefs 5840 5841cat >>$CONFIG_STATUS <<\EOF 5842 # Let's still pretend it is `configure' which instantiates (i.e., don't 5843 # use $as_me), people would be surprised to read: 5844 # /* config.h. Generated automatically by config.status. */ 5845 if test x"$ac_file" = x-; then 5846 echo "/* Generated automatically by configure. */" >$tmp/config.h 5847 else 5848 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 5849 fi 5850 cat $tmp/in >>$tmp/config.h 5851 rm -f $tmp/in 5852 if test x"$ac_file" != x-; then 5853 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 5854 { echo "$as_me:5854: $ac_file is unchanged" >&5 5855echo "$as_me: $ac_file is unchanged" >&6;} 5856 else 5857 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5858 X"$ac_file" : 'X\(//\)[^/]' \| \ 5859 X"$ac_file" : 'X\(//\)$' \| \ 5860 X"$ac_file" : 'X\(/\)' \| \ 5861 . : '\(.\)' 2>/dev/null || 5862echo X"$ac_file" | 5863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5864 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5865 /^X\(\/\/\)$/{ s//\1/; q; } 5866 /^X\(\/\).*/{ s//\1/; q; } 5867 s/.*/./; q'` 5868 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 5869 { case "$ac_dir" in 5870 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 5871 *) as_incr_dir=.;; 5872esac 5873as_dummy="$ac_dir" 5874for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 5875 case $as_mkdir_dir in 5876 # Skip DOS drivespec 5877 ?:) as_incr_dir=$as_mkdir_dir ;; 5878 *) 5879 as_incr_dir=$as_incr_dir/$as_mkdir_dir 5880 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 5881 ;; 5882 esac 5883done; } 5884 5885 fi 5886 rm -f $ac_file 5887 mv $tmp/config.h $ac_file 5888 fi 5889 else 5890 cat $tmp/config.h 5891 rm -f $tmp/config.h 5892 fi 5893done 5894EOF 5895 5896cat >>$CONFIG_STATUS <<\EOF 5897 5898{ (exit 0); exit 0; } 5899EOF 5900chmod +x $CONFIG_STATUS 5901ac_clean_files=$ac_clean_files_save 5902 5903# configure is writing to config.log, and then calls config.status. 5904# config.status does its own redirection, appending to config.log. 5905# Unfortunately, on DOS this fails, as config.log is still kept open 5906# by configure, so config.status won't be able to write to it; its 5907# output is simply discarded. So we exec the FD to /dev/null, 5908# effectively closing config.log, so it can be properly (re)opened and 5909# appended to by config.status. When coming back to configure, we 5910# need to make the FD available again. 5911if test "$no_create" != yes; then 5912 ac_cs_success=: 5913 exec 5>/dev/null 5914 $SHELL $CONFIG_STATUS || ac_cs_success=false 5915 exec 5>>config.log 5916 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 5917 # would make configure fail if this is the last instruction. 5918 $ac_cs_success || { (exit 1); exit 1; } 5919fi 5920 5921test -z "$cf_make_docs" && cf_make_docs=0 5922 5923cf_output=makefile 5924test -f "$cf_output" || cf_output=Makefile 5925 5926if test "$cf_make_docs" = 0 5927then 5928cat >>$cf_output <<"CF_EOF" 5929################################################################################ 5930.SUFFIXES : .html .1 .man .ps .pdf .txt 5931 5932.1.html : 5933 GROFF_NO_SGR=stupid $(SHELL) -c "tbl $*.1 | groff -P -o0 -Iyacc,1_ -Thtml -man" >$@ 5934 5935.1.ps : 5936 $(SHELL) -c "tbl $*.1 | groff -man" >$@ 5937 5938.1.txt : 5939 GROFF_NO_SGR=stupid $(SHELL) -c "tbl $*.1 | nroff -Tascii -man | col -bx" >$@ 5940 5941.ps.pdf : 5942 ps2pdf $*.ps 5943 5944CF_EOF 5945 cf_make_docs=1 5946fi 5947 5948for cf_name in yacc 5949do 5950cat >>$cf_output <<CF_EOF 5951################################################################################ 5952docs-$cf_name \\ 5953docs :: $cf_name.html \\ 5954 $cf_name.pdf \\ 5955 $cf_name.ps \\ 5956 $cf_name.txt 5957 5958clean \\ 5959docs-clean :: 5960 rm -f $cf_name.html $cf_name.pdf $cf_name.ps $cf_name.txt 5961 5962$cf_name.html : $cf_name.\1 5963$cf_name.pdf : $cf_name.ps 5964$cf_name.ps : $cf_name.\1 5965$cf_name.txt : $cf_name.\1 5966CF_EOF 5967done 5968 5969