configure revision 956cc18d
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by Autoconf 2.52.20081225. 4# 5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 6# Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10# Avoid depending upon Character Ranges. 11as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14as_cr_digits='0123456789' 15as_cr_alnum=$as_cr_Letters$as_cr_digits 16 17# Sed expression to map a string onto a valid variable name. 18as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 19 20# Sed expression to map a string onto a valid CPP name. 21as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 22 23# Be Bourne compatible 24if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 25 emulate sh 26 NULLCMD=: 27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 28 set -o posix 29fi 30 31# Name of the executable. 32as_me=`echo "$0" |sed 's,.*[\\/],,'` 33 34if expr a : '\(a\)' >/dev/null 2>&1; then 35 as_expr=expr 36else 37 as_expr=false 38fi 39 40rm -f conf$$ conf$$.exe conf$$.file 41echo >conf$$.file 42if ln -s conf$$.file conf$$ 2>/dev/null; then 43 # We could just check for DJGPP; but this test a) works b) is more generic 44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 45 if test -f conf$$.exe; then 46 # Don't use ln at all; we don't have any links 47 as_ln_s='cp -p' 48 else 49 as_ln_s='ln -s' 50 fi 51elif ln conf$$.file conf$$ 2>/dev/null; then 52 as_ln_s=ln 53else 54 as_ln_s='cp -p' 55fi 56rm -f conf$$ conf$$.exe conf$$.file 57 58as_executable_p="test -f" 59 60# Support unset when possible. 61if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 62 as_unset=unset 63else 64 as_unset=false 65fi 66 67# NLS nuisances. 68$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 69$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 70$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 71$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 72$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 73$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 74$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 75$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 76 77# IFS 78# We need space, tab and new line, in precisely that order. 79as_nl=' 80' 81IFS=" $as_nl" 82 83# CDPATH. 84$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 85 86# Name of the host. 87# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 88# so uname gets run too. 89ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 90 91exec 6>&1 92 93# 94# Initializations. 95# 96ac_default_prefix=/usr/local 97cross_compiling=no 98subdirs= 99MFLAGS= MAKEFLAGS= 100SHELL=${CONFIG_SHELL-/bin/sh} 101 102# Maximum number of lines to put in a shell here document. 103# This variable seems obsolete. It should probably be removed, and 104# only ac_max_sed_lines should be used. 105: ${ac_max_here_lines=38} 106 107ac_unique_file="charproc.c" 108# Factoring default headers for most tests. 109ac_includes_default="\ 110#include <stdio.h> 111#if HAVE_SYS_TYPES_H 112# include <sys/types.h> 113#endif 114#if HAVE_SYS_STAT_H 115# include <sys/stat.h> 116#endif 117#if STDC_HEADERS 118# include <stdlib.h> 119# include <stddef.h> 120#else 121# if HAVE_STDLIB_H 122# include <stdlib.h> 123# endif 124#endif 125#if HAVE_STRING_H 126# if !STDC_HEADERS && HAVE_MEMORY_H 127# include <memory.h> 128# endif 129# include <string.h> 130#endif 131#if HAVE_STRINGS_H 132# include <strings.h> 133#endif 134#if HAVE_INTTYPES_H 135# include <inttypes.h> 136#else 137# if HAVE_STDINT_H 138# include <stdint.h> 139# endif 140#endif 141#if HAVE_UNISTD_H 142# include <unistd.h> 143#endif" 144 145# Initialize some variables set by options. 146ac_init_help= 147ac_init_version=false 148# The variables have the same names as the options, with 149# dashes changed to underlines. 150cache_file=/dev/null 151exec_prefix=NONE 152no_create= 153no_recursion= 154prefix=NONE 155program_prefix=NONE 156program_suffix=NONE 157program_transform_name=s,x,x, 158silent= 159site= 160srcdir= 161verbose= 162x_includes=NONE 163x_libraries=NONE 164 165# Installation directory options. 166# These are left unexpanded so users can "make install exec_prefix=/foo" 167# and all the variables that are supposed to be based on exec_prefix 168# by default will actually change. 169# Use braces instead of parens because sh, perl, etc. also accept them. 170bindir='${exec_prefix}/bin' 171sbindir='${exec_prefix}/sbin' 172libexecdir='${exec_prefix}/libexec' 173datadir='${prefix}/share' 174sysconfdir='${prefix}/etc' 175sharedstatedir='${prefix}/com' 176localstatedir='${prefix}/var' 177libdir='${exec_prefix}/lib' 178includedir='${prefix}/include' 179oldincludedir='/usr/include' 180infodir='${prefix}/info' 181mandir='${prefix}/man' 182 183# Identity of this package. 184PACKAGE_NAME= 185PACKAGE_TARNAME= 186PACKAGE_VERSION= 187PACKAGE_STRING= 188PACKAGE_BUGREPORT= 189 190ac_prev= 191for ac_option 192do 193 # If the previous option needs an argument, assign it. 194 if test -n "$ac_prev"; then 195 eval "$ac_prev=\$ac_option" 196 ac_prev= 197 continue 198 fi 199 200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 201 202 # Accept the important Cygnus configure options, so we can diagnose typos. 203 204 case $ac_option in 205 206 -bindir | --bindir | --bindi | --bind | --bin | --bi) 207 ac_prev=bindir ;; 208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 209 bindir=$ac_optarg ;; 210 211 -build | --build | --buil | --bui | --bu) 212 ac_prev=build_alias ;; 213 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 214 build_alias=$ac_optarg ;; 215 216 -cache-file | --cache-file | --cache-fil | --cache-fi \ 217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 218 ac_prev=cache_file ;; 219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 221 cache_file=$ac_optarg ;; 222 223 --config-cache | -C) 224 cache_file=config.cache ;; 225 226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 227 ac_prev=datadir ;; 228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 229 | --da=*) 230 datadir=$ac_optarg ;; 231 232 -disable-* | --disable-*) 233 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 234 # Reject names that are not valid shell variable names. 235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 237 { (exit 1); exit 1; }; } 238 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 239 eval "enable_$ac_feature=no" ;; 240 241 -enable-* | --enable-*) 242 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 243 # Reject names that are not valid shell variable names. 244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 246 { (exit 1); exit 1; }; } 247 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 248 case $ac_option in 249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 250 *) ac_optarg=yes ;; 251 esac 252 eval "enable_$ac_feature='$ac_optarg'" ;; 253 254 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 255 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 256 | --exec | --exe | --ex) 257 ac_prev=exec_prefix ;; 258 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 259 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 260 | --exec=* | --exe=* | --ex=*) 261 exec_prefix=$ac_optarg ;; 262 263 -gas | --gas | --ga | --g) 264 # Obsolete; use --with-gas. 265 with_gas=yes ;; 266 267 -help | --help | --hel | --he | -h) 268 ac_init_help=long ;; 269 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 270 ac_init_help=recursive ;; 271 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 272 ac_init_help=short ;; 273 274 -host | --host | --hos | --ho) 275 ac_prev=host_alias ;; 276 -host=* | --host=* | --hos=* | --ho=*) 277 host_alias=$ac_optarg ;; 278 279 -includedir | --includedir | --includedi | --included | --include \ 280 | --includ | --inclu | --incl | --inc) 281 ac_prev=includedir ;; 282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 283 | --includ=* | --inclu=* | --incl=* | --inc=*) 284 includedir=$ac_optarg ;; 285 286 -infodir | --infodir | --infodi | --infod | --info | --inf) 287 ac_prev=infodir ;; 288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 289 infodir=$ac_optarg ;; 290 291 -libdir | --libdir | --libdi | --libd) 292 ac_prev=libdir ;; 293 -libdir=* | --libdir=* | --libdi=* | --libd=*) 294 libdir=$ac_optarg ;; 295 296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 297 | --libexe | --libex | --libe) 298 ac_prev=libexecdir ;; 299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 300 | --libexe=* | --libex=* | --libe=*) 301 libexecdir=$ac_optarg ;; 302 303 -localstatedir | --localstatedir | --localstatedi | --localstated \ 304 | --localstate | --localstat | --localsta | --localst \ 305 | --locals | --local | --loca | --loc | --lo) 306 ac_prev=localstatedir ;; 307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 310 localstatedir=$ac_optarg ;; 311 312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 313 ac_prev=mandir ;; 314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 315 mandir=$ac_optarg ;; 316 317 -nfp | --nfp | --nf) 318 # Obsolete; use --without-fp. 319 with_fp=no ;; 320 321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 322 | --no-cr | --no-c) 323 no_create=yes ;; 324 325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 327 no_recursion=yes ;; 328 329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 331 | --oldin | --oldi | --old | --ol | --o) 332 ac_prev=oldincludedir ;; 333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 336 oldincludedir=$ac_optarg ;; 337 338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 339 ac_prev=prefix ;; 340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 341 prefix=$ac_optarg ;; 342 343 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 344 | --program-pre | --program-pr | --program-p) 345 ac_prev=program_prefix ;; 346 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 348 program_prefix=$ac_optarg ;; 349 350 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 351 | --program-suf | --program-su | --program-s) 352 ac_prev=program_suffix ;; 353 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 355 program_suffix=$ac_optarg ;; 356 357 -program-transform-name | --program-transform-name \ 358 | --program-transform-nam | --program-transform-na \ 359 | --program-transform-n | --program-transform- \ 360 | --program-transform | --program-transfor \ 361 | --program-transfo | --program-transf \ 362 | --program-trans | --program-tran \ 363 | --progr-tra | --program-tr | --program-t) 364 ac_prev=program_transform_name ;; 365 -program-transform-name=* | --program-transform-name=* \ 366 | --program-transform-nam=* | --program-transform-na=* \ 367 | --program-transform-n=* | --program-transform-=* \ 368 | --program-transform=* | --program-transfor=* \ 369 | --program-transfo=* | --program-transf=* \ 370 | --program-trans=* | --program-tran=* \ 371 | --progr-tra=* | --program-tr=* | --program-t=*) 372 program_transform_name=$ac_optarg ;; 373 374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 375 | -silent | --silent | --silen | --sile | --sil) 376 silent=yes ;; 377 378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 379 ac_prev=sbindir ;; 380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 381 | --sbi=* | --sb=*) 382 sbindir=$ac_optarg ;; 383 384 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 386 | --sharedst | --shareds | --shared | --share | --shar \ 387 | --sha | --sh) 388 ac_prev=sharedstatedir ;; 389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 392 | --sha=* | --sh=*) 393 sharedstatedir=$ac_optarg ;; 394 395 -site | --site | --sit) 396 ac_prev=site ;; 397 -site=* | --site=* | --sit=*) 398 site=$ac_optarg ;; 399 400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 401 ac_prev=srcdir ;; 402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 403 srcdir=$ac_optarg ;; 404 405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 406 | --syscon | --sysco | --sysc | --sys | --sy) 407 ac_prev=sysconfdir ;; 408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 410 sysconfdir=$ac_optarg ;; 411 412 -target | --target | --targe | --targ | --tar | --ta | --t) 413 ac_prev=target_alias ;; 414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 415 target_alias=$ac_optarg ;; 416 417 -v | -verbose | --verbose | --verbos | --verbo | --verb) 418 verbose=yes ;; 419 420 -version | --version | --versio | --versi | --vers | -V) 421 ac_init_version=: ;; 422 423 -with-* | --with-*) 424 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 425 # Reject names that are not valid shell variable names. 426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 427 { echo "$as_me: error: invalid package name: $ac_package" >&2 428 { (exit 1); exit 1; }; } 429 ac_package=`echo $ac_package| sed 's/-/_/g'` 430 case $ac_option in 431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 432 *) ac_optarg=yes ;; 433 esac 434 eval "with_$ac_package='$ac_optarg'" ;; 435 436 -without-* | --without-*) 437 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 438 # Reject names that are not valid shell variable names. 439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 440 { echo "$as_me: error: invalid package name: $ac_package" >&2 441 { (exit 1); exit 1; }; } 442 ac_package=`echo $ac_package | sed 's/-/_/g'` 443 eval "with_$ac_package=no" ;; 444 445 --x) 446 # Obsolete; use --with-x. 447 with_x=yes ;; 448 449 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 450 | --x-incl | --x-inc | --x-in | --x-i) 451 ac_prev=x_includes ;; 452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 454 x_includes=$ac_optarg ;; 455 456 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 458 ac_prev=x_libraries ;; 459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 461 x_libraries=$ac_optarg ;; 462 463 -*) { echo "$as_me: error: unrecognized option: $ac_option 464Try \`$0 --help' for more information." >&2 465 { (exit 1); exit 1; }; } 466 ;; 467 468 *=*) 469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 470 # Reject names that are not valid shell variable names. 471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 473 { (exit 1); exit 1; }; } 474 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 475 eval "$ac_envvar='$ac_optarg'" 476 export $ac_envvar ;; 477 478 *) 479 # FIXME: should be removed in autoconf 3.0. 480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 484 ;; 485 486 esac 487done 488 489if test -n "$ac_prev"; then 490 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 491 { echo "$as_me: error: missing argument to $ac_option" >&2 492 { (exit 1); exit 1; }; } 493fi 494 495# Be sure to have absolute paths. 496for ac_var in exec_prefix prefix 497do 498 eval ac_val=$`echo $ac_var` 499 case $ac_val in 500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 502 { (exit 1); exit 1; }; };; 503 esac 504done 505 506# Be sure to have absolute paths. 507for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 508 localstatedir libdir includedir oldincludedir infodir mandir 509do 510 eval ac_val=$`echo $ac_var` 511 case $ac_val in 512 [\\/$]* | ?:[\\/]* ) ;; 513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 514 { (exit 1); exit 1; }; };; 515 esac 516done 517 518# There might be people who depend on the old broken behavior: `$host' 519# used to hold the argument of --host etc. 520build=$build_alias 521host=$host_alias 522target=$target_alias 523 524# FIXME: should be removed in autoconf 3.0. 525if test "x$host_alias" != x; then 526 if test "x$build_alias" = x; then 527 cross_compiling=maybe 528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 529 If a cross compiler is detected then cross compile mode will be used." >&2 530 elif test "x$build_alias" != "x$host_alias"; then 531 cross_compiling=yes 532 fi 533fi 534 535ac_tool_prefix= 536test -n "$host_alias" && ac_tool_prefix=$host_alias- 537 538test "$silent" = yes && exec 6>/dev/null 539 540# Find the source files, if location was not specified. 541if test -z "$srcdir"; then 542 ac_srcdir_defaulted=yes 543 # Try the directory containing this script, then its parent. 544 ac_prog=$0 545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` 546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 547 srcdir=$ac_confdir 548 if test ! -r $srcdir/$ac_unique_file; then 549 srcdir=.. 550 fi 551else 552 ac_srcdir_defaulted=no 553fi 554if test ! -r $srcdir/$ac_unique_file; then 555 if test "$ac_srcdir_defaulted" = yes; then 556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 557 { (exit 1); exit 1; }; } 558 else 559 { echo "$as_me: error: cannot find sources in $srcdir" >&2 560 { (exit 1); exit 1; }; } 561 fi 562fi 563srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 564ac_env_build_alias_set=${build_alias+set} 565ac_env_build_alias_value=$build_alias 566ac_cv_env_build_alias_set=${build_alias+set} 567ac_cv_env_build_alias_value=$build_alias 568ac_env_host_alias_set=${host_alias+set} 569ac_env_host_alias_value=$host_alias 570ac_cv_env_host_alias_set=${host_alias+set} 571ac_cv_env_host_alias_value=$host_alias 572ac_env_target_alias_set=${target_alias+set} 573ac_env_target_alias_value=$target_alias 574ac_cv_env_target_alias_set=${target_alias+set} 575ac_cv_env_target_alias_value=$target_alias 576ac_env_CC_set=${CC+set} 577ac_env_CC_value=$CC 578ac_cv_env_CC_set=${CC+set} 579ac_cv_env_CC_value=$CC 580ac_env_CFLAGS_set=${CFLAGS+set} 581ac_env_CFLAGS_value=$CFLAGS 582ac_cv_env_CFLAGS_set=${CFLAGS+set} 583ac_cv_env_CFLAGS_value=$CFLAGS 584ac_env_LDFLAGS_set=${LDFLAGS+set} 585ac_env_LDFLAGS_value=$LDFLAGS 586ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 587ac_cv_env_LDFLAGS_value=$LDFLAGS 588ac_env_CPPFLAGS_set=${CPPFLAGS+set} 589ac_env_CPPFLAGS_value=$CPPFLAGS 590ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 591ac_cv_env_CPPFLAGS_value=$CPPFLAGS 592ac_env_CPP_set=${CPP+set} 593ac_env_CPP_value=$CPP 594ac_cv_env_CPP_set=${CPP+set} 595ac_cv_env_CPP_value=$CPP 596 597# 598# Report the --help message. 599# 600if test "$ac_init_help" = "long"; then 601 # Omit some internal or obsolete options to make the list less imposing. 602 # This message is too long to be a string in the A/UX 3.1 sh. 603 cat <<EOF 604\`configure' configures this package to adapt to many kinds of systems. 605 606Usage: $0 [OPTION]... [VAR=VALUE]... 607 608To assign environment variables (e.g., CC, CFLAGS...), specify them as 609VAR=VALUE. See below for descriptions of some of the useful variables. 610 611Defaults for the options are specified in brackets. 612 613Configuration: 614 -h, --help display this help and exit 615 --help=short display options specific to this package 616 --help=recursive display the short help of all the included packages 617 -V, --version display version information and exit 618 -q, --quiet, --silent do not print \`checking...' messages 619 --cache-file=FILE cache test results in FILE [disabled] 620 -C, --config-cache alias for \`--cache-file=config.cache' 621 -n, --no-create do not create output files 622 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 623 624EOF 625 626 cat <<EOF 627Installation directories: 628 --prefix=PREFIX install architecture-independent files in PREFIX 629 [$ac_default_prefix] 630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 631 [PREFIX] 632 633By default, \`make install' will install all the files in 634\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 635an installation prefix other than \`$ac_default_prefix' using \`--prefix', 636for instance \`--prefix=\$HOME'. 637 638For better control, use the options below. 639 640Fine tuning of the installation directories: 641 --bindir=DIR user executables [EPREFIX/bin] 642 --sbindir=DIR system admin executables [EPREFIX/sbin] 643 --libexecdir=DIR program executables [EPREFIX/libexec] 644 --datadir=DIR read-only architecture-independent data [PREFIX/share] 645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 647 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 648 --libdir=DIR object code libraries [EPREFIX/lib] 649 --includedir=DIR C header files [PREFIX/include] 650 --oldincludedir=DIR C header files for non-gcc [/usr/include] 651 --infodir=DIR info documentation [PREFIX/info] 652 --mandir=DIR man documentation [PREFIX/man] 653EOF 654 655 cat <<\EOF 656 657Program names: 658 --program-prefix=PREFIX prepend PREFIX to installed program names 659 --program-suffix=SUFFIX append SUFFIX to installed program names 660 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 661 662X features: 663 --x-includes=DIR X include files are in DIR 664 --x-libraries=DIR X library files are in DIR 665 666System types: 667 --build=BUILD configure for building on BUILD [guessed] 668 --host=HOST build programs to run on HOST [BUILD] 669EOF 670fi 671 672if test -n "$ac_init_help"; then 673 674 cat <<\EOF 675 676Optional Features: 677 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 678 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 679 680Optional Packages: 681 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 682 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 683 684Compile/Install Options: 685 --disable-full-tgetent disable check for full tgetent function 686 --with-app-defaults=DIR directory in which to install resource files (default: EPREFIX/lib/X11/app-defaults) 687 --with-icondir=DIR directory in which to install icons (default: EPREFIX/share/pixmaps) 688 --disable-desktop disable install of xterm desktop files 689 --with-reference=XXX program to use as permissions-reference 690 --with-xterm-symlink=XXX make symbolic link to installed xterm 691 --disable-setuid disable setuid in xterm, do not install setuid/setgid 692 --disable-setgid disable setgid in xterm, do not install setuid/setgid 693 --with-setuid=XXX use the given setuid user 694 --with-utmp-setgid=XXX use setgid to match utmp/utmpx file 695 --with-utempter use utempter library for access to utmp 696 --with-tty-group=XXX use XXX for the tty-group 697 --with-x use the X Window System 698 --with-Xaw3d link with Xaw 3d library 699 --with-neXtaw link with neXT Athena library 700 --with-XawPlus link with Athena-Plus library 701 --enable-narrowproto enable narrow prototypes for X libraries 702 --disable-imake disable use of imake for definitions 703Terminal Configuration: 704 --with-terminal-id=V set default decTerminalID (default: vt100) 705 --with-terminal-type=T set default $TERM (default: xterm) 706 --with-own-terminfo=P set default $TERMINFO (default: from environment) 707Optional Features: 708 --disable-active-icon disable X11R6.3 active-icon feature 709 --disable-ansi-color disable ANSI color 710 --disable-16-color disable 16-color support 711 --enable-256-color enable 256-color support 712 --enable-88-color enable 88-color support 713 --disable-blink-cursor disable support for blinking cursor 714 --enable-broken-osc allow broken Linux OSC-strings 715 --enable-broken-st allow broken string-terminators 716 --disable-c1-print disallow -k8 option for printable 128-159 717 --disable-bold-color disable PC-style mapping of bold colors 718 --disable-color-class disable separate color class resources 719 --disable-color-mode disable default colorMode resource 720 --disable-highlighting disable support for color highlighting 721 --disable-doublechars disable support for double-size chars 722 --disable-boxchars disable fallback-support for box chars 723 --enable-exec-xterm enable "spawn-new-terminal" action 724 --disable-freetype disable freetype library-support 725 --with-pkg-config{=path} enable/disable use of pkg-config 726 --with-freetype-cflags -D/-I options for compiling with FreeType 727 --with-freetype-libs -L/-l options to link FreeType 728 --enable-hp-fkeys enable support for HP-style function keys 729 --enable-sco-fkeys enable support for SCO-style function keys 730 --disable-sun-fkeys disable support for Sun-style function keys 731 --enable-fifo-lines disable FIFO-storage for saved-lines 732 --disable-i18n disable internationalization 733 --disable-initial-erase disable setup for stty erase 734 --disable-input-method disable input-method 735 --enable-load-vt-fonts enable load-vt-fonts() action 736 --enable-logging enable logging 737 --enable-logfile-exec enable exec'd logfile filter 738 --disable-maximize disable actions for iconify/deiconify/maximize/restore 739 --disable-num-lock disable NumLock keypad support 740 --disable-paste64 disable get/set base64 selection data 741 --disable-pty-handshake disable pty-handshake support 742 --enable-readline-mouse enable support for mouse in readline applications 743 --disable-regex disable regular-expression selections 744 --with-pcre use PCRE for regular-expressions 745 --disable-rightbar disable right-scrollbar support 746 --disable-samename disable check for redundant name-change 747 --disable-session-mgt disable support for session management 748 --disable-tcap-fkeys disable termcap function-keys support 749 --disable-tcap-query disable compiled-in termcap-query support 750 --disable-tek4014 disable tek4014 emulation 751 --enable-toolbar compile-in toolbar for pulldown menus 752 --disable-vt52 disable VT52 emulation 753 --enable-mini-luit enable mini-luit (built-in Latin9 support) 754 --enable-luit enable luit filter (Unicode translation) 755 --enable-wide-chars enable wide-character support 756 --enable-16bit-chars enable 16-bit character support 757 --enable-dabbrev enable dynamic-abbreviation support 758 --enable-dec-locator enable DECterm Locator support 759 --disable-rectangles disable VT420 rectangle support 760 --disable-ziconbeep disable -ziconbeep option 761Testing/development Options: 762 --enable-trace test: set to enable debugging traces 763 --disable-leaks test: set to test memory leaks 764 --disable-echo display "compiling" commands 765 --enable-xmc-glitch test: enable xmc magic-cookie emulation 766 --enable-warnings test: turn on GCC compiler warnings 767 768Some influential environment variables: 769 CC C compiler command 770 CFLAGS C compiler flags 771 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 772 nonstandard directory <lib dir> 773 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 774 headers in a nonstandard directory <include dir> 775 CPP C preprocessor 776 777Use these variables to override the choices made by `configure' or to help 778it to find libraries and programs with nonstandard names/locations. 779 780EOF 781fi 782 783if test "$ac_init_help" = "recursive"; then 784 # If there are subdirs, report their specific --help. 785 ac_popdir=`pwd` 786 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 787 cd $ac_subdir 788 # A "../" for each directory in /$ac_subdir. 789 ac_dots=`echo $ac_subdir | 790 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 791 792 case $srcdir in 793 .) # No --srcdir option. We are building in place. 794 ac_sub_srcdir=$srcdir ;; 795 [\\/]* | ?:[\\/]* ) # Absolute path. 796 ac_sub_srcdir=$srcdir/$ac_subdir ;; 797 *) # Relative path. 798 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; 799 esac 800 801 # Check for guested configure; otherwise get Cygnus style configure. 802 if test -f $ac_sub_srcdir/configure.gnu; then 803 echo 804 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive 805 elif test -f $ac_sub_srcdir/configure; then 806 echo 807 $SHELL $ac_sub_srcdir/configure --help=recursive 808 elif test -f $ac_sub_srcdir/configure.ac || 809 test -f $ac_sub_srcdir/configure.in; then 810 echo 811 $ac_configure --help 812 else 813 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 814 fi 815 cd $ac_popdir 816 done 817fi 818 819test -n "$ac_init_help" && exit 0 820if $ac_init_version; then 821 cat <<\EOF 822 823Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 824Free Software Foundation, Inc. 825This configure script is free software; the Free Software Foundation 826gives unlimited permission to copy, distribute and modify it. 827EOF 828 exit 0 829fi 830exec 5>config.log 831cat >&5 <<EOF 832This file contains any messages produced by compilers while 833running configure, to aid debugging if configure makes a mistake. 834 835It was created by $as_me, which was 836generated by GNU Autoconf 2.52.20081225. Invocation command line was 837 838 $ $0 $@ 839 840EOF 841{ 842cat <<_ASUNAME 843## ---------- ## 844## Platform. ## 845## ---------- ## 846 847hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 848uname -m = `(uname -m) 2>/dev/null || echo unknown` 849uname -r = `(uname -r) 2>/dev/null || echo unknown` 850uname -s = `(uname -s) 2>/dev/null || echo unknown` 851uname -v = `(uname -v) 2>/dev/null || echo unknown` 852 853/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 854/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 855 856/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 857/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 858/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 859hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 860/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 861/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 862/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 863 864PATH = $PATH 865 866_ASUNAME 867} >&5 868 869cat >&5 <<EOF 870## ------------ ## 871## Core tests. ## 872## ------------ ## 873 874EOF 875 876# Keep a trace of the command line. 877# Strip out --no-create and --no-recursion so they do not pile up. 878# Also quote any args containing shell meta-characters. 879ac_configure_args= 880ac_sep= 881for ac_arg 882do 883 case $ac_arg in 884 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 885 | --no-cr | --no-c) ;; 886 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 887 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 888 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 889 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 890 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 891 ac_sep=" " ;; 892 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 893 ac_sep=" " ;; 894 esac 895 # Get rid of the leading space. 896done 897 898# When interrupted or exit'd, cleanup temporary files, and complete 899# config.log. We remove comments because anyway the quotes in there 900# would cause problems or look ugly. 901trap 'exit_status=$? 902 # Save into config.log some information that might help in debugging. 903 echo >&5 904 echo "## ----------------- ##" >&5 905 echo "## Cache variables. ##" >&5 906 echo "## ----------------- ##" >&5 907 echo >&5 908 # The following way of writing the cache mishandles newlines in values, 909{ 910 (set) 2>&1 | 911 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 912 *ac_space=\ *) 913 sed -n \ 914 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 915 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 916 ;; 917 *) 918 sed -n \ 919 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 920 ;; 921 esac; 922} >&5 923 sed "/^$/d" confdefs.h >conftest.log 924 if test -s conftest.log; then 925 echo >&5 926 echo "## ------------ ##" >&5 927 echo "## confdefs.h. ##" >&5 928 echo "## ------------ ##" >&5 929 echo >&5 930 cat conftest.log >&5 931 fi 932 (echo; echo) >&5 933 test "$ac_signal" != 0 && 934 echo "$as_me: caught signal $ac_signal" >&5 935 echo "$as_me: exit $exit_status" >&5 936 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 937 exit $exit_status 938 ' 0 939for ac_signal in 1 2 13 15; do 940 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 941done 942ac_signal=0 943 944# confdefs.h avoids OS command line length limits that DEFS can exceed. 945rm -rf conftest* confdefs.h 946# AIX cpp loses on an empty file, so make sure it contains at least a newline. 947echo >confdefs.h 948 949# Let the site file select an alternate cache file if it wants to. 950# Prefer explicitly selected file to automatically selected ones. 951if test -z "$CONFIG_SITE"; then 952 if test "x$prefix" != xNONE; then 953 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 954 else 955 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 956 fi 957fi 958for ac_site_file in $CONFIG_SITE; do 959 if test -r "$ac_site_file"; then 960 { echo "$as_me:960: loading site script $ac_site_file" >&5 961echo "$as_me: loading site script $ac_site_file" >&6;} 962 cat "$ac_site_file" >&5 963 . "$ac_site_file" 964 fi 965done 966 967if test -r "$cache_file"; then 968 # Some versions of bash will fail to source /dev/null (special 969 # files actually), so we avoid doing that. 970 if test -f "$cache_file"; then 971 { echo "$as_me:971: loading cache $cache_file" >&5 972echo "$as_me: loading cache $cache_file" >&6;} 973 case $cache_file in 974 [\\/]* | ?:[\\/]* ) . $cache_file;; 975 *) . ./$cache_file;; 976 esac 977 fi 978else 979 { echo "$as_me:979: creating cache $cache_file" >&5 980echo "$as_me: creating cache $cache_file" >&6;} 981 >$cache_file 982fi 983 984# Check that the precious variables saved in the cache have kept the same 985# value. 986ac_cache_corrupted=false 987for ac_var in `(set) 2>&1 | 988 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 989 eval ac_old_set=\$ac_cv_env_${ac_var}_set 990 eval ac_new_set=\$ac_env_${ac_var}_set 991 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 992 eval ac_new_val="\$ac_env_${ac_var}_value" 993 case $ac_old_set,$ac_new_set in 994 set,) 995 { echo "$as_me:995: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 996echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 997 ac_cache_corrupted=: ;; 998 ,set) 999 { echo "$as_me:999: error: \`$ac_var' was not set in the previous run" >&5 1000echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1001 ac_cache_corrupted=: ;; 1002 ,);; 1003 *) 1004 if test "x$ac_old_val" != "x$ac_new_val"; then 1005 { echo "$as_me:1005: error: \`$ac_var' has changed since the previous run:" >&5 1006echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1007 { echo "$as_me:1007: former value: $ac_old_val" >&5 1008echo "$as_me: former value: $ac_old_val" >&2;} 1009 { echo "$as_me:1009: current value: $ac_new_val" >&5 1010echo "$as_me: current value: $ac_new_val" >&2;} 1011 ac_cache_corrupted=: 1012 fi;; 1013 esac 1014 # Pass precious variables to config.status. It doesn't matter if 1015 # we pass some twice (in addition to the command line arguments). 1016 if test "$ac_new_set" = set; then 1017 case $ac_new_val in 1018 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1019 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` 1020 ac_configure_args="$ac_configure_args '$ac_arg'" 1021 ;; 1022 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" 1023 ;; 1024 esac 1025 fi 1026done 1027if $ac_cache_corrupted; then 1028 { echo "$as_me:1028: error: changes in the environment can compromise the build" >&5 1029echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1030 { { echo "$as_me:1030: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1031echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1032 { (exit 1); exit 1; }; } 1033fi 1034 1035ac_ext=c 1036ac_cpp='$CPP $CPPFLAGS' 1037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1039ac_compiler_gnu=$ac_cv_c_compiler_gnu 1040ac_main_return=return 1041 1042case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 1043 *c*,-n*) ECHO_N= ECHO_C=' 1044' ECHO_T=' ' ;; 1045 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 1046 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 1047esac 1048echo "#! $SHELL" >conftest.sh 1049echo "exit 0" >>conftest.sh 1050chmod +x conftest.sh 1051if { (echo "$as_me:1051: PATH=\".;.\"; conftest.sh") >&5 1052 (PATH=".;."; conftest.sh) 2>&5 1053 ac_status=$? 1054 echo "$as_me:1054: \$? = $ac_status" >&5 1055 (exit $ac_status); }; then 1056 ac_path_separator=';' 1057else 1058 ac_path_separator=: 1059fi 1060PATH_SEPARATOR="$ac_path_separator" 1061rm -f conftest.sh 1062 1063ac_config_headers="$ac_config_headers xtermcfg.h:xtermcfg.hin" 1064 1065ac_aux_dir= 1066for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1067 if test -f $ac_dir/install-sh; then 1068 ac_aux_dir=$ac_dir 1069 ac_install_sh="$ac_aux_dir/install-sh -c" 1070 break 1071 elif test -f $ac_dir/install.sh; then 1072 ac_aux_dir=$ac_dir 1073 ac_install_sh="$ac_aux_dir/install.sh -c" 1074 break 1075 elif test -f $ac_dir/shtool; then 1076 ac_aux_dir=$ac_dir 1077 ac_install_sh="$ac_aux_dir/shtool install -c" 1078 break 1079 fi 1080done 1081if test -z "$ac_aux_dir"; then 1082 { { echo "$as_me:1082: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1083echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1084 { (exit 1); exit 1; }; } 1085fi 1086ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1087ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1088ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1089 1090# Make sure we can run config.sub. 1091$ac_config_sub sun4 >/dev/null 2>&1 || 1092 { { echo "$as_me:1092: error: cannot run $ac_config_sub" >&5 1093echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1094 { (exit 1); exit 1; }; } 1095 1096echo "$as_me:1096: checking build system type" >&5 1097echo $ECHO_N "checking build system type... $ECHO_C" >&6 1098if test "${ac_cv_build+set}" = set; then 1099 echo $ECHO_N "(cached) $ECHO_C" >&6 1100else 1101 ac_cv_build_alias=$build_alias 1102test -z "$ac_cv_build_alias" && 1103 ac_cv_build_alias=`$ac_config_guess` 1104test -z "$ac_cv_build_alias" && 1105 { { echo "$as_me:1105: error: cannot guess build type; you must specify one" >&5 1106echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1107 { (exit 1); exit 1; }; } 1108ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1109 { { echo "$as_me:1109: error: $ac_config_sub $ac_cv_build_alias failed." >&5 1110echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} 1111 { (exit 1); exit 1; }; } 1112 1113fi 1114echo "$as_me:1114: result: $ac_cv_build" >&5 1115echo "${ECHO_T}$ac_cv_build" >&6 1116build=$ac_cv_build 1117build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1118build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1119build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1120 1121if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then 1122 echo "$as_me:1122: checking host system type" >&5 1123echo $ECHO_N "checking host system type... $ECHO_C" >&6 1124if test "${ac_cv_host+set}" = set; then 1125 echo $ECHO_N "(cached) $ECHO_C" >&6 1126else 1127 ac_cv_host_alias=$host_alias 1128test -z "$ac_cv_host_alias" && 1129 ac_cv_host_alias=$ac_cv_build_alias 1130ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1131 { { echo "$as_me:1131: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1132echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1133 { (exit 1); exit 1; }; } 1134 1135fi 1136echo "$as_me:1136: result: $ac_cv_host" >&5 1137echo "${ECHO_T}$ac_cv_host" >&6 1138host=$ac_cv_host 1139host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1140host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1141host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1142 1143 system_name="$host_os" 1144else 1145 system_name="`(uname -s -r) 2>/dev/null`" 1146 if test -z "$system_name" ; then 1147 system_name="`(hostname) 2>/dev/null`" 1148 fi 1149fi 1150test -n "$system_name" && cat >>confdefs.h <<EOF 1151#define SYSTEM_NAME "$system_name" 1152EOF 1153 1154if test "${cf_cv_system_name+set}" = set; then 1155 echo $ECHO_N "(cached) $ECHO_C" >&6 1156else 1157 cf_cv_system_name="$system_name" 1158fi 1159 1160test -z "$system_name" && system_name="$cf_cv_system_name" 1161test -n "$cf_cv_system_name" && echo "$as_me:1161: result: Configuring for $cf_cv_system_name" >&5 1162echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6 1163 1164if test ".$system_name" != ".$cf_cv_system_name" ; then 1165 echo "$as_me:1165: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5 1166echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6 1167 { { echo "$as_me:1167: error: \"Please remove config.cache and try again.\"" >&5 1168echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;} 1169 { (exit 1); exit 1; }; } 1170fi 1171 1172### checks for alternative programs 1173 1174case "$host_os" in 1175openedition) : ${CFLAGS="-O2 -Wc,dll -Wl,EDIT=NO"} 1176 : ${CPPFLAGS="-D_ALL_SOURCE"} 1177 : ${LIBS="/usr/lib/Xaw.x /usr/lib/SM.x /usr/lib/ICE.x /usr/lib/X11.x"} 1178 : ${CC=c89};; 1179darwin*) 1180 : ${LDFLAGS}="${LDFLAGS} -Wl,-bind_at_load";; 1181esac 1182 1183ac_ext=c 1184ac_cpp='$CPP $CPPFLAGS' 1185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1187ac_compiler_gnu=$ac_cv_c_compiler_gnu 1188ac_main_return=return 1189if test -n "$ac_tool_prefix"; then 1190 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1191set dummy ${ac_tool_prefix}gcc; ac_word=$2 1192echo "$as_me:1192: checking for $ac_word" >&5 1193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1194if test "${ac_cv_prog_CC+set}" = set; then 1195 echo $ECHO_N "(cached) $ECHO_C" >&6 1196else 1197 if test -n "$CC"; then 1198 ac_cv_prog_CC="$CC" # Let the user override the test. 1199else 1200 ac_save_IFS=$IFS; IFS=$ac_path_separator 1201ac_dummy="$PATH" 1202for ac_dir in $ac_dummy; do 1203 IFS=$ac_save_IFS 1204 test -z "$ac_dir" && ac_dir=. 1205 $as_executable_p "$ac_dir/$ac_word" || continue 1206ac_cv_prog_CC="${ac_tool_prefix}gcc" 1207echo "$as_me:1207: found $ac_dir/$ac_word" >&5 1208break 1209done 1210 1211fi 1212fi 1213CC=$ac_cv_prog_CC 1214if test -n "$CC"; then 1215 echo "$as_me:1215: result: $CC" >&5 1216echo "${ECHO_T}$CC" >&6 1217else 1218 echo "$as_me:1218: result: no" >&5 1219echo "${ECHO_T}no" >&6 1220fi 1221 1222fi 1223if test -z "$ac_cv_prog_CC"; then 1224 ac_ct_CC=$CC 1225 # Extract the first word of "gcc", so it can be a program name with args. 1226set dummy gcc; ac_word=$2 1227echo "$as_me:1227: checking for $ac_word" >&5 1228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1229if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1230 echo $ECHO_N "(cached) $ECHO_C" >&6 1231else 1232 if test -n "$ac_ct_CC"; then 1233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1234else 1235 ac_save_IFS=$IFS; IFS=$ac_path_separator 1236ac_dummy="$PATH" 1237for ac_dir in $ac_dummy; do 1238 IFS=$ac_save_IFS 1239 test -z "$ac_dir" && ac_dir=. 1240 $as_executable_p "$ac_dir/$ac_word" || continue 1241ac_cv_prog_ac_ct_CC="gcc" 1242echo "$as_me:1242: found $ac_dir/$ac_word" >&5 1243break 1244done 1245 1246fi 1247fi 1248ac_ct_CC=$ac_cv_prog_ac_ct_CC 1249if test -n "$ac_ct_CC"; then 1250 echo "$as_me:1250: result: $ac_ct_CC" >&5 1251echo "${ECHO_T}$ac_ct_CC" >&6 1252else 1253 echo "$as_me:1253: result: no" >&5 1254echo "${ECHO_T}no" >&6 1255fi 1256 1257 CC=$ac_ct_CC 1258else 1259 CC="$ac_cv_prog_CC" 1260fi 1261 1262if test -z "$CC"; then 1263 if test -n "$ac_tool_prefix"; then 1264 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1265set dummy ${ac_tool_prefix}cc; ac_word=$2 1266echo "$as_me:1266: checking for $ac_word" >&5 1267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1268if test "${ac_cv_prog_CC+set}" = set; then 1269 echo $ECHO_N "(cached) $ECHO_C" >&6 1270else 1271 if test -n "$CC"; then 1272 ac_cv_prog_CC="$CC" # Let the user override the test. 1273else 1274 ac_save_IFS=$IFS; IFS=$ac_path_separator 1275ac_dummy="$PATH" 1276for ac_dir in $ac_dummy; do 1277 IFS=$ac_save_IFS 1278 test -z "$ac_dir" && ac_dir=. 1279 $as_executable_p "$ac_dir/$ac_word" || continue 1280ac_cv_prog_CC="${ac_tool_prefix}cc" 1281echo "$as_me:1281: found $ac_dir/$ac_word" >&5 1282break 1283done 1284 1285fi 1286fi 1287CC=$ac_cv_prog_CC 1288if test -n "$CC"; then 1289 echo "$as_me:1289: result: $CC" >&5 1290echo "${ECHO_T}$CC" >&6 1291else 1292 echo "$as_me:1292: result: no" >&5 1293echo "${ECHO_T}no" >&6 1294fi 1295 1296fi 1297if test -z "$ac_cv_prog_CC"; then 1298 ac_ct_CC=$CC 1299 # Extract the first word of "cc", so it can be a program name with args. 1300set dummy cc; ac_word=$2 1301echo "$as_me:1301: checking for $ac_word" >&5 1302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1303if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1304 echo $ECHO_N "(cached) $ECHO_C" >&6 1305else 1306 if test -n "$ac_ct_CC"; then 1307 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1308else 1309 ac_save_IFS=$IFS; IFS=$ac_path_separator 1310ac_dummy="$PATH" 1311for ac_dir in $ac_dummy; do 1312 IFS=$ac_save_IFS 1313 test -z "$ac_dir" && ac_dir=. 1314 $as_executable_p "$ac_dir/$ac_word" || continue 1315ac_cv_prog_ac_ct_CC="cc" 1316echo "$as_me:1316: found $ac_dir/$ac_word" >&5 1317break 1318done 1319 1320fi 1321fi 1322ac_ct_CC=$ac_cv_prog_ac_ct_CC 1323if test -n "$ac_ct_CC"; then 1324 echo "$as_me:1324: result: $ac_ct_CC" >&5 1325echo "${ECHO_T}$ac_ct_CC" >&6 1326else 1327 echo "$as_me:1327: result: no" >&5 1328echo "${ECHO_T}no" >&6 1329fi 1330 1331 CC=$ac_ct_CC 1332else 1333 CC="$ac_cv_prog_CC" 1334fi 1335 1336fi 1337if test -z "$CC"; then 1338 # Extract the first word of "cc", so it can be a program name with args. 1339set dummy cc; ac_word=$2 1340echo "$as_me:1340: checking for $ac_word" >&5 1341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1342if test "${ac_cv_prog_CC+set}" = set; then 1343 echo $ECHO_N "(cached) $ECHO_C" >&6 1344else 1345 if test -n "$CC"; then 1346 ac_cv_prog_CC="$CC" # Let the user override the test. 1347else 1348 ac_prog_rejected=no 1349 ac_save_IFS=$IFS; IFS=$ac_path_separator 1350ac_dummy="$PATH" 1351for ac_dir in $ac_dummy; do 1352 IFS=$ac_save_IFS 1353 test -z "$ac_dir" && ac_dir=. 1354 $as_executable_p "$ac_dir/$ac_word" || continue 1355if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1356 ac_prog_rejected=yes 1357 continue 1358fi 1359ac_cv_prog_CC="cc" 1360echo "$as_me:1360: found $ac_dir/$ac_word" >&5 1361break 1362done 1363 1364if test $ac_prog_rejected = yes; then 1365 # We found a bogon in the path, so make sure we never use it. 1366 set dummy $ac_cv_prog_CC 1367 shift 1368 if test $# != 0; then 1369 # We chose a different compiler from the bogus one. 1370 # However, it has the same basename, so the bogon will be chosen 1371 # first if we set CC to just the basename; use the full file name. 1372 shift 1373 set dummy "$ac_dir/$ac_word" ${1+"$@"} 1374 shift 1375 ac_cv_prog_CC="$@" 1376 fi 1377fi 1378fi 1379fi 1380CC=$ac_cv_prog_CC 1381if test -n "$CC"; then 1382 echo "$as_me:1382: result: $CC" >&5 1383echo "${ECHO_T}$CC" >&6 1384else 1385 echo "$as_me:1385: result: no" >&5 1386echo "${ECHO_T}no" >&6 1387fi 1388 1389fi 1390if test -z "$CC"; then 1391 if test -n "$ac_tool_prefix"; then 1392 for ac_prog in cl 1393 do 1394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1395set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1396echo "$as_me:1396: checking for $ac_word" >&5 1397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1398if test "${ac_cv_prog_CC+set}" = set; then 1399 echo $ECHO_N "(cached) $ECHO_C" >&6 1400else 1401 if test -n "$CC"; then 1402 ac_cv_prog_CC="$CC" # Let the user override the test. 1403else 1404 ac_save_IFS=$IFS; IFS=$ac_path_separator 1405ac_dummy="$PATH" 1406for ac_dir in $ac_dummy; do 1407 IFS=$ac_save_IFS 1408 test -z "$ac_dir" && ac_dir=. 1409 $as_executable_p "$ac_dir/$ac_word" || continue 1410ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1411echo "$as_me:1411: found $ac_dir/$ac_word" >&5 1412break 1413done 1414 1415fi 1416fi 1417CC=$ac_cv_prog_CC 1418if test -n "$CC"; then 1419 echo "$as_me:1419: result: $CC" >&5 1420echo "${ECHO_T}$CC" >&6 1421else 1422 echo "$as_me:1422: result: no" >&5 1423echo "${ECHO_T}no" >&6 1424fi 1425 1426 test -n "$CC" && break 1427 done 1428fi 1429if test -z "$CC"; then 1430 ac_ct_CC=$CC 1431 for ac_prog in cl 1432do 1433 # Extract the first word of "$ac_prog", so it can be a program name with args. 1434set dummy $ac_prog; ac_word=$2 1435echo "$as_me:1435: checking for $ac_word" >&5 1436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1437if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1438 echo $ECHO_N "(cached) $ECHO_C" >&6 1439else 1440 if test -n "$ac_ct_CC"; then 1441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1442else 1443 ac_save_IFS=$IFS; IFS=$ac_path_separator 1444ac_dummy="$PATH" 1445for ac_dir in $ac_dummy; do 1446 IFS=$ac_save_IFS 1447 test -z "$ac_dir" && ac_dir=. 1448 $as_executable_p "$ac_dir/$ac_word" || continue 1449ac_cv_prog_ac_ct_CC="$ac_prog" 1450echo "$as_me:1450: found $ac_dir/$ac_word" >&5 1451break 1452done 1453 1454fi 1455fi 1456ac_ct_CC=$ac_cv_prog_ac_ct_CC 1457if test -n "$ac_ct_CC"; then 1458 echo "$as_me:1458: result: $ac_ct_CC" >&5 1459echo "${ECHO_T}$ac_ct_CC" >&6 1460else 1461 echo "$as_me:1461: result: no" >&5 1462echo "${ECHO_T}no" >&6 1463fi 1464 1465 test -n "$ac_ct_CC" && break 1466done 1467 1468 CC=$ac_ct_CC 1469fi 1470 1471fi 1472 1473test -z "$CC" && { { echo "$as_me:1473: error: no acceptable cc found in \$PATH" >&5 1474echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1475 { (exit 1); exit 1; }; } 1476 1477# Provide some information about the compiler. 1478echo "$as_me:1478:" \ 1479 "checking for C compiler version" >&5 1480ac_compiler=`set X $ac_compile; echo $2` 1481{ (eval echo "$as_me:1481: \"$ac_compiler --version </dev/null >&5\"") >&5 1482 (eval $ac_compiler --version </dev/null >&5) 2>&5 1483 ac_status=$? 1484 echo "$as_me:1484: \$? = $ac_status" >&5 1485 (exit $ac_status); } 1486{ (eval echo "$as_me:1486: \"$ac_compiler -v </dev/null >&5\"") >&5 1487 (eval $ac_compiler -v </dev/null >&5) 2>&5 1488 ac_status=$? 1489 echo "$as_me:1489: \$? = $ac_status" >&5 1490 (exit $ac_status); } 1491{ (eval echo "$as_me:1491: \"$ac_compiler -V </dev/null >&5\"") >&5 1492 (eval $ac_compiler -V </dev/null >&5) 2>&5 1493 ac_status=$? 1494 echo "$as_me:1494: \$? = $ac_status" >&5 1495 (exit $ac_status); } 1496 1497cat >conftest.$ac_ext <<_ACEOF 1498#line 1498 "configure" 1499#include "confdefs.h" 1500 1501int 1502main () 1503{ 1504 1505 ; 1506 return 0; 1507} 1508_ACEOF 1509ac_clean_files_save=$ac_clean_files 1510ac_clean_files="$ac_clean_files a.out a.exe" 1511# Try to create an executable without -o first, disregard a.out. 1512# It will help us diagnose broken compilers, and finding out an intuition 1513# of exeext. 1514echo "$as_me:1514: checking for C compiler default output" >&5 1515echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1516ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1517if { (eval echo "$as_me:1517: \"$ac_link_default\"") >&5 1518 (eval $ac_link_default) 2>&5 1519 ac_status=$? 1520 echo "$as_me:1520: \$? = $ac_status" >&5 1521 (exit $ac_status); }; then 1522 # Find the output, starting from the most likely. This scheme is 1523# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1524# resort. 1525for ac_file in `ls a.exe conftest.exe 2>/dev/null; 1526 ls a.out conftest 2>/dev/null; 1527 ls a.* conftest.* 2>/dev/null`; do 1528 case $ac_file in 1529 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1530 a.out ) # We found the default executable, but exeext='' is most 1531 # certainly right. 1532 break;; 1533 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1534 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 1535 export ac_cv_exeext 1536 break;; 1537 * ) break;; 1538 esac 1539done 1540else 1541 echo "$as_me: failed program was:" >&5 1542cat conftest.$ac_ext >&5 1543{ { echo "$as_me:1543: error: C compiler cannot create executables" >&5 1544echo "$as_me: error: C compiler cannot create executables" >&2;} 1545 { (exit 77); exit 77; }; } 1546fi 1547 1548ac_exeext=$ac_cv_exeext 1549echo "$as_me:1549: result: $ac_file" >&5 1550echo "${ECHO_T}$ac_file" >&6 1551 1552# Check the compiler produces executables we can run. If not, either 1553# the compiler is broken, or we cross compile. 1554echo "$as_me:1554: checking whether the C compiler works" >&5 1555echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1556# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1557# If not cross compiling, check that we can run a simple program. 1558if test "$cross_compiling" != yes; then 1559 if { ac_try='./$ac_file' 1560 { (eval echo "$as_me:1560: \"$ac_try\"") >&5 1561 (eval $ac_try) 2>&5 1562 ac_status=$? 1563 echo "$as_me:1563: \$? = $ac_status" >&5 1564 (exit $ac_status); }; }; then 1565 cross_compiling=no 1566 else 1567 if test "$cross_compiling" = maybe; then 1568 cross_compiling=yes 1569 else 1570 { { echo "$as_me:1570: error: cannot run C compiled programs. 1571If you meant to cross compile, use \`--host'." >&5 1572echo "$as_me: error: cannot run C compiled programs. 1573If you meant to cross compile, use \`--host'." >&2;} 1574 { (exit 1); exit 1; }; } 1575 fi 1576 fi 1577fi 1578echo "$as_me:1578: result: yes" >&5 1579echo "${ECHO_T}yes" >&6 1580 1581rm -f a.out a.exe conftest$ac_cv_exeext 1582ac_clean_files=$ac_clean_files_save 1583# Check the compiler produces executables we can run. If not, either 1584# the compiler is broken, or we cross compile. 1585echo "$as_me:1585: checking whether we are cross compiling" >&5 1586echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1587echo "$as_me:1587: result: $cross_compiling" >&5 1588echo "${ECHO_T}$cross_compiling" >&6 1589 1590echo "$as_me:1590: checking for executable suffix" >&5 1591echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1592if { (eval echo "$as_me:1592: \"$ac_link\"") >&5 1593 (eval $ac_link) 2>&5 1594 ac_status=$? 1595 echo "$as_me:1595: \$? = $ac_status" >&5 1596 (exit $ac_status); }; then 1597 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1598# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1599# work properly (i.e., refer to `conftest.exe'), while it won't with 1600# `rm'. 1601for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1602 case $ac_file in 1603 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1604 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1605 export ac_cv_exeext 1606 break;; 1607 * ) break;; 1608 esac 1609done 1610else 1611 { { echo "$as_me:1611: error: cannot compute EXEEXT: cannot compile and link" >&5 1612echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1613 { (exit 1); exit 1; }; } 1614fi 1615 1616rm -f conftest$ac_cv_exeext 1617echo "$as_me:1617: result: $ac_cv_exeext" >&5 1618echo "${ECHO_T}$ac_cv_exeext" >&6 1619 1620rm -f conftest.$ac_ext 1621EXEEXT=$ac_cv_exeext 1622ac_exeext=$EXEEXT 1623echo "$as_me:1623: checking for object suffix" >&5 1624echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 1625if test "${ac_cv_objext+set}" = set; then 1626 echo $ECHO_N "(cached) $ECHO_C" >&6 1627else 1628 cat >conftest.$ac_ext <<_ACEOF 1629#line 1629 "configure" 1630#include "confdefs.h" 1631 1632int 1633main () 1634{ 1635 1636 ; 1637 return 0; 1638} 1639_ACEOF 1640rm -f conftest.o conftest.obj 1641if { (eval echo "$as_me:1641: \"$ac_compile\"") >&5 1642 (eval $ac_compile) 2>&5 1643 ac_status=$? 1644 echo "$as_me:1644: \$? = $ac_status" >&5 1645 (exit $ac_status); }; then 1646 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1647 case $ac_file in 1648 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;; 1649 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1650 break;; 1651 esac 1652done 1653else 1654 echo "$as_me: failed program was:" >&5 1655cat conftest.$ac_ext >&5 1656{ { echo "$as_me:1656: error: cannot compute OBJEXT: cannot compile" >&5 1657echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1658 { (exit 1); exit 1; }; } 1659fi 1660 1661rm -f conftest.$ac_cv_objext conftest.$ac_ext 1662fi 1663echo "$as_me:1663: result: $ac_cv_objext" >&5 1664echo "${ECHO_T}$ac_cv_objext" >&6 1665OBJEXT=$ac_cv_objext 1666ac_objext=$OBJEXT 1667echo "$as_me:1667: checking whether we are using the GNU C compiler" >&5 1668echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1669if test "${ac_cv_c_compiler_gnu+set}" = set; then 1670 echo $ECHO_N "(cached) $ECHO_C" >&6 1671else 1672 cat >conftest.$ac_ext <<_ACEOF 1673#line 1673 "configure" 1674#include "confdefs.h" 1675 1676int 1677main () 1678{ 1679#ifndef __GNUC__ 1680 choke me 1681#endif 1682 1683 ; 1684 return 0; 1685} 1686_ACEOF 1687rm -f conftest.$ac_objext 1688if { (eval echo "$as_me:1688: \"$ac_compile\"") >&5 1689 (eval $ac_compile) 2>&5 1690 ac_status=$? 1691 echo "$as_me:1691: \$? = $ac_status" >&5 1692 (exit $ac_status); } && 1693 { ac_try='test -s conftest.$ac_objext' 1694 { (eval echo "$as_me:1694: \"$ac_try\"") >&5 1695 (eval $ac_try) 2>&5 1696 ac_status=$? 1697 echo "$as_me:1697: \$? = $ac_status" >&5 1698 (exit $ac_status); }; }; then 1699 ac_compiler_gnu=yes 1700else 1701 echo "$as_me: failed program was:" >&5 1702cat conftest.$ac_ext >&5 1703ac_compiler_gnu=no 1704fi 1705rm -f conftest.$ac_objext conftest.$ac_ext 1706ac_cv_c_compiler_gnu=$ac_compiler_gnu 1707 1708fi 1709echo "$as_me:1709: result: $ac_cv_c_compiler_gnu" >&5 1710echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1711GCC=`test $ac_compiler_gnu = yes && echo yes` 1712ac_test_CFLAGS=${CFLAGS+set} 1713ac_save_CFLAGS=$CFLAGS 1714CFLAGS="-g" 1715echo "$as_me:1715: checking whether $CC accepts -g" >&5 1716echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1717if test "${ac_cv_prog_cc_g+set}" = set; then 1718 echo $ECHO_N "(cached) $ECHO_C" >&6 1719else 1720 cat >conftest.$ac_ext <<_ACEOF 1721#line 1721 "configure" 1722#include "confdefs.h" 1723 1724int 1725main () 1726{ 1727 1728 ; 1729 return 0; 1730} 1731_ACEOF 1732rm -f conftest.$ac_objext 1733if { (eval echo "$as_me:1733: \"$ac_compile\"") >&5 1734 (eval $ac_compile) 2>&5 1735 ac_status=$? 1736 echo "$as_me:1736: \$? = $ac_status" >&5 1737 (exit $ac_status); } && 1738 { ac_try='test -s conftest.$ac_objext' 1739 { (eval echo "$as_me:1739: \"$ac_try\"") >&5 1740 (eval $ac_try) 2>&5 1741 ac_status=$? 1742 echo "$as_me:1742: \$? = $ac_status" >&5 1743 (exit $ac_status); }; }; then 1744 ac_cv_prog_cc_g=yes 1745else 1746 echo "$as_me: failed program was:" >&5 1747cat conftest.$ac_ext >&5 1748ac_cv_prog_cc_g=no 1749fi 1750rm -f conftest.$ac_objext conftest.$ac_ext 1751fi 1752echo "$as_me:1752: result: $ac_cv_prog_cc_g" >&5 1753echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1754if test "$ac_test_CFLAGS" = set; then 1755 CFLAGS=$ac_save_CFLAGS 1756elif test $ac_cv_prog_cc_g = yes; then 1757 if test "$GCC" = yes; then 1758 CFLAGS="-g -O2" 1759 else 1760 CFLAGS="-g" 1761 fi 1762else 1763 if test "$GCC" = yes; then 1764 CFLAGS="-O2" 1765 else 1766 CFLAGS= 1767 fi 1768fi 1769# Some people use a C++ compiler to compile C. Since we use `exit', 1770# in C++ we need to declare it. In case someone uses the same compiler 1771# for both compiling C and C++ we need to have the C++ compiler decide 1772# the declaration of exit, since it's the most demanding environment. 1773cat >conftest.$ac_ext <<_ACEOF 1774#ifndef __cplusplus 1775 choke me 1776#endif 1777_ACEOF 1778rm -f conftest.$ac_objext 1779if { (eval echo "$as_me:1779: \"$ac_compile\"") >&5 1780 (eval $ac_compile) 2>&5 1781 ac_status=$? 1782 echo "$as_me:1782: \$? = $ac_status" >&5 1783 (exit $ac_status); } && 1784 { ac_try='test -s conftest.$ac_objext' 1785 { (eval echo "$as_me:1785: \"$ac_try\"") >&5 1786 (eval $ac_try) 2>&5 1787 ac_status=$? 1788 echo "$as_me:1788: \$? = $ac_status" >&5 1789 (exit $ac_status); }; }; then 1790 for ac_declaration in \ 1791 ''\ 1792 '#include <stdlib.h>' \ 1793 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1794 'extern "C" void std::exit (int); using std::exit;' \ 1795 'extern "C" void exit (int) throw ();' \ 1796 'extern "C" void exit (int);' \ 1797 'void exit (int);' 1798do 1799 cat >conftest.$ac_ext <<_ACEOF 1800#line 1800 "configure" 1801#include "confdefs.h" 1802#include <stdlib.h> 1803$ac_declaration 1804int 1805main () 1806{ 1807exit (42); 1808 ; 1809 return 0; 1810} 1811_ACEOF 1812rm -f conftest.$ac_objext 1813if { (eval echo "$as_me:1813: \"$ac_compile\"") >&5 1814 (eval $ac_compile) 2>&5 1815 ac_status=$? 1816 echo "$as_me:1816: \$? = $ac_status" >&5 1817 (exit $ac_status); } && 1818 { ac_try='test -s conftest.$ac_objext' 1819 { (eval echo "$as_me:1819: \"$ac_try\"") >&5 1820 (eval $ac_try) 2>&5 1821 ac_status=$? 1822 echo "$as_me:1822: \$? = $ac_status" >&5 1823 (exit $ac_status); }; }; then 1824 : 1825else 1826 echo "$as_me: failed program was:" >&5 1827cat conftest.$ac_ext >&5 1828continue 1829fi 1830rm -f conftest.$ac_objext conftest.$ac_ext 1831 cat >conftest.$ac_ext <<_ACEOF 1832#line 1832 "configure" 1833#include "confdefs.h" 1834$ac_declaration 1835int 1836main () 1837{ 1838exit (42); 1839 ; 1840 return 0; 1841} 1842_ACEOF 1843rm -f conftest.$ac_objext 1844if { (eval echo "$as_me:1844: \"$ac_compile\"") >&5 1845 (eval $ac_compile) 2>&5 1846 ac_status=$? 1847 echo "$as_me:1847: \$? = $ac_status" >&5 1848 (exit $ac_status); } && 1849 { ac_try='test -s conftest.$ac_objext' 1850 { (eval echo "$as_me:1850: \"$ac_try\"") >&5 1851 (eval $ac_try) 2>&5 1852 ac_status=$? 1853 echo "$as_me:1853: \$? = $ac_status" >&5 1854 (exit $ac_status); }; }; then 1855 break 1856else 1857 echo "$as_me: failed program was:" >&5 1858cat conftest.$ac_ext >&5 1859fi 1860rm -f conftest.$ac_objext conftest.$ac_ext 1861done 1862rm -f conftest* 1863if test -n "$ac_declaration"; then 1864 echo '#ifdef __cplusplus' >>confdefs.h 1865 echo $ac_declaration >>confdefs.h 1866 echo '#endif' >>confdefs.h 1867fi 1868 1869else 1870 echo "$as_me: failed program was:" >&5 1871cat conftest.$ac_ext >&5 1872fi 1873rm -f conftest.$ac_objext conftest.$ac_ext 1874ac_ext=c 1875ac_cpp='$CPP $CPPFLAGS' 1876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1878ac_compiler_gnu=$ac_cv_c_compiler_gnu 1879ac_main_return=return 1880 1881ac_ext=c 1882ac_cpp='$CPP $CPPFLAGS' 1883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1885ac_compiler_gnu=$ac_cv_c_compiler_gnu 1886ac_main_return=return 1887echo "$as_me:1887: checking how to run the C preprocessor" >&5 1888echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 1889# On Suns, sometimes $CPP names a directory. 1890if test -n "$CPP" && test -d "$CPP"; then 1891 CPP= 1892fi 1893if test -z "$CPP"; then 1894 if test "${ac_cv_prog_CPP+set}" = set; then 1895 echo $ECHO_N "(cached) $ECHO_C" >&6 1896else 1897 # Double quotes because CPP needs to be expanded 1898 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 1899 do 1900 ac_preproc_ok=false 1901for ac_c_preproc_warn_flag in '' yes 1902do 1903 # Use a header file that comes with gcc, so configuring glibc 1904 # with a fresh cross-compiler works. 1905 # On the NeXT, cc -E runs the code through the compiler's parser, 1906 # not just through cpp. "Syntax error" is here to catch this case. 1907 cat >conftest.$ac_ext <<_ACEOF 1908#line 1908 "configure" 1909#include "confdefs.h" 1910#include <assert.h> 1911 Syntax error 1912_ACEOF 1913if { (eval echo "$as_me:1913: \"$ac_cpp conftest.$ac_ext\"") >&5 1914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 1915 ac_status=$? 1916 egrep -v '^ *\+' conftest.er1 >conftest.err 1917 rm -f conftest.er1 1918 cat conftest.err >&5 1919 echo "$as_me:1919: \$? = $ac_status" >&5 1920 (exit $ac_status); } >/dev/null; then 1921 if test -s conftest.err; then 1922 ac_cpp_err=$ac_c_preproc_warn_flag 1923 else 1924 ac_cpp_err= 1925 fi 1926else 1927 ac_cpp_err=yes 1928fi 1929if test -z "$ac_cpp_err"; then 1930 : 1931else 1932 echo "$as_me: failed program was:" >&5 1933 cat conftest.$ac_ext >&5 1934 # Broken: fails on valid input. 1935continue 1936fi 1937rm -f conftest.err conftest.$ac_ext 1938 1939 # OK, works on sane cases. Now check whether non-existent headers 1940 # can be detected and how. 1941 cat >conftest.$ac_ext <<_ACEOF 1942#line 1942 "configure" 1943#include "confdefs.h" 1944#include <ac_nonexistent.h> 1945_ACEOF 1946if { (eval echo "$as_me:1946: \"$ac_cpp conftest.$ac_ext\"") >&5 1947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 1948 ac_status=$? 1949 egrep -v '^ *\+' conftest.er1 >conftest.err 1950 rm -f conftest.er1 1951 cat conftest.err >&5 1952 echo "$as_me:1952: \$? = $ac_status" >&5 1953 (exit $ac_status); } >/dev/null; then 1954 if test -s conftest.err; then 1955 ac_cpp_err=$ac_c_preproc_warn_flag 1956 else 1957 ac_cpp_err= 1958 fi 1959else 1960 ac_cpp_err=yes 1961fi 1962if test -z "$ac_cpp_err"; then 1963 # Broken: success on invalid input. 1964continue 1965else 1966 echo "$as_me: failed program was:" >&5 1967 cat conftest.$ac_ext >&5 1968 # Passes both tests. 1969ac_preproc_ok=: 1970break 1971fi 1972rm -f conftest.err conftest.$ac_ext 1973 1974done 1975# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 1976rm -f conftest.err conftest.$ac_ext 1977if $ac_preproc_ok; then 1978 break 1979fi 1980 1981 done 1982 ac_cv_prog_CPP=$CPP 1983 1984fi 1985 CPP=$ac_cv_prog_CPP 1986else 1987 ac_cv_prog_CPP=$CPP 1988fi 1989echo "$as_me:1989: result: $CPP" >&5 1990echo "${ECHO_T}$CPP" >&6 1991ac_preproc_ok=false 1992for ac_c_preproc_warn_flag in '' yes 1993do 1994 # Use a header file that comes with gcc, so configuring glibc 1995 # with a fresh cross-compiler works. 1996 # On the NeXT, cc -E runs the code through the compiler's parser, 1997 # not just through cpp. "Syntax error" is here to catch this case. 1998 cat >conftest.$ac_ext <<_ACEOF 1999#line 1999 "configure" 2000#include "confdefs.h" 2001#include <assert.h> 2002 Syntax error 2003_ACEOF 2004if { (eval echo "$as_me:2004: \"$ac_cpp conftest.$ac_ext\"") >&5 2005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2006 ac_status=$? 2007 egrep -v '^ *\+' conftest.er1 >conftest.err 2008 rm -f conftest.er1 2009 cat conftest.err >&5 2010 echo "$as_me:2010: \$? = $ac_status" >&5 2011 (exit $ac_status); } >/dev/null; then 2012 if test -s conftest.err; then 2013 ac_cpp_err=$ac_c_preproc_warn_flag 2014 else 2015 ac_cpp_err= 2016 fi 2017else 2018 ac_cpp_err=yes 2019fi 2020if test -z "$ac_cpp_err"; then 2021 : 2022else 2023 echo "$as_me: failed program was:" >&5 2024 cat conftest.$ac_ext >&5 2025 # Broken: fails on valid input. 2026continue 2027fi 2028rm -f conftest.err conftest.$ac_ext 2029 2030 # OK, works on sane cases. Now check whether non-existent headers 2031 # can be detected and how. 2032 cat >conftest.$ac_ext <<_ACEOF 2033#line 2033 "configure" 2034#include "confdefs.h" 2035#include <ac_nonexistent.h> 2036_ACEOF 2037if { (eval echo "$as_me:2037: \"$ac_cpp conftest.$ac_ext\"") >&5 2038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2039 ac_status=$? 2040 egrep -v '^ *\+' conftest.er1 >conftest.err 2041 rm -f conftest.er1 2042 cat conftest.err >&5 2043 echo "$as_me:2043: \$? = $ac_status" >&5 2044 (exit $ac_status); } >/dev/null; then 2045 if test -s conftest.err; then 2046 ac_cpp_err=$ac_c_preproc_warn_flag 2047 else 2048 ac_cpp_err= 2049 fi 2050else 2051 ac_cpp_err=yes 2052fi 2053if test -z "$ac_cpp_err"; then 2054 # Broken: success on invalid input. 2055continue 2056else 2057 echo "$as_me: failed program was:" >&5 2058 cat conftest.$ac_ext >&5 2059 # Passes both tests. 2060ac_preproc_ok=: 2061break 2062fi 2063rm -f conftest.err conftest.$ac_ext 2064 2065done 2066# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2067rm -f conftest.err conftest.$ac_ext 2068if $ac_preproc_ok; then 2069 : 2070else 2071 { { echo "$as_me:2071: error: C preprocessor \"$CPP\" fails sanity check" >&5 2072echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 2073 { (exit 1); exit 1; }; } 2074fi 2075 2076ac_ext=c 2077ac_cpp='$CPP $CPPFLAGS' 2078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2080ac_compiler_gnu=$ac_cv_c_compiler_gnu 2081ac_main_return=return 2082 2083if test $ac_cv_c_compiler_gnu = yes; then 2084 echo "$as_me:2084: checking whether $CC needs -traditional" >&5 2085echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 2086if test "${ac_cv_prog_gcc_traditional+set}" = set; then 2087 echo $ECHO_N "(cached) $ECHO_C" >&6 2088else 2089 ac_pattern="Autoconf.*'x'" 2090 cat >conftest.$ac_ext <<_ACEOF 2091#line 2091 "configure" 2092#include "confdefs.h" 2093#include <sgtty.h> 2094int Autoconf = TIOCGETP; 2095_ACEOF 2096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2097 egrep "$ac_pattern" >/dev/null 2>&1; then 2098 ac_cv_prog_gcc_traditional=yes 2099else 2100 ac_cv_prog_gcc_traditional=no 2101fi 2102rm -f conftest* 2103 2104 if test $ac_cv_prog_gcc_traditional = no; then 2105 cat >conftest.$ac_ext <<_ACEOF 2106#line 2106 "configure" 2107#include "confdefs.h" 2108#include <termio.h> 2109int Autoconf = TCGETA; 2110_ACEOF 2111if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2112 egrep "$ac_pattern" >/dev/null 2>&1; then 2113 ac_cv_prog_gcc_traditional=yes 2114fi 2115rm -f conftest* 2116 2117 fi 2118fi 2119echo "$as_me:2119: result: $ac_cv_prog_gcc_traditional" >&5 2120echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 2121 if test $ac_cv_prog_gcc_traditional = yes; then 2122 CC="$CC -traditional" 2123 fi 2124fi 2125 2126for ac_prog in mawk gawk nawk awk 2127do 2128 # Extract the first word of "$ac_prog", so it can be a program name with args. 2129set dummy $ac_prog; ac_word=$2 2130echo "$as_me:2130: checking for $ac_word" >&5 2131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2132if test "${ac_cv_prog_AWK+set}" = set; then 2133 echo $ECHO_N "(cached) $ECHO_C" >&6 2134else 2135 if test -n "$AWK"; then 2136 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2137else 2138 ac_save_IFS=$IFS; IFS=$ac_path_separator 2139ac_dummy="$PATH" 2140for ac_dir in $ac_dummy; do 2141 IFS=$ac_save_IFS 2142 test -z "$ac_dir" && ac_dir=. 2143 $as_executable_p "$ac_dir/$ac_word" || continue 2144ac_cv_prog_AWK="$ac_prog" 2145echo "$as_me:2145: found $ac_dir/$ac_word" >&5 2146break 2147done 2148 2149fi 2150fi 2151AWK=$ac_cv_prog_AWK 2152if test -n "$AWK"; then 2153 echo "$as_me:2153: result: $AWK" >&5 2154echo "${ECHO_T}$AWK" >&6 2155else 2156 echo "$as_me:2156: result: no" >&5 2157echo "${ECHO_T}no" >&6 2158fi 2159 2160 test -n "$AWK" && break 2161done 2162 2163# Find a good install program. We prefer a C program (faster), 2164# so one script is as good as another. But avoid the broken or 2165# incompatible versions: 2166# SysV /etc/install, /usr/sbin/install 2167# SunOS /usr/etc/install 2168# IRIX /sbin/install 2169# AIX /bin/install 2170# AmigaOS /C/install, which installs bootblocks on floppy discs 2171# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2172# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2173# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2174# ./install, which can be erroneously created by make from ./install.sh. 2175echo "$as_me:2175: checking for a BSD compatible install" >&5 2176echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 2177if test -z "$INSTALL"; then 2178if test "${ac_cv_path_install+set}" = set; then 2179 echo $ECHO_N "(cached) $ECHO_C" >&6 2180else 2181 ac_save_IFS=$IFS; IFS=$ac_path_separator 2182 for ac_dir in $PATH; do 2183 IFS=$ac_save_IFS 2184 # Account for people who put trailing slashes in PATH elements. 2185 case $ac_dir/ in 2186 / | ./ | .// | /cC/* \ 2187 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 2188 | /usr/ucb/* ) ;; 2189 *) 2190 # OSF1 and SCO ODT 3.0 have their own names for install. 2191 # Don't use installbsd from OSF since it installs stuff as root 2192 # by default. 2193 for ac_prog in ginstall scoinst install; do 2194 if $as_executable_p "$ac_dir/$ac_prog"; then 2195 if test $ac_prog = install && 2196 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2197 # AIX install. It has an incompatible calling convention. 2198 : 2199 elif test $ac_prog = install && 2200 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2201 # program-specific install script used by HP pwplus--don't use. 2202 : 2203 else 2204 ac_cv_path_install="$ac_dir/$ac_prog -c" 2205 break 2 2206 fi 2207 fi 2208 done 2209 ;; 2210 esac 2211 done 2212 2213fi 2214 if test "${ac_cv_path_install+set}" = set; then 2215 INSTALL=$ac_cv_path_install 2216 else 2217 # As a last resort, use the slow shell script. We don't cache a 2218 # path for INSTALL within a source directory, because that will 2219 # break other packages using the cache if that directory is 2220 # removed, or if the path is relative. 2221 INSTALL=$ac_install_sh 2222 fi 2223fi 2224echo "$as_me:2224: result: $INSTALL" >&5 2225echo "${ECHO_T}$INSTALL" >&6 2226 2227# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2228# It thinks the first close brace ends the variable substitution. 2229test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2230 2231test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2232 2233test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2234 2235echo "$as_me:2235: checking whether ln -s works" >&5 2236echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2237LN_S=$as_ln_s 2238if test "$LN_S" = "ln -s"; then 2239 echo "$as_me:2239: result: yes" >&5 2240echo "${ECHO_T}yes" >&6 2241else 2242 echo "$as_me:2242: result: no, using $LN_S" >&5 2243echo "${ECHO_T}no, using $LN_S" >&6 2244fi 2245 2246test "$program_prefix" != NONE && 2247 program_transform_name="s,^,$program_prefix,;$program_transform_name" 2248# Use a double $ so make ignores it. 2249test "$program_suffix" != NONE && 2250 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 2251# Double any \ or $. echo might interpret backslashes. 2252# By default was `s,x,x', remove it if useless. 2253cat <<\_ACEOF >conftest.sed 2254s/[\\$]/&&/g;s/;s,x,x,$// 2255_ACEOF 2256program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2257rm conftest.sed 2258 2259for ac_prog in tdlint lint alint 2260do 2261 # Extract the first word of "$ac_prog", so it can be a program name with args. 2262set dummy $ac_prog; ac_word=$2 2263echo "$as_me:2263: checking for $ac_word" >&5 2264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2265if test "${ac_cv_prog_LINT+set}" = set; then 2266 echo $ECHO_N "(cached) $ECHO_C" >&6 2267else 2268 if test -n "$LINT"; then 2269 ac_cv_prog_LINT="$LINT" # Let the user override the test. 2270else 2271 ac_save_IFS=$IFS; IFS=$ac_path_separator 2272ac_dummy="$PATH" 2273for ac_dir in $ac_dummy; do 2274 IFS=$ac_save_IFS 2275 test -z "$ac_dir" && ac_dir=. 2276 $as_executable_p "$ac_dir/$ac_word" || continue 2277ac_cv_prog_LINT="$ac_prog" 2278echo "$as_me:2278: found $ac_dir/$ac_word" >&5 2279break 2280done 2281 2282fi 2283fi 2284LINT=$ac_cv_prog_LINT 2285if test -n "$LINT"; then 2286 echo "$as_me:2286: result: $LINT" >&5 2287echo "${ECHO_T}$LINT" >&6 2288else 2289 echo "$as_me:2289: result: no" >&5 2290echo "${ECHO_T}no" >&6 2291fi 2292 2293 test -n "$LINT" && break 2294done 2295 2296### checks for UNIX variants that set C preprocessor variables 2297 2298echo "$as_me:2298: checking for AIX" >&5 2299echo $ECHO_N "checking for AIX... $ECHO_C" >&6 2300cat >conftest.$ac_ext <<_ACEOF 2301#line 2301 "configure" 2302#include "confdefs.h" 2303#ifdef _AIX 2304 yes 2305#endif 2306 2307_ACEOF 2308if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2309 egrep "yes" >/dev/null 2>&1; then 2310 echo "$as_me:2310: result: yes" >&5 2311echo "${ECHO_T}yes" >&6 2312cat >>confdefs.h <<\EOF 2313#define _ALL_SOURCE 1 2314EOF 2315 2316else 2317 echo "$as_me:2317: result: no" >&5 2318echo "${ECHO_T}no" >&6 2319fi 2320rm -f conftest* 2321 2322echo "$as_me:2322: checking for POSIXized ISC" >&5 2323echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6 2324if test -d /etc/conf/kconfig.d && 2325 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 2326then 2327 echo "$as_me:2327: result: yes" >&5 2328echo "${ECHO_T}yes" >&6 2329 ISC=yes # If later tests want to check for ISC. 2330 2331cat >>confdefs.h <<\EOF 2332#define _POSIX_SOURCE 1 2333EOF 2334 2335 if test "$GCC" = yes; then 2336 CC="$CC -posix" 2337 else 2338 CC="$CC -Xp" 2339 fi 2340else 2341 echo "$as_me:2341: result: no" >&5 2342echo "${ECHO_T}no" >&6 2343 ISC= 2344fi 2345 2346### checks for compiler characteristics 2347 2348echo "$as_me:2348: checking for ${CC-cc} option to accept ANSI C" >&5 2349echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 2350if test "${cf_cv_ansi_cc+set}" = set; then 2351 echo $ECHO_N "(cached) $ECHO_C" >&6 2352else 2353 2354cf_cv_ansi_cc=no 2355cf_save_CFLAGS="$CFLAGS" 2356cf_save_CPPFLAGS="$CPPFLAGS" 2357# Don't try gcc -ansi; that turns off useful extensions and 2358# breaks some systems' header files. 2359# AIX -qlanglvl=ansi 2360# Ultrix and OSF/1 -std1 2361# HP-UX -Aa -D_HPUX_SOURCE 2362# SVR4 -Xc 2363# UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes) 2364for cf_arg in "-DCC_HAS_PROTOS" \ 2365 "" \ 2366 -qlanglvl=ansi \ 2367 -std1 \ 2368 -Ae \ 2369 "-Aa -D_HPUX_SOURCE" \ 2370 -Xc 2371do 2372 2373cf_fix_cppflags=no 2374cf_new_cflags= 2375cf_new_cppflags= 2376cf_new_extra_cppflags= 2377 2378for cf_add_cflags in $cf_arg 2379do 2380case $cf_fix_cppflags in 2381no) 2382 case $cf_add_cflags in #(vi 2383 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 2384 case $cf_add_cflags in 2385 -D*) 2386 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2387 2388 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2389 && test -z "${cf_tst_cflags}" \ 2390 && cf_fix_cppflags=yes 2391 2392 if test $cf_fix_cppflags = yes ; then 2393 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2394 continue 2395 elif test "${cf_tst_cflags}" = "\"'" ; then 2396 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2397 continue 2398 fi 2399 ;; 2400 esac 2401 case "$CPPFLAGS" in 2402 *$cf_add_cflags) #(vi 2403 ;; 2404 *) #(vi 2405 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 2406 ;; 2407 esac 2408 ;; 2409 *) 2410 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 2411 ;; 2412 esac 2413 ;; 2414yes) 2415 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2416 2417 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 2418 2419 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2420 && test -z "${cf_tst_cflags}" \ 2421 && cf_fix_cppflags=no 2422 ;; 2423esac 2424done 2425 2426if test -n "$cf_new_cflags" ; then 2427 2428 CFLAGS="$CFLAGS $cf_new_cflags" 2429fi 2430 2431if test -n "$cf_new_cppflags" ; then 2432 2433 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 2434fi 2435 2436if test -n "$cf_new_extra_cppflags" ; then 2437 2438 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 2439fi 2440 2441 cat >conftest.$ac_ext <<_ACEOF 2442#line 2442 "configure" 2443#include "confdefs.h" 2444 2445#ifndef CC_HAS_PROTOS 2446#if !defined(__STDC__) || (__STDC__ != 1) 2447choke me 2448#endif 2449#endif 2450 2451int 2452main () 2453{ 2454 2455 int test (int i, double x); 2456 struct s1 {int (*f) (int a);}; 2457 struct s2 {int (*f) (double a);}; 2458 ; 2459 return 0; 2460} 2461_ACEOF 2462rm -f conftest.$ac_objext 2463if { (eval echo "$as_me:2463: \"$ac_compile\"") >&5 2464 (eval $ac_compile) 2>&5 2465 ac_status=$? 2466 echo "$as_me:2466: \$? = $ac_status" >&5 2467 (exit $ac_status); } && 2468 { ac_try='test -s conftest.$ac_objext' 2469 { (eval echo "$as_me:2469: \"$ac_try\"") >&5 2470 (eval $ac_try) 2>&5 2471 ac_status=$? 2472 echo "$as_me:2472: \$? = $ac_status" >&5 2473 (exit $ac_status); }; }; then 2474 cf_cv_ansi_cc="$cf_arg"; break 2475else 2476 echo "$as_me: failed program was:" >&5 2477cat conftest.$ac_ext >&5 2478fi 2479rm -f conftest.$ac_objext conftest.$ac_ext 2480done 2481CFLAGS="$cf_save_CFLAGS" 2482CPPFLAGS="$cf_save_CPPFLAGS" 2483 2484fi 2485echo "$as_me:2485: result: $cf_cv_ansi_cc" >&5 2486echo "${ECHO_T}$cf_cv_ansi_cc" >&6 2487 2488if test "$cf_cv_ansi_cc" != "no"; then 2489if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then 2490 2491cf_fix_cppflags=no 2492cf_new_cflags= 2493cf_new_cppflags= 2494cf_new_extra_cppflags= 2495 2496for cf_add_cflags in $cf_cv_ansi_cc 2497do 2498case $cf_fix_cppflags in 2499no) 2500 case $cf_add_cflags in #(vi 2501 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 2502 case $cf_add_cflags in 2503 -D*) 2504 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2505 2506 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2507 && test -z "${cf_tst_cflags}" \ 2508 && cf_fix_cppflags=yes 2509 2510 if test $cf_fix_cppflags = yes ; then 2511 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2512 continue 2513 elif test "${cf_tst_cflags}" = "\"'" ; then 2514 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2515 continue 2516 fi 2517 ;; 2518 esac 2519 case "$CPPFLAGS" in 2520 *$cf_add_cflags) #(vi 2521 ;; 2522 *) #(vi 2523 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 2524 ;; 2525 esac 2526 ;; 2527 *) 2528 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 2529 ;; 2530 esac 2531 ;; 2532yes) 2533 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2534 2535 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 2536 2537 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2538 && test -z "${cf_tst_cflags}" \ 2539 && cf_fix_cppflags=no 2540 ;; 2541esac 2542done 2543 2544if test -n "$cf_new_cflags" ; then 2545 2546 CFLAGS="$CFLAGS $cf_new_cflags" 2547fi 2548 2549if test -n "$cf_new_cppflags" ; then 2550 2551 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 2552fi 2553 2554if test -n "$cf_new_extra_cppflags" ; then 2555 2556 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 2557fi 2558 2559else 2560 cat >>confdefs.h <<\EOF 2561#define CC_HAS_PROTOS 1 2562EOF 2563 2564fi 2565fi 2566 2567echo "$as_me:2567: checking for $CC option to accept ANSI C" >&5 2568echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2569if test "${ac_cv_prog_cc_stdc+set}" = set; then 2570 echo $ECHO_N "(cached) $ECHO_C" >&6 2571else 2572 ac_cv_prog_cc_stdc=no 2573ac_save_CC=$CC 2574cat >conftest.$ac_ext <<_ACEOF 2575#line 2575 "configure" 2576#include "confdefs.h" 2577#include <stdarg.h> 2578#include <stdio.h> 2579#include <sys/types.h> 2580#include <sys/stat.h> 2581/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2582struct buf { int x; }; 2583FILE * (*rcsopen) (struct buf *, struct stat *, int); 2584static char *e (p, i) 2585 char **p; 2586 int i; 2587{ 2588 return p[i]; 2589} 2590static char *f (char * (*g) (char **, int), char **p, ...) 2591{ 2592 char *s; 2593 va_list v; 2594 va_start (v,p); 2595 s = g (p, va_arg (v,int)); 2596 va_end (v); 2597 return s; 2598} 2599int test (int i, double x); 2600struct s1 {int (*f) (int a);}; 2601struct s2 {int (*f) (double a);}; 2602int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2603int argc; 2604char **argv; 2605int 2606main () 2607{ 2608return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2609 ; 2610 return 0; 2611} 2612_ACEOF 2613# Don't try gcc -ansi; that turns off useful extensions and 2614# breaks some systems' header files. 2615# AIX -qlanglvl=ansi 2616# Ultrix and OSF/1 -std1 2617# HP-UX 10.20 and later -Ae 2618# HP-UX older versions -Aa -D_HPUX_SOURCE 2619# SVR4 -Xc -D__EXTENSIONS__ 2620for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2621do 2622 CC="$ac_save_CC $ac_arg" 2623 rm -f conftest.$ac_objext 2624if { (eval echo "$as_me:2624: \"$ac_compile\"") >&5 2625 (eval $ac_compile) 2>&5 2626 ac_status=$? 2627 echo "$as_me:2627: \$? = $ac_status" >&5 2628 (exit $ac_status); } && 2629 { ac_try='test -s conftest.$ac_objext' 2630 { (eval echo "$as_me:2630: \"$ac_try\"") >&5 2631 (eval $ac_try) 2>&5 2632 ac_status=$? 2633 echo "$as_me:2633: \$? = $ac_status" >&5 2634 (exit $ac_status); }; }; then 2635 ac_cv_prog_cc_stdc=$ac_arg 2636break 2637else 2638 echo "$as_me: failed program was:" >&5 2639cat conftest.$ac_ext >&5 2640fi 2641rm -f conftest.$ac_objext 2642done 2643rm -f conftest.$ac_ext conftest.$ac_objext 2644CC=$ac_save_CC 2645 2646fi 2647 2648case "x$ac_cv_prog_cc_stdc" in 2649 x|xno) 2650 echo "$as_me:2650: result: none needed" >&5 2651echo "${ECHO_T}none needed" >&6 ;; 2652 *) 2653 echo "$as_me:2653: result: $ac_cv_prog_cc_stdc" >&5 2654echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2655 CC="$CC $ac_cv_prog_cc_stdc" ;; 2656esac 2657 2658echo "$as_me:2658: checking for an ANSI C-conforming const" >&5 2659echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 2660if test "${ac_cv_c_const+set}" = set; then 2661 echo $ECHO_N "(cached) $ECHO_C" >&6 2662else 2663 cat >conftest.$ac_ext <<_ACEOF 2664#line 2664 "configure" 2665#include "confdefs.h" 2666 2667int 2668main () 2669{ 2670/* FIXME: Include the comments suggested by Paul. */ 2671#ifndef __cplusplus 2672 /* Ultrix mips cc rejects this. */ 2673 typedef int charset[2]; 2674 const charset x; 2675 /* SunOS 4.1.1 cc rejects this. */ 2676 char const *const *ccp; 2677 char **p; 2678 /* NEC SVR4.0.2 mips cc rejects this. */ 2679 struct point {int x, y;}; 2680 static struct point const zero = {0,0}; 2681 /* AIX XL C 1.02.0.0 rejects this. 2682 It does not let you subtract one const X* pointer from another in 2683 an arm of an if-expression whose if-part is not a constant 2684 expression */ 2685 const char *g = "string"; 2686 ccp = &g + (g ? g-g : 0); 2687 /* HPUX 7.0 cc rejects these. */ 2688 ++ccp; 2689 p = (char**) ccp; 2690 ccp = (char const *const *) p; 2691 { /* SCO 3.2v4 cc rejects this. */ 2692 char *t; 2693 char const *s = 0 ? (char *) 0 : (char const *) 0; 2694 2695 *t++ = 0; 2696 } 2697 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 2698 int x[] = {25, 17}; 2699 const int *foo = &x[0]; 2700 ++foo; 2701 } 2702 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 2703 typedef const int *iptr; 2704 iptr p = 0; 2705 ++p; 2706 } 2707 { /* AIX XL C 1.02.0.0 rejects this saying 2708 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 2709 struct s { int j; const int *ap[3]; }; 2710 struct s *b; b->j = 5; 2711 } 2712 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 2713 const int foo = 10; 2714 } 2715#endif 2716 2717 ; 2718 return 0; 2719} 2720_ACEOF 2721rm -f conftest.$ac_objext 2722if { (eval echo "$as_me:2722: \"$ac_compile\"") >&5 2723 (eval $ac_compile) 2>&5 2724 ac_status=$? 2725 echo "$as_me:2725: \$? = $ac_status" >&5 2726 (exit $ac_status); } && 2727 { ac_try='test -s conftest.$ac_objext' 2728 { (eval echo "$as_me:2728: \"$ac_try\"") >&5 2729 (eval $ac_try) 2>&5 2730 ac_status=$? 2731 echo "$as_me:2731: \$? = $ac_status" >&5 2732 (exit $ac_status); }; }; then 2733 ac_cv_c_const=yes 2734else 2735 echo "$as_me: failed program was:" >&5 2736cat conftest.$ac_ext >&5 2737ac_cv_c_const=no 2738fi 2739rm -f conftest.$ac_objext conftest.$ac_ext 2740fi 2741echo "$as_me:2741: result: $ac_cv_c_const" >&5 2742echo "${ECHO_T}$ac_cv_c_const" >&6 2743if test $ac_cv_c_const = no; then 2744 2745cat >>confdefs.h <<\EOF 2746#define const 2747EOF 2748 2749fi 2750 2751case $cf_cv_system_name in 2752os2*) 2753 CFLAGS="$CFLAGS -Zmt" 2754 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__" 2755 CXXFLAGS="$CXXFLAGS -Zmt" 2756 # autoconf's macro sets -Zexe and suffix both, which conflict:w 2757 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll" 2758 ac_cv_exeext=.exe 2759 ;; 2760esac 2761 2762PROG_EXT="$EXEEXT" 2763 2764test -n "$PROG_EXT" && cat >>confdefs.h <<EOF 2765#define PROG_EXT "$PROG_EXT" 2766EOF 2767 2768echo "$as_me:2768: checking if $CC -U and -D options work together" >&5 2769echo $ECHO_N "checking if $CC -U and -D options work together... $ECHO_C" >&6 2770if test "${cf_cv_cc_u_d_options+set}" = set; then 2771 echo $ECHO_N "(cached) $ECHO_C" >&6 2772else 2773 2774 cf_save_CPPFLAGS="$CPPFLAGS" 2775 CPPFLAGS="-UU_D_OPTIONS -DU_D_OPTIONS -DD_U_OPTIONS -UD_U_OPTIONS" 2776 cat >conftest.$ac_ext <<_ACEOF 2777#line 2777 "configure" 2778#include "confdefs.h" 2779 2780int 2781main () 2782{ 2783 2784#ifndef U_D_OPTIONS 2785make an undefined-error 2786#endif 2787#ifdef D_U_OPTIONS 2788make a defined-error 2789#endif 2790 2791 ; 2792 return 0; 2793} 2794_ACEOF 2795rm -f conftest.$ac_objext 2796if { (eval echo "$as_me:2796: \"$ac_compile\"") >&5 2797 (eval $ac_compile) 2>&5 2798 ac_status=$? 2799 echo "$as_me:2799: \$? = $ac_status" >&5 2800 (exit $ac_status); } && 2801 { ac_try='test -s conftest.$ac_objext' 2802 { (eval echo "$as_me:2802: \"$ac_try\"") >&5 2803 (eval $ac_try) 2>&5 2804 ac_status=$? 2805 echo "$as_me:2805: \$? = $ac_status" >&5 2806 (exit $ac_status); }; }; then 2807 2808 cf_cv_cc_u_d_options=yes 2809else 2810 echo "$as_me: failed program was:" >&5 2811cat conftest.$ac_ext >&5 2812 2813 cf_cv_cc_u_d_options=no 2814fi 2815rm -f conftest.$ac_objext conftest.$ac_ext 2816 CPPFLAGS="$cf_save_CPPFLAGS" 2817 2818fi 2819echo "$as_me:2819: result: $cf_cv_cc_u_d_options" >&5 2820echo "${ECHO_T}$cf_cv_cc_u_d_options" >&6 2821 2822cf_XOPEN_SOURCE=500 2823cf_POSIX_C_SOURCE=199506L 2824 2825case $host_os in #(vi 2826aix[456]*) #(vi 2827 CPPFLAGS="$CPPFLAGS -D_ALL_SOURCE" 2828 ;; 2829freebsd*|dragonfly*) #(vi 2830 # 5.x headers associate 2831 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L 2832 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L 2833 cf_POSIX_C_SOURCE=200112L 2834 cf_XOPEN_SOURCE=600 2835 CPPFLAGS="$CPPFLAGS -D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 2836 ;; 2837hpux*) #(vi 2838 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE" 2839 ;; 2840irix[56].*) #(vi 2841 CPPFLAGS="$CPPFLAGS -D_SGI_SOURCE" 2842 ;; 2843linux*|gnu*|mint*|k*bsd*-gnu) #(vi 2844 2845echo "$as_me:2845: checking if we must define _GNU_SOURCE" >&5 2846echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6 2847if test "${cf_cv_gnu_source+set}" = set; then 2848 echo $ECHO_N "(cached) $ECHO_C" >&6 2849else 2850 2851cat >conftest.$ac_ext <<_ACEOF 2852#line 2852 "configure" 2853#include "confdefs.h" 2854#include <sys/types.h> 2855int 2856main () 2857{ 2858 2859#ifndef _XOPEN_SOURCE 2860make an error 2861#endif 2862 ; 2863 return 0; 2864} 2865_ACEOF 2866rm -f conftest.$ac_objext 2867if { (eval echo "$as_me:2867: \"$ac_compile\"") >&5 2868 (eval $ac_compile) 2>&5 2869 ac_status=$? 2870 echo "$as_me:2870: \$? = $ac_status" >&5 2871 (exit $ac_status); } && 2872 { ac_try='test -s conftest.$ac_objext' 2873 { (eval echo "$as_me:2873: \"$ac_try\"") >&5 2874 (eval $ac_try) 2>&5 2875 ac_status=$? 2876 echo "$as_me:2876: \$? = $ac_status" >&5 2877 (exit $ac_status); }; }; then 2878 cf_cv_gnu_source=no 2879else 2880 echo "$as_me: failed program was:" >&5 2881cat conftest.$ac_ext >&5 2882cf_save="$CPPFLAGS" 2883 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 2884 cat >conftest.$ac_ext <<_ACEOF 2885#line 2885 "configure" 2886#include "confdefs.h" 2887#include <sys/types.h> 2888int 2889main () 2890{ 2891 2892#ifdef _XOPEN_SOURCE 2893make an error 2894#endif 2895 ; 2896 return 0; 2897} 2898_ACEOF 2899rm -f conftest.$ac_objext 2900if { (eval echo "$as_me:2900: \"$ac_compile\"") >&5 2901 (eval $ac_compile) 2>&5 2902 ac_status=$? 2903 echo "$as_me:2903: \$? = $ac_status" >&5 2904 (exit $ac_status); } && 2905 { ac_try='test -s conftest.$ac_objext' 2906 { (eval echo "$as_me:2906: \"$ac_try\"") >&5 2907 (eval $ac_try) 2>&5 2908 ac_status=$? 2909 echo "$as_me:2909: \$? = $ac_status" >&5 2910 (exit $ac_status); }; }; then 2911 cf_cv_gnu_source=no 2912else 2913 echo "$as_me: failed program was:" >&5 2914cat conftest.$ac_ext >&5 2915cf_cv_gnu_source=yes 2916fi 2917rm -f conftest.$ac_objext conftest.$ac_ext 2918 CPPFLAGS="$cf_save" 2919 2920fi 2921rm -f conftest.$ac_objext conftest.$ac_ext 2922 2923fi 2924echo "$as_me:2924: result: $cf_cv_gnu_source" >&5 2925echo "${ECHO_T}$cf_cv_gnu_source" >&6 2926test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 2927 2928 ;; 2929mirbsd*) #(vi 2930 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h> 2931 ;; 2932netbsd*) #(vi 2933 # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw 2934 ;; 2935openbsd*) #(vi 2936 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw 2937 ;; 2938osf[45]*) #(vi 2939 CPPFLAGS="$CPPFLAGS -D_OSF_SOURCE" 2940 ;; 2941nto-qnx*) #(vi 2942 CPPFLAGS="$CPPFLAGS -D_QNX_SOURCE" 2943 ;; 2944sco*) #(vi 2945 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer 2946 ;; 2947solaris*) #(vi 2948 CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__" 2949 ;; 2950*) 2951 echo "$as_me:2951: checking if we should define _XOPEN_SOURCE" >&5 2952echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 2953if test "${cf_cv_xopen_source+set}" = set; then 2954 echo $ECHO_N "(cached) $ECHO_C" >&6 2955else 2956 2957 cat >conftest.$ac_ext <<_ACEOF 2958#line 2958 "configure" 2959#include "confdefs.h" 2960#include <sys/types.h> 2961int 2962main () 2963{ 2964 2965#ifndef _XOPEN_SOURCE 2966make an error 2967#endif 2968 ; 2969 return 0; 2970} 2971_ACEOF 2972rm -f conftest.$ac_objext 2973if { (eval echo "$as_me:2973: \"$ac_compile\"") >&5 2974 (eval $ac_compile) 2>&5 2975 ac_status=$? 2976 echo "$as_me:2976: \$? = $ac_status" >&5 2977 (exit $ac_status); } && 2978 { ac_try='test -s conftest.$ac_objext' 2979 { (eval echo "$as_me:2979: \"$ac_try\"") >&5 2980 (eval $ac_try) 2>&5 2981 ac_status=$? 2982 echo "$as_me:2982: \$? = $ac_status" >&5 2983 (exit $ac_status); }; }; then 2984 cf_cv_xopen_source=no 2985else 2986 echo "$as_me: failed program was:" >&5 2987cat conftest.$ac_ext >&5 2988cf_save="$CPPFLAGS" 2989 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 2990 cat >conftest.$ac_ext <<_ACEOF 2991#line 2991 "configure" 2992#include "confdefs.h" 2993#include <sys/types.h> 2994int 2995main () 2996{ 2997 2998#ifdef _XOPEN_SOURCE 2999make an error 3000#endif 3001 ; 3002 return 0; 3003} 3004_ACEOF 3005rm -f conftest.$ac_objext 3006if { (eval echo "$as_me:3006: \"$ac_compile\"") >&5 3007 (eval $ac_compile) 2>&5 3008 ac_status=$? 3009 echo "$as_me:3009: \$? = $ac_status" >&5 3010 (exit $ac_status); } && 3011 { ac_try='test -s conftest.$ac_objext' 3012 { (eval echo "$as_me:3012: \"$ac_try\"") >&5 3013 (eval $ac_try) 2>&5 3014 ac_status=$? 3015 echo "$as_me:3015: \$? = $ac_status" >&5 3016 (exit $ac_status); }; }; then 3017 cf_cv_xopen_source=no 3018else 3019 echo "$as_me: failed program was:" >&5 3020cat conftest.$ac_ext >&5 3021cf_cv_xopen_source=$cf_XOPEN_SOURCE 3022fi 3023rm -f conftest.$ac_objext conftest.$ac_ext 3024 CPPFLAGS="$cf_save" 3025 3026fi 3027rm -f conftest.$ac_objext conftest.$ac_ext 3028 3029fi 3030echo "$as_me:3030: result: $cf_cv_xopen_source" >&5 3031echo "${ECHO_T}$cf_cv_xopen_source" >&6 3032 if test "$cf_cv_xopen_source" != no ; then 3033 3034# remove _XOPEN_SOURCE symbol from $CFLAGS 3035CFLAGS=`echo "$CFLAGS" | \ 3036 sed -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?[ ]/ /g' \ 3037 -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?$//g'` 3038 3039# remove _XOPEN_SOURCE symbol from $CPPFLAGS 3040CPPFLAGS=`echo "$CPPFLAGS" | \ 3041 sed -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?[ ]/ /g' \ 3042 -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?$//g'` 3043 3044 test "$cf_cv_cc_u_d_options" = yes && \ 3045 CPPFLAGS="$CPPFLAGS -U_XOPEN_SOURCE" 3046 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_cv_xopen_source" 3047 fi 3048 3049cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 3050 3051cf_save_CFLAGS="$CFLAGS" 3052cf_save_CPPFLAGS="$CPPFLAGS" 3053 3054# remove _POSIX_C_SOURCE symbol from $cf_save_CFLAGS 3055cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 3056 sed -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?[ ]/ /g' \ 3057 -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?$//g'` 3058 3059# remove _POSIX_C_SOURCE symbol from $cf_save_CPPFLAGS 3060cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 3061 sed -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?[ ]/ /g' \ 3062 -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?$//g'` 3063 3064echo "$as_me:3064: checking if we should define _POSIX_C_SOURCE" >&5 3065echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 3066if test "${cf_cv_posix_c_source+set}" = set; then 3067 echo $ECHO_N "(cached) $ECHO_C" >&6 3068else 3069 3070echo "${as_me-configure}:3070: testing if the symbol is already defined go no further ..." 1>&5 3071 3072 cat >conftest.$ac_ext <<_ACEOF 3073#line 3073 "configure" 3074#include "confdefs.h" 3075#include <sys/types.h> 3076int 3077main () 3078{ 3079 3080#ifndef _POSIX_C_SOURCE 3081make an error 3082#endif 3083 ; 3084 return 0; 3085} 3086_ACEOF 3087rm -f conftest.$ac_objext 3088if { (eval echo "$as_me:3088: \"$ac_compile\"") >&5 3089 (eval $ac_compile) 2>&5 3090 ac_status=$? 3091 echo "$as_me:3091: \$? = $ac_status" >&5 3092 (exit $ac_status); } && 3093 { ac_try='test -s conftest.$ac_objext' 3094 { (eval echo "$as_me:3094: \"$ac_try\"") >&5 3095 (eval $ac_try) 2>&5 3096 ac_status=$? 3097 echo "$as_me:3097: \$? = $ac_status" >&5 3098 (exit $ac_status); }; }; then 3099 cf_cv_posix_c_source=no 3100else 3101 echo "$as_me: failed program was:" >&5 3102cat conftest.$ac_ext >&5 3103cf_want_posix_source=no 3104 case .$cf_POSIX_C_SOURCE in #(vi 3105 .[12]??*) #(vi 3106 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3107 ;; 3108 .2) #(vi 3109 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3110 cf_want_posix_source=yes 3111 ;; 3112 .*) 3113 cf_want_posix_source=yes 3114 ;; 3115 esac 3116 if test "$cf_want_posix_source" = yes ; then 3117 cat >conftest.$ac_ext <<_ACEOF 3118#line 3118 "configure" 3119#include "confdefs.h" 3120#include <sys/types.h> 3121int 3122main () 3123{ 3124 3125#ifdef _POSIX_SOURCE 3126make an error 3127#endif 3128 ; 3129 return 0; 3130} 3131_ACEOF 3132rm -f conftest.$ac_objext 3133if { (eval echo "$as_me:3133: \"$ac_compile\"") >&5 3134 (eval $ac_compile) 2>&5 3135 ac_status=$? 3136 echo "$as_me:3136: \$? = $ac_status" >&5 3137 (exit $ac_status); } && 3138 { ac_try='test -s conftest.$ac_objext' 3139 { (eval echo "$as_me:3139: \"$ac_try\"") >&5 3140 (eval $ac_try) 2>&5 3141 ac_status=$? 3142 echo "$as_me:3142: \$? = $ac_status" >&5 3143 (exit $ac_status); }; }; then 3144 : 3145else 3146 echo "$as_me: failed program was:" >&5 3147cat conftest.$ac_ext >&5 3148cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 3149fi 3150rm -f conftest.$ac_objext conftest.$ac_ext 3151 fi 3152 3153echo "${as_me-configure}:3153: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 3154 3155 CFLAGS="$cf_trim_CFLAGS" 3156 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source" 3157 3158echo "${as_me-configure}:3158: testing if the second compile does not leave our definition intact error ..." 1>&5 3159 3160 cat >conftest.$ac_ext <<_ACEOF 3161#line 3161 "configure" 3162#include "confdefs.h" 3163#include <sys/types.h> 3164int 3165main () 3166{ 3167 3168#ifndef _POSIX_C_SOURCE 3169make an error 3170#endif 3171 ; 3172 return 0; 3173} 3174_ACEOF 3175rm -f conftest.$ac_objext 3176if { (eval echo "$as_me:3176: \"$ac_compile\"") >&5 3177 (eval $ac_compile) 2>&5 3178 ac_status=$? 3179 echo "$as_me:3179: \$? = $ac_status" >&5 3180 (exit $ac_status); } && 3181 { ac_try='test -s conftest.$ac_objext' 3182 { (eval echo "$as_me:3182: \"$ac_try\"") >&5 3183 (eval $ac_try) 2>&5 3184 ac_status=$? 3185 echo "$as_me:3185: \$? = $ac_status" >&5 3186 (exit $ac_status); }; }; then 3187 : 3188else 3189 echo "$as_me: failed program was:" >&5 3190cat conftest.$ac_ext >&5 3191cf_cv_posix_c_source=no 3192fi 3193rm -f conftest.$ac_objext conftest.$ac_ext 3194 CFLAGS="$cf_save_CFLAGS" 3195 CPPFLAGS="$cf_save_CPPFLAGS" 3196 3197fi 3198rm -f conftest.$ac_objext conftest.$ac_ext 3199 3200fi 3201echo "$as_me:3201: result: $cf_cv_posix_c_source" >&5 3202echo "${ECHO_T}$cf_cv_posix_c_source" >&6 3203 3204if test "$cf_cv_posix_c_source" != no ; then 3205 CFLAGS="$cf_trim_CFLAGS" 3206 CPPFLAGS="$cf_trim_CPPFLAGS" 3207 if test "$cf_cv_cc_u_d_options" = yes ; then 3208 cf_temp_posix_c_source=`echo "$cf_cv_posix_c_source" | \ 3209 sed -e 's/-D/-U/g' -e 's/=[^ ]*//g'` 3210 CPPFLAGS="$CPPFLAGS $cf_temp_posix_c_source" 3211 fi 3212 CPPFLAGS="$CPPFLAGS $cf_cv_posix_c_source" 3213fi 3214 3215 ;; 3216esac 3217 3218echo "$as_me:3218: checking if SIGWINCH is defined" >&5 3219echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6 3220if test "${cf_cv_define_sigwinch+set}" = set; then 3221 echo $ECHO_N "(cached) $ECHO_C" >&6 3222else 3223 3224 cat >conftest.$ac_ext <<_ACEOF 3225#line 3225 "configure" 3226#include "confdefs.h" 3227 3228#include <sys/types.h> 3229#include <sys/signal.h> 3230 3231int 3232main () 3233{ 3234int x = SIGWINCH 3235 ; 3236 return 0; 3237} 3238_ACEOF 3239rm -f conftest.$ac_objext 3240if { (eval echo "$as_me:3240: \"$ac_compile\"") >&5 3241 (eval $ac_compile) 2>&5 3242 ac_status=$? 3243 echo "$as_me:3243: \$? = $ac_status" >&5 3244 (exit $ac_status); } && 3245 { ac_try='test -s conftest.$ac_objext' 3246 { (eval echo "$as_me:3246: \"$ac_try\"") >&5 3247 (eval $ac_try) 2>&5 3248 ac_status=$? 3249 echo "$as_me:3249: \$? = $ac_status" >&5 3250 (exit $ac_status); }; }; then 3251 cf_cv_define_sigwinch=yes 3252else 3253 echo "$as_me: failed program was:" >&5 3254cat conftest.$ac_ext >&5 3255cat >conftest.$ac_ext <<_ACEOF 3256#line 3256 "configure" 3257#include "confdefs.h" 3258 3259#undef _XOPEN_SOURCE 3260#undef _POSIX_SOURCE 3261#undef _POSIX_C_SOURCE 3262#include <sys/types.h> 3263#include <sys/signal.h> 3264 3265int 3266main () 3267{ 3268int x = SIGWINCH 3269 ; 3270 return 0; 3271} 3272_ACEOF 3273rm -f conftest.$ac_objext 3274if { (eval echo "$as_me:3274: \"$ac_compile\"") >&5 3275 (eval $ac_compile) 2>&5 3276 ac_status=$? 3277 echo "$as_me:3277: \$? = $ac_status" >&5 3278 (exit $ac_status); } && 3279 { ac_try='test -s conftest.$ac_objext' 3280 { (eval echo "$as_me:3280: \"$ac_try\"") >&5 3281 (eval $ac_try) 2>&5 3282 ac_status=$? 3283 echo "$as_me:3283: \$? = $ac_status" >&5 3284 (exit $ac_status); }; }; then 3285 cf_cv_define_sigwinch=maybe 3286else 3287 echo "$as_me: failed program was:" >&5 3288cat conftest.$ac_ext >&5 3289cf_cv_define_sigwinch=no 3290fi 3291rm -f conftest.$ac_objext conftest.$ac_ext 3292 3293fi 3294rm -f conftest.$ac_objext conftest.$ac_ext 3295 3296fi 3297echo "$as_me:3297: result: $cf_cv_define_sigwinch" >&5 3298echo "${ECHO_T}$cf_cv_define_sigwinch" >&6 3299 3300if test "$cf_cv_define_sigwinch" = maybe ; then 3301echo "$as_me:3301: checking for actual SIGWINCH definition" >&5 3302echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6 3303if test "${cf_cv_fixup_sigwinch+set}" = set; then 3304 echo $ECHO_N "(cached) $ECHO_C" >&6 3305else 3306 3307cf_cv_fixup_sigwinch=unknown 3308cf_sigwinch=32 3309while test $cf_sigwinch != 1 3310do 3311 cat >conftest.$ac_ext <<_ACEOF 3312#line 3312 "configure" 3313#include "confdefs.h" 3314 3315#undef _XOPEN_SOURCE 3316#undef _POSIX_SOURCE 3317#undef _POSIX_C_SOURCE 3318#include <sys/types.h> 3319#include <sys/signal.h> 3320 3321int 3322main () 3323{ 3324 3325#if SIGWINCH != $cf_sigwinch 3326make an error 3327#endif 3328int x = SIGWINCH 3329 ; 3330 return 0; 3331} 3332_ACEOF 3333rm -f conftest.$ac_objext 3334if { (eval echo "$as_me:3334: \"$ac_compile\"") >&5 3335 (eval $ac_compile) 2>&5 3336 ac_status=$? 3337 echo "$as_me:3337: \$? = $ac_status" >&5 3338 (exit $ac_status); } && 3339 { ac_try='test -s conftest.$ac_objext' 3340 { (eval echo "$as_me:3340: \"$ac_try\"") >&5 3341 (eval $ac_try) 2>&5 3342 ac_status=$? 3343 echo "$as_me:3343: \$? = $ac_status" >&5 3344 (exit $ac_status); }; }; then 3345 cf_cv_fixup_sigwinch=$cf_sigwinch 3346 break 3347else 3348 echo "$as_me: failed program was:" >&5 3349cat conftest.$ac_ext >&5 3350fi 3351rm -f conftest.$ac_objext conftest.$ac_ext 3352 3353cf_sigwinch=`expr $cf_sigwinch - 1` 3354done 3355 3356fi 3357echo "$as_me:3357: result: $cf_cv_fixup_sigwinch" >&5 3358echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6 3359 3360 if test "$cf_cv_fixup_sigwinch" != unknown ; then 3361 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch" 3362 fi 3363fi 3364 3365### checks for header files 3366 3367for ac_header in \ 3368ncurses/term.h \ 3369stdlib.h \ 3370sys/ttydefaults.h \ 3371term.h \ 3372termios.h \ 3373unistd.h \ 3374wchar.h \ 3375 3376do 3377as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3378echo "$as_me:3378: checking for $ac_header" >&5 3379echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3380if eval "test \"\${$as_ac_Header+set}\" = set"; then 3381 echo $ECHO_N "(cached) $ECHO_C" >&6 3382else 3383 cat >conftest.$ac_ext <<_ACEOF 3384#line 3384 "configure" 3385#include "confdefs.h" 3386#include <$ac_header> 3387_ACEOF 3388if { (eval echo "$as_me:3388: \"$ac_cpp conftest.$ac_ext\"") >&5 3389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3390 ac_status=$? 3391 egrep -v '^ *\+' conftest.er1 >conftest.err 3392 rm -f conftest.er1 3393 cat conftest.err >&5 3394 echo "$as_me:3394: \$? = $ac_status" >&5 3395 (exit $ac_status); } >/dev/null; then 3396 if test -s conftest.err; then 3397 ac_cpp_err=$ac_c_preproc_warn_flag 3398 else 3399 ac_cpp_err= 3400 fi 3401else 3402 ac_cpp_err=yes 3403fi 3404if test -z "$ac_cpp_err"; then 3405 eval "$as_ac_Header=yes" 3406else 3407 echo "$as_me: failed program was:" >&5 3408 cat conftest.$ac_ext >&5 3409 eval "$as_ac_Header=no" 3410fi 3411rm -f conftest.err conftest.$ac_ext 3412fi 3413echo "$as_me:3413: result: `eval echo '${'$as_ac_Header'}'`" >&5 3414echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3415if test `eval echo '${'$as_ac_Header'}'` = yes; then 3416 cat >>confdefs.h <<EOF 3417#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3418EOF 3419 3420fi 3421done 3422 3423echo "$as_me:3423: checking whether time.h and sys/time.h may both be included" >&5 3424echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 3425if test "${ac_cv_header_time+set}" = set; then 3426 echo $ECHO_N "(cached) $ECHO_C" >&6 3427else 3428 cat >conftest.$ac_ext <<_ACEOF 3429#line 3429 "configure" 3430#include "confdefs.h" 3431#include <sys/types.h> 3432#include <sys/time.h> 3433#include <time.h> 3434 3435int 3436main () 3437{ 3438if ((struct tm *) 0) 3439return 0; 3440 ; 3441 return 0; 3442} 3443_ACEOF 3444rm -f conftest.$ac_objext 3445if { (eval echo "$as_me:3445: \"$ac_compile\"") >&5 3446 (eval $ac_compile) 2>&5 3447 ac_status=$? 3448 echo "$as_me:3448: \$? = $ac_status" >&5 3449 (exit $ac_status); } && 3450 { ac_try='test -s conftest.$ac_objext' 3451 { (eval echo "$as_me:3451: \"$ac_try\"") >&5 3452 (eval $ac_try) 2>&5 3453 ac_status=$? 3454 echo "$as_me:3454: \$? = $ac_status" >&5 3455 (exit $ac_status); }; }; then 3456 ac_cv_header_time=yes 3457else 3458 echo "$as_me: failed program was:" >&5 3459cat conftest.$ac_ext >&5 3460ac_cv_header_time=no 3461fi 3462rm -f conftest.$ac_objext conftest.$ac_ext 3463fi 3464echo "$as_me:3464: result: $ac_cv_header_time" >&5 3465echo "${ECHO_T}$ac_cv_header_time" >&6 3466if test $ac_cv_header_time = yes; then 3467 3468cat >>confdefs.h <<\EOF 3469#define TIME_WITH_SYS_TIME 1 3470EOF 3471 3472fi 3473 3474 echo "$as_me:3474: checking for nl_langinfo and CODESET" >&5 3475echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 3476if test "${am_cv_langinfo_codeset+set}" = set; then 3477 echo $ECHO_N "(cached) $ECHO_C" >&6 3478else 3479 cat >conftest.$ac_ext <<_ACEOF 3480#line 3480 "configure" 3481#include "confdefs.h" 3482#include <langinfo.h> 3483int 3484main () 3485{ 3486char* cs = nl_langinfo(CODESET); 3487 ; 3488 return 0; 3489} 3490_ACEOF 3491rm -f conftest.$ac_objext conftest$ac_exeext 3492if { (eval echo "$as_me:3492: \"$ac_link\"") >&5 3493 (eval $ac_link) 2>&5 3494 ac_status=$? 3495 echo "$as_me:3495: \$? = $ac_status" >&5 3496 (exit $ac_status); } && 3497 { ac_try='test -s conftest$ac_exeext' 3498 { (eval echo "$as_me:3498: \"$ac_try\"") >&5 3499 (eval $ac_try) 2>&5 3500 ac_status=$? 3501 echo "$as_me:3501: \$? = $ac_status" >&5 3502 (exit $ac_status); }; }; then 3503 am_cv_langinfo_codeset=yes 3504else 3505 echo "$as_me: failed program was:" >&5 3506cat conftest.$ac_ext >&5 3507am_cv_langinfo_codeset=no 3508fi 3509rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3510 3511fi 3512echo "$as_me:3512: result: $am_cv_langinfo_codeset" >&5 3513echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 3514 if test $am_cv_langinfo_codeset = yes; then 3515 3516cat >>confdefs.h <<\EOF 3517#define HAVE_LANGINFO_CODESET 1 3518EOF 3519 3520 fi 3521 3522### checks for typedefs 3523 3524echo "$as_me:3524: checking for signal global datatype" >&5 3525echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6 3526if test "${cf_cv_sig_atomic_t+set}" = set; then 3527 echo $ECHO_N "(cached) $ECHO_C" >&6 3528else 3529 3530 for cf_type in \ 3531 "volatile sig_atomic_t" \ 3532 "sig_atomic_t" \ 3533 "int" 3534 do 3535 cat >conftest.$ac_ext <<_ACEOF 3536#line 3536 "configure" 3537#include "confdefs.h" 3538 3539#include <sys/types.h> 3540#include <signal.h> 3541#include <stdio.h> 3542 3543extern $cf_type x; 3544$cf_type x; 3545static void handler(int sig) 3546{ 3547 x = 5; 3548} 3549int 3550main () 3551{ 3552signal(SIGINT, handler); 3553 x = 1 3554 ; 3555 return 0; 3556} 3557_ACEOF 3558rm -f conftest.$ac_objext 3559if { (eval echo "$as_me:3559: \"$ac_compile\"") >&5 3560 (eval $ac_compile) 2>&5 3561 ac_status=$? 3562 echo "$as_me:3562: \$? = $ac_status" >&5 3563 (exit $ac_status); } && 3564 { ac_try='test -s conftest.$ac_objext' 3565 { (eval echo "$as_me:3565: \"$ac_try\"") >&5 3566 (eval $ac_try) 2>&5 3567 ac_status=$? 3568 echo "$as_me:3568: \$? = $ac_status" >&5 3569 (exit $ac_status); }; }; then 3570 cf_cv_sig_atomic_t=$cf_type 3571else 3572 echo "$as_me: failed program was:" >&5 3573cat conftest.$ac_ext >&5 3574cf_cv_sig_atomic_t=no 3575fi 3576rm -f conftest.$ac_objext conftest.$ac_ext 3577 test "$cf_cv_sig_atomic_t" != no && break 3578 done 3579 3580fi 3581 3582echo "$as_me:3582: result: $cf_cv_sig_atomic_t" >&5 3583echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6 3584test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF 3585#define SIG_ATOMIC_T $cf_cv_sig_atomic_t 3586EOF 3587 3588echo "$as_me:3588: checking for size_t in <sys/types.h> or <stdio.h>" >&5 3589echo $ECHO_N "checking for size_t in <sys/types.h> or <stdio.h>... $ECHO_C" >&6 3590if test "${cf_cv_type_size_t+set}" = set; then 3591 echo $ECHO_N "(cached) $ECHO_C" >&6 3592else 3593 3594 cat >conftest.$ac_ext <<_ACEOF 3595#line 3595 "configure" 3596#include "confdefs.h" 3597 3598#include <sys/types.h> 3599#ifdef STDC_HEADERS 3600#include <stdlib.h> 3601#include <stddef.h> 3602#endif 3603#include <stdio.h> 3604int 3605main () 3606{ 3607size_t x 3608 ; 3609 return 0; 3610} 3611_ACEOF 3612rm -f conftest.$ac_objext 3613if { (eval echo "$as_me:3613: \"$ac_compile\"") >&5 3614 (eval $ac_compile) 2>&5 3615 ac_status=$? 3616 echo "$as_me:3616: \$? = $ac_status" >&5 3617 (exit $ac_status); } && 3618 { ac_try='test -s conftest.$ac_objext' 3619 { (eval echo "$as_me:3619: \"$ac_try\"") >&5 3620 (eval $ac_try) 2>&5 3621 ac_status=$? 3622 echo "$as_me:3622: \$? = $ac_status" >&5 3623 (exit $ac_status); }; }; then 3624 cf_cv_type_size_t=yes 3625else 3626 echo "$as_me: failed program was:" >&5 3627cat conftest.$ac_ext >&5 3628cf_cv_type_size_t=no 3629fi 3630rm -f conftest.$ac_objext conftest.$ac_ext 3631 3632fi 3633 3634echo "$as_me:3634: result: $cf_cv_type_size_t" >&5 3635echo "${ECHO_T}$cf_cv_type_size_t" >&6 3636test $cf_cv_type_size_t = no && cat >>confdefs.h <<\EOF 3637#define size_t unsigned 3638EOF 3639 3640echo "$as_me:3640: checking for ANSI C header files" >&5 3641echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3642if test "${ac_cv_header_stdc+set}" = set; then 3643 echo $ECHO_N "(cached) $ECHO_C" >&6 3644else 3645 cat >conftest.$ac_ext <<_ACEOF 3646#line 3646 "configure" 3647#include "confdefs.h" 3648#include <stdlib.h> 3649#include <stdarg.h> 3650#include <string.h> 3651#include <float.h> 3652 3653_ACEOF 3654if { (eval echo "$as_me:3654: \"$ac_cpp conftest.$ac_ext\"") >&5 3655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3656 ac_status=$? 3657 egrep -v '^ *\+' conftest.er1 >conftest.err 3658 rm -f conftest.er1 3659 cat conftest.err >&5 3660 echo "$as_me:3660: \$? = $ac_status" >&5 3661 (exit $ac_status); } >/dev/null; then 3662 if test -s conftest.err; then 3663 ac_cpp_err=$ac_c_preproc_warn_flag 3664 else 3665 ac_cpp_err= 3666 fi 3667else 3668 ac_cpp_err=yes 3669fi 3670if test -z "$ac_cpp_err"; then 3671 ac_cv_header_stdc=yes 3672else 3673 echo "$as_me: failed program was:" >&5 3674 cat conftest.$ac_ext >&5 3675 ac_cv_header_stdc=no 3676fi 3677rm -f conftest.err conftest.$ac_ext 3678 3679if test $ac_cv_header_stdc = yes; then 3680 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3681 cat >conftest.$ac_ext <<_ACEOF 3682#line 3682 "configure" 3683#include "confdefs.h" 3684#include <string.h> 3685 3686_ACEOF 3687if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3688 egrep "memchr" >/dev/null 2>&1; then 3689 : 3690else 3691 ac_cv_header_stdc=no 3692fi 3693rm -f conftest* 3694 3695fi 3696 3697if test $ac_cv_header_stdc = yes; then 3698 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3699 cat >conftest.$ac_ext <<_ACEOF 3700#line 3700 "configure" 3701#include "confdefs.h" 3702#include <stdlib.h> 3703 3704_ACEOF 3705if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3706 egrep "free" >/dev/null 2>&1; then 3707 : 3708else 3709 ac_cv_header_stdc=no 3710fi 3711rm -f conftest* 3712 3713fi 3714 3715if test $ac_cv_header_stdc = yes; then 3716 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3717 if test "$cross_compiling" = yes; then 3718 : 3719else 3720 cat >conftest.$ac_ext <<_ACEOF 3721#line 3721 "configure" 3722#include "confdefs.h" 3723#include <ctype.h> 3724#if ((' ' & 0x0FF) == 0x020) 3725# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3726# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3727#else 3728# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 3729 || ('j' <= (c) && (c) <= 'r') \ 3730 || ('s' <= (c) && (c) <= 'z')) 3731# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3732#endif 3733 3734#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3735int 3736main () 3737{ 3738 int i; 3739 for (i = 0; i < 256; i++) 3740 if (XOR (islower (i), ISLOWER (i)) 3741 || toupper (i) != TOUPPER (i)) 3742 $ac_main_return(2); 3743 $ac_main_return (0); 3744} 3745_ACEOF 3746rm -f conftest$ac_exeext 3747if { (eval echo "$as_me:3747: \"$ac_link\"") >&5 3748 (eval $ac_link) 2>&5 3749 ac_status=$? 3750 echo "$as_me:3750: \$? = $ac_status" >&5 3751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3752 { (eval echo "$as_me:3752: \"$ac_try\"") >&5 3753 (eval $ac_try) 2>&5 3754 ac_status=$? 3755 echo "$as_me:3755: \$? = $ac_status" >&5 3756 (exit $ac_status); }; }; then 3757 : 3758else 3759 echo "$as_me: program exited with status $ac_status" >&5 3760echo "$as_me: failed program was:" >&5 3761cat conftest.$ac_ext >&5 3762ac_cv_header_stdc=no 3763fi 3764rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3765fi 3766fi 3767fi 3768echo "$as_me:3768: result: $ac_cv_header_stdc" >&5 3769echo "${ECHO_T}$ac_cv_header_stdc" >&6 3770if test $ac_cv_header_stdc = yes; then 3771 3772cat >>confdefs.h <<\EOF 3773#define STDC_HEADERS 1 3774EOF 3775 3776fi 3777 3778# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3779 3780for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3781 inttypes.h stdint.h unistd.h 3782do 3783as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3784echo "$as_me:3784: checking for $ac_header" >&5 3785echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3786if eval "test \"\${$as_ac_Header+set}\" = set"; then 3787 echo $ECHO_N "(cached) $ECHO_C" >&6 3788else 3789 cat >conftest.$ac_ext <<_ACEOF 3790#line 3790 "configure" 3791#include "confdefs.h" 3792$ac_includes_default 3793#include <$ac_header> 3794_ACEOF 3795rm -f conftest.$ac_objext 3796if { (eval echo "$as_me:3796: \"$ac_compile\"") >&5 3797 (eval $ac_compile) 2>&5 3798 ac_status=$? 3799 echo "$as_me:3799: \$? = $ac_status" >&5 3800 (exit $ac_status); } && 3801 { ac_try='test -s conftest.$ac_objext' 3802 { (eval echo "$as_me:3802: \"$ac_try\"") >&5 3803 (eval $ac_try) 2>&5 3804 ac_status=$? 3805 echo "$as_me:3805: \$? = $ac_status" >&5 3806 (exit $ac_status); }; }; then 3807 eval "$as_ac_Header=yes" 3808else 3809 echo "$as_me: failed program was:" >&5 3810cat conftest.$ac_ext >&5 3811eval "$as_ac_Header=no" 3812fi 3813rm -f conftest.$ac_objext conftest.$ac_ext 3814fi 3815echo "$as_me:3815: result: `eval echo '${'$as_ac_Header'}'`" >&5 3816echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3817if test `eval echo '${'$as_ac_Header'}'` = yes; then 3818 cat >>confdefs.h <<EOF 3819#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3820EOF 3821 3822fi 3823done 3824 3825echo "$as_me:3825: checking for time_t" >&5 3826echo $ECHO_N "checking for time_t... $ECHO_C" >&6 3827if test "${ac_cv_type_time_t+set}" = set; then 3828 echo $ECHO_N "(cached) $ECHO_C" >&6 3829else 3830 cat >conftest.$ac_ext <<_ACEOF 3831#line 3831 "configure" 3832#include "confdefs.h" 3833$ac_includes_default 3834int 3835main () 3836{ 3837if ((time_t *) 0) 3838 return 0; 3839if (sizeof (time_t)) 3840 return 0; 3841 ; 3842 return 0; 3843} 3844_ACEOF 3845rm -f conftest.$ac_objext 3846if { (eval echo "$as_me:3846: \"$ac_compile\"") >&5 3847 (eval $ac_compile) 2>&5 3848 ac_status=$? 3849 echo "$as_me:3849: \$? = $ac_status" >&5 3850 (exit $ac_status); } && 3851 { ac_try='test -s conftest.$ac_objext' 3852 { (eval echo "$as_me:3852: \"$ac_try\"") >&5 3853 (eval $ac_try) 2>&5 3854 ac_status=$? 3855 echo "$as_me:3855: \$? = $ac_status" >&5 3856 (exit $ac_status); }; }; then 3857 ac_cv_type_time_t=yes 3858else 3859 echo "$as_me: failed program was:" >&5 3860cat conftest.$ac_ext >&5 3861ac_cv_type_time_t=no 3862fi 3863rm -f conftest.$ac_objext conftest.$ac_ext 3864fi 3865echo "$as_me:3865: result: $ac_cv_type_time_t" >&5 3866echo "${ECHO_T}$ac_cv_type_time_t" >&6 3867if test $ac_cv_type_time_t = yes; then 3868 : 3869else 3870 3871cat >>confdefs.h <<EOF 3872#define time_t long 3873EOF 3874 3875fi 3876 3877echo "$as_me:3877: checking for mode_t" >&5 3878echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 3879if test "${ac_cv_type_mode_t+set}" = set; then 3880 echo $ECHO_N "(cached) $ECHO_C" >&6 3881else 3882 cat >conftest.$ac_ext <<_ACEOF 3883#line 3883 "configure" 3884#include "confdefs.h" 3885$ac_includes_default 3886int 3887main () 3888{ 3889if ((mode_t *) 0) 3890 return 0; 3891if (sizeof (mode_t)) 3892 return 0; 3893 ; 3894 return 0; 3895} 3896_ACEOF 3897rm -f conftest.$ac_objext 3898if { (eval echo "$as_me:3898: \"$ac_compile\"") >&5 3899 (eval $ac_compile) 2>&5 3900 ac_status=$? 3901 echo "$as_me:3901: \$? = $ac_status" >&5 3902 (exit $ac_status); } && 3903 { ac_try='test -s conftest.$ac_objext' 3904 { (eval echo "$as_me:3904: \"$ac_try\"") >&5 3905 (eval $ac_try) 2>&5 3906 ac_status=$? 3907 echo "$as_me:3907: \$? = $ac_status" >&5 3908 (exit $ac_status); }; }; then 3909 ac_cv_type_mode_t=yes 3910else 3911 echo "$as_me: failed program was:" >&5 3912cat conftest.$ac_ext >&5 3913ac_cv_type_mode_t=no 3914fi 3915rm -f conftest.$ac_objext conftest.$ac_ext 3916fi 3917echo "$as_me:3917: result: $ac_cv_type_mode_t" >&5 3918echo "${ECHO_T}$ac_cv_type_mode_t" >&6 3919if test $ac_cv_type_mode_t = yes; then 3920 : 3921else 3922 3923cat >>confdefs.h <<EOF 3924#define mode_t int 3925EOF 3926 3927fi 3928 3929echo "$as_me:3929: checking for pid_t" >&5 3930echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 3931if test "${ac_cv_type_pid_t+set}" = set; then 3932 echo $ECHO_N "(cached) $ECHO_C" >&6 3933else 3934 cat >conftest.$ac_ext <<_ACEOF 3935#line 3935 "configure" 3936#include "confdefs.h" 3937$ac_includes_default 3938int 3939main () 3940{ 3941if ((pid_t *) 0) 3942 return 0; 3943if (sizeof (pid_t)) 3944 return 0; 3945 ; 3946 return 0; 3947} 3948_ACEOF 3949rm -f conftest.$ac_objext 3950if { (eval echo "$as_me:3950: \"$ac_compile\"") >&5 3951 (eval $ac_compile) 2>&5 3952 ac_status=$? 3953 echo "$as_me:3953: \$? = $ac_status" >&5 3954 (exit $ac_status); } && 3955 { ac_try='test -s conftest.$ac_objext' 3956 { (eval echo "$as_me:3956: \"$ac_try\"") >&5 3957 (eval $ac_try) 2>&5 3958 ac_status=$? 3959 echo "$as_me:3959: \$? = $ac_status" >&5 3960 (exit $ac_status); }; }; then 3961 ac_cv_type_pid_t=yes 3962else 3963 echo "$as_me: failed program was:" >&5 3964cat conftest.$ac_ext >&5 3965ac_cv_type_pid_t=no 3966fi 3967rm -f conftest.$ac_objext conftest.$ac_ext 3968fi 3969echo "$as_me:3969: result: $ac_cv_type_pid_t" >&5 3970echo "${ECHO_T}$ac_cv_type_pid_t" >&6 3971if test $ac_cv_type_pid_t = yes; then 3972 : 3973else 3974 3975cat >>confdefs.h <<EOF 3976#define pid_t int 3977EOF 3978 3979fi 3980 3981echo "$as_me:3981: checking for uid_t in sys/types.h" >&5 3982echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 3983if test "${ac_cv_type_uid_t+set}" = set; then 3984 echo $ECHO_N "(cached) $ECHO_C" >&6 3985else 3986 cat >conftest.$ac_ext <<_ACEOF 3987#line 3987 "configure" 3988#include "confdefs.h" 3989#include <sys/types.h> 3990 3991_ACEOF 3992if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3993 egrep "uid_t" >/dev/null 2>&1; then 3994 ac_cv_type_uid_t=yes 3995else 3996 ac_cv_type_uid_t=no 3997fi 3998rm -f conftest* 3999 4000fi 4001echo "$as_me:4001: result: $ac_cv_type_uid_t" >&5 4002echo "${ECHO_T}$ac_cv_type_uid_t" >&6 4003if test $ac_cv_type_uid_t = no; then 4004 4005cat >>confdefs.h <<\EOF 4006#define uid_t int 4007EOF 4008 4009cat >>confdefs.h <<\EOF 4010#define gid_t int 4011EOF 4012 4013fi 4014 4015echo "$as_me:4015: checking for off_t" >&5 4016echo $ECHO_N "checking for off_t... $ECHO_C" >&6 4017if test "${ac_cv_type_off_t+set}" = set; then 4018 echo $ECHO_N "(cached) $ECHO_C" >&6 4019else 4020 cat >conftest.$ac_ext <<_ACEOF 4021#line 4021 "configure" 4022#include "confdefs.h" 4023$ac_includes_default 4024int 4025main () 4026{ 4027if ((off_t *) 0) 4028 return 0; 4029if (sizeof (off_t)) 4030 return 0; 4031 ; 4032 return 0; 4033} 4034_ACEOF 4035rm -f conftest.$ac_objext 4036if { (eval echo "$as_me:4036: \"$ac_compile\"") >&5 4037 (eval $ac_compile) 2>&5 4038 ac_status=$? 4039 echo "$as_me:4039: \$? = $ac_status" >&5 4040 (exit $ac_status); } && 4041 { ac_try='test -s conftest.$ac_objext' 4042 { (eval echo "$as_me:4042: \"$ac_try\"") >&5 4043 (eval $ac_try) 2>&5 4044 ac_status=$? 4045 echo "$as_me:4045: \$? = $ac_status" >&5 4046 (exit $ac_status); }; }; then 4047 ac_cv_type_off_t=yes 4048else 4049 echo "$as_me: failed program was:" >&5 4050cat conftest.$ac_ext >&5 4051ac_cv_type_off_t=no 4052fi 4053rm -f conftest.$ac_objext conftest.$ac_ext 4054fi 4055echo "$as_me:4055: result: $ac_cv_type_off_t" >&5 4056echo "${ECHO_T}$ac_cv_type_off_t" >&6 4057if test $ac_cv_type_off_t = yes; then 4058 : 4059else 4060 4061cat >>confdefs.h <<EOF 4062#define off_t long 4063EOF 4064 4065fi 4066 4067### checks for library functions 4068 4069for ac_func in \ 4070 bcopy \ 4071 gethostname \ 4072 getlogin \ 4073 memmove \ 4074 putenv \ 4075 sched_yield \ 4076 strerror \ 4077 strftime \ 4078 tcgetattr \ 4079 waitpid \ 4080 wcswidth \ 4081 wcwidth 4082do 4083as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4084echo "$as_me:4084: checking for $ac_func" >&5 4085echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4086if eval "test \"\${$as_ac_var+set}\" = set"; then 4087 echo $ECHO_N "(cached) $ECHO_C" >&6 4088else 4089 cat >conftest.$ac_ext <<_ACEOF 4090#line 4090 "configure" 4091#include "confdefs.h" 4092/* System header to define __stub macros and hopefully few prototypes, 4093 which can conflict with char $ac_func (); below. */ 4094#include <assert.h> 4095/* Override any gcc2 internal prototype to avoid an error. */ 4096#ifdef __cplusplus 4097extern "C" 4098#endif 4099/* We use char because int might match the return type of a gcc2 4100 builtin and then its argument prototype would still apply. */ 4101char $ac_func (); 4102char (*f) (); 4103 4104int 4105main () 4106{ 4107/* The GNU C library defines this for functions which it implements 4108 to always fail with ENOSYS. Some functions are actually named 4109 something starting with __ and the normal name is an alias. */ 4110#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4111choke me 4112#else 4113f = $ac_func; 4114#endif 4115 4116 ; 4117 return 0; 4118} 4119_ACEOF 4120rm -f conftest.$ac_objext conftest$ac_exeext 4121if { (eval echo "$as_me:4121: \"$ac_link\"") >&5 4122 (eval $ac_link) 2>&5 4123 ac_status=$? 4124 echo "$as_me:4124: \$? = $ac_status" >&5 4125 (exit $ac_status); } && 4126 { ac_try='test -s conftest$ac_exeext' 4127 { (eval echo "$as_me:4127: \"$ac_try\"") >&5 4128 (eval $ac_try) 2>&5 4129 ac_status=$? 4130 echo "$as_me:4130: \$? = $ac_status" >&5 4131 (exit $ac_status); }; }; then 4132 eval "$as_ac_var=yes" 4133else 4134 echo "$as_me: failed program was:" >&5 4135cat conftest.$ac_ext >&5 4136eval "$as_ac_var=no" 4137fi 4138rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4139fi 4140echo "$as_me:4140: result: `eval echo '${'$as_ac_var'}'`" >&5 4141echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4142if test `eval echo '${'$as_ac_var'}'` = yes; then 4143 cat >>confdefs.h <<EOF 4144#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4145EOF 4146 4147fi 4148done 4149 4150echo "$as_me:4150: checking for memmove" >&5 4151echo $ECHO_N "checking for memmove... $ECHO_C" >&6 4152if test "${ac_cv_func_memmove+set}" = set; then 4153 echo $ECHO_N "(cached) $ECHO_C" >&6 4154else 4155 cat >conftest.$ac_ext <<_ACEOF 4156#line 4156 "configure" 4157#include "confdefs.h" 4158/* System header to define __stub macros and hopefully few prototypes, 4159 which can conflict with char memmove (); below. */ 4160#include <assert.h> 4161/* Override any gcc2 internal prototype to avoid an error. */ 4162#ifdef __cplusplus 4163extern "C" 4164#endif 4165/* We use char because int might match the return type of a gcc2 4166 builtin and then its argument prototype would still apply. */ 4167char memmove (); 4168char (*f) (); 4169 4170int 4171main () 4172{ 4173/* The GNU C library defines this for functions which it implements 4174 to always fail with ENOSYS. Some functions are actually named 4175 something starting with __ and the normal name is an alias. */ 4176#if defined (__stub_memmove) || defined (__stub___memmove) 4177choke me 4178#else 4179f = memmove; 4180#endif 4181 4182 ; 4183 return 0; 4184} 4185_ACEOF 4186rm -f conftest.$ac_objext conftest$ac_exeext 4187if { (eval echo "$as_me:4187: \"$ac_link\"") >&5 4188 (eval $ac_link) 2>&5 4189 ac_status=$? 4190 echo "$as_me:4190: \$? = $ac_status" >&5 4191 (exit $ac_status); } && 4192 { ac_try='test -s conftest$ac_exeext' 4193 { (eval echo "$as_me:4193: \"$ac_try\"") >&5 4194 (eval $ac_try) 2>&5 4195 ac_status=$? 4196 echo "$as_me:4196: \$? = $ac_status" >&5 4197 (exit $ac_status); }; }; then 4198 ac_cv_func_memmove=yes 4199else 4200 echo "$as_me: failed program was:" >&5 4201cat conftest.$ac_ext >&5 4202ac_cv_func_memmove=no 4203fi 4204rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4205fi 4206echo "$as_me:4206: result: $ac_cv_func_memmove" >&5 4207echo "${ECHO_T}$ac_cv_func_memmove" >&6 4208if test $ac_cv_func_memmove = yes; then 4209 : 4210else 4211 4212echo "$as_me:4212: checking for bcopy" >&5 4213echo $ECHO_N "checking for bcopy... $ECHO_C" >&6 4214if test "${ac_cv_func_bcopy+set}" = set; then 4215 echo $ECHO_N "(cached) $ECHO_C" >&6 4216else 4217 cat >conftest.$ac_ext <<_ACEOF 4218#line 4218 "configure" 4219#include "confdefs.h" 4220/* System header to define __stub macros and hopefully few prototypes, 4221 which can conflict with char bcopy (); below. */ 4222#include <assert.h> 4223/* Override any gcc2 internal prototype to avoid an error. */ 4224#ifdef __cplusplus 4225extern "C" 4226#endif 4227/* We use char because int might match the return type of a gcc2 4228 builtin and then its argument prototype would still apply. */ 4229char bcopy (); 4230char (*f) (); 4231 4232int 4233main () 4234{ 4235/* The GNU C library defines this for functions which it implements 4236 to always fail with ENOSYS. Some functions are actually named 4237 something starting with __ and the normal name is an alias. */ 4238#if defined (__stub_bcopy) || defined (__stub___bcopy) 4239choke me 4240#else 4241f = bcopy; 4242#endif 4243 4244 ; 4245 return 0; 4246} 4247_ACEOF 4248rm -f conftest.$ac_objext conftest$ac_exeext 4249if { (eval echo "$as_me:4249: \"$ac_link\"") >&5 4250 (eval $ac_link) 2>&5 4251 ac_status=$? 4252 echo "$as_me:4252: \$? = $ac_status" >&5 4253 (exit $ac_status); } && 4254 { ac_try='test -s conftest$ac_exeext' 4255 { (eval echo "$as_me:4255: \"$ac_try\"") >&5 4256 (eval $ac_try) 2>&5 4257 ac_status=$? 4258 echo "$as_me:4258: \$? = $ac_status" >&5 4259 (exit $ac_status); }; }; then 4260 ac_cv_func_bcopy=yes 4261else 4262 echo "$as_me: failed program was:" >&5 4263cat conftest.$ac_ext >&5 4264ac_cv_func_bcopy=no 4265fi 4266rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4267fi 4268echo "$as_me:4268: result: $ac_cv_func_bcopy" >&5 4269echo "${ECHO_T}$ac_cv_func_bcopy" >&6 4270if test $ac_cv_func_bcopy = yes; then 4271 4272 echo "$as_me:4272: checking if bcopy does overlapping moves" >&5 4273echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6 4274if test "${cf_cv_good_bcopy+set}" = set; then 4275 echo $ECHO_N "(cached) $ECHO_C" >&6 4276else 4277 4278 if test "$cross_compiling" = yes; then 4279 cf_cv_good_bcopy=unknown 4280else 4281 cat >conftest.$ac_ext <<_ACEOF 4282#line 4282 "configure" 4283#include "confdefs.h" 4284 4285int main() { 4286 static char data[] = "abcdefghijklmnopqrstuwwxyz"; 4287 char temp[40]; 4288 bcopy(data, temp, sizeof(data)); 4289 bcopy(temp+10, temp, 15); 4290 bcopy(temp+5, temp+15, 10); 4291 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz")); 4292} 4293 4294_ACEOF 4295rm -f conftest$ac_exeext 4296if { (eval echo "$as_me:4296: \"$ac_link\"") >&5 4297 (eval $ac_link) 2>&5 4298 ac_status=$? 4299 echo "$as_me:4299: \$? = $ac_status" >&5 4300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4301 { (eval echo "$as_me:4301: \"$ac_try\"") >&5 4302 (eval $ac_try) 2>&5 4303 ac_status=$? 4304 echo "$as_me:4304: \$? = $ac_status" >&5 4305 (exit $ac_status); }; }; then 4306 cf_cv_good_bcopy=yes 4307else 4308 echo "$as_me: program exited with status $ac_status" >&5 4309echo "$as_me: failed program was:" >&5 4310cat conftest.$ac_ext >&5 4311cf_cv_good_bcopy=no 4312fi 4313rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4314fi 4315 4316fi 4317echo "$as_me:4317: result: $cf_cv_good_bcopy" >&5 4318echo "${ECHO_T}$cf_cv_good_bcopy" >&6 4319 4320else 4321 cf_cv_good_bcopy=no 4322fi 4323 4324 if test "$cf_cv_good_bcopy" = yes ; then 4325 cat >>confdefs.h <<\EOF 4326#define USE_OK_BCOPY 1 4327EOF 4328 4329 else 4330 cat >>confdefs.h <<\EOF 4331#define USE_MY_MEMMOVE 1 4332EOF 4333 4334 fi 4335 4336fi 4337 4338for ac_header in lastlog.h paths.h 4339do 4340as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4341echo "$as_me:4341: checking for $ac_header" >&5 4342echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4343if eval "test \"\${$as_ac_Header+set}\" = set"; then 4344 echo $ECHO_N "(cached) $ECHO_C" >&6 4345else 4346 cat >conftest.$ac_ext <<_ACEOF 4347#line 4347 "configure" 4348#include "confdefs.h" 4349#include <$ac_header> 4350_ACEOF 4351if { (eval echo "$as_me:4351: \"$ac_cpp conftest.$ac_ext\"") >&5 4352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4353 ac_status=$? 4354 egrep -v '^ *\+' conftest.er1 >conftest.err 4355 rm -f conftest.er1 4356 cat conftest.err >&5 4357 echo "$as_me:4357: \$? = $ac_status" >&5 4358 (exit $ac_status); } >/dev/null; then 4359 if test -s conftest.err; then 4360 ac_cpp_err=$ac_c_preproc_warn_flag 4361 else 4362 ac_cpp_err= 4363 fi 4364else 4365 ac_cpp_err=yes 4366fi 4367if test -z "$ac_cpp_err"; then 4368 eval "$as_ac_Header=yes" 4369else 4370 echo "$as_me: failed program was:" >&5 4371 cat conftest.$ac_ext >&5 4372 eval "$as_ac_Header=no" 4373fi 4374rm -f conftest.err conftest.$ac_ext 4375fi 4376echo "$as_me:4376: result: `eval echo '${'$as_ac_Header'}'`" >&5 4377echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4378if test `eval echo '${'$as_ac_Header'}'` = yes; then 4379 cat >>confdefs.h <<EOF 4380#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4381EOF 4382 4383fi 4384done 4385 4386echo "$as_me:4386: checking for lastlog path" >&5 4387echo $ECHO_N "checking for lastlog path... $ECHO_C" >&6 4388if test "${cf_cv_path_lastlog+set}" = set; then 4389 echo $ECHO_N "(cached) $ECHO_C" >&6 4390else 4391 4392cat >conftest.$ac_ext <<_ACEOF 4393#line 4393 "configure" 4394#include "confdefs.h" 4395 4396#include <sys/types.h> 4397#ifdef HAVE_LASTLOG_H 4398#include <lastlog.h> 4399#else 4400#ifdef HAVE_PATHS_H 4401#include <paths.h> 4402#endif 4403#endif 4404int 4405main () 4406{ 4407char *path = _PATH_LASTLOG 4408 ; 4409 return 0; 4410} 4411_ACEOF 4412rm -f conftest.$ac_objext 4413if { (eval echo "$as_me:4413: \"$ac_compile\"") >&5 4414 (eval $ac_compile) 2>&5 4415 ac_status=$? 4416 echo "$as_me:4416: \$? = $ac_status" >&5 4417 (exit $ac_status); } && 4418 { ac_try='test -s conftest.$ac_objext' 4419 { (eval echo "$as_me:4419: \"$ac_try\"") >&5 4420 (eval $ac_try) 2>&5 4421 ac_status=$? 4422 echo "$as_me:4422: \$? = $ac_status" >&5 4423 (exit $ac_status); }; }; then 4424 cf_cv_path_lastlog="_PATH_LASTLOG" 4425else 4426 echo "$as_me: failed program was:" >&5 4427cat conftest.$ac_ext >&5 4428if test -f /usr/adm/lastlog ; then 4429 cf_cv_path_lastlog=/usr/adm/lastlog 4430 else 4431 cf_cv_path_lastlog=no 4432 fi 4433fi 4434rm -f conftest.$ac_objext conftest.$ac_ext 4435 4436fi 4437echo "$as_me:4437: result: $cf_cv_path_lastlog" >&5 4438echo "${ECHO_T}$cf_cv_path_lastlog" >&6 4439test $cf_cv_path_lastlog != no && cat >>confdefs.h <<\EOF 4440#define USE_LASTLOG 1 4441EOF 4442 4443echo "$as_me:4443: checking for utmp implementation" >&5 4444echo $ECHO_N "checking for utmp implementation... $ECHO_C" >&6 4445if test "${cf_cv_have_utmp+set}" = set; then 4446 echo $ECHO_N "(cached) $ECHO_C" >&6 4447else 4448 4449 cf_cv_have_utmp=no 4450for cf_header in utmpx utmp ; do 4451cf_utmp_includes=" 4452#include <sys/types.h> 4453#include <${cf_header}.h> 4454#define getutent getutxent 4455#ifdef USE_LASTLOG 4456#include <lastlog.h> /* may conflict with utmpx.h on Linux */ 4457#endif 4458" 4459 cat >conftest.$ac_ext <<_ACEOF 4460#line 4460 "configure" 4461#include "confdefs.h" 4462$cf_utmp_includes 4463int 4464main () 4465{ 4466struct $cf_header x; 4467 char *name = x.ut_name; /* utmp.h and compatible definitions */ 4468 4469 ; 4470 return 0; 4471} 4472_ACEOF 4473rm -f conftest.$ac_objext 4474if { (eval echo "$as_me:4474: \"$ac_compile\"") >&5 4475 (eval $ac_compile) 2>&5 4476 ac_status=$? 4477 echo "$as_me:4477: \$? = $ac_status" >&5 4478 (exit $ac_status); } && 4479 { ac_try='test -s conftest.$ac_objext' 4480 { (eval echo "$as_me:4480: \"$ac_try\"") >&5 4481 (eval $ac_try) 2>&5 4482 ac_status=$? 4483 echo "$as_me:4483: \$? = $ac_status" >&5 4484 (exit $ac_status); }; }; then 4485 cf_cv_have_utmp=$cf_header 4486 break 4487else 4488 echo "$as_me: failed program was:" >&5 4489cat conftest.$ac_ext >&5 4490 4491 cat >conftest.$ac_ext <<_ACEOF 4492#line 4492 "configure" 4493#include "confdefs.h" 4494$cf_utmp_includes 4495int 4496main () 4497{ 4498struct $cf_header x; 4499 char *name = x.ut_user; /* utmpx.h must declare this */ 4500 4501 ; 4502 return 0; 4503} 4504_ACEOF 4505rm -f conftest.$ac_objext 4506if { (eval echo "$as_me:4506: \"$ac_compile\"") >&5 4507 (eval $ac_compile) 2>&5 4508 ac_status=$? 4509 echo "$as_me:4509: \$? = $ac_status" >&5 4510 (exit $ac_status); } && 4511 { ac_try='test -s conftest.$ac_objext' 4512 { (eval echo "$as_me:4512: \"$ac_try\"") >&5 4513 (eval $ac_try) 2>&5 4514 ac_status=$? 4515 echo "$as_me:4515: \$? = $ac_status" >&5 4516 (exit $ac_status); }; }; then 4517 cf_cv_have_utmp=$cf_header 4518 break 4519 4520else 4521 echo "$as_me: failed program was:" >&5 4522cat conftest.$ac_ext >&5 4523fi 4524rm -f conftest.$ac_objext conftest.$ac_ext 4525fi 4526rm -f conftest.$ac_objext conftest.$ac_ext 4527done 4528 4529fi 4530echo "$as_me:4530: result: $cf_cv_have_utmp" >&5 4531echo "${ECHO_T}$cf_cv_have_utmp" >&6 4532 4533if test $cf_cv_have_utmp != no ; then 4534 cat >>confdefs.h <<\EOF 4535#define HAVE_UTMP 1 4536EOF 4537 4538 test $cf_cv_have_utmp = utmpx && cat >>confdefs.h <<\EOF 4539#define UTMPX_FOR_UTMP 1 4540EOF 4541 4542if test $cf_cv_have_utmp != no ; then 4543echo "$as_me:4543: checking if ${cf_cv_have_utmp}.ut_host is declared" >&5 4544echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_host is declared... $ECHO_C" >&6 4545if test "${cf_cv_have_utmp_ut_host+set}" = set; then 4546 echo $ECHO_N "(cached) $ECHO_C" >&6 4547else 4548 4549 cat >conftest.$ac_ext <<_ACEOF 4550#line 4550 "configure" 4551#include "confdefs.h" 4552 4553#include <sys/types.h> 4554#include <${cf_cv_have_utmp}.h> 4555int 4556main () 4557{ 4558struct $cf_cv_have_utmp x; char *y = &x.ut_host[0] 4559 ; 4560 return 0; 4561} 4562_ACEOF 4563rm -f conftest.$ac_objext 4564if { (eval echo "$as_me:4564: \"$ac_compile\"") >&5 4565 (eval $ac_compile) 2>&5 4566 ac_status=$? 4567 echo "$as_me:4567: \$? = $ac_status" >&5 4568 (exit $ac_status); } && 4569 { ac_try='test -s conftest.$ac_objext' 4570 { (eval echo "$as_me:4570: \"$ac_try\"") >&5 4571 (eval $ac_try) 2>&5 4572 ac_status=$? 4573 echo "$as_me:4573: \$? = $ac_status" >&5 4574 (exit $ac_status); }; }; then 4575 cf_cv_have_utmp_ut_host=yes 4576else 4577 echo "$as_me: failed program was:" >&5 4578cat conftest.$ac_ext >&5 4579cf_cv_have_utmp_ut_host=no 4580fi 4581rm -f conftest.$ac_objext conftest.$ac_ext 4582 4583fi 4584 4585echo "$as_me:4585: result: $cf_cv_have_utmp_ut_host" >&5 4586echo "${ECHO_T}$cf_cv_have_utmp_ut_host" >&6 4587test $cf_cv_have_utmp_ut_host != no && cat >>confdefs.h <<\EOF 4588#define HAVE_UTMP_UT_HOST 1 4589EOF 4590 4591fi 4592 4593if test $cf_cv_have_utmp != no ; then 4594echo "$as_me:4594: checking if ${cf_cv_have_utmp}.ut_syslen is declared" >&5 4595echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_syslen is declared... $ECHO_C" >&6 4596if test "${cf_cv_have_utmp_ut_syslen+set}" = set; then 4597 echo $ECHO_N "(cached) $ECHO_C" >&6 4598else 4599 4600 cat >conftest.$ac_ext <<_ACEOF 4601#line 4601 "configure" 4602#include "confdefs.h" 4603 4604#include <sys/types.h> 4605#include <${cf_cv_have_utmp}.h> 4606int 4607main () 4608{ 4609struct $cf_cv_have_utmp x; int y = x.ut_syslen 4610 ; 4611 return 0; 4612} 4613_ACEOF 4614rm -f conftest.$ac_objext 4615if { (eval echo "$as_me:4615: \"$ac_compile\"") >&5 4616 (eval $ac_compile) 2>&5 4617 ac_status=$? 4618 echo "$as_me:4618: \$? = $ac_status" >&5 4619 (exit $ac_status); } && 4620 { ac_try='test -s conftest.$ac_objext' 4621 { (eval echo "$as_me:4621: \"$ac_try\"") >&5 4622 (eval $ac_try) 2>&5 4623 ac_status=$? 4624 echo "$as_me:4624: \$? = $ac_status" >&5 4625 (exit $ac_status); }; }; then 4626 cf_cv_have_utmp_ut_syslen=yes 4627else 4628 echo "$as_me: failed program was:" >&5 4629cat conftest.$ac_ext >&5 4630cf_cv_have_utmp_ut_syslen=no 4631fi 4632rm -f conftest.$ac_objext conftest.$ac_ext 4633 4634fi 4635 4636echo "$as_me:4636: result: $cf_cv_have_utmp_ut_syslen" >&5 4637echo "${ECHO_T}$cf_cv_have_utmp_ut_syslen" >&6 4638test $cf_cv_have_utmp_ut_syslen != no && cat >>confdefs.h <<\EOF 4639#define HAVE_UTMP_UT_SYSLEN 1 4640EOF 4641 4642fi 4643 4644if test $cf_cv_have_utmp != no ; then 4645echo "$as_me:4645: checking if ${cf_cv_have_utmp}.ut_name is declared" >&5 4646echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_name is declared... $ECHO_C" >&6 4647if test "${cf_cv_have_utmp_ut_name+set}" = set; then 4648 echo $ECHO_N "(cached) $ECHO_C" >&6 4649else 4650 4651 cf_cv_have_utmp_ut_name=no 4652cf_utmp_includes=" 4653#include <sys/types.h> 4654#include <${cf_cv_have_utmp}.h> 4655#define getutent getutxent 4656#ifdef USE_LASTLOG 4657#include <lastlog.h> /* may conflict with utmpx.h on Linux */ 4658#endif 4659" 4660for cf_header in ut_name ut_user ; do 4661 cat >conftest.$ac_ext <<_ACEOF 4662#line 4662 "configure" 4663#include "confdefs.h" 4664$cf_utmp_includes 4665int 4666main () 4667{ 4668struct $cf_cv_have_utmp x; 4669 char *name = x.$cf_header; 4670 4671 ; 4672 return 0; 4673} 4674_ACEOF 4675rm -f conftest.$ac_objext 4676if { (eval echo "$as_me:4676: \"$ac_compile\"") >&5 4677 (eval $ac_compile) 2>&5 4678 ac_status=$? 4679 echo "$as_me:4679: \$? = $ac_status" >&5 4680 (exit $ac_status); } && 4681 { ac_try='test -s conftest.$ac_objext' 4682 { (eval echo "$as_me:4682: \"$ac_try\"") >&5 4683 (eval $ac_try) 2>&5 4684 ac_status=$? 4685 echo "$as_me:4685: \$? = $ac_status" >&5 4686 (exit $ac_status); }; }; then 4687 cf_cv_have_utmp_ut_name=$cf_header 4688 break 4689else 4690 echo "$as_me: failed program was:" >&5 4691cat conftest.$ac_ext >&5 4692fi 4693rm -f conftest.$ac_objext conftest.$ac_ext 4694done 4695 4696fi 4697echo "$as_me:4697: result: $cf_cv_have_utmp_ut_name" >&5 4698echo "${ECHO_T}$cf_cv_have_utmp_ut_name" >&6 4699 4700case $cf_cv_have_utmp_ut_name in #(vi 4701no) #(vi 4702 { { echo "$as_me:4702: error: Cannot find declaration for ut.ut_name" >&5 4703echo "$as_me: error: Cannot find declaration for ut.ut_name" >&2;} 4704 { (exit 1); exit 1; }; } 4705 ;; 4706ut_user) 4707 cat >>confdefs.h <<\EOF 4708#define ut_name ut_user 4709EOF 4710 4711 ;; 4712esac 4713fi 4714 4715if test $cf_cv_have_utmp != no ; then 4716echo "$as_me:4716: checking for exit-status in $cf_cv_have_utmp" >&5 4717echo $ECHO_N "checking for exit-status in $cf_cv_have_utmp... $ECHO_C" >&6 4718if test "${cf_cv_have_utmp_ut_xstatus+set}" = set; then 4719 echo $ECHO_N "(cached) $ECHO_C" >&6 4720else 4721 4722for cf_result in \ 4723 ut_exit.__e_exit \ 4724 ut_exit.e_exit \ 4725 ut_exit.ut_e_exit \ 4726 ut_exit.ut_exit 4727do 4728cat >conftest.$ac_ext <<_ACEOF 4729#line 4729 "configure" 4730#include "confdefs.h" 4731 4732#include <sys/types.h> 4733#include <${cf_cv_have_utmp}.h> 4734int 4735main () 4736{ 4737struct $cf_cv_have_utmp x; long y = x.$cf_result = 0 4738 ; 4739 return 0; 4740} 4741_ACEOF 4742rm -f conftest.$ac_objext 4743if { (eval echo "$as_me:4743: \"$ac_compile\"") >&5 4744 (eval $ac_compile) 2>&5 4745 ac_status=$? 4746 echo "$as_me:4746: \$? = $ac_status" >&5 4747 (exit $ac_status); } && 4748 { ac_try='test -s conftest.$ac_objext' 4749 { (eval echo "$as_me:4749: \"$ac_try\"") >&5 4750 (eval $ac_try) 2>&5 4751 ac_status=$? 4752 echo "$as_me:4752: \$? = $ac_status" >&5 4753 (exit $ac_status); }; }; then 4754 cf_cv_have_utmp_ut_xstatus=$cf_result 4755 break 4756else 4757 echo "$as_me: failed program was:" >&5 4758cat conftest.$ac_ext >&5 4759cf_cv_have_utmp_ut_xstatus=no 4760fi 4761rm -f conftest.$ac_objext conftest.$ac_ext 4762done 4763 4764fi 4765echo "$as_me:4765: result: $cf_cv_have_utmp_ut_xstatus" >&5 4766echo "${ECHO_T}$cf_cv_have_utmp_ut_xstatus" >&6 4767if test $cf_cv_have_utmp_ut_xstatus != no ; then 4768 cat >>confdefs.h <<\EOF 4769#define HAVE_UTMP_UT_XSTATUS 1 4770EOF 4771 4772 cat >>confdefs.h <<EOF 4773#define ut_xstatus $cf_cv_have_utmp_ut_xstatus 4774EOF 4775 4776fi 4777fi 4778 4779if test $cf_cv_have_utmp != no ; then 4780echo "$as_me:4780: checking if ${cf_cv_have_utmp}.ut_xtime is declared" >&5 4781echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_xtime is declared... $ECHO_C" >&6 4782if test "${cf_cv_have_utmp_ut_xtime+set}" = set; then 4783 echo $ECHO_N "(cached) $ECHO_C" >&6 4784else 4785 4786 cat >conftest.$ac_ext <<_ACEOF 4787#line 4787 "configure" 4788#include "confdefs.h" 4789 4790#include <sys/types.h> 4791#include <${cf_cv_have_utmp}.h> 4792int 4793main () 4794{ 4795struct $cf_cv_have_utmp x; long y = x.ut_xtime = 0 4796 ; 4797 return 0; 4798} 4799_ACEOF 4800rm -f conftest.$ac_objext 4801if { (eval echo "$as_me:4801: \"$ac_compile\"") >&5 4802 (eval $ac_compile) 2>&5 4803 ac_status=$? 4804 echo "$as_me:4804: \$? = $ac_status" >&5 4805 (exit $ac_status); } && 4806 { ac_try='test -s conftest.$ac_objext' 4807 { (eval echo "$as_me:4807: \"$ac_try\"") >&5 4808 (eval $ac_try) 2>&5 4809 ac_status=$? 4810 echo "$as_me:4810: \$? = $ac_status" >&5 4811 (exit $ac_status); }; }; then 4812 cf_cv_have_utmp_ut_xtime=yes 4813else 4814 echo "$as_me: failed program was:" >&5 4815cat conftest.$ac_ext >&5 4816cat >conftest.$ac_ext <<_ACEOF 4817#line 4817 "configure" 4818#include "confdefs.h" 4819 4820#include <sys/types.h> 4821#include <${cf_cv_have_utmp}.h> 4822int 4823main () 4824{ 4825struct $cf_cv_have_utmp x; long y = x.ut_tv.tv_sec 4826 ; 4827 return 0; 4828} 4829_ACEOF 4830rm -f conftest.$ac_objext 4831if { (eval echo "$as_me:4831: \"$ac_compile\"") >&5 4832 (eval $ac_compile) 2>&5 4833 ac_status=$? 4834 echo "$as_me:4834: \$? = $ac_status" >&5 4835 (exit $ac_status); } && 4836 { ac_try='test -s conftest.$ac_objext' 4837 { (eval echo "$as_me:4837: \"$ac_try\"") >&5 4838 (eval $ac_try) 2>&5 4839 ac_status=$? 4840 echo "$as_me:4840: \$? = $ac_status" >&5 4841 (exit $ac_status); }; }; then 4842 cf_cv_have_utmp_ut_xtime=define 4843else 4844 echo "$as_me: failed program was:" >&5 4845cat conftest.$ac_ext >&5 4846cf_cv_have_utmp_ut_xtime=no 4847fi 4848rm -f conftest.$ac_objext conftest.$ac_ext 4849 4850fi 4851rm -f conftest.$ac_objext conftest.$ac_ext 4852 4853fi 4854echo "$as_me:4854: result: $cf_cv_have_utmp_ut_xtime" >&5 4855echo "${ECHO_T}$cf_cv_have_utmp_ut_xtime" >&6 4856if test $cf_cv_have_utmp_ut_xtime != no ; then 4857 cat >>confdefs.h <<\EOF 4858#define HAVE_UTMP_UT_XTIME 1 4859EOF 4860 4861 if test $cf_cv_have_utmp_ut_xtime = define ; then 4862 cat >>confdefs.h <<\EOF 4863#define ut_xtime ut_tv.tv_sec 4864EOF 4865 4866 fi 4867fi 4868fi 4869 4870if test $cf_cv_have_utmp != no ; then 4871echo "$as_me:4871: checking if ${cf_cv_have_utmp}.ut_session is declared" >&5 4872echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_session is declared... $ECHO_C" >&6 4873if test "${cf_cv_have_utmp_ut_session+set}" = set; then 4874 echo $ECHO_N "(cached) $ECHO_C" >&6 4875else 4876 4877 cat >conftest.$ac_ext <<_ACEOF 4878#line 4878 "configure" 4879#include "confdefs.h" 4880 4881#include <sys/types.h> 4882#include <${cf_cv_have_utmp}.h> 4883int 4884main () 4885{ 4886struct $cf_cv_have_utmp x; long y = x.ut_session 4887 ; 4888 return 0; 4889} 4890_ACEOF 4891rm -f conftest.$ac_objext 4892if { (eval echo "$as_me:4892: \"$ac_compile\"") >&5 4893 (eval $ac_compile) 2>&5 4894 ac_status=$? 4895 echo "$as_me:4895: \$? = $ac_status" >&5 4896 (exit $ac_status); } && 4897 { ac_try='test -s conftest.$ac_objext' 4898 { (eval echo "$as_me:4898: \"$ac_try\"") >&5 4899 (eval $ac_try) 2>&5 4900 ac_status=$? 4901 echo "$as_me:4901: \$? = $ac_status" >&5 4902 (exit $ac_status); }; }; then 4903 cf_cv_have_utmp_ut_session=yes 4904else 4905 echo "$as_me: failed program was:" >&5 4906cat conftest.$ac_ext >&5 4907cf_cv_have_utmp_ut_session=no 4908fi 4909rm -f conftest.$ac_objext conftest.$ac_ext 4910 4911fi 4912echo "$as_me:4912: result: $cf_cv_have_utmp_ut_session" >&5 4913echo "${ECHO_T}$cf_cv_have_utmp_ut_session" >&6 4914if test $cf_cv_have_utmp_ut_session != no ; then 4915 cat >>confdefs.h <<\EOF 4916#define HAVE_UTMP_UT_SESSION 1 4917EOF 4918 4919fi 4920fi 4921 4922echo "$as_me:4922: checking if $cf_cv_have_utmp is SYSV flavor" >&5 4923echo $ECHO_N "checking if $cf_cv_have_utmp is SYSV flavor... $ECHO_C" >&6 4924if test "${cf_cv_sysv_utmp+set}" = set; then 4925 echo $ECHO_N "(cached) $ECHO_C" >&6 4926else 4927 4928test "$cf_cv_have_utmp" = "utmp" && cf_prefix="ut" || cf_prefix="utx" 4929cat >conftest.$ac_ext <<_ACEOF 4930#line 4930 "configure" 4931#include "confdefs.h" 4932 4933#include <sys/types.h> 4934#include <${cf_cv_have_utmp}.h> 4935int 4936main () 4937{ 4938 4939struct $cf_cv_have_utmp x; 4940 set${cf_prefix}ent (); 4941 get${cf_prefix}id(&x); 4942 put${cf_prefix}line(&x); 4943 end${cf_prefix}ent(); 4944 ; 4945 return 0; 4946} 4947_ACEOF 4948rm -f conftest.$ac_objext conftest$ac_exeext 4949if { (eval echo "$as_me:4949: \"$ac_link\"") >&5 4950 (eval $ac_link) 2>&5 4951 ac_status=$? 4952 echo "$as_me:4952: \$? = $ac_status" >&5 4953 (exit $ac_status); } && 4954 { ac_try='test -s conftest$ac_exeext' 4955 { (eval echo "$as_me:4955: \"$ac_try\"") >&5 4956 (eval $ac_try) 2>&5 4957 ac_status=$? 4958 echo "$as_me:4958: \$? = $ac_status" >&5 4959 (exit $ac_status); }; }; then 4960 cf_cv_sysv_utmp=yes 4961else 4962 echo "$as_me: failed program was:" >&5 4963cat conftest.$ac_ext >&5 4964cf_cv_sysv_utmp=no 4965fi 4966rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4967 4968fi 4969echo "$as_me:4969: result: $cf_cv_sysv_utmp" >&5 4970echo "${ECHO_T}$cf_cv_sysv_utmp" >&6 4971test $cf_cv_sysv_utmp = yes && cat >>confdefs.h <<\EOF 4972#define USE_SYSV_UTMP 1 4973EOF 4974 4975fi 4976 4977for ac_header in lastlog.h 4978do 4979as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4980echo "$as_me:4980: checking for $ac_header" >&5 4981echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4982if eval "test \"\${$as_ac_Header+set}\" = set"; then 4983 echo $ECHO_N "(cached) $ECHO_C" >&6 4984else 4985 cat >conftest.$ac_ext <<_ACEOF 4986#line 4986 "configure" 4987#include "confdefs.h" 4988#include <$ac_header> 4989_ACEOF 4990if { (eval echo "$as_me:4990: \"$ac_cpp conftest.$ac_ext\"") >&5 4991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4992 ac_status=$? 4993 egrep -v '^ *\+' conftest.er1 >conftest.err 4994 rm -f conftest.er1 4995 cat conftest.err >&5 4996 echo "$as_me:4996: \$? = $ac_status" >&5 4997 (exit $ac_status); } >/dev/null; then 4998 if test -s conftest.err; then 4999 ac_cpp_err=$ac_c_preproc_warn_flag 5000 else 5001 ac_cpp_err= 5002 fi 5003else 5004 ac_cpp_err=yes 5005fi 5006if test -z "$ac_cpp_err"; then 5007 eval "$as_ac_Header=yes" 5008else 5009 echo "$as_me: failed program was:" >&5 5010 cat conftest.$ac_ext >&5 5011 eval "$as_ac_Header=no" 5012fi 5013rm -f conftest.err conftest.$ac_ext 5014fi 5015echo "$as_me:5015: result: `eval echo '${'$as_ac_Header'}'`" >&5 5016echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5017if test `eval echo '${'$as_ac_Header'}'` = yes; then 5018 cat >>confdefs.h <<EOF 5019#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5020EOF 5021 5022fi 5023done 5024 5025echo "$as_me:5025: checking for struct lastlog" >&5 5026echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 5027if test "${cf_cv_struct_lastlog+set}" = set; then 5028 echo $ECHO_N "(cached) $ECHO_C" >&6 5029else 5030 5031if test "$cross_compiling" = yes; then 5032 5033cf_cv_struct_lastlog=unknown 5034else 5035 cat >conftest.$ac_ext <<_ACEOF 5036#line 5036 "configure" 5037#include "confdefs.h" 5038 5039#include <sys/types.h> 5040#include <time.h> 5041#include <lastlog.h> 5042 5043int main() 5044{ 5045 struct lastlog data; 5046 return (sizeof(data.ll_time) != sizeof(time_t)); 5047} 5048_ACEOF 5049rm -f conftest$ac_exeext 5050if { (eval echo "$as_me:5050: \"$ac_link\"") >&5 5051 (eval $ac_link) 2>&5 5052 ac_status=$? 5053 echo "$as_me:5053: \$? = $ac_status" >&5 5054 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5055 { (eval echo "$as_me:5055: \"$ac_try\"") >&5 5056 (eval $ac_try) 2>&5 5057 ac_status=$? 5058 echo "$as_me:5058: \$? = $ac_status" >&5 5059 (exit $ac_status); }; }; then 5060 5061cf_cv_struct_lastlog=yes 5062else 5063 echo "$as_me: program exited with status $ac_status" >&5 5064echo "$as_me: failed program was:" >&5 5065cat conftest.$ac_ext >&5 5066 5067cf_cv_struct_lastlog=no 5068fi 5069rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5070fi 5071fi 5072echo "$as_me:5072: result: $cf_cv_struct_lastlog" >&5 5073echo "${ECHO_T}$cf_cv_struct_lastlog" >&6 5074 5075test $cf_cv_struct_lastlog != no && cat >>confdefs.h <<\EOF 5076#define USE_STRUCT_LASTLOG 1 5077EOF 5078 5079for ac_header in \ 5080sys/param.h \ 5081 5082do 5083as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5084echo "$as_me:5084: checking for $ac_header" >&5 5085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5086if eval "test \"\${$as_ac_Header+set}\" = set"; then 5087 echo $ECHO_N "(cached) $ECHO_C" >&6 5088else 5089 cat >conftest.$ac_ext <<_ACEOF 5090#line 5090 "configure" 5091#include "confdefs.h" 5092#include <$ac_header> 5093_ACEOF 5094if { (eval echo "$as_me:5094: \"$ac_cpp conftest.$ac_ext\"") >&5 5095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5096 ac_status=$? 5097 egrep -v '^ *\+' conftest.er1 >conftest.err 5098 rm -f conftest.er1 5099 cat conftest.err >&5 5100 echo "$as_me:5100: \$? = $ac_status" >&5 5101 (exit $ac_status); } >/dev/null; then 5102 if test -s conftest.err; then 5103 ac_cpp_err=$ac_c_preproc_warn_flag 5104 else 5105 ac_cpp_err= 5106 fi 5107else 5108 ac_cpp_err=yes 5109fi 5110if test -z "$ac_cpp_err"; then 5111 eval "$as_ac_Header=yes" 5112else 5113 echo "$as_me: failed program was:" >&5 5114 cat conftest.$ac_ext >&5 5115 eval "$as_ac_Header=no" 5116fi 5117rm -f conftest.err conftest.$ac_ext 5118fi 5119echo "$as_me:5119: result: `eval echo '${'$as_ac_Header'}'`" >&5 5120echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5121if test `eval echo '${'$as_ac_Header'}'` = yes; then 5122 cat >>confdefs.h <<EOF 5123#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5124EOF 5125 5126fi 5127done 5128 5129echo "$as_me:5129: checking if POSIX saved-ids are supported" >&5 5130echo $ECHO_N "checking if POSIX saved-ids are supported... $ECHO_C" >&6 5131if test "${cf_cv_posix_saved_ids+set}" = set; then 5132 echo $ECHO_N "(cached) $ECHO_C" >&6 5133else 5134 5135cat >conftest.$ac_ext <<_ACEOF 5136#line 5136 "configure" 5137#include "confdefs.h" 5138 5139#include <unistd.h> 5140#ifdef HAVE_SYS_PARAM_H 5141#include <sys/param.h> /* this may define "BSD" */ 5142#endif 5143 5144int 5145main () 5146{ 5147 5148#if defined(_POSIX_SAVED_IDS) && (_POSIX_SAVED_IDS > 0) 5149 void *p = (void *) seteuid; 5150 int x = seteuid(geteuid()); 5151#elif defined(BSD) && (BSD >= 199103) 5152/* The BSD's may implement the runtime check - and it fails. 5153 * However, saved-ids work almost like POSIX (close enough for most uses). 5154 */ 5155#else 5156make an error 5157#endif 5158 5159 ; 5160 return 0; 5161} 5162_ACEOF 5163rm -f conftest.$ac_objext conftest$ac_exeext 5164if { (eval echo "$as_me:5164: \"$ac_link\"") >&5 5165 (eval $ac_link) 2>&5 5166 ac_status=$? 5167 echo "$as_me:5167: \$? = $ac_status" >&5 5168 (exit $ac_status); } && 5169 { ac_try='test -s conftest$ac_exeext' 5170 { (eval echo "$as_me:5170: \"$ac_try\"") >&5 5171 (eval $ac_try) 2>&5 5172 ac_status=$? 5173 echo "$as_me:5173: \$? = $ac_status" >&5 5174 (exit $ac_status); }; }; then 5175 cf_cv_posix_saved_ids=yes 5176 5177else 5178 echo "$as_me: failed program was:" >&5 5179cat conftest.$ac_ext >&5 5180 5181if test "$cross_compiling" = yes; then 5182 cf_cv_posix_saved_ids=unknown 5183else 5184 cat >conftest.$ac_ext <<_ACEOF 5185#line 5185 "configure" 5186#include "confdefs.h" 5187 5188#ifdef HAVE_STDLIB_H 5189#include <stdlib.h> 5190#endif 5191#include <unistd.h> 5192int main() 5193{ 5194 void *p = (void *) seteuid; 5195 long code = sysconf(_SC_SAVED_IDS); 5196 ${cf_cv_main_return:-return} ((code > 0) ? 0 : 1); 5197} 5198_ACEOF 5199rm -f conftest$ac_exeext 5200if { (eval echo "$as_me:5200: \"$ac_link\"") >&5 5201 (eval $ac_link) 2>&5 5202 ac_status=$? 5203 echo "$as_me:5203: \$? = $ac_status" >&5 5204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5205 { (eval echo "$as_me:5205: \"$ac_try\"") >&5 5206 (eval $ac_try) 2>&5 5207 ac_status=$? 5208 echo "$as_me:5208: \$? = $ac_status" >&5 5209 (exit $ac_status); }; }; then 5210 cf_cv_posix_saved_ids=yes 5211else 5212 echo "$as_me: program exited with status $ac_status" >&5 5213echo "$as_me: failed program was:" >&5 5214cat conftest.$ac_ext >&5 5215cf_cv_posix_saved_ids=no 5216fi 5217rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5218fi 5219 5220fi 5221rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5222 5223fi 5224echo "$as_me:5224: result: $cf_cv_posix_saved_ids" >&5 5225echo "${ECHO_T}$cf_cv_posix_saved_ids" >&6 5226 5227test "$cf_cv_posix_saved_ids" = yes && cat >>confdefs.h <<\EOF 5228#define HAVE_POSIX_SAVED_IDS 1 5229EOF 5230 5231# compute a reasonable value for $TERM to give tgetent(), since we may be 5232# running in 'screen', which sets $TERMCAP to a specific entry that is not 5233# necessarily in /etc/termcap - unsetenv is not portable, so we cannot simply 5234# discard $TERMCAP. 5235cf_TERMVAR=vt100 5236test -n "$TERMCAP" && cf_TERMVAR="$TERM" 5237test -z "$cf_TERMVAR" && cf_TERMVAR=vt100 5238 5239echo "$as_me:5239: checking if we want full tgetent function" >&5 5240echo $ECHO_N "checking if we want full tgetent function... $ECHO_C" >&6 5241 5242# Check whether --enable-full-tgetent or --disable-full-tgetent was given. 5243if test "${enable_full_tgetent+set}" = set; then 5244 enableval="$enable_full_tgetent" 5245 test "$enableval" != no && enableval=yes 5246 if test "$enableval" != "yes" ; then 5247 cf_full_tgetent=no 5248 else 5249 cf_full_tgetent=yes 5250 fi 5251else 5252 enableval=yes 5253 cf_full_tgetent=yes 5254 5255fi; 5256echo "$as_me:5256: result: $cf_full_tgetent" >&5 5257echo "${ECHO_T}$cf_full_tgetent" >&6 5258 5259if test "$cf_full_tgetent" = yes ; then 5260 cf_test_message="full tgetent" 5261else 5262 cf_test_message="tgetent" 5263fi 5264 5265echo "$as_me:5265: checking for $cf_test_message function" >&5 5266echo $ECHO_N "checking for $cf_test_message function... $ECHO_C" >&6 5267if test "${cf_cv_lib_tgetent+set}" = set; then 5268 echo $ECHO_N "(cached) $ECHO_C" >&6 5269else 5270 5271cf_save_LIBS="$LIBS" 5272cf_cv_lib_tgetent=no 5273if test "$cf_full_tgetent" = yes ; then 5274 cf_TERMLIB="termcap termlib ncurses curses" 5275 cf_TERMTST="buffer[0] == 0" 5276else 5277 cf_TERMLIB="termlib ncurses curses" 5278 cf_TERMTST="0" 5279fi 5280for cf_termlib in '' $cf_TERMLIB ; do 5281 LIBS="$cf_save_LIBS" 5282 test -n "$cf_termlib" && LIBS="$LIBS -l$cf_termlib" 5283 if test "$cross_compiling" = yes; then 5284 echo "cross-compiling, cannot verify if a termcap/tgetent is present in $cf_termlib" 1>&5 5285else 5286 cat >conftest.$ac_ext <<_ACEOF 5287#line 5287 "configure" 5288#include "confdefs.h" 5289 5290/* terminfo implementations ignore the buffer argument, making it useless for 5291 * the xterm application, which uses this information to make a new TERMCAP 5292 * environment variable. 5293 */ 5294int main() 5295{ 5296 char buffer[1024]; 5297 buffer[0] = 0; 5298 tgetent(buffer, "$cf_TERMVAR"); 5299 ${cf_cv_main_return:-return} ($cf_TERMTST); } 5300_ACEOF 5301rm -f conftest$ac_exeext 5302if { (eval echo "$as_me:5302: \"$ac_link\"") >&5 5303 (eval $ac_link) 2>&5 5304 ac_status=$? 5305 echo "$as_me:5305: \$? = $ac_status" >&5 5306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5307 { (eval echo "$as_me:5307: \"$ac_try\"") >&5 5308 (eval $ac_try) 2>&5 5309 ac_status=$? 5310 echo "$as_me:5310: \$? = $ac_status" >&5 5311 (exit $ac_status); }; }; then 5312 echo "yes, there is a termcap/tgetent in $cf_termlib" 1>&5 5313 if test -n "$cf_termlib" ; then 5314 cf_cv_lib_tgetent="-l$cf_termlib" 5315 else 5316 cf_cv_lib_tgetent=yes 5317 fi 5318 break 5319else 5320 echo "$as_me: program exited with status $ac_status" >&5 5321echo "$as_me: failed program was:" >&5 5322cat conftest.$ac_ext >&5 5323echo "no, there is no termcap/tgetent in $cf_termlib" 1>&5 5324fi 5325rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5326fi 5327done 5328LIBS="$cf_save_LIBS" 5329 5330fi 5331echo "$as_me:5331: result: $cf_cv_lib_tgetent" >&5 5332echo "${ECHO_T}$cf_cv_lib_tgetent" >&6 5333 5334# If we found a working tgetent(), set LIBS and check for termcap.h. 5335# (LIBS cannot be set inside AC_CACHE_CHECK; the commands there should 5336# not have side effects other than setting the cache variable, because 5337# they are not executed when a cached value exists.) 5338if test "$cf_cv_lib_tgetent" != no ; then 5339 test "$cf_cv_lib_tgetent" != yes && LIBS="$LIBS $cf_cv_lib_tgetent" 5340 cat >>confdefs.h <<\EOF 5341#define USE_TERMCAP 1 5342EOF 5343 5344 cat >conftest.$ac_ext <<_ACEOF 5345#line 5345 "configure" 5346#include "confdefs.h" 5347 5348#include <termcap.h> 5349int 5350main () 5351{ 5352 5353#ifdef NCURSES_VERSION 5354make an error 5355#endif 5356 ; 5357 return 0; 5358} 5359_ACEOF 5360rm -f conftest.$ac_objext 5361if { (eval echo "$as_me:5361: \"$ac_compile\"") >&5 5362 (eval $ac_compile) 2>&5 5363 ac_status=$? 5364 echo "$as_me:5364: \$? = $ac_status" >&5 5365 (exit $ac_status); } && 5366 { ac_try='test -s conftest.$ac_objext' 5367 { (eval echo "$as_me:5367: \"$ac_try\"") >&5 5368 (eval $ac_try) 2>&5 5369 ac_status=$? 5370 echo "$as_me:5370: \$? = $ac_status" >&5 5371 (exit $ac_status); }; }; then 5372 cat >>confdefs.h <<\EOF 5373#define HAVE_TERMCAP_H 1 5374EOF 5375 5376else 5377 echo "$as_me: failed program was:" >&5 5378cat conftest.$ac_ext >&5 5379fi 5380rm -f conftest.$ac_objext conftest.$ac_ext 5381else 5382 # If we didn't find a tgetent() that supports the buffer 5383 # argument, look again to see whether we can find even 5384 # a crippled one. A crippled tgetent() is still useful to 5385 # validate values for the TERM environment variable given to 5386 # child processes. 5387 echo "$as_me:5387: checking for partial tgetent function" >&5 5388echo $ECHO_N "checking for partial tgetent function... $ECHO_C" >&6 5389if test "${cf_cv_lib_part_tgetent+set}" = set; then 5390 echo $ECHO_N "(cached) $ECHO_C" >&6 5391else 5392 5393 cf_cv_lib_part_tgetent=no 5394 for cf_termlib in $cf_TERMLIB ; do 5395 LIBS="$cf_save_LIBS -l$cf_termlib" 5396 cat >conftest.$ac_ext <<_ACEOF 5397#line 5397 "configure" 5398#include "confdefs.h" 5399 5400int 5401main () 5402{ 5403tgetent(0, "$cf_TERMVAR") 5404 ; 5405 return 0; 5406} 5407_ACEOF 5408rm -f conftest.$ac_objext conftest$ac_exeext 5409if { (eval echo "$as_me:5409: \"$ac_link\"") >&5 5410 (eval $ac_link) 2>&5 5411 ac_status=$? 5412 echo "$as_me:5412: \$? = $ac_status" >&5 5413 (exit $ac_status); } && 5414 { ac_try='test -s conftest$ac_exeext' 5415 { (eval echo "$as_me:5415: \"$ac_try\"") >&5 5416 (eval $ac_try) 2>&5 5417 ac_status=$? 5418 echo "$as_me:5418: \$? = $ac_status" >&5 5419 (exit $ac_status); }; }; then 5420 echo "there is a terminfo/tgetent in $cf_termlib" 1>&5 5421 cf_cv_lib_part_tgetent="-l$cf_termlib" 5422 break 5423else 5424 echo "$as_me: failed program was:" >&5 5425cat conftest.$ac_ext >&5 5426fi 5427rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5428 done 5429 LIBS="$cf_save_LIBS" 5430 5431fi 5432echo "$as_me:5432: result: $cf_cv_lib_part_tgetent" >&5 5433echo "${ECHO_T}$cf_cv_lib_part_tgetent" >&6 5434 5435 if test "$cf_cv_lib_part_tgetent" != no ; then 5436 LIBS="$LIBS $cf_cv_lib_part_tgetent" 5437 5438for ac_header in termcap.h 5439do 5440as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5441echo "$as_me:5441: checking for $ac_header" >&5 5442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5443if eval "test \"\${$as_ac_Header+set}\" = set"; then 5444 echo $ECHO_N "(cached) $ECHO_C" >&6 5445else 5446 cat >conftest.$ac_ext <<_ACEOF 5447#line 5447 "configure" 5448#include "confdefs.h" 5449#include <$ac_header> 5450_ACEOF 5451if { (eval echo "$as_me:5451: \"$ac_cpp conftest.$ac_ext\"") >&5 5452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5453 ac_status=$? 5454 egrep -v '^ *\+' conftest.er1 >conftest.err 5455 rm -f conftest.er1 5456 cat conftest.err >&5 5457 echo "$as_me:5457: \$? = $ac_status" >&5 5458 (exit $ac_status); } >/dev/null; then 5459 if test -s conftest.err; then 5460 ac_cpp_err=$ac_c_preproc_warn_flag 5461 else 5462 ac_cpp_err= 5463 fi 5464else 5465 ac_cpp_err=yes 5466fi 5467if test -z "$ac_cpp_err"; then 5468 eval "$as_ac_Header=yes" 5469else 5470 echo "$as_me: failed program was:" >&5 5471 cat conftest.$ac_ext >&5 5472 eval "$as_ac_Header=no" 5473fi 5474rm -f conftest.err conftest.$ac_ext 5475fi 5476echo "$as_me:5476: result: `eval echo '${'$as_ac_Header'}'`" >&5 5477echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5478if test `eval echo '${'$as_ac_Header'}'` = yes; then 5479 cat >>confdefs.h <<EOF 5480#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5481EOF 5482 5483fi 5484done 5485 5486 # If this is linking against ncurses, we'll trigger the 5487 # ifdef in resize.c that turns the termcap stuff back off. 5488 cat >>confdefs.h <<\EOF 5489#define USE_TERMINFO 1 5490EOF 5491 5492 fi 5493fi 5494 5495echo "$as_me:5495: checking for directory to install resource files" >&5 5496echo $ECHO_N "checking for directory to install resource files... $ECHO_C" >&6 5497 5498# Check whether --with-app-defaults or --without-app-defaults was given. 5499if test "${with_app_defaults+set}" = set; then 5500 withval="$with_app_defaults" 5501 5502else 5503 withval="${appsdir-'\$(exec_prefix)/lib/X11/app-defaults'}" 5504fi; if test -n "'\$(exec_prefix)/lib/X11/app-defaults'" ; then 5505 5506if test "x$prefix" != xNONE; then 5507 cf_path_syntax="$prefix" 5508else 5509 cf_path_syntax="$ac_default_prefix" 5510fi 5511 5512case ".$withval" in #(vi 5513.\$\(*\)*|.\'*\'*) #(vi 5514 ;; 5515..|./*|.\\*) #(vi 5516 ;; 5517.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 5518 ;; 5519.\${*prefix}*) #(vi 5520 eval withval="$withval" 5521 case ".$withval" in #(vi 5522 .NONE/*) 5523 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%` 5524 ;; 5525 esac 5526 ;; #(vi 5527.no|.NONE/*) 5528 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%` 5529 ;; 5530*) 5531 { { echo "$as_me:5531: error: expected a pathname, not \"$withval\"" >&5 5532echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;} 5533 { (exit 1); exit 1; }; } 5534 ;; 5535esac 5536 5537fi 5538appsdir="$withval" 5539 5540echo "$as_me:5540: result: $appsdir" >&5 5541echo "${ECHO_T}$appsdir" >&6 5542 5543no_appsdir= 5544test "$appsdir" = no && no_appsdir="#" 5545 5546echo "$as_me:5546: checking for directory to install icons" >&5 5547echo $ECHO_N "checking for directory to install icons... $ECHO_C" >&6 5548 5549# Check whether --with-icondir or --without-icondir was given. 5550if test "${with_icondir+set}" = set; then 5551 withval="$with_icondir" 5552 5553else 5554 withval="${icondir-'\$(exec_prefix)/share/pixmaps'}" 5555fi; if test -n "'\$(exec_prefix)/share/pixmaps'" ; then 5556 5557if test "x$prefix" != xNONE; then 5558 cf_path_syntax="$prefix" 5559else 5560 cf_path_syntax="$ac_default_prefix" 5561fi 5562 5563case ".$withval" in #(vi 5564.\$\(*\)*|.\'*\'*) #(vi 5565 ;; 5566..|./*|.\\*) #(vi 5567 ;; 5568.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 5569 ;; 5570.\${*prefix}*) #(vi 5571 eval withval="$withval" 5572 case ".$withval" in #(vi 5573 .NONE/*) 5574 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%` 5575 ;; 5576 esac 5577 ;; #(vi 5578.no|.NONE/*) 5579 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%` 5580 ;; 5581*) 5582 { { echo "$as_me:5582: error: expected a pathname, not \"$withval\"" >&5 5583echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;} 5584 { (exit 1); exit 1; }; } 5585 ;; 5586esac 5587 5588fi 5589icondir="$withval" 5590 5591echo "$as_me:5591: result: $icondir" >&5 5592echo "${ECHO_T}$icondir" >&6 5593 5594no_icondir= 5595test "$icondir" = no && no_icondir="#" 5596 5597# Comment-out the install-desktop rule if the desktop-utils are not found. 5598echo "$as_me:5598: checking if you want to install desktop files" >&5 5599echo $ECHO_N "checking if you want to install desktop files... $ECHO_C" >&6 5600 5601# Check whether --enable-desktop or --disable-desktop was given. 5602if test "${enable_desktop+set}" = set; then 5603 enableval="$enable_desktop" 5604 test "$enableval" != no && enableval=yes 5605 if test "$enableval" != "yes" ; then 5606 enable_desktop=$enableval 5607 else 5608 enable_desktop=$enableval 5609 fi 5610else 5611 enableval=yes 5612 enable_desktop=$enableval 5613 5614fi; 5615echo "$as_me:5615: result: $enable_desktop" >&5 5616echo "${ECHO_T}$enable_desktop" >&6 5617 5618desktop_utils= 5619if test "$enable_desktop" = yes ; then 5620# Extract the first word of "desktop-file-install", so it can be a program name with args. 5621set dummy desktop-file-install; ac_word=$2 5622echo "$as_me:5622: checking for $ac_word" >&5 5623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5624if test "${ac_cv_prog_desktop_utils+set}" = set; then 5625 echo $ECHO_N "(cached) $ECHO_C" >&6 5626else 5627 if test -n "$desktop_utils"; then 5628 ac_cv_prog_desktop_utils="$desktop_utils" # Let the user override the test. 5629else 5630 ac_save_IFS=$IFS; IFS=$ac_path_separator 5631ac_dummy="$PATH" 5632for ac_dir in $ac_dummy; do 5633 IFS=$ac_save_IFS 5634 test -z "$ac_dir" && ac_dir=. 5635 $as_executable_p "$ac_dir/$ac_word" || continue 5636ac_cv_prog_desktop_utils="yes" 5637echo "$as_me:5637: found $ac_dir/$ac_word" >&5 5638break 5639done 5640 5641 test -z "$ac_cv_prog_desktop_utils" && ac_cv_prog_desktop_utils="no" 5642fi 5643fi 5644desktop_utils=$ac_cv_prog_desktop_utils 5645if test -n "$desktop_utils"; then 5646 echo "$as_me:5646: result: $desktop_utils" >&5 5647echo "${ECHO_T}$desktop_utils" >&6 5648else 5649 echo "$as_me:5649: result: no" >&5 5650echo "${ECHO_T}no" >&6 5651fi 5652 5653fi 5654 5655test "$desktop_utils" = yes && desktop_utils= || desktop_utils="#" 5656 5657# inherit SINSTALL_OPTS from environment to allow packager to customize it. 5658 5659echo "$as_me:5659: checking for install-permissions reference" >&5 5660echo $ECHO_N "checking for install-permissions reference... $ECHO_C" >&6 5661 5662# Check whether --with-reference or --without-reference was given. 5663if test "${with_reference+set}" = set; then 5664 withval="$with_reference" 5665 with_reference=$withval 5666else 5667 with_reference=xterm 5668fi; 5669echo "$as_me:5669: result: $with_reference" >&5 5670echo "${ECHO_T}$with_reference" >&6 5671 5672with_full_paths=yes 5673 5674 case $cf_cv_system_name in 5675 os2*) PATH_SEPARATOR=';' ;; 5676 *) PATH_SEPARATOR=':' ;; 5677 esac 5678 5679test -z "$XTERM_PATH" && XTERM_PATH=$with_reference 5680for ac_prog in $XTERM_PATH $with_reference 5681do 5682 # Extract the first word of "$ac_prog", so it can be a program name with args. 5683set dummy $ac_prog; ac_word=$2 5684echo "$as_me:5684: checking for $ac_word" >&5 5685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5686if test "${ac_cv_path_XTERM_PATH+set}" = set; then 5687 echo $ECHO_N "(cached) $ECHO_C" >&6 5688else 5689 case $XTERM_PATH in 5690 [\\/]* | ?:[\\/]*) 5691 ac_cv_path_XTERM_PATH="$XTERM_PATH" # Let the user override the test with a path. 5692 ;; 5693 *) 5694 ac_save_IFS=$IFS; IFS=$ac_path_separator 5695ac_dummy="$PATH" 5696for ac_dir in $ac_dummy; do 5697 IFS=$ac_save_IFS 5698 test -z "$ac_dir" && ac_dir=. 5699 if $as_executable_p "$ac_dir/$ac_word"; then 5700 ac_cv_path_XTERM_PATH="$ac_dir/$ac_word" 5701 echo "$as_me:5701: found $ac_dir/$ac_word" >&5 5702 break 5703fi 5704done 5705 5706 ;; 5707esac 5708fi 5709XTERM_PATH=$ac_cv_path_XTERM_PATH 5710 5711if test -n "$XTERM_PATH"; then 5712 echo "$as_me:5712: result: $XTERM_PATH" >&5 5713echo "${ECHO_T}$XTERM_PATH" >&6 5714else 5715 echo "$as_me:5715: result: no" >&5 5716echo "${ECHO_T}no" >&6 5717fi 5718 5719 test -n "$XTERM_PATH" && break 5720done 5721test -n "$XTERM_PATH" || XTERM_PATH="$XTERM_PATH" 5722 5723cf_path_prog="" 5724cf_path_args="" 5725IFS="${IFS= }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" 5726for cf_temp in $ac_cv_path_XTERM_PATH 5727do 5728 if test -z "$cf_path_prog" ; then 5729 if test "$with_full_paths" = yes ; then 5730 5731if test "x$prefix" != xNONE; then 5732 cf_path_syntax="$prefix" 5733else 5734 cf_path_syntax="$ac_default_prefix" 5735fi 5736 5737case ".$cf_temp" in #(vi 5738.\$\(*\)*|.\'*\'*) #(vi 5739 ;; 5740..|./*|.\\*) #(vi 5741 ;; 5742.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 5743 ;; 5744.\${*prefix}*) #(vi 5745 eval cf_temp="$cf_temp" 5746 case ".$cf_temp" in #(vi 5747 .NONE/*) 5748 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%` 5749 ;; 5750 esac 5751 ;; #(vi 5752.no|.NONE/*) 5753 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%` 5754 ;; 5755*) 5756 break 5757 ;; 5758esac 5759 5760 cf_path_prog="$cf_temp" 5761 else 5762 cf_path_prog="`basename $cf_temp`" 5763 fi 5764 elif test -z "$cf_path_args" ; then 5765 cf_path_args="$cf_temp" 5766 else 5767 cf_path_args="$cf_path_args $cf_temp" 5768 fi 5769done 5770IFS="$cf_save_ifs" 5771 5772if test -n "$cf_path_prog" ; then 5773 5774echo "${as_me-configure}:5774: testing defining path for ${cf_path_prog} ..." 1>&5 5775 5776 cat >>confdefs.h <<EOF 5777#define XTERM_PATH_PATH "$cf_path_prog" 5778EOF 5779 5780 test -n "$cf_path_args" && cat >>confdefs.h <<EOF 5781#define XTERM_PATH_ARGS "$cf_path_args" 5782EOF 5783 5784fi 5785 5786# If any of --program-prefix, --program-suffix or --program-transform-name is 5787# given, accept an option tell the makefile to create a symbolic link, e.g., 5788# to "xterm" on install. 5789XTERM_SYMLINK=NONE 5790 5791if test "$program_transform_name" != "'s,,,'" ; then 5792cf_name=`echo "$program_transform_name" | sed -e 's,\\$\\$,$,g'` 5793cf_name=`echo xterm |sed -e "$cf_name"` 5794echo "$as_me:5794: checking for symbolic link to create to $cf_name" >&5 5795echo $ECHO_N "checking for symbolic link to create to $cf_name... $ECHO_C" >&6 5796 5797# Check whether --with-xterm-symlink or --without-xterm-symlink was given. 5798if test "${with_xterm_symlink+set}" = set; then 5799 withval="$with_xterm_symlink" 5800 with_symlink=$withval 5801else 5802 with_symlink=xterm 5803fi; 5804echo "$as_me:5804: result: $with_symlink" >&5 5805echo "${ECHO_T}$with_symlink" >&6 5806test "$with_symlink" = yes && with_symlink=xterm 5807test -n "$with_symlink" && \ 5808 test "$with_symlink" != no && \ 5809 test "$with_symlink" != $cf_name && \ 5810 XTERM_SYMLINK="$with_symlink" 5811fi 5812 5813echo "$as_me:5813: checking if you want to disable setuid" >&5 5814echo $ECHO_N "checking if you want to disable setuid... $ECHO_C" >&6 5815 5816# Check whether --enable-setuid or --disable-setuid was given. 5817if test "${enable_setuid+set}" = set; then 5818 enableval="$enable_setuid" 5819 test "$enableval" != no && enableval=yes 5820 if test "$enableval" != "yes" ; then 5821 disable_setuid=yes 5822 else 5823 disable_setuid=no 5824 fi 5825else 5826 enableval=yes 5827 disable_setuid=no 5828 5829fi; 5830echo "$as_me:5830: result: $disable_setuid" >&5 5831echo "${ECHO_T}$disable_setuid" >&6 5832 5833echo "$as_me:5833: checking if you want to disable setgid" >&5 5834echo $ECHO_N "checking if you want to disable setgid... $ECHO_C" >&6 5835 5836# Check whether --enable-setgid or --disable-setgid was given. 5837if test "${enable_setgid+set}" = set; then 5838 enableval="$enable_setgid" 5839 test "$enableval" != no && enableval=yes 5840 if test "$enableval" != "yes" ; then 5841 disable_setgid=yes 5842 else 5843 disable_setgid=no 5844 fi 5845else 5846 enableval=yes 5847 disable_setgid=no 5848 5849fi; 5850echo "$as_me:5850: result: $disable_setgid" >&5 5851echo "${ECHO_T}$disable_setgid" >&6 5852 5853echo "$as_me:5853: checking if you want to run xterm setuid to a given user" >&5 5854echo $ECHO_N "checking if you want to run xterm setuid to a given user... $ECHO_C" >&6 5855 5856# Check whether --with-setuid or --without-setuid was given. 5857if test "${with_setuid+set}" = set; then 5858 withval="$with_setuid" 5859 use_given_setuid=$withval 5860else 5861 use_given_setuid=no 5862fi; 5863echo "$as_me:5863: result: $use_given_setuid" >&5 5864echo "${ECHO_T}$use_given_setuid" >&6 5865 5866if test "$use_given_setuid" != no ; then 5867 if test "$use_given_setuid" = yes ; then 5868 cf_cv_given_setuid=root 5869 else 5870 cf_cv_given_setuid=$use_given_setuid 5871 fi 5872 SINSTALL_OPTS="$SINSTALL_OPTS u+s -u $cf_cv_given_setuid" 5873fi 5874 5875echo "$as_me:5875: checking if you want to run xterm setgid to match utmp/utmpx file" >&5 5876echo $ECHO_N "checking if you want to run xterm setgid to match utmp/utmpx file... $ECHO_C" >&6 5877 5878# Check whether --with-utmp-setgid or --without-utmp-setgid was given. 5879if test "${with_utmp_setgid+set}" = set; then 5880 withval="$with_utmp_setgid" 5881 use_utmp_setgid=$withval 5882else 5883 use_utmp_setgid=no 5884fi; 5885echo "$as_me:5885: result: $use_utmp_setgid" >&5 5886echo "${ECHO_T}$use_utmp_setgid" >&6 5887 5888if test "$use_utmp_setgid" != no ; then 5889 if test "$use_utmp_setgid" = yes ; then 5890 5891if test $cf_cv_have_utmp != no ; then 5892echo "$as_me:5892: checking for utmp/utmpx group" >&5 5893echo $ECHO_N "checking for utmp/utmpx group... $ECHO_C" >&6 5894if test "${cf_cv_utmp_group+set}" = set; then 5895 echo $ECHO_N "(cached) $ECHO_C" >&6 5896else 5897 5898for cf_utmp_path in /var/adm /var/run 5899do 5900 for cf_utmp_file in utmpx utmp 5901 do 5902 if test -f $cf_utmp_path/$cf_utmp_file 5903 then 5904 cf_cv_utmp_group=root 5905 5906 cf_option="-l -L" 5907 5908 # Expect listing to have fields like this: 5909 #-r--r--r-- 1 user group 34293 Jul 18 16:29 pathname 5910 ls $cf_option $cf_utmp_path/$cf_utmp_file >conftest 5911 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest 5912 if test -z "$cf_rest" ; then 5913 cf_option="$cf_option -g" 5914 ls $cf_option $cf_utmp_path/$cf_utmp_file >conftest 5915 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest 5916 fi 5917 rm -f conftest 5918 5919 # If we have a pathname, and the date fields look right, assume we've 5920 # captured the group as well. 5921 if test -n "$cf_rest" ; then 5922 cf_test=`echo "${cf_date2}${cf_date3}" | sed -e 's/[0-9:]//g'` 5923 if test -z "$cf_test" ; then 5924 cf_cv_utmp_group=$cf_grp; 5925 fi 5926 fi 5927 break 5928 fi 5929 done 5930 test -n "$cf_cv_utmp_group" && break 5931done 5932 5933fi 5934echo "$as_me:5934: result: $cf_cv_utmp_group" >&5 5935echo "${ECHO_T}$cf_cv_utmp_group" >&6 5936else 5937 { { echo "$as_me:5937: error: cannot find utmp group" >&5 5938echo "$as_me: error: cannot find utmp group" >&2;} 5939 { (exit 1); exit 1; }; } 5940fi 5941 5942 else 5943 cf_cv_utmp_group=$use_utmp_setgid 5944 fi 5945 if test "$cf_cv_posix_saved_ids" != yes ; then 5946 { { echo "$as_me:5946: error: Your system does not support POSIX saved-ids" >&5 5947echo "$as_me: error: Your system does not support POSIX saved-ids" >&2;} 5948 { (exit 1); exit 1; }; } 5949 fi 5950 cat >>confdefs.h <<\EOF 5951#define USE_UTMP_SETGID 1 5952EOF 5953 5954 SINSTALL_OPTS="$SINSTALL_OPTS g+s -g $cf_cv_utmp_group" 5955fi 5956 5957echo "$as_me:5957: checking if you want to link with utempter" >&5 5958echo $ECHO_N "checking if you want to link with utempter... $ECHO_C" >&6 5959 5960# Check whether --with-utempter or --without-utempter was given. 5961if test "${with_utempter+set}" = set; then 5962 withval="$with_utempter" 5963 use_utempter=$withval 5964else 5965 use_utempter=no 5966fi; 5967echo "$as_me:5967: result: $use_utempter" >&5 5968echo "${ECHO_T}$use_utempter" >&6 5969 5970if test "$use_utempter" = yes ; then 5971 5972echo "$as_me:5972: checking if we can link with utempter library" >&5 5973echo $ECHO_N "checking if we can link with utempter library... $ECHO_C" >&6 5974if test "${cf_cv_have_utempter+set}" = set; then 5975 echo $ECHO_N "(cached) $ECHO_C" >&6 5976else 5977 5978cf_save_LIBS="$LIBS" 5979LIBS="-lutempter $LIBS" 5980cat >conftest.$ac_ext <<_ACEOF 5981#line 5981 "configure" 5982#include "confdefs.h" 5983 5984#include <utempter.h> 5985 5986int 5987main () 5988{ 5989 5990 addToUtmp("/dev/tty", 0, 1); 5991 removeFromUtmp(); 5992 5993 ; 5994 return 0; 5995} 5996_ACEOF 5997rm -f conftest.$ac_objext conftest$ac_exeext 5998if { (eval echo "$as_me:5998: \"$ac_link\"") >&5 5999 (eval $ac_link) 2>&5 6000 ac_status=$? 6001 echo "$as_me:6001: \$? = $ac_status" >&5 6002 (exit $ac_status); } && 6003 { ac_try='test -s conftest$ac_exeext' 6004 { (eval echo "$as_me:6004: \"$ac_try\"") >&5 6005 (eval $ac_try) 2>&5 6006 ac_status=$? 6007 echo "$as_me:6007: \$? = $ac_status" >&5 6008 (exit $ac_status); }; }; then 6009 6010 cf_cv_have_utempter=yes 6011else 6012 echo "$as_me: failed program was:" >&5 6013cat conftest.$ac_ext >&5 6014 6015 cf_cv_have_utempter=no 6016fi 6017rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6018LIBS="$cf_save_LIBS" 6019 6020fi 6021echo "$as_me:6021: result: $cf_cv_have_utempter" >&5 6022echo "${ECHO_T}$cf_cv_have_utempter" >&6 6023if test "$cf_cv_have_utempter" = yes ; then 6024 cat >>confdefs.h <<\EOF 6025#define USE_UTEMPTER 1 6026EOF 6027 6028 LIBS="-lutempter $LIBS" 6029fi 6030 6031 test "$cf_cv_have_utempter" != yes && use_utempter=no 6032else 6033 use_utempter=no 6034fi 6035 6036# Some configurations permit (or require) either setuid or setgid mode. 6037# Let the user decide. 6038if test "$use_utempter" = yes ; then 6039 if test "${enable_setuid+set}" != set ; then 6040 disable_setuid=yes 6041 test -n "$verbose" && echo " No --disable-setuid option given, force to yes" 1>&6 6042 6043echo "${as_me-configure}:6043: testing No --disable-setuid option given, force to yes ..." 1>&5 6044 6045 fi 6046fi 6047 6048### checks for external data 6049 6050echo "$as_me:6050: checking if external errno is declared" >&5 6051echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6 6052if test "${cf_cv_dcl_errno+set}" = set; then 6053 echo $ECHO_N "(cached) $ECHO_C" >&6 6054else 6055 6056 cat >conftest.$ac_ext <<_ACEOF 6057#line 6057 "configure" 6058#include "confdefs.h" 6059 6060#ifdef HAVE_STDLIB_H 6061#include <stdlib.h> 6062#endif 6063#include <stdio.h> 6064#include <sys/types.h> 6065#include <errno.h> 6066int 6067main () 6068{ 6069int x = (int) errno 6070 ; 6071 return 0; 6072} 6073_ACEOF 6074rm -f conftest.$ac_objext 6075if { (eval echo "$as_me:6075: \"$ac_compile\"") >&5 6076 (eval $ac_compile) 2>&5 6077 ac_status=$? 6078 echo "$as_me:6078: \$? = $ac_status" >&5 6079 (exit $ac_status); } && 6080 { ac_try='test -s conftest.$ac_objext' 6081 { (eval echo "$as_me:6081: \"$ac_try\"") >&5 6082 (eval $ac_try) 2>&5 6083 ac_status=$? 6084 echo "$as_me:6084: \$? = $ac_status" >&5 6085 (exit $ac_status); }; }; then 6086 cf_cv_dcl_errno=yes 6087else 6088 echo "$as_me: failed program was:" >&5 6089cat conftest.$ac_ext >&5 6090cf_cv_dcl_errno=no 6091fi 6092rm -f conftest.$ac_objext conftest.$ac_ext 6093 6094fi 6095echo "$as_me:6095: result: $cf_cv_dcl_errno" >&5 6096echo "${ECHO_T}$cf_cv_dcl_errno" >&6 6097 6098if test "$cf_cv_dcl_errno" = no ; then 6099 6100cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 6101 6102 cat >>confdefs.h <<EOF 6103#define $cf_result 1 6104EOF 6105 6106fi 6107 6108# It's possible (for near-UNIX clones) that the data doesn't exist 6109 6110echo "$as_me:6110: checking if external errno exists" >&5 6111echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6 6112if test "${cf_cv_have_errno+set}" = set; then 6113 echo $ECHO_N "(cached) $ECHO_C" >&6 6114else 6115 6116 cat >conftest.$ac_ext <<_ACEOF 6117#line 6117 "configure" 6118#include "confdefs.h" 6119 6120#undef errno 6121extern int errno; 6122 6123int 6124main () 6125{ 6126errno = 2 6127 ; 6128 return 0; 6129} 6130_ACEOF 6131rm -f conftest.$ac_objext conftest$ac_exeext 6132if { (eval echo "$as_me:6132: \"$ac_link\"") >&5 6133 (eval $ac_link) 2>&5 6134 ac_status=$? 6135 echo "$as_me:6135: \$? = $ac_status" >&5 6136 (exit $ac_status); } && 6137 { ac_try='test -s conftest$ac_exeext' 6138 { (eval echo "$as_me:6138: \"$ac_try\"") >&5 6139 (eval $ac_try) 2>&5 6140 ac_status=$? 6141 echo "$as_me:6141: \$? = $ac_status" >&5 6142 (exit $ac_status); }; }; then 6143 cf_cv_have_errno=yes 6144else 6145 echo "$as_me: failed program was:" >&5 6146cat conftest.$ac_ext >&5 6147cf_cv_have_errno=no 6148fi 6149rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6150 6151fi 6152echo "$as_me:6152: result: $cf_cv_have_errno" >&5 6153echo "${ECHO_T}$cf_cv_have_errno" >&6 6154 6155if test "$cf_cv_have_errno" = yes ; then 6156 6157cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 6158 6159 cat >>confdefs.h <<EOF 6160#define $cf_result 1 6161EOF 6162 6163fi 6164 6165echo "$as_me:6165: checking for explicit tty group name" >&5 6166echo $ECHO_N "checking for explicit tty group name... $ECHO_C" >&6 6167 6168# Check whether --with-tty-group or --without-tty-group was given. 6169if test "${with_tty_group+set}" = set; then 6170 withval="$with_tty_group" 6171 cf_tty_group=$withval 6172else 6173 cf_tty_group=auto... 6174fi; 6175test -z "$cf_tty_group" && cf_tty_group=auto... 6176test "$cf_tty_group" = yes && cf_tty_group=auto... 6177echo "$as_me:6177: result: $cf_tty_group" >&5 6178echo "${ECHO_T}$cf_tty_group" >&6 6179 6180if test "$cf_tty_group" = "auto..." ; then 6181echo "$as_me:6181: checking for tty group name" >&5 6182echo $ECHO_N "checking for tty group name... $ECHO_C" >&6 6183if test "${cf_cv_tty_group_name+set}" = set; then 6184 echo $ECHO_N "(cached) $ECHO_C" >&6 6185else 6186 6187# If we are configuring as root, it is hard to get a clue about the tty group. 6188# But we'll guess based on how our connection is set up - assuming it is done 6189# properly. 6190 6191cf_uid=`id | sed -e 's/^^=*=//' -e 's/(.*$//'` 6192# )vi 6193if test "$cf_uid" != 0 ; then 6194cf_cv_tty_group_name= 6195cf_tty_name=`tty` 6196test "$cf_tty_name" = "not a tty" && cf_tty_name=/dev/tty 6197test -z "$cf_tty_name" && cf_tty_name=/dev/tty 6198if test -c "$cf_tty_name" 6199then 6200 cf_option="-l -L" 6201 6202 # Expect listing to have fields like this: 6203 #-rwxrwxrwx 1 user group 34293 Jul 18 16:29 pathname 6204 ls $cf_option $cf_tty_name >conftest.out 6205 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out 6206 if test -z "$cf_rest" ; then 6207 cf_option="$cf_option -g" 6208 ls $cf_option $cf_tty_name >conftest.out 6209 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out 6210 fi 6211 rm -f conftest.out 6212 cf_cv_tty_group_name=$cf_grp 6213fi 6214fi 6215 6216# If we cannot deduce the tty group, fall back on hardcoded cases 6217 6218if test -z "$cf_cv_tty_group_name" 6219then 6220case $host_os in #(vi 6221osf*) #(vi 6222 cf_cv_tty_group_name="terminal" 6223 ;; 6224*) 6225 cf_cv_tty_group_name="unknown" 6226 if ( egrep '^tty:' /etc/group 2>/dev/null 1>/dev/null ) then 6227 cf_cv_tty_group_name="tty" 6228 fi 6229 ;; 6230esac 6231fi 6232 6233fi 6234echo "$as_me:6234: result: $cf_cv_tty_group_name" >&5 6235echo "${ECHO_T}$cf_cv_tty_group_name" >&6 6236cf_tty_group="$cf_cv_tty_group_name" 6237else 6238 # if configure option, always do this 6239 cat >>confdefs.h <<\EOF 6240#define USE_TTY_GROUP 1 6241EOF 6242 6243fi 6244 6245cat >>confdefs.h <<EOF 6246#define TTY_GROUP_NAME "$cf_tty_group" 6247EOF 6248 6249# This is only a double-check that the group-name we obtained above really 6250# does apply to the device. We cannot perform this test if we are in batch 6251# mode, or if we are cross-compiling. 6252 6253echo "$as_me:6253: checking if we may use the $cf_tty_group group" >&5 6254echo $ECHO_N "checking if we may use the $cf_tty_group group... $ECHO_C" >&6 6255if test "${cf_cv_tty_group+set}" = set; then 6256 echo $ECHO_N "(cached) $ECHO_C" >&6 6257else 6258 6259cf_tty_name=`tty` 6260if test "$cf_tty_name" != "not a tty" 6261then 6262if test "$cross_compiling" = yes; then 6263 cf_cv_tty_group=unknown 6264else 6265 cat >conftest.$ac_ext <<_ACEOF 6266#line 6266 "configure" 6267#include "confdefs.h" 6268 6269#include <unistd.h> 6270#include <sys/types.h> 6271#include <sys/stat.h> 6272#include <grp.h> 6273int main() 6274{ 6275 struct stat sb; 6276 struct group *ttygrp = getgrnam(TTY_GROUP_NAME); 6277 char *name = ttyname(0); 6278 6279 endgrent(); 6280 if (ttygrp != 0 6281 && name != 0 6282 && stat(name, &sb) == 0 6283 && sb.st_gid != getgid() 6284 && sb.st_gid == ttygrp->gr_gid) { 6285 ${cf_cv_main_return:-return} (0); 6286 } 6287 ${cf_cv_main_return:-return} (1); 6288} 6289 6290_ACEOF 6291rm -f conftest$ac_exeext 6292if { (eval echo "$as_me:6292: \"$ac_link\"") >&5 6293 (eval $ac_link) 2>&5 6294 ac_status=$? 6295 echo "$as_me:6295: \$? = $ac_status" >&5 6296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6297 { (eval echo "$as_me:6297: \"$ac_try\"") >&5 6298 (eval $ac_try) 2>&5 6299 ac_status=$? 6300 echo "$as_me:6300: \$? = $ac_status" >&5 6301 (exit $ac_status); }; }; then 6302 cf_cv_tty_group=yes 6303else 6304 echo "$as_me: program exited with status $ac_status" >&5 6305echo "$as_me: failed program was:" >&5 6306cat conftest.$ac_ext >&5 6307cf_cv_tty_group=no 6308fi 6309rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6310fi 6311elif test "$cross_compiling" = yes; then 6312 cf_cv_tty_group=unknown 6313else 6314 cf_cv_tty_group=yes 6315fi 6316 6317fi 6318echo "$as_me:6318: result: $cf_cv_tty_group" >&5 6319echo "${ECHO_T}$cf_cv_tty_group" >&6 6320 6321if test $cf_cv_tty_group = no ; then 6322 { echo "$as_me:6322: WARNING: Cannot use $cf_tty_group group" >&5 6323echo "$as_me: WARNING: Cannot use $cf_tty_group group" >&2;} 6324else 6325 cat >>confdefs.h <<\EOF 6326#define USE_TTY_GROUP 1 6327EOF 6328 6329fi 6330 6331### checks for system services and user specified options 6332 6333echo "$as_me:6333: checking for sys/wait.h that is POSIX.1 compatible" >&5 6334echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 6335if test "${ac_cv_header_sys_wait_h+set}" = set; then 6336 echo $ECHO_N "(cached) $ECHO_C" >&6 6337else 6338 cat >conftest.$ac_ext <<_ACEOF 6339#line 6339 "configure" 6340#include "confdefs.h" 6341#include <sys/types.h> 6342#include <sys/wait.h> 6343#ifndef WEXITSTATUS 6344# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 6345#endif 6346#ifndef WIFEXITED 6347# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 6348#endif 6349 6350int 6351main () 6352{ 6353 int s; 6354 wait (&s); 6355 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 6356 ; 6357 return 0; 6358} 6359_ACEOF 6360rm -f conftest.$ac_objext 6361if { (eval echo "$as_me:6361: \"$ac_compile\"") >&5 6362 (eval $ac_compile) 2>&5 6363 ac_status=$? 6364 echo "$as_me:6364: \$? = $ac_status" >&5 6365 (exit $ac_status); } && 6366 { ac_try='test -s conftest.$ac_objext' 6367 { (eval echo "$as_me:6367: \"$ac_try\"") >&5 6368 (eval $ac_try) 2>&5 6369 ac_status=$? 6370 echo "$as_me:6370: \$? = $ac_status" >&5 6371 (exit $ac_status); }; }; then 6372 ac_cv_header_sys_wait_h=yes 6373else 6374 echo "$as_me: failed program was:" >&5 6375cat conftest.$ac_ext >&5 6376ac_cv_header_sys_wait_h=no 6377fi 6378rm -f conftest.$ac_objext conftest.$ac_ext 6379fi 6380echo "$as_me:6380: result: $ac_cv_header_sys_wait_h" >&5 6381echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 6382if test $ac_cv_header_sys_wait_h = yes; then 6383 6384cat >>confdefs.h <<\EOF 6385#define HAVE_SYS_WAIT_H 1 6386EOF 6387 6388fi 6389 6390echo "$as_me:6390: checking for POSIX wait functions" >&5 6391echo $ECHO_N "checking for POSIX wait functions... $ECHO_C" >&6 6392if test "${cf_cv_posix_wait+set}" = set; then 6393 echo $ECHO_N "(cached) $ECHO_C" >&6 6394else 6395 6396cat >conftest.$ac_ext <<_ACEOF 6397#line 6397 "configure" 6398#include "confdefs.h" 6399 6400#include <stdlib.h> 6401#include <stdio.h> 6402#include <sys/types.h> 6403#ifdef HAVE_SYS_WAIT_H 6404#include <sys/wait.h> 6405#endif 6406 6407int 6408main () 6409{ 6410 6411 int stat_loc; 6412 pid_t pid = waitpid(-1, &stat_loc, WNOHANG|WUNTRACED); 6413 pid_t pid2 = wait(&stat_loc); 6414 6415 ; 6416 return 0; 6417} 6418_ACEOF 6419rm -f conftest.$ac_objext conftest$ac_exeext 6420if { (eval echo "$as_me:6420: \"$ac_link\"") >&5 6421 (eval $ac_link) 2>&5 6422 ac_status=$? 6423 echo "$as_me:6423: \$? = $ac_status" >&5 6424 (exit $ac_status); } && 6425 { ac_try='test -s conftest$ac_exeext' 6426 { (eval echo "$as_me:6426: \"$ac_try\"") >&5 6427 (eval $ac_try) 2>&5 6428 ac_status=$? 6429 echo "$as_me:6429: \$? = $ac_status" >&5 6430 (exit $ac_status); }; }; then 6431 cf_cv_posix_wait=yes 6432else 6433 echo "$as_me: failed program was:" >&5 6434cat conftest.$ac_ext >&5 6435cf_cv_posix_wait=no 6436fi 6437rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6438 6439fi 6440echo "$as_me:6440: result: $cf_cv_posix_wait" >&5 6441echo "${ECHO_T}$cf_cv_posix_wait" >&6 6442test "$cf_cv_posix_wait" = yes && cat >>confdefs.h <<\EOF 6443#define USE_POSIX_WAIT 1 6444EOF 6445 6446echo "$as_me:6446: checking if external sys_nerr is declared" >&5 6447echo $ECHO_N "checking if external sys_nerr is declared... $ECHO_C" >&6 6448if test "${cf_cv_dcl_sys_nerr+set}" = set; then 6449 echo $ECHO_N "(cached) $ECHO_C" >&6 6450else 6451 6452 cat >conftest.$ac_ext <<_ACEOF 6453#line 6453 "configure" 6454#include "confdefs.h" 6455 6456#ifdef HAVE_STDLIB_H 6457#include <stdlib.h> 6458#endif 6459#include <stdio.h> 6460#include <sys/types.h> 6461#include <errno.h> 6462int 6463main () 6464{ 6465int x = (int) sys_nerr 6466 ; 6467 return 0; 6468} 6469_ACEOF 6470rm -f conftest.$ac_objext 6471if { (eval echo "$as_me:6471: \"$ac_compile\"") >&5 6472 (eval $ac_compile) 2>&5 6473 ac_status=$? 6474 echo "$as_me:6474: \$? = $ac_status" >&5 6475 (exit $ac_status); } && 6476 { ac_try='test -s conftest.$ac_objext' 6477 { (eval echo "$as_me:6477: \"$ac_try\"") >&5 6478 (eval $ac_try) 2>&5 6479 ac_status=$? 6480 echo "$as_me:6480: \$? = $ac_status" >&5 6481 (exit $ac_status); }; }; then 6482 cf_cv_dcl_sys_nerr=yes 6483else 6484 echo "$as_me: failed program was:" >&5 6485cat conftest.$ac_ext >&5 6486cf_cv_dcl_sys_nerr=no 6487fi 6488rm -f conftest.$ac_objext conftest.$ac_ext 6489 6490fi 6491echo "$as_me:6491: result: $cf_cv_dcl_sys_nerr" >&5 6492echo "${ECHO_T}$cf_cv_dcl_sys_nerr" >&6 6493 6494if test "$cf_cv_dcl_sys_nerr" = no ; then 6495 6496cf_result=`echo "decl_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 6497 6498 cat >>confdefs.h <<EOF 6499#define $cf_result 1 6500EOF 6501 6502fi 6503 6504# It's possible (for near-UNIX clones) that the data doesn't exist 6505 6506echo "$as_me:6506: checking if external sys_nerr exists" >&5 6507echo $ECHO_N "checking if external sys_nerr exists... $ECHO_C" >&6 6508if test "${cf_cv_have_sys_nerr+set}" = set; then 6509 echo $ECHO_N "(cached) $ECHO_C" >&6 6510else 6511 6512 cat >conftest.$ac_ext <<_ACEOF 6513#line 6513 "configure" 6514#include "confdefs.h" 6515 6516#undef sys_nerr 6517extern int sys_nerr; 6518 6519int 6520main () 6521{ 6522sys_nerr = 2 6523 ; 6524 return 0; 6525} 6526_ACEOF 6527rm -f conftest.$ac_objext conftest$ac_exeext 6528if { (eval echo "$as_me:6528: \"$ac_link\"") >&5 6529 (eval $ac_link) 2>&5 6530 ac_status=$? 6531 echo "$as_me:6531: \$? = $ac_status" >&5 6532 (exit $ac_status); } && 6533 { ac_try='test -s conftest$ac_exeext' 6534 { (eval echo "$as_me:6534: \"$ac_try\"") >&5 6535 (eval $ac_try) 2>&5 6536 ac_status=$? 6537 echo "$as_me:6537: \$? = $ac_status" >&5 6538 (exit $ac_status); }; }; then 6539 cf_cv_have_sys_nerr=yes 6540else 6541 echo "$as_me: failed program was:" >&5 6542cat conftest.$ac_ext >&5 6543cf_cv_have_sys_nerr=no 6544fi 6545rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6546 6547fi 6548echo "$as_me:6548: result: $cf_cv_have_sys_nerr" >&5 6549echo "${ECHO_T}$cf_cv_have_sys_nerr" >&6 6550 6551if test "$cf_cv_have_sys_nerr" = yes ; then 6552 6553cf_result=`echo "have_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 6554 6555 cat >>confdefs.h <<EOF 6556#define $cf_result 1 6557EOF 6558 6559fi 6560 6561echo "$as_me:6561: checking if external sys_errlist is declared" >&5 6562echo $ECHO_N "checking if external sys_errlist is declared... $ECHO_C" >&6 6563if test "${cf_cv_dcl_sys_errlist+set}" = set; then 6564 echo $ECHO_N "(cached) $ECHO_C" >&6 6565else 6566 6567 cat >conftest.$ac_ext <<_ACEOF 6568#line 6568 "configure" 6569#include "confdefs.h" 6570 6571#ifdef HAVE_STDLIB_H 6572#include <stdlib.h> 6573#endif 6574#include <stdio.h> 6575#include <sys/types.h> 6576#include <errno.h> 6577int 6578main () 6579{ 6580int x = (int) sys_errlist 6581 ; 6582 return 0; 6583} 6584_ACEOF 6585rm -f conftest.$ac_objext 6586if { (eval echo "$as_me:6586: \"$ac_compile\"") >&5 6587 (eval $ac_compile) 2>&5 6588 ac_status=$? 6589 echo "$as_me:6589: \$? = $ac_status" >&5 6590 (exit $ac_status); } && 6591 { ac_try='test -s conftest.$ac_objext' 6592 { (eval echo "$as_me:6592: \"$ac_try\"") >&5 6593 (eval $ac_try) 2>&5 6594 ac_status=$? 6595 echo "$as_me:6595: \$? = $ac_status" >&5 6596 (exit $ac_status); }; }; then 6597 cf_cv_dcl_sys_errlist=yes 6598else 6599 echo "$as_me: failed program was:" >&5 6600cat conftest.$ac_ext >&5 6601cf_cv_dcl_sys_errlist=no 6602fi 6603rm -f conftest.$ac_objext conftest.$ac_ext 6604 6605fi 6606echo "$as_me:6606: result: $cf_cv_dcl_sys_errlist" >&5 6607echo "${ECHO_T}$cf_cv_dcl_sys_errlist" >&6 6608 6609if test "$cf_cv_dcl_sys_errlist" = no ; then 6610 6611cf_result=`echo "decl_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 6612 6613 cat >>confdefs.h <<EOF 6614#define $cf_result 1 6615EOF 6616 6617fi 6618 6619# It's possible (for near-UNIX clones) that the data doesn't exist 6620 6621echo "$as_me:6621: checking if external sys_errlist exists" >&5 6622echo $ECHO_N "checking if external sys_errlist exists... $ECHO_C" >&6 6623if test "${cf_cv_have_sys_errlist+set}" = set; then 6624 echo $ECHO_N "(cached) $ECHO_C" >&6 6625else 6626 6627 cat >conftest.$ac_ext <<_ACEOF 6628#line 6628 "configure" 6629#include "confdefs.h" 6630 6631#undef sys_errlist 6632extern int sys_errlist; 6633 6634int 6635main () 6636{ 6637sys_errlist = 2 6638 ; 6639 return 0; 6640} 6641_ACEOF 6642rm -f conftest.$ac_objext conftest$ac_exeext 6643if { (eval echo "$as_me:6643: \"$ac_link\"") >&5 6644 (eval $ac_link) 2>&5 6645 ac_status=$? 6646 echo "$as_me:6646: \$? = $ac_status" >&5 6647 (exit $ac_status); } && 6648 { ac_try='test -s conftest$ac_exeext' 6649 { (eval echo "$as_me:6649: \"$ac_try\"") >&5 6650 (eval $ac_try) 2>&5 6651 ac_status=$? 6652 echo "$as_me:6652: \$? = $ac_status" >&5 6653 (exit $ac_status); }; }; then 6654 cf_cv_have_sys_errlist=yes 6655else 6656 echo "$as_me: failed program was:" >&5 6657cat conftest.$ac_ext >&5 6658cf_cv_have_sys_errlist=no 6659fi 6660rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6661 6662fi 6663echo "$as_me:6663: result: $cf_cv_have_sys_errlist" >&5 6664echo "${ECHO_T}$cf_cv_have_sys_errlist" >&6 6665 6666if test "$cf_cv_have_sys_errlist" = yes ; then 6667 6668cf_result=`echo "have_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 6669 6670 cat >>confdefs.h <<EOF 6671#define $cf_result 1 6672EOF 6673 6674fi 6675 6676for ac_header in \ 6677termios.h \ 6678stdlib.h \ 6679X11/Intrinsic.h \ 6680 6681do 6682as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6683echo "$as_me:6683: checking for $ac_header" >&5 6684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6685if eval "test \"\${$as_ac_Header+set}\" = set"; then 6686 echo $ECHO_N "(cached) $ECHO_C" >&6 6687else 6688 cat >conftest.$ac_ext <<_ACEOF 6689#line 6689 "configure" 6690#include "confdefs.h" 6691#include <$ac_header> 6692_ACEOF 6693if { (eval echo "$as_me:6693: \"$ac_cpp conftest.$ac_ext\"") >&5 6694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6695 ac_status=$? 6696 egrep -v '^ *\+' conftest.er1 >conftest.err 6697 rm -f conftest.er1 6698 cat conftest.err >&5 6699 echo "$as_me:6699: \$? = $ac_status" >&5 6700 (exit $ac_status); } >/dev/null; then 6701 if test -s conftest.err; then 6702 ac_cpp_err=$ac_c_preproc_warn_flag 6703 else 6704 ac_cpp_err= 6705 fi 6706else 6707 ac_cpp_err=yes 6708fi 6709if test -z "$ac_cpp_err"; then 6710 eval "$as_ac_Header=yes" 6711else 6712 echo "$as_me: failed program was:" >&5 6713 cat conftest.$ac_ext >&5 6714 eval "$as_ac_Header=no" 6715fi 6716rm -f conftest.err conftest.$ac_ext 6717fi 6718echo "$as_me:6718: result: `eval echo '${'$as_ac_Header'}'`" >&5 6719echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6720if test `eval echo '${'$as_ac_Header'}'` = yes; then 6721 cat >>confdefs.h <<EOF 6722#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6723EOF 6724 6725fi 6726done 6727 6728echo "$as_me:6728: checking if we should define SYSV" >&5 6729echo $ECHO_N "checking if we should define SYSV... $ECHO_C" >&6 6730if test "${cf_cv_sysv+set}" = set; then 6731 echo $ECHO_N "(cached) $ECHO_C" >&6 6732else 6733 6734cat >conftest.$ac_ext <<_ACEOF 6735#line 6735 "configure" 6736#include "confdefs.h" 6737 6738#undef SYSV 6739#define SYSV 1 /* get Xos.h to declare sys_errlist[] */ 6740#ifdef HAVE_STDLIB_H 6741#include <stdlib.h> /* look for wchar_t */ 6742#endif 6743#ifdef HAVE_X11_INTRINSIC_H 6744#include <X11/Intrinsic.h> /* Intrinsic.h has other traps... */ 6745#endif 6746#ifdef HAVE_TERMIOS_H /* needed for HPUX 10.20 */ 6747#include <termios.h> 6748#define STRUCT_TERMIOS struct termios 6749#else 6750#define STRUCT_TERMIOS struct termio 6751#endif 6752#include <curses.h> 6753#include <term.h> /* eliminate most BSD hacks */ 6754#include <errno.h> /* declare sys_errlist on older systems */ 6755#include <sys/termio.h> /* eliminate most of the remaining ones */ 6756 6757int 6758main () 6759{ 6760 6761static STRUCT_TERMIOS d_tio; 6762 d_tio.c_cc[VINTR] = 0; 6763 d_tio.c_cc[VQUIT] = 0; 6764 d_tio.c_cc[VERASE] = 0; 6765 d_tio.c_cc[VKILL] = 0; 6766 d_tio.c_cc[VEOF] = 0; 6767 d_tio.c_cc[VEOL] = 0; 6768 d_tio.c_cc[VMIN] = 0; 6769 d_tio.c_cc[VTIME] = 0; 6770#if defined(HAVE_SYS_ERRLIST) && !defined(DECL_SYS_ERRLIST) 6771sys_errlist[0] = ""; /* Cygwin mis-declares this */ 6772#endif 6773 6774 ; 6775 return 0; 6776} 6777_ACEOF 6778rm -f conftest.$ac_objext 6779if { (eval echo "$as_me:6779: \"$ac_compile\"") >&5 6780 (eval $ac_compile) 2>&5 6781 ac_status=$? 6782 echo "$as_me:6782: \$? = $ac_status" >&5 6783 (exit $ac_status); } && 6784 { ac_try='test -s conftest.$ac_objext' 6785 { (eval echo "$as_me:6785: \"$ac_try\"") >&5 6786 (eval $ac_try) 2>&5 6787 ac_status=$? 6788 echo "$as_me:6788: \$? = $ac_status" >&5 6789 (exit $ac_status); }; }; then 6790 cf_cv_sysv=yes 6791else 6792 echo "$as_me: failed program was:" >&5 6793cat conftest.$ac_ext >&5 6794cf_cv_sysv=no 6795fi 6796rm -f conftest.$ac_objext conftest.$ac_ext 6797 6798fi 6799echo "$as_me:6799: result: $cf_cv_sysv" >&5 6800echo "${ECHO_T}$cf_cv_sysv" >&6 6801test "$cf_cv_sysv" = yes && cat >>confdefs.h <<\EOF 6802#define SYSV 1 6803EOF 6804 6805echo "$as_me:6805: checking for elf_begin in -lelf" >&5 6806echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 6807if test "${ac_cv_lib_elf_elf_begin+set}" = set; then 6808 echo $ECHO_N "(cached) $ECHO_C" >&6 6809else 6810 ac_check_lib_save_LIBS=$LIBS 6811LIBS="-lelf $LIBS" 6812cat >conftest.$ac_ext <<_ACEOF 6813#line 6813 "configure" 6814#include "confdefs.h" 6815 6816/* Override any gcc2 internal prototype to avoid an error. */ 6817#ifdef __cplusplus 6818extern "C" 6819#endif 6820/* We use char because int might match the return type of a gcc2 6821 builtin and then its argument prototype would still apply. */ 6822char elf_begin (); 6823int 6824main () 6825{ 6826elf_begin (); 6827 ; 6828 return 0; 6829} 6830_ACEOF 6831rm -f conftest.$ac_objext conftest$ac_exeext 6832if { (eval echo "$as_me:6832: \"$ac_link\"") >&5 6833 (eval $ac_link) 2>&5 6834 ac_status=$? 6835 echo "$as_me:6835: \$? = $ac_status" >&5 6836 (exit $ac_status); } && 6837 { ac_try='test -s conftest$ac_exeext' 6838 { (eval echo "$as_me:6838: \"$ac_try\"") >&5 6839 (eval $ac_try) 2>&5 6840 ac_status=$? 6841 echo "$as_me:6841: \$? = $ac_status" >&5 6842 (exit $ac_status); }; }; then 6843 ac_cv_lib_elf_elf_begin=yes 6844else 6845 echo "$as_me: failed program was:" >&5 6846cat conftest.$ac_ext >&5 6847ac_cv_lib_elf_elf_begin=no 6848fi 6849rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6850LIBS=$ac_check_lib_save_LIBS 6851fi 6852echo "$as_me:6852: result: $ac_cv_lib_elf_elf_begin" >&5 6853echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 6854if test $ac_cv_lib_elf_elf_begin = yes; then 6855 6856echo "$as_me:6856: checking if this is an SVR4 system" >&5 6857echo $ECHO_N "checking if this is an SVR4 system... $ECHO_C" >&6 6858if test "${cf_cv_svr4+set}" = set; then 6859 echo $ECHO_N "(cached) $ECHO_C" >&6 6860else 6861 6862cat >conftest.$ac_ext <<_ACEOF 6863#line 6863 "configure" 6864#include "confdefs.h" 6865 6866#include <elf.h> 6867#include <sys/termio.h> 6868 6869int 6870main () 6871{ 6872 6873static struct termio d_tio; 6874 d_tio.c_cc[VINTR] = 0; 6875 d_tio.c_cc[VQUIT] = 0; 6876 d_tio.c_cc[VERASE] = 0; 6877 d_tio.c_cc[VKILL] = 0; 6878 d_tio.c_cc[VEOF] = 0; 6879 d_tio.c_cc[VEOL] = 0; 6880 d_tio.c_cc[VMIN] = 0; 6881 d_tio.c_cc[VTIME] = 0; 6882 d_tio.c_cc[VLNEXT] = 0; 6883 6884 ; 6885 return 0; 6886} 6887_ACEOF 6888rm -f conftest.$ac_objext 6889if { (eval echo "$as_me:6889: \"$ac_compile\"") >&5 6890 (eval $ac_compile) 2>&5 6891 ac_status=$? 6892 echo "$as_me:6892: \$? = $ac_status" >&5 6893 (exit $ac_status); } && 6894 { ac_try='test -s conftest.$ac_objext' 6895 { (eval echo "$as_me:6895: \"$ac_try\"") >&5 6896 (eval $ac_try) 2>&5 6897 ac_status=$? 6898 echo "$as_me:6898: \$? = $ac_status" >&5 6899 (exit $ac_status); }; }; then 6900 cf_cv_svr4=yes 6901else 6902 echo "$as_me: failed program was:" >&5 6903cat conftest.$ac_ext >&5 6904cf_cv_svr4=no 6905fi 6906rm -f conftest.$ac_objext conftest.$ac_ext 6907 6908fi 6909echo "$as_me:6909: result: $cf_cv_svr4" >&5 6910echo "${ECHO_T}$cf_cv_svr4" >&6 6911 6912fi 6913 6914test "$cf_cv_svr4" = yes && cat >>confdefs.h <<\EOF 6915#define SVR4 1 6916EOF 6917 6918echo "$as_me:6918: checking for X" >&5 6919echo $ECHO_N "checking for X... $ECHO_C" >&6 6920 6921# Check whether --with-x or --without-x was given. 6922if test "${with_x+set}" = set; then 6923 withval="$with_x" 6924 6925fi; 6926# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 6927if test "x$with_x" = xno; then 6928 # The user explicitly disabled X. 6929 have_x=disabled 6930else 6931 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 6932 # Both variables are already set. 6933 have_x=yes 6934 else 6935 if test "${ac_cv_have_x+set}" = set; then 6936 echo $ECHO_N "(cached) $ECHO_C" >&6 6937else 6938 # One or both of the vars are not set, and there is no cached value. 6939ac_x_includes=no ac_x_libraries=no 6940rm -fr conftest.dir 6941if mkdir conftest.dir; then 6942 cd conftest.dir 6943 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 6944 cat >Imakefile <<'EOF' 6945acfindx: 6946 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 6947EOF 6948 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 6949 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 6950 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 6951 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 6952 for ac_extension in a so sl dylib dll; do 6953 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 6954 test -f $ac_im_libdir/libX11.$ac_extension; then 6955 ac_im_usrlibdir=$ac_im_libdir; break 6956 fi 6957 done 6958 # Screen out bogus values from the imake configuration. They are 6959 # bogus both because they are the default anyway, and because 6960 # using them would break gcc on systems where it needs fixed includes. 6961 case $ac_im_incroot in 6962 /usr/include) ;; 6963 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 6964 esac 6965 case $ac_im_usrlibdir in 6966 /usr/lib | /lib) ;; 6967 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 6968 esac 6969 fi 6970 cd .. 6971 rm -fr conftest.dir 6972fi 6973 6974# Standard set of common directories for X headers. 6975# Check X11 before X11Rn because it is often a symlink to the current release. 6976ac_x_header_dirs=' 6977/usr/X11/include 6978/usr/X11R6/include 6979/usr/X11R5/include 6980/usr/X11R4/include 6981 6982/usr/include/X11 6983/usr/include/X11R6 6984/usr/include/X11R5 6985/usr/include/X11R4 6986 6987/usr/local/X11/include 6988/usr/local/X11R6/include 6989/usr/local/X11R5/include 6990/usr/local/X11R4/include 6991 6992/usr/local/include/X11 6993/usr/local/include/X11R6 6994/usr/local/include/X11R5 6995/usr/local/include/X11R4 6996 6997/usr/X386/include 6998/usr/x386/include 6999/usr/XFree86/include/X11 7000 7001/usr/include 7002/usr/local/include 7003/usr/unsupported/include 7004/usr/athena/include 7005/usr/local/x11r5/include 7006/usr/lpp/Xamples/include 7007 7008/usr/openwin/include 7009/usr/openwin/share/include' 7010 7011if test "$ac_x_includes" = no; then 7012 # Guess where to find include files, by looking for Intrinsic.h. 7013 # First, try using that file with no special directory specified. 7014 cat >conftest.$ac_ext <<_ACEOF 7015#line 7015 "configure" 7016#include "confdefs.h" 7017#include <X11/Intrinsic.h> 7018_ACEOF 7019if { (eval echo "$as_me:7019: \"$ac_cpp conftest.$ac_ext\"") >&5 7020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7021 ac_status=$? 7022 egrep -v '^ *\+' conftest.er1 >conftest.err 7023 rm -f conftest.er1 7024 cat conftest.err >&5 7025 echo "$as_me:7025: \$? = $ac_status" >&5 7026 (exit $ac_status); } >/dev/null; then 7027 if test -s conftest.err; then 7028 ac_cpp_err=$ac_c_preproc_warn_flag 7029 else 7030 ac_cpp_err= 7031 fi 7032else 7033 ac_cpp_err=yes 7034fi 7035if test -z "$ac_cpp_err"; then 7036 # We can compile using X headers with no special include directory. 7037ac_x_includes= 7038else 7039 echo "$as_me: failed program was:" >&5 7040 cat conftest.$ac_ext >&5 7041 for ac_dir in $ac_x_header_dirs; do 7042 if test -r "$ac_dir/X11/Intrinsic.h"; then 7043 ac_x_includes=$ac_dir 7044 break 7045 fi 7046done 7047fi 7048rm -f conftest.err conftest.$ac_ext 7049fi # $ac_x_includes = no 7050 7051if test "$ac_x_libraries" = no; then 7052 # Check for the libraries. 7053 # See if we find them without any special options. 7054 # Don't add to $LIBS permanently. 7055 ac_save_LIBS=$LIBS 7056 LIBS="-lXt $LIBS" 7057 cat >conftest.$ac_ext <<_ACEOF 7058#line 7058 "configure" 7059#include "confdefs.h" 7060#include <X11/Intrinsic.h> 7061int 7062main () 7063{ 7064XtMalloc (0) 7065 ; 7066 return 0; 7067} 7068_ACEOF 7069rm -f conftest.$ac_objext conftest$ac_exeext 7070if { (eval echo "$as_me:7070: \"$ac_link\"") >&5 7071 (eval $ac_link) 2>&5 7072 ac_status=$? 7073 echo "$as_me:7073: \$? = $ac_status" >&5 7074 (exit $ac_status); } && 7075 { ac_try='test -s conftest$ac_exeext' 7076 { (eval echo "$as_me:7076: \"$ac_try\"") >&5 7077 (eval $ac_try) 2>&5 7078 ac_status=$? 7079 echo "$as_me:7079: \$? = $ac_status" >&5 7080 (exit $ac_status); }; }; then 7081 LIBS=$ac_save_LIBS 7082# We can link X programs with no special library path. 7083ac_x_libraries= 7084else 7085 echo "$as_me: failed program was:" >&5 7086cat conftest.$ac_ext >&5 7087LIBS=$ac_save_LIBS 7088for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 7089do 7090 # Don't even attempt the hair of trying to link an X program! 7091 for ac_extension in a so sl dylib dll; do 7092 if test -r $ac_dir/libXt.$ac_extension; then 7093 ac_x_libraries=$ac_dir 7094 break 2 7095 fi 7096 done 7097done 7098fi 7099rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7100fi # $ac_x_libraries = no 7101 7102if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 7103 # Didn't find X anywhere. Cache the known absence of X. 7104 ac_cv_have_x="have_x=no" 7105else 7106 # Record where we found X for the cache. 7107 ac_cv_have_x="have_x=yes \ 7108 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 7109fi 7110fi 7111 7112 fi 7113 eval "$ac_cv_have_x" 7114fi # $with_x != no 7115 7116if test "$have_x" != yes; then 7117 echo "$as_me:7117: result: $have_x" >&5 7118echo "${ECHO_T}$have_x" >&6 7119 no_x=yes 7120else 7121 # If each of the values was on the command line, it overrides each guess. 7122 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 7123 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 7124 # Update the cache value to reflect the command line values. 7125 ac_cv_have_x="have_x=yes \ 7126 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 7127 echo "$as_me:7127: result: libraries $x_libraries, headers $x_includes" >&5 7128echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 7129fi 7130 7131if test "$no_x" = yes; then 7132 # Not all programs may use this symbol, but it does not hurt to define it. 7133 7134cat >>confdefs.h <<\EOF 7135#define X_DISPLAY_MISSING 1 7136EOF 7137 7138 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 7139else 7140 if test -n "$x_includes"; then 7141 X_CFLAGS="$X_CFLAGS -I$x_includes" 7142 fi 7143 7144 # It would also be nice to do this for all -L options, not just this one. 7145 if test -n "$x_libraries"; then 7146 X_LIBS="$X_LIBS -L$x_libraries" 7147 # For Solaris; some versions of Sun CC require a space after -R and 7148 # others require no space. Words are not sufficient . . . . 7149 case `(uname -sr) 2>/dev/null` in 7150 "SunOS 5"*) 7151 echo "$as_me:7151: checking whether -R must be followed by a space" >&5 7152echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 7153 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 7154 cat >conftest.$ac_ext <<_ACEOF 7155#line 7155 "configure" 7156#include "confdefs.h" 7157 7158int 7159main () 7160{ 7161 7162 ; 7163 return 0; 7164} 7165_ACEOF 7166rm -f conftest.$ac_objext conftest$ac_exeext 7167if { (eval echo "$as_me:7167: \"$ac_link\"") >&5 7168 (eval $ac_link) 2>&5 7169 ac_status=$? 7170 echo "$as_me:7170: \$? = $ac_status" >&5 7171 (exit $ac_status); } && 7172 { ac_try='test -s conftest$ac_exeext' 7173 { (eval echo "$as_me:7173: \"$ac_try\"") >&5 7174 (eval $ac_try) 2>&5 7175 ac_status=$? 7176 echo "$as_me:7176: \$? = $ac_status" >&5 7177 (exit $ac_status); }; }; then 7178 ac_R_nospace=yes 7179else 7180 echo "$as_me: failed program was:" >&5 7181cat conftest.$ac_ext >&5 7182ac_R_nospace=no 7183fi 7184rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7185 if test $ac_R_nospace = yes; then 7186 echo "$as_me:7186: result: no" >&5 7187echo "${ECHO_T}no" >&6 7188 X_LIBS="$X_LIBS -R$x_libraries" 7189 else 7190 LIBS="$ac_xsave_LIBS -R $x_libraries" 7191 cat >conftest.$ac_ext <<_ACEOF 7192#line 7192 "configure" 7193#include "confdefs.h" 7194 7195int 7196main () 7197{ 7198 7199 ; 7200 return 0; 7201} 7202_ACEOF 7203rm -f conftest.$ac_objext conftest$ac_exeext 7204if { (eval echo "$as_me:7204: \"$ac_link\"") >&5 7205 (eval $ac_link) 2>&5 7206 ac_status=$? 7207 echo "$as_me:7207: \$? = $ac_status" >&5 7208 (exit $ac_status); } && 7209 { ac_try='test -s conftest$ac_exeext' 7210 { (eval echo "$as_me:7210: \"$ac_try\"") >&5 7211 (eval $ac_try) 2>&5 7212 ac_status=$? 7213 echo "$as_me:7213: \$? = $ac_status" >&5 7214 (exit $ac_status); }; }; then 7215 ac_R_space=yes 7216else 7217 echo "$as_me: failed program was:" >&5 7218cat conftest.$ac_ext >&5 7219ac_R_space=no 7220fi 7221rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7222 if test $ac_R_space = yes; then 7223 echo "$as_me:7223: result: yes" >&5 7224echo "${ECHO_T}yes" >&6 7225 X_LIBS="$X_LIBS -R $x_libraries" 7226 else 7227 echo "$as_me:7227: result: neither works" >&5 7228echo "${ECHO_T}neither works" >&6 7229 fi 7230 fi 7231 LIBS=$ac_xsave_LIBS 7232 esac 7233 fi 7234 7235 # Check for system-dependent libraries X programs must link with. 7236 # Do this before checking for the system-independent R6 libraries 7237 # (-lICE), since we may need -lsocket or whatever for X linking. 7238 7239 if test "$ISC" = yes; then 7240 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 7241 else 7242 # Martyn Johnson says this is needed for Ultrix, if the X 7243 # libraries were built with DECnet support. And Karl Berry says 7244 # the Alpha needs dnet_stub (dnet does not exist). 7245 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 7246 cat >conftest.$ac_ext <<_ACEOF 7247#line 7247 "configure" 7248#include "confdefs.h" 7249 7250/* Override any gcc2 internal prototype to avoid an error. */ 7251#ifdef __cplusplus 7252extern "C" 7253#endif 7254/* We use char because int might match the return type of a gcc2 7255 builtin and then its argument prototype would still apply. */ 7256char XOpenDisplay (); 7257int 7258main () 7259{ 7260XOpenDisplay (); 7261 ; 7262 return 0; 7263} 7264_ACEOF 7265rm -f conftest.$ac_objext conftest$ac_exeext 7266if { (eval echo "$as_me:7266: \"$ac_link\"") >&5 7267 (eval $ac_link) 2>&5 7268 ac_status=$? 7269 echo "$as_me:7269: \$? = $ac_status" >&5 7270 (exit $ac_status); } && 7271 { ac_try='test -s conftest$ac_exeext' 7272 { (eval echo "$as_me:7272: \"$ac_try\"") >&5 7273 (eval $ac_try) 2>&5 7274 ac_status=$? 7275 echo "$as_me:7275: \$? = $ac_status" >&5 7276 (exit $ac_status); }; }; then 7277 : 7278else 7279 echo "$as_me: failed program was:" >&5 7280cat conftest.$ac_ext >&5 7281echo "$as_me:7281: checking for dnet_ntoa in -ldnet" >&5 7282echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 7283if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 7284 echo $ECHO_N "(cached) $ECHO_C" >&6 7285else 7286 ac_check_lib_save_LIBS=$LIBS 7287LIBS="-ldnet $LIBS" 7288cat >conftest.$ac_ext <<_ACEOF 7289#line 7289 "configure" 7290#include "confdefs.h" 7291 7292/* Override any gcc2 internal prototype to avoid an error. */ 7293#ifdef __cplusplus 7294extern "C" 7295#endif 7296/* We use char because int might match the return type of a gcc2 7297 builtin and then its argument prototype would still apply. */ 7298char dnet_ntoa (); 7299int 7300main () 7301{ 7302dnet_ntoa (); 7303 ; 7304 return 0; 7305} 7306_ACEOF 7307rm -f conftest.$ac_objext conftest$ac_exeext 7308if { (eval echo "$as_me:7308: \"$ac_link\"") >&5 7309 (eval $ac_link) 2>&5 7310 ac_status=$? 7311 echo "$as_me:7311: \$? = $ac_status" >&5 7312 (exit $ac_status); } && 7313 { ac_try='test -s conftest$ac_exeext' 7314 { (eval echo "$as_me:7314: \"$ac_try\"") >&5 7315 (eval $ac_try) 2>&5 7316 ac_status=$? 7317 echo "$as_me:7317: \$? = $ac_status" >&5 7318 (exit $ac_status); }; }; then 7319 ac_cv_lib_dnet_dnet_ntoa=yes 7320else 7321 echo "$as_me: failed program was:" >&5 7322cat conftest.$ac_ext >&5 7323ac_cv_lib_dnet_dnet_ntoa=no 7324fi 7325rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7326LIBS=$ac_check_lib_save_LIBS 7327fi 7328echo "$as_me:7328: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 7329echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 7330if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 7331 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 7332fi 7333 7334 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 7335 echo "$as_me:7335: checking for dnet_ntoa in -ldnet_stub" >&5 7336echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 7337if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 7338 echo $ECHO_N "(cached) $ECHO_C" >&6 7339else 7340 ac_check_lib_save_LIBS=$LIBS 7341LIBS="-ldnet_stub $LIBS" 7342cat >conftest.$ac_ext <<_ACEOF 7343#line 7343 "configure" 7344#include "confdefs.h" 7345 7346/* Override any gcc2 internal prototype to avoid an error. */ 7347#ifdef __cplusplus 7348extern "C" 7349#endif 7350/* We use char because int might match the return type of a gcc2 7351 builtin and then its argument prototype would still apply. */ 7352char dnet_ntoa (); 7353int 7354main () 7355{ 7356dnet_ntoa (); 7357 ; 7358 return 0; 7359} 7360_ACEOF 7361rm -f conftest.$ac_objext conftest$ac_exeext 7362if { (eval echo "$as_me:7362: \"$ac_link\"") >&5 7363 (eval $ac_link) 2>&5 7364 ac_status=$? 7365 echo "$as_me:7365: \$? = $ac_status" >&5 7366 (exit $ac_status); } && 7367 { ac_try='test -s conftest$ac_exeext' 7368 { (eval echo "$as_me:7368: \"$ac_try\"") >&5 7369 (eval $ac_try) 2>&5 7370 ac_status=$? 7371 echo "$as_me:7371: \$? = $ac_status" >&5 7372 (exit $ac_status); }; }; then 7373 ac_cv_lib_dnet_stub_dnet_ntoa=yes 7374else 7375 echo "$as_me: failed program was:" >&5 7376cat conftest.$ac_ext >&5 7377ac_cv_lib_dnet_stub_dnet_ntoa=no 7378fi 7379rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7380LIBS=$ac_check_lib_save_LIBS 7381fi 7382echo "$as_me:7382: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 7383echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 7384if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 7385 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 7386fi 7387 7388 fi 7389fi 7390rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7391 LIBS="$ac_xsave_LIBS" 7392 7393 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 7394 # to get the SysV transport functions. 7395 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 7396 # needs -lnsl. 7397 # The nsl library prevents programs from opening the X display 7398 # on Irix 5.2, according to T.E. Dickey. 7399 # The functions gethostbyname, getservbyname, and inet_addr are 7400 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 7401 echo "$as_me:7401: checking for gethostbyname" >&5 7402echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 7403if test "${ac_cv_func_gethostbyname+set}" = set; then 7404 echo $ECHO_N "(cached) $ECHO_C" >&6 7405else 7406 cat >conftest.$ac_ext <<_ACEOF 7407#line 7407 "configure" 7408#include "confdefs.h" 7409/* System header to define __stub macros and hopefully few prototypes, 7410 which can conflict with char gethostbyname (); below. */ 7411#include <assert.h> 7412/* Override any gcc2 internal prototype to avoid an error. */ 7413#ifdef __cplusplus 7414extern "C" 7415#endif 7416/* We use char because int might match the return type of a gcc2 7417 builtin and then its argument prototype would still apply. */ 7418char gethostbyname (); 7419char (*f) (); 7420 7421int 7422main () 7423{ 7424/* The GNU C library defines this for functions which it implements 7425 to always fail with ENOSYS. Some functions are actually named 7426 something starting with __ and the normal name is an alias. */ 7427#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 7428choke me 7429#else 7430f = gethostbyname; 7431#endif 7432 7433 ; 7434 return 0; 7435} 7436_ACEOF 7437rm -f conftest.$ac_objext conftest$ac_exeext 7438if { (eval echo "$as_me:7438: \"$ac_link\"") >&5 7439 (eval $ac_link) 2>&5 7440 ac_status=$? 7441 echo "$as_me:7441: \$? = $ac_status" >&5 7442 (exit $ac_status); } && 7443 { ac_try='test -s conftest$ac_exeext' 7444 { (eval echo "$as_me:7444: \"$ac_try\"") >&5 7445 (eval $ac_try) 2>&5 7446 ac_status=$? 7447 echo "$as_me:7447: \$? = $ac_status" >&5 7448 (exit $ac_status); }; }; then 7449 ac_cv_func_gethostbyname=yes 7450else 7451 echo "$as_me: failed program was:" >&5 7452cat conftest.$ac_ext >&5 7453ac_cv_func_gethostbyname=no 7454fi 7455rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7456fi 7457echo "$as_me:7457: result: $ac_cv_func_gethostbyname" >&5 7458echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 7459 7460 if test $ac_cv_func_gethostbyname = no; then 7461 echo "$as_me:7461: checking for gethostbyname in -lnsl" >&5 7462echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 7463if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 7464 echo $ECHO_N "(cached) $ECHO_C" >&6 7465else 7466 ac_check_lib_save_LIBS=$LIBS 7467LIBS="-lnsl $LIBS" 7468cat >conftest.$ac_ext <<_ACEOF 7469#line 7469 "configure" 7470#include "confdefs.h" 7471 7472/* Override any gcc2 internal prototype to avoid an error. */ 7473#ifdef __cplusplus 7474extern "C" 7475#endif 7476/* We use char because int might match the return type of a gcc2 7477 builtin and then its argument prototype would still apply. */ 7478char gethostbyname (); 7479int 7480main () 7481{ 7482gethostbyname (); 7483 ; 7484 return 0; 7485} 7486_ACEOF 7487rm -f conftest.$ac_objext conftest$ac_exeext 7488if { (eval echo "$as_me:7488: \"$ac_link\"") >&5 7489 (eval $ac_link) 2>&5 7490 ac_status=$? 7491 echo "$as_me:7491: \$? = $ac_status" >&5 7492 (exit $ac_status); } && 7493 { ac_try='test -s conftest$ac_exeext' 7494 { (eval echo "$as_me:7494: \"$ac_try\"") >&5 7495 (eval $ac_try) 2>&5 7496 ac_status=$? 7497 echo "$as_me:7497: \$? = $ac_status" >&5 7498 (exit $ac_status); }; }; then 7499 ac_cv_lib_nsl_gethostbyname=yes 7500else 7501 echo "$as_me: failed program was:" >&5 7502cat conftest.$ac_ext >&5 7503ac_cv_lib_nsl_gethostbyname=no 7504fi 7505rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7506LIBS=$ac_check_lib_save_LIBS 7507fi 7508echo "$as_me:7508: result: $ac_cv_lib_nsl_gethostbyname" >&5 7509echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 7510if test $ac_cv_lib_nsl_gethostbyname = yes; then 7511 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 7512fi 7513 7514 if test $ac_cv_lib_nsl_gethostbyname = no; then 7515 echo "$as_me:7515: checking for gethostbyname in -lbsd" >&5 7516echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 7517if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 7518 echo $ECHO_N "(cached) $ECHO_C" >&6 7519else 7520 ac_check_lib_save_LIBS=$LIBS 7521LIBS="-lbsd $LIBS" 7522cat >conftest.$ac_ext <<_ACEOF 7523#line 7523 "configure" 7524#include "confdefs.h" 7525 7526/* Override any gcc2 internal prototype to avoid an error. */ 7527#ifdef __cplusplus 7528extern "C" 7529#endif 7530/* We use char because int might match the return type of a gcc2 7531 builtin and then its argument prototype would still apply. */ 7532char gethostbyname (); 7533int 7534main () 7535{ 7536gethostbyname (); 7537 ; 7538 return 0; 7539} 7540_ACEOF 7541rm -f conftest.$ac_objext conftest$ac_exeext 7542if { (eval echo "$as_me:7542: \"$ac_link\"") >&5 7543 (eval $ac_link) 2>&5 7544 ac_status=$? 7545 echo "$as_me:7545: \$? = $ac_status" >&5 7546 (exit $ac_status); } && 7547 { ac_try='test -s conftest$ac_exeext' 7548 { (eval echo "$as_me:7548: \"$ac_try\"") >&5 7549 (eval $ac_try) 2>&5 7550 ac_status=$? 7551 echo "$as_me:7551: \$? = $ac_status" >&5 7552 (exit $ac_status); }; }; then 7553 ac_cv_lib_bsd_gethostbyname=yes 7554else 7555 echo "$as_me: failed program was:" >&5 7556cat conftest.$ac_ext >&5 7557ac_cv_lib_bsd_gethostbyname=no 7558fi 7559rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7560LIBS=$ac_check_lib_save_LIBS 7561fi 7562echo "$as_me:7562: result: $ac_cv_lib_bsd_gethostbyname" >&5 7563echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 7564if test $ac_cv_lib_bsd_gethostbyname = yes; then 7565 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 7566fi 7567 7568 fi 7569 fi 7570 7571 # lieder@skyler.mavd.honeywell.com says without -lsocket, 7572 # socket/setsockopt and other routines are undefined under SCO ODT 7573 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 7574 # on later versions), says Simon Leinen: it contains gethostby* 7575 # variants that don't use the nameserver (or something). -lsocket 7576 # must be given before -lnsl if both are needed. We assume that 7577 # if connect needs -lnsl, so does gethostbyname. 7578 echo "$as_me:7578: checking for connect" >&5 7579echo $ECHO_N "checking for connect... $ECHO_C" >&6 7580if test "${ac_cv_func_connect+set}" = set; then 7581 echo $ECHO_N "(cached) $ECHO_C" >&6 7582else 7583 cat >conftest.$ac_ext <<_ACEOF 7584#line 7584 "configure" 7585#include "confdefs.h" 7586/* System header to define __stub macros and hopefully few prototypes, 7587 which can conflict with char connect (); below. */ 7588#include <assert.h> 7589/* Override any gcc2 internal prototype to avoid an error. */ 7590#ifdef __cplusplus 7591extern "C" 7592#endif 7593/* We use char because int might match the return type of a gcc2 7594 builtin and then its argument prototype would still apply. */ 7595char connect (); 7596char (*f) (); 7597 7598int 7599main () 7600{ 7601/* The GNU C library defines this for functions which it implements 7602 to always fail with ENOSYS. Some functions are actually named 7603 something starting with __ and the normal name is an alias. */ 7604#if defined (__stub_connect) || defined (__stub___connect) 7605choke me 7606#else 7607f = connect; 7608#endif 7609 7610 ; 7611 return 0; 7612} 7613_ACEOF 7614rm -f conftest.$ac_objext conftest$ac_exeext 7615if { (eval echo "$as_me:7615: \"$ac_link\"") >&5 7616 (eval $ac_link) 2>&5 7617 ac_status=$? 7618 echo "$as_me:7618: \$? = $ac_status" >&5 7619 (exit $ac_status); } && 7620 { ac_try='test -s conftest$ac_exeext' 7621 { (eval echo "$as_me:7621: \"$ac_try\"") >&5 7622 (eval $ac_try) 2>&5 7623 ac_status=$? 7624 echo "$as_me:7624: \$? = $ac_status" >&5 7625 (exit $ac_status); }; }; then 7626 ac_cv_func_connect=yes 7627else 7628 echo "$as_me: failed program was:" >&5 7629cat conftest.$ac_ext >&5 7630ac_cv_func_connect=no 7631fi 7632rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7633fi 7634echo "$as_me:7634: result: $ac_cv_func_connect" >&5 7635echo "${ECHO_T}$ac_cv_func_connect" >&6 7636 7637 if test $ac_cv_func_connect = no; then 7638 echo "$as_me:7638: checking for connect in -lsocket" >&5 7639echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 7640if test "${ac_cv_lib_socket_connect+set}" = set; then 7641 echo $ECHO_N "(cached) $ECHO_C" >&6 7642else 7643 ac_check_lib_save_LIBS=$LIBS 7644LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 7645cat >conftest.$ac_ext <<_ACEOF 7646#line 7646 "configure" 7647#include "confdefs.h" 7648 7649/* Override any gcc2 internal prototype to avoid an error. */ 7650#ifdef __cplusplus 7651extern "C" 7652#endif 7653/* We use char because int might match the return type of a gcc2 7654 builtin and then its argument prototype would still apply. */ 7655char connect (); 7656int 7657main () 7658{ 7659connect (); 7660 ; 7661 return 0; 7662} 7663_ACEOF 7664rm -f conftest.$ac_objext conftest$ac_exeext 7665if { (eval echo "$as_me:7665: \"$ac_link\"") >&5 7666 (eval $ac_link) 2>&5 7667 ac_status=$? 7668 echo "$as_me:7668: \$? = $ac_status" >&5 7669 (exit $ac_status); } && 7670 { ac_try='test -s conftest$ac_exeext' 7671 { (eval echo "$as_me:7671: \"$ac_try\"") >&5 7672 (eval $ac_try) 2>&5 7673 ac_status=$? 7674 echo "$as_me:7674: \$? = $ac_status" >&5 7675 (exit $ac_status); }; }; then 7676 ac_cv_lib_socket_connect=yes 7677else 7678 echo "$as_me: failed program was:" >&5 7679cat conftest.$ac_ext >&5 7680ac_cv_lib_socket_connect=no 7681fi 7682rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7683LIBS=$ac_check_lib_save_LIBS 7684fi 7685echo "$as_me:7685: result: $ac_cv_lib_socket_connect" >&5 7686echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 7687if test $ac_cv_lib_socket_connect = yes; then 7688 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 7689fi 7690 7691 fi 7692 7693 # Guillermo Gomez says -lposix is necessary on A/UX. 7694 echo "$as_me:7694: checking for remove" >&5 7695echo $ECHO_N "checking for remove... $ECHO_C" >&6 7696if test "${ac_cv_func_remove+set}" = set; then 7697 echo $ECHO_N "(cached) $ECHO_C" >&6 7698else 7699 cat >conftest.$ac_ext <<_ACEOF 7700#line 7700 "configure" 7701#include "confdefs.h" 7702/* System header to define __stub macros and hopefully few prototypes, 7703 which can conflict with char remove (); below. */ 7704#include <assert.h> 7705/* Override any gcc2 internal prototype to avoid an error. */ 7706#ifdef __cplusplus 7707extern "C" 7708#endif 7709/* We use char because int might match the return type of a gcc2 7710 builtin and then its argument prototype would still apply. */ 7711char remove (); 7712char (*f) (); 7713 7714int 7715main () 7716{ 7717/* The GNU C library defines this for functions which it implements 7718 to always fail with ENOSYS. Some functions are actually named 7719 something starting with __ and the normal name is an alias. */ 7720#if defined (__stub_remove) || defined (__stub___remove) 7721choke me 7722#else 7723f = remove; 7724#endif 7725 7726 ; 7727 return 0; 7728} 7729_ACEOF 7730rm -f conftest.$ac_objext conftest$ac_exeext 7731if { (eval echo "$as_me:7731: \"$ac_link\"") >&5 7732 (eval $ac_link) 2>&5 7733 ac_status=$? 7734 echo "$as_me:7734: \$? = $ac_status" >&5 7735 (exit $ac_status); } && 7736 { ac_try='test -s conftest$ac_exeext' 7737 { (eval echo "$as_me:7737: \"$ac_try\"") >&5 7738 (eval $ac_try) 2>&5 7739 ac_status=$? 7740 echo "$as_me:7740: \$? = $ac_status" >&5 7741 (exit $ac_status); }; }; then 7742 ac_cv_func_remove=yes 7743else 7744 echo "$as_me: failed program was:" >&5 7745cat conftest.$ac_ext >&5 7746ac_cv_func_remove=no 7747fi 7748rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7749fi 7750echo "$as_me:7750: result: $ac_cv_func_remove" >&5 7751echo "${ECHO_T}$ac_cv_func_remove" >&6 7752 7753 if test $ac_cv_func_remove = no; then 7754 echo "$as_me:7754: checking for remove in -lposix" >&5 7755echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 7756if test "${ac_cv_lib_posix_remove+set}" = set; then 7757 echo $ECHO_N "(cached) $ECHO_C" >&6 7758else 7759 ac_check_lib_save_LIBS=$LIBS 7760LIBS="-lposix $LIBS" 7761cat >conftest.$ac_ext <<_ACEOF 7762#line 7762 "configure" 7763#include "confdefs.h" 7764 7765/* Override any gcc2 internal prototype to avoid an error. */ 7766#ifdef __cplusplus 7767extern "C" 7768#endif 7769/* We use char because int might match the return type of a gcc2 7770 builtin and then its argument prototype would still apply. */ 7771char remove (); 7772int 7773main () 7774{ 7775remove (); 7776 ; 7777 return 0; 7778} 7779_ACEOF 7780rm -f conftest.$ac_objext conftest$ac_exeext 7781if { (eval echo "$as_me:7781: \"$ac_link\"") >&5 7782 (eval $ac_link) 2>&5 7783 ac_status=$? 7784 echo "$as_me:7784: \$? = $ac_status" >&5 7785 (exit $ac_status); } && 7786 { ac_try='test -s conftest$ac_exeext' 7787 { (eval echo "$as_me:7787: \"$ac_try\"") >&5 7788 (eval $ac_try) 2>&5 7789 ac_status=$? 7790 echo "$as_me:7790: \$? = $ac_status" >&5 7791 (exit $ac_status); }; }; then 7792 ac_cv_lib_posix_remove=yes 7793else 7794 echo "$as_me: failed program was:" >&5 7795cat conftest.$ac_ext >&5 7796ac_cv_lib_posix_remove=no 7797fi 7798rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7799LIBS=$ac_check_lib_save_LIBS 7800fi 7801echo "$as_me:7801: result: $ac_cv_lib_posix_remove" >&5 7802echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 7803if test $ac_cv_lib_posix_remove = yes; then 7804 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 7805fi 7806 7807 fi 7808 7809 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 7810 echo "$as_me:7810: checking for shmat" >&5 7811echo $ECHO_N "checking for shmat... $ECHO_C" >&6 7812if test "${ac_cv_func_shmat+set}" = set; then 7813 echo $ECHO_N "(cached) $ECHO_C" >&6 7814else 7815 cat >conftest.$ac_ext <<_ACEOF 7816#line 7816 "configure" 7817#include "confdefs.h" 7818/* System header to define __stub macros and hopefully few prototypes, 7819 which can conflict with char shmat (); below. */ 7820#include <assert.h> 7821/* Override any gcc2 internal prototype to avoid an error. */ 7822#ifdef __cplusplus 7823extern "C" 7824#endif 7825/* We use char because int might match the return type of a gcc2 7826 builtin and then its argument prototype would still apply. */ 7827char shmat (); 7828char (*f) (); 7829 7830int 7831main () 7832{ 7833/* The GNU C library defines this for functions which it implements 7834 to always fail with ENOSYS. Some functions are actually named 7835 something starting with __ and the normal name is an alias. */ 7836#if defined (__stub_shmat) || defined (__stub___shmat) 7837choke me 7838#else 7839f = shmat; 7840#endif 7841 7842 ; 7843 return 0; 7844} 7845_ACEOF 7846rm -f conftest.$ac_objext conftest$ac_exeext 7847if { (eval echo "$as_me:7847: \"$ac_link\"") >&5 7848 (eval $ac_link) 2>&5 7849 ac_status=$? 7850 echo "$as_me:7850: \$? = $ac_status" >&5 7851 (exit $ac_status); } && 7852 { ac_try='test -s conftest$ac_exeext' 7853 { (eval echo "$as_me:7853: \"$ac_try\"") >&5 7854 (eval $ac_try) 2>&5 7855 ac_status=$? 7856 echo "$as_me:7856: \$? = $ac_status" >&5 7857 (exit $ac_status); }; }; then 7858 ac_cv_func_shmat=yes 7859else 7860 echo "$as_me: failed program was:" >&5 7861cat conftest.$ac_ext >&5 7862ac_cv_func_shmat=no 7863fi 7864rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7865fi 7866echo "$as_me:7866: result: $ac_cv_func_shmat" >&5 7867echo "${ECHO_T}$ac_cv_func_shmat" >&6 7868 7869 if test $ac_cv_func_shmat = no; then 7870 echo "$as_me:7870: checking for shmat in -lipc" >&5 7871echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 7872if test "${ac_cv_lib_ipc_shmat+set}" = set; then 7873 echo $ECHO_N "(cached) $ECHO_C" >&6 7874else 7875 ac_check_lib_save_LIBS=$LIBS 7876LIBS="-lipc $LIBS" 7877cat >conftest.$ac_ext <<_ACEOF 7878#line 7878 "configure" 7879#include "confdefs.h" 7880 7881/* Override any gcc2 internal prototype to avoid an error. */ 7882#ifdef __cplusplus 7883extern "C" 7884#endif 7885/* We use char because int might match the return type of a gcc2 7886 builtin and then its argument prototype would still apply. */ 7887char shmat (); 7888int 7889main () 7890{ 7891shmat (); 7892 ; 7893 return 0; 7894} 7895_ACEOF 7896rm -f conftest.$ac_objext conftest$ac_exeext 7897if { (eval echo "$as_me:7897: \"$ac_link\"") >&5 7898 (eval $ac_link) 2>&5 7899 ac_status=$? 7900 echo "$as_me:7900: \$? = $ac_status" >&5 7901 (exit $ac_status); } && 7902 { ac_try='test -s conftest$ac_exeext' 7903 { (eval echo "$as_me:7903: \"$ac_try\"") >&5 7904 (eval $ac_try) 2>&5 7905 ac_status=$? 7906 echo "$as_me:7906: \$? = $ac_status" >&5 7907 (exit $ac_status); }; }; then 7908 ac_cv_lib_ipc_shmat=yes 7909else 7910 echo "$as_me: failed program was:" >&5 7911cat conftest.$ac_ext >&5 7912ac_cv_lib_ipc_shmat=no 7913fi 7914rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7915LIBS=$ac_check_lib_save_LIBS 7916fi 7917echo "$as_me:7917: result: $ac_cv_lib_ipc_shmat" >&5 7918echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 7919if test $ac_cv_lib_ipc_shmat = yes; then 7920 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 7921fi 7922 7923 fi 7924 fi 7925 7926 # Check for libraries that X11R6 Xt/Xaw programs need. 7927 ac_save_LDFLAGS=$LDFLAGS 7928 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 7929 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 7930 # check for ICE first), but we must link in the order -lSM -lICE or 7931 # we get undefined symbols. So assume we have SM if we have ICE. 7932 # These have to be linked with before -lX11, unlike the other 7933 # libraries we check for below, so use a different variable. 7934 # John Interrante, Karl Berry 7935 echo "$as_me:7935: checking for IceConnectionNumber in -lICE" >&5 7936echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 7937if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 7938 echo $ECHO_N "(cached) $ECHO_C" >&6 7939else 7940 ac_check_lib_save_LIBS=$LIBS 7941LIBS="-lICE $X_EXTRA_LIBS $LIBS" 7942cat >conftest.$ac_ext <<_ACEOF 7943#line 7943 "configure" 7944#include "confdefs.h" 7945 7946/* Override any gcc2 internal prototype to avoid an error. */ 7947#ifdef __cplusplus 7948extern "C" 7949#endif 7950/* We use char because int might match the return type of a gcc2 7951 builtin and then its argument prototype would still apply. */ 7952char IceConnectionNumber (); 7953int 7954main () 7955{ 7956IceConnectionNumber (); 7957 ; 7958 return 0; 7959} 7960_ACEOF 7961rm -f conftest.$ac_objext conftest$ac_exeext 7962if { (eval echo "$as_me:7962: \"$ac_link\"") >&5 7963 (eval $ac_link) 2>&5 7964 ac_status=$? 7965 echo "$as_me:7965: \$? = $ac_status" >&5 7966 (exit $ac_status); } && 7967 { ac_try='test -s conftest$ac_exeext' 7968 { (eval echo "$as_me:7968: \"$ac_try\"") >&5 7969 (eval $ac_try) 2>&5 7970 ac_status=$? 7971 echo "$as_me:7971: \$? = $ac_status" >&5 7972 (exit $ac_status); }; }; then 7973 ac_cv_lib_ICE_IceConnectionNumber=yes 7974else 7975 echo "$as_me: failed program was:" >&5 7976cat conftest.$ac_ext >&5 7977ac_cv_lib_ICE_IceConnectionNumber=no 7978fi 7979rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7980LIBS=$ac_check_lib_save_LIBS 7981fi 7982echo "$as_me:7982: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 7983echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 7984if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 7985 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 7986fi 7987 7988 LDFLAGS=$ac_save_LDFLAGS 7989 7990fi 7991 7992# SYSTEM_NAME=`echo "$cf_cv_system_name"|tr ' ' -` 7993 7994cf_have_X_LIBS=no 7995 7996LDFLAGS="$X_LIBS $LDFLAGS" 7997 7998test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6 7999 8000echo "${as_me-configure}:8000: testing checking additions to CFLAGS ..." 1>&5 8001 8002cf_check_cflags="$CFLAGS" 8003cf_check_cppflags="$CPPFLAGS" 8004 8005cf_fix_cppflags=no 8006cf_new_cflags= 8007cf_new_cppflags= 8008cf_new_extra_cppflags= 8009 8010for cf_add_cflags in $X_CFLAGS 8011do 8012case $cf_fix_cppflags in 8013no) 8014 case $cf_add_cflags in #(vi 8015 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 8016 case $cf_add_cflags in 8017 -D*) 8018 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 8019 8020 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 8021 && test -z "${cf_tst_cflags}" \ 8022 && cf_fix_cppflags=yes 8023 8024 if test $cf_fix_cppflags = yes ; then 8025 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 8026 continue 8027 elif test "${cf_tst_cflags}" = "\"'" ; then 8028 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 8029 continue 8030 fi 8031 ;; 8032 esac 8033 case "$CPPFLAGS" in 8034 *$cf_add_cflags) #(vi 8035 ;; 8036 *) #(vi 8037 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 8038 ;; 8039 esac 8040 ;; 8041 *) 8042 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 8043 ;; 8044 esac 8045 ;; 8046yes) 8047 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 8048 8049 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 8050 8051 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 8052 && test -z "${cf_tst_cflags}" \ 8053 && cf_fix_cppflags=no 8054 ;; 8055esac 8056done 8057 8058if test -n "$cf_new_cflags" ; then 8059 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 8060 8061echo "${as_me-configure}:8061: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 8062 8063 CFLAGS="$CFLAGS $cf_new_cflags" 8064fi 8065 8066if test -n "$cf_new_cppflags" ; then 8067 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 8068 8069echo "${as_me-configure}:8069: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 8070 8071 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 8072fi 8073 8074if test -n "$cf_new_extra_cppflags" ; then 8075 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6 8076 8077echo "${as_me-configure}:8077: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5 8078 8079 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 8080fi 8081 8082if test "$cf_check_cflags" != "$CFLAGS" ; then 8083cat >conftest.$ac_ext <<_ACEOF 8084#line 8084 "configure" 8085#include "confdefs.h" 8086#include <stdio.h> 8087int 8088main () 8089{ 8090printf("Hello world"); 8091 ; 8092 return 0; 8093} 8094_ACEOF 8095rm -f conftest.$ac_objext conftest$ac_exeext 8096if { (eval echo "$as_me:8096: \"$ac_link\"") >&5 8097 (eval $ac_link) 2>&5 8098 ac_status=$? 8099 echo "$as_me:8099: \$? = $ac_status" >&5 8100 (exit $ac_status); } && 8101 { ac_try='test -s conftest$ac_exeext' 8102 { (eval echo "$as_me:8102: \"$ac_try\"") >&5 8103 (eval $ac_try) 2>&5 8104 ac_status=$? 8105 echo "$as_me:8105: \$? = $ac_status" >&5 8106 (exit $ac_status); }; }; then 8107 : 8108else 8109 echo "$as_me: failed program was:" >&5 8110cat conftest.$ac_ext >&5 8111test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6 8112 8113echo "${as_me-configure}:8113: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5 8114 8115 if test "$cf_check_cppflags" != "$CPPFLAGS" ; then 8116 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6 8117 8118echo "${as_me-configure}:8118: testing but keeping change to \$CPPFLAGS ..." 1>&5 8119 8120 fi 8121 CFLAGS="$cf_check_flags" 8122fi 8123rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8124fi 8125 8126echo "$as_me:8126: checking for XOpenDisplay" >&5 8127echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6 8128if test "${ac_cv_func_XOpenDisplay+set}" = set; then 8129 echo $ECHO_N "(cached) $ECHO_C" >&6 8130else 8131 cat >conftest.$ac_ext <<_ACEOF 8132#line 8132 "configure" 8133#include "confdefs.h" 8134/* System header to define __stub macros and hopefully few prototypes, 8135 which can conflict with char XOpenDisplay (); below. */ 8136#include <assert.h> 8137/* Override any gcc2 internal prototype to avoid an error. */ 8138#ifdef __cplusplus 8139extern "C" 8140#endif 8141/* We use char because int might match the return type of a gcc2 8142 builtin and then its argument prototype would still apply. */ 8143char XOpenDisplay (); 8144char (*f) (); 8145 8146int 8147main () 8148{ 8149/* The GNU C library defines this for functions which it implements 8150 to always fail with ENOSYS. Some functions are actually named 8151 something starting with __ and the normal name is an alias. */ 8152#if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay) 8153choke me 8154#else 8155f = XOpenDisplay; 8156#endif 8157 8158 ; 8159 return 0; 8160} 8161_ACEOF 8162rm -f conftest.$ac_objext conftest$ac_exeext 8163if { (eval echo "$as_me:8163: \"$ac_link\"") >&5 8164 (eval $ac_link) 2>&5 8165 ac_status=$? 8166 echo "$as_me:8166: \$? = $ac_status" >&5 8167 (exit $ac_status); } && 8168 { ac_try='test -s conftest$ac_exeext' 8169 { (eval echo "$as_me:8169: \"$ac_try\"") >&5 8170 (eval $ac_try) 2>&5 8171 ac_status=$? 8172 echo "$as_me:8172: \$? = $ac_status" >&5 8173 (exit $ac_status); }; }; then 8174 ac_cv_func_XOpenDisplay=yes 8175else 8176 echo "$as_me: failed program was:" >&5 8177cat conftest.$ac_ext >&5 8178ac_cv_func_XOpenDisplay=no 8179fi 8180rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8181fi 8182echo "$as_me:8182: result: $ac_cv_func_XOpenDisplay" >&5 8183echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6 8184if test $ac_cv_func_XOpenDisplay = yes; then 8185 : 8186else 8187 8188echo "$as_me:8188: checking for XOpenDisplay in -lX11" >&5 8189echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6 8190if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then 8191 echo $ECHO_N "(cached) $ECHO_C" >&6 8192else 8193 ac_check_lib_save_LIBS=$LIBS 8194LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS" 8195cat >conftest.$ac_ext <<_ACEOF 8196#line 8196 "configure" 8197#include "confdefs.h" 8198 8199/* Override any gcc2 internal prototype to avoid an error. */ 8200#ifdef __cplusplus 8201extern "C" 8202#endif 8203/* We use char because int might match the return type of a gcc2 8204 builtin and then its argument prototype would still apply. */ 8205char XOpenDisplay (); 8206int 8207main () 8208{ 8209XOpenDisplay (); 8210 ; 8211 return 0; 8212} 8213_ACEOF 8214rm -f conftest.$ac_objext conftest$ac_exeext 8215if { (eval echo "$as_me:8215: \"$ac_link\"") >&5 8216 (eval $ac_link) 2>&5 8217 ac_status=$? 8218 echo "$as_me:8218: \$? = $ac_status" >&5 8219 (exit $ac_status); } && 8220 { ac_try='test -s conftest$ac_exeext' 8221 { (eval echo "$as_me:8221: \"$ac_try\"") >&5 8222 (eval $ac_try) 2>&5 8223 ac_status=$? 8224 echo "$as_me:8224: \$? = $ac_status" >&5 8225 (exit $ac_status); }; }; then 8226 ac_cv_lib_X11_XOpenDisplay=yes 8227else 8228 echo "$as_me: failed program was:" >&5 8229cat conftest.$ac_ext >&5 8230ac_cv_lib_X11_XOpenDisplay=no 8231fi 8232rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8233LIBS=$ac_check_lib_save_LIBS 8234fi 8235echo "$as_me:8235: result: $ac_cv_lib_X11_XOpenDisplay" >&5 8236echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6 8237if test $ac_cv_lib_X11_XOpenDisplay = yes; then 8238 LIBS="-lX11 $LIBS" 8239fi 8240 8241fi 8242 8243echo "$as_me:8243: checking for XtAppInitialize" >&5 8244echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6 8245if test "${ac_cv_func_XtAppInitialize+set}" = set; then 8246 echo $ECHO_N "(cached) $ECHO_C" >&6 8247else 8248 cat >conftest.$ac_ext <<_ACEOF 8249#line 8249 "configure" 8250#include "confdefs.h" 8251/* System header to define __stub macros and hopefully few prototypes, 8252 which can conflict with char XtAppInitialize (); below. */ 8253#include <assert.h> 8254/* Override any gcc2 internal prototype to avoid an error. */ 8255#ifdef __cplusplus 8256extern "C" 8257#endif 8258/* We use char because int might match the return type of a gcc2 8259 builtin and then its argument prototype would still apply. */ 8260char XtAppInitialize (); 8261char (*f) (); 8262 8263int 8264main () 8265{ 8266/* The GNU C library defines this for functions which it implements 8267 to always fail with ENOSYS. Some functions are actually named 8268 something starting with __ and the normal name is an alias. */ 8269#if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize) 8270choke me 8271#else 8272f = XtAppInitialize; 8273#endif 8274 8275 ; 8276 return 0; 8277} 8278_ACEOF 8279rm -f conftest.$ac_objext conftest$ac_exeext 8280if { (eval echo "$as_me:8280: \"$ac_link\"") >&5 8281 (eval $ac_link) 2>&5 8282 ac_status=$? 8283 echo "$as_me:8283: \$? = $ac_status" >&5 8284 (exit $ac_status); } && 8285 { ac_try='test -s conftest$ac_exeext' 8286 { (eval echo "$as_me:8286: \"$ac_try\"") >&5 8287 (eval $ac_try) 2>&5 8288 ac_status=$? 8289 echo "$as_me:8289: \$? = $ac_status" >&5 8290 (exit $ac_status); }; }; then 8291 ac_cv_func_XtAppInitialize=yes 8292else 8293 echo "$as_me: failed program was:" >&5 8294cat conftest.$ac_ext >&5 8295ac_cv_func_XtAppInitialize=no 8296fi 8297rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8298fi 8299echo "$as_me:8299: result: $ac_cv_func_XtAppInitialize" >&5 8300echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6 8301if test $ac_cv_func_XtAppInitialize = yes; then 8302 : 8303else 8304 8305echo "$as_me:8305: checking for XtAppInitialize in -lXt" >&5 8306echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6 8307if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then 8308 echo $ECHO_N "(cached) $ECHO_C" >&6 8309else 8310 ac_check_lib_save_LIBS=$LIBS 8311LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS" 8312cat >conftest.$ac_ext <<_ACEOF 8313#line 8313 "configure" 8314#include "confdefs.h" 8315 8316/* Override any gcc2 internal prototype to avoid an error. */ 8317#ifdef __cplusplus 8318extern "C" 8319#endif 8320/* We use char because int might match the return type of a gcc2 8321 builtin and then its argument prototype would still apply. */ 8322char XtAppInitialize (); 8323int 8324main () 8325{ 8326XtAppInitialize (); 8327 ; 8328 return 0; 8329} 8330_ACEOF 8331rm -f conftest.$ac_objext conftest$ac_exeext 8332if { (eval echo "$as_me:8332: \"$ac_link\"") >&5 8333 (eval $ac_link) 2>&5 8334 ac_status=$? 8335 echo "$as_me:8335: \$? = $ac_status" >&5 8336 (exit $ac_status); } && 8337 { ac_try='test -s conftest$ac_exeext' 8338 { (eval echo "$as_me:8338: \"$ac_try\"") >&5 8339 (eval $ac_try) 2>&5 8340 ac_status=$? 8341 echo "$as_me:8341: \$? = $ac_status" >&5 8342 (exit $ac_status); }; }; then 8343 ac_cv_lib_Xt_XtAppInitialize=yes 8344else 8345 echo "$as_me: failed program was:" >&5 8346cat conftest.$ac_ext >&5 8347ac_cv_lib_Xt_XtAppInitialize=no 8348fi 8349rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8350LIBS=$ac_check_lib_save_LIBS 8351fi 8352echo "$as_me:8352: result: $ac_cv_lib_Xt_XtAppInitialize" >&5 8353echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6 8354if test $ac_cv_lib_Xt_XtAppInitialize = yes; then 8355 cat >>confdefs.h <<\EOF 8356#define HAVE_LIBXT 1 8357EOF 8358 8359 cf_have_X_LIBS=Xt 8360 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS" 8361fi 8362 8363fi 8364 8365if test $cf_have_X_LIBS = no ; then 8366 { echo "$as_me:8366: WARNING: Unable to successfully link X Toolkit library (-lXt) with 8367test program. You will have to check and add the proper libraries by hand 8368to makefile." >&5 8369echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with 8370test program. You will have to check and add the proper libraries by hand 8371to makefile." >&2;} 8372fi 8373 8374for ac_header in \ 8375 X11/DECkeysym.h \ 8376 X11/Sunkeysym.h \ 8377 X11/XF86keysym.h \ 8378 X11/Xpoll.h \ 8379 8380do 8381as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8382echo "$as_me:8382: checking for $ac_header" >&5 8383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8384if eval "test \"\${$as_ac_Header+set}\" = set"; then 8385 echo $ECHO_N "(cached) $ECHO_C" >&6 8386else 8387 cat >conftest.$ac_ext <<_ACEOF 8388#line 8388 "configure" 8389#include "confdefs.h" 8390#include <$ac_header> 8391_ACEOF 8392if { (eval echo "$as_me:8392: \"$ac_cpp conftest.$ac_ext\"") >&5 8393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8394 ac_status=$? 8395 egrep -v '^ *\+' conftest.er1 >conftest.err 8396 rm -f conftest.er1 8397 cat conftest.err >&5 8398 echo "$as_me:8398: \$? = $ac_status" >&5 8399 (exit $ac_status); } >/dev/null; then 8400 if test -s conftest.err; then 8401 ac_cpp_err=$ac_c_preproc_warn_flag 8402 else 8403 ac_cpp_err= 8404 fi 8405else 8406 ac_cpp_err=yes 8407fi 8408if test -z "$ac_cpp_err"; then 8409 eval "$as_ac_Header=yes" 8410else 8411 echo "$as_me: failed program was:" >&5 8412 cat conftest.$ac_ext >&5 8413 eval "$as_ac_Header=no" 8414fi 8415rm -f conftest.err conftest.$ac_ext 8416fi 8417echo "$as_me:8417: result: `eval echo '${'$as_ac_Header'}'`" >&5 8418echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8419if test `eval echo '${'$as_ac_Header'}'` = yes; then 8420 cat >>confdefs.h <<EOF 8421#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8422EOF 8423 8424fi 8425done 8426 8427cf_x_athena=${cf_x_athena-Xaw} 8428 8429echo "$as_me:8429: checking if you want to link with Xaw 3d library" >&5 8430echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6 8431withval= 8432 8433# Check whether --with-Xaw3d or --without-Xaw3d was given. 8434if test "${with_Xaw3d+set}" = set; then 8435 withval="$with_Xaw3d" 8436 8437fi; 8438if test "$withval" = yes ; then 8439 cf_x_athena=Xaw3d 8440 echo "$as_me:8440: result: yes" >&5 8441echo "${ECHO_T}yes" >&6 8442else 8443 echo "$as_me:8443: result: no" >&5 8444echo "${ECHO_T}no" >&6 8445fi 8446 8447echo "$as_me:8447: checking if you want to link with neXT Athena library" >&5 8448echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6 8449withval= 8450 8451# Check whether --with-neXtaw or --without-neXtaw was given. 8452if test "${with_neXtaw+set}" = set; then 8453 withval="$with_neXtaw" 8454 8455fi; 8456if test "$withval" = yes ; then 8457 cf_x_athena=neXtaw 8458 echo "$as_me:8458: result: yes" >&5 8459echo "${ECHO_T}yes" >&6 8460else 8461 echo "$as_me:8461: result: no" >&5 8462echo "${ECHO_T}no" >&6 8463fi 8464 8465echo "$as_me:8465: checking if you want to link with Athena-Plus library" >&5 8466echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6 8467withval= 8468 8469# Check whether --with-XawPlus or --without-XawPlus was given. 8470if test "${with_XawPlus+set}" = set; then 8471 withval="$with_XawPlus" 8472 8473fi; 8474if test "$withval" = yes ; then 8475 cf_x_athena=XawPlus 8476 echo "$as_me:8476: result: yes" >&5 8477echo "${ECHO_T}yes" >&6 8478else 8479 echo "$as_me:8479: result: no" >&5 8480echo "${ECHO_T}no" >&6 8481fi 8482 8483echo "$as_me:8483: checking for XextCreateExtension in -lXext" >&5 8484echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6 8485if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then 8486 echo $ECHO_N "(cached) $ECHO_C" >&6 8487else 8488 ac_check_lib_save_LIBS=$LIBS 8489LIBS="-lXext $LIBS" 8490cat >conftest.$ac_ext <<_ACEOF 8491#line 8491 "configure" 8492#include "confdefs.h" 8493 8494/* Override any gcc2 internal prototype to avoid an error. */ 8495#ifdef __cplusplus 8496extern "C" 8497#endif 8498/* We use char because int might match the return type of a gcc2 8499 builtin and then its argument prototype would still apply. */ 8500char XextCreateExtension (); 8501int 8502main () 8503{ 8504XextCreateExtension (); 8505 ; 8506 return 0; 8507} 8508_ACEOF 8509rm -f conftest.$ac_objext conftest$ac_exeext 8510if { (eval echo "$as_me:8510: \"$ac_link\"") >&5 8511 (eval $ac_link) 2>&5 8512 ac_status=$? 8513 echo "$as_me:8513: \$? = $ac_status" >&5 8514 (exit $ac_status); } && 8515 { ac_try='test -s conftest$ac_exeext' 8516 { (eval echo "$as_me:8516: \"$ac_try\"") >&5 8517 (eval $ac_try) 2>&5 8518 ac_status=$? 8519 echo "$as_me:8519: \$? = $ac_status" >&5 8520 (exit $ac_status); }; }; then 8521 ac_cv_lib_Xext_XextCreateExtension=yes 8522else 8523 echo "$as_me: failed program was:" >&5 8524cat conftest.$ac_ext >&5 8525ac_cv_lib_Xext_XextCreateExtension=no 8526fi 8527rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8528LIBS=$ac_check_lib_save_LIBS 8529fi 8530echo "$as_me:8530: result: $ac_cv_lib_Xext_XextCreateExtension" >&5 8531echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6 8532if test $ac_cv_lib_Xext_XextCreateExtension = yes; then 8533 LIBS="-lXext $LIBS" 8534fi 8535 8536cf_x_athena_lib="" 8537 8538cf_x_athena_root=$cf_x_athena 8539cf_x_athena_include="" 8540 8541for cf_path in default \ 8542 /usr/contrib/X11R6 \ 8543 /usr/contrib/X11R5 \ 8544 /usr/lib/X11R5 \ 8545 /usr/local 8546do 8547 if test -z "$cf_x_athena_include" ; then 8548 cf_save="$CPPFLAGS" 8549 cf_test=X11/$cf_x_athena_root/SimpleMenu.h 8550 if test $cf_path != default ; then 8551 CPPFLAGS="$cf_save -I$cf_path/include" 8552 echo "$as_me:8552: checking for $cf_test in $cf_path" >&5 8553echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6 8554 else 8555 echo "$as_me:8555: checking for $cf_test" >&5 8556echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6 8557 fi 8558 cat >conftest.$ac_ext <<_ACEOF 8559#line 8559 "configure" 8560#include "confdefs.h" 8561 8562#include <X11/Intrinsic.h> 8563#include <$cf_test> 8564int 8565main () 8566{ 8567 8568 ; 8569 return 0; 8570} 8571_ACEOF 8572rm -f conftest.$ac_objext 8573if { (eval echo "$as_me:8573: \"$ac_compile\"") >&5 8574 (eval $ac_compile) 2>&5 8575 ac_status=$? 8576 echo "$as_me:8576: \$? = $ac_status" >&5 8577 (exit $ac_status); } && 8578 { ac_try='test -s conftest.$ac_objext' 8579 { (eval echo "$as_me:8579: \"$ac_try\"") >&5 8580 (eval $ac_try) 2>&5 8581 ac_status=$? 8582 echo "$as_me:8582: \$? = $ac_status" >&5 8583 (exit $ac_status); }; }; then 8584 cf_result=yes 8585else 8586 echo "$as_me: failed program was:" >&5 8587cat conftest.$ac_ext >&5 8588cf_result=no 8589fi 8590rm -f conftest.$ac_objext conftest.$ac_ext 8591 echo "$as_me:8591: result: $cf_result" >&5 8592echo "${ECHO_T}$cf_result" >&6 8593 if test "$cf_result" = yes ; then 8594 cf_x_athena_include=$cf_path 8595 break 8596 else 8597 CPPFLAGS="$cf_save" 8598 fi 8599 fi 8600done 8601 8602if test -z "$cf_x_athena_include" ; then 8603 { echo "$as_me:8603: WARNING: Unable to successfully find Athena header files with test program" >&5 8604echo "$as_me: WARNING: Unable to successfully find Athena header files with test program" >&2;} 8605elif test "$cf_x_athena_include" != default ; then 8606 CPPFLAGS="$CPPFLAGS -I$cf_x_athena_include" 8607fi 8608 8609cf_x_athena_root=$cf_x_athena 8610cf_x_athena_lib="" 8611 8612for cf_path in default \ 8613 /usr/contrib/X11R6 \ 8614 /usr/contrib/X11R5 \ 8615 /usr/lib/X11R5 \ 8616 /usr/local 8617do 8618 for cf_lib in \ 8619 "-l$cf_x_athena_root -lXmu" \ 8620 "-l$cf_x_athena_root -lXpm -lXmu" \ 8621 "-l${cf_x_athena_root}_s -lXmu_s" 8622 do 8623 if test -z "$cf_x_athena_lib" ; then 8624 cf_save="$LIBS" 8625 cf_test=XawSimpleMenuAddGlobalActions 8626 if test $cf_path != default ; then 8627 LIBS="-L$cf_path/lib $cf_lib $LIBS" 8628 echo "$as_me:8628: checking for $cf_lib in $cf_path" >&5 8629echo $ECHO_N "checking for $cf_lib in $cf_path... $ECHO_C" >&6 8630 else 8631 LIBS="$cf_lib $LIBS" 8632 echo "$as_me:8632: checking for $cf_test in $cf_lib" >&5 8633echo $ECHO_N "checking for $cf_test in $cf_lib... $ECHO_C" >&6 8634 fi 8635 cat >conftest.$ac_ext <<_ACEOF 8636#line 8636 "configure" 8637#include "confdefs.h" 8638 8639int 8640main () 8641{ 8642$cf_test() 8643 ; 8644 return 0; 8645} 8646_ACEOF 8647rm -f conftest.$ac_objext conftest$ac_exeext 8648if { (eval echo "$as_me:8648: \"$ac_link\"") >&5 8649 (eval $ac_link) 2>&5 8650 ac_status=$? 8651 echo "$as_me:8651: \$? = $ac_status" >&5 8652 (exit $ac_status); } && 8653 { ac_try='test -s conftest$ac_exeext' 8654 { (eval echo "$as_me:8654: \"$ac_try\"") >&5 8655 (eval $ac_try) 2>&5 8656 ac_status=$? 8657 echo "$as_me:8657: \$? = $ac_status" >&5 8658 (exit $ac_status); }; }; then 8659 cf_result=yes 8660else 8661 echo "$as_me: failed program was:" >&5 8662cat conftest.$ac_ext >&5 8663cf_result=no 8664fi 8665rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8666 echo "$as_me:8666: result: $cf_result" >&5 8667echo "${ECHO_T}$cf_result" >&6 8668 if test "$cf_result" = yes ; then 8669 cf_x_athena_lib="$cf_lib" 8670 break 8671 fi 8672 LIBS="$cf_save" 8673 fi 8674 done 8675done 8676 8677if test -z "$cf_x_athena_lib" ; then 8678 { { echo "$as_me:8678: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5 8679echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;} 8680 { (exit 1); exit 1; }; } 8681fi 8682 8683cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 8684 8685cat >>confdefs.h <<EOF 8686#define $cf_x_athena_LIBS 1 8687EOF 8688 8689for ac_header in X11/Xpoll.h 8690do 8691as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8692echo "$as_me:8692: checking for $ac_header" >&5 8693echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8694if eval "test \"\${$as_ac_Header+set}\" = set"; then 8695 echo $ECHO_N "(cached) $ECHO_C" >&6 8696else 8697 cat >conftest.$ac_ext <<_ACEOF 8698#line 8698 "configure" 8699#include "confdefs.h" 8700#include <$ac_header> 8701_ACEOF 8702if { (eval echo "$as_me:8702: \"$ac_cpp conftest.$ac_ext\"") >&5 8703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8704 ac_status=$? 8705 egrep -v '^ *\+' conftest.er1 >conftest.err 8706 rm -f conftest.er1 8707 cat conftest.err >&5 8708 echo "$as_me:8708: \$? = $ac_status" >&5 8709 (exit $ac_status); } >/dev/null; then 8710 if test -s conftest.err; then 8711 ac_cpp_err=$ac_c_preproc_warn_flag 8712 else 8713 ac_cpp_err= 8714 fi 8715else 8716 ac_cpp_err=yes 8717fi 8718if test -z "$ac_cpp_err"; then 8719 eval "$as_ac_Header=yes" 8720else 8721 echo "$as_me: failed program was:" >&5 8722 cat conftest.$ac_ext >&5 8723 eval "$as_ac_Header=no" 8724fi 8725rm -f conftest.err conftest.$ac_ext 8726fi 8727echo "$as_me:8727: result: `eval echo '${'$as_ac_Header'}'`" >&5 8728echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8729if test `eval echo '${'$as_ac_Header'}'` = yes; then 8730 cat >>confdefs.h <<EOF 8731#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8732EOF 8733 8734fi 8735done 8736 8737echo "$as_me:8737: checking for declaration of fd_set" >&5 8738echo $ECHO_N "checking for declaration of fd_set... $ECHO_C" >&6 8739if test "${cf_cv_type_fd_set+set}" = set; then 8740 echo $ECHO_N "(cached) $ECHO_C" >&6 8741else 8742 8743echo "${as_me-configure}:8743: testing sys/types alone ..." 1>&5 8744 8745cat >conftest.$ac_ext <<_ACEOF 8746#line 8746 "configure" 8747#include "confdefs.h" 8748 8749#include <sys/types.h> 8750int 8751main () 8752{ 8753fd_set x 8754 ; 8755 return 0; 8756} 8757_ACEOF 8758rm -f conftest.$ac_objext 8759if { (eval echo "$as_me:8759: \"$ac_compile\"") >&5 8760 (eval $ac_compile) 2>&5 8761 ac_status=$? 8762 echo "$as_me:8762: \$? = $ac_status" >&5 8763 (exit $ac_status); } && 8764 { ac_try='test -s conftest.$ac_objext' 8765 { (eval echo "$as_me:8765: \"$ac_try\"") >&5 8766 (eval $ac_try) 2>&5 8767 ac_status=$? 8768 echo "$as_me:8768: \$? = $ac_status" >&5 8769 (exit $ac_status); }; }; then 8770 cf_cv_type_fd_set=sys/types.h 8771else 8772 echo "$as_me: failed program was:" >&5 8773cat conftest.$ac_ext >&5 8774 8775echo "${as_me-configure}:8775: testing X11/Xpoll.h ..." 1>&5 8776 8777cat >conftest.$ac_ext <<_ACEOF 8778#line 8778 "configure" 8779#include "confdefs.h" 8780 8781#ifdef HAVE_X11_XPOLL_H 8782#include <X11/Xpoll.h> 8783#endif 8784int 8785main () 8786{ 8787fd_set x 8788 ; 8789 return 0; 8790} 8791_ACEOF 8792rm -f conftest.$ac_objext 8793if { (eval echo "$as_me:8793: \"$ac_compile\"") >&5 8794 (eval $ac_compile) 2>&5 8795 ac_status=$? 8796 echo "$as_me:8796: \$? = $ac_status" >&5 8797 (exit $ac_status); } && 8798 { ac_try='test -s conftest.$ac_objext' 8799 { (eval echo "$as_me:8799: \"$ac_try\"") >&5 8800 (eval $ac_try) 2>&5 8801 ac_status=$? 8802 echo "$as_me:8802: \$? = $ac_status" >&5 8803 (exit $ac_status); }; }; then 8804 cf_cv_type_fd_set=X11/Xpoll.h 8805else 8806 echo "$as_me: failed program was:" >&5 8807cat conftest.$ac_ext >&5 8808 8809echo "${as_me-configure}:8809: testing sys/select.h ..." 1>&5 8810 8811cat >conftest.$ac_ext <<_ACEOF 8812#line 8812 "configure" 8813#include "confdefs.h" 8814 8815#include <sys/types.h> 8816#include <sys/select.h> 8817int 8818main () 8819{ 8820fd_set x 8821 ; 8822 return 0; 8823} 8824_ACEOF 8825rm -f conftest.$ac_objext 8826if { (eval echo "$as_me:8826: \"$ac_compile\"") >&5 8827 (eval $ac_compile) 2>&5 8828 ac_status=$? 8829 echo "$as_me:8829: \$? = $ac_status" >&5 8830 (exit $ac_status); } && 8831 { ac_try='test -s conftest.$ac_objext' 8832 { (eval echo "$as_me:8832: \"$ac_try\"") >&5 8833 (eval $ac_try) 2>&5 8834 ac_status=$? 8835 echo "$as_me:8835: \$? = $ac_status" >&5 8836 (exit $ac_status); }; }; then 8837 cf_cv_type_fd_set=sys/select.h 8838else 8839 echo "$as_me: failed program was:" >&5 8840cat conftest.$ac_ext >&5 8841cf_cv_type_fd_set=unknown 8842fi 8843rm -f conftest.$ac_objext conftest.$ac_ext 8844fi 8845rm -f conftest.$ac_objext conftest.$ac_ext 8846fi 8847rm -f conftest.$ac_objext conftest.$ac_ext 8848fi 8849echo "$as_me:8849: result: $cf_cv_type_fd_set" >&5 8850echo "${ECHO_T}$cf_cv_type_fd_set" >&6 8851if test $cf_cv_type_fd_set = sys/select.h ; then 8852 cat >>confdefs.h <<\EOF 8853#define USE_SYS_SELECT_H 1 8854EOF 8855 8856fi 8857 8858echo "$as_me:8858: checking for declaration of fd_mask" >&5 8859echo $ECHO_N "checking for declaration of fd_mask... $ECHO_C" >&6 8860if test "${cf_cv_type_fd_mask+set}" = set; then 8861 echo $ECHO_N "(cached) $ECHO_C" >&6 8862else 8863 8864 if test x$cf_cv_type_fd_set = xX11/Xpoll.h ; then 8865 cat >conftest.$ac_ext <<_ACEOF 8866#line 8866 "configure" 8867#include "confdefs.h" 8868 8869#include <X11/Xpoll.h> 8870int 8871main () 8872{ 8873fd_mask x 8874 ; 8875 return 0; 8876} 8877_ACEOF 8878rm -f conftest.$ac_objext 8879if { (eval echo "$as_me:8879: \"$ac_compile\"") >&5 8880 (eval $ac_compile) 2>&5 8881 ac_status=$? 8882 echo "$as_me:8882: \$? = $ac_status" >&5 8883 (exit $ac_status); } && 8884 { ac_try='test -s conftest.$ac_objext' 8885 { (eval echo "$as_me:8885: \"$ac_try\"") >&5 8886 (eval $ac_try) 2>&5 8887 ac_status=$? 8888 echo "$as_me:8888: \$? = $ac_status" >&5 8889 (exit $ac_status); }; }; then 8890 : 8891else 8892 echo "$as_me: failed program was:" >&5 8893cat conftest.$ac_ext >&5 8894 8895echo "${as_me-configure}:8895: testing if we must define CSRG_BASED ..." 1>&5 8896 8897# Xosdefs.h on Mac OS X may not define this (but it should). 8898 cat >conftest.$ac_ext <<_ACEOF 8899#line 8899 "configure" 8900#include "confdefs.h" 8901 8902#define CSRG_BASED 8903#include <X11/Xpoll.h> 8904int 8905main () 8906{ 8907fd_mask x 8908 ; 8909 return 0; 8910} 8911_ACEOF 8912rm -f conftest.$ac_objext 8913if { (eval echo "$as_me:8913: \"$ac_compile\"") >&5 8914 (eval $ac_compile) 2>&5 8915 ac_status=$? 8916 echo "$as_me:8916: \$? = $ac_status" >&5 8917 (exit $ac_status); } && 8918 { ac_try='test -s conftest.$ac_objext' 8919 { (eval echo "$as_me:8919: \"$ac_try\"") >&5 8920 (eval $ac_try) 2>&5 8921 ac_status=$? 8922 echo "$as_me:8922: \$? = $ac_status" >&5 8923 (exit $ac_status); }; }; then 8924 cf_cv_type_fd_mask=CSRG_BASED 8925else 8926 echo "$as_me: failed program was:" >&5 8927cat conftest.$ac_ext >&5 8928fi 8929rm -f conftest.$ac_objext conftest.$ac_ext 8930fi 8931rm -f conftest.$ac_objext conftest.$ac_ext 8932 else 8933 cf_cv_type_fd_mask=$cf_cv_type_fd_set 8934 fi 8935 8936fi 8937echo "$as_me:8937: result: $cf_cv_type_fd_mask" >&5 8938echo "${ECHO_T}$cf_cv_type_fd_mask" >&6 8939if test x$cf_cv_type_fd_mask = xCSRG_BASED ; then 8940 cat >>confdefs.h <<\EOF 8941#define CSRG_BASED 1 8942EOF 8943 8944fi 8945 8946echo "$as_me:8946: checking for IRIX 6.5 baud-rate redefinitions" >&5 8947echo $ECHO_N "checking for IRIX 6.5 baud-rate redefinitions... $ECHO_C" >&6 8948if test "${cf_cv_termio_c_ispeed+set}" = set; then 8949 echo $ECHO_N "(cached) $ECHO_C" >&6 8950else 8951 8952cat >conftest.$ac_ext <<_ACEOF 8953#line 8953 "configure" 8954#include "confdefs.h" 8955 8956#include <sys/types.h> 8957#include <sys/termio.h> 8958int 8959main () 8960{ 8961 8962struct termio foo; 8963foo.c_ispeed = B38400; 8964foo.c_ospeed = B9600; 8965 8966 ; 8967 return 0; 8968} 8969_ACEOF 8970rm -f conftest.$ac_objext 8971if { (eval echo "$as_me:8971: \"$ac_compile\"") >&5 8972 (eval $ac_compile) 2>&5 8973 ac_status=$? 8974 echo "$as_me:8974: \$? = $ac_status" >&5 8975 (exit $ac_status); } && 8976 { ac_try='test -s conftest.$ac_objext' 8977 { (eval echo "$as_me:8977: \"$ac_try\"") >&5 8978 (eval $ac_try) 2>&5 8979 ac_status=$? 8980 echo "$as_me:8980: \$? = $ac_status" >&5 8981 (exit $ac_status); }; }; then 8982 cf_cv_termio_c_ispeed=yes 8983 8984else 8985 echo "$as_me: failed program was:" >&5 8986cat conftest.$ac_ext >&5 8987cf_cv_termio_c_ispeed=no 8988fi 8989rm -f conftest.$ac_objext conftest.$ac_ext 8990 8991fi 8992echo "$as_me:8992: result: $cf_cv_termio_c_ispeed" >&5 8993echo "${ECHO_T}$cf_cv_termio_c_ispeed" >&6 8994test "$cf_cv_termio_c_ispeed" = yes && cat >>confdefs.h <<\EOF 8995#define HAVE_TERMIO_C_ISPEED 1 8996EOF 8997 8998LIBS="$LIBS $X_EXTRA_LIBS" 8999 9000# Check for openpty() in -lutil if the UNIX98-style pty functions are not 9001# available. E.g. for GNU libc 2.0. 9002case $host_os in #(vi 9003freebsd*|netbsd*|dragonfly*) # 2004/8/15 - revisit this if/when grantpt is known to work. 9004 9005echo "$as_me:9005: checking for openpty in -lutil" >&5 9006echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 9007if test "${ac_cv_lib_util_openpty+set}" = set; then 9008 echo $ECHO_N "(cached) $ECHO_C" >&6 9009else 9010 ac_check_lib_save_LIBS=$LIBS 9011LIBS="-lutil $LIBS" 9012cat >conftest.$ac_ext <<_ACEOF 9013#line 9013 "configure" 9014#include "confdefs.h" 9015 9016/* Override any gcc2 internal prototype to avoid an error. */ 9017#ifdef __cplusplus 9018extern "C" 9019#endif 9020/* We use char because int might match the return type of a gcc2 9021 builtin and then its argument prototype would still apply. */ 9022char openpty (); 9023int 9024main () 9025{ 9026openpty (); 9027 ; 9028 return 0; 9029} 9030_ACEOF 9031rm -f conftest.$ac_objext conftest$ac_exeext 9032if { (eval echo "$as_me:9032: \"$ac_link\"") >&5 9033 (eval $ac_link) 2>&5 9034 ac_status=$? 9035 echo "$as_me:9035: \$? = $ac_status" >&5 9036 (exit $ac_status); } && 9037 { ac_try='test -s conftest$ac_exeext' 9038 { (eval echo "$as_me:9038: \"$ac_try\"") >&5 9039 (eval $ac_try) 2>&5 9040 ac_status=$? 9041 echo "$as_me:9041: \$? = $ac_status" >&5 9042 (exit $ac_status); }; }; then 9043 ac_cv_lib_util_openpty=yes 9044else 9045 echo "$as_me: failed program was:" >&5 9046cat conftest.$ac_ext >&5 9047ac_cv_lib_util_openpty=no 9048fi 9049rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9050LIBS=$ac_check_lib_save_LIBS 9051fi 9052echo "$as_me:9052: result: $ac_cv_lib_util_openpty" >&5 9053echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 9054if test $ac_cv_lib_util_openpty = yes; then 9055 cat >>confdefs.h <<EOF 9056#define HAVE_LIBUTIL 1 9057EOF 9058 9059 LIBS="-lutil $LIBS" 9060 9061fi 9062 9063 ;; 9064*) 9065 9066for ac_func in grantpt 9067do 9068as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9069echo "$as_me:9069: checking for $ac_func" >&5 9070echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9071if eval "test \"\${$as_ac_var+set}\" = set"; then 9072 echo $ECHO_N "(cached) $ECHO_C" >&6 9073else 9074 cat >conftest.$ac_ext <<_ACEOF 9075#line 9075 "configure" 9076#include "confdefs.h" 9077/* System header to define __stub macros and hopefully few prototypes, 9078 which can conflict with char $ac_func (); below. */ 9079#include <assert.h> 9080/* Override any gcc2 internal prototype to avoid an error. */ 9081#ifdef __cplusplus 9082extern "C" 9083#endif 9084/* We use char because int might match the return type of a gcc2 9085 builtin and then its argument prototype would still apply. */ 9086char $ac_func (); 9087char (*f) (); 9088 9089int 9090main () 9091{ 9092/* The GNU C library defines this for functions which it implements 9093 to always fail with ENOSYS. Some functions are actually named 9094 something starting with __ and the normal name is an alias. */ 9095#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9096choke me 9097#else 9098f = $ac_func; 9099#endif 9100 9101 ; 9102 return 0; 9103} 9104_ACEOF 9105rm -f conftest.$ac_objext conftest$ac_exeext 9106if { (eval echo "$as_me:9106: \"$ac_link\"") >&5 9107 (eval $ac_link) 2>&5 9108 ac_status=$? 9109 echo "$as_me:9109: \$? = $ac_status" >&5 9110 (exit $ac_status); } && 9111 { ac_try='test -s conftest$ac_exeext' 9112 { (eval echo "$as_me:9112: \"$ac_try\"") >&5 9113 (eval $ac_try) 2>&5 9114 ac_status=$? 9115 echo "$as_me:9115: \$? = $ac_status" >&5 9116 (exit $ac_status); }; }; then 9117 eval "$as_ac_var=yes" 9118else 9119 echo "$as_me: failed program was:" >&5 9120cat conftest.$ac_ext >&5 9121eval "$as_ac_var=no" 9122fi 9123rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9124fi 9125echo "$as_me:9125: result: `eval echo '${'$as_ac_var'}'`" >&5 9126echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9127if test `eval echo '${'$as_ac_var'}'` = yes; then 9128 cat >>confdefs.h <<EOF 9129#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9130EOF 9131 9132else 9133 9134echo "$as_me:9134: checking for openpty in -lutil" >&5 9135echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 9136if test "${ac_cv_lib_util_openpty+set}" = set; then 9137 echo $ECHO_N "(cached) $ECHO_C" >&6 9138else 9139 ac_check_lib_save_LIBS=$LIBS 9140LIBS="-lutil $LIBS" 9141cat >conftest.$ac_ext <<_ACEOF 9142#line 9142 "configure" 9143#include "confdefs.h" 9144 9145/* Override any gcc2 internal prototype to avoid an error. */ 9146#ifdef __cplusplus 9147extern "C" 9148#endif 9149/* We use char because int might match the return type of a gcc2 9150 builtin and then its argument prototype would still apply. */ 9151char openpty (); 9152int 9153main () 9154{ 9155openpty (); 9156 ; 9157 return 0; 9158} 9159_ACEOF 9160rm -f conftest.$ac_objext conftest$ac_exeext 9161if { (eval echo "$as_me:9161: \"$ac_link\"") >&5 9162 (eval $ac_link) 2>&5 9163 ac_status=$? 9164 echo "$as_me:9164: \$? = $ac_status" >&5 9165 (exit $ac_status); } && 9166 { ac_try='test -s conftest$ac_exeext' 9167 { (eval echo "$as_me:9167: \"$ac_try\"") >&5 9168 (eval $ac_try) 2>&5 9169 ac_status=$? 9170 echo "$as_me:9170: \$? = $ac_status" >&5 9171 (exit $ac_status); }; }; then 9172 ac_cv_lib_util_openpty=yes 9173else 9174 echo "$as_me: failed program was:" >&5 9175cat conftest.$ac_ext >&5 9176ac_cv_lib_util_openpty=no 9177fi 9178rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9179LIBS=$ac_check_lib_save_LIBS 9180fi 9181echo "$as_me:9181: result: $ac_cv_lib_util_openpty" >&5 9182echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 9183if test $ac_cv_lib_util_openpty = yes; then 9184 cat >>confdefs.h <<EOF 9185#define HAVE_LIBUTIL 1 9186EOF 9187 9188 LIBS="-lutil $LIBS" 9189 9190fi 9191 9192fi 9193done 9194 9195 ;; 9196esac 9197 9198echo "$as_me:9198: checking for XKB Bell extension" >&5 9199echo $ECHO_N "checking for XKB Bell extension... $ECHO_C" >&6 9200if test "${cf_cv_xkb_bell_ext+set}" = set; then 9201 echo $ECHO_N "(cached) $ECHO_C" >&6 9202else 9203 9204cat >conftest.$ac_ext <<_ACEOF 9205#line 9205 "configure" 9206#include "confdefs.h" 9207 9208#include <X11/Intrinsic.h> 9209#include <X11/XKBlib.h> /* has the prototype */ 9210#include <X11/extensions/XKBbells.h> /* has the XkbBI_xxx definitions */ 9211 9212int 9213main () 9214{ 9215 9216 int x = (XkbBI_Info |XkbBI_MinorError |XkbBI_MajorError |XkbBI_TerminalBell |XkbBI_MarginBell); 9217 Atom y; 9218 XkbBell((Display *)0, (Widget)0, 0, y); 9219 9220 ; 9221 return 0; 9222} 9223_ACEOF 9224rm -f conftest.$ac_objext conftest$ac_exeext 9225if { (eval echo "$as_me:9225: \"$ac_link\"") >&5 9226 (eval $ac_link) 2>&5 9227 ac_status=$? 9228 echo "$as_me:9228: \$? = $ac_status" >&5 9229 (exit $ac_status); } && 9230 { ac_try='test -s conftest$ac_exeext' 9231 { (eval echo "$as_me:9231: \"$ac_try\"") >&5 9232 (eval $ac_try) 2>&5 9233 ac_status=$? 9234 echo "$as_me:9234: \$? = $ac_status" >&5 9235 (exit $ac_status); }; }; then 9236 cf_cv_xkb_bell_ext=yes 9237else 9238 echo "$as_me: failed program was:" >&5 9239cat conftest.$ac_ext >&5 9240cf_cv_xkb_bell_ext=no 9241fi 9242rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9243 9244fi 9245echo "$as_me:9245: result: $cf_cv_xkb_bell_ext" >&5 9246echo "${ECHO_T}$cf_cv_xkb_bell_ext" >&6 9247test "$cf_cv_xkb_bell_ext" = yes && cat >>confdefs.h <<\EOF 9248#define HAVE_XKB_BELL_EXT 1 9249EOF 9250 9251for ac_func in Xutf8LookupString 9252do 9253as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9254echo "$as_me:9254: checking for $ac_func" >&5 9255echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9256if eval "test \"\${$as_ac_var+set}\" = set"; then 9257 echo $ECHO_N "(cached) $ECHO_C" >&6 9258else 9259 cat >conftest.$ac_ext <<_ACEOF 9260#line 9260 "configure" 9261#include "confdefs.h" 9262/* System header to define __stub macros and hopefully few prototypes, 9263 which can conflict with char $ac_func (); below. */ 9264#include <assert.h> 9265/* Override any gcc2 internal prototype to avoid an error. */ 9266#ifdef __cplusplus 9267extern "C" 9268#endif 9269/* We use char because int might match the return type of a gcc2 9270 builtin and then its argument prototype would still apply. */ 9271char $ac_func (); 9272char (*f) (); 9273 9274int 9275main () 9276{ 9277/* The GNU C library defines this for functions which it implements 9278 to always fail with ENOSYS. Some functions are actually named 9279 something starting with __ and the normal name is an alias. */ 9280#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9281choke me 9282#else 9283f = $ac_func; 9284#endif 9285 9286 ; 9287 return 0; 9288} 9289_ACEOF 9290rm -f conftest.$ac_objext conftest$ac_exeext 9291if { (eval echo "$as_me:9291: \"$ac_link\"") >&5 9292 (eval $ac_link) 2>&5 9293 ac_status=$? 9294 echo "$as_me:9294: \$? = $ac_status" >&5 9295 (exit $ac_status); } && 9296 { ac_try='test -s conftest$ac_exeext' 9297 { (eval echo "$as_me:9297: \"$ac_try\"") >&5 9298 (eval $ac_try) 2>&5 9299 ac_status=$? 9300 echo "$as_me:9300: \$? = $ac_status" >&5 9301 (exit $ac_status); }; }; then 9302 eval "$as_ac_var=yes" 9303else 9304 echo "$as_me: failed program was:" >&5 9305cat conftest.$ac_ext >&5 9306eval "$as_ac_var=no" 9307fi 9308rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9309fi 9310echo "$as_me:9310: result: `eval echo '${'$as_ac_var'}'`" >&5 9311echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9312if test `eval echo '${'$as_ac_var'}'` = yes; then 9313 cat >>confdefs.h <<EOF 9314#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9315EOF 9316 9317else 9318 9319 EXTRAHDRS="$EXTRAHDRS xutf8.h" 9320 EXTRASRCS="$EXTRASRCS xutf8.c" 9321 EXTRAOBJS="$EXTRAOBJS xutf8.o" 9322 9323fi 9324done 9325 9326echo "$as_me:9326: checking if you want narrow prototypes for X libraries" >&5 9327echo $ECHO_N "checking if you want narrow prototypes for X libraries... $ECHO_C" >&6 9328 9329case `$ac_config_guess` in #(vi 9330*cygwin*|*freebsd*|*gnu*|*irix5*|*irix6*|*linux-gnu*|*netbsd*|*openbsd*|*qnx*|*sco*|*sgi*) #(vi 9331 cf_default_narrowproto=yes 9332 ;; 9333*) 9334 cf_default_narrowproto=no 9335 ;; 9336esac 9337 9338# Check whether --enable-narrowproto or --disable-narrowproto was given. 9339if test "${enable_narrowproto+set}" = set; then 9340 enableval="$enable_narrowproto" 9341 test "$enableval" != no && enableval=yes 9342 if test "$enableval" != "$cf_default_narrowproto" ; then 9343 enable_narrowproto=$enableval 9344 else 9345 enable_narrowproto=$cf_default_narrowproto 9346 fi 9347else 9348 enableval=$cf_default_narrowproto 9349 enable_narrowproto=$cf_default_narrowproto 9350 9351fi; 9352echo "$as_me:9352: result: $enable_narrowproto" >&5 9353echo "${ECHO_T}$enable_narrowproto" >&6 9354 9355echo "$as_me:9355: checking if we should use imake to help" >&5 9356echo $ECHO_N "checking if we should use imake to help... $ECHO_C" >&6 9357 9358# Check whether --enable-imake or --disable-imake was given. 9359if test "${enable_imake+set}" = set; then 9360 enableval="$enable_imake" 9361 test "$enableval" != no && enableval=yes 9362 if test "$enableval" != "yes" ; then 9363 enable_imake=no 9364 else 9365 enable_imake=yes 9366 fi 9367else 9368 enableval=yes 9369 enable_imake=yes 9370 9371fi; 9372echo "$as_me:9372: result: $enable_imake" >&5 9373echo "${ECHO_T}$enable_imake" >&6 9374 9375if test "$enable_imake" = yes ; then 9376 9377for ac_prog in xmkmf imake 9378do 9379 # Extract the first word of "$ac_prog", so it can be a program name with args. 9380set dummy $ac_prog; ac_word=$2 9381echo "$as_me:9381: checking for $ac_word" >&5 9382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9383if test "${ac_cv_path_IMAKE+set}" = set; then 9384 echo $ECHO_N "(cached) $ECHO_C" >&6 9385else 9386 case $IMAKE in 9387 [\\/]* | ?:[\\/]*) 9388 ac_cv_path_IMAKE="$IMAKE" # Let the user override the test with a path. 9389 ;; 9390 *) 9391 ac_save_IFS=$IFS; IFS=$ac_path_separator 9392ac_dummy="$PATH" 9393for ac_dir in $ac_dummy; do 9394 IFS=$ac_save_IFS 9395 test -z "$ac_dir" && ac_dir=. 9396 if $as_executable_p "$ac_dir/$ac_word"; then 9397 ac_cv_path_IMAKE="$ac_dir/$ac_word" 9398 echo "$as_me:9398: found $ac_dir/$ac_word" >&5 9399 break 9400fi 9401done 9402 9403 ;; 9404esac 9405fi 9406IMAKE=$ac_cv_path_IMAKE 9407 9408if test -n "$IMAKE"; then 9409 echo "$as_me:9409: result: $IMAKE" >&5 9410echo "${ECHO_T}$IMAKE" >&6 9411else 9412 echo "$as_me:9412: result: no" >&5 9413echo "${ECHO_T}no" >&6 9414fi 9415 9416 test -n "$IMAKE" && break 9417done 9418 9419if test -n "$IMAKE" ; then 9420 9421case $IMAKE in # (vi 9422*/imake) 9423 cf_imake_opts="-DUseInstalled=YES" # (vi 9424 ;; 9425*/util/xmkmf) 9426 # A single parameter tells xmkmf where the config-files are: 9427 cf_imake_opts="`echo $IMAKE|sed -e s,/config/util/xmkmf,,`" # (vi 9428 ;; 9429*) 9430 cf_imake_opts= 9431 ;; 9432esac 9433 9434# If it's installed properly, imake (or its wrapper, xmkmf) will point to the 9435# config directory. 9436if mkdir conftestdir; then 9437 CDPATH=; export CDPATH 9438 cf_makefile=`cd $srcdir;pwd`/Imakefile 9439 cd conftestdir 9440 9441 cat >fix_cflags.sed <<'CF_EOF' 9442s/\\//g 9443s/[ ][ ]*/ /g 9444s/"//g 9445:pack 9446s/\(=[^ ][^ ]*\) \([^-]\)/\1 \2/g 9447t pack 9448s/\(-D[a-zA-Z0-9_][a-zA-Z0-9_]*\)=\([^\'0-9 ][^ ]*\)/\1='\\"\2\\"'/g 9449s/^IMAKE[ ]/IMAKE_CFLAGS="/ 9450s/ / /g 9451s/$/"/ 9452CF_EOF 9453 9454 cat >fix_lflags.sed <<'CF_EOF' 9455s/^IMAKE[ ]*/IMAKE_LOADFLAGS="/ 9456s/$/"/ 9457CF_EOF 9458 9459 echo >./Imakefile 9460 test -f $cf_makefile && cat $cf_makefile >>./Imakefile 9461 9462 cat >> ./Imakefile <<'CF_EOF' 9463findstddefs: 9464 @echo IMAKE ${ALLDEFINES} $(MAIN_DEFINES) $(VENDORMANDEFS) | sed -f fix_cflags.sed 9465 @echo IMAKE ${EXTRA_LOAD_FLAGS} | sed -f fix_lflags.sed 9466CF_EOF 9467 9468 if ( $IMAKE $cf_imake_opts 1>/dev/null 2>&5 && test -f Makefile) 9469 then 9470 test -n "$verbose" && echo " Using $IMAKE $cf_imake_opts" 1>&6 9471 9472echo "${as_me-configure}:9472: testing Using $IMAKE $cf_imake_opts ..." 1>&5 9473 9474 else 9475 # sometimes imake doesn't have the config path compiled in. Find it. 9476 cf_config= 9477 for cf_libpath in $X_LIBS $LIBS ; do 9478 case $cf_libpath in # (vi 9479 -L*) 9480 cf_libpath=`echo .$cf_libpath | sed -e 's/^...//'` 9481 cf_libpath=$cf_libpath/X11/config 9482 if test -d $cf_libpath ; then 9483 cf_config=$cf_libpath 9484 break 9485 fi 9486 ;; 9487 esac 9488 done 9489 if test -z "$cf_config" ; then 9490 { echo "$as_me:9490: WARNING: Could not find imake config-directory" >&5 9491echo "$as_me: WARNING: Could not find imake config-directory" >&2;} 9492 else 9493 cf_imake_opts="$cf_imake_opts -I$cf_config" 9494 if ( $IMAKE -v $cf_imake_opts 2>&5) 9495 then 9496 test -n "$verbose" && echo " Using $IMAKE $cf_config" 1>&6 9497 9498echo "${as_me-configure}:9498: testing Using $IMAKE $cf_config ..." 1>&5 9499 9500 else 9501 { echo "$as_me:9501: WARNING: Cannot run $IMAKE" >&5 9502echo "$as_me: WARNING: Cannot run $IMAKE" >&2;} 9503 fi 9504 fi 9505 fi 9506 9507 # GNU make sometimes prints "make[1]: Entering...", which 9508 # would confuse us. 9509 eval `make findstddefs 2>/dev/null | grep -v make` 9510 9511 cd .. 9512 rm -rf conftestdir 9513 9514 # We use ${ALLDEFINES} rather than ${STD_DEFINES} because the former 9515 # declares XTFUNCPROTO there. However, some vendors (e.g., SGI) have 9516 # modified it to support site.cf, adding a kludge for the /usr/include 9517 # directory. Try to filter that out, otherwise gcc won't find its 9518 # headers. 9519 if test -n "$GCC" ; then 9520 if test -n "$IMAKE_CFLAGS" ; then 9521 cf_nostdinc="" 9522 cf_std_incl="" 9523 cf_cpp_opts="" 9524 for cf_opt in $IMAKE_CFLAGS 9525 do 9526 case "$cf_opt" in 9527 -nostdinc) #(vi 9528 cf_nostdinc="$cf_opt" 9529 ;; 9530 -I/usr/include) #(vi 9531 cf_std_incl="$cf_opt" 9532 ;; 9533 *) #(vi 9534 cf_cpp_opts="$cf_cpp_opts $cf_opt" 9535 ;; 9536 esac 9537 done 9538 if test -z "$cf_nostdinc" ; then 9539 IMAKE_CFLAGS="$cf_cpp_opts $cf_std_incl" 9540 elif test -z "$cf_std_incl" ; then 9541 IMAKE_CFLAGS="$cf_cpp_opts $cf_nostdinc" 9542 else 9543 test -n "$verbose" && echo " suppressed \"$cf_nostdinc\" and \"$cf_std_incl\"" 1>&6 9544 9545echo "${as_me-configure}:9545: testing suppressed \"$cf_nostdinc\" and \"$cf_std_incl\" ..." 1>&5 9546 9547 IMAKE_CFLAGS="$cf_cpp_opts" 9548 fi 9549 fi 9550 fi 9551fi 9552 9553# Some imake configurations define PROJECTROOT with an empty value. Remove 9554# the empty definition. 9555case $IMAKE_CFLAGS in 9556*-DPROJECTROOT=/*) 9557 ;; 9558*) 9559 IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" |sed -e "s,-DPROJECTROOT=[ ], ,"` 9560 ;; 9561esac 9562 9563fi 9564 9565test -n "$verbose" && echo " IMAKE_CFLAGS $IMAKE_CFLAGS" 1>&6 9566 9567echo "${as_me-configure}:9567: testing IMAKE_CFLAGS $IMAKE_CFLAGS ..." 1>&5 9568 9569test -n "$verbose" && echo " IMAKE_LOADFLAGS $IMAKE_LOADFLAGS" 1>&6 9570 9571echo "${as_me-configure}:9571: testing IMAKE_LOADFLAGS $IMAKE_LOADFLAGS ..." 1>&5 9572 9573fi 9574 9575if test -n "$IMAKE" && test -n "$IMAKE_CFLAGS" ; then 9576 9577cf_fix_cppflags=no 9578cf_new_cflags= 9579cf_new_cppflags= 9580cf_new_extra_cppflags= 9581 9582for cf_add_cflags in $IMAKE_CFLAGS 9583do 9584case $cf_fix_cppflags in 9585no) 9586 case $cf_add_cflags in #(vi 9587 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 9588 case $cf_add_cflags in 9589 -D*) 9590 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 9591 9592 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 9593 && test -z "${cf_tst_cflags}" \ 9594 && cf_fix_cppflags=yes 9595 9596 if test $cf_fix_cppflags = yes ; then 9597 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9598 continue 9599 elif test "${cf_tst_cflags}" = "\"'" ; then 9600 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9601 continue 9602 fi 9603 ;; 9604 esac 9605 case "$CPPFLAGS" in 9606 *$cf_add_cflags) #(vi 9607 ;; 9608 *) #(vi 9609 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 9610 ;; 9611 esac 9612 ;; 9613 *) 9614 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 9615 ;; 9616 esac 9617 ;; 9618yes) 9619 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9620 9621 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 9622 9623 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 9624 && test -z "${cf_tst_cflags}" \ 9625 && cf_fix_cppflags=no 9626 ;; 9627esac 9628done 9629 9630if test -n "$cf_new_cflags" ; then 9631 9632 CFLAGS="$CFLAGS $cf_new_cflags" 9633fi 9634 9635if test -n "$cf_new_cppflags" ; then 9636 9637 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 9638fi 9639 9640if test -n "$cf_new_extra_cppflags" ; then 9641 9642 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 9643fi 9644 9645else 9646 IMAKE_CFLAGS= 9647 IMAKE_LOADFLAGS= 9648 test -n "$verbose" && echo " make fallback definitions" 1>&6 9649 9650echo "${as_me-configure}:9650: testing make fallback definitions ..." 1>&5 9651 9652 # We prefer config.guess' values when we can get them, to avoid 9653 # inconsistent results with uname (AIX for instance). However, 9654 # config.guess is not always consistent either. 9655 case $host_os in 9656 *[0-9].[0-9]*) 9657 UNAME_RELEASE="$host_os" 9658 ;; 9659 *) 9660 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown 9661 ;; 9662 esac 9663 9664 case .$UNAME_RELEASE in 9665 *[0-9].[0-9]*) 9666 OSMAJORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/\..*//'` 9667 OSMINORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/^[^.]*\.//' -e 's/\..*//' -e 's/[^0-9].*//' ` 9668 test -z "$OSMAJORVERSION" && OSMAJORVERSION=1 9669 test -z "$OSMINORVERSION" && OSMINORVERSION=0 9670 IMAKE_CFLAGS="-DOSMAJORVERSION=$OSMAJORVERSION -DOSMINORVERSION=$OSMINORVERSION $IMAKE_CFLAGS" 9671 ;; 9672 esac 9673 9674 # FUNCPROTO is standard with X11R6, but XFree86 drops it, leaving some 9675 # fallback/fragments for NeedPrototypes, etc. 9676 IMAKE_CFLAGS="-DFUNCPROTO=15 $IMAKE_CFLAGS" 9677 9678 # If this is not set properly, Xaw's scrollbars will not work 9679 if test "$enable_narrowproto" = yes ; then 9680 IMAKE_CFLAGS="-DNARROWPROTO=1 $IMAKE_CFLAGS" 9681 fi 9682 9683 # Other special definitions: 9684 case $host_os in 9685 aix*) 9686 # imake on AIX 5.1 defines AIXV3. really. 9687 IMAKE_CFLAGS="-DAIXV3 -DAIXV4 $IMAKE_CFLAGS" 9688 ;; 9689 irix[56].*) #(vi 9690 # these are needed to make SIGWINCH work in xterm 9691 IMAKE_CFLAGS="-DSYSV -DSVR4 $IMAKE_CFLAGS" 9692 ;; 9693 esac 9694 9695cf_fix_cppflags=no 9696cf_new_cflags= 9697cf_new_cppflags= 9698cf_new_extra_cppflags= 9699 9700for cf_add_cflags in $IMAKE_CFLAGS 9701do 9702case $cf_fix_cppflags in 9703no) 9704 case $cf_add_cflags in #(vi 9705 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 9706 case $cf_add_cflags in 9707 -D*) 9708 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 9709 9710 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 9711 && test -z "${cf_tst_cflags}" \ 9712 && cf_fix_cppflags=yes 9713 9714 if test $cf_fix_cppflags = yes ; then 9715 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9716 continue 9717 elif test "${cf_tst_cflags}" = "\"'" ; then 9718 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9719 continue 9720 fi 9721 ;; 9722 esac 9723 case "$CPPFLAGS" in 9724 *$cf_add_cflags) #(vi 9725 ;; 9726 *) #(vi 9727 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 9728 ;; 9729 esac 9730 ;; 9731 *) 9732 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 9733 ;; 9734 esac 9735 ;; 9736yes) 9737 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9738 9739 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 9740 9741 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 9742 && test -z "${cf_tst_cflags}" \ 9743 && cf_fix_cppflags=no 9744 ;; 9745esac 9746done 9747 9748if test -n "$cf_new_cflags" ; then 9749 9750 CFLAGS="$CFLAGS $cf_new_cflags" 9751fi 9752 9753if test -n "$cf_new_cppflags" ; then 9754 9755 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 9756fi 9757 9758if test -n "$cf_new_extra_cppflags" ; then 9759 9760 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 9761fi 9762 9763fi 9764 9765echo "$as_me:9765: checking for default terminal-id" >&5 9766echo $ECHO_N "checking for default terminal-id... $ECHO_C" >&6 9767 9768# Check whether --with-terminal-id or --without-terminal-id was given. 9769if test "${with_terminal_id+set}" = set; then 9770 withval="$with_terminal_id" 9771 default_termid=$withval 9772else 9773 default_termid=vt100 9774fi; 9775echo "$as_me:9775: result: $default_termid" >&5 9776echo "${ECHO_T}$default_termid" >&6 9777case $default_termid in 9778vt*) default_termid=`echo $default_termid | sed -e 's/^..//'` 9779 ;; 9780esac 9781cat >>confdefs.h <<EOF 9782#define DFT_DECID "$default_termid" 9783EOF 9784 9785echo "$as_me:9785: checking for default terminal-type" >&5 9786echo $ECHO_N "checking for default terminal-type... $ECHO_C" >&6 9787 9788# Check whether --with-terminal-type or --without-terminal-type was given. 9789if test "${with_terminal_type+set}" = set; then 9790 withval="$with_terminal_type" 9791 default_TERM=$withval 9792else 9793 default_TERM=xterm 9794fi; 9795echo "$as_me:9795: result: $default_TERM" >&5 9796echo "${ECHO_T}$default_TERM" >&6 9797cat >>confdefs.h <<EOF 9798#define DFT_TERMTYPE "$default_TERM" 9799EOF 9800 9801echo "$as_me:9801: checking for private terminfo-directory" >&5 9802echo $ECHO_N "checking for private terminfo-directory... $ECHO_C" >&6 9803 9804# Check whether --with-own-terminfo or --without-own-terminfo was given. 9805if test "${with_own_terminfo+set}" = set; then 9806 withval="$with_own_terminfo" 9807 TERMINFO_DIR=$withval 9808else 9809 TERMINFO_DIR=${TERMINFO-none} 9810fi; 9811echo "$as_me:9811: result: $TERMINFO_DIR" >&5 9812echo "${ECHO_T}$TERMINFO_DIR" >&6 9813if test "$TERMINFO_DIR" = yes ; then 9814 { echo "$as_me:9814: WARNING: no value given" >&5 9815echo "$as_me: WARNING: no value given" >&2;} 9816elif test "$TERMINFO_DIR" != none ; then 9817 if test -d $TERMINFO_DIR ; then 9818 cat >>confdefs.h <<EOF 9819#define OWN_TERMINFO_DIR "$TERMINFO_DIR" 9820EOF 9821 9822 else 9823 { echo "$as_me:9823: WARNING: not a directory" >&5 9824echo "$as_me: WARNING: not a directory" >&2;} 9825 fi 9826elif test "$prefix" != NONE ; then 9827 TERMINFO_DIR='${prefix}/lib/terminfo' 9828elif test -d /usr/lib/terminfo ; then 9829 TERMINFO_DIR=/usr/lib/terminfo 9830else 9831 TERMINFO_DIR= 9832fi 9833SET_TERMINFO= 9834if test -n "$TERMINFO_DIR" ; then 9835 TERMINFO_DIR='$(DESTDIR)'$TERMINFO_DIR 9836 SET_TERMINFO='TERMINFO=$(TERMINFO_DIR)' 9837fi 9838 9839############################################################################### 9840 9841echo "$as_me:9841: checking if you want active-icons" >&5 9842echo $ECHO_N "checking if you want active-icons... $ECHO_C" >&6 9843 9844# Check whether --enable-active-icon or --disable-active-icon was given. 9845if test "${enable_active_icon+set}" = set; then 9846 enableval="$enable_active_icon" 9847 test "$enableval" != no && enableval=yes 9848 if test "$enableval" != "yes" ; then 9849 enable_active_icon=no 9850 else 9851 enable_active_icon=yes 9852 fi 9853else 9854 enableval=yes 9855 enable_active_icon=yes 9856 9857fi; 9858echo "$as_me:9858: result: $enable_active_icon" >&5 9859echo "${ECHO_T}$enable_active_icon" >&6 9860if test "$enable_active_icon" = no ; then 9861 cat >>confdefs.h <<\EOF 9862#define NO_ACTIVE_ICON 1 9863EOF 9864 9865fi 9866 9867echo "$as_me:9867: checking if you want ANSI color" >&5 9868echo $ECHO_N "checking if you want ANSI color... $ECHO_C" >&6 9869 9870# Check whether --enable-ansi-color or --disable-ansi-color was given. 9871if test "${enable_ansi_color+set}" = set; then 9872 enableval="$enable_ansi_color" 9873 test "$enableval" != no && enableval=yes 9874 if test "$enableval" != "yes" ; then 9875 enable_ansi_color=no 9876 else 9877 enable_ansi_color=yes 9878 fi 9879else 9880 enableval=yes 9881 enable_ansi_color=yes 9882 9883fi; 9884echo "$as_me:9884: result: $enable_ansi_color" >&5 9885echo "${ECHO_T}$enable_ansi_color" >&6 9886test "$enable_ansi_color" = no && cat >>confdefs.h <<\EOF 9887#define OPT_ISO_COLORS 0 9888EOF 9889 9890if test "$enable_ansi_color" = yes ; then 9891 9892 echo "$as_me:9892: checking if you want 16 colors like aixterm" >&5 9893echo $ECHO_N "checking if you want 16 colors like aixterm... $ECHO_C" >&6 9894 9895# Check whether --enable-16-color or --disable-16-color was given. 9896if test "${enable_16_color+set}" = set; then 9897 enableval="$enable_16_color" 9898 test "$enableval" != no && enableval=yes 9899 if test "$enableval" != "yes" ; then 9900 enable_16_color=no 9901 else 9902 enable_16_color=yes 9903 fi 9904else 9905 enableval=yes 9906 enable_16_color=yes 9907 9908fi; 9909 echo "$as_me:9909: result: $enable_16_color" >&5 9910echo "${ECHO_T}$enable_16_color" >&6 9911 test "$enable_16_color" = no && cat >>confdefs.h <<\EOF 9912#define OPT_AIX_COLORS 0 9913EOF 9914 9915 echo "$as_me:9915: checking if you want 256 colors" >&5 9916echo $ECHO_N "checking if you want 256 colors... $ECHO_C" >&6 9917 9918# Check whether --enable-256-color or --disable-256-color was given. 9919if test "${enable_256_color+set}" = set; then 9920 enableval="$enable_256_color" 9921 test "$enableval" != yes && enableval=no 9922 if test "$enableval" != "no" ; then 9923 enable_256_color=yes 9924 else 9925 enable_256_color=no 9926 fi 9927else 9928 enableval=no 9929 enable_256_color=no 9930 9931fi; 9932 echo "$as_me:9932: result: $enable_256_color" >&5 9933echo "${ECHO_T}$enable_256_color" >&6 9934 if test "$enable_256_color" = yes ; then 9935 CHARPROC_DEPS="$CHARPROC_DEPS 256colres.h" 9936 EXTRAHDRS="$EXTRAHDRS 256colres.h" 9937 cat >>confdefs.h <<\EOF 9938#define OPT_256_COLORS 1 9939EOF 9940 9941 else 9942 echo "$as_me:9942: checking if you want 88 colors" >&5 9943echo $ECHO_N "checking if you want 88 colors... $ECHO_C" >&6 9944 9945# Check whether --enable-88-color or --disable-88-color was given. 9946if test "${enable_88_color+set}" = set; then 9947 enableval="$enable_88_color" 9948 test "$enableval" != yes && enableval=no 9949 if test "$enableval" != "no" ; then 9950 enable_88_color=yes 9951 else 9952 enable_88_color=no 9953 fi 9954else 9955 enableval=no 9956 enable_88_color=no 9957 9958fi; 9959 echo "$as_me:9959: result: $enable_88_color" >&5 9960echo "${ECHO_T}$enable_88_color" >&6 9961 if test "$enable_88_color" = yes ; then 9962 CHARPROC_DEPS="$CHARPROC_DEPS 88colres.h" 9963 EXTRAHDRS="$EXTRAHDRS 88colres.h" 9964 cat >>confdefs.h <<\EOF 9965#define OPT_88_COLORS 1 9966EOF 9967 9968 fi 9969 fi 9970 9971fi 9972 9973echo "$as_me:9973: checking if you want blinking cursor" >&5 9974echo $ECHO_N "checking if you want blinking cursor... $ECHO_C" >&6 9975 9976# Check whether --enable-blink-cursor or --disable-blink-cursor was given. 9977if test "${enable_blink_cursor+set}" = set; then 9978 enableval="$enable_blink_cursor" 9979 test "$enableval" != no && enableval=yes 9980 if test "$enableval" != "yes" ; then 9981 enable_blink_curs=no 9982 else 9983 enable_blink_curs=yes 9984 fi 9985else 9986 enableval=yes 9987 enable_blink_curs=yes 9988 9989fi; 9990echo "$as_me:9990: result: $enable_blink_curs" >&5 9991echo "${ECHO_T}$enable_blink_curs" >&6 9992test "$enable_blink_curs" = no && cat >>confdefs.h <<\EOF 9993#define OPT_BLINK_CURS 0 9994EOF 9995 9996echo "$as_me:9996: checking if you want to ignore Linux's broken palette-strings" >&5 9997echo $ECHO_N "checking if you want to ignore Linux's broken palette-strings... $ECHO_C" >&6 9998 9999case $host_os in #(vi 10000linux*) 10001 assume_broken_osc=yes ;; #(vi 10002*) 10003 assume_broken_osc=no ;; 10004esac 10005 10006# Check whether --enable-broken-osc or --disable-broken-osc was given. 10007if test "${enable_broken_osc+set}" = set; then 10008 enableval="$enable_broken_osc" 10009 test "$enableval" != no && enableval=yes 10010 if test "$enableval" != "$assume_broken_osc" ; then 10011 enable_broken_osc=$enableval 10012 else 10013 enable_broken_osc=$enableval 10014 fi 10015else 10016 enableval=$assume_broken_osc 10017 enable_broken_osc=$enableval 10018 10019fi; 10020echo "$as_me:10020: result: $enable_broken_osc" >&5 10021echo "${ECHO_T}$enable_broken_osc" >&6 10022if test "$enable_broken_osc" = yes ; then 10023 cat >>confdefs.h <<\EOF 10024#define OPT_BROKEN_OSC 1 10025EOF 10026 10027else 10028 cat >>confdefs.h <<\EOF 10029#define OPT_BROKEN_OSC 0 10030EOF 10031 10032fi 10033 10034echo "$as_me:10034: checking if you want to allow broken string-terminators" >&5 10035echo $ECHO_N "checking if you want to allow broken string-terminators... $ECHO_C" >&6 10036 10037# Check whether --enable-broken-st or --disable-broken-st was given. 10038if test "${enable_broken_st+set}" = set; then 10039 enableval="$enable_broken_st" 10040 test "$enableval" != yes && enableval=no 10041 if test "$enableval" != "no" ; then 10042 enable_broken_st=yes 10043 else 10044 enable_broken_st=no 10045 fi 10046else 10047 enableval=no 10048 enable_broken_st=no 10049 10050fi; 10051echo "$as_me:10051: result: $enable_broken_st" >&5 10052echo "${ECHO_T}$enable_broken_st" >&6 10053test "$enable_broken_st" = no && cat >>confdefs.h <<\EOF 10054#define OPT_BROKEN_ST 0 10055EOF 10056 10057echo "$as_me:10057: checking if you want printable 128-159" >&5 10058echo $ECHO_N "checking if you want printable 128-159... $ECHO_C" >&6 10059 10060# Check whether --enable-c1-print or --disable-c1-print was given. 10061if test "${enable_c1_print+set}" = set; then 10062 enableval="$enable_c1_print" 10063 test "$enableval" != no && enableval=yes 10064 if test "$enableval" != "yes" ; then 10065 enable_c1_print=no 10066 else 10067 enable_c1_print=yes 10068 fi 10069else 10070 enableval=yes 10071 enable_c1_print=yes 10072 10073fi; 10074echo "$as_me:10074: result: $enable_c1_print" >&5 10075echo "${ECHO_T}$enable_c1_print" >&6 10076test "$enable_c1_print" = no && cat >>confdefs.h <<\EOF 10077#define OPT_C1_PRINT 0 10078EOF 10079 10080if test "$enable_ansi_color" = yes ; then 10081 10082 echo "$as_me:10082: checking if you want bold colors mapped like IBM PC" >&5 10083echo $ECHO_N "checking if you want bold colors mapped like IBM PC... $ECHO_C" >&6 10084 10085# Check whether --enable-bold-color or --disable-bold-color was given. 10086if test "${enable_bold_color+set}" = set; then 10087 enableval="$enable_bold_color" 10088 test "$enableval" != no && enableval=yes 10089 if test "$enableval" != "yes" ; then 10090 enable_pc_color=no 10091 else 10092 enable_pc_color=yes 10093 fi 10094else 10095 enableval=yes 10096 enable_pc_color=yes 10097 10098fi; 10099 echo "$as_me:10099: result: $enable_pc_color" >&5 10100echo "${ECHO_T}$enable_pc_color" >&6 10101 test "$enable_pc_color" = no && cat >>confdefs.h <<\EOF 10102#define OPT_PC_COLORS 0 10103EOF 10104 10105 echo "$as_me:10105: checking if you want separate color-classes" >&5 10106echo $ECHO_N "checking if you want separate color-classes... $ECHO_C" >&6 10107 10108# Check whether --enable-color-class or --disable-color-class was given. 10109if test "${enable_color_class+set}" = set; then 10110 enableval="$enable_color_class" 10111 test "$enableval" != no && enableval=yes 10112 if test "$enableval" != "yes" ; then 10113 enable_color_class=no 10114 else 10115 enable_color_class=yes 10116 fi 10117else 10118 enableval=yes 10119 enable_color_class=yes 10120 10121fi; 10122 echo "$as_me:10122: result: $enable_color_class" >&5 10123echo "${ECHO_T}$enable_color_class" >&6 10124 test "$enable_color_class" = no && cat >>confdefs.h <<\EOF 10125#define OPT_COLOR_CLASS FALSE 10126EOF 10127 10128 echo "$as_me:10128: checking if you want color-mode enabled by default" >&5 10129echo $ECHO_N "checking if you want color-mode enabled by default... $ECHO_C" >&6 10130 10131# Check whether --enable-color-mode or --disable-color-mode was given. 10132if test "${enable_color_mode+set}" = set; then 10133 enableval="$enable_color_mode" 10134 test "$enableval" != no && enableval=yes 10135 if test "$enableval" != "yes" ; then 10136 default_colormode=no 10137 else 10138 default_colormode=yes 10139 fi 10140else 10141 enableval=yes 10142 default_colormode=yes 10143 10144fi; 10145 echo "$as_me:10145: result: $default_colormode" >&5 10146echo "${ECHO_T}$default_colormode" >&6 10147 test "$default_colormode" = no && cat >>confdefs.h <<\EOF 10148#define DFT_COLORMODE FALSE 10149EOF 10150 10151fi 10152 10153echo "$as_me:10153: checking if you want support for color highlighting" >&5 10154echo $ECHO_N "checking if you want support for color highlighting... $ECHO_C" >&6 10155 10156# Check whether --enable-highlighting or --disable-highlighting was given. 10157if test "${enable_highlighting+set}" = set; then 10158 enableval="$enable_highlighting" 10159 test "$enableval" != no && enableval=yes 10160 if test "$enableval" != "yes" ; then 10161 default_highlight=no 10162 else 10163 default_highlight=yes 10164 fi 10165else 10166 enableval=yes 10167 default_highlight=yes 10168 10169fi; 10170echo "$as_me:10170: result: $default_highlight" >&5 10171echo "${ECHO_T}$default_highlight" >&6 10172test "$default_highlight" = no && cat >>confdefs.h <<\EOF 10173#define OPT_HIGHLIGHT_COLOR 0 10174EOF 10175 10176echo "$as_me:10176: checking if you want support for doublesize characters" >&5 10177echo $ECHO_N "checking if you want support for doublesize characters... $ECHO_C" >&6 10178 10179# Check whether --enable-doublechars or --disable-doublechars was given. 10180if test "${enable_doublechars+set}" = set; then 10181 enableval="$enable_doublechars" 10182 test "$enableval" != no && enableval=yes 10183 if test "$enableval" != "yes" ; then 10184 enable_doublechars=no 10185 else 10186 enable_doublechars=yes 10187 fi 10188else 10189 enableval=yes 10190 enable_doublechars=yes 10191 10192fi; 10193echo "$as_me:10193: result: $enable_doublechars" >&5 10194echo "${ECHO_T}$enable_doublechars" >&6 10195test "$enable_doublechars" = no && cat >>confdefs.h <<\EOF 10196#define OPT_DEC_CHRSET 0 10197EOF 10198 10199echo "$as_me:10199: checking if you want fallback-support for box characters" >&5 10200echo $ECHO_N "checking if you want fallback-support for box characters... $ECHO_C" >&6 10201 10202# Check whether --enable-boxchars or --disable-boxchars was given. 10203if test "${enable_boxchars+set}" = set; then 10204 enableval="$enable_boxchars" 10205 test "$enableval" != no && enableval=yes 10206 if test "$enableval" != "yes" ; then 10207 enable_boxchars=no 10208 else 10209 enable_boxchars=yes 10210 fi 10211else 10212 enableval=yes 10213 enable_boxchars=yes 10214 10215fi; 10216echo "$as_me:10216: result: $enable_boxchars" >&5 10217echo "${ECHO_T}$enable_boxchars" >&6 10218test "$enable_boxchars" = no && cat >>confdefs.h <<\EOF 10219#define OPT_BOX_CHARS 0 10220EOF 10221 10222echo "$as_me:10222: checking if you want to allow spawning new xterms" >&5 10223echo $ECHO_N "checking if you want to allow spawning new xterms... $ECHO_C" >&6 10224 10225# Check whether --enable-exec-xterm or --disable-exec-xterm was given. 10226if test "${enable_exec_xterm+set}" = set; then 10227 enableval="$enable_exec_xterm" 10228 test "$enableval" != yes && enableval=no 10229 if test "$enableval" != "no" ; then 10230 enable_exec_xterm=yes 10231 else 10232 enable_exec_xterm=no 10233 fi 10234else 10235 enableval=no 10236 enable_exec_xterm=no 10237 10238fi; 10239echo "$as_me:10239: result: $enable_exec_xterm" >&5 10240echo "${ECHO_T}$enable_exec_xterm" >&6 10241if test "$enable_exec_xterm" = yes ; then 10242 10243echo "$as_me:10243: checking for proc tree with cwd-support" >&5 10244echo $ECHO_N "checking for proc tree with cwd-support... $ECHO_C" >&6 10245if test "${cf_cv_procfs_cwd+set}" = set; then 10246 echo $ECHO_N "(cached) $ECHO_C" >&6 10247else 10248 10249cf_cv_procfs_cwd=no 10250for cf_path in /proc /compat/linux/proc /usr/compat/linux/proc 10251do 10252 if test -d $cf_path && \ 10253 test -d $cf_path/$$ && \ 10254 ( test -d $cf_path/$$/cwd || \ 10255 test -L $cf_path/$$/cwd ); then 10256 cf_cv_procfs_cwd=$cf_path 10257 break 10258 fi 10259done 10260 10261fi 10262echo "$as_me:10262: result: $cf_cv_procfs_cwd" >&5 10263echo "${ECHO_T}$cf_cv_procfs_cwd" >&6 10264 10265 if test "$cf_cv_procfs_cwd" = no ; then 10266 { echo "$as_me:10266: WARNING: no suitable proc filesystem found" >&5 10267echo "$as_me: WARNING: no suitable proc filesystem found" >&2;} 10268 else 10269 cat >>confdefs.h <<EOF 10270#define PROCFS_ROOT "$cf_cv_procfs_cwd" 10271EOF 10272 10273 cat >>confdefs.h <<\EOF 10274#define OPT_EXEC_XTERM 1 10275EOF 10276 10277 fi 10278fi 10279 10280echo "$as_me:10280: checking if you want to use FreeType library" >&5 10281echo $ECHO_N "checking if you want to use FreeType library... $ECHO_C" >&6 10282 10283# Check whether --enable-freetype or --disable-freetype was given. 10284if test "${enable_freetype+set}" = set; then 10285 enableval="$enable_freetype" 10286 test "$enableval" != no && enableval=yes 10287 if test "$enableval" != "yes" ; then 10288 enable_freetype=no 10289 else 10290 enable_freetype=yes 10291 fi 10292else 10293 enableval=yes 10294 enable_freetype=yes 10295 10296fi; 10297echo "$as_me:10297: result: $enable_freetype" >&5 10298echo "${ECHO_T}$enable_freetype" >&6 10299if test "$enable_freetype" = yes ; then 10300 10301echo "$as_me:10301: checking if you want to use pkg-config" >&5 10302echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6 10303 10304# Check whether --with-pkg-config or --without-pkg-config was given. 10305if test "${with_pkg_config+set}" = set; then 10306 withval="$with_pkg_config" 10307 cf_pkg_config=$withval 10308else 10309 cf_pkg_config=yes 10310fi; 10311echo "$as_me:10311: result: $cf_pkg_config" >&5 10312echo "${ECHO_T}$cf_pkg_config" >&6 10313 10314case $cf_pkg_config in #(vi 10315no) #(vi 10316 PKG_CONFIG=none 10317 ;; 10318yes) #(vi 10319 # Extract the first word of "pkg-config", so it can be a program name with args. 10320set dummy pkg-config; ac_word=$2 10321echo "$as_me:10321: checking for $ac_word" >&5 10322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10323if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 10324 echo $ECHO_N "(cached) $ECHO_C" >&6 10325else 10326 case $PKG_CONFIG in 10327 [\\/]* | ?:[\\/]*) 10328 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 10329 ;; 10330 *) 10331 ac_save_IFS=$IFS; IFS=$ac_path_separator 10332ac_dummy="$PATH" 10333for ac_dir in $ac_dummy; do 10334 IFS=$ac_save_IFS 10335 test -z "$ac_dir" && ac_dir=. 10336 if $as_executable_p "$ac_dir/$ac_word"; then 10337 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" 10338 echo "$as_me:10338: found $ac_dir/$ac_word" >&5 10339 break 10340fi 10341done 10342 10343 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="none" 10344 ;; 10345esac 10346fi 10347PKG_CONFIG=$ac_cv_path_PKG_CONFIG 10348 10349if test -n "$PKG_CONFIG"; then 10350 echo "$as_me:10350: result: $PKG_CONFIG" >&5 10351echo "${ECHO_T}$PKG_CONFIG" >&6 10352else 10353 echo "$as_me:10353: result: no" >&5 10354echo "${ECHO_T}no" >&6 10355fi 10356 10357 ;; 10358*) 10359 PKG_CONFIG=$withval 10360 ;; 10361esac 10362 10363test -z "$PKG_CONFIG" && PKG_CONFIG=none 10364if test "$PKG_CONFIG" != none ; then 10365 10366if test "x$prefix" != xNONE; then 10367 cf_path_syntax="$prefix" 10368else 10369 cf_path_syntax="$ac_default_prefix" 10370fi 10371 10372case ".$PKG_CONFIG" in #(vi 10373.\$\(*\)*|.\'*\'*) #(vi 10374 ;; 10375..|./*|.\\*) #(vi 10376 ;; 10377.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 10378 ;; 10379.\${*prefix}*) #(vi 10380 eval PKG_CONFIG="$PKG_CONFIG" 10381 case ".$PKG_CONFIG" in #(vi 10382 .NONE/*) 10383 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%` 10384 ;; 10385 esac 10386 ;; #(vi 10387.no|.NONE/*) 10388 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%` 10389 ;; 10390*) 10391 { { echo "$as_me:10391: error: expected a pathname, not \"$PKG_CONFIG\"" >&5 10392echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;} 10393 { (exit 1); exit 1; }; } 10394 ;; 10395esac 10396 10397fi 10398 10399cf_extra_freetype_libs= 10400FREETYPE_CONFIG=none 10401FREETYPE_PARAMS= 10402 10403echo "$as_me:10403: checking if you specified -D/-I options for FreeType" >&5 10404echo $ECHO_N "checking if you specified -D/-I options for FreeType... $ECHO_C" >&6 10405 10406# Check whether --with-freetype-cflags or --without-freetype-cflags was given. 10407if test "${with_freetype_cflags+set}" = set; then 10408 withval="$with_freetype_cflags" 10409 cf_cv_x_freetype_incs="$with_freetype_cflags" 10410else 10411 cf_cv_x_freetype_incs=no 10412fi; 10413echo "$as_me:10413: result: $cf_cv_x_freetype_incs" >&5 10414echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6 10415 10416echo "$as_me:10416: checking if you specified -L/-l options for FreeType" >&5 10417echo $ECHO_N "checking if you specified -L/-l options for FreeType... $ECHO_C" >&6 10418 10419# Check whether --with-freetype-libs or --without-freetype-libs was given. 10420if test "${with_freetype_libs+set}" = set; then 10421 withval="$with_freetype_libs" 10422 cf_cv_x_freetype_libs="$with_freetype_libs" 10423else 10424 cf_cv_x_freetype_libs=no 10425fi; 10426echo "$as_me:10426: result: $cf_cv_x_freetype_libs" >&5 10427echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6 10428 10429if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then 10430 FREETYPE_CONFIG=$PKG_CONFIG 10431 FREETYPE_PARAMS=xft 10432else 10433 # Extract the first word of "xft-config", so it can be a program name with args. 10434set dummy xft-config; ac_word=$2 10435echo "$as_me:10435: checking for $ac_word" >&5 10436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10437if test "${ac_cv_path_FREETYPE_XFT_CONFIG+set}" = set; then 10438 echo $ECHO_N "(cached) $ECHO_C" >&6 10439else 10440 case $FREETYPE_XFT_CONFIG in 10441 [\\/]* | ?:[\\/]*) 10442 ac_cv_path_FREETYPE_XFT_CONFIG="$FREETYPE_XFT_CONFIG" # Let the user override the test with a path. 10443 ;; 10444 *) 10445 ac_save_IFS=$IFS; IFS=$ac_path_separator 10446ac_dummy="$PATH" 10447for ac_dir in $ac_dummy; do 10448 IFS=$ac_save_IFS 10449 test -z "$ac_dir" && ac_dir=. 10450 if $as_executable_p "$ac_dir/$ac_word"; then 10451 ac_cv_path_FREETYPE_XFT_CONFIG="$ac_dir/$ac_word" 10452 echo "$as_me:10452: found $ac_dir/$ac_word" >&5 10453 break 10454fi 10455done 10456 10457 test -z "$ac_cv_path_FREETYPE_XFT_CONFIG" && ac_cv_path_FREETYPE_XFT_CONFIG="none" 10458 ;; 10459esac 10460fi 10461FREETYPE_XFT_CONFIG=$ac_cv_path_FREETYPE_XFT_CONFIG 10462 10463if test -n "$FREETYPE_XFT_CONFIG"; then 10464 echo "$as_me:10464: result: $FREETYPE_XFT_CONFIG" >&5 10465echo "${ECHO_T}$FREETYPE_XFT_CONFIG" >&6 10466else 10467 echo "$as_me:10467: result: no" >&5 10468echo "${ECHO_T}no" >&6 10469fi 10470 10471 if test "$FREETYPE_XFT_CONFIG" != none; then 10472 FREETYPE_CONFIG=$FREETYPE_XFT_CONFIG 10473 else 10474 cf_extra_freetype_libs="-lXft" 10475 # Extract the first word of "freetype-config", so it can be a program name with args. 10476set dummy freetype-config; ac_word=$2 10477echo "$as_me:10477: checking for $ac_word" >&5 10478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10479if test "${ac_cv_path_FREETYPE_OLD_CONFIG+set}" = set; then 10480 echo $ECHO_N "(cached) $ECHO_C" >&6 10481else 10482 case $FREETYPE_OLD_CONFIG in 10483 [\\/]* | ?:[\\/]*) 10484 ac_cv_path_FREETYPE_OLD_CONFIG="$FREETYPE_OLD_CONFIG" # Let the user override the test with a path. 10485 ;; 10486 *) 10487 ac_save_IFS=$IFS; IFS=$ac_path_separator 10488ac_dummy="$PATH" 10489for ac_dir in $ac_dummy; do 10490 IFS=$ac_save_IFS 10491 test -z "$ac_dir" && ac_dir=. 10492 if $as_executable_p "$ac_dir/$ac_word"; then 10493 ac_cv_path_FREETYPE_OLD_CONFIG="$ac_dir/$ac_word" 10494 echo "$as_me:10494: found $ac_dir/$ac_word" >&5 10495 break 10496fi 10497done 10498 10499 test -z "$ac_cv_path_FREETYPE_OLD_CONFIG" && ac_cv_path_FREETYPE_OLD_CONFIG="none" 10500 ;; 10501esac 10502fi 10503FREETYPE_OLD_CONFIG=$ac_cv_path_FREETYPE_OLD_CONFIG 10504 10505if test -n "$FREETYPE_OLD_CONFIG"; then 10506 echo "$as_me:10506: result: $FREETYPE_OLD_CONFIG" >&5 10507echo "${ECHO_T}$FREETYPE_OLD_CONFIG" >&6 10508else 10509 echo "$as_me:10509: result: no" >&5 10510echo "${ECHO_T}no" >&6 10511fi 10512 10513 if test "$FREETYPE_OLD_CONFIG" != none; then 10514 FREETYPE_CONFIG=$FREETYPE_OLD_CONFIG 10515 fi 10516 fi 10517fi 10518echo "$as_me:10518: checking for FreeType config" >&5 10519echo $ECHO_N "checking for FreeType config... $ECHO_C" >&6 10520echo "$as_me:10520: result: $FREETYPE_CONFIG $FREETYPE_PARAMS" >&5 10521echo "${ECHO_T}$FREETYPE_CONFIG $FREETYPE_PARAMS" >&6 10522 10523if test "$FREETYPE_CONFIG" != none ; then 10524 10525 if test "$cf_cv_x_freetype_incs" = no ; then 10526 echo "$as_me:10526: checking for $FREETYPE_CONFIG cflags" >&5 10527echo $ECHO_N "checking for $FREETYPE_CONFIG cflags... $ECHO_C" >&6 10528 cf_cv_x_freetype_incs="`$FREETYPE_CONFIG $FREETYPE_PARAMS --cflags 2>/dev/null`" 10529 echo "$as_me:10529: result: $cf_cv_x_freetype_incs" >&5 10530echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6 10531 fi 10532 10533 if test "$cf_cv_x_freetype_libs" = no ; then 10534 echo "$as_me:10534: checking for $FREETYPE_CONFIG libs" >&5 10535echo $ECHO_N "checking for $FREETYPE_CONFIG libs... $ECHO_C" >&6 10536 cf_cv_x_freetype_libs="$cf_extra_freetype_libs `$FREETYPE_CONFIG $FREETYPE_PARAMS --libs 2>/dev/null`" 10537 echo "$as_me:10537: result: $cf_cv_x_freetype_libs" >&5 10538echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6 10539 fi 10540 10541fi 10542 10543if test "$cf_cv_x_freetype_incs" = no ; then 10544 cf_cv_x_freetype_incs= 10545fi 10546 10547if test "$cf_cv_x_freetype_libs" = no ; then 10548 cf_cv_x_freetype_libs=-lXft 10549fi 10550 10551echo "$as_me:10551: checking if we can link with FreeType libraries" >&5 10552echo $ECHO_N "checking if we can link with FreeType libraries... $ECHO_C" >&6 10553 10554cf_save_LIBS="$LIBS" 10555cf_save_INCS="$CPPFLAGS" 10556 10557LIBS="$cf_cv_x_freetype_libs $LIBS" 10558CPPFLAGS="$CPPFLAGS $cf_cv_x_freetype_incs" 10559 10560cat >conftest.$ac_ext <<_ACEOF 10561#line 10561 "configure" 10562#include "confdefs.h" 10563 10564#include <X11/Xlib.h> 10565#include <X11/extensions/Xrender.h> 10566#include <X11/Xft/Xft.h> 10567int 10568main () 10569{ 10570 10571 XftPattern *pat = XftNameParse ("name"); 10572 ; 10573 return 0; 10574} 10575_ACEOF 10576rm -f conftest.$ac_objext conftest$ac_exeext 10577if { (eval echo "$as_me:10577: \"$ac_link\"") >&5 10578 (eval $ac_link) 2>&5 10579 ac_status=$? 10580 echo "$as_me:10580: \$? = $ac_status" >&5 10581 (exit $ac_status); } && 10582 { ac_try='test -s conftest$ac_exeext' 10583 { (eval echo "$as_me:10583: \"$ac_try\"") >&5 10584 (eval $ac_try) 2>&5 10585 ac_status=$? 10586 echo "$as_me:10586: \$? = $ac_status" >&5 10587 (exit $ac_status); }; }; then 10588 cf_cv_found_freetype=yes 10589else 10590 echo "$as_me: failed program was:" >&5 10591cat conftest.$ac_ext >&5 10592cf_cv_found_freetype=no 10593fi 10594rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10595echo "$as_me:10595: result: $cf_cv_found_freetype" >&5 10596echo "${ECHO_T}$cf_cv_found_freetype" >&6 10597 10598LIBS="$cf_save_LIBS" 10599CPPFLAGS="$cf_save_INCS" 10600 10601if test "$cf_cv_found_freetype" = yes ; then 10602 LIBS="$cf_cv_x_freetype_libs $LIBS" 10603 10604cf_fix_cppflags=no 10605cf_new_cflags= 10606cf_new_cppflags= 10607cf_new_extra_cppflags= 10608 10609for cf_add_cflags in $cf_cv_x_freetype_incs 10610do 10611case $cf_fix_cppflags in 10612no) 10613 case $cf_add_cflags in #(vi 10614 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 10615 case $cf_add_cflags in 10616 -D*) 10617 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 10618 10619 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 10620 && test -z "${cf_tst_cflags}" \ 10621 && cf_fix_cppflags=yes 10622 10623 if test $cf_fix_cppflags = yes ; then 10624 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10625 continue 10626 elif test "${cf_tst_cflags}" = "\"'" ; then 10627 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10628 continue 10629 fi 10630 ;; 10631 esac 10632 case "$CPPFLAGS" in 10633 *$cf_add_cflags) #(vi 10634 ;; 10635 *) #(vi 10636 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 10637 ;; 10638 esac 10639 ;; 10640 *) 10641 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 10642 ;; 10643 esac 10644 ;; 10645yes) 10646 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10647 10648 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 10649 10650 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 10651 && test -z "${cf_tst_cflags}" \ 10652 && cf_fix_cppflags=no 10653 ;; 10654esac 10655done 10656 10657if test -n "$cf_new_cflags" ; then 10658 10659 CFLAGS="$CFLAGS $cf_new_cflags" 10660fi 10661 10662if test -n "$cf_new_cppflags" ; then 10663 10664 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 10665fi 10666 10667if test -n "$cf_new_extra_cppflags" ; then 10668 10669 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 10670fi 10671 10672 cat >>confdefs.h <<\EOF 10673#define XRENDERFONT 1 10674EOF 10675 10676for ac_func in \ 10677 XftDrawCharSpec \ 10678 XftDrawSetClip \ 10679 XftDrawSetClipRectangles \ 10680 10681do 10682as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10683echo "$as_me:10683: checking for $ac_func" >&5 10684echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10685if eval "test \"\${$as_ac_var+set}\" = set"; then 10686 echo $ECHO_N "(cached) $ECHO_C" >&6 10687else 10688 cat >conftest.$ac_ext <<_ACEOF 10689#line 10689 "configure" 10690#include "confdefs.h" 10691/* System header to define __stub macros and hopefully few prototypes, 10692 which can conflict with char $ac_func (); below. */ 10693#include <assert.h> 10694/* Override any gcc2 internal prototype to avoid an error. */ 10695#ifdef __cplusplus 10696extern "C" 10697#endif 10698/* We use char because int might match the return type of a gcc2 10699 builtin and then its argument prototype would still apply. */ 10700char $ac_func (); 10701char (*f) (); 10702 10703int 10704main () 10705{ 10706/* The GNU C library defines this for functions which it implements 10707 to always fail with ENOSYS. Some functions are actually named 10708 something starting with __ and the normal name is an alias. */ 10709#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 10710choke me 10711#else 10712f = $ac_func; 10713#endif 10714 10715 ; 10716 return 0; 10717} 10718_ACEOF 10719rm -f conftest.$ac_objext conftest$ac_exeext 10720if { (eval echo "$as_me:10720: \"$ac_link\"") >&5 10721 (eval $ac_link) 2>&5 10722 ac_status=$? 10723 echo "$as_me:10723: \$? = $ac_status" >&5 10724 (exit $ac_status); } && 10725 { ac_try='test -s conftest$ac_exeext' 10726 { (eval echo "$as_me:10726: \"$ac_try\"") >&5 10727 (eval $ac_try) 2>&5 10728 ac_status=$? 10729 echo "$as_me:10729: \$? = $ac_status" >&5 10730 (exit $ac_status); }; }; then 10731 eval "$as_ac_var=yes" 10732else 10733 echo "$as_me: failed program was:" >&5 10734cat conftest.$ac_ext >&5 10735eval "$as_ac_var=no" 10736fi 10737rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10738fi 10739echo "$as_me:10739: result: `eval echo '${'$as_ac_var'}'`" >&5 10740echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10741if test `eval echo '${'$as_ac_var'}'` = yes; then 10742 cat >>confdefs.h <<EOF 10743#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10744EOF 10745 10746fi 10747done 10748 10749else 10750 { echo "$as_me:10750: WARNING: No libraries found for FreeType" >&5 10751echo "$as_me: WARNING: No libraries found for FreeType" >&2;} 10752 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//` 10753fi 10754 10755# FIXME: revisit this if needed 10756 10757else 10758 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//` 10759fi 10760 10761echo "$as_me:10761: checking if you want support for HP-style function keys" >&5 10762echo $ECHO_N "checking if you want support for HP-style function keys... $ECHO_C" >&6 10763 10764# Check whether --enable-hp-fkeys or --disable-hp-fkeys was given. 10765if test "${enable_hp_fkeys+set}" = set; then 10766 enableval="$enable_hp_fkeys" 10767 test "$enableval" != yes && enableval=no 10768 if test "$enableval" != "no" ; then 10769 enable_hp_fkeys=yes 10770 else 10771 enable_hp_fkeys=no 10772 fi 10773else 10774 enableval=no 10775 enable_hp_fkeys=no 10776 10777fi; 10778echo "$as_me:10778: result: $enable_hp_fkeys" >&5 10779echo "${ECHO_T}$enable_hp_fkeys" >&6 10780if test "$enable_hp_fkeys" = yes ; then 10781 cat >>confdefs.h <<\EOF 10782#define OPT_HP_FUNC_KEYS 1 10783EOF 10784 10785fi 10786 10787echo "$as_me:10787: checking if you want support for SCO-style function keys" >&5 10788echo $ECHO_N "checking if you want support for SCO-style function keys... $ECHO_C" >&6 10789 10790# Check whether --enable-sco-fkeys or --disable-sco-fkeys was given. 10791if test "${enable_sco_fkeys+set}" = set; then 10792 enableval="$enable_sco_fkeys" 10793 test "$enableval" != yes && enableval=no 10794 if test "$enableval" != "no" ; then 10795 enable_sco_fkeys=yes 10796 else 10797 enable_sco_fkeys=no 10798 fi 10799else 10800 enableval=no 10801 enable_sco_fkeys=no 10802 10803fi; 10804echo "$as_me:10804: result: $enable_sco_fkeys" >&5 10805echo "${ECHO_T}$enable_sco_fkeys" >&6 10806if test "$enable_sco_fkeys" = yes ; then 10807 cat >>confdefs.h <<\EOF 10808#define OPT_SCO_FUNC_KEYS 1 10809EOF 10810 10811fi 10812 10813echo "$as_me:10813: checking if you want support for Sun-style function keys" >&5 10814echo $ECHO_N "checking if you want support for Sun-style function keys... $ECHO_C" >&6 10815 10816# Check whether --enable-sun-fkeys or --disable-sun-fkeys was given. 10817if test "${enable_sun_fkeys+set}" = set; then 10818 enableval="$enable_sun_fkeys" 10819 test "$enableval" != no && enableval=yes 10820 if test "$enableval" != "yes" ; then 10821 enable_sun_fkeys=no 10822 else 10823 enable_sun_fkeys=yes 10824 fi 10825else 10826 enableval=yes 10827 enable_sun_fkeys=yes 10828 10829fi; 10830echo "$as_me:10830: result: $enable_sun_fkeys" >&5 10831echo "${ECHO_T}$enable_sun_fkeys" >&6 10832if test "$enable_sun_fkeys" = no ; then 10833 cat >>confdefs.h <<\EOF 10834#define OPT_SUN_FUNC_KEYS 0 10835EOF 10836 10837fi 10838 10839echo "$as_me:10839: checking if you want saved-lines stored as a FIFO" >&5 10840echo $ECHO_N "checking if you want saved-lines stored as a FIFO... $ECHO_C" >&6 10841 10842# Check whether --enable-fifo-lines or --disable-fifo-lines was given. 10843if test "${enable_fifo_lines+set}" = set; then 10844 enableval="$enable_fifo_lines" 10845 test "$enableval" != no && enableval=yes 10846 if test "$enableval" != "yes" ; then 10847 enable_fifo_lines=no 10848 else 10849 enable_fifo_lines=yes 10850 fi 10851else 10852 enableval=yes 10853 enable_fifo_lines=yes 10854 10855fi; 10856echo "$as_me:10856: result: $enable_fifo_lines" >&5 10857echo "${ECHO_T}$enable_fifo_lines" >&6 10858if test "$enable_fifo_lines" = yes ; then 10859 cat >>confdefs.h <<\EOF 10860#define OPT_FIFO_LINES 1 10861EOF 10862 10863fi 10864 10865echo "$as_me:10865: checking if you want support for internationalization" >&5 10866echo $ECHO_N "checking if you want support for internationalization... $ECHO_C" >&6 10867 10868# Check whether --enable-i18n or --disable-i18n was given. 10869if test "${enable_i18n+set}" = set; then 10870 enableval="$enable_i18n" 10871 test "$enableval" != no && enableval=yes 10872 if test "$enableval" != "yes" ; then 10873 enable_i18n=no 10874 else 10875 enable_i18n=yes 10876 fi 10877else 10878 enableval=yes 10879 enable_i18n=yes 10880 10881fi; 10882echo "$as_me:10882: result: $enable_i18n" >&5 10883echo "${ECHO_T}$enable_i18n" >&6 10884if test "$enable_i18n" = no ; then 10885 cat >>confdefs.h <<\EOF 10886#define OPT_I18N_SUPPORT 0 10887EOF 10888 10889fi 10890 10891echo "$as_me:10891: checking if you want support for initial-erase setup" >&5 10892echo $ECHO_N "checking if you want support for initial-erase setup... $ECHO_C" >&6 10893 10894# Check whether --enable-initial-erase or --disable-initial-erase was given. 10895if test "${enable_initial_erase+set}" = set; then 10896 enableval="$enable_initial_erase" 10897 test "$enableval" != no && enableval=yes 10898 if test "$enableval" != "yes" ; then 10899 enable_ie=no 10900 else 10901 enable_ie=yes 10902 fi 10903else 10904 enableval=yes 10905 enable_ie=yes 10906 10907fi; 10908echo "$as_me:10908: result: $enable_ie" >&5 10909echo "${ECHO_T}$enable_ie" >&6 10910if test "$enable_ie" = no ; then 10911 cat >>confdefs.h <<\EOF 10912#define OPT_INITIAL_ERASE 0 10913EOF 10914 10915fi 10916 10917echo "$as_me:10917: checking if you want support for input-method" >&5 10918echo $ECHO_N "checking if you want support for input-method... $ECHO_C" >&6 10919 10920# Check whether --enable-input-method or --disable-input-method was given. 10921if test "${enable_input_method+set}" = set; then 10922 enableval="$enable_input_method" 10923 test "$enableval" != no && enableval=yes 10924 if test "$enableval" != "yes" ; then 10925 enable_ximp=no 10926 else 10927 enable_ximp=yes 10928 fi 10929else 10930 enableval=yes 10931 enable_ximp=yes 10932 10933fi; 10934echo "$as_me:10934: result: $enable_ximp" >&5 10935echo "${ECHO_T}$enable_ximp" >&6 10936 10937echo "$as_me:10937: checking if X libraries support input-method" >&5 10938echo $ECHO_N "checking if X libraries support input-method... $ECHO_C" >&6 10939if test "${cf_cv_input_method+set}" = set; then 10940 echo $ECHO_N "(cached) $ECHO_C" >&6 10941else 10942 10943cat >conftest.$ac_ext <<_ACEOF 10944#line 10944 "configure" 10945#include "confdefs.h" 10946 10947#include <X11/IntrinsicP.h> 10948#include <X11/Xatom.h> 10949#include <X11/Xutil.h> 10950#include <X11/Xmu/Atoms.h> 10951#include <X11/Xmu/Converters.h> 10952#include <X11/Xaw/XawImP.h> 10953 10954int 10955main () 10956{ 10957 10958{ 10959 XIM xim; 10960 XIMStyles *xim_styles = 0; 10961 XIMStyle input_style; 10962 Widget w = 0; 10963 10964 XSetLocaleModifiers("@im=none"); 10965 xim = XOpenIM(XtDisplay(w), NULL, NULL, NULL); 10966 XGetIMValues(xim, XNQueryInputStyle, &xim_styles, NULL); 10967 XCloseIM(xim); 10968 input_style = (XIMPreeditNothing | XIMStatusNothing); 10969} 10970 10971 ; 10972 return 0; 10973} 10974_ACEOF 10975rm -f conftest.$ac_objext conftest$ac_exeext 10976if { (eval echo "$as_me:10976: \"$ac_link\"") >&5 10977 (eval $ac_link) 2>&5 10978 ac_status=$? 10979 echo "$as_me:10979: \$? = $ac_status" >&5 10980 (exit $ac_status); } && 10981 { ac_try='test -s conftest$ac_exeext' 10982 { (eval echo "$as_me:10982: \"$ac_try\"") >&5 10983 (eval $ac_try) 2>&5 10984 ac_status=$? 10985 echo "$as_me:10985: \$? = $ac_status" >&5 10986 (exit $ac_status); }; }; then 10987 cf_cv_input_method=yes 10988else 10989 echo "$as_me: failed program was:" >&5 10990cat conftest.$ac_ext >&5 10991cf_cv_input_method=no 10992fi 10993rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10994fi 10995echo "$as_me:10995: result: $cf_cv_input_method" >&5 10996echo "${ECHO_T}$cf_cv_input_method" >&6 10997 10998test "$cf_cv_input_method" = no && enable_ximp=no 10999if test "$enable_ximp" = no ; then 11000 cat >>confdefs.h <<\EOF 11001#define OPT_INPUT_METHOD 0 11002EOF 11003 11004fi 11005 11006echo "$as_me:11006: checking if you want support for load-vt-fonts" >&5 11007echo $ECHO_N "checking if you want support for load-vt-fonts... $ECHO_C" >&6 11008 11009# Check whether --enable-load-vt-fonts or --disable-load-vt-fonts was given. 11010if test "${enable_load_vt_fonts+set}" = set; then 11011 enableval="$enable_load_vt_fonts" 11012 test "$enableval" != yes && enableval=no 11013 if test "$enableval" != "no" ; then 11014 enable_load_vt_fonts=yes 11015 else 11016 enable_load_vt_fonts=no 11017 fi 11018else 11019 enableval=no 11020 enable_load_vt_fonts=no 11021 11022fi; 11023echo "$as_me:11023: result: $enable_load_vt_fonts" >&5 11024echo "${ECHO_T}$enable_load_vt_fonts" >&6 11025if test "$enable_load_vt_fonts" = yes ; then 11026 cat >>confdefs.h <<\EOF 11027#define OPT_LOAD_VTFONTS 1 11028EOF 11029 11030fi 11031 11032echo "$as_me:11032: checking if you want support for logging" >&5 11033echo $ECHO_N "checking if you want support for logging... $ECHO_C" >&6 11034 11035# Check whether --enable-logging or --disable-logging was given. 11036if test "${enable_logging+set}" = set; then 11037 enableval="$enable_logging" 11038 test "$enableval" != yes && enableval=no 11039 if test "$enableval" != "no" ; then 11040 enable_logging=yes 11041 else 11042 enable_logging=no 11043 fi 11044else 11045 enableval=no 11046 enable_logging=no 11047 11048fi; 11049echo "$as_me:11049: result: $enable_logging" >&5 11050echo "${ECHO_T}$enable_logging" >&6 11051if test "$enable_logging" = yes ; then 11052 cat >>confdefs.h <<\EOF 11053#define ALLOWLOGGING 1 11054EOF 11055 11056 echo "$as_me:11056: checking if you want to allow logging via a pipe" >&5 11057echo $ECHO_N "checking if you want to allow logging via a pipe... $ECHO_C" >&6 11058 11059# Check whether --enable-logfile-exec or --disable-logfile-exec was given. 11060if test "${enable_logfile_exec+set}" = set; then 11061 enableval="$enable_logfile_exec" 11062 test "$enableval" != yes && enableval=no 11063 if test "$enableval" != "no" ; then 11064 enable_log_exec=yes 11065 else 11066 enable_log_exec=no 11067 fi 11068else 11069 enableval=no 11070 enable_log_exec=no 11071 11072fi; 11073 echo "$as_me:11073: result: $enable_log_exec" >&5 11074echo "${ECHO_T}$enable_log_exec" >&6 11075 if test "$enable_log_exec" = yes ; then 11076 cat >>confdefs.h <<\EOF 11077#define ALLOWLOGFILEEXEC 1 11078EOF 11079 11080 fi 11081fi 11082 11083echo "$as_me:11083: checking if you want support for iconify/maximize translations" >&5 11084echo $ECHO_N "checking if you want support for iconify/maximize translations... $ECHO_C" >&6 11085 11086# Check whether --enable-maximize or --disable-maximize was given. 11087if test "${enable_maximize+set}" = set; then 11088 enableval="$enable_maximize" 11089 test "$enableval" != no && enableval=yes 11090 if test "$enableval" != "yes" ; then 11091 enable_maximize=no 11092 else 11093 enable_maximize=yes 11094 fi 11095else 11096 enableval=yes 11097 enable_maximize=yes 11098 11099fi; 11100echo "$as_me:11100: result: $enable_maximize" >&5 11101echo "${ECHO_T}$enable_maximize" >&6 11102test "$enable_maximize" = no && cat >>confdefs.h <<\EOF 11103#define OPT_MAXIMIZE 0 11104EOF 11105 11106echo "$as_me:11106: checking if you want NumLock to override keyboard tables" >&5 11107echo $ECHO_N "checking if you want NumLock to override keyboard tables... $ECHO_C" >&6 11108 11109# Check whether --enable-num-lock or --disable-num-lock was given. 11110if test "${enable_num_lock+set}" = set; then 11111 enableval="$enable_num_lock" 11112 test "$enableval" != no && enableval=yes 11113 if test "$enableval" != "yes" ; then 11114 enable_numlock=no 11115 else 11116 enable_numlock=yes 11117 fi 11118else 11119 enableval=yes 11120 enable_numlock=yes 11121 11122fi; 11123echo "$as_me:11123: result: $enable_numlock" >&5 11124echo "${ECHO_T}$enable_numlock" >&6 11125test "$enable_numlock" = no && cat >>confdefs.h <<\EOF 11126#define OPT_NUM_LOCK 0 11127EOF 11128 11129echo "$as_me:11129: checking if you want support for get/set of base64 selection data" >&5 11130echo $ECHO_N "checking if you want support for get/set of base64 selection data... $ECHO_C" >&6 11131 11132# Check whether --enable-paste64 or --disable-paste64 was given. 11133if test "${enable_paste64+set}" = set; then 11134 enableval="$enable_paste64" 11135 test "$enableval" != no && enableval=yes 11136 if test "$enableval" != "yes" ; then 11137 enable_paste64=no 11138 else 11139 enable_paste64=yes 11140 fi 11141else 11142 enableval=yes 11143 enable_paste64=yes 11144 11145fi; 11146echo "$as_me:11146: result: $enable_paste64" >&5 11147echo "${ECHO_T}$enable_paste64" >&6 11148if test "$enable_paste64" = yes ; then 11149 cat >>confdefs.h <<\EOF 11150#define OPT_PASTE64 1 11151EOF 11152 11153else 11154 cat >>confdefs.h <<\EOF 11155#define OPT_PASTE64 0 11156EOF 11157 11158fi 11159 11160echo "$as_me:11160: checking if you want support for pty-handshaking" >&5 11161echo $ECHO_N "checking if you want support for pty-handshaking... $ECHO_C" >&6 11162 11163# Check whether --enable-pty-handshake or --disable-pty-handshake was given. 11164if test "${enable_pty_handshake+set}" = set; then 11165 enableval="$enable_pty_handshake" 11166 test "$enableval" != no && enableval=yes 11167 if test "$enableval" != "yes" ; then 11168 enable_pty_handshake=no 11169 else 11170 enable_pty_handshake=yes 11171 fi 11172else 11173 enableval=yes 11174 enable_pty_handshake=yes 11175 11176fi; 11177echo "$as_me:11177: result: $enable_pty_handshake" >&5 11178echo "${ECHO_T}$enable_pty_handshake" >&6 11179if test "$enable_pty_handshake" = yes ; then 11180 cat >>confdefs.h <<\EOF 11181#define OPT_PTY_HANDSHAKE 1 11182EOF 11183 11184else 11185 cat >>confdefs.h <<\EOF 11186#define OPT_PTY_HANDSHAKE 0 11187EOF 11188 11189fi 11190 11191echo "$as_me:11191: checking if you want support for mouse in readline applications" >&5 11192echo $ECHO_N "checking if you want support for mouse in readline applications... $ECHO_C" >&6 11193 11194# Check whether --enable-readline-mouse or --disable-readline-mouse was given. 11195if test "${enable_readline_mouse+set}" = set; then 11196 enableval="$enable_readline_mouse" 11197 test "$enableval" != yes && enableval=no 11198 if test "$enableval" != "no" ; then 11199 enable_readline_mouse=yes 11200 else 11201 enable_readline_mouse=no 11202 fi 11203else 11204 enableval=no 11205 enable_readline_mouse=no 11206 11207fi; 11208echo "$as_me:11208: result: $enable_readline_mouse" >&5 11209echo "${ECHO_T}$enable_readline_mouse" >&6 11210if test "$enable_readline_mouse" = yes ; then 11211 cat >>confdefs.h <<\EOF 11212#define OPT_READLINE 1 11213EOF 11214 11215fi 11216 11217echo "$as_me:11217: checking if you want support for regular-expression selections" >&5 11218echo $ECHO_N "checking if you want support for regular-expression selections... $ECHO_C" >&6 11219 11220# Check whether --enable-regex or --disable-regex was given. 11221if test "${enable_regex+set}" = set; then 11222 enableval="$enable_regex" 11223 test "$enableval" != no && enableval=yes 11224 if test "$enableval" != "yes" ; then 11225 enable_regex=no 11226 else 11227 enable_regex=yes 11228 fi 11229else 11230 enableval=yes 11231 enable_regex=yes 11232 11233fi; 11234echo "$as_me:11234: result: $enable_regex" >&5 11235echo "${ECHO_T}$enable_regex" >&6 11236if test "$enable_regex" = yes ; then 11237 11238echo "$as_me:11238: checking if you want to use PCRE for regular-expressions" >&5 11239echo $ECHO_N "checking if you want to use PCRE for regular-expressions... $ECHO_C" >&6 11240 11241# Check whether --with-pcre or --without-pcre was given. 11242if test "${with_pcre+set}" = set; then 11243 withval="$with_pcre" 11244 11245fi; 11246test -z "$with_pcre" && with_pcre=no 11247echo "$as_me:11247: result: $with_pcre" >&5 11248echo "${ECHO_T}$with_pcre" >&6 11249 11250if test "$with_pcre" != no ; then 11251 echo "$as_me:11251: checking for pcre_compile in -lpcre" >&5 11252echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6 11253if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then 11254 echo $ECHO_N "(cached) $ECHO_C" >&6 11255else 11256 ac_check_lib_save_LIBS=$LIBS 11257LIBS="-lpcre $LIBS" 11258cat >conftest.$ac_ext <<_ACEOF 11259#line 11259 "configure" 11260#include "confdefs.h" 11261 11262/* Override any gcc2 internal prototype to avoid an error. */ 11263#ifdef __cplusplus 11264extern "C" 11265#endif 11266/* We use char because int might match the return type of a gcc2 11267 builtin and then its argument prototype would still apply. */ 11268char pcre_compile (); 11269int 11270main () 11271{ 11272pcre_compile (); 11273 ; 11274 return 0; 11275} 11276_ACEOF 11277rm -f conftest.$ac_objext conftest$ac_exeext 11278if { (eval echo "$as_me:11278: \"$ac_link\"") >&5 11279 (eval $ac_link) 2>&5 11280 ac_status=$? 11281 echo "$as_me:11281: \$? = $ac_status" >&5 11282 (exit $ac_status); } && 11283 { ac_try='test -s conftest$ac_exeext' 11284 { (eval echo "$as_me:11284: \"$ac_try\"") >&5 11285 (eval $ac_try) 2>&5 11286 ac_status=$? 11287 echo "$as_me:11287: \$? = $ac_status" >&5 11288 (exit $ac_status); }; }; then 11289 ac_cv_lib_pcre_pcre_compile=yes 11290else 11291 echo "$as_me: failed program was:" >&5 11292cat conftest.$ac_ext >&5 11293ac_cv_lib_pcre_pcre_compile=no 11294fi 11295rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11296LIBS=$ac_check_lib_save_LIBS 11297fi 11298echo "$as_me:11298: result: $ac_cv_lib_pcre_pcre_compile" >&5 11299echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6 11300if test $ac_cv_lib_pcre_pcre_compile = yes; then 11301 echo "$as_me:11301: checking for pcreposix.h" >&5 11302echo $ECHO_N "checking for pcreposix.h... $ECHO_C" >&6 11303if test "${ac_cv_header_pcreposix_h+set}" = set; then 11304 echo $ECHO_N "(cached) $ECHO_C" >&6 11305else 11306 cat >conftest.$ac_ext <<_ACEOF 11307#line 11307 "configure" 11308#include "confdefs.h" 11309#include <pcreposix.h> 11310_ACEOF 11311if { (eval echo "$as_me:11311: \"$ac_cpp conftest.$ac_ext\"") >&5 11312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11313 ac_status=$? 11314 egrep -v '^ *\+' conftest.er1 >conftest.err 11315 rm -f conftest.er1 11316 cat conftest.err >&5 11317 echo "$as_me:11317: \$? = $ac_status" >&5 11318 (exit $ac_status); } >/dev/null; then 11319 if test -s conftest.err; then 11320 ac_cpp_err=$ac_c_preproc_warn_flag 11321 else 11322 ac_cpp_err= 11323 fi 11324else 11325 ac_cpp_err=yes 11326fi 11327if test -z "$ac_cpp_err"; then 11328 ac_cv_header_pcreposix_h=yes 11329else 11330 echo "$as_me: failed program was:" >&5 11331 cat conftest.$ac_ext >&5 11332 ac_cv_header_pcreposix_h=no 11333fi 11334rm -f conftest.err conftest.$ac_ext 11335fi 11336echo "$as_me:11336: result: $ac_cv_header_pcreposix_h" >&5 11337echo "${ECHO_T}$ac_cv_header_pcreposix_h" >&6 11338if test $ac_cv_header_pcreposix_h = yes; then 11339 echo "$as_me:11339: checking for pcreposix_regcomp in -lpcreposix" >&5 11340echo $ECHO_N "checking for pcreposix_regcomp in -lpcreposix... $ECHO_C" >&6 11341if test "${ac_cv_lib_pcreposix_pcreposix_regcomp+set}" = set; then 11342 echo $ECHO_N "(cached) $ECHO_C" >&6 11343else 11344 ac_check_lib_save_LIBS=$LIBS 11345LIBS="-lpcreposix "-lpcre" $LIBS" 11346cat >conftest.$ac_ext <<_ACEOF 11347#line 11347 "configure" 11348#include "confdefs.h" 11349 11350/* Override any gcc2 internal prototype to avoid an error. */ 11351#ifdef __cplusplus 11352extern "C" 11353#endif 11354/* We use char because int might match the return type of a gcc2 11355 builtin and then its argument prototype would still apply. */ 11356char pcreposix_regcomp (); 11357int 11358main () 11359{ 11360pcreposix_regcomp (); 11361 ; 11362 return 0; 11363} 11364_ACEOF 11365rm -f conftest.$ac_objext conftest$ac_exeext 11366if { (eval echo "$as_me:11366: \"$ac_link\"") >&5 11367 (eval $ac_link) 2>&5 11368 ac_status=$? 11369 echo "$as_me:11369: \$? = $ac_status" >&5 11370 (exit $ac_status); } && 11371 { ac_try='test -s conftest$ac_exeext' 11372 { (eval echo "$as_me:11372: \"$ac_try\"") >&5 11373 (eval $ac_try) 2>&5 11374 ac_status=$? 11375 echo "$as_me:11375: \$? = $ac_status" >&5 11376 (exit $ac_status); }; }; then 11377 ac_cv_lib_pcreposix_pcreposix_regcomp=yes 11378else 11379 echo "$as_me: failed program was:" >&5 11380cat conftest.$ac_ext >&5 11381ac_cv_lib_pcreposix_pcreposix_regcomp=no 11382fi 11383rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11384LIBS=$ac_check_lib_save_LIBS 11385fi 11386echo "$as_me:11386: result: $ac_cv_lib_pcreposix_pcreposix_regcomp" >&5 11387echo "${ECHO_T}$ac_cv_lib_pcreposix_pcreposix_regcomp" >&6 11388if test $ac_cv_lib_pcreposix_pcreposix_regcomp = yes; then 11389 cat >>confdefs.h <<\EOF 11390#define HAVE_LIB_PCRE 1 11391EOF 11392 11393 cat >>confdefs.h <<\EOF 11394#define HAVE_PCREPOSIX_H 1 11395EOF 11396 11397 LIBS="-lpcreposix -lpcre $LIBS" 11398else 11399 { { echo "$as_me:11399: error: Cannot find PCRE POSIX library" >&5 11400echo "$as_me: error: Cannot find PCRE POSIX library" >&2;} 11401 { (exit 1); exit 1; }; } 11402fi 11403 11404else 11405 { { echo "$as_me:11405: error: Cannot find PCRE POSIX header" >&5 11406echo "$as_me: error: Cannot find PCRE POSIX header" >&2;} 11407 { (exit 1); exit 1; }; } 11408fi 11409 11410else 11411 { { echo "$as_me:11411: error: Cannot find PCRE library" >&5 11412echo "$as_me: error: Cannot find PCRE library" >&2;} 11413 { (exit 1); exit 1; }; } 11414fi 11415 11416fi 11417 11418 if test "$with_pcre" = no ; then 11419 11420echo "$as_me:11420: checking for regular-expression headers" >&5 11421echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6 11422if test "${cf_cv_regex+set}" = set; then 11423 echo $ECHO_N "(cached) $ECHO_C" >&6 11424else 11425 11426cat >conftest.$ac_ext <<_ACEOF 11427#line 11427 "configure" 11428#include "confdefs.h" 11429#include <sys/types.h> 11430#include <regex.h> 11431int 11432main () 11433{ 11434 11435 regex_t *p; 11436 int x = regcomp(p, "", 0); 11437 int y = regexec(p, "", 0, 0, 0); 11438 regfree(p); 11439 11440 ; 11441 return 0; 11442} 11443_ACEOF 11444rm -f conftest.$ac_objext conftest$ac_exeext 11445if { (eval echo "$as_me:11445: \"$ac_link\"") >&5 11446 (eval $ac_link) 2>&5 11447 ac_status=$? 11448 echo "$as_me:11448: \$? = $ac_status" >&5 11449 (exit $ac_status); } && 11450 { ac_try='test -s conftest$ac_exeext' 11451 { (eval echo "$as_me:11451: \"$ac_try\"") >&5 11452 (eval $ac_try) 2>&5 11453 ac_status=$? 11454 echo "$as_me:11454: \$? = $ac_status" >&5 11455 (exit $ac_status); }; }; then 11456 cf_cv_regex="regex.h" 11457else 11458 echo "$as_me: failed program was:" >&5 11459cat conftest.$ac_ext >&5 11460 11461 cat >conftest.$ac_ext <<_ACEOF 11462#line 11462 "configure" 11463#include "confdefs.h" 11464#include <regexp.h> 11465int 11466main () 11467{ 11468 11469 char *p = compile("", "", "", 0); 11470 int x = step("", ""); 11471 11472 ; 11473 return 0; 11474} 11475_ACEOF 11476rm -f conftest.$ac_objext conftest$ac_exeext 11477if { (eval echo "$as_me:11477: \"$ac_link\"") >&5 11478 (eval $ac_link) 2>&5 11479 ac_status=$? 11480 echo "$as_me:11480: \$? = $ac_status" >&5 11481 (exit $ac_status); } && 11482 { ac_try='test -s conftest$ac_exeext' 11483 { (eval echo "$as_me:11483: \"$ac_try\"") >&5 11484 (eval $ac_try) 2>&5 11485 ac_status=$? 11486 echo "$as_me:11486: \$? = $ac_status" >&5 11487 (exit $ac_status); }; }; then 11488 cf_cv_regex="regexp.h" 11489else 11490 echo "$as_me: failed program was:" >&5 11491cat conftest.$ac_ext >&5 11492 11493 cf_save_LIBS="$LIBS" 11494 LIBS="-lgen $LIBS" 11495 cat >conftest.$ac_ext <<_ACEOF 11496#line 11496 "configure" 11497#include "confdefs.h" 11498#include <regexpr.h> 11499int 11500main () 11501{ 11502 11503 char *p = compile("", "", ""); 11504 int x = step("", ""); 11505 11506 ; 11507 return 0; 11508} 11509_ACEOF 11510rm -f conftest.$ac_objext conftest$ac_exeext 11511if { (eval echo "$as_me:11511: \"$ac_link\"") >&5 11512 (eval $ac_link) 2>&5 11513 ac_status=$? 11514 echo "$as_me:11514: \$? = $ac_status" >&5 11515 (exit $ac_status); } && 11516 { ac_try='test -s conftest$ac_exeext' 11517 { (eval echo "$as_me:11517: \"$ac_try\"") >&5 11518 (eval $ac_try) 2>&5 11519 ac_status=$? 11520 echo "$as_me:11520: \$? = $ac_status" >&5 11521 (exit $ac_status); }; }; then 11522 cf_cv_regex="regexpr.h" 11523else 11524 echo "$as_me: failed program was:" >&5 11525cat conftest.$ac_ext >&5 11526LIBS="$cf_save_LIBS" 11527fi 11528rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11529fi 11530rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11531fi 11532rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11533 11534fi 11535 11536echo "$as_me:11536: result: $cf_cv_regex" >&5 11537echo "${ECHO_T}$cf_cv_regex" >&6 11538case $cf_cv_regex in 11539 regex.h) cat >>confdefs.h <<\EOF 11540#define HAVE_REGEX_H_FUNCS 1 11541EOF 11542 ;; 11543 regexp.h) cat >>confdefs.h <<\EOF 11544#define HAVE_REGEXP_H_FUNCS 1 11545EOF 11546 ;; 11547 regexpr.h) cat >>confdefs.h <<\EOF 11548#define HAVE_REGEXPR_H_FUNCS 1 11549EOF 11550 ;; 11551esac 11552 11553 if test "X$cf_cv_regex" != "Xregex.h" ; then 11554 { { echo "$as_me:11554: error: Only POSIX or PCRE regular expressions are supported" >&5 11555echo "$as_me: error: Only POSIX or PCRE regular expressions are supported" >&2;} 11556 { (exit 1); exit 1; }; } 11557 fi 11558 fi 11559 cat >>confdefs.h <<\EOF 11560#define OPT_SELECT_REGEX 1 11561EOF 11562 11563fi 11564 11565echo "$as_me:11565: checking if you want support for right-scrollbar" >&5 11566echo $ECHO_N "checking if you want support for right-scrollbar... $ECHO_C" >&6 11567 11568# Check whether --enable-rightbar or --disable-rightbar was given. 11569if test "${enable_rightbar+set}" = set; then 11570 enableval="$enable_rightbar" 11571 test "$enableval" != no && enableval=yes 11572 if test "$enableval" != "yes" ; then 11573 enable_rightbar=no 11574 else 11575 enable_rightbar=yes 11576 fi 11577else 11578 enableval=yes 11579 enable_rightbar=yes 11580 11581fi; 11582echo "$as_me:11582: result: $enable_rightbar" >&5 11583echo "${ECHO_T}$enable_rightbar" >&6 11584if test "$enable_rightbar" = yes ; then 11585 cat >>confdefs.h <<\EOF 11586#define SCROLLBAR_RIGHT 1 11587EOF 11588 11589fi 11590 11591echo "$as_me:11591: checking if you want check for redundant name-change" >&5 11592echo $ECHO_N "checking if you want check for redundant name-change... $ECHO_C" >&6 11593 11594# Check whether --enable-samename or --disable-samename was given. 11595if test "${enable_samename+set}" = set; then 11596 enableval="$enable_samename" 11597 test "$enableval" != no && enableval=yes 11598 if test "$enableval" != "yes" ; then 11599 enable_samename=no 11600 else 11601 enable_samename=yes 11602 fi 11603else 11604 enableval=yes 11605 enable_samename=yes 11606 11607fi; 11608echo "$as_me:11608: result: $enable_samename" >&5 11609echo "${ECHO_T}$enable_samename" >&6 11610test "$enable_samename" = no && cat >>confdefs.h <<\EOF 11611#define OPT_SAME_NAME 0 11612EOF 11613 11614echo "$as_me:11614: checking if you want support for session management" >&5 11615echo $ECHO_N "checking if you want support for session management... $ECHO_C" >&6 11616 11617# Check whether --enable-session-mgt or --disable-session-mgt was given. 11618if test "${enable_session_mgt+set}" = set; then 11619 enableval="$enable_session_mgt" 11620 test "$enableval" != no && enableval=yes 11621 if test "$enableval" != "yes" ; then 11622 enable_session_mgt=no 11623 else 11624 enable_session_mgt=yes 11625 fi 11626else 11627 enableval=yes 11628 enable_session_mgt=yes 11629 11630fi; 11631echo "$as_me:11631: result: $enable_session_mgt" >&5 11632echo "${ECHO_T}$enable_session_mgt" >&6 11633test "$enable_session_mgt" = no && cat >>confdefs.h <<\EOF 11634#define OPT_SESSION_MGT 0 11635EOF 11636 11637echo "$as_me:11637: checking if you want to use termcap function-keys" >&5 11638echo $ECHO_N "checking if you want to use termcap function-keys... $ECHO_C" >&6 11639 11640# Check whether --enable-tcap-fkeys or --disable-tcap-fkeys was given. 11641if test "${enable_tcap_fkeys+set}" = set; then 11642 enableval="$enable_tcap_fkeys" 11643 test "$enableval" != no && enableval=yes 11644 if test "$enableval" != "yes" ; then 11645 enable_tcap_fkeys=no 11646 else 11647 enable_tcap_fkeys=yes 11648 fi 11649else 11650 enableval=yes 11651 enable_tcap_fkeys=yes 11652 11653fi; 11654echo "$as_me:11654: result: $enable_tcap_fkeys" >&5 11655echo "${ECHO_T}$enable_tcap_fkeys" >&6 11656test "$enable_tcap_fkeys" = yes && cat >>confdefs.h <<\EOF 11657#define OPT_TCAP_FKEYS 1 11658EOF 11659 11660echo "$as_me:11660: checking if you want to use termcap-query/report" >&5 11661echo $ECHO_N "checking if you want to use termcap-query/report... $ECHO_C" >&6 11662 11663# Check whether --enable-tcap-query or --disable-tcap-query was given. 11664if test "${enable_tcap_query+set}" = set; then 11665 enableval="$enable_tcap_query" 11666 test "$enableval" != no && enableval=yes 11667 if test "$enableval" != "yes" ; then 11668 enable_tcap_query=no 11669 else 11670 enable_tcap_query=yes 11671 fi 11672else 11673 enableval=yes 11674 enable_tcap_query=yes 11675 11676fi; 11677echo "$as_me:11677: result: $enable_tcap_query" >&5 11678echo "${ECHO_T}$enable_tcap_query" >&6 11679test "$enable_tcap_query" = yes && cat >>confdefs.h <<\EOF 11680#define OPT_TCAP_QUERY 1 11681EOF 11682 11683echo "$as_me:11683: checking if you want support for tek4014" >&5 11684echo $ECHO_N "checking if you want support for tek4014... $ECHO_C" >&6 11685 11686# Check whether --enable-tek4014 or --disable-tek4014 was given. 11687if test "${enable_tek4014+set}" = set; then 11688 enableval="$enable_tek4014" 11689 test "$enableval" != no && enableval=yes 11690 if test "$enableval" != "yes" ; then 11691 enable_tek4014=no 11692 else 11693 enable_tek4014=yes 11694 fi 11695else 11696 enableval=yes 11697 enable_tek4014=yes 11698 11699fi; 11700echo "$as_me:11700: result: $enable_tek4014" >&5 11701echo "${ECHO_T}$enable_tek4014" >&6 11702if test "$enable_tek4014" = no ; then 11703 cat >>confdefs.h <<\EOF 11704#define OPT_TEK4014 0 11705EOF 11706 11707else 11708 EXTRAHDRS="$EXTRAHDRS Tekparse.h" 11709 EXTRASRCS="$EXTRASRCS TekPrsTbl.c Tekproc.c" 11710 EXTRAOBJS="$EXTRAOBJS TekPrsTbl.o Tekproc.o" 11711fi 11712 11713echo "$as_me:11713: checking if you want pulldown menus with a toolbar" >&5 11714echo $ECHO_N "checking if you want pulldown menus with a toolbar... $ECHO_C" >&6 11715 11716# Check whether --enable-toolbar or --disable-toolbar was given. 11717if test "${enable_toolbar+set}" = set; then 11718 enableval="$enable_toolbar" 11719 test "$enableval" != yes && enableval=no 11720 if test "$enableval" != "no" ; then 11721 enable_toolbar=yes 11722 else 11723 enable_toolbar=no 11724 fi 11725else 11726 enableval=no 11727 enable_toolbar=no 11728 11729fi; 11730echo "$as_me:11730: result: $enable_toolbar" >&5 11731echo "${ECHO_T}$enable_toolbar" >&6 11732if test "$enable_toolbar" = yes ; then 11733 cat >>confdefs.h <<\EOF 11734#define OPT_TOOLBAR 1 11735EOF 11736 11737fi 11738 11739echo "$as_me:11739: checking if you want VT52 emulation" >&5 11740echo $ECHO_N "checking if you want VT52 emulation... $ECHO_C" >&6 11741 11742# Check whether --enable-vt52 or --disable-vt52 was given. 11743if test "${enable_vt52+set}" = set; then 11744 enableval="$enable_vt52" 11745 test "$enableval" != no && enableval=yes 11746 if test "$enableval" != "yes" ; then 11747 enable_vt52=no 11748 else 11749 enable_vt52=yes 11750 fi 11751else 11752 enableval=yes 11753 enable_vt52=yes 11754 11755fi; 11756echo "$as_me:11756: result: $enable_vt52" >&5 11757echo "${ECHO_T}$enable_vt52" >&6 11758test "$enable_vt52" = no && cat >>confdefs.h <<\EOF 11759#define OPT_VT52_MODE 0 11760EOF 11761 11762echo "$as_me:11762: checking if you want to use mini-luit/Latin9 built-in support" >&5 11763echo $ECHO_N "checking if you want to use mini-luit/Latin9 built-in support... $ECHO_C" >&6 11764 11765# Check whether --enable-mini-luit or --disable-mini-luit was given. 11766if test "${enable_mini_luit+set}" = set; then 11767 enableval="$enable_mini_luit" 11768 test "$enableval" != yes && enableval=no 11769 if test "$enableval" != "no" ; then 11770 enable_mini_luit=yes 11771 else 11772 enable_mini_luit=no 11773 fi 11774else 11775 enableval=no 11776 enable_mini_luit=no 11777 11778fi; 11779echo "$as_me:11779: result: $enable_mini_luit" >&5 11780echo "${ECHO_T}$enable_mini_luit" >&6 11781if test "$enable_mini_luit" = yes ; then 11782 cat >>confdefs.h <<\EOF 11783#define OPT_MINI_LUIT 1 11784EOF 11785 11786fi 11787 11788echo "$as_me:11788: checking if you want to use luit" >&5 11789echo $ECHO_N "checking if you want to use luit... $ECHO_C" >&6 11790 11791# Check whether --enable-luit or --disable-luit was given. 11792if test "${enable_luit+set}" = set; then 11793 enableval="$enable_luit" 11794 test "$enableval" != yes && enableval=no 11795 if test "$enableval" != "no" ; then 11796 enable_luit=yes 11797 else 11798 enable_luit=$enable_mini_luit 11799 fi 11800else 11801 enableval=no 11802 enable_luit=$enable_mini_luit 11803 11804fi; 11805echo "$as_me:11805: result: $enable_luit" >&5 11806echo "${ECHO_T}$enable_luit" >&6 11807if test "$enable_luit" = yes ; then 11808 cat >>confdefs.h <<\EOF 11809#define OPT_LUIT_PROG 1 11810EOF 11811 11812test -z "$LUIT" && LUIT=luit 11813for ac_prog in $LUIT luit 11814do 11815 # Extract the first word of "$ac_prog", so it can be a program name with args. 11816set dummy $ac_prog; ac_word=$2 11817echo "$as_me:11817: checking for $ac_word" >&5 11818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 11819if test "${ac_cv_path_LUIT+set}" = set; then 11820 echo $ECHO_N "(cached) $ECHO_C" >&6 11821else 11822 case $LUIT in 11823 [\\/]* | ?:[\\/]*) 11824 ac_cv_path_LUIT="$LUIT" # Let the user override the test with a path. 11825 ;; 11826 *) 11827 ac_save_IFS=$IFS; IFS=$ac_path_separator 11828ac_dummy="$PATH" 11829for ac_dir in $ac_dummy; do 11830 IFS=$ac_save_IFS 11831 test -z "$ac_dir" && ac_dir=. 11832 if $as_executable_p "$ac_dir/$ac_word"; then 11833 ac_cv_path_LUIT="$ac_dir/$ac_word" 11834 echo "$as_me:11834: found $ac_dir/$ac_word" >&5 11835 break 11836fi 11837done 11838 11839 ;; 11840esac 11841fi 11842LUIT=$ac_cv_path_LUIT 11843 11844if test -n "$LUIT"; then 11845 echo "$as_me:11845: result: $LUIT" >&5 11846echo "${ECHO_T}$LUIT" >&6 11847else 11848 echo "$as_me:11848: result: no" >&5 11849echo "${ECHO_T}no" >&6 11850fi 11851 11852 test -n "$LUIT" && break 11853done 11854test -n "$LUIT" || LUIT="$LUIT" 11855 11856cf_path_prog="" 11857cf_path_args="" 11858IFS="${IFS= }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" 11859for cf_temp in $ac_cv_path_LUIT 11860do 11861 if test -z "$cf_path_prog" ; then 11862 if test "$with_full_paths" = yes ; then 11863 11864if test "x$prefix" != xNONE; then 11865 cf_path_syntax="$prefix" 11866else 11867 cf_path_syntax="$ac_default_prefix" 11868fi 11869 11870case ".$cf_temp" in #(vi 11871.\$\(*\)*|.\'*\'*) #(vi 11872 ;; 11873..|./*|.\\*) #(vi 11874 ;; 11875.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 11876 ;; 11877.\${*prefix}*) #(vi 11878 eval cf_temp="$cf_temp" 11879 case ".$cf_temp" in #(vi 11880 .NONE/*) 11881 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%` 11882 ;; 11883 esac 11884 ;; #(vi 11885.no|.NONE/*) 11886 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%` 11887 ;; 11888*) 11889 break 11890 ;; 11891esac 11892 11893 cf_path_prog="$cf_temp" 11894 else 11895 cf_path_prog="`basename $cf_temp`" 11896 fi 11897 elif test -z "$cf_path_args" ; then 11898 cf_path_args="$cf_temp" 11899 else 11900 cf_path_args="$cf_path_args $cf_temp" 11901 fi 11902done 11903IFS="$cf_save_ifs" 11904 11905if test -n "$cf_path_prog" ; then 11906 11907echo "${as_me-configure}:11907: testing defining path for ${cf_path_prog} ..." 1>&5 11908 11909 cat >>confdefs.h <<EOF 11910#define LUIT_PATH "$cf_path_prog" 11911EOF 11912 11913 test -n "$cf_path_args" && cat >>confdefs.h <<EOF 11914#define LUIT_ARGS "$cf_path_args" 11915EOF 11916 11917fi 11918 11919fi 11920 11921echo "$as_me:11921: checking if you want wide-character support" >&5 11922echo $ECHO_N "checking if you want wide-character support... $ECHO_C" >&6 11923 11924# Check whether --enable-wide-chars or --disable-wide-chars was given. 11925if test "${enable_wide_chars+set}" = set; then 11926 enableval="$enable_wide_chars" 11927 test "$enableval" != no && enableval=yes 11928 if test "$enableval" != "$enable_luit" ; then 11929 enable_wchar=yes 11930 else 11931 enable_wchar=$enable_luit 11932 fi 11933else 11934 enableval=$enable_luit 11935 enable_wchar=$enable_luit 11936 11937fi; 11938echo "$as_me:11938: result: $enable_wchar" >&5 11939echo "${ECHO_T}$enable_wchar" >&6 11940 11941echo "$as_me:11941: checking if you want only 16-bit character support" >&5 11942echo $ECHO_N "checking if you want only 16-bit character support... $ECHO_C" >&6 11943 11944# Check whether --enable-16bit-chars or --disable-16bit-chars was given. 11945if test "${enable_16bit_chars+set}" = set; then 11946 enableval="$enable_16bit_chars" 11947 test "$enableval" != yes && enableval=no 11948 if test "$enableval" != "no" ; then 11949 enable_16bit_chars=yes 11950 else 11951 enable_16bit_chars=no 11952 fi 11953else 11954 enableval=no 11955 enable_16bit_chars=no 11956 11957fi; 11958echo "$as_me:11958: result: $enable_16bit_chars" >&5 11959echo "${ECHO_T}$enable_16bit_chars" >&6 11960 11961if test "$enable_16bit_chars" = yes ; then 11962 cat >>confdefs.h <<\EOF 11963#define OPT_WIDER_ICHAR 0 11964EOF 11965 11966 enable_wchar=yes 11967fi 11968 11969if test "$enable_wchar" = yes ; then 11970 cat >>confdefs.h <<\EOF 11971#define OPT_WIDE_CHARS 1 11972EOF 11973 11974 EXTRAHDRS="$EXTRAHDRS charclass.h precompose.h wcwidth.h" 11975 EXTRASRCS="$EXTRASRCS charclass.c precompose.c wcwidth.c" 11976 EXTRAOBJS="$EXTRAOBJS charclass.o precompose.o wcwidth.o" 11977fi 11978 11979echo "$as_me:11979: checking if you want dynamic-abbreviation support" >&5 11980echo $ECHO_N "checking if you want dynamic-abbreviation support... $ECHO_C" >&6 11981 11982# Check whether --enable-dabbrev or --disable-dabbrev was given. 11983if test "${enable_dabbrev+set}" = set; then 11984 enableval="$enable_dabbrev" 11985 test "$enableval" != yes && enableval=no 11986 if test "$enableval" != "no" ; then 11987 enable_dabbrev=yes 11988 else 11989 enable_dabbrev=no 11990 fi 11991else 11992 enableval=no 11993 enable_dabbrev=no 11994 11995fi; 11996echo "$as_me:11996: result: $enable_dabbrev" >&5 11997echo "${ECHO_T}$enable_dabbrev" >&6 11998if test "$enable_dabbrev" = yes ; then 11999 cat >>confdefs.h <<\EOF 12000#define OPT_DABBREV 1 12001EOF 12002 12003fi 12004 12005echo "$as_me:12005: checking if you want DECterm Locator support" >&5 12006echo $ECHO_N "checking if you want DECterm Locator support... $ECHO_C" >&6 12007 12008# Check whether --enable-dec-locator or --disable-dec-locator was given. 12009if test "${enable_dec_locator+set}" = set; then 12010 enableval="$enable_dec_locator" 12011 test "$enableval" != yes && enableval=no 12012 if test "$enableval" != "no" ; then 12013 enable_dec_locator=yes 12014 else 12015 enable_dec_locator=no 12016 fi 12017else 12018 enableval=no 12019 enable_dec_locator=no 12020 12021fi; 12022echo "$as_me:12022: result: $enable_dec_locator" >&5 12023echo "${ECHO_T}$enable_dec_locator" >&6 12024if test "$enable_dec_locator" = yes ; then 12025 cat >>confdefs.h <<\EOF 12026#define OPT_DEC_LOCATOR 1 12027EOF 12028 12029fi 12030 12031echo "$as_me:12031: checking if you want VT420 rectangle support" >&5 12032echo $ECHO_N "checking if you want VT420 rectangle support... $ECHO_C" >&6 12033 12034# Check whether --enable-rectangles or --disable-rectangles was given. 12035if test "${enable_rectangles+set}" = set; then 12036 enableval="$enable_rectangles" 12037 test "$enableval" != no && enableval=yes 12038 if test "$enableval" != "yes" ; then 12039 enable_rectangles=no 12040 else 12041 enable_rectangles=yes 12042 fi 12043else 12044 enableval=yes 12045 enable_rectangles=yes 12046 12047fi; 12048echo "$as_me:12048: result: $enable_rectangles" >&5 12049echo "${ECHO_T}$enable_rectangles" >&6 12050if test "$enable_rectangles" = yes ; then 12051 cat >>confdefs.h <<\EOF 12052#define OPT_DEC_RECTOPS 1 12053EOF 12054 12055fi 12056 12057echo "$as_me:12057: checking if you want -ziconbeep option" >&5 12058echo $ECHO_N "checking if you want -ziconbeep option... $ECHO_C" >&6 12059 12060# Check whether --enable-ziconbeep or --disable-ziconbeep was given. 12061if test "${enable_ziconbeep+set}" = set; then 12062 enableval="$enable_ziconbeep" 12063 test "$enableval" != no && enableval=yes 12064 if test "$enableval" != "yes" ; then 12065 enable_ziconbeep=no 12066 else 12067 enable_ziconbeep=yes 12068 fi 12069else 12070 enableval=yes 12071 enable_ziconbeep=yes 12072 12073fi; 12074echo "$as_me:12074: result: $enable_ziconbeep" >&5 12075echo "${ECHO_T}$enable_ziconbeep" >&6 12076test "$enable_ziconbeep" = no && cat >>confdefs.h <<\EOF 12077#define OPT_ZICONBEEP 0 12078EOF 12079 12080############################################################################### 12081 12082echo "$as_me:12082: checking if you want debugging traces" >&5 12083echo $ECHO_N "checking if you want debugging traces... $ECHO_C" >&6 12084 12085# Check whether --enable-trace or --disable-trace was given. 12086if test "${enable_trace+set}" = set; then 12087 enableval="$enable_trace" 12088 test "$enableval" != yes && enableval=no 12089 if test "$enableval" != "no" ; then 12090 enable_trace=yes 12091 else 12092 enable_trace=no 12093 fi 12094else 12095 enableval=no 12096 enable_trace=no 12097 12098fi; 12099echo "$as_me:12099: result: $enable_trace" >&5 12100echo "${ECHO_T}$enable_trace" >&6 12101if test "$enable_trace" = yes ; then 12102 cat >>confdefs.h <<\EOF 12103#define OPT_TRACE 1 12104EOF 12105 12106 EXTRASRCS="$EXTRASRCS trace.c" 12107 EXTRAOBJS="$EXTRAOBJS trace.o" 12108fi 12109 12110echo "$as_me:12110: checking if you want to test memory leaks" >&5 12111echo $ECHO_N "checking if you want to test memory leaks... $ECHO_C" >&6 12112 12113# Check whether --enable-leaks or --disable-leaks was given. 12114if test "${enable_leaks+set}" = set; then 12115 enableval="$enable_leaks" 12116 test "$enableval" != no && enableval=yes 12117 if test "$enableval" != "yes" ; then 12118 disable_leaks=yes 12119 else 12120 disable_leaks=no 12121 fi 12122else 12123 enableval=yes 12124 disable_leaks=no 12125 12126fi; 12127echo "$as_me:12127: result: $disable_leaks" >&5 12128echo "${ECHO_T}$disable_leaks" >&6 12129if test "$disable_leaks" = yes ; then 12130 cat >>confdefs.h <<\EOF 12131#define NO_LEAKS 1 12132EOF 12133 12134fi 12135 12136echo "$as_me:12136: checking if you want to see long compiling messages" >&5 12137echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6 12138 12139# Check whether --enable-echo or --disable-echo was given. 12140if test "${enable_echo+set}" = set; then 12141 enableval="$enable_echo" 12142 test "$enableval" != no && enableval=yes 12143 if test "$enableval" != "yes" ; then 12144 12145 ECHO_LT='--silent' 12146 ECHO_LD='@echo linking $@;' 12147 RULE_CC=' @echo compiling $<' 12148 SHOW_CC=' @echo compiling $@' 12149 ECHO_CC='@' 12150 12151 else 12152 12153 ECHO_LT='' 12154 ECHO_LD='' 12155 RULE_CC='# compiling' 12156 SHOW_CC='# compiling' 12157 ECHO_CC='' 12158 12159 fi 12160else 12161 enableval=yes 12162 12163 ECHO_LT='' 12164 ECHO_LD='' 12165 RULE_CC='# compiling' 12166 SHOW_CC='# compiling' 12167 ECHO_CC='' 12168 12169fi; 12170echo "$as_me:12170: result: $enableval" >&5 12171echo "${ECHO_T}$enableval" >&6 12172 12173echo "$as_me:12173: checking if you want magic cookie emulation" >&5 12174echo $ECHO_N "checking if you want magic cookie emulation... $ECHO_C" >&6 12175 12176# Check whether --enable-xmc-glitch or --disable-xmc-glitch was given. 12177if test "${enable_xmc_glitch+set}" = set; then 12178 enableval="$enable_xmc_glitch" 12179 test "$enableval" != yes && enableval=no 12180 if test "$enableval" != "no" ; then 12181 enable_xmc=yes 12182 else 12183 enable_xmc=no 12184 fi 12185else 12186 enableval=no 12187 enable_xmc=no 12188 12189fi; 12190echo "$as_me:12190: result: $enable_xmc" >&5 12191echo "${ECHO_T}$enable_xmc" >&6 12192if test "$enable_xmc" = yes ; then 12193 cat >>confdefs.h <<\EOF 12194#define OPT_XMC_GLITCH 1 12195EOF 12196 12197 EXTRASRCS="$EXTRASRCS testxmc.c" 12198 EXTRAOBJS="$EXTRAOBJS testxmc.o" 12199fi 12200 12201for ac_func in tigetstr 12202do 12203as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12204echo "$as_me:12204: checking for $ac_func" >&5 12205echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 12206if eval "test \"\${$as_ac_var+set}\" = set"; then 12207 echo $ECHO_N "(cached) $ECHO_C" >&6 12208else 12209 cat >conftest.$ac_ext <<_ACEOF 12210#line 12210 "configure" 12211#include "confdefs.h" 12212/* System header to define __stub macros and hopefully few prototypes, 12213 which can conflict with char $ac_func (); below. */ 12214#include <assert.h> 12215/* Override any gcc2 internal prototype to avoid an error. */ 12216#ifdef __cplusplus 12217extern "C" 12218#endif 12219/* We use char because int might match the return type of a gcc2 12220 builtin and then its argument prototype would still apply. */ 12221char $ac_func (); 12222char (*f) (); 12223 12224int 12225main () 12226{ 12227/* The GNU C library defines this for functions which it implements 12228 to always fail with ENOSYS. Some functions are actually named 12229 something starting with __ and the normal name is an alias. */ 12230#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 12231choke me 12232#else 12233f = $ac_func; 12234#endif 12235 12236 ; 12237 return 0; 12238} 12239_ACEOF 12240rm -f conftest.$ac_objext conftest$ac_exeext 12241if { (eval echo "$as_me:12241: \"$ac_link\"") >&5 12242 (eval $ac_link) 2>&5 12243 ac_status=$? 12244 echo "$as_me:12244: \$? = $ac_status" >&5 12245 (exit $ac_status); } && 12246 { ac_try='test -s conftest$ac_exeext' 12247 { (eval echo "$as_me:12247: \"$ac_try\"") >&5 12248 (eval $ac_try) 2>&5 12249 ac_status=$? 12250 echo "$as_me:12250: \$? = $ac_status" >&5 12251 (exit $ac_status); }; }; then 12252 eval "$as_ac_var=yes" 12253else 12254 echo "$as_me: failed program was:" >&5 12255cat conftest.$ac_ext >&5 12256eval "$as_ac_var=no" 12257fi 12258rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12259fi 12260echo "$as_me:12260: result: `eval echo '${'$as_ac_var'}'`" >&5 12261echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 12262if test `eval echo '${'$as_ac_var'}'` = yes; then 12263 cat >>confdefs.h <<EOF 12264#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12265EOF 12266 12267fi 12268done 12269 12270if test -n "$cf_cv_lib_part_tgetent"; then 12271 12272for ac_func in use_extended_names 12273do 12274as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12275echo "$as_me:12275: checking for $ac_func" >&5 12276echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 12277if eval "test \"\${$as_ac_var+set}\" = set"; then 12278 echo $ECHO_N "(cached) $ECHO_C" >&6 12279else 12280 cat >conftest.$ac_ext <<_ACEOF 12281#line 12281 "configure" 12282#include "confdefs.h" 12283/* System header to define __stub macros and hopefully few prototypes, 12284 which can conflict with char $ac_func (); below. */ 12285#include <assert.h> 12286/* Override any gcc2 internal prototype to avoid an error. */ 12287#ifdef __cplusplus 12288extern "C" 12289#endif 12290/* We use char because int might match the return type of a gcc2 12291 builtin and then its argument prototype would still apply. */ 12292char $ac_func (); 12293char (*f) (); 12294 12295int 12296main () 12297{ 12298/* The GNU C library defines this for functions which it implements 12299 to always fail with ENOSYS. Some functions are actually named 12300 something starting with __ and the normal name is an alias. */ 12301#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 12302choke me 12303#else 12304f = $ac_func; 12305#endif 12306 12307 ; 12308 return 0; 12309} 12310_ACEOF 12311rm -f conftest.$ac_objext conftest$ac_exeext 12312if { (eval echo "$as_me:12312: \"$ac_link\"") >&5 12313 (eval $ac_link) 2>&5 12314 ac_status=$? 12315 echo "$as_me:12315: \$? = $ac_status" >&5 12316 (exit $ac_status); } && 12317 { ac_try='test -s conftest$ac_exeext' 12318 { (eval echo "$as_me:12318: \"$ac_try\"") >&5 12319 (eval $ac_try) 2>&5 12320 ac_status=$? 12321 echo "$as_me:12321: \$? = $ac_status" >&5 12322 (exit $ac_status); }; }; then 12323 eval "$as_ac_var=yes" 12324else 12325 echo "$as_me: failed program was:" >&5 12326cat conftest.$ac_ext >&5 12327eval "$as_ac_var=no" 12328fi 12329rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12330fi 12331echo "$as_me:12331: result: `eval echo '${'$as_ac_var'}'`" >&5 12332echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 12333if test `eval echo '${'$as_ac_var'}'` = yes; then 12334 cat >>confdefs.h <<EOF 12335#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12336EOF 12337 12338fi 12339done 12340 12341fi 12342 12343if test -n "$GCC" ; then 12344echo "$as_me:12344: checking if you want to turn on gcc warnings" >&5 12345echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6 12346 12347# Check whether --enable-warnings or --disable-warnings was given. 12348if test "${enable_warnings+set}" = set; then 12349 enableval="$enable_warnings" 12350 test "$enableval" != yes && enableval=no 12351 if test "$enableval" != "no" ; then 12352 with_warnings=yes 12353 else 12354 with_warnings=no 12355 fi 12356else 12357 enableval=no 12358 with_warnings=no 12359 12360fi; 12361echo "$as_me:12361: result: $with_warnings" >&5 12362echo "${ECHO_T}$with_warnings" >&6 12363if test "$with_warnings" = yes 12364then 12365 12366if test "$GCC" = yes 12367then 12368cat > conftest.i <<EOF 12369#ifndef GCC_PRINTF 12370#define GCC_PRINTF 0 12371#endif 12372#ifndef GCC_SCANF 12373#define GCC_SCANF 0 12374#endif 12375#ifndef GCC_NORETURN 12376#define GCC_NORETURN /* nothing */ 12377#endif 12378#ifndef GCC_UNUSED 12379#define GCC_UNUSED /* nothing */ 12380#endif 12381EOF 12382if test "$GCC" = yes 12383then 12384 { echo "$as_me:12384: checking for $CC __attribute__ directives..." >&5 12385echo "$as_me: checking for $CC __attribute__ directives..." >&6;} 12386cat > conftest.$ac_ext <<EOF 12387#line 12387 "${as_me-configure}" 12388#include "confdefs.h" 12389#include "conftest.h" 12390#include "conftest.i" 12391#if GCC_PRINTF 12392#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) 12393#else 12394#define GCC_PRINTFLIKE(fmt,var) /*nothing*/ 12395#endif 12396#if GCC_SCANF 12397#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) 12398#else 12399#define GCC_SCANFLIKE(fmt,var) /*nothing*/ 12400#endif 12401extern void wow(char *,...) GCC_SCANFLIKE(1,2); 12402extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN; 12403extern void foo(void) GCC_NORETURN; 12404int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; } 12405EOF 12406 for cf_attribute in scanf printf unused noreturn 12407 do 12408 12409cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 12410 12411 cf_directive="__attribute__(($cf_attribute))" 12412 echo "checking for $CC $cf_directive" 1>&5 12413 case $cf_attribute in 12414 scanf|printf) 12415 cat >conftest.h <<EOF 12416#define GCC_$cf_ATTRIBUTE 1 12417EOF 12418 ;; 12419 *) 12420 cat >conftest.h <<EOF 12421#define GCC_$cf_ATTRIBUTE $cf_directive 12422EOF 12423 ;; 12424 esac 12425 if { (eval echo "$as_me:12425: \"$ac_compile\"") >&5 12426 (eval $ac_compile) 2>&5 12427 ac_status=$? 12428 echo "$as_me:12428: \$? = $ac_status" >&5 12429 (exit $ac_status); }; then 12430 test -n "$verbose" && echo "$as_me:12430: result: ... $cf_attribute" >&5 12431echo "${ECHO_T}... $cf_attribute" >&6 12432 cat conftest.h >>confdefs.h 12433 fi 12434 done 12435else 12436 fgrep define conftest.i >>confdefs.h 12437fi 12438rm -rf conftest* 12439fi 12440 12441GCC_VERSION=none 12442if test "$GCC" = yes ; then 12443 echo "$as_me:12443: checking version of $CC" >&5 12444echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 12445 GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`" 12446 test -z "$GCC_VERSION" && GCC_VERSION=unknown 12447 echo "$as_me:12447: result: $GCC_VERSION" >&5 12448echo "${ECHO_T}$GCC_VERSION" >&6 12449fi 12450 12451INTEL_COMPILER=no 12452 12453if test "$GCC" = yes ; then 12454 case $host_os in 12455 linux*|gnu*) 12456 echo "$as_me:12456: checking if this is really Intel C compiler" >&5 12457echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6 12458 cf_save_CFLAGS="$CFLAGS" 12459 CFLAGS="$CFLAGS -no-gcc" 12460 cat >conftest.$ac_ext <<_ACEOF 12461#line 12461 "configure" 12462#include "confdefs.h" 12463 12464int 12465main () 12466{ 12467 12468#ifdef __INTEL_COMPILER 12469#else 12470make an error 12471#endif 12472 12473 ; 12474 return 0; 12475} 12476_ACEOF 12477rm -f conftest.$ac_objext 12478if { (eval echo "$as_me:12478: \"$ac_compile\"") >&5 12479 (eval $ac_compile) 2>&5 12480 ac_status=$? 12481 echo "$as_me:12481: \$? = $ac_status" >&5 12482 (exit $ac_status); } && 12483 { ac_try='test -s conftest.$ac_objext' 12484 { (eval echo "$as_me:12484: \"$ac_try\"") >&5 12485 (eval $ac_try) 2>&5 12486 ac_status=$? 12487 echo "$as_me:12487: \$? = $ac_status" >&5 12488 (exit $ac_status); }; }; then 12489 INTEL_COMPILER=yes 12490cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc" 12491 12492else 12493 echo "$as_me: failed program was:" >&5 12494cat conftest.$ac_ext >&5 12495fi 12496rm -f conftest.$ac_objext conftest.$ac_ext 12497 CFLAGS="$cf_save_CFLAGS" 12498 echo "$as_me:12498: result: $INTEL_COMPILER" >&5 12499echo "${ECHO_T}$INTEL_COMPILER" >&6 12500 ;; 12501 esac 12502fi 12503 12504cat > conftest.$ac_ext <<EOF 12505#line 12505 "${as_me-configure}" 12506int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; } 12507EOF 12508 12509if test "$INTEL_COMPILER" = yes 12510then 12511# The "-wdXXX" options suppress warnings: 12512# remark #1419: external declaration in primary source file 12513# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem) 12514# remark #1684: conversion from pointer to same-sized integral type (potential portability problem) 12515# remark #193: zero used for undefined preprocessing identifier 12516# remark #593: variable "curs_sb_left_arrow" was set but never used 12517# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits 12518# remark #869: parameter "tw" was never referenced 12519# remark #981: operands are evaluated in unspecified order 12520# warning #279: controlling expression is constant 12521 12522 { echo "$as_me:12522: checking for $CC warning options..." >&5 12523echo "$as_me: checking for $CC warning options..." >&6;} 12524 cf_save_CFLAGS="$CFLAGS" 12525 EXTRA_CFLAGS="-Wall" 12526 for cf_opt in \ 12527 wd1419 \ 12528 wd1683 \ 12529 wd1684 \ 12530 wd193 \ 12531 wd593 \ 12532 wd279 \ 12533 wd810 \ 12534 wd869 \ 12535 wd981 12536 do 12537 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 12538 if { (eval echo "$as_me:12538: \"$ac_compile\"") >&5 12539 (eval $ac_compile) 2>&5 12540 ac_status=$? 12541 echo "$as_me:12541: \$? = $ac_status" >&5 12542 (exit $ac_status); }; then 12543 test -n "$verbose" && echo "$as_me:12543: result: ... -$cf_opt" >&5 12544echo "${ECHO_T}... -$cf_opt" >&6 12545 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 12546 fi 12547 done 12548 CFLAGS="$cf_save_CFLAGS" 12549 12550elif test "$GCC" = yes 12551then 12552 { echo "$as_me:12552: checking for $CC warning options..." >&5 12553echo "$as_me: checking for $CC warning options..." >&6;} 12554 cf_save_CFLAGS="$CFLAGS" 12555 EXTRA_CFLAGS="-W -Wall" 12556 cf_warn_CONST="" 12557 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings" 12558 for cf_opt in \ 12559 Wbad-function-cast \ 12560 Wcast-align \ 12561 Wcast-qual \ 12562 Winline \ 12563 Wmissing-declarations \ 12564 Wmissing-prototypes \ 12565 Wnested-externs \ 12566 Wpointer-arith \ 12567 Wshadow \ 12568 Wstrict-prototypes \ 12569 Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum 12570 do 12571 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 12572 if { (eval echo "$as_me:12572: \"$ac_compile\"") >&5 12573 (eval $ac_compile) 2>&5 12574 ac_status=$? 12575 echo "$as_me:12575: \$? = $ac_status" >&5 12576 (exit $ac_status); }; then 12577 test -n "$verbose" && echo "$as_me:12577: result: ... -$cf_opt" >&5 12578echo "${ECHO_T}... -$cf_opt" >&6 12579 case $cf_opt in #(vi 12580 Wcast-qual) #(vi 12581 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES" 12582 ;; 12583 Winline) #(vi 12584 case $GCC_VERSION in 12585 [34].*) 12586 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 12587 12588echo "${as_me-configure}:12588: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 12589 12590 continue;; 12591 esac 12592 ;; 12593 esac 12594 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 12595 fi 12596 done 12597 CFLAGS="$cf_save_CFLAGS" 12598fi 12599rm -f conftest* 12600 12601fi 12602fi 12603 12604test "$disable_setuid" = yes && cat >>confdefs.h <<\EOF 12605#define DISABLE_SETUID 1 12606EOF 12607 12608test "$disable_setgid" = yes && cat >>confdefs.h <<\EOF 12609#define DISABLE_SETGID 1 12610EOF 12611 12612if test $disable_setuid = yes ; then 12613 MAY_SETUID="#" 12614 NOT_SETUID= 12615elif test $disable_setgid = yes ; then 12616 MAY_SETUID="#" 12617 NOT_SETUID= 12618else 12619 MAY_SETUID= 12620 NOT_SETUID="#" 12621fi 12622 12623### remove from CPPFLAGS the optional features we define in xtermcfg.h 12624### or other conflicting symbols that may be defined via imake: 12625for cf_def in \ 12626 __STDC__ \ 12627 ALLOWLOGGING \ 12628 ALLOWLOGFILEEXEC \ 12629 OPT_LUIT_PROG \ 12630 OPT_WIDE_CHARS \ 12631 SCROLLBAR_RIGHT \ 12632 USE_TTY_GROUP \ 12633 USE_UTEMPTER \ 12634 XRENDERFONT 12635do 12636 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-D$cf_def//` 12637done 12638 12639### output Makefile and xtermcfg.h 12640ac_config_files="$ac_config_files Makefile" 12641cat >confcache <<\_ACEOF 12642# This file is a shell script that caches the results of configure 12643# tests run on this system so they can be shared between configure 12644# scripts and configure runs, see configure's option --config-cache. 12645# It is not useful on other systems. If it contains results you don't 12646# want to keep, you may remove or edit it. 12647# 12648# config.status only pays attention to the cache file if you give it 12649# the --recheck option to rerun configure. 12650# 12651# `ac_cv_env_foo' variables (set or unset) will be overriden when 12652# loading this file, other *unset* `ac_cv_foo' will be assigned the 12653# following values. 12654 12655_ACEOF 12656 12657# The following way of writing the cache mishandles newlines in values, 12658# but we know of no workaround that is simple, portable, and efficient. 12659# So, don't put newlines in cache variables' values. 12660# Ultrix sh set writes to stderr and can't be redirected directly, 12661# and sets the high bit in the cache file unless we assign to the vars. 12662{ 12663 (set) 2>&1 | 12664 case `(ac_space=' '; set | grep ac_space) 2>&1` in 12665 *ac_space=\ *) 12666 # `set' does not quote correctly, so add quotes (double-quote 12667 # substitution turns \\\\ into \\, and sed turns \\ into \). 12668 sed -n \ 12669 "s/'/'\\\\''/g; 12670 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12671 ;; 12672 *) 12673 # `set' quotes correctly as required by POSIX, so do not add quotes. 12674 sed -n \ 12675 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 12676 ;; 12677 esac; 12678} | 12679 sed ' 12680 t clear 12681 : clear 12682 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12683 t end 12684 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12685 : end' >>confcache 12686if cmp -s $cache_file confcache; then :; else 12687 if test -w $cache_file; then 12688 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 12689 cat confcache >$cache_file 12690 else 12691 echo "not updating unwritable cache $cache_file" 12692 fi 12693fi 12694rm -f confcache 12695 12696test "x$prefix" = xNONE && prefix=$ac_default_prefix 12697# Let make expand exec_prefix. 12698test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12699 12700# VPATH may cause trouble with some makes, so we remove $(srcdir), 12701# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 12702# trailing colons and then remove the whole line if VPATH becomes empty 12703# (actually we leave an empty line to preserve line numbers). 12704if test "x$srcdir" = x.; then 12705 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 12706s/:*\$(srcdir):*/:/; 12707s/:*\${srcdir}:*/:/; 12708s/:*@srcdir@:*/:/; 12709s/^\([^=]*=[ ]*\):*/\1/; 12710s/:*$//; 12711s/^[^=]*=[ ]*$//; 12712}' 12713fi 12714 12715DEFS=-DHAVE_CONFIG_H 12716 12717: ${CONFIG_STATUS=./config.status} 12718ac_clean_files_save=$ac_clean_files 12719ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12720{ echo "$as_me:12720: creating $CONFIG_STATUS" >&5 12721echo "$as_me: creating $CONFIG_STATUS" >&6;} 12722cat >$CONFIG_STATUS <<_ACEOF 12723#! $SHELL 12724# Generated automatically by configure. 12725# Run this file to recreate the current configuration. 12726# Compiler output produced by configure, useful for debugging 12727# configure, is in config.log if it exists. 12728 12729debug=false 12730SHELL=\${CONFIG_SHELL-$SHELL} 12731ac_cs_invocation="\$0 \$@" 12732 12733_ACEOF 12734 12735cat >>$CONFIG_STATUS <<\_ACEOF 12736# Be Bourne compatible 12737if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 12738 emulate sh 12739 NULLCMD=: 12740elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 12741 set -o posix 12742fi 12743 12744# Name of the executable. 12745as_me=`echo "$0" |sed 's,.*[\\/],,'` 12746 12747if expr a : '\(a\)' >/dev/null 2>&1; then 12748 as_expr=expr 12749else 12750 as_expr=false 12751fi 12752 12753rm -f conf$$ conf$$.exe conf$$.file 12754echo >conf$$.file 12755if ln -s conf$$.file conf$$ 2>/dev/null; then 12756 # We could just check for DJGPP; but this test a) works b) is more generic 12757 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 12758 if test -f conf$$.exe; then 12759 # Don't use ln at all; we don't have any links 12760 as_ln_s='cp -p' 12761 else 12762 as_ln_s='ln -s' 12763 fi 12764elif ln conf$$.file conf$$ 2>/dev/null; then 12765 as_ln_s=ln 12766else 12767 as_ln_s='cp -p' 12768fi 12769rm -f conf$$ conf$$.exe conf$$.file 12770 12771as_executable_p="test -f" 12772 12773# Support unset when possible. 12774if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 12775 as_unset=unset 12776else 12777 as_unset=false 12778fi 12779 12780# NLS nuisances. 12781$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 12782$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 12783$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 12784$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 12785$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 12786$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 12787$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 12788$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 12789 12790# IFS 12791# We need space, tab and new line, in precisely that order. 12792as_nl=' 12793' 12794IFS=" $as_nl" 12795 12796# CDPATH. 12797$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 12798 12799exec 6>&1 12800 12801_ACEOF 12802 12803# Files that config.status was made for. 12804if test -n "$ac_config_files"; then 12805 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 12806fi 12807 12808if test -n "$ac_config_headers"; then 12809 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 12810fi 12811 12812if test -n "$ac_config_links"; then 12813 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 12814fi 12815 12816if test -n "$ac_config_commands"; then 12817 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 12818fi 12819 12820cat >>$CONFIG_STATUS <<\EOF 12821 12822ac_cs_usage="\ 12823\`$as_me' instantiates files from templates according to the 12824current configuration. 12825 12826Usage: $0 [OPTIONS] [FILE]... 12827 12828 -h, --help print this help, then exit 12829 -V, --version print version number, then exit 12830 -d, --debug don't remove temporary files 12831 --recheck update $as_me by reconfiguring in the same conditions 12832 --file=FILE[:TEMPLATE] 12833 instantiate the configuration file FILE 12834 --header=FILE[:TEMPLATE] 12835 instantiate the configuration header FILE 12836 12837Configuration files: 12838$config_files 12839 12840Configuration headers: 12841$config_headers 12842 12843Report bugs to <bug-autoconf@gnu.org>." 12844EOF 12845 12846cat >>$CONFIG_STATUS <<EOF 12847ac_cs_version="\\ 12848config.status 12849configured by $0, generated by GNU Autoconf 2.52.20081225, 12850 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 12851 12852Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 12853Free Software Foundation, Inc. 12854This config.status script is free software; the Free Software Foundation 12855gives unlimited permission to copy, distribute and modify it." 12856srcdir=$srcdir 12857INSTALL="$INSTALL" 12858EOF 12859 12860cat >>$CONFIG_STATUS <<\EOF 12861# If no file are specified by the user, then we need to provide default 12862# value. By we need to know if files were specified by the user. 12863ac_need_defaults=: 12864while test $# != 0 12865do 12866 case $1 in 12867 --*=*) 12868 ac_option=`expr "x$1" : 'x\([^=]*\)='` 12869 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 12870 shift 12871 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 12872 shift 12873 ;; 12874 -*);; 12875 *) # This is not an option, so the user has probably given explicit 12876 # arguments. 12877 ac_need_defaults=false;; 12878 esac 12879 12880 case $1 in 12881 # Handling of the options. 12882EOF 12883cat >>$CONFIG_STATUS <<EOF 12884 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12885 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 12886 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 12887EOF 12888cat >>$CONFIG_STATUS <<\EOF 12889 --version | --vers* | -V ) 12890 echo "$ac_cs_version"; exit 0 ;; 12891 --he | --h) 12892 # Conflict between --help and --header 12893 { { echo "$as_me:12893: error: ambiguous option: $1 12894Try \`$0 --help' for more information." >&5 12895echo "$as_me: error: ambiguous option: $1 12896Try \`$0 --help' for more information." >&2;} 12897 { (exit 1); exit 1; }; };; 12898 --help | --hel | -h ) 12899 echo "$ac_cs_usage"; exit 0 ;; 12900 --debug | --d* | -d ) 12901 debug=: ;; 12902 --file | --fil | --fi | --f ) 12903 shift 12904 CONFIG_FILES="$CONFIG_FILES $1" 12905 ac_need_defaults=false;; 12906 --header | --heade | --head | --hea ) 12907 shift 12908 CONFIG_HEADERS="$CONFIG_HEADERS $1" 12909 ac_need_defaults=false;; 12910 12911 # This is an error. 12912 -*) { { echo "$as_me:12912: error: unrecognized option: $1 12913Try \`$0 --help' for more information." >&5 12914echo "$as_me: error: unrecognized option: $1 12915Try \`$0 --help' for more information." >&2;} 12916 { (exit 1); exit 1; }; } ;; 12917 12918 *) ac_config_targets="$ac_config_targets $1" ;; 12919 12920 esac 12921 shift 12922done 12923 12924exec 5>>config.log 12925cat >&5 << _ACEOF 12926 12927## ----------------------- ## 12928## Running config.status. ## 12929## ----------------------- ## 12930 12931This file was extended by $as_me 2.52.20081225, executed with 12932 CONFIG_FILES = $CONFIG_FILES 12933 CONFIG_HEADERS = $CONFIG_HEADERS 12934 CONFIG_LINKS = $CONFIG_LINKS 12935 CONFIG_COMMANDS = $CONFIG_COMMANDS 12936 > $ac_cs_invocation 12937on `(hostname || uname -n) 2>/dev/null | sed 1q` 12938 12939_ACEOF 12940EOF 12941 12942cat >>$CONFIG_STATUS <<\EOF 12943for ac_config_target in $ac_config_targets 12944do 12945 case "$ac_config_target" in 12946 # Handling of arguments. 12947 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12948 "xtermcfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS xtermcfg.h:xtermcfg.hin" ;; 12949 *) { { echo "$as_me:12949: error: invalid argument: $ac_config_target" >&5 12950echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12951 { (exit 1); exit 1; }; };; 12952 esac 12953done 12954 12955# If the user did not use the arguments to specify the items to instantiate, 12956# then the envvar interface is used. Set only those that are not. 12957# We use the long form for the default assignment because of an extremely 12958# bizarre bug on SunOS 4.1.3. 12959if $ac_need_defaults; then 12960 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12961 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12962fi 12963 12964# Create a temporary directory, and hook for its removal unless debugging. 12965$debug || 12966{ 12967 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 12968 trap '{ (exit 1); exit 1; }' 1 2 13 15 12969} 12970 12971# Create a (secure) tmp directory for tmp files. 12972: ${TMPDIR=/tmp} 12973{ 12974 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 12975 test -n "$tmp" && test -d "$tmp" 12976} || 12977{ 12978 tmp=$TMPDIR/cs$$-$RANDOM 12979 (umask 077 && mkdir $tmp) 12980} || 12981{ 12982 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 12983 { (exit 1); exit 1; } 12984} 12985 12986EOF 12987 12988cat >>$CONFIG_STATUS <<EOF 12989 12990# 12991# CONFIG_FILES section. 12992# 12993 12994# No need to generate the scripts if there are no CONFIG_FILES. 12995# This happens for instance when ./config.status config.h 12996if test -n "\$CONFIG_FILES"; then 12997 # Protect against being on the right side of a sed subst in config.status. 12998 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 12999 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 13000s,@SHELL@,$SHELL,;t t 13001s,@exec_prefix@,$exec_prefix,;t t 13002s,@prefix@,$prefix,;t t 13003s,@program_transform_name@,$program_transform_name,;t t 13004s,@bindir@,$bindir,;t t 13005s,@sbindir@,$sbindir,;t t 13006s,@libexecdir@,$libexecdir,;t t 13007s,@datadir@,$datadir,;t t 13008s,@sysconfdir@,$sysconfdir,;t t 13009s,@sharedstatedir@,$sharedstatedir,;t t 13010s,@localstatedir@,$localstatedir,;t t 13011s,@libdir@,$libdir,;t t 13012s,@includedir@,$includedir,;t t 13013s,@oldincludedir@,$oldincludedir,;t t 13014s,@infodir@,$infodir,;t t 13015s,@mandir@,$mandir,;t t 13016s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 13017s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 13018s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 13019s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 13020s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 13021s,@build_alias@,$build_alias,;t t 13022s,@host_alias@,$host_alias,;t t 13023s,@target_alias@,$target_alias,;t t 13024s,@ECHO_C@,$ECHO_C,;t t 13025s,@ECHO_N@,$ECHO_N,;t t 13026s,@ECHO_T@,$ECHO_T,;t t 13027s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 13028s,@DEFS@,$DEFS,;t t 13029s,@LIBS@,$LIBS,;t t 13030s,@build@,$build,;t t 13031s,@build_cpu@,$build_cpu,;t t 13032s,@build_vendor@,$build_vendor,;t t 13033s,@build_os@,$build_os,;t t 13034s,@host@,$host,;t t 13035s,@host_cpu@,$host_cpu,;t t 13036s,@host_vendor@,$host_vendor,;t t 13037s,@host_os@,$host_os,;t t 13038s,@CC@,$CC,;t t 13039s,@CFLAGS@,$CFLAGS,;t t 13040s,@LDFLAGS@,$LDFLAGS,;t t 13041s,@CPPFLAGS@,$CPPFLAGS,;t t 13042s,@ac_ct_CC@,$ac_ct_CC,;t t 13043s,@EXEEXT@,$EXEEXT,;t t 13044s,@OBJEXT@,$OBJEXT,;t t 13045s,@CPP@,$CPP,;t t 13046s,@AWK@,$AWK,;t t 13047s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 13048s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 13049s,@INSTALL_DATA@,$INSTALL_DATA,;t t 13050s,@LN_S@,$LN_S,;t t 13051s,@LINT@,$LINT,;t t 13052s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t 13053s,@PROG_EXT@,$PROG_EXT,;t t 13054s,@appsdir@,$appsdir,;t t 13055s,@no_appsdir@,$no_appsdir,;t t 13056s,@icondir@,$icondir,;t t 13057s,@no_icondir@,$no_icondir,;t t 13058s,@desktop_utils@,$desktop_utils,;t t 13059s,@DESKTOP_FLAGS@,$DESKTOP_FLAGS,;t t 13060s,@XTERM_PATH@,$XTERM_PATH,;t t 13061s,@XTERM_SYMLINK@,$XTERM_SYMLINK,;t t 13062s,@SINSTALL_OPTS@,$SINSTALL_OPTS,;t t 13063s,@X_CFLAGS@,$X_CFLAGS,;t t 13064s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 13065s,@X_LIBS@,$X_LIBS,;t t 13066s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 13067s,@IMAKE@,$IMAKE,;t t 13068s,@IMAKE_CFLAGS@,$IMAKE_CFLAGS,;t t 13069s,@IMAKE_LOADFLAGS@,$IMAKE_LOADFLAGS,;t t 13070s,@TERMINFO_DIR@,$TERMINFO_DIR,;t t 13071s,@SET_TERMINFO@,$SET_TERMINFO,;t t 13072s,@PKG_CONFIG@,$PKG_CONFIG,;t t 13073s,@FREETYPE_XFT_CONFIG@,$FREETYPE_XFT_CONFIG,;t t 13074s,@FREETYPE_OLD_CONFIG@,$FREETYPE_OLD_CONFIG,;t t 13075s,@XRENDERFONT@,$XRENDERFONT,;t t 13076s,@HAVE_TYPE_FCCHAR32@,$HAVE_TYPE_FCCHAR32,;t t 13077s,@HAVE_TYPE_XFTCHARSPEC@,$HAVE_TYPE_XFTCHARSPEC,;t t 13078s,@LUIT@,$LUIT,;t t 13079s,@ECHO_LT@,$ECHO_LT,;t t 13080s,@ECHO_LD@,$ECHO_LD,;t t 13081s,@RULE_CC@,$RULE_CC,;t t 13082s,@SHOW_CC@,$SHOW_CC,;t t 13083s,@ECHO_CC@,$ECHO_CC,;t t 13084s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t 13085s,@CHARPROC_DEPS@,$CHARPROC_DEPS,;t t 13086s,@EXTRAHDRS@,$EXTRAHDRS,;t t 13087s,@EXTRASRCS@,$EXTRASRCS,;t t 13088s,@EXTRAOBJS@,$EXTRAOBJS,;t t 13089s,@MAY_SETUID@,$MAY_SETUID,;t t 13090s,@NOT_SETUID@,$NOT_SETUID,;t t 13091CEOF 13092 13093EOF 13094 13095 cat >>$CONFIG_STATUS <<\EOF 13096 # Split the substitutions into bite-sized pieces for seds with 13097 # small command number limits, like on Digital OSF/1 and HP-UX. 13098 ac_max_sed_lines=48 13099 ac_sed_frag=1 # Number of current file. 13100 ac_beg=1 # First line for current file. 13101 ac_end=$ac_max_sed_lines # Line after last line for current file. 13102 ac_more_lines=: 13103 ac_sed_cmds= 13104 while $ac_more_lines; do 13105 if test $ac_beg -gt 1; then 13106 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 13107 else 13108 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 13109 fi 13110 if test ! -s $tmp/subs.frag; then 13111 ac_more_lines=false 13112 else 13113 # The purpose of the label and of the branching condition is to 13114 # speed up the sed processing (if there are no `@' at all, there 13115 # is no need to browse any of the substitutions). 13116 # These are the two extra sed commands mentioned above. 13117 (echo ':t 13118 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 13119 if test -z "$ac_sed_cmds"; then 13120 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 13121 else 13122 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 13123 fi 13124 ac_sed_frag=`expr $ac_sed_frag + 1` 13125 ac_beg=$ac_end 13126 ac_end=`expr $ac_end + $ac_max_sed_lines` 13127 fi 13128 done 13129 if test -z "$ac_sed_cmds"; then 13130 ac_sed_cmds=cat 13131 fi 13132fi # test -n "$CONFIG_FILES" 13133 13134EOF 13135cat >>$CONFIG_STATUS <<\EOF 13136for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 13137 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 13138 case $ac_file in 13139 - | *:- | *:-:* ) # input from stdin 13140 cat >$tmp/stdin 13141 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 13142 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 13143 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 13144 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 13145 * ) ac_file_in=$ac_file.in ;; 13146 esac 13147 13148 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 13149 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13150 X"$ac_file" : 'X\(//\)[^/]' \| \ 13151 X"$ac_file" : 'X\(//\)$' \| \ 13152 X"$ac_file" : 'X\(/\)' \| \ 13153 . : '\(.\)' 2>/dev/null || 13154echo X"$ac_file" | 13155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 13156 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 13157 /^X\(\/\/\)$/{ s//\1/; q; } 13158 /^X\(\/\).*/{ s//\1/; q; } 13159 s/.*/./; q'` 13160 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 13161 { case "$ac_dir" in 13162 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 13163 *) as_incr_dir=.;; 13164esac 13165as_dummy="$ac_dir" 13166for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 13167 case $as_mkdir_dir in 13168 # Skip DOS drivespec 13169 ?:) as_incr_dir=$as_mkdir_dir ;; 13170 *) 13171 as_incr_dir=$as_incr_dir/$as_mkdir_dir 13172 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 13173 ;; 13174 esac 13175done; } 13176 13177 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 13178 # A "../" for each directory in $ac_dir_suffix. 13179 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 13180 else 13181 ac_dir_suffix= ac_dots= 13182 fi 13183 13184 case $srcdir in 13185 .) ac_srcdir=. 13186 if test -z "$ac_dots"; then 13187 ac_top_srcdir=. 13188 else 13189 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` 13190 fi ;; 13191 [\\/]* | ?:[\\/]* ) 13192 ac_srcdir=$srcdir$ac_dir_suffix; 13193 ac_top_srcdir=$srcdir ;; 13194 *) # Relative path. 13195 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix 13196 ac_top_srcdir=$ac_dots$srcdir ;; 13197 esac 13198 13199 case $INSTALL in 13200 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13201 *) ac_INSTALL=$ac_dots$INSTALL ;; 13202 esac 13203 13204 if test x"$ac_file" != x-; then 13205 { echo "$as_me:13205: creating $ac_file" >&5 13206echo "$as_me: creating $ac_file" >&6;} 13207 rm -f "$ac_file" 13208 fi 13209 # Let's still pretend it is `configure' which instantiates (i.e., don't 13210 # use $as_me), people would be surprised to read: 13211 # /* config.h. Generated automatically by config.status. */ 13212 configure_input="Generated automatically from `echo $ac_file_in | 13213 sed 's,.*/,,'` by configure." 13214 13215 # First look for the input files in the build tree, otherwise in the 13216 # src tree. 13217 ac_file_inputs=`IFS=: 13218 for f in $ac_file_in; do 13219 case $f in 13220 -) echo $tmp/stdin ;; 13221 [\\/$]*) 13222 # Absolute (can't be DOS-style, as IFS=:) 13223 test -f "$f" || { { echo "$as_me:13223: error: cannot find input file: $f" >&5 13224echo "$as_me: error: cannot find input file: $f" >&2;} 13225 { (exit 1); exit 1; }; } 13226 echo $f;; 13227 *) # Relative 13228 if test -f "$f"; then 13229 # Build tree 13230 echo $f 13231 elif test -f "$srcdir/$f"; then 13232 # Source tree 13233 echo $srcdir/$f 13234 else 13235 # /dev/null tree 13236 { { echo "$as_me:13236: error: cannot find input file: $f" >&5 13237echo "$as_me: error: cannot find input file: $f" >&2;} 13238 { (exit 1); exit 1; }; } 13239 fi;; 13240 esac 13241 done` || { (exit 1); exit 1; } 13242EOF 13243cat >>$CONFIG_STATUS <<EOF 13244 sed "$ac_vpsub 13245$extrasub 13246EOF 13247cat >>$CONFIG_STATUS <<\EOF 13248:t 13249/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13250s,@configure_input@,$configure_input,;t t 13251s,@srcdir@,$ac_srcdir,;t t 13252s,@top_srcdir@,$ac_top_srcdir,;t t 13253s,@INSTALL@,$ac_INSTALL,;t t 13254" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 13255 rm -f $tmp/stdin 13256 if test x"$ac_file" != x-; then 13257 mv $tmp/out $ac_file 13258 else 13259 cat $tmp/out 13260 rm -f $tmp/out 13261 fi 13262 13263done 13264EOF 13265cat >>$CONFIG_STATUS <<\EOF 13266 13267# 13268# CONFIG_HEADER section. 13269# 13270 13271# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 13272# NAME is the cpp macro being defined and VALUE is the value it is being given. 13273# 13274# ac_d sets the value in "#define NAME VALUE" lines. 13275ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 13276ac_dB='[ ].*$,\1#\2' 13277ac_dC=' ' 13278ac_dD=',;t' 13279# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 13280ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 13281ac_iB='\([ ]\),\1#\2define\3' 13282ac_iC=' ' 13283ac_iD='\4,;t' 13284# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 13285ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 13286ac_uB='$,\1#\2define\3' 13287ac_uC=' ' 13288ac_uD=',;t' 13289 13290for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 13291 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 13292 case $ac_file in 13293 - | *:- | *:-:* ) # input from stdin 13294 cat >$tmp/stdin 13295 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 13296 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 13297 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 13298 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 13299 * ) ac_file_in=$ac_file.in ;; 13300 esac 13301 13302 test x"$ac_file" != x- && { echo "$as_me:13302: creating $ac_file" >&5 13303echo "$as_me: creating $ac_file" >&6;} 13304 13305 # First look for the input files in the build tree, otherwise in the 13306 # src tree. 13307 ac_file_inputs=`IFS=: 13308 for f in $ac_file_in; do 13309 case $f in 13310 -) echo $tmp/stdin ;; 13311 [\\/$]*) 13312 # Absolute (can't be DOS-style, as IFS=:) 13313 test -f "$f" || { { echo "$as_me:13313: error: cannot find input file: $f" >&5 13314echo "$as_me: error: cannot find input file: $f" >&2;} 13315 { (exit 1); exit 1; }; } 13316 echo $f;; 13317 *) # Relative 13318 if test -f "$f"; then 13319 # Build tree 13320 echo $f 13321 elif test -f "$srcdir/$f"; then 13322 # Source tree 13323 echo $srcdir/$f 13324 else 13325 # /dev/null tree 13326 { { echo "$as_me:13326: error: cannot find input file: $f" >&5 13327echo "$as_me: error: cannot find input file: $f" >&2;} 13328 { (exit 1); exit 1; }; } 13329 fi;; 13330 esac 13331 done` || { (exit 1); exit 1; } 13332 # Remove the trailing spaces. 13333 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 13334 13335EOF 13336 13337# Transform confdefs.h into two sed scripts, `conftest.defines' and 13338# `conftest.undefs', that substitutes the proper values into 13339# config.h.in to produce config.h. The first handles `#define' 13340# templates, and the second `#undef' templates. 13341# And first: Protect against being on the right side of a sed subst in 13342# config.status. Protect against being in an unquoted here document 13343# in config.status. 13344rm -f conftest.defines conftest.undefs 13345# Using a here document instead of a string reduces the quoting nightmare. 13346# Putting comments in sed scripts is not portable. 13347# 13348# `end' is used to avoid that the second main sed command (meant for 13349# 0-ary CPP macros) applies to n-ary macro definitions. 13350# See the Autoconf documentation for `clear'. 13351cat >confdef2sed.sed <<\EOF 13352s/[\\&,]/\\&/g 13353s,[\\$`],\\&,g 13354t clear 13355: clear 13356s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp 13357t end 13358s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 13359: end 13360EOF 13361# If some macros were called several times there might be several times 13362# the same #defines, which is useless. Nevertheless, we may not want to 13363# sort them, since we want the *last* AC-DEFINE to be honored. 13364uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 13365sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 13366sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs 13367rm -f confdef2sed.sed 13368 13369# This sed command replaces #undef with comments. This is necessary, for 13370# example, in the case of _POSIX_SOURCE, which is predefined and required 13371# on some systems where configure will not decide to define it. 13372cat >>conftest.undefs <<\EOF 13373s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 13374EOF 13375 13376# Break up conftest.defines because some shells have a limit on the size 13377# of here documents, and old seds have small limits too (100 cmds). 13378echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 13379echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 13380echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 13381echo ' :' >>$CONFIG_STATUS 13382rm -f conftest.tail 13383while grep . conftest.defines >/dev/null 13384do 13385 # Write a limited-size here document to $tmp/defines.sed. 13386 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 13387 # Speed up: don't consider the non `#define' lines. 13388 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 13389 # Work around the forget-to-reset-the-flag bug. 13390 echo 't clr' >>$CONFIG_STATUS 13391 echo ': clr' >>$CONFIG_STATUS 13392 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 13393 echo 'CEOF 13394 sed -f $tmp/defines.sed $tmp/in >$tmp/out 13395 rm -f $tmp/in 13396 mv $tmp/out $tmp/in 13397' >>$CONFIG_STATUS 13398 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 13399 rm -f conftest.defines 13400 mv conftest.tail conftest.defines 13401done 13402rm -f conftest.defines 13403echo ' fi # egrep' >>$CONFIG_STATUS 13404echo >>$CONFIG_STATUS 13405 13406# Break up conftest.undefs because some shells have a limit on the size 13407# of here documents, and old seds have small limits too (100 cmds). 13408echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 13409rm -f conftest.tail 13410while grep . conftest.undefs >/dev/null 13411do 13412 # Write a limited-size here document to $tmp/undefs.sed. 13413 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 13414 # Speed up: don't consider the non `#undef' 13415 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 13416 # Work around the forget-to-reset-the-flag bug. 13417 echo 't clr' >>$CONFIG_STATUS 13418 echo ': clr' >>$CONFIG_STATUS 13419 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 13420 echo 'CEOF 13421 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 13422 rm -f $tmp/in 13423 mv $tmp/out $tmp/in 13424' >>$CONFIG_STATUS 13425 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 13426 rm -f conftest.undefs 13427 mv conftest.tail conftest.undefs 13428done 13429rm -f conftest.undefs 13430 13431cat >>$CONFIG_STATUS <<\EOF 13432 # Let's still pretend it is `configure' which instantiates (i.e., don't 13433 # use $as_me), people would be surprised to read: 13434 # /* config.h. Generated automatically by config.status. */ 13435 if test x"$ac_file" = x-; then 13436 echo "/* Generated automatically by configure. */" >$tmp/config.h 13437 else 13438 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 13439 fi 13440 cat $tmp/in >>$tmp/config.h 13441 rm -f $tmp/in 13442 if test x"$ac_file" != x-; then 13443 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 13444 { echo "$as_me:13444: $ac_file is unchanged" >&5 13445echo "$as_me: $ac_file is unchanged" >&6;} 13446 else 13447 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13448 X"$ac_file" : 'X\(//\)[^/]' \| \ 13449 X"$ac_file" : 'X\(//\)$' \| \ 13450 X"$ac_file" : 'X\(/\)' \| \ 13451 . : '\(.\)' 2>/dev/null || 13452echo X"$ac_file" | 13453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 13454 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 13455 /^X\(\/\/\)$/{ s//\1/; q; } 13456 /^X\(\/\).*/{ s//\1/; q; } 13457 s/.*/./; q'` 13458 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 13459 { case "$ac_dir" in 13460 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 13461 *) as_incr_dir=.;; 13462esac 13463as_dummy="$ac_dir" 13464for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 13465 case $as_mkdir_dir in 13466 # Skip DOS drivespec 13467 ?:) as_incr_dir=$as_mkdir_dir ;; 13468 *) 13469 as_incr_dir=$as_incr_dir/$as_mkdir_dir 13470 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 13471 ;; 13472 esac 13473done; } 13474 13475 fi 13476 rm -f $ac_file 13477 mv $tmp/config.h $ac_file 13478 fi 13479 else 13480 cat $tmp/config.h 13481 rm -f $tmp/config.h 13482 fi 13483done 13484EOF 13485 13486cat >>$CONFIG_STATUS <<\EOF 13487 13488{ (exit 0); exit 0; } 13489EOF 13490chmod +x $CONFIG_STATUS 13491ac_clean_files=$ac_clean_files_save 13492 13493# configure is writing to config.log, and then calls config.status. 13494# config.status does its own redirection, appending to config.log. 13495# Unfortunately, on DOS this fails, as config.log is still kept open 13496# by configure, so config.status won't be able to write to it; its 13497# output is simply discarded. So we exec the FD to /dev/null, 13498# effectively closing config.log, so it can be properly (re)opened and 13499# appended to by config.status. When coming back to configure, we 13500# need to make the FD available again. 13501if test "$no_create" != yes; then 13502 ac_cs_success=: 13503 exec 5>/dev/null 13504 $SHELL $CONFIG_STATUS || ac_cs_success=false 13505 exec 5>>config.log 13506 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13507 # would make configure fail if this is the last instruction. 13508 $ac_cs_success || { (exit 1); exit 1; } 13509fi 13510 13511