1#! /bin/sh 2# From configure.in Revision: 1.520 . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by Autoconf 2.52.20101002. 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="ncurses/base/lib_initscr.c" 109# Factoring default headers for most tests. 110ac_includes_default="\ 111#include <stdio.h> 112#if HAVE_SYS_TYPES_H 113# include <sys/types.h> 114#endif 115#if HAVE_SYS_STAT_H 116# include <sys/stat.h> 117#endif 118#if STDC_HEADERS 119# include <stdlib.h> 120# include <stddef.h> 121#else 122# if HAVE_STDLIB_H 123# include <stdlib.h> 124# endif 125#endif 126#if HAVE_STRING_H 127# if !STDC_HEADERS && HAVE_MEMORY_H 128# include <memory.h> 129# endif 130# include <string.h> 131#endif 132#if HAVE_STRINGS_H 133# include <strings.h> 134#endif 135#if HAVE_INTTYPES_H 136# include <inttypes.h> 137#else 138# if HAVE_STDINT_H 139# include <stdint.h> 140# endif 141#endif 142#if HAVE_UNISTD_H 143# include <unistd.h> 144#endif" 145 146# Initialize some variables set by options. 147ac_init_help= 148ac_init_version=false 149# The variables have the same names as the options, with 150# dashes changed to underlines. 151cache_file=/dev/null 152exec_prefix=NONE 153no_create= 154no_recursion= 155prefix=NONE 156program_prefix=NONE 157program_suffix=NONE 158program_transform_name=s,x,x, 159silent= 160site= 161srcdir= 162verbose= 163x_includes=NONE 164x_libraries=NONE 165 166# Installation directory options. 167# These are left unexpanded so users can "make install exec_prefix=/foo" 168# and all the variables that are supposed to be based on exec_prefix 169# by default will actually change. 170# Use braces instead of parens because sh, perl, etc. also accept them. 171bindir='${exec_prefix}/bin' 172sbindir='${exec_prefix}/sbin' 173libexecdir='${exec_prefix}/libexec' 174datadir='${prefix}/share' 175sysconfdir='${prefix}/etc' 176sharedstatedir='${prefix}/com' 177localstatedir='${prefix}/var' 178libdir='${exec_prefix}/lib' 179includedir='${prefix}/include' 180oldincludedir='/usr/include' 181infodir='${prefix}/info' 182mandir='${prefix}/man' 183 184# Identity of this package. 185PACKAGE_NAME= 186PACKAGE_TARNAME= 187PACKAGE_VERSION= 188PACKAGE_STRING= 189PACKAGE_BUGREPORT= 190 191ac_prev= 192for ac_option 193do 194 # If the previous option needs an argument, assign it. 195 if test -n "$ac_prev"; then 196 eval "$ac_prev=\$ac_option" 197 ac_prev= 198 continue 199 fi 200 201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 202 203 # Accept the important Cygnus configure options, so we can diagnose typos. 204 205 case $ac_option in 206 207 -bindir | --bindir | --bindi | --bind | --bin | --bi) 208 ac_prev=bindir ;; 209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 210 bindir=$ac_optarg ;; 211 212 -build | --build | --buil | --bui | --bu) 213 ac_prev=build_alias ;; 214 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 215 build_alias=$ac_optarg ;; 216 217 -cache-file | --cache-file | --cache-fil | --cache-fi \ 218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 219 ac_prev=cache_file ;; 220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 222 cache_file=$ac_optarg ;; 223 224 --config-cache | -C) 225 cache_file=config.cache ;; 226 227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 228 ac_prev=datadir ;; 229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 230 | --da=*) 231 datadir=$ac_optarg ;; 232 233 -disable-* | --disable-*) 234 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 235 # Reject names that are not valid shell variable names. 236 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 237 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 238 { (exit 1); exit 1; }; } 239 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 240 eval "enable_$ac_feature=no" ;; 241 242 -enable-* | --enable-*) 243 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 244 # Reject names that are not valid shell variable names. 245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 247 { (exit 1); exit 1; }; } 248 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 249 case $ac_option in 250 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 251 *) ac_optarg=yes ;; 252 esac 253 eval "enable_$ac_feature='$ac_optarg'" ;; 254 255 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 256 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 257 | --exec | --exe | --ex) 258 ac_prev=exec_prefix ;; 259 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 260 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 261 | --exec=* | --exe=* | --ex=*) 262 exec_prefix=$ac_optarg ;; 263 264 -gas | --gas | --ga | --g) 265 # Obsolete; use --with-gas. 266 with_gas=yes ;; 267 268 -help | --help | --hel | --he | -h) 269 ac_init_help=long ;; 270 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 271 ac_init_help=recursive ;; 272 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 273 ac_init_help=short ;; 274 275 -host | --host | --hos | --ho) 276 ac_prev=host_alias ;; 277 -host=* | --host=* | --hos=* | --ho=*) 278 host_alias=$ac_optarg ;; 279 280 -includedir | --includedir | --includedi | --included | --include \ 281 | --includ | --inclu | --incl | --inc) 282 ac_prev=includedir ;; 283 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 284 | --includ=* | --inclu=* | --incl=* | --inc=*) 285 includedir=$ac_optarg ;; 286 287 -infodir | --infodir | --infodi | --infod | --info | --inf) 288 ac_prev=infodir ;; 289 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 290 infodir=$ac_optarg ;; 291 292 -libdir | --libdir | --libdi | --libd) 293 ac_prev=libdir ;; 294 -libdir=* | --libdir=* | --libdi=* | --libd=*) 295 libdir=$ac_optarg ;; 296 297 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 298 | --libexe | --libex | --libe) 299 ac_prev=libexecdir ;; 300 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 301 | --libexe=* | --libex=* | --libe=*) 302 libexecdir=$ac_optarg ;; 303 304 -localstatedir | --localstatedir | --localstatedi | --localstated \ 305 | --localstate | --localstat | --localsta | --localst \ 306 | --locals | --local | --loca | --loc | --lo) 307 ac_prev=localstatedir ;; 308 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 309 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 310 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 311 localstatedir=$ac_optarg ;; 312 313 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 314 ac_prev=mandir ;; 315 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 316 mandir=$ac_optarg ;; 317 318 -nfp | --nfp | --nf) 319 # Obsolete; use --without-fp. 320 with_fp=no ;; 321 322 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 323 | --no-cr | --no-c) 324 no_create=yes ;; 325 326 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 327 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 328 no_recursion=yes ;; 329 330 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 331 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 332 | --oldin | --oldi | --old | --ol | --o) 333 ac_prev=oldincludedir ;; 334 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 335 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 336 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 337 oldincludedir=$ac_optarg ;; 338 339 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 340 ac_prev=prefix ;; 341 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 342 prefix=$ac_optarg ;; 343 344 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 345 | --program-pre | --program-pr | --program-p) 346 ac_prev=program_prefix ;; 347 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 348 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 349 program_prefix=$ac_optarg ;; 350 351 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 352 | --program-suf | --program-su | --program-s) 353 ac_prev=program_suffix ;; 354 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 355 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 356 program_suffix=$ac_optarg ;; 357 358 -program-transform-name | --program-transform-name \ 359 | --program-transform-nam | --program-transform-na \ 360 | --program-transform-n | --program-transform- \ 361 | --program-transform | --program-transfor \ 362 | --program-transfo | --program-transf \ 363 | --program-trans | --program-tran \ 364 | --progr-tra | --program-tr | --program-t) 365 ac_prev=program_transform_name ;; 366 -program-transform-name=* | --program-transform-name=* \ 367 | --program-transform-nam=* | --program-transform-na=* \ 368 | --program-transform-n=* | --program-transform-=* \ 369 | --program-transform=* | --program-transfor=* \ 370 | --program-transfo=* | --program-transf=* \ 371 | --program-trans=* | --program-tran=* \ 372 | --progr-tra=* | --program-tr=* | --program-t=*) 373 program_transform_name=$ac_optarg ;; 374 375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 376 | -silent | --silent | --silen | --sile | --sil) 377 silent=yes ;; 378 379 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 380 ac_prev=sbindir ;; 381 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 382 | --sbi=* | --sb=*) 383 sbindir=$ac_optarg ;; 384 385 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 386 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 387 | --sharedst | --shareds | --shared | --share | --shar \ 388 | --sha | --sh) 389 ac_prev=sharedstatedir ;; 390 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 391 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 392 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 393 | --sha=* | --sh=*) 394 sharedstatedir=$ac_optarg ;; 395 396 -site | --site | --sit) 397 ac_prev=site ;; 398 -site=* | --site=* | --sit=*) 399 site=$ac_optarg ;; 400 401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 402 ac_prev=srcdir ;; 403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 404 srcdir=$ac_optarg ;; 405 406 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 407 | --syscon | --sysco | --sysc | --sys | --sy) 408 ac_prev=sysconfdir ;; 409 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 410 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 411 sysconfdir=$ac_optarg ;; 412 413 -target | --target | --targe | --targ | --tar | --ta | --t) 414 ac_prev=target_alias ;; 415 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 416 target_alias=$ac_optarg ;; 417 418 -v | -verbose | --verbose | --verbos | --verbo | --verb) 419 verbose=yes ;; 420 421 -version | --version | --versio | --versi | --vers | -V) 422 ac_init_version=: ;; 423 424 -with-* | --with-*) 425 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 426 # Reject names that are not valid shell variable names. 427 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 428 { echo "$as_me: error: invalid package name: $ac_package" >&2 429 { (exit 1); exit 1; }; } 430 ac_package=`echo $ac_package| sed 's/-/_/g'` 431 case $ac_option in 432 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 433 *) ac_optarg=yes ;; 434 esac 435 eval "with_$ac_package='$ac_optarg'" ;; 436 437 -without-* | --without-*) 438 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 439 # Reject names that are not valid shell variable names. 440 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 441 { echo "$as_me: error: invalid package name: $ac_package" >&2 442 { (exit 1); exit 1; }; } 443 ac_package=`echo $ac_package | sed 's/-/_/g'` 444 eval "with_$ac_package=no" ;; 445 446 --x) 447 # Obsolete; use --with-x. 448 with_x=yes ;; 449 450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 451 | --x-incl | --x-inc | --x-in | --x-i) 452 ac_prev=x_includes ;; 453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 455 x_includes=$ac_optarg ;; 456 457 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 459 ac_prev=x_libraries ;; 460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 462 x_libraries=$ac_optarg ;; 463 464 -*) { echo "$as_me: error: unrecognized option: $ac_option 465Try \`$0 --help' for more information." >&2 466 { (exit 1); exit 1; }; } 467 ;; 468 469 *=*) 470 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 471 # Reject names that are not valid shell variable names. 472 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 473 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 474 { (exit 1); exit 1; }; } 475 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 476 eval "$ac_envvar='$ac_optarg'" 477 export $ac_envvar ;; 478 479 *) 480 # FIXME: should be removed in autoconf 3.0. 481 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 483 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 484 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 485 ;; 486 487 esac 488done 489 490if test -n "$ac_prev"; then 491 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 492 { echo "$as_me: error: missing argument to $ac_option" >&2 493 { (exit 1); exit 1; }; } 494fi 495 496# Be sure to have absolute paths. 497for ac_var in exec_prefix prefix 498do 499 eval ac_val=$`echo $ac_var` 500 case $ac_val in 501 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 502 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 503 { (exit 1); exit 1; }; };; 504 esac 505done 506 507# Be sure to have absolute paths. 508for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 509 localstatedir libdir includedir oldincludedir infodir mandir 510do 511 eval ac_val=$`echo $ac_var` 512 case $ac_val in 513 [\\/$]* | ?:[\\/]* ) ;; 514 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 515 { (exit 1); exit 1; }; };; 516 esac 517done 518 519# There might be people who depend on the old broken behavior: `$host' 520# used to hold the argument of --host etc. 521build=$build_alias 522host=$host_alias 523target=$target_alias 524 525# FIXME: should be removed in autoconf 3.0. 526if test "x$host_alias" != x; then 527 if test "x$build_alias" = x; then 528 cross_compiling=maybe 529 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 530 If a cross compiler is detected then cross compile mode will be used." >&2 531 elif test "x$build_alias" != "x$host_alias"; then 532 cross_compiling=yes 533 fi 534fi 535 536ac_tool_prefix= 537test -n "$host_alias" && ac_tool_prefix=$host_alias- 538 539test "$silent" = yes && exec 6>/dev/null 540 541# Find the source files, if location was not specified. 542if test -z "$srcdir"; then 543 ac_srcdir_defaulted=yes 544 # Try the directory containing this script, then its parent. 545 ac_prog=$0 546 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` 547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 548 srcdir=$ac_confdir 549 if test ! -r $srcdir/$ac_unique_file; then 550 srcdir=.. 551 fi 552else 553 ac_srcdir_defaulted=no 554fi 555if test ! -r $srcdir/$ac_unique_file; then 556 if test "$ac_srcdir_defaulted" = yes; then 557 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 558 { (exit 1); exit 1; }; } 559 else 560 { echo "$as_me: error: cannot find sources in $srcdir" >&2 561 { (exit 1); exit 1; }; } 562 fi 563fi 564srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 565ac_env_build_alias_set=${build_alias+set} 566ac_env_build_alias_value=$build_alias 567ac_cv_env_build_alias_set=${build_alias+set} 568ac_cv_env_build_alias_value=$build_alias 569ac_env_host_alias_set=${host_alias+set} 570ac_env_host_alias_value=$host_alias 571ac_cv_env_host_alias_set=${host_alias+set} 572ac_cv_env_host_alias_value=$host_alias 573ac_env_target_alias_set=${target_alias+set} 574ac_env_target_alias_value=$target_alias 575ac_cv_env_target_alias_set=${target_alias+set} 576ac_cv_env_target_alias_value=$target_alias 577ac_env_CC_set=${CC+set} 578ac_env_CC_value=$CC 579ac_cv_env_CC_set=${CC+set} 580ac_cv_env_CC_value=$CC 581ac_env_CFLAGS_set=${CFLAGS+set} 582ac_env_CFLAGS_value=$CFLAGS 583ac_cv_env_CFLAGS_set=${CFLAGS+set} 584ac_cv_env_CFLAGS_value=$CFLAGS 585ac_env_LDFLAGS_set=${LDFLAGS+set} 586ac_env_LDFLAGS_value=$LDFLAGS 587ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 588ac_cv_env_LDFLAGS_value=$LDFLAGS 589ac_env_CPPFLAGS_set=${CPPFLAGS+set} 590ac_env_CPPFLAGS_value=$CPPFLAGS 591ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 592ac_cv_env_CPPFLAGS_value=$CPPFLAGS 593ac_env_CPP_set=${CPP+set} 594ac_env_CPP_value=$CPP 595ac_cv_env_CPP_set=${CPP+set} 596ac_cv_env_CPP_value=$CPP 597ac_env_CXX_set=${CXX+set} 598ac_env_CXX_value=$CXX 599ac_cv_env_CXX_set=${CXX+set} 600ac_cv_env_CXX_value=$CXX 601ac_env_CXXFLAGS_set=${CXXFLAGS+set} 602ac_env_CXXFLAGS_value=$CXXFLAGS 603ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 604ac_cv_env_CXXFLAGS_value=$CXXFLAGS 605ac_env_CXXCPP_set=${CXXCPP+set} 606ac_env_CXXCPP_value=$CXXCPP 607ac_cv_env_CXXCPP_set=${CXXCPP+set} 608ac_cv_env_CXXCPP_value=$CXXCPP 609 610# 611# Report the --help message. 612# 613if test "$ac_init_help" = "long"; then 614 # Omit some internal or obsolete options to make the list less imposing. 615 # This message is too long to be a string in the A/UX 3.1 sh. 616 cat <<EOF 617\`configure' configures this package to adapt to many kinds of systems. 618 619Usage: $0 [OPTION]... [VAR=VALUE]... 620 621To assign environment variables (e.g., CC, CFLAGS...), specify them as 622VAR=VALUE. See below for descriptions of some of the useful variables. 623 624Defaults for the options are specified in brackets. 625 626Configuration: 627 -h, --help display this help and exit 628 --help=short display options specific to this package 629 --help=recursive display the short help of all the included packages 630 -V, --version display version information and exit 631 -q, --quiet, --silent do not print \`checking...' messages 632 --cache-file=FILE cache test results in FILE [disabled] 633 -C, --config-cache alias for \`--cache-file=config.cache' 634 -n, --no-create do not create output files 635 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 636 637EOF 638 639 cat <<EOF 640Installation directories: 641 --prefix=PREFIX install architecture-independent files in PREFIX 642 [$ac_default_prefix] 643 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 644 [PREFIX] 645 646By default, \`make install' will install all the files in 647\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 648an installation prefix other than \`$ac_default_prefix' using \`--prefix', 649for instance \`--prefix=\$HOME'. 650 651For better control, use the options below. 652 653Fine tuning of the installation directories: 654 --bindir=DIR user executables [EPREFIX/bin] 655 --sbindir=DIR system admin executables [EPREFIX/sbin] 656 --libexecdir=DIR program executables [EPREFIX/libexec] 657 --datadir=DIR read-only architecture-independent data [PREFIX/share] 658 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 659 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 660 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 661 --libdir=DIR object code libraries [EPREFIX/lib] 662 --includedir=DIR C header files [PREFIX/include] 663 --oldincludedir=DIR C header files for non-gcc [/usr/include] 664 --infodir=DIR info documentation [PREFIX/info] 665 --mandir=DIR man documentation [PREFIX/man] 666EOF 667 668 cat <<\EOF 669 670Program names: 671 --program-prefix=PREFIX prepend PREFIX to installed program names 672 --program-suffix=SUFFIX append SUFFIX to installed program names 673 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 674 675System types: 676 --build=BUILD configure for building on BUILD [guessed] 677 --host=HOST build programs to run on HOST [BUILD] 678 --target=TARGET configure for building compilers for TARGET [HOST] 679EOF 680fi 681 682if test -n "$ac_init_help"; then 683 684 cat <<\EOF 685 686Optional Packages: 687 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 688 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 689 690Optional Features: 691 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 692 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 693 694 --with-rel-version=XXX override derived release version 695 --with-abi-version=XXX override derived ABI version 696 --with-system-type=XXX test: override derived host system-type 697 --without-cxx do not adjust ncurses bool to match C++ 698 --without-cxx-binding do not build C++ binding and demo 699 --without-ada suppress check for Ada95, don't build demo 700 --without-manpages suppress install of manpages 701 --without-progs suppress build with programs (e.g., tic) 702 --without-tests suppress build with test-programs 703 --without-curses-h install curses.h as ncurses.h only 704 --with-pkg-config{=path} enable/disable use of pkg-config 705 --enable-pc-files generate and install .pc files for pkg-config 706 --enable-mixed-case tic should assume mixed-case filenames 707 --with-install-prefix prefixes actual install-location ($DESTDIR) 708Build-Tools Needed to Compile Temporary Applications for Cross-compiling: 709 --with-build-cc=XXX the build C compiler ($BUILD_CC) 710 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP) 711 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS) 712 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS) 713 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS) 714 --with-build-libs=XXX the build libraries (${BUILD_LIBS}) 715Options to Specify the Libraries Built/Used: 716 --disable-libtool-version enable to use libtool's incompatible naming scheme 717 --with-libtool generate libraries with libtool 718 --with-shared generate shared-libraries 719 --with-normal generate normal-libraries (default) 720 --with-debug generate debug-libraries (default) 721 --with-profile generate profile-libraries 722 --with-termlib generate separate terminfo library 723 --with-ticlib generate separate tic library 724 --with-gpm use Alessandro Rubini's GPM library 725 --without-dlsym do not use dlsym() to load GPM dynamically 726 --with-sysmouse use sysmouse (FreeBSD console) 727 --enable-rpath use rpath option when generating shared libraries 728 --disable-relink relink shared libraries during install 729 --with-shlib-version=X Specify rel or abi version for shared libs 730 --disable-rpath-hack don't add rpath options for additional libraries 731Fine-Tuning Your Configuration: 732 --disable-overwrite leave out the link to -lcurses 733 --disable-database do not use terminfo, only fallbacks/termcap 734 --with-database=XXX specify terminfo source to install 735 --with-hashed-db specify hashed-database library 736 --with-fallbacks=XXX specify list of fallback terminal descriptions 737 --without-xterm-new specify if xterm terminfo should be old version 738 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo) 739 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo) 740 --disable-big-core assume machine has little memory 741 --disable-big-strings assume compiler has only standard-size strings 742 --enable-termcap compile in termcap fallback support 743 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap) 744 --enable-getcap fast termcap load, no xrefs to terminfo 745 --enable-getcap-cache cache translated termcaps in ~/.terminfo 746 --disable-home-terminfo drop ~/.terminfo from terminfo search-path 747 --disable-root-environ restrict environment when running as root 748 --enable-symlinks make tic use symbolic links not hard links 749 --enable-broken_linker compile with broken-linker support code 750 --enable-bsdpad recognize BSD-style prefix padding 751 --enable-widec compile with wide-char/UTF-8 code 752 --disable-lp64 allow chtype to be long (ignore _LP64) 753 --disable-largefile omit support for large files 754 --disable-tparm-varargs compile tparm() without varargs interface 755 --disable-tic-depends link tic library without explicit dependency on ncurses library 756 --with-bool=TYPE override fallback type of bool variable 757 --with-caps=alt compile with alternate Caps file 758 --with-chtype=TYPE override type of chtype 759 --with-ospeed=TYPE override type of ospeed variable 760 --with-mmask-t=TYPE override type of mmask_t 761 --with-ccharw-max=XXX override size CCHARW_MAX 762 --with-rcs-ids compile-in RCS identifiers 763Options to Specify How Manpages are Installed: 764 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and 765 optionally formatted/catonly, e.g., gzip,formatted 766 --with-manpage-renames specify manpage-renaming 767 --with-manpage-aliases specify manpage-aliases using .so 768 --with-manpage-symlinks specify manpage-aliases using symlinks 769 --with-manpage-tbl specify manpage processing with tbl 770Extensions: 771 --disable-ext-funcs disable function-extensions 772 --enable-sp-funcs enable experimental SCREEN-extensions 773 --enable-term-driver enable experimental terminal-driver 774 --enable-const compile with extra/non-standard const 775 --enable-ext-colors compile for 256-color support 776 --enable-ext-mouse compile for extended mouse-encoding 777 --enable-no-padding compile with $NCURSES_NO_PADDING code 778 --enable-signed-char compile using signed Boolean's in term.h 779 --enable-sigwinch compile with SIGWINCH handler 780 --enable-tcap-names compile with user-definable terminal capabilities 781Development Code: 782 --without-develop disable development options 783 --enable-hard-tabs compile with hard-tabs code 784 --enable-xmc-glitch compile with support for xmc (magic-cookie) 785Experimental Code: 786 --disable-assumed-color do not assume anything about default-colors 787 --disable-hashmap compile without hashmap scrolling-optimization 788 --enable-colorfgbg compile-in experimental $COLORFGBG code 789 --enable-interop compile-in experimental interop bindings 790 --with-pthread use POSIX thread library 791 --enable-pthreads-eintr enable EINTR in wgetch with pthreads 792 --enable-weak-symbols enable weak-symbols for pthreads 793 --enable-reentrant compile with experimental reentrant code 794 --with-wrap-prefix=XXX override prefix used for public variables 795 --enable-safe-sprintf compile with experimental safe-sprintf code 796 --disable-scroll-hints compile without scroll-hints code 797 --enable-wgetch-events compile with experimental wgetch-events code 798Testing/development Options: 799 --enable-echo build: display "compiling" commands (default) 800 --enable-warnings build: turn on GCC compiler warnings 801 --enable-assertions test: turn on generation of assertion code 802 --with-dmalloc test: use Gray Watson's dmalloc library 803 --with-dbmalloc test: use Conor Cahill's dbmalloc library 804 --with-valgrind test: use valgrind 805 --disable-leaks test: free permanent memory, analyze leaks 806 --enable-expanded test: generate functions for certain macros 807 --disable-macros test: use functions rather than macros 808 --with-trace test: add trace() function to all models of ncurses 809Ada95 Binding Options: 810 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake) 811 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude) 812 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib) 813 --with-ada-sharedlib=XX build Ada95 shared-library 814 815Some influential environment variables: 816 CC C compiler command 817 CFLAGS C compiler flags 818 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 819 nonstandard directory <lib dir> 820 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 821 headers in a nonstandard directory <include dir> 822 CPP C preprocessor 823 CXX C++ compiler command 824 CXXFLAGS C++ compiler flags 825 CXXCPP C++ preprocessor 826 827Use these variables to override the choices made by `configure' or to help 828it to find libraries and programs with nonstandard names/locations. 829 830EOF 831fi 832 833if test "$ac_init_help" = "recursive"; then 834 # If there are subdirs, report their specific --help. 835 ac_popdir=`pwd` 836 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 837 cd $ac_subdir 838 # A "../" for each directory in /$ac_subdir. 839 ac_dots=`echo $ac_subdir | 840 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 841 842 case $srcdir in 843 .) # No --srcdir option. We are building in place. 844 ac_sub_srcdir=$srcdir ;; 845 [\\/]* | ?:[\\/]* ) # Absolute path. 846 ac_sub_srcdir=$srcdir/$ac_subdir ;; 847 *) # Relative path. 848 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; 849 esac 850 851 # Check for guested configure; otherwise get Cygnus style configure. 852 if test -f $ac_sub_srcdir/configure.gnu; then 853 echo 854 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive 855 elif test -f $ac_sub_srcdir/configure; then 856 echo 857 $SHELL $ac_sub_srcdir/configure --help=recursive 858 elif test -f $ac_sub_srcdir/configure.ac || 859 test -f $ac_sub_srcdir/configure.in; then 860 echo 861 $ac_configure --help 862 else 863 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 864 fi 865 cd $ac_popdir 866 done 867fi 868 869test -n "$ac_init_help" && exit 0 870if $ac_init_version; then 871 cat <<\EOF 872 873Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 874Free Software Foundation, Inc. 875This configure script is free software; the Free Software Foundation 876gives unlimited permission to copy, distribute and modify it. 877EOF 878 exit 0 879fi 880exec 5>config.log 881cat >&5 <<EOF 882This file contains any messages produced by compilers while 883running configure, to aid debugging if configure makes a mistake. 884 885It was created by $as_me, which was 886generated by GNU Autoconf 2.52.20101002. Invocation command line was 887 888 $ $0 $@ 889 890EOF 891{ 892cat <<_ASUNAME 893## ---------- ## 894## Platform. ## 895## ---------- ## 896 897hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 898uname -m = `(uname -m) 2>/dev/null || echo unknown` 899uname -r = `(uname -r) 2>/dev/null || echo unknown` 900uname -s = `(uname -s) 2>/dev/null || echo unknown` 901uname -v = `(uname -v) 2>/dev/null || echo unknown` 902 903/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 904/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 905 906/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 907/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 908/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 909hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 910/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 911/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 912/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 913 914PATH = $PATH 915 916_ASUNAME 917} >&5 918 919cat >&5 <<EOF 920## ------------ ## 921## Core tests. ## 922## ------------ ## 923 924EOF 925 926# Keep a trace of the command line. 927# Strip out --no-create and --no-recursion so they do not pile up. 928# Also quote any args containing shell meta-characters. 929ac_configure_args= 930ac_sep= 931for ac_arg 932do 933 case $ac_arg in 934 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 935 | --no-cr | --no-c) ;; 936 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 937 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 938 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 939 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 940 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 941 ac_sep=" " ;; 942 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 943 ac_sep=" " ;; 944 esac 945 # Get rid of the leading space. 946done 947 948# When interrupted or exit'd, cleanup temporary files, and complete 949# config.log. We remove comments because anyway the quotes in there 950# would cause problems or look ugly. 951trap 'exit_status=$? 952 # Save into config.log some information that might help in debugging. 953 echo >&5 954 echo "## ----------------- ##" >&5 955 echo "## Cache variables. ##" >&5 956 echo "## ----------------- ##" >&5 957 echo >&5 958 # The following way of writing the cache mishandles newlines in values, 959{ 960 (set) 2>&1 | 961 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 962 *ac_space=\ *) 963 sed -n \ 964 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 965 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 966 ;; 967 *) 968 sed -n \ 969 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 970 ;; 971 esac; 972} >&5 973 sed "/^$/d" confdefs.h >conftest.log 974 if test -s conftest.log; then 975 echo >&5 976 echo "## ------------ ##" >&5 977 echo "## confdefs.h. ##" >&5 978 echo "## ------------ ##" >&5 979 echo >&5 980 cat conftest.log >&5 981 fi 982 (echo; echo) >&5 983 test "$ac_signal" != 0 && 984 echo "$as_me: caught signal $ac_signal" >&5 985 echo "$as_me: exit $exit_status" >&5 986 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 987 exit $exit_status 988 ' 0 989for ac_signal in 1 2 13 15; do 990 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 991done 992ac_signal=0 993 994# confdefs.h avoids OS command line length limits that DEFS can exceed. 995rm -rf conftest* confdefs.h 996# AIX cpp loses on an empty file, so make sure it contains at least a newline. 997echo >confdefs.h 998 999# Let the site file select an alternate cache file if it wants to. 1000# Prefer explicitly selected file to automatically selected ones. 1001if test -z "$CONFIG_SITE"; then 1002 if test "x$prefix" != xNONE; then 1003 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1004 else 1005 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1006 fi 1007fi 1008for ac_site_file in $CONFIG_SITE; do 1009 if test -r "$ac_site_file"; then 1010 { echo "$as_me:1010: loading site script $ac_site_file" >&5 1011echo "$as_me: loading site script $ac_site_file" >&6;} 1012 cat "$ac_site_file" >&5 1013 . "$ac_site_file" 1014 fi 1015done 1016 1017if test -r "$cache_file"; then 1018 # Some versions of bash will fail to source /dev/null (special 1019 # files actually), so we avoid doing that. 1020 if test -f "$cache_file"; then 1021 { echo "$as_me:1021: loading cache $cache_file" >&5 1022echo "$as_me: loading cache $cache_file" >&6;} 1023 case $cache_file in 1024 [\\/]* | ?:[\\/]* ) . $cache_file;; 1025 *) . ./$cache_file;; 1026 esac 1027 fi 1028else 1029 { echo "$as_me:1029: creating cache $cache_file" >&5 1030echo "$as_me: creating cache $cache_file" >&6;} 1031 >$cache_file 1032fi 1033 1034# Check that the precious variables saved in the cache have kept the same 1035# value. 1036ac_cache_corrupted=false 1037for ac_var in `(set) 2>&1 | 1038 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1039 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1040 eval ac_new_set=\$ac_env_${ac_var}_set 1041 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1042 eval ac_new_val="\$ac_env_${ac_var}_value" 1043 case $ac_old_set,$ac_new_set in 1044 set,) 1045 { echo "$as_me:1045: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1046echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1047 ac_cache_corrupted=: ;; 1048 ,set) 1049 { echo "$as_me:1049: error: \`$ac_var' was not set in the previous run" >&5 1050echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1051 ac_cache_corrupted=: ;; 1052 ,);; 1053 *) 1054 if test "x$ac_old_val" != "x$ac_new_val"; then 1055 { echo "$as_me:1055: error: \`$ac_var' has changed since the previous run:" >&5 1056echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1057 { echo "$as_me:1057: former value: $ac_old_val" >&5 1058echo "$as_me: former value: $ac_old_val" >&2;} 1059 { echo "$as_me:1059: current value: $ac_new_val" >&5 1060echo "$as_me: current value: $ac_new_val" >&2;} 1061 ac_cache_corrupted=: 1062 fi;; 1063 esac 1064 # Pass precious variables to config.status. It doesn't matter if 1065 # we pass some twice (in addition to the command line arguments). 1066 if test "$ac_new_set" = set; then 1067 case $ac_new_val in 1068 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1069 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` 1070 ac_configure_args="$ac_configure_args '$ac_arg'" 1071 ;; 1072 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" 1073 ;; 1074 esac 1075 fi 1076done 1077if $ac_cache_corrupted; then 1078 { echo "$as_me:1078: error: changes in the environment can compromise the build" >&5 1079echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1080 { { echo "$as_me:1080: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1081echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1082 { (exit 1); exit 1; }; } 1083fi 1084 1085ac_ext=c 1086ac_cpp='$CPP $CPPFLAGS' 1087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1089ac_compiler_gnu=$ac_cv_c_compiler_gnu 1090ac_main_return=return 1091 1092case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 1093 *c*,-n*) ECHO_N= ECHO_C=' 1094' ECHO_T=' ' ;; 1095 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 1096 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 1097esac 1098echo "#! $SHELL" >conftest.sh 1099echo "exit 0" >>conftest.sh 1100chmod +x conftest.sh 1101if { (echo "$as_me:1101: PATH=\".;.\"; conftest.sh") >&5 1102 (PATH=".;."; conftest.sh) 2>&5 1103 ac_status=$? 1104 echo "$as_me:1104: \$? = $ac_status" >&5 1105 (exit $ac_status); }; then 1106 ac_path_separator=';' 1107else 1108 ac_path_separator=: 1109fi 1110PATH_SEPARATOR="$ac_path_separator" 1111rm -f conftest.sh 1112 1113ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin" 1114 1115top_builddir=`pwd` 1116 1117echo "$as_me:1117: checking for egrep" >&5 1118echo $ECHO_N "checking for egrep... $ECHO_C" >&6 1119if test "${ac_cv_prog_egrep+set}" = set; then 1120 echo $ECHO_N "(cached) $ECHO_C" >&6 1121else 1122 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 1123 then ac_cv_prog_egrep='grep -E' 1124 else ac_cv_prog_egrep='egrep' 1125 fi 1126fi 1127echo "$as_me:1127: result: $ac_cv_prog_egrep" >&5 1128echo "${ECHO_T}$ac_cv_prog_egrep" >&6 1129 EGREP=$ac_cv_prog_egrep 1130 1131test -z "$EGREP" && { { echo "$as_me:1131: error: No egrep program found" >&5 1132echo "$as_me: error: No egrep program found" >&2;} 1133 { (exit 1); exit 1; }; } 1134 1135NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`" 1136NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`" 1137NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`" 1138cf_cv_abi_version=${NCURSES_MAJOR} 1139cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR} 1140cf_cv_timestamp=`date` 1141echo "$as_me:1141: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5 1142echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6 1143 1144test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0 1145 1146# Check whether --with-rel-version or --without-rel-version was given. 1147if test "${with_rel_version+set}" = set; then 1148 withval="$with_rel_version" 1149 { echo "$as_me:1149: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5 1150echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;} 1151 cf_cv_rel_version=$withval 1152fi; 1153 1154 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'` 1155 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'` 1156 1157if test -n "$NCURSES_MAJOR" ; then 1158 case $NCURSES_MAJOR in #(vi 1159 [0-9]*) #(vi 1160 ;; 1161 *) 1162 { { echo "$as_me:1162: error: Release major-version is not a number: $NCURSES_MAJOR" >&5 1163echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;} 1164 { (exit 1); exit 1; }; } 1165 ;; 1166 esac 1167else 1168 { { echo "$as_me:1168: error: Release major-version value is empty" >&5 1169echo "$as_me: error: Release major-version value is empty" >&2;} 1170 { (exit 1); exit 1; }; } 1171fi 1172 1173if test -n "$NCURSES_MINOR" ; then 1174 case $NCURSES_MINOR in #(vi 1175 [0-9]*) #(vi 1176 ;; 1177 *) 1178 { { echo "$as_me:1178: error: Release minor-version is not a number: $NCURSES_MINOR" >&5 1179echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;} 1180 { (exit 1); exit 1; }; } 1181 ;; 1182 esac 1183else 1184 { { echo "$as_me:1184: error: Release minor-version value is empty" >&5 1185echo "$as_me: error: Release minor-version value is empty" >&2;} 1186 { (exit 1); exit 1; }; } 1187fi 1188 1189test -z "$cf_cv_abi_version" && cf_cv_abi_version=0 1190 1191# Check whether --with-abi-version or --without-abi-version was given. 1192if test "${with_abi_version+set}" = set; then 1193 withval="$with_abi_version" 1194 { echo "$as_me:1194: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5 1195echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;} 1196 cf_cv_abi_version=$withval 1197fi; 1198 1199if test -n "$cf_cv_abi_version" ; then 1200 case $cf_cv_abi_version in #(vi 1201 [0-9]*) #(vi 1202 ;; 1203 *) 1204 { { echo "$as_me:1204: error: ABI version is not a number: $cf_cv_abi_version" >&5 1205echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;} 1206 { (exit 1); exit 1; }; } 1207 ;; 1208 esac 1209else 1210 { { echo "$as_me:1210: error: ABI version value is empty" >&5 1211echo "$as_me: error: ABI version value is empty" >&2;} 1212 { (exit 1); exit 1; }; } 1213fi 1214 1215ac_aux_dir= 1216for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1217 if test -f $ac_dir/install-sh; then 1218 ac_aux_dir=$ac_dir 1219 ac_install_sh="$ac_aux_dir/install-sh -c" 1220 break 1221 elif test -f $ac_dir/install.sh; then 1222 ac_aux_dir=$ac_dir 1223 ac_install_sh="$ac_aux_dir/install.sh -c" 1224 break 1225 elif test -f $ac_dir/shtool; then 1226 ac_aux_dir=$ac_dir 1227 ac_install_sh="$ac_aux_dir/shtool install -c" 1228 break 1229 fi 1230done 1231if test -z "$ac_aux_dir"; then 1232 { { echo "$as_me:1232: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1233echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1234 { (exit 1); exit 1; }; } 1235fi 1236ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1237ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1238ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1239 1240# Make sure we can run config.sub. 1241$ac_config_sub sun4 >/dev/null 2>&1 || 1242 { { echo "$as_me:1242: error: cannot run $ac_config_sub" >&5 1243echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1244 { (exit 1); exit 1; }; } 1245 1246echo "$as_me:1246: checking build system type" >&5 1247echo $ECHO_N "checking build system type... $ECHO_C" >&6 1248if test "${ac_cv_build+set}" = set; then 1249 echo $ECHO_N "(cached) $ECHO_C" >&6 1250else 1251 ac_cv_build_alias=$build_alias 1252test -z "$ac_cv_build_alias" && 1253 ac_cv_build_alias=`$ac_config_guess` 1254test -z "$ac_cv_build_alias" && 1255 { { echo "$as_me:1255: error: cannot guess build type; you must specify one" >&5 1256echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1257 { (exit 1); exit 1; }; } 1258ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1259 { { echo "$as_me:1259: error: $ac_config_sub $ac_cv_build_alias failed." >&5 1260echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} 1261 { (exit 1); exit 1; }; } 1262 1263fi 1264echo "$as_me:1264: result: $ac_cv_build" >&5 1265echo "${ECHO_T}$ac_cv_build" >&6 1266build=$ac_cv_build 1267build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1268build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1269build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1270 1271echo "$as_me:1271: checking host system type" >&5 1272echo $ECHO_N "checking host system type... $ECHO_C" >&6 1273if test "${ac_cv_host+set}" = set; then 1274 echo $ECHO_N "(cached) $ECHO_C" >&6 1275else 1276 ac_cv_host_alias=$host_alias 1277test -z "$ac_cv_host_alias" && 1278 ac_cv_host_alias=$ac_cv_build_alias 1279ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1280 { { echo "$as_me:1280: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1281echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1282 { (exit 1); exit 1; }; } 1283 1284fi 1285echo "$as_me:1285: result: $ac_cv_host" >&5 1286echo "${ECHO_T}$ac_cv_host" >&6 1287host=$ac_cv_host 1288host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1289host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1290host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1291 1292if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then 1293 echo "$as_me:1293: checking target system type" >&5 1294echo $ECHO_N "checking target system type... $ECHO_C" >&6 1295if test "${ac_cv_target+set}" = set; then 1296 echo $ECHO_N "(cached) $ECHO_C" >&6 1297else 1298 ac_cv_target_alias=$target_alias 1299test "x$ac_cv_target_alias" = "x" && 1300 ac_cv_target_alias=$ac_cv_host_alias 1301ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1302 { { echo "$as_me:1302: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1303echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1304 { (exit 1); exit 1; }; } 1305 1306fi 1307echo "$as_me:1307: result: $ac_cv_target" >&5 1308echo "${ECHO_T}$ac_cv_target" >&6 1309target=$ac_cv_target 1310target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1311target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1312target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1313 1314# The aliases save the names the user supplied, while $host etc. 1315# will get canonicalized. 1316test -n "$target_alias" && 1317 test "$program_prefix$program_suffix$program_transform_name" = \ 1318 NONENONEs,x,x, && 1319 program_prefix=${target_alias}- 1320 system_name="$host_os" 1321else 1322 system_name="`(uname -s -r) 2>/dev/null`" 1323 if test -z "$system_name" ; then 1324 system_name="`(hostname) 2>/dev/null`" 1325 fi 1326fi 1327test -n "$system_name" && cat >>confdefs.h <<EOF 1328#define SYSTEM_NAME "$system_name" 1329EOF 1330 1331if test "${cf_cv_system_name+set}" = set; then 1332 echo $ECHO_N "(cached) $ECHO_C" >&6 1333else 1334 cf_cv_system_name="$system_name" 1335fi 1336 1337test -z "$system_name" && system_name="$cf_cv_system_name" 1338test -n "$cf_cv_system_name" && echo "$as_me:1338: result: Configuring for $cf_cv_system_name" >&5 1339echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6 1340 1341if test ".$system_name" != ".$cf_cv_system_name" ; then 1342 echo "$as_me:1342: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5 1343echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6 1344 { { echo "$as_me:1344: error: \"Please remove config.cache and try again.\"" >&5 1345echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;} 1346 { (exit 1); exit 1; }; } 1347fi 1348 1349# Check whether --with-system-type or --without-system-type was given. 1350if test "${with_system_type+set}" = set; then 1351 withval="$with_system_type" 1352 { echo "$as_me:1352: WARNING: overriding system type to $withval" >&5 1353echo "$as_me: WARNING: overriding system type to $withval" >&2;} 1354 cf_cv_system_name=$withval 1355fi; 1356 1357### Save the given $CFLAGS to allow user-override. 1358cf_user_CFLAGS="$CFLAGS" 1359 1360### Default install-location 1361 1362echo "$as_me:1362: checking for prefix" >&5 1363echo $ECHO_N "checking for prefix... $ECHO_C" >&6 1364if test "x$prefix" = "xNONE" ; then 1365 case "$cf_cv_system_name" in 1366 # non-vendor systems don't have a conflict 1367 openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu) 1368 prefix=/usr 1369 ;; 1370 *) prefix=$ac_default_prefix 1371 ;; 1372 esac 1373fi 1374echo "$as_me:1374: result: $prefix" >&5 1375echo "${ECHO_T}$prefix" >&6 1376 1377if test "x$prefix" = "xNONE" ; then 1378echo "$as_me:1378: checking for default include-directory" >&5 1379echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6 1380test -n "$verbose" && echo 1>&6 1381for cf_symbol in \ 1382 $includedir \ 1383 $includedir/ncurses \ 1384 $prefix/include \ 1385 $prefix/include/ncurses \ 1386 /usr/local/include \ 1387 /usr/local/include/ncurses \ 1388 /usr/include \ 1389 /usr/include/ncurses 1390do 1391 cf_dir=`eval echo $cf_symbol` 1392 if test -f $cf_dir/curses.h ; then 1393 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then 1394 includedir="$cf_symbol" 1395 test -n "$verbose" && echo $ac_n " found " 1>&6 1396 break 1397 fi 1398 fi 1399 test -n "$verbose" && echo " tested $cf_dir" 1>&6 1400done 1401echo "$as_me:1401: result: $includedir" >&5 1402echo "${ECHO_T}$includedir" >&6 1403fi 1404 1405### Checks for programs. 1406ac_ext=c 1407ac_cpp='$CPP $CPPFLAGS' 1408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1410ac_compiler_gnu=$ac_cv_c_compiler_gnu 1411ac_main_return=return 1412if test -n "$ac_tool_prefix"; then 1413 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1414set dummy ${ac_tool_prefix}gcc; ac_word=$2 1415echo "$as_me:1415: checking for $ac_word" >&5 1416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1417if test "${ac_cv_prog_CC+set}" = set; then 1418 echo $ECHO_N "(cached) $ECHO_C" >&6 1419else 1420 if test -n "$CC"; then 1421 ac_cv_prog_CC="$CC" # Let the user override the test. 1422else 1423 ac_save_IFS=$IFS; IFS=$ac_path_separator 1424ac_dummy="$PATH" 1425for ac_dir in $ac_dummy; do 1426 IFS=$ac_save_IFS 1427 test -z "$ac_dir" && ac_dir=. 1428 $as_executable_p "$ac_dir/$ac_word" || continue 1429ac_cv_prog_CC="${ac_tool_prefix}gcc" 1430echo "$as_me:1430: found $ac_dir/$ac_word" >&5 1431break 1432done 1433 1434fi 1435fi 1436CC=$ac_cv_prog_CC 1437if test -n "$CC"; then 1438 echo "$as_me:1438: result: $CC" >&5 1439echo "${ECHO_T}$CC" >&6 1440else 1441 echo "$as_me:1441: result: no" >&5 1442echo "${ECHO_T}no" >&6 1443fi 1444 1445fi 1446if test -z "$ac_cv_prog_CC"; then 1447 ac_ct_CC=$CC 1448 # Extract the first word of "gcc", so it can be a program name with args. 1449set dummy gcc; ac_word=$2 1450echo "$as_me:1450: checking for $ac_word" >&5 1451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1452if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1453 echo $ECHO_N "(cached) $ECHO_C" >&6 1454else 1455 if test -n "$ac_ct_CC"; then 1456 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1457else 1458 ac_save_IFS=$IFS; IFS=$ac_path_separator 1459ac_dummy="$PATH" 1460for ac_dir in $ac_dummy; do 1461 IFS=$ac_save_IFS 1462 test -z "$ac_dir" && ac_dir=. 1463 $as_executable_p "$ac_dir/$ac_word" || continue 1464ac_cv_prog_ac_ct_CC="gcc" 1465echo "$as_me:1465: found $ac_dir/$ac_word" >&5 1466break 1467done 1468 1469fi 1470fi 1471ac_ct_CC=$ac_cv_prog_ac_ct_CC 1472if test -n "$ac_ct_CC"; then 1473 echo "$as_me:1473: result: $ac_ct_CC" >&5 1474echo "${ECHO_T}$ac_ct_CC" >&6 1475else 1476 echo "$as_me:1476: result: no" >&5 1477echo "${ECHO_T}no" >&6 1478fi 1479 1480 CC=$ac_ct_CC 1481else 1482 CC="$ac_cv_prog_CC" 1483fi 1484 1485if test -z "$CC"; then 1486 if test -n "$ac_tool_prefix"; then 1487 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1488set dummy ${ac_tool_prefix}cc; ac_word=$2 1489echo "$as_me:1489: checking for $ac_word" >&5 1490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1491if test "${ac_cv_prog_CC+set}" = set; then 1492 echo $ECHO_N "(cached) $ECHO_C" >&6 1493else 1494 if test -n "$CC"; then 1495 ac_cv_prog_CC="$CC" # Let the user override the test. 1496else 1497 ac_save_IFS=$IFS; IFS=$ac_path_separator 1498ac_dummy="$PATH" 1499for ac_dir in $ac_dummy; do 1500 IFS=$ac_save_IFS 1501 test -z "$ac_dir" && ac_dir=. 1502 $as_executable_p "$ac_dir/$ac_word" || continue 1503ac_cv_prog_CC="${ac_tool_prefix}cc" 1504echo "$as_me:1504: found $ac_dir/$ac_word" >&5 1505break 1506done 1507 1508fi 1509fi 1510CC=$ac_cv_prog_CC 1511if test -n "$CC"; then 1512 echo "$as_me:1512: result: $CC" >&5 1513echo "${ECHO_T}$CC" >&6 1514else 1515 echo "$as_me:1515: result: no" >&5 1516echo "${ECHO_T}no" >&6 1517fi 1518 1519fi 1520if test -z "$ac_cv_prog_CC"; then 1521 ac_ct_CC=$CC 1522 # Extract the first word of "cc", so it can be a program name with args. 1523set dummy cc; ac_word=$2 1524echo "$as_me:1524: checking for $ac_word" >&5 1525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1526if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1527 echo $ECHO_N "(cached) $ECHO_C" >&6 1528else 1529 if test -n "$ac_ct_CC"; then 1530 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1531else 1532 ac_save_IFS=$IFS; IFS=$ac_path_separator 1533ac_dummy="$PATH" 1534for ac_dir in $ac_dummy; do 1535 IFS=$ac_save_IFS 1536 test -z "$ac_dir" && ac_dir=. 1537 $as_executable_p "$ac_dir/$ac_word" || continue 1538ac_cv_prog_ac_ct_CC="cc" 1539echo "$as_me:1539: found $ac_dir/$ac_word" >&5 1540break 1541done 1542 1543fi 1544fi 1545ac_ct_CC=$ac_cv_prog_ac_ct_CC 1546if test -n "$ac_ct_CC"; then 1547 echo "$as_me:1547: result: $ac_ct_CC" >&5 1548echo "${ECHO_T}$ac_ct_CC" >&6 1549else 1550 echo "$as_me:1550: result: no" >&5 1551echo "${ECHO_T}no" >&6 1552fi 1553 1554 CC=$ac_ct_CC 1555else 1556 CC="$ac_cv_prog_CC" 1557fi 1558 1559fi 1560if test -z "$CC"; then 1561 # Extract the first word of "cc", so it can be a program name with args. 1562set dummy cc; ac_word=$2 1563echo "$as_me:1563: checking for $ac_word" >&5 1564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1565if test "${ac_cv_prog_CC+set}" = set; then 1566 echo $ECHO_N "(cached) $ECHO_C" >&6 1567else 1568 if test -n "$CC"; then 1569 ac_cv_prog_CC="$CC" # Let the user override the test. 1570else 1571 ac_prog_rejected=no 1572 ac_save_IFS=$IFS; IFS=$ac_path_separator 1573ac_dummy="$PATH" 1574for ac_dir in $ac_dummy; do 1575 IFS=$ac_save_IFS 1576 test -z "$ac_dir" && ac_dir=. 1577 $as_executable_p "$ac_dir/$ac_word" || continue 1578if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1579 ac_prog_rejected=yes 1580 continue 1581fi 1582ac_cv_prog_CC="cc" 1583echo "$as_me:1583: found $ac_dir/$ac_word" >&5 1584break 1585done 1586 1587if test $ac_prog_rejected = yes; then 1588 # We found a bogon in the path, so make sure we never use it. 1589 set dummy $ac_cv_prog_CC 1590 shift 1591 if test $# != 0; then 1592 # We chose a different compiler from the bogus one. 1593 # However, it has the same basename, so the bogon will be chosen 1594 # first if we set CC to just the basename; use the full file name. 1595 shift 1596 set dummy "$ac_dir/$ac_word" ${1+"$@"} 1597 shift 1598 ac_cv_prog_CC="$@" 1599 fi 1600fi 1601fi 1602fi 1603CC=$ac_cv_prog_CC 1604if test -n "$CC"; then 1605 echo "$as_me:1605: result: $CC" >&5 1606echo "${ECHO_T}$CC" >&6 1607else 1608 echo "$as_me:1608: result: no" >&5 1609echo "${ECHO_T}no" >&6 1610fi 1611 1612fi 1613if test -z "$CC"; then 1614 if test -n "$ac_tool_prefix"; then 1615 for ac_prog in cl 1616 do 1617 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1618set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1619echo "$as_me:1619: checking for $ac_word" >&5 1620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1621if test "${ac_cv_prog_CC+set}" = set; then 1622 echo $ECHO_N "(cached) $ECHO_C" >&6 1623else 1624 if test -n "$CC"; then 1625 ac_cv_prog_CC="$CC" # Let the user override the test. 1626else 1627 ac_save_IFS=$IFS; IFS=$ac_path_separator 1628ac_dummy="$PATH" 1629for ac_dir in $ac_dummy; do 1630 IFS=$ac_save_IFS 1631 test -z "$ac_dir" && ac_dir=. 1632 $as_executable_p "$ac_dir/$ac_word" || continue 1633ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1634echo "$as_me:1634: found $ac_dir/$ac_word" >&5 1635break 1636done 1637 1638fi 1639fi 1640CC=$ac_cv_prog_CC 1641if test -n "$CC"; then 1642 echo "$as_me:1642: result: $CC" >&5 1643echo "${ECHO_T}$CC" >&6 1644else 1645 echo "$as_me:1645: result: no" >&5 1646echo "${ECHO_T}no" >&6 1647fi 1648 1649 test -n "$CC" && break 1650 done 1651fi 1652if test -z "$CC"; then 1653 ac_ct_CC=$CC 1654 for ac_prog in cl 1655do 1656 # Extract the first word of "$ac_prog", so it can be a program name with args. 1657set dummy $ac_prog; ac_word=$2 1658echo "$as_me:1658: checking for $ac_word" >&5 1659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1660if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1661 echo $ECHO_N "(cached) $ECHO_C" >&6 1662else 1663 if test -n "$ac_ct_CC"; then 1664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1665else 1666 ac_save_IFS=$IFS; IFS=$ac_path_separator 1667ac_dummy="$PATH" 1668for ac_dir in $ac_dummy; do 1669 IFS=$ac_save_IFS 1670 test -z "$ac_dir" && ac_dir=. 1671 $as_executable_p "$ac_dir/$ac_word" || continue 1672ac_cv_prog_ac_ct_CC="$ac_prog" 1673echo "$as_me:1673: found $ac_dir/$ac_word" >&5 1674break 1675done 1676 1677fi 1678fi 1679ac_ct_CC=$ac_cv_prog_ac_ct_CC 1680if test -n "$ac_ct_CC"; then 1681 echo "$as_me:1681: result: $ac_ct_CC" >&5 1682echo "${ECHO_T}$ac_ct_CC" >&6 1683else 1684 echo "$as_me:1684: result: no" >&5 1685echo "${ECHO_T}no" >&6 1686fi 1687 1688 test -n "$ac_ct_CC" && break 1689done 1690 1691 CC=$ac_ct_CC 1692fi 1693 1694fi 1695 1696test -z "$CC" && { { echo "$as_me:1696: error: no acceptable cc found in \$PATH" >&5 1697echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1698 { (exit 1); exit 1; }; } 1699 1700# Provide some information about the compiler. 1701echo "$as_me:1701:" \ 1702 "checking for C compiler version" >&5 1703ac_compiler=`set X $ac_compile; echo $2` 1704{ (eval echo "$as_me:1704: \"$ac_compiler --version </dev/null >&5\"") >&5 1705 (eval $ac_compiler --version </dev/null >&5) 2>&5 1706 ac_status=$? 1707 echo "$as_me:1707: \$? = $ac_status" >&5 1708 (exit $ac_status); } 1709{ (eval echo "$as_me:1709: \"$ac_compiler -v </dev/null >&5\"") >&5 1710 (eval $ac_compiler -v </dev/null >&5) 2>&5 1711 ac_status=$? 1712 echo "$as_me:1712: \$? = $ac_status" >&5 1713 (exit $ac_status); } 1714{ (eval echo "$as_me:1714: \"$ac_compiler -V </dev/null >&5\"") >&5 1715 (eval $ac_compiler -V </dev/null >&5) 2>&5 1716 ac_status=$? 1717 echo "$as_me:1717: \$? = $ac_status" >&5 1718 (exit $ac_status); } 1719 1720cat >conftest.$ac_ext <<_ACEOF 1721#line 1721 "configure" 1722#include "confdefs.h" 1723 1724int 1725main () 1726{ 1727 1728 ; 1729 return 0; 1730} 1731_ACEOF 1732ac_clean_files_save=$ac_clean_files 1733ac_clean_files="$ac_clean_files a.out a.exe" 1734# Try to create an executable without -o first, disregard a.out. 1735# It will help us diagnose broken compilers, and finding out an intuition 1736# of exeext. 1737echo "$as_me:1737: checking for C compiler default output" >&5 1738echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1739ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1740if { (eval echo "$as_me:1740: \"$ac_link_default\"") >&5 1741 (eval $ac_link_default) 2>&5 1742 ac_status=$? 1743 echo "$as_me:1743: \$? = $ac_status" >&5 1744 (exit $ac_status); }; then 1745 # Find the output, starting from the most likely. This scheme is 1746# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1747# resort. 1748for ac_file in `ls a.exe conftest.exe 2>/dev/null; 1749 ls a.out conftest 2>/dev/null; 1750 ls a.* conftest.* 2>/dev/null`; do 1751 case $ac_file in 1752 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1753 a.out ) # We found the default executable, but exeext='' is most 1754 # certainly right. 1755 break;; 1756 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1757 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 1758 export ac_cv_exeext 1759 break;; 1760 * ) break;; 1761 esac 1762done 1763else 1764 echo "$as_me: failed program was:" >&5 1765cat conftest.$ac_ext >&5 1766{ { echo "$as_me:1766: error: C compiler cannot create executables" >&5 1767echo "$as_me: error: C compiler cannot create executables" >&2;} 1768 { (exit 77); exit 77; }; } 1769fi 1770 1771ac_exeext=$ac_cv_exeext 1772echo "$as_me:1772: result: $ac_file" >&5 1773echo "${ECHO_T}$ac_file" >&6 1774 1775# Check the compiler produces executables we can run. If not, either 1776# the compiler is broken, or we cross compile. 1777echo "$as_me:1777: checking whether the C compiler works" >&5 1778echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1779# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1780# If not cross compiling, check that we can run a simple program. 1781if test "$cross_compiling" != yes; then 1782 if { ac_try='./$ac_file' 1783 { (eval echo "$as_me:1783: \"$ac_try\"") >&5 1784 (eval $ac_try) 2>&5 1785 ac_status=$? 1786 echo "$as_me:1786: \$? = $ac_status" >&5 1787 (exit $ac_status); }; }; then 1788 cross_compiling=no 1789 else 1790 if test "$cross_compiling" = maybe; then 1791 cross_compiling=yes 1792 else 1793 { { echo "$as_me:1793: error: cannot run C compiled programs. 1794If you meant to cross compile, use \`--host'." >&5 1795echo "$as_me: error: cannot run C compiled programs. 1796If you meant to cross compile, use \`--host'." >&2;} 1797 { (exit 1); exit 1; }; } 1798 fi 1799 fi 1800fi 1801echo "$as_me:1801: result: yes" >&5 1802echo "${ECHO_T}yes" >&6 1803 1804rm -f a.out a.exe conftest$ac_cv_exeext 1805ac_clean_files=$ac_clean_files_save 1806# Check the compiler produces executables we can run. If not, either 1807# the compiler is broken, or we cross compile. 1808echo "$as_me:1808: checking whether we are cross compiling" >&5 1809echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1810echo "$as_me:1810: result: $cross_compiling" >&5 1811echo "${ECHO_T}$cross_compiling" >&6 1812 1813echo "$as_me:1813: checking for executable suffix" >&5 1814echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1815if { (eval echo "$as_me:1815: \"$ac_link\"") >&5 1816 (eval $ac_link) 2>&5 1817 ac_status=$? 1818 echo "$as_me:1818: \$? = $ac_status" >&5 1819 (exit $ac_status); }; then 1820 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1821# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1822# work properly (i.e., refer to `conftest.exe'), while it won't with 1823# `rm'. 1824for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1825 case $ac_file in 1826 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1827 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1828 export ac_cv_exeext 1829 break;; 1830 * ) break;; 1831 esac 1832done 1833else 1834 { { echo "$as_me:1834: error: cannot compute EXEEXT: cannot compile and link" >&5 1835echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1836 { (exit 1); exit 1; }; } 1837fi 1838 1839rm -f conftest$ac_cv_exeext 1840echo "$as_me:1840: result: $ac_cv_exeext" >&5 1841echo "${ECHO_T}$ac_cv_exeext" >&6 1842 1843rm -f conftest.$ac_ext 1844EXEEXT=$ac_cv_exeext 1845ac_exeext=$EXEEXT 1846echo "$as_me:1846: checking for object suffix" >&5 1847echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 1848if test "${ac_cv_objext+set}" = set; then 1849 echo $ECHO_N "(cached) $ECHO_C" >&6 1850else 1851 cat >conftest.$ac_ext <<_ACEOF 1852#line 1852 "configure" 1853#include "confdefs.h" 1854 1855int 1856main () 1857{ 1858 1859 ; 1860 return 0; 1861} 1862_ACEOF 1863rm -f conftest.o conftest.obj 1864if { (eval echo "$as_me:1864: \"$ac_compile\"") >&5 1865 (eval $ac_compile) 2>&5 1866 ac_status=$? 1867 echo "$as_me:1867: \$? = $ac_status" >&5 1868 (exit $ac_status); }; then 1869 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1870 case $ac_file in 1871 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;; 1872 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1873 break;; 1874 esac 1875done 1876else 1877 echo "$as_me: failed program was:" >&5 1878cat conftest.$ac_ext >&5 1879{ { echo "$as_me:1879: error: cannot compute OBJEXT: cannot compile" >&5 1880echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1881 { (exit 1); exit 1; }; } 1882fi 1883 1884rm -f conftest.$ac_cv_objext conftest.$ac_ext 1885fi 1886echo "$as_me:1886: result: $ac_cv_objext" >&5 1887echo "${ECHO_T}$ac_cv_objext" >&6 1888OBJEXT=$ac_cv_objext 1889ac_objext=$OBJEXT 1890echo "$as_me:1890: checking whether we are using the GNU C compiler" >&5 1891echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1892if test "${ac_cv_c_compiler_gnu+set}" = set; then 1893 echo $ECHO_N "(cached) $ECHO_C" >&6 1894else 1895 cat >conftest.$ac_ext <<_ACEOF 1896#line 1896 "configure" 1897#include "confdefs.h" 1898 1899int 1900main () 1901{ 1902#ifndef __GNUC__ 1903 choke me 1904#endif 1905 1906 ; 1907 return 0; 1908} 1909_ACEOF 1910rm -f conftest.$ac_objext 1911if { (eval echo "$as_me:1911: \"$ac_compile\"") >&5 1912 (eval $ac_compile) 2>&5 1913 ac_status=$? 1914 echo "$as_me:1914: \$? = $ac_status" >&5 1915 (exit $ac_status); } && 1916 { ac_try='test -s conftest.$ac_objext' 1917 { (eval echo "$as_me:1917: \"$ac_try\"") >&5 1918 (eval $ac_try) 2>&5 1919 ac_status=$? 1920 echo "$as_me:1920: \$? = $ac_status" >&5 1921 (exit $ac_status); }; }; then 1922 ac_compiler_gnu=yes 1923else 1924 echo "$as_me: failed program was:" >&5 1925cat conftest.$ac_ext >&5 1926ac_compiler_gnu=no 1927fi 1928rm -f conftest.$ac_objext conftest.$ac_ext 1929ac_cv_c_compiler_gnu=$ac_compiler_gnu 1930 1931fi 1932echo "$as_me:1932: result: $ac_cv_c_compiler_gnu" >&5 1933echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1934GCC=`test $ac_compiler_gnu = yes && echo yes` 1935ac_test_CFLAGS=${CFLAGS+set} 1936ac_save_CFLAGS=$CFLAGS 1937CFLAGS="-g" 1938echo "$as_me:1938: checking whether $CC accepts -g" >&5 1939echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1940if test "${ac_cv_prog_cc_g+set}" = set; then 1941 echo $ECHO_N "(cached) $ECHO_C" >&6 1942else 1943 cat >conftest.$ac_ext <<_ACEOF 1944#line 1944 "configure" 1945#include "confdefs.h" 1946 1947int 1948main () 1949{ 1950 1951 ; 1952 return 0; 1953} 1954_ACEOF 1955rm -f conftest.$ac_objext 1956if { (eval echo "$as_me:1956: \"$ac_compile\"") >&5 1957 (eval $ac_compile) 2>&5 1958 ac_status=$? 1959 echo "$as_me:1959: \$? = $ac_status" >&5 1960 (exit $ac_status); } && 1961 { ac_try='test -s conftest.$ac_objext' 1962 { (eval echo "$as_me:1962: \"$ac_try\"") >&5 1963 (eval $ac_try) 2>&5 1964 ac_status=$? 1965 echo "$as_me:1965: \$? = $ac_status" >&5 1966 (exit $ac_status); }; }; then 1967 ac_cv_prog_cc_g=yes 1968else 1969 echo "$as_me: failed program was:" >&5 1970cat conftest.$ac_ext >&5 1971ac_cv_prog_cc_g=no 1972fi 1973rm -f conftest.$ac_objext conftest.$ac_ext 1974fi 1975echo "$as_me:1975: result: $ac_cv_prog_cc_g" >&5 1976echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1977if test "$ac_test_CFLAGS" = set; then 1978 CFLAGS=$ac_save_CFLAGS 1979elif test $ac_cv_prog_cc_g = yes; then 1980 if test "$GCC" = yes; then 1981 CFLAGS="-g -O2" 1982 else 1983 CFLAGS="-g" 1984 fi 1985else 1986 if test "$GCC" = yes; then 1987 CFLAGS="-O2" 1988 else 1989 CFLAGS= 1990 fi 1991fi 1992# Some people use a C++ compiler to compile C. Since we use `exit', 1993# in C++ we need to declare it. In case someone uses the same compiler 1994# for both compiling C and C++ we need to have the C++ compiler decide 1995# the declaration of exit, since it's the most demanding environment. 1996cat >conftest.$ac_ext <<_ACEOF 1997#ifndef __cplusplus 1998 choke me 1999#endif 2000_ACEOF 2001rm -f conftest.$ac_objext 2002if { (eval echo "$as_me:2002: \"$ac_compile\"") >&5 2003 (eval $ac_compile) 2>&5 2004 ac_status=$? 2005 echo "$as_me:2005: \$? = $ac_status" >&5 2006 (exit $ac_status); } && 2007 { ac_try='test -s conftest.$ac_objext' 2008 { (eval echo "$as_me:2008: \"$ac_try\"") >&5 2009 (eval $ac_try) 2>&5 2010 ac_status=$? 2011 echo "$as_me:2011: \$? = $ac_status" >&5 2012 (exit $ac_status); }; }; then 2013 for ac_declaration in \ 2014 ''\ 2015 '#include <stdlib.h>' \ 2016 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2017 'extern "C" void std::exit (int); using std::exit;' \ 2018 'extern "C" void exit (int) throw ();' \ 2019 'extern "C" void exit (int);' \ 2020 'void exit (int);' 2021do 2022 cat >conftest.$ac_ext <<_ACEOF 2023#line 2023 "configure" 2024#include "confdefs.h" 2025#include <stdlib.h> 2026$ac_declaration 2027int 2028main () 2029{ 2030exit (42); 2031 ; 2032 return 0; 2033} 2034_ACEOF 2035rm -f conftest.$ac_objext 2036if { (eval echo "$as_me:2036: \"$ac_compile\"") >&5 2037 (eval $ac_compile) 2>&5 2038 ac_status=$? 2039 echo "$as_me:2039: \$? = $ac_status" >&5 2040 (exit $ac_status); } && 2041 { ac_try='test -s conftest.$ac_objext' 2042 { (eval echo "$as_me:2042: \"$ac_try\"") >&5 2043 (eval $ac_try) 2>&5 2044 ac_status=$? 2045 echo "$as_me:2045: \$? = $ac_status" >&5 2046 (exit $ac_status); }; }; then 2047 : 2048else 2049 echo "$as_me: failed program was:" >&5 2050cat conftest.$ac_ext >&5 2051continue 2052fi 2053rm -f conftest.$ac_objext conftest.$ac_ext 2054 cat >conftest.$ac_ext <<_ACEOF 2055#line 2055 "configure" 2056#include "confdefs.h" 2057$ac_declaration 2058int 2059main () 2060{ 2061exit (42); 2062 ; 2063 return 0; 2064} 2065_ACEOF 2066rm -f conftest.$ac_objext 2067if { (eval echo "$as_me:2067: \"$ac_compile\"") >&5 2068 (eval $ac_compile) 2>&5 2069 ac_status=$? 2070 echo "$as_me:2070: \$? = $ac_status" >&5 2071 (exit $ac_status); } && 2072 { ac_try='test -s conftest.$ac_objext' 2073 { (eval echo "$as_me:2073: \"$ac_try\"") >&5 2074 (eval $ac_try) 2>&5 2075 ac_status=$? 2076 echo "$as_me:2076: \$? = $ac_status" >&5 2077 (exit $ac_status); }; }; then 2078 break 2079else 2080 echo "$as_me: failed program was:" >&5 2081cat conftest.$ac_ext >&5 2082fi 2083rm -f conftest.$ac_objext conftest.$ac_ext 2084done 2085rm -rf conftest* 2086if test -n "$ac_declaration"; then 2087 echo '#ifdef __cplusplus' >>confdefs.h 2088 echo $ac_declaration >>confdefs.h 2089 echo '#endif' >>confdefs.h 2090fi 2091 2092else 2093 echo "$as_me: failed program was:" >&5 2094cat conftest.$ac_ext >&5 2095fi 2096rm -f conftest.$ac_objext conftest.$ac_ext 2097ac_ext=c 2098ac_cpp='$CPP $CPPFLAGS' 2099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2101ac_compiler_gnu=$ac_cv_c_compiler_gnu 2102ac_main_return=return 2103 2104GCC_VERSION=none 2105if test "$GCC" = yes ; then 2106 echo "$as_me:2106: checking version of $CC" >&5 2107echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 2108 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`" 2109 test -z "$GCC_VERSION" && GCC_VERSION=unknown 2110 echo "$as_me:2110: result: $GCC_VERSION" >&5 2111echo "${ECHO_T}$GCC_VERSION" >&6 2112fi 2113 2114ac_ext=c 2115ac_cpp='$CPP $CPPFLAGS' 2116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2118ac_compiler_gnu=$ac_cv_c_compiler_gnu 2119ac_main_return=return 2120echo "$as_me:2120: checking how to run the C preprocessor" >&5 2121echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2122# On Suns, sometimes $CPP names a directory. 2123if test -n "$CPP" && test -d "$CPP"; then 2124 CPP= 2125fi 2126if test -z "$CPP"; then 2127 if test "${ac_cv_prog_CPP+set}" = set; then 2128 echo $ECHO_N "(cached) $ECHO_C" >&6 2129else 2130 # Double quotes because CPP needs to be expanded 2131 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2132 do 2133 ac_preproc_ok=false 2134for ac_c_preproc_warn_flag in '' yes 2135do 2136 # Use a header file that comes with gcc, so configuring glibc 2137 # with a fresh cross-compiler works. 2138 # On the NeXT, cc -E runs the code through the compiler's parser, 2139 # not just through cpp. "Syntax error" is here to catch this case. 2140 cat >conftest.$ac_ext <<_ACEOF 2141#line 2141 "configure" 2142#include "confdefs.h" 2143#include <assert.h> 2144 Syntax error 2145_ACEOF 2146if { (eval echo "$as_me:2146: \"$ac_cpp conftest.$ac_ext\"") >&5 2147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2148 ac_status=$? 2149 egrep -v '^ *\+' conftest.er1 >conftest.err 2150 rm -f conftest.er1 2151 cat conftest.err >&5 2152 echo "$as_me:2152: \$? = $ac_status" >&5 2153 (exit $ac_status); } >/dev/null; then 2154 if test -s conftest.err; then 2155 ac_cpp_err=$ac_c_preproc_warn_flag 2156 else 2157 ac_cpp_err= 2158 fi 2159else 2160 ac_cpp_err=yes 2161fi 2162if test -z "$ac_cpp_err"; then 2163 : 2164else 2165 echo "$as_me: failed program was:" >&5 2166 cat conftest.$ac_ext >&5 2167 # Broken: fails on valid input. 2168continue 2169fi 2170rm -f conftest.err conftest.$ac_ext 2171 2172 # OK, works on sane cases. Now check whether non-existent headers 2173 # can be detected and how. 2174 cat >conftest.$ac_ext <<_ACEOF 2175#line 2175 "configure" 2176#include "confdefs.h" 2177#include <ac_nonexistent.h> 2178_ACEOF 2179if { (eval echo "$as_me:2179: \"$ac_cpp conftest.$ac_ext\"") >&5 2180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2181 ac_status=$? 2182 egrep -v '^ *\+' conftest.er1 >conftest.err 2183 rm -f conftest.er1 2184 cat conftest.err >&5 2185 echo "$as_me:2185: \$? = $ac_status" >&5 2186 (exit $ac_status); } >/dev/null; then 2187 if test -s conftest.err; then 2188 ac_cpp_err=$ac_c_preproc_warn_flag 2189 else 2190 ac_cpp_err= 2191 fi 2192else 2193 ac_cpp_err=yes 2194fi 2195if test -z "$ac_cpp_err"; then 2196 # Broken: success on invalid input. 2197continue 2198else 2199 echo "$as_me: failed program was:" >&5 2200 cat conftest.$ac_ext >&5 2201 # Passes both tests. 2202ac_preproc_ok=: 2203break 2204fi 2205rm -f conftest.err conftest.$ac_ext 2206 2207done 2208# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2209rm -f conftest.err conftest.$ac_ext 2210if $ac_preproc_ok; then 2211 break 2212fi 2213 2214 done 2215 ac_cv_prog_CPP=$CPP 2216 2217fi 2218 CPP=$ac_cv_prog_CPP 2219else 2220 ac_cv_prog_CPP=$CPP 2221fi 2222echo "$as_me:2222: result: $CPP" >&5 2223echo "${ECHO_T}$CPP" >&6 2224ac_preproc_ok=false 2225for ac_c_preproc_warn_flag in '' yes 2226do 2227 # Use a header file that comes with gcc, so configuring glibc 2228 # with a fresh cross-compiler works. 2229 # On the NeXT, cc -E runs the code through the compiler's parser, 2230 # not just through cpp. "Syntax error" is here to catch this case. 2231 cat >conftest.$ac_ext <<_ACEOF 2232#line 2232 "configure" 2233#include "confdefs.h" 2234#include <assert.h> 2235 Syntax error 2236_ACEOF 2237if { (eval echo "$as_me:2237: \"$ac_cpp conftest.$ac_ext\"") >&5 2238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2239 ac_status=$? 2240 egrep -v '^ *\+' conftest.er1 >conftest.err 2241 rm -f conftest.er1 2242 cat conftest.err >&5 2243 echo "$as_me:2243: \$? = $ac_status" >&5 2244 (exit $ac_status); } >/dev/null; then 2245 if test -s conftest.err; then 2246 ac_cpp_err=$ac_c_preproc_warn_flag 2247 else 2248 ac_cpp_err= 2249 fi 2250else 2251 ac_cpp_err=yes 2252fi 2253if test -z "$ac_cpp_err"; then 2254 : 2255else 2256 echo "$as_me: failed program was:" >&5 2257 cat conftest.$ac_ext >&5 2258 # Broken: fails on valid input. 2259continue 2260fi 2261rm -f conftest.err conftest.$ac_ext 2262 2263 # OK, works on sane cases. Now check whether non-existent headers 2264 # can be detected and how. 2265 cat >conftest.$ac_ext <<_ACEOF 2266#line 2266 "configure" 2267#include "confdefs.h" 2268#include <ac_nonexistent.h> 2269_ACEOF 2270if { (eval echo "$as_me:2270: \"$ac_cpp conftest.$ac_ext\"") >&5 2271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2272 ac_status=$? 2273 egrep -v '^ *\+' conftest.er1 >conftest.err 2274 rm -f conftest.er1 2275 cat conftest.err >&5 2276 echo "$as_me:2276: \$? = $ac_status" >&5 2277 (exit $ac_status); } >/dev/null; then 2278 if test -s conftest.err; then 2279 ac_cpp_err=$ac_c_preproc_warn_flag 2280 else 2281 ac_cpp_err= 2282 fi 2283else 2284 ac_cpp_err=yes 2285fi 2286if test -z "$ac_cpp_err"; then 2287 # Broken: success on invalid input. 2288continue 2289else 2290 echo "$as_me: failed program was:" >&5 2291 cat conftest.$ac_ext >&5 2292 # Passes both tests. 2293ac_preproc_ok=: 2294break 2295fi 2296rm -f conftest.err conftest.$ac_ext 2297 2298done 2299# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2300rm -f conftest.err conftest.$ac_ext 2301if $ac_preproc_ok; then 2302 : 2303else 2304 { { echo "$as_me:2304: error: C preprocessor \"$CPP\" fails sanity check" >&5 2305echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 2306 { (exit 1); exit 1; }; } 2307fi 2308 2309ac_ext=c 2310ac_cpp='$CPP $CPPFLAGS' 2311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2313ac_compiler_gnu=$ac_cv_c_compiler_gnu 2314ac_main_return=return 2315 2316if test $ac_cv_c_compiler_gnu = yes; then 2317 echo "$as_me:2317: checking whether $CC needs -traditional" >&5 2318echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 2319if test "${ac_cv_prog_gcc_traditional+set}" = set; then 2320 echo $ECHO_N "(cached) $ECHO_C" >&6 2321else 2322 ac_pattern="Autoconf.*'x'" 2323 cat >conftest.$ac_ext <<_ACEOF 2324#line 2324 "configure" 2325#include "confdefs.h" 2326#include <sgtty.h> 2327int Autoconf = TIOCGETP; 2328_ACEOF 2329if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2330 egrep "$ac_pattern" >/dev/null 2>&1; then 2331 ac_cv_prog_gcc_traditional=yes 2332else 2333 ac_cv_prog_gcc_traditional=no 2334fi 2335rm -rf conftest* 2336 2337 if test $ac_cv_prog_gcc_traditional = no; then 2338 cat >conftest.$ac_ext <<_ACEOF 2339#line 2339 "configure" 2340#include "confdefs.h" 2341#include <termio.h> 2342int Autoconf = TCGETA; 2343_ACEOF 2344if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2345 egrep "$ac_pattern" >/dev/null 2>&1; then 2346 ac_cv_prog_gcc_traditional=yes 2347fi 2348rm -rf conftest* 2349 2350 fi 2351fi 2352echo "$as_me:2352: result: $ac_cv_prog_gcc_traditional" >&5 2353echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 2354 if test $ac_cv_prog_gcc_traditional = yes; then 2355 CC="$CC -traditional" 2356 fi 2357fi 2358 2359echo "$as_me:2359: checking whether $CC understands -c and -o together" >&5 2360echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6 2361if test "${cf_cv_prog_CC_c_o+set}" = set; then 2362 echo $ECHO_N "(cached) $ECHO_C" >&6 2363else 2364 2365cat > conftest.$ac_ext <<CF_EOF 2366#include <stdio.h> 2367int main() 2368{ 2369 ${cf_cv_main_return:-return}(0); 2370} 2371CF_EOF 2372# We do the test twice because some compilers refuse to overwrite an 2373# existing .o file with -o, though they will create one. 2374ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 2375if { (eval echo "$as_me:2375: \"$ac_try\"") >&5 2376 (eval $ac_try) 2>&5 2377 ac_status=$? 2378 echo "$as_me:2378: \$? = $ac_status" >&5 2379 (exit $ac_status); } && 2380 test -f conftest2.$ac_objext && { (eval echo "$as_me:2380: \"$ac_try\"") >&5 2381 (eval $ac_try) 2>&5 2382 ac_status=$? 2383 echo "$as_me:2383: \$? = $ac_status" >&5 2384 (exit $ac_status); }; 2385then 2386 eval cf_cv_prog_CC_c_o=yes 2387else 2388 eval cf_cv_prog_CC_c_o=no 2389fi 2390rm -rf conftest* 2391 2392fi 2393if test $cf_cv_prog_CC_c_o = yes; then 2394 echo "$as_me:2394: result: yes" >&5 2395echo "${ECHO_T}yes" >&6 2396else 2397 echo "$as_me:2397: result: no" >&5 2398echo "${ECHO_T}no" >&6 2399fi 2400 2401echo "$as_me:2401: checking for POSIXized ISC" >&5 2402echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6 2403if test -d /etc/conf/kconfig.d && 2404 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 2405then 2406 echo "$as_me:2406: result: yes" >&5 2407echo "${ECHO_T}yes" >&6 2408 ISC=yes # If later tests want to check for ISC. 2409 2410cat >>confdefs.h <<\EOF 2411#define _POSIX_SOURCE 1 2412EOF 2413 2414 if test "$GCC" = yes; then 2415 CC="$CC -posix" 2416 else 2417 CC="$CC -Xp" 2418 fi 2419else 2420 echo "$as_me:2420: result: no" >&5 2421echo "${ECHO_T}no" >&6 2422 ISC= 2423fi 2424 2425echo "$as_me:2425: checking for ${CC:-cc} option to accept ANSI C" >&5 2426echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6 2427if test "${cf_cv_ansi_cc+set}" = set; then 2428 echo $ECHO_N "(cached) $ECHO_C" >&6 2429else 2430 2431cf_cv_ansi_cc=no 2432cf_save_CFLAGS="$CFLAGS" 2433cf_save_CPPFLAGS="$CPPFLAGS" 2434# Don't try gcc -ansi; that turns off useful extensions and 2435# breaks some systems' header files. 2436# AIX -qlanglvl=ansi 2437# Ultrix and OSF/1 -std1 2438# HP-UX -Aa -D_HPUX_SOURCE 2439# SVR4 -Xc 2440# UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes) 2441for cf_arg in "-DCC_HAS_PROTOS" \ 2442 "" \ 2443 -qlanglvl=ansi \ 2444 -std1 \ 2445 -Ae \ 2446 "-Aa -D_HPUX_SOURCE" \ 2447 -Xc 2448do 2449 2450cf_fix_cppflags=no 2451cf_new_cflags= 2452cf_new_cppflags= 2453cf_new_extra_cppflags= 2454 2455for cf_add_cflags in $cf_arg 2456do 2457case $cf_fix_cppflags in 2458no) 2459 case $cf_add_cflags in #(vi 2460 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 2461 case $cf_add_cflags in 2462 -D*) 2463 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2464 2465 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2466 && test -z "${cf_tst_cflags}" \ 2467 && cf_fix_cppflags=yes 2468 2469 if test $cf_fix_cppflags = yes ; then 2470 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2471 continue 2472 elif test "${cf_tst_cflags}" = "\"'" ; then 2473 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2474 continue 2475 fi 2476 ;; 2477 esac 2478 case "$CPPFLAGS" in 2479 *$cf_add_cflags) #(vi 2480 ;; 2481 *) #(vi 2482 case $cf_add_cflags in #(vi 2483 -D*) 2484 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2485 2486CPPFLAGS=`echo "$CPPFLAGS" | \ 2487 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2488 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2489 2490 ;; 2491 esac 2492 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 2493 ;; 2494 esac 2495 ;; 2496 *) 2497 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 2498 ;; 2499 esac 2500 ;; 2501yes) 2502 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2503 2504 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 2505 2506 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2507 && test -z "${cf_tst_cflags}" \ 2508 && cf_fix_cppflags=no 2509 ;; 2510esac 2511done 2512 2513if test -n "$cf_new_cflags" ; then 2514 2515 CFLAGS="$CFLAGS $cf_new_cflags" 2516fi 2517 2518if test -n "$cf_new_cppflags" ; then 2519 2520 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 2521fi 2522 2523if test -n "$cf_new_extra_cppflags" ; then 2524 2525 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 2526fi 2527 2528 cat >conftest.$ac_ext <<_ACEOF 2529#line 2529 "configure" 2530#include "confdefs.h" 2531 2532#ifndef CC_HAS_PROTOS 2533#if !defined(__STDC__) || (__STDC__ != 1) 2534choke me 2535#endif 2536#endif 2537 2538int 2539main () 2540{ 2541 2542 int test (int i, double x); 2543 struct s1 {int (*f) (int a);}; 2544 struct s2 {int (*f) (double a);}; 2545 ; 2546 return 0; 2547} 2548_ACEOF 2549rm -f conftest.$ac_objext 2550if { (eval echo "$as_me:2550: \"$ac_compile\"") >&5 2551 (eval $ac_compile) 2>&5 2552 ac_status=$? 2553 echo "$as_me:2553: \$? = $ac_status" >&5 2554 (exit $ac_status); } && 2555 { ac_try='test -s conftest.$ac_objext' 2556 { (eval echo "$as_me:2556: \"$ac_try\"") >&5 2557 (eval $ac_try) 2>&5 2558 ac_status=$? 2559 echo "$as_me:2559: \$? = $ac_status" >&5 2560 (exit $ac_status); }; }; then 2561 cf_cv_ansi_cc="$cf_arg"; break 2562else 2563 echo "$as_me: failed program was:" >&5 2564cat conftest.$ac_ext >&5 2565fi 2566rm -f conftest.$ac_objext conftest.$ac_ext 2567done 2568CFLAGS="$cf_save_CFLAGS" 2569CPPFLAGS="$cf_save_CPPFLAGS" 2570 2571fi 2572echo "$as_me:2572: result: $cf_cv_ansi_cc" >&5 2573echo "${ECHO_T}$cf_cv_ansi_cc" >&6 2574 2575if test "$cf_cv_ansi_cc" != "no"; then 2576if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then 2577 2578cf_fix_cppflags=no 2579cf_new_cflags= 2580cf_new_cppflags= 2581cf_new_extra_cppflags= 2582 2583for cf_add_cflags in $cf_cv_ansi_cc 2584do 2585case $cf_fix_cppflags in 2586no) 2587 case $cf_add_cflags in #(vi 2588 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 2589 case $cf_add_cflags in 2590 -D*) 2591 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2592 2593 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2594 && test -z "${cf_tst_cflags}" \ 2595 && cf_fix_cppflags=yes 2596 2597 if test $cf_fix_cppflags = yes ; then 2598 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2599 continue 2600 elif test "${cf_tst_cflags}" = "\"'" ; then 2601 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2602 continue 2603 fi 2604 ;; 2605 esac 2606 case "$CPPFLAGS" in 2607 *$cf_add_cflags) #(vi 2608 ;; 2609 *) #(vi 2610 case $cf_add_cflags in #(vi 2611 -D*) 2612 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2613 2614CPPFLAGS=`echo "$CPPFLAGS" | \ 2615 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2616 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2617 2618 ;; 2619 esac 2620 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 2621 ;; 2622 esac 2623 ;; 2624 *) 2625 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 2626 ;; 2627 esac 2628 ;; 2629yes) 2630 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2631 2632 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 2633 2634 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2635 && test -z "${cf_tst_cflags}" \ 2636 && cf_fix_cppflags=no 2637 ;; 2638esac 2639done 2640 2641if test -n "$cf_new_cflags" ; then 2642 2643 CFLAGS="$CFLAGS $cf_new_cflags" 2644fi 2645 2646if test -n "$cf_new_cppflags" ; then 2647 2648 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 2649fi 2650 2651if test -n "$cf_new_extra_cppflags" ; then 2652 2653 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 2654fi 2655 2656else 2657 cat >>confdefs.h <<\EOF 2658#define CC_HAS_PROTOS 1 2659EOF 2660 2661fi 2662fi 2663 2664if test "$cf_cv_ansi_cc" = "no"; then 2665 { { echo "$as_me:2665: error: Your compiler does not appear to recognize prototypes. 2666You have the following choices: 2667 a. adjust your compiler options 2668 b. get an up-to-date compiler 2669 c. use a wrapper such as unproto" >&5 2670echo "$as_me: error: Your compiler does not appear to recognize prototypes. 2671You have the following choices: 2672 a. adjust your compiler options 2673 b. get an up-to-date compiler 2674 c. use a wrapper such as unproto" >&2;} 2675 { (exit 1); exit 1; }; } 2676fi 2677 2678case $cf_cv_system_name in 2679os2*) 2680 CFLAGS="$CFLAGS -Zmt" 2681 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__" 2682 CXXFLAGS="$CXXFLAGS -Zmt" 2683 # autoconf's macro sets -Zexe and suffix both, which conflict:w 2684 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll" 2685 ac_cv_exeext=.exe 2686 ;; 2687esac 2688 2689PROG_EXT="$EXEEXT" 2690 2691test -n "$PROG_EXT" && cat >>confdefs.h <<EOF 2692#define PROG_EXT "$PROG_EXT" 2693EOF 2694 2695if test "$cross_compiling" = yes ; then 2696 LDCONFIG=: 2697else 2698case "$cf_cv_system_name" in #(vi 2699dragonfly*|freebsd*) #(vi 2700 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R" 2701 ;; 2702*) LDPATH=$PATH:/sbin:/usr/sbin 2703 # Extract the first word of "ldconfig", so it can be a program name with args. 2704set dummy ldconfig; ac_word=$2 2705echo "$as_me:2705: checking for $ac_word" >&5 2706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2707if test "${ac_cv_path_LDCONFIG+set}" = set; then 2708 echo $ECHO_N "(cached) $ECHO_C" >&6 2709else 2710 case $LDCONFIG in 2711 [\\/]* | ?:[\\/]*) 2712 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. 2713 ;; 2714 *) 2715 ac_save_IFS=$IFS; IFS=$ac_path_separator 2716ac_dummy="$LDPATH" 2717for ac_dir in $ac_dummy; do 2718 IFS=$ac_save_IFS 2719 test -z "$ac_dir" && ac_dir=. 2720 if $as_executable_p "$ac_dir/$ac_word"; then 2721 ac_cv_path_LDCONFIG="$ac_dir/$ac_word" 2722 echo "$as_me:2722: found $ac_dir/$ac_word" >&5 2723 break 2724fi 2725done 2726 2727 ;; 2728esac 2729fi 2730LDCONFIG=$ac_cv_path_LDCONFIG 2731 2732if test -n "$LDCONFIG"; then 2733 echo "$as_me:2733: result: $LDCONFIG" >&5 2734echo "${ECHO_T}$LDCONFIG" >&6 2735else 2736 echo "$as_me:2736: result: no" >&5 2737echo "${ECHO_T}no" >&6 2738fi 2739 2740 ;; 2741esac 2742fi 2743 2744echo "$as_me:2744: checking if you want to ensure bool is consistent with C++" >&5 2745echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6 2746 2747# Check whether --with-cxx or --without-cxx was given. 2748if test "${with_cxx+set}" = set; then 2749 withval="$with_cxx" 2750 cf_with_cxx=$withval 2751else 2752 cf_with_cxx=yes 2753fi; 2754echo "$as_me:2754: result: $cf_with_cxx" >&5 2755echo "${ECHO_T}$cf_with_cxx" >&6 2756if test "X$cf_with_cxx" = Xno ; then 2757 CXX="" 2758 GXX="" 2759else 2760 # with autoconf 2.13, we can change the error to a warning: 2761 ac_ext=cc 2762ac_cpp='$CXXCPP $CPPFLAGS' 2763ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2764ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2765ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2766ac_main_return=return 2767if test -n "$ac_tool_prefix"; then 2768 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 2769 do 2770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2771set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2772echo "$as_me:2772: checking for $ac_word" >&5 2773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2774if test "${ac_cv_prog_CXX+set}" = set; then 2775 echo $ECHO_N "(cached) $ECHO_C" >&6 2776else 2777 if test -n "$CXX"; then 2778 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2779else 2780 ac_save_IFS=$IFS; IFS=$ac_path_separator 2781ac_dummy="$PATH" 2782for ac_dir in $ac_dummy; do 2783 IFS=$ac_save_IFS 2784 test -z "$ac_dir" && ac_dir=. 2785 $as_executable_p "$ac_dir/$ac_word" || continue 2786ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2787echo "$as_me:2787: found $ac_dir/$ac_word" >&5 2788break 2789done 2790 2791fi 2792fi 2793CXX=$ac_cv_prog_CXX 2794if test -n "$CXX"; then 2795 echo "$as_me:2795: result: $CXX" >&5 2796echo "${ECHO_T}$CXX" >&6 2797else 2798 echo "$as_me:2798: result: no" >&5 2799echo "${ECHO_T}no" >&6 2800fi 2801 2802 test -n "$CXX" && break 2803 done 2804fi 2805if test -z "$CXX"; then 2806 ac_ct_CXX=$CXX 2807 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 2808do 2809 # Extract the first word of "$ac_prog", so it can be a program name with args. 2810set dummy $ac_prog; ac_word=$2 2811echo "$as_me:2811: checking for $ac_word" >&5 2812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2813if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2814 echo $ECHO_N "(cached) $ECHO_C" >&6 2815else 2816 if test -n "$ac_ct_CXX"; then 2817 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2818else 2819 ac_save_IFS=$IFS; IFS=$ac_path_separator 2820ac_dummy="$PATH" 2821for ac_dir in $ac_dummy; do 2822 IFS=$ac_save_IFS 2823 test -z "$ac_dir" && ac_dir=. 2824 $as_executable_p "$ac_dir/$ac_word" || continue 2825ac_cv_prog_ac_ct_CXX="$ac_prog" 2826echo "$as_me:2826: found $ac_dir/$ac_word" >&5 2827break 2828done 2829 2830fi 2831fi 2832ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2833if test -n "$ac_ct_CXX"; then 2834 echo "$as_me:2834: result: $ac_ct_CXX" >&5 2835echo "${ECHO_T}$ac_ct_CXX" >&6 2836else 2837 echo "$as_me:2837: result: no" >&5 2838echo "${ECHO_T}no" >&6 2839fi 2840 2841 test -n "$ac_ct_CXX" && break 2842done 2843test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 2844 2845 CXX=$ac_ct_CXX 2846fi 2847 2848# Provide some information about the compiler. 2849echo "$as_me:2849:" \ 2850 "checking for C++ compiler version" >&5 2851ac_compiler=`set X $ac_compile; echo $2` 2852{ (eval echo "$as_me:2852: \"$ac_compiler --version </dev/null >&5\"") >&5 2853 (eval $ac_compiler --version </dev/null >&5) 2>&5 2854 ac_status=$? 2855 echo "$as_me:2855: \$? = $ac_status" >&5 2856 (exit $ac_status); } 2857{ (eval echo "$as_me:2857: \"$ac_compiler -v </dev/null >&5\"") >&5 2858 (eval $ac_compiler -v </dev/null >&5) 2>&5 2859 ac_status=$? 2860 echo "$as_me:2860: \$? = $ac_status" >&5 2861 (exit $ac_status); } 2862{ (eval echo "$as_me:2862: \"$ac_compiler -V </dev/null >&5\"") >&5 2863 (eval $ac_compiler -V </dev/null >&5) 2>&5 2864 ac_status=$? 2865 echo "$as_me:2865: \$? = $ac_status" >&5 2866 (exit $ac_status); } 2867 2868echo "$as_me:2868: checking whether we are using the GNU C++ compiler" >&5 2869echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 2870if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2871 echo $ECHO_N "(cached) $ECHO_C" >&6 2872else 2873 cat >conftest.$ac_ext <<_ACEOF 2874#line 2874 "configure" 2875#include "confdefs.h" 2876 2877int 2878main () 2879{ 2880#ifndef __GNUC__ 2881 choke me 2882#endif 2883 2884 ; 2885 return 0; 2886} 2887_ACEOF 2888rm -f conftest.$ac_objext 2889if { (eval echo "$as_me:2889: \"$ac_compile\"") >&5 2890 (eval $ac_compile) 2>&5 2891 ac_status=$? 2892 echo "$as_me:2892: \$? = $ac_status" >&5 2893 (exit $ac_status); } && 2894 { ac_try='test -s conftest.$ac_objext' 2895 { (eval echo "$as_me:2895: \"$ac_try\"") >&5 2896 (eval $ac_try) 2>&5 2897 ac_status=$? 2898 echo "$as_me:2898: \$? = $ac_status" >&5 2899 (exit $ac_status); }; }; then 2900 ac_compiler_gnu=yes 2901else 2902 echo "$as_me: failed program was:" >&5 2903cat conftest.$ac_ext >&5 2904ac_compiler_gnu=no 2905fi 2906rm -f conftest.$ac_objext conftest.$ac_ext 2907ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2908 2909fi 2910echo "$as_me:2910: result: $ac_cv_cxx_compiler_gnu" >&5 2911echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 2912GXX=`test $ac_compiler_gnu = yes && echo yes` 2913ac_test_CXXFLAGS=${CXXFLAGS+set} 2914ac_save_CXXFLAGS=$CXXFLAGS 2915CXXFLAGS="-g" 2916echo "$as_me:2916: checking whether $CXX accepts -g" >&5 2917echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 2918if test "${ac_cv_prog_cxx_g+set}" = set; then 2919 echo $ECHO_N "(cached) $ECHO_C" >&6 2920else 2921 cat >conftest.$ac_ext <<_ACEOF 2922#line 2922 "configure" 2923#include "confdefs.h" 2924 2925int 2926main () 2927{ 2928 2929 ; 2930 return 0; 2931} 2932_ACEOF 2933rm -f conftest.$ac_objext 2934if { (eval echo "$as_me:2934: \"$ac_compile\"") >&5 2935 (eval $ac_compile) 2>&5 2936 ac_status=$? 2937 echo "$as_me:2937: \$? = $ac_status" >&5 2938 (exit $ac_status); } && 2939 { ac_try='test -s conftest.$ac_objext' 2940 { (eval echo "$as_me:2940: \"$ac_try\"") >&5 2941 (eval $ac_try) 2>&5 2942 ac_status=$? 2943 echo "$as_me:2943: \$? = $ac_status" >&5 2944 (exit $ac_status); }; }; then 2945 ac_cv_prog_cxx_g=yes 2946else 2947 echo "$as_me: failed program was:" >&5 2948cat conftest.$ac_ext >&5 2949ac_cv_prog_cxx_g=no 2950fi 2951rm -f conftest.$ac_objext conftest.$ac_ext 2952fi 2953echo "$as_me:2953: result: $ac_cv_prog_cxx_g" >&5 2954echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 2955if test "$ac_test_CXXFLAGS" = set; then 2956 CXXFLAGS=$ac_save_CXXFLAGS 2957elif test $ac_cv_prog_cxx_g = yes; then 2958 if test "$GXX" = yes; then 2959 CXXFLAGS="-g -O2" 2960 else 2961 CXXFLAGS="-g" 2962 fi 2963else 2964 if test "$GXX" = yes; then 2965 CXXFLAGS="-O2" 2966 else 2967 CXXFLAGS= 2968 fi 2969fi 2970for ac_declaration in \ 2971 ''\ 2972 '#include <stdlib.h>' \ 2973 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2974 'extern "C" void std::exit (int); using std::exit;' \ 2975 'extern "C" void exit (int) throw ();' \ 2976 'extern "C" void exit (int);' \ 2977 'void exit (int);' 2978do 2979 cat >conftest.$ac_ext <<_ACEOF 2980#line 2980 "configure" 2981#include "confdefs.h" 2982#include <stdlib.h> 2983$ac_declaration 2984int 2985main () 2986{ 2987exit (42); 2988 ; 2989 return 0; 2990} 2991_ACEOF 2992rm -f conftest.$ac_objext 2993if { (eval echo "$as_me:2993: \"$ac_compile\"") >&5 2994 (eval $ac_compile) 2>&5 2995 ac_status=$? 2996 echo "$as_me:2996: \$? = $ac_status" >&5 2997 (exit $ac_status); } && 2998 { ac_try='test -s conftest.$ac_objext' 2999 { (eval echo "$as_me:2999: \"$ac_try\"") >&5 3000 (eval $ac_try) 2>&5 3001 ac_status=$? 3002 echo "$as_me:3002: \$? = $ac_status" >&5 3003 (exit $ac_status); }; }; then 3004 : 3005else 3006 echo "$as_me: failed program was:" >&5 3007cat conftest.$ac_ext >&5 3008continue 3009fi 3010rm -f conftest.$ac_objext conftest.$ac_ext 3011 cat >conftest.$ac_ext <<_ACEOF 3012#line 3012 "configure" 3013#include "confdefs.h" 3014$ac_declaration 3015int 3016main () 3017{ 3018exit (42); 3019 ; 3020 return 0; 3021} 3022_ACEOF 3023rm -f conftest.$ac_objext 3024if { (eval echo "$as_me:3024: \"$ac_compile\"") >&5 3025 (eval $ac_compile) 2>&5 3026 ac_status=$? 3027 echo "$as_me:3027: \$? = $ac_status" >&5 3028 (exit $ac_status); } && 3029 { ac_try='test -s conftest.$ac_objext' 3030 { (eval echo "$as_me:3030: \"$ac_try\"") >&5 3031 (eval $ac_try) 2>&5 3032 ac_status=$? 3033 echo "$as_me:3033: \$? = $ac_status" >&5 3034 (exit $ac_status); }; }; then 3035 break 3036else 3037 echo "$as_me: failed program was:" >&5 3038cat conftest.$ac_ext >&5 3039fi 3040rm -f conftest.$ac_objext conftest.$ac_ext 3041done 3042rm -rf conftest* 3043if test -n "$ac_declaration"; then 3044 echo '#ifdef __cplusplus' >>confdefs.h 3045 echo $ac_declaration >>confdefs.h 3046 echo '#endif' >>confdefs.h 3047fi 3048 3049ac_ext=c 3050ac_cpp='$CPP $CPPFLAGS' 3051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3053ac_compiler_gnu=$ac_cv_c_compiler_gnu 3054ac_main_return=return 3055 3056 # autoconf 2.5x removed the error - by hardcoding it to g++. 3057 if test "$CXX" = "g++" ; then 3058 # Extract the first word of "g++", so it can be a program name with args. 3059set dummy g++; ac_word=$2 3060echo "$as_me:3060: checking for $ac_word" >&5 3061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3062if test "${ac_cv_path_CXX+set}" = set; then 3063 echo $ECHO_N "(cached) $ECHO_C" >&6 3064else 3065 case $CXX in 3066 [\\/]* | ?:[\\/]*) 3067 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 3068 ;; 3069 *) 3070 ac_save_IFS=$IFS; IFS=$ac_path_separator 3071ac_dummy="$PATH" 3072for ac_dir in $ac_dummy; do 3073 IFS=$ac_save_IFS 3074 test -z "$ac_dir" && ac_dir=. 3075 if $as_executable_p "$ac_dir/$ac_word"; then 3076 ac_cv_path_CXX="$ac_dir/$ac_word" 3077 echo "$as_me:3077: found $ac_dir/$ac_word" >&5 3078 break 3079fi 3080done 3081 3082 ;; 3083esac 3084fi 3085CXX=$ac_cv_path_CXX 3086 3087if test -n "$CXX"; then 3088 echo "$as_me:3088: result: $CXX" >&5 3089echo "${ECHO_T}$CXX" >&6 3090else 3091 echo "$as_me:3091: result: no" >&5 3092echo "${ECHO_T}no" >&6 3093fi 3094 3095 fi 3096 if test "$CXX" = "g++" ; then 3097 { echo "$as_me:3097: WARNING: ignoring hardcoded g++" >&5 3098echo "$as_me: WARNING: ignoring hardcoded g++" >&2;} 3099 cf_with_cxx=no; CXX=""; GXX=""; 3100 fi 3101fi 3102 3103GXX_VERSION=none 3104if test "$GXX" = yes; then 3105 echo "$as_me:3105: checking version of g++" >&5 3106echo $ECHO_N "checking version of g++... $ECHO_C" >&6 3107 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`" 3108 test -z "$GXX_VERSION" && GXX_VERSION=unknown 3109 echo "$as_me:3109: result: $GXX_VERSION" >&5 3110echo "${ECHO_T}$GXX_VERSION" >&6 3111fi 3112 3113case $GXX_VERSION in 31141*|2.[0-6]*) 3115 # GXX=""; CXX=""; ac_cv_prog_gxx=no 3116 # cf_cxx_library=no 3117 { echo "$as_me:3117: WARNING: templates do not work" >&5 3118echo "$as_me: WARNING: templates do not work" >&2;} 3119 ;; 3120esac 3121 3122echo "$as_me:3122: checking if you want to build C++ binding and demo" >&5 3123echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6 3124 3125# Check whether --with-cxx-binding or --without-cxx-binding was given. 3126if test "${with_cxx_binding+set}" = set; then 3127 withval="$with_cxx_binding" 3128 cf_with_cxx_binding=$withval 3129else 3130 cf_with_cxx_binding=$cf_with_cxx 3131fi; 3132echo "$as_me:3132: result: $cf_with_cxx_binding" >&5 3133echo "${ECHO_T}$cf_with_cxx_binding" >&6 3134 3135echo "$as_me:3135: checking if you want to build with Ada95" >&5 3136echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6 3137 3138# Check whether --with-ada or --without-ada was given. 3139if test "${with_ada+set}" = set; then 3140 withval="$with_ada" 3141 cf_with_ada=$withval 3142else 3143 cf_with_ada=yes 3144fi; 3145echo "$as_me:3145: result: $cf_with_ada" >&5 3146echo "${ECHO_T}$cf_with_ada" >&6 3147 3148echo "$as_me:3148: checking if you want to install manpages" >&5 3149echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6 3150 3151# Check whether --with-manpages or --without-manpages was given. 3152if test "${with_manpages+set}" = set; then 3153 withval="$with_manpages" 3154 cf_with_manpages=$withval 3155else 3156 cf_with_manpages=yes 3157fi; 3158echo "$as_me:3158: result: $cf_with_manpages" >&5 3159echo "${ECHO_T}$cf_with_manpages" >&6 3160 3161echo "$as_me:3161: checking if you want to build programs such as tic" >&5 3162echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6 3163 3164# Check whether --with-progs or --without-progs was given. 3165if test "${with_progs+set}" = set; then 3166 withval="$with_progs" 3167 cf_with_progs=$withval 3168else 3169 cf_with_progs=yes 3170fi; 3171echo "$as_me:3171: result: $cf_with_progs" >&5 3172echo "${ECHO_T}$cf_with_progs" >&6 3173 3174echo "$as_me:3174: checking if you want to build test-programs" >&5 3175echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6 3176 3177# Check whether --with-tests or --without-tests was given. 3178if test "${with_tests+set}" = set; then 3179 withval="$with_tests" 3180 cf_with_tests=$withval 3181else 3182 cf_with_tests=yes 3183fi; 3184echo "$as_me:3184: result: $cf_with_tests" >&5 3185echo "${ECHO_T}$cf_with_tests" >&6 3186 3187echo "$as_me:3187: checking if you wish to install curses.h" >&5 3188echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6 3189 3190# Check whether --with-curses-h or --without-curses-h was given. 3191if test "${with_curses_h+set}" = set; then 3192 withval="$with_curses_h" 3193 with_curses_h=$withval 3194else 3195 with_curses_h=yes 3196fi; 3197echo "$as_me:3197: result: $with_curses_h" >&5 3198echo "${ECHO_T}$with_curses_h" >&6 3199 3200modules_to_build="ncurses" 3201if test "X$cf_with_progs" != Xno ; then 3202modules_to_build="$modules_to_build progs tack" 3203fi 3204modules_to_build="$modules_to_build panel menu form" 3205 3206test "$program_prefix" != NONE && 3207 program_transform_name="s,^,$program_prefix,;$program_transform_name" 3208# Use a double $ so make ignores it. 3209test "$program_suffix" != NONE && 3210 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 3211# Double any \ or $. echo might interpret backslashes. 3212# By default was `s,x,x', remove it if useless. 3213cat <<\_ACEOF >conftest.sed 3214s/[\\$]/&&/g;s/;s,x,x,$// 3215_ACEOF 3216program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 3217rm conftest.sed 3218 3219for ac_prog in mawk gawk nawk awk 3220do 3221 # Extract the first word of "$ac_prog", so it can be a program name with args. 3222set dummy $ac_prog; ac_word=$2 3223echo "$as_me:3223: checking for $ac_word" >&5 3224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3225if test "${ac_cv_prog_AWK+set}" = set; then 3226 echo $ECHO_N "(cached) $ECHO_C" >&6 3227else 3228 if test -n "$AWK"; then 3229 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3230else 3231 ac_save_IFS=$IFS; IFS=$ac_path_separator 3232ac_dummy="$PATH" 3233for ac_dir in $ac_dummy; do 3234 IFS=$ac_save_IFS 3235 test -z "$ac_dir" && ac_dir=. 3236 $as_executable_p "$ac_dir/$ac_word" || continue 3237ac_cv_prog_AWK="$ac_prog" 3238echo "$as_me:3238: found $ac_dir/$ac_word" >&5 3239break 3240done 3241 3242fi 3243fi 3244AWK=$ac_cv_prog_AWK 3245if test -n "$AWK"; then 3246 echo "$as_me:3246: result: $AWK" >&5 3247echo "${ECHO_T}$AWK" >&6 3248else 3249 echo "$as_me:3249: result: no" >&5 3250echo "${ECHO_T}no" >&6 3251fi 3252 3253 test -n "$AWK" && break 3254done 3255 3256test -z "$AWK" && { { echo "$as_me:3256: error: No awk program found" >&5 3257echo "$as_me: error: No awk program found" >&2;} 3258 { (exit 1); exit 1; }; } 3259 3260echo "$as_me:3260: checking for egrep" >&5 3261echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3262if test "${ac_cv_prog_egrep+set}" = set; then 3263 echo $ECHO_N "(cached) $ECHO_C" >&6 3264else 3265 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3266 then ac_cv_prog_egrep='grep -E' 3267 else ac_cv_prog_egrep='egrep' 3268 fi 3269fi 3270echo "$as_me:3270: result: $ac_cv_prog_egrep" >&5 3271echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3272 EGREP=$ac_cv_prog_egrep 3273 3274test -z "$EGREP" && { { echo "$as_me:3274: error: No egrep program found" >&5 3275echo "$as_me: error: No egrep program found" >&2;} 3276 { (exit 1); exit 1; }; } 3277 3278# Find a good install program. We prefer a C program (faster), 3279# so one script is as good as another. But avoid the broken or 3280# incompatible versions: 3281# SysV /etc/install, /usr/sbin/install 3282# SunOS /usr/etc/install 3283# IRIX /sbin/install 3284# AIX /bin/install 3285# AmigaOS /C/install, which installs bootblocks on floppy discs 3286# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3287# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3288# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3289# ./install, which can be erroneously created by make from ./install.sh. 3290echo "$as_me:3290: checking for a BSD compatible install" >&5 3291echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 3292if test -z "$INSTALL"; then 3293if test "${ac_cv_path_install+set}" = set; then 3294 echo $ECHO_N "(cached) $ECHO_C" >&6 3295else 3296 ac_save_IFS=$IFS; IFS=$ac_path_separator 3297 for ac_dir in $PATH; do 3298 IFS=$ac_save_IFS 3299 # Account for people who put trailing slashes in PATH elements. 3300 case $ac_dir/ in 3301 / | ./ | .// | /cC/* \ 3302 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 3303 | /usr/ucb/* ) ;; 3304 *) 3305 # OSF1 and SCO ODT 3.0 have their own names for install. 3306 # Don't use installbsd from OSF since it installs stuff as root 3307 # by default. 3308 for ac_prog in ginstall scoinst install; do 3309 if $as_executable_p "$ac_dir/$ac_prog"; then 3310 if test $ac_prog = install && 3311 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 3312 # AIX install. It has an incompatible calling convention. 3313 : 3314 elif test $ac_prog = install && 3315 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 3316 # program-specific install script used by HP pwplus--don't use. 3317 : 3318 else 3319 ac_cv_path_install="$ac_dir/$ac_prog -c" 3320 break 2 3321 fi 3322 fi 3323 done 3324 ;; 3325 esac 3326 done 3327 3328fi 3329 if test "${ac_cv_path_install+set}" = set; then 3330 INSTALL=$ac_cv_path_install 3331 else 3332 # As a last resort, use the slow shell script. We don't cache a 3333 # path for INSTALL within a source directory, because that will 3334 # break other packages using the cache if that directory is 3335 # removed, or if the path is relative. 3336 INSTALL=$ac_install_sh 3337 fi 3338fi 3339echo "$as_me:3339: result: $INSTALL" >&5 3340echo "${ECHO_T}$INSTALL" >&6 3341 3342# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3343# It thinks the first close brace ends the variable substitution. 3344test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3345 3346test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3347 3348test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3349 3350case $INSTALL in 3351/*) 3352 ;; 3353*) 3354 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'` 3355 test -z "$cf_dir" && cf_dir=. 3356 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'` 3357 ;; 3358esac 3359 3360for ac_prog in tdlint lint alint splint lclint 3361do 3362 # Extract the first word of "$ac_prog", so it can be a program name with args. 3363set dummy $ac_prog; ac_word=$2 3364echo "$as_me:3364: checking for $ac_word" >&5 3365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3366if test "${ac_cv_prog_LINT+set}" = set; then 3367 echo $ECHO_N "(cached) $ECHO_C" >&6 3368else 3369 if test -n "$LINT"; then 3370 ac_cv_prog_LINT="$LINT" # Let the user override the test. 3371else 3372 ac_save_IFS=$IFS; IFS=$ac_path_separator 3373ac_dummy="$PATH" 3374for ac_dir in $ac_dummy; do 3375 IFS=$ac_save_IFS 3376 test -z "$ac_dir" && ac_dir=. 3377 $as_executable_p "$ac_dir/$ac_word" || continue 3378ac_cv_prog_LINT="$ac_prog" 3379echo "$as_me:3379: found $ac_dir/$ac_word" >&5 3380break 3381done 3382 3383fi 3384fi 3385LINT=$ac_cv_prog_LINT 3386if test -n "$LINT"; then 3387 echo "$as_me:3387: result: $LINT" >&5 3388echo "${ECHO_T}$LINT" >&6 3389else 3390 echo "$as_me:3390: result: no" >&5 3391echo "${ECHO_T}no" >&6 3392fi 3393 3394 test -n "$LINT" && break 3395done 3396 3397echo "$as_me:3397: checking whether ln -s works" >&5 3398echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3399LN_S=$as_ln_s 3400if test "$LN_S" = "ln -s"; then 3401 echo "$as_me:3401: result: yes" >&5 3402echo "${ECHO_T}yes" >&6 3403else 3404 echo "$as_me:3404: result: no, using $LN_S" >&5 3405echo "${ECHO_T}no, using $LN_S" >&6 3406fi 3407 3408echo "$as_me:3408: checking if $LN_S -f options work" >&5 3409echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6 3410 3411rm -f conf$$.src conf$$dst 3412echo >conf$$.dst 3413echo first >conf$$.src 3414if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then 3415 cf_prog_ln_sf=yes 3416else 3417 cf_prog_ln_sf=no 3418fi 3419rm -f conf$$.dst conf$$src 3420echo "$as_me:3420: result: $cf_prog_ln_sf" >&5 3421echo "${ECHO_T}$cf_prog_ln_sf" >&6 3422 3423test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f" 3424 3425echo "$as_me:3425: checking for long file names" >&5 3426echo $ECHO_N "checking for long file names... $ECHO_C" >&6 3427if test "${ac_cv_sys_long_file_names+set}" = set; then 3428 echo $ECHO_N "(cached) $ECHO_C" >&6 3429else 3430 ac_cv_sys_long_file_names=yes 3431# Test for long file names in all the places we know might matter: 3432# . the current directory, where building will happen 3433# $prefix/lib where we will be installing things 3434# $exec_prefix/lib likewise 3435# eval it to expand exec_prefix. 3436# $TMPDIR if set, where it might want to write temporary files 3437# if $TMPDIR is not set: 3438# /tmp where it might want to write temporary files 3439# /var/tmp likewise 3440# /usr/tmp likewise 3441if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then 3442 ac_tmpdirs=$TMPDIR 3443else 3444 ac_tmpdirs='/tmp /var/tmp /usr/tmp' 3445fi 3446for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do 3447 test -d $ac_dir || continue 3448 test -w $ac_dir || continue # It is less confusing to not echo anything here. 3449 ac_xdir=$ac_dir/cf$$ 3450 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue 3451 ac_tf1=$ac_xdir/conftest9012345 3452 ac_tf2=$ac_xdir/conftest9012346 3453 (echo 1 >$ac_tf1) 2>/dev/null 3454 (echo 2 >$ac_tf2) 2>/dev/null 3455 ac_val=`cat $ac_tf1 2>/dev/null` 3456 if test ! -f $ac_tf1 || test "$ac_val" != 1; then 3457 ac_cv_sys_long_file_names=no 3458 rm -rf $ac_xdir 2>/dev/null 3459 break 3460 fi 3461 rm -rf $ac_xdir 2>/dev/null 3462done 3463fi 3464echo "$as_me:3464: result: $ac_cv_sys_long_file_names" >&5 3465echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6 3466if test $ac_cv_sys_long_file_names = yes; then 3467 3468cat >>confdefs.h <<\EOF 3469#define HAVE_LONG_FILE_NAMES 1 3470EOF 3471 3472fi 3473 3474# if we find pkg-config, check if we should install the ".pc" files. 3475 3476echo "$as_me:3476: checking if you want to use pkg-config" >&5 3477echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6 3478 3479# Check whether --with-pkg-config or --without-pkg-config was given. 3480if test "${with_pkg_config+set}" = set; then 3481 withval="$with_pkg_config" 3482 cf_pkg_config=$withval 3483else 3484 cf_pkg_config=yes 3485fi; 3486echo "$as_me:3486: result: $cf_pkg_config" >&5 3487echo "${ECHO_T}$cf_pkg_config" >&6 3488 3489case $cf_pkg_config in #(vi 3490no) #(vi 3491 PKG_CONFIG=none 3492 ;; 3493yes) #(vi 3494 if test -n "$ac_tool_prefix"; then 3495 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 3496set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 3497echo "$as_me:3497: checking for $ac_word" >&5 3498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3499if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 3500 echo $ECHO_N "(cached) $ECHO_C" >&6 3501else 3502 case $PKG_CONFIG in 3503 [\\/]* | ?:[\\/]*) 3504 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 3505 ;; 3506 *) 3507 ac_save_IFS=$IFS; IFS=$ac_path_separator 3508ac_dummy="$PATH" 3509for ac_dir in $ac_dummy; do 3510 IFS=$ac_save_IFS 3511 test -z "$ac_dir" && ac_dir=. 3512 if $as_executable_p "$ac_dir/$ac_word"; then 3513 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" 3514 echo "$as_me:3514: found $ac_dir/$ac_word" >&5 3515 break 3516fi 3517done 3518 3519 ;; 3520esac 3521fi 3522PKG_CONFIG=$ac_cv_path_PKG_CONFIG 3523 3524if test -n "$PKG_CONFIG"; then 3525 echo "$as_me:3525: result: $PKG_CONFIG" >&5 3526echo "${ECHO_T}$PKG_CONFIG" >&6 3527else 3528 echo "$as_me:3528: result: no" >&5 3529echo "${ECHO_T}no" >&6 3530fi 3531 3532fi 3533if test -z "$ac_cv_path_PKG_CONFIG"; then 3534 ac_pt_PKG_CONFIG=$PKG_CONFIG 3535 # Extract the first word of "pkg-config", so it can be a program name with args. 3536set dummy pkg-config; ac_word=$2 3537echo "$as_me:3537: checking for $ac_word" >&5 3538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3539if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 3540 echo $ECHO_N "(cached) $ECHO_C" >&6 3541else 3542 case $ac_pt_PKG_CONFIG in 3543 [\\/]* | ?:[\\/]*) 3544 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 3545 ;; 3546 *) 3547 ac_save_IFS=$IFS; IFS=$ac_path_separator 3548ac_dummy="$PATH" 3549for ac_dir in $ac_dummy; do 3550 IFS=$ac_save_IFS 3551 test -z "$ac_dir" && ac_dir=. 3552 if $as_executable_p "$ac_dir/$ac_word"; then 3553 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word" 3554 echo "$as_me:3554: found $ac_dir/$ac_word" >&5 3555 break 3556fi 3557done 3558 3559 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none" 3560 ;; 3561esac 3562fi 3563ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 3564 3565if test -n "$ac_pt_PKG_CONFIG"; then 3566 echo "$as_me:3566: result: $ac_pt_PKG_CONFIG" >&5 3567echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 3568else 3569 echo "$as_me:3569: result: no" >&5 3570echo "${ECHO_T}no" >&6 3571fi 3572 3573 PKG_CONFIG=$ac_pt_PKG_CONFIG 3574else 3575 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 3576fi 3577 3578 ;; 3579*) 3580 PKG_CONFIG=$withval 3581 ;; 3582esac 3583 3584test -z "$PKG_CONFIG" && PKG_CONFIG=none 3585if test "$PKG_CONFIG" != none ; then 3586 3587if test "x$prefix" != xNONE; then 3588 cf_path_syntax="$prefix" 3589else 3590 cf_path_syntax="$ac_default_prefix" 3591fi 3592 3593case ".$PKG_CONFIG" in #(vi 3594.\$\(*\)*|.\'*\'*) #(vi 3595 ;; 3596..|./*|.\\*) #(vi 3597 ;; 3598.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 3599 ;; 3600.\${*prefix}*) #(vi 3601 eval PKG_CONFIG="$PKG_CONFIG" 3602 case ".$PKG_CONFIG" in #(vi 3603 .NONE/*) 3604 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%` 3605 ;; 3606 esac 3607 ;; #(vi 3608.no|.NONE/*) 3609 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%` 3610 ;; 3611*) 3612 { { echo "$as_me:3612: error: expected a pathname, not \"$PKG_CONFIG\"" >&5 3613echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;} 3614 { (exit 1); exit 1; }; } 3615 ;; 3616esac 3617 3618fi 3619 3620if test "$PKG_CONFIG" != no ; then 3621 echo "$as_me:3621: checking if we should install .pc files for $PKG_CONFIG" >&5 3622echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6 3623 3624 # Leave this as something that can be overridden in the environment. 3625 if test -z "$PKG_CONFIG_LIBDIR" ; then 3626 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`/lib/pkgconfig 3627 fi 3628 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/^://' -e 's/:.*//'` 3629 if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then 3630 3631# Check whether --enable-pc-files or --disable-pc-files was given. 3632if test "${enable_pc_files+set}" = set; then 3633 enableval="$enable_pc_files" 3634 enable_pc_files=$enableval 3635else 3636 enable_pc_files=no 3637fi; 3638 echo "$as_me:3638: result: $enable_pc_files" >&5 3639echo "${ECHO_T}$enable_pc_files" >&6 3640 else 3641 echo "$as_me:3641: result: no" >&5 3642echo "${ECHO_T}no" >&6 3643 { echo "$as_me:3643: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&5 3644echo "$as_me: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&2;} 3645 enable_pc_files=no 3646 fi 3647fi 3648 3649echo "$as_me:3649: checking if we should assume mixed-case filenames" >&5 3650echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6 3651 3652# Check whether --enable-mixed-case or --disable-mixed-case was given. 3653if test "${enable_mixed_case+set}" = set; then 3654 enableval="$enable_mixed_case" 3655 enable_mixedcase=$enableval 3656else 3657 enable_mixedcase=auto 3658fi; 3659echo "$as_me:3659: result: $enable_mixedcase" >&5 3660echo "${ECHO_T}$enable_mixedcase" >&6 3661if test "$enable_mixedcase" = "auto" ; then 3662 3663echo "$as_me:3663: checking if filesystem supports mixed-case filenames" >&5 3664echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6 3665if test "${cf_cv_mixedcase+set}" = set; then 3666 echo $ECHO_N "(cached) $ECHO_C" >&6 3667else 3668 3669if test "$cross_compiling" = yes ; then 3670 case $target_alias in #(vi 3671 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi 3672 cf_cv_mixedcase=no 3673 ;; 3674 *) 3675 cf_cv_mixedcase=yes 3676 ;; 3677 esac 3678else 3679 rm -f conftest CONFTEST 3680 echo test >conftest 3681 if test -f CONFTEST ; then 3682 cf_cv_mixedcase=no 3683 else 3684 cf_cv_mixedcase=yes 3685 fi 3686 rm -f conftest CONFTEST 3687fi 3688 3689fi 3690echo "$as_me:3690: result: $cf_cv_mixedcase" >&5 3691echo "${ECHO_T}$cf_cv_mixedcase" >&6 3692test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF 3693#define MIXEDCASE_FILENAMES 1 3694EOF 3695 3696else 3697 cf_cv_mixedcase=$enable_mixedcase 3698 if test "$enable_mixedcase" = "yes" ; then 3699 cat >>confdefs.h <<\EOF 3700#define MIXEDCASE_FILENAMES 1 3701EOF 3702 3703 fi 3704fi 3705 3706# do this after mixed-case option (tags/TAGS is not as important as tic). 3707echo "$as_me:3707: checking whether ${MAKE-make} sets \${MAKE}" >&5 3708echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 3709set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 3710if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 3711 echo $ECHO_N "(cached) $ECHO_C" >&6 3712else 3713 cat >conftest.make <<\EOF 3714all: 3715 @echo 'ac_maketemp="${MAKE}"' 3716EOF 3717# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3718eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 3719if test -n "$ac_maketemp"; then 3720 eval ac_cv_prog_make_${ac_make}_set=yes 3721else 3722 eval ac_cv_prog_make_${ac_make}_set=no 3723fi 3724rm -f conftest.make 3725fi 3726if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 3727 echo "$as_me:3727: result: yes" >&5 3728echo "${ECHO_T}yes" >&6 3729 SET_MAKE= 3730else 3731 echo "$as_me:3731: result: no" >&5 3732echo "${ECHO_T}no" >&6 3733 SET_MAKE="MAKE=${MAKE-make}" 3734fi 3735 3736for ac_prog in exctags ctags 3737do 3738 # Extract the first word of "$ac_prog", so it can be a program name with args. 3739set dummy $ac_prog; ac_word=$2 3740echo "$as_me:3740: checking for $ac_word" >&5 3741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3742if test "${ac_cv_prog_CTAGS+set}" = set; then 3743 echo $ECHO_N "(cached) $ECHO_C" >&6 3744else 3745 if test -n "$CTAGS"; then 3746 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test. 3747else 3748 ac_save_IFS=$IFS; IFS=$ac_path_separator 3749ac_dummy="$PATH" 3750for ac_dir in $ac_dummy; do 3751 IFS=$ac_save_IFS 3752 test -z "$ac_dir" && ac_dir=. 3753 $as_executable_p "$ac_dir/$ac_word" || continue 3754ac_cv_prog_CTAGS="$ac_prog" 3755echo "$as_me:3755: found $ac_dir/$ac_word" >&5 3756break 3757done 3758 3759fi 3760fi 3761CTAGS=$ac_cv_prog_CTAGS 3762if test -n "$CTAGS"; then 3763 echo "$as_me:3763: result: $CTAGS" >&5 3764echo "${ECHO_T}$CTAGS" >&6 3765else 3766 echo "$as_me:3766: result: no" >&5 3767echo "${ECHO_T}no" >&6 3768fi 3769 3770 test -n "$CTAGS" && break 3771done 3772 3773for ac_prog in exetags etags 3774do 3775 # Extract the first word of "$ac_prog", so it can be a program name with args. 3776set dummy $ac_prog; ac_word=$2 3777echo "$as_me:3777: checking for $ac_word" >&5 3778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3779if test "${ac_cv_prog_ETAGS+set}" = set; then 3780 echo $ECHO_N "(cached) $ECHO_C" >&6 3781else 3782 if test -n "$ETAGS"; then 3783 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test. 3784else 3785 ac_save_IFS=$IFS; IFS=$ac_path_separator 3786ac_dummy="$PATH" 3787for ac_dir in $ac_dummy; do 3788 IFS=$ac_save_IFS 3789 test -z "$ac_dir" && ac_dir=. 3790 $as_executable_p "$ac_dir/$ac_word" || continue 3791ac_cv_prog_ETAGS="$ac_prog" 3792echo "$as_me:3792: found $ac_dir/$ac_word" >&5 3793break 3794done 3795 3796fi 3797fi 3798ETAGS=$ac_cv_prog_ETAGS 3799if test -n "$ETAGS"; then 3800 echo "$as_me:3800: result: $ETAGS" >&5 3801echo "${ECHO_T}$ETAGS" >&6 3802else 3803 echo "$as_me:3803: result: no" >&5 3804echo "${ECHO_T}no" >&6 3805fi 3806 3807 test -n "$ETAGS" && break 3808done 3809 3810# Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args. 3811set dummy ${CTAGS:-ctags}; ac_word=$2 3812echo "$as_me:3812: checking for $ac_word" >&5 3813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3814if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then 3815 echo $ECHO_N "(cached) $ECHO_C" >&6 3816else 3817 if test -n "$MAKE_LOWER_TAGS"; then 3818 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test. 3819else 3820 ac_save_IFS=$IFS; IFS=$ac_path_separator 3821ac_dummy="$PATH" 3822for ac_dir in $ac_dummy; do 3823 IFS=$ac_save_IFS 3824 test -z "$ac_dir" && ac_dir=. 3825 $as_executable_p "$ac_dir/$ac_word" || continue 3826ac_cv_prog_MAKE_LOWER_TAGS="yes" 3827echo "$as_me:3827: found $ac_dir/$ac_word" >&5 3828break 3829done 3830 3831 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no" 3832fi 3833fi 3834MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS 3835if test -n "$MAKE_LOWER_TAGS"; then 3836 echo "$as_me:3836: result: $MAKE_LOWER_TAGS" >&5 3837echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6 3838else 3839 echo "$as_me:3839: result: no" >&5 3840echo "${ECHO_T}no" >&6 3841fi 3842 3843if test "$cf_cv_mixedcase" = yes ; then 3844 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args. 3845set dummy ${ETAGS:-etags}; ac_word=$2 3846echo "$as_me:3846: checking for $ac_word" >&5 3847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3848if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then 3849 echo $ECHO_N "(cached) $ECHO_C" >&6 3850else 3851 if test -n "$MAKE_UPPER_TAGS"; then 3852 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test. 3853else 3854 ac_save_IFS=$IFS; IFS=$ac_path_separator 3855ac_dummy="$PATH" 3856for ac_dir in $ac_dummy; do 3857 IFS=$ac_save_IFS 3858 test -z "$ac_dir" && ac_dir=. 3859 $as_executable_p "$ac_dir/$ac_word" || continue 3860ac_cv_prog_MAKE_UPPER_TAGS="yes" 3861echo "$as_me:3861: found $ac_dir/$ac_word" >&5 3862break 3863done 3864 3865 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no" 3866fi 3867fi 3868MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS 3869if test -n "$MAKE_UPPER_TAGS"; then 3870 echo "$as_me:3870: result: $MAKE_UPPER_TAGS" >&5 3871echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6 3872else 3873 echo "$as_me:3873: result: no" >&5 3874echo "${ECHO_T}no" >&6 3875fi 3876 3877else 3878 MAKE_UPPER_TAGS=no 3879fi 3880 3881if test "$MAKE_UPPER_TAGS" = yes ; then 3882 MAKE_UPPER_TAGS= 3883else 3884 MAKE_UPPER_TAGS="#" 3885fi 3886 3887if test "$MAKE_LOWER_TAGS" = yes ; then 3888 MAKE_LOWER_TAGS= 3889else 3890 MAKE_LOWER_TAGS="#" 3891fi 3892 3893echo "$as_me:3893: checking for makeflags variable" >&5 3894echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6 3895if test "${cf_cv_makeflags+set}" = set; then 3896 echo $ECHO_N "(cached) $ECHO_C" >&6 3897else 3898 3899 cf_cv_makeflags='' 3900 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}' 3901 do 3902 cat >cf_makeflags.tmp <<CF_EOF 3903SHELL = /bin/sh 3904all : 3905 @ echo '.$cf_option' 3906CF_EOF 3907 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'` 3908 case "$cf_result" in 3909 .*k) 3910 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null` 3911 case "$cf_result" in 3912 .*CC=*) cf_cv_makeflags= 3913 ;; 3914 *) cf_cv_makeflags=$cf_option 3915 ;; 3916 esac 3917 break 3918 ;; 3919 .-) ;; 3920 *) echo "given option \"$cf_option\", no match \"$cf_result\"" 3921 ;; 3922 esac 3923 done 3924 rm -f cf_makeflags.tmp 3925 3926fi 3927echo "$as_me:3927: result: $cf_cv_makeflags" >&5 3928echo "${ECHO_T}$cf_cv_makeflags" >&6 3929 3930if test -n "$ac_tool_prefix"; then 3931 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3932set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3933echo "$as_me:3933: checking for $ac_word" >&5 3934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3935if test "${ac_cv_prog_RANLIB+set}" = set; then 3936 echo $ECHO_N "(cached) $ECHO_C" >&6 3937else 3938 if test -n "$RANLIB"; then 3939 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3940else 3941 ac_save_IFS=$IFS; IFS=$ac_path_separator 3942ac_dummy="$PATH" 3943for ac_dir in $ac_dummy; do 3944 IFS=$ac_save_IFS 3945 test -z "$ac_dir" && ac_dir=. 3946 $as_executable_p "$ac_dir/$ac_word" || continue 3947ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3948echo "$as_me:3948: found $ac_dir/$ac_word" >&5 3949break 3950done 3951 3952fi 3953fi 3954RANLIB=$ac_cv_prog_RANLIB 3955if test -n "$RANLIB"; then 3956 echo "$as_me:3956: result: $RANLIB" >&5 3957echo "${ECHO_T}$RANLIB" >&6 3958else 3959 echo "$as_me:3959: result: no" >&5 3960echo "${ECHO_T}no" >&6 3961fi 3962 3963fi 3964if test -z "$ac_cv_prog_RANLIB"; then 3965 ac_ct_RANLIB=$RANLIB 3966 # Extract the first word of "ranlib", so it can be a program name with args. 3967set dummy ranlib; ac_word=$2 3968echo "$as_me:3968: checking for $ac_word" >&5 3969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3970if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3971 echo $ECHO_N "(cached) $ECHO_C" >&6 3972else 3973 if test -n "$ac_ct_RANLIB"; then 3974 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3975else 3976 ac_save_IFS=$IFS; IFS=$ac_path_separator 3977ac_dummy="$PATH" 3978for ac_dir in $ac_dummy; do 3979 IFS=$ac_save_IFS 3980 test -z "$ac_dir" && ac_dir=. 3981 $as_executable_p "$ac_dir/$ac_word" || continue 3982ac_cv_prog_ac_ct_RANLIB="ranlib" 3983echo "$as_me:3983: found $ac_dir/$ac_word" >&5 3984break 3985done 3986 3987 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'" 3988fi 3989fi 3990ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3991if test -n "$ac_ct_RANLIB"; then 3992 echo "$as_me:3992: result: $ac_ct_RANLIB" >&5 3993echo "${ECHO_T}$ac_ct_RANLIB" >&6 3994else 3995 echo "$as_me:3995: result: no" >&5 3996echo "${ECHO_T}no" >&6 3997fi 3998 3999 RANLIB=$ac_ct_RANLIB 4000else 4001 RANLIB="$ac_cv_prog_RANLIB" 4002fi 4003 4004if test -n "$ac_tool_prefix"; then 4005 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. 4006set dummy ${ac_tool_prefix}ld; ac_word=$2 4007echo "$as_me:4007: checking for $ac_word" >&5 4008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4009if test "${ac_cv_prog_LD+set}" = set; then 4010 echo $ECHO_N "(cached) $ECHO_C" >&6 4011else 4012 if test -n "$LD"; then 4013 ac_cv_prog_LD="$LD" # Let the user override the test. 4014else 4015 ac_save_IFS=$IFS; IFS=$ac_path_separator 4016ac_dummy="$PATH" 4017for ac_dir in $ac_dummy; do 4018 IFS=$ac_save_IFS 4019 test -z "$ac_dir" && ac_dir=. 4020 $as_executable_p "$ac_dir/$ac_word" || continue 4021ac_cv_prog_LD="${ac_tool_prefix}ld" 4022echo "$as_me:4022: found $ac_dir/$ac_word" >&5 4023break 4024done 4025 4026fi 4027fi 4028LD=$ac_cv_prog_LD 4029if test -n "$LD"; then 4030 echo "$as_me:4030: result: $LD" >&5 4031echo "${ECHO_T}$LD" >&6 4032else 4033 echo "$as_me:4033: result: no" >&5 4034echo "${ECHO_T}no" >&6 4035fi 4036 4037fi 4038if test -z "$ac_cv_prog_LD"; then 4039 ac_ct_LD=$LD 4040 # Extract the first word of "ld", so it can be a program name with args. 4041set dummy ld; ac_word=$2 4042echo "$as_me:4042: checking for $ac_word" >&5 4043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4044if test "${ac_cv_prog_ac_ct_LD+set}" = set; then 4045 echo $ECHO_N "(cached) $ECHO_C" >&6 4046else 4047 if test -n "$ac_ct_LD"; then 4048 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. 4049else 4050 ac_save_IFS=$IFS; IFS=$ac_path_separator 4051ac_dummy="$PATH" 4052for ac_dir in $ac_dummy; do 4053 IFS=$ac_save_IFS 4054 test -z "$ac_dir" && ac_dir=. 4055 $as_executable_p "$ac_dir/$ac_word" || continue 4056ac_cv_prog_ac_ct_LD="ld" 4057echo "$as_me:4057: found $ac_dir/$ac_word" >&5 4058break 4059done 4060 4061 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld" 4062fi 4063fi 4064ac_ct_LD=$ac_cv_prog_ac_ct_LD 4065if test -n "$ac_ct_LD"; then 4066 echo "$as_me:4066: result: $ac_ct_LD" >&5 4067echo "${ECHO_T}$ac_ct_LD" >&6 4068else 4069 echo "$as_me:4069: result: no" >&5 4070echo "${ECHO_T}no" >&6 4071fi 4072 4073 LD=$ac_ct_LD 4074else 4075 LD="$ac_cv_prog_LD" 4076fi 4077 4078if test -n "$ac_tool_prefix"; then 4079 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4080set dummy ${ac_tool_prefix}ar; ac_word=$2 4081echo "$as_me:4081: checking for $ac_word" >&5 4082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4083if test "${ac_cv_prog_AR+set}" = set; then 4084 echo $ECHO_N "(cached) $ECHO_C" >&6 4085else 4086 if test -n "$AR"; then 4087 ac_cv_prog_AR="$AR" # Let the user override the test. 4088else 4089 ac_save_IFS=$IFS; IFS=$ac_path_separator 4090ac_dummy="$PATH" 4091for ac_dir in $ac_dummy; do 4092 IFS=$ac_save_IFS 4093 test -z "$ac_dir" && ac_dir=. 4094 $as_executable_p "$ac_dir/$ac_word" || continue 4095ac_cv_prog_AR="${ac_tool_prefix}ar" 4096echo "$as_me:4096: found $ac_dir/$ac_word" >&5 4097break 4098done 4099 4100fi 4101fi 4102AR=$ac_cv_prog_AR 4103if test -n "$AR"; then 4104 echo "$as_me:4104: result: $AR" >&5 4105echo "${ECHO_T}$AR" >&6 4106else 4107 echo "$as_me:4107: result: no" >&5 4108echo "${ECHO_T}no" >&6 4109fi 4110 4111fi 4112if test -z "$ac_cv_prog_AR"; then 4113 ac_ct_AR=$AR 4114 # Extract the first word of "ar", so it can be a program name with args. 4115set dummy ar; ac_word=$2 4116echo "$as_me:4116: checking for $ac_word" >&5 4117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4118if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 4119 echo $ECHO_N "(cached) $ECHO_C" >&6 4120else 4121 if test -n "$ac_ct_AR"; then 4122 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4123else 4124 ac_save_IFS=$IFS; IFS=$ac_path_separator 4125ac_dummy="$PATH" 4126for ac_dir in $ac_dummy; do 4127 IFS=$ac_save_IFS 4128 test -z "$ac_dir" && ac_dir=. 4129 $as_executable_p "$ac_dir/$ac_word" || continue 4130ac_cv_prog_ac_ct_AR="ar" 4131echo "$as_me:4131: found $ac_dir/$ac_word" >&5 4132break 4133done 4134 4135 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" 4136fi 4137fi 4138ac_ct_AR=$ac_cv_prog_ac_ct_AR 4139if test -n "$ac_ct_AR"; then 4140 echo "$as_me:4140: result: $ac_ct_AR" >&5 4141echo "${ECHO_T}$ac_ct_AR" >&6 4142else 4143 echo "$as_me:4143: result: no" >&5 4144echo "${ECHO_T}no" >&6 4145fi 4146 4147 AR=$ac_ct_AR 4148else 4149 AR="$ac_cv_prog_AR" 4150fi 4151 4152if test -n "$ac_tool_prefix"; then 4153 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4154set dummy ${ac_tool_prefix}ar; ac_word=$2 4155echo "$as_me:4155: checking for $ac_word" >&5 4156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4157if test "${ac_cv_prog_AR+set}" = set; then 4158 echo $ECHO_N "(cached) $ECHO_C" >&6 4159else 4160 if test -n "$AR"; then 4161 ac_cv_prog_AR="$AR" # Let the user override the test. 4162else 4163 ac_save_IFS=$IFS; IFS=$ac_path_separator 4164ac_dummy="$PATH" 4165for ac_dir in $ac_dummy; do 4166 IFS=$ac_save_IFS 4167 test -z "$ac_dir" && ac_dir=. 4168 $as_executable_p "$ac_dir/$ac_word" || continue 4169ac_cv_prog_AR="${ac_tool_prefix}ar" 4170echo "$as_me:4170: found $ac_dir/$ac_word" >&5 4171break 4172done 4173 4174fi 4175fi 4176AR=$ac_cv_prog_AR 4177if test -n "$AR"; then 4178 echo "$as_me:4178: result: $AR" >&5 4179echo "${ECHO_T}$AR" >&6 4180else 4181 echo "$as_me:4181: result: no" >&5 4182echo "${ECHO_T}no" >&6 4183fi 4184 4185fi 4186if test -z "$ac_cv_prog_AR"; then 4187 ac_ct_AR=$AR 4188 # Extract the first word of "ar", so it can be a program name with args. 4189set dummy ar; ac_word=$2 4190echo "$as_me:4190: checking for $ac_word" >&5 4191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4192if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 4193 echo $ECHO_N "(cached) $ECHO_C" >&6 4194else 4195 if test -n "$ac_ct_AR"; then 4196 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4197else 4198 ac_save_IFS=$IFS; IFS=$ac_path_separator 4199ac_dummy="$PATH" 4200for ac_dir in $ac_dummy; do 4201 IFS=$ac_save_IFS 4202 test -z "$ac_dir" && ac_dir=. 4203 $as_executable_p "$ac_dir/$ac_word" || continue 4204ac_cv_prog_ac_ct_AR="ar" 4205echo "$as_me:4205: found $ac_dir/$ac_word" >&5 4206break 4207done 4208 4209 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" 4210fi 4211fi 4212ac_ct_AR=$ac_cv_prog_ac_ct_AR 4213if test -n "$ac_ct_AR"; then 4214 echo "$as_me:4214: result: $ac_ct_AR" >&5 4215echo "${ECHO_T}$ac_ct_AR" >&6 4216else 4217 echo "$as_me:4217: result: no" >&5 4218echo "${ECHO_T}no" >&6 4219fi 4220 4221 AR=$ac_ct_AR 4222else 4223 AR="$ac_cv_prog_AR" 4224fi 4225 4226echo "$as_me:4226: checking for options to update archives" >&5 4227echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6 4228if test "${cf_cv_ar_flags+set}" = set; then 4229 echo $ECHO_N "(cached) $ECHO_C" >&6 4230else 4231 4232 cf_cv_ar_flags=unknown 4233 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv 4234 do 4235 4236 # check if $ARFLAGS already contains this choice 4237 if test "x$ARFLAGS" != "x" ; then 4238 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"` 4239 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then 4240 cf_cv_ar_flags= 4241 break 4242 fi 4243 fi 4244 4245 rm -f conftest.$ac_cv_objext 4246 rm -f conftest.a 4247 4248 cat >conftest.$ac_ext <<EOF 4249#line 4249 "configure" 4250int testdata[3] = { 123, 456, 789 }; 4251EOF 4252 if { (eval echo "$as_me:4252: \"$ac_compile\"") >&5 4253 (eval $ac_compile) 2>&5 4254 ac_status=$? 4255 echo "$as_me:4255: \$? = $ac_status" >&5 4256 (exit $ac_status); } ; then 4257 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5 4258 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null 4259 if test -f conftest.a ; then 4260 cf_cv_ar_flags=$cf_ar_flags 4261 break 4262 fi 4263 else 4264 test -n "$verbose" && echo " cannot compile test-program" 1>&6 4265 4266echo "${as_me:-configure}:4266: testing cannot compile test-program ..." 1>&5 4267 4268 break 4269 fi 4270 done 4271 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext 4272 4273fi 4274echo "$as_me:4274: result: $cf_cv_ar_flags" >&5 4275echo "${ECHO_T}$cf_cv_ar_flags" >&6 4276 4277if test -n "$ARFLAGS" ; then 4278 if test -n "$cf_cv_ar_flags" ; then 4279 ARFLAGS="$ARFLAGS $cf_cv_ar_flags" 4280 fi 4281else 4282 ARFLAGS=$cf_cv_ar_flags 4283fi 4284 4285echo "$as_me:4285: checking if you have specified an install-prefix" >&5 4286echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6 4287 4288# Check whether --with-install-prefix or --without-install-prefix was given. 4289if test "${with_install_prefix+set}" = set; then 4290 withval="$with_install_prefix" 4291 case "$withval" in #(vi 4292 yes|no) #(vi 4293 ;; 4294 *) DESTDIR="$withval" 4295 ;; 4296 esac 4297fi; 4298echo "$as_me:4298: result: $DESTDIR" >&5 4299echo "${ECHO_T}$DESTDIR" >&6 4300 4301############################################################################### 4302 4303# If we're cross-compiling, allow the user to override the tools and their 4304# options. The configure script is oriented toward identifying the host 4305# compiler, etc., but we need a build compiler to generate parts of the source. 4306 4307if test "$cross_compiling" = yes ; then 4308 4309 # defaults that we might want to override 4310 : ${BUILD_CFLAGS:=''} 4311 : ${BUILD_CPPFLAGS:=''} 4312 : ${BUILD_LDFLAGS:=''} 4313 : ${BUILD_LIBS:=''} 4314 : ${BUILD_EXEEXT:='$x'} 4315 : ${BUILD_OBJEXT:='o'} 4316 4317# Check whether --with-build-cc or --without-build-cc was given. 4318if test "${with_build_cc+set}" = set; then 4319 withval="$with_build_cc" 4320 BUILD_CC="$withval" 4321else 4322 for ac_prog in gcc cc cl 4323do 4324 # Extract the first word of "$ac_prog", so it can be a program name with args. 4325set dummy $ac_prog; ac_word=$2 4326echo "$as_me:4326: checking for $ac_word" >&5 4327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4328if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4329 echo $ECHO_N "(cached) $ECHO_C" >&6 4330else 4331 if test -n "$BUILD_CC"; then 4332 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4333else 4334 ac_save_IFS=$IFS; IFS=$ac_path_separator 4335ac_dummy="$PATH" 4336for ac_dir in $ac_dummy; do 4337 IFS=$ac_save_IFS 4338 test -z "$ac_dir" && ac_dir=. 4339 $as_executable_p "$ac_dir/$ac_word" || continue 4340ac_cv_prog_BUILD_CC="$ac_prog" 4341echo "$as_me:4341: found $ac_dir/$ac_word" >&5 4342break 4343done 4344 4345fi 4346fi 4347BUILD_CC=$ac_cv_prog_BUILD_CC 4348if test -n "$BUILD_CC"; then 4349 echo "$as_me:4349: result: $BUILD_CC" >&5 4350echo "${ECHO_T}$BUILD_CC" >&6 4351else 4352 echo "$as_me:4352: result: no" >&5 4353echo "${ECHO_T}no" >&6 4354fi 4355 4356 test -n "$BUILD_CC" && break 4357done 4358 4359fi; 4360 echo "$as_me:4360: checking for native build C compiler" >&5 4361echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6 4362 echo "$as_me:4362: result: $BUILD_CC" >&5 4363echo "${ECHO_T}$BUILD_CC" >&6 4364 4365 echo "$as_me:4365: checking for native build C preprocessor" >&5 4366echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6 4367 4368# Check whether --with-build-cpp or --without-build-cpp was given. 4369if test "${with_build_cpp+set}" = set; then 4370 withval="$with_build_cpp" 4371 BUILD_CPP="$withval" 4372else 4373 BUILD_CPP='${BUILD_CC} -E' 4374fi; 4375 echo "$as_me:4375: result: $BUILD_CPP" >&5 4376echo "${ECHO_T}$BUILD_CPP" >&6 4377 4378 echo "$as_me:4378: checking for native build C flags" >&5 4379echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6 4380 4381# Check whether --with-build-cflags or --without-build-cflags was given. 4382if test "${with_build_cflags+set}" = set; then 4383 withval="$with_build_cflags" 4384 BUILD_CFLAGS="$withval" 4385fi; 4386 echo "$as_me:4386: result: $BUILD_CFLAGS" >&5 4387echo "${ECHO_T}$BUILD_CFLAGS" >&6 4388 4389 echo "$as_me:4389: checking for native build C preprocessor-flags" >&5 4390echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6 4391 4392# Check whether --with-build-cppflags or --without-build-cppflags was given. 4393if test "${with_build_cppflags+set}" = set; then 4394 withval="$with_build_cppflags" 4395 BUILD_CPPFLAGS="$withval" 4396fi; 4397 echo "$as_me:4397: result: $BUILD_CPPFLAGS" >&5 4398echo "${ECHO_T}$BUILD_CPPFLAGS" >&6 4399 4400 echo "$as_me:4400: checking for native build linker-flags" >&5 4401echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6 4402 4403# Check whether --with-build-ldflags or --without-build-ldflags was given. 4404if test "${with_build_ldflags+set}" = set; then 4405 withval="$with_build_ldflags" 4406 BUILD_LDFLAGS="$withval" 4407fi; 4408 echo "$as_me:4408: result: $BUILD_LDFLAGS" >&5 4409echo "${ECHO_T}$BUILD_LDFLAGS" >&6 4410 4411 echo "$as_me:4411: checking for native build linker-libraries" >&5 4412echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6 4413 4414# Check whether --with-build-libs or --without-build-libs was given. 4415if test "${with_build_libs+set}" = set; then 4416 withval="$with_build_libs" 4417 BUILD_LIBS="$withval" 4418fi; 4419 echo "$as_me:4419: result: $BUILD_LIBS" >&5 4420echo "${ECHO_T}$BUILD_LIBS" >&6 4421 4422 # this assumes we're on Unix. 4423 BUILD_EXEEXT= 4424 BUILD_OBJEXT=o 4425 4426 : ${BUILD_CC:='${CC}'} 4427 4428 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then 4429 { { echo "$as_me:4429: error: Cross-build requires two compilers. 4430Use --with-build-cc to specify the native compiler." >&5 4431echo "$as_me: error: Cross-build requires two compilers. 4432Use --with-build-cc to specify the native compiler." >&2;} 4433 { (exit 1); exit 1; }; } 4434 fi 4435 4436else 4437 : ${BUILD_CC:='${CC}'} 4438 : ${BUILD_CPP:='${CPP}'} 4439 : ${BUILD_CFLAGS:='${CFLAGS}'} 4440 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'} 4441 : ${BUILD_LDFLAGS:='${LDFLAGS}'} 4442 : ${BUILD_LIBS:='${LIBS}'} 4443 : ${BUILD_EXEEXT:='$x'} 4444 : ${BUILD_OBJEXT:='o'} 4445fi 4446 4447############################################################################### 4448 4449### Options to allow the user to specify the set of libraries which are used. 4450### Use "--without-normal --with-shared" to allow the default model to be 4451### shared, for example. 4452cf_list_models="" 4453 4454echo "$as_me:4454: checking if libtool -version-number should be used" >&5 4455echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6 4456 4457# Check whether --enable-libtool-version or --disable-libtool-version was given. 4458if test "${enable_libtool_version+set}" = set; then 4459 enableval="$enable_libtool_version" 4460 test "$enableval" != no && enableval=yes 4461 if test "$enableval" != "yes" ; then 4462 cf_libtool_version=no 4463 else 4464 cf_libtool_version=yes 4465 fi 4466else 4467 enableval=yes 4468 cf_libtool_version=yes 4469 4470fi; 4471echo "$as_me:4471: result: $cf_libtool_version" >&5 4472echo "${ECHO_T}$cf_libtool_version" >&6 4473 4474if test "$cf_libtool_version" = yes ; then 4475 LIBTOOL_VERSION="-version-number" 4476else 4477 LIBTOOL_VERSION="-version-info" 4478fi 4479 4480LIBTOOL= 4481 4482# common library maintenance symbols that are convenient for libtool scripts: 4483LIB_CREATE='${AR} -cr' 4484LIB_OBJECT='${OBJECTS}' 4485LIB_SUFFIX=.a 4486LIB_PREP="$RANLIB" 4487 4488# symbols used to prop libtool up to enable it to determine what it should be 4489# doing: 4490LIB_CLEAN= 4491LIB_COMPILE= 4492LIB_LINK='${CC}' 4493LIB_INSTALL= 4494LIB_UNINSTALL= 4495 4496echo "$as_me:4496: checking if you want to build libraries with libtool" >&5 4497echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6 4498 4499# Check whether --with-libtool or --without-libtool was given. 4500if test "${with_libtool+set}" = set; then 4501 withval="$with_libtool" 4502 with_libtool=$withval 4503else 4504 with_libtool=no 4505fi; 4506echo "$as_me:4506: result: $with_libtool" >&5 4507echo "${ECHO_T}$with_libtool" >&6 4508if test "$with_libtool" != "no"; then 4509 4510 if test "$with_libtool" != "yes" ; then 4511 4512if test "x$prefix" != xNONE; then 4513 cf_path_syntax="$prefix" 4514else 4515 cf_path_syntax="$ac_default_prefix" 4516fi 4517 4518case ".$with_libtool" in #(vi 4519.\$\(*\)*|.\'*\'*) #(vi 4520 ;; 4521..|./*|.\\*) #(vi 4522 ;; 4523.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 4524 ;; 4525.\${*prefix}*) #(vi 4526 eval with_libtool="$with_libtool" 4527 case ".$with_libtool" in #(vi 4528 .NONE/*) 4529 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%` 4530 ;; 4531 esac 4532 ;; #(vi 4533.no|.NONE/*) 4534 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%` 4535 ;; 4536*) 4537 { { echo "$as_me:4537: error: expected a pathname, not \"$with_libtool\"" >&5 4538echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;} 4539 { (exit 1); exit 1; }; } 4540 ;; 4541esac 4542 4543 LIBTOOL=$with_libtool 4544 else 4545 # Extract the first word of "libtool", so it can be a program name with args. 4546set dummy libtool; ac_word=$2 4547echo "$as_me:4547: checking for $ac_word" >&5 4548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4549if test "${ac_cv_path_LIBTOOL+set}" = set; then 4550 echo $ECHO_N "(cached) $ECHO_C" >&6 4551else 4552 case $LIBTOOL in 4553 [\\/]* | ?:[\\/]*) 4554 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path. 4555 ;; 4556 *) 4557 ac_save_IFS=$IFS; IFS=$ac_path_separator 4558ac_dummy="$PATH" 4559for ac_dir in $ac_dummy; do 4560 IFS=$ac_save_IFS 4561 test -z "$ac_dir" && ac_dir=. 4562 if $as_executable_p "$ac_dir/$ac_word"; then 4563 ac_cv_path_LIBTOOL="$ac_dir/$ac_word" 4564 echo "$as_me:4564: found $ac_dir/$ac_word" >&5 4565 break 4566fi 4567done 4568 4569 ;; 4570esac 4571fi 4572LIBTOOL=$ac_cv_path_LIBTOOL 4573 4574if test -n "$LIBTOOL"; then 4575 echo "$as_me:4575: result: $LIBTOOL" >&5 4576echo "${ECHO_T}$LIBTOOL" >&6 4577else 4578 echo "$as_me:4578: result: no" >&5 4579echo "${ECHO_T}no" >&6 4580fi 4581 4582 fi 4583 if test -z "$LIBTOOL" ; then 4584 { { echo "$as_me:4584: error: Cannot find libtool" >&5 4585echo "$as_me: error: Cannot find libtool" >&2;} 4586 { (exit 1); exit 1; }; } 4587 fi 4588 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} -o' 4589 LIB_OBJECT='${OBJECTS:.o=.lo}' 4590 LIB_SUFFIX=.la 4591 LIB_CLEAN='${LIBTOOL} --mode=clean' 4592 LIB_COMPILE='${LIBTOOL} --mode=compile' 4593 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}' 4594 LIB_INSTALL='${LIBTOOL} --mode=install' 4595 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall' 4596 LIB_PREP=: 4597 4598 # Show the version of libtool 4599 echo "$as_me:4599: checking version of libtool" >&5 4600echo $ECHO_N "checking version of libtool... $ECHO_C" >&6 4601 4602 # Save the version in a cache variable - this is not entirely a good 4603 # thing, but the version string from libtool is very ugly, and for 4604 # bug reports it might be useful to have the original string. "(" 4605 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'` 4606 echo "$as_me:4606: result: $cf_cv_libtool_version" >&5 4607echo "${ECHO_T}$cf_cv_libtool_version" >&6 4608 if test -z "$cf_cv_libtool_version" ; then 4609 { { echo "$as_me:4609: error: This is not GNU libtool" >&5 4610echo "$as_me: error: This is not GNU libtool" >&2;} 4611 { (exit 1); exit 1; }; } 4612 fi 4613 4614 # special hack to add -no-undefined (which libtool should do for itself) 4615 LT_UNDEF= 4616 case "$cf_cv_system_name" in #(vi 4617 cygwin*|mingw32*|uwin*|aix[456]) #(vi 4618 LT_UNDEF=-no-undefined 4619 ;; 4620 esac 4621 4622 # special hack to add --tag option for C++ compiler 4623 case $cf_cv_libtool_version in #(vi 4624 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi 4625 LIBTOOL_CXX="$LIBTOOL --tag=CXX" 4626 LIBTOOL="$LIBTOOL --tag=CC" 4627 ;; 4628 *) 4629 LIBTOOL_CXX="$LIBTOOL" 4630 ;; 4631 esac 4632else 4633 LIBTOOL="" 4634 LIBTOOL_CXX="" 4635fi 4636 4637test -z "$LIBTOOL" && ECHO_LT= 4638 4639if test "$with_libtool" != "no" ; then 4640 4641cf_list_models="$cf_list_models libtool" 4642 4643else 4644 4645echo "$as_me:4645: checking if you want to build shared libraries" >&5 4646echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6 4647 4648# Check whether --with-shared or --without-shared was given. 4649if test "${with_shared+set}" = set; then 4650 withval="$with_shared" 4651 with_shared=$withval 4652else 4653 with_shared=no 4654fi; 4655echo "$as_me:4655: result: $with_shared" >&5 4656echo "${ECHO_T}$with_shared" >&6 4657test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared" 4658 4659echo "$as_me:4659: checking if you want to build static libraries" >&5 4660echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6 4661 4662# Check whether --with-normal or --without-normal was given. 4663if test "${with_normal+set}" = set; then 4664 withval="$with_normal" 4665 with_normal=$withval 4666else 4667 with_normal=yes 4668fi; 4669echo "$as_me:4669: result: $with_normal" >&5 4670echo "${ECHO_T}$with_normal" >&6 4671test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal" 4672 4673echo "$as_me:4673: checking if you want to build debug libraries" >&5 4674echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6 4675 4676# Check whether --with-debug or --without-debug was given. 4677if test "${with_debug+set}" = set; then 4678 withval="$with_debug" 4679 with_debug=$withval 4680else 4681 with_debug=yes 4682fi; 4683echo "$as_me:4683: result: $with_debug" >&5 4684echo "${ECHO_T}$with_debug" >&6 4685test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug" 4686 4687echo "$as_me:4687: checking if you want to build profiling libraries" >&5 4688echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6 4689 4690# Check whether --with-profile or --without-profile was given. 4691if test "${with_profile+set}" = set; then 4692 withval="$with_profile" 4693 with_profile=$withval 4694else 4695 with_profile=no 4696fi; 4697echo "$as_me:4697: result: $with_profile" >&5 4698echo "${ECHO_T}$with_profile" >&6 4699test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile" 4700 4701fi 4702 4703############################################################################### 4704 4705echo "$as_me:4705: checking for specified models" >&5 4706echo $ECHO_N "checking for specified models... $ECHO_C" >&6 4707test -z "$cf_list_models" && cf_list_models=normal 4708test "$with_libtool" != "no" && cf_list_models=libtool 4709echo "$as_me:4709: result: $cf_list_models" >&5 4710echo "${ECHO_T}$cf_list_models" >&6 4711 4712### Use the first model as the default, and save its suffix for use in building 4713### up test-applications. 4714echo "$as_me:4714: checking for default model" >&5 4715echo $ECHO_N "checking for default model... $ECHO_C" >&6 4716DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'` 4717echo "$as_me:4717: result: $DFT_LWR_MODEL" >&5 4718echo "${ECHO_T}$DFT_LWR_MODEL" >&6 4719 4720DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 4721 4722TICS_NAME=tic 4723 4724TINFO_NAME=tinfo 4725 4726LIB_NAME=ncurses 4727 4728LIB_DIR=../lib 4729LIB_2ND=../../lib 4730 4731 case $cf_cv_system_name in #(vi 4732 OS/2*|os2*) #(vi 4733 LIB_PREFIX='' 4734 ;; 4735 *) LIB_PREFIX='lib' 4736 ;; 4737 esac 4738cf_prefix=$LIB_PREFIX 4739 4740LIB_PREFIX=$cf_prefix 4741 4742LIB_SUFFIX= 4743 4744############################################################################### 4745 4746echo "$as_me:4746: checking if you want to build a separate terminfo library" >&5 4747echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6 4748 4749# Check whether --with-termlib or --without-termlib was given. 4750if test "${with_termlib+set}" = set; then 4751 withval="$with_termlib" 4752 with_termlib=$withval 4753else 4754 with_termlib=no 4755fi; 4756echo "$as_me:4756: result: $with_termlib" >&5 4757echo "${ECHO_T}$with_termlib" >&6 4758 4759echo "$as_me:4759: checking if you want to build a separate tic library" >&5 4760echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6 4761 4762# Check whether --with-ticlib or --without-ticlib was given. 4763if test "${with_ticlib+set}" = set; then 4764 withval="$with_ticlib" 4765 with_ticlib=$withval 4766else 4767 with_ticlib=no 4768fi; 4769echo "$as_me:4769: result: $with_ticlib" >&5 4770echo "${ECHO_T}$with_ticlib" >&6 4771 4772### Checks for special libraries, must be done up-front. 4773SHLIB_LIST="" 4774 4775echo "$as_me:4775: checking if you want to link with the GPM mouse library" >&5 4776echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6 4777 4778# Check whether --with-gpm or --without-gpm was given. 4779if test "${with_gpm+set}" = set; then 4780 withval="$with_gpm" 4781 with_gpm=$withval 4782else 4783 with_gpm=maybe 4784fi; 4785echo "$as_me:4785: result: $with_gpm" >&5 4786echo "${ECHO_T}$with_gpm" >&6 4787 4788if test "$with_gpm" != no ; then 4789 echo "$as_me:4789: checking for gpm.h" >&5 4790echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6 4791if test "${ac_cv_header_gpm_h+set}" = set; then 4792 echo $ECHO_N "(cached) $ECHO_C" >&6 4793else 4794 cat >conftest.$ac_ext <<_ACEOF 4795#line 4795 "configure" 4796#include "confdefs.h" 4797#include <gpm.h> 4798_ACEOF 4799if { (eval echo "$as_me:4799: \"$ac_cpp conftest.$ac_ext\"") >&5 4800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4801 ac_status=$? 4802 egrep -v '^ *\+' conftest.er1 >conftest.err 4803 rm -f conftest.er1 4804 cat conftest.err >&5 4805 echo "$as_me:4805: \$? = $ac_status" >&5 4806 (exit $ac_status); } >/dev/null; then 4807 if test -s conftest.err; then 4808 ac_cpp_err=$ac_c_preproc_warn_flag 4809 else 4810 ac_cpp_err= 4811 fi 4812else 4813 ac_cpp_err=yes 4814fi 4815if test -z "$ac_cpp_err"; then 4816 ac_cv_header_gpm_h=yes 4817else 4818 echo "$as_me: failed program was:" >&5 4819 cat conftest.$ac_ext >&5 4820 ac_cv_header_gpm_h=no 4821fi 4822rm -f conftest.err conftest.$ac_ext 4823fi 4824echo "$as_me:4824: result: $ac_cv_header_gpm_h" >&5 4825echo "${ECHO_T}$ac_cv_header_gpm_h" >&6 4826if test $ac_cv_header_gpm_h = yes; then 4827 4828 cat >>confdefs.h <<\EOF 4829#define HAVE_GPM_H 1 4830EOF 4831 4832 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then 4833 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6 4834 4835echo "${as_me:-configure}:4835: testing assuming we really have GPM library ..." 1>&5 4836 4837 cat >>confdefs.h <<\EOF 4838#define HAVE_LIBGPM 1 4839EOF 4840 4841 else 4842 echo "$as_me:4842: checking for Gpm_Open in -lgpm" >&5 4843echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6 4844if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then 4845 echo $ECHO_N "(cached) $ECHO_C" >&6 4846else 4847 ac_check_lib_save_LIBS=$LIBS 4848LIBS="-lgpm $LIBS" 4849cat >conftest.$ac_ext <<_ACEOF 4850#line 4850 "configure" 4851#include "confdefs.h" 4852 4853/* Override any gcc2 internal prototype to avoid an error. */ 4854#ifdef __cplusplus 4855extern "C" 4856#endif 4857/* We use char because int might match the return type of a gcc2 4858 builtin and then its argument prototype would still apply. */ 4859char Gpm_Open (); 4860int 4861main () 4862{ 4863Gpm_Open (); 4864 ; 4865 return 0; 4866} 4867_ACEOF 4868rm -f conftest.$ac_objext conftest$ac_exeext 4869if { (eval echo "$as_me:4869: \"$ac_link\"") >&5 4870 (eval $ac_link) 2>&5 4871 ac_status=$? 4872 echo "$as_me:4872: \$? = $ac_status" >&5 4873 (exit $ac_status); } && 4874 { ac_try='test -s conftest$ac_exeext' 4875 { (eval echo "$as_me:4875: \"$ac_try\"") >&5 4876 (eval $ac_try) 2>&5 4877 ac_status=$? 4878 echo "$as_me:4878: \$? = $ac_status" >&5 4879 (exit $ac_status); }; }; then 4880 ac_cv_lib_gpm_Gpm_Open=yes 4881else 4882 echo "$as_me: failed program was:" >&5 4883cat conftest.$ac_ext >&5 4884ac_cv_lib_gpm_Gpm_Open=no 4885fi 4886rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4887LIBS=$ac_check_lib_save_LIBS 4888fi 4889echo "$as_me:4889: result: $ac_cv_lib_gpm_Gpm_Open" >&5 4890echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6 4891if test $ac_cv_lib_gpm_Gpm_Open = yes; then 4892 : 4893else 4894 4895 { { echo "$as_me:4895: error: Cannot link with GPM library" >&5 4896echo "$as_me: error: Cannot link with GPM library" >&2;} 4897 { (exit 1); exit 1; }; } 4898 fi 4899 with_gpm=yes 4900 4901fi 4902 4903else 4904 4905 test "$with_gpm" != maybe && { echo "$as_me:4905: WARNING: Cannot find GPM header" >&5 4906echo "$as_me: WARNING: Cannot find GPM header" >&2;} 4907 with_gpm=no 4908 4909fi 4910 4911fi 4912 4913if test "$with_gpm" != no ; then 4914 echo "$as_me:4914: checking if you want to load GPM dynamically" >&5 4915echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6 4916 4917# Check whether --with-dlsym or --without-dlsym was given. 4918if test "${with_dlsym+set}" = set; then 4919 withval="$with_dlsym" 4920 with_dlsym=$withval 4921else 4922 with_dlsym=yes 4923fi; 4924 echo "$as_me:4924: result: $with_dlsym" >&5 4925echo "${ECHO_T}$with_dlsym" >&6 4926 if test "$with_dlsym" = yes ; then 4927 4928cf_have_dlsym=no 4929echo "$as_me:4929: checking for dlsym" >&5 4930echo $ECHO_N "checking for dlsym... $ECHO_C" >&6 4931if test "${ac_cv_func_dlsym+set}" = set; then 4932 echo $ECHO_N "(cached) $ECHO_C" >&6 4933else 4934 cat >conftest.$ac_ext <<_ACEOF 4935#line 4935 "configure" 4936#include "confdefs.h" 4937/* System header to define __stub macros and hopefully few prototypes, 4938 which can conflict with char dlsym (); below. */ 4939#include <assert.h> 4940/* Override any gcc2 internal prototype to avoid an error. */ 4941#ifdef __cplusplus 4942extern "C" 4943#endif 4944/* We use char because int might match the return type of a gcc2 4945 builtin and then its argument prototype would still apply. */ 4946char dlsym (); 4947char (*f) (); 4948 4949int 4950main () 4951{ 4952/* The GNU C library defines this for functions which it implements 4953 to always fail with ENOSYS. Some functions are actually named 4954 something starting with __ and the normal name is an alias. */ 4955#if defined (__stub_dlsym) || defined (__stub___dlsym) 4956choke me 4957#else 4958f = dlsym; 4959#endif 4960 4961 ; 4962 return 0; 4963} 4964_ACEOF 4965rm -f conftest.$ac_objext conftest$ac_exeext 4966if { (eval echo "$as_me:4966: \"$ac_link\"") >&5 4967 (eval $ac_link) 2>&5 4968 ac_status=$? 4969 echo "$as_me:4969: \$? = $ac_status" >&5 4970 (exit $ac_status); } && 4971 { ac_try='test -s conftest$ac_exeext' 4972 { (eval echo "$as_me:4972: \"$ac_try\"") >&5 4973 (eval $ac_try) 2>&5 4974 ac_status=$? 4975 echo "$as_me:4975: \$? = $ac_status" >&5 4976 (exit $ac_status); }; }; then 4977 ac_cv_func_dlsym=yes 4978else 4979 echo "$as_me: failed program was:" >&5 4980cat conftest.$ac_ext >&5 4981ac_cv_func_dlsym=no 4982fi 4983rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4984fi 4985echo "$as_me:4985: result: $ac_cv_func_dlsym" >&5 4986echo "${ECHO_T}$ac_cv_func_dlsym" >&6 4987if test $ac_cv_func_dlsym = yes; then 4988 cf_have_dlsym=yes 4989else 4990 4991cf_have_libdl=no 4992echo "$as_me:4992: checking for dlsym in -ldl" >&5 4993echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6 4994if test "${ac_cv_lib_dl_dlsym+set}" = set; then 4995 echo $ECHO_N "(cached) $ECHO_C" >&6 4996else 4997 ac_check_lib_save_LIBS=$LIBS 4998LIBS="-ldl $LIBS" 4999cat >conftest.$ac_ext <<_ACEOF 5000#line 5000 "configure" 5001#include "confdefs.h" 5002 5003/* Override any gcc2 internal prototype to avoid an error. */ 5004#ifdef __cplusplus 5005extern "C" 5006#endif 5007/* We use char because int might match the return type of a gcc2 5008 builtin and then its argument prototype would still apply. */ 5009char dlsym (); 5010int 5011main () 5012{ 5013dlsym (); 5014 ; 5015 return 0; 5016} 5017_ACEOF 5018rm -f conftest.$ac_objext conftest$ac_exeext 5019if { (eval echo "$as_me:5019: \"$ac_link\"") >&5 5020 (eval $ac_link) 2>&5 5021 ac_status=$? 5022 echo "$as_me:5022: \$? = $ac_status" >&5 5023 (exit $ac_status); } && 5024 { ac_try='test -s conftest$ac_exeext' 5025 { (eval echo "$as_me:5025: \"$ac_try\"") >&5 5026 (eval $ac_try) 2>&5 5027 ac_status=$? 5028 echo "$as_me:5028: \$? = $ac_status" >&5 5029 (exit $ac_status); }; }; then 5030 ac_cv_lib_dl_dlsym=yes 5031else 5032 echo "$as_me: failed program was:" >&5 5033cat conftest.$ac_ext >&5 5034ac_cv_lib_dl_dlsym=no 5035fi 5036rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5037LIBS=$ac_check_lib_save_LIBS 5038fi 5039echo "$as_me:5039: result: $ac_cv_lib_dl_dlsym" >&5 5040echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6 5041if test $ac_cv_lib_dl_dlsym = yes; then 5042 5043 cf_have_dlsym=yes 5044 cf_have_libdl=yes 5045fi 5046 5047fi 5048 5049if test "$cf_have_dlsym" = yes ; then 5050 test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS" 5051 5052 echo "$as_me:5052: checking whether able to link to dl*() functions" >&5 5053echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6 5054 cat >conftest.$ac_ext <<_ACEOF 5055#line 5055 "configure" 5056#include "confdefs.h" 5057#include <dlfcn.h> 5058int 5059main () 5060{ 5061 5062 void *obj; 5063 if ((obj = dlopen("filename", 0)) != 0) { 5064 if (dlsym(obj, "symbolname") == 0) { 5065 dlclose(obj); 5066 } 5067 } 5068 ; 5069 return 0; 5070} 5071_ACEOF 5072rm -f conftest.$ac_objext conftest$ac_exeext 5073if { (eval echo "$as_me:5073: \"$ac_link\"") >&5 5074 (eval $ac_link) 2>&5 5075 ac_status=$? 5076 echo "$as_me:5076: \$? = $ac_status" >&5 5077 (exit $ac_status); } && 5078 { ac_try='test -s conftest$ac_exeext' 5079 { (eval echo "$as_me:5079: \"$ac_try\"") >&5 5080 (eval $ac_try) 2>&5 5081 ac_status=$? 5082 echo "$as_me:5082: \$? = $ac_status" >&5 5083 (exit $ac_status); }; }; then 5084 5085 cat >>confdefs.h <<\EOF 5086#define HAVE_LIBDL 1 5087EOF 5088 5089else 5090 echo "$as_me: failed program was:" >&5 5091cat conftest.$ac_ext >&5 5092 5093 { { echo "$as_me:5093: error: Cannot link test program for libdl" >&5 5094echo "$as_me: error: Cannot link test program for libdl" >&2;} 5095 { (exit 1); exit 1; }; } 5096fi 5097rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5098 echo "$as_me:5098: result: ok" >&5 5099echo "${ECHO_T}ok" >&6 5100else 5101 { { echo "$as_me:5101: error: Cannot find dlsym function" >&5 5102echo "$as_me: error: Cannot find dlsym function" >&2;} 5103 { (exit 1); exit 1; }; } 5104fi 5105 5106 if test "$with_gpm" != yes ; then 5107 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6 5108 5109echo "${as_me:-configure}:5109: testing assuming soname for gpm is $with_gpm ..." 1>&5 5110 5111 cf_cv_gpm_soname="$with_gpm" 5112 else 5113 5114echo "$as_me:5114: checking for soname of gpm library" >&5 5115echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6 5116if test "${cf_cv_gpm_soname+set}" = set; then 5117 echo $ECHO_N "(cached) $ECHO_C" >&6 5118else 5119 5120cf_cv_gpm_soname=unknown 5121if test "$cross_compiling" != yes ; then 5122cat >conftest.$ac_ext <<CF_EOF 5123#include <gpm.h> 5124int main() 5125{ 5126if (Gpm_Open(0,0)) Gpm_Close(); 5127 ${cf_cv_main_return:-return}(0); 5128} 5129CF_EOF 5130cf_save_LIBS="$LIBS" 5131 LIBS="-lgpm $LIBS" 5132 if { (eval echo "$as_me:5132: \"$ac_compile\"") >&5 5133 (eval $ac_compile) 2>&5 5134 ac_status=$? 5135 echo "$as_me:5135: \$? = $ac_status" >&5 5136 (exit $ac_status); } ; then 5137 if { (eval echo "$as_me:5137: \"$ac_link\"") >&5 5138 (eval $ac_link) 2>&5 5139 ac_status=$? 5140 echo "$as_me:5140: \$? = $ac_status" >&5 5141 (exit $ac_status); } ; then 5142 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.` 5143 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown 5144 fi 5145 fi 5146rm -rf conftest* 5147LIBS="$cf_save_LIBS" 5148fi 5149 5150fi 5151echo "$as_me:5151: result: $cf_cv_gpm_soname" >&5 5152echo "${ECHO_T}$cf_cv_gpm_soname" >&6 5153 5154 fi 5155 test "$cf_cv_gpm_soname" != "unknown" && cat >>confdefs.h <<EOF 5156#define LIBGPM_SONAME "$cf_cv_gpm_soname" 5157EOF 5158 5159 SHLIB_LIST="-ldl $SHLIB_LIST" 5160 else 5161 SHLIB_LIST="-lgpm $SHLIB_LIST" 5162 TEST_LIBS="-lgpm $TEST_LIBS" 5163 fi 5164 cat >>confdefs.h <<\EOF 5165#define HAVE_LIBGPM 1 5166EOF 5167 5168echo "$as_me:5168: checking for Gpm_Wgetch in -lgpm" >&5 5169echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6 5170if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then 5171 echo $ECHO_N "(cached) $ECHO_C" >&6 5172else 5173 ac_check_lib_save_LIBS=$LIBS 5174LIBS="-lgpm $LIBS" 5175cat >conftest.$ac_ext <<_ACEOF 5176#line 5176 "configure" 5177#include "confdefs.h" 5178 5179/* Override any gcc2 internal prototype to avoid an error. */ 5180#ifdef __cplusplus 5181extern "C" 5182#endif 5183/* We use char because int might match the return type of a gcc2 5184 builtin and then its argument prototype would still apply. */ 5185char Gpm_Wgetch (); 5186int 5187main () 5188{ 5189Gpm_Wgetch (); 5190 ; 5191 return 0; 5192} 5193_ACEOF 5194rm -f conftest.$ac_objext conftest$ac_exeext 5195if { (eval echo "$as_me:5195: \"$ac_link\"") >&5 5196 (eval $ac_link) 2>&5 5197 ac_status=$? 5198 echo "$as_me:5198: \$? = $ac_status" >&5 5199 (exit $ac_status); } && 5200 { ac_try='test -s conftest$ac_exeext' 5201 { (eval echo "$as_me:5201: \"$ac_try\"") >&5 5202 (eval $ac_try) 2>&5 5203 ac_status=$? 5204 echo "$as_me:5204: \$? = $ac_status" >&5 5205 (exit $ac_status); }; }; then 5206 ac_cv_lib_gpm_Gpm_Wgetch=yes 5207else 5208 echo "$as_me: failed program was:" >&5 5209cat conftest.$ac_ext >&5 5210ac_cv_lib_gpm_Gpm_Wgetch=no 5211fi 5212rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5213LIBS=$ac_check_lib_save_LIBS 5214fi 5215echo "$as_me:5215: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5 5216echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6 5217if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then 5218 5219echo "$as_me:5219: checking if GPM is weakly bound to curses library" >&5 5220echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6 5221if test "${cf_cv_check_gpm_wgetch+set}" = set; then 5222 echo $ECHO_N "(cached) $ECHO_C" >&6 5223else 5224 5225cf_cv_check_gpm_wgetch=unknown 5226if test "$cross_compiling" != yes ; then 5227 5228cat >conftest.$ac_ext <<CF_EOF 5229#include <gpm.h> 5230int main() 5231{ 5232 Gpm_Wgetch(); 5233 ${cf_cv_main_return:-return}(0); 5234} 5235CF_EOF 5236 5237 cf_save_LIBS="$LIBS" 5238 # This only works if we can look at the symbol table. If a shared 5239 # library is stripped for install, we cannot use that. So we're forced 5240 # to rely on the static library, noting that some packagers may not 5241 # include it. 5242 LIBS="-static -lgpm -dynamic $LIBS" 5243 if { (eval echo "$as_me:5243: \"$ac_compile\"") >&5 5244 (eval $ac_compile) 2>&5 5245 ac_status=$? 5246 echo "$as_me:5246: \$? = $ac_status" >&5 5247 (exit $ac_status); } ; then 5248 if { (eval echo "$as_me:5248: \"$ac_link\"") >&5 5249 (eval $ac_link) 2>&5 5250 ac_status=$? 5251 echo "$as_me:5251: \$? = $ac_status" >&5 5252 (exit $ac_status); } ; then 5253 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'` 5254 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes 5255 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no 5256 fi 5257 fi 5258 rm -rf conftest* 5259 LIBS="$cf_save_LIBS" 5260fi 5261 5262fi 5263echo "$as_me:5263: result: $cf_cv_check_gpm_wgetch" >&5 5264echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6 5265 5266if test "$cf_cv_check_gpm_wgetch" != yes ; then 5267 { echo "$as_me:5267: WARNING: GPM library is already linked with curses - read the FAQ" >&5 5268echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;} 5269fi 5270 5271fi 5272 5273fi 5274 5275# not everyone has "test -c" 5276if test -c /dev/sysmouse 2>/dev/null ; then 5277echo "$as_me:5277: checking if you want to use sysmouse" >&5 5278echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6 5279 5280# Check whether --with-sysmouse or --without-sysmouse was given. 5281if test "${with_sysmouse+set}" = set; then 5282 withval="$with_sysmouse" 5283 cf_with_sysmouse=$withval 5284else 5285 cf_with_sysmouse=maybe 5286fi; 5287 if test "$cf_with_sysmouse" != no ; then 5288 cat >conftest.$ac_ext <<_ACEOF 5289#line 5289 "configure" 5290#include "confdefs.h" 5291 5292#include <osreldate.h> 5293#if (__FreeBSD_version >= 400017) 5294#include <sys/consio.h> 5295#include <sys/fbio.h> 5296#else 5297#include <machine/console.h> 5298#endif 5299 5300int 5301main () 5302{ 5303 5304 struct mouse_info the_mouse; 5305 ioctl(0, CONS_MOUSECTL, &the_mouse); 5306 5307 ; 5308 return 0; 5309} 5310_ACEOF 5311rm -f conftest.$ac_objext 5312if { (eval echo "$as_me:5312: \"$ac_compile\"") >&5 5313 (eval $ac_compile) 2>&5 5314 ac_status=$? 5315 echo "$as_me:5315: \$? = $ac_status" >&5 5316 (exit $ac_status); } && 5317 { ac_try='test -s conftest.$ac_objext' 5318 { (eval echo "$as_me:5318: \"$ac_try\"") >&5 5319 (eval $ac_try) 2>&5 5320 ac_status=$? 5321 echo "$as_me:5321: \$? = $ac_status" >&5 5322 (exit $ac_status); }; }; then 5323 cf_with_sysmouse=yes 5324else 5325 echo "$as_me: failed program was:" >&5 5326cat conftest.$ac_ext >&5 5327cf_with_sysmouse=no 5328fi 5329rm -f conftest.$ac_objext conftest.$ac_ext 5330 fi 5331echo "$as_me:5331: result: $cf_with_sysmouse" >&5 5332echo "${ECHO_T}$cf_with_sysmouse" >&6 5333test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF 5334#define USE_SYSMOUSE 1 5335EOF 5336 5337fi 5338 5339if test X"$CC_G_OPT" = X"" ; then 5340 CC_G_OPT='-g' 5341 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT='' 5342fi 5343 5344if test X"$CXX_G_OPT" = X"" ; then 5345 CXX_G_OPT='-g' 5346 test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT='' 5347fi 5348 5349echo "$as_me:5349: checking for default loader flags" >&5 5350echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6 5351case $DFT_LWR_MODEL in 5352libtool) LD_MODEL='' ;; 5353normal) LD_MODEL='' ;; 5354debug) LD_MODEL=$CC_G_OPT ;; 5355profile) LD_MODEL='-pg';; 5356shared) LD_MODEL='' ;; 5357esac 5358echo "$as_me:5358: result: $LD_MODEL" >&5 5359echo "${ECHO_T}$LD_MODEL" >&6 5360 5361case $DFT_LWR_MODEL in 5362shared) 5363 5364echo "$as_me:5364: checking if rpath option should be used" >&5 5365echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6 5366 5367# Check whether --enable-rpath or --disable-rpath was given. 5368if test "${enable_rpath+set}" = set; then 5369 enableval="$enable_rpath" 5370 cf_cv_enable_rpath=$enableval 5371else 5372 cf_cv_enable_rpath=no 5373fi; 5374echo "$as_me:5374: result: $cf_cv_enable_rpath" >&5 5375echo "${ECHO_T}$cf_cv_enable_rpath" >&6 5376 5377echo "$as_me:5377: checking if shared libraries should be relinked during install" >&5 5378echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6 5379 5380# Check whether --enable-relink or --disable-relink was given. 5381if test "${enable_relink+set}" = set; then 5382 enableval="$enable_relink" 5383 cf_cv_do_relink=$enableval 5384else 5385 cf_cv_do_relink=yes 5386fi; 5387echo "$as_me:5387: result: $cf_cv_do_relink" >&5 5388echo "${ECHO_T}$cf_cv_do_relink" >&6 5389 ;; 5390esac 5391 5392LD_RPATH_OPT= 5393echo "$as_me:5393: checking for an rpath option" >&5 5394echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6 5395case $cf_cv_system_name in #(vi 5396irix*) #(vi 5397 if test "$GCC" = yes; then 5398 LD_RPATH_OPT="-Wl,-rpath," 5399 else 5400 LD_RPATH_OPT="-rpath " 5401 fi 5402 ;; 5403linux*|gnu*|k*bsd*-gnu) #(vi 5404 LD_RPATH_OPT="-Wl,-rpath," 5405 ;; 5406openbsd[2-9].*) #(vi 5407 LD_RPATH_OPT="-Wl,-rpath," 5408 ;; 5409freebsd*) #(vi 5410 LD_RPATH_OPT="-rpath " 5411 ;; 5412netbsd*) #(vi 5413 LD_RPATH_OPT="-Wl,-rpath," 5414 ;; 5415osf*|mls+*) #(vi 5416 LD_RPATH_OPT="-rpath " 5417 ;; 5418solaris2*) #(vi 5419 LD_RPATH_OPT="-R" 5420 ;; 5421*) 5422 ;; 5423esac 5424echo "$as_me:5424: result: $LD_RPATH_OPT" >&5 5425echo "${ECHO_T}$LD_RPATH_OPT" >&6 5426 5427case "x$LD_RPATH_OPT" in #(vi 5428x-R*) 5429 echo "$as_me:5429: checking if we need a space after rpath option" >&5 5430echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6 5431 cf_save_LIBS="$LIBS" 5432 LIBS="${LD_RPATH_OPT}$libdir $LIBS" 5433 cat >conftest.$ac_ext <<_ACEOF 5434#line 5434 "configure" 5435#include "confdefs.h" 5436 5437int 5438main () 5439{ 5440 5441 ; 5442 return 0; 5443} 5444_ACEOF 5445rm -f conftest.$ac_objext conftest$ac_exeext 5446if { (eval echo "$as_me:5446: \"$ac_link\"") >&5 5447 (eval $ac_link) 2>&5 5448 ac_status=$? 5449 echo "$as_me:5449: \$? = $ac_status" >&5 5450 (exit $ac_status); } && 5451 { ac_try='test -s conftest$ac_exeext' 5452 { (eval echo "$as_me:5452: \"$ac_try\"") >&5 5453 (eval $ac_try) 2>&5 5454 ac_status=$? 5455 echo "$as_me:5455: \$? = $ac_status" >&5 5456 (exit $ac_status); }; }; then 5457 cf_rpath_space=no 5458else 5459 echo "$as_me: failed program was:" >&5 5460cat conftest.$ac_ext >&5 5461cf_rpath_space=yes 5462fi 5463rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5464 LIBS="$cf_save_LIBS" 5465 echo "$as_me:5465: result: $cf_rpath_space" >&5 5466echo "${ECHO_T}$cf_rpath_space" >&6 5467 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT " 5468 ;; 5469esac 5470 5471 LOCAL_LDFLAGS= 5472 LOCAL_LDFLAGS2= 5473 LD_SHARED_OPTS= 5474 INSTALL_LIB="-m 644" 5475 5476 cf_cv_do_symlinks=no 5477 cf_ld_rpath_opt= 5478 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT" 5479 5480 echo "$as_me:5480: checking if release/abi version should be used for shared libs" >&5 5481echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6 5482 5483# Check whether --with-shlib-version or --without-shlib-version was given. 5484if test "${with_shlib_version+set}" = set; then 5485 withval="$with_shlib_version" 5486 test -z "$withval" && withval=auto 5487 case $withval in #(vi 5488 yes) #(vi 5489 cf_cv_shlib_version=auto 5490 ;; 5491 rel|abi|auto|no) #(vi 5492 cf_cv_shlib_version=$withval 5493 ;; 5494 *) 5495 { { echo "$as_me:5495: error: option value must be one of: rel, abi, auto or no" >&5 5496echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;} 5497 { (exit 1); exit 1; }; } 5498 ;; 5499 esac 5500 5501else 5502 cf_cv_shlib_version=auto 5503fi; 5504 echo "$as_me:5504: result: $cf_cv_shlib_version" >&5 5505echo "${ECHO_T}$cf_cv_shlib_version" >&6 5506 5507 cf_cv_rm_so_locs=no 5508 5509 # Some less-capable ports of gcc support only -fpic 5510 CC_SHARED_OPTS= 5511 if test "$GCC" = yes 5512 then 5513 echo "$as_me:5513: checking which $CC option to use" >&5 5514echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6 5515 cf_save_CFLAGS="$CFLAGS" 5516 for CC_SHARED_OPTS in -fPIC -fpic '' 5517 do 5518 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS" 5519 cat >conftest.$ac_ext <<_ACEOF 5520#line 5520 "configure" 5521#include "confdefs.h" 5522#include <stdio.h> 5523int 5524main () 5525{ 5526int x = 1 5527 ; 5528 return 0; 5529} 5530_ACEOF 5531rm -f conftest.$ac_objext 5532if { (eval echo "$as_me:5532: \"$ac_compile\"") >&5 5533 (eval $ac_compile) 2>&5 5534 ac_status=$? 5535 echo "$as_me:5535: \$? = $ac_status" >&5 5536 (exit $ac_status); } && 5537 { ac_try='test -s conftest.$ac_objext' 5538 { (eval echo "$as_me:5538: \"$ac_try\"") >&5 5539 (eval $ac_try) 2>&5 5540 ac_status=$? 5541 echo "$as_me:5541: \$? = $ac_status" >&5 5542 (exit $ac_status); }; }; then 5543 break 5544else 5545 echo "$as_me: failed program was:" >&5 5546cat conftest.$ac_ext >&5 5547fi 5548rm -f conftest.$ac_objext conftest.$ac_ext 5549 done 5550 echo "$as_me:5550: result: $CC_SHARED_OPTS" >&5 5551echo "${ECHO_T}$CC_SHARED_OPTS" >&6 5552 CFLAGS="$cf_save_CFLAGS" 5553 fi 5554 5555 cf_cv_shlib_version_infix=no 5556 5557 case $cf_cv_system_name in #(vi 5558 aix[56]*) #(vi 5559 if test "$GCC" = yes; then 5560 CC_SHARED_OPTS= 5561 MK_SHARED_LIB='$(CC) -shared' 5562 fi 5563 ;; 5564 beos*) #(vi 5565 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0' 5566 ;; 5567 cygwin*) #(vi 5568 CC_SHARED_OPTS= 5569 MK_SHARED_LIB='sh ../mk_shared_lib.sh $@ ${CC} ${CFLAGS}' 5570 cf_cv_shlib_version=cygdll 5571 cf_cv_shlib_version_infix=cygdll 5572 cat >mk_shared_lib.sh <<-CF_EOF 5573 #!/bin/sh 5574 SHARED_LIB=\$1 5575 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\` 5576 shift 5577 cat <<-EOF 5578 Linking shared library 5579 ** SHARED_LIB \$SHARED_LIB 5580 ** IMPORT_LIB \$IMPORT_LIB 5581EOF 5582 exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB} 5583CF_EOF 5584 chmod +x mk_shared_lib.sh 5585 ;; 5586 darwin*) #(vi 5587 EXTRA_CFLAGS="-no-cpp-precomp" 5588 CC_SHARED_OPTS="-dynamic" 5589 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@' 5590 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi 5591 cf_cv_shlib_version_infix=yes 5592 echo "$as_me:5592: checking if ld -search_paths_first works" >&5 5593echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6 5594if test "${cf_cv_ldflags_search_paths_first+set}" = set; then 5595 echo $ECHO_N "(cached) $ECHO_C" >&6 5596else 5597 5598 cf_save_LDFLAGS=$LDFLAGS 5599 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 5600 cat >conftest.$ac_ext <<_ACEOF 5601#line 5601 "configure" 5602#include "confdefs.h" 5603 5604int 5605main () 5606{ 5607int i; 5608 ; 5609 return 0; 5610} 5611_ACEOF 5612rm -f conftest.$ac_objext conftest$ac_exeext 5613if { (eval echo "$as_me:5613: \"$ac_link\"") >&5 5614 (eval $ac_link) 2>&5 5615 ac_status=$? 5616 echo "$as_me:5616: \$? = $ac_status" >&5 5617 (exit $ac_status); } && 5618 { ac_try='test -s conftest$ac_exeext' 5619 { (eval echo "$as_me:5619: \"$ac_try\"") >&5 5620 (eval $ac_try) 2>&5 5621 ac_status=$? 5622 echo "$as_me:5622: \$? = $ac_status" >&5 5623 (exit $ac_status); }; }; then 5624 cf_cv_ldflags_search_paths_first=yes 5625else 5626 echo "$as_me: failed program was:" >&5 5627cat conftest.$ac_ext >&5 5628cf_cv_ldflags_search_paths_first=no 5629fi 5630rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5631 LDFLAGS=$cf_save_LDFLAGS 5632fi 5633echo "$as_me:5633: result: $cf_cv_ldflags_search_paths_first" >&5 5634echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6 5635 if test $cf_cv_ldflags_search_paths_first = yes; then 5636 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 5637 fi 5638 ;; 5639 hpux*) #(vi 5640 # (tested with gcc 2.7.2 -- I don't have c89) 5641 if test "$GCC" = yes; then 5642 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}' 5643 else 5644 CC_SHARED_OPTS='+Z' 5645 LD_SHARED_OPTS='-Wl,+b,${libdir}' 5646 fi 5647 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@' 5648 # HP-UX shared libraries must be executable, and should be 5649 # readonly to exploit a quirk in the memory manager. 5650 INSTALL_LIB="-m 555" 5651 ;; 5652 irix*) #(vi 5653 if test "$cf_cv_enable_rpath" = yes ; then 5654 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS" 5655 fi 5656 # tested with IRIX 5.2 and 'cc'. 5657 if test "$GCC" != yes; then 5658 CC_SHARED_OPTS='-KPIC' 5659 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@' 5660 else 5661 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@' 5662 fi 5663 cf_cv_rm_so_locs=yes 5664 ;; 5665 linux*|gnu*|k*bsd*-gnu) #(vi 5666 if test "$DFT_LWR_MODEL" = "shared" ; then 5667 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)" 5668 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS" 5669 fi 5670 if test "$cf_cv_enable_rpath" = yes ; then 5671 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS" 5672 fi 5673 5674 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 5675 if test "$cf_cv_shlib_version" = rel; then 5676 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}' 5677 else 5678 cf_cv_shared_soname='`basename $@`' 5679 fi 5680 5681 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@' 5682 ;; 5683 openbsd[2-9].*) #(vi 5684 if test "$DFT_LWR_MODEL" = "shared" ; then 5685 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)" 5686 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS" 5687 fi 5688 if test "$cf_cv_enable_rpath" = yes ; then 5689 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS" 5690 fi 5691 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC" 5692 5693 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 5694 if test "$cf_cv_shlib_version" = rel; then 5695 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}' 5696 else 5697 cf_cv_shared_soname='`basename $@`' 5698 fi 5699 5700 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@' 5701 ;; 5702 nto-qnx*|openbsd*|freebsd[12].*) #(vi 5703 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC" 5704 MK_SHARED_LIB='${LD} -Bshareable -o $@' 5705 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 5706 ;; 5707 freebsd*) #(vi 5708 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC" 5709 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then 5710 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)" 5711 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${libdir} $LOCAL_LDFLAGS" 5712 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS" 5713 fi 5714 5715 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 5716 if test "$cf_cv_shlib_version" = rel; then 5717 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}' 5718 else 5719 cf_cv_shared_soname='`basename $@`' 5720 fi 5721 5722 MK_SHARED_LIB='${LD} -shared -Bshareable -soname=`basename $@` -o $@' 5723 ;; 5724 netbsd*) #(vi 5725 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC" 5726 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then 5727 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)" 5728 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS" 5729 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS" 5730 if test "$cf_cv_shlib_version" = auto; then 5731 if test -f /usr/libexec/ld.elf_so; then 5732 cf_cv_shlib_version=abi 5733 else 5734 cf_cv_shlib_version=rel 5735 fi 5736 fi 5737 5738 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 5739 if test "$cf_cv_shlib_version" = rel; then 5740 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}' 5741 else 5742 cf_cv_shared_soname='`basename $@`' 5743 fi 5744 5745 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@' 5746 else 5747 MK_SHARED_LIB='${LD} -shared -Bshareable -o $@' 5748 fi 5749 ;; 5750 osf*|mls+*) #(vi 5751 # tested with OSF/1 V3.2 and 'cc' 5752 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't 5753 # link with shared libs). 5754 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`' 5755 case $host_os in #(vi 5756 osf4*) 5757 MK_SHARED_LIB="${MK_SHARED_LIB} -msym" 5758 ;; 5759 esac 5760 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@' 5761 if test "$DFT_LWR_MODEL" = "shared" ; then 5762 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)" 5763 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS" 5764 fi 5765 cf_cv_rm_so_locs=yes 5766 ;; 5767 sco3.2v5*) # (also uw2* and UW7: hops 13-Apr-98 5768 # tested with osr5.0.5 5769 if test "$GCC" != yes; then 5770 CC_SHARED_OPTS='-belf -KPIC' 5771 fi 5772 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@' 5773 if test "$cf_cv_enable_rpath" = yes ; then 5774 # only way is to set LD_RUN_PATH but no switch for it 5775 RUN_PATH=$libdir 5776 fi 5777 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 5778 LINK_PROGS='LD_RUN_PATH=${libdir}' 5779 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib' 5780 ;; 5781 sunos4*) #(vi 5782 # tested with SunOS 4.1.1 and gcc 2.7.0 5783 if test "$GCC" != yes; then 5784 CC_SHARED_OPTS='-KPIC' 5785 fi 5786 MK_SHARED_LIB='${LD} -assert pure-text -o $@' 5787 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 5788 ;; 5789 solaris2*) #(vi 5790 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2 5791 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3 5792 if test "$DFT_LWR_MODEL" = "shared" ; then 5793 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}" 5794 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS" 5795 fi 5796 if test "$cf_cv_enable_rpath" = yes ; then 5797 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS" 5798 fi 5799 5800 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 5801 if test "$cf_cv_shlib_version" = rel; then 5802 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}' 5803 else 5804 cf_cv_shared_soname='`basename $@`' 5805 fi 5806 5807 if test "$GCC" != yes; then 5808 cf_save_CFLAGS="$CFLAGS" 5809 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O 5810 do 5811 CFLAGS="$cf_shared_opts $cf_save_CFLAGS" 5812 cat >conftest.$ac_ext <<_ACEOF 5813#line 5813 "configure" 5814#include "confdefs.h" 5815#include <stdio.h> 5816int 5817main () 5818{ 5819printf("Hello\n"); 5820 ; 5821 return 0; 5822} 5823_ACEOF 5824rm -f conftest.$ac_objext 5825if { (eval echo "$as_me:5825: \"$ac_compile\"") >&5 5826 (eval $ac_compile) 2>&5 5827 ac_status=$? 5828 echo "$as_me:5828: \$? = $ac_status" >&5 5829 (exit $ac_status); } && 5830 { ac_try='test -s conftest.$ac_objext' 5831 { (eval echo "$as_me:5831: \"$ac_try\"") >&5 5832 (eval $ac_try) 2>&5 5833 ac_status=$? 5834 echo "$as_me:5834: \$? = $ac_status" >&5 5835 (exit $ac_status); }; }; then 5836 break 5837else 5838 echo "$as_me: failed program was:" >&5 5839cat conftest.$ac_ext >&5 5840fi 5841rm -f conftest.$ac_objext conftest.$ac_ext 5842 done 5843 CFLAGS="$cf_save_CFLAGS" 5844 CC_SHARED_OPTS=$cf_shared_opts 5845 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@' 5846 else 5847 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@' 5848 fi 5849 ;; 5850 sysv5uw7*|unix_sv*) #(vi 5851 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc) 5852 if test "$GCC" != yes; then 5853 CC_SHARED_OPTS='-KPIC' 5854 fi 5855 MK_SHARED_LIB='${LD} -d y -G -o $@' 5856 ;; 5857 *) 5858 CC_SHARED_OPTS='unknown' 5859 MK_SHARED_LIB='echo unknown' 5860 ;; 5861 esac 5862 5863 # This works if the last tokens in $MK_SHARED_LIB are the -o target. 5864 case "$cf_cv_shlib_version" in #(vi 5865 rel|abi) 5866 case "$MK_SHARED_LIB" in #(vi 5867 *'-o $@') #(vi 5868 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes 5869 ;; 5870 *) 5871 { echo "$as_me:5871: WARNING: ignored --with-shlib-version" >&5 5872echo "$as_me: WARNING: ignored --with-shlib-version" >&2;} 5873 ;; 5874 esac 5875 ;; 5876 esac 5877 5878 if test -n "$cf_ld_rpath_opt" ; then 5879 MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${libdir}" 5880 fi 5881 5882if test "$CC_SHARED_OPTS" = "unknown"; then 5883 for model in $cf_list_models; do 5884 if test "$model" = "shared"; then 5885 { { echo "$as_me:5885: error: Shared libraries are not supported in this version" >&5 5886echo "$as_me: error: Shared libraries are not supported in this version" >&2;} 5887 { (exit 1); exit 1; }; } 5888 fi 5889 done 5890fi 5891 5892### If we're building with rpath, try to link non-standard libs that way too. 5893if test "$DFT_LWR_MODEL" = "shared"; then 5894 5895echo "$as_me:5895: checking if rpath-hack should be disabled" >&5 5896echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6 5897 5898# Check whether --enable-rpath-hack or --disable-rpath-hack was given. 5899if test "${enable_rpath_hack+set}" = set; then 5900 enableval="$enable_rpath_hack" 5901 test "$enableval" != no && enableval=yes 5902 if test "$enableval" != "yes" ; then 5903 cf_disable_rpath_hack=yes 5904 else 5905 cf_disable_rpath_hack=no 5906 fi 5907else 5908 enableval=yes 5909 cf_disable_rpath_hack=no 5910 5911fi; 5912echo "$as_me:5912: result: $cf_disable_rpath_hack" >&5 5913echo "${ECHO_T}$cf_disable_rpath_hack" >&6 5914if test "$cf_disable_rpath_hack" = no ; then 5915 5916echo "$as_me:5916: checking for updated LDFLAGS" >&5 5917echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6 5918if test -n "$LD_RPATH_OPT" ; then 5919 echo "$as_me:5919: result: maybe" >&5 5920echo "${ECHO_T}maybe" >&6 5921 5922 for ac_prog in ldd 5923do 5924 # Extract the first word of "$ac_prog", so it can be a program name with args. 5925set dummy $ac_prog; ac_word=$2 5926echo "$as_me:5926: checking for $ac_word" >&5 5927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5928if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then 5929 echo $ECHO_N "(cached) $ECHO_C" >&6 5930else 5931 if test -n "$cf_ldd_prog"; then 5932 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test. 5933else 5934 ac_save_IFS=$IFS; IFS=$ac_path_separator 5935ac_dummy="$PATH" 5936for ac_dir in $ac_dummy; do 5937 IFS=$ac_save_IFS 5938 test -z "$ac_dir" && ac_dir=. 5939 $as_executable_p "$ac_dir/$ac_word" || continue 5940ac_cv_prog_cf_ldd_prog="$ac_prog" 5941echo "$as_me:5941: found $ac_dir/$ac_word" >&5 5942break 5943done 5944 5945fi 5946fi 5947cf_ldd_prog=$ac_cv_prog_cf_ldd_prog 5948if test -n "$cf_ldd_prog"; then 5949 echo "$as_me:5949: result: $cf_ldd_prog" >&5 5950echo "${ECHO_T}$cf_ldd_prog" >&6 5951else 5952 echo "$as_me:5952: result: no" >&5 5953echo "${ECHO_T}no" >&6 5954fi 5955 5956 test -n "$cf_ldd_prog" && break 5957done 5958test -n "$cf_ldd_prog" || cf_ldd_prog="no" 5959 5960 cf_rpath_list="/usr/lib /lib" 5961 if test "$cf_ldd_prog" != no 5962 then 5963 cf_rpath_oops= 5964 5965cat >conftest.$ac_ext <<_ACEOF 5966#line 5966 "configure" 5967#include "confdefs.h" 5968#include <stdio.h> 5969int 5970main () 5971{ 5972printf("Hello"); 5973 ; 5974 return 0; 5975} 5976_ACEOF 5977rm -f conftest.$ac_objext conftest$ac_exeext 5978if { (eval echo "$as_me:5978: \"$ac_link\"") >&5 5979 (eval $ac_link) 2>&5 5980 ac_status=$? 5981 echo "$as_me:5981: \$? = $ac_status" >&5 5982 (exit $ac_status); } && 5983 { ac_try='test -s conftest$ac_exeext' 5984 { (eval echo "$as_me:5984: \"$ac_try\"") >&5 5985 (eval $ac_try) 2>&5 5986 ac_status=$? 5987 echo "$as_me:5987: \$? = $ac_status" >&5 5988 (exit $ac_status); }; }; then 5989 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort -u` 5990 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort -u` 5991else 5992 echo "$as_me: failed program was:" >&5 5993cat conftest.$ac_ext >&5 5994fi 5995rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5996 5997 # If we passed the link-test, but get a "not found" on a given library, 5998 # this could be due to inept reconfiguration of gcc to make it only 5999 # partly honor /usr/local/lib (or whatever). Sometimes this behavior 6000 # is intentional, e.g., installing gcc in /usr/bin and suppressing the 6001 # /usr/local libraries. 6002 if test -n "$cf_rpath_oops" 6003 then 6004 for cf_rpath_src in $cf_rpath_oops 6005 do 6006 for cf_rpath_dir in \ 6007 /usr/local \ 6008 /usr/pkg \ 6009 /opt/sfw 6010 do 6011 if test -f $cf_rpath_dir/lib/$cf_rpath_src 6012 then 6013 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6 6014 6015echo "${as_me:-configure}:6015: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5 6016 6017 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib" 6018 break 6019 fi 6020 done 6021 done 6022 fi 6023 fi 6024 6025 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6 6026 6027echo "${as_me:-configure}:6027: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5 6028 6029test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6 6030 6031echo "${as_me:-configure}:6031: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5 6032 6033cf_rpath_dst= 6034for cf_rpath_src in $LDFLAGS 6035do 6036 case $cf_rpath_src in #(vi 6037 -L*) #(vi 6038 6039 # check if this refers to a directory which we will ignore 6040 cf_rpath_skip=no 6041 if test -n "$cf_rpath_list" 6042 then 6043 for cf_rpath_item in $cf_rpath_list 6044 do 6045 if test "x$cf_rpath_src" = "x-L$cf_rpath_item" 6046 then 6047 cf_rpath_skip=yes 6048 break 6049 fi 6050 done 6051 fi 6052 6053 if test "$cf_rpath_skip" = no 6054 then 6055 # transform the option 6056 if test "$LD_RPATH_OPT" = "-R " ; then 6057 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"` 6058 else 6059 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"` 6060 fi 6061 6062 # if we have not already added this, add it now 6063 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"` 6064 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS" 6065 then 6066 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6 6067 6068echo "${as_me:-configure}:6068: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5 6069 6070 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS" 6071 fi 6072 fi 6073 ;; 6074 esac 6075 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src" 6076done 6077LDFLAGS=$cf_rpath_dst 6078 6079test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6 6080 6081echo "${as_me:-configure}:6081: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5 6082 6083test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6 6084 6085echo "${as_me:-configure}:6085: testing ...checking LIBS $LIBS ..." 1>&5 6086 6087cf_rpath_dst= 6088for cf_rpath_src in $LIBS 6089do 6090 case $cf_rpath_src in #(vi 6091 -L*) #(vi 6092 6093 # check if this refers to a directory which we will ignore 6094 cf_rpath_skip=no 6095 if test -n "$cf_rpath_list" 6096 then 6097 for cf_rpath_item in $cf_rpath_list 6098 do 6099 if test "x$cf_rpath_src" = "x-L$cf_rpath_item" 6100 then 6101 cf_rpath_skip=yes 6102 break 6103 fi 6104 done 6105 fi 6106 6107 if test "$cf_rpath_skip" = no 6108 then 6109 # transform the option 6110 if test "$LD_RPATH_OPT" = "-R " ; then 6111 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"` 6112 else 6113 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"` 6114 fi 6115 6116 # if we have not already added this, add it now 6117 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"` 6118 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS" 6119 then 6120 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6 6121 6122echo "${as_me:-configure}:6122: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5 6123 6124 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS" 6125 fi 6126 fi 6127 ;; 6128 esac 6129 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src" 6130done 6131LIBS=$cf_rpath_dst 6132 6133test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6 6134 6135echo "${as_me:-configure}:6135: testing ...checked LIBS $LIBS ..." 1>&5 6136 6137 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6 6138 6139echo "${as_me:-configure}:6139: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5 6140 6141fi 6142 6143fi 6144 6145fi 6146 6147############################################################################### 6148 6149### use option --disable-overwrite to leave out the link to -lcurses 6150echo "$as_me:6150: checking if you wish to install ncurses overwriting curses" >&5 6151echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6 6152 6153# Check whether --enable-overwrite or --disable-overwrite was given. 6154if test "${enable_overwrite+set}" = set; then 6155 enableval="$enable_overwrite" 6156 with_overwrite=$enableval 6157else 6158 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi 6159fi; 6160echo "$as_me:6160: result: $with_overwrite" >&5 6161echo "${ECHO_T}$with_overwrite" >&6 6162 6163echo "$as_me:6163: checking if external terminfo-database is used" >&5 6164echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6 6165 6166# Check whether --enable-database or --disable-database was given. 6167if test "${enable_database+set}" = set; then 6168 enableval="$enable_database" 6169 use_database=$enableval 6170else 6171 use_database=yes 6172fi; 6173echo "$as_me:6173: result: $use_database" >&5 6174echo "${ECHO_T}$use_database" >&6 6175 6176case $host_os in #(vi 6177os2*) #(vi 6178 TERMINFO_SRC='${top_srcdir}/misc/emx.src' 6179 ;; 6180*) #(vi 6181 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src' 6182 ;; 6183esac 6184 6185 case $cf_cv_system_name in 6186 os2*) PATH_SEPARATOR=';' ;; 6187 *) PATH_SEPARATOR=':' ;; 6188 esac 6189 6190if test "$use_database" != no ; then 6191 cat >>confdefs.h <<\EOF 6192#define USE_DATABASE 1 6193EOF 6194 6195 echo "$as_me:6195: checking which terminfo source-file will be installed" >&5 6196echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6 6197 6198# Check whether --with-database or --without-database was given. 6199if test "${with_database+set}" = set; then 6200 withval="$with_database" 6201 TERMINFO_SRC=$withval 6202fi; 6203 echo "$as_me:6203: result: $TERMINFO_SRC" >&5 6204echo "${ECHO_T}$TERMINFO_SRC" >&6 6205 6206 echo "$as_me:6206: checking whether to use hashed database instead of directory/tree" >&5 6207echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6 6208 6209# Check whether --with-hashed-db or --without-hashed-db was given. 6210if test "${with_hashed_db+set}" = set; then 6211 withval="$with_hashed_db" 6212 6213else 6214 with_hashed_db=no 6215fi; 6216 echo "$as_me:6216: result: $with_hashed_db" >&5 6217echo "${ECHO_T}$with_hashed_db" >&6 6218else 6219 with_hashed_db=no 6220fi 6221 6222echo "$as_me:6222: checking for list of fallback descriptions" >&5 6223echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6 6224 6225# Check whether --with-fallbacks or --without-fallbacks was given. 6226if test "${with_fallbacks+set}" = set; then 6227 withval="$with_fallbacks" 6228 with_fallback=$withval 6229else 6230 with_fallback= 6231fi; 6232echo "$as_me:6232: result: $with_fallback" >&5 6233echo "${ECHO_T}$with_fallback" >&6 6234FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'` 6235 6236echo "$as_me:6236: checking if you want modern xterm or antique" >&5 6237echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6 6238 6239# Check whether --with-xterm-new or --without-xterm-new was given. 6240if test "${with_xterm_new+set}" = set; then 6241 withval="$with_xterm_new" 6242 with_xterm_new=$withval 6243else 6244 with_xterm_new=yes 6245fi; 6246case $with_xterm_new in 6247no) with_xterm_new=xterm-old;; 6248*) with_xterm_new=xterm-new;; 6249esac 6250echo "$as_me:6250: result: $with_xterm_new" >&5 6251echo "${ECHO_T}$with_xterm_new" >&6 6252WHICH_XTERM=$with_xterm_new 6253 6254MAKE_TERMINFO= 6255if test "$use_database" = no ; then 6256 TERMINFO="${datadir}/terminfo" 6257 MAKE_TERMINFO="#" 6258else 6259 6260echo "$as_me:6260: checking for list of terminfo directories" >&5 6261echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6 6262 6263# Check whether --with-terminfo-dirs or --without-terminfo-dirs was given. 6264if test "${with_terminfo_dirs+set}" = set; then 6265 withval="$with_terminfo_dirs" 6266 6267else 6268 withval=${TERMINFO_DIRS:-${datadir}/terminfo} 6269fi; 6270IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}" 6271cf_dst_path= 6272for cf_src_path in $withval 6273do 6274 6275if test "x$prefix" != xNONE; then 6276 cf_path_syntax="$prefix" 6277else 6278 cf_path_syntax="$ac_default_prefix" 6279fi 6280 6281case ".$cf_src_path" in #(vi 6282.\$\(*\)*|.\'*\'*) #(vi 6283 ;; 6284..|./*|.\\*) #(vi 6285 ;; 6286.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 6287 ;; 6288.\${*prefix}*) #(vi 6289 eval cf_src_path="$cf_src_path" 6290 case ".$cf_src_path" in #(vi 6291 .NONE/*) 6292 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%` 6293 ;; 6294 esac 6295 ;; #(vi 6296.no|.NONE/*) 6297 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%` 6298 ;; 6299*) 6300 { { echo "$as_me:6300: error: expected a pathname, not \"$cf_src_path\"" >&5 6301echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;} 6302 { (exit 1); exit 1; }; } 6303 ;; 6304esac 6305 6306 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:" 6307 cf_dst_path="${cf_dst_path}${cf_src_path}" 6308done 6309IFS="$ac_save_ifs" 6310 6311eval 'TERMINFO_DIRS="$cf_dst_path"' 6312 6313echo "$as_me:6313: result: $TERMINFO_DIRS" >&5 6314echo "${ECHO_T}$TERMINFO_DIRS" >&6 6315test -n "$TERMINFO_DIRS" && cat >>confdefs.h <<EOF 6316#define TERMINFO_DIRS "$TERMINFO_DIRS" 6317EOF 6318 6319echo "$as_me:6319: checking for default terminfo directory" >&5 6320echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6 6321 6322# Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given. 6323if test "${with_default_terminfo_dir+set}" = set; then 6324 withval="$with_default_terminfo_dir" 6325 6326else 6327 withval="${TERMINFO:-${datadir}/terminfo}" 6328fi; if test -n "${datadir}/terminfo" ; then 6329 6330if test "x$prefix" != xNONE; then 6331 cf_path_syntax="$prefix" 6332else 6333 cf_path_syntax="$ac_default_prefix" 6334fi 6335 6336case ".$withval" in #(vi 6337.\$\(*\)*|.\'*\'*) #(vi 6338 ;; 6339..|./*|.\\*) #(vi 6340 ;; 6341.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 6342 ;; 6343.\${*prefix}*) #(vi 6344 eval withval="$withval" 6345 case ".$withval" in #(vi 6346 .NONE/*) 6347 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%` 6348 ;; 6349 esac 6350 ;; #(vi 6351.no|.NONE/*) 6352 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%` 6353 ;; 6354*) 6355 { { echo "$as_me:6355: error: expected a pathname, not \"$withval\"" >&5 6356echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;} 6357 { (exit 1); exit 1; }; } 6358 ;; 6359esac 6360 6361fi 6362TERMINFO="$withval" 6363 6364echo "$as_me:6364: result: $TERMINFO" >&5 6365echo "${ECHO_T}$TERMINFO" >&6 6366cat >>confdefs.h <<EOF 6367#define TERMINFO "$TERMINFO" 6368EOF 6369 6370fi 6371 6372### use option --disable-big-core to make tic run on small machines 6373### We need 4Mb, check if we can allocate 50% more than that. 6374echo "$as_me:6374: checking if big-core option selected" >&5 6375echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6 6376 6377# Check whether --enable-big-core or --disable-big-core was given. 6378if test "${enable_big_core+set}" = set; then 6379 enableval="$enable_big_core" 6380 with_big_core=$enableval 6381else 6382 if test "$cross_compiling" = yes; then 6383 with_big_core=no 6384else 6385 cat >conftest.$ac_ext <<_ACEOF 6386#line 6386 "configure" 6387#include "confdefs.h" 6388 6389#include <stdlib.h> 6390#include <string.h> 6391int main() { 6392 unsigned long n = 6000000L; 6393 char *s = malloc(n); 6394 if (s != 0) 6395 s[0] = s[n-1] = 0; 6396 ${cf_cv_main_return:-return}(s == 0); 6397} 6398_ACEOF 6399rm -f conftest$ac_exeext 6400if { (eval echo "$as_me:6400: \"$ac_link\"") >&5 6401 (eval $ac_link) 2>&5 6402 ac_status=$? 6403 echo "$as_me:6403: \$? = $ac_status" >&5 6404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6405 { (eval echo "$as_me:6405: \"$ac_try\"") >&5 6406 (eval $ac_try) 2>&5 6407 ac_status=$? 6408 echo "$as_me:6408: \$? = $ac_status" >&5 6409 (exit $ac_status); }; }; then 6410 with_big_core=yes 6411else 6412 echo "$as_me: program exited with status $ac_status" >&5 6413echo "$as_me: failed program was:" >&5 6414cat conftest.$ac_ext >&5 6415with_big_core=no 6416fi 6417rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6418fi 6419fi; 6420echo "$as_me:6420: result: $with_big_core" >&5 6421echo "${ECHO_T}$with_big_core" >&6 6422test "$with_big_core" = "yes" && cat >>confdefs.h <<\EOF 6423#define HAVE_BIG_CORE 1 6424EOF 6425 6426### ISO C only guarantees 512-char strings, we have tables which load faster 6427### when constructed using "big" strings. More than the C compiler, the awk 6428### program is a limit on most vendor UNIX systems. Check that we can build. 6429echo "$as_me:6429: checking if big-strings option selected" >&5 6430echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6 6431 6432# Check whether --enable-big-strings or --disable-big-strings was given. 6433if test "${enable_big_strings+set}" = set; then 6434 enableval="$enable_big_strings" 6435 with_big_strings=$enableval 6436else 6437 6438 case x$AWK in #(vi 6439 x) 6440 eval with_big_strings=no 6441 ;; 6442 *) #(vi 6443 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' \ 6444 | $AWK '{ printf "%d\n", length($0); }' | $AWK 'BEGIN { eqls=0; recs=0; } { recs++; if ($0 == 12000) eqls++; } END { if (recs != 1 || eqls != 1) exit 1; }' 2>/dev/null >/dev/null ) ; then 6445 eval with_big_strings=yes 6446 else 6447 eval with_big_strings=no 6448 fi 6449 ;; 6450 esac 6451 6452fi; 6453echo "$as_me:6453: result: $with_big_strings" >&5 6454echo "${ECHO_T}$with_big_strings" >&6 6455 6456USE_BIG_STRINGS=0 6457test "$with_big_strings" = "yes" && USE_BIG_STRINGS=1 6458 6459### use option --enable-termcap to compile in the termcap fallback support 6460echo "$as_me:6460: checking if you want termcap-fallback support" >&5 6461echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6 6462 6463# Check whether --enable-termcap or --disable-termcap was given. 6464if test "${enable_termcap+set}" = set; then 6465 enableval="$enable_termcap" 6466 with_termcap=$enableval 6467else 6468 with_termcap=no 6469fi; 6470echo "$as_me:6470: result: $with_termcap" >&5 6471echo "${ECHO_T}$with_termcap" >&6 6472 6473if test "$with_termcap" != "yes" ; then 6474 if test "$use_database" = no ; then 6475 if test -z "$with_fallback" ; then 6476 { { echo "$as_me:6476: error: You have disabled the database w/o specifying fallbacks" >&5 6477echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;} 6478 { (exit 1); exit 1; }; } 6479 fi 6480 fi 6481 cat >>confdefs.h <<\EOF 6482#define PURE_TERMINFO 1 6483EOF 6484 6485else 6486 6487if test "$with_ticlib" != no ; then 6488 { { echo "$as_me:6488: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5 6489echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;} 6490 { (exit 1); exit 1; }; } 6491fi 6492 6493cat >>confdefs.h <<\EOF 6494#define USE_TERMCAP 1 6495EOF 6496 6497echo "$as_me:6497: checking for list of termcap files" >&5 6498echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6 6499 6500# Check whether --with-termpath or --without-termpath was given. 6501if test "${with_termpath+set}" = set; then 6502 withval="$with_termpath" 6503 6504else 6505 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap} 6506fi; 6507IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}" 6508cf_dst_path= 6509for cf_src_path in $withval 6510do 6511 6512if test "x$prefix" != xNONE; then 6513 cf_path_syntax="$prefix" 6514else 6515 cf_path_syntax="$ac_default_prefix" 6516fi 6517 6518case ".$cf_src_path" in #(vi 6519.\$\(*\)*|.\'*\'*) #(vi 6520 ;; 6521..|./*|.\\*) #(vi 6522 ;; 6523.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 6524 ;; 6525.\${*prefix}*) #(vi 6526 eval cf_src_path="$cf_src_path" 6527 case ".$cf_src_path" in #(vi 6528 .NONE/*) 6529 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%` 6530 ;; 6531 esac 6532 ;; #(vi 6533.no|.NONE/*) 6534 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%` 6535 ;; 6536*) 6537 { { echo "$as_me:6537: error: expected a pathname, not \"$cf_src_path\"" >&5 6538echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;} 6539 { (exit 1); exit 1; }; } 6540 ;; 6541esac 6542 6543 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:" 6544 cf_dst_path="${cf_dst_path}${cf_src_path}" 6545done 6546IFS="$ac_save_ifs" 6547 6548eval 'TERMPATH="$cf_dst_path"' 6549 6550echo "$as_me:6550: result: $TERMPATH" >&5 6551echo "${ECHO_T}$TERMPATH" >&6 6552test -n "$TERMPATH" && cat >>confdefs.h <<EOF 6553#define TERMPATH "$TERMPATH" 6554EOF 6555 6556### use option --enable-getcap to use a hacked getcap for reading termcaps 6557echo "$as_me:6557: checking if fast termcap-loader is needed" >&5 6558echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6 6559 6560# Check whether --enable-getcap or --disable-getcap was given. 6561if test "${enable_getcap+set}" = set; then 6562 enableval="$enable_getcap" 6563 with_getcap=$enableval 6564else 6565 with_getcap=no 6566fi; 6567echo "$as_me:6567: result: $with_getcap" >&5 6568echo "${ECHO_T}$with_getcap" >&6 6569test "$with_getcap" = "yes" && cat >>confdefs.h <<\EOF 6570#define USE_GETCAP 1 6571EOF 6572 6573echo "$as_me:6573: checking if translated termcaps will be cached in ~/.terminfo" >&5 6574echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6 6575 6576# Check whether --enable-getcap-cache or --disable-getcap-cache was given. 6577if test "${enable_getcap_cache+set}" = set; then 6578 enableval="$enable_getcap_cache" 6579 with_getcap_cache=$enableval 6580else 6581 with_getcap_cache=no 6582fi; 6583echo "$as_me:6583: result: $with_getcap_cache" >&5 6584echo "${ECHO_T}$with_getcap_cache" >&6 6585test "$with_getcap_cache" = "yes" && cat >>confdefs.h <<\EOF 6586#define USE_GETCAP_CACHE 1 6587EOF 6588 6589fi 6590 6591### Use option --disable-home-terminfo to completely remove ~/.terminfo 6592echo "$as_me:6592: checking if ~/.terminfo is wanted" >&5 6593echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6 6594 6595# Check whether --enable-home-terminfo or --disable-home-terminfo was given. 6596if test "${enable_home_terminfo+set}" = set; then 6597 enableval="$enable_home_terminfo" 6598 with_home_terminfo=$enableval 6599else 6600 with_home_terminfo=yes 6601fi; 6602echo "$as_me:6602: result: $with_home_terminfo" >&5 6603echo "${ECHO_T}$with_home_terminfo" >&6 6604test "$with_home_terminfo" = "yes" && cat >>confdefs.h <<\EOF 6605#define USE_HOME_TERMINFO 1 6606EOF 6607 6608echo "$as_me:6608: checking if you want to use restricted environment when running as root" >&5 6609echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6 6610 6611# Check whether --enable-root-environ or --disable-root-environ was given. 6612if test "${enable_root_environ+set}" = set; then 6613 enableval="$enable_root_environ" 6614 with_root_environ=$enableval 6615else 6616 with_root_environ=yes 6617fi; 6618echo "$as_me:6618: result: $with_root_environ" >&5 6619echo "${ECHO_T}$with_root_environ" >&6 6620test "$with_root_environ" = yes && cat >>confdefs.h <<\EOF 6621#define USE_ROOT_ENVIRON 1 6622EOF 6623 6624### Use option --enable-symlinks to make tic use symlinks, not hard links 6625### to reduce storage requirements for the terminfo database. 6626 6627for ac_func in \ 6628 remove \ 6629 unlink 6630do 6631as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6632echo "$as_me:6632: checking for $ac_func" >&5 6633echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6634if eval "test \"\${$as_ac_var+set}\" = set"; then 6635 echo $ECHO_N "(cached) $ECHO_C" >&6 6636else 6637 cat >conftest.$ac_ext <<_ACEOF 6638#line 6638 "configure" 6639#include "confdefs.h" 6640/* System header to define __stub macros and hopefully few prototypes, 6641 which can conflict with char $ac_func (); below. */ 6642#include <assert.h> 6643/* Override any gcc2 internal prototype to avoid an error. */ 6644#ifdef __cplusplus 6645extern "C" 6646#endif 6647/* We use char because int might match the return type of a gcc2 6648 builtin and then its argument prototype would still apply. */ 6649char $ac_func (); 6650char (*f) (); 6651 6652int 6653main () 6654{ 6655/* The GNU C library defines this for functions which it implements 6656 to always fail with ENOSYS. Some functions are actually named 6657 something starting with __ and the normal name is an alias. */ 6658#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6659choke me 6660#else 6661f = $ac_func; 6662#endif 6663 6664 ; 6665 return 0; 6666} 6667_ACEOF 6668rm -f conftest.$ac_objext conftest$ac_exeext 6669if { (eval echo "$as_me:6669: \"$ac_link\"") >&5 6670 (eval $ac_link) 2>&5 6671 ac_status=$? 6672 echo "$as_me:6672: \$? = $ac_status" >&5 6673 (exit $ac_status); } && 6674 { ac_try='test -s conftest$ac_exeext' 6675 { (eval echo "$as_me:6675: \"$ac_try\"") >&5 6676 (eval $ac_try) 2>&5 6677 ac_status=$? 6678 echo "$as_me:6678: \$? = $ac_status" >&5 6679 (exit $ac_status); }; }; then 6680 eval "$as_ac_var=yes" 6681else 6682 echo "$as_me: failed program was:" >&5 6683cat conftest.$ac_ext >&5 6684eval "$as_ac_var=no" 6685fi 6686rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6687fi 6688echo "$as_me:6688: result: `eval echo '${'$as_ac_var'}'`" >&5 6689echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6690if test `eval echo '${'$as_ac_var'}'` = yes; then 6691 cat >>confdefs.h <<EOF 6692#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6693EOF 6694 6695fi 6696done 6697 6698if test "$cross_compiling" = yes ; then 6699 6700for ac_func in \ 6701 link \ 6702 symlink 6703do 6704as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6705echo "$as_me:6705: checking for $ac_func" >&5 6706echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6707if eval "test \"\${$as_ac_var+set}\" = set"; then 6708 echo $ECHO_N "(cached) $ECHO_C" >&6 6709else 6710 cat >conftest.$ac_ext <<_ACEOF 6711#line 6711 "configure" 6712#include "confdefs.h" 6713/* System header to define __stub macros and hopefully few prototypes, 6714 which can conflict with char $ac_func (); below. */ 6715#include <assert.h> 6716/* Override any gcc2 internal prototype to avoid an error. */ 6717#ifdef __cplusplus 6718extern "C" 6719#endif 6720/* We use char because int might match the return type of a gcc2 6721 builtin and then its argument prototype would still apply. */ 6722char $ac_func (); 6723char (*f) (); 6724 6725int 6726main () 6727{ 6728/* The GNU C library defines this for functions which it implements 6729 to always fail with ENOSYS. Some functions are actually named 6730 something starting with __ and the normal name is an alias. */ 6731#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6732choke me 6733#else 6734f = $ac_func; 6735#endif 6736 6737 ; 6738 return 0; 6739} 6740_ACEOF 6741rm -f conftest.$ac_objext conftest$ac_exeext 6742if { (eval echo "$as_me:6742: \"$ac_link\"") >&5 6743 (eval $ac_link) 2>&5 6744 ac_status=$? 6745 echo "$as_me:6745: \$? = $ac_status" >&5 6746 (exit $ac_status); } && 6747 { ac_try='test -s conftest$ac_exeext' 6748 { (eval echo "$as_me:6748: \"$ac_try\"") >&5 6749 (eval $ac_try) 2>&5 6750 ac_status=$? 6751 echo "$as_me:6751: \$? = $ac_status" >&5 6752 (exit $ac_status); }; }; then 6753 eval "$as_ac_var=yes" 6754else 6755 echo "$as_me: failed program was:" >&5 6756cat conftest.$ac_ext >&5 6757eval "$as_ac_var=no" 6758fi 6759rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6760fi 6761echo "$as_me:6761: result: `eval echo '${'$as_ac_var'}'`" >&5 6762echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6763if test `eval echo '${'$as_ac_var'}'` = yes; then 6764 cat >>confdefs.h <<EOF 6765#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6766EOF 6767 6768fi 6769done 6770 6771else 6772 echo "$as_me:6772: checking if link/symlink functions work" >&5 6773echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6 6774if test "${cf_cv_link_funcs+set}" = set; then 6775 echo $ECHO_N "(cached) $ECHO_C" >&6 6776else 6777 6778 cf_cv_link_funcs= 6779 for cf_func in link symlink ; do 6780 if test "$cross_compiling" = yes; then 6781 6782 eval 'ac_cv_func_'$cf_func'=error' 6783else 6784 cat >conftest.$ac_ext <<_ACEOF 6785#line 6785 "configure" 6786#include "confdefs.h" 6787 6788#include <sys/types.h> 6789#include <sys/stat.h> 6790#ifdef HAVE_UNISTD_H 6791#include <unistd.h> 6792#endif 6793int main() 6794{ 6795 int fail = 0; 6796 char *src = "config.log"; 6797 char *dst = "conftest.chk"; 6798 struct stat src_sb; 6799 struct stat dst_sb; 6800 6801 stat(src, &src_sb); 6802 fail = ($cf_func("config.log", "conftest.chk") < 0) 6803 || (stat(dst, &dst_sb) < 0) 6804 || (dst_sb.st_mtime != src_sb.st_mtime); 6805#ifdef HAVE_UNLINK 6806 unlink(dst); 6807#else 6808 remove(dst); 6809#endif 6810 ${cf_cv_main_return:-return} (fail); 6811} 6812 6813_ACEOF 6814rm -f conftest$ac_exeext 6815if { (eval echo "$as_me:6815: \"$ac_link\"") >&5 6816 (eval $ac_link) 2>&5 6817 ac_status=$? 6818 echo "$as_me:6818: \$? = $ac_status" >&5 6819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6820 { (eval echo "$as_me:6820: \"$ac_try\"") >&5 6821 (eval $ac_try) 2>&5 6822 ac_status=$? 6823 echo "$as_me:6823: \$? = $ac_status" >&5 6824 (exit $ac_status); }; }; then 6825 6826 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func" 6827 eval 'ac_cv_func_'$cf_func'=yes' 6828else 6829 echo "$as_me: program exited with status $ac_status" >&5 6830echo "$as_me: failed program was:" >&5 6831cat conftest.$ac_ext >&5 6832 6833 eval 'ac_cv_func_'$cf_func'=no' 6834fi 6835rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6836fi 6837 done 6838 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no 6839 6840fi 6841echo "$as_me:6841: result: $cf_cv_link_funcs" >&5 6842echo "${ECHO_T}$cf_cv_link_funcs" >&6 6843 test "$ac_cv_func_link" = yes && cat >>confdefs.h <<\EOF 6844#define HAVE_LINK 1 6845EOF 6846 6847 test "$ac_cv_func_symlink" = yes && cat >>confdefs.h <<\EOF 6848#define HAVE_SYMLINK 1 6849EOF 6850 6851fi 6852 6853with_links=no 6854with_symlinks=no 6855 6856# soft links (symbolic links) are useful for some systems where hard links do 6857# not work, or to make it simpler to copy terminfo trees around. 6858if test "$ac_cv_func_symlink" = yes ; then 6859 echo "$as_me:6859: checking if tic should use symbolic links" >&5 6860echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6 6861 6862# Check whether --enable-symlinks or --disable-symlinks was given. 6863if test "${enable_symlinks+set}" = set; then 6864 enableval="$enable_symlinks" 6865 with_symlinks=$enableval 6866else 6867 with_symlinks=no 6868fi; 6869 echo "$as_me:6869: result: $with_symlinks" >&5 6870echo "${ECHO_T}$with_symlinks" >&6 6871fi 6872 6873# If we have hard links and did not choose to use soft links instead, there is 6874# no reason to make this choice optional - use the hard links. 6875if test "$with_symlinks" = no ; then 6876 echo "$as_me:6876: checking if tic should use hard links" >&5 6877echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6 6878 if test "$ac_cv_func_link" = yes ; then 6879 with_links=yes 6880 else 6881 with_links=no 6882 fi 6883 echo "$as_me:6883: result: $with_links" >&5 6884echo "${ECHO_T}$with_links" >&6 6885fi 6886 6887test "$with_links" = yes && cat >>confdefs.h <<\EOF 6888#define USE_LINKS 1 6889EOF 6890 6891test "$with_symlinks" = yes && cat >>confdefs.h <<\EOF 6892#define USE_SYMLINKS 1 6893EOF 6894 6895### use option --enable-broken-linker to force on use of broken-linker support 6896echo "$as_me:6896: checking if you want broken-linker support code" >&5 6897echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6 6898 6899# Check whether --enable-broken_linker or --disable-broken_linker was given. 6900if test "${enable_broken_linker+set}" = set; then 6901 enableval="$enable_broken_linker" 6902 with_broken_linker=$enableval 6903else 6904 with_broken_linker=${BROKEN_LINKER:-no} 6905fi; 6906echo "$as_me:6906: result: $with_broken_linker" >&5 6907echo "${ECHO_T}$with_broken_linker" >&6 6908 6909BROKEN_LINKER=0 6910if test "$with_broken_linker" = yes ; then 6911 cat >>confdefs.h <<\EOF 6912#define BROKEN_LINKER 1 6913EOF 6914 6915 BROKEN_LINKER=1 6916elif test "$DFT_LWR_MODEL" = shared ; then 6917 case $cf_cv_system_name in #(vi 6918 cygwin*) 6919 cat >>confdefs.h <<\EOF 6920#define BROKEN_LINKER 1 6921EOF 6922 6923 BROKEN_LINKER=1 6924 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6 6925 6926echo "${as_me:-configure}:6926: testing cygwin linker is broken anyway ..." 1>&5 6927 6928 ;; 6929 esac 6930fi 6931 6932### use option --enable-bsdpad to have tputs process BSD-style prefix padding 6933echo "$as_me:6933: checking if tputs should process BSD-style prefix padding" >&5 6934echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6 6935 6936# Check whether --enable-bsdpad or --disable-bsdpad was given. 6937if test "${enable_bsdpad+set}" = set; then 6938 enableval="$enable_bsdpad" 6939 with_bsdpad=$enableval 6940else 6941 with_bsdpad=no 6942fi; 6943echo "$as_me:6943: result: $with_bsdpad" >&5 6944echo "${ECHO_T}$with_bsdpad" >&6 6945test "$with_bsdpad" = yes && cat >>confdefs.h <<\EOF 6946#define BSD_TPUTS 1 6947EOF 6948 6949### use option --enable-widec to turn on use of wide-character support 6950NCURSES_CH_T=chtype 6951NCURSES_LIBUTF8=0 6952 6953NEED_WCHAR_H=0 6954NCURSES_MBSTATE_T=0 6955NCURSES_WCHAR_T=0 6956NCURSES_WINT_T=0 6957 6958# Check to define _XOPEN_SOURCE "automatically" 6959 6960cf_XOPEN_SOURCE=500 6961cf_POSIX_C_SOURCE=199506L 6962cf_xopen_source= 6963 6964case $host_os in #(vi 6965aix[456]*) #(vi 6966 cf_xopen_source="-D_ALL_SOURCE" 6967 ;; 6968cygwin) #(vi 6969 cf_XOPEN_SOURCE=600 6970 ;; 6971darwin[0-8].*) #(vi 6972 cf_xopen_source="-D_APPLE_C_SOURCE" 6973 ;; 6974darwin*) #(vi 6975 cf_xopen_source="-D_DARWIN_C_SOURCE" 6976 ;; 6977freebsd*|dragonfly*) #(vi 6978 # 5.x headers associate 6979 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L 6980 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L 6981 cf_POSIX_C_SOURCE=200112L 6982 cf_XOPEN_SOURCE=600 6983 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 6984 ;; 6985hpux11*) #(vi 6986 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500" 6987 ;; 6988hpux*) #(vi 6989 cf_xopen_source="-D_HPUX_SOURCE" 6990 ;; 6991irix[56].*) #(vi 6992 cf_xopen_source="-D_SGI_SOURCE" 6993 ;; 6994linux*|gnu*|mint*|k*bsd*-gnu) #(vi 6995 6996echo "$as_me:6996: checking if we must define _GNU_SOURCE" >&5 6997echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6 6998if test "${cf_cv_gnu_source+set}" = set; then 6999 echo $ECHO_N "(cached) $ECHO_C" >&6 7000else 7001 7002cat >conftest.$ac_ext <<_ACEOF 7003#line 7003 "configure" 7004#include "confdefs.h" 7005#include <sys/types.h> 7006int 7007main () 7008{ 7009 7010#ifndef _XOPEN_SOURCE 7011make an error 7012#endif 7013 ; 7014 return 0; 7015} 7016_ACEOF 7017rm -f conftest.$ac_objext 7018if { (eval echo "$as_me:7018: \"$ac_compile\"") >&5 7019 (eval $ac_compile) 2>&5 7020 ac_status=$? 7021 echo "$as_me:7021: \$? = $ac_status" >&5 7022 (exit $ac_status); } && 7023 { ac_try='test -s conftest.$ac_objext' 7024 { (eval echo "$as_me:7024: \"$ac_try\"") >&5 7025 (eval $ac_try) 2>&5 7026 ac_status=$? 7027 echo "$as_me:7027: \$? = $ac_status" >&5 7028 (exit $ac_status); }; }; then 7029 cf_cv_gnu_source=no 7030else 7031 echo "$as_me: failed program was:" >&5 7032cat conftest.$ac_ext >&5 7033cf_save="$CPPFLAGS" 7034 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 7035 cat >conftest.$ac_ext <<_ACEOF 7036#line 7036 "configure" 7037#include "confdefs.h" 7038#include <sys/types.h> 7039int 7040main () 7041{ 7042 7043#ifdef _XOPEN_SOURCE 7044make an error 7045#endif 7046 ; 7047 return 0; 7048} 7049_ACEOF 7050rm -f conftest.$ac_objext 7051if { (eval echo "$as_me:7051: \"$ac_compile\"") >&5 7052 (eval $ac_compile) 2>&5 7053 ac_status=$? 7054 echo "$as_me:7054: \$? = $ac_status" >&5 7055 (exit $ac_status); } && 7056 { ac_try='test -s conftest.$ac_objext' 7057 { (eval echo "$as_me:7057: \"$ac_try\"") >&5 7058 (eval $ac_try) 2>&5 7059 ac_status=$? 7060 echo "$as_me:7060: \$? = $ac_status" >&5 7061 (exit $ac_status); }; }; then 7062 cf_cv_gnu_source=no 7063else 7064 echo "$as_me: failed program was:" >&5 7065cat conftest.$ac_ext >&5 7066cf_cv_gnu_source=yes 7067fi 7068rm -f conftest.$ac_objext conftest.$ac_ext 7069 CPPFLAGS="$cf_save" 7070 7071fi 7072rm -f conftest.$ac_objext conftest.$ac_ext 7073 7074fi 7075echo "$as_me:7075: result: $cf_cv_gnu_source" >&5 7076echo "${ECHO_T}$cf_cv_gnu_source" >&6 7077test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 7078 7079 ;; 7080mirbsd*) #(vi 7081 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h> 7082 ;; 7083netbsd*) #(vi 7084 # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw 7085 ;; 7086openbsd*) #(vi 7087 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw 7088 ;; 7089osf[45]*) #(vi 7090 cf_xopen_source="-D_OSF_SOURCE" 7091 ;; 7092nto-qnx*) #(vi 7093 cf_xopen_source="-D_QNX_SOURCE" 7094 ;; 7095sco*) #(vi 7096 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer 7097 ;; 7098solaris2.1[0-9]) #(vi 7099 cf_xopen_source="-D__EXTENSIONS__ -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 7100 ;; 7101solaris2.[1-9]) #(vi 7102 cf_xopen_source="-D__EXTENSIONS__" 7103 ;; 7104*) 7105 echo "$as_me:7105: checking if we should define _XOPEN_SOURCE" >&5 7106echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 7107if test "${cf_cv_xopen_source+set}" = set; then 7108 echo $ECHO_N "(cached) $ECHO_C" >&6 7109else 7110 7111 cat >conftest.$ac_ext <<_ACEOF 7112#line 7112 "configure" 7113#include "confdefs.h" 7114#include <sys/types.h> 7115int 7116main () 7117{ 7118 7119#ifndef _XOPEN_SOURCE 7120make an error 7121#endif 7122 ; 7123 return 0; 7124} 7125_ACEOF 7126rm -f conftest.$ac_objext 7127if { (eval echo "$as_me:7127: \"$ac_compile\"") >&5 7128 (eval $ac_compile) 2>&5 7129 ac_status=$? 7130 echo "$as_me:7130: \$? = $ac_status" >&5 7131 (exit $ac_status); } && 7132 { ac_try='test -s conftest.$ac_objext' 7133 { (eval echo "$as_me:7133: \"$ac_try\"") >&5 7134 (eval $ac_try) 2>&5 7135 ac_status=$? 7136 echo "$as_me:7136: \$? = $ac_status" >&5 7137 (exit $ac_status); }; }; then 7138 cf_cv_xopen_source=no 7139else 7140 echo "$as_me: failed program was:" >&5 7141cat conftest.$ac_ext >&5 7142cf_save="$CPPFLAGS" 7143 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 7144 cat >conftest.$ac_ext <<_ACEOF 7145#line 7145 "configure" 7146#include "confdefs.h" 7147#include <sys/types.h> 7148int 7149main () 7150{ 7151 7152#ifdef _XOPEN_SOURCE 7153make an error 7154#endif 7155 ; 7156 return 0; 7157} 7158_ACEOF 7159rm -f conftest.$ac_objext 7160if { (eval echo "$as_me:7160: \"$ac_compile\"") >&5 7161 (eval $ac_compile) 2>&5 7162 ac_status=$? 7163 echo "$as_me:7163: \$? = $ac_status" >&5 7164 (exit $ac_status); } && 7165 { ac_try='test -s conftest.$ac_objext' 7166 { (eval echo "$as_me:7166: \"$ac_try\"") >&5 7167 (eval $ac_try) 2>&5 7168 ac_status=$? 7169 echo "$as_me:7169: \$? = $ac_status" >&5 7170 (exit $ac_status); }; }; then 7171 cf_cv_xopen_source=no 7172else 7173 echo "$as_me: failed program was:" >&5 7174cat conftest.$ac_ext >&5 7175cf_cv_xopen_source=$cf_XOPEN_SOURCE 7176fi 7177rm -f conftest.$ac_objext conftest.$ac_ext 7178 CPPFLAGS="$cf_save" 7179 7180fi 7181rm -f conftest.$ac_objext conftest.$ac_ext 7182 7183fi 7184echo "$as_me:7184: result: $cf_cv_xopen_source" >&5 7185echo "${ECHO_T}$cf_cv_xopen_source" >&6 7186 if test "$cf_cv_xopen_source" != no ; then 7187 7188CFLAGS=`echo "$CFLAGS" | \ 7189 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 7190 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 7191 7192CPPFLAGS=`echo "$CPPFLAGS" | \ 7193 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 7194 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 7195 7196 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 7197 7198cf_fix_cppflags=no 7199cf_new_cflags= 7200cf_new_cppflags= 7201cf_new_extra_cppflags= 7202 7203for cf_add_cflags in $cf_temp_xopen_source 7204do 7205case $cf_fix_cppflags in 7206no) 7207 case $cf_add_cflags in #(vi 7208 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 7209 case $cf_add_cflags in 7210 -D*) 7211 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 7212 7213 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 7214 && test -z "${cf_tst_cflags}" \ 7215 && cf_fix_cppflags=yes 7216 7217 if test $cf_fix_cppflags = yes ; then 7218 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 7219 continue 7220 elif test "${cf_tst_cflags}" = "\"'" ; then 7221 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 7222 continue 7223 fi 7224 ;; 7225 esac 7226 case "$CPPFLAGS" in 7227 *$cf_add_cflags) #(vi 7228 ;; 7229 *) #(vi 7230 case $cf_add_cflags in #(vi 7231 -D*) 7232 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 7233 7234CPPFLAGS=`echo "$CPPFLAGS" | \ 7235 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 7236 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 7237 7238 ;; 7239 esac 7240 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 7241 ;; 7242 esac 7243 ;; 7244 *) 7245 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 7246 ;; 7247 esac 7248 ;; 7249yes) 7250 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 7251 7252 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 7253 7254 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 7255 && test -z "${cf_tst_cflags}" \ 7256 && cf_fix_cppflags=no 7257 ;; 7258esac 7259done 7260 7261if test -n "$cf_new_cflags" ; then 7262 7263 CFLAGS="$CFLAGS $cf_new_cflags" 7264fi 7265 7266if test -n "$cf_new_cppflags" ; then 7267 7268 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 7269fi 7270 7271if test -n "$cf_new_extra_cppflags" ; then 7272 7273 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 7274fi 7275 7276 fi 7277 7278cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 7279 7280cf_save_CFLAGS="$CFLAGS" 7281cf_save_CPPFLAGS="$CPPFLAGS" 7282 7283cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 7284 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 7285 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 7286 7287cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 7288 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 7289 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 7290 7291echo "$as_me:7291: checking if we should define _POSIX_C_SOURCE" >&5 7292echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 7293if test "${cf_cv_posix_c_source+set}" = set; then 7294 echo $ECHO_N "(cached) $ECHO_C" >&6 7295else 7296 7297echo "${as_me:-configure}:7297: testing if the symbol is already defined go no further ..." 1>&5 7298 7299 cat >conftest.$ac_ext <<_ACEOF 7300#line 7300 "configure" 7301#include "confdefs.h" 7302#include <sys/types.h> 7303int 7304main () 7305{ 7306 7307#ifndef _POSIX_C_SOURCE 7308make an error 7309#endif 7310 ; 7311 return 0; 7312} 7313_ACEOF 7314rm -f conftest.$ac_objext 7315if { (eval echo "$as_me:7315: \"$ac_compile\"") >&5 7316 (eval $ac_compile) 2>&5 7317 ac_status=$? 7318 echo "$as_me:7318: \$? = $ac_status" >&5 7319 (exit $ac_status); } && 7320 { ac_try='test -s conftest.$ac_objext' 7321 { (eval echo "$as_me:7321: \"$ac_try\"") >&5 7322 (eval $ac_try) 2>&5 7323 ac_status=$? 7324 echo "$as_me:7324: \$? = $ac_status" >&5 7325 (exit $ac_status); }; }; then 7326 cf_cv_posix_c_source=no 7327else 7328 echo "$as_me: failed program was:" >&5 7329cat conftest.$ac_ext >&5 7330cf_want_posix_source=no 7331 case .$cf_POSIX_C_SOURCE in #(vi 7332 .[12]??*) #(vi 7333 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 7334 ;; 7335 .2) #(vi 7336 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 7337 cf_want_posix_source=yes 7338 ;; 7339 .*) 7340 cf_want_posix_source=yes 7341 ;; 7342 esac 7343 if test "$cf_want_posix_source" = yes ; then 7344 cat >conftest.$ac_ext <<_ACEOF 7345#line 7345 "configure" 7346#include "confdefs.h" 7347#include <sys/types.h> 7348int 7349main () 7350{ 7351 7352#ifdef _POSIX_SOURCE 7353make an error 7354#endif 7355 ; 7356 return 0; 7357} 7358_ACEOF 7359rm -f conftest.$ac_objext 7360if { (eval echo "$as_me:7360: \"$ac_compile\"") >&5 7361 (eval $ac_compile) 2>&5 7362 ac_status=$? 7363 echo "$as_me:7363: \$? = $ac_status" >&5 7364 (exit $ac_status); } && 7365 { ac_try='test -s conftest.$ac_objext' 7366 { (eval echo "$as_me:7366: \"$ac_try\"") >&5 7367 (eval $ac_try) 2>&5 7368 ac_status=$? 7369 echo "$as_me:7369: \$? = $ac_status" >&5 7370 (exit $ac_status); }; }; then 7371 : 7372else 7373 echo "$as_me: failed program was:" >&5 7374cat conftest.$ac_ext >&5 7375cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 7376fi 7377rm -f conftest.$ac_objext conftest.$ac_ext 7378 fi 7379 7380echo "${as_me:-configure}:7380: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 7381 7382 CFLAGS="$cf_trim_CFLAGS" 7383 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source" 7384 7385echo "${as_me:-configure}:7385: testing if the second compile does not leave our definition intact error ..." 1>&5 7386 7387 cat >conftest.$ac_ext <<_ACEOF 7388#line 7388 "configure" 7389#include "confdefs.h" 7390#include <sys/types.h> 7391int 7392main () 7393{ 7394 7395#ifndef _POSIX_C_SOURCE 7396make an error 7397#endif 7398 ; 7399 return 0; 7400} 7401_ACEOF 7402rm -f conftest.$ac_objext 7403if { (eval echo "$as_me:7403: \"$ac_compile\"") >&5 7404 (eval $ac_compile) 2>&5 7405 ac_status=$? 7406 echo "$as_me:7406: \$? = $ac_status" >&5 7407 (exit $ac_status); } && 7408 { ac_try='test -s conftest.$ac_objext' 7409 { (eval echo "$as_me:7409: \"$ac_try\"") >&5 7410 (eval $ac_try) 2>&5 7411 ac_status=$? 7412 echo "$as_me:7412: \$? = $ac_status" >&5 7413 (exit $ac_status); }; }; then 7414 : 7415else 7416 echo "$as_me: failed program was:" >&5 7417cat conftest.$ac_ext >&5 7418cf_cv_posix_c_source=no 7419fi 7420rm -f conftest.$ac_objext conftest.$ac_ext 7421 CFLAGS="$cf_save_CFLAGS" 7422 CPPFLAGS="$cf_save_CPPFLAGS" 7423 7424fi 7425rm -f conftest.$ac_objext conftest.$ac_ext 7426 7427fi 7428echo "$as_me:7428: result: $cf_cv_posix_c_source" >&5 7429echo "${ECHO_T}$cf_cv_posix_c_source" >&6 7430 7431if test "$cf_cv_posix_c_source" != no ; then 7432 CFLAGS="$cf_trim_CFLAGS" 7433 CPPFLAGS="$cf_trim_CPPFLAGS" 7434 7435cf_fix_cppflags=no 7436cf_new_cflags= 7437cf_new_cppflags= 7438cf_new_extra_cppflags= 7439 7440for cf_add_cflags in $cf_cv_posix_c_source 7441do 7442case $cf_fix_cppflags in 7443no) 7444 case $cf_add_cflags in #(vi 7445 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 7446 case $cf_add_cflags in 7447 -D*) 7448 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 7449 7450 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 7451 && test -z "${cf_tst_cflags}" \ 7452 && cf_fix_cppflags=yes 7453 7454 if test $cf_fix_cppflags = yes ; then 7455 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 7456 continue 7457 elif test "${cf_tst_cflags}" = "\"'" ; then 7458 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 7459 continue 7460 fi 7461 ;; 7462 esac 7463 case "$CPPFLAGS" in 7464 *$cf_add_cflags) #(vi 7465 ;; 7466 *) #(vi 7467 case $cf_add_cflags in #(vi 7468 -D*) 7469 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 7470 7471CPPFLAGS=`echo "$CPPFLAGS" | \ 7472 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 7473 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 7474 7475 ;; 7476 esac 7477 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 7478 ;; 7479 esac 7480 ;; 7481 *) 7482 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 7483 ;; 7484 esac 7485 ;; 7486yes) 7487 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 7488 7489 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 7490 7491 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 7492 && test -z "${cf_tst_cflags}" \ 7493 && cf_fix_cppflags=no 7494 ;; 7495esac 7496done 7497 7498if test -n "$cf_new_cflags" ; then 7499 7500 CFLAGS="$CFLAGS $cf_new_cflags" 7501fi 7502 7503if test -n "$cf_new_cppflags" ; then 7504 7505 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 7506fi 7507 7508if test -n "$cf_new_extra_cppflags" ; then 7509 7510 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 7511fi 7512 7513fi 7514 7515 ;; 7516esac 7517 7518if test -n "$cf_xopen_source" ; then 7519 7520cf_fix_cppflags=no 7521cf_new_cflags= 7522cf_new_cppflags= 7523cf_new_extra_cppflags= 7524 7525for cf_add_cflags in $cf_xopen_source 7526do 7527case $cf_fix_cppflags in 7528no) 7529 case $cf_add_cflags in #(vi 7530 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 7531 case $cf_add_cflags in 7532 -D*) 7533 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 7534 7535 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 7536 && test -z "${cf_tst_cflags}" \ 7537 && cf_fix_cppflags=yes 7538 7539 if test $cf_fix_cppflags = yes ; then 7540 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 7541 continue 7542 elif test "${cf_tst_cflags}" = "\"'" ; then 7543 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 7544 continue 7545 fi 7546 ;; 7547 esac 7548 case "$CPPFLAGS" in 7549 *$cf_add_cflags) #(vi 7550 ;; 7551 *) #(vi 7552 case $cf_add_cflags in #(vi 7553 -D*) 7554 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 7555 7556CPPFLAGS=`echo "$CPPFLAGS" | \ 7557 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 7558 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 7559 7560 ;; 7561 esac 7562 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 7563 ;; 7564 esac 7565 ;; 7566 *) 7567 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 7568 ;; 7569 esac 7570 ;; 7571yes) 7572 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 7573 7574 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 7575 7576 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 7577 && test -z "${cf_tst_cflags}" \ 7578 && cf_fix_cppflags=no 7579 ;; 7580esac 7581done 7582 7583if test -n "$cf_new_cflags" ; then 7584 7585 CFLAGS="$CFLAGS $cf_new_cflags" 7586fi 7587 7588if test -n "$cf_new_cppflags" ; then 7589 7590 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 7591fi 7592 7593if test -n "$cf_new_extra_cppflags" ; then 7594 7595 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 7596fi 7597 7598fi 7599 7600# Work around breakage on OS X 7601 7602echo "$as_me:7602: checking if SIGWINCH is defined" >&5 7603echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6 7604if test "${cf_cv_define_sigwinch+set}" = set; then 7605 echo $ECHO_N "(cached) $ECHO_C" >&6 7606else 7607 7608 cat >conftest.$ac_ext <<_ACEOF 7609#line 7609 "configure" 7610#include "confdefs.h" 7611 7612#include <sys/types.h> 7613#include <sys/signal.h> 7614 7615int 7616main () 7617{ 7618int x = SIGWINCH 7619 ; 7620 return 0; 7621} 7622_ACEOF 7623rm -f conftest.$ac_objext 7624if { (eval echo "$as_me:7624: \"$ac_compile\"") >&5 7625 (eval $ac_compile) 2>&5 7626 ac_status=$? 7627 echo "$as_me:7627: \$? = $ac_status" >&5 7628 (exit $ac_status); } && 7629 { ac_try='test -s conftest.$ac_objext' 7630 { (eval echo "$as_me:7630: \"$ac_try\"") >&5 7631 (eval $ac_try) 2>&5 7632 ac_status=$? 7633 echo "$as_me:7633: \$? = $ac_status" >&5 7634 (exit $ac_status); }; }; then 7635 cf_cv_define_sigwinch=yes 7636else 7637 echo "$as_me: failed program was:" >&5 7638cat conftest.$ac_ext >&5 7639cat >conftest.$ac_ext <<_ACEOF 7640#line 7640 "configure" 7641#include "confdefs.h" 7642 7643#undef _XOPEN_SOURCE 7644#undef _POSIX_SOURCE 7645#undef _POSIX_C_SOURCE 7646#include <sys/types.h> 7647#include <sys/signal.h> 7648 7649int 7650main () 7651{ 7652int x = SIGWINCH 7653 ; 7654 return 0; 7655} 7656_ACEOF 7657rm -f conftest.$ac_objext 7658if { (eval echo "$as_me:7658: \"$ac_compile\"") >&5 7659 (eval $ac_compile) 2>&5 7660 ac_status=$? 7661 echo "$as_me:7661: \$? = $ac_status" >&5 7662 (exit $ac_status); } && 7663 { ac_try='test -s conftest.$ac_objext' 7664 { (eval echo "$as_me:7664: \"$ac_try\"") >&5 7665 (eval $ac_try) 2>&5 7666 ac_status=$? 7667 echo "$as_me:7667: \$? = $ac_status" >&5 7668 (exit $ac_status); }; }; then 7669 cf_cv_define_sigwinch=maybe 7670else 7671 echo "$as_me: failed program was:" >&5 7672cat conftest.$ac_ext >&5 7673cf_cv_define_sigwinch=no 7674fi 7675rm -f conftest.$ac_objext conftest.$ac_ext 7676 7677fi 7678rm -f conftest.$ac_objext conftest.$ac_ext 7679 7680fi 7681echo "$as_me:7681: result: $cf_cv_define_sigwinch" >&5 7682echo "${ECHO_T}$cf_cv_define_sigwinch" >&6 7683 7684if test "$cf_cv_define_sigwinch" = maybe ; then 7685echo "$as_me:7685: checking for actual SIGWINCH definition" >&5 7686echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6 7687if test "${cf_cv_fixup_sigwinch+set}" = set; then 7688 echo $ECHO_N "(cached) $ECHO_C" >&6 7689else 7690 7691cf_cv_fixup_sigwinch=unknown 7692cf_sigwinch=32 7693while test $cf_sigwinch != 1 7694do 7695 cat >conftest.$ac_ext <<_ACEOF 7696#line 7696 "configure" 7697#include "confdefs.h" 7698 7699#undef _XOPEN_SOURCE 7700#undef _POSIX_SOURCE 7701#undef _POSIX_C_SOURCE 7702#include <sys/types.h> 7703#include <sys/signal.h> 7704 7705int 7706main () 7707{ 7708 7709#if SIGWINCH != $cf_sigwinch 7710make an error 7711#endif 7712int x = SIGWINCH 7713 ; 7714 return 0; 7715} 7716_ACEOF 7717rm -f conftest.$ac_objext 7718if { (eval echo "$as_me:7718: \"$ac_compile\"") >&5 7719 (eval $ac_compile) 2>&5 7720 ac_status=$? 7721 echo "$as_me:7721: \$? = $ac_status" >&5 7722 (exit $ac_status); } && 7723 { ac_try='test -s conftest.$ac_objext' 7724 { (eval echo "$as_me:7724: \"$ac_try\"") >&5 7725 (eval $ac_try) 2>&5 7726 ac_status=$? 7727 echo "$as_me:7727: \$? = $ac_status" >&5 7728 (exit $ac_status); }; }; then 7729 cf_cv_fixup_sigwinch=$cf_sigwinch 7730 break 7731else 7732 echo "$as_me: failed program was:" >&5 7733cat conftest.$ac_ext >&5 7734fi 7735rm -f conftest.$ac_objext conftest.$ac_ext 7736 7737cf_sigwinch=`expr $cf_sigwinch - 1` 7738done 7739 7740fi 7741echo "$as_me:7741: result: $cf_cv_fixup_sigwinch" >&5 7742echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6 7743 7744 if test "$cf_cv_fixup_sigwinch" != unknown ; then 7745 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch" 7746 fi 7747fi 7748 7749# Checks for CODESET support. 7750 7751 echo "$as_me:7751: checking for nl_langinfo and CODESET" >&5 7752echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 7753if test "${am_cv_langinfo_codeset+set}" = set; then 7754 echo $ECHO_N "(cached) $ECHO_C" >&6 7755else 7756 cat >conftest.$ac_ext <<_ACEOF 7757#line 7757 "configure" 7758#include "confdefs.h" 7759#include <langinfo.h> 7760int 7761main () 7762{ 7763char* cs = nl_langinfo(CODESET); 7764 ; 7765 return 0; 7766} 7767_ACEOF 7768rm -f conftest.$ac_objext conftest$ac_exeext 7769if { (eval echo "$as_me:7769: \"$ac_link\"") >&5 7770 (eval $ac_link) 2>&5 7771 ac_status=$? 7772 echo "$as_me:7772: \$? = $ac_status" >&5 7773 (exit $ac_status); } && 7774 { ac_try='test -s conftest$ac_exeext' 7775 { (eval echo "$as_me:7775: \"$ac_try\"") >&5 7776 (eval $ac_try) 2>&5 7777 ac_status=$? 7778 echo "$as_me:7778: \$? = $ac_status" >&5 7779 (exit $ac_status); }; }; then 7780 am_cv_langinfo_codeset=yes 7781else 7782 echo "$as_me: failed program was:" >&5 7783cat conftest.$ac_ext >&5 7784am_cv_langinfo_codeset=no 7785fi 7786rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7787 7788fi 7789echo "$as_me:7789: result: $am_cv_langinfo_codeset" >&5 7790echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 7791 if test $am_cv_langinfo_codeset = yes; then 7792 7793cat >>confdefs.h <<\EOF 7794#define HAVE_LANGINFO_CODESET 1 7795EOF 7796 7797 fi 7798 7799# use these variables to work around a defect in gcc's fixincludes. 7800NCURSES_OK_WCHAR_T= 7801NCURSES_OK_WINT_T= 7802 7803echo "$as_me:7803: checking if you want wide-character code" >&5 7804echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6 7805 7806# Check whether --enable-widec or --disable-widec was given. 7807if test "${enable_widec+set}" = set; then 7808 enableval="$enable_widec" 7809 with_widec=$enableval 7810else 7811 with_widec=no 7812fi; 7813echo "$as_me:7813: result: $with_widec" >&5 7814echo "${ECHO_T}$with_widec" >&6 7815if test "$with_widec" = yes ; then 7816 LIB_SUFFIX="w${LIB_SUFFIX}" 7817 cat >>confdefs.h <<\EOF 7818#define USE_WIDEC_SUPPORT 1 7819EOF 7820 7821 case "$CFLAGS $CPPFLAGS" in #(vi 7822 *-D_XOPEN_SOURCE=500) #(vi 7823 ;; 7824 *) 7825 7826echo "$as_me:7826: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5 7827echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6 7828cat >conftest.$ac_ext <<_ACEOF 7829#line 7829 "configure" 7830#include "confdefs.h" 7831#include <sys/types.h> 7832 7833int 7834main () 7835{ 7836 7837#ifndef _XOPEN_SOURCE_EXTENDED 7838make an error 7839#endif 7840 ; 7841 return 0; 7842} 7843_ACEOF 7844rm -f conftest.$ac_objext 7845if { (eval echo "$as_me:7845: \"$ac_compile\"") >&5 7846 (eval $ac_compile) 2>&5 7847 ac_status=$? 7848 echo "$as_me:7848: \$? = $ac_status" >&5 7849 (exit $ac_status); } && 7850 { ac_try='test -s conftest.$ac_objext' 7851 { (eval echo "$as_me:7851: \"$ac_try\"") >&5 7852 (eval $ac_try) 2>&5 7853 ac_status=$? 7854 echo "$as_me:7854: \$? = $ac_status" >&5 7855 (exit $ac_status); }; }; then 7856 cf_result=no 7857else 7858 echo "$as_me: failed program was:" >&5 7859cat conftest.$ac_ext >&5 7860cf_result=yes 7861fi 7862rm -f conftest.$ac_objext conftest.$ac_ext 7863echo "$as_me:7863: result: $cf_result" >&5 7864echo "${ECHO_T}$cf_result" >&6 7865 7866if test "$cf_result" = yes ; then 7867 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED" 7868elif test "x" != "x" ; then 7869 echo "$as_me:7869: checking checking for compatible value versus " >&5 7870echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6 7871 cat >conftest.$ac_ext <<_ACEOF 7872#line 7872 "configure" 7873#include "confdefs.h" 7874#include <sys/types.h> 7875 7876int 7877main () 7878{ 7879 7880#if _XOPEN_SOURCE_EXTENDED- < 0 7881make an error 7882#endif 7883 ; 7884 return 0; 7885} 7886_ACEOF 7887rm -f conftest.$ac_objext 7888if { (eval echo "$as_me:7888: \"$ac_compile\"") >&5 7889 (eval $ac_compile) 2>&5 7890 ac_status=$? 7891 echo "$as_me:7891: \$? = $ac_status" >&5 7892 (exit $ac_status); } && 7893 { ac_try='test -s conftest.$ac_objext' 7894 { (eval echo "$as_me:7894: \"$ac_try\"") >&5 7895 (eval $ac_try) 2>&5 7896 ac_status=$? 7897 echo "$as_me:7897: \$? = $ac_status" >&5 7898 (exit $ac_status); }; }; then 7899 cf_result=yes 7900else 7901 echo "$as_me: failed program was:" >&5 7902cat conftest.$ac_ext >&5 7903cf_result=no 7904fi 7905rm -f conftest.$ac_objext conftest.$ac_ext 7906 echo "$as_me:7906: result: $cf_result" >&5 7907echo "${ECHO_T}$cf_result" >&6 7908 if test "$cf_result" = no ; then 7909 # perhaps we can override it - try... 7910 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED=" 7911 fi 7912fi 7913 7914 ;; 7915 esac 7916 7917 # with_overwrite=no 7918 NCURSES_CH_T=cchar_t 7919 7920for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs 7921do 7922as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7923echo "$as_me:7923: checking for $ac_func" >&5 7924echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7925if eval "test \"\${$as_ac_var+set}\" = set"; then 7926 echo $ECHO_N "(cached) $ECHO_C" >&6 7927else 7928 cat >conftest.$ac_ext <<_ACEOF 7929#line 7929 "configure" 7930#include "confdefs.h" 7931/* System header to define __stub macros and hopefully few prototypes, 7932 which can conflict with char $ac_func (); below. */ 7933#include <assert.h> 7934/* Override any gcc2 internal prototype to avoid an error. */ 7935#ifdef __cplusplus 7936extern "C" 7937#endif 7938/* We use char because int might match the return type of a gcc2 7939 builtin and then its argument prototype would still apply. */ 7940char $ac_func (); 7941char (*f) (); 7942 7943int 7944main () 7945{ 7946/* The GNU C library defines this for functions which it implements 7947 to always fail with ENOSYS. Some functions are actually named 7948 something starting with __ and the normal name is an alias. */ 7949#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7950choke me 7951#else 7952f = $ac_func; 7953#endif 7954 7955 ; 7956 return 0; 7957} 7958_ACEOF 7959rm -f conftest.$ac_objext conftest$ac_exeext 7960if { (eval echo "$as_me:7960: \"$ac_link\"") >&5 7961 (eval $ac_link) 2>&5 7962 ac_status=$? 7963 echo "$as_me:7963: \$? = $ac_status" >&5 7964 (exit $ac_status); } && 7965 { ac_try='test -s conftest$ac_exeext' 7966 { (eval echo "$as_me:7966: \"$ac_try\"") >&5 7967 (eval $ac_try) 2>&5 7968 ac_status=$? 7969 echo "$as_me:7969: \$? = $ac_status" >&5 7970 (exit $ac_status); }; }; then 7971 eval "$as_ac_var=yes" 7972else 7973 echo "$as_me: failed program was:" >&5 7974cat conftest.$ac_ext >&5 7975eval "$as_ac_var=no" 7976fi 7977rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7978fi 7979echo "$as_me:7979: result: `eval echo '${'$as_ac_var'}'`" >&5 7980echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7981if test `eval echo '${'$as_ac_var'}'` = yes; then 7982 cat >>confdefs.h <<EOF 7983#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7984EOF 7985 7986fi 7987done 7988 7989 if test "$ac_cv_func_putwc" != yes ; then 7990 7991echo "$as_me:7991: checking for multibyte character support" >&5 7992echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6 7993if test "${cf_cv_utf8_lib+set}" = set; then 7994 echo $ECHO_N "(cached) $ECHO_C" >&6 7995else 7996 7997 cf_save_LIBS="$LIBS" 7998 cat >conftest.$ac_ext <<_ACEOF 7999#line 7999 "configure" 8000#include "confdefs.h" 8001 8002#include <stdlib.h> 8003int 8004main () 8005{ 8006putwc(0,0); 8007 ; 8008 return 0; 8009} 8010_ACEOF 8011rm -f conftest.$ac_objext conftest$ac_exeext 8012if { (eval echo "$as_me:8012: \"$ac_link\"") >&5 8013 (eval $ac_link) 2>&5 8014 ac_status=$? 8015 echo "$as_me:8015: \$? = $ac_status" >&5 8016 (exit $ac_status); } && 8017 { ac_try='test -s conftest$ac_exeext' 8018 { (eval echo "$as_me:8018: \"$ac_try\"") >&5 8019 (eval $ac_try) 2>&5 8020 ac_status=$? 8021 echo "$as_me:8021: \$? = $ac_status" >&5 8022 (exit $ac_status); }; }; then 8023 cf_cv_utf8_lib=yes 8024else 8025 echo "$as_me: failed program was:" >&5 8026cat conftest.$ac_ext >&5 8027 8028# If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these 8029# will be set on completion of the AC_TRY_LINK below. 8030cf_cv_header_path_utf8= 8031cf_cv_library_path_utf8= 8032 8033echo "${as_me:-configure}:8033: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5 8034 8035cf_save_LIBS="$LIBS" 8036 8037cat >conftest.$ac_ext <<_ACEOF 8038#line 8038 "configure" 8039#include "confdefs.h" 8040 8041#include <libutf8.h> 8042int 8043main () 8044{ 8045putwc(0,0); 8046 ; 8047 return 0; 8048} 8049_ACEOF 8050rm -f conftest.$ac_objext conftest$ac_exeext 8051if { (eval echo "$as_me:8051: \"$ac_link\"") >&5 8052 (eval $ac_link) 2>&5 8053 ac_status=$? 8054 echo "$as_me:8054: \$? = $ac_status" >&5 8055 (exit $ac_status); } && 8056 { ac_try='test -s conftest$ac_exeext' 8057 { (eval echo "$as_me:8057: \"$ac_try\"") >&5 8058 (eval $ac_try) 2>&5 8059 ac_status=$? 8060 echo "$as_me:8060: \$? = $ac_status" >&5 8061 (exit $ac_status); }; }; then 8062 8063 cf_cv_find_linkage_utf8=yes 8064 cf_cv_header_path_utf8=/usr/include 8065 cf_cv_library_path_utf8=/usr/lib 8066 8067else 8068 echo "$as_me: failed program was:" >&5 8069cat conftest.$ac_ext >&5 8070 8071LIBS="-lutf8 $cf_save_LIBS" 8072 8073cat >conftest.$ac_ext <<_ACEOF 8074#line 8074 "configure" 8075#include "confdefs.h" 8076 8077#include <libutf8.h> 8078int 8079main () 8080{ 8081putwc(0,0); 8082 ; 8083 return 0; 8084} 8085_ACEOF 8086rm -f conftest.$ac_objext conftest$ac_exeext 8087if { (eval echo "$as_me:8087: \"$ac_link\"") >&5 8088 (eval $ac_link) 2>&5 8089 ac_status=$? 8090 echo "$as_me:8090: \$? = $ac_status" >&5 8091 (exit $ac_status); } && 8092 { ac_try='test -s conftest$ac_exeext' 8093 { (eval echo "$as_me:8093: \"$ac_try\"") >&5 8094 (eval $ac_try) 2>&5 8095 ac_status=$? 8096 echo "$as_me:8096: \$? = $ac_status" >&5 8097 (exit $ac_status); }; }; then 8098 8099 cf_cv_find_linkage_utf8=yes 8100 cf_cv_header_path_utf8=/usr/include 8101 cf_cv_library_path_utf8=/usr/lib 8102 cf_cv_library_file_utf8="-lutf8" 8103 8104else 8105 echo "$as_me: failed program was:" >&5 8106cat conftest.$ac_ext >&5 8107 8108 cf_cv_find_linkage_utf8=no 8109 LIBS="$cf_save_LIBS" 8110 8111 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6 8112 8113echo "${as_me:-configure}:8113: testing find linkage for utf8 library ..." 1>&5 8114 8115echo "${as_me:-configure}:8115: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5 8116 8117 cf_save_CPPFLAGS="$CPPFLAGS" 8118 cf_test_CPPFLAGS="$CPPFLAGS" 8119 8120cf_search= 8121 8122# collect the current set of include-directories from compiler flags 8123cf_header_path_list="" 8124if test -n "${CFLAGS}${CPPFLAGS}" ; then 8125 for cf_header_path in $CPPFLAGS $CFLAGS 8126 do 8127 case $cf_header_path in #(vi 8128 -I*) 8129 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'` 8130 8131test "$cf_header_path" != "NONE" && \ 8132test -d "$cf_header_path" && \ 8133 { 8134 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path" 8135 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include" 8136 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8" 8137 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include" 8138 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include" 8139 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8" 8140} 8141 8142 cf_header_path_list="$cf_header_path_list $cf_search" 8143 ;; 8144 esac 8145 done 8146fi 8147 8148# add the variations for the package we are looking for 8149 8150cf_search= 8151 8152test "/usr" != "$prefix" && \ 8153test -d "/usr" && \ 8154(test $prefix = NONE || test "/usr" != "$prefix") && { 8155 test -n "$verbose" && echo " ... testing for include-directories under /usr" 8156 test -d /usr/include && cf_search="$cf_search /usr/include" 8157 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8" 8158 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include" 8159 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include" 8160 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8" 8161} 8162 8163test "$prefix" != "NONE" && \ 8164test -d "$prefix" && \ 8165 { 8166 test -n "$verbose" && echo " ... testing for include-directories under $prefix" 8167 test -d $prefix/include && cf_search="$cf_search $prefix/include" 8168 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8" 8169 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include" 8170 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include" 8171 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8" 8172} 8173 8174test "/usr/local" != "$prefix" && \ 8175test -d "/usr/local" && \ 8176(test $prefix = NONE || test "/usr/local" != "$prefix") && { 8177 test -n "$verbose" && echo " ... testing for include-directories under /usr/local" 8178 test -d /usr/local/include && cf_search="$cf_search /usr/local/include" 8179 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8" 8180 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include" 8181 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include" 8182 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8" 8183} 8184 8185test "/opt" != "$prefix" && \ 8186test -d "/opt" && \ 8187(test $prefix = NONE || test "/opt" != "$prefix") && { 8188 test -n "$verbose" && echo " ... testing for include-directories under /opt" 8189 test -d /opt/include && cf_search="$cf_search /opt/include" 8190 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8" 8191 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include" 8192 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include" 8193 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8" 8194} 8195 8196test "$HOME" != "$prefix" && \ 8197test -d "$HOME" && \ 8198(test $prefix = NONE || test "$HOME" != "$prefix") && { 8199 test -n "$verbose" && echo " ... testing for include-directories under $HOME" 8200 test -d $HOME/include && cf_search="$cf_search $HOME/include" 8201 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8" 8202 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include" 8203 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include" 8204 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8" 8205} 8206 8207test "$includedir" != NONE && \ 8208test "$includedir" != "/usr/include" && \ 8209test -d "$includedir" && { 8210 test -d $includedir && cf_search="$cf_search $includedir" 8211 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8" 8212} 8213 8214test "$oldincludedir" != NONE && \ 8215test "$oldincludedir" != "/usr/include" && \ 8216test -d "$oldincludedir" && { 8217 test -d $oldincludedir && cf_search="$cf_search $oldincludedir" 8218 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8" 8219} 8220 8221cf_search="$cf_search $cf_header_path_list" 8222 8223 for cf_cv_header_path_utf8 in $cf_search 8224 do 8225 if test -d $cf_cv_header_path_utf8 ; then 8226 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6 8227 8228echo "${as_me:-configure}:8228: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5 8229 8230 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8" 8231 cat >conftest.$ac_ext <<_ACEOF 8232#line 8232 "configure" 8233#include "confdefs.h" 8234 8235#include <libutf8.h> 8236int 8237main () 8238{ 8239putwc(0,0); 8240 ; 8241 return 0; 8242} 8243_ACEOF 8244rm -f conftest.$ac_objext 8245if { (eval echo "$as_me:8245: \"$ac_compile\"") >&5 8246 (eval $ac_compile) 2>&5 8247 ac_status=$? 8248 echo "$as_me:8248: \$? = $ac_status" >&5 8249 (exit $ac_status); } && 8250 { ac_try='test -s conftest.$ac_objext' 8251 { (eval echo "$as_me:8251: \"$ac_try\"") >&5 8252 (eval $ac_try) 2>&5 8253 ac_status=$? 8254 echo "$as_me:8254: \$? = $ac_status" >&5 8255 (exit $ac_status); }; }; then 8256 8257 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6 8258 8259echo "${as_me:-configure}:8259: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5 8260 8261 cf_cv_find_linkage_utf8=maybe 8262 cf_test_CPPFLAGS="$CPPFLAGS" 8263 break 8264else 8265 echo "$as_me: failed program was:" >&5 8266cat conftest.$ac_ext >&5 8267 8268 CPPFLAGS="$cf_save_CPPFLAGS" 8269 8270fi 8271rm -f conftest.$ac_objext conftest.$ac_ext 8272 fi 8273 done 8274 8275 if test "$cf_cv_find_linkage_utf8" = maybe ; then 8276 8277echo "${as_me:-configure}:8277: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5 8278 8279 cf_save_LIBS="$LIBS" 8280 cf_save_LDFLAGS="$LDFLAGS" 8281 8282 if test "$cf_cv_find_linkage_utf8" != yes ; then 8283 8284cf_search= 8285cf_library_path_list="" 8286if test -n "${LDFLAGS}${LIBS}" ; then 8287 for cf_library_path in $LDFLAGS $LIBS 8288 do 8289 case $cf_library_path in #(vi 8290 -L*) 8291 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'` 8292 8293test "$cf_library_path" != "NONE" && \ 8294test -d "$cf_library_path" && \ 8295 { 8296 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path" 8297 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib" 8298 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8" 8299 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib" 8300 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib" 8301 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8" 8302} 8303 8304 cf_library_path_list="$cf_library_path_list $cf_search" 8305 ;; 8306 esac 8307 done 8308fi 8309 8310cf_search= 8311 8312test "/usr" != "$prefix" && \ 8313test -d "/usr" && \ 8314(test $prefix = NONE || test "/usr" != "$prefix") && { 8315 test -n "$verbose" && echo " ... testing for lib-directories under /usr" 8316 test -d /usr/lib && cf_search="$cf_search /usr/lib" 8317 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8" 8318 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib" 8319 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib" 8320 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8" 8321} 8322 8323test "$prefix" != "NONE" && \ 8324test -d "$prefix" && \ 8325 { 8326 test -n "$verbose" && echo " ... testing for lib-directories under $prefix" 8327 test -d $prefix/lib && cf_search="$cf_search $prefix/lib" 8328 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8" 8329 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib" 8330 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib" 8331 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8" 8332} 8333 8334test "/usr/local" != "$prefix" && \ 8335test -d "/usr/local" && \ 8336(test $prefix = NONE || test "/usr/local" != "$prefix") && { 8337 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local" 8338 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib" 8339 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8" 8340 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib" 8341 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib" 8342 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8" 8343} 8344 8345test "/opt" != "$prefix" && \ 8346test -d "/opt" && \ 8347(test $prefix = NONE || test "/opt" != "$prefix") && { 8348 test -n "$verbose" && echo " ... testing for lib-directories under /opt" 8349 test -d /opt/lib && cf_search="$cf_search /opt/lib" 8350 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8" 8351 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib" 8352 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib" 8353 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8" 8354} 8355 8356test "$HOME" != "$prefix" && \ 8357test -d "$HOME" && \ 8358(test $prefix = NONE || test "$HOME" != "$prefix") && { 8359 test -n "$verbose" && echo " ... testing for lib-directories under $HOME" 8360 test -d $HOME/lib && cf_search="$cf_search $HOME/lib" 8361 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8" 8362 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib" 8363 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib" 8364 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8" 8365} 8366 8367cf_search="$cf_library_path_list $cf_search" 8368 8369 for cf_cv_library_path_utf8 in $cf_search 8370 do 8371 if test -d $cf_cv_library_path_utf8 ; then 8372 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6 8373 8374echo "${as_me:-configure}:8374: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5 8375 8376 CPPFLAGS="$cf_test_CPPFLAGS" 8377 LIBS="-lutf8 $cf_save_LIBS" 8378 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8" 8379 cat >conftest.$ac_ext <<_ACEOF 8380#line 8380 "configure" 8381#include "confdefs.h" 8382 8383#include <libutf8.h> 8384int 8385main () 8386{ 8387putwc(0,0); 8388 ; 8389 return 0; 8390} 8391_ACEOF 8392rm -f conftest.$ac_objext conftest$ac_exeext 8393if { (eval echo "$as_me:8393: \"$ac_link\"") >&5 8394 (eval $ac_link) 2>&5 8395 ac_status=$? 8396 echo "$as_me:8396: \$? = $ac_status" >&5 8397 (exit $ac_status); } && 8398 { ac_try='test -s conftest$ac_exeext' 8399 { (eval echo "$as_me:8399: \"$ac_try\"") >&5 8400 (eval $ac_try) 2>&5 8401 ac_status=$? 8402 echo "$as_me:8402: \$? = $ac_status" >&5 8403 (exit $ac_status); }; }; then 8404 8405 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6 8406 8407echo "${as_me:-configure}:8407: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5 8408 8409 cf_cv_find_linkage_utf8=yes 8410 cf_cv_library_file_utf8="-lutf8" 8411 break 8412else 8413 echo "$as_me: failed program was:" >&5 8414cat conftest.$ac_ext >&5 8415 8416 CPPFLAGS="$cf_save_CPPFLAGS" 8417 LIBS="$cf_save_LIBS" 8418 LDFLAGS="$cf_save_LDFLAGS" 8419 8420fi 8421rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8422 fi 8423 done 8424 CPPFLAGS="$cf_save_CPPFLAGS" 8425 LDFLAGS="$cf_save_LDFLAGS" 8426 fi 8427 8428 else 8429 cf_cv_find_linkage_utf8=no 8430 fi 8431 8432fi 8433rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8434 8435fi 8436rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8437 8438LIBS="$cf_save_LIBS" 8439 8440if test "$cf_cv_find_linkage_utf8" = yes ; then 8441cf_cv_utf8_lib=add-on 8442else 8443cf_cv_utf8_lib=no 8444fi 8445 8446fi 8447rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8448fi 8449echo "$as_me:8449: result: $cf_cv_utf8_lib" >&5 8450echo "${ECHO_T}$cf_cv_utf8_lib" >&6 8451 8452# HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between 8453# ncurses/ncursesw: 8454if test "$cf_cv_utf8_lib" = "add-on" ; then 8455 cat >>confdefs.h <<\EOF 8456#define HAVE_LIBUTF8_H 1 8457EOF 8458 8459if test -n "$cf_cv_header_path_utf8" ; then 8460 for cf_add_incdir in $cf_cv_header_path_utf8 8461 do 8462 while test $cf_add_incdir != /usr/include 8463 do 8464 if test -d $cf_add_incdir 8465 then 8466 cf_have_incdir=no 8467 if test -n "$CFLAGS$CPPFLAGS" ; then 8468 # a loop is needed to ensure we can add subdirs of existing dirs 8469 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 8470 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 8471 cf_have_incdir=yes; break 8472 fi 8473 done 8474 fi 8475 8476 if test "$cf_have_incdir" = no ; then 8477 if test "$cf_add_incdir" = /usr/local/include ; then 8478 if test "$GCC" = yes 8479 then 8480 cf_save_CPPFLAGS=$CPPFLAGS 8481 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 8482 cat >conftest.$ac_ext <<_ACEOF 8483#line 8483 "configure" 8484#include "confdefs.h" 8485#include <stdio.h> 8486int 8487main () 8488{ 8489printf("Hello") 8490 ; 8491 return 0; 8492} 8493_ACEOF 8494rm -f conftest.$ac_objext 8495if { (eval echo "$as_me:8495: \"$ac_compile\"") >&5 8496 (eval $ac_compile) 2>&5 8497 ac_status=$? 8498 echo "$as_me:8498: \$? = $ac_status" >&5 8499 (exit $ac_status); } && 8500 { ac_try='test -s conftest.$ac_objext' 8501 { (eval echo "$as_me:8501: \"$ac_try\"") >&5 8502 (eval $ac_try) 2>&5 8503 ac_status=$? 8504 echo "$as_me:8504: \$? = $ac_status" >&5 8505 (exit $ac_status); }; }; then 8506 : 8507else 8508 echo "$as_me: failed program was:" >&5 8509cat conftest.$ac_ext >&5 8510cf_have_incdir=yes 8511fi 8512rm -f conftest.$ac_objext conftest.$ac_ext 8513 CPPFLAGS=$cf_save_CPPFLAGS 8514 fi 8515 fi 8516 fi 8517 8518 if test "$cf_have_incdir" = no ; then 8519 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 8520 8521echo "${as_me:-configure}:8521: testing adding $cf_add_incdir to include-path ..." 1>&5 8522 8523 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 8524 8525 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 8526 test "$cf_top_incdir" = "$cf_add_incdir" && break 8527 cf_add_incdir="$cf_top_incdir" 8528 else 8529 break 8530 fi 8531 fi 8532 done 8533 done 8534fi 8535 8536if test -n "$cf_cv_library_path_utf8" ; then 8537 for cf_add_libdir in $cf_cv_library_path_utf8 8538 do 8539 if test $cf_add_libdir = /usr/lib ; then 8540 : 8541 elif test -d $cf_add_libdir 8542 then 8543 cf_have_libdir=no 8544 if test -n "$LDFLAGS$LIBS" ; then 8545 # a loop is needed to ensure we can add subdirs of existing dirs 8546 for cf_test_libdir in $LDFLAGS $LIBS ; do 8547 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 8548 cf_have_libdir=yes; break 8549 fi 8550 done 8551 fi 8552 if test "$cf_have_libdir" = no ; then 8553 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 8554 8555echo "${as_me:-configure}:8555: testing adding $cf_add_libdir to library-path ..." 1>&5 8556 8557 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 8558 fi 8559 fi 8560 done 8561fi 8562 8563 LIBS="$cf_cv_library_file_utf8 $LIBS" 8564fi 8565 8566 if test "$cf_cv_utf8_lib" != no ; then 8567 NCURSES_LIBUTF8=1 8568 fi 8569 fi 8570 8571# This is needed on Tru64 5.0 to declare mbstate_t 8572echo "$as_me:8572: checking if we must include wchar.h to declare mbstate_t" >&5 8573echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6 8574if test "${cf_cv_mbstate_t+set}" = set; then 8575 echo $ECHO_N "(cached) $ECHO_C" >&6 8576else 8577 8578cat >conftest.$ac_ext <<_ACEOF 8579#line 8579 "configure" 8580#include "confdefs.h" 8581 8582#include <stdlib.h> 8583#include <stdarg.h> 8584#include <stdio.h> 8585#ifdef HAVE_LIBUTF8_H 8586#include <libutf8.h> 8587#endif 8588int 8589main () 8590{ 8591mbstate_t state 8592 ; 8593 return 0; 8594} 8595_ACEOF 8596rm -f conftest.$ac_objext 8597if { (eval echo "$as_me:8597: \"$ac_compile\"") >&5 8598 (eval $ac_compile) 2>&5 8599 ac_status=$? 8600 echo "$as_me:8600: \$? = $ac_status" >&5 8601 (exit $ac_status); } && 8602 { ac_try='test -s conftest.$ac_objext' 8603 { (eval echo "$as_me:8603: \"$ac_try\"") >&5 8604 (eval $ac_try) 2>&5 8605 ac_status=$? 8606 echo "$as_me:8606: \$? = $ac_status" >&5 8607 (exit $ac_status); }; }; then 8608 cf_cv_mbstate_t=no 8609else 8610 echo "$as_me: failed program was:" >&5 8611cat conftest.$ac_ext >&5 8612cat >conftest.$ac_ext <<_ACEOF 8613#line 8613 "configure" 8614#include "confdefs.h" 8615 8616#include <stdlib.h> 8617#include <stdarg.h> 8618#include <stdio.h> 8619#include <wchar.h> 8620#ifdef HAVE_LIBUTF8_H 8621#include <libutf8.h> 8622#endif 8623int 8624main () 8625{ 8626mbstate_t value 8627 ; 8628 return 0; 8629} 8630_ACEOF 8631rm -f conftest.$ac_objext 8632if { (eval echo "$as_me:8632: \"$ac_compile\"") >&5 8633 (eval $ac_compile) 2>&5 8634 ac_status=$? 8635 echo "$as_me:8635: \$? = $ac_status" >&5 8636 (exit $ac_status); } && 8637 { ac_try='test -s conftest.$ac_objext' 8638 { (eval echo "$as_me:8638: \"$ac_try\"") >&5 8639 (eval $ac_try) 2>&5 8640 ac_status=$? 8641 echo "$as_me:8641: \$? = $ac_status" >&5 8642 (exit $ac_status); }; }; then 8643 cf_cv_mbstate_t=yes 8644else 8645 echo "$as_me: failed program was:" >&5 8646cat conftest.$ac_ext >&5 8647cf_cv_mbstate_t=unknown 8648fi 8649rm -f conftest.$ac_objext conftest.$ac_ext 8650fi 8651rm -f conftest.$ac_objext conftest.$ac_ext 8652fi 8653echo "$as_me:8653: result: $cf_cv_mbstate_t" >&5 8654echo "${ECHO_T}$cf_cv_mbstate_t" >&6 8655 8656if test "$cf_cv_mbstate_t" = yes ; then 8657 cat >>confdefs.h <<\EOF 8658#define NEED_WCHAR_H 1 8659EOF 8660 8661 NEED_WCHAR_H=1 8662fi 8663 8664# if we do not find mbstate_t in either place, use substitution to provide a fallback. 8665if test "$cf_cv_mbstate_t" = unknown ; then 8666 NCURSES_MBSTATE_T=1 8667fi 8668 8669# This is needed on Tru64 5.0 to declare wchar_t 8670echo "$as_me:8670: checking if we must include wchar.h to declare wchar_t" >&5 8671echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6 8672if test "${cf_cv_wchar_t+set}" = set; then 8673 echo $ECHO_N "(cached) $ECHO_C" >&6 8674else 8675 8676cat >conftest.$ac_ext <<_ACEOF 8677#line 8677 "configure" 8678#include "confdefs.h" 8679 8680#include <stdlib.h> 8681#include <stdarg.h> 8682#include <stdio.h> 8683#ifdef HAVE_LIBUTF8_H 8684#include <libutf8.h> 8685#endif 8686int 8687main () 8688{ 8689wchar_t state 8690 ; 8691 return 0; 8692} 8693_ACEOF 8694rm -f conftest.$ac_objext 8695if { (eval echo "$as_me:8695: \"$ac_compile\"") >&5 8696 (eval $ac_compile) 2>&5 8697 ac_status=$? 8698 echo "$as_me:8698: \$? = $ac_status" >&5 8699 (exit $ac_status); } && 8700 { ac_try='test -s conftest.$ac_objext' 8701 { (eval echo "$as_me:8701: \"$ac_try\"") >&5 8702 (eval $ac_try) 2>&5 8703 ac_status=$? 8704 echo "$as_me:8704: \$? = $ac_status" >&5 8705 (exit $ac_status); }; }; then 8706 cf_cv_wchar_t=no 8707else 8708 echo "$as_me: failed program was:" >&5 8709cat conftest.$ac_ext >&5 8710cat >conftest.$ac_ext <<_ACEOF 8711#line 8711 "configure" 8712#include "confdefs.h" 8713 8714#include <stdlib.h> 8715#include <stdarg.h> 8716#include <stdio.h> 8717#include <wchar.h> 8718#ifdef HAVE_LIBUTF8_H 8719#include <libutf8.h> 8720#endif 8721int 8722main () 8723{ 8724wchar_t value 8725 ; 8726 return 0; 8727} 8728_ACEOF 8729rm -f conftest.$ac_objext 8730if { (eval echo "$as_me:8730: \"$ac_compile\"") >&5 8731 (eval $ac_compile) 2>&5 8732 ac_status=$? 8733 echo "$as_me:8733: \$? = $ac_status" >&5 8734 (exit $ac_status); } && 8735 { ac_try='test -s conftest.$ac_objext' 8736 { (eval echo "$as_me:8736: \"$ac_try\"") >&5 8737 (eval $ac_try) 2>&5 8738 ac_status=$? 8739 echo "$as_me:8739: \$? = $ac_status" >&5 8740 (exit $ac_status); }; }; then 8741 cf_cv_wchar_t=yes 8742else 8743 echo "$as_me: failed program was:" >&5 8744cat conftest.$ac_ext >&5 8745cf_cv_wchar_t=unknown 8746fi 8747rm -f conftest.$ac_objext conftest.$ac_ext 8748fi 8749rm -f conftest.$ac_objext conftest.$ac_ext 8750fi 8751echo "$as_me:8751: result: $cf_cv_wchar_t" >&5 8752echo "${ECHO_T}$cf_cv_wchar_t" >&6 8753 8754if test "$cf_cv_wchar_t" = yes ; then 8755 cat >>confdefs.h <<\EOF 8756#define NEED_WCHAR_H 1 8757EOF 8758 8759 NEED_WCHAR_H=1 8760fi 8761 8762# if we do not find wchar_t in either place, use substitution to provide a fallback. 8763if test "$cf_cv_wchar_t" = unknown ; then 8764 NCURSES_WCHAR_T=1 8765fi 8766 8767# if we find wchar_t in either place, use substitution to provide a fallback. 8768if test "$cf_cv_wchar_t" != unknown ; then 8769 NCURSES_OK_WCHAR_T=1 8770fi 8771 8772# This is needed on Tru64 5.0 to declare wint_t 8773echo "$as_me:8773: checking if we must include wchar.h to declare wint_t" >&5 8774echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6 8775if test "${cf_cv_wint_t+set}" = set; then 8776 echo $ECHO_N "(cached) $ECHO_C" >&6 8777else 8778 8779cat >conftest.$ac_ext <<_ACEOF 8780#line 8780 "configure" 8781#include "confdefs.h" 8782 8783#include <stdlib.h> 8784#include <stdarg.h> 8785#include <stdio.h> 8786#ifdef HAVE_LIBUTF8_H 8787#include <libutf8.h> 8788#endif 8789int 8790main () 8791{ 8792wint_t state 8793 ; 8794 return 0; 8795} 8796_ACEOF 8797rm -f conftest.$ac_objext 8798if { (eval echo "$as_me:8798: \"$ac_compile\"") >&5 8799 (eval $ac_compile) 2>&5 8800 ac_status=$? 8801 echo "$as_me:8801: \$? = $ac_status" >&5 8802 (exit $ac_status); } && 8803 { ac_try='test -s conftest.$ac_objext' 8804 { (eval echo "$as_me:8804: \"$ac_try\"") >&5 8805 (eval $ac_try) 2>&5 8806 ac_status=$? 8807 echo "$as_me:8807: \$? = $ac_status" >&5 8808 (exit $ac_status); }; }; then 8809 cf_cv_wint_t=no 8810else 8811 echo "$as_me: failed program was:" >&5 8812cat conftest.$ac_ext >&5 8813cat >conftest.$ac_ext <<_ACEOF 8814#line 8814 "configure" 8815#include "confdefs.h" 8816 8817#include <stdlib.h> 8818#include <stdarg.h> 8819#include <stdio.h> 8820#include <wchar.h> 8821#ifdef HAVE_LIBUTF8_H 8822#include <libutf8.h> 8823#endif 8824int 8825main () 8826{ 8827wint_t value 8828 ; 8829 return 0; 8830} 8831_ACEOF 8832rm -f conftest.$ac_objext 8833if { (eval echo "$as_me:8833: \"$ac_compile\"") >&5 8834 (eval $ac_compile) 2>&5 8835 ac_status=$? 8836 echo "$as_me:8836: \$? = $ac_status" >&5 8837 (exit $ac_status); } && 8838 { ac_try='test -s conftest.$ac_objext' 8839 { (eval echo "$as_me:8839: \"$ac_try\"") >&5 8840 (eval $ac_try) 2>&5 8841 ac_status=$? 8842 echo "$as_me:8842: \$? = $ac_status" >&5 8843 (exit $ac_status); }; }; then 8844 cf_cv_wint_t=yes 8845else 8846 echo "$as_me: failed program was:" >&5 8847cat conftest.$ac_ext >&5 8848cf_cv_wint_t=unknown 8849fi 8850rm -f conftest.$ac_objext conftest.$ac_ext 8851fi 8852rm -f conftest.$ac_objext conftest.$ac_ext 8853fi 8854echo "$as_me:8854: result: $cf_cv_wint_t" >&5 8855echo "${ECHO_T}$cf_cv_wint_t" >&6 8856 8857if test "$cf_cv_wint_t" = yes ; then 8858 cat >>confdefs.h <<\EOF 8859#define NEED_WCHAR_H 1 8860EOF 8861 8862 NEED_WCHAR_H=1 8863fi 8864 8865# if we do not find wint_t in either place, use substitution to provide a fallback. 8866if test "$cf_cv_wint_t" = unknown ; then 8867 NCURSES_WINT_T=1 8868fi 8869 8870# if we find wint_t in either place, use substitution to provide a fallback. 8871if test "$cf_cv_wint_t" != unknown ; then 8872 NCURSES_OK_WINT_T=1 8873fi 8874 8875 if test "$NCURSES_MBSTATE_T" != 0; then 8876 cat >>confdefs.h <<\EOF 8877#define NEED_MBSTATE_T_DEF 1 8878EOF 8879 8880 fi 8881fi 8882 8883### use option --disable-lp64 to allow long chtype 8884case $cf_cv_abi_version in 8885[345]*) 8886 default_with_lp64=no 8887 ;; 8888*) 8889 default_with_lp64=yes 8890 ;; 8891esac 8892 8893echo "$as_me:8893: checking whether to enable _LP64 definition in curses.h" >&5 8894echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6 8895 8896# Check whether --enable-lp64 or --disable-lp64 was given. 8897if test "${enable_lp64+set}" = set; then 8898 enableval="$enable_lp64" 8899 with_lp64=$enableval 8900else 8901 with_lp64=$default_with_lp64 8902fi; 8903echo "$as_me:8903: result: $with_lp64" >&5 8904echo "${ECHO_T}$with_lp64" >&6 8905 8906if test "$with_lp64" = yes ; then 8907 cf_cv_enable_lp64=1 8908else 8909 cf_cv_enable_lp64=0 8910fi 8911 8912# Check whether --enable-largefile or --disable-largefile was given. 8913if test "${enable_largefile+set}" = set; then 8914 enableval="$enable_largefile" 8915 8916fi; 8917if test "$enable_largefile" != no; then 8918 8919 echo "$as_me:8919: checking for special C compiler options needed for large files" >&5 8920echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 8921if test "${ac_cv_sys_largefile_CC+set}" = set; then 8922 echo $ECHO_N "(cached) $ECHO_C" >&6 8923else 8924 ac_cv_sys_largefile_CC=no 8925 if test "$GCC" != yes; then 8926 ac_save_CC=$CC 8927 while :; do 8928 # IRIX 6.2 and later do not support large files by default, 8929 # so use the C compiler's -n32 option if that helps. 8930 cat >conftest.$ac_ext <<_ACEOF 8931#line 8931 "configure" 8932#include "confdefs.h" 8933#include <sys/types.h> 8934 /* Check that off_t can represent 2**63 - 1 correctly. 8935 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8936 since some C++ compilers masquerading as C compilers 8937 incorrectly reject 9223372036854775807. */ 8938#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 8939 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8940 && LARGE_OFF_T % 2147483647 == 1) 8941 ? 1 : -1]; 8942int 8943main () 8944{ 8945 8946 ; 8947 return 0; 8948} 8949_ACEOF 8950 rm -f conftest.$ac_objext 8951if { (eval echo "$as_me:8951: \"$ac_compile\"") >&5 8952 (eval $ac_compile) 2>&5 8953 ac_status=$? 8954 echo "$as_me:8954: \$? = $ac_status" >&5 8955 (exit $ac_status); } && 8956 { ac_try='test -s conftest.$ac_objext' 8957 { (eval echo "$as_me:8957: \"$ac_try\"") >&5 8958 (eval $ac_try) 2>&5 8959 ac_status=$? 8960 echo "$as_me:8960: \$? = $ac_status" >&5 8961 (exit $ac_status); }; }; then 8962 break 8963else 8964 echo "$as_me: failed program was:" >&5 8965cat conftest.$ac_ext >&5 8966fi 8967rm -f conftest.$ac_objext 8968 CC="$CC -n32" 8969 rm -f conftest.$ac_objext 8970if { (eval echo "$as_me:8970: \"$ac_compile\"") >&5 8971 (eval $ac_compile) 2>&5 8972 ac_status=$? 8973 echo "$as_me:8973: \$? = $ac_status" >&5 8974 (exit $ac_status); } && 8975 { ac_try='test -s conftest.$ac_objext' 8976 { (eval echo "$as_me:8976: \"$ac_try\"") >&5 8977 (eval $ac_try) 2>&5 8978 ac_status=$? 8979 echo "$as_me:8979: \$? = $ac_status" >&5 8980 (exit $ac_status); }; }; then 8981 ac_cv_sys_largefile_CC=' -n32'; break 8982else 8983 echo "$as_me: failed program was:" >&5 8984cat conftest.$ac_ext >&5 8985fi 8986rm -f conftest.$ac_objext 8987 break 8988 done 8989 CC=$ac_save_CC 8990 rm -f conftest.$ac_ext 8991 fi 8992fi 8993echo "$as_me:8993: result: $ac_cv_sys_largefile_CC" >&5 8994echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 8995 if test "$ac_cv_sys_largefile_CC" != no; then 8996 CC=$CC$ac_cv_sys_largefile_CC 8997 fi 8998 8999 echo "$as_me:8999: checking for _FILE_OFFSET_BITS value needed for large files" >&5 9000echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 9001if test "${ac_cv_sys_file_offset_bits+set}" = set; then 9002 echo $ECHO_N "(cached) $ECHO_C" >&6 9003else 9004 while :; do 9005 ac_cv_sys_file_offset_bits=no 9006 cat >conftest.$ac_ext <<_ACEOF 9007#line 9007 "configure" 9008#include "confdefs.h" 9009#include <sys/types.h> 9010 /* Check that off_t can represent 2**63 - 1 correctly. 9011 We can't simply define LARGE_OFF_T to be 9223372036854775807, 9012 since some C++ compilers masquerading as C compilers 9013 incorrectly reject 9223372036854775807. */ 9014#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 9015 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 9016 && LARGE_OFF_T % 2147483647 == 1) 9017 ? 1 : -1]; 9018int 9019main () 9020{ 9021 9022 ; 9023 return 0; 9024} 9025_ACEOF 9026rm -f conftest.$ac_objext 9027if { (eval echo "$as_me:9027: \"$ac_compile\"") >&5 9028 (eval $ac_compile) 2>&5 9029 ac_status=$? 9030 echo "$as_me:9030: \$? = $ac_status" >&5 9031 (exit $ac_status); } && 9032 { ac_try='test -s conftest.$ac_objext' 9033 { (eval echo "$as_me:9033: \"$ac_try\"") >&5 9034 (eval $ac_try) 2>&5 9035 ac_status=$? 9036 echo "$as_me:9036: \$? = $ac_status" >&5 9037 (exit $ac_status); }; }; then 9038 break 9039else 9040 echo "$as_me: failed program was:" >&5 9041cat conftest.$ac_ext >&5 9042fi 9043rm -f conftest.$ac_objext conftest.$ac_ext 9044 cat >conftest.$ac_ext <<_ACEOF 9045#line 9045 "configure" 9046#include "confdefs.h" 9047#define _FILE_OFFSET_BITS 64 9048#include <sys/types.h> 9049 /* Check that off_t can represent 2**63 - 1 correctly. 9050 We can't simply define LARGE_OFF_T to be 9223372036854775807, 9051 since some C++ compilers masquerading as C compilers 9052 incorrectly reject 9223372036854775807. */ 9053#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 9054 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 9055 && LARGE_OFF_T % 2147483647 == 1) 9056 ? 1 : -1]; 9057int 9058main () 9059{ 9060 9061 ; 9062 return 0; 9063} 9064_ACEOF 9065rm -f conftest.$ac_objext 9066if { (eval echo "$as_me:9066: \"$ac_compile\"") >&5 9067 (eval $ac_compile) 2>&5 9068 ac_status=$? 9069 echo "$as_me:9069: \$? = $ac_status" >&5 9070 (exit $ac_status); } && 9071 { ac_try='test -s conftest.$ac_objext' 9072 { (eval echo "$as_me:9072: \"$ac_try\"") >&5 9073 (eval $ac_try) 2>&5 9074 ac_status=$? 9075 echo "$as_me:9075: \$? = $ac_status" >&5 9076 (exit $ac_status); }; }; then 9077 ac_cv_sys_file_offset_bits=64; break 9078else 9079 echo "$as_me: failed program was:" >&5 9080cat conftest.$ac_ext >&5 9081fi 9082rm -f conftest.$ac_objext conftest.$ac_ext 9083 break 9084done 9085fi 9086echo "$as_me:9086: result: $ac_cv_sys_file_offset_bits" >&5 9087echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 9088if test "$ac_cv_sys_file_offset_bits" != no; then 9089 9090cat >>confdefs.h <<EOF 9091#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 9092EOF 9093 9094fi 9095rm -rf conftest* 9096 echo "$as_me:9096: checking for _LARGE_FILES value needed for large files" >&5 9097echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 9098if test "${ac_cv_sys_large_files+set}" = set; then 9099 echo $ECHO_N "(cached) $ECHO_C" >&6 9100else 9101 while :; do 9102 ac_cv_sys_large_files=no 9103 cat >conftest.$ac_ext <<_ACEOF 9104#line 9104 "configure" 9105#include "confdefs.h" 9106#include <sys/types.h> 9107 /* Check that off_t can represent 2**63 - 1 correctly. 9108 We can't simply define LARGE_OFF_T to be 9223372036854775807, 9109 since some C++ compilers masquerading as C compilers 9110 incorrectly reject 9223372036854775807. */ 9111#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 9112 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 9113 && LARGE_OFF_T % 2147483647 == 1) 9114 ? 1 : -1]; 9115int 9116main () 9117{ 9118 9119 ; 9120 return 0; 9121} 9122_ACEOF 9123rm -f conftest.$ac_objext 9124if { (eval echo "$as_me:9124: \"$ac_compile\"") >&5 9125 (eval $ac_compile) 2>&5 9126 ac_status=$? 9127 echo "$as_me:9127: \$? = $ac_status" >&5 9128 (exit $ac_status); } && 9129 { ac_try='test -s conftest.$ac_objext' 9130 { (eval echo "$as_me:9130: \"$ac_try\"") >&5 9131 (eval $ac_try) 2>&5 9132 ac_status=$? 9133 echo "$as_me:9133: \$? = $ac_status" >&5 9134 (exit $ac_status); }; }; then 9135 break 9136else 9137 echo "$as_me: failed program was:" >&5 9138cat conftest.$ac_ext >&5 9139fi 9140rm -f conftest.$ac_objext conftest.$ac_ext 9141 cat >conftest.$ac_ext <<_ACEOF 9142#line 9142 "configure" 9143#include "confdefs.h" 9144#define _LARGE_FILES 1 9145#include <sys/types.h> 9146 /* Check that off_t can represent 2**63 - 1 correctly. 9147 We can't simply define LARGE_OFF_T to be 9223372036854775807, 9148 since some C++ compilers masquerading as C compilers 9149 incorrectly reject 9223372036854775807. */ 9150#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 9151 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 9152 && LARGE_OFF_T % 2147483647 == 1) 9153 ? 1 : -1]; 9154int 9155main () 9156{ 9157 9158 ; 9159 return 0; 9160} 9161_ACEOF 9162rm -f conftest.$ac_objext 9163if { (eval echo "$as_me:9163: \"$ac_compile\"") >&5 9164 (eval $ac_compile) 2>&5 9165 ac_status=$? 9166 echo "$as_me:9166: \$? = $ac_status" >&5 9167 (exit $ac_status); } && 9168 { ac_try='test -s conftest.$ac_objext' 9169 { (eval echo "$as_me:9169: \"$ac_try\"") >&5 9170 (eval $ac_try) 2>&5 9171 ac_status=$? 9172 echo "$as_me:9172: \$? = $ac_status" >&5 9173 (exit $ac_status); }; }; then 9174 ac_cv_sys_large_files=1; break 9175else 9176 echo "$as_me: failed program was:" >&5 9177cat conftest.$ac_ext >&5 9178fi 9179rm -f conftest.$ac_objext conftest.$ac_ext 9180 break 9181done 9182fi 9183echo "$as_me:9183: result: $ac_cv_sys_large_files" >&5 9184echo "${ECHO_T}$ac_cv_sys_large_files" >&6 9185if test "$ac_cv_sys_large_files" != no; then 9186 9187cat >>confdefs.h <<EOF 9188#define _LARGE_FILES $ac_cv_sys_large_files 9189EOF 9190 9191fi 9192rm -rf conftest* 9193fi 9194 9195 if test "$enable_largefile" != no ; then 9196 echo "$as_me:9196: checking for _LARGEFILE_SOURCE value needed for large files" >&5 9197echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 9198if test "${ac_cv_sys_largefile_source+set}" = set; then 9199 echo $ECHO_N "(cached) $ECHO_C" >&6 9200else 9201 while :; do 9202 ac_cv_sys_largefile_source=no 9203 cat >conftest.$ac_ext <<_ACEOF 9204#line 9204 "configure" 9205#include "confdefs.h" 9206#include <stdio.h> 9207int 9208main () 9209{ 9210return !fseeko; 9211 ; 9212 return 0; 9213} 9214_ACEOF 9215rm -f conftest.$ac_objext 9216if { (eval echo "$as_me:9216: \"$ac_compile\"") >&5 9217 (eval $ac_compile) 2>&5 9218 ac_status=$? 9219 echo "$as_me:9219: \$? = $ac_status" >&5 9220 (exit $ac_status); } && 9221 { ac_try='test -s conftest.$ac_objext' 9222 { (eval echo "$as_me:9222: \"$ac_try\"") >&5 9223 (eval $ac_try) 2>&5 9224 ac_status=$? 9225 echo "$as_me:9225: \$? = $ac_status" >&5 9226 (exit $ac_status); }; }; then 9227 break 9228else 9229 echo "$as_me: failed program was:" >&5 9230cat conftest.$ac_ext >&5 9231fi 9232rm -f conftest.$ac_objext conftest.$ac_ext 9233 cat >conftest.$ac_ext <<_ACEOF 9234#line 9234 "configure" 9235#include "confdefs.h" 9236#define _LARGEFILE_SOURCE 1 9237#include <stdio.h> 9238int 9239main () 9240{ 9241return !fseeko; 9242 ; 9243 return 0; 9244} 9245_ACEOF 9246rm -f conftest.$ac_objext 9247if { (eval echo "$as_me:9247: \"$ac_compile\"") >&5 9248 (eval $ac_compile) 2>&5 9249 ac_status=$? 9250 echo "$as_me:9250: \$? = $ac_status" >&5 9251 (exit $ac_status); } && 9252 { ac_try='test -s conftest.$ac_objext' 9253 { (eval echo "$as_me:9253: \"$ac_try\"") >&5 9254 (eval $ac_try) 2>&5 9255 ac_status=$? 9256 echo "$as_me:9256: \$? = $ac_status" >&5 9257 (exit $ac_status); }; }; then 9258 ac_cv_sys_largefile_source=1; break 9259else 9260 echo "$as_me: failed program was:" >&5 9261cat conftest.$ac_ext >&5 9262fi 9263rm -f conftest.$ac_objext conftest.$ac_ext 9264 break 9265done 9266fi 9267echo "$as_me:9267: result: $ac_cv_sys_largefile_source" >&5 9268echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 9269if test "$ac_cv_sys_largefile_source" != no; then 9270 9271cat >>confdefs.h <<EOF 9272#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 9273EOF 9274 9275fi 9276rm -rf conftest* 9277 9278# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 9279# in glibc 2.1.3, but that breaks too many other things. 9280# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 9281echo "$as_me:9281: checking for fseeko" >&5 9282echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 9283if test "${ac_cv_func_fseeko+set}" = set; then 9284 echo $ECHO_N "(cached) $ECHO_C" >&6 9285else 9286 cat >conftest.$ac_ext <<_ACEOF 9287#line 9287 "configure" 9288#include "confdefs.h" 9289#include <stdio.h> 9290int 9291main () 9292{ 9293return fseeko && fseeko (stdin, 0, 0); 9294 ; 9295 return 0; 9296} 9297_ACEOF 9298rm -f conftest.$ac_objext conftest$ac_exeext 9299if { (eval echo "$as_me:9299: \"$ac_link\"") >&5 9300 (eval $ac_link) 2>&5 9301 ac_status=$? 9302 echo "$as_me:9302: \$? = $ac_status" >&5 9303 (exit $ac_status); } && 9304 { ac_try='test -s conftest$ac_exeext' 9305 { (eval echo "$as_me:9305: \"$ac_try\"") >&5 9306 (eval $ac_try) 2>&5 9307 ac_status=$? 9308 echo "$as_me:9308: \$? = $ac_status" >&5 9309 (exit $ac_status); }; }; then 9310 ac_cv_func_fseeko=yes 9311else 9312 echo "$as_me: failed program was:" >&5 9313cat conftest.$ac_ext >&5 9314ac_cv_func_fseeko=no 9315fi 9316rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9317fi 9318echo "$as_me:9318: result: $ac_cv_func_fseeko" >&5 9319echo "${ECHO_T}$ac_cv_func_fseeko" >&6 9320if test $ac_cv_func_fseeko = yes; then 9321 9322cat >>confdefs.h <<\EOF 9323#define HAVE_FSEEKO 1 9324EOF 9325 9326fi 9327 9328 # Normally we would collect these definitions in the config.h, 9329 # but (like _XOPEN_SOURCE), some environments rely on having these 9330 # defined before any of the system headers are included. Another 9331 # case comes up with C++, e.g., on AIX the compiler compiles the 9332 # header files by themselves before looking at the body files it is 9333 # told to compile. For ncurses, those header files do not include 9334 # the config.h 9335 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES " 9336 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE " 9337 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits " 9338 9339 echo "$as_me:9339: checking whether to use struct dirent64" >&5 9340echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6 9341if test "${cf_cv_struct_dirent64+set}" = set; then 9342 echo $ECHO_N "(cached) $ECHO_C" >&6 9343else 9344 9345 cat >conftest.$ac_ext <<_ACEOF 9346#line 9346 "configure" 9347#include "confdefs.h" 9348 9349#include <sys/types.h> 9350#include <dirent.h> 9351 9352int 9353main () 9354{ 9355 9356 /* if transitional largefile support is setup, this is true */ 9357 extern struct dirent64 * readdir(DIR *); 9358 struct dirent64 *x = readdir((DIR *)0); 9359 struct dirent *y = readdir((DIR *)0); 9360 int z = x - y; 9361 9362 ; 9363 return 0; 9364} 9365_ACEOF 9366rm -f conftest.$ac_objext 9367if { (eval echo "$as_me:9367: \"$ac_compile\"") >&5 9368 (eval $ac_compile) 2>&5 9369 ac_status=$? 9370 echo "$as_me:9370: \$? = $ac_status" >&5 9371 (exit $ac_status); } && 9372 { ac_try='test -s conftest.$ac_objext' 9373 { (eval echo "$as_me:9373: \"$ac_try\"") >&5 9374 (eval $ac_try) 2>&5 9375 ac_status=$? 9376 echo "$as_me:9376: \$? = $ac_status" >&5 9377 (exit $ac_status); }; }; then 9378 cf_cv_struct_dirent64=yes 9379else 9380 echo "$as_me: failed program was:" >&5 9381cat conftest.$ac_ext >&5 9382cf_cv_struct_dirent64=no 9383fi 9384rm -f conftest.$ac_objext conftest.$ac_ext 9385 9386fi 9387echo "$as_me:9387: result: $cf_cv_struct_dirent64" >&5 9388echo "${ECHO_T}$cf_cv_struct_dirent64" >&6 9389 test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF 9390#define HAVE_STRUCT_DIRENT64 1 9391EOF 9392 9393 fi 9394 9395### use option --disable-tparm-varargs to make tparm() conform to X/Open 9396echo "$as_me:9396: checking if you want tparm not to use X/Open fixed-parameter list" >&5 9397echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6 9398 9399# Check whether --enable-tparm-varargs or --disable-tparm-varargs was given. 9400if test "${enable_tparm_varargs+set}" = set; then 9401 enableval="$enable_tparm_varargs" 9402 with_tparm_varargs=$enableval 9403else 9404 with_tparm_varargs=yes 9405fi; 9406echo "$as_me:9406: result: $with_tparm_varargs" >&5 9407echo "${ECHO_T}$with_tparm_varargs" >&6 9408NCURSES_TPARM_VARARGS=0 9409test "$with_tparm_varargs" = yes && NCURSES_TPARM_VARARGS=1 9410 9411### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw 9412if test "$with_ticlib" != no ; then 9413echo "$as_me:9413: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5 9414echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6 9415 9416# Check whether --enable-tic-depends or --disable-tic-depends was given. 9417if test "${enable_tic_depends+set}" = set; then 9418 enableval="$enable_tic_depends" 9419 with_tic_depends=$enableval 9420else 9421 with_tic_depends=yes 9422fi; 9423echo "$as_me:9423: result: $with_tic_depends" >&5 9424echo "${ECHO_T}$with_tic_depends" >&6 9425else 9426 with_tic_depends=no 9427fi 9428 9429### use option --with-bool to override bool's type 9430echo "$as_me:9430: checking for type of bool" >&5 9431echo $ECHO_N "checking for type of bool... $ECHO_C" >&6 9432 9433# Check whether --with-bool or --without-bool was given. 9434if test "${with_bool+set}" = set; then 9435 withval="$with_bool" 9436 NCURSES_BOOL="$withval" 9437else 9438 NCURSES_BOOL=auto 9439fi; 9440echo "$as_me:9440: result: $NCURSES_BOOL" >&5 9441echo "${ECHO_T}$NCURSES_BOOL" >&6 9442 9443echo "$as_me:9443: checking for alternate terminal capabilities file" >&5 9444echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6 9445 9446# Check whether --with-caps or --without-caps was given. 9447if test "${with_caps+set}" = set; then 9448 withval="$with_caps" 9449 TERMINFO_CAPS=Caps.$withval 9450else 9451 TERMINFO_CAPS=Caps 9452fi; 9453test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps 9454echo "$as_me:9454: result: $TERMINFO_CAPS" >&5 9455echo "${ECHO_T}$TERMINFO_CAPS" >&6 9456 9457### use option --with-chtype to override chtype's type 9458echo "$as_me:9458: checking for type of chtype" >&5 9459echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6 9460 9461# Check whether --with-chtype or --without-chtype was given. 9462if test "${with_chtype+set}" = set; then 9463 withval="$with_chtype" 9464 NCURSES_CHTYPE="$withval" 9465else 9466 NCURSES_CHTYPE=auto 9467fi; 9468echo "$as_me:9468: result: $NCURSES_CHTYPE" >&5 9469echo "${ECHO_T}$NCURSES_CHTYPE" >&6 9470 9471### use option --with-ospeed to override ospeed's type 9472echo "$as_me:9472: checking for type of ospeed" >&5 9473echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6 9474 9475# Check whether --with-ospeed or --without-ospeed was given. 9476if test "${with_ospeed+set}" = set; then 9477 withval="$with_ospeed" 9478 NCURSES_OSPEED="$withval" 9479else 9480 NCURSES_OSPEED=short 9481fi; 9482echo "$as_me:9482: result: $NCURSES_OSPEED" >&5 9483echo "${ECHO_T}$NCURSES_OSPEED" >&6 9484 9485### use option --with-mmask-t to override mmask_t's type 9486echo "$as_me:9486: checking for type of mmask_t" >&5 9487echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6 9488 9489# Check whether --with-mmask-t or --without-mmask-t was given. 9490if test "${with_mmask_t+set}" = set; then 9491 withval="$with_mmask_t" 9492 NCURSES_MMASK_T="$withval" 9493else 9494 NCURSES_MMASK_T=auto 9495fi; 9496echo "$as_me:9496: result: $NCURSES_MMASK_T" >&5 9497echo "${ECHO_T}$NCURSES_MMASK_T" >&6 9498 9499### use option --with-ccharw-max to override CCHARW_MAX size 9500echo "$as_me:9500: checking for size CCHARW_MAX" >&5 9501echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6 9502 9503# Check whether --with-ccharw-max or --without-ccharw-max was given. 9504if test "${with_ccharw_max+set}" = set; then 9505 withval="$with_ccharw_max" 9506 NCURSES_CCHARW_MAX="$withval" 9507else 9508 NCURSES_CCHARW_MAX=5 9509fi; 9510echo "$as_me:9510: result: $NCURSES_CCHARW_MAX" >&5 9511echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6 9512 9513### Enable compiling-in rcs id's 9514echo "$as_me:9514: checking if RCS identifiers should be compiled-in" >&5 9515echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6 9516 9517# Check whether --with-rcs-ids or --without-rcs-ids was given. 9518if test "${with_rcs_ids+set}" = set; then 9519 withval="$with_rcs_ids" 9520 with_rcs_ids=$withval 9521else 9522 with_rcs_ids=no 9523fi; 9524echo "$as_me:9524: result: $with_rcs_ids" >&5 9525echo "${ECHO_T}$with_rcs_ids" >&6 9526test "$with_rcs_ids" = yes && cat >>confdefs.h <<\EOF 9527#define USE_RCS_IDS 1 9528EOF 9529 9530############################################################################### 9531 9532echo "$as_me:9532: checking format of man-pages" >&5 9533echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6 9534 9535# Check whether --with-manpage-format or --without-manpage-format was given. 9536if test "${with_manpage_format+set}" = set; then 9537 withval="$with_manpage_format" 9538 MANPAGE_FORMAT=$withval 9539else 9540 MANPAGE_FORMAT=unknown 9541fi; 9542 9543test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown 9544MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'` 9545 9546cf_unknown= 9547 9548case $MANPAGE_FORMAT in 9549unknown) 9550 if test -z "$MANPATH" ; then 9551 MANPATH="/usr/man:/usr/share/man" 9552 fi 9553 9554 # look for the 'date' man-page (it's most likely to be installed!) 9555 MANPAGE_FORMAT= 9556 cf_preform=no 9557 cf_catonly=yes 9558 cf_example=date 9559 9560 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" 9561 for cf_dir in $MANPATH; do 9562 test -z "$cf_dir" && cf_dir=/usr/man 9563 for cf_name in $cf_dir/man*/$cf_example.[01]* $cf_dir/cat*/$cf_example.[01]* $cf_dir/man*/$cf_example $cf_dir/cat*/$cf_example 9564 do 9565 cf_test=`echo $cf_name | sed -e 's/*//'` 9566 if test "x$cf_test" = "x$cf_name" ; then 9567 9568 case "$cf_name" in 9569 *.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";; 9570 *.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";; 9571 *.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";; 9572 *) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";; 9573 esac 9574 9575 case "$cf_name" in 9576 $cf_dir/man*) 9577 cf_catonly=no 9578 ;; 9579 $cf_dir/cat*) 9580 cf_preform=yes 9581 ;; 9582 esac 9583 break 9584 fi 9585 9586 # if we found a match in either man* or cat*, stop looking 9587 if test -n "$MANPAGE_FORMAT" ; then 9588 cf_found=no 9589 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted" 9590 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly" 9591 case "$cf_name" in 9592 $cf_dir/cat*) 9593 cf_found=yes 9594 ;; 9595 esac 9596 test $cf_found=yes && break 9597 fi 9598 done 9599 # only check the first directory in $MANPATH where we find manpages 9600 if test -n "$MANPAGE_FORMAT" ; then 9601 break 9602 fi 9603 done 9604 # if we did not find the example, just assume it is normal 9605 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal 9606 IFS="$ac_save_ifs" 9607 ;; 9608*) 9609 for cf_option in $MANPAGE_FORMAT; do 9610 case $cf_option in #(vi 9611 gzip|compress|BSDI|normal|formatted|catonly) 9612 ;; 9613 *) 9614 cf_unknown="$cf_unknown $cf_option" 9615 ;; 9616 esac 9617 done 9618 ;; 9619esac 9620 9621echo "$as_me:9621: result: $MANPAGE_FORMAT" >&5 9622echo "${ECHO_T}$MANPAGE_FORMAT" >&6 9623if test -n "$cf_unknown" ; then 9624 { echo "$as_me:9624: WARNING: Unexpected manpage-format $cf_unknown" >&5 9625echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;} 9626fi 9627 9628echo "$as_me:9628: checking for manpage renaming" >&5 9629echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6 9630 9631# Check whether --with-manpage-renames or --without-manpage-renames was given. 9632if test "${with_manpage_renames+set}" = set; then 9633 withval="$with_manpage_renames" 9634 MANPAGE_RENAMES=$withval 9635else 9636 MANPAGE_RENAMES=yes 9637fi; 9638 9639case ".$MANPAGE_RENAMES" in #(vi 9640.no) #(vi 9641 ;; 9642.|.yes) 9643 # Debian 'man' program? 9644 if test -f /etc/debian_version ; then 9645 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames 9646 else 9647 MANPAGE_RENAMES=no 9648 fi 9649 ;; 9650esac 9651 9652if test "$MANPAGE_RENAMES" != no ; then 9653 if test -f $srcdir/man/$MANPAGE_RENAMES ; then 9654 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES 9655 elif test ! -f $MANPAGE_RENAMES ; then 9656 { { echo "$as_me:9656: error: not a filename: $MANPAGE_RENAMES" >&5 9657echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;} 9658 { (exit 1); exit 1; }; } 9659 fi 9660 9661 test ! -d man && mkdir man 9662 9663 # Construct a sed-script to perform renaming within man-pages 9664 if test -n "$MANPAGE_RENAMES" ; then 9665 test ! -d man && mkdir man 9666 sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed 9667 fi 9668fi 9669 9670echo "$as_me:9670: result: $MANPAGE_RENAMES" >&5 9671echo "${ECHO_T}$MANPAGE_RENAMES" >&6 9672 9673echo "$as_me:9673: checking if manpage aliases will be installed" >&5 9674echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6 9675 9676# Check whether --with-manpage-aliases or --without-manpage-aliases was given. 9677if test "${with_manpage_aliases+set}" = set; then 9678 withval="$with_manpage_aliases" 9679 MANPAGE_ALIASES=$withval 9680else 9681 MANPAGE_ALIASES=yes 9682fi; 9683 9684echo "$as_me:9684: result: $MANPAGE_ALIASES" >&5 9685echo "${ECHO_T}$MANPAGE_ALIASES" >&6 9686 9687case "x$LN_S" in #(vi 9688xln*) #(vi 9689 cf_use_symlinks=yes 9690 ;; 9691*) 9692 cf_use_symlinks=no 9693 ;; 9694esac 9695 9696MANPAGE_SYMLINKS=no 9697if test "$MANPAGE_ALIASES" = yes ; then 9698echo "$as_me:9698: checking if manpage symlinks should be used" >&5 9699echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6 9700 9701# Check whether --with-manpage-symlinks or --without-manpage-symlinks was given. 9702if test "${with_manpage_symlinks+set}" = set; then 9703 withval="$with_manpage_symlinks" 9704 MANPAGE_SYMLINKS=$withval 9705else 9706 MANPAGE_SYMLINKS=$cf_use_symlinks 9707fi; 9708 9709if test "$$cf_use_symlinks" = no; then 9710if test "$MANPAGE_SYMLINKS" = yes ; then 9711 { echo "$as_me:9711: WARNING: cannot make symlinks" >&5 9712echo "$as_me: WARNING: cannot make symlinks" >&2;} 9713 MANPAGE_SYMLINKS=no 9714fi 9715fi 9716 9717echo "$as_me:9717: result: $MANPAGE_SYMLINKS" >&5 9718echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6 9719fi 9720 9721echo "$as_me:9721: checking for manpage tbl" >&5 9722echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6 9723 9724# Check whether --with-manpage-tbl or --without-manpage-tbl was given. 9725if test "${with_manpage_tbl+set}" = set; then 9726 withval="$with_manpage_tbl" 9727 MANPAGE_TBL=$withval 9728else 9729 MANPAGE_TBL=no 9730fi; 9731 9732echo "$as_me:9732: result: $MANPAGE_TBL" >&5 9733echo "${ECHO_T}$MANPAGE_TBL" >&6 9734 9735 if test "$prefix" = "NONE" ; then 9736 cf_prefix="$ac_default_prefix" 9737 else 9738 cf_prefix="$prefix" 9739 fi 9740 9741 case "$MANPAGE_FORMAT" in # (vi 9742 *catonly*) # (vi 9743 cf_format=yes 9744 cf_inboth=no 9745 ;; 9746 *formatted*) # (vi 9747 cf_format=yes 9748 cf_inboth=yes 9749 ;; 9750 *) 9751 cf_format=no 9752 cf_inboth=no 9753 ;; 9754 esac 9755 9756test ! -d man && mkdir man 9757 9758cf_so_strip= 9759cf_compress= 9760case "$MANPAGE_FORMAT" in #(vi 9761*compress*) #(vi 9762 cf_so_strip="Z" 9763 cf_compress=compress 9764 ;; 9765*gzip*) 9766 cf_so_strip="gz" 9767 cf_compress=gzip 9768 ;; 9769esac 9770 9771cf_edit_man=./edit_man.sh 9772cf_man_alias=`pwd`/man_alias.sed 9773 9774cat >$cf_edit_man <<CF_EOF 9775#! /bin/sh 9776# this script is generated by the configure-script CF_MAN_PAGES macro. 9777 9778prefix="$cf_prefix" 9779datadir="$datadir" 9780 9781NCURSES_MAJOR="$NCURSES_MAJOR" 9782NCURSES_MINOR="$NCURSES_MINOR" 9783NCURSES_PATCH="$NCURSES_PATCH" 9784 9785NCURSES_OSPEED="$NCURSES_OSPEED" 9786TERMINFO="$TERMINFO" 9787 9788INSTALL="$INSTALL" 9789INSTALL_DATA="$INSTALL_DATA" 9790 9791transform="$program_transform_name" 9792 9793TMP=\${TMPDIR:=/tmp}/man\$\$ 9794trap "rm -f \$TMP" 0 1 2 5 15 9795 9796form=\$1 9797shift || exit 1 9798 9799verb=\$1 9800shift || exit 1 9801 9802mandir=\$1 9803shift || exit 1 9804 9805srcdir=\$1 9806top_srcdir=\$srcdir/.. 9807shift || exit 1 9808 9809if test "\$form" = normal ; then 9810 if test "$cf_format" = yes ; then 9811 if test "$cf_inboth" = no ; then 9812 sh \$0 format \$verb \$mandir \$srcdir \$* 9813 exit $? 9814 fi 9815 fi 9816 cf_subdir=\$mandir/man 9817 cf_tables=$MANPAGE_TBL 9818else 9819 cf_subdir=\$mandir/cat 9820 cf_tables=yes 9821fi 9822 9823# process the list of source-files 9824for i in \$* ; do 9825case \$i in #(vi 9826*.orig|*.rej) ;; #(vi 9827*.[0-9]*) 9828 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`; 9829 if test \$verb = installing ; then 9830 if test ! -d \$cf_subdir\${section} ; then 9831 mkdir -p \$cf_subdir\$section 9832 fi 9833 fi 9834 9835 # replace variables in man page 9836 if test ! -f $cf_man_alias ; then 9837cat >>$cf_man_alias <<-CF_EOF2 9838 s,@DATADIR@,\$datadir,g 9839 s,@TERMINFO@,\$TERMINFO,g 9840 s,@NCURSES_MAJOR@,\$NCURSES_MAJOR,g 9841 s,@NCURSES_MINOR@,\$NCURSES_MINOR,g 9842 s,@NCURSES_PATCH@,\$NCURSES_PATCH,g 9843 s,@NCURSES_OSPEED@,\$NCURSES_OSPEED,g 9844CF_EOF 9845 9846 for cf_name in captoinfo clear infocmp infotocap tabs tic toe tput tset 9847 do 9848 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 9849 cf_name=`echo $cf_name|sed "$program_transform_name"` 9850cat >>$cf_edit_man <<-CF_EOF 9851 s,@$cf_NAME@,$cf_name,g 9852CF_EOF 9853 done 9854 9855cat >>$cf_edit_man <<CF_EOF 9856CF_EOF2 9857 echo "...made $cf_man_alias" 9858 fi 9859 9860 aliases= 9861 cf_source=\`basename \$i\` 9862 inalias=\$cf_source 9863 test ! -f \$inalias && inalias="\$srcdir/\$inalias" 9864 if test ! -f \$inalias ; then 9865 echo .. skipped \$cf_source 9866 continue 9867 fi 9868CF_EOF 9869 9870if test "$MANPAGE_ALIASES" != no ; then 9871cat >>$cf_edit_man <<CF_EOF 9872 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u\` 9873CF_EOF 9874fi 9875 9876if test "$MANPAGE_RENAMES" = no ; then 9877cat >>$cf_edit_man <<CF_EOF 9878 # perform program transformations for section 1 man pages 9879 if test \$section = 1 ; then 9880 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\` 9881 else 9882 cf_target=\$cf_subdir\${section}/\$cf_source 9883 fi 9884CF_EOF 9885else 9886cat >>$cf_edit_man <<CF_EOF 9887 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\` 9888 if test -z "\$cf_target" ; then 9889 echo '? missing rename for '\$cf_source 9890 cf_target="\$cf_source" 9891 fi 9892 cf_target="\$cf_subdir\${section}/\${cf_target}" 9893 9894CF_EOF 9895fi 9896 9897cat >>$cf_edit_man <<CF_EOF 9898 sed -f $cf_man_alias \\ 9899CF_EOF 9900 9901if test -f $MANPAGE_RENAMES ; then 9902cat >>$cf_edit_man <<CF_EOF 9903 < \$i | sed -f `pwd`/edit_man.sed >\$TMP 9904CF_EOF 9905else 9906cat >>$cf_edit_man <<CF_EOF 9907 < \$i >\$TMP 9908CF_EOF 9909fi 9910 9911cat >>$cf_edit_man <<CF_EOF 9912if test \$cf_tables = yes ; then 9913 tbl \$TMP >\$TMP.out 9914 mv \$TMP.out \$TMP 9915fi 9916CF_EOF 9917 9918if test $with_curses_h != yes ; then 9919cat >>$cf_edit_man <<CF_EOF 9920 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out 9921 mv \$TMP.out \$TMP 9922CF_EOF 9923fi 9924 9925cat >>$cf_edit_man <<CF_EOF 9926 if test \$form = format ; then 9927 nroff -man \$TMP >\$TMP.out 9928 mv \$TMP.out \$TMP 9929 fi 9930CF_EOF 9931 9932if test -n "$cf_compress" ; then 9933cat >>$cf_edit_man <<CF_EOF 9934 if test \$verb = installing ; then 9935 if ( $cf_compress -f \$TMP ) 9936 then 9937 mv \$TMP.$cf_so_strip \$TMP 9938 fi 9939 fi 9940 cf_target="\$cf_target.$cf_so_strip" 9941CF_EOF 9942fi 9943 9944case "$MANPAGE_FORMAT" in #(vi 9945*BSDI*) 9946cat >>$cf_edit_man <<CF_EOF 9947 if test \$form = format ; then 9948 # BSDI installs only .0 suffixes in the cat directories 9949 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`" 9950 fi 9951CF_EOF 9952 ;; 9953esac 9954 9955cat >>$cf_edit_man <<CF_EOF 9956 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\` 9957 if test \$verb = installing ; then 9958 echo \$verb \$cf_target 9959 \$INSTALL_DATA \$TMP \$cf_target 9960 test -d \$cf_subdir\${section} && 9961 test -n "\$aliases" && ( 9962 cd \$cf_subdir\${section} && ( 9963 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\` 9964 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\` 9965 cf_target=\`basename \$cf_target\` 9966 for cf_alias in \$aliases 9967 do 9968 if test \$section = 1 ; then 9969 cf_alias=\`echo \$cf_alias|sed "\${transform}"\` 9970 fi 9971 9972 if test "$MANPAGE_SYMLINKS" = yes ; then 9973 if test -f \$cf_alias\${suffix} ; then 9974 if ( cmp -s \$cf_target \$cf_alias\${suffix} ) 9975 then 9976 continue 9977 fi 9978 fi 9979 echo .. \$verb alias \$cf_alias\${suffix} 9980CF_EOF 9981case "x$LN_S" in #(vi 9982*-f) #(vi 9983cat >>$cf_edit_man <<CF_EOF 9984 $LN_S \$cf_target \$cf_alias\${suffix} 9985CF_EOF 9986 ;; 9987*) 9988cat >>$cf_edit_man <<CF_EOF 9989 rm -f \$cf_alias\${suffix} 9990 $LN_S \$cf_target \$cf_alias\${suffix} 9991CF_EOF 9992 ;; 9993esac 9994cat >>$cf_edit_man <<CF_EOF 9995 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then 9996 echo ".so \$cf_source" >\$TMP 9997CF_EOF 9998if test -n "$cf_compress" ; then 9999cat >>$cf_edit_man <<CF_EOF 10000 if test -n "$cf_so_strip" ; then 10001 $cf_compress -f \$TMP 10002 mv \$TMP.$cf_so_strip \$TMP 10003 fi 10004CF_EOF 10005fi 10006cat >>$cf_edit_man <<CF_EOF 10007 echo .. \$verb alias \$cf_alias\${suffix} 10008 rm -f \$cf_alias\${suffix} 10009 \$INSTALL_DATA \$TMP \$cf_alias\${suffix} 10010 fi 10011 done 10012 ) 10013 ) 10014 elif test \$verb = removing ; then 10015 test -f \$cf_target && ( 10016 echo \$verb \$cf_target 10017 rm -f \$cf_target 10018 ) 10019 test -d \$cf_subdir\${section} && 10020 test -n "\$aliases" && ( 10021 cd \$cf_subdir\${section} && ( 10022 for cf_alias in \$aliases 10023 do 10024 if test \$section = 1 ; then 10025 cf_alias=\`echo \$cf_alias|sed "\${transform}"\` 10026 fi 10027 10028 echo .. \$verb alias \$cf_alias\${suffix} 10029 rm -f \$cf_alias\${suffix} 10030 done 10031 ) 10032 ) 10033 else 10034# echo ".hy 0" 10035 cat \$TMP 10036 fi 10037 ;; 10038esac 10039done 10040 10041if test $cf_inboth = yes ; then 10042if test \$form != format ; then 10043 sh \$0 format \$verb \$mandir \$srcdir \$* 10044fi 10045fi 10046 10047exit 0 10048CF_EOF 10049chmod 755 $cf_edit_man 10050 10051############################################################################### 10052 10053### Note that some functions (such as const) are normally disabled anyway. 10054echo "$as_me:10054: checking if you want to build with function extensions" >&5 10055echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6 10056 10057# Check whether --enable-ext-funcs or --disable-ext-funcs was given. 10058if test "${enable_ext_funcs+set}" = set; then 10059 enableval="$enable_ext_funcs" 10060 with_ext_funcs=$enableval 10061else 10062 with_ext_funcs=yes 10063fi; 10064echo "$as_me:10064: result: $with_ext_funcs" >&5 10065echo "${ECHO_T}$with_ext_funcs" >&6 10066if test "$with_ext_funcs" = yes ; then 10067 NCURSES_EXT_FUNCS=1 10068 cat >>confdefs.h <<\EOF 10069#define HAVE_CURSES_VERSION 1 10070EOF 10071 10072 cat >>confdefs.h <<\EOF 10073#define HAVE_HAS_KEY 1 10074EOF 10075 10076 cat >>confdefs.h <<\EOF 10077#define HAVE_RESIZETERM 1 10078EOF 10079 10080 cat >>confdefs.h <<\EOF 10081#define HAVE_RESIZE_TERM 1 10082EOF 10083 10084 cat >>confdefs.h <<\EOF 10085#define HAVE_TERM_ENTRY_H 1 10086EOF 10087 10088 cat >>confdefs.h <<\EOF 10089#define HAVE_USE_DEFAULT_COLORS 1 10090EOF 10091 10092 cat >>confdefs.h <<\EOF 10093#define HAVE_WRESIZE 1 10094EOF 10095 10096 cat >>confdefs.h <<\EOF 10097#define NCURSES_EXT_FUNCS 1 10098EOF 10099 10100 GENERATED_EXT_FUNCS=generated 10101else 10102 NCURSES_EXT_FUNCS=0 10103 GENERATED_EXT_FUNCS= 10104fi 10105 10106echo "$as_me:10106: checking if you want to build with experimental SCREEN extensions" >&5 10107echo $ECHO_N "checking if you want to build with experimental SCREEN extensions... $ECHO_C" >&6 10108 10109# Check whether --enable-sp-funcs or --disable-sp-funcs was given. 10110if test "${enable_sp_funcs+set}" = set; then 10111 enableval="$enable_sp_funcs" 10112 with_sp_funcs=$enableval 10113else 10114 with_sp_funcs=no 10115fi; 10116echo "$as_me:10116: result: $with_sp_funcs" >&5 10117echo "${ECHO_T}$with_sp_funcs" >&6 10118if test "$with_sp_funcs" = yes ; then 10119 NCURSES_SP_FUNCS=1 10120 cat >>confdefs.h <<\EOF 10121#define NCURSES_SP_FUNCS 1 10122EOF 10123 10124 GENERATED_SP_FUNCS=generated 10125else 10126 NCURSES_SP_FUNCS=0 10127 GENERATED_SP_FUNCS= 10128fi 10129 10130echo "$as_me:10130: checking if you want to build with experimental terminal-driver" >&5 10131echo $ECHO_N "checking if you want to build with experimental terminal-driver... $ECHO_C" >&6 10132 10133# Check whether --enable-term-driver or --disable-term-driver was given. 10134if test "${enable_term_driver+set}" = set; then 10135 enableval="$enable_term_driver" 10136 with_term_driver=$enableval 10137else 10138 with_term_driver=no 10139fi; 10140echo "$as_me:10140: result: $with_term_driver" >&5 10141echo "${ECHO_T}$with_term_driver" >&6 10142if test "$with_term_driver" = yes ; then 10143 cat >>confdefs.h <<\EOF 10144#define USE_TERM_DRIVER 1 10145EOF 10146 10147 if test "$with_sp_funcs" != yes ; then 10148 { { echo "$as_me:10148: error: The term-driver option relies upon sp-funcs" >&5 10149echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;} 10150 { (exit 1); exit 1; }; } 10151 fi 10152fi 10153 10154### use option --enable-const to turn on use of const beyond that in XSI. 10155echo "$as_me:10155: checking for extended use of const keyword" >&5 10156echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6 10157 10158# Check whether --enable-const or --disable-const was given. 10159if test "${enable_const+set}" = set; then 10160 enableval="$enable_const" 10161 with_ext_const=$enableval 10162else 10163 with_ext_const=no 10164fi; 10165echo "$as_me:10165: result: $with_ext_const" >&5 10166echo "${ECHO_T}$with_ext_const" >&6 10167NCURSES_CONST='/*nothing*/' 10168if test "$with_ext_const" = yes ; then 10169 NCURSES_CONST=const 10170fi 10171 10172### use option --enable-ext-colors to turn on use of colors beyond 16. 10173echo "$as_me:10173: checking if you want to use extended colors" >&5 10174echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6 10175 10176# Check whether --enable-ext-colors or --disable-ext-colors was given. 10177if test "${enable_ext_colors+set}" = set; then 10178 enableval="$enable_ext_colors" 10179 with_ext_colors=$enableval 10180else 10181 with_ext_colors=no 10182fi; 10183echo "$as_me:10183: result: $with_ext_colors" >&5 10184echo "${ECHO_T}$with_ext_colors" >&6 10185NCURSES_EXT_COLORS=0 10186if test "$with_ext_colors" = yes ; then 10187 if test "$with_widec" != yes ; then 10188 { { echo "$as_me:10188: error: This option applies only to wide-character library" >&5 10189echo "$as_me: error: This option applies only to wide-character library" >&2;} 10190 { (exit 1); exit 1; }; } 10191 else 10192 # cannot be ABI 5 since it changes sizeof(cchar_t) 10193 10194if test "${with_abi_version+set}" != set; then 10195 case $cf_cv_rel_version in 10196 5.*) 10197 cf_cv_rel_version=6.0 10198 cf_cv_abi_version=6 10199 { echo "$as_me:10199: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5 10200echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;} 10201 ;; 10202 esac 10203fi 10204 10205 fi 10206 NCURSES_EXT_COLORS=1 10207 cat >>confdefs.h <<\EOF 10208#define NCURSES_EXT_COLORS 1 10209EOF 10210 10211fi 10212 10213### use option --enable-ext-mouse to modify coding to support 5-button mice 10214echo "$as_me:10214: checking if you want to use extended mouse encoding" >&5 10215echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6 10216 10217# Check whether --enable-ext-mouse or --disable-ext-mouse was given. 10218if test "${enable_ext_mouse+set}" = set; then 10219 enableval="$enable_ext_mouse" 10220 with_ext_mouse=$enableval 10221else 10222 with_ext_mouse=no 10223fi; 10224echo "$as_me:10224: result: $with_ext_mouse" >&5 10225echo "${ECHO_T}$with_ext_mouse" >&6 10226NCURSES_MOUSE_VERSION=1 10227if test "$with_ext_mouse" = yes ; then 10228 NCURSES_MOUSE_VERSION=2 10229 10230if test "${with_abi_version+set}" != set; then 10231 case $cf_cv_rel_version in 10232 5.*) 10233 cf_cv_rel_version=6.0 10234 cf_cv_abi_version=6 10235 { echo "$as_me:10235: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5 10236echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;} 10237 ;; 10238 esac 10239fi 10240 10241fi 10242 10243echo "$as_me:10243: checking if you want \$NCURSES_NO_PADDING code" >&5 10244echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6 10245 10246# Check whether --enable-no-padding or --disable-no-padding was given. 10247if test "${enable_no_padding+set}" = set; then 10248 enableval="$enable_no_padding" 10249 with_no_padding=$enableval 10250else 10251 with_no_padding=$with_ext_funcs 10252fi; 10253echo "$as_me:10253: result: $with_no_padding" >&5 10254echo "${ECHO_T}$with_no_padding" >&6 10255test "$with_no_padding" = yes && cat >>confdefs.h <<\EOF 10256#define NCURSES_NO_PADDING 1 10257EOF 10258 10259echo "$as_me:10259: checking for ANSI C header files" >&5 10260echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 10261if test "${ac_cv_header_stdc+set}" = set; then 10262 echo $ECHO_N "(cached) $ECHO_C" >&6 10263else 10264 cat >conftest.$ac_ext <<_ACEOF 10265#line 10265 "configure" 10266#include "confdefs.h" 10267#include <stdlib.h> 10268#include <stdarg.h> 10269#include <string.h> 10270#include <float.h> 10271 10272_ACEOF 10273if { (eval echo "$as_me:10273: \"$ac_cpp conftest.$ac_ext\"") >&5 10274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10275 ac_status=$? 10276 egrep -v '^ *\+' conftest.er1 >conftest.err 10277 rm -f conftest.er1 10278 cat conftest.err >&5 10279 echo "$as_me:10279: \$? = $ac_status" >&5 10280 (exit $ac_status); } >/dev/null; then 10281 if test -s conftest.err; then 10282 ac_cpp_err=$ac_c_preproc_warn_flag 10283 else 10284 ac_cpp_err= 10285 fi 10286else 10287 ac_cpp_err=yes 10288fi 10289if test -z "$ac_cpp_err"; then 10290 ac_cv_header_stdc=yes 10291else 10292 echo "$as_me: failed program was:" >&5 10293 cat conftest.$ac_ext >&5 10294 ac_cv_header_stdc=no 10295fi 10296rm -f conftest.err conftest.$ac_ext 10297 10298if test $ac_cv_header_stdc = yes; then 10299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 10300 cat >conftest.$ac_ext <<_ACEOF 10301#line 10301 "configure" 10302#include "confdefs.h" 10303#include <string.h> 10304 10305_ACEOF 10306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10307 egrep "memchr" >/dev/null 2>&1; then 10308 : 10309else 10310 ac_cv_header_stdc=no 10311fi 10312rm -rf conftest* 10313 10314fi 10315 10316if test $ac_cv_header_stdc = yes; then 10317 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 10318 cat >conftest.$ac_ext <<_ACEOF 10319#line 10319 "configure" 10320#include "confdefs.h" 10321#include <stdlib.h> 10322 10323_ACEOF 10324if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10325 egrep "free" >/dev/null 2>&1; then 10326 : 10327else 10328 ac_cv_header_stdc=no 10329fi 10330rm -rf conftest* 10331 10332fi 10333 10334if test $ac_cv_header_stdc = yes; then 10335 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 10336 if test "$cross_compiling" = yes; then 10337 : 10338else 10339 cat >conftest.$ac_ext <<_ACEOF 10340#line 10340 "configure" 10341#include "confdefs.h" 10342#include <ctype.h> 10343#if ((' ' & 0x0FF) == 0x020) 10344# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 10345# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 10346#else 10347# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 10348 || ('j' <= (c) && (c) <= 'r') \ 10349 || ('s' <= (c) && (c) <= 'z')) 10350# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 10351#endif 10352 10353#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 10354int 10355main () 10356{ 10357 int i; 10358 for (i = 0; i < 256; i++) 10359 if (XOR (islower (i), ISLOWER (i)) 10360 || toupper (i) != TOUPPER (i)) 10361 $ac_main_return(2); 10362 $ac_main_return (0); 10363} 10364_ACEOF 10365rm -f conftest$ac_exeext 10366if { (eval echo "$as_me:10366: \"$ac_link\"") >&5 10367 (eval $ac_link) 2>&5 10368 ac_status=$? 10369 echo "$as_me:10369: \$? = $ac_status" >&5 10370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10371 { (eval echo "$as_me:10371: \"$ac_try\"") >&5 10372 (eval $ac_try) 2>&5 10373 ac_status=$? 10374 echo "$as_me:10374: \$? = $ac_status" >&5 10375 (exit $ac_status); }; }; then 10376 : 10377else 10378 echo "$as_me: program exited with status $ac_status" >&5 10379echo "$as_me: failed program was:" >&5 10380cat conftest.$ac_ext >&5 10381ac_cv_header_stdc=no 10382fi 10383rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10384fi 10385fi 10386fi 10387echo "$as_me:10387: result: $ac_cv_header_stdc" >&5 10388echo "${ECHO_T}$ac_cv_header_stdc" >&6 10389if test $ac_cv_header_stdc = yes; then 10390 10391cat >>confdefs.h <<\EOF 10392#define STDC_HEADERS 1 10393EOF 10394 10395fi 10396 10397# On IRIX 5.3, sys/types and inttypes.h are conflicting. 10398 10399for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 10400 inttypes.h stdint.h unistd.h 10401do 10402as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10403echo "$as_me:10403: checking for $ac_header" >&5 10404echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10405if eval "test \"\${$as_ac_Header+set}\" = set"; then 10406 echo $ECHO_N "(cached) $ECHO_C" >&6 10407else 10408 cat >conftest.$ac_ext <<_ACEOF 10409#line 10409 "configure" 10410#include "confdefs.h" 10411$ac_includes_default 10412#include <$ac_header> 10413_ACEOF 10414rm -f conftest.$ac_objext 10415if { (eval echo "$as_me:10415: \"$ac_compile\"") >&5 10416 (eval $ac_compile) 2>&5 10417 ac_status=$? 10418 echo "$as_me:10418: \$? = $ac_status" >&5 10419 (exit $ac_status); } && 10420 { ac_try='test -s conftest.$ac_objext' 10421 { (eval echo "$as_me:10421: \"$ac_try\"") >&5 10422 (eval $ac_try) 2>&5 10423 ac_status=$? 10424 echo "$as_me:10424: \$? = $ac_status" >&5 10425 (exit $ac_status); }; }; then 10426 eval "$as_ac_Header=yes" 10427else 10428 echo "$as_me: failed program was:" >&5 10429cat conftest.$ac_ext >&5 10430eval "$as_ac_Header=no" 10431fi 10432rm -f conftest.$ac_objext conftest.$ac_ext 10433fi 10434echo "$as_me:10434: result: `eval echo '${'$as_ac_Header'}'`" >&5 10435echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10436if test `eval echo '${'$as_ac_Header'}'` = yes; then 10437 cat >>confdefs.h <<EOF 10438#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10439EOF 10440 10441fi 10442done 10443 10444echo "$as_me:10444: checking for signed char" >&5 10445echo $ECHO_N "checking for signed char... $ECHO_C" >&6 10446if test "${ac_cv_type_signed_char+set}" = set; then 10447 echo $ECHO_N "(cached) $ECHO_C" >&6 10448else 10449 cat >conftest.$ac_ext <<_ACEOF 10450#line 10450 "configure" 10451#include "confdefs.h" 10452$ac_includes_default 10453int 10454main () 10455{ 10456if ((signed char *) 0) 10457 return 0; 10458if (sizeof (signed char)) 10459 return 0; 10460 ; 10461 return 0; 10462} 10463_ACEOF 10464rm -f conftest.$ac_objext 10465if { (eval echo "$as_me:10465: \"$ac_compile\"") >&5 10466 (eval $ac_compile) 2>&5 10467 ac_status=$? 10468 echo "$as_me:10468: \$? = $ac_status" >&5 10469 (exit $ac_status); } && 10470 { ac_try='test -s conftest.$ac_objext' 10471 { (eval echo "$as_me:10471: \"$ac_try\"") >&5 10472 (eval $ac_try) 2>&5 10473 ac_status=$? 10474 echo "$as_me:10474: \$? = $ac_status" >&5 10475 (exit $ac_status); }; }; then 10476 ac_cv_type_signed_char=yes 10477else 10478 echo "$as_me: failed program was:" >&5 10479cat conftest.$ac_ext >&5 10480ac_cv_type_signed_char=no 10481fi 10482rm -f conftest.$ac_objext conftest.$ac_ext 10483fi 10484echo "$as_me:10484: result: $ac_cv_type_signed_char" >&5 10485echo "${ECHO_T}$ac_cv_type_signed_char" >&6 10486 10487echo "$as_me:10487: checking size of signed char" >&5 10488echo $ECHO_N "checking size of signed char... $ECHO_C" >&6 10489if test "${ac_cv_sizeof_signed_char+set}" = set; then 10490 echo $ECHO_N "(cached) $ECHO_C" >&6 10491else 10492 if test "$ac_cv_type_signed_char" = yes; then 10493 if test "$cross_compiling" = yes; then 10494 # Depending upon the size, compute the lo and hi bounds. 10495cat >conftest.$ac_ext <<_ACEOF 10496#line 10496 "configure" 10497#include "confdefs.h" 10498$ac_includes_default 10499int 10500main () 10501{ 10502int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)] 10503 ; 10504 return 0; 10505} 10506_ACEOF 10507rm -f conftest.$ac_objext 10508if { (eval echo "$as_me:10508: \"$ac_compile\"") >&5 10509 (eval $ac_compile) 2>&5 10510 ac_status=$? 10511 echo "$as_me:10511: \$? = $ac_status" >&5 10512 (exit $ac_status); } && 10513 { ac_try='test -s conftest.$ac_objext' 10514 { (eval echo "$as_me:10514: \"$ac_try\"") >&5 10515 (eval $ac_try) 2>&5 10516 ac_status=$? 10517 echo "$as_me:10517: \$? = $ac_status" >&5 10518 (exit $ac_status); }; }; then 10519 ac_lo=0 ac_mid=0 10520 while :; do 10521 cat >conftest.$ac_ext <<_ACEOF 10522#line 10522 "configure" 10523#include "confdefs.h" 10524$ac_includes_default 10525int 10526main () 10527{ 10528int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)] 10529 ; 10530 return 0; 10531} 10532_ACEOF 10533rm -f conftest.$ac_objext 10534if { (eval echo "$as_me:10534: \"$ac_compile\"") >&5 10535 (eval $ac_compile) 2>&5 10536 ac_status=$? 10537 echo "$as_me:10537: \$? = $ac_status" >&5 10538 (exit $ac_status); } && 10539 { ac_try='test -s conftest.$ac_objext' 10540 { (eval echo "$as_me:10540: \"$ac_try\"") >&5 10541 (eval $ac_try) 2>&5 10542 ac_status=$? 10543 echo "$as_me:10543: \$? = $ac_status" >&5 10544 (exit $ac_status); }; }; then 10545 ac_hi=$ac_mid; break 10546else 10547 echo "$as_me: failed program was:" >&5 10548cat conftest.$ac_ext >&5 10549ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` 10550fi 10551rm -f conftest.$ac_objext conftest.$ac_ext 10552 done 10553else 10554 echo "$as_me: failed program was:" >&5 10555cat conftest.$ac_ext >&5 10556ac_hi=-1 ac_mid=-1 10557 while :; do 10558 cat >conftest.$ac_ext <<_ACEOF 10559#line 10559 "configure" 10560#include "confdefs.h" 10561$ac_includes_default 10562int 10563main () 10564{ 10565int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)] 10566 ; 10567 return 0; 10568} 10569_ACEOF 10570rm -f conftest.$ac_objext 10571if { (eval echo "$as_me:10571: \"$ac_compile\"") >&5 10572 (eval $ac_compile) 2>&5 10573 ac_status=$? 10574 echo "$as_me:10574: \$? = $ac_status" >&5 10575 (exit $ac_status); } && 10576 { ac_try='test -s conftest.$ac_objext' 10577 { (eval echo "$as_me:10577: \"$ac_try\"") >&5 10578 (eval $ac_try) 2>&5 10579 ac_status=$? 10580 echo "$as_me:10580: \$? = $ac_status" >&5 10581 (exit $ac_status); }; }; then 10582 ac_lo=$ac_mid; break 10583else 10584 echo "$as_me: failed program was:" >&5 10585cat conftest.$ac_ext >&5 10586ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` 10587fi 10588rm -f conftest.$ac_objext conftest.$ac_ext 10589 done 10590fi 10591rm -f conftest.$ac_objext conftest.$ac_ext 10592# Binary search between lo and hi bounds. 10593while test "x$ac_lo" != "x$ac_hi"; do 10594 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 10595 cat >conftest.$ac_ext <<_ACEOF 10596#line 10596 "configure" 10597#include "confdefs.h" 10598$ac_includes_default 10599int 10600main () 10601{ 10602int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)] 10603 ; 10604 return 0; 10605} 10606_ACEOF 10607rm -f conftest.$ac_objext 10608if { (eval echo "$as_me:10608: \"$ac_compile\"") >&5 10609 (eval $ac_compile) 2>&5 10610 ac_status=$? 10611 echo "$as_me:10611: \$? = $ac_status" >&5 10612 (exit $ac_status); } && 10613 { ac_try='test -s conftest.$ac_objext' 10614 { (eval echo "$as_me:10614: \"$ac_try\"") >&5 10615 (eval $ac_try) 2>&5 10616 ac_status=$? 10617 echo "$as_me:10617: \$? = $ac_status" >&5 10618 (exit $ac_status); }; }; then 10619 ac_hi=$ac_mid 10620else 10621 echo "$as_me: failed program was:" >&5 10622cat conftest.$ac_ext >&5 10623ac_lo=`expr $ac_mid + 1` 10624fi 10625rm -f conftest.$ac_objext conftest.$ac_ext 10626done 10627ac_cv_sizeof_signed_char=$ac_lo 10628else 10629 if test "$cross_compiling" = yes; then 10630 { { echo "$as_me:10630: error: cannot run test program while cross compiling" >&5 10631echo "$as_me: error: cannot run test program while cross compiling" >&2;} 10632 { (exit 1); exit 1; }; } 10633else 10634 cat >conftest.$ac_ext <<_ACEOF 10635#line 10635 "configure" 10636#include "confdefs.h" 10637$ac_includes_default 10638int 10639main () 10640{ 10641FILE *f = fopen ("conftest.val", "w"); 10642if (!f) 10643 $ac_main_return (1); 10644fprintf (f, "%d", (sizeof (signed char))); 10645fclose (f); 10646 ; 10647 return 0; 10648} 10649_ACEOF 10650rm -f conftest$ac_exeext 10651if { (eval echo "$as_me:10651: \"$ac_link\"") >&5 10652 (eval $ac_link) 2>&5 10653 ac_status=$? 10654 echo "$as_me:10654: \$? = $ac_status" >&5 10655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10656 { (eval echo "$as_me:10656: \"$ac_try\"") >&5 10657 (eval $ac_try) 2>&5 10658 ac_status=$? 10659 echo "$as_me:10659: \$? = $ac_status" >&5 10660 (exit $ac_status); }; }; then 10661 ac_cv_sizeof_signed_char=`cat conftest.val` 10662else 10663 echo "$as_me: program exited with status $ac_status" >&5 10664echo "$as_me: failed program was:" >&5 10665cat conftest.$ac_ext >&5 10666fi 10667rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10668fi 10669fi 10670rm -f conftest.val 10671else 10672 ac_cv_sizeof_signed_char=0 10673fi 10674fi 10675echo "$as_me:10675: result: $ac_cv_sizeof_signed_char" >&5 10676echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6 10677cat >>confdefs.h <<EOF 10678#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char 10679EOF 10680 10681if test "$ac_cv_sizeof_signed_char" = 1 ; then 10682 NCURSES_SBOOL="signed char" 10683else 10684 NCURSES_SBOOL="char" 10685fi 10686echo "$as_me:10686: checking if you want to use signed Boolean array in term.h" >&5 10687echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6 10688 10689# Check whether --enable-signed-char or --disable-signed-char was given. 10690if test "${enable_signed_char+set}" = set; then 10691 enableval="$enable_signed_char" 10692 with_signed_char=$enableval 10693else 10694 with_signed_char=no 10695fi; 10696echo "$as_me:10696: result: $with_signed_char" >&5 10697echo "${ECHO_T}$with_signed_char" >&6 10698test "$with_signed_char" != yes && NCURSES_SBOOL="char" 10699 10700### use option --enable-sigwinch to turn on use of SIGWINCH logic 10701echo "$as_me:10701: checking if you want SIGWINCH handler" >&5 10702echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6 10703 10704# Check whether --enable-sigwinch or --disable-sigwinch was given. 10705if test "${enable_sigwinch+set}" = set; then 10706 enableval="$enable_sigwinch" 10707 with_sigwinch=$enableval 10708else 10709 with_sigwinch=$with_ext_funcs 10710fi; 10711echo "$as_me:10711: result: $with_sigwinch" >&5 10712echo "${ECHO_T}$with_sigwinch" >&6 10713test "$with_sigwinch" = yes && cat >>confdefs.h <<\EOF 10714#define USE_SIGWINCH 1 10715EOF 10716 10717### use option --enable-tcap-names to allow user to define new capabilities 10718echo "$as_me:10718: checking if you want user-definable terminal capabilities like termcap" >&5 10719echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6 10720 10721# Check whether --enable-tcap-names or --disable-tcap-names was given. 10722if test "${enable_tcap_names+set}" = set; then 10723 enableval="$enable_tcap_names" 10724 with_tcap_names=$enableval 10725else 10726 with_tcap_names=$with_ext_funcs 10727fi; 10728echo "$as_me:10728: result: $with_tcap_names" >&5 10729echo "${ECHO_T}$with_tcap_names" >&6 10730NCURSES_XNAMES=0 10731test "$with_tcap_names" = yes && NCURSES_XNAMES=1 10732 10733############################################################################### 10734# These options are relatively safe to experiment with. 10735 10736echo "$as_me:10736: checking if you want all development code" >&5 10737echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6 10738 10739# Check whether --with-develop or --without-develop was given. 10740if test "${with_develop+set}" = set; then 10741 withval="$with_develop" 10742 with_develop=$withval 10743else 10744 with_develop=no 10745fi; 10746echo "$as_me:10746: result: $with_develop" >&5 10747echo "${ECHO_T}$with_develop" >&6 10748 10749### use option --enable-hard-tabs to turn on use of hard-tabs optimize 10750echo "$as_me:10750: checking if you want hard-tabs code" >&5 10751echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6 10752 10753# Check whether --enable-hard-tabs or --disable-hard-tabs was given. 10754if test "${enable_hard_tabs+set}" = set; then 10755 enableval="$enable_hard_tabs" 10756 10757else 10758 enable_hard_tabs=$with_develop 10759fi; 10760echo "$as_me:10760: result: $enable_hard_tabs" >&5 10761echo "${ECHO_T}$enable_hard_tabs" >&6 10762test "$enable_hard_tabs" = yes && cat >>confdefs.h <<\EOF 10763#define USE_HARD_TABS 1 10764EOF 10765 10766### use option --enable-xmc-glitch to turn on use of magic-cookie optimize 10767echo "$as_me:10767: checking if you want limited support for xmc" >&5 10768echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6 10769 10770# Check whether --enable-xmc-glitch or --disable-xmc-glitch was given. 10771if test "${enable_xmc_glitch+set}" = set; then 10772 enableval="$enable_xmc_glitch" 10773 10774else 10775 enable_xmc_glitch=$with_develop 10776fi; 10777echo "$as_me:10777: result: $enable_xmc_glitch" >&5 10778echo "${ECHO_T}$enable_xmc_glitch" >&6 10779test "$enable_xmc_glitch" = yes && cat >>confdefs.h <<\EOF 10780#define USE_XMC_SUPPORT 1 10781EOF 10782 10783############################################################################### 10784# These are just experimental, probably should not be in a package: 10785 10786echo "$as_me:10786: checking if you do not want to assume colors are white-on-black" >&5 10787echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6 10788 10789# Check whether --enable-assumed-color or --disable-assumed-color was given. 10790if test "${enable_assumed_color+set}" = set; then 10791 enableval="$enable_assumed_color" 10792 with_assumed_color=$enableval 10793else 10794 with_assumed_color=yes 10795fi; 10796echo "$as_me:10796: result: $with_assumed_color" >&5 10797echo "${ECHO_T}$with_assumed_color" >&6 10798test "$with_assumed_color" = yes && cat >>confdefs.h <<\EOF 10799#define USE_ASSUMED_COLOR 1 10800EOF 10801 10802### use option --enable-hashmap to turn on use of hashmap scrolling logic 10803echo "$as_me:10803: checking if you want hashmap scrolling-optimization code" >&5 10804echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6 10805 10806# Check whether --enable-hashmap or --disable-hashmap was given. 10807if test "${enable_hashmap+set}" = set; then 10808 enableval="$enable_hashmap" 10809 with_hashmap=$enableval 10810else 10811 with_hashmap=yes 10812fi; 10813echo "$as_me:10813: result: $with_hashmap" >&5 10814echo "${ECHO_T}$with_hashmap" >&6 10815test "$with_hashmap" = yes && cat >>confdefs.h <<\EOF 10816#define USE_HASHMAP 1 10817EOF 10818 10819### use option --enable-colorfgbg to turn on use of $COLORFGBG environment 10820echo "$as_me:10820: checking if you want colorfgbg code" >&5 10821echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6 10822 10823# Check whether --enable-colorfgbg or --disable-colorfgbg was given. 10824if test "${enable_colorfgbg+set}" = set; then 10825 enableval="$enable_colorfgbg" 10826 with_colorfgbg=$enableval 10827else 10828 with_colorfgbg=no 10829fi; 10830echo "$as_me:10830: result: $with_colorfgbg" >&5 10831echo "${ECHO_T}$with_colorfgbg" >&6 10832test "$with_colorfgbg" = yes && cat >>confdefs.h <<\EOF 10833#define USE_COLORFGBG 1 10834EOF 10835 10836### use option --enable-interop to turn on use of bindings used for interop 10837echo "$as_me:10837: checking if you want interop bindings" >&5 10838echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6 10839 10840# Check whether --enable-interop or --disable-interop was given. 10841if test "${enable_interop+set}" = set; then 10842 enableval="$enable_interop" 10843 with_exp_interop=$enableval 10844else 10845 with_exp_interop=no 10846fi; 10847echo "$as_me:10847: result: $with_exp_interop" >&5 10848echo "${ECHO_T}$with_exp_interop" >&6 10849 10850NCURSES_INTEROP_FUNCS=0 10851test "$with_exp_interop" = yes && NCURSES_INTEROP_FUNCS=1 10852 10853# This is still experimental (20080329), but should ultimately be moved to 10854# the script-block --with-normal, etc. 10855 10856echo "$as_me:10856: checking if you want to link with the pthread library" >&5 10857echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6 10858 10859# Check whether --with-pthread or --without-pthread was given. 10860if test "${with_pthread+set}" = set; then 10861 withval="$with_pthread" 10862 with_pthread=$withval 10863else 10864 with_pthread=no 10865fi; 10866echo "$as_me:10866: result: $with_pthread" >&5 10867echo "${ECHO_T}$with_pthread" >&6 10868 10869if test "$with_pthread" != no ; then 10870 echo "$as_me:10870: checking for pthread.h" >&5 10871echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6 10872if test "${ac_cv_header_pthread_h+set}" = set; then 10873 echo $ECHO_N "(cached) $ECHO_C" >&6 10874else 10875 cat >conftest.$ac_ext <<_ACEOF 10876#line 10876 "configure" 10877#include "confdefs.h" 10878#include <pthread.h> 10879_ACEOF 10880if { (eval echo "$as_me:10880: \"$ac_cpp conftest.$ac_ext\"") >&5 10881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10882 ac_status=$? 10883 egrep -v '^ *\+' conftest.er1 >conftest.err 10884 rm -f conftest.er1 10885 cat conftest.err >&5 10886 echo "$as_me:10886: \$? = $ac_status" >&5 10887 (exit $ac_status); } >/dev/null; then 10888 if test -s conftest.err; then 10889 ac_cpp_err=$ac_c_preproc_warn_flag 10890 else 10891 ac_cpp_err= 10892 fi 10893else 10894 ac_cpp_err=yes 10895fi 10896if test -z "$ac_cpp_err"; then 10897 ac_cv_header_pthread_h=yes 10898else 10899 echo "$as_me: failed program was:" >&5 10900 cat conftest.$ac_ext >&5 10901 ac_cv_header_pthread_h=no 10902fi 10903rm -f conftest.err conftest.$ac_ext 10904fi 10905echo "$as_me:10905: result: $ac_cv_header_pthread_h" >&5 10906echo "${ECHO_T}$ac_cv_header_pthread_h" >&6 10907if test $ac_cv_header_pthread_h = yes; then 10908 10909 cat >>confdefs.h <<\EOF 10910#define HAVE_PTHREADS_H 1 10911EOF 10912 10913 echo "$as_me:10913: checking if we can link with the pthread library" >&5 10914echo $ECHO_N "checking if we can link with the pthread library... $ECHO_C" >&6 10915 cf_save_LIBS="$LIBS" 10916 LIBS="-lpthread $LIBS" 10917 cat >conftest.$ac_ext <<_ACEOF 10918#line 10918 "configure" 10919#include "confdefs.h" 10920 10921#include <pthread.h> 10922 10923int 10924main () 10925{ 10926 10927 int rc = pthread_create(0,0,0,0); 10928 10929 ; 10930 return 0; 10931} 10932_ACEOF 10933rm -f conftest.$ac_objext conftest$ac_exeext 10934if { (eval echo "$as_me:10934: \"$ac_link\"") >&5 10935 (eval $ac_link) 2>&5 10936 ac_status=$? 10937 echo "$as_me:10937: \$? = $ac_status" >&5 10938 (exit $ac_status); } && 10939 { ac_try='test -s conftest$ac_exeext' 10940 { (eval echo "$as_me:10940: \"$ac_try\"") >&5 10941 (eval $ac_try) 2>&5 10942 ac_status=$? 10943 echo "$as_me:10943: \$? = $ac_status" >&5 10944 (exit $ac_status); }; }; then 10945 with_pthread=yes 10946else 10947 echo "$as_me: failed program was:" >&5 10948cat conftest.$ac_ext >&5 10949with_pthread=no 10950fi 10951rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10952 LIBS="$cf_save_LIBS" 10953 echo "$as_me:10953: result: $with_pthread" >&5 10954echo "${ECHO_T}$with_pthread" >&6 10955 10956 if test "$with_pthread" = yes ; then 10957 LIBS="-lpthread $LIBS" 10958 cat >>confdefs.h <<\EOF 10959#define HAVE_LIBPTHREADS 1 10960EOF 10961 10962 else 10963 { { echo "$as_me:10963: error: Cannot link with pthread library" >&5 10964echo "$as_me: error: Cannot link with pthread library" >&2;} 10965 { (exit 1); exit 1; }; } 10966 fi 10967 10968fi 10969 10970fi 10971 10972if test "x$with_pthread" != xno; then 10973 echo "$as_me:10973: checking for pthread_kill" >&5 10974echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6 10975if test "${ac_cv_func_pthread_kill+set}" = set; then 10976 echo $ECHO_N "(cached) $ECHO_C" >&6 10977else 10978 cat >conftest.$ac_ext <<_ACEOF 10979#line 10979 "configure" 10980#include "confdefs.h" 10981/* System header to define __stub macros and hopefully few prototypes, 10982 which can conflict with char pthread_kill (); below. */ 10983#include <assert.h> 10984/* Override any gcc2 internal prototype to avoid an error. */ 10985#ifdef __cplusplus 10986extern "C" 10987#endif 10988/* We use char because int might match the return type of a gcc2 10989 builtin and then its argument prototype would still apply. */ 10990char pthread_kill (); 10991char (*f) (); 10992 10993int 10994main () 10995{ 10996/* The GNU C library defines this for functions which it implements 10997 to always fail with ENOSYS. Some functions are actually named 10998 something starting with __ and the normal name is an alias. */ 10999#if defined (__stub_pthread_kill) || defined (__stub___pthread_kill) 11000choke me 11001#else 11002f = pthread_kill; 11003#endif 11004 11005 ; 11006 return 0; 11007} 11008_ACEOF 11009rm -f conftest.$ac_objext conftest$ac_exeext 11010if { (eval echo "$as_me:11010: \"$ac_link\"") >&5 11011 (eval $ac_link) 2>&5 11012 ac_status=$? 11013 echo "$as_me:11013: \$? = $ac_status" >&5 11014 (exit $ac_status); } && 11015 { ac_try='test -s conftest$ac_exeext' 11016 { (eval echo "$as_me:11016: \"$ac_try\"") >&5 11017 (eval $ac_try) 2>&5 11018 ac_status=$? 11019 echo "$as_me:11019: \$? = $ac_status" >&5 11020 (exit $ac_status); }; }; then 11021 ac_cv_func_pthread_kill=yes 11022else 11023 echo "$as_me: failed program was:" >&5 11024cat conftest.$ac_ext >&5 11025ac_cv_func_pthread_kill=no 11026fi 11027rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11028fi 11029echo "$as_me:11029: result: $ac_cv_func_pthread_kill" >&5 11030echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6 11031if test $ac_cv_func_pthread_kill = yes; then 11032 11033 echo "$as_me:11033: checking if you want to allow EINTR in wgetch with pthreads" >&5 11034echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6 11035 11036# Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given. 11037if test "${enable_pthreads_eintr+set}" = set; then 11038 enableval="$enable_pthreads_eintr" 11039 use_pthreads_eintr=$enableval 11040else 11041 use_pthreads_eintr=no 11042fi; 11043 echo "$as_me:11043: result: $use_pthreads_eintr" >&5 11044echo "${ECHO_T}$use_pthreads_eintr" >&6 11045 if test $use_pthreads_eintr = yes ; then 11046 cat >>confdefs.h <<\EOF 11047#define USE_PTHREADS_EINTR 1 11048EOF 11049 11050 fi 11051fi 11052 11053 echo "$as_me:11053: checking if you want to use weak-symbols for pthreads" >&5 11054echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6 11055 11056# Check whether --enable-weak-symbols or --disable-weak-symbols was given. 11057if test "${enable_weak_symbols+set}" = set; then 11058 enableval="$enable_weak_symbols" 11059 use_weak_symbols=$enableval 11060else 11061 use_weak_symbols=no 11062fi; 11063 echo "$as_me:11063: result: $use_weak_symbols" >&5 11064echo "${ECHO_T}$use_weak_symbols" >&6 11065 if test "$use_weak_symbols" = yes ; then 11066 11067echo "$as_me:11067: checking if $CC supports weak symbols" >&5 11068echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6 11069if test "${cf_cv_weak_symbols+set}" = set; then 11070 echo $ECHO_N "(cached) $ECHO_C" >&6 11071else 11072 11073cat >conftest.$ac_ext <<_ACEOF 11074#line 11074 "configure" 11075#include "confdefs.h" 11076 11077#include <stdio.h> 11078int 11079main () 11080{ 11081 11082#if defined(__GNUC__) 11083# if defined __USE_ISOC99 11084# define _cat_pragma(exp) _Pragma(#exp) 11085# define _weak_pragma(exp) _cat_pragma(weak name) 11086# else 11087# define _weak_pragma(exp) 11088# endif 11089# define _declare(name) __extension__ extern __typeof__(name) name 11090# define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak)) 11091#endif 11092 11093weak_symbol(fopen); 11094 11095 ; 11096 return 0; 11097} 11098_ACEOF 11099rm -f conftest.$ac_objext 11100if { (eval echo "$as_me:11100: \"$ac_compile\"") >&5 11101 (eval $ac_compile) 2>&5 11102 ac_status=$? 11103 echo "$as_me:11103: \$? = $ac_status" >&5 11104 (exit $ac_status); } && 11105 { ac_try='test -s conftest.$ac_objext' 11106 { (eval echo "$as_me:11106: \"$ac_try\"") >&5 11107 (eval $ac_try) 2>&5 11108 ac_status=$? 11109 echo "$as_me:11109: \$? = $ac_status" >&5 11110 (exit $ac_status); }; }; then 11111 cf_cv_weak_symbols=yes 11112else 11113 echo "$as_me: failed program was:" >&5 11114cat conftest.$ac_ext >&5 11115cf_cv_weak_symbols=no 11116fi 11117rm -f conftest.$ac_objext conftest.$ac_ext 11118 11119fi 11120echo "$as_me:11120: result: $cf_cv_weak_symbols" >&5 11121echo "${ECHO_T}$cf_cv_weak_symbols" >&6 11122 11123 else 11124 cf_cv_weak_symbols=no 11125 fi 11126 11127 if test $cf_cv_weak_symbols = yes ; then 11128 cat >>confdefs.h <<\EOF 11129#define USE_WEAK_SYMBOLS 1 11130EOF 11131 11132 fi 11133fi 11134 11135PTHREAD= 11136if test "$with_pthread" = "yes" ; then 11137 cat >>confdefs.h <<\EOF 11138#define USE_PTHREADS 1 11139EOF 11140 11141 enable_reentrant=yes 11142 if test $cf_cv_weak_symbols = yes ; then 11143 PTHREAD=-lpthread 11144 fi 11145fi 11146 11147# Reentrant code has to be opaque; there's little advantage to making ncurses 11148# opaque outside of that, so there is no --enable-opaque option. We can use 11149# this option without --with-pthreads, but this will be always set for 11150# pthreads. 11151echo "$as_me:11151: checking if you want experimental reentrant code" >&5 11152echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6 11153 11154# Check whether --enable-reentrant or --disable-reentrant was given. 11155if test "${enable_reentrant+set}" = set; then 11156 enableval="$enable_reentrant" 11157 with_reentrant=$enableval 11158else 11159 with_reentrant=no 11160fi; 11161echo "$as_me:11161: result: $with_reentrant" >&5 11162echo "${ECHO_T}$with_reentrant" >&6 11163if test "$with_reentrant" = yes ; then 11164 cf_cv_enable_reentrant=1 11165 cf_cv_enable_opaque="NCURSES_INTERNALS" 11166 NCURSES_OPAQUE=1 11167 NCURSES_SIZE_T=int 11168 if test $cf_cv_weak_symbols = yes ; then 11169 11170# remove pthread library from $LIBS 11171LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'` 11172 11173 TEST_LIBS="-lpthread $TEST_LIBS" 11174 TEST_LIBS2="-lpthread $TEST_LIBS2" 11175 else 11176 LIB_SUFFIX="t${LIB_SUFFIX}" 11177 fi 11178 cat >>confdefs.h <<\EOF 11179#define USE_REENTRANT 1 11180EOF 11181 11182if test "${with_abi_version+set}" != set; then 11183 case $cf_cv_rel_version in 11184 5.*) 11185 cf_cv_rel_version=6.0 11186 cf_cv_abi_version=6 11187 { echo "$as_me:11187: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5 11188echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;} 11189 ;; 11190 esac 11191fi 11192 11193else 11194 cf_cv_enable_reentrant=0 11195 cf_cv_enable_opaque="NCURSES_OPAQUE" 11196 NCURSES_OPAQUE=0 11197 NCURSES_SIZE_T=short 11198fi 11199 11200### Allow using a different wrap-prefix 11201if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then 11202 echo "$as_me:11202: checking for prefix used to wrap public variables" >&5 11203echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6 11204 11205# Check whether --with-wrap-prefix or --without-wrap-prefix was given. 11206if test "${with_wrap_prefix+set}" = set; then 11207 withval="$with_wrap_prefix" 11208 NCURSES_WRAP_PREFIX=$withval 11209else 11210 NCURSES_WRAP_PREFIX=_nc_ 11211fi; 11212 echo "$as_me:11212: result: $NCURSES_WRAP_PREFIX" >&5 11213echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6 11214else 11215 NCURSES_WRAP_PREFIX=_nc_ 11216fi 11217 11218cat >>confdefs.h <<EOF 11219#define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX" 11220EOF 11221 11222echo "$as_me:11222: checking if you want experimental safe-sprintf code" >&5 11223echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6 11224 11225# Check whether --enable-safe-sprintf or --disable-safe-sprintf was given. 11226if test "${enable_safe_sprintf+set}" = set; then 11227 enableval="$enable_safe_sprintf" 11228 with_safe_sprintf=$enableval 11229else 11230 with_safe_sprintf=no 11231fi; 11232echo "$as_me:11232: result: $with_safe_sprintf" >&5 11233echo "${ECHO_T}$with_safe_sprintf" >&6 11234test "$with_safe_sprintf" = yes && cat >>confdefs.h <<\EOF 11235#define USE_SAFE_SPRINTF 1 11236EOF 11237 11238### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic 11239# when hashmap is used scroll hints are useless 11240if test "$with_hashmap" = no ; then 11241echo "$as_me:11241: checking if you want to experiment without scrolling-hints code" >&5 11242echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6 11243 11244# Check whether --enable-scroll-hints or --disable-scroll-hints was given. 11245if test "${enable_scroll_hints+set}" = set; then 11246 enableval="$enable_scroll_hints" 11247 with_scroll_hints=$enableval 11248else 11249 with_scroll_hints=yes 11250fi; 11251echo "$as_me:11251: result: $with_scroll_hints" >&5 11252echo "${ECHO_T}$with_scroll_hints" >&6 11253test "$with_scroll_hints" = yes && cat >>confdefs.h <<\EOF 11254#define USE_SCROLL_HINTS 1 11255EOF 11256 11257fi 11258 11259echo "$as_me:11259: checking if you want experimental wgetch-events code" >&5 11260echo $ECHO_N "checking if you want experimental wgetch-events code... $ECHO_C" >&6 11261 11262# Check whether --enable-wgetch-events or --disable-wgetch-events was given. 11263if test "${enable_wgetch_events+set}" = set; then 11264 enableval="$enable_wgetch_events" 11265 with_wgetch_events=$enableval 11266else 11267 with_wgetch_events=no 11268fi; 11269echo "$as_me:11269: result: $with_wgetch_events" >&5 11270echo "${ECHO_T}$with_wgetch_events" >&6 11271test "$with_wgetch_events" = yes && cat >>confdefs.h <<\EOF 11272#define NCURSES_WGETCH_EVENTS 1 11273EOF 11274 11275############################################################################### 11276 11277### use option --disable-echo to suppress full display compiling commands 11278echo "$as_me:11278: checking if you want to display full commands during build" >&5 11279echo $ECHO_N "checking if you want to display full commands during build... $ECHO_C" >&6 11280 11281# Check whether --enable-echo or --disable-echo was given. 11282if test "${enable_echo+set}" = set; then 11283 enableval="$enable_echo" 11284 with_echo=$enableval 11285else 11286 with_echo=yes 11287fi; 11288if test "$with_echo" = yes; then 11289 ECHO_LINK= 11290else 11291 ECHO_LINK='@ echo linking $@ ... ;' 11292 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent" 11293 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent" 11294fi 11295echo "$as_me:11295: result: $with_echo" >&5 11296echo "${ECHO_T}$with_echo" >&6 11297 11298### use option --enable-warnings to turn on all gcc warnings 11299echo "$as_me:11299: checking if you want to see compiler warnings" >&5 11300echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6 11301 11302# Check whether --enable-warnings or --disable-warnings was given. 11303if test "${enable_warnings+set}" = set; then 11304 enableval="$enable_warnings" 11305 with_warnings=$enableval 11306fi; 11307echo "$as_me:11307: result: $with_warnings" >&5 11308echo "${ECHO_T}$with_warnings" >&6 11309 11310if test "x$with_warnings" = "xyes"; then 11311 11312 ADAFLAGS="$ADAFLAGS -gnatg" 11313 11314INTEL_COMPILER=no 11315 11316if test "$GCC" = yes ; then 11317 case $host_os in 11318 linux*|gnu*) 11319 echo "$as_me:11319: checking if this is really Intel C compiler" >&5 11320echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6 11321 cf_save_CFLAGS="$CFLAGS" 11322 CFLAGS="$CFLAGS -no-gcc" 11323 cat >conftest.$ac_ext <<_ACEOF 11324#line 11324 "configure" 11325#include "confdefs.h" 11326 11327int 11328main () 11329{ 11330 11331#ifdef __INTEL_COMPILER 11332#else 11333make an error 11334#endif 11335 11336 ; 11337 return 0; 11338} 11339_ACEOF 11340rm -f conftest.$ac_objext 11341if { (eval echo "$as_me:11341: \"$ac_compile\"") >&5 11342 (eval $ac_compile) 2>&5 11343 ac_status=$? 11344 echo "$as_me:11344: \$? = $ac_status" >&5 11345 (exit $ac_status); } && 11346 { ac_try='test -s conftest.$ac_objext' 11347 { (eval echo "$as_me:11347: \"$ac_try\"") >&5 11348 (eval $ac_try) 2>&5 11349 ac_status=$? 11350 echo "$as_me:11350: \$? = $ac_status" >&5 11351 (exit $ac_status); }; }; then 11352 INTEL_COMPILER=yes 11353cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc" 11354 11355else 11356 echo "$as_me: failed program was:" >&5 11357cat conftest.$ac_ext >&5 11358fi 11359rm -f conftest.$ac_objext conftest.$ac_ext 11360 CFLAGS="$cf_save_CFLAGS" 11361 echo "$as_me:11361: result: $INTEL_COMPILER" >&5 11362echo "${ECHO_T}$INTEL_COMPILER" >&6 11363 ;; 11364 esac 11365fi 11366 11367cat > conftest.$ac_ext <<EOF 11368#line 11368 "${as_me:-configure}" 11369int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; } 11370EOF 11371 11372if test "$INTEL_COMPILER" = yes 11373then 11374# The "-wdXXX" options suppress warnings: 11375# remark #1419: external declaration in primary source file 11376# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem) 11377# remark #1684: conversion from pointer to same-sized integral type (potential portability problem) 11378# remark #193: zero used for undefined preprocessing identifier 11379# remark #593: variable "curs_sb_left_arrow" was set but never used 11380# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits 11381# remark #869: parameter "tw" was never referenced 11382# remark #981: operands are evaluated in unspecified order 11383# warning #279: controlling expression is constant 11384 11385 { echo "$as_me:11385: checking for $CC warning options..." >&5 11386echo "$as_me: checking for $CC warning options..." >&6;} 11387 cf_save_CFLAGS="$CFLAGS" 11388 EXTRA_CFLAGS="-Wall" 11389 for cf_opt in \ 11390 wd1419 \ 11391 wd1683 \ 11392 wd1684 \ 11393 wd193 \ 11394 wd593 \ 11395 wd279 \ 11396 wd810 \ 11397 wd869 \ 11398 wd981 11399 do 11400 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 11401 if { (eval echo "$as_me:11401: \"$ac_compile\"") >&5 11402 (eval $ac_compile) 2>&5 11403 ac_status=$? 11404 echo "$as_me:11404: \$? = $ac_status" >&5 11405 (exit $ac_status); }; then 11406 test -n "$verbose" && echo "$as_me:11406: result: ... -$cf_opt" >&5 11407echo "${ECHO_T}... -$cf_opt" >&6 11408 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 11409 fi 11410 done 11411 CFLAGS="$cf_save_CFLAGS" 11412 11413elif test "$GCC" = yes 11414then 11415 { echo "$as_me:11415: checking for $CC warning options..." >&5 11416echo "$as_me: checking for $CC warning options..." >&6;} 11417 cf_save_CFLAGS="$CFLAGS" 11418 EXTRA_CFLAGS= 11419 cf_warn_CONST="" 11420 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings" 11421 for cf_opt in W Wall \ 11422 Wbad-function-cast \ 11423 Wcast-align \ 11424 Wcast-qual \ 11425 Winline \ 11426 Wmissing-declarations \ 11427 Wmissing-prototypes \ 11428 Wnested-externs \ 11429 Wpointer-arith \ 11430 Wshadow \ 11431 Wstrict-prototypes \ 11432 Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum 11433 do 11434 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 11435 if { (eval echo "$as_me:11435: \"$ac_compile\"") >&5 11436 (eval $ac_compile) 2>&5 11437 ac_status=$? 11438 echo "$as_me:11438: \$? = $ac_status" >&5 11439 (exit $ac_status); }; then 11440 test -n "$verbose" && echo "$as_me:11440: result: ... -$cf_opt" >&5 11441echo "${ECHO_T}... -$cf_opt" >&6 11442 case $cf_opt in #(vi 11443 Wcast-qual) #(vi 11444 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES" 11445 ;; 11446 Winline) #(vi 11447 case $GCC_VERSION in 11448 [34].*) 11449 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 11450 11451echo "${as_me:-configure}:11451: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 11452 11453 continue;; 11454 esac 11455 ;; 11456 esac 11457 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 11458 fi 11459 done 11460 CFLAGS="$cf_save_CFLAGS" 11461fi 11462rm -rf conftest* 11463 11464 if test "$cf_with_cxx" = yes ; then 11465 11466INTEL_CPLUSPLUS=no 11467 11468if test "$GCC" = yes ; then 11469 case $host_os in 11470 linux*|gnu*) 11471 echo "$as_me:11471: checking if this is really Intel C++ compiler" >&5 11472echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6 11473 cf_save_CFLAGS="$CXXFLAGS" 11474 CXXFLAGS="$CXXFLAGS -no-gcc" 11475 cat >conftest.$ac_ext <<_ACEOF 11476#line 11476 "configure" 11477#include "confdefs.h" 11478 11479int 11480main () 11481{ 11482 11483#ifdef __INTEL_COMPILER 11484#else 11485make an error 11486#endif 11487 11488 ; 11489 return 0; 11490} 11491_ACEOF 11492rm -f conftest.$ac_objext 11493if { (eval echo "$as_me:11493: \"$ac_compile\"") >&5 11494 (eval $ac_compile) 2>&5 11495 ac_status=$? 11496 echo "$as_me:11496: \$? = $ac_status" >&5 11497 (exit $ac_status); } && 11498 { ac_try='test -s conftest.$ac_objext' 11499 { (eval echo "$as_me:11499: \"$ac_try\"") >&5 11500 (eval $ac_try) 2>&5 11501 ac_status=$? 11502 echo "$as_me:11502: \$? = $ac_status" >&5 11503 (exit $ac_status); }; }; then 11504 INTEL_CPLUSPLUS=yes 11505cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc" 11506 11507else 11508 echo "$as_me: failed program was:" >&5 11509cat conftest.$ac_ext >&5 11510fi 11511rm -f conftest.$ac_objext conftest.$ac_ext 11512 CXXFLAGS="$cf_save_CFLAGS" 11513 echo "$as_me:11513: result: $INTEL_CPLUSPLUS" >&5 11514echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6 11515 ;; 11516 esac 11517fi 11518 11519ac_ext=cc 11520ac_cpp='$CXXCPP $CPPFLAGS' 11521ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11522ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11523ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11524ac_main_return=return 11525 11526cat > conftest.$ac_ext <<EOF 11527#line 11527 "configure" 11528int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; } 11529EOF 11530 11531if test "$INTEL_CPLUSPLUS" = yes 11532then 11533# The "-wdXXX" options suppress warnings: 11534# remark #1419: external declaration in primary source file 11535# remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem) 11536# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem) 11537# remark #1684: conversion from pointer to same-sized integral type (potential portability problem) 11538# remark #193: zero used for undefined preprocessing identifier 11539# remark #593: variable "curs_sb_left_arrow" was set but never used 11540# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits 11541# remark #869: parameter "tw" was never referenced 11542# remark #981: operands are evaluated in unspecified order 11543# warning #269: invalid format string conversion 11544 11545 { echo "$as_me:11545: checking for $CC warning options..." >&5 11546echo "$as_me: checking for $CC warning options..." >&6;} 11547 cf_save_CXXFLAGS="$CXXFLAGS" 11548 EXTRA_CXXFLAGS="-Wall" 11549 for cf_opt in \ 11550 wd1419 \ 11551 wd1682 \ 11552 wd1683 \ 11553 wd1684 \ 11554 wd193 \ 11555 wd279 \ 11556 wd593 \ 11557 wd810 \ 11558 wd869 \ 11559 wd981 11560 do 11561 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt" 11562 if { (eval echo "$as_me:11562: \"$ac_compile\"") >&5 11563 (eval $ac_compile) 2>&5 11564 ac_status=$? 11565 echo "$as_me:11565: \$? = $ac_status" >&5 11566 (exit $ac_status); }; then 11567 test -n "$verbose" && echo "$as_me:11567: result: ... -$cf_opt" >&5 11568echo "${ECHO_T}... -$cf_opt" >&6 11569 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt" 11570 fi 11571 done 11572 CXXFLAGS="$cf_save_CXXFLAGS" 11573 11574elif test "$GXX" = yes 11575then 11576 { echo "$as_me:11576: checking for $CXX warning options..." >&5 11577echo "$as_me: checking for $CXX warning options..." >&6;} 11578 cf_save_CXXFLAGS="$CXXFLAGS" 11579 EXTRA_CXXFLAGS="-W -Wall" 11580 cf_gxx_extra_warnings="" 11581 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings" 11582 case "$GCC_VERSION" in 11583 [1-2].*) 11584 ;; 11585 *) 11586 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++" 11587 ;; 11588 esac 11589 for cf_opt in \ 11590 Wabi \ 11591 fabi-version=0 \ 11592 Woverloaded-virtual \ 11593 Wsign-promo \ 11594 Wsynth \ 11595 Wold-style-cast \ 11596 Wcast-align \ 11597 Wcast-qual \ 11598 Wmissing-prototypes \ 11599 Wpointer-arith \ 11600 Wshadow \ 11601 Wstrict-prototypes \ 11602 Wundef $cf_gxx_extra_warnings Wno-unused 11603 do 11604 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt" 11605 if { (eval echo "$as_me:11605: \"$ac_compile\"") >&5 11606 (eval $ac_compile) 2>&5 11607 ac_status=$? 11608 echo "$as_me:11608: \$? = $ac_status" >&5 11609 (exit $ac_status); }; then 11610 test -n "$verbose" && echo "$as_me:11610: result: ... -$cf_opt" >&5 11611echo "${ECHO_T}... -$cf_opt" >&6 11612 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt" 11613 else 11614 test -n "$verbose" && echo "$as_me:11614: result: ... no -$cf_opt" >&5 11615echo "${ECHO_T}... no -$cf_opt" >&6 11616 fi 11617 done 11618 CXXFLAGS="$cf_save_CXXFLAGS" 11619fi 11620 11621rm -rf conftest* 11622ac_ext=c 11623ac_cpp='$CPP $CPPFLAGS' 11624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11626ac_compiler_gnu=$ac_cv_c_compiler_gnu 11627ac_main_return=return 11628 11629 fi 11630fi 11631 11632if test "$GCC" = yes 11633then 11634cat > conftest.i <<EOF 11635#ifndef GCC_PRINTF 11636#define GCC_PRINTF 0 11637#endif 11638#ifndef GCC_SCANF 11639#define GCC_SCANF 0 11640#endif 11641#ifndef GCC_NORETURN 11642#define GCC_NORETURN /* nothing */ 11643#endif 11644#ifndef GCC_UNUSED 11645#define GCC_UNUSED /* nothing */ 11646#endif 11647EOF 11648if test "$GCC" = yes 11649then 11650 { echo "$as_me:11650: checking for $CC __attribute__ directives..." >&5 11651echo "$as_me: checking for $CC __attribute__ directives..." >&6;} 11652cat > conftest.$ac_ext <<EOF 11653#line 11653 "${as_me:-configure}" 11654#include "confdefs.h" 11655#include "conftest.h" 11656#include "conftest.i" 11657#if GCC_PRINTF 11658#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) 11659#else 11660#define GCC_PRINTFLIKE(fmt,var) /*nothing*/ 11661#endif 11662#if GCC_SCANF 11663#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) 11664#else 11665#define GCC_SCANFLIKE(fmt,var) /*nothing*/ 11666#endif 11667extern void wow(char *,...) GCC_SCANFLIKE(1,2); 11668extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN; 11669extern void foo(void) GCC_NORETURN; 11670int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; } 11671EOF 11672 cf_printf_attribute=no 11673 cf_scanf_attribute=no 11674 for cf_attribute in scanf printf unused noreturn 11675 do 11676 11677cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 11678 11679 cf_directive="__attribute__(($cf_attribute))" 11680 echo "checking for $CC $cf_directive" 1>&5 11681 11682 case $cf_attribute in #(vi 11683 printf) #(vi 11684 cf_printf_attribute=yes 11685 cat >conftest.h <<EOF 11686#define GCC_$cf_ATTRIBUTE 1 11687EOF 11688 ;; 11689 scanf) #(vi 11690 cf_scanf_attribute=yes 11691 cat >conftest.h <<EOF 11692#define GCC_$cf_ATTRIBUTE 1 11693EOF 11694 ;; 11695 *) #(vi 11696 cat >conftest.h <<EOF 11697#define GCC_$cf_ATTRIBUTE $cf_directive 11698EOF 11699 ;; 11700 esac 11701 11702 if { (eval echo "$as_me:11702: \"$ac_compile\"") >&5 11703 (eval $ac_compile) 2>&5 11704 ac_status=$? 11705 echo "$as_me:11705: \$? = $ac_status" >&5 11706 (exit $ac_status); }; then 11707 test -n "$verbose" && echo "$as_me:11707: result: ... $cf_attribute" >&5 11708echo "${ECHO_T}... $cf_attribute" >&6 11709 cat conftest.h >>confdefs.h 11710 case $cf_attribute in #(vi 11711 printf) #(vi 11712 if test "$cf_printf_attribute" = no ; then 11713 cat >>confdefs.h <<EOF 11714#define GCC_PRINTFLIKE(fmt,var) /* nothing */ 11715EOF 11716 else 11717 cat >>confdefs.h <<EOF 11718#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) 11719EOF 11720 fi 11721 ;; 11722 scanf) #(vi 11723 if test "$cf_scanf_attribute" = no ; then 11724 cat >>confdefs.h <<EOF 11725#define GCC_SCANFLIKE(fmt,var) /* nothing */ 11726EOF 11727 else 11728 cat >>confdefs.h <<EOF 11729#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) 11730EOF 11731 fi 11732 ;; 11733 esac 11734 fi 11735 done 11736else 11737 fgrep define conftest.i >>confdefs.h 11738fi 11739rm -rf conftest* 11740fi 11741 11742### use option --enable-assertions to turn on generation of assertion code 11743echo "$as_me:11743: checking if you want to enable runtime assertions" >&5 11744echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6 11745 11746# Check whether --enable-assertions or --disable-assertions was given. 11747if test "${enable_assertions+set}" = set; then 11748 enableval="$enable_assertions" 11749 with_assertions=$enableval 11750else 11751 with_assertions=no 11752fi; 11753echo "$as_me:11753: result: $with_assertions" >&5 11754echo "${ECHO_T}$with_assertions" >&6 11755if test -n "$GCC" 11756then 11757 if test "$with_assertions" = no 11758 then 11759 cat >>confdefs.h <<\EOF 11760#define NDEBUG 1 11761EOF 11762 11763 CPPFLAGS="$CPPFLAGS -DNDEBUG" 11764 else 11765 11766 ADAFLAGS="$ADAFLAGS -gnata" 11767 11768 fi 11769fi 11770 11771### use option --disable-leaks to suppress "permanent" leaks, for testing 11772 11773echo "$as_me:11773: checking if you want to use dmalloc for testing" >&5 11774echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6 11775 11776# Check whether --with-dmalloc or --without-dmalloc was given. 11777if test "${with_dmalloc+set}" = set; then 11778 withval="$with_dmalloc" 11779 cat >>confdefs.h <<\EOF 11780#define USE_DMALLOC 1 11781EOF 11782 11783 : ${with_cflags:=-g} 11784 : ${with_no_leaks:=yes} 11785 with_dmalloc=yes 11786else 11787 with_dmalloc= 11788fi; 11789echo "$as_me:11789: result: ${with_dmalloc:-no}" >&5 11790echo "${ECHO_T}${with_dmalloc:-no}" >&6 11791 11792case .$with_cflags in #(vi 11793.*-g*) 11794 case .$CFLAGS in #(vi 11795 .*-g*) #(vi 11796 ;; 11797 *) 11798 11799cf_fix_cppflags=no 11800cf_new_cflags= 11801cf_new_cppflags= 11802cf_new_extra_cppflags= 11803 11804for cf_add_cflags in -g 11805do 11806case $cf_fix_cppflags in 11807no) 11808 case $cf_add_cflags in #(vi 11809 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 11810 case $cf_add_cflags in 11811 -D*) 11812 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11813 11814 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 11815 && test -z "${cf_tst_cflags}" \ 11816 && cf_fix_cppflags=yes 11817 11818 if test $cf_fix_cppflags = yes ; then 11819 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11820 continue 11821 elif test "${cf_tst_cflags}" = "\"'" ; then 11822 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11823 continue 11824 fi 11825 ;; 11826 esac 11827 case "$CPPFLAGS" in 11828 *$cf_add_cflags) #(vi 11829 ;; 11830 *) #(vi 11831 case $cf_add_cflags in #(vi 11832 -D*) 11833 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11834 11835CPPFLAGS=`echo "$CPPFLAGS" | \ 11836 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11837 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11838 11839 ;; 11840 esac 11841 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 11842 ;; 11843 esac 11844 ;; 11845 *) 11846 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 11847 ;; 11848 esac 11849 ;; 11850yes) 11851 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11852 11853 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 11854 11855 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 11856 && test -z "${cf_tst_cflags}" \ 11857 && cf_fix_cppflags=no 11858 ;; 11859esac 11860done 11861 11862if test -n "$cf_new_cflags" ; then 11863 11864 CFLAGS="$CFLAGS $cf_new_cflags" 11865fi 11866 11867if test -n "$cf_new_cppflags" ; then 11868 11869 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 11870fi 11871 11872if test -n "$cf_new_extra_cppflags" ; then 11873 11874 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 11875fi 11876 11877 ;; 11878 esac 11879 ;; 11880esac 11881 11882if test "$with_dmalloc" = yes ; then 11883 echo "$as_me:11883: checking for dmalloc.h" >&5 11884echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6 11885if test "${ac_cv_header_dmalloc_h+set}" = set; then 11886 echo $ECHO_N "(cached) $ECHO_C" >&6 11887else 11888 cat >conftest.$ac_ext <<_ACEOF 11889#line 11889 "configure" 11890#include "confdefs.h" 11891#include <dmalloc.h> 11892_ACEOF 11893if { (eval echo "$as_me:11893: \"$ac_cpp conftest.$ac_ext\"") >&5 11894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11895 ac_status=$? 11896 egrep -v '^ *\+' conftest.er1 >conftest.err 11897 rm -f conftest.er1 11898 cat conftest.err >&5 11899 echo "$as_me:11899: \$? = $ac_status" >&5 11900 (exit $ac_status); } >/dev/null; then 11901 if test -s conftest.err; then 11902 ac_cpp_err=$ac_c_preproc_warn_flag 11903 else 11904 ac_cpp_err= 11905 fi 11906else 11907 ac_cpp_err=yes 11908fi 11909if test -z "$ac_cpp_err"; then 11910 ac_cv_header_dmalloc_h=yes 11911else 11912 echo "$as_me: failed program was:" >&5 11913 cat conftest.$ac_ext >&5 11914 ac_cv_header_dmalloc_h=no 11915fi 11916rm -f conftest.err conftest.$ac_ext 11917fi 11918echo "$as_me:11918: result: $ac_cv_header_dmalloc_h" >&5 11919echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6 11920if test $ac_cv_header_dmalloc_h = yes; then 11921 11922echo "$as_me:11922: checking for dmalloc_debug in -ldmalloc" >&5 11923echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6 11924if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then 11925 echo $ECHO_N "(cached) $ECHO_C" >&6 11926else 11927 ac_check_lib_save_LIBS=$LIBS 11928LIBS="-ldmalloc $LIBS" 11929cat >conftest.$ac_ext <<_ACEOF 11930#line 11930 "configure" 11931#include "confdefs.h" 11932 11933/* Override any gcc2 internal prototype to avoid an error. */ 11934#ifdef __cplusplus 11935extern "C" 11936#endif 11937/* We use char because int might match the return type of a gcc2 11938 builtin and then its argument prototype would still apply. */ 11939char dmalloc_debug (); 11940int 11941main () 11942{ 11943dmalloc_debug (); 11944 ; 11945 return 0; 11946} 11947_ACEOF 11948rm -f conftest.$ac_objext conftest$ac_exeext 11949if { (eval echo "$as_me:11949: \"$ac_link\"") >&5 11950 (eval $ac_link) 2>&5 11951 ac_status=$? 11952 echo "$as_me:11952: \$? = $ac_status" >&5 11953 (exit $ac_status); } && 11954 { ac_try='test -s conftest$ac_exeext' 11955 { (eval echo "$as_me:11955: \"$ac_try\"") >&5 11956 (eval $ac_try) 2>&5 11957 ac_status=$? 11958 echo "$as_me:11958: \$? = $ac_status" >&5 11959 (exit $ac_status); }; }; then 11960 ac_cv_lib_dmalloc_dmalloc_debug=yes 11961else 11962 echo "$as_me: failed program was:" >&5 11963cat conftest.$ac_ext >&5 11964ac_cv_lib_dmalloc_dmalloc_debug=no 11965fi 11966rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11967LIBS=$ac_check_lib_save_LIBS 11968fi 11969echo "$as_me:11969: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5 11970echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6 11971if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then 11972 cat >>confdefs.h <<EOF 11973#define HAVE_LIBDMALLOC 1 11974EOF 11975 11976 LIBS="-ldmalloc $LIBS" 11977 11978fi 11979 11980fi 11981 11982fi 11983 11984echo "$as_me:11984: checking if you want to use dbmalloc for testing" >&5 11985echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6 11986 11987# Check whether --with-dbmalloc or --without-dbmalloc was given. 11988if test "${with_dbmalloc+set}" = set; then 11989 withval="$with_dbmalloc" 11990 cat >>confdefs.h <<\EOF 11991#define USE_DBMALLOC 1 11992EOF 11993 11994 : ${with_cflags:=-g} 11995 : ${with_no_leaks:=yes} 11996 with_dbmalloc=yes 11997else 11998 with_dbmalloc= 11999fi; 12000echo "$as_me:12000: result: ${with_dbmalloc:-no}" >&5 12001echo "${ECHO_T}${with_dbmalloc:-no}" >&6 12002 12003case .$with_cflags in #(vi 12004.*-g*) 12005 case .$CFLAGS in #(vi 12006 .*-g*) #(vi 12007 ;; 12008 *) 12009 12010cf_fix_cppflags=no 12011cf_new_cflags= 12012cf_new_cppflags= 12013cf_new_extra_cppflags= 12014 12015for cf_add_cflags in -g 12016do 12017case $cf_fix_cppflags in 12018no) 12019 case $cf_add_cflags in #(vi 12020 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 12021 case $cf_add_cflags in 12022 -D*) 12023 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 12024 12025 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 12026 && test -z "${cf_tst_cflags}" \ 12027 && cf_fix_cppflags=yes 12028 12029 if test $cf_fix_cppflags = yes ; then 12030 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 12031 continue 12032 elif test "${cf_tst_cflags}" = "\"'" ; then 12033 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 12034 continue 12035 fi 12036 ;; 12037 esac 12038 case "$CPPFLAGS" in 12039 *$cf_add_cflags) #(vi 12040 ;; 12041 *) #(vi 12042 case $cf_add_cflags in #(vi 12043 -D*) 12044 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 12045 12046CPPFLAGS=`echo "$CPPFLAGS" | \ 12047 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 12048 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 12049 12050 ;; 12051 esac 12052 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 12053 ;; 12054 esac 12055 ;; 12056 *) 12057 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 12058 ;; 12059 esac 12060 ;; 12061yes) 12062 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 12063 12064 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 12065 12066 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 12067 && test -z "${cf_tst_cflags}" \ 12068 && cf_fix_cppflags=no 12069 ;; 12070esac 12071done 12072 12073if test -n "$cf_new_cflags" ; then 12074 12075 CFLAGS="$CFLAGS $cf_new_cflags" 12076fi 12077 12078if test -n "$cf_new_cppflags" ; then 12079 12080 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 12081fi 12082 12083if test -n "$cf_new_extra_cppflags" ; then 12084 12085 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 12086fi 12087 12088 ;; 12089 esac 12090 ;; 12091esac 12092 12093if test "$with_dbmalloc" = yes ; then 12094 echo "$as_me:12094: checking for dbmalloc.h" >&5 12095echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6 12096if test "${ac_cv_header_dbmalloc_h+set}" = set; then 12097 echo $ECHO_N "(cached) $ECHO_C" >&6 12098else 12099 cat >conftest.$ac_ext <<_ACEOF 12100#line 12100 "configure" 12101#include "confdefs.h" 12102#include <dbmalloc.h> 12103_ACEOF 12104if { (eval echo "$as_me:12104: \"$ac_cpp conftest.$ac_ext\"") >&5 12105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 12106 ac_status=$? 12107 egrep -v '^ *\+' conftest.er1 >conftest.err 12108 rm -f conftest.er1 12109 cat conftest.err >&5 12110 echo "$as_me:12110: \$? = $ac_status" >&5 12111 (exit $ac_status); } >/dev/null; then 12112 if test -s conftest.err; then 12113 ac_cpp_err=$ac_c_preproc_warn_flag 12114 else 12115 ac_cpp_err= 12116 fi 12117else 12118 ac_cpp_err=yes 12119fi 12120if test -z "$ac_cpp_err"; then 12121 ac_cv_header_dbmalloc_h=yes 12122else 12123 echo "$as_me: failed program was:" >&5 12124 cat conftest.$ac_ext >&5 12125 ac_cv_header_dbmalloc_h=no 12126fi 12127rm -f conftest.err conftest.$ac_ext 12128fi 12129echo "$as_me:12129: result: $ac_cv_header_dbmalloc_h" >&5 12130echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6 12131if test $ac_cv_header_dbmalloc_h = yes; then 12132 12133echo "$as_me:12133: checking for debug_malloc in -ldbmalloc" >&5 12134echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6 12135if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then 12136 echo $ECHO_N "(cached) $ECHO_C" >&6 12137else 12138 ac_check_lib_save_LIBS=$LIBS 12139LIBS="-ldbmalloc $LIBS" 12140cat >conftest.$ac_ext <<_ACEOF 12141#line 12141 "configure" 12142#include "confdefs.h" 12143 12144/* Override any gcc2 internal prototype to avoid an error. */ 12145#ifdef __cplusplus 12146extern "C" 12147#endif 12148/* We use char because int might match the return type of a gcc2 12149 builtin and then its argument prototype would still apply. */ 12150char debug_malloc (); 12151int 12152main () 12153{ 12154debug_malloc (); 12155 ; 12156 return 0; 12157} 12158_ACEOF 12159rm -f conftest.$ac_objext conftest$ac_exeext 12160if { (eval echo "$as_me:12160: \"$ac_link\"") >&5 12161 (eval $ac_link) 2>&5 12162 ac_status=$? 12163 echo "$as_me:12163: \$? = $ac_status" >&5 12164 (exit $ac_status); } && 12165 { ac_try='test -s conftest$ac_exeext' 12166 { (eval echo "$as_me:12166: \"$ac_try\"") >&5 12167 (eval $ac_try) 2>&5 12168 ac_status=$? 12169 echo "$as_me:12169: \$? = $ac_status" >&5 12170 (exit $ac_status); }; }; then 12171 ac_cv_lib_dbmalloc_debug_malloc=yes 12172else 12173 echo "$as_me: failed program was:" >&5 12174cat conftest.$ac_ext >&5 12175ac_cv_lib_dbmalloc_debug_malloc=no 12176fi 12177rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12178LIBS=$ac_check_lib_save_LIBS 12179fi 12180echo "$as_me:12180: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5 12181echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6 12182if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then 12183 cat >>confdefs.h <<EOF 12184#define HAVE_LIBDBMALLOC 1 12185EOF 12186 12187 LIBS="-ldbmalloc $LIBS" 12188 12189fi 12190 12191fi 12192 12193fi 12194 12195echo "$as_me:12195: checking if you want to use valgrind for testing" >&5 12196echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6 12197 12198# Check whether --with-valgrind or --without-valgrind was given. 12199if test "${with_valgrind+set}" = set; then 12200 withval="$with_valgrind" 12201 cat >>confdefs.h <<\EOF 12202#define USE_VALGRIND 1 12203EOF 12204 12205 : ${with_cflags:=-g} 12206 : ${with_no_leaks:=yes} 12207 with_valgrind=yes 12208else 12209 with_valgrind= 12210fi; 12211echo "$as_me:12211: result: ${with_valgrind:-no}" >&5 12212echo "${ECHO_T}${with_valgrind:-no}" >&6 12213 12214case .$with_cflags in #(vi 12215.*-g*) 12216 case .$CFLAGS in #(vi 12217 .*-g*) #(vi 12218 ;; 12219 *) 12220 12221cf_fix_cppflags=no 12222cf_new_cflags= 12223cf_new_cppflags= 12224cf_new_extra_cppflags= 12225 12226for cf_add_cflags in -g 12227do 12228case $cf_fix_cppflags in 12229no) 12230 case $cf_add_cflags in #(vi 12231 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 12232 case $cf_add_cflags in 12233 -D*) 12234 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 12235 12236 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 12237 && test -z "${cf_tst_cflags}" \ 12238 && cf_fix_cppflags=yes 12239 12240 if test $cf_fix_cppflags = yes ; then 12241 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 12242 continue 12243 elif test "${cf_tst_cflags}" = "\"'" ; then 12244 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 12245 continue 12246 fi 12247 ;; 12248 esac 12249 case "$CPPFLAGS" in 12250 *$cf_add_cflags) #(vi 12251 ;; 12252 *) #(vi 12253 case $cf_add_cflags in #(vi 12254 -D*) 12255 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 12256 12257CPPFLAGS=`echo "$CPPFLAGS" | \ 12258 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 12259 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 12260 12261 ;; 12262 esac 12263 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 12264 ;; 12265 esac 12266 ;; 12267 *) 12268 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 12269 ;; 12270 esac 12271 ;; 12272yes) 12273 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 12274 12275 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 12276 12277 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 12278 && test -z "${cf_tst_cflags}" \ 12279 && cf_fix_cppflags=no 12280 ;; 12281esac 12282done 12283 12284if test -n "$cf_new_cflags" ; then 12285 12286 CFLAGS="$CFLAGS $cf_new_cflags" 12287fi 12288 12289if test -n "$cf_new_cppflags" ; then 12290 12291 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 12292fi 12293 12294if test -n "$cf_new_extra_cppflags" ; then 12295 12296 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 12297fi 12298 12299 ;; 12300 esac 12301 ;; 12302esac 12303 12304echo "$as_me:12304: checking if you want to perform memory-leak testing" >&5 12305echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6 12306 12307# Check whether --enable-leaks or --disable-leaks was given. 12308if test "${enable_leaks+set}" = set; then 12309 enableval="$enable_leaks" 12310 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi 12311else 12312 : ${with_no_leaks:=no} 12313fi; 12314echo "$as_me:12314: result: $with_no_leaks" >&5 12315echo "${ECHO_T}$with_no_leaks" >&6 12316 12317if test "$with_no_leaks" = yes ; then 12318 cat >>confdefs.h <<\EOF 12319#define NO_LEAKS 1 12320EOF 12321 12322 cat >>confdefs.h <<\EOF 12323#define YY_NO_LEAKS 1 12324EOF 12325 12326fi 12327 12328cat >>confdefs.h <<\EOF 12329#define HAVE_NC_ALLOC_H 1 12330EOF 12331 12332### use option --enable-expanded to generate certain macros as functions 12333 12334# Check whether --enable-expanded or --disable-expanded was given. 12335if test "${enable_expanded+set}" = set; then 12336 enableval="$enable_expanded" 12337 test "$enableval" = yes && cat >>confdefs.h <<\EOF 12338#define NCURSES_EXPANDED 1 12339EOF 12340 12341fi; 12342 12343### use option --disable-macros to suppress macros in favor of functions 12344 12345# Check whether --enable-macros or --disable-macros was given. 12346if test "${enable_macros+set}" = set; then 12347 enableval="$enable_macros" 12348 test "$enableval" = no && cat >>confdefs.h <<\EOF 12349#define NCURSES_NOMACROS 1 12350EOF 12351 12352fi; 12353 12354# Normally we only add trace() to the debug-library. Allow this to be 12355# extended to all models of the ncurses library: 12356cf_all_traces=no 12357case "$CFLAGS $CPPFLAGS" in 12358*-DTRACE*) 12359 cf_all_traces=yes 12360 ;; 12361esac 12362 12363echo "$as_me:12363: checking whether to add trace feature to all models" >&5 12364echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6 12365 12366# Check whether --with-trace or --without-trace was given. 12367if test "${with_trace+set}" = set; then 12368 withval="$with_trace" 12369 cf_with_trace=$withval 12370else 12371 cf_with_trace=$cf_all_traces 12372fi; 12373echo "$as_me:12373: result: $cf_with_trace" >&5 12374echo "${ECHO_T}$cf_with_trace" >&6 12375 12376if test "$cf_with_trace" = yes ; then 12377 LIB_TRACING=all 12378 ADA_TRACE=TRUE 12379 12380cf_fix_cppflags=no 12381cf_new_cflags= 12382cf_new_cppflags= 12383cf_new_extra_cppflags= 12384 12385for cf_add_cflags in -DTRACE 12386do 12387case $cf_fix_cppflags in 12388no) 12389 case $cf_add_cflags in #(vi 12390 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 12391 case $cf_add_cflags in 12392 -D*) 12393 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 12394 12395 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 12396 && test -z "${cf_tst_cflags}" \ 12397 && cf_fix_cppflags=yes 12398 12399 if test $cf_fix_cppflags = yes ; then 12400 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 12401 continue 12402 elif test "${cf_tst_cflags}" = "\"'" ; then 12403 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 12404 continue 12405 fi 12406 ;; 12407 esac 12408 case "$CPPFLAGS" in 12409 *$cf_add_cflags) #(vi 12410 ;; 12411 *) #(vi 12412 case $cf_add_cflags in #(vi 12413 -D*) 12414 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 12415 12416CPPFLAGS=`echo "$CPPFLAGS" | \ 12417 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 12418 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 12419 12420 ;; 12421 esac 12422 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 12423 ;; 12424 esac 12425 ;; 12426 *) 12427 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 12428 ;; 12429 esac 12430 ;; 12431yes) 12432 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 12433 12434 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 12435 12436 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 12437 && test -z "${cf_tst_cflags}" \ 12438 && cf_fix_cppflags=no 12439 ;; 12440esac 12441done 12442 12443if test -n "$cf_new_cflags" ; then 12444 12445 CFLAGS="$CFLAGS $cf_new_cflags" 12446fi 12447 12448if test -n "$cf_new_cppflags" ; then 12449 12450 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 12451fi 12452 12453if test -n "$cf_new_extra_cppflags" ; then 12454 12455 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 12456fi 12457 12458else 12459 LIB_TRACING=DEBUG 12460 ADA_TRACE=FALSE 12461fi 12462 12463### Checks for libraries. 12464case $cf_cv_system_name in #(vi 12465*mingw32*) #(vi 12466 ;; 12467*) 12468echo "$as_me:12468: checking for gettimeofday" >&5 12469echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6 12470if test "${ac_cv_func_gettimeofday+set}" = set; then 12471 echo $ECHO_N "(cached) $ECHO_C" >&6 12472else 12473 cat >conftest.$ac_ext <<_ACEOF 12474#line 12474 "configure" 12475#include "confdefs.h" 12476/* System header to define __stub macros and hopefully few prototypes, 12477 which can conflict with char gettimeofday (); below. */ 12478#include <assert.h> 12479/* Override any gcc2 internal prototype to avoid an error. */ 12480#ifdef __cplusplus 12481extern "C" 12482#endif 12483/* We use char because int might match the return type of a gcc2 12484 builtin and then its argument prototype would still apply. */ 12485char gettimeofday (); 12486char (*f) (); 12487 12488int 12489main () 12490{ 12491/* The GNU C library defines this for functions which it implements 12492 to always fail with ENOSYS. Some functions are actually named 12493 something starting with __ and the normal name is an alias. */ 12494#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) 12495choke me 12496#else 12497f = gettimeofday; 12498#endif 12499 12500 ; 12501 return 0; 12502} 12503_ACEOF 12504rm -f conftest.$ac_objext conftest$ac_exeext 12505if { (eval echo "$as_me:12505: \"$ac_link\"") >&5 12506 (eval $ac_link) 2>&5 12507 ac_status=$? 12508 echo "$as_me:12508: \$? = $ac_status" >&5 12509 (exit $ac_status); } && 12510 { ac_try='test -s conftest$ac_exeext' 12511 { (eval echo "$as_me:12511: \"$ac_try\"") >&5 12512 (eval $ac_try) 2>&5 12513 ac_status=$? 12514 echo "$as_me:12514: \$? = $ac_status" >&5 12515 (exit $ac_status); }; }; then 12516 ac_cv_func_gettimeofday=yes 12517else 12518 echo "$as_me: failed program was:" >&5 12519cat conftest.$ac_ext >&5 12520ac_cv_func_gettimeofday=no 12521fi 12522rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12523fi 12524echo "$as_me:12524: result: $ac_cv_func_gettimeofday" >&5 12525echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6 12526if test $ac_cv_func_gettimeofday = yes; then 12527 cat >>confdefs.h <<\EOF 12528#define HAVE_GETTIMEOFDAY 1 12529EOF 12530 12531else 12532 12533echo "$as_me:12533: checking for gettimeofday in -lbsd" >&5 12534echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6 12535if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then 12536 echo $ECHO_N "(cached) $ECHO_C" >&6 12537else 12538 ac_check_lib_save_LIBS=$LIBS 12539LIBS="-lbsd $LIBS" 12540cat >conftest.$ac_ext <<_ACEOF 12541#line 12541 "configure" 12542#include "confdefs.h" 12543 12544/* Override any gcc2 internal prototype to avoid an error. */ 12545#ifdef __cplusplus 12546extern "C" 12547#endif 12548/* We use char because int might match the return type of a gcc2 12549 builtin and then its argument prototype would still apply. */ 12550char gettimeofday (); 12551int 12552main () 12553{ 12554gettimeofday (); 12555 ; 12556 return 0; 12557} 12558_ACEOF 12559rm -f conftest.$ac_objext conftest$ac_exeext 12560if { (eval echo "$as_me:12560: \"$ac_link\"") >&5 12561 (eval $ac_link) 2>&5 12562 ac_status=$? 12563 echo "$as_me:12563: \$? = $ac_status" >&5 12564 (exit $ac_status); } && 12565 { ac_try='test -s conftest$ac_exeext' 12566 { (eval echo "$as_me:12566: \"$ac_try\"") >&5 12567 (eval $ac_try) 2>&5 12568 ac_status=$? 12569 echo "$as_me:12569: \$? = $ac_status" >&5 12570 (exit $ac_status); }; }; then 12571 ac_cv_lib_bsd_gettimeofday=yes 12572else 12573 echo "$as_me: failed program was:" >&5 12574cat conftest.$ac_ext >&5 12575ac_cv_lib_bsd_gettimeofday=no 12576fi 12577rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12578LIBS=$ac_check_lib_save_LIBS 12579fi 12580echo "$as_me:12580: result: $ac_cv_lib_bsd_gettimeofday" >&5 12581echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6 12582if test $ac_cv_lib_bsd_gettimeofday = yes; then 12583 cat >>confdefs.h <<\EOF 12584#define HAVE_GETTIMEOFDAY 1 12585EOF 12586 12587 LIBS="-lbsd $LIBS" 12588fi 12589 12590fi 12591 ;; 12592esac 12593 12594echo "$as_me:12594: checking if -lm needed for math functions" >&5 12595echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6 12596if test "${cf_cv_need_libm+set}" = set; then 12597 echo $ECHO_N "(cached) $ECHO_C" >&6 12598else 12599 12600 cat >conftest.$ac_ext <<_ACEOF 12601#line 12601 "configure" 12602#include "confdefs.h" 12603 12604 #include <stdio.h> 12605 #include <math.h> 12606 12607int 12608main () 12609{ 12610double x = rand(); printf("result = %g\n", sin(x)) 12611 ; 12612 return 0; 12613} 12614_ACEOF 12615rm -f conftest.$ac_objext conftest$ac_exeext 12616if { (eval echo "$as_me:12616: \"$ac_link\"") >&5 12617 (eval $ac_link) 2>&5 12618 ac_status=$? 12619 echo "$as_me:12619: \$? = $ac_status" >&5 12620 (exit $ac_status); } && 12621 { ac_try='test -s conftest$ac_exeext' 12622 { (eval echo "$as_me:12622: \"$ac_try\"") >&5 12623 (eval $ac_try) 2>&5 12624 ac_status=$? 12625 echo "$as_me:12625: \$? = $ac_status" >&5 12626 (exit $ac_status); }; }; then 12627 cf_cv_need_libm=no 12628else 12629 echo "$as_me: failed program was:" >&5 12630cat conftest.$ac_ext >&5 12631cf_cv_need_libm=yes 12632fi 12633rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12634fi 12635echo "$as_me:12635: result: $cf_cv_need_libm" >&5 12636echo "${ECHO_T}$cf_cv_need_libm" >&6 12637if test "$cf_cv_need_libm" = yes 12638then 12639MATH_LIB=-lm 12640fi 12641 12642### Checks for header files. 12643echo "$as_me:12643: checking for ANSI C header files" >&5 12644echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 12645if test "${ac_cv_header_stdc+set}" = set; then 12646 echo $ECHO_N "(cached) $ECHO_C" >&6 12647else 12648 cat >conftest.$ac_ext <<_ACEOF 12649#line 12649 "configure" 12650#include "confdefs.h" 12651#include <stdlib.h> 12652#include <stdarg.h> 12653#include <string.h> 12654#include <float.h> 12655 12656_ACEOF 12657if { (eval echo "$as_me:12657: \"$ac_cpp conftest.$ac_ext\"") >&5 12658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 12659 ac_status=$? 12660 egrep -v '^ *\+' conftest.er1 >conftest.err 12661 rm -f conftest.er1 12662 cat conftest.err >&5 12663 echo "$as_me:12663: \$? = $ac_status" >&5 12664 (exit $ac_status); } >/dev/null; then 12665 if test -s conftest.err; then 12666 ac_cpp_err=$ac_c_preproc_warn_flag 12667 else 12668 ac_cpp_err= 12669 fi 12670else 12671 ac_cpp_err=yes 12672fi 12673if test -z "$ac_cpp_err"; then 12674 ac_cv_header_stdc=yes 12675else 12676 echo "$as_me: failed program was:" >&5 12677 cat conftest.$ac_ext >&5 12678 ac_cv_header_stdc=no 12679fi 12680rm -f conftest.err conftest.$ac_ext 12681 12682if test $ac_cv_header_stdc = yes; then 12683 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12684 cat >conftest.$ac_ext <<_ACEOF 12685#line 12685 "configure" 12686#include "confdefs.h" 12687#include <string.h> 12688 12689_ACEOF 12690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12691 egrep "memchr" >/dev/null 2>&1; then 12692 : 12693else 12694 ac_cv_header_stdc=no 12695fi 12696rm -rf conftest* 12697 12698fi 12699 12700if test $ac_cv_header_stdc = yes; then 12701 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12702 cat >conftest.$ac_ext <<_ACEOF 12703#line 12703 "configure" 12704#include "confdefs.h" 12705#include <stdlib.h> 12706 12707_ACEOF 12708if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12709 egrep "free" >/dev/null 2>&1; then 12710 : 12711else 12712 ac_cv_header_stdc=no 12713fi 12714rm -rf conftest* 12715 12716fi 12717 12718if test $ac_cv_header_stdc = yes; then 12719 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12720 if test "$cross_compiling" = yes; then 12721 : 12722else 12723 cat >conftest.$ac_ext <<_ACEOF 12724#line 12724 "configure" 12725#include "confdefs.h" 12726#include <ctype.h> 12727#if ((' ' & 0x0FF) == 0x020) 12728# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12729# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12730#else 12731# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 12732 || ('j' <= (c) && (c) <= 'r') \ 12733 || ('s' <= (c) && (c) <= 'z')) 12734# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12735#endif 12736 12737#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12738int 12739main () 12740{ 12741 int i; 12742 for (i = 0; i < 256; i++) 12743 if (XOR (islower (i), ISLOWER (i)) 12744 || toupper (i) != TOUPPER (i)) 12745 $ac_main_return(2); 12746 $ac_main_return (0); 12747} 12748_ACEOF 12749rm -f conftest$ac_exeext 12750if { (eval echo "$as_me:12750: \"$ac_link\"") >&5 12751 (eval $ac_link) 2>&5 12752 ac_status=$? 12753 echo "$as_me:12753: \$? = $ac_status" >&5 12754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12755 { (eval echo "$as_me:12755: \"$ac_try\"") >&5 12756 (eval $ac_try) 2>&5 12757 ac_status=$? 12758 echo "$as_me:12758: \$? = $ac_status" >&5 12759 (exit $ac_status); }; }; then 12760 : 12761else 12762 echo "$as_me: program exited with status $ac_status" >&5 12763echo "$as_me: failed program was:" >&5 12764cat conftest.$ac_ext >&5 12765ac_cv_header_stdc=no 12766fi 12767rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12768fi 12769fi 12770fi 12771echo "$as_me:12771: result: $ac_cv_header_stdc" >&5 12772echo "${ECHO_T}$ac_cv_header_stdc" >&6 12773if test $ac_cv_header_stdc = yes; then 12774 12775cat >>confdefs.h <<\EOF 12776#define STDC_HEADERS 1 12777EOF 12778 12779fi 12780 12781ac_header_dirent=no 12782for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 12783 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 12784echo "$as_me:12784: checking for $ac_hdr that defines DIR" >&5 12785echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 12786if eval "test \"\${$as_ac_Header+set}\" = set"; then 12787 echo $ECHO_N "(cached) $ECHO_C" >&6 12788else 12789 cat >conftest.$ac_ext <<_ACEOF 12790#line 12790 "configure" 12791#include "confdefs.h" 12792#include <sys/types.h> 12793#include <$ac_hdr> 12794 12795int 12796main () 12797{ 12798if ((DIR *) 0) 12799return 0; 12800 ; 12801 return 0; 12802} 12803_ACEOF 12804rm -f conftest.$ac_objext 12805if { (eval echo "$as_me:12805: \"$ac_compile\"") >&5 12806 (eval $ac_compile) 2>&5 12807 ac_status=$? 12808 echo "$as_me:12808: \$? = $ac_status" >&5 12809 (exit $ac_status); } && 12810 { ac_try='test -s conftest.$ac_objext' 12811 { (eval echo "$as_me:12811: \"$ac_try\"") >&5 12812 (eval $ac_try) 2>&5 12813 ac_status=$? 12814 echo "$as_me:12814: \$? = $ac_status" >&5 12815 (exit $ac_status); }; }; then 12816 eval "$as_ac_Header=yes" 12817else 12818 echo "$as_me: failed program was:" >&5 12819cat conftest.$ac_ext >&5 12820eval "$as_ac_Header=no" 12821fi 12822rm -f conftest.$ac_objext conftest.$ac_ext 12823fi 12824echo "$as_me:12824: result: `eval echo '${'$as_ac_Header'}'`" >&5 12825echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12826if test `eval echo '${'$as_ac_Header'}'` = yes; then 12827 cat >>confdefs.h <<EOF 12828#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 12829EOF 12830 12831ac_header_dirent=$ac_hdr; break 12832fi 12833 12834done 12835# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 12836if test $ac_header_dirent = dirent.h; then 12837 echo "$as_me:12837: checking for opendir in -ldir" >&5 12838echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6 12839if test "${ac_cv_lib_dir_opendir+set}" = set; then 12840 echo $ECHO_N "(cached) $ECHO_C" >&6 12841else 12842 ac_check_lib_save_LIBS=$LIBS 12843LIBS="-ldir $LIBS" 12844cat >conftest.$ac_ext <<_ACEOF 12845#line 12845 "configure" 12846#include "confdefs.h" 12847 12848/* Override any gcc2 internal prototype to avoid an error. */ 12849#ifdef __cplusplus 12850extern "C" 12851#endif 12852/* We use char because int might match the return type of a gcc2 12853 builtin and then its argument prototype would still apply. */ 12854char opendir (); 12855int 12856main () 12857{ 12858opendir (); 12859 ; 12860 return 0; 12861} 12862_ACEOF 12863rm -f conftest.$ac_objext conftest$ac_exeext 12864if { (eval echo "$as_me:12864: \"$ac_link\"") >&5 12865 (eval $ac_link) 2>&5 12866 ac_status=$? 12867 echo "$as_me:12867: \$? = $ac_status" >&5 12868 (exit $ac_status); } && 12869 { ac_try='test -s conftest$ac_exeext' 12870 { (eval echo "$as_me:12870: \"$ac_try\"") >&5 12871 (eval $ac_try) 2>&5 12872 ac_status=$? 12873 echo "$as_me:12873: \$? = $ac_status" >&5 12874 (exit $ac_status); }; }; then 12875 ac_cv_lib_dir_opendir=yes 12876else 12877 echo "$as_me: failed program was:" >&5 12878cat conftest.$ac_ext >&5 12879ac_cv_lib_dir_opendir=no 12880fi 12881rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12882LIBS=$ac_check_lib_save_LIBS 12883fi 12884echo "$as_me:12884: result: $ac_cv_lib_dir_opendir" >&5 12885echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6 12886if test $ac_cv_lib_dir_opendir = yes; then 12887 LIBS="$LIBS -ldir" 12888fi 12889 12890else 12891 echo "$as_me:12891: checking for opendir in -lx" >&5 12892echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6 12893if test "${ac_cv_lib_x_opendir+set}" = set; then 12894 echo $ECHO_N "(cached) $ECHO_C" >&6 12895else 12896 ac_check_lib_save_LIBS=$LIBS 12897LIBS="-lx $LIBS" 12898cat >conftest.$ac_ext <<_ACEOF 12899#line 12899 "configure" 12900#include "confdefs.h" 12901 12902/* Override any gcc2 internal prototype to avoid an error. */ 12903#ifdef __cplusplus 12904extern "C" 12905#endif 12906/* We use char because int might match the return type of a gcc2 12907 builtin and then its argument prototype would still apply. */ 12908char opendir (); 12909int 12910main () 12911{ 12912opendir (); 12913 ; 12914 return 0; 12915} 12916_ACEOF 12917rm -f conftest.$ac_objext conftest$ac_exeext 12918if { (eval echo "$as_me:12918: \"$ac_link\"") >&5 12919 (eval $ac_link) 2>&5 12920 ac_status=$? 12921 echo "$as_me:12921: \$? = $ac_status" >&5 12922 (exit $ac_status); } && 12923 { ac_try='test -s conftest$ac_exeext' 12924 { (eval echo "$as_me:12924: \"$ac_try\"") >&5 12925 (eval $ac_try) 2>&5 12926 ac_status=$? 12927 echo "$as_me:12927: \$? = $ac_status" >&5 12928 (exit $ac_status); }; }; then 12929 ac_cv_lib_x_opendir=yes 12930else 12931 echo "$as_me: failed program was:" >&5 12932cat conftest.$ac_ext >&5 12933ac_cv_lib_x_opendir=no 12934fi 12935rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12936LIBS=$ac_check_lib_save_LIBS 12937fi 12938echo "$as_me:12938: result: $ac_cv_lib_x_opendir" >&5 12939echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6 12940if test $ac_cv_lib_x_opendir = yes; then 12941 LIBS="$LIBS -lx" 12942fi 12943 12944fi 12945 12946echo "$as_me:12946: checking whether time.h and sys/time.h may both be included" >&5 12947echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 12948if test "${ac_cv_header_time+set}" = set; then 12949 echo $ECHO_N "(cached) $ECHO_C" >&6 12950else 12951 cat >conftest.$ac_ext <<_ACEOF 12952#line 12952 "configure" 12953#include "confdefs.h" 12954#include <sys/types.h> 12955#include <sys/time.h> 12956#include <time.h> 12957 12958int 12959main () 12960{ 12961if ((struct tm *) 0) 12962return 0; 12963 ; 12964 return 0; 12965} 12966_ACEOF 12967rm -f conftest.$ac_objext 12968if { (eval echo "$as_me:12968: \"$ac_compile\"") >&5 12969 (eval $ac_compile) 2>&5 12970 ac_status=$? 12971 echo "$as_me:12971: \$? = $ac_status" >&5 12972 (exit $ac_status); } && 12973 { ac_try='test -s conftest.$ac_objext' 12974 { (eval echo "$as_me:12974: \"$ac_try\"") >&5 12975 (eval $ac_try) 2>&5 12976 ac_status=$? 12977 echo "$as_me:12977: \$? = $ac_status" >&5 12978 (exit $ac_status); }; }; then 12979 ac_cv_header_time=yes 12980else 12981 echo "$as_me: failed program was:" >&5 12982cat conftest.$ac_ext >&5 12983ac_cv_header_time=no 12984fi 12985rm -f conftest.$ac_objext conftest.$ac_ext 12986fi 12987echo "$as_me:12987: result: $ac_cv_header_time" >&5 12988echo "${ECHO_T}$ac_cv_header_time" >&6 12989if test $ac_cv_header_time = yes; then 12990 12991cat >>confdefs.h <<\EOF 12992#define TIME_WITH_SYS_TIME 1 12993EOF 12994 12995fi 12996 12997cf_regex_func=no 12998 12999cf_regex_libs="regex re" 13000case $host_os in #(vi 13001mingw*) 13002 cf_regex_libs="regex.dll $cf_regex_libs" 13003 ;; 13004esac 13005 13006echo "$as_me:13006: checking for regcomp" >&5 13007echo $ECHO_N "checking for regcomp... $ECHO_C" >&6 13008if test "${ac_cv_func_regcomp+set}" = set; then 13009 echo $ECHO_N "(cached) $ECHO_C" >&6 13010else 13011 cat >conftest.$ac_ext <<_ACEOF 13012#line 13012 "configure" 13013#include "confdefs.h" 13014/* System header to define __stub macros and hopefully few prototypes, 13015 which can conflict with char regcomp (); below. */ 13016#include <assert.h> 13017/* Override any gcc2 internal prototype to avoid an error. */ 13018#ifdef __cplusplus 13019extern "C" 13020#endif 13021/* We use char because int might match the return type of a gcc2 13022 builtin and then its argument prototype would still apply. */ 13023char regcomp (); 13024char (*f) (); 13025 13026int 13027main () 13028{ 13029/* The GNU C library defines this for functions which it implements 13030 to always fail with ENOSYS. Some functions are actually named 13031 something starting with __ and the normal name is an alias. */ 13032#if defined (__stub_regcomp) || defined (__stub___regcomp) 13033choke me 13034#else 13035f = regcomp; 13036#endif 13037 13038 ; 13039 return 0; 13040} 13041_ACEOF 13042rm -f conftest.$ac_objext conftest$ac_exeext 13043if { (eval echo "$as_me:13043: \"$ac_link\"") >&5 13044 (eval $ac_link) 2>&5 13045 ac_status=$? 13046 echo "$as_me:13046: \$? = $ac_status" >&5 13047 (exit $ac_status); } && 13048 { ac_try='test -s conftest$ac_exeext' 13049 { (eval echo "$as_me:13049: \"$ac_try\"") >&5 13050 (eval $ac_try) 2>&5 13051 ac_status=$? 13052 echo "$as_me:13052: \$? = $ac_status" >&5 13053 (exit $ac_status); }; }; then 13054 ac_cv_func_regcomp=yes 13055else 13056 echo "$as_me: failed program was:" >&5 13057cat conftest.$ac_ext >&5 13058ac_cv_func_regcomp=no 13059fi 13060rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13061fi 13062echo "$as_me:13062: result: $ac_cv_func_regcomp" >&5 13063echo "${ECHO_T}$ac_cv_func_regcomp" >&6 13064if test $ac_cv_func_regcomp = yes; then 13065 cf_regex_func=regcomp 13066else 13067 13068 for cf_regex_lib in $cf_regex_libs 13069 do 13070 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh` 13071echo "$as_me:13071: checking for regcomp in -l$cf_regex_lib" >&5 13072echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6 13073if eval "test \"\${$as_ac_Lib+set}\" = set"; then 13074 echo $ECHO_N "(cached) $ECHO_C" >&6 13075else 13076 ac_check_lib_save_LIBS=$LIBS 13077LIBS="-l$cf_regex_lib $LIBS" 13078cat >conftest.$ac_ext <<_ACEOF 13079#line 13079 "configure" 13080#include "confdefs.h" 13081 13082/* Override any gcc2 internal prototype to avoid an error. */ 13083#ifdef __cplusplus 13084extern "C" 13085#endif 13086/* We use char because int might match the return type of a gcc2 13087 builtin and then its argument prototype would still apply. */ 13088char regcomp (); 13089int 13090main () 13091{ 13092regcomp (); 13093 ; 13094 return 0; 13095} 13096_ACEOF 13097rm -f conftest.$ac_objext conftest$ac_exeext 13098if { (eval echo "$as_me:13098: \"$ac_link\"") >&5 13099 (eval $ac_link) 2>&5 13100 ac_status=$? 13101 echo "$as_me:13101: \$? = $ac_status" >&5 13102 (exit $ac_status); } && 13103 { ac_try='test -s conftest$ac_exeext' 13104 { (eval echo "$as_me:13104: \"$ac_try\"") >&5 13105 (eval $ac_try) 2>&5 13106 ac_status=$? 13107 echo "$as_me:13107: \$? = $ac_status" >&5 13108 (exit $ac_status); }; }; then 13109 eval "$as_ac_Lib=yes" 13110else 13111 echo "$as_me: failed program was:" >&5 13112cat conftest.$ac_ext >&5 13113eval "$as_ac_Lib=no" 13114fi 13115rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13116LIBS=$ac_check_lib_save_LIBS 13117fi 13118echo "$as_me:13118: result: `eval echo '${'$as_ac_Lib'}'`" >&5 13119echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 13120if test `eval echo '${'$as_ac_Lib'}'` = yes; then 13121 13122 LIBS="-l$cf_regex_lib $LIBS" 13123 cf_regex_func=regcomp 13124 break 13125fi 13126 13127 done 13128 13129fi 13130 13131if test "$cf_regex_func" = no ; then 13132 echo "$as_me:13132: checking for compile" >&5 13133echo $ECHO_N "checking for compile... $ECHO_C" >&6 13134if test "${ac_cv_func_compile+set}" = set; then 13135 echo $ECHO_N "(cached) $ECHO_C" >&6 13136else 13137 cat >conftest.$ac_ext <<_ACEOF 13138#line 13138 "configure" 13139#include "confdefs.h" 13140/* System header to define __stub macros and hopefully few prototypes, 13141 which can conflict with char compile (); below. */ 13142#include <assert.h> 13143/* Override any gcc2 internal prototype to avoid an error. */ 13144#ifdef __cplusplus 13145extern "C" 13146#endif 13147/* We use char because int might match the return type of a gcc2 13148 builtin and then its argument prototype would still apply. */ 13149char compile (); 13150char (*f) (); 13151 13152int 13153main () 13154{ 13155/* The GNU C library defines this for functions which it implements 13156 to always fail with ENOSYS. Some functions are actually named 13157 something starting with __ and the normal name is an alias. */ 13158#if defined (__stub_compile) || defined (__stub___compile) 13159choke me 13160#else 13161f = compile; 13162#endif 13163 13164 ; 13165 return 0; 13166} 13167_ACEOF 13168rm -f conftest.$ac_objext conftest$ac_exeext 13169if { (eval echo "$as_me:13169: \"$ac_link\"") >&5 13170 (eval $ac_link) 2>&5 13171 ac_status=$? 13172 echo "$as_me:13172: \$? = $ac_status" >&5 13173 (exit $ac_status); } && 13174 { ac_try='test -s conftest$ac_exeext' 13175 { (eval echo "$as_me:13175: \"$ac_try\"") >&5 13176 (eval $ac_try) 2>&5 13177 ac_status=$? 13178 echo "$as_me:13178: \$? = $ac_status" >&5 13179 (exit $ac_status); }; }; then 13180 ac_cv_func_compile=yes 13181else 13182 echo "$as_me: failed program was:" >&5 13183cat conftest.$ac_ext >&5 13184ac_cv_func_compile=no 13185fi 13186rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13187fi 13188echo "$as_me:13188: result: $ac_cv_func_compile" >&5 13189echo "${ECHO_T}$ac_cv_func_compile" >&6 13190if test $ac_cv_func_compile = yes; then 13191 cf_regex_func=compile 13192else 13193 13194 echo "$as_me:13194: checking for compile in -lgen" >&5 13195echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6 13196if test "${ac_cv_lib_gen_compile+set}" = set; then 13197 echo $ECHO_N "(cached) $ECHO_C" >&6 13198else 13199 ac_check_lib_save_LIBS=$LIBS 13200LIBS="-lgen $LIBS" 13201cat >conftest.$ac_ext <<_ACEOF 13202#line 13202 "configure" 13203#include "confdefs.h" 13204 13205/* Override any gcc2 internal prototype to avoid an error. */ 13206#ifdef __cplusplus 13207extern "C" 13208#endif 13209/* We use char because int might match the return type of a gcc2 13210 builtin and then its argument prototype would still apply. */ 13211char compile (); 13212int 13213main () 13214{ 13215compile (); 13216 ; 13217 return 0; 13218} 13219_ACEOF 13220rm -f conftest.$ac_objext conftest$ac_exeext 13221if { (eval echo "$as_me:13221: \"$ac_link\"") >&5 13222 (eval $ac_link) 2>&5 13223 ac_status=$? 13224 echo "$as_me:13224: \$? = $ac_status" >&5 13225 (exit $ac_status); } && 13226 { ac_try='test -s conftest$ac_exeext' 13227 { (eval echo "$as_me:13227: \"$ac_try\"") >&5 13228 (eval $ac_try) 2>&5 13229 ac_status=$? 13230 echo "$as_me:13230: \$? = $ac_status" >&5 13231 (exit $ac_status); }; }; then 13232 ac_cv_lib_gen_compile=yes 13233else 13234 echo "$as_me: failed program was:" >&5 13235cat conftest.$ac_ext >&5 13236ac_cv_lib_gen_compile=no 13237fi 13238rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13239LIBS=$ac_check_lib_save_LIBS 13240fi 13241echo "$as_me:13241: result: $ac_cv_lib_gen_compile" >&5 13242echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6 13243if test $ac_cv_lib_gen_compile = yes; then 13244 13245 LIBS="-lgen $LIBS" 13246 cf_regex_func=compile 13247fi 13248 13249fi 13250 13251fi 13252 13253if test "$cf_regex_func" = no ; then 13254 { echo "$as_me:13254: WARNING: cannot find regular expression library" >&5 13255echo "$as_me: WARNING: cannot find regular expression library" >&2;} 13256fi 13257 13258echo "$as_me:13258: checking for regular-expression headers" >&5 13259echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6 13260if test "${cf_cv_regex_hdrs+set}" = set; then 13261 echo $ECHO_N "(cached) $ECHO_C" >&6 13262else 13263 13264cf_cv_regex_hdrs=no 13265case $cf_regex_func in #(vi 13266compile) #(vi 13267 for cf_regex_hdr in regexp.h regexpr.h 13268 do 13269 cat >conftest.$ac_ext <<_ACEOF 13270#line 13270 "configure" 13271#include "confdefs.h" 13272#include <$cf_regex_hdr> 13273int 13274main () 13275{ 13276 13277 char *p = compile("", "", "", 0); 13278 int x = step("", ""); 13279 13280 ; 13281 return 0; 13282} 13283_ACEOF 13284rm -f conftest.$ac_objext conftest$ac_exeext 13285if { (eval echo "$as_me:13285: \"$ac_link\"") >&5 13286 (eval $ac_link) 2>&5 13287 ac_status=$? 13288 echo "$as_me:13288: \$? = $ac_status" >&5 13289 (exit $ac_status); } && 13290 { ac_try='test -s conftest$ac_exeext' 13291 { (eval echo "$as_me:13291: \"$ac_try\"") >&5 13292 (eval $ac_try) 2>&5 13293 ac_status=$? 13294 echo "$as_me:13294: \$? = $ac_status" >&5 13295 (exit $ac_status); }; }; then 13296 13297 cf_cv_regex_hdrs=$cf_regex_hdr 13298 break 13299 13300else 13301 echo "$as_me: failed program was:" >&5 13302cat conftest.$ac_ext >&5 13303fi 13304rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13305 done 13306 ;; 13307*) 13308 for cf_regex_hdr in regex.h 13309 do 13310 cat >conftest.$ac_ext <<_ACEOF 13311#line 13311 "configure" 13312#include "confdefs.h" 13313#include <sys/types.h> 13314#include <$cf_regex_hdr> 13315int 13316main () 13317{ 13318 13319 regex_t *p; 13320 int x = regcomp(p, "", 0); 13321 int y = regexec(p, "", 0, 0, 0); 13322 regfree(p); 13323 13324 ; 13325 return 0; 13326} 13327_ACEOF 13328rm -f conftest.$ac_objext conftest$ac_exeext 13329if { (eval echo "$as_me:13329: \"$ac_link\"") >&5 13330 (eval $ac_link) 2>&5 13331 ac_status=$? 13332 echo "$as_me:13332: \$? = $ac_status" >&5 13333 (exit $ac_status); } && 13334 { ac_try='test -s conftest$ac_exeext' 13335 { (eval echo "$as_me:13335: \"$ac_try\"") >&5 13336 (eval $ac_try) 2>&5 13337 ac_status=$? 13338 echo "$as_me:13338: \$? = $ac_status" >&5 13339 (exit $ac_status); }; }; then 13340 13341 cf_cv_regex_hdrs=$cf_regex_hdr 13342 break 13343 13344else 13345 echo "$as_me: failed program was:" >&5 13346cat conftest.$ac_ext >&5 13347fi 13348rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13349 done 13350 ;; 13351esac 13352 13353fi 13354echo "$as_me:13354: result: $cf_cv_regex_hdrs" >&5 13355echo "${ECHO_T}$cf_cv_regex_hdrs" >&6 13356 13357case $cf_cv_regex_hdrs in #(vi 13358 no) { echo "$as_me:13358: WARNING: no regular expression header found" >&5 13359echo "$as_me: WARNING: no regular expression header found" >&2;} ;; #(vi 13360 regex.h) cat >>confdefs.h <<\EOF 13361#define HAVE_REGEX_H_FUNCS 1 13362EOF 13363 ;; #(vi 13364 regexp.h) cat >>confdefs.h <<\EOF 13365#define HAVE_REGEXP_H_FUNCS 1 13366EOF 13367 ;; #(vi 13368 regexpr.h) cat >>confdefs.h <<\EOF 13369#define HAVE_REGEXPR_H_FUNCS 1 13370EOF 13371 ;; 13372esac 13373 13374for ac_header in \ 13375fcntl.h \ 13376getopt.h \ 13377limits.h \ 13378locale.h \ 13379math.h \ 13380poll.h \ 13381sys/bsdtypes.h \ 13382sys/ioctl.h \ 13383sys/param.h \ 13384sys/poll.h \ 13385sys/select.h \ 13386sys/time.h \ 13387sys/times.h \ 13388ttyent.h \ 13389unistd.h \ 13390wctype.h \ 13391 13392do 13393as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13394echo "$as_me:13394: checking for $ac_header" >&5 13395echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13396if eval "test \"\${$as_ac_Header+set}\" = set"; then 13397 echo $ECHO_N "(cached) $ECHO_C" >&6 13398else 13399 cat >conftest.$ac_ext <<_ACEOF 13400#line 13400 "configure" 13401#include "confdefs.h" 13402#include <$ac_header> 13403_ACEOF 13404if { (eval echo "$as_me:13404: \"$ac_cpp conftest.$ac_ext\"") >&5 13405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 13406 ac_status=$? 13407 egrep -v '^ *\+' conftest.er1 >conftest.err 13408 rm -f conftest.er1 13409 cat conftest.err >&5 13410 echo "$as_me:13410: \$? = $ac_status" >&5 13411 (exit $ac_status); } >/dev/null; then 13412 if test -s conftest.err; then 13413 ac_cpp_err=$ac_c_preproc_warn_flag 13414 else 13415 ac_cpp_err= 13416 fi 13417else 13418 ac_cpp_err=yes 13419fi 13420if test -z "$ac_cpp_err"; then 13421 eval "$as_ac_Header=yes" 13422else 13423 echo "$as_me: failed program was:" >&5 13424 cat conftest.$ac_ext >&5 13425 eval "$as_ac_Header=no" 13426fi 13427rm -f conftest.err conftest.$ac_ext 13428fi 13429echo "$as_me:13429: result: `eval echo '${'$as_ac_Header'}'`" >&5 13430echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13431if test `eval echo '${'$as_ac_Header'}'` = yes; then 13432 cat >>confdefs.h <<EOF 13433#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13434EOF 13435 13436fi 13437done 13438 13439# check for ISC (this may also define _POSIX_SOURCE) 13440# Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set 13441if test "$ISC" = yes ; then 13442 13443echo "$as_me:13443: checking for main in -lcposix" >&5 13444echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6 13445if test "${ac_cv_lib_cposix_main+set}" = set; then 13446 echo $ECHO_N "(cached) $ECHO_C" >&6 13447else 13448 ac_check_lib_save_LIBS=$LIBS 13449LIBS="-lcposix $LIBS" 13450cat >conftest.$ac_ext <<_ACEOF 13451#line 13451 "configure" 13452#include "confdefs.h" 13453 13454int 13455main () 13456{ 13457main (); 13458 ; 13459 return 0; 13460} 13461_ACEOF 13462rm -f conftest.$ac_objext conftest$ac_exeext 13463if { (eval echo "$as_me:13463: \"$ac_link\"") >&5 13464 (eval $ac_link) 2>&5 13465 ac_status=$? 13466 echo "$as_me:13466: \$? = $ac_status" >&5 13467 (exit $ac_status); } && 13468 { ac_try='test -s conftest$ac_exeext' 13469 { (eval echo "$as_me:13469: \"$ac_try\"") >&5 13470 (eval $ac_try) 2>&5 13471 ac_status=$? 13472 echo "$as_me:13472: \$? = $ac_status" >&5 13473 (exit $ac_status); }; }; then 13474 ac_cv_lib_cposix_main=yes 13475else 13476 echo "$as_me: failed program was:" >&5 13477cat conftest.$ac_ext >&5 13478ac_cv_lib_cposix_main=no 13479fi 13480rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13481LIBS=$ac_check_lib_save_LIBS 13482fi 13483echo "$as_me:13483: result: $ac_cv_lib_cposix_main" >&5 13484echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6 13485if test $ac_cv_lib_cposix_main = yes; then 13486 cat >>confdefs.h <<EOF 13487#define HAVE_LIBCPOSIX 1 13488EOF 13489 13490 LIBS="-lcposix $LIBS" 13491 13492fi 13493 13494 echo "$as_me:13494: checking for bzero in -linet" >&5 13495echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6 13496if test "${ac_cv_lib_inet_bzero+set}" = set; then 13497 echo $ECHO_N "(cached) $ECHO_C" >&6 13498else 13499 ac_check_lib_save_LIBS=$LIBS 13500LIBS="-linet $LIBS" 13501cat >conftest.$ac_ext <<_ACEOF 13502#line 13502 "configure" 13503#include "confdefs.h" 13504 13505/* Override any gcc2 internal prototype to avoid an error. */ 13506#ifdef __cplusplus 13507extern "C" 13508#endif 13509/* We use char because int might match the return type of a gcc2 13510 builtin and then its argument prototype would still apply. */ 13511char bzero (); 13512int 13513main () 13514{ 13515bzero (); 13516 ; 13517 return 0; 13518} 13519_ACEOF 13520rm -f conftest.$ac_objext conftest$ac_exeext 13521if { (eval echo "$as_me:13521: \"$ac_link\"") >&5 13522 (eval $ac_link) 2>&5 13523 ac_status=$? 13524 echo "$as_me:13524: \$? = $ac_status" >&5 13525 (exit $ac_status); } && 13526 { ac_try='test -s conftest$ac_exeext' 13527 { (eval echo "$as_me:13527: \"$ac_try\"") >&5 13528 (eval $ac_try) 2>&5 13529 ac_status=$? 13530 echo "$as_me:13530: \$? = $ac_status" >&5 13531 (exit $ac_status); }; }; then 13532 ac_cv_lib_inet_bzero=yes 13533else 13534 echo "$as_me: failed program was:" >&5 13535cat conftest.$ac_ext >&5 13536ac_cv_lib_inet_bzero=no 13537fi 13538rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13539LIBS=$ac_check_lib_save_LIBS 13540fi 13541echo "$as_me:13541: result: $ac_cv_lib_inet_bzero" >&5 13542echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6 13543if test $ac_cv_lib_inet_bzero = yes; then 13544 LIBS="-linet $LIBS" 13545fi 13546fi 13547 13548echo "$as_me:13548: checking if sys/time.h works with sys/select.h" >&5 13549echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6 13550if test "${cf_cv_sys_time_select+set}" = set; then 13551 echo $ECHO_N "(cached) $ECHO_C" >&6 13552else 13553 13554cat >conftest.$ac_ext <<_ACEOF 13555#line 13555 "configure" 13556#include "confdefs.h" 13557 13558#include <sys/types.h> 13559#ifdef HAVE_SYS_TIME_H 13560#include <sys/time.h> 13561#endif 13562#ifdef HAVE_SYS_SELECT_H 13563#include <sys/select.h> 13564#endif 13565 13566int 13567main () 13568{ 13569 13570 ; 13571 return 0; 13572} 13573_ACEOF 13574rm -f conftest.$ac_objext 13575if { (eval echo "$as_me:13575: \"$ac_compile\"") >&5 13576 (eval $ac_compile) 2>&5 13577 ac_status=$? 13578 echo "$as_me:13578: \$? = $ac_status" >&5 13579 (exit $ac_status); } && 13580 { ac_try='test -s conftest.$ac_objext' 13581 { (eval echo "$as_me:13581: \"$ac_try\"") >&5 13582 (eval $ac_try) 2>&5 13583 ac_status=$? 13584 echo "$as_me:13584: \$? = $ac_status" >&5 13585 (exit $ac_status); }; }; then 13586 cf_cv_sys_time_select=yes 13587else 13588 echo "$as_me: failed program was:" >&5 13589cat conftest.$ac_ext >&5 13590cf_cv_sys_time_select=no 13591fi 13592rm -f conftest.$ac_objext conftest.$ac_ext 13593 13594fi 13595 13596echo "$as_me:13596: result: $cf_cv_sys_time_select" >&5 13597echo "${ECHO_T}$cf_cv_sys_time_select" >&6 13598test "$cf_cv_sys_time_select" = yes && cat >>confdefs.h <<\EOF 13599#define HAVE_SYS_TIME_SELECT 1 13600EOF 13601 13602### checks for compiler characteristics 13603ac_ext=c 13604ac_cpp='$CPP $CPPFLAGS' 13605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13607ac_compiler_gnu=$ac_cv_c_compiler_gnu 13608ac_main_return=return 13609 13610echo "$as_me:13610: checking for $CC option to accept ANSI C" >&5 13611echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 13612if test "${ac_cv_prog_cc_stdc+set}" = set; then 13613 echo $ECHO_N "(cached) $ECHO_C" >&6 13614else 13615 ac_cv_prog_cc_stdc=no 13616ac_save_CC=$CC 13617cat >conftest.$ac_ext <<_ACEOF 13618#line 13618 "configure" 13619#include "confdefs.h" 13620#include <stdarg.h> 13621#include <stdio.h> 13622#include <sys/types.h> 13623#include <sys/stat.h> 13624/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 13625struct buf { int x; }; 13626FILE * (*rcsopen) (struct buf *, struct stat *, int); 13627static char *e (p, i) 13628 char **p; 13629 int i; 13630{ 13631 return p[i]; 13632} 13633static char *f (char * (*g) (char **, int), char **p, ...) 13634{ 13635 char *s; 13636 va_list v; 13637 va_start (v,p); 13638 s = g (p, va_arg (v,int)); 13639 va_end (v); 13640 return s; 13641} 13642int test (int i, double x); 13643struct s1 {int (*f) (int a);}; 13644struct s2 {int (*f) (double a);}; 13645int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 13646int argc; 13647char **argv; 13648int 13649main () 13650{ 13651return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 13652 ; 13653 return 0; 13654} 13655_ACEOF 13656# Don't try gcc -ansi; that turns off useful extensions and 13657# breaks some systems' header files. 13658# AIX -qlanglvl=ansi 13659# Ultrix and OSF/1 -std1 13660# HP-UX 10.20 and later -Ae 13661# HP-UX older versions -Aa -D_HPUX_SOURCE 13662# SVR4 -Xc -D__EXTENSIONS__ 13663for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 13664do 13665 CC="$ac_save_CC $ac_arg" 13666 rm -f conftest.$ac_objext 13667if { (eval echo "$as_me:13667: \"$ac_compile\"") >&5 13668 (eval $ac_compile) 2>&5 13669 ac_status=$? 13670 echo "$as_me:13670: \$? = $ac_status" >&5 13671 (exit $ac_status); } && 13672 { ac_try='test -s conftest.$ac_objext' 13673 { (eval echo "$as_me:13673: \"$ac_try\"") >&5 13674 (eval $ac_try) 2>&5 13675 ac_status=$? 13676 echo "$as_me:13676: \$? = $ac_status" >&5 13677 (exit $ac_status); }; }; then 13678 ac_cv_prog_cc_stdc=$ac_arg 13679break 13680else 13681 echo "$as_me: failed program was:" >&5 13682cat conftest.$ac_ext >&5 13683fi 13684rm -f conftest.$ac_objext 13685done 13686rm -f conftest.$ac_ext conftest.$ac_objext 13687CC=$ac_save_CC 13688 13689fi 13690 13691case "x$ac_cv_prog_cc_stdc" in 13692 x|xno) 13693 echo "$as_me:13693: result: none needed" >&5 13694echo "${ECHO_T}none needed" >&6 ;; 13695 *) 13696 echo "$as_me:13696: result: $ac_cv_prog_cc_stdc" >&5 13697echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 13698 CC="$CC $ac_cv_prog_cc_stdc" ;; 13699esac 13700 13701echo "$as_me:13701: checking for an ANSI C-conforming const" >&5 13702echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 13703if test "${ac_cv_c_const+set}" = set; then 13704 echo $ECHO_N "(cached) $ECHO_C" >&6 13705else 13706 cat >conftest.$ac_ext <<_ACEOF 13707#line 13707 "configure" 13708#include "confdefs.h" 13709 13710int 13711main () 13712{ 13713/* FIXME: Include the comments suggested by Paul. */ 13714#ifndef __cplusplus 13715 /* Ultrix mips cc rejects this. */ 13716 typedef int charset[2]; 13717 const charset x; 13718 /* SunOS 4.1.1 cc rejects this. */ 13719 char const *const *ccp; 13720 char **p; 13721 /* NEC SVR4.0.2 mips cc rejects this. */ 13722 struct point {int x, y;}; 13723 static struct point const zero = {0,0}; 13724 /* AIX XL C 1.02.0.0 rejects this. 13725 It does not let you subtract one const X* pointer from another in 13726 an arm of an if-expression whose if-part is not a constant 13727 expression */ 13728 const char *g = "string"; 13729 ccp = &g + (g ? g-g : 0); 13730 /* HPUX 7.0 cc rejects these. */ 13731 ++ccp; 13732 p = (char**) ccp; 13733 ccp = (char const *const *) p; 13734 { /* SCO 3.2v4 cc rejects this. */ 13735 char *t; 13736 char const *s = 0 ? (char *) 0 : (char const *) 0; 13737 13738 *t++ = 0; 13739 } 13740 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13741 int x[] = {25, 17}; 13742 const int *foo = &x[0]; 13743 ++foo; 13744 } 13745 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13746 typedef const int *iptr; 13747 iptr p = 0; 13748 ++p; 13749 } 13750 { /* AIX XL C 1.02.0.0 rejects this saying 13751 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13752 struct s { int j; const int *ap[3]; }; 13753 struct s *b; b->j = 5; 13754 } 13755 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13756 const int foo = 10; 13757 } 13758#endif 13759 13760 ; 13761 return 0; 13762} 13763_ACEOF 13764rm -f conftest.$ac_objext 13765if { (eval echo "$as_me:13765: \"$ac_compile\"") >&5 13766 (eval $ac_compile) 2>&5 13767 ac_status=$? 13768 echo "$as_me:13768: \$? = $ac_status" >&5 13769 (exit $ac_status); } && 13770 { ac_try='test -s conftest.$ac_objext' 13771 { (eval echo "$as_me:13771: \"$ac_try\"") >&5 13772 (eval $ac_try) 2>&5 13773 ac_status=$? 13774 echo "$as_me:13774: \$? = $ac_status" >&5 13775 (exit $ac_status); }; }; then 13776 ac_cv_c_const=yes 13777else 13778 echo "$as_me: failed program was:" >&5 13779cat conftest.$ac_ext >&5 13780ac_cv_c_const=no 13781fi 13782rm -f conftest.$ac_objext conftest.$ac_ext 13783fi 13784echo "$as_me:13784: result: $ac_cv_c_const" >&5 13785echo "${ECHO_T}$ac_cv_c_const" >&6 13786if test $ac_cv_c_const = no; then 13787 13788cat >>confdefs.h <<\EOF 13789#define const 13790EOF 13791 13792fi 13793 13794echo "$as_me:13794: checking for inline" >&5 13795echo $ECHO_N "checking for inline... $ECHO_C" >&6 13796if test "${ac_cv_c_inline+set}" = set; then 13797 echo $ECHO_N "(cached) $ECHO_C" >&6 13798else 13799 ac_cv_c_inline=no 13800for ac_kw in inline __inline__ __inline; do 13801 cat >conftest.$ac_ext <<_ACEOF 13802#line 13802 "configure" 13803#include "confdefs.h" 13804#ifndef __cplusplus 13805static $ac_kw int static_foo () {return 0; } 13806$ac_kw int foo () {return 0; } 13807#endif 13808 13809_ACEOF 13810rm -f conftest.$ac_objext 13811if { (eval echo "$as_me:13811: \"$ac_compile\"") >&5 13812 (eval $ac_compile) 2>&5 13813 ac_status=$? 13814 echo "$as_me:13814: \$? = $ac_status" >&5 13815 (exit $ac_status); } && 13816 { ac_try='test -s conftest.$ac_objext' 13817 { (eval echo "$as_me:13817: \"$ac_try\"") >&5 13818 (eval $ac_try) 2>&5 13819 ac_status=$? 13820 echo "$as_me:13820: \$? = $ac_status" >&5 13821 (exit $ac_status); }; }; then 13822 ac_cv_c_inline=$ac_kw; break 13823else 13824 echo "$as_me: failed program was:" >&5 13825cat conftest.$ac_ext >&5 13826fi 13827rm -f conftest.$ac_objext conftest.$ac_ext 13828done 13829 13830fi 13831echo "$as_me:13831: result: $ac_cv_c_inline" >&5 13832echo "${ECHO_T}$ac_cv_c_inline" >&6 13833case $ac_cv_c_inline in 13834 inline | yes) ;; 13835 no) 13836cat >>confdefs.h <<\EOF 13837#define inline 13838EOF 13839 ;; 13840 *) cat >>confdefs.h <<EOF 13841#define inline $ac_cv_c_inline 13842EOF 13843 ;; 13844esac 13845 13846NCURSES_INLINE= 13847if test "$ac_cv_c_inline" != no ; then 13848 NCURSES_INLINE=inline 13849 if test "$INTEL_COMPILER" = yes 13850 then 13851 : 13852 elif test "$GCC" = yes 13853 then 13854 echo "$as_me:13854: checking if $CC supports options to tune inlining" >&5 13855echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6 13856if test "${cf_cv_gcc_inline+set}" = set; then 13857 echo $ECHO_N "(cached) $ECHO_C" >&6 13858else 13859 13860 cf_save_CFLAGS=$CFLAGS 13861 CFLAGS="$CFLAGS --param max-inline-insns-single=1200" 13862 cat >conftest.$ac_ext <<_ACEOF 13863#line 13863 "configure" 13864#include "confdefs.h" 13865inline int foo(void) { return 1; } 13866int 13867main () 13868{ 13869${cf_cv_main_return:-return} foo() 13870 ; 13871 return 0; 13872} 13873_ACEOF 13874rm -f conftest.$ac_objext 13875if { (eval echo "$as_me:13875: \"$ac_compile\"") >&5 13876 (eval $ac_compile) 2>&5 13877 ac_status=$? 13878 echo "$as_me:13878: \$? = $ac_status" >&5 13879 (exit $ac_status); } && 13880 { ac_try='test -s conftest.$ac_objext' 13881 { (eval echo "$as_me:13881: \"$ac_try\"") >&5 13882 (eval $ac_try) 2>&5 13883 ac_status=$? 13884 echo "$as_me:13884: \$? = $ac_status" >&5 13885 (exit $ac_status); }; }; then 13886 cf_cv_gcc_inline=yes 13887else 13888 echo "$as_me: failed program was:" >&5 13889cat conftest.$ac_ext >&5 13890cf_cv_gcc_inline=no 13891fi 13892rm -f conftest.$ac_objext conftest.$ac_ext 13893 CFLAGS=$cf_save_CFLAGS 13894 13895fi 13896echo "$as_me:13896: result: $cf_cv_gcc_inline" >&5 13897echo "${ECHO_T}$cf_cv_gcc_inline" >&6 13898 if test "$cf_cv_gcc_inline" = yes ; then 13899 13900cf_fix_cppflags=no 13901cf_new_cflags= 13902cf_new_cppflags= 13903cf_new_extra_cppflags= 13904 13905for cf_add_cflags in --param max-inline-insns-single=1200 13906do 13907case $cf_fix_cppflags in 13908no) 13909 case $cf_add_cflags in #(vi 13910 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 13911 case $cf_add_cflags in 13912 -D*) 13913 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 13914 13915 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 13916 && test -z "${cf_tst_cflags}" \ 13917 && cf_fix_cppflags=yes 13918 13919 if test $cf_fix_cppflags = yes ; then 13920 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 13921 continue 13922 elif test "${cf_tst_cflags}" = "\"'" ; then 13923 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 13924 continue 13925 fi 13926 ;; 13927 esac 13928 case "$CPPFLAGS" in 13929 *$cf_add_cflags) #(vi 13930 ;; 13931 *) #(vi 13932 case $cf_add_cflags in #(vi 13933 -D*) 13934 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 13935 13936CPPFLAGS=`echo "$CPPFLAGS" | \ 13937 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 13938 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 13939 13940 ;; 13941 esac 13942 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 13943 ;; 13944 esac 13945 ;; 13946 *) 13947 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 13948 ;; 13949 esac 13950 ;; 13951yes) 13952 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 13953 13954 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 13955 13956 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 13957 && test -z "${cf_tst_cflags}" \ 13958 && cf_fix_cppflags=no 13959 ;; 13960esac 13961done 13962 13963if test -n "$cf_new_cflags" ; then 13964 13965 CFLAGS="$CFLAGS $cf_new_cflags" 13966fi 13967 13968if test -n "$cf_new_cppflags" ; then 13969 13970 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 13971fi 13972 13973if test -n "$cf_new_extra_cppflags" ; then 13974 13975 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 13976fi 13977 13978 fi 13979 fi 13980fi 13981 13982echo "$as_me:13982: checking for signal global datatype" >&5 13983echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6 13984if test "${cf_cv_sig_atomic_t+set}" = set; then 13985 echo $ECHO_N "(cached) $ECHO_C" >&6 13986else 13987 13988 for cf_type in \ 13989 "volatile sig_atomic_t" \ 13990 "sig_atomic_t" \ 13991 "int" 13992 do 13993 cat >conftest.$ac_ext <<_ACEOF 13994#line 13994 "configure" 13995#include "confdefs.h" 13996 13997#include <sys/types.h> 13998#include <signal.h> 13999#include <stdio.h> 14000 14001extern $cf_type x; 14002$cf_type x; 14003static void handler(int sig) 14004{ 14005 x = 5; 14006} 14007int 14008main () 14009{ 14010signal(SIGINT, handler); 14011 x = 1 14012 ; 14013 return 0; 14014} 14015_ACEOF 14016rm -f conftest.$ac_objext 14017if { (eval echo "$as_me:14017: \"$ac_compile\"") >&5 14018 (eval $ac_compile) 2>&5 14019 ac_status=$? 14020 echo "$as_me:14020: \$? = $ac_status" >&5 14021 (exit $ac_status); } && 14022 { ac_try='test -s conftest.$ac_objext' 14023 { (eval echo "$as_me:14023: \"$ac_try\"") >&5 14024 (eval $ac_try) 2>&5 14025 ac_status=$? 14026 echo "$as_me:14026: \$? = $ac_status" >&5 14027 (exit $ac_status); }; }; then 14028 cf_cv_sig_atomic_t=$cf_type 14029else 14030 echo "$as_me: failed program was:" >&5 14031cat conftest.$ac_ext >&5 14032cf_cv_sig_atomic_t=no 14033fi 14034rm -f conftest.$ac_objext conftest.$ac_ext 14035 test "$cf_cv_sig_atomic_t" != no && break 14036 done 14037 14038fi 14039 14040echo "$as_me:14040: result: $cf_cv_sig_atomic_t" >&5 14041echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6 14042test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF 14043#define SIG_ATOMIC_T $cf_cv_sig_atomic_t 14044EOF 14045 14046if test $NCURSES_CHTYPE = auto ; then 14047 14048echo "$as_me:14048: checking for type of chtype" >&5 14049echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6 14050if test "${cf_cv_typeof_chtype+set}" = set; then 14051 echo $ECHO_N "(cached) $ECHO_C" >&6 14052else 14053 14054 if test "$cross_compiling" = yes; then 14055 cf_cv_typeof_chtype=long 14056else 14057 cat >conftest.$ac_ext <<_ACEOF 14058#line 14058 "configure" 14059#include "confdefs.h" 14060 14061#define WANT_BITS 31 14062#include <stdio.h> 14063int main() 14064{ 14065 FILE *fp = fopen("cf_test.out", "w"); 14066 if (fp != 0) { 14067 char *result = "long"; 14068 if (sizeof(unsigned long) > sizeof(unsigned int)) { 14069 int n; 14070 unsigned int x, y; 14071 for (n = 0; n < WANT_BITS; n++) { 14072 x = (1 << n); 14073 y = (x >> n); 14074 if (y != 1 || x == 0) { 14075 x = 0; 14076 break; 14077 } 14078 } 14079 /* 14080 * If x is nonzero, an int is big enough for the bits 14081 * that we want. 14082 */ 14083 result = (x != 0) ? "int" : "long"; 14084 } 14085 fputs(result, fp); 14086 fclose(fp); 14087 } 14088 ${cf_cv_main_return:-return}(0); 14089} 14090 14091_ACEOF 14092rm -f conftest$ac_exeext 14093if { (eval echo "$as_me:14093: \"$ac_link\"") >&5 14094 (eval $ac_link) 2>&5 14095 ac_status=$? 14096 echo "$as_me:14096: \$? = $ac_status" >&5 14097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14098 { (eval echo "$as_me:14098: \"$ac_try\"") >&5 14099 (eval $ac_try) 2>&5 14100 ac_status=$? 14101 echo "$as_me:14101: \$? = $ac_status" >&5 14102 (exit $ac_status); }; }; then 14103 cf_cv_typeof_chtype=`cat cf_test.out` 14104else 14105 echo "$as_me: program exited with status $ac_status" >&5 14106echo "$as_me: failed program was:" >&5 14107cat conftest.$ac_ext >&5 14108cf_cv_typeof_chtype=long 14109fi 14110rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14111fi 14112 rm -f cf_test.out 14113 14114fi 14115 14116echo "$as_me:14116: result: $cf_cv_typeof_chtype" >&5 14117echo "${ECHO_T}$cf_cv_typeof_chtype" >&6 14118 14119cat >>confdefs.h <<EOF 14120#define TYPEOF_CHTYPE $cf_cv_typeof_chtype 14121EOF 14122 14123else 14124 cf_cv_typeof_chtype=$NCURSES_CHTYPE 14125fi 14126test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype="" 14127 14128echo "$as_me:14128: checking if unsigned literals are legal" >&5 14129echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6 14130if test "${cf_cv_unsigned_literals+set}" = set; then 14131 echo $ECHO_N "(cached) $ECHO_C" >&6 14132else 14133 14134 cat >conftest.$ac_ext <<_ACEOF 14135#line 14135 "configure" 14136#include "confdefs.h" 14137 14138int 14139main () 14140{ 14141long x = 1L + 1UL + 1U + 1 14142 ; 14143 return 0; 14144} 14145_ACEOF 14146rm -f conftest.$ac_objext 14147if { (eval echo "$as_me:14147: \"$ac_compile\"") >&5 14148 (eval $ac_compile) 2>&5 14149 ac_status=$? 14150 echo "$as_me:14150: \$? = $ac_status" >&5 14151 (exit $ac_status); } && 14152 { ac_try='test -s conftest.$ac_objext' 14153 { (eval echo "$as_me:14153: \"$ac_try\"") >&5 14154 (eval $ac_try) 2>&5 14155 ac_status=$? 14156 echo "$as_me:14156: \$? = $ac_status" >&5 14157 (exit $ac_status); }; }; then 14158 cf_cv_unsigned_literals=yes 14159else 14160 echo "$as_me: failed program was:" >&5 14161cat conftest.$ac_ext >&5 14162cf_cv_unsigned_literals=no 14163fi 14164rm -f conftest.$ac_objext conftest.$ac_ext 14165 14166fi 14167 14168echo "$as_me:14168: result: $cf_cv_unsigned_literals" >&5 14169echo "${ECHO_T}$cf_cv_unsigned_literals" >&6 14170 14171cf_cv_1UL="1" 14172test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U" 14173test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L" 14174 14175if test $NCURSES_MMASK_T = auto ; then 14176 cf_cv_typeof_mmask_t=long 14177else 14178 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T 14179fi 14180test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t="" 14181 14182### Checks for external-data 14183 14184echo "$as_me:14184: checking if external errno is declared" >&5 14185echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6 14186if test "${cf_cv_dcl_errno+set}" = set; then 14187 echo $ECHO_N "(cached) $ECHO_C" >&6 14188else 14189 14190 cat >conftest.$ac_ext <<_ACEOF 14191#line 14191 "configure" 14192#include "confdefs.h" 14193 14194#ifdef HAVE_STDLIB_H 14195#include <stdlib.h> 14196#endif 14197#include <stdio.h> 14198#include <sys/types.h> 14199#include <errno.h> 14200int 14201main () 14202{ 14203int x = (int) errno 14204 ; 14205 return 0; 14206} 14207_ACEOF 14208rm -f conftest.$ac_objext 14209if { (eval echo "$as_me:14209: \"$ac_compile\"") >&5 14210 (eval $ac_compile) 2>&5 14211 ac_status=$? 14212 echo "$as_me:14212: \$? = $ac_status" >&5 14213 (exit $ac_status); } && 14214 { ac_try='test -s conftest.$ac_objext' 14215 { (eval echo "$as_me:14215: \"$ac_try\"") >&5 14216 (eval $ac_try) 2>&5 14217 ac_status=$? 14218 echo "$as_me:14218: \$? = $ac_status" >&5 14219 (exit $ac_status); }; }; then 14220 cf_cv_dcl_errno=yes 14221else 14222 echo "$as_me: failed program was:" >&5 14223cat conftest.$ac_ext >&5 14224cf_cv_dcl_errno=no 14225fi 14226rm -f conftest.$ac_objext conftest.$ac_ext 14227 14228fi 14229echo "$as_me:14229: result: $cf_cv_dcl_errno" >&5 14230echo "${ECHO_T}$cf_cv_dcl_errno" >&6 14231 14232if test "$cf_cv_dcl_errno" = no ; then 14233 14234cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 14235 14236 cat >>confdefs.h <<EOF 14237#define $cf_result 1 14238EOF 14239 14240fi 14241 14242# It's possible (for near-UNIX clones) that the data doesn't exist 14243 14244echo "$as_me:14244: checking if external errno exists" >&5 14245echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6 14246if test "${cf_cv_have_errno+set}" = set; then 14247 echo $ECHO_N "(cached) $ECHO_C" >&6 14248else 14249 14250 cat >conftest.$ac_ext <<_ACEOF 14251#line 14251 "configure" 14252#include "confdefs.h" 14253 14254#undef errno 14255extern int errno; 14256 14257int 14258main () 14259{ 14260errno = 2 14261 ; 14262 return 0; 14263} 14264_ACEOF 14265rm -f conftest.$ac_objext conftest$ac_exeext 14266if { (eval echo "$as_me:14266: \"$ac_link\"") >&5 14267 (eval $ac_link) 2>&5 14268 ac_status=$? 14269 echo "$as_me:14269: \$? = $ac_status" >&5 14270 (exit $ac_status); } && 14271 { ac_try='test -s conftest$ac_exeext' 14272 { (eval echo "$as_me:14272: \"$ac_try\"") >&5 14273 (eval $ac_try) 2>&5 14274 ac_status=$? 14275 echo "$as_me:14275: \$? = $ac_status" >&5 14276 (exit $ac_status); }; }; then 14277 cf_cv_have_errno=yes 14278else 14279 echo "$as_me: failed program was:" >&5 14280cat conftest.$ac_ext >&5 14281cf_cv_have_errno=no 14282fi 14283rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14284 14285fi 14286echo "$as_me:14286: result: $cf_cv_have_errno" >&5 14287echo "${ECHO_T}$cf_cv_have_errno" >&6 14288 14289if test "$cf_cv_have_errno" = yes ; then 14290 14291cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 14292 14293 cat >>confdefs.h <<EOF 14294#define $cf_result 1 14295EOF 14296 14297fi 14298 14299echo "$as_me:14299: checking if data-only library module links" >&5 14300echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6 14301if test "${cf_cv_link_dataonly+set}" = set; then 14302 echo $ECHO_N "(cached) $ECHO_C" >&6 14303else 14304 14305 rm -f conftest.a 14306 cat >conftest.$ac_ext <<EOF 14307#line 14307 "configure" 14308int testdata[3] = { 123, 456, 789 }; 14309EOF 14310 if { (eval echo "$as_me:14310: \"$ac_compile\"") >&5 14311 (eval $ac_compile) 2>&5 14312 ac_status=$? 14313 echo "$as_me:14313: \$? = $ac_status" >&5 14314 (exit $ac_status); } ; then 14315 mv conftest.o data.o && \ 14316 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null 14317 fi 14318 rm -f conftest.$ac_ext data.o 14319 cat >conftest.$ac_ext <<EOF 14320#line 14320 "configure" 14321int testfunc() 14322{ 14323#if defined(NeXT) 14324 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */ 14325#else 14326 extern int testdata[3]; 14327 return testdata[0] == 123 14328 && testdata[1] == 456 14329 && testdata[2] == 789; 14330#endif 14331} 14332EOF 14333 if { (eval echo "$as_me:14333: \"$ac_compile\"") >&5 14334 (eval $ac_compile) 2>&5 14335 ac_status=$? 14336 echo "$as_me:14336: \$? = $ac_status" >&5 14337 (exit $ac_status); }; then 14338 mv conftest.o func.o && \ 14339 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null 14340 fi 14341 rm -f conftest.$ac_ext func.o 14342 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null 14343 cf_saveLIBS="$LIBS" 14344 LIBS="conftest.a $LIBS" 14345 if test "$cross_compiling" = yes; then 14346 cf_cv_link_dataonly=unknown 14347else 14348 cat >conftest.$ac_ext <<_ACEOF 14349#line 14349 "configure" 14350#include "confdefs.h" 14351 14352 int main() 14353 { 14354 extern int testfunc(); 14355 ${cf_cv_main_return:-return} (!testfunc()); 14356 } 14357 14358_ACEOF 14359rm -f conftest$ac_exeext 14360if { (eval echo "$as_me:14360: \"$ac_link\"") >&5 14361 (eval $ac_link) 2>&5 14362 ac_status=$? 14363 echo "$as_me:14363: \$? = $ac_status" >&5 14364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14365 { (eval echo "$as_me:14365: \"$ac_try\"") >&5 14366 (eval $ac_try) 2>&5 14367 ac_status=$? 14368 echo "$as_me:14368: \$? = $ac_status" >&5 14369 (exit $ac_status); }; }; then 14370 cf_cv_link_dataonly=yes 14371else 14372 echo "$as_me: program exited with status $ac_status" >&5 14373echo "$as_me: failed program was:" >&5 14374cat conftest.$ac_ext >&5 14375cf_cv_link_dataonly=no 14376fi 14377rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14378fi 14379 LIBS="$cf_saveLIBS" 14380 14381fi 14382 14383echo "$as_me:14383: result: $cf_cv_link_dataonly" >&5 14384echo "${ECHO_T}$cf_cv_link_dataonly" >&6 14385 14386if test "$cf_cv_link_dataonly" = no ; then 14387 cat >>confdefs.h <<\EOF 14388#define BROKEN_LINKER 1 14389EOF 14390 14391 BROKEN_LINKER=1 14392fi 14393 14394### Checks for library functions. 14395 14396for ac_func in \ 14397getcwd \ 14398getegid \ 14399geteuid \ 14400getttynam \ 14401issetugid \ 14402poll \ 14403remove \ 14404select \ 14405setbuf \ 14406setbuffer \ 14407setvbuf \ 14408sigaction \ 14409sigvec \ 14410strdup \ 14411strstr \ 14412tcgetpgrp \ 14413times \ 14414vsnprintf \ 14415 14416do 14417as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14418echo "$as_me:14418: checking for $ac_func" >&5 14419echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 14420if eval "test \"\${$as_ac_var+set}\" = set"; then 14421 echo $ECHO_N "(cached) $ECHO_C" >&6 14422else 14423 cat >conftest.$ac_ext <<_ACEOF 14424#line 14424 "configure" 14425#include "confdefs.h" 14426/* System header to define __stub macros and hopefully few prototypes, 14427 which can conflict with char $ac_func (); below. */ 14428#include <assert.h> 14429/* Override any gcc2 internal prototype to avoid an error. */ 14430#ifdef __cplusplus 14431extern "C" 14432#endif 14433/* We use char because int might match the return type of a gcc2 14434 builtin and then its argument prototype would still apply. */ 14435char $ac_func (); 14436char (*f) (); 14437 14438int 14439main () 14440{ 14441/* The GNU C library defines this for functions which it implements 14442 to always fail with ENOSYS. Some functions are actually named 14443 something starting with __ and the normal name is an alias. */ 14444#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14445choke me 14446#else 14447f = $ac_func; 14448#endif 14449 14450 ; 14451 return 0; 14452} 14453_ACEOF 14454rm -f conftest.$ac_objext conftest$ac_exeext 14455if { (eval echo "$as_me:14455: \"$ac_link\"") >&5 14456 (eval $ac_link) 2>&5 14457 ac_status=$? 14458 echo "$as_me:14458: \$? = $ac_status" >&5 14459 (exit $ac_status); } && 14460 { ac_try='test -s conftest$ac_exeext' 14461 { (eval echo "$as_me:14461: \"$ac_try\"") >&5 14462 (eval $ac_try) 2>&5 14463 ac_status=$? 14464 echo "$as_me:14464: \$? = $ac_status" >&5 14465 (exit $ac_status); }; }; then 14466 eval "$as_ac_var=yes" 14467else 14468 echo "$as_me: failed program was:" >&5 14469cat conftest.$ac_ext >&5 14470eval "$as_ac_var=no" 14471fi 14472rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14473fi 14474echo "$as_me:14474: result: `eval echo '${'$as_ac_var'}'`" >&5 14475echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 14476if test `eval echo '${'$as_ac_var'}'` = yes; then 14477 cat >>confdefs.h <<EOF 14478#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14479EOF 14480 14481fi 14482done 14483 14484if test "$with_getcap" = "yes" ; then 14485 14486echo "$as_me:14486: checking for terminal-capability database functions" >&5 14487echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6 14488if test "${cf_cv_cgetent+set}" = set; then 14489 echo $ECHO_N "(cached) $ECHO_C" >&6 14490else 14491 14492cat >conftest.$ac_ext <<_ACEOF 14493#line 14493 "configure" 14494#include "confdefs.h" 14495 14496#include <stdlib.h> 14497int 14498main () 14499{ 14500 14501 char temp[128]; 14502 char *buf = temp; 14503 char *db_array = temp; 14504 cgetent(&buf, /* int *, */ &db_array, "vt100"); 14505 cgetcap(buf, "tc", '='); 14506 cgetmatch(buf, "tc"); 14507 14508 ; 14509 return 0; 14510} 14511_ACEOF 14512rm -f conftest.$ac_objext conftest$ac_exeext 14513if { (eval echo "$as_me:14513: \"$ac_link\"") >&5 14514 (eval $ac_link) 2>&5 14515 ac_status=$? 14516 echo "$as_me:14516: \$? = $ac_status" >&5 14517 (exit $ac_status); } && 14518 { ac_try='test -s conftest$ac_exeext' 14519 { (eval echo "$as_me:14519: \"$ac_try\"") >&5 14520 (eval $ac_try) 2>&5 14521 ac_status=$? 14522 echo "$as_me:14522: \$? = $ac_status" >&5 14523 (exit $ac_status); }; }; then 14524 cf_cv_cgetent=yes 14525else 14526 echo "$as_me: failed program was:" >&5 14527cat conftest.$ac_ext >&5 14528cf_cv_cgetent=no 14529fi 14530rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14531 14532fi 14533 14534echo "$as_me:14534: result: $cf_cv_cgetent" >&5 14535echo "${ECHO_T}$cf_cv_cgetent" >&6 14536test "$cf_cv_cgetent" = yes && cat >>confdefs.h <<\EOF 14537#define HAVE_BSD_CGETENT 1 14538EOF 14539 14540fi 14541 14542echo "$as_me:14542: checking for isascii" >&5 14543echo $ECHO_N "checking for isascii... $ECHO_C" >&6 14544if test "${cf_cv_have_isascii+set}" = set; then 14545 echo $ECHO_N "(cached) $ECHO_C" >&6 14546else 14547 14548 cat >conftest.$ac_ext <<_ACEOF 14549#line 14549 "configure" 14550#include "confdefs.h" 14551#include <ctype.h> 14552int 14553main () 14554{ 14555int x = isascii(' ') 14556 ; 14557 return 0; 14558} 14559_ACEOF 14560rm -f conftest.$ac_objext conftest$ac_exeext 14561if { (eval echo "$as_me:14561: \"$ac_link\"") >&5 14562 (eval $ac_link) 2>&5 14563 ac_status=$? 14564 echo "$as_me:14564: \$? = $ac_status" >&5 14565 (exit $ac_status); } && 14566 { ac_try='test -s conftest$ac_exeext' 14567 { (eval echo "$as_me:14567: \"$ac_try\"") >&5 14568 (eval $ac_try) 2>&5 14569 ac_status=$? 14570 echo "$as_me:14570: \$? = $ac_status" >&5 14571 (exit $ac_status); }; }; then 14572 cf_cv_have_isascii=yes 14573else 14574 echo "$as_me: failed program was:" >&5 14575cat conftest.$ac_ext >&5 14576cf_cv_have_isascii=no 14577fi 14578rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14579 14580fi 14581echo "$as_me:14581: result: $cf_cv_have_isascii" >&5 14582echo "${ECHO_T}$cf_cv_have_isascii" >&6 14583test "$cf_cv_have_isascii" = yes && cat >>confdefs.h <<\EOF 14584#define HAVE_ISASCII 1 14585EOF 14586 14587if test "$ac_cv_func_sigaction" = yes; then 14588echo "$as_me:14588: checking whether sigaction needs _POSIX_SOURCE" >&5 14589echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6 14590cat >conftest.$ac_ext <<_ACEOF 14591#line 14591 "configure" 14592#include "confdefs.h" 14593 14594#include <sys/types.h> 14595#include <signal.h> 14596int 14597main () 14598{ 14599struct sigaction act 14600 ; 14601 return 0; 14602} 14603_ACEOF 14604rm -f conftest.$ac_objext 14605if { (eval echo "$as_me:14605: \"$ac_compile\"") >&5 14606 (eval $ac_compile) 2>&5 14607 ac_status=$? 14608 echo "$as_me:14608: \$? = $ac_status" >&5 14609 (exit $ac_status); } && 14610 { ac_try='test -s conftest.$ac_objext' 14611 { (eval echo "$as_me:14611: \"$ac_try\"") >&5 14612 (eval $ac_try) 2>&5 14613 ac_status=$? 14614 echo "$as_me:14614: \$? = $ac_status" >&5 14615 (exit $ac_status); }; }; then 14616 sigact_bad=no 14617else 14618 echo "$as_me: failed program was:" >&5 14619cat conftest.$ac_ext >&5 14620 14621cat >conftest.$ac_ext <<_ACEOF 14622#line 14622 "configure" 14623#include "confdefs.h" 14624 14625#define _POSIX_SOURCE 14626#include <sys/types.h> 14627#include <signal.h> 14628int 14629main () 14630{ 14631struct sigaction act 14632 ; 14633 return 0; 14634} 14635_ACEOF 14636rm -f conftest.$ac_objext 14637if { (eval echo "$as_me:14637: \"$ac_compile\"") >&5 14638 (eval $ac_compile) 2>&5 14639 ac_status=$? 14640 echo "$as_me:14640: \$? = $ac_status" >&5 14641 (exit $ac_status); } && 14642 { ac_try='test -s conftest.$ac_objext' 14643 { (eval echo "$as_me:14643: \"$ac_try\"") >&5 14644 (eval $ac_try) 2>&5 14645 ac_status=$? 14646 echo "$as_me:14646: \$? = $ac_status" >&5 14647 (exit $ac_status); }; }; then 14648 sigact_bad=yes 14649 cat >>confdefs.h <<\EOF 14650#define SVR4_ACTION 1 14651EOF 14652 14653else 14654 echo "$as_me: failed program was:" >&5 14655cat conftest.$ac_ext >&5 14656sigact_bad=unknown 14657fi 14658rm -f conftest.$ac_objext conftest.$ac_ext 14659fi 14660rm -f conftest.$ac_objext conftest.$ac_ext 14661echo "$as_me:14661: result: $sigact_bad" >&5 14662echo "${ECHO_T}$sigact_bad" >&6 14663fi 14664 14665echo "$as_me:14665: checking if nanosleep really works" >&5 14666echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6 14667if test "${cf_cv_func_nanosleep+set}" = set; then 14668 echo $ECHO_N "(cached) $ECHO_C" >&6 14669else 14670 14671if test "$cross_compiling" = yes; then 14672 cf_cv_func_nanosleep=unknown 14673else 14674 cat >conftest.$ac_ext <<_ACEOF 14675#line 14675 "configure" 14676#include "confdefs.h" 14677 14678#include <stdio.h> 14679#include <errno.h> 14680#include <time.h> 14681 14682#ifdef HAVE_SYS_TIME_H 14683#include <sys/time.h> 14684#endif 14685 14686int main() { 14687 struct timespec ts1, ts2; 14688 int code; 14689 ts1.tv_sec = 0; 14690 ts1.tv_nsec = 750000000; 14691 ts2.tv_sec = 0; 14692 ts2.tv_nsec = 0; 14693 errno = 0; 14694 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */ 14695 ${cf_cv_main_return:-return}(code != 0); 14696} 14697 14698_ACEOF 14699rm -f conftest$ac_exeext 14700if { (eval echo "$as_me:14700: \"$ac_link\"") >&5 14701 (eval $ac_link) 2>&5 14702 ac_status=$? 14703 echo "$as_me:14703: \$? = $ac_status" >&5 14704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14705 { (eval echo "$as_me:14705: \"$ac_try\"") >&5 14706 (eval $ac_try) 2>&5 14707 ac_status=$? 14708 echo "$as_me:14708: \$? = $ac_status" >&5 14709 (exit $ac_status); }; }; then 14710 cf_cv_func_nanosleep=yes 14711else 14712 echo "$as_me: program exited with status $ac_status" >&5 14713echo "$as_me: failed program was:" >&5 14714cat conftest.$ac_ext >&5 14715cf_cv_func_nanosleep=no 14716fi 14717rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14718fi 14719fi 14720echo "$as_me:14720: result: $cf_cv_func_nanosleep" >&5 14721echo "${ECHO_T}$cf_cv_func_nanosleep" >&6 14722 14723test "$cf_cv_func_nanosleep" = "yes" && cat >>confdefs.h <<\EOF 14724#define HAVE_NANOSLEEP 1 14725EOF 14726 14727for ac_header in \ 14728termio.h \ 14729termios.h \ 14730unistd.h \ 14731 14732do 14733as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14734echo "$as_me:14734: checking for $ac_header" >&5 14735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 14736if eval "test \"\${$as_ac_Header+set}\" = set"; then 14737 echo $ECHO_N "(cached) $ECHO_C" >&6 14738else 14739 cat >conftest.$ac_ext <<_ACEOF 14740#line 14740 "configure" 14741#include "confdefs.h" 14742#include <$ac_header> 14743_ACEOF 14744if { (eval echo "$as_me:14744: \"$ac_cpp conftest.$ac_ext\"") >&5 14745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 14746 ac_status=$? 14747 egrep -v '^ *\+' conftest.er1 >conftest.err 14748 rm -f conftest.er1 14749 cat conftest.err >&5 14750 echo "$as_me:14750: \$? = $ac_status" >&5 14751 (exit $ac_status); } >/dev/null; then 14752 if test -s conftest.err; then 14753 ac_cpp_err=$ac_c_preproc_warn_flag 14754 else 14755 ac_cpp_err= 14756 fi 14757else 14758 ac_cpp_err=yes 14759fi 14760if test -z "$ac_cpp_err"; then 14761 eval "$as_ac_Header=yes" 14762else 14763 echo "$as_me: failed program was:" >&5 14764 cat conftest.$ac_ext >&5 14765 eval "$as_ac_Header=no" 14766fi 14767rm -f conftest.err conftest.$ac_ext 14768fi 14769echo "$as_me:14769: result: `eval echo '${'$as_ac_Header'}'`" >&5 14770echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 14771if test `eval echo '${'$as_ac_Header'}'` = yes; then 14772 cat >>confdefs.h <<EOF 14773#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14774EOF 14775 14776fi 14777done 14778 14779if test "$ISC" = yes ; then 14780 14781for ac_header in sys/termio.h 14782do 14783as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14784echo "$as_me:14784: checking for $ac_header" >&5 14785echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 14786if eval "test \"\${$as_ac_Header+set}\" = set"; then 14787 echo $ECHO_N "(cached) $ECHO_C" >&6 14788else 14789 cat >conftest.$ac_ext <<_ACEOF 14790#line 14790 "configure" 14791#include "confdefs.h" 14792#include <$ac_header> 14793_ACEOF 14794if { (eval echo "$as_me:14794: \"$ac_cpp conftest.$ac_ext\"") >&5 14795 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 14796 ac_status=$? 14797 egrep -v '^ *\+' conftest.er1 >conftest.err 14798 rm -f conftest.er1 14799 cat conftest.err >&5 14800 echo "$as_me:14800: \$? = $ac_status" >&5 14801 (exit $ac_status); } >/dev/null; then 14802 if test -s conftest.err; then 14803 ac_cpp_err=$ac_c_preproc_warn_flag 14804 else 14805 ac_cpp_err= 14806 fi 14807else 14808 ac_cpp_err=yes 14809fi 14810if test -z "$ac_cpp_err"; then 14811 eval "$as_ac_Header=yes" 14812else 14813 echo "$as_me: failed program was:" >&5 14814 cat conftest.$ac_ext >&5 14815 eval "$as_ac_Header=no" 14816fi 14817rm -f conftest.err conftest.$ac_ext 14818fi 14819echo "$as_me:14819: result: `eval echo '${'$as_ac_Header'}'`" >&5 14820echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 14821if test `eval echo '${'$as_ac_Header'}'` = yes; then 14822 cat >>confdefs.h <<EOF 14823#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14824EOF 14825 14826fi 14827done 14828 14829fi 14830if test "$ac_cv_header_termios_h" = yes ; then 14831 case "$CFLAGS $CPPFLAGS" in 14832 *-D_POSIX_SOURCE*) 14833 termios_bad=dunno ;; 14834 *) termios_bad=maybe ;; 14835 esac 14836 if test "$termios_bad" = maybe ; then 14837 echo "$as_me:14837: checking whether termios.h needs _POSIX_SOURCE" >&5 14838echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6 14839 cat >conftest.$ac_ext <<_ACEOF 14840#line 14840 "configure" 14841#include "confdefs.h" 14842#include <termios.h> 14843int 14844main () 14845{ 14846struct termios foo; int x = foo.c_iflag 14847 ; 14848 return 0; 14849} 14850_ACEOF 14851rm -f conftest.$ac_objext 14852if { (eval echo "$as_me:14852: \"$ac_compile\"") >&5 14853 (eval $ac_compile) 2>&5 14854 ac_status=$? 14855 echo "$as_me:14855: \$? = $ac_status" >&5 14856 (exit $ac_status); } && 14857 { ac_try='test -s conftest.$ac_objext' 14858 { (eval echo "$as_me:14858: \"$ac_try\"") >&5 14859 (eval $ac_try) 2>&5 14860 ac_status=$? 14861 echo "$as_me:14861: \$? = $ac_status" >&5 14862 (exit $ac_status); }; }; then 14863 termios_bad=no 14864else 14865 echo "$as_me: failed program was:" >&5 14866cat conftest.$ac_ext >&5 14867 14868 cat >conftest.$ac_ext <<_ACEOF 14869#line 14869 "configure" 14870#include "confdefs.h" 14871 14872#define _POSIX_SOURCE 14873#include <termios.h> 14874int 14875main () 14876{ 14877struct termios foo; int x = foo.c_iflag 14878 ; 14879 return 0; 14880} 14881_ACEOF 14882rm -f conftest.$ac_objext 14883if { (eval echo "$as_me:14883: \"$ac_compile\"") >&5 14884 (eval $ac_compile) 2>&5 14885 ac_status=$? 14886 echo "$as_me:14886: \$? = $ac_status" >&5 14887 (exit $ac_status); } && 14888 { ac_try='test -s conftest.$ac_objext' 14889 { (eval echo "$as_me:14889: \"$ac_try\"") >&5 14890 (eval $ac_try) 2>&5 14891 ac_status=$? 14892 echo "$as_me:14892: \$? = $ac_status" >&5 14893 (exit $ac_status); }; }; then 14894 termios_bad=unknown 14895else 14896 echo "$as_me: failed program was:" >&5 14897cat conftest.$ac_ext >&5 14898termios_bad=yes cat >>confdefs.h <<\EOF 14899#define SVR4_TERMIO 1 14900EOF 14901 14902fi 14903rm -f conftest.$ac_objext conftest.$ac_ext 14904 14905fi 14906rm -f conftest.$ac_objext conftest.$ac_ext 14907 echo "$as_me:14907: result: $termios_bad" >&5 14908echo "${ECHO_T}$termios_bad" >&6 14909 fi 14910fi 14911 14912echo "$as_me:14912: checking for tcgetattr" >&5 14913echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6 14914if test "${cf_cv_have_tcgetattr+set}" = set; then 14915 echo $ECHO_N "(cached) $ECHO_C" >&6 14916else 14917 14918cat >conftest.$ac_ext <<_ACEOF 14919#line 14919 "configure" 14920#include "confdefs.h" 14921 14922#include <sys/types.h> 14923#ifdef HAVE_UNISTD_H 14924#include <unistd.h> 14925#endif 14926#ifdef HAVE_TERMIOS_H 14927#include <termios.h> 14928#define TTY struct termios 14929#else 14930#ifdef HAVE_TERMIO_H 14931#include <termio.h> 14932#define TTY struct termio 14933#endif 14934#endif 14935 14936int 14937main () 14938{ 14939 14940TTY foo; 14941tcgetattr(1, &foo); 14942 ; 14943 return 0; 14944} 14945_ACEOF 14946rm -f conftest.$ac_objext conftest$ac_exeext 14947if { (eval echo "$as_me:14947: \"$ac_link\"") >&5 14948 (eval $ac_link) 2>&5 14949 ac_status=$? 14950 echo "$as_me:14950: \$? = $ac_status" >&5 14951 (exit $ac_status); } && 14952 { ac_try='test -s conftest$ac_exeext' 14953 { (eval echo "$as_me:14953: \"$ac_try\"") >&5 14954 (eval $ac_try) 2>&5 14955 ac_status=$? 14956 echo "$as_me:14956: \$? = $ac_status" >&5 14957 (exit $ac_status); }; }; then 14958 cf_cv_have_tcgetattr=yes 14959else 14960 echo "$as_me: failed program was:" >&5 14961cat conftest.$ac_ext >&5 14962cf_cv_have_tcgetattr=no 14963fi 14964rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14965fi 14966echo "$as_me:14966: result: $cf_cv_have_tcgetattr" >&5 14967echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6 14968test "$cf_cv_have_tcgetattr" = yes && cat >>confdefs.h <<\EOF 14969#define HAVE_TCGETATTR 1 14970EOF 14971 14972echo "$as_me:14972: checking for vsscanf function or workaround" >&5 14973echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6 14974if test "${cf_cv_func_vsscanf+set}" = set; then 14975 echo $ECHO_N "(cached) $ECHO_C" >&6 14976else 14977 14978cat >conftest.$ac_ext <<_ACEOF 14979#line 14979 "configure" 14980#include "confdefs.h" 14981 14982#include <stdarg.h> 14983#include <stdio.h> 14984int 14985main () 14986{ 14987 14988 va_list ap; 14989 vsscanf("from", "%d", ap) 14990 ; 14991 return 0; 14992} 14993_ACEOF 14994rm -f conftest.$ac_objext conftest$ac_exeext 14995if { (eval echo "$as_me:14995: \"$ac_link\"") >&5 14996 (eval $ac_link) 2>&5 14997 ac_status=$? 14998 echo "$as_me:14998: \$? = $ac_status" >&5 14999 (exit $ac_status); } && 15000 { ac_try='test -s conftest$ac_exeext' 15001 { (eval echo "$as_me:15001: \"$ac_try\"") >&5 15002 (eval $ac_try) 2>&5 15003 ac_status=$? 15004 echo "$as_me:15004: \$? = $ac_status" >&5 15005 (exit $ac_status); }; }; then 15006 cf_cv_func_vsscanf=vsscanf 15007else 15008 echo "$as_me: failed program was:" >&5 15009cat conftest.$ac_ext >&5 15010 15011cat >conftest.$ac_ext <<_ACEOF 15012#line 15012 "configure" 15013#include "confdefs.h" 15014 15015#include <stdarg.h> 15016#include <stdio.h> 15017int 15018main () 15019{ 15020 15021 FILE strbuf; 15022 char *str = "from"; 15023 15024 strbuf._flag = _IOREAD; 15025 strbuf._ptr = strbuf._base = (unsigned char *) str; 15026 strbuf._cnt = strlen(str); 15027 strbuf._file = _NFILE; 15028 return (vfscanf(&strbuf, "%d", ap)) 15029 ; 15030 return 0; 15031} 15032_ACEOF 15033rm -f conftest.$ac_objext conftest$ac_exeext 15034if { (eval echo "$as_me:15034: \"$ac_link\"") >&5 15035 (eval $ac_link) 2>&5 15036 ac_status=$? 15037 echo "$as_me:15037: \$? = $ac_status" >&5 15038 (exit $ac_status); } && 15039 { ac_try='test -s conftest$ac_exeext' 15040 { (eval echo "$as_me:15040: \"$ac_try\"") >&5 15041 (eval $ac_try) 2>&5 15042 ac_status=$? 15043 echo "$as_me:15043: \$? = $ac_status" >&5 15044 (exit $ac_status); }; }; then 15045 cf_cv_func_vsscanf=vfscanf 15046else 15047 echo "$as_me: failed program was:" >&5 15048cat conftest.$ac_ext >&5 15049 15050cat >conftest.$ac_ext <<_ACEOF 15051#line 15051 "configure" 15052#include "confdefs.h" 15053 15054#include <stdarg.h> 15055#include <stdio.h> 15056int 15057main () 15058{ 15059 15060 FILE strbuf; 15061 char *str = "from"; 15062 15063 strbuf._flag = _IOREAD; 15064 strbuf._ptr = strbuf._base = (unsigned char *) str; 15065 strbuf._cnt = strlen(str); 15066 strbuf._file = _NFILE; 15067 return (_doscan(&strbuf, "%d", ap)) 15068 ; 15069 return 0; 15070} 15071_ACEOF 15072rm -f conftest.$ac_objext conftest$ac_exeext 15073if { (eval echo "$as_me:15073: \"$ac_link\"") >&5 15074 (eval $ac_link) 2>&5 15075 ac_status=$? 15076 echo "$as_me:15076: \$? = $ac_status" >&5 15077 (exit $ac_status); } && 15078 { ac_try='test -s conftest$ac_exeext' 15079 { (eval echo "$as_me:15079: \"$ac_try\"") >&5 15080 (eval $ac_try) 2>&5 15081 ac_status=$? 15082 echo "$as_me:15082: \$? = $ac_status" >&5 15083 (exit $ac_status); }; }; then 15084 cf_cv_func_vsscanf=_doscan 15085else 15086 echo "$as_me: failed program was:" >&5 15087cat conftest.$ac_ext >&5 15088 15089cf_cv_func_vsscanf=no 15090fi 15091rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15092fi 15093rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15094fi 15095rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15096fi 15097echo "$as_me:15097: result: $cf_cv_func_vsscanf" >&5 15098echo "${ECHO_T}$cf_cv_func_vsscanf" >&6 15099 15100case $cf_cv_func_vsscanf in #(vi 15101vsscanf) cat >>confdefs.h <<\EOF 15102#define HAVE_VSSCANF 1 15103EOF 15104;; #(vi 15105vfscanf) cat >>confdefs.h <<\EOF 15106#define HAVE_VFSCANF 1 15107EOF 15108;; #(vi 15109_doscan) cat >>confdefs.h <<\EOF 15110#define HAVE__DOSCAN 1 15111EOF 15112;; 15113esac 15114 15115echo "$as_me:15115: checking for working mkstemp" >&5 15116echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6 15117if test "${cf_cv_func_mkstemp+set}" = set; then 15118 echo $ECHO_N "(cached) $ECHO_C" >&6 15119else 15120 15121rm -rf conftest* 15122if test "$cross_compiling" = yes; then 15123 echo "$as_me:15123: checking for mkstemp" >&5 15124echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6 15125if test "${ac_cv_func_mkstemp+set}" = set; then 15126 echo $ECHO_N "(cached) $ECHO_C" >&6 15127else 15128 cat >conftest.$ac_ext <<_ACEOF 15129#line 15129 "configure" 15130#include "confdefs.h" 15131/* System header to define __stub macros and hopefully few prototypes, 15132 which can conflict with char mkstemp (); below. */ 15133#include <assert.h> 15134/* Override any gcc2 internal prototype to avoid an error. */ 15135#ifdef __cplusplus 15136extern "C" 15137#endif 15138/* We use char because int might match the return type of a gcc2 15139 builtin and then its argument prototype would still apply. */ 15140char mkstemp (); 15141char (*f) (); 15142 15143int 15144main () 15145{ 15146/* The GNU C library defines this for functions which it implements 15147 to always fail with ENOSYS. Some functions are actually named 15148 something starting with __ and the normal name is an alias. */ 15149#if defined (__stub_mkstemp) || defined (__stub___mkstemp) 15150choke me 15151#else 15152f = mkstemp; 15153#endif 15154 15155 ; 15156 return 0; 15157} 15158_ACEOF 15159rm -f conftest.$ac_objext conftest$ac_exeext 15160if { (eval echo "$as_me:15160: \"$ac_link\"") >&5 15161 (eval $ac_link) 2>&5 15162 ac_status=$? 15163 echo "$as_me:15163: \$? = $ac_status" >&5 15164 (exit $ac_status); } && 15165 { ac_try='test -s conftest$ac_exeext' 15166 { (eval echo "$as_me:15166: \"$ac_try\"") >&5 15167 (eval $ac_try) 2>&5 15168 ac_status=$? 15169 echo "$as_me:15169: \$? = $ac_status" >&5 15170 (exit $ac_status); }; }; then 15171 ac_cv_func_mkstemp=yes 15172else 15173 echo "$as_me: failed program was:" >&5 15174cat conftest.$ac_ext >&5 15175ac_cv_func_mkstemp=no 15176fi 15177rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15178fi 15179echo "$as_me:15179: result: $ac_cv_func_mkstemp" >&5 15180echo "${ECHO_T}$ac_cv_func_mkstemp" >&6 15181 15182else 15183 cat >conftest.$ac_ext <<_ACEOF 15184#line 15184 "configure" 15185#include "confdefs.h" 15186 15187#include <sys/types.h> 15188#include <stdlib.h> 15189#include <stdio.h> 15190#include <string.h> 15191#include <sys/stat.h> 15192int main() 15193{ 15194 char *tmpl = "conftestXXXXXX"; 15195 char name[2][80]; 15196 int n; 15197 int result = 0; 15198 int fd; 15199 struct stat sb; 15200 15201 umask(077); 15202 for (n = 0; n < 2; ++n) { 15203 strcpy(name[n], tmpl); 15204 if ((fd = mkstemp(name[n])) >= 0) { 15205 if (!strcmp(name[n], tmpl) 15206 || stat(name[n], &sb) != 0 15207 || (sb.st_mode & S_IFMT) != S_IFREG 15208 || (sb.st_mode & 077) != 0) { 15209 result = 1; 15210 } 15211 close(fd); 15212 } 15213 } 15214 if (result == 0 15215 && !strcmp(name[0], name[1])) 15216 result = 1; 15217 ${cf_cv_main_return:-return}(result); 15218} 15219 15220_ACEOF 15221rm -f conftest$ac_exeext 15222if { (eval echo "$as_me:15222: \"$ac_link\"") >&5 15223 (eval $ac_link) 2>&5 15224 ac_status=$? 15225 echo "$as_me:15225: \$? = $ac_status" >&5 15226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15227 { (eval echo "$as_me:15227: \"$ac_try\"") >&5 15228 (eval $ac_try) 2>&5 15229 ac_status=$? 15230 echo "$as_me:15230: \$? = $ac_status" >&5 15231 (exit $ac_status); }; }; then 15232 cf_cv_func_mkstemp=yes 15233 15234else 15235 echo "$as_me: program exited with status $ac_status" >&5 15236echo "$as_me: failed program was:" >&5 15237cat conftest.$ac_ext >&5 15238cf_cv_func_mkstemp=no 15239 15240fi 15241rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15242fi 15243 15244fi 15245echo "$as_me:15245: result: $cf_cv_func_mkstemp" >&5 15246echo "${ECHO_T}$cf_cv_func_mkstemp" >&6 15247if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then 15248 cat >>confdefs.h <<\EOF 15249#define HAVE_MKSTEMP 1 15250EOF 15251 15252fi 15253 15254# setup for prototype of fallback for vsscanf() 15255 15256if test "$cf_cv_func_vsscanf" = vsscanf ; then 15257 HAVE_VSSCANF=1 15258else 15259 HAVE_VSSCANF=0 15260fi 15261 15262if test "$cross_compiling" = yes ; then 15263 { echo "$as_me:15263: WARNING: cross compiling: assume setvbuf params not reversed" >&5 15264echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;} 15265else 15266 echo "$as_me:15266: checking whether setvbuf arguments are reversed" >&5 15267echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6 15268if test "${ac_cv_func_setvbuf_reversed+set}" = set; then 15269 echo $ECHO_N "(cached) $ECHO_C" >&6 15270else 15271 if test "$cross_compiling" = yes; then 15272 { { echo "$as_me:15272: error: cannot run test program while cross compiling" >&5 15273echo "$as_me: error: cannot run test program while cross compiling" >&2;} 15274 { (exit 1); exit 1; }; } 15275else 15276 cat >conftest.$ac_ext <<_ACEOF 15277#line 15277 "configure" 15278#include "confdefs.h" 15279#include <stdio.h> 15280/* If setvbuf has the reversed format, exit 0. */ 15281int 15282main () 15283{ 15284 /* This call has the arguments reversed. 15285 A reversed system may check and see that the address of main 15286 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */ 15287 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0) 15288 $ac_main_return(1); 15289 putc('\r', stdout); 15290 $ac_main_return(0); /* Non-reversed systems segv here. */ 15291} 15292_ACEOF 15293rm -f conftest$ac_exeext 15294if { (eval echo "$as_me:15294: \"$ac_link\"") >&5 15295 (eval $ac_link) 2>&5 15296 ac_status=$? 15297 echo "$as_me:15297: \$? = $ac_status" >&5 15298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15299 { (eval echo "$as_me:15299: \"$ac_try\"") >&5 15300 (eval $ac_try) 2>&5 15301 ac_status=$? 15302 echo "$as_me:15302: \$? = $ac_status" >&5 15303 (exit $ac_status); }; }; then 15304 ac_cv_func_setvbuf_reversed=yes 15305else 15306 echo "$as_me: program exited with status $ac_status" >&5 15307echo "$as_me: failed program was:" >&5 15308cat conftest.$ac_ext >&5 15309ac_cv_func_setvbuf_reversed=no 15310fi 15311rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15312fi 15313rm -f core core.* *.core 15314fi 15315echo "$as_me:15315: result: $ac_cv_func_setvbuf_reversed" >&5 15316echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6 15317if test $ac_cv_func_setvbuf_reversed = yes; then 15318 15319cat >>confdefs.h <<\EOF 15320#define SETVBUF_REVERSED 1 15321EOF 15322 15323fi 15324 15325fi 15326echo "$as_me:15326: checking return type of signal handlers" >&5 15327echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 15328if test "${ac_cv_type_signal+set}" = set; then 15329 echo $ECHO_N "(cached) $ECHO_C" >&6 15330else 15331 cat >conftest.$ac_ext <<_ACEOF 15332#line 15332 "configure" 15333#include "confdefs.h" 15334#include <sys/types.h> 15335#include <signal.h> 15336#ifdef signal 15337# undef signal 15338#endif 15339#ifdef __cplusplus 15340extern "C" void (*signal (int, void (*)(int)))(int); 15341#else 15342void (*signal ()) (); 15343#endif 15344 15345int 15346main () 15347{ 15348int i; 15349 ; 15350 return 0; 15351} 15352_ACEOF 15353rm -f conftest.$ac_objext 15354if { (eval echo "$as_me:15354: \"$ac_compile\"") >&5 15355 (eval $ac_compile) 2>&5 15356 ac_status=$? 15357 echo "$as_me:15357: \$? = $ac_status" >&5 15358 (exit $ac_status); } && 15359 { ac_try='test -s conftest.$ac_objext' 15360 { (eval echo "$as_me:15360: \"$ac_try\"") >&5 15361 (eval $ac_try) 2>&5 15362 ac_status=$? 15363 echo "$as_me:15363: \$? = $ac_status" >&5 15364 (exit $ac_status); }; }; then 15365 ac_cv_type_signal=void 15366else 15367 echo "$as_me: failed program was:" >&5 15368cat conftest.$ac_ext >&5 15369ac_cv_type_signal=int 15370fi 15371rm -f conftest.$ac_objext conftest.$ac_ext 15372fi 15373echo "$as_me:15373: result: $ac_cv_type_signal" >&5 15374echo "${ECHO_T}$ac_cv_type_signal" >&6 15375 15376cat >>confdefs.h <<EOF 15377#define RETSIGTYPE $ac_cv_type_signal 15378EOF 15379 15380echo "$as_me:15380: checking for type sigaction_t" >&5 15381echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6 15382if test "${cf_cv_type_sigaction+set}" = set; then 15383 echo $ECHO_N "(cached) $ECHO_C" >&6 15384else 15385 15386 cat >conftest.$ac_ext <<_ACEOF 15387#line 15387 "configure" 15388#include "confdefs.h" 15389 15390#include <signal.h> 15391int 15392main () 15393{ 15394sigaction_t x 15395 ; 15396 return 0; 15397} 15398_ACEOF 15399rm -f conftest.$ac_objext 15400if { (eval echo "$as_me:15400: \"$ac_compile\"") >&5 15401 (eval $ac_compile) 2>&5 15402 ac_status=$? 15403 echo "$as_me:15403: \$? = $ac_status" >&5 15404 (exit $ac_status); } && 15405 { ac_try='test -s conftest.$ac_objext' 15406 { (eval echo "$as_me:15406: \"$ac_try\"") >&5 15407 (eval $ac_try) 2>&5 15408 ac_status=$? 15409 echo "$as_me:15409: \$? = $ac_status" >&5 15410 (exit $ac_status); }; }; then 15411 cf_cv_type_sigaction=yes 15412else 15413 echo "$as_me: failed program was:" >&5 15414cat conftest.$ac_ext >&5 15415cf_cv_type_sigaction=no 15416fi 15417rm -f conftest.$ac_objext conftest.$ac_ext 15418fi 15419 15420echo "$as_me:15420: result: $cf_cv_type_sigaction" >&5 15421echo "${ECHO_T}$cf_cv_type_sigaction" >&6 15422test "$cf_cv_type_sigaction" = yes && cat >>confdefs.h <<\EOF 15423#define HAVE_TYPE_SIGACTION 1 15424EOF 15425 15426echo "$as_me:15426: checking declaration of size-change" >&5 15427echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6 15428if test "${cf_cv_sizechange+set}" = set; then 15429 echo $ECHO_N "(cached) $ECHO_C" >&6 15430else 15431 15432 cf_cv_sizechange=unknown 15433 cf_save_CPPFLAGS="$CPPFLAGS" 15434 15435for cf_opts in "" "NEED_PTEM_H" 15436do 15437 15438 CPPFLAGS="$cf_save_CPPFLAGS" 15439 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts" 15440 cat >conftest.$ac_ext <<_ACEOF 15441#line 15441 "configure" 15442#include "confdefs.h" 15443#include <sys/types.h> 15444#ifdef HAVE_TERMIOS_H 15445#include <termios.h> 15446#else 15447#ifdef HAVE_TERMIO_H 15448#include <termio.h> 15449#endif 15450#endif 15451#ifdef NEED_PTEM_H 15452/* This is a workaround for SCO: they neglected to define struct winsize in 15453 * termios.h -- it's only in termio.h and ptem.h 15454 */ 15455#include <sys/stream.h> 15456#include <sys/ptem.h> 15457#endif 15458#if !defined(sun) || !defined(HAVE_TERMIOS_H) 15459#include <sys/ioctl.h> 15460#endif 15461 15462int 15463main () 15464{ 15465 15466#ifdef TIOCGSIZE 15467 struct ttysize win; /* FIXME: what system is this? */ 15468 int y = win.ts_lines; 15469 int x = win.ts_cols; 15470#else 15471#ifdef TIOCGWINSZ 15472 struct winsize win; 15473 int y = win.ws_row; 15474 int x = win.ws_col; 15475#else 15476 no TIOCGSIZE or TIOCGWINSZ 15477#endif /* TIOCGWINSZ */ 15478#endif /* TIOCGSIZE */ 15479 15480 ; 15481 return 0; 15482} 15483_ACEOF 15484rm -f conftest.$ac_objext 15485if { (eval echo "$as_me:15485: \"$ac_compile\"") >&5 15486 (eval $ac_compile) 2>&5 15487 ac_status=$? 15488 echo "$as_me:15488: \$? = $ac_status" >&5 15489 (exit $ac_status); } && 15490 { ac_try='test -s conftest.$ac_objext' 15491 { (eval echo "$as_me:15491: \"$ac_try\"") >&5 15492 (eval $ac_try) 2>&5 15493 ac_status=$? 15494 echo "$as_me:15494: \$? = $ac_status" >&5 15495 (exit $ac_status); }; }; then 15496 cf_cv_sizechange=yes 15497else 15498 echo "$as_me: failed program was:" >&5 15499cat conftest.$ac_ext >&5 15500cf_cv_sizechange=no 15501fi 15502rm -f conftest.$ac_objext conftest.$ac_ext 15503 15504 CPPFLAGS="$cf_save_CPPFLAGS" 15505 if test "$cf_cv_sizechange" = yes ; then 15506 echo "size-change succeeded ($cf_opts)" >&5 15507 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts" 15508 break 15509 fi 15510done 15511 15512fi 15513echo "$as_me:15513: result: $cf_cv_sizechange" >&5 15514echo "${ECHO_T}$cf_cv_sizechange" >&6 15515if test "$cf_cv_sizechange" != no ; then 15516 cat >>confdefs.h <<\EOF 15517#define HAVE_SIZECHANGE 1 15518EOF 15519 15520 case $cf_cv_sizechange in #(vi 15521 NEED*) 15522 cat >>confdefs.h <<EOF 15523#define $cf_cv_sizechange 1 15524EOF 15525 15526 ;; 15527 esac 15528fi 15529 15530echo "$as_me:15530: checking for memmove" >&5 15531echo $ECHO_N "checking for memmove... $ECHO_C" >&6 15532if test "${ac_cv_func_memmove+set}" = set; then 15533 echo $ECHO_N "(cached) $ECHO_C" >&6 15534else 15535 cat >conftest.$ac_ext <<_ACEOF 15536#line 15536 "configure" 15537#include "confdefs.h" 15538/* System header to define __stub macros and hopefully few prototypes, 15539 which can conflict with char memmove (); below. */ 15540#include <assert.h> 15541/* Override any gcc2 internal prototype to avoid an error. */ 15542#ifdef __cplusplus 15543extern "C" 15544#endif 15545/* We use char because int might match the return type of a gcc2 15546 builtin and then its argument prototype would still apply. */ 15547char memmove (); 15548char (*f) (); 15549 15550int 15551main () 15552{ 15553/* The GNU C library defines this for functions which it implements 15554 to always fail with ENOSYS. Some functions are actually named 15555 something starting with __ and the normal name is an alias. */ 15556#if defined (__stub_memmove) || defined (__stub___memmove) 15557choke me 15558#else 15559f = memmove; 15560#endif 15561 15562 ; 15563 return 0; 15564} 15565_ACEOF 15566rm -f conftest.$ac_objext conftest$ac_exeext 15567if { (eval echo "$as_me:15567: \"$ac_link\"") >&5 15568 (eval $ac_link) 2>&5 15569 ac_status=$? 15570 echo "$as_me:15570: \$? = $ac_status" >&5 15571 (exit $ac_status); } && 15572 { ac_try='test -s conftest$ac_exeext' 15573 { (eval echo "$as_me:15573: \"$ac_try\"") >&5 15574 (eval $ac_try) 2>&5 15575 ac_status=$? 15576 echo "$as_me:15576: \$? = $ac_status" >&5 15577 (exit $ac_status); }; }; then 15578 ac_cv_func_memmove=yes 15579else 15580 echo "$as_me: failed program was:" >&5 15581cat conftest.$ac_ext >&5 15582ac_cv_func_memmove=no 15583fi 15584rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15585fi 15586echo "$as_me:15586: result: $ac_cv_func_memmove" >&5 15587echo "${ECHO_T}$ac_cv_func_memmove" >&6 15588if test $ac_cv_func_memmove = yes; then 15589 : 15590else 15591 15592echo "$as_me:15592: checking for bcopy" >&5 15593echo $ECHO_N "checking for bcopy... $ECHO_C" >&6 15594if test "${ac_cv_func_bcopy+set}" = set; then 15595 echo $ECHO_N "(cached) $ECHO_C" >&6 15596else 15597 cat >conftest.$ac_ext <<_ACEOF 15598#line 15598 "configure" 15599#include "confdefs.h" 15600/* System header to define __stub macros and hopefully few prototypes, 15601 which can conflict with char bcopy (); below. */ 15602#include <assert.h> 15603/* Override any gcc2 internal prototype to avoid an error. */ 15604#ifdef __cplusplus 15605extern "C" 15606#endif 15607/* We use char because int might match the return type of a gcc2 15608 builtin and then its argument prototype would still apply. */ 15609char bcopy (); 15610char (*f) (); 15611 15612int 15613main () 15614{ 15615/* The GNU C library defines this for functions which it implements 15616 to always fail with ENOSYS. Some functions are actually named 15617 something starting with __ and the normal name is an alias. */ 15618#if defined (__stub_bcopy) || defined (__stub___bcopy) 15619choke me 15620#else 15621f = bcopy; 15622#endif 15623 15624 ; 15625 return 0; 15626} 15627_ACEOF 15628rm -f conftest.$ac_objext conftest$ac_exeext 15629if { (eval echo "$as_me:15629: \"$ac_link\"") >&5 15630 (eval $ac_link) 2>&5 15631 ac_status=$? 15632 echo "$as_me:15632: \$? = $ac_status" >&5 15633 (exit $ac_status); } && 15634 { ac_try='test -s conftest$ac_exeext' 15635 { (eval echo "$as_me:15635: \"$ac_try\"") >&5 15636 (eval $ac_try) 2>&5 15637 ac_status=$? 15638 echo "$as_me:15638: \$? = $ac_status" >&5 15639 (exit $ac_status); }; }; then 15640 ac_cv_func_bcopy=yes 15641else 15642 echo "$as_me: failed program was:" >&5 15643cat conftest.$ac_ext >&5 15644ac_cv_func_bcopy=no 15645fi 15646rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15647fi 15648echo "$as_me:15648: result: $ac_cv_func_bcopy" >&5 15649echo "${ECHO_T}$ac_cv_func_bcopy" >&6 15650if test $ac_cv_func_bcopy = yes; then 15651 15652 echo "$as_me:15652: checking if bcopy does overlapping moves" >&5 15653echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6 15654if test "${cf_cv_good_bcopy+set}" = set; then 15655 echo $ECHO_N "(cached) $ECHO_C" >&6 15656else 15657 15658 if test "$cross_compiling" = yes; then 15659 cf_cv_good_bcopy=unknown 15660else 15661 cat >conftest.$ac_ext <<_ACEOF 15662#line 15662 "configure" 15663#include "confdefs.h" 15664 15665int main() { 15666 static char data[] = "abcdefghijklmnopqrstuwwxyz"; 15667 char temp[40]; 15668 bcopy(data, temp, sizeof(data)); 15669 bcopy(temp+10, temp, 15); 15670 bcopy(temp+5, temp+15, 10); 15671 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz")); 15672} 15673 15674_ACEOF 15675rm -f conftest$ac_exeext 15676if { (eval echo "$as_me:15676: \"$ac_link\"") >&5 15677 (eval $ac_link) 2>&5 15678 ac_status=$? 15679 echo "$as_me:15679: \$? = $ac_status" >&5 15680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15681 { (eval echo "$as_me:15681: \"$ac_try\"") >&5 15682 (eval $ac_try) 2>&5 15683 ac_status=$? 15684 echo "$as_me:15684: \$? = $ac_status" >&5 15685 (exit $ac_status); }; }; then 15686 cf_cv_good_bcopy=yes 15687else 15688 echo "$as_me: program exited with status $ac_status" >&5 15689echo "$as_me: failed program was:" >&5 15690cat conftest.$ac_ext >&5 15691cf_cv_good_bcopy=no 15692fi 15693rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15694fi 15695 15696fi 15697echo "$as_me:15697: result: $cf_cv_good_bcopy" >&5 15698echo "${ECHO_T}$cf_cv_good_bcopy" >&6 15699 15700else 15701 cf_cv_good_bcopy=no 15702fi 15703 15704 if test "$cf_cv_good_bcopy" = yes ; then 15705 cat >>confdefs.h <<\EOF 15706#define USE_OK_BCOPY 1 15707EOF 15708 15709 else 15710 cat >>confdefs.h <<\EOF 15711#define USE_MY_MEMMOVE 1 15712EOF 15713 15714 fi 15715 15716fi 15717 15718echo "$as_me:15718: checking if poll really works" >&5 15719echo $ECHO_N "checking if poll really works... $ECHO_C" >&6 15720if test "${cf_cv_working_poll+set}" = set; then 15721 echo $ECHO_N "(cached) $ECHO_C" >&6 15722else 15723 15724if test "$cross_compiling" = yes; then 15725 cf_cv_working_poll=unknown 15726else 15727 cat >conftest.$ac_ext <<_ACEOF 15728#line 15728 "configure" 15729#include "confdefs.h" 15730 15731#include <stdio.h> 15732#ifdef HAVE_POLL_H 15733#include <poll.h> 15734#else 15735#include <sys/poll.h> 15736#endif 15737int main() { 15738 struct pollfd myfds; 15739 int ret; 15740 15741 myfds.fd = 0; 15742 myfds.events = POLLIN; 15743 15744 ret = poll(&myfds, 1, 100); 15745 ${cf_cv_main_return:-return}(ret != 0); 15746} 15747_ACEOF 15748rm -f conftest$ac_exeext 15749if { (eval echo "$as_me:15749: \"$ac_link\"") >&5 15750 (eval $ac_link) 2>&5 15751 ac_status=$? 15752 echo "$as_me:15752: \$? = $ac_status" >&5 15753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15754 { (eval echo "$as_me:15754: \"$ac_try\"") >&5 15755 (eval $ac_try) 2>&5 15756 ac_status=$? 15757 echo "$as_me:15757: \$? = $ac_status" >&5 15758 (exit $ac_status); }; }; then 15759 cf_cv_working_poll=yes 15760else 15761 echo "$as_me: program exited with status $ac_status" >&5 15762echo "$as_me: failed program was:" >&5 15763cat conftest.$ac_ext >&5 15764cf_cv_working_poll=no 15765fi 15766rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15767fi 15768fi 15769echo "$as_me:15769: result: $cf_cv_working_poll" >&5 15770echo "${ECHO_T}$cf_cv_working_poll" >&6 15771test "$cf_cv_working_poll" = "yes" && cat >>confdefs.h <<\EOF 15772#define HAVE_WORKING_POLL 1 15773EOF 15774 15775echo "$as_me:15775: checking for va_copy" >&5 15776echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 15777if test "${cf_cv_have_va_copy+set}" = set; then 15778 echo $ECHO_N "(cached) $ECHO_C" >&6 15779else 15780 15781cat >conftest.$ac_ext <<_ACEOF 15782#line 15782 "configure" 15783#include "confdefs.h" 15784 15785#include <stdarg.h> 15786 15787int 15788main () 15789{ 15790 15791 static va_list dst; 15792 static va_list src; 15793 va_copy(dst, src) 15794 ; 15795 return 0; 15796} 15797_ACEOF 15798rm -f conftest.$ac_objext conftest$ac_exeext 15799if { (eval echo "$as_me:15799: \"$ac_link\"") >&5 15800 (eval $ac_link) 2>&5 15801 ac_status=$? 15802 echo "$as_me:15802: \$? = $ac_status" >&5 15803 (exit $ac_status); } && 15804 { ac_try='test -s conftest$ac_exeext' 15805 { (eval echo "$as_me:15805: \"$ac_try\"") >&5 15806 (eval $ac_try) 2>&5 15807 ac_status=$? 15808 echo "$as_me:15808: \$? = $ac_status" >&5 15809 (exit $ac_status); }; }; then 15810 cf_cv_have_va_copy=yes 15811else 15812 echo "$as_me: failed program was:" >&5 15813cat conftest.$ac_ext >&5 15814cf_cv_have_va_copy=no 15815fi 15816rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15817fi 15818echo "$as_me:15818: result: $cf_cv_have_va_copy" >&5 15819echo "${ECHO_T}$cf_cv_have_va_copy" >&6 15820 15821test "$cf_cv_have_va_copy" = yes && cat >>confdefs.h <<\EOF 15822#define HAVE_VA_COPY 1 15823EOF 15824 15825echo "$as_me:15825: checking for __va_copy" >&5 15826echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6 15827if test "${cf_cv_have___va_copy+set}" = set; then 15828 echo $ECHO_N "(cached) $ECHO_C" >&6 15829else 15830 15831cat >conftest.$ac_ext <<_ACEOF 15832#line 15832 "configure" 15833#include "confdefs.h" 15834 15835#include <stdarg.h> 15836 15837int 15838main () 15839{ 15840 15841 static va_list dst; 15842 static va_list src; 15843 __va_copy(dst, src) 15844 ; 15845 return 0; 15846} 15847_ACEOF 15848rm -f conftest.$ac_objext conftest$ac_exeext 15849if { (eval echo "$as_me:15849: \"$ac_link\"") >&5 15850 (eval $ac_link) 2>&5 15851 ac_status=$? 15852 echo "$as_me:15852: \$? = $ac_status" >&5 15853 (exit $ac_status); } && 15854 { ac_try='test -s conftest$ac_exeext' 15855 { (eval echo "$as_me:15855: \"$ac_try\"") >&5 15856 (eval $ac_try) 2>&5 15857 ac_status=$? 15858 echo "$as_me:15858: \$? = $ac_status" >&5 15859 (exit $ac_status); }; }; then 15860 cf_cv_have___va_copy=yes 15861else 15862 echo "$as_me: failed program was:" >&5 15863cat conftest.$ac_ext >&5 15864cf_cv_have___va_copy=no 15865fi 15866rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15867fi 15868echo "$as_me:15868: result: $cf_cv_have___va_copy" >&5 15869echo "${ECHO_T}$cf_cv_have___va_copy" >&6 15870 15871test "$cf_cv_have___va_copy" = yes && cat >>confdefs.h <<\EOF 15872#define HAVE___VA_COPY 1 15873EOF 15874 15875echo "$as_me:15875: checking for pid_t" >&5 15876echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 15877if test "${ac_cv_type_pid_t+set}" = set; then 15878 echo $ECHO_N "(cached) $ECHO_C" >&6 15879else 15880 cat >conftest.$ac_ext <<_ACEOF 15881#line 15881 "configure" 15882#include "confdefs.h" 15883$ac_includes_default 15884int 15885main () 15886{ 15887if ((pid_t *) 0) 15888 return 0; 15889if (sizeof (pid_t)) 15890 return 0; 15891 ; 15892 return 0; 15893} 15894_ACEOF 15895rm -f conftest.$ac_objext 15896if { (eval echo "$as_me:15896: \"$ac_compile\"") >&5 15897 (eval $ac_compile) 2>&5 15898 ac_status=$? 15899 echo "$as_me:15899: \$? = $ac_status" >&5 15900 (exit $ac_status); } && 15901 { ac_try='test -s conftest.$ac_objext' 15902 { (eval echo "$as_me:15902: \"$ac_try\"") >&5 15903 (eval $ac_try) 2>&5 15904 ac_status=$? 15905 echo "$as_me:15905: \$? = $ac_status" >&5 15906 (exit $ac_status); }; }; then 15907 ac_cv_type_pid_t=yes 15908else 15909 echo "$as_me: failed program was:" >&5 15910cat conftest.$ac_ext >&5 15911ac_cv_type_pid_t=no 15912fi 15913rm -f conftest.$ac_objext conftest.$ac_ext 15914fi 15915echo "$as_me:15915: result: $ac_cv_type_pid_t" >&5 15916echo "${ECHO_T}$ac_cv_type_pid_t" >&6 15917if test $ac_cv_type_pid_t = yes; then 15918 : 15919else 15920 15921cat >>confdefs.h <<EOF 15922#define pid_t int 15923EOF 15924 15925fi 15926 15927for ac_header in unistd.h vfork.h 15928do 15929as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15930echo "$as_me:15930: checking for $ac_header" >&5 15931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 15932if eval "test \"\${$as_ac_Header+set}\" = set"; then 15933 echo $ECHO_N "(cached) $ECHO_C" >&6 15934else 15935 cat >conftest.$ac_ext <<_ACEOF 15936#line 15936 "configure" 15937#include "confdefs.h" 15938#include <$ac_header> 15939_ACEOF 15940if { (eval echo "$as_me:15940: \"$ac_cpp conftest.$ac_ext\"") >&5 15941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 15942 ac_status=$? 15943 egrep -v '^ *\+' conftest.er1 >conftest.err 15944 rm -f conftest.er1 15945 cat conftest.err >&5 15946 echo "$as_me:15946: \$? = $ac_status" >&5 15947 (exit $ac_status); } >/dev/null; then 15948 if test -s conftest.err; then 15949 ac_cpp_err=$ac_c_preproc_warn_flag 15950 else 15951 ac_cpp_err= 15952 fi 15953else 15954 ac_cpp_err=yes 15955fi 15956if test -z "$ac_cpp_err"; then 15957 eval "$as_ac_Header=yes" 15958else 15959 echo "$as_me: failed program was:" >&5 15960 cat conftest.$ac_ext >&5 15961 eval "$as_ac_Header=no" 15962fi 15963rm -f conftest.err conftest.$ac_ext 15964fi 15965echo "$as_me:15965: result: `eval echo '${'$as_ac_Header'}'`" >&5 15966echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 15967if test `eval echo '${'$as_ac_Header'}'` = yes; then 15968 cat >>confdefs.h <<EOF 15969#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15970EOF 15971 15972fi 15973done 15974 15975for ac_func in fork vfork 15976do 15977as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 15978echo "$as_me:15978: checking for $ac_func" >&5 15979echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 15980if eval "test \"\${$as_ac_var+set}\" = set"; then 15981 echo $ECHO_N "(cached) $ECHO_C" >&6 15982else 15983 cat >conftest.$ac_ext <<_ACEOF 15984#line 15984 "configure" 15985#include "confdefs.h" 15986/* System header to define __stub macros and hopefully few prototypes, 15987 which can conflict with char $ac_func (); below. */ 15988#include <assert.h> 15989/* Override any gcc2 internal prototype to avoid an error. */ 15990#ifdef __cplusplus 15991extern "C" 15992#endif 15993/* We use char because int might match the return type of a gcc2 15994 builtin and then its argument prototype would still apply. */ 15995char $ac_func (); 15996char (*f) (); 15997 15998int 15999main () 16000{ 16001/* The GNU C library defines this for functions which it implements 16002 to always fail with ENOSYS. Some functions are actually named 16003 something starting with __ and the normal name is an alias. */ 16004#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16005choke me 16006#else 16007f = $ac_func; 16008#endif 16009 16010 ; 16011 return 0; 16012} 16013_ACEOF 16014rm -f conftest.$ac_objext conftest$ac_exeext 16015if { (eval echo "$as_me:16015: \"$ac_link\"") >&5 16016 (eval $ac_link) 2>&5 16017 ac_status=$? 16018 echo "$as_me:16018: \$? = $ac_status" >&5 16019 (exit $ac_status); } && 16020 { ac_try='test -s conftest$ac_exeext' 16021 { (eval echo "$as_me:16021: \"$ac_try\"") >&5 16022 (eval $ac_try) 2>&5 16023 ac_status=$? 16024 echo "$as_me:16024: \$? = $ac_status" >&5 16025 (exit $ac_status); }; }; then 16026 eval "$as_ac_var=yes" 16027else 16028 echo "$as_me: failed program was:" >&5 16029cat conftest.$ac_ext >&5 16030eval "$as_ac_var=no" 16031fi 16032rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16033fi 16034echo "$as_me:16034: result: `eval echo '${'$as_ac_var'}'`" >&5 16035echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 16036if test `eval echo '${'$as_ac_var'}'` = yes; then 16037 cat >>confdefs.h <<EOF 16038#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16039EOF 16040 16041fi 16042done 16043 16044ac_cv_func_fork_works=$ac_cv_func_fork 16045if test "x$ac_cv_func_fork" = xyes; then 16046 echo "$as_me:16046: checking for working fork" >&5 16047echo $ECHO_N "checking for working fork... $ECHO_C" >&6 16048if test "${ac_cv_func_fork_works+set}" = set; then 16049 echo $ECHO_N "(cached) $ECHO_C" >&6 16050else 16051 if test "$cross_compiling" = yes; then 16052 ac_cv_func_fork_works=cross 16053else 16054 cat >conftest.$ac_ext <<_ACEOF 16055/* By Rüdiger Kuhlmann. */ 16056 #include <sys/types.h> 16057 #if HAVE_UNISTD_H 16058 # include <unistd.h> 16059 #endif 16060 /* Some systems only have a dummy stub for fork() */ 16061 int main () 16062 { 16063 if (fork() < 0) 16064 $ac_main_return (1); 16065 $ac_main_return (0); 16066 } 16067_ACEOF 16068rm -f conftest$ac_exeext 16069if { (eval echo "$as_me:16069: \"$ac_link\"") >&5 16070 (eval $ac_link) 2>&5 16071 ac_status=$? 16072 echo "$as_me:16072: \$? = $ac_status" >&5 16073 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16074 { (eval echo "$as_me:16074: \"$ac_try\"") >&5 16075 (eval $ac_try) 2>&5 16076 ac_status=$? 16077 echo "$as_me:16077: \$? = $ac_status" >&5 16078 (exit $ac_status); }; }; then 16079 ac_cv_func_fork_works=yes 16080else 16081 echo "$as_me: program exited with status $ac_status" >&5 16082echo "$as_me: failed program was:" >&5 16083cat conftest.$ac_ext >&5 16084ac_cv_func_fork_works=no 16085fi 16086rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16087fi 16088fi 16089echo "$as_me:16089: result: $ac_cv_func_fork_works" >&5 16090echo "${ECHO_T}$ac_cv_func_fork_works" >&6 16091 16092fi 16093if test "x$ac_cv_func_fork_works" = xcross; then 16094 case $host in 16095 *-*-amigaos* | *-*-msdosdjgpp*) 16096 # Override, as these systems have only a dummy fork() stub 16097 ac_cv_func_fork_works=no 16098 ;; 16099 *) 16100 ac_cv_func_fork_works=yes 16101 ;; 16102 esac 16103 { echo "$as_me:16103: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5 16104echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;} 16105fi 16106ac_cv_func_vfork_works=$ac_cv_func_vfork 16107if test "x$ac_cv_func_vfork" = xyes; then 16108 echo "$as_me:16108: checking for working vfork" >&5 16109echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 16110if test "${ac_cv_func_vfork_works+set}" = set; then 16111 echo $ECHO_N "(cached) $ECHO_C" >&6 16112else 16113 if test "$cross_compiling" = yes; then 16114 ac_cv_func_vfork_works=cross 16115else 16116 cat >conftest.$ac_ext <<_ACEOF 16117#line 16117 "configure" 16118#include "confdefs.h" 16119/* Thanks to Paul Eggert for this test. */ 16120#include <stdio.h> 16121#include <sys/types.h> 16122#include <sys/stat.h> 16123#if HAVE_UNISTD_H 16124# include <unistd.h> 16125#endif 16126#if HAVE_VFORK_H 16127# include <vfork.h> 16128#endif 16129/* On some sparc systems, changes by the child to local and incoming 16130 argument registers are propagated back to the parent. The compiler 16131 is told about this with #include <vfork.h>, but some compilers 16132 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 16133 static variable whose address is put into a register that is 16134 clobbered by the vfork. */ 16135static 16136#ifdef __cplusplus 16137sparc_address_test (int arg) 16138# else 16139sparc_address_test (arg) int arg; 16140#endif 16141{ 16142 static pid_t child; 16143 if (!child) { 16144 child = vfork (); 16145 if (child < 0) { 16146 perror ("vfork"); 16147 _exit(2); 16148 } 16149 if (!child) { 16150 arg = getpid(); 16151 write(-1, "", 0); 16152 _exit (arg); 16153 } 16154 } 16155} 16156 16157int 16158main () 16159{ 16160 pid_t parent = getpid (); 16161 pid_t child; 16162 16163 sparc_address_test (); 16164 16165 child = vfork (); 16166 16167 if (child == 0) { 16168 /* Here is another test for sparc vfork register problems. This 16169 test uses lots of local variables, at least as many local 16170 variables as main has allocated so far including compiler 16171 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 16172 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 16173 reuse the register of parent for one of the local variables, 16174 since it will think that parent can't possibly be used any more 16175 in this routine. Assigning to the local variable will thus 16176 munge parent in the parent process. */ 16177 pid_t 16178 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 16179 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 16180 /* Convince the compiler that p..p7 are live; otherwise, it might 16181 use the same hardware register for all 8 local variables. */ 16182 if (p != p1 || p != p2 || p != p3 || p != p4 16183 || p != p5 || p != p6 || p != p7) 16184 _exit(1); 16185 16186 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 16187 from child file descriptors. If the child closes a descriptor 16188 before it execs or exits, this munges the parent's descriptor 16189 as well. Test for this by closing stdout in the child. */ 16190 _exit(close(fileno(stdout)) != 0); 16191 } else { 16192 int status; 16193 struct stat st; 16194 16195 while (wait(&status) != child) 16196 ; 16197 $ac_main_return( 16198 /* Was there some problem with vforking? */ 16199 child < 0 16200 16201 /* Did the child fail? (This shouldn't happen.) */ 16202 || status 16203 16204 /* Did the vfork/compiler bug occur? */ 16205 || parent != getpid() 16206 16207 /* Did the file descriptor bug occur? */ 16208 || fstat(fileno(stdout), &st) != 0 16209 ); 16210 } 16211} 16212_ACEOF 16213rm -f conftest$ac_exeext 16214if { (eval echo "$as_me:16214: \"$ac_link\"") >&5 16215 (eval $ac_link) 2>&5 16216 ac_status=$? 16217 echo "$as_me:16217: \$? = $ac_status" >&5 16218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16219 { (eval echo "$as_me:16219: \"$ac_try\"") >&5 16220 (eval $ac_try) 2>&5 16221 ac_status=$? 16222 echo "$as_me:16222: \$? = $ac_status" >&5 16223 (exit $ac_status); }; }; then 16224 ac_cv_func_vfork_works=yes 16225else 16226 echo "$as_me: program exited with status $ac_status" >&5 16227echo "$as_me: failed program was:" >&5 16228cat conftest.$ac_ext >&5 16229ac_cv_func_vfork_works=no 16230fi 16231rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16232fi 16233fi 16234echo "$as_me:16234: result: $ac_cv_func_vfork_works" >&5 16235echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 16236 16237fi; 16238if test "x$ac_cv_func_fork_works" = xcross; then 16239 ac_cv_func_vfork_works=ac_cv_func_vfork 16240 { echo "$as_me:16240: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5 16241echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;} 16242fi 16243 16244if test "x$ac_cv_func_vfork_works" = xyes; then 16245 16246cat >>confdefs.h <<\EOF 16247#define HAVE_WORKING_VFORK 1 16248EOF 16249 16250else 16251 16252cat >>confdefs.h <<\EOF 16253#define vfork fork 16254EOF 16255 16256fi 16257if test "x$ac_cv_func_fork_works" = xyes; then 16258 16259cat >>confdefs.h <<\EOF 16260#define HAVE_WORKING_FORK 1 16261EOF 16262 16263fi 16264 16265# special check for test/ditto.c 16266 16267echo "$as_me:16267: checking for openpty in -lutil" >&5 16268echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 16269if test "${ac_cv_lib_util_openpty+set}" = set; then 16270 echo $ECHO_N "(cached) $ECHO_C" >&6 16271else 16272 ac_check_lib_save_LIBS=$LIBS 16273LIBS="-lutil $LIBS" 16274cat >conftest.$ac_ext <<_ACEOF 16275#line 16275 "configure" 16276#include "confdefs.h" 16277 16278/* Override any gcc2 internal prototype to avoid an error. */ 16279#ifdef __cplusplus 16280extern "C" 16281#endif 16282/* We use char because int might match the return type of a gcc2 16283 builtin and then its argument prototype would still apply. */ 16284char openpty (); 16285int 16286main () 16287{ 16288openpty (); 16289 ; 16290 return 0; 16291} 16292_ACEOF 16293rm -f conftest.$ac_objext conftest$ac_exeext 16294if { (eval echo "$as_me:16294: \"$ac_link\"") >&5 16295 (eval $ac_link) 2>&5 16296 ac_status=$? 16297 echo "$as_me:16297: \$? = $ac_status" >&5 16298 (exit $ac_status); } && 16299 { ac_try='test -s conftest$ac_exeext' 16300 { (eval echo "$as_me:16300: \"$ac_try\"") >&5 16301 (eval $ac_try) 2>&5 16302 ac_status=$? 16303 echo "$as_me:16303: \$? = $ac_status" >&5 16304 (exit $ac_status); }; }; then 16305 ac_cv_lib_util_openpty=yes 16306else 16307 echo "$as_me: failed program was:" >&5 16308cat conftest.$ac_ext >&5 16309ac_cv_lib_util_openpty=no 16310fi 16311rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16312LIBS=$ac_check_lib_save_LIBS 16313fi 16314echo "$as_me:16314: result: $ac_cv_lib_util_openpty" >&5 16315echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 16316if test $ac_cv_lib_util_openpty = yes; then 16317 cf_cv_lib_util=yes 16318else 16319 cf_cv_lib_util=no 16320fi 16321 16322echo "$as_me:16322: checking for openpty header" >&5 16323echo $ECHO_N "checking for openpty header... $ECHO_C" >&6 16324if test "${cf_cv_func_openpty+set}" = set; then 16325 echo $ECHO_N "(cached) $ECHO_C" >&6 16326else 16327 16328 cf_save_LIBS="$LIBS" 16329 test $cf_cv_lib_util = yes && LIBS="-lutil $LIBS" 16330 for cf_header in pty.h libutil.h util.h 16331 do 16332 cat >conftest.$ac_ext <<_ACEOF 16333#line 16333 "configure" 16334#include "confdefs.h" 16335 16336#include <$cf_header> 16337 16338int 16339main () 16340{ 16341 16342 int x = openpty((int *)0, (int *)0, (char *)0, 16343 (struct termios *)0, (struct winsize *)0); 16344 16345 ; 16346 return 0; 16347} 16348_ACEOF 16349rm -f conftest.$ac_objext conftest$ac_exeext 16350if { (eval echo "$as_me:16350: \"$ac_link\"") >&5 16351 (eval $ac_link) 2>&5 16352 ac_status=$? 16353 echo "$as_me:16353: \$? = $ac_status" >&5 16354 (exit $ac_status); } && 16355 { ac_try='test -s conftest$ac_exeext' 16356 { (eval echo "$as_me:16356: \"$ac_try\"") >&5 16357 (eval $ac_try) 2>&5 16358 ac_status=$? 16359 echo "$as_me:16359: \$? = $ac_status" >&5 16360 (exit $ac_status); }; }; then 16361 16362 cf_cv_func_openpty=$cf_header 16363 break 16364 16365else 16366 echo "$as_me: failed program was:" >&5 16367cat conftest.$ac_ext >&5 16368 16369 cf_cv_func_openpty=no 16370 16371fi 16372rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16373 done 16374 LIBS="$cf_save_LIBS" 16375 16376fi 16377echo "$as_me:16377: result: $cf_cv_func_openpty" >&5 16378echo "${ECHO_T}$cf_cv_func_openpty" >&6 16379 16380if test "$cf_cv_func_openpty" != no ; then 16381 cat >>confdefs.h <<EOF 16382#define USE_OPENPTY_HEADER <$cf_cv_func_openpty> 16383EOF 16384 16385 cat >>confdefs.h <<\EOF 16386#define USE_XTERM_PTY 1 16387EOF 16388 16389 if test "$cf_cv_lib_util" = yes ; then 16390 TEST_LIBS="-lutil $TEST_LIBS" 16391 fi 16392fi 16393 16394if test "$with_hashed_db" != no ; then 16395 cat >>confdefs.h <<\EOF 16396#define USE_HASHED_DB 1 16397EOF 16398 16399case $with_hashed_db in #(vi 16400yes|*able*) #(vi 16401 ;; 16402*) 16403 if test -d "$with_hashed_db" ; then 16404 16405if test -n "$with_hashed_db/include" ; then 16406 for cf_add_incdir in $with_hashed_db/include 16407 do 16408 while test $cf_add_incdir != /usr/include 16409 do 16410 if test -d $cf_add_incdir 16411 then 16412 cf_have_incdir=no 16413 if test -n "$CFLAGS$CPPFLAGS" ; then 16414 # a loop is needed to ensure we can add subdirs of existing dirs 16415 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 16416 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 16417 cf_have_incdir=yes; break 16418 fi 16419 done 16420 fi 16421 16422 if test "$cf_have_incdir" = no ; then 16423 if test "$cf_add_incdir" = /usr/local/include ; then 16424 if test "$GCC" = yes 16425 then 16426 cf_save_CPPFLAGS=$CPPFLAGS 16427 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 16428 cat >conftest.$ac_ext <<_ACEOF 16429#line 16429 "configure" 16430#include "confdefs.h" 16431#include <stdio.h> 16432int 16433main () 16434{ 16435printf("Hello") 16436 ; 16437 return 0; 16438} 16439_ACEOF 16440rm -f conftest.$ac_objext 16441if { (eval echo "$as_me:16441: \"$ac_compile\"") >&5 16442 (eval $ac_compile) 2>&5 16443 ac_status=$? 16444 echo "$as_me:16444: \$? = $ac_status" >&5 16445 (exit $ac_status); } && 16446 { ac_try='test -s conftest.$ac_objext' 16447 { (eval echo "$as_me:16447: \"$ac_try\"") >&5 16448 (eval $ac_try) 2>&5 16449 ac_status=$? 16450 echo "$as_me:16450: \$? = $ac_status" >&5 16451 (exit $ac_status); }; }; then 16452 : 16453else 16454 echo "$as_me: failed program was:" >&5 16455cat conftest.$ac_ext >&5 16456cf_have_incdir=yes 16457fi 16458rm -f conftest.$ac_objext conftest.$ac_ext 16459 CPPFLAGS=$cf_save_CPPFLAGS 16460 fi 16461 fi 16462 fi 16463 16464 if test "$cf_have_incdir" = no ; then 16465 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 16466 16467echo "${as_me:-configure}:16467: testing adding $cf_add_incdir to include-path ..." 1>&5 16468 16469 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 16470 16471 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 16472 test "$cf_top_incdir" = "$cf_add_incdir" && break 16473 cf_add_incdir="$cf_top_incdir" 16474 else 16475 break 16476 fi 16477 fi 16478 done 16479 done 16480fi 16481 16482if test -n "$with_hashed_db/lib" ; then 16483 for cf_add_libdir in $with_hashed_db/lib 16484 do 16485 if test $cf_add_libdir = /usr/lib ; then 16486 : 16487 elif test -d $cf_add_libdir 16488 then 16489 cf_have_libdir=no 16490 if test -n "$LDFLAGS$LIBS" ; then 16491 # a loop is needed to ensure we can add subdirs of existing dirs 16492 for cf_test_libdir in $LDFLAGS $LIBS ; do 16493 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 16494 cf_have_libdir=yes; break 16495 fi 16496 done 16497 fi 16498 if test "$cf_have_libdir" = no ; then 16499 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 16500 16501echo "${as_me:-configure}:16501: testing adding $cf_add_libdir to library-path ..." 1>&5 16502 16503 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 16504 fi 16505 fi 16506 done 16507fi 16508 16509 fi 16510esac 16511 16512echo "$as_me:16512: checking for db.h" >&5 16513echo $ECHO_N "checking for db.h... $ECHO_C" >&6 16514if test "${ac_cv_header_db_h+set}" = set; then 16515 echo $ECHO_N "(cached) $ECHO_C" >&6 16516else 16517 cat >conftest.$ac_ext <<_ACEOF 16518#line 16518 "configure" 16519#include "confdefs.h" 16520#include <db.h> 16521_ACEOF 16522if { (eval echo "$as_me:16522: \"$ac_cpp conftest.$ac_ext\"") >&5 16523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 16524 ac_status=$? 16525 egrep -v '^ *\+' conftest.er1 >conftest.err 16526 rm -f conftest.er1 16527 cat conftest.err >&5 16528 echo "$as_me:16528: \$? = $ac_status" >&5 16529 (exit $ac_status); } >/dev/null; then 16530 if test -s conftest.err; then 16531 ac_cpp_err=$ac_c_preproc_warn_flag 16532 else 16533 ac_cpp_err= 16534 fi 16535else 16536 ac_cpp_err=yes 16537fi 16538if test -z "$ac_cpp_err"; then 16539 ac_cv_header_db_h=yes 16540else 16541 echo "$as_me: failed program was:" >&5 16542 cat conftest.$ac_ext >&5 16543 ac_cv_header_db_h=no 16544fi 16545rm -f conftest.err conftest.$ac_ext 16546fi 16547echo "$as_me:16547: result: $ac_cv_header_db_h" >&5 16548echo "${ECHO_T}$ac_cv_header_db_h" >&6 16549if test $ac_cv_header_db_h = yes; then 16550 16551echo "$as_me:16551: checking for version of db" >&5 16552echo $ECHO_N "checking for version of db... $ECHO_C" >&6 16553if test "${cf_cv_hashed_db_version+set}" = set; then 16554 echo $ECHO_N "(cached) $ECHO_C" >&6 16555else 16556 16557cf_cv_hashed_db_version=unknown 16558 16559for cf_db_version in 1 2 3 4 5 16560do 16561 16562echo "${as_me:-configure}:16562: testing checking for db version $cf_db_version ..." 1>&5 16563 16564 cat >conftest.$ac_ext <<_ACEOF 16565#line 16565 "configure" 16566#include "confdefs.h" 16567 16568$ac_includes_default 16569#include <db.h> 16570 16571#ifdef DB_VERSION_MAJOR 16572 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */ 16573#if $cf_db_version == DB_VERSION_MAJOR 16574 /* ok */ 16575#else 16576 make an error 16577#endif 16578#else 16579#if $cf_db_version == 1 16580 /* ok: assuming this is DB 1.8.5 */ 16581#else 16582 make an error 16583#endif 16584#endif 16585 16586int 16587main () 16588{ 16589DBT *foo = 0 16590 ; 16591 return 0; 16592} 16593_ACEOF 16594rm -f conftest.$ac_objext 16595if { (eval echo "$as_me:16595: \"$ac_compile\"") >&5 16596 (eval $ac_compile) 2>&5 16597 ac_status=$? 16598 echo "$as_me:16598: \$? = $ac_status" >&5 16599 (exit $ac_status); } && 16600 { ac_try='test -s conftest.$ac_objext' 16601 { (eval echo "$as_me:16601: \"$ac_try\"") >&5 16602 (eval $ac_try) 2>&5 16603 ac_status=$? 16604 echo "$as_me:16604: \$? = $ac_status" >&5 16605 (exit $ac_status); }; }; then 16606 16607 cf_cv_hashed_db_version=$cf_db_version 16608 break 16609 16610else 16611 echo "$as_me: failed program was:" >&5 16612cat conftest.$ac_ext >&5 16613fi 16614rm -f conftest.$ac_objext conftest.$ac_ext 16615done 16616 16617fi 16618echo "$as_me:16618: result: $cf_cv_hashed_db_version" >&5 16619echo "${ECHO_T}$cf_cv_hashed_db_version" >&6 16620 16621if test "$cf_cv_hashed_db_version" = unknown ; then 16622 { { echo "$as_me:16622: error: Cannot determine version of db" >&5 16623echo "$as_me: error: Cannot determine version of db" >&2;} 16624 { (exit 1); exit 1; }; } 16625else 16626 16627echo "$as_me:16627: checking for db libraries" >&5 16628echo $ECHO_N "checking for db libraries... $ECHO_C" >&6 16629if test "${cf_cv_hashed_db_libs+set}" = set; then 16630 echo $ECHO_N "(cached) $ECHO_C" >&6 16631else 16632 16633cf_cv_hashed_db_libs=unknown 16634for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db '' 16635do 16636 cf_save_libs="$LIBS" 16637 if test -n "$cf_db_libs"; then 16638 LIBS="-l$cf_db_libs $LIBS" 16639 fi 16640 16641echo "${as_me:-configure}:16641: testing checking for library "$cf_db_libs" ..." 1>&5 16642 16643 cat >conftest.$ac_ext <<_ACEOF 16644#line 16644 "configure" 16645#include "confdefs.h" 16646 16647$ac_includes_default 16648#include <db.h> 16649 16650int 16651main () 16652{ 16653 16654 char *path = "/tmp/foo"; 16655#ifdef DB_VERSION_MAJOR 16656#if DB_VERSION_MAJOR >= 4 16657 DB *result = 0; 16658 db_create(&result, NULL, 0); 16659 result->open(result, 16660 NULL, 16661 path, 16662 path, 16663 DB_HASH, 16664 DB_CREATE, 16665 0644); 16666#elif DB_VERSION_MAJOR >= 3 16667 DB *result = 0; 16668 db_create(&result, NULL, 0); 16669 result->open(result, 16670 path, 16671 path, 16672 DB_HASH, 16673 DB_CREATE, 16674 0644); 16675#elif DB_VERSION_MAJOR >= 2 16676 DB *result = 0; 16677 db_open(path, 16678 DB_HASH, 16679 DB_CREATE, 16680 0644, 16681 (DB_ENV *) 0, 16682 (DB_INFO *) 0, 16683 &result); 16684#endif /* DB_VERSION_MAJOR */ 16685#else 16686 DB *result = dbopen(path, 16687 2, 16688 0644, 16689 DB_HASH, 16690 0); 16691#endif 16692 ${cf_cv_main_return:-return}(result != 0) 16693 16694 ; 16695 return 0; 16696} 16697_ACEOF 16698rm -f conftest.$ac_objext conftest$ac_exeext 16699if { (eval echo "$as_me:16699: \"$ac_link\"") >&5 16700 (eval $ac_link) 2>&5 16701 ac_status=$? 16702 echo "$as_me:16702: \$? = $ac_status" >&5 16703 (exit $ac_status); } && 16704 { ac_try='test -s conftest$ac_exeext' 16705 { (eval echo "$as_me:16705: \"$ac_try\"") >&5 16706 (eval $ac_try) 2>&5 16707 ac_status=$? 16708 echo "$as_me:16708: \$? = $ac_status" >&5 16709 (exit $ac_status); }; }; then 16710 16711 if test -n "$cf_db_libs" ; then 16712 cf_cv_hashed_db_libs=$cf_db_libs 16713 else 16714 cf_cv_hashed_db_libs=default 16715 fi 16716 LIBS="$cf_save_libs" 16717 break 16718 16719else 16720 echo "$as_me: failed program was:" >&5 16721cat conftest.$ac_ext >&5 16722fi 16723rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16724 LIBS="$cf_save_libs" 16725done 16726 16727fi 16728echo "$as_me:16728: result: $cf_cv_hashed_db_libs" >&5 16729echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6 16730 16731 if test "$cf_cv_hashed_db_libs" = unknown ; then 16732 { { echo "$as_me:16732: error: Cannot determine library for db" >&5 16733echo "$as_me: error: Cannot determine library for db" >&2;} 16734 { (exit 1); exit 1; }; } 16735 elif test "$cf_cv_hashed_db_libs" != default ; then 16736 LIBS="-l$cf_cv_hashed_db_libs $LIBS" 16737 fi 16738fi 16739 16740else 16741 16742 { { echo "$as_me:16742: error: Cannot find db.h" >&5 16743echo "$as_me: error: Cannot find db.h" >&2;} 16744 { (exit 1); exit 1; }; } 16745 16746fi 16747 16748fi 16749 16750if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then 16751 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'` 16752 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'` 16753fi 16754 16755# Just in case, check if the C compiler has a bool type. 16756 16757echo "$as_me:16757: checking if we should include stdbool.h" >&5 16758echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6 16759 16760if test "${cf_cv_header_stdbool_h+set}" = set; then 16761 echo $ECHO_N "(cached) $ECHO_C" >&6 16762else 16763 16764 cat >conftest.$ac_ext <<_ACEOF 16765#line 16765 "configure" 16766#include "confdefs.h" 16767 16768int 16769main () 16770{ 16771bool foo = false 16772 ; 16773 return 0; 16774} 16775_ACEOF 16776rm -f conftest.$ac_objext 16777if { (eval echo "$as_me:16777: \"$ac_compile\"") >&5 16778 (eval $ac_compile) 2>&5 16779 ac_status=$? 16780 echo "$as_me:16780: \$? = $ac_status" >&5 16781 (exit $ac_status); } && 16782 { ac_try='test -s conftest.$ac_objext' 16783 { (eval echo "$as_me:16783: \"$ac_try\"") >&5 16784 (eval $ac_try) 2>&5 16785 ac_status=$? 16786 echo "$as_me:16786: \$? = $ac_status" >&5 16787 (exit $ac_status); }; }; then 16788 cf_cv_header_stdbool_h=0 16789else 16790 echo "$as_me: failed program was:" >&5 16791cat conftest.$ac_ext >&5 16792cat >conftest.$ac_ext <<_ACEOF 16793#line 16793 "configure" 16794#include "confdefs.h" 16795 16796#ifndef __BEOS__ 16797#include <stdbool.h> 16798#endif 16799 16800int 16801main () 16802{ 16803bool foo = false 16804 ; 16805 return 0; 16806} 16807_ACEOF 16808rm -f conftest.$ac_objext 16809if { (eval echo "$as_me:16809: \"$ac_compile\"") >&5 16810 (eval $ac_compile) 2>&5 16811 ac_status=$? 16812 echo "$as_me:16812: \$? = $ac_status" >&5 16813 (exit $ac_status); } && 16814 { ac_try='test -s conftest.$ac_objext' 16815 { (eval echo "$as_me:16815: \"$ac_try\"") >&5 16816 (eval $ac_try) 2>&5 16817 ac_status=$? 16818 echo "$as_me:16818: \$? = $ac_status" >&5 16819 (exit $ac_status); }; }; then 16820 cf_cv_header_stdbool_h=1 16821else 16822 echo "$as_me: failed program was:" >&5 16823cat conftest.$ac_ext >&5 16824cf_cv_header_stdbool_h=0 16825fi 16826rm -f conftest.$ac_objext conftest.$ac_ext 16827fi 16828rm -f conftest.$ac_objext conftest.$ac_ext 16829fi 16830 16831if test "$cf_cv_header_stdbool_h" = 1 16832then echo "$as_me:16832: result: yes" >&5 16833echo "${ECHO_T}yes" >&6 16834else echo "$as_me:16834: result: no" >&5 16835echo "${ECHO_T}no" >&6 16836fi 16837 16838echo "$as_me:16838: checking for builtin bool type" >&5 16839echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6 16840 16841if test "${cf_cv_cc_bool_type+set}" = set; then 16842 echo $ECHO_N "(cached) $ECHO_C" >&6 16843else 16844 16845 cat >conftest.$ac_ext <<_ACEOF 16846#line 16846 "configure" 16847#include "confdefs.h" 16848 16849#include <stdio.h> 16850#include <sys/types.h> 16851 16852int 16853main () 16854{ 16855bool x = false 16856 ; 16857 return 0; 16858} 16859_ACEOF 16860rm -f conftest.$ac_objext 16861if { (eval echo "$as_me:16861: \"$ac_compile\"") >&5 16862 (eval $ac_compile) 2>&5 16863 ac_status=$? 16864 echo "$as_me:16864: \$? = $ac_status" >&5 16865 (exit $ac_status); } && 16866 { ac_try='test -s conftest.$ac_objext' 16867 { (eval echo "$as_me:16867: \"$ac_try\"") >&5 16868 (eval $ac_try) 2>&5 16869 ac_status=$? 16870 echo "$as_me:16870: \$? = $ac_status" >&5 16871 (exit $ac_status); }; }; then 16872 cf_cv_cc_bool_type=1 16873else 16874 echo "$as_me: failed program was:" >&5 16875cat conftest.$ac_ext >&5 16876cf_cv_cc_bool_type=0 16877fi 16878rm -f conftest.$ac_objext conftest.$ac_ext 16879 16880fi 16881 16882if test "$cf_cv_cc_bool_type" = 1 16883then echo "$as_me:16883: result: yes" >&5 16884echo "${ECHO_T}yes" >&6 16885else echo "$as_me:16885: result: no" >&5 16886echo "${ECHO_T}no" >&6 16887fi 16888 16889# Check for C++ compiler characteristics (and ensure that it's there!) 16890if test -n "$CXX" ; then 16891 ac_ext=cc 16892ac_cpp='$CXXCPP $CPPFLAGS' 16893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16896ac_main_return=return 16897 16898if test -n "$GXX" ; then 16899case $cf_cv_system_name in #(vi 16900os2*) #(vi 16901 cf_stdcpp_libname=stdcpp 16902 ;; 16903*) 16904 cf_stdcpp_libname=stdc++ 16905 ;; 16906esac 16907echo "$as_me:16907: checking for library $cf_stdcpp_libname" >&5 16908echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6 16909if test "${cf_cv_libstdcpp+set}" = set; then 16910 echo $ECHO_N "(cached) $ECHO_C" >&6 16911else 16912 16913 cf_save="$LIBS" 16914 LIBS="-l$cf_stdcpp_libname $LIBS" 16915cat >conftest.$ac_ext <<_ACEOF 16916#line 16916 "configure" 16917#include "confdefs.h" 16918 16919#include <strstream.h> 16920int 16921main () 16922{ 16923 16924char buf[80]; 16925strstreambuf foo(buf, sizeof(buf)) 16926 16927 ; 16928 return 0; 16929} 16930_ACEOF 16931rm -f conftest.$ac_objext conftest$ac_exeext 16932if { (eval echo "$as_me:16932: \"$ac_link\"") >&5 16933 (eval $ac_link) 2>&5 16934 ac_status=$? 16935 echo "$as_me:16935: \$? = $ac_status" >&5 16936 (exit $ac_status); } && 16937 { ac_try='test -s conftest$ac_exeext' 16938 { (eval echo "$as_me:16938: \"$ac_try\"") >&5 16939 (eval $ac_try) 2>&5 16940 ac_status=$? 16941 echo "$as_me:16941: \$? = $ac_status" >&5 16942 (exit $ac_status); }; }; then 16943 cf_cv_libstdcpp=yes 16944else 16945 echo "$as_me: failed program was:" >&5 16946cat conftest.$ac_ext >&5 16947cf_cv_libstdcpp=no 16948fi 16949rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16950 LIBS="$cf_save" 16951 16952fi 16953echo "$as_me:16953: result: $cf_cv_libstdcpp" >&5 16954echo "${ECHO_T}$cf_cv_libstdcpp" >&6 16955test "$cf_cv_libstdcpp" = yes && CXXLIBS="-l$cf_stdcpp_libname $CXXLIBS" 16956fi 16957 16958 echo "$as_me:16958: checking whether $CXX understands -c and -o together" >&5 16959echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6 16960if test "${cf_cv_prog_CXX_c_o+set}" = set; then 16961 echo $ECHO_N "(cached) $ECHO_C" >&6 16962else 16963 16964cat > conftest.$ac_ext <<CF_EOF 16965#include <stdio.h> 16966int main() 16967{ 16968 ${cf_cv_main_return:-return}(0); 16969} 16970CF_EOF 16971# We do the test twice because some compilers refuse to overwrite an 16972# existing .o file with -o, though they will create one. 16973ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 16974if { (eval echo "$as_me:16974: \"$ac_try\"") >&5 16975 (eval $ac_try) 2>&5 16976 ac_status=$? 16977 echo "$as_me:16977: \$? = $ac_status" >&5 16978 (exit $ac_status); } && 16979 test -f conftest2.$ac_objext && { (eval echo "$as_me:16979: \"$ac_try\"") >&5 16980 (eval $ac_try) 2>&5 16981 ac_status=$? 16982 echo "$as_me:16982: \$? = $ac_status" >&5 16983 (exit $ac_status); }; 16984then 16985 eval cf_cv_prog_CXX_c_o=yes 16986else 16987 eval cf_cv_prog_CXX_c_o=no 16988fi 16989rm -rf conftest* 16990 16991fi 16992if test $cf_cv_prog_CXX_c_o = yes; then 16993 echo "$as_me:16993: result: yes" >&5 16994echo "${ECHO_T}yes" >&6 16995else 16996 echo "$as_me:16996: result: no" >&5 16997echo "${ECHO_T}no" >&6 16998fi 16999 17000 case $GXX_VERSION in 17001 1*|2.0-6*) 17002 cf_cxx_library=yes 17003 ;; 17004 *-2.7*|2.7*) 17005 17006cf_cxx_library=unknown 17007case $cf_cv_system_name in #(vi 17008os2*) #(vi 17009 cf_gpp_libname=gpp 17010 ;; 17011*) 17012 cf_gpp_libname=g++ 17013 ;; 17014esac 17015if test "$GXX" = yes; then 17016 echo "$as_me:17016: checking for lib$cf_gpp_libname" >&5 17017echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6 17018 cf_save="$LIBS" 17019 LIBS="-l$cf_gpp_libname $LIBS" 17020 cat >conftest.$ac_ext <<_ACEOF 17021#line 17021 "configure" 17022#include "confdefs.h" 17023 17024#include <$cf_gpp_libname/builtin.h> 17025 17026int 17027main () 17028{ 17029two_arg_error_handler_t foo2 = lib_error_handler 17030 ; 17031 return 0; 17032} 17033_ACEOF 17034rm -f conftest.$ac_objext conftest$ac_exeext 17035if { (eval echo "$as_me:17035: \"$ac_link\"") >&5 17036 (eval $ac_link) 2>&5 17037 ac_status=$? 17038 echo "$as_me:17038: \$? = $ac_status" >&5 17039 (exit $ac_status); } && 17040 { ac_try='test -s conftest$ac_exeext' 17041 { (eval echo "$as_me:17041: \"$ac_try\"") >&5 17042 (eval $ac_try) 2>&5 17043 ac_status=$? 17044 echo "$as_me:17044: \$? = $ac_status" >&5 17045 (exit $ac_status); }; }; then 17046 cf_cxx_library=yes 17047 CXXLIBS="-l$cf_gpp_libname $CXXLIBS" 17048 if test "$cf_gpp_libname" = cpp ; then 17049 cat >>confdefs.h <<\EOF 17050#define HAVE_GPP_BUILTIN_H 1 17051EOF 17052 17053 else 17054 cat >>confdefs.h <<\EOF 17055#define HAVE_GXX_BUILTIN_H 1 17056EOF 17057 17058 fi 17059else 17060 echo "$as_me: failed program was:" >&5 17061cat conftest.$ac_ext >&5 17062cat >conftest.$ac_ext <<_ACEOF 17063#line 17063 "configure" 17064#include "confdefs.h" 17065 17066#include <builtin.h> 17067 17068int 17069main () 17070{ 17071two_arg_error_handler_t foo2 = lib_error_handler 17072 ; 17073 return 0; 17074} 17075_ACEOF 17076rm -f conftest.$ac_objext conftest$ac_exeext 17077if { (eval echo "$as_me:17077: \"$ac_link\"") >&5 17078 (eval $ac_link) 2>&5 17079 ac_status=$? 17080 echo "$as_me:17080: \$? = $ac_status" >&5 17081 (exit $ac_status); } && 17082 { ac_try='test -s conftest$ac_exeext' 17083 { (eval echo "$as_me:17083: \"$ac_try\"") >&5 17084 (eval $ac_try) 2>&5 17085 ac_status=$? 17086 echo "$as_me:17086: \$? = $ac_status" >&5 17087 (exit $ac_status); }; }; then 17088 cf_cxx_library=yes 17089 CXXLIBS="-l$cf_gpp_libname $CXXLIBS" 17090 cat >>confdefs.h <<\EOF 17091#define HAVE_BUILTIN_H 1 17092EOF 17093 17094else 17095 echo "$as_me: failed program was:" >&5 17096cat conftest.$ac_ext >&5 17097cf_cxx_library=no 17098fi 17099rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17100fi 17101rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17102 LIBS="$cf_save" 17103 echo "$as_me:17103: result: $cf_cxx_library" >&5 17104echo "${ECHO_T}$cf_cxx_library" >&6 17105fi 17106 17107 ;; 17108 *) 17109 cf_cxx_library=no 17110 ;; 17111 esac 17112 17113 ac_ext=cc 17114ac_cpp='$CXXCPP $CPPFLAGS' 17115ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17116ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17117ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17118ac_main_return=return 17119echo "$as_me:17119: checking how to run the C++ preprocessor" >&5 17120echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 17121if test -z "$CXXCPP"; then 17122 if test "${ac_cv_prog_CXXCPP+set}" = set; then 17123 echo $ECHO_N "(cached) $ECHO_C" >&6 17124else 17125 # Double quotes because CXXCPP needs to be expanded 17126 for CXXCPP in "$CXX -E" "/lib/cpp" 17127 do 17128 ac_preproc_ok=false 17129for ac_cxx_preproc_warn_flag in '' yes 17130do 17131 # Use a header file that comes with gcc, so configuring glibc 17132 # with a fresh cross-compiler works. 17133 # On the NeXT, cc -E runs the code through the compiler's parser, 17134 # not just through cpp. "Syntax error" is here to catch this case. 17135 cat >conftest.$ac_ext <<_ACEOF 17136#line 17136 "configure" 17137#include "confdefs.h" 17138#include <assert.h> 17139 Syntax error 17140_ACEOF 17141if { (eval echo "$as_me:17141: \"$ac_cpp conftest.$ac_ext\"") >&5 17142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 17143 ac_status=$? 17144 egrep -v '^ *\+' conftest.er1 >conftest.err 17145 rm -f conftest.er1 17146 cat conftest.err >&5 17147 echo "$as_me:17147: \$? = $ac_status" >&5 17148 (exit $ac_status); } >/dev/null; then 17149 if test -s conftest.err; then 17150 ac_cpp_err=$ac_cxx_preproc_warn_flag 17151 else 17152 ac_cpp_err= 17153 fi 17154else 17155 ac_cpp_err=yes 17156fi 17157if test -z "$ac_cpp_err"; then 17158 : 17159else 17160 echo "$as_me: failed program was:" >&5 17161 cat conftest.$ac_ext >&5 17162 # Broken: fails on valid input. 17163continue 17164fi 17165rm -f conftest.err conftest.$ac_ext 17166 17167 # OK, works on sane cases. Now check whether non-existent headers 17168 # can be detected and how. 17169 cat >conftest.$ac_ext <<_ACEOF 17170#line 17170 "configure" 17171#include "confdefs.h" 17172#include <ac_nonexistent.h> 17173_ACEOF 17174if { (eval echo "$as_me:17174: \"$ac_cpp conftest.$ac_ext\"") >&5 17175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 17176 ac_status=$? 17177 egrep -v '^ *\+' conftest.er1 >conftest.err 17178 rm -f conftest.er1 17179 cat conftest.err >&5 17180 echo "$as_me:17180: \$? = $ac_status" >&5 17181 (exit $ac_status); } >/dev/null; then 17182 if test -s conftest.err; then 17183 ac_cpp_err=$ac_cxx_preproc_warn_flag 17184 else 17185 ac_cpp_err= 17186 fi 17187else 17188 ac_cpp_err=yes 17189fi 17190if test -z "$ac_cpp_err"; then 17191 # Broken: success on invalid input. 17192continue 17193else 17194 echo "$as_me: failed program was:" >&5 17195 cat conftest.$ac_ext >&5 17196 # Passes both tests. 17197ac_preproc_ok=: 17198break 17199fi 17200rm -f conftest.err conftest.$ac_ext 17201 17202done 17203# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 17204rm -f conftest.err conftest.$ac_ext 17205if $ac_preproc_ok; then 17206 break 17207fi 17208 17209 done 17210 ac_cv_prog_CXXCPP=$CXXCPP 17211 17212fi 17213 CXXCPP=$ac_cv_prog_CXXCPP 17214else 17215 ac_cv_prog_CXXCPP=$CXXCPP 17216fi 17217echo "$as_me:17217: result: $CXXCPP" >&5 17218echo "${ECHO_T}$CXXCPP" >&6 17219ac_preproc_ok=false 17220for ac_cxx_preproc_warn_flag in '' yes 17221do 17222 # Use a header file that comes with gcc, so configuring glibc 17223 # with a fresh cross-compiler works. 17224 # On the NeXT, cc -E runs the code through the compiler's parser, 17225 # not just through cpp. "Syntax error" is here to catch this case. 17226 cat >conftest.$ac_ext <<_ACEOF 17227#line 17227 "configure" 17228#include "confdefs.h" 17229#include <assert.h> 17230 Syntax error 17231_ACEOF 17232if { (eval echo "$as_me:17232: \"$ac_cpp conftest.$ac_ext\"") >&5 17233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 17234 ac_status=$? 17235 egrep -v '^ *\+' conftest.er1 >conftest.err 17236 rm -f conftest.er1 17237 cat conftest.err >&5 17238 echo "$as_me:17238: \$? = $ac_status" >&5 17239 (exit $ac_status); } >/dev/null; then 17240 if test -s conftest.err; then 17241 ac_cpp_err=$ac_cxx_preproc_warn_flag 17242 else 17243 ac_cpp_err= 17244 fi 17245else 17246 ac_cpp_err=yes 17247fi 17248if test -z "$ac_cpp_err"; then 17249 : 17250else 17251 echo "$as_me: failed program was:" >&5 17252 cat conftest.$ac_ext >&5 17253 # Broken: fails on valid input. 17254continue 17255fi 17256rm -f conftest.err conftest.$ac_ext 17257 17258 # OK, works on sane cases. Now check whether non-existent headers 17259 # can be detected and how. 17260 cat >conftest.$ac_ext <<_ACEOF 17261#line 17261 "configure" 17262#include "confdefs.h" 17263#include <ac_nonexistent.h> 17264_ACEOF 17265if { (eval echo "$as_me:17265: \"$ac_cpp conftest.$ac_ext\"") >&5 17266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 17267 ac_status=$? 17268 egrep -v '^ *\+' conftest.er1 >conftest.err 17269 rm -f conftest.er1 17270 cat conftest.err >&5 17271 echo "$as_me:17271: \$? = $ac_status" >&5 17272 (exit $ac_status); } >/dev/null; then 17273 if test -s conftest.err; then 17274 ac_cpp_err=$ac_cxx_preproc_warn_flag 17275 else 17276 ac_cpp_err= 17277 fi 17278else 17279 ac_cpp_err=yes 17280fi 17281if test -z "$ac_cpp_err"; then 17282 # Broken: success on invalid input. 17283continue 17284else 17285 echo "$as_me: failed program was:" >&5 17286 cat conftest.$ac_ext >&5 17287 # Passes both tests. 17288ac_preproc_ok=: 17289break 17290fi 17291rm -f conftest.err conftest.$ac_ext 17292 17293done 17294# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 17295rm -f conftest.err conftest.$ac_ext 17296if $ac_preproc_ok; then 17297 : 17298else 17299 { { echo "$as_me:17299: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5 17300echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;} 17301 { (exit 1); exit 1; }; } 17302fi 17303 17304ac_ext=cc 17305ac_cpp='$CXXCPP $CPPFLAGS' 17306ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17307ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17308ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17309ac_main_return=return 17310 17311for ac_header in iostream typeinfo 17312do 17313as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 17314echo "$as_me:17314: checking for $ac_header" >&5 17315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 17316if eval "test \"\${$as_ac_Header+set}\" = set"; then 17317 echo $ECHO_N "(cached) $ECHO_C" >&6 17318else 17319 cat >conftest.$ac_ext <<_ACEOF 17320#line 17320 "configure" 17321#include "confdefs.h" 17322#include <$ac_header> 17323_ACEOF 17324if { (eval echo "$as_me:17324: \"$ac_cpp conftest.$ac_ext\"") >&5 17325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 17326 ac_status=$? 17327 egrep -v '^ *\+' conftest.er1 >conftest.err 17328 rm -f conftest.er1 17329 cat conftest.err >&5 17330 echo "$as_me:17330: \$? = $ac_status" >&5 17331 (exit $ac_status); } >/dev/null; then 17332 if test -s conftest.err; then 17333 ac_cpp_err=$ac_cxx_preproc_warn_flag 17334 else 17335 ac_cpp_err= 17336 fi 17337else 17338 ac_cpp_err=yes 17339fi 17340if test -z "$ac_cpp_err"; then 17341 eval "$as_ac_Header=yes" 17342else 17343 echo "$as_me: failed program was:" >&5 17344 cat conftest.$ac_ext >&5 17345 eval "$as_ac_Header=no" 17346fi 17347rm -f conftest.err conftest.$ac_ext 17348fi 17349echo "$as_me:17349: result: `eval echo '${'$as_ac_Header'}'`" >&5 17350echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 17351if test `eval echo '${'$as_ac_Header'}'` = yes; then 17352 cat >>confdefs.h <<EOF 17353#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 17354EOF 17355 17356fi 17357done 17358 17359 if test x"$ac_cv_header_iostream" = xyes ; then 17360 echo "$as_me:17360: checking if iostream uses std-namespace" >&5 17361echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6 17362 cat >conftest.$ac_ext <<_ACEOF 17363#line 17363 "configure" 17364#include "confdefs.h" 17365 17366#include <iostream> 17367using std::endl; 17368using std::cerr; 17369int 17370main () 17371{ 17372 17373cerr << "testing" << endl; 17374 17375 ; 17376 return 0; 17377} 17378_ACEOF 17379rm -f conftest.$ac_objext 17380if { (eval echo "$as_me:17380: \"$ac_compile\"") >&5 17381 (eval $ac_compile) 2>&5 17382 ac_status=$? 17383 echo "$as_me:17383: \$? = $ac_status" >&5 17384 (exit $ac_status); } && 17385 { ac_try='test -s conftest.$ac_objext' 17386 { (eval echo "$as_me:17386: \"$ac_try\"") >&5 17387 (eval $ac_try) 2>&5 17388 ac_status=$? 17389 echo "$as_me:17389: \$? = $ac_status" >&5 17390 (exit $ac_status); }; }; then 17391 cf_iostream_namespace=yes 17392else 17393 echo "$as_me: failed program was:" >&5 17394cat conftest.$ac_ext >&5 17395cf_iostream_namespace=no 17396fi 17397rm -f conftest.$ac_objext conftest.$ac_ext 17398 echo "$as_me:17398: result: $cf_iostream_namespace" >&5 17399echo "${ECHO_T}$cf_iostream_namespace" >&6 17400 if test "$cf_iostream_namespace" = yes ; then 17401 cat >>confdefs.h <<\EOF 17402#define IOSTREAM_NAMESPACE 1 17403EOF 17404 17405 fi 17406 fi 17407 17408echo "$as_me:17408: checking if we should include stdbool.h" >&5 17409echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6 17410 17411if test "${cf_cv_header_stdbool_h+set}" = set; then 17412 echo $ECHO_N "(cached) $ECHO_C" >&6 17413else 17414 17415 cat >conftest.$ac_ext <<_ACEOF 17416#line 17416 "configure" 17417#include "confdefs.h" 17418 17419int 17420main () 17421{ 17422bool foo = false 17423 ; 17424 return 0; 17425} 17426_ACEOF 17427rm -f conftest.$ac_objext 17428if { (eval echo "$as_me:17428: \"$ac_compile\"") >&5 17429 (eval $ac_compile) 2>&5 17430 ac_status=$? 17431 echo "$as_me:17431: \$? = $ac_status" >&5 17432 (exit $ac_status); } && 17433 { ac_try='test -s conftest.$ac_objext' 17434 { (eval echo "$as_me:17434: \"$ac_try\"") >&5 17435 (eval $ac_try) 2>&5 17436 ac_status=$? 17437 echo "$as_me:17437: \$? = $ac_status" >&5 17438 (exit $ac_status); }; }; then 17439 cf_cv_header_stdbool_h=0 17440else 17441 echo "$as_me: failed program was:" >&5 17442cat conftest.$ac_ext >&5 17443cat >conftest.$ac_ext <<_ACEOF 17444#line 17444 "configure" 17445#include "confdefs.h" 17446 17447#ifndef __BEOS__ 17448#include <stdbool.h> 17449#endif 17450 17451int 17452main () 17453{ 17454bool foo = false 17455 ; 17456 return 0; 17457} 17458_ACEOF 17459rm -f conftest.$ac_objext 17460if { (eval echo "$as_me:17460: \"$ac_compile\"") >&5 17461 (eval $ac_compile) 2>&5 17462 ac_status=$? 17463 echo "$as_me:17463: \$? = $ac_status" >&5 17464 (exit $ac_status); } && 17465 { ac_try='test -s conftest.$ac_objext' 17466 { (eval echo "$as_me:17466: \"$ac_try\"") >&5 17467 (eval $ac_try) 2>&5 17468 ac_status=$? 17469 echo "$as_me:17469: \$? = $ac_status" >&5 17470 (exit $ac_status); }; }; then 17471 cf_cv_header_stdbool_h=1 17472else 17473 echo "$as_me: failed program was:" >&5 17474cat conftest.$ac_ext >&5 17475cf_cv_header_stdbool_h=0 17476fi 17477rm -f conftest.$ac_objext conftest.$ac_ext 17478fi 17479rm -f conftest.$ac_objext conftest.$ac_ext 17480fi 17481 17482if test "$cf_cv_header_stdbool_h" = 1 17483then echo "$as_me:17483: result: yes" >&5 17484echo "${ECHO_T}yes" >&6 17485else echo "$as_me:17485: result: no" >&5 17486echo "${ECHO_T}no" >&6 17487fi 17488 17489echo "$as_me:17489: checking for builtin bool type" >&5 17490echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6 17491 17492if test "${cf_cv_builtin_bool+set}" = set; then 17493 echo $ECHO_N "(cached) $ECHO_C" >&6 17494else 17495 17496 cat >conftest.$ac_ext <<_ACEOF 17497#line 17497 "configure" 17498#include "confdefs.h" 17499 17500#include <stdio.h> 17501#include <sys/types.h> 17502 17503int 17504main () 17505{ 17506bool x = false 17507 ; 17508 return 0; 17509} 17510_ACEOF 17511rm -f conftest.$ac_objext 17512if { (eval echo "$as_me:17512: \"$ac_compile\"") >&5 17513 (eval $ac_compile) 2>&5 17514 ac_status=$? 17515 echo "$as_me:17515: \$? = $ac_status" >&5 17516 (exit $ac_status); } && 17517 { ac_try='test -s conftest.$ac_objext' 17518 { (eval echo "$as_me:17518: \"$ac_try\"") >&5 17519 (eval $ac_try) 2>&5 17520 ac_status=$? 17521 echo "$as_me:17521: \$? = $ac_status" >&5 17522 (exit $ac_status); }; }; then 17523 cf_cv_builtin_bool=1 17524else 17525 echo "$as_me: failed program was:" >&5 17526cat conftest.$ac_ext >&5 17527cf_cv_builtin_bool=0 17528fi 17529rm -f conftest.$ac_objext conftest.$ac_ext 17530 17531fi 17532 17533if test "$cf_cv_builtin_bool" = 1 17534then echo "$as_me:17534: result: yes" >&5 17535echo "${ECHO_T}yes" >&6 17536else echo "$as_me:17536: result: no" >&5 17537echo "${ECHO_T}no" >&6 17538fi 17539 17540echo "$as_me:17540: checking for size of bool" >&5 17541echo $ECHO_N "checking for size of bool... $ECHO_C" >&6 17542if test "${cf_cv_type_of_bool+set}" = set; then 17543 echo $ECHO_N "(cached) $ECHO_C" >&6 17544else 17545 17546 rm -f cf_test.out 17547 if test "$cross_compiling" = yes; then 17548 cf_cv_type_of_bool=unknown 17549else 17550 cat >conftest.$ac_ext <<_ACEOF 17551#line 17551 "configure" 17552#include "confdefs.h" 17553 17554#include <stdlib.h> 17555#include <stdio.h> 17556 17557#if defined(__cplusplus) 17558 17559#ifdef HAVE_GXX_BUILTIN_H 17560#include <g++/builtin.h> 17561#elif HAVE_GPP_BUILTIN_H 17562#include <gpp/builtin.h> 17563#elif HAVE_BUILTIN_H 17564#include <builtin.h> 17565#endif 17566 17567#else 17568 17569#if $cf_cv_header_stdbool_h 17570#include <stdbool.h> 17571#endif 17572 17573#endif 17574 17575main() 17576{ 17577 FILE *fp = fopen("cf_test.out", "w"); 17578 if (fp != 0) { 17579 bool x = true; 17580 if ((bool)(-x) >= 0) 17581 fputs("unsigned ", fp); 17582 if (sizeof(x) == sizeof(int)) fputs("int", fp); 17583 else if (sizeof(x) == sizeof(char)) fputs("char", fp); 17584 else if (sizeof(x) == sizeof(short))fputs("short",fp); 17585 else if (sizeof(x) == sizeof(long)) fputs("long", fp); 17586 fclose(fp); 17587 } 17588 ${cf_cv_main_return:-return}(0); 17589} 17590 17591_ACEOF 17592rm -f conftest$ac_exeext 17593if { (eval echo "$as_me:17593: \"$ac_link\"") >&5 17594 (eval $ac_link) 2>&5 17595 ac_status=$? 17596 echo "$as_me:17596: \$? = $ac_status" >&5 17597 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17598 { (eval echo "$as_me:17598: \"$ac_try\"") >&5 17599 (eval $ac_try) 2>&5 17600 ac_status=$? 17601 echo "$as_me:17601: \$? = $ac_status" >&5 17602 (exit $ac_status); }; }; then 17603 cf_cv_type_of_bool=`cat cf_test.out` 17604 if test -z "$cf_cv_type_of_bool"; then 17605 cf_cv_type_of_bool=unknown 17606 fi 17607else 17608 echo "$as_me: program exited with status $ac_status" >&5 17609echo "$as_me: failed program was:" >&5 17610cat conftest.$ac_ext >&5 17611cf_cv_type_of_bool=unknown 17612fi 17613rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17614fi 17615 17616fi 17617 17618 rm -f cf_test.out 17619echo "$as_me:17619: result: $cf_cv_type_of_bool" >&5 17620echo "${ECHO_T}$cf_cv_type_of_bool" >&6 17621if test "$cf_cv_type_of_bool" = unknown ; then 17622 case .$NCURSES_BOOL in #(vi 17623 .auto|.) NCURSES_BOOL=unsigned;; 17624 esac 17625 { echo "$as_me:17625: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5 17626echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;} 17627 cf_cv_type_of_bool=$NCURSES_BOOL 17628fi 17629 17630echo "$as_me:17630: checking for special defines needed for etip.h" >&5 17631echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6 17632cf_save_CXXFLAGS="$CXXFLAGS" 17633cf_result="none" 17634for cf_math in "" MATH_H 17635do 17636for cf_excp in "" MATH_EXCEPTION 17637do 17638 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -I${srcdir}/include" 17639 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}" 17640 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}" 17641cat >conftest.$ac_ext <<_ACEOF 17642#line 17642 "configure" 17643#include "confdefs.h" 17644 17645#include <etip.h.in> 17646 17647int 17648main () 17649{ 17650 17651 ; 17652 return 0; 17653} 17654_ACEOF 17655rm -f conftest.$ac_objext 17656if { (eval echo "$as_me:17656: \"$ac_compile\"") >&5 17657 (eval $ac_compile) 2>&5 17658 ac_status=$? 17659 echo "$as_me:17659: \$? = $ac_status" >&5 17660 (exit $ac_status); } && 17661 { ac_try='test -s conftest.$ac_objext' 17662 { (eval echo "$as_me:17662: \"$ac_try\"") >&5 17663 (eval $ac_try) 2>&5 17664 ac_status=$? 17665 echo "$as_me:17665: \$? = $ac_status" >&5 17666 (exit $ac_status); }; }; then 17667 17668 test -n "$cf_math" && cat >>confdefs.h <<EOF 17669#define ETIP_NEEDS_${cf_math} 1 17670EOF 17671 17672 test -n "$cf_excp" && cat >>confdefs.h <<EOF 17673#define ETIP_NEEDS_${cf_excp} 1 17674EOF 17675 17676 cf_result="$cf_math $cf_excp" 17677 break 17678 17679else 17680 echo "$as_me: failed program was:" >&5 17681cat conftest.$ac_ext >&5 17682fi 17683rm -f conftest.$ac_objext conftest.$ac_ext 17684done 17685done 17686echo "$as_me:17686: result: $cf_result" >&5 17687echo "${ECHO_T}$cf_result" >&6 17688CXXFLAGS="$cf_save_CXXFLAGS" 17689 17690if test -n "$CXX"; then 17691echo "$as_me:17691: checking if $CXX accepts parameter initialization" >&5 17692echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6 17693if test "${cf_cv_cpp_param_init+set}" = set; then 17694 echo $ECHO_N "(cached) $ECHO_C" >&6 17695else 17696 17697 ac_ext=cc 17698ac_cpp='$CXXCPP $CPPFLAGS' 17699ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17700ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17701ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17702ac_main_return=return 17703 17704 if test "$cross_compiling" = yes; then 17705 cf_cv_cpp_param_init=unknown 17706else 17707 cat >conftest.$ac_ext <<_ACEOF 17708#line 17708 "configure" 17709#include "confdefs.h" 17710 17711class TEST { 17712private: 17713 int value; 17714public: 17715 TEST(int x = 1); 17716 ~TEST(); 17717}; 17718 17719TEST::TEST(int x = 1) // some compilers do not like second initializer 17720{ 17721 value = x; 17722} 17723void main() { } 17724 17725_ACEOF 17726rm -f conftest$ac_exeext 17727if { (eval echo "$as_me:17727: \"$ac_link\"") >&5 17728 (eval $ac_link) 2>&5 17729 ac_status=$? 17730 echo "$as_me:17730: \$? = $ac_status" >&5 17731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17732 { (eval echo "$as_me:17732: \"$ac_try\"") >&5 17733 (eval $ac_try) 2>&5 17734 ac_status=$? 17735 echo "$as_me:17735: \$? = $ac_status" >&5 17736 (exit $ac_status); }; }; then 17737 cf_cv_cpp_param_init=yes 17738else 17739 echo "$as_me: program exited with status $ac_status" >&5 17740echo "$as_me: failed program was:" >&5 17741cat conftest.$ac_ext >&5 17742cf_cv_cpp_param_init=no 17743fi 17744rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17745fi 17746 ac_ext=cc 17747ac_cpp='$CXXCPP $CPPFLAGS' 17748ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17749ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17750ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17751ac_main_return=return 17752 17753fi 17754echo "$as_me:17754: result: $cf_cv_cpp_param_init" >&5 17755echo "${ECHO_T}$cf_cv_cpp_param_init" >&6 17756fi 17757test "$cf_cv_cpp_param_init" = yes && cat >>confdefs.h <<\EOF 17758#define CPP_HAS_PARAM_INIT 1 17759EOF 17760 17761if test -n "$CXX"; then 17762 17763echo "$as_me:17763: checking if $CXX accepts static_cast" >&5 17764echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6 17765if test "${cf_cv_cpp_static_cast+set}" = set; then 17766 echo $ECHO_N "(cached) $ECHO_C" >&6 17767else 17768 17769 ac_ext=cc 17770ac_cpp='$CXXCPP $CPPFLAGS' 17771ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17772ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17773ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17774ac_main_return=return 17775 17776 cat >conftest.$ac_ext <<_ACEOF 17777#line 17777 "configure" 17778#include "confdefs.h" 17779 17780class NCursesPanel 17781{ 17782public: 17783 NCursesPanel(int nlines, 17784 int ncols, 17785 int begin_y = 0, 17786 int begin_x = 0) 17787 { 17788 } 17789 17790 ~NCursesPanel(); 17791}; 17792 17793template<class T> class NCursesUserPanel : public NCursesPanel 17794{ 17795public: 17796 NCursesUserPanel (int nlines, 17797 int ncols, 17798 int begin_y = 0, 17799 int begin_x = 0, 17800 const T* p_UserData = static_cast<T*>(0)) 17801 : NCursesPanel (nlines, ncols, begin_y, begin_x) 17802 { 17803 }; 17804 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel() 17805 { 17806 }; 17807 17808 virtual ~NCursesUserPanel() {}; 17809}; 17810 17811int 17812main () 17813{ 17814 17815 const char* p_UserData = static_cast<char*>(0) 17816 ; 17817 return 0; 17818} 17819_ACEOF 17820rm -f conftest.$ac_objext 17821if { (eval echo "$as_me:17821: \"$ac_compile\"") >&5 17822 (eval $ac_compile) 2>&5 17823 ac_status=$? 17824 echo "$as_me:17824: \$? = $ac_status" >&5 17825 (exit $ac_status); } && 17826 { ac_try='test -s conftest.$ac_objext' 17827 { (eval echo "$as_me:17827: \"$ac_try\"") >&5 17828 (eval $ac_try) 2>&5 17829 ac_status=$? 17830 echo "$as_me:17830: \$? = $ac_status" >&5 17831 (exit $ac_status); }; }; then 17832 cf_cv_cpp_static_cast=yes 17833else 17834 echo "$as_me: failed program was:" >&5 17835cat conftest.$ac_ext >&5 17836cf_cv_cpp_static_cast=no 17837fi 17838rm -f conftest.$ac_objext conftest.$ac_ext 17839 17840 ac_ext=cc 17841ac_cpp='$CXXCPP $CPPFLAGS' 17842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17845ac_main_return=return 17846 17847fi 17848echo "$as_me:17848: result: $cf_cv_cpp_static_cast" >&5 17849echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6 17850 17851fi 17852 17853test "$cf_cv_cpp_static_cast" = yes && cat >>confdefs.h <<\EOF 17854#define CPP_HAS_STATIC_CAST 1 17855EOF 17856 17857 CXX_AR='$(AR)' 17858 CXX_ARFLAGS='$(ARFLAGS)' 17859 case $cf_cv_system_name in #(vi 17860 irix*) #(vi 17861 if test "$GXX" != yes ; then 17862 CXX_AR='$(CXX)' 17863 CXX_ARFLAGS='-ar -o' 17864 fi 17865 ;; 17866 sco3.2v5*) #(vi 17867 CXXLDFLAGS="-u main" 17868 ;; 17869 solaris2*) 17870 if test "$GXX" != yes ; then 17871 CXX_AR='$(CXX)' 17872 CXX_ARFLAGS='-xar -o' 17873 fi 17874 ;; 17875 esac 17876 17877else 17878 cf_cxx_library=no 17879 cf_cv_builtin_bool=1 17880 17881 # Just because we are not configuring against C++ right now does not 17882 # mean that a user will not want to use C++. Some distributors disable 17883 # the C++ portion of this configuration as a shortcut (or just to avoid 17884 # compiling the demo in the c++ directory). So we need a reasonable 17885 # default for the 'bool' type. 17886 # 17887 # Caveat: since the storage of the bool type is not standardized, it 17888 # may change. 17889 17890 if test "$NCURSES_BOOL" != auto ; then 17891 cf_cv_type_of_bool=$NCURSES_BOOL 17892 cf_cv_header_stdbool_h=0 17893 else 17894 if test "$cf_cv_header_stdbool_h" = 1 ; then 17895 17896echo "$as_me:17896: checking for size of bool" >&5 17897echo $ECHO_N "checking for size of bool... $ECHO_C" >&6 17898if test "${cf_cv_type_of_bool+set}" = set; then 17899 echo $ECHO_N "(cached) $ECHO_C" >&6 17900else 17901 17902 rm -f cf_test.out 17903 if test "$cross_compiling" = yes; then 17904 cf_cv_type_of_bool=unknown 17905else 17906 cat >conftest.$ac_ext <<_ACEOF 17907#line 17907 "configure" 17908#include "confdefs.h" 17909 17910#include <stdlib.h> 17911#include <stdio.h> 17912 17913#if defined(__cplusplus) 17914 17915#ifdef HAVE_GXX_BUILTIN_H 17916#include <g++/builtin.h> 17917#elif HAVE_GPP_BUILTIN_H 17918#include <gpp/builtin.h> 17919#elif HAVE_BUILTIN_H 17920#include <builtin.h> 17921#endif 17922 17923#else 17924 17925#if $cf_cv_header_stdbool_h 17926#include <stdbool.h> 17927#endif 17928 17929#endif 17930 17931main() 17932{ 17933 FILE *fp = fopen("cf_test.out", "w"); 17934 if (fp != 0) { 17935 bool x = true; 17936 if ((bool)(-x) >= 0) 17937 fputs("unsigned ", fp); 17938 if (sizeof(x) == sizeof(int)) fputs("int", fp); 17939 else if (sizeof(x) == sizeof(char)) fputs("char", fp); 17940 else if (sizeof(x) == sizeof(short))fputs("short",fp); 17941 else if (sizeof(x) == sizeof(long)) fputs("long", fp); 17942 fclose(fp); 17943 } 17944 ${cf_cv_main_return:-return}(0); 17945} 17946 17947_ACEOF 17948rm -f conftest$ac_exeext 17949if { (eval echo "$as_me:17949: \"$ac_link\"") >&5 17950 (eval $ac_link) 2>&5 17951 ac_status=$? 17952 echo "$as_me:17952: \$? = $ac_status" >&5 17953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17954 { (eval echo "$as_me:17954: \"$ac_try\"") >&5 17955 (eval $ac_try) 2>&5 17956 ac_status=$? 17957 echo "$as_me:17957: \$? = $ac_status" >&5 17958 (exit $ac_status); }; }; then 17959 cf_cv_type_of_bool=`cat cf_test.out` 17960 if test -z "$cf_cv_type_of_bool"; then 17961 cf_cv_type_of_bool=unknown 17962 fi 17963else 17964 echo "$as_me: program exited with status $ac_status" >&5 17965echo "$as_me: failed program was:" >&5 17966cat conftest.$ac_ext >&5 17967cf_cv_type_of_bool=unknown 17968fi 17969rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17970fi 17971 17972fi 17973 17974 rm -f cf_test.out 17975echo "$as_me:17975: result: $cf_cv_type_of_bool" >&5 17976echo "${ECHO_T}$cf_cv_type_of_bool" >&6 17977if test "$cf_cv_type_of_bool" = unknown ; then 17978 case .$NCURSES_BOOL in #(vi 17979 .auto|.) NCURSES_BOOL=unsigned;; 17980 esac 17981 { echo "$as_me:17981: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5 17982echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;} 17983 cf_cv_type_of_bool=$NCURSES_BOOL 17984fi 17985 17986 else 17987 echo "$as_me:17987: checking for fallback type of bool" >&5 17988echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6 17989 case "$host_cpu" in #(vi 17990 i?86) cf_cv_type_of_bool=char ;; #(vi 17991 *) cf_cv_type_of_bool=int ;; 17992 esac 17993 echo "$as_me:17993: result: $cf_cv_type_of_bool" >&5 17994echo "${ECHO_T}$cf_cv_type_of_bool" >&6 17995 fi 17996 fi 17997fi 17998 17999# If the C compiler did not declare bool, and we did not determine that the C++ 18000# compiler does not declare bool, turn on an ifdef in curses.h that makes the 18001# ncurses library use the same type as C++ bool. Note that this allows one to 18002# specify the type of bool in a configure-script option and postpone 18003# integration with the C++ compiler provided that the types are compatible. 18004USE_CXX_BOOL=1 18005if test $cf_cv_cc_bool_type = 1 18006then 18007 # oops: C has a bool. Unlikely, but C++ could differ. 18008 USE_CXX_BOOL=0 18009elif test $cf_cv_builtin_bool = 0 18010then 18011 # C++ has no bool 18012 USE_CXX_BOOL=0 18013else 18014 # this is the normal case 18015 USE_CXX_BOOL='defined(__cplusplus)' 18016fi 18017 18018if test -f "${srcdir}/Ada95/Makefile.in" ; then 18019 18020 if test "$cf_with_ada" != "no" ; then 18021 if test "$with_libtool" != "no"; then 18022 { echo "$as_me:18022: WARNING: libtool does not support Ada - disabling feature" >&5 18023echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;} 18024 cf_with_ada=no 18025 fi 18026 fi 18027 18028 if test "$cf_with_ada" != "no" ; then 18029 18030cf_ada_make=gnatmake 18031# Extract the first word of "$cf_ada_make", so it can be a program name with args. 18032set dummy $cf_ada_make; ac_word=$2 18033echo "$as_me:18033: checking for $ac_word" >&5 18034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18035if test "${ac_cv_prog_gnat_exists+set}" = set; then 18036 echo $ECHO_N "(cached) $ECHO_C" >&6 18037else 18038 if test -n "$gnat_exists"; then 18039 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test. 18040else 18041 ac_save_IFS=$IFS; IFS=$ac_path_separator 18042ac_dummy="$PATH" 18043for ac_dir in $ac_dummy; do 18044 IFS=$ac_save_IFS 18045 test -z "$ac_dir" && ac_dir=. 18046 $as_executable_p "$ac_dir/$ac_word" || continue 18047ac_cv_prog_gnat_exists="yes" 18048echo "$as_me:18048: found $ac_dir/$ac_word" >&5 18049break 18050done 18051 18052 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no" 18053fi 18054fi 18055gnat_exists=$ac_cv_prog_gnat_exists 18056if test -n "$gnat_exists"; then 18057 echo "$as_me:18057: result: $gnat_exists" >&5 18058echo "${ECHO_T}$gnat_exists" >&6 18059else 18060 echo "$as_me:18060: result: no" >&5 18061echo "${ECHO_T}no" >&6 18062fi 18063 18064if test "$ac_cv_prog_gnat_exists" = no; then 18065 cf_ada_make= 18066else 18067 18068echo "$as_me:18068: checking for gnat version" >&5 18069echo $ECHO_N "checking for gnat version... $ECHO_C" >&6 18070cf_gnat_version=`${cf_ada_make:-gnatmake} -v 2>&1 | \ 18071 grep '[0-9].[0-9][0-9]*' |\ 18072 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'` 18073echo "$as_me:18073: result: $cf_gnat_version" >&5 18074echo "${ECHO_T}$cf_gnat_version" >&6 18075 18076case $cf_gnat_version in #(vi 180773.1[1-9]*|3.[2-9]*|[4-9].*) #(vi 18078 cf_cv_prog_gnat_correct=yes 18079 ;; 18080*) 18081 { echo "$as_me:18081: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5 18082echo "$as_me: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;} 18083 cf_cv_prog_gnat_correct=no 18084 ;; 18085esac 18086 18087 # Extract the first word of "m4", so it can be a program name with args. 18088set dummy m4; ac_word=$2 18089echo "$as_me:18089: checking for $ac_word" >&5 18090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18091if test "${ac_cv_prog_M4_exists+set}" = set; then 18092 echo $ECHO_N "(cached) $ECHO_C" >&6 18093else 18094 if test -n "$M4_exists"; then 18095 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test. 18096else 18097 ac_save_IFS=$IFS; IFS=$ac_path_separator 18098ac_dummy="$PATH" 18099for ac_dir in $ac_dummy; do 18100 IFS=$ac_save_IFS 18101 test -z "$ac_dir" && ac_dir=. 18102 $as_executable_p "$ac_dir/$ac_word" || continue 18103ac_cv_prog_M4_exists="yes" 18104echo "$as_me:18104: found $ac_dir/$ac_word" >&5 18105break 18106done 18107 18108 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no" 18109fi 18110fi 18111M4_exists=$ac_cv_prog_M4_exists 18112if test -n "$M4_exists"; then 18113 echo "$as_me:18113: result: $M4_exists" >&5 18114echo "${ECHO_T}$M4_exists" >&6 18115else 18116 echo "$as_me:18116: result: no" >&5 18117echo "${ECHO_T}no" >&6 18118fi 18119 18120 if test "$ac_cv_prog_M4_exists" = no; then 18121 cf_cv_prog_gnat_correct=no 18122 echo Ada95 binding required program m4 not found. Ada95 binding disabled. 18123 fi 18124 if test "$cf_cv_prog_gnat_correct" = yes; then 18125 echo "$as_me:18125: checking if GNAT works" >&5 18126echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6 18127 18128rm -rf conftest* *~conftest* 18129cat >>conftest.ads <<CF_EOF 18130procedure conftest; 18131CF_EOF 18132cat >>conftest.adb <<CF_EOF 18133with Text_IO; 18134with GNAT.OS_Lib; 18135procedure conftest is 18136begin 18137 Text_IO.Put ("Hello World"); 18138 Text_IO.New_Line; 18139 GNAT.OS_Lib.OS_Exit (0); 18140end conftest; 18141CF_EOF 18142if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then 18143 if ( ./conftest 1>&5 2>&1 ) ; then 18144 cf_cv_prog_gnat_correct=yes 18145 else 18146 cf_cv_prog_gnat_correct=no 18147 fi 18148else 18149 cf_cv_prog_gnat_correct=no 18150fi 18151rm -rf conftest* *~conftest* 18152 18153 echo "$as_me:18153: result: $cf_cv_prog_gnat_correct" >&5 18154echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6 18155 fi 18156fi 18157 18158 if test "$cf_cv_prog_gnat_correct" = yes; then 18159 18160 ADAFLAGS="$ADAFLAGS -gnatpn" 18161 18162 # make ADAFLAGS consistent with CFLAGS 18163 case "$CFLAGS" in 18164 *-g*) 18165 18166 ADAFLAGS="$ADAFLAGS -g" 18167 18168 ;; 18169 esac 18170 case "$CFLAGS" in 18171 *-O*) 18172 18173 ADAFLAGS="$ADAFLAGS -O3" 18174 18175 ;; 18176 esac 18177 18178echo "$as_me:18178: checking if GNAT supports generics" >&5 18179echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6 18180case $cf_gnat_version in #(vi 181813.[1-9]*|[4-9].*) #(vi 18182 cf_gnat_generics=yes 18183 ;; 18184*) 18185 cf_gnat_generics=no 18186 ;; 18187esac 18188echo "$as_me:18188: result: $cf_gnat_generics" >&5 18189echo "${ECHO_T}$cf_gnat_generics" >&6 18190 18191if test "$cf_gnat_generics" = yes 18192then 18193 cf_compile_generics=generics 18194 cf_generic_objects="\${GENOBJS}" 18195else 18196 cf_compile_generics= 18197 cf_generic_objects= 18198fi 18199 18200echo "$as_me:18200: checking if GNAT supports SIGINT" >&5 18201echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6 18202if test "${cf_cv_gnat_sigint+set}" = set; then 18203 echo $ECHO_N "(cached) $ECHO_C" >&6 18204else 18205 18206rm -rf conftest* *~conftest* 18207cat >>conftest.ads <<CF_EOF 18208with Ada.Interrupts.Names; 18209 18210package ConfTest is 18211 18212 pragma Warnings (Off); -- the next pragma exists since 3.11p 18213 pragma Unreserve_All_Interrupts; 18214 pragma Warnings (On); 18215 18216 protected Process is 18217 procedure Stop; 18218 function Continue return Boolean; 18219 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT); 18220 private 18221 Done : Boolean := False; 18222 end Process; 18223 18224end ConfTest; 18225CF_EOF 18226cat >>conftest.adb <<CF_EOF 18227package body ConfTest is 18228 protected body Process is 18229 procedure Stop is 18230 begin 18231 Done := True; 18232 end Stop; 18233 function Continue return Boolean is 18234 begin 18235 return not Done; 18236 end Continue; 18237 end Process; 18238end ConfTest; 18239CF_EOF 18240if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then 18241 cf_cv_gnat_sigint=yes 18242else 18243 cf_cv_gnat_sigint=no 18244fi 18245rm -rf conftest* *~conftest* 18246 18247fi 18248echo "$as_me:18248: result: $cf_cv_gnat_sigint" >&5 18249echo "${ECHO_T}$cf_cv_gnat_sigint" >&6 18250 18251if test $cf_cv_gnat_sigint = yes ; then 18252 USE_GNAT_SIGINT="" 18253else 18254 USE_GNAT_SIGINT="#" 18255fi 18256 18257echo "$as_me:18257: checking if GNAT pragma Unreferenced works" >&5 18258echo $ECHO_N "checking if GNAT pragma Unreferenced works... $ECHO_C" >&6 18259if test "${cf_cv_pragma_unreferenced+set}" = set; then 18260 echo $ECHO_N "(cached) $ECHO_C" >&6 18261else 18262 18263rm -rf conftest* *~conftest* 18264cat >>conftest.ads <<CF_EOF 18265procedure conftest; 18266CF_EOF 18267cat >>conftest.adb <<CF_EOF 18268with Text_IO; 18269with GNAT.OS_Lib; 18270procedure conftest is 18271 test : Integer; 18272 pragma Unreferenced (test); 18273begin 18274 test := 1; 18275 Text_IO.Put ("Hello World"); 18276 Text_IO.New_Line; 18277 GNAT.OS_Lib.OS_Exit (0); 18278end conftest; 18279CF_EOF 18280if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then 18281 cf_cv_pragma_unreferenced=yes 18282else 18283 cf_cv_pragma_unreferenced=no 18284fi 18285rm -rf conftest* *~conftest* 18286 18287fi 18288echo "$as_me:18288: result: $cf_cv_pragma_unreferenced" >&5 18289echo "${ECHO_T}$cf_cv_pragma_unreferenced" >&6 18290 18291# if the pragma is supported, use it (needed in the Trace code). 18292if test $cf_cv_pragma_unreferenced = yes ; then 18293 PRAGMA_UNREF=TRUE 18294else 18295 PRAGMA_UNREF=FALSE 18296fi 18297 18298cf_gnat_libraries=no 18299cf_gnat_projects=no 18300 18301echo "$as_me:18301: checking if GNAT supports project files" >&5 18302echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6 18303case $cf_gnat_version in #(vi 183043.[0-9]*) #(vi 18305 ;; 18306*) 18307 case $cf_cv_system_name in #(vi 18308 cygwin*) #(vi 18309 ;; 18310 *) 18311 mkdir conftest.src conftest.bin conftest.lib 18312 cd conftest.src 18313 rm -rf conftest* *~conftest* 18314 cat >>library.gpr <<CF_EOF 18315project Library is 18316 Kind := External ("LIB_KIND"); 18317 for Library_Name use "ConfTest"; 18318 for Object_Dir use "."; 18319 for Library_ALI_Dir use External("LIBRARY_DIR"); 18320 for Library_Version use External ("SONAME"); 18321 for Library_Kind use Kind; 18322 for Library_Dir use External("BUILD_DIR"); 18323 Source_Dir := External ("SOURCE_DIR"); 18324 for Source_Dirs use (Source_Dir); 18325 package Compiler is 18326 for Default_Switches ("Ada") use 18327 ("-g", 18328 "-O2", 18329 "-gnatafno", 18330 "-gnatVa", -- All validity checks 18331 "-gnatwa"); -- Activate all optional errors 18332 end Compiler; 18333end Library; 18334CF_EOF 18335 cat >>confpackage.ads <<CF_EOF 18336package ConfPackage is 18337 procedure conftest; 18338end ConfPackage; 18339CF_EOF 18340 cat >>confpackage.adb <<CF_EOF 18341with Text_IO; 18342package body ConfPackage is 18343 procedure conftest is 18344 begin 18345 Text_IO.Put ("Hello World"); 18346 Text_IO.New_Line; 18347 end conftest; 18348end ConfPackage; 18349CF_EOF 18350 if ( $cf_ada_make $ADAFLAGS \ 18351 -Plibrary.gpr \ 18352 -XBUILD_DIR=`cd ../conftest.bin;pwd` \ 18353 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \ 18354 -XSOURCE_DIR=`pwd` \ 18355 -XSONAME=libConfTest.so.1 \ 18356 -XLIB_KIND=static 1>&5 2>&1 ) ; then 18357 cf_gnat_projects=yes 18358 fi 18359 cd .. 18360 if test -f conftest.lib/confpackage.ali 18361 then 18362 cf_gnat_libraries=yes 18363 fi 18364 rm -rf conftest* *~conftest* 18365 ;; 18366 esac 18367 ;; 18368esac 18369echo "$as_me:18369: result: $cf_gnat_projects" >&5 18370echo "${ECHO_T}$cf_gnat_projects" >&6 18371 18372if test $cf_gnat_projects = yes 18373then 18374 echo "$as_me:18374: checking if GNAT supports libraries" >&5 18375echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6 18376 echo "$as_me:18376: result: $cf_gnat_libraries" >&5 18377echo "${ECHO_T}$cf_gnat_libraries" >&6 18378fi 18379 18380if test "$cf_gnat_projects" = yes 18381then 18382 USE_OLD_MAKERULES="#" 18383 USE_GNAT_PROJECTS="" 18384else 18385 USE_OLD_MAKERULES="" 18386 USE_GNAT_PROJECTS="#" 18387fi 18388 18389if test "$cf_gnat_libraries" = yes 18390then 18391 USE_GNAT_LIBRARIES="" 18392else 18393 USE_GNAT_LIBRARIES="#" 18394fi 18395 18396echo "$as_me:18396: checking for ada-compiler" >&5 18397echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6 18398 18399# Check whether --with-ada-compiler or --without-ada-compiler was given. 18400if test "${with_ada_compiler+set}" = set; then 18401 withval="$with_ada_compiler" 18402 cf_ada_compiler=$withval 18403else 18404 cf_ada_compiler=gnatmake 18405fi; 18406 18407echo "$as_me:18407: result: $cf_ada_compiler" >&5 18408echo "${ECHO_T}$cf_ada_compiler" >&6 18409 18410 cf_ada_package=terminal_interface 18411 18412echo "$as_me:18412: checking for ada-include" >&5 18413echo $ECHO_N "checking for ada-include... $ECHO_C" >&6 18414 18415# Check whether --with-ada-include or --without-ada-include was given. 18416if test "${with_ada_include+set}" = set; then 18417 withval="$with_ada_include" 18418 18419else 18420 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}" 18421fi; if test -n "$prefix/share/ada/adainclude" ; then 18422 18423if test "x$prefix" != xNONE; then 18424 cf_path_syntax="$prefix" 18425else 18426 cf_path_syntax="$ac_default_prefix" 18427fi 18428 18429case ".$withval" in #(vi 18430.\$\(*\)*|.\'*\'*) #(vi 18431 ;; 18432..|./*|.\\*) #(vi 18433 ;; 18434.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 18435 ;; 18436.\${*prefix}*) #(vi 18437 eval withval="$withval" 18438 case ".$withval" in #(vi 18439 .NONE/*) 18440 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%` 18441 ;; 18442 esac 18443 ;; #(vi 18444.no|.NONE/*) 18445 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%` 18446 ;; 18447*) 18448 { { echo "$as_me:18448: error: expected a pathname, not \"$withval\"" >&5 18449echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;} 18450 { (exit 1); exit 1; }; } 18451 ;; 18452esac 18453 18454fi 18455ADA_INCLUDE="$withval" 18456 18457echo "$as_me:18457: result: $ADA_INCLUDE" >&5 18458echo "${ECHO_T}$ADA_INCLUDE" >&6 18459 18460echo "$as_me:18460: checking for ada-objects" >&5 18461echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6 18462 18463# Check whether --with-ada-objects or --without-ada-objects was given. 18464if test "${with_ada_objects+set}" = set; then 18465 withval="$with_ada_objects" 18466 18467else 18468 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}" 18469fi; if test -n "$prefix/lib/ada/adalib" ; then 18470 18471if test "x$prefix" != xNONE; then 18472 cf_path_syntax="$prefix" 18473else 18474 cf_path_syntax="$ac_default_prefix" 18475fi 18476 18477case ".$withval" in #(vi 18478.\$\(*\)*|.\'*\'*) #(vi 18479 ;; 18480..|./*|.\\*) #(vi 18481 ;; 18482.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 18483 ;; 18484.\${*prefix}*) #(vi 18485 eval withval="$withval" 18486 case ".$withval" in #(vi 18487 .NONE/*) 18488 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%` 18489 ;; 18490 esac 18491 ;; #(vi 18492.no|.NONE/*) 18493 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%` 18494 ;; 18495*) 18496 { { echo "$as_me:18496: error: expected a pathname, not \"$withval\"" >&5 18497echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;} 18498 { (exit 1); exit 1; }; } 18499 ;; 18500esac 18501 18502fi 18503ADA_OBJECTS="$withval" 18504 18505echo "$as_me:18505: result: $ADA_OBJECTS" >&5 18506echo "${ECHO_T}$ADA_OBJECTS" >&6 18507 18508echo "$as_me:18508: checking if an Ada95 shared-library should be built" >&5 18509echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6 18510 18511# Check whether --with-ada-sharedlib or --without-ada-sharedlib was given. 18512if test "${with_ada_sharedlib+set}" = set; then 18513 withval="$with_ada_sharedlib" 18514 with_ada_sharedlib=$withval 18515else 18516 with_ada_sharedlib=no 18517fi; 18518echo "$as_me:18518: result: $with_ada_sharedlib" >&5 18519echo "${ECHO_T}$with_ada_sharedlib" >&6 18520 18521ADA_SHAREDLIB='lib$(LIB_NAME).so.1' 18522MAKE_ADA_SHAREDLIB="#" 18523 18524if test "x$with_ada_sharedlib" != xno 18525then 18526 MAKE_ADA_SHAREDLIB= 18527 if test "x$with_ada_sharedlib" != xyes 18528 then 18529 ADA_SHAREDLIB="$with_ada_sharedlib" 18530 fi 18531fi 18532 18533 fi 18534 fi 18535else 18536 cf_with_ada=no 18537fi 18538 18539### Construct the ncurses library-subsets, if any, from this set of keywords: 18540### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar 18541### 18542### ticlib modules may be a separate library, otherwise contained in termlib. 18543### termlib modules may be a separate library, otherwise contained in ncurses. 18544### 18545### The of "+" or " " between the tokens controls the way the script 18546### chooses to split module lists into libraries. 18547### 18548### (see CF_LIB_RULES). 18549echo "$as_me:18549: checking for library subsets" >&5 18550echo $ECHO_N "checking for library subsets... $ECHO_C" >&6 18551LIB_SUBSETS= 18552 18553if test "$cf_with_progs" = yes || test "$with_ticlib" != no || test "$with_termcap" != no; then 18554 LIB_SUBSETS="${LIB_SUBSETS}ticlib" 18555 if test "$with_ticlib" != no ; then 18556 LIB_SUBSETS="${LIB_SUBSETS} " 18557 else 18558 LIB_SUBSETS="${LIB_SUBSETS}+" 18559 fi 18560fi 18561 18562LIB_SUBSETS="${LIB_SUBSETS}termlib" 18563test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo" 18564 18565if test "$with_termlib" != no ; then 18566 LIB_SUBSETS="${LIB_SUBSETS} " 18567else 18568 LIB_SUBSETS="${LIB_SUBSETS}+" 18569fi 18570 18571LIB_SUBSETS="${LIB_SUBSETS}base" 18572 18573# Most term-driver calls are to tinfo, but some like init_pair are to the 18574# base library (so it resides in base). 18575if test "$with_term_driver" != no ; then 18576 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers" 18577 case $cf_cv_system_name in #(vi 18578 *mingw32*) #(vi 18579 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con" 18580 ;; 18581 *) #(vi 18582 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo" 18583 ;; 18584 esac 18585fi 18586 18587test "$with_widec" = yes && LIB_SUBSETS="${LIB_SUBSETS}+widechar" 18588test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs" 18589 18590echo "$as_me:18590: result: $LIB_SUBSETS" >&5 18591echo "${ECHO_T}$LIB_SUBSETS" >&6 18592 18593### Construct the list of include-directories to be generated 18594 18595CPPFLAGS="$CPPFLAGS -I. -I../include" 18596if test "$srcdir" != "."; then 18597 CPPFLAGS="$CPPFLAGS -I\${srcdir}/../include" 18598fi 18599if test "$GCC" != yes; then 18600 CPPFLAGS="$CPPFLAGS -I\${includedir}" 18601elif test "$includedir" != "/usr/include"; then 18602 if test "$includedir" = '${prefix}/include' ; then 18603 if test $prefix != /usr ; then 18604 CPPFLAGS="$CPPFLAGS -I\${includedir}" 18605 fi 18606 else 18607 CPPFLAGS="$CPPFLAGS -I\${includedir}" 18608 fi 18609fi 18610 18611ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS" 18612if test "$srcdir" != "."; then 18613 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS" 18614fi 18615if test "$GCC" != yes; then 18616 ACPPFLAGS="$ACPPFLAGS -I\${includedir}" 18617elif test "$includedir" != "/usr/include"; then 18618 if test "$includedir" = '${prefix}/include' ; then 18619 if test $prefix != /usr ; then 18620 ACPPFLAGS="$ACPPFLAGS -I\${includedir}" 18621 fi 18622 else 18623 ACPPFLAGS="$ACPPFLAGS -I\${includedir}" 18624 fi 18625fi 18626 18627### Build up pieces for makefile rules 18628echo "$as_me:18628: checking default library suffix" >&5 18629echo $ECHO_N "checking default library suffix... $ECHO_C" >&6 18630 18631 case $DFT_LWR_MODEL in 18632 libtool) DFT_ARG_SUFFIX='' ;; 18633 normal) DFT_ARG_SUFFIX='' ;; 18634 debug) DFT_ARG_SUFFIX='_g' ;; 18635 profile) DFT_ARG_SUFFIX='_p' ;; 18636 shared) DFT_ARG_SUFFIX='' ;; 18637 esac 18638 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}" 18639echo "$as_me:18639: result: $DFT_ARG_SUFFIX" >&5 18640echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6 18641 18642echo "$as_me:18642: checking default library-dependency suffix" >&5 18643echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6 18644 18645 case $DFT_LWR_MODEL in #(vi 18646 libtool) #(vi 18647 DFT_LIB_SUFFIX='.la' 18648 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX 18649 ;; 18650 normal) #(vi 18651 DFT_LIB_SUFFIX='.a' 18652 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX 18653 ;; 18654 debug) #(vi 18655 DFT_LIB_SUFFIX='_g.a' 18656 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX 18657 ;; 18658 profile) #(vi 18659 DFT_LIB_SUFFIX='_p.a' 18660 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX 18661 ;; 18662 shared) #(vi 18663 case $cf_cv_system_name in 18664 aix[56]*) #(vi 18665 DFT_LIB_SUFFIX='.a' 18666 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX 18667 ;; 18668 cygwin*) #(vi 18669 DFT_LIB_SUFFIX='.dll' 18670 DFT_DEP_SUFFIX='.dll.a' 18671 ;; 18672 darwin*) #(vi 18673 DFT_LIB_SUFFIX='.dylib' 18674 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX 18675 ;; 18676 hpux*) #(vi 18677 case $target in 18678 ia64*) #(vi 18679 DFT_LIB_SUFFIX='.so' 18680 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX 18681 ;; 18682 *) #(vi 18683 DFT_LIB_SUFFIX='.sl' 18684 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX 18685 ;; 18686 esac 18687 ;; 18688 *) DFT_LIB_SUFFIX='.so' 18689 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX 18690 ;; 18691 esac 18692 esac 18693 test -n "$LIB_SUFFIX" && DFT_LIB_SUFFIX="${LIB_SUFFIX}${DFT_LIB_SUFFIX}" 18694 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}" 18695echo "$as_me:18695: result: $DFT_DEP_SUFFIX" >&5 18696echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6 18697 18698echo "$as_me:18698: checking default object directory" >&5 18699echo $ECHO_N "checking default object directory... $ECHO_C" >&6 18700 18701 case $DFT_LWR_MODEL in 18702 libtool) DFT_OBJ_SUBDIR='obj_lo' ;; 18703 normal) DFT_OBJ_SUBDIR='objects' ;; 18704 debug) DFT_OBJ_SUBDIR='obj_g' ;; 18705 profile) DFT_OBJ_SUBDIR='obj_p' ;; 18706 shared) 18707 case $cf_cv_system_name in #(vi 18708 cygwin) #(vi 18709 DFT_OBJ_SUBDIR='objects' ;; 18710 *) 18711 DFT_OBJ_SUBDIR='obj_s' ;; 18712 esac 18713 esac 18714echo "$as_me:18714: result: $DFT_OBJ_SUBDIR" >&5 18715echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6 18716 18717# libtool thinks it can make c++ shared libraries (perhaps only g++) 18718if test "$cf_with_cxx" = yes ; then 18719echo "$as_me:18719: checking c++ library-dependency suffix" >&5 18720echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6 18721if test "$with_libtool" != "no"; then 18722 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX 18723else 18724 18725 case normal in #(vi 18726 libtool) #(vi 18727 CXX_LIB_SUFFIX='.la' 18728 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX 18729 ;; 18730 normal) #(vi 18731 CXX_LIB_SUFFIX='.a' 18732 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX 18733 ;; 18734 debug) #(vi 18735 CXX_LIB_SUFFIX='_g.a' 18736 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX 18737 ;; 18738 profile) #(vi 18739 CXX_LIB_SUFFIX='_p.a' 18740 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX 18741 ;; 18742 shared) #(vi 18743 case $cf_cv_system_name in 18744 aix[56]*) #(vi 18745 CXX_LIB_SUFFIX='.a' 18746 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX 18747 ;; 18748 cygwin*) #(vi 18749 CXX_LIB_SUFFIX='.dll' 18750 CXX_DEP_SUFFIX='.dll.a' 18751 ;; 18752 darwin*) #(vi 18753 CXX_LIB_SUFFIX='.dylib' 18754 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX 18755 ;; 18756 hpux*) #(vi 18757 case $target in 18758 ia64*) #(vi 18759 CXX_LIB_SUFFIX='.so' 18760 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX 18761 ;; 18762 *) #(vi 18763 CXX_LIB_SUFFIX='.sl' 18764 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX 18765 ;; 18766 esac 18767 ;; 18768 *) CXX_LIB_SUFFIX='.so' 18769 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX 18770 ;; 18771 esac 18772 esac 18773 test -n "$LIB_SUFFIX" && CXX_LIB_SUFFIX="${LIB_SUFFIX}${CXX_LIB_SUFFIX}" 18774 test -n "$LIB_SUFFIX" && CXX_DEP_SUFFIX="${LIB_SUFFIX}${CXX_DEP_SUFFIX}" 18775fi 18776echo "$as_me:18776: result: $CXX_LIB_SUFFIX" >&5 18777echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6 18778 18779fi 18780 18781# do not want -ldl in build except as needed for -lncurses dependency 18782if test "$with_dlsym" = yes ; then 18783if test $DFT_LWR_MODEL = shared || \ 18784 test $DFT_LWR_MODEL = libtool ; then 18785 18786# remove dl library from $LIBS 18787LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'` 18788 18789fi 18790fi 18791### Set up low-level terminfo dependencies for makefiles. 18792 18793# TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but 18794# do not need libdl 18795TICS_LIST= 18796if test "$with_dlsym" = yes ; then 18797 18798# remove dl library from $SHLIB_LIST 18799TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'` 18800 18801fi 18802 18803if test "$with_ticlib" != no ; then 18804 18805 if test "$with_ticlib" != yes ; then 18806 TICS_NAME=$with_ticlib 18807 TICS_ARG_SUFFIX="${with_ticlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`" 18808 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`" 18809 TICS_LIB_SUFFIX="${with_ticlib}" 18810 else 18811 TICS_ARG_SUFFIX="${TICS_NAME}${DFT_ARG_SUFFIX}" 18812 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}" 18813 TICS_LIB_SUFFIX="${TICS_NAME}${LIB_SUFFIX}" 18814 fi 18815 TICS_ARGS="-L${LIB_DIR} -l${TICS_LIB_SUFFIX}" 18816else 18817 TICS_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}" 18818fi 18819 18820if test "$with_termlib" != no ; then 18821 18822 if test "$with_termlib" != yes ; then 18823 TINFO_NAME=$with_termlib 18824 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`" 18825 TINFO_ARG_SUFFIX="${with_termlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`" 18826 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`" 18827 TINFO_LIB_SUFFIX="${with_termlib}" 18828 else 18829 TINFO_SUFFIX=${DFT_LIB_SUFFIX} 18830 TINFO_ARG_SUFFIX="${TINFO_NAME}${DFT_ARG_SUFFIX}" 18831 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}" 18832 TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}" 18833 fi 18834 18835 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}" 18836 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}" 18837 if test "$DFT_LWR_MODEL" = "libtool"; then 18838 TEST_ARGS="${TEST_DEPS}" 18839 TEST_ARG2="${TEST_DEP2}" 18840 TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS" 18841 TICS_LIST="$SHLIB_LIST $TEST_ARGS" 18842 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS" 18843 else 18844 TEST_ARGS="-l${TINFO_ARG_SUFFIX}" 18845 TEST_ARG2="-l${TINFO_ARG_SUFFIX}" 18846 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}" 18847 TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS" 18848 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}" 18849 fi 18850else 18851 # the next lines are needed for linking libtic over libncurses 18852 TINFO_NAME=${LIB_NAME} 18853 TINFO_SUFFIX=${DFT_LIB_SUFFIX} 18854 TINFO_ARG_SUFFIX=${LIB_NAME}${DFT_ARG_SUFFIX} 18855 if test "$with_tic_depends" = yes ; then 18856 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}" 18857 else 18858 TICS_LIST="$SHLIB_LIST" 18859 fi 18860 18861 TINFO_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}" 18862fi 18863 18864if test "$DFT_LWR_MODEL" = shared ; then 18865 case $cf_cv_system_name in #(vi 18866 cygwin*) 18867 # "lib" files have ".dll.a" suffix, "cyg" files have ".dll" 18868 TINFO_SUFFIX=.dll 18869 ;; 18870 esac 18871fi 18872 18873if test "$with_dlsym" = yes ; then 18874 18875# remove dl library from $TICS_LIST 18876TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'` 18877 18878fi 18879 18880if test "$DFT_LWR_MODEL" = "libtool"; then 18881 OBJEXT=lo 18882fi 18883 18884# needed for Ada95 18885TINFO_ARGS2=`echo "$TINFO_ARGS" | sed -e 's,-L\.\./,-L../../,'` 18886 18887case $DFT_LWR_MODEL in 18888normal|debug|profile) 18889 18890if test "$GCC" = yes ; then 18891 case $cf_cv_system_name in #( 18892 OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*) #( vi 18893 LDFLAGS_STATIC= 18894 LDFLAGS_SHARED= 18895 ;; 18896 *) #( normally, except when broken 18897 LDFLAGS_STATIC=-static 18898 LDFLAGS_SHARED=-dynamic 18899 ;; 18900 esac 18901else 18902 case $cf_cv_system_name in #( 18903 aix[456]*) #( from ld manpage 18904 LDFLAGS_STATIC=-bstatic 18905 LDFLAGS_SHARED=-bdynamic 18906 ;; 18907 hpux*) #( from ld manpage for hpux10.20, hpux11.11 18908 # We could also use just "archive" and "shared". 18909 LDFLAGS_STATIC=-Wl,-a,archive_shared 18910 LDFLAGS_SHARED=-Wl,-a,shared_archive 18911 ;; 18912 irix*) #( from ld manpage IRIX64 18913 LDFLAGS_STATIC=-Bstatic 18914 LDFLAGS_SHARED=-Bdynamic 18915 ;; 18916 osf[45]*) #( from ld manpage osf4.0d, osf5.1 18917 # alternative "-oldstyle_liblookup" (not in cc manpage) 18918 LDFLAGS_STATIC=-noso 18919 LDFLAGS_SHARED=-so_archive 18920 ;; 18921 solaris2*) 18922 LDFLAGS_STATIC=-Bstatic 18923 LDFLAGS_SHARED=-Bdynamic 18924 ;; 18925 esac 18926fi 18927 18928if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED" 18929then 18930 echo "$as_me:18930: checking if linker supports switching between static/dynamic" >&5 18931echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6 18932 18933 rm -f libconftest.a 18934 cat >conftest.$ac_ext <<EOF 18935#line 18935 "configure" 18936#include <stdio.h> 18937int cf_ldflags_static(FILE *fp) { return fflush(fp); } 18938EOF 18939 if { (eval echo "$as_me:18939: \"$ac_compile\"") >&5 18940 (eval $ac_compile) 2>&5 18941 ac_status=$? 18942 echo "$as_me:18942: \$? = $ac_status" >&5 18943 (exit $ac_status); } ; then 18944 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null 18945 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null 18946 fi 18947 rm -f conftest.* 18948 18949 cf_save_LIBS="$LIBS" 18950 18951 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS" 18952 cat >conftest.$ac_ext <<_ACEOF 18953#line 18953 "configure" 18954#include "confdefs.h" 18955 18956#line 18956 "configure" 18957#include <stdio.h> 18958int cf_ldflags_static(FILE *fp); 18959 18960int 18961main () 18962{ 18963 18964 return cf_ldflags_static(stdin); 18965 18966 ; 18967 return 0; 18968} 18969_ACEOF 18970rm -f conftest.$ac_objext conftest$ac_exeext 18971if { (eval echo "$as_me:18971: \"$ac_link\"") >&5 18972 (eval $ac_link) 2>&5 18973 ac_status=$? 18974 echo "$as_me:18974: \$? = $ac_status" >&5 18975 (exit $ac_status); } && 18976 { ac_try='test -s conftest$ac_exeext' 18977 { (eval echo "$as_me:18977: \"$ac_try\"") >&5 18978 (eval $ac_try) 2>&5 18979 ac_status=$? 18980 echo "$as_me:18980: \$? = $ac_status" >&5 18981 (exit $ac_status); }; }; then 18982 cf_ldflags_static=yes 18983else 18984 echo "$as_me: failed program was:" >&5 18985cat conftest.$ac_ext >&5 18986cf_ldflags_static=no 18987fi 18988rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18989 18990 rm -f libconftest.* 18991 LIBS="$cf_save_LIBS" 18992 18993 echo "$as_me:18993: result: $cf_ldflags_static" >&5 18994echo "${ECHO_T}$cf_ldflags_static" >&6 18995 18996 if test $cf_ldflags_static != yes 18997 then 18998 LDFLAGS_STATIC= 18999 LDFLAGS_SHARED= 19000 fi 19001else 19002 LDFLAGS_STATIC= 19003 LDFLAGS_SHARED= 19004fi 19005 19006 ;; 19007esac 19008 19009echo "$as_me:19009: checking where we will install curses.h" >&5 19010echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6 19011test "$with_overwrite" = no && \ 19012test "x$includedir" = 'x${prefix}/include' && \ 19013 includedir='${prefix}/include/ncurses'${LIB_SUFFIX} 19014echo "$as_me:19014: result: $includedir" >&5 19015echo "${ECHO_T}$includedir" >&6 19016 19017### Resolve a conflict between normal and wide-curses by forcing applications 19018### that will need libutf8 to add it to their configure script. 19019if test "$with_overwrite" != no ; then 19020if test "$NCURSES_LIBUTF8" = 1 ; then 19021 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)' 19022 { echo "$as_me:19022: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5 19023echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;} 19024fi 19025fi 19026WITH_OVERWRITE=$with_overwrite 19027 19028# used to separate tack out of the tree 19029NCURSES_TREE= 19030 19031### predefined stuff for the test programs 19032cat >>confdefs.h <<\EOF 19033#define HAVE_SLK_COLOR 1 19034EOF 19035 19036### Construct the list of subdirectories for which we'll customize makefiles 19037### with the appropriate compile-rules. 19038 19039echo "$as_me:19039: checking for src modules" >&5 19040echo $ECHO_N "checking for src modules... $ECHO_C" >&6 19041 19042# dependencies and linker-arguments for test-programs 19043TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS" 19044TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2" 19045if test "$DFT_LWR_MODEL" = "libtool"; then 19046 TEST_ARGS="${TEST_DEPS}" 19047 TEST_ARG2="${TEST_DEP2}" 19048else 19049 TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS" 19050 TEST_ARG2="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARG2" 19051fi 19052 19053cf_cv_src_modules= 19054for cf_dir in $modules_to_build 19055do 19056 if test -f $srcdir/$cf_dir/modules; then 19057 19058 # We may/may not have tack in the distribution, though the 19059 # makefile is. 19060 if test $cf_dir = tack ; then 19061 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then 19062 continue 19063 fi 19064 fi 19065 19066 if test -z "$cf_cv_src_modules"; then 19067 cf_cv_src_modules=$cf_dir 19068 else 19069 cf_cv_src_modules="$cf_cv_src_modules $cf_dir" 19070 fi 19071 19072 # Make the ncurses_cfg.h file record the library interface files as 19073 # well. These are header files that are the same name as their 19074 # directory. Ncurses is the only library that does not follow 19075 # that pattern. 19076 if test $cf_dir = tack ; then 19077 continue 19078 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then 19079 19080cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 19081 19082 cat >>confdefs.h <<EOF 19083#define HAVE_${cf_have_include}_H 1 19084EOF 19085 19086 cat >>confdefs.h <<EOF 19087#define HAVE_LIB${cf_have_include} 1 19088EOF 19089 19090 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS" 19091 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2" 19092 if test "$DFT_LWR_MODEL" = "libtool"; then 19093 TEST_ARGS="${TEST_DEPS}" 19094 TEST_ARG2="${TEST_DEP2}" 19095 else 19096 TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS" 19097 TEST_ARG2="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARG2" 19098 fi 19099 fi 19100 fi 19101done 19102echo "$as_me:19102: result: $cf_cv_src_modules" >&5 19103echo "${ECHO_T}$cf_cv_src_modules" >&6 19104 19105TEST_ARGS="-L${LIB_DIR} $TEST_ARGS" 19106TEST_ARG2="-L${LIB_2ND} $TEST_ARG2" 19107 19108SRC_SUBDIRS= 19109if test "x$cf_with_manpages" != xno ; then 19110 SRC_SUBDIRS="$SRC_SUBDIRS man" 19111fi 19112SRC_SUBDIRS="$SRC_SUBDIRS include" 19113for cf_dir in $cf_cv_src_modules 19114do 19115 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir" 19116done 19117if test "x$cf_with_tests" != "xno" ; then 19118 SRC_SUBDIRS="$SRC_SUBDIRS test" 19119fi 19120test -z "$MAKE_TERMINFO" && SRC_SUBDIRS="$SRC_SUBDIRS misc" 19121test "$cf_with_cxx_binding" != no && SRC_SUBDIRS="$SRC_SUBDIRS c++" 19122 19123ADA_SUBDIRS= 19124if test "$cf_cv_prog_gnat_correct" = yes && test -f $srcdir/Ada95/Makefile.in; then 19125 SRC_SUBDIRS="$SRC_SUBDIRS Ada95" 19126 ADA_SUBDIRS="gen src" 19127 if test "x$cf_with_tests" != "xno" ; then 19128 ADA_SUBDIRS="$ADA_SUBDIRS samples" 19129 fi 19130fi 19131 19132SUB_MAKEFILES= 19133for cf_dir in $SRC_SUBDIRS 19134do 19135 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile" 19136done 19137 19138if test -n "$ADA_SUBDIRS"; then 19139 for cf_dir in $ADA_SUBDIRS 19140 do 19141 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile" 19142 done 19143 19144fi 19145 19146if test "$cf_with_ada" != "no" && test "$cf_cv_prog_gnat_correct" != "no"; then 19147 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${DFT_ARG_SUFFIX}-config:Ada95/gen/adacurses-config.in" 19148 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${DFT_ARG_SUFFIX}-config.1:man/MKada_config.in" 19149fi 19150 19151DIRS_TO_MAKE="lib" 19152for cf_item in $cf_list_models 19153do 19154 19155 case $cf_item in 19156 libtool) cf_subdir='obj_lo' ;; 19157 normal) cf_subdir='objects' ;; 19158 debug) cf_subdir='obj_g' ;; 19159 profile) cf_subdir='obj_p' ;; 19160 shared) 19161 case $cf_cv_system_name in #(vi 19162 cygwin) #(vi 19163 cf_subdir='objects' ;; 19164 *) 19165 cf_subdir='obj_s' ;; 19166 esac 19167 esac 19168 19169 for cf_item2 in $DIRS_TO_MAKE 19170 do 19171 test $cf_item2 = $cf_subdir && break 19172 done 19173 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir" 19174done 19175for cf_dir in $DIRS_TO_MAKE 19176do 19177 test ! -d $cf_dir && mkdir $cf_dir 19178done 19179 19180# symbols that differ when compiling Ada95 by itself. 19181NCURSES_SHLIB2='sh $(top_srcdir)/misc/shlib' 19182 19183# values to use as strings 19184cat >>confdefs.h <<EOF 19185#define NCURSES_PATHSEP '$PATH_SEPARATOR' 19186EOF 19187 19188cat >>confdefs.h <<EOF 19189#define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}" 19190EOF 19191 19192### Now that we're done running tests, add the compiler-warnings, if any 19193 19194cf_fix_cppflags=no 19195cf_new_cflags= 19196cf_new_cppflags= 19197cf_new_extra_cppflags= 19198 19199for cf_add_cflags in $EXTRA_CFLAGS 19200do 19201case $cf_fix_cppflags in 19202no) 19203 case $cf_add_cflags in #(vi 19204 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 19205 case $cf_add_cflags in 19206 -D*) 19207 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 19208 19209 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 19210 && test -z "${cf_tst_cflags}" \ 19211 && cf_fix_cppflags=yes 19212 19213 if test $cf_fix_cppflags = yes ; then 19214 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 19215 continue 19216 elif test "${cf_tst_cflags}" = "\"'" ; then 19217 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 19218 continue 19219 fi 19220 ;; 19221 esac 19222 case "$CPPFLAGS" in 19223 *$cf_add_cflags) #(vi 19224 ;; 19225 *) #(vi 19226 case $cf_add_cflags in #(vi 19227 -D*) 19228 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 19229 19230CPPFLAGS=`echo "$CPPFLAGS" | \ 19231 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 19232 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 19233 19234 ;; 19235 esac 19236 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 19237 ;; 19238 esac 19239 ;; 19240 *) 19241 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 19242 ;; 19243 esac 19244 ;; 19245yes) 19246 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 19247 19248 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 19249 19250 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 19251 && test -z "${cf_tst_cflags}" \ 19252 && cf_fix_cppflags=no 19253 ;; 19254esac 19255done 19256 19257if test -n "$cf_new_cflags" ; then 19258 19259 CFLAGS="$CFLAGS $cf_new_cflags" 19260fi 19261 19262if test -n "$cf_new_cppflags" ; then 19263 19264 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 19265fi 19266 19267if test -n "$cf_new_extra_cppflags" ; then 19268 19269 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 19270fi 19271 19272### Define substitutions for header files to avoid name-pollution 19273 19274if test "$cf_cv_have_tcgetattr" = yes ; then 19275 HAVE_TCGETATTR=1 19276else 19277 HAVE_TCGETATTR=0 19278fi 19279 19280if test "$ac_cv_header_termio_h" = yes ; then 19281 HAVE_TERMIO_H=1 19282else 19283 HAVE_TERMIO_H=0 19284fi 19285 19286if test "$ac_cv_header_termios_h" = yes ; then 19287 HAVE_TERMIOS_H=1 19288else 19289 HAVE_TERMIOS_H=0 19290fi 19291 19292################################################################################ 19293test "$use_database" = yes && \ 19294SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in" 19295 19296SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in" 19297SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${DFT_ARG_SUFFIX}${cf_cv_abi_version}-config.1:man/MKncu_config.in" 19298 19299if test x"$enable_pc_files" = xyes ; then \ 19300SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in" 19301MAKE_PC_FILES= 19302else 19303MAKE_PC_FILES="#" 19304fi 19305 19306# Extract the first word of "tic", so it can be a program name with args. 19307set dummy tic; ac_word=$2 19308echo "$as_me:19308: checking for $ac_word" >&5 19309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19310if test "${ac_cv_path_TIC_PATH+set}" = set; then 19311 echo $ECHO_N "(cached) $ECHO_C" >&6 19312else 19313 case $TIC_PATH in 19314 [\\/]* | ?:[\\/]*) 19315 ac_cv_path_TIC_PATH="$TIC_PATH" # Let the user override the test with a path. 19316 ;; 19317 *) 19318 ac_save_IFS=$IFS; IFS=$ac_path_separator 19319ac_dummy="$PATH:/usr/local/ncurses/bin" 19320for ac_dir in $ac_dummy; do 19321 IFS=$ac_save_IFS 19322 test -z "$ac_dir" && ac_dir=. 19323 if $as_executable_p "$ac_dir/$ac_word"; then 19324 ac_cv_path_TIC_PATH="$ac_dir/$ac_word" 19325 echo "$as_me:19325: found $ac_dir/$ac_word" >&5 19326 break 19327fi 19328done 19329 19330 test -z "$ac_cv_path_TIC_PATH" && ac_cv_path_TIC_PATH="unknown" 19331 ;; 19332esac 19333fi 19334TIC_PATH=$ac_cv_path_TIC_PATH 19335 19336if test -n "$TIC_PATH"; then 19337 echo "$as_me:19337: result: $TIC_PATH" >&5 19338echo "${ECHO_T}$TIC_PATH" >&6 19339else 19340 echo "$as_me:19340: result: no" >&5 19341echo "${ECHO_T}no" >&6 19342fi 19343 19344if test -n "$FALLBACK_LIST" 19345then 19346 if test "$TIC_PATH" = unknown 19347 then 19348 { echo "$as_me:19348: WARNING: no tic program found for fallbacks" >&5 19349echo "$as_me: WARNING: no tic program found for fallbacks" >&2;} 19350 fi 19351fi 19352 19353if test "x$cf_with_tests" != xno ; then 19354 MAKE_TESTS= 19355else 19356 MAKE_TESTS="#" 19357fi 19358 19359ADAHTML_DIR=../../doc/html/ada 19360 19361SUB_SCRIPTS= 19362case $cf_cv_system_name in #(vi 19363*mingw32*) #(vi 19364 SUB_SCRIPTS="mk-dlls.sh" 19365 ;; 19366esac 19367 19368ac_config_files="$ac_config_files include/MKterm.h.awk include/curses.head:include/curses.h.in include/ncurses_dll.h include/termcap.h include/unctrl.h $SUB_SCRIPTS $SUB_MAKEFILES Makefile" 19369ac_config_commands="$ac_config_commands default" 19370cat >confcache <<\_ACEOF 19371# This file is a shell script that caches the results of configure 19372# tests run on this system so they can be shared between configure 19373# scripts and configure runs, see configure's option --config-cache. 19374# It is not useful on other systems. If it contains results you don't 19375# want to keep, you may remove or edit it. 19376# 19377# config.status only pays attention to the cache file if you give it 19378# the --recheck option to rerun configure. 19379# 19380# `ac_cv_env_foo' variables (set or unset) will be overriden when 19381# loading this file, other *unset* `ac_cv_foo' will be assigned the 19382# following values. 19383 19384_ACEOF 19385 19386# The following way of writing the cache mishandles newlines in values, 19387# but we know of no workaround that is simple, portable, and efficient. 19388# So, don't put newlines in cache variables' values. 19389# Ultrix sh set writes to stderr and can't be redirected directly, 19390# and sets the high bit in the cache file unless we assign to the vars. 19391{ 19392 (set) 2>&1 | 19393 case `(ac_space=' '; set | grep ac_space) 2>&1` in 19394 *ac_space=\ *) 19395 # `set' does not quote correctly, so add quotes (double-quote 19396 # substitution turns \\\\ into \\, and sed turns \\ into \). 19397 sed -n \ 19398 "s/'/'\\\\''/g; 19399 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19400 ;; 19401 *) 19402 # `set' quotes correctly as required by POSIX, so do not add quotes. 19403 sed -n \ 19404 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 19405 ;; 19406 esac; 19407} | 19408 sed ' 19409 t clear 19410 : clear 19411 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19412 t end 19413 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19414 : end' >>confcache 19415if cmp -s $cache_file confcache; then :; else 19416 if test -w $cache_file; then 19417 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 19418 cat confcache >$cache_file 19419 else 19420 echo "not updating unwritable cache $cache_file" 19421 fi 19422fi 19423rm -f confcache 19424 19425test "x$prefix" = xNONE && prefix=$ac_default_prefix 19426# Let make expand exec_prefix. 19427test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19428 19429# VPATH may cause trouble with some makes, so we remove $(srcdir), 19430# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 19431# trailing colons and then remove the whole line if VPATH becomes empty 19432# (actually we leave an empty line to preserve line numbers). 19433if test "x$srcdir" = x.; then 19434 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 19435s/:*\$(srcdir):*/:/; 19436s/:*\${srcdir}:*/:/; 19437s/:*@srcdir@:*/:/; 19438s/^\([^=]*=[ ]*\):*/\1/; 19439s/:*$//; 19440s/^[^=]*=[ ]*$//; 19441}' 19442fi 19443 19444DEFS=-DHAVE_CONFIG_H 19445 19446: ${CONFIG_STATUS=./config.status} 19447ac_clean_files_save=$ac_clean_files 19448ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19449{ echo "$as_me:19449: creating $CONFIG_STATUS" >&5 19450echo "$as_me: creating $CONFIG_STATUS" >&6;} 19451cat >$CONFIG_STATUS <<_ACEOF 19452#! $SHELL 19453# Generated automatically by configure. 19454# Run this file to recreate the current configuration. 19455# Compiler output produced by configure, useful for debugging 19456# configure, is in config.log if it exists. 19457 19458debug=false 19459SHELL=\${CONFIG_SHELL-$SHELL} 19460ac_cs_invocation="\$0 \$@" 19461 19462_ACEOF 19463 19464cat >>$CONFIG_STATUS <<\_ACEOF 19465# Be Bourne compatible 19466if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19467 emulate sh 19468 NULLCMD=: 19469elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 19470 set -o posix 19471fi 19472 19473# Name of the executable. 19474as_me=`echo "$0" |sed 's,.*[\\/],,'` 19475 19476if expr a : '\(a\)' >/dev/null 2>&1; then 19477 as_expr=expr 19478else 19479 as_expr=false 19480fi 19481 19482rm -f conf$$ conf$$.exe conf$$.file 19483echo >conf$$.file 19484if ln -s conf$$.file conf$$ 2>/dev/null; then 19485 # We could just check for DJGPP; but this test a) works b) is more generic 19486 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 19487 if test -f conf$$.exe; then 19488 # Don't use ln at all; we don't have any links 19489 as_ln_s='cp -p' 19490 else 19491 as_ln_s='ln -s' 19492 fi 19493elif ln conf$$.file conf$$ 2>/dev/null; then 19494 as_ln_s=ln 19495else 19496 as_ln_s='cp -p' 19497fi 19498rm -f conf$$ conf$$.exe conf$$.file 19499 19500as_executable_p="test -f" 19501 19502# Support unset when possible. 19503if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 19504 as_unset=unset 19505else 19506 as_unset=false 19507fi 19508 19509# NLS nuisances. 19510$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 19511$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 19512$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 19513$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 19514$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 19515$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 19516$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 19517$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 19518 19519# IFS 19520# We need space, tab and new line, in precisely that order. 19521as_nl=' 19522' 19523IFS=" $as_nl" 19524 19525# CDPATH. 19526$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 19527 19528exec 6>&1 19529 19530_ACEOF 19531 19532# Files that config.status was made for. 19533if test -n "$ac_config_files"; then 19534 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 19535fi 19536 19537if test -n "$ac_config_headers"; then 19538 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 19539fi 19540 19541if test -n "$ac_config_links"; then 19542 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 19543fi 19544 19545if test -n "$ac_config_commands"; then 19546 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 19547fi 19548 19549cat >>$CONFIG_STATUS <<\EOF 19550 19551ac_cs_usage="\ 19552\`$as_me' instantiates files from templates according to the 19553current configuration. 19554 19555Usage: $0 [OPTIONS] [FILE]... 19556 19557 -h, --help print this help, then exit 19558 -V, --version print version number, then exit 19559 -d, --debug don't remove temporary files 19560 --recheck update $as_me by reconfiguring in the same conditions 19561 --file=FILE[:TEMPLATE] 19562 instantiate the configuration file FILE 19563 --header=FILE[:TEMPLATE] 19564 instantiate the configuration header FILE 19565 19566Configuration files: 19567$config_files 19568 19569Configuration headers: 19570$config_headers 19571 19572Configuration commands: 19573$config_commands 19574 19575Report bugs to <dickey@invisible-island.net>." 19576EOF 19577 19578cat >>$CONFIG_STATUS <<EOF 19579ac_cs_version="\\ 19580config.status 19581configured by $0, generated by GNU Autoconf 2.52.20101002, 19582 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 19583 19584Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 19585Free Software Foundation, Inc. 19586This config.status script is free software; the Free Software Foundation 19587gives unlimited permission to copy, distribute and modify it." 19588srcdir=$srcdir 19589INSTALL="$INSTALL" 19590EOF 19591 19592cat >>$CONFIG_STATUS <<\EOF 19593# If no file are specified by the user, then we need to provide default 19594# value. By we need to know if files were specified by the user. 19595ac_need_defaults=: 19596while test $# != 0 19597do 19598 case $1 in 19599 --*=*) 19600 ac_option=`expr "x$1" : 'x\([^=]*\)='` 19601 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 19602 shift 19603 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 19604 shift 19605 ;; 19606 -*);; 19607 *) # This is not an option, so the user has probably given explicit 19608 # arguments. 19609 ac_need_defaults=false;; 19610 esac 19611 19612 case $1 in 19613 # Handling of the options. 19614EOF 19615cat >>$CONFIG_STATUS <<EOF 19616 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19617 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 19618 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 19619EOF 19620cat >>$CONFIG_STATUS <<\EOF 19621 --version | --vers* | -V ) 19622 echo "$ac_cs_version"; exit 0 ;; 19623 --he | --h) 19624 # Conflict between --help and --header 19625 { { echo "$as_me:19625: error: ambiguous option: $1 19626Try \`$0 --help' for more information." >&5 19627echo "$as_me: error: ambiguous option: $1 19628Try \`$0 --help' for more information." >&2;} 19629 { (exit 1); exit 1; }; };; 19630 --help | --hel | -h ) 19631 echo "$ac_cs_usage"; exit 0 ;; 19632 --debug | --d* | -d ) 19633 debug=: ;; 19634 --file | --fil | --fi | --f ) 19635 shift 19636 CONFIG_FILES="$CONFIG_FILES $1" 19637 ac_need_defaults=false;; 19638 --header | --heade | --head | --hea ) 19639 shift 19640 CONFIG_HEADERS="$CONFIG_HEADERS $1" 19641 ac_need_defaults=false;; 19642 19643 # This is an error. 19644 -*) { { echo "$as_me:19644: error: unrecognized option: $1 19645Try \`$0 --help' for more information." >&5 19646echo "$as_me: error: unrecognized option: $1 19647Try \`$0 --help' for more information." >&2;} 19648 { (exit 1); exit 1; }; } ;; 19649 19650 *) ac_config_targets="$ac_config_targets $1" ;; 19651 19652 esac 19653 shift 19654done 19655 19656exec 5>>config.log 19657cat >&5 << _ACEOF 19658 19659## ----------------------- ## 19660## Running config.status. ## 19661## ----------------------- ## 19662 19663This file was extended by $as_me 2.52.20101002, executed with 19664 CONFIG_FILES = $CONFIG_FILES 19665 CONFIG_HEADERS = $CONFIG_HEADERS 19666 CONFIG_LINKS = $CONFIG_LINKS 19667 CONFIG_COMMANDS = $CONFIG_COMMANDS 19668 > $ac_cs_invocation 19669on `(hostname || uname -n) 2>/dev/null | sed 1q` 19670 19671_ACEOF 19672EOF 19673 19674cat >>$CONFIG_STATUS <<EOF 19675# 19676# INIT-COMMANDS section. 19677# 19678 19679### Special initialization commands, used to pass information from the 19680### configuration-run into config.status 19681 19682AWK="$AWK" 19683DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX" 19684DFT_LWR_MODEL="$DFT_LWR_MODEL" 19685ECHO_LINK="$ECHO_LINK" 19686LDCONFIG="$LDCONFIG" 19687LIBTOOL_VERSION="$LIBTOOL_VERSION" 19688LIB_NAME="$LIB_NAME" 19689LIB_SUBSETS="$LIB_SUBSETS" 19690LIB_SUFFIX="$LIB_SUFFIX" 19691LIB_TRACING="$LIB_TRACING" 19692LN_S="$LN_S" 19693MAKE_TERMINFO="$MAKE_TERMINFO" 19694NCURSES_MAJOR="$NCURSES_MAJOR" 19695NCURSES_MINOR="$NCURSES_MINOR" 19696NCURSES_OSPEED="$NCURSES_OSPEED" 19697NCURSES_PATCH="$NCURSES_PATCH" 19698SRC_SUBDIRS="$SRC_SUBDIRS" 19699TERMINFO="$TERMINFO" 19700TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX" 19701TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX" 19702TICS_NAME="$TICS_NAME" 19703TIC_PATH="$TIC_PATH" 19704TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX" 19705TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX" 19706TINFO_NAME="$TINFO_NAME" 19707TINFO_SUFFIX="$TINFO_SUFFIX" 19708USE_OLD_MAKERULES="$USE_OLD_MAKERULES" 19709WITH_CURSES_H="$with_curses_h" 19710WITH_ECHO="$with_echo" 19711WITH_OVERWRITE="$with_overwrite" 19712cf_LIST_MODELS="$cf_list_models" 19713cf_cv_abi_version="$cf_cv_abi_version" 19714cf_cv_do_relink="$cf_cv_do_relink" 19715cf_cv_do_symlinks="$cf_cv_do_symlinks" 19716cf_cv_enable_lp64="$cf_cv_enable_lp64" 19717cf_cv_enable_opaque="$cf_cv_enable_opaque" 19718cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o 19719cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o 19720cf_cv_rel_version="$cf_cv_rel_version" 19721cf_cv_rm_so_locs="$cf_cv_rm_so_locs" 19722cf_cv_shared_soname='$cf_cv_shared_soname' 19723cf_cv_shlib_version="$cf_cv_shlib_version" 19724cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix" 19725cf_cv_system_name="$cf_cv_system_name" 19726cf_with_ada="$cf_with_ada" 19727cf_with_cxx_binding="$cf_with_cxx_binding" 19728cf_with_manpages="$cf_with_manpages" 19729cf_with_tests="$cf_with_tests" 19730host="$host" 19731target="$target" 19732 19733EOF 19734 19735cat >>$CONFIG_STATUS <<\EOF 19736for ac_config_target in $ac_config_targets 19737do 19738 case "$ac_config_target" in 19739 # Handling of arguments. 19740 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;; 19741 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;; 19742 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;; 19743 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;; 19744 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;; 19745 "$SUB_SCRIPTS" ) CONFIG_FILES="$CONFIG_FILES $SUB_SCRIPTS" ;; 19746 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;; 19747 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19748 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 19749 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;; 19750 *) { { echo "$as_me:19750: error: invalid argument: $ac_config_target" >&5 19751echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 19752 { (exit 1); exit 1; }; };; 19753 esac 19754done 19755 19756# If the user did not use the arguments to specify the items to instantiate, 19757# then the envvar interface is used. Set only those that are not. 19758# We use the long form for the default assignment because of an extremely 19759# bizarre bug on SunOS 4.1.3. 19760if $ac_need_defaults; then 19761 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19762 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19763 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19764fi 19765 19766# Create a temporary directory, and hook for its removal unless debugging. 19767$debug || 19768{ 19769 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 19770 trap '{ (exit 1); exit 1; }' 1 2 13 15 19771} 19772 19773# Create a (secure) tmp directory for tmp files. 19774: ${TMPDIR=/tmp} 19775{ 19776 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 19777 test -n "$tmp" && test -d "$tmp" 19778} || 19779{ 19780 tmp=$TMPDIR/cs$$-$RANDOM 19781 (umask 077 && mkdir $tmp) 19782} || 19783{ 19784 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 19785 { (exit 1); exit 1; } 19786} 19787 19788EOF 19789 19790cat >>$CONFIG_STATUS <<EOF 19791 19792# 19793# CONFIG_FILES section. 19794# 19795 19796# No need to generate the scripts if there are no CONFIG_FILES. 19797# This happens for instance when ./config.status config.h 19798if test -n "\$CONFIG_FILES"; then 19799 # Protect against being on the right side of a sed subst in config.status. 19800 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 19801 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 19802s,@SHELL@,$SHELL,;t t 19803s,@exec_prefix@,$exec_prefix,;t t 19804s,@prefix@,$prefix,;t t 19805s,@program_transform_name@,$program_transform_name,;t t 19806s,@bindir@,$bindir,;t t 19807s,@sbindir@,$sbindir,;t t 19808s,@libexecdir@,$libexecdir,;t t 19809s,@datadir@,$datadir,;t t 19810s,@sysconfdir@,$sysconfdir,;t t 19811s,@sharedstatedir@,$sharedstatedir,;t t 19812s,@localstatedir@,$localstatedir,;t t 19813s,@libdir@,$libdir,;t t 19814s,@includedir@,$includedir,;t t 19815s,@oldincludedir@,$oldincludedir,;t t 19816s,@infodir@,$infodir,;t t 19817s,@mandir@,$mandir,;t t 19818s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 19819s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 19820s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 19821s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 19822s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 19823s,@build_alias@,$build_alias,;t t 19824s,@host_alias@,$host_alias,;t t 19825s,@target_alias@,$target_alias,;t t 19826s,@ECHO_C@,$ECHO_C,;t t 19827s,@ECHO_N@,$ECHO_N,;t t 19828s,@ECHO_T@,$ECHO_T,;t t 19829s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 19830s,@DEFS@,$DEFS,;t t 19831s,@LIBS@,$LIBS,;t t 19832s,@top_builddir@,$top_builddir,;t t 19833s,@EGREP@,$EGREP,;t t 19834s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t 19835s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t 19836s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t 19837s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t 19838s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t 19839s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t 19840s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t 19841s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t 19842s,@build@,$build,;t t 19843s,@build_cpu@,$build_cpu,;t t 19844s,@build_vendor@,$build_vendor,;t t 19845s,@build_os@,$build_os,;t t 19846s,@host@,$host,;t t 19847s,@host_cpu@,$host_cpu,;t t 19848s,@host_vendor@,$host_vendor,;t t 19849s,@host_os@,$host_os,;t t 19850s,@target@,$target,;t t 19851s,@target_cpu@,$target_cpu,;t t 19852s,@target_vendor@,$target_vendor,;t t 19853s,@target_os@,$target_os,;t t 19854s,@CC@,$CC,;t t 19855s,@CFLAGS@,$CFLAGS,;t t 19856s,@LDFLAGS@,$LDFLAGS,;t t 19857s,@CPPFLAGS@,$CPPFLAGS,;t t 19858s,@ac_ct_CC@,$ac_ct_CC,;t t 19859s,@EXEEXT@,$EXEEXT,;t t 19860s,@OBJEXT@,$OBJEXT,;t t 19861s,@CPP@,$CPP,;t t 19862s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t 19863s,@PROG_EXT@,$PROG_EXT,;t t 19864s,@LDCONFIG@,$LDCONFIG,;t t 19865s,@CXX@,$CXX,;t t 19866s,@CXXFLAGS@,$CXXFLAGS,;t t 19867s,@ac_ct_CXX@,$ac_ct_CXX,;t t 19868s,@AWK@,$AWK,;t t 19869s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 19870s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 19871s,@INSTALL_DATA@,$INSTALL_DATA,;t t 19872s,@LINT@,$LINT,;t t 19873s,@LINT_OPTS@,$LINT_OPTS,;t t 19874s,@LN_S@,$LN_S,;t t 19875s,@PKG_CONFIG@,$PKG_CONFIG,;t t 19876s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t 19877s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t 19878s,@SET_MAKE@,$SET_MAKE,;t t 19879s,@CTAGS@,$CTAGS,;t t 19880s,@ETAGS@,$ETAGS,;t t 19881s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t 19882s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t 19883s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t 19884s,@RANLIB@,$RANLIB,;t t 19885s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 19886s,@LD@,$LD,;t t 19887s,@ac_ct_LD@,$ac_ct_LD,;t t 19888s,@AR@,$AR,;t t 19889s,@ac_ct_AR@,$ac_ct_AR,;t t 19890s,@ARFLAGS@,$ARFLAGS,;t t 19891s,@DESTDIR@,$DESTDIR,;t t 19892s,@BUILD_CC@,$BUILD_CC,;t t 19893s,@BUILD_CPP@,$BUILD_CPP,;t t 19894s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t 19895s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t 19896s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t 19897s,@BUILD_LIBS@,$BUILD_LIBS,;t t 19898s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t 19899s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t 19900s,@cf_list_models@,$cf_list_models,;t t 19901s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t 19902s,@LIBTOOL@,$LIBTOOL,;t t 19903s,@LT_UNDEF@,$LT_UNDEF,;t t 19904s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t 19905s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t 19906s,@LIB_CREATE@,$LIB_CREATE,;t t 19907s,@LIB_OBJECT@,$LIB_OBJECT,;t t 19908s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t 19909s,@LIB_PREP@,$LIB_PREP,;t t 19910s,@LIB_CLEAN@,$LIB_CLEAN,;t t 19911s,@LIB_COMPILE@,$LIB_COMPILE,;t t 19912s,@LIB_LINK@,$LIB_LINK,;t t 19913s,@LIB_INSTALL@,$LIB_INSTALL,;t t 19914s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t 19915s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t 19916s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t 19917s,@TICS_NAME@,$TICS_NAME,;t t 19918s,@TINFO_NAME@,$TINFO_NAME,;t t 19919s,@LIB_NAME@,$LIB_NAME,;t t 19920s,@LIB_PREFIX@,$LIB_PREFIX,;t t 19921s,@CC_G_OPT@,$CC_G_OPT,;t t 19922s,@CXX_G_OPT@,$CXX_G_OPT,;t t 19923s,@LD_MODEL@,$LD_MODEL,;t t 19924s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t 19925s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t 19926s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t 19927s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t 19928s,@LINK_PROGS@,$LINK_PROGS,;t t 19929s,@LINK_TESTS@,$LINK_TESTS,;t t 19930s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t 19931s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t 19932s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t 19933s,@INSTALL_LIB@,$INSTALL_LIB,;t t 19934s,@cf_ldd_prog@,$cf_ldd_prog,;t t 19935s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t 19936s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t 19937s,@WHICH_XTERM@,$WHICH_XTERM,;t t 19938s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t 19939s,@TERMINFO@,$TERMINFO,;t t 19940s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t 19941s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t 19942s,@TERMPATH@,$TERMPATH,;t t 19943s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t 19944s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t 19945s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t 19946s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t 19947s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t 19948s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t 19949s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t 19950s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t 19951s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t 19952s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t 19953s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t 19954s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t 19955s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t 19956s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t 19957s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t 19958s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t 19959s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t 19960s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t 19961s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t 19962s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t 19963s,@NCURSES_CONST@,$NCURSES_CONST,;t t 19964s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t 19965s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t 19966s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t 19967s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t 19968s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t 19969s,@PTHREAD@,$PTHREAD,;t t 19970s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t 19971s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t 19972s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t 19973s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t 19974s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t 19975s,@ECHO_LINK@,$ECHO_LINK,;t t 19976s,@ADAFLAGS@,$ADAFLAGS,;t t 19977s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t 19978s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t 19979s,@ADA_TRACE@,$ADA_TRACE,;t t 19980s,@MATH_LIB@,$MATH_LIB,;t t 19981s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t 19982s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t 19983s,@cf_cv_1UL@,$cf_cv_1UL,;t t 19984s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t 19985s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t 19986s,@TEST_LIBS@,$TEST_LIBS,;t t 19987s,@TEST_LIBS2@,$TEST_LIBS2,;t t 19988s,@CXXCPP@,$CXXCPP,;t t 19989s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t 19990s,@CXX_AR@,$CXX_AR,;t t 19991s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t 19992s,@CXXLIBS@,$CXXLIBS,;t t 19993s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t 19994s,@gnat_exists@,$gnat_exists,;t t 19995s,@M4_exists@,$M4_exists,;t t 19996s,@cf_ada_make@,$cf_ada_make,;t t 19997s,@cf_compile_generics@,$cf_compile_generics,;t t 19998s,@cf_generic_objects@,$cf_generic_objects,;t t 19999s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t 20000s,@PRAGMA_UNREF@,$PRAGMA_UNREF,;t t 20001s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t 20002s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t 20003s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t 20004s,@cf_ada_compiler@,$cf_ada_compiler,;t t 20005s,@cf_ada_package@,$cf_ada_package,;t t 20006s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t 20007s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t 20008s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t 20009s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t 20010s,@ACPPFLAGS@,$ACPPFLAGS,;t t 20011s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t 20012s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t 20013s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t 20014s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t 20015s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t 20016s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t 20017s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t 20018s,@TICS_ARGS@,$TICS_ARGS,;t t 20019s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t 20020s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t 20021s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t 20022s,@TINFO_ARGS@,$TINFO_ARGS,;t t 20023s,@TINFO_ARGS2@,$TINFO_ARGS2,;t t 20024s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t 20025s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t 20026s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t 20027s,@TICS_LIST@,$TICS_LIST,;t t 20028s,@TINFO_LIST@,$TINFO_LIST,;t t 20029s,@SHLIB_LIST@,$SHLIB_LIST,;t t 20030s,@NCURSES_TREE@,$NCURSES_TREE,;t t 20031s,@TEST_ARGS@,$TEST_ARGS,;t t 20032s,@TEST_DEPS@,$TEST_DEPS,;t t 20033s,@TEST_ARG2@,$TEST_ARG2,;t t 20034s,@TEST_DEP2@,$TEST_DEP2,;t t 20035s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t 20036s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t 20037s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t 20038s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t 20039s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t 20040s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t 20041s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t 20042s,@cross_compiling@,$cross_compiling,;t t 20043s,@TIC_PATH@,$TIC_PATH,;t t 20044s,@MAKE_TESTS@,$MAKE_TESTS,;t t 20045s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t 20046CEOF 20047 20048EOF 20049 20050 cat >>$CONFIG_STATUS <<\EOF 20051 # Split the substitutions into bite-sized pieces for seds with 20052 # small command number limits, like on Digital OSF/1 and HP-UX. 20053 ac_max_sed_lines=48 20054 ac_sed_frag=1 # Number of current file. 20055 ac_beg=1 # First line for current file. 20056 ac_end=$ac_max_sed_lines # Line after last line for current file. 20057 ac_more_lines=: 20058 ac_sed_cmds= 20059 while $ac_more_lines; do 20060 if test $ac_beg -gt 1; then 20061 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 20062 else 20063 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 20064 fi 20065 if test ! -s $tmp/subs.frag; then 20066 ac_more_lines=false 20067 else 20068 # The purpose of the label and of the branching condition is to 20069 # speed up the sed processing (if there are no `@' at all, there 20070 # is no need to browse any of the substitutions). 20071 # These are the two extra sed commands mentioned above. 20072 (echo ':t 20073 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 20074 if test -z "$ac_sed_cmds"; then 20075 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 20076 else 20077 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 20078 fi 20079 ac_sed_frag=`expr $ac_sed_frag + 1` 20080 ac_beg=$ac_end 20081 ac_end=`expr $ac_end + $ac_max_sed_lines` 20082 fi 20083 done 20084 if test -z "$ac_sed_cmds"; then 20085 ac_sed_cmds=cat 20086 fi 20087fi # test -n "$CONFIG_FILES" 20088 20089EOF 20090cat >>$CONFIG_STATUS <<\EOF 20091for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 20092 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 20093 case $ac_file in 20094 - | *:- | *:-:* ) # input from stdin 20095 cat >$tmp/stdin 20096 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20097 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20098 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20099 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20100 * ) ac_file_in=$ac_file.in ;; 20101 esac 20102 20103 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 20104 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20105 X"$ac_file" : 'X\(//\)[^/]' \| \ 20106 X"$ac_file" : 'X\(//\)$' \| \ 20107 X"$ac_file" : 'X\(/\)' \| \ 20108 . : '\(.\)' 2>/dev/null || 20109echo X"$ac_file" | 20110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20111 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20112 /^X\(\/\/\)$/{ s//\1/; q; } 20113 /^X\(\/\).*/{ s//\1/; q; } 20114 s/.*/./; q'` 20115 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 20116 { case "$ac_dir" in 20117 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 20118 *) as_incr_dir=.;; 20119esac 20120as_dummy="$ac_dir" 20121for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 20122 case $as_mkdir_dir in 20123 # Skip DOS drivespec 20124 ?:) as_incr_dir=$as_mkdir_dir ;; 20125 *) 20126 as_incr_dir=$as_incr_dir/$as_mkdir_dir 20127 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 20128 ;; 20129 esac 20130done; } 20131 20132 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 20133 # A "../" for each directory in $ac_dir_suffix. 20134 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 20135 else 20136 ac_dir_suffix= ac_dots= 20137 fi 20138 20139 case $srcdir in 20140 .) ac_srcdir=. 20141 if test -z "$ac_dots"; then 20142 ac_top_srcdir=. 20143 else 20144 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` 20145 fi ;; 20146 [\\/]* | ?:[\\/]* ) 20147 ac_srcdir=$srcdir$ac_dir_suffix; 20148 ac_top_srcdir=$srcdir ;; 20149 *) # Relative path. 20150 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix 20151 ac_top_srcdir=$ac_dots$srcdir ;; 20152 esac 20153 20154 case $INSTALL in 20155 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20156 *) ac_INSTALL=$ac_dots$INSTALL ;; 20157 esac 20158 20159 if test x"$ac_file" != x-; then 20160 { echo "$as_me:20160: creating $ac_file" >&5 20161echo "$as_me: creating $ac_file" >&6;} 20162 rm -f "$ac_file" 20163 fi 20164 # Let's still pretend it is `configure' which instantiates (i.e., don't 20165 # use $as_me), people would be surprised to read: 20166 # /* config.h. Generated automatically by config.status. */ 20167 configure_input="Generated automatically from `echo $ac_file_in | 20168 sed 's,.*/,,'` by configure." 20169 20170 # First look for the input files in the build tree, otherwise in the 20171 # src tree. 20172 ac_file_inputs=`IFS=: 20173 for f in $ac_file_in; do 20174 case $f in 20175 -) echo $tmp/stdin ;; 20176 [\\/$]*) 20177 # Absolute (can't be DOS-style, as IFS=:) 20178 test -f "$f" || { { echo "$as_me:20178: error: cannot find input file: $f" >&5 20179echo "$as_me: error: cannot find input file: $f" >&2;} 20180 { (exit 1); exit 1; }; } 20181 echo $f;; 20182 *) # Relative 20183 if test -f "$f"; then 20184 # Build tree 20185 echo $f 20186 elif test -f "$srcdir/$f"; then 20187 # Source tree 20188 echo $srcdir/$f 20189 else 20190 # /dev/null tree 20191 { { echo "$as_me:20191: error: cannot find input file: $f" >&5 20192echo "$as_me: error: cannot find input file: $f" >&2;} 20193 { (exit 1); exit 1; }; } 20194 fi;; 20195 esac 20196 done` || { (exit 1); exit 1; } 20197EOF 20198cat >>$CONFIG_STATUS <<EOF 20199 sed "$ac_vpsub 20200$extrasub 20201EOF 20202cat >>$CONFIG_STATUS <<\EOF 20203:t 20204/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20205s,@configure_input@,$configure_input,;t t 20206s,@srcdir@,$ac_srcdir,;t t 20207s,@top_srcdir@,$ac_top_srcdir,;t t 20208s,@INSTALL@,$ac_INSTALL,;t t 20209" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 20210 rm -f $tmp/stdin 20211 if test x"$ac_file" != x-; then 20212 mv $tmp/out $ac_file 20213 else 20214 cat $tmp/out 20215 rm -f $tmp/out 20216 fi 20217 20218done 20219EOF 20220cat >>$CONFIG_STATUS <<\EOF 20221 20222# 20223# CONFIG_HEADER section. 20224# 20225 20226# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 20227# NAME is the cpp macro being defined and VALUE is the value it is being given. 20228# 20229# ac_d sets the value in "#define NAME VALUE" lines. 20230ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 20231ac_dB='[ ].*$,\1#\2' 20232ac_dC=' ' 20233ac_dD=',;t' 20234# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 20235ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 20236ac_iB='\([ ]\),\1#\2define\3' 20237ac_iC=' ' 20238ac_iD='\4,;t' 20239# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 20240ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 20241ac_uB='$,\1#\2define\3' 20242ac_uC=' ' 20243ac_uD=',;t' 20244 20245for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 20246 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 20247 case $ac_file in 20248 - | *:- | *:-:* ) # input from stdin 20249 cat >$tmp/stdin 20250 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20251 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20252 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20253 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20254 * ) ac_file_in=$ac_file.in ;; 20255 esac 20256 20257 test x"$ac_file" != x- && { echo "$as_me:20257: creating $ac_file" >&5 20258echo "$as_me: creating $ac_file" >&6;} 20259 20260 # First look for the input files in the build tree, otherwise in the 20261 # src tree. 20262 ac_file_inputs=`IFS=: 20263 for f in $ac_file_in; do 20264 case $f in 20265 -) echo $tmp/stdin ;; 20266 [\\/$]*) 20267 # Absolute (can't be DOS-style, as IFS=:) 20268 test -f "$f" || { { echo "$as_me:20268: error: cannot find input file: $f" >&5 20269echo "$as_me: error: cannot find input file: $f" >&2;} 20270 { (exit 1); exit 1; }; } 20271 echo $f;; 20272 *) # Relative 20273 if test -f "$f"; then 20274 # Build tree 20275 echo $f 20276 elif test -f "$srcdir/$f"; then 20277 # Source tree 20278 echo $srcdir/$f 20279 else 20280 # /dev/null tree 20281 { { echo "$as_me:20281: error: cannot find input file: $f" >&5 20282echo "$as_me: error: cannot find input file: $f" >&2;} 20283 { (exit 1); exit 1; }; } 20284 fi;; 20285 esac 20286 done` || { (exit 1); exit 1; } 20287 # Remove the trailing spaces. 20288 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 20289 20290EOF 20291 20292# Transform confdefs.h into a list of #define's. We won't use it as a sed 20293# script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to 20294# be either 'cat' or 'sort'. 20295cat confdefs.h | uniq >conftest.vals 20296 20297# Break up conftest.vals because some shells have a limit on 20298# the size of here documents, and old seds have small limits too. 20299 20300rm -f conftest.tail 20301echo ' rm -f conftest.frag' >> $CONFIG_STATUS 20302while grep . conftest.vals >/dev/null 20303do 20304 # Write chunks of a limited-size here document to conftest.frag. 20305 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS 20306 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS 20307 echo 'CEOF' >> $CONFIG_STATUS 20308 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 20309 rm -f conftest.vals 20310 mv conftest.tail conftest.vals 20311done 20312rm -f conftest.vals 20313 20314# Run sed to substitute the contents of conftest.frag into $tmp/in at the 20315# marker @DEFS@. 20316echo ' cat >> conftest.edit <<CEOF 20317/@DEFS@/r conftest.frag 20318/@DEFS@/d 20319CEOF 20320sed -f conftest.edit $tmp/in > $tmp/out 20321rm -f $tmp/in 20322mv $tmp/out $tmp/in 20323rm -f conftest.edit conftest.frag 20324' >> $CONFIG_STATUS 20325 20326cat >>$CONFIG_STATUS <<\EOF 20327 # Let's still pretend it is `configure' which instantiates (i.e., don't 20328 # use $as_me), people would be surprised to read: 20329 # /* config.h. Generated automatically by config.status. */ 20330 if test x"$ac_file" = x-; then 20331 echo "/* Generated automatically by configure. */" >$tmp/config.h 20332 else 20333 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 20334 fi 20335 cat $tmp/in >>$tmp/config.h 20336 rm -f $tmp/in 20337 if test x"$ac_file" != x-; then 20338 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 20339 { echo "$as_me:20339: $ac_file is unchanged" >&5 20340echo "$as_me: $ac_file is unchanged" >&6;} 20341 else 20342 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20343 X"$ac_file" : 'X\(//\)[^/]' \| \ 20344 X"$ac_file" : 'X\(//\)$' \| \ 20345 X"$ac_file" : 'X\(/\)' \| \ 20346 . : '\(.\)' 2>/dev/null || 20347echo X"$ac_file" | 20348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20349 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20350 /^X\(\/\/\)$/{ s//\1/; q; } 20351 /^X\(\/\).*/{ s//\1/; q; } 20352 s/.*/./; q'` 20353 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 20354 { case "$ac_dir" in 20355 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 20356 *) as_incr_dir=.;; 20357esac 20358as_dummy="$ac_dir" 20359for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 20360 case $as_mkdir_dir in 20361 # Skip DOS drivespec 20362 ?:) as_incr_dir=$as_mkdir_dir ;; 20363 *) 20364 as_incr_dir=$as_incr_dir/$as_mkdir_dir 20365 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 20366 ;; 20367 esac 20368done; } 20369 20370 fi 20371 rm -f $ac_file 20372 mv $tmp/config.h $ac_file 20373 fi 20374 else 20375 cat $tmp/config.h 20376 rm -f $tmp/config.h 20377 fi 20378done 20379EOF 20380cat >>$CONFIG_STATUS <<\EOF 20381# 20382# CONFIG_COMMANDS section. 20383# 20384for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 20385 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 20386 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 20387 20388 case $ac_dest in 20389 default ) 20390if test "x$cf_with_tests" != xno ; then 20391 20392for cf_dir in test 20393do 20394 if test ! -d $srcdir/$cf_dir; then 20395 continue 20396 elif test -f $srcdir/$cf_dir/programs; then 20397 $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LINK" $srcdir/$cf_dir/programs >>$cf_dir/Makefile 20398 fi 20399done 20400 20401fi 20402 20403 case $cf_cv_system_name in #(vi 20404 OS/2*|os2*) #(vi 20405 LIB_PREFIX='' 20406 ;; 20407 *) LIB_PREFIX='lib' 20408 ;; 20409 esac 20410cf_prefix=$LIB_PREFIX 20411 20412if test $cf_cv_shlib_version = cygdll ; then 20413 TINFO_NAME=$TINFO_ARG_SUFFIX 20414 TINFO_SUFFIX=.dll 20415fi 20416 20417if test -n "$TINFO_SUFFIX" ; then 20418 case $TINFO_SUFFIX in 20419 tw*) 20420 TINFO_NAME="${TINFO_NAME}tw" 20421 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw//'` 20422 ;; 20423 t*) 20424 TINFO_NAME="${TINFO_NAME}t" 20425 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t//'` 20426 ;; 20427 w*) 20428 TINFO_NAME="${TINFO_NAME}w" 20429 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w//'` 20430 ;; 20431 esac 20432fi 20433 20434for cf_dir in $SRC_SUBDIRS 20435do 20436 if test ! -d $srcdir/$cf_dir ; then 20437 continue 20438 elif test -f $srcdir/$cf_dir/modules; then 20439 20440 SHARED_LIB= 20441 LIBS_TO_MAKE= 20442 for cf_item in $cf_LIST_MODELS 20443 do 20444 20445 case $cf_item in #(vi 20446 libtool) #(vi 20447 cf_suffix='.la' 20448 cf_depsuf=$cf_suffix 20449 ;; 20450 normal) #(vi 20451 cf_suffix='.a' 20452 cf_depsuf=$cf_suffix 20453 ;; 20454 debug) #(vi 20455 cf_suffix='_g.a' 20456 cf_depsuf=$cf_suffix 20457 ;; 20458 profile) #(vi 20459 cf_suffix='_p.a' 20460 cf_depsuf=$cf_suffix 20461 ;; 20462 shared) #(vi 20463 case $cf_cv_system_name in 20464 aix[56]*) #(vi 20465 cf_suffix='.a' 20466 cf_depsuf=$cf_suffix 20467 ;; 20468 cygwin*) #(vi 20469 cf_suffix='.dll' 20470 cf_depsuf='.dll.a' 20471 ;; 20472 darwin*) #(vi 20473 cf_suffix='.dylib' 20474 cf_depsuf=$cf_suffix 20475 ;; 20476 hpux*) #(vi 20477 case $target in 20478 ia64*) #(vi 20479 cf_suffix='.so' 20480 cf_depsuf=$cf_suffix 20481 ;; 20482 *) #(vi 20483 cf_suffix='.sl' 20484 cf_depsuf=$cf_suffix 20485 ;; 20486 esac 20487 ;; 20488 *) cf_suffix='.so' 20489 cf_depsuf=$cf_suffix 20490 ;; 20491 esac 20492 esac 20493 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}" 20494 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}" 20495 20496 if test $cf_item = shared ; then 20497 if test "$cf_cv_do_symlinks" = yes ; then 20498 case "$cf_cv_shlib_version" in #(vi 20499 rel) #(vi 20500 case "$cf_cv_system_name" in #(vi 20501 darwin*) 20502 case .${LIB_SUFFIX} in 20503 .tw*) 20504 cf_suffix=`echo $cf_suffix | sed 's/^tw//'` 20505 cf_suffix=tw'.${REL_VERSION}'"$cf_suffix" 20506 ;; 20507 .t*) 20508 cf_suffix=`echo $cf_suffix | sed 's/^t//'` 20509 cf_suffix=t'.${REL_VERSION}'"$cf_suffix" 20510 ;; 20511 .w*) 20512 cf_suffix=`echo $cf_suffix | sed 's/^w//'` 20513 cf_suffix=w'.${REL_VERSION}'"$cf_suffix" 20514 ;; 20515 *) 20516 cf_suffix='.${REL_VERSION}'"$cf_suffix" 20517 ;; 20518 esac 20519 ;; #(vi 20520 *) cf_suffix="$cf_suffix"'.${REL_VERSION}' ;; 20521 esac 20522 ;; 20523 abi) 20524 case "$cf_cv_system_name" in #(vi 20525 darwin*) 20526 case .${LIB_SUFFIX} in 20527 .tw*) 20528 cf_suffix=`echo $cf_suffix | sed 's/^tw//'` 20529 cf_suffix=tw'.${ABI_VERSION}'"$cf_suffix" 20530 ;; 20531 .t*) 20532 cf_suffix=`echo $cf_suffix | sed 's/^t//'` 20533 cf_suffix=t'.${ABI_VERSION}'"$cf_suffix" 20534 ;; 20535 .w*) 20536 cf_suffix=`echo $cf_suffix | sed 's/^w//'` 20537 cf_suffix=w'.${ABI_VERSION}'"$cf_suffix" 20538 ;; 20539 *) 20540 cf_suffix='.${ABI_VERSION}'"$cf_suffix" 20541 ;; 20542 esac 20543 ;; #(vi 20544 *) cf_suffix="$cf_suffix"'.${ABI_VERSION}' ;; 20545 esac 20546 ;; 20547 esac 20548 fi 20549 # cygwin needs import library, and has unique naming convention 20550 # use autodetected ${cf_prefix} for import lib and static lib, but 20551 # use 'cyg' prefix for shared lib. 20552 if test $cf_cv_shlib_version = cygdll ; then 20553 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'` 20554 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/cyg${cf_dir}${cf_cygsuf}" 20555 continue 20556 fi 20557 fi 20558 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/${cf_prefix}${cf_dir}${cf_suffix}" 20559 done 20560 20561 if test $cf_dir = ncurses ; then 20562 cf_subsets="$LIB_SUBSETS" 20563 cf_r_parts="$cf_subsets" 20564 cf_liblist="$LIBS_TO_MAKE" 20565 20566 while test -n "$cf_r_parts" 20567 do 20568 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'` 20569 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'` 20570 if test "$cf_l_parts" != "$cf_r_parts" ; then 20571 cf_item= 20572 case $cf_l_parts in #(vi 20573 *termlib*) #(vi 20574 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g` 20575 ;; 20576 *ticlib*) 20577 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g` 20578 ;; 20579 *) 20580 break 20581 ;; 20582 esac 20583 if test -n "$cf_item"; then 20584 LIBS_TO_MAKE="$cf_item $LIBS_TO_MAKE" 20585 fi 20586 else 20587 break 20588 fi 20589 done 20590 else 20591 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'` 20592 fi 20593 20594 sed -e "s%@LIBS_TO_MAKE@%$LIBS_TO_MAKE%" \ 20595 -e "s%@SHARED_LIB@%$SHARED_LIB%" \ 20596 $cf_dir/Makefile >$cf_dir/Makefile.out 20597 mv $cf_dir/Makefile.out $cf_dir/Makefile 20598 20599 $AWK -f $srcdir/mk-0th.awk \ 20600 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" \ 20601 $srcdir/$cf_dir/modules >>$cf_dir/Makefile 20602 20603 for cf_subset in $cf_subsets 20604 do 20605 cf_subdirs= 20606 for cf_item in $cf_LIST_MODELS 20607 do 20608 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})" 20609 20610cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 20611 20612 case $cf_item in #(vi 20613 libtool) #(vi 20614 cf_suffix='.la' 20615 cf_depsuf=$cf_suffix 20616 ;; 20617 normal) #(vi 20618 cf_suffix='.a' 20619 cf_depsuf=$cf_suffix 20620 ;; 20621 debug) #(vi 20622 cf_suffix='_g.a' 20623 cf_depsuf=$cf_suffix 20624 ;; 20625 profile) #(vi 20626 cf_suffix='_p.a' 20627 cf_depsuf=$cf_suffix 20628 ;; 20629 shared) #(vi 20630 case $cf_cv_system_name in 20631 aix[56]*) #(vi 20632 cf_suffix='.a' 20633 cf_depsuf=$cf_suffix 20634 ;; 20635 cygwin*) #(vi 20636 cf_suffix='.dll' 20637 cf_depsuf='.dll.a' 20638 ;; 20639 darwin*) #(vi 20640 cf_suffix='.dylib' 20641 cf_depsuf=$cf_suffix 20642 ;; 20643 hpux*) #(vi 20644 case $target in 20645 ia64*) #(vi 20646 cf_suffix='.so' 20647 cf_depsuf=$cf_suffix 20648 ;; 20649 *) #(vi 20650 cf_suffix='.sl' 20651 cf_depsuf=$cf_suffix 20652 ;; 20653 esac 20654 ;; 20655 *) cf_suffix='.so' 20656 cf_depsuf=$cf_suffix 20657 ;; 20658 esac 20659 esac 20660 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}" 20661 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}" 20662 20663 case $cf_item in 20664 libtool) cf_subdir='obj_lo' ;; 20665 normal) cf_subdir='objects' ;; 20666 debug) cf_subdir='obj_g' ;; 20667 profile) cf_subdir='obj_p' ;; 20668 shared) 20669 case $cf_cv_system_name in #(vi 20670 cygwin) #(vi 20671 cf_subdir='objects' ;; 20672 *) 20673 cf_subdir='obj_s' ;; 20674 esac 20675 esac 20676 20677 # Test for case where we build libtinfo with a different name. 20678 cf_libname=$cf_dir 20679 if test $cf_dir = ncurses ; then 20680 case $cf_subset in 20681 *base*) 20682 cf_libname=${cf_libname}$LIB_SUFFIX 20683 ;; 20684 *termlib*) 20685 cf_libname=$TINFO_LIB_SUFFIX 20686 ;; 20687 ticlib*) 20688 cf_libname=$TICS_LIB_SUFFIX 20689 ;; 20690 esac 20691 else 20692 cf_libname=${cf_libname}$LIB_SUFFIX 20693 fi 20694 if test -n "${DFT_ARG_SUFFIX}" ; then 20695 # undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX 20696 cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"` 20697 fi 20698 20699 # These dependencies really are for development, not 20700 # builds, but they are useful in porting, too. 20701 cf_depend="../include/ncurses_cfg.h" 20702 if test "$srcdir" = "."; then 20703 cf_reldir="." 20704 else 20705 cf_reldir="\${srcdir}" 20706 fi 20707 20708 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then 20709 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h" 20710 elif test -f $srcdir/$cf_dir/curses.priv.h; then 20711 cf_depend="$cf_depend $cf_reldir/curses.priv.h" 20712 fi 20713 20714 cf_dir_suffix= 20715 old_cf_suffix="$cf_suffix" 20716 if test "$cf_cv_shlib_version_infix" = yes ; then 20717 if test -n "$LIB_SUFFIX" ; then 20718 case $LIB_SUFFIX in 20719 tw*) 20720 cf_libname=`echo $cf_libname | sed 's/tw$//'` 20721 cf_suffix=`echo $cf_suffix | sed 's/^tw//'` 20722 cf_dir_suffix=tw 20723 ;; 20724 t*) 20725 cf_libname=`echo $cf_libname | sed 's/t$//'` 20726 cf_suffix=`echo $cf_suffix | sed 's/^t//'` 20727 cf_dir_suffix=t 20728 ;; 20729 w*) 20730 cf_libname=`echo $cf_libname | sed 's/w$//'` 20731 cf_suffix=`echo $cf_suffix | sed 's/^w//'` 20732 cf_dir_suffix=w 20733 ;; 20734 esac 20735 fi 20736 fi 20737 20738 $AWK -f $srcdir/mk-1st.awk \ 20739 name=${cf_libname}${cf_dir_suffix} \ 20740 traces=$LIB_TRACING \ 20741 MODEL=$cf_ITEM \ 20742 model=$cf_subdir \ 20743 prefix=$cf_prefix \ 20744 suffix=$cf_suffix \ 20745 subset=$cf_subset \ 20746 SymLink="$LN_S" \ 20747 TermlibRoot=$TINFO_NAME \ 20748 TermlibSuffix=$TINFO_SUFFIX \ 20749 ShlibVer=$cf_cv_shlib_version \ 20750 ShlibVerInfix=$cf_cv_shlib_version_infix \ 20751 ReLink=${cf_cv_do_relink:-no} \ 20752 DoLinks=$cf_cv_do_symlinks \ 20753 rmSoLocs=$cf_cv_rm_so_locs \ 20754 ldconfig="$LDCONFIG" \ 20755 overwrite=$WITH_OVERWRITE \ 20756 depend="$cf_depend" \ 20757 host="$host" \ 20758 libtool_version="$LIBTOOL_VERSION" \ 20759 $srcdir/$cf_dir/modules >>$cf_dir/Makefile 20760 20761 cf_suffix="$old_cf_suffix" 20762 20763 for cf_subdir2 in $cf_subdirs lib 20764 do 20765 test $cf_subdir = $cf_subdir2 && break 20766 done 20767 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \ 20768 $AWK -f $srcdir/mk-2nd.awk \ 20769 name=$cf_dir \ 20770 traces=$LIB_TRACING \ 20771 MODEL=$cf_ITEM \ 20772 model=$cf_subdir \ 20773 subset=$cf_subset \ 20774 srcdir=$srcdir \ 20775 echo=$WITH_ECHO \ 20776 crenames=$cf_cv_prog_CC_c_o \ 20777 cxxrenames=$cf_cv_prog_CXX_c_o \ 20778 $srcdir/$cf_dir/modules >>$cf_dir/Makefile 20779 cf_subdirs="$cf_subdirs $cf_subdir" 20780 done 20781 done 20782 fi 20783 20784 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >>Makefile 20785done 20786 20787for cf_dir in $SRC_SUBDIRS 20788do 20789 if test ! -d $srcdir/$cf_dir ; then 20790 continue 20791 fi 20792 20793 if test -f $cf_dir/Makefile ; then 20794 case "$cf_dir" in 20795 Ada95) #(vi 20796 echo 'libs \' >> Makefile 20797 echo 'install.libs \' >> Makefile 20798 echo 'uninstall.libs ::' >> Makefile 20799 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >> Makefile 20800 ;; 20801 esac 20802 fi 20803 20804 if test -f $srcdir/$cf_dir/modules; then 20805 echo >> Makefile 20806 if test -f $srcdir/$cf_dir/headers; then 20807cat >> Makefile <<CF_EOF 20808install.includes \\ 20809uninstall.includes \\ 20810CF_EOF 20811 fi 20812if test "$cf_dir" != "c++" ; then 20813echo 'lint \' >> Makefile 20814fi 20815cat >> Makefile <<CF_EOF 20816libs \\ 20817lintlib \\ 20818install.libs \\ 20819uninstall.libs \\ 20820install.$cf_dir \\ 20821uninstall.$cf_dir :: 20822 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@ 20823CF_EOF 20824 elif test -f $srcdir/$cf_dir/headers; then 20825cat >> Makefile <<CF_EOF 20826 20827libs \\ 20828install.libs \\ 20829uninstall.libs \\ 20830install.includes \\ 20831uninstall.includes :: 20832 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@ 20833CF_EOF 20834fi 20835done 20836 20837cat >> Makefile <<CF_EOF 20838 20839install.libs uninstall.libs \\ 20840install.data uninstall.data :: 20841$MAKE_TERMINFO cd misc && \${MAKE} \${CF_MFLAGS} \$@ 20842CF_EOF 20843 20844if test "x$cf_with_manpages" = xyes; then 20845cat >> Makefile <<CF_EOF 20846 20847install.man \\ 20848uninstall.man :: 20849 cd man && \${MAKE} \${CF_MFLAGS} \$@ 20850CF_EOF 20851fi 20852 20853cat >> Makefile <<CF_EOF 20854 20855distclean :: 20856 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h 20857 rm -f headers.sh headers.sed mk_shared_lib.sh 20858 rm -f edit_man.* man_alias.* 20859 rm -rf \${DIRS_TO_MAKE} 20860CF_EOF 20861 20862# Special case: tack's manpage lives in its own directory. 20863if test "x$cf_with_manpages" = xyes; then 20864if test -d tack ; then 20865if test -f $srcdir/$tack.h; then 20866cat >> Makefile <<CF_EOF 20867 20868install.man \\ 20869uninstall.man :: 20870 cd tack && \${MAKE} \${CF_MFLAGS} \$@ 20871CF_EOF 20872fi 20873fi 20874fi 20875 20876rm -f headers.sed headers.sh 20877 20878echo creating headers.sh 20879cat >headers.sh <<CF_EOF 20880#! /bin/sh 20881# This shell script is generated by the 'configure' script. It is invoked in a 20882# subdirectory of the build tree. It generates a sed-script in the parent 20883# directory that is used to adjust includes for header files that reside in a 20884# subdirectory of /usr/include, etc. 20885PRG="" 20886while test \$# != 3 20887do 20888PRG="\$PRG \$1"; shift 20889done 20890DST=\$1 20891REF=\$2 20892SRC=\$3 20893TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$ 20894TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$ 20895echo installing \$SRC in \$DST 20896CF_EOF 20897 20898if test $WITH_CURSES_H = yes; then 20899 cat >>headers.sh <<CF_EOF 20900case \$DST in 20901/*/include/*) 20902 END=\`basename \$DST\` 20903 for i in \`cat \$REF/../*/headers |fgrep -v "#"\` 20904 do 20905 NAME=\`basename \$i\` 20906 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED 20907 done 20908 ;; 20909*) 20910 echo "" >> \$TMPSED 20911 ;; 20912esac 20913CF_EOF 20914 20915else 20916 cat >>headers.sh <<CF_EOF 20917case \$DST in 20918/*/include/*) 20919 END=\`basename \$DST\` 20920 for i in \`cat \$REF/../*/headers |fgrep -v "#"\` 20921 do 20922 NAME=\`basename \$i\` 20923 if test "\$NAME" = "curses.h" 20924 then 20925 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED 20926 NAME=ncurses.h 20927 fi 20928 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED 20929 done 20930 ;; 20931*) 20932 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED 20933 ;; 20934esac 20935CF_EOF 20936fi 20937cat >>headers.sh <<CF_EOF 20938rm -f \$TMPSRC 20939sed -f \$TMPSED \$SRC > \$TMPSRC 20940NAME=\`basename \$SRC\` 20941CF_EOF 20942if test $WITH_CURSES_H != yes; then 20943 cat >>headers.sh <<CF_EOF 20944test "\$NAME" = "curses.h" && NAME=ncurses.h 20945CF_EOF 20946fi 20947cat >>headers.sh <<CF_EOF 20948# Just in case someone gzip'd manpages, remove the conflicting copy. 20949test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz 20950 20951eval \$PRG \$TMPSRC \$DST/\$NAME 20952rm -f \$TMPSRC \$TMPSED 20953CF_EOF 20954 20955chmod 0755 headers.sh 20956 20957for cf_dir in $SRC_SUBDIRS 20958do 20959 if test ! -d $srcdir/$cf_dir ; then 20960 continue 20961 fi 20962 20963 if test -f $srcdir/$cf_dir/headers; then 20964 $AWK -f $srcdir/mk-hdr.awk \ 20965 subset="$LIB_SUBSETS" \ 20966 compat="$WITH_CURSES_H" \ 20967 $srcdir/$cf_dir/headers >>$cf_dir/Makefile 20968 fi 20969 20970 if test -f $srcdir/$cf_dir/modules; then 20971 if test "$cf_dir" != "c++" ; then 20972 cat >>$cf_dir/Makefile <<"CF_EOF" 20973depend : ${AUTO_SRC} 20974 makedepend -- ${CPPFLAGS} -- ${C_SRC} 20975 20976# DO NOT DELETE THIS LINE -- make depend depends on it. 20977CF_EOF 20978 fi 20979 fi 20980done 20981 20982if test "x$cf_with_ada" != xno ; then 20983if test -z "$USE_OLD_MAKERULES" ; then 20984 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile 20985fi 20986fi 20987 ;; 20988 esac 20989done 20990EOF 20991 20992cat >>$CONFIG_STATUS <<\EOF 20993 20994{ (exit 0); exit 0; } 20995EOF 20996chmod +x $CONFIG_STATUS 20997ac_clean_files=$ac_clean_files_save 20998 20999# configure is writing to config.log, and then calls config.status. 21000# config.status does its own redirection, appending to config.log. 21001# Unfortunately, on DOS this fails, as config.log is still kept open 21002# by configure, so config.status won't be able to write to it; its 21003# output is simply discarded. So we exec the FD to /dev/null, 21004# effectively closing config.log, so it can be properly (re)opened and 21005# appended to by config.status. When coming back to configure, we 21006# need to make the FD available again. 21007if test "$no_create" != yes; then 21008 ac_cs_success=: 21009 exec 5>/dev/null 21010 $SHELL $CONFIG_STATUS || ac_cs_success=false 21011 exec 5>>config.log 21012 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21013 # would make configure fail if this is the last instruction. 21014 $ac_cs_success || { (exit 1); exit 1; } 21015fi 21016${MAKE:-make} preinstall 21017