configure revision e0a2b6df
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by Autoconf 2.52.20121002. 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' 173datarootdir='${prefix}/share' 174datadir='${datarootdir}' 175sysconfdir='${prefix}/etc' 176sharedstatedir='${prefix}/com' 177localstatedir='${prefix}/var' 178libdir='${exec_prefix}/lib' 179includedir='${prefix}/include' 180oldincludedir='/usr/include' 181infodir='${datarootdir}/info' 182mandir='${datarootdir}/man' 183 184# Identity of this package. 185PACKAGE_NAME= 186PACKAGE_TARNAME= 187PACKAGE_VERSION= 188PACKAGE_STRING= 189PACKAGE_BUGREPORT= 190 191ac_prev= 192for ac_option 193do 194 # If the previous option needs an argument, assign it. 195 if test -n "$ac_prev"; then 196 eval "$ac_prev=\$ac_option" 197 ac_prev= 198 continue 199 fi 200 201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 202 203 # Accept the important Cygnus configure options, so we can diagnose typos. 204 205 case $ac_option in 206 207 -bindir | --bindir | --bindi | --bind | --bin | --bi) 208 ac_prev=bindir ;; 209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 210 bindir=$ac_optarg ;; 211 212 -build | --build | --buil | --bui | --bu) 213 ac_prev=build_alias ;; 214 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 215 build_alias=$ac_optarg ;; 216 217 -cache-file | --cache-file | --cache-fil | --cache-fi \ 218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 219 ac_prev=cache_file ;; 220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 222 cache_file=$ac_optarg ;; 223 224 --config-cache | -C) 225 cache_file=config.cache ;; 226 227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 228 ac_prev=datadir ;; 229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 230 | --da=*) 231 datadir=$ac_optarg ;; 232 233 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 234 | --dataroo | --dataro | --datar) 235 ac_prev=datarootdir ;; 236 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 237 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 238 datarootdir=$ac_optarg ;; 239 240 -disable-* | --disable-*) 241 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 242 # Reject names that are not valid shell variable names. 243 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 244 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 245 { (exit 1); exit 1; }; } 246 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 247 eval "enable_$ac_feature=no" ;; 248 249 -enable-* | --enable-*) 250 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 251 # Reject names that are not valid shell variable names. 252 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 253 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 254 { (exit 1); exit 1; }; } 255 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 256 case $ac_option in 257 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 258 *) ac_optarg=yes ;; 259 esac 260 eval "enable_$ac_feature='$ac_optarg'" ;; 261 262 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 263 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 264 | --exec | --exe | --ex) 265 ac_prev=exec_prefix ;; 266 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 267 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 268 | --exec=* | --exe=* | --ex=*) 269 exec_prefix=$ac_optarg ;; 270 271 -gas | --gas | --ga | --g) 272 # Obsolete; use --with-gas. 273 with_gas=yes ;; 274 275 -help | --help | --hel | --he | -h) 276 ac_init_help=long ;; 277 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 278 ac_init_help=recursive ;; 279 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 280 ac_init_help=short ;; 281 282 -host | --host | --hos | --ho) 283 ac_prev=host_alias ;; 284 -host=* | --host=* | --hos=* | --ho=*) 285 host_alias=$ac_optarg ;; 286 287 -includedir | --includedir | --includedi | --included | --include \ 288 | --includ | --inclu | --incl | --inc) 289 ac_prev=includedir ;; 290 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 291 | --includ=* | --inclu=* | --incl=* | --inc=*) 292 includedir=$ac_optarg ;; 293 294 -infodir | --infodir | --infodi | --infod | --info | --inf) 295 ac_prev=infodir ;; 296 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 297 infodir=$ac_optarg ;; 298 299 -libdir | --libdir | --libdi | --libd) 300 ac_prev=libdir ;; 301 -libdir=* | --libdir=* | --libdi=* | --libd=*) 302 libdir=$ac_optarg ;; 303 304 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 305 | --libexe | --libex | --libe) 306 ac_prev=libexecdir ;; 307 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 308 | --libexe=* | --libex=* | --libe=*) 309 libexecdir=$ac_optarg ;; 310 311 -localstatedir | --localstatedir | --localstatedi | --localstated \ 312 | --localstate | --localstat | --localsta | --localst \ 313 | --locals | --local | --loca | --loc | --lo) 314 ac_prev=localstatedir ;; 315 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 316 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 317 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 318 localstatedir=$ac_optarg ;; 319 320 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 321 ac_prev=mandir ;; 322 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 323 mandir=$ac_optarg ;; 324 325 -nfp | --nfp | --nf) 326 # Obsolete; use --without-fp. 327 with_fp=no ;; 328 329 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 330 | --no-cr | --no-c) 331 no_create=yes ;; 332 333 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 334 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 335 no_recursion=yes ;; 336 337 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 338 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 339 | --oldin | --oldi | --old | --ol | --o) 340 ac_prev=oldincludedir ;; 341 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 342 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 343 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 344 oldincludedir=$ac_optarg ;; 345 346 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 347 ac_prev=prefix ;; 348 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 349 prefix=$ac_optarg ;; 350 351 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 352 | --program-pre | --program-pr | --program-p) 353 ac_prev=program_prefix ;; 354 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 355 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 356 program_prefix=$ac_optarg ;; 357 358 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 359 | --program-suf | --program-su | --program-s) 360 ac_prev=program_suffix ;; 361 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 362 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 363 program_suffix=$ac_optarg ;; 364 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 ac_prev=program_transform_name ;; 373 -program-transform-name=* | --program-transform-name=* \ 374 | --program-transform-nam=* | --program-transform-na=* \ 375 | --program-transform-n=* | --program-transform-=* \ 376 | --program-transform=* | --program-transfor=* \ 377 | --program-transfo=* | --program-transf=* \ 378 | --program-trans=* | --program-tran=* \ 379 | --progr-tra=* | --program-tr=* | --program-t=*) 380 program_transform_name=$ac_optarg ;; 381 382 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 383 | -silent | --silent | --silen | --sile | --sil) 384 silent=yes ;; 385 386 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 387 ac_prev=sbindir ;; 388 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 389 | --sbi=* | --sb=*) 390 sbindir=$ac_optarg ;; 391 392 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 393 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 394 | --sharedst | --shareds | --shared | --share | --shar \ 395 | --sha | --sh) 396 ac_prev=sharedstatedir ;; 397 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 398 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 399 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 400 | --sha=* | --sh=*) 401 sharedstatedir=$ac_optarg ;; 402 403 -site | --site | --sit) 404 ac_prev=site ;; 405 -site=* | --site=* | --sit=*) 406 site=$ac_optarg ;; 407 408 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 409 ac_prev=srcdir ;; 410 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 411 srcdir=$ac_optarg ;; 412 413 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 414 | --syscon | --sysco | --sysc | --sys | --sy) 415 ac_prev=sysconfdir ;; 416 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 417 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 418 sysconfdir=$ac_optarg ;; 419 420 -target | --target | --targe | --targ | --tar | --ta | --t) 421 ac_prev=target_alias ;; 422 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 423 target_alias=$ac_optarg ;; 424 425 -v | -verbose | --verbose | --verbos | --verbo | --verb) 426 verbose=yes ;; 427 428 -version | --version | --versio | --versi | --vers | -V) 429 ac_init_version=: ;; 430 431 -with-* | --with-*) 432 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 433 # Reject names that are not valid shell variable names. 434 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 435 { echo "$as_me: error: invalid package name: $ac_package" >&2 436 { (exit 1); exit 1; }; } 437 ac_package=`echo $ac_package| sed 's/-/_/g'` 438 case $ac_option in 439 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 440 *) ac_optarg=yes ;; 441 esac 442 eval "with_$ac_package='$ac_optarg'" ;; 443 444 -without-* | --without-*) 445 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 446 # Reject names that are not valid shell variable names. 447 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 448 { echo "$as_me: error: invalid package name: $ac_package" >&2 449 { (exit 1); exit 1; }; } 450 ac_package=`echo $ac_package | sed 's/-/_/g'` 451 eval "with_$ac_package=no" ;; 452 453 --x) 454 # Obsolete; use --with-x. 455 with_x=yes ;; 456 457 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 458 | --x-incl | --x-inc | --x-in | --x-i) 459 ac_prev=x_includes ;; 460 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 461 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 462 x_includes=$ac_optarg ;; 463 464 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 465 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 466 ac_prev=x_libraries ;; 467 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 468 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 469 x_libraries=$ac_optarg ;; 470 471 -*) { echo "$as_me: error: unrecognized option: $ac_option 472Try \`$0 --help' for more information." >&2 473 { (exit 1); exit 1; }; } 474 ;; 475 476 *=*) 477 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 478 # Reject names that are not valid shell variable names. 479 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 480 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 481 { (exit 1); exit 1; }; } 482 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 483 eval "$ac_envvar='$ac_optarg'" 484 export $ac_envvar ;; 485 486 *) 487 # FIXME: should be removed in autoconf 3.0. 488 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 489 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 490 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 491 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 492 ;; 493 494 esac 495done 496 497if test -n "$ac_prev"; then 498 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 499 { echo "$as_me: error: missing argument to $ac_option" >&2 500 { (exit 1); exit 1; }; } 501fi 502 503# Be sure to have absolute paths. 504for ac_var in exec_prefix prefix 505do 506 eval ac_val=$`echo $ac_var` 507 case $ac_val in 508 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 509 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 510 { (exit 1); exit 1; }; };; 511 esac 512done 513 514# Be sure to have absolute paths. 515for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \ 516 localstatedir libdir includedir oldincludedir infodir mandir 517do 518 eval ac_val=$`echo $ac_var` 519 case $ac_val in 520 [\\/$]* | ?:[\\/]* ) ;; 521 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 522 { (exit 1); exit 1; }; };; 523 esac 524done 525 526# There might be people who depend on the old broken behavior: `$host' 527# used to hold the argument of --host etc. 528build=$build_alias 529host=$host_alias 530target=$target_alias 531 532# FIXME: should be removed in autoconf 3.0. 533if test "x$host_alias" != x; then 534 if test "x$build_alias" = x; then 535 cross_compiling=maybe 536 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 537 If a cross compiler is detected then cross compile mode will be used." >&2 538 elif test "x$build_alias" != "x$host_alias"; then 539 cross_compiling=yes 540 fi 541fi 542 543ac_tool_prefix= 544test -n "$host_alias" && ac_tool_prefix=$host_alias- 545 546test "$silent" = yes && exec 6>/dev/null 547 548# Find the source files, if location was not specified. 549if test -z "$srcdir"; then 550 ac_srcdir_defaulted=yes 551 # Try the directory containing this script, then its parent. 552 ac_prog=$0 553 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` 554 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 555 srcdir=$ac_confdir 556 if test ! -r $srcdir/$ac_unique_file; then 557 srcdir=.. 558 fi 559else 560 ac_srcdir_defaulted=no 561fi 562if test ! -r $srcdir/$ac_unique_file; then 563 if test "$ac_srcdir_defaulted" = yes; then 564 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 565 { (exit 1); exit 1; }; } 566 else 567 { echo "$as_me: error: cannot find sources in $srcdir" >&2 568 { (exit 1); exit 1; }; } 569 fi 570fi 571srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 572ac_env_build_alias_set=${build_alias+set} 573ac_env_build_alias_value=$build_alias 574ac_cv_env_build_alias_set=${build_alias+set} 575ac_cv_env_build_alias_value=$build_alias 576ac_env_host_alias_set=${host_alias+set} 577ac_env_host_alias_value=$host_alias 578ac_cv_env_host_alias_set=${host_alias+set} 579ac_cv_env_host_alias_value=$host_alias 580ac_env_target_alias_set=${target_alias+set} 581ac_env_target_alias_value=$target_alias 582ac_cv_env_target_alias_set=${target_alias+set} 583ac_cv_env_target_alias_value=$target_alias 584ac_env_CC_set=${CC+set} 585ac_env_CC_value=$CC 586ac_cv_env_CC_set=${CC+set} 587ac_cv_env_CC_value=$CC 588ac_env_CFLAGS_set=${CFLAGS+set} 589ac_env_CFLAGS_value=$CFLAGS 590ac_cv_env_CFLAGS_set=${CFLAGS+set} 591ac_cv_env_CFLAGS_value=$CFLAGS 592ac_env_LDFLAGS_set=${LDFLAGS+set} 593ac_env_LDFLAGS_value=$LDFLAGS 594ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 595ac_cv_env_LDFLAGS_value=$LDFLAGS 596ac_env_CPPFLAGS_set=${CPPFLAGS+set} 597ac_env_CPPFLAGS_value=$CPPFLAGS 598ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 599ac_cv_env_CPPFLAGS_value=$CPPFLAGS 600ac_env_CPP_set=${CPP+set} 601ac_env_CPP_value=$CPP 602ac_cv_env_CPP_set=${CPP+set} 603ac_cv_env_CPP_value=$CPP 604 605# 606# Report the --help message. 607# 608if test "$ac_init_help" = "long"; then 609 # Omit some internal or obsolete options to make the list less imposing. 610 # This message is too long to be a string in the A/UX 3.1 sh. 611 cat <<EOF 612\`configure' configures this package to adapt to many kinds of systems. 613 614Usage: $0 [OPTION]... [VAR=VALUE]... 615 616To assign environment variables (e.g., CC, CFLAGS...), specify them as 617VAR=VALUE. See below for descriptions of some of the useful variables. 618 619Defaults for the options are specified in brackets. 620 621Configuration: 622 -h, --help display this help and exit 623 --help=short display options specific to this package 624 --help=recursive display the short help of all the included packages 625 -V, --version display version information and exit 626 -q, --quiet, --silent do not print \`checking...' messages 627 --cache-file=FILE cache test results in FILE [disabled] 628 -C, --config-cache alias for \`--cache-file=config.cache' 629 -n, --no-create do not create output files 630 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 631 632EOF 633 634 cat <<EOF 635Installation directories: 636 --prefix=PREFIX install architecture-independent files in PREFIX 637 [$ac_default_prefix] 638 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 639 [PREFIX] 640 641By default, \`make install' will install all the files in 642\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 643an installation prefix other than \`$ac_default_prefix' using \`--prefix', 644for instance \`--prefix=\$HOME'. 645 646For better control, use the options below. 647 648Fine tuning of the installation directories: 649 --bindir=DIR user executables [EPREFIX/bin] 650 --sbindir=DIR system admin executables [EPREFIX/sbin] 651 --libexecdir=DIR program executables [EPREFIX/libexec] 652 --datarootdir=DIR read-only architecture-independent data [PREFIX/share] 653 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 654 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 655 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 656 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 657 --libdir=DIR object code libraries [EPREFIX/lib] 658 --includedir=DIR C header files [PREFIX/include] 659 --oldincludedir=DIR C header files for non-gcc [/usr/include] 660 --infodir=DIR info documentation [DATAROOTDIR/info] 661 --mandir=DIR man documentation [DATAROOTDIR/man] 662EOF 663 664 cat <<\EOF 665 666Program names: 667 --program-prefix=PREFIX prepend PREFIX to installed program names 668 --program-suffix=SUFFIX append SUFFIX to installed program names 669 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 670 671X features: 672 --x-includes=DIR X include files are in DIR 673 --x-libraries=DIR X library files are in DIR 674 675System types: 676 --build=BUILD configure for building on BUILD [guessed] 677 --host=HOST build programs to run on HOST [BUILD] 678EOF 679fi 680 681if test -n "$ac_init_help"; then 682 683 cat <<\EOF 684 685Optional Features: 686 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 687 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 688 689Optional Packages: 690 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 691 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 692 693Compile/Install Options: 694 --disable-full-tgetent disable check for full tgetent function 695 --with-app-class=XXX override X applications class (default XTerm) 696 --with-app-defaults=DIR directory in which to install resource files (EPREFIX/lib/X11/app-defaults) 697 --with-icon-name=XXXX override icon name (default: xterm-color) 698 --with-icon-symlink=XXX make symbolic link for icon name (default: xterm) 699 --with-pixmapdir=DIR directory in which to install pixmaps (DATADIR/pixmaps) 700 --with-icondir=DIR directory in which to install icons for desktop 701 --with-icon-theme=XXX install icons into desktop theme (hicolor) 702 --disable-desktop disable install of xterm desktop files 703 --with-desktop-category=XXX one or more desktop catgories or auto 704 --with-reference=XXX program to use as permissions-reference 705 --with-xterm-symlink=XXX make symbolic link to installed xterm 706 --disable-openpty disable openpty, prefer other interfaces 707 --disable-setuid disable setuid in xterm, do not install setuid/setgid 708 --disable-setgid disable setgid in xterm, do not install setuid/setgid 709 --with-setuid=XXX use the given setuid user 710 --with-utmp-setgid=XXX use setgid to match utmp/utmpx file 711 --with-utempter use utempter library for access to utmp 712 --with-tty-group=XXX use XXX for the tty-group 713 --with-x use the X Window System 714 --with-pkg-config{=path} enable/disable use of pkg-config 715 --with-xpm=DIR use Xpm library for colored icon, may specify path 716 --with-Xaw3d link with Xaw 3d library 717 --with-neXtaw link with neXT Athena library 718 --with-XawPlus link with Athena-Plus library 719 --enable-narrowproto enable narrow prototypes for X libraries 720 --disable-imake disable use of imake for definitions 721Terminal Configuration: 722 --with-terminal-id=V set default decTerminalID (default: vt420) 723 --with-terminal-type=T set default $TERM (default: xterm) 724 --enable-backarrow-key set default backarrowKey resource (default: true) 725 --enable-backarrow-is-erase set default backarrowKeyIsErase resource (default: false) 726 --enable-delete-is-del set default deleteIsDEL resource (default: maybe) 727 --enable-alt-sends-esc set default altSendsEscape resource (default: no) 728 --enable-meta-sends-esc set default metaSendsEscape resource (default: no) 729 --with-own-terminfo=P set default $TERMINFO (default: from environment) 730Optional Features: 731 --disable-active-icon disable X11R6.3 active-icon feature 732 --disable-ansi-color disable ANSI color 733 --disable-16-color disable 16-color support 734 --enable-256-color enable 256-color support 735 --enable-88-color enable 88-color support 736 --disable-blink-cursor disable support for blinking cursor 737 --enable-broken-osc allow broken Linux OSC-strings 738 --disable-broken-st disallow broken string-terminators 739 --disable-c1-print disallow -k8 option for printable 128-159 740 --disable-bold-color disable PC-style mapping of bold colors 741 --disable-color-class disable separate color class resources 742 --disable-color-mode disable default colorMode resource 743 --disable-highlighting disable support for color highlighting 744 --disable-doublechars disable support for double-size chars 745 --disable-boxchars disable fallback-support for box chars 746 --enable-exec-xterm enable "spawn-new-terminal" action 747 --enable-double-buffer enable double-buffering 748 --disable-freetype disable freetype library-support 749 --with-freetype-config configure script to use for FreeType 750 --with-freetype-cflags -D/-I options for compiling with FreeType 751 --with-freetype-libs -L/-l options to link FreeType 752 --enable-hp-fkeys enable support for HP-style function keys 753 --enable-sco-fkeys enable support for SCO-style function keys 754 --disable-sun-fkeys disable support for Sun-style function keys 755 --disable-fifo-lines disable FIFO-storage for saved-lines 756 --disable-i18n disable internationalization 757 --disable-initial-erase disable setup for stty erase 758 --disable-input-method disable input-method 759 --enable-load-vt-fonts enable load-vt-fonts() action 760 --enable-logging enable logging 761 --enable-logfile-exec enable exec'd logfile filter 762 --disable-maximize disable actions for iconify/deiconify/maximize/restore 763 --disable-num-lock disable NumLock keypad support 764 --disable-paste64 disable get/set base64 selection data 765 --disable-pty-handshake disable pty-handshake support 766 --enable-readline-mouse enable support for mouse in readline applications 767 --disable-regex disable regular-expression selections 768 --with-pcre use PCRE for regular-expressions 769 --disable-rightbar disable right-scrollbar support 770 --disable-samename disable check for redundant name-change 771 --disable-selection-ops disable selection-action operations 772 --disable-session-mgt disable support for session management 773 --disable-tcap-fkeys disable termcap function-keys support 774 --disable-tcap-query disable compiled-in termcap-query support 775 --disable-tek4014 disable tek4014 emulation 776 --enable-toolbar compile-in toolbar for pulldown menus 777 --disable-vt52 disable VT52 emulation 778 --disable-wide-chars disable wide-character support 779 --enable-16bit-chars enable 16-bit character support 780 --enable-mini-luit enable mini-luit (built-in Latin9 support) 781 --disable-luit enable luit filter (Unicode translation) 782 --enable-dabbrev enable dynamic-abbreviation support 783 --enable-dec-locator enable DECterm Locator support 784 --enable-sixel-graphics enable sixel graphics support 785 --disable-rectangles disable VT420 rectangle support 786 --disable-ziconbeep disable -ziconbeep option 787Testing/development Options: 788 --enable-trace test: set to enable debugging traces 789 --with-dmalloc test: use Gray Watson's dmalloc library 790 --with-dbmalloc test: use Conor Cahill's dbmalloc library 791 --with-valgrind test: use valgrind 792 --disable-leaks test: free permanent memory, analyze leaks 793 --disable-echo do not display "compiling" commands 794 --enable-xmc-glitch test: enable xmc magic-cookie emulation 795 --enable-warnings test: turn on GCC compiler warnings 796 --disable-rpath-hack don't add rpath options for additional libraries 797 798Some influential environment variables: 799 CC C compiler command 800 CFLAGS C compiler flags 801 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 802 nonstandard directory <lib dir> 803 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 804 headers in a nonstandard directory <include dir> 805 CPP C preprocessor 806 807Use these variables to override the choices made by `configure' or to help 808it to find libraries and programs with nonstandard names/locations. 809 810EOF 811fi 812 813if test "$ac_init_help" = "recursive"; then 814 # If there are subdirs, report their specific --help. 815 ac_popdir=`pwd` 816 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 817 cd $ac_subdir 818 # A "../" for each directory in /$ac_subdir. 819 ac_dots=`echo $ac_subdir | 820 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 821 822 case $srcdir in 823 .) # No --srcdir option. We are building in place. 824 ac_sub_srcdir=$srcdir ;; 825 [\\/]* | ?:[\\/]* ) # Absolute path. 826 ac_sub_srcdir=$srcdir/$ac_subdir ;; 827 *) # Relative path. 828 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; 829 esac 830 831 # Check for guested configure; otherwise get Cygnus style configure. 832 if test -f $ac_sub_srcdir/configure.gnu; then 833 echo 834 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive 835 elif test -f $ac_sub_srcdir/configure; then 836 echo 837 $SHELL $ac_sub_srcdir/configure --help=recursive 838 elif test -f $ac_sub_srcdir/configure.ac || 839 test -f $ac_sub_srcdir/configure.in; then 840 echo 841 $ac_configure --help 842 else 843 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 844 fi 845 cd $ac_popdir 846 done 847fi 848 849test -n "$ac_init_help" && exit 0 850if $ac_init_version; then 851 cat <<\EOF 852 853Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 854Free Software Foundation, Inc. 855This configure script is free software; the Free Software Foundation 856gives unlimited permission to copy, distribute and modify it. 857EOF 858 exit 0 859fi 860exec 5>config.log 861cat >&5 <<EOF 862This file contains any messages produced by compilers while 863running configure, to aid debugging if configure makes a mistake. 864 865It was created by $as_me, which was 866generated by GNU Autoconf 2.52.20121002. Invocation command line was 867 868 $ $0 $@ 869 870EOF 871{ 872cat <<_ASUNAME 873## ---------- ## 874## Platform. ## 875## ---------- ## 876 877hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 878uname -m = `(uname -m) 2>/dev/null || echo unknown` 879uname -r = `(uname -r) 2>/dev/null || echo unknown` 880uname -s = `(uname -s) 2>/dev/null || echo unknown` 881uname -v = `(uname -v) 2>/dev/null || echo unknown` 882 883/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 884/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 885 886/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 887/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 888/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 889hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 890/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 891/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 892/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 893 894PATH = $PATH 895 896_ASUNAME 897} >&5 898 899cat >&5 <<EOF 900## ------------ ## 901## Core tests. ## 902## ------------ ## 903 904EOF 905 906# Keep a trace of the command line. 907# Strip out --no-create and --no-recursion so they do not pile up. 908# Also quote any args containing shell meta-characters. 909ac_configure_args= 910ac_sep= 911for ac_arg 912do 913 case $ac_arg in 914 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 915 | --no-cr | --no-c) ;; 916 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 917 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 918 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 919 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 920 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 921 ac_sep=" " ;; 922 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 923 ac_sep=" " ;; 924 esac 925 # Get rid of the leading space. 926done 927 928# When interrupted or exit'd, cleanup temporary files, and complete 929# config.log. We remove comments because anyway the quotes in there 930# would cause problems or look ugly. 931trap 'exit_status=$? 932 # Save into config.log some information that might help in debugging. 933 echo >&5 934 echo "## ----------------- ##" >&5 935 echo "## Cache variables. ##" >&5 936 echo "## ----------------- ##" >&5 937 echo >&5 938 # The following way of writing the cache mishandles newlines in values, 939{ 940 (set) 2>&1 | 941 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 942 *ac_space=\ *) 943 sed -n \ 944 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 945 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 946 ;; 947 *) 948 sed -n \ 949 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 950 ;; 951 esac; 952} >&5 953 sed "/^$/d" confdefs.h >conftest.log 954 if test -s conftest.log; then 955 echo >&5 956 echo "## ------------ ##" >&5 957 echo "## confdefs.h. ##" >&5 958 echo "## ------------ ##" >&5 959 echo >&5 960 cat conftest.log >&5 961 fi 962 (echo; echo) >&5 963 test "$ac_signal" != 0 && 964 echo "$as_me: caught signal $ac_signal" >&5 965 echo "$as_me: exit $exit_status" >&5 966 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 967 exit $exit_status 968 ' 0 969for ac_signal in 1 2 13 15; do 970 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 971done 972ac_signal=0 973 974# confdefs.h avoids OS command line length limits that DEFS can exceed. 975rm -rf conftest* confdefs.h 976# AIX cpp loses on an empty file, so make sure it contains at least a newline. 977echo >confdefs.h 978 979# Let the site file select an alternate cache file if it wants to. 980# Prefer explicitly selected file to automatically selected ones. 981if test -z "$CONFIG_SITE"; then 982 if test "x$prefix" != xNONE; then 983 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 984 else 985 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 986 fi 987fi 988for ac_site_file in $CONFIG_SITE; do 989 if test -r "$ac_site_file"; then 990 { echo "$as_me:990: loading site script $ac_site_file" >&5 991echo "$as_me: loading site script $ac_site_file" >&6;} 992 cat "$ac_site_file" >&5 993 . "$ac_site_file" 994 fi 995done 996 997if test -r "$cache_file"; then 998 # Some versions of bash will fail to source /dev/null (special 999 # files actually), so we avoid doing that. 1000 if test -f "$cache_file"; then 1001 { echo "$as_me:1001: loading cache $cache_file" >&5 1002echo "$as_me: loading cache $cache_file" >&6;} 1003 case $cache_file in 1004 [\\/]* | ?:[\\/]* ) . $cache_file;; 1005 *) . ./$cache_file;; 1006 esac 1007 fi 1008else 1009 { echo "$as_me:1009: creating cache $cache_file" >&5 1010echo "$as_me: creating cache $cache_file" >&6;} 1011 >$cache_file 1012fi 1013 1014# Check that the precious variables saved in the cache have kept the same 1015# value. 1016ac_cache_corrupted=false 1017for ac_var in `(set) 2>&1 | 1018 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1019 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1020 eval ac_new_set=\$ac_env_${ac_var}_set 1021 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1022 eval ac_new_val="\$ac_env_${ac_var}_value" 1023 case $ac_old_set,$ac_new_set in 1024 set,) 1025 { echo "$as_me:1025: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1026echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1027 ac_cache_corrupted=: ;; 1028 ,set) 1029 { echo "$as_me:1029: error: \`$ac_var' was not set in the previous run" >&5 1030echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1031 ac_cache_corrupted=: ;; 1032 ,);; 1033 *) 1034 if test "x$ac_old_val" != "x$ac_new_val"; then 1035 { echo "$as_me:1035: error: \`$ac_var' has changed since the previous run:" >&5 1036echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1037 { echo "$as_me:1037: former value: $ac_old_val" >&5 1038echo "$as_me: former value: $ac_old_val" >&2;} 1039 { echo "$as_me:1039: current value: $ac_new_val" >&5 1040echo "$as_me: current value: $ac_new_val" >&2;} 1041 ac_cache_corrupted=: 1042 fi;; 1043 esac 1044 # Pass precious variables to config.status. It doesn't matter if 1045 # we pass some twice (in addition to the command line arguments). 1046 if test "$ac_new_set" = set; then 1047 case $ac_new_val in 1048 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1049 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` 1050 ac_configure_args="$ac_configure_args '$ac_arg'" 1051 ;; 1052 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" 1053 ;; 1054 esac 1055 fi 1056done 1057if $ac_cache_corrupted; then 1058 { echo "$as_me:1058: error: changes in the environment can compromise the build" >&5 1059echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1060 { { echo "$as_me:1060: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1061echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1062 { (exit 1); exit 1; }; } 1063fi 1064 1065ac_ext=c 1066ac_cpp='$CPP $CPPFLAGS' 1067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1069ac_compiler_gnu=$ac_cv_c_compiler_gnu 1070ac_main_return=return 1071 1072case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 1073 *c*,-n*) ECHO_N= ECHO_C=' 1074' ECHO_T=' ' ;; 1075 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 1076 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 1077esac 1078echo "#! $SHELL" >conftest.sh 1079echo "exit 0" >>conftest.sh 1080chmod +x conftest.sh 1081if { (echo "$as_me:1081: PATH=\".;.\"; conftest.sh") >&5 1082 (PATH=".;."; conftest.sh) 2>&5 1083 ac_status=$? 1084 echo "$as_me:1084: \$? = $ac_status" >&5 1085 (exit $ac_status); }; then 1086 ac_path_separator=';' 1087else 1088 ac_path_separator=: 1089fi 1090PATH_SEPARATOR="$ac_path_separator" 1091rm -f conftest.sh 1092 1093ac_config_headers="$ac_config_headers xtermcfg.h:xtermcfg.hin" 1094 1095ac_aux_dir= 1096for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1097 if test -f $ac_dir/install-sh; then 1098 ac_aux_dir=$ac_dir 1099 ac_install_sh="$ac_aux_dir/install-sh -c" 1100 break 1101 elif test -f $ac_dir/install.sh; then 1102 ac_aux_dir=$ac_dir 1103 ac_install_sh="$ac_aux_dir/install.sh -c" 1104 break 1105 elif test -f $ac_dir/shtool; then 1106 ac_aux_dir=$ac_dir 1107 ac_install_sh="$ac_aux_dir/shtool install -c" 1108 break 1109 fi 1110done 1111if test -z "$ac_aux_dir"; then 1112 { { echo "$as_me:1112: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1113echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1114 { (exit 1); exit 1; }; } 1115fi 1116ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1117ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1118ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1119 1120# Make sure we can run config.sub. 1121$ac_config_sub sun4 >/dev/null 2>&1 || 1122 { { echo "$as_me:1122: error: cannot run $ac_config_sub" >&5 1123echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1124 { (exit 1); exit 1; }; } 1125 1126echo "$as_me:1126: checking build system type" >&5 1127echo $ECHO_N "checking build system type... $ECHO_C" >&6 1128if test "${ac_cv_build+set}" = set; then 1129 echo $ECHO_N "(cached) $ECHO_C" >&6 1130else 1131 ac_cv_build_alias=$build_alias 1132test -z "$ac_cv_build_alias" && 1133 ac_cv_build_alias=`$ac_config_guess` 1134test -z "$ac_cv_build_alias" && 1135 { { echo "$as_me:1135: error: cannot guess build type; you must specify one" >&5 1136echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1137 { (exit 1); exit 1; }; } 1138ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1139 { { echo "$as_me:1139: error: $ac_config_sub $ac_cv_build_alias failed." >&5 1140echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} 1141 { (exit 1); exit 1; }; } 1142 1143fi 1144echo "$as_me:1144: result: $ac_cv_build" >&5 1145echo "${ECHO_T}$ac_cv_build" >&6 1146build=$ac_cv_build 1147build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1148build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1149build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1150 1151if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then 1152 echo "$as_me:1152: checking host system type" >&5 1153echo $ECHO_N "checking host system type... $ECHO_C" >&6 1154if test "${ac_cv_host+set}" = set; then 1155 echo $ECHO_N "(cached) $ECHO_C" >&6 1156else 1157 ac_cv_host_alias=$host_alias 1158test -z "$ac_cv_host_alias" && 1159 ac_cv_host_alias=$ac_cv_build_alias 1160ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1161 { { echo "$as_me:1161: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1162echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1163 { (exit 1); exit 1; }; } 1164 1165fi 1166echo "$as_me:1166: result: $ac_cv_host" >&5 1167echo "${ECHO_T}$ac_cv_host" >&6 1168host=$ac_cv_host 1169host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1170host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1171host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1172 1173 system_name="$host_os" 1174else 1175 system_name="`(uname -s -r) 2>/dev/null`" 1176 if test -z "$system_name" ; then 1177 system_name="`(hostname) 2>/dev/null`" 1178 fi 1179fi 1180test -n "$system_name" && 1181cat >>confdefs.h <<EOF 1182#define SYSTEM_NAME "$system_name" 1183EOF 1184 1185if test "${cf_cv_system_name+set}" = set; then 1186 echo $ECHO_N "(cached) $ECHO_C" >&6 1187else 1188 cf_cv_system_name="$system_name" 1189fi 1190 1191test -z "$system_name" && system_name="$cf_cv_system_name" 1192test -n "$cf_cv_system_name" && echo "$as_me:1192: result: Configuring for $cf_cv_system_name" >&5 1193echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6 1194 1195if test ".$system_name" != ".$cf_cv_system_name" ; then 1196 echo "$as_me:1196: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5 1197echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6 1198 { { echo "$as_me:1198: error: \"Please remove config.cache and try again.\"" >&5 1199echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;} 1200 { (exit 1); exit 1; }; } 1201fi 1202 1203### checks for alternative programs 1204 1205case "$host_os" in 1206openedition) : ${CFLAGS="-O2 -Wc,dll -Wl,EDIT=NO"} 1207 : ${CPPFLAGS="-D_ALL_SOURCE"} 1208 : ${LIBS="/usr/lib/Xaw.x /usr/lib/SM.x /usr/lib/ICE.x /usr/lib/X11.x"} 1209 : ${CC=c89};; 1210darwin*) 1211 : ${LDFLAGS}="${LDFLAGS} -Wl,-bind_at_load";; 1212esac 1213 1214ac_ext=c 1215ac_cpp='$CPP $CPPFLAGS' 1216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1218ac_compiler_gnu=$ac_cv_c_compiler_gnu 1219ac_main_return=return 1220if test -n "$ac_tool_prefix"; then 1221 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1222set dummy ${ac_tool_prefix}gcc; ac_word=$2 1223echo "$as_me:1223: checking for $ac_word" >&5 1224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1225if test "${ac_cv_prog_CC+set}" = set; then 1226 echo $ECHO_N "(cached) $ECHO_C" >&6 1227else 1228 if test -n "$CC"; then 1229 ac_cv_prog_CC="$CC" # Let the user override the test. 1230else 1231 ac_save_IFS=$IFS; IFS=$ac_path_separator 1232ac_dummy="$PATH" 1233for ac_dir in $ac_dummy; do 1234 IFS=$ac_save_IFS 1235 test -z "$ac_dir" && ac_dir=. 1236 $as_executable_p "$ac_dir/$ac_word" || continue 1237ac_cv_prog_CC="${ac_tool_prefix}gcc" 1238echo "$as_me:1238: found $ac_dir/$ac_word" >&5 1239break 1240done 1241 1242fi 1243fi 1244CC=$ac_cv_prog_CC 1245if test -n "$CC"; then 1246 echo "$as_me:1246: result: $CC" >&5 1247echo "${ECHO_T}$CC" >&6 1248else 1249 echo "$as_me:1249: result: no" >&5 1250echo "${ECHO_T}no" >&6 1251fi 1252 1253fi 1254if test -z "$ac_cv_prog_CC"; then 1255 ac_ct_CC=$CC 1256 # Extract the first word of "gcc", so it can be a program name with args. 1257set dummy gcc; ac_word=$2 1258echo "$as_me:1258: checking for $ac_word" >&5 1259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1260if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1261 echo $ECHO_N "(cached) $ECHO_C" >&6 1262else 1263 if test -n "$ac_ct_CC"; then 1264 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1265else 1266 ac_save_IFS=$IFS; IFS=$ac_path_separator 1267ac_dummy="$PATH" 1268for ac_dir in $ac_dummy; do 1269 IFS=$ac_save_IFS 1270 test -z "$ac_dir" && ac_dir=. 1271 $as_executable_p "$ac_dir/$ac_word" || continue 1272ac_cv_prog_ac_ct_CC="gcc" 1273echo "$as_me:1273: found $ac_dir/$ac_word" >&5 1274break 1275done 1276 1277fi 1278fi 1279ac_ct_CC=$ac_cv_prog_ac_ct_CC 1280if test -n "$ac_ct_CC"; then 1281 echo "$as_me:1281: result: $ac_ct_CC" >&5 1282echo "${ECHO_T}$ac_ct_CC" >&6 1283else 1284 echo "$as_me:1284: result: no" >&5 1285echo "${ECHO_T}no" >&6 1286fi 1287 1288 CC=$ac_ct_CC 1289else 1290 CC="$ac_cv_prog_CC" 1291fi 1292 1293if test -z "$CC"; then 1294 if test -n "$ac_tool_prefix"; then 1295 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1296set dummy ${ac_tool_prefix}cc; ac_word=$2 1297echo "$as_me:1297: checking for $ac_word" >&5 1298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1299if test "${ac_cv_prog_CC+set}" = set; then 1300 echo $ECHO_N "(cached) $ECHO_C" >&6 1301else 1302 if test -n "$CC"; then 1303 ac_cv_prog_CC="$CC" # Let the user override the test. 1304else 1305 ac_save_IFS=$IFS; IFS=$ac_path_separator 1306ac_dummy="$PATH" 1307for ac_dir in $ac_dummy; do 1308 IFS=$ac_save_IFS 1309 test -z "$ac_dir" && ac_dir=. 1310 $as_executable_p "$ac_dir/$ac_word" || continue 1311ac_cv_prog_CC="${ac_tool_prefix}cc" 1312echo "$as_me:1312: found $ac_dir/$ac_word" >&5 1313break 1314done 1315 1316fi 1317fi 1318CC=$ac_cv_prog_CC 1319if test -n "$CC"; then 1320 echo "$as_me:1320: result: $CC" >&5 1321echo "${ECHO_T}$CC" >&6 1322else 1323 echo "$as_me:1323: result: no" >&5 1324echo "${ECHO_T}no" >&6 1325fi 1326 1327fi 1328if test -z "$ac_cv_prog_CC"; then 1329 ac_ct_CC=$CC 1330 # Extract the first word of "cc", so it can be a program name with args. 1331set dummy cc; ac_word=$2 1332echo "$as_me:1332: checking for $ac_word" >&5 1333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1334if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1335 echo $ECHO_N "(cached) $ECHO_C" >&6 1336else 1337 if test -n "$ac_ct_CC"; then 1338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1339else 1340 ac_save_IFS=$IFS; IFS=$ac_path_separator 1341ac_dummy="$PATH" 1342for ac_dir in $ac_dummy; do 1343 IFS=$ac_save_IFS 1344 test -z "$ac_dir" && ac_dir=. 1345 $as_executable_p "$ac_dir/$ac_word" || continue 1346ac_cv_prog_ac_ct_CC="cc" 1347echo "$as_me:1347: found $ac_dir/$ac_word" >&5 1348break 1349done 1350 1351fi 1352fi 1353ac_ct_CC=$ac_cv_prog_ac_ct_CC 1354if test -n "$ac_ct_CC"; then 1355 echo "$as_me:1355: result: $ac_ct_CC" >&5 1356echo "${ECHO_T}$ac_ct_CC" >&6 1357else 1358 echo "$as_me:1358: result: no" >&5 1359echo "${ECHO_T}no" >&6 1360fi 1361 1362 CC=$ac_ct_CC 1363else 1364 CC="$ac_cv_prog_CC" 1365fi 1366 1367fi 1368if test -z "$CC"; then 1369 # Extract the first word of "cc", so it can be a program name with args. 1370set dummy cc; ac_word=$2 1371echo "$as_me:1371: checking for $ac_word" >&5 1372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1373if test "${ac_cv_prog_CC+set}" = set; then 1374 echo $ECHO_N "(cached) $ECHO_C" >&6 1375else 1376 if test -n "$CC"; then 1377 ac_cv_prog_CC="$CC" # Let the user override the test. 1378else 1379 ac_prog_rejected=no 1380 ac_save_IFS=$IFS; IFS=$ac_path_separator 1381ac_dummy="$PATH" 1382for ac_dir in $ac_dummy; do 1383 IFS=$ac_save_IFS 1384 test -z "$ac_dir" && ac_dir=. 1385 $as_executable_p "$ac_dir/$ac_word" || continue 1386if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1387 ac_prog_rejected=yes 1388 continue 1389fi 1390ac_cv_prog_CC="cc" 1391echo "$as_me:1391: found $ac_dir/$ac_word" >&5 1392break 1393done 1394 1395if test $ac_prog_rejected = yes; then 1396 # We found a bogon in the path, so make sure we never use it. 1397 set dummy $ac_cv_prog_CC 1398 shift 1399 if test $# != 0; then 1400 # We chose a different compiler from the bogus one. 1401 # However, it has the same basename, so the bogon will be chosen 1402 # first if we set CC to just the basename; use the full file name. 1403 shift 1404 set dummy "$ac_dir/$ac_word" ${1+"$@"} 1405 shift 1406 ac_cv_prog_CC="$@" 1407 fi 1408fi 1409fi 1410fi 1411CC=$ac_cv_prog_CC 1412if test -n "$CC"; then 1413 echo "$as_me:1413: result: $CC" >&5 1414echo "${ECHO_T}$CC" >&6 1415else 1416 echo "$as_me:1416: result: no" >&5 1417echo "${ECHO_T}no" >&6 1418fi 1419 1420fi 1421if test -z "$CC"; then 1422 if test -n "$ac_tool_prefix"; then 1423 for ac_prog in cl 1424 do 1425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1426set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1427echo "$as_me:1427: checking for $ac_word" >&5 1428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1429if test "${ac_cv_prog_CC+set}" = set; then 1430 echo $ECHO_N "(cached) $ECHO_C" >&6 1431else 1432 if test -n "$CC"; then 1433 ac_cv_prog_CC="$CC" # Let the user override the test. 1434else 1435 ac_save_IFS=$IFS; IFS=$ac_path_separator 1436ac_dummy="$PATH" 1437for ac_dir in $ac_dummy; do 1438 IFS=$ac_save_IFS 1439 test -z "$ac_dir" && ac_dir=. 1440 $as_executable_p "$ac_dir/$ac_word" || continue 1441ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1442echo "$as_me:1442: found $ac_dir/$ac_word" >&5 1443break 1444done 1445 1446fi 1447fi 1448CC=$ac_cv_prog_CC 1449if test -n "$CC"; then 1450 echo "$as_me:1450: result: $CC" >&5 1451echo "${ECHO_T}$CC" >&6 1452else 1453 echo "$as_me:1453: result: no" >&5 1454echo "${ECHO_T}no" >&6 1455fi 1456 1457 test -n "$CC" && break 1458 done 1459fi 1460if test -z "$CC"; then 1461 ac_ct_CC=$CC 1462 for ac_prog in cl 1463do 1464 # Extract the first word of "$ac_prog", so it can be a program name with args. 1465set dummy $ac_prog; ac_word=$2 1466echo "$as_me:1466: checking for $ac_word" >&5 1467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1468if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1469 echo $ECHO_N "(cached) $ECHO_C" >&6 1470else 1471 if test -n "$ac_ct_CC"; then 1472 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1473else 1474 ac_save_IFS=$IFS; IFS=$ac_path_separator 1475ac_dummy="$PATH" 1476for ac_dir in $ac_dummy; do 1477 IFS=$ac_save_IFS 1478 test -z "$ac_dir" && ac_dir=. 1479 $as_executable_p "$ac_dir/$ac_word" || continue 1480ac_cv_prog_ac_ct_CC="$ac_prog" 1481echo "$as_me:1481: found $ac_dir/$ac_word" >&5 1482break 1483done 1484 1485fi 1486fi 1487ac_ct_CC=$ac_cv_prog_ac_ct_CC 1488if test -n "$ac_ct_CC"; then 1489 echo "$as_me:1489: result: $ac_ct_CC" >&5 1490echo "${ECHO_T}$ac_ct_CC" >&6 1491else 1492 echo "$as_me:1492: result: no" >&5 1493echo "${ECHO_T}no" >&6 1494fi 1495 1496 test -n "$ac_ct_CC" && break 1497done 1498 1499 CC=$ac_ct_CC 1500fi 1501 1502fi 1503 1504test -z "$CC" && { { echo "$as_me:1504: error: no acceptable cc found in \$PATH" >&5 1505echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1506 { (exit 1); exit 1; }; } 1507 1508# Provide some information about the compiler. 1509echo "$as_me:1509:" \ 1510 "checking for C compiler version" >&5 1511ac_compiler=`set X $ac_compile; echo $2` 1512{ (eval echo "$as_me:1512: \"$ac_compiler --version </dev/null >&5\"") >&5 1513 (eval $ac_compiler --version </dev/null >&5) 2>&5 1514 ac_status=$? 1515 echo "$as_me:1515: \$? = $ac_status" >&5 1516 (exit $ac_status); } 1517{ (eval echo "$as_me:1517: \"$ac_compiler -v </dev/null >&5\"") >&5 1518 (eval $ac_compiler -v </dev/null >&5) 2>&5 1519 ac_status=$? 1520 echo "$as_me:1520: \$? = $ac_status" >&5 1521 (exit $ac_status); } 1522{ (eval echo "$as_me:1522: \"$ac_compiler -V </dev/null >&5\"") >&5 1523 (eval $ac_compiler -V </dev/null >&5) 2>&5 1524 ac_status=$? 1525 echo "$as_me:1525: \$? = $ac_status" >&5 1526 (exit $ac_status); } 1527 1528cat >conftest.$ac_ext <<_ACEOF 1529#line 1529 "configure" 1530#include "confdefs.h" 1531 1532int 1533main () 1534{ 1535 1536 ; 1537 return 0; 1538} 1539_ACEOF 1540ac_clean_files_save=$ac_clean_files 1541ac_clean_files="$ac_clean_files a.out a.exe" 1542# Try to create an executable without -o first, disregard a.out. 1543# It will help us diagnose broken compilers, and finding out an intuition 1544# of exeext. 1545echo "$as_me:1545: checking for C compiler default output" >&5 1546echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1547ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1548if { (eval echo "$as_me:1548: \"$ac_link_default\"") >&5 1549 (eval $ac_link_default) 2>&5 1550 ac_status=$? 1551 echo "$as_me:1551: \$? = $ac_status" >&5 1552 (exit $ac_status); }; then 1553 # Find the output, starting from the most likely. This scheme is 1554# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1555# resort. 1556for ac_file in `ls a.exe conftest.exe 2>/dev/null; 1557 ls a.out conftest 2>/dev/null; 1558 ls a.* conftest.* 2>/dev/null`; do 1559 case $ac_file in 1560 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1561 a.out ) # We found the default executable, but exeext='' is most 1562 # certainly right. 1563 break;; 1564 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1565 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 1566 export ac_cv_exeext 1567 break;; 1568 * ) break;; 1569 esac 1570done 1571else 1572 echo "$as_me: failed program was:" >&5 1573cat conftest.$ac_ext >&5 1574{ { echo "$as_me:1574: error: C compiler cannot create executables" >&5 1575echo "$as_me: error: C compiler cannot create executables" >&2;} 1576 { (exit 77); exit 77; }; } 1577fi 1578 1579ac_exeext=$ac_cv_exeext 1580echo "$as_me:1580: result: $ac_file" >&5 1581echo "${ECHO_T}$ac_file" >&6 1582 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 the C compiler works" >&5 1586echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1587# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1588# If not cross compiling, check that we can run a simple program. 1589if test "$cross_compiling" != yes; then 1590 if { ac_try='./$ac_file' 1591 { (eval echo "$as_me:1591: \"$ac_try\"") >&5 1592 (eval $ac_try) 2>&5 1593 ac_status=$? 1594 echo "$as_me:1594: \$? = $ac_status" >&5 1595 (exit $ac_status); }; }; then 1596 cross_compiling=no 1597 else 1598 if test "$cross_compiling" = maybe; then 1599 cross_compiling=yes 1600 else 1601 { { echo "$as_me:1601: error: cannot run C compiled programs. 1602If you meant to cross compile, use \`--host'." >&5 1603echo "$as_me: error: cannot run C compiled programs. 1604If you meant to cross compile, use \`--host'." >&2;} 1605 { (exit 1); exit 1; }; } 1606 fi 1607 fi 1608fi 1609echo "$as_me:1609: result: yes" >&5 1610echo "${ECHO_T}yes" >&6 1611 1612rm -f a.out a.exe conftest$ac_cv_exeext 1613ac_clean_files=$ac_clean_files_save 1614# Check the compiler produces executables we can run. If not, either 1615# the compiler is broken, or we cross compile. 1616echo "$as_me:1616: checking whether we are cross compiling" >&5 1617echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1618echo "$as_me:1618: result: $cross_compiling" >&5 1619echo "${ECHO_T}$cross_compiling" >&6 1620 1621echo "$as_me:1621: checking for executable suffix" >&5 1622echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1623if { (eval echo "$as_me:1623: \"$ac_link\"") >&5 1624 (eval $ac_link) 2>&5 1625 ac_status=$? 1626 echo "$as_me:1626: \$? = $ac_status" >&5 1627 (exit $ac_status); }; then 1628 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1629# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1630# work properly (i.e., refer to `conftest.exe'), while it won't with 1631# `rm'. 1632for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1633 case $ac_file in 1634 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1635 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1636 export ac_cv_exeext 1637 break;; 1638 * ) break;; 1639 esac 1640done 1641else 1642 { { echo "$as_me:1642: error: cannot compute EXEEXT: cannot compile and link" >&5 1643echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1644 { (exit 1); exit 1; }; } 1645fi 1646 1647rm -f conftest$ac_cv_exeext 1648echo "$as_me:1648: result: $ac_cv_exeext" >&5 1649echo "${ECHO_T}$ac_cv_exeext" >&6 1650 1651rm -f conftest.$ac_ext 1652EXEEXT=$ac_cv_exeext 1653ac_exeext=$EXEEXT 1654echo "$as_me:1654: checking for object suffix" >&5 1655echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 1656if test "${ac_cv_objext+set}" = set; then 1657 echo $ECHO_N "(cached) $ECHO_C" >&6 1658else 1659 cat >conftest.$ac_ext <<_ACEOF 1660#line 1660 "configure" 1661#include "confdefs.h" 1662 1663int 1664main () 1665{ 1666 1667 ; 1668 return 0; 1669} 1670_ACEOF 1671rm -f conftest.o conftest.obj 1672if { (eval echo "$as_me:1672: \"$ac_compile\"") >&5 1673 (eval $ac_compile) 2>&5 1674 ac_status=$? 1675 echo "$as_me:1675: \$? = $ac_status" >&5 1676 (exit $ac_status); }; then 1677 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1678 case $ac_file in 1679 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;; 1680 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1681 break;; 1682 esac 1683done 1684else 1685 echo "$as_me: failed program was:" >&5 1686cat conftest.$ac_ext >&5 1687{ { echo "$as_me:1687: error: cannot compute OBJEXT: cannot compile" >&5 1688echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1689 { (exit 1); exit 1; }; } 1690fi 1691 1692rm -f conftest.$ac_cv_objext conftest.$ac_ext 1693fi 1694echo "$as_me:1694: result: $ac_cv_objext" >&5 1695echo "${ECHO_T}$ac_cv_objext" >&6 1696OBJEXT=$ac_cv_objext 1697ac_objext=$OBJEXT 1698echo "$as_me:1698: checking whether we are using the GNU C compiler" >&5 1699echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1700if test "${ac_cv_c_compiler_gnu+set}" = set; then 1701 echo $ECHO_N "(cached) $ECHO_C" >&6 1702else 1703 cat >conftest.$ac_ext <<_ACEOF 1704#line 1704 "configure" 1705#include "confdefs.h" 1706 1707int 1708main () 1709{ 1710#ifndef __GNUC__ 1711 choke me 1712#endif 1713 1714 ; 1715 return 0; 1716} 1717_ACEOF 1718rm -f conftest.$ac_objext 1719if { (eval echo "$as_me:1719: \"$ac_compile\"") >&5 1720 (eval $ac_compile) 2>&5 1721 ac_status=$? 1722 echo "$as_me:1722: \$? = $ac_status" >&5 1723 (exit $ac_status); } && 1724 { ac_try='test -s conftest.$ac_objext' 1725 { (eval echo "$as_me:1725: \"$ac_try\"") >&5 1726 (eval $ac_try) 2>&5 1727 ac_status=$? 1728 echo "$as_me:1728: \$? = $ac_status" >&5 1729 (exit $ac_status); }; }; then 1730 ac_compiler_gnu=yes 1731else 1732 echo "$as_me: failed program was:" >&5 1733cat conftest.$ac_ext >&5 1734ac_compiler_gnu=no 1735fi 1736rm -f conftest.$ac_objext conftest.$ac_ext 1737ac_cv_c_compiler_gnu=$ac_compiler_gnu 1738 1739fi 1740echo "$as_me:1740: result: $ac_cv_c_compiler_gnu" >&5 1741echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1742GCC=`test $ac_compiler_gnu = yes && echo yes` 1743ac_test_CFLAGS=${CFLAGS+set} 1744ac_save_CFLAGS=$CFLAGS 1745CFLAGS="-g" 1746echo "$as_me:1746: checking whether $CC accepts -g" >&5 1747echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1748if test "${ac_cv_prog_cc_g+set}" = set; then 1749 echo $ECHO_N "(cached) $ECHO_C" >&6 1750else 1751 cat >conftest.$ac_ext <<_ACEOF 1752#line 1752 "configure" 1753#include "confdefs.h" 1754 1755int 1756main () 1757{ 1758 1759 ; 1760 return 0; 1761} 1762_ACEOF 1763rm -f conftest.$ac_objext 1764if { (eval echo "$as_me:1764: \"$ac_compile\"") >&5 1765 (eval $ac_compile) 2>&5 1766 ac_status=$? 1767 echo "$as_me:1767: \$? = $ac_status" >&5 1768 (exit $ac_status); } && 1769 { ac_try='test -s conftest.$ac_objext' 1770 { (eval echo "$as_me:1770: \"$ac_try\"") >&5 1771 (eval $ac_try) 2>&5 1772 ac_status=$? 1773 echo "$as_me:1773: \$? = $ac_status" >&5 1774 (exit $ac_status); }; }; then 1775 ac_cv_prog_cc_g=yes 1776else 1777 echo "$as_me: failed program was:" >&5 1778cat conftest.$ac_ext >&5 1779ac_cv_prog_cc_g=no 1780fi 1781rm -f conftest.$ac_objext conftest.$ac_ext 1782fi 1783echo "$as_me:1783: result: $ac_cv_prog_cc_g" >&5 1784echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1785if test "$ac_test_CFLAGS" = set; then 1786 CFLAGS=$ac_save_CFLAGS 1787elif test $ac_cv_prog_cc_g = yes; then 1788 if test "$GCC" = yes; then 1789 CFLAGS="-g -O2" 1790 else 1791 CFLAGS="-g" 1792 fi 1793else 1794 if test "$GCC" = yes; then 1795 CFLAGS="-O2" 1796 else 1797 CFLAGS= 1798 fi 1799fi 1800# Some people use a C++ compiler to compile C. Since we use `exit', 1801# in C++ we need to declare it. In case someone uses the same compiler 1802# for both compiling C and C++ we need to have the C++ compiler decide 1803# the declaration of exit, since it's the most demanding environment. 1804cat >conftest.$ac_ext <<_ACEOF 1805#ifndef __cplusplus 1806 choke me 1807#endif 1808_ACEOF 1809rm -f conftest.$ac_objext 1810if { (eval echo "$as_me:1810: \"$ac_compile\"") >&5 1811 (eval $ac_compile) 2>&5 1812 ac_status=$? 1813 echo "$as_me:1813: \$? = $ac_status" >&5 1814 (exit $ac_status); } && 1815 { ac_try='test -s conftest.$ac_objext' 1816 { (eval echo "$as_me:1816: \"$ac_try\"") >&5 1817 (eval $ac_try) 2>&5 1818 ac_status=$? 1819 echo "$as_me:1819: \$? = $ac_status" >&5 1820 (exit $ac_status); }; }; then 1821 for ac_declaration in \ 1822 ''\ 1823 '#include <stdlib.h>' \ 1824 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1825 'extern "C" void std::exit (int); using std::exit;' \ 1826 'extern "C" void exit (int) throw ();' \ 1827 'extern "C" void exit (int);' \ 1828 'void exit (int);' 1829do 1830 cat >conftest.$ac_ext <<_ACEOF 1831#line 1831 "configure" 1832#include "confdefs.h" 1833#include <stdlib.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 : 1856else 1857 echo "$as_me: failed program was:" >&5 1858cat conftest.$ac_ext >&5 1859continue 1860fi 1861rm -f conftest.$ac_objext conftest.$ac_ext 1862 cat >conftest.$ac_ext <<_ACEOF 1863#line 1863 "configure" 1864#include "confdefs.h" 1865$ac_declaration 1866int 1867main () 1868{ 1869exit (42); 1870 ; 1871 return 0; 1872} 1873_ACEOF 1874rm -f conftest.$ac_objext 1875if { (eval echo "$as_me:1875: \"$ac_compile\"") >&5 1876 (eval $ac_compile) 2>&5 1877 ac_status=$? 1878 echo "$as_me:1878: \$? = $ac_status" >&5 1879 (exit $ac_status); } && 1880 { ac_try='test -s conftest.$ac_objext' 1881 { (eval echo "$as_me:1881: \"$ac_try\"") >&5 1882 (eval $ac_try) 2>&5 1883 ac_status=$? 1884 echo "$as_me:1884: \$? = $ac_status" >&5 1885 (exit $ac_status); }; }; then 1886 break 1887else 1888 echo "$as_me: failed program was:" >&5 1889cat conftest.$ac_ext >&5 1890fi 1891rm -f conftest.$ac_objext conftest.$ac_ext 1892done 1893rm -rf conftest* 1894if test -n "$ac_declaration"; then 1895 echo '#ifdef __cplusplus' >>confdefs.h 1896 echo $ac_declaration >>confdefs.h 1897 echo '#endif' >>confdefs.h 1898fi 1899 1900else 1901 echo "$as_me: failed program was:" >&5 1902cat conftest.$ac_ext >&5 1903fi 1904rm -f conftest.$ac_objext conftest.$ac_ext 1905ac_ext=c 1906ac_cpp='$CPP $CPPFLAGS' 1907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1909ac_compiler_gnu=$ac_cv_c_compiler_gnu 1910ac_main_return=return 1911 1912GCC_VERSION=none 1913if test "$GCC" = yes ; then 1914 echo "$as_me:1914: checking version of $CC" >&5 1915echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 1916 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`" 1917 test -z "$GCC_VERSION" && GCC_VERSION=unknown 1918 echo "$as_me:1918: result: $GCC_VERSION" >&5 1919echo "${ECHO_T}$GCC_VERSION" >&6 1920fi 1921 1922echo "$as_me:1922: checking for $CC option to accept ANSI C" >&5 1923echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 1924if test "${ac_cv_prog_cc_stdc+set}" = set; then 1925 echo $ECHO_N "(cached) $ECHO_C" >&6 1926else 1927 ac_cv_prog_cc_stdc=no 1928ac_save_CC=$CC 1929cat >conftest.$ac_ext <<_ACEOF 1930#line 1930 "configure" 1931#include "confdefs.h" 1932#include <stdarg.h> 1933#include <stdio.h> 1934#include <sys/types.h> 1935#include <sys/stat.h> 1936/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 1937struct buf { int x; }; 1938FILE * (*rcsopen) (struct buf *, struct stat *, int); 1939static char *e (p, i) 1940 char **p; 1941 int i; 1942{ 1943 return p[i]; 1944} 1945static char *f (char * (*g) (char **, int), char **p, ...) 1946{ 1947 char *s; 1948 va_list v; 1949 va_start (v,p); 1950 s = g (p, va_arg (v,int)); 1951 va_end (v); 1952 return s; 1953} 1954int test (int i, double x); 1955struct s1 {int (*f) (int a);}; 1956struct s2 {int (*f) (double a);}; 1957int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 1958int argc; 1959char **argv; 1960int 1961main () 1962{ 1963return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 1964 ; 1965 return 0; 1966} 1967_ACEOF 1968# Don't try gcc -ansi; that turns off useful extensions and 1969# breaks some systems' header files. 1970# AIX -qlanglvl=ansi 1971# Ultrix and OSF/1 -std1 1972# HP-UX 10.20 and later -Ae 1973# HP-UX older versions -Aa -D_HPUX_SOURCE 1974# SVR4 -Xc -D__EXTENSIONS__ 1975for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 1976do 1977 CC="$ac_save_CC $ac_arg" 1978 rm -f conftest.$ac_objext 1979if { (eval echo "$as_me:1979: \"$ac_compile\"") >&5 1980 (eval $ac_compile) 2>&5 1981 ac_status=$? 1982 echo "$as_me:1982: \$? = $ac_status" >&5 1983 (exit $ac_status); } && 1984 { ac_try='test -s conftest.$ac_objext' 1985 { (eval echo "$as_me:1985: \"$ac_try\"") >&5 1986 (eval $ac_try) 2>&5 1987 ac_status=$? 1988 echo "$as_me:1988: \$? = $ac_status" >&5 1989 (exit $ac_status); }; }; then 1990 ac_cv_prog_cc_stdc=$ac_arg 1991break 1992else 1993 echo "$as_me: failed program was:" >&5 1994cat conftest.$ac_ext >&5 1995fi 1996rm -f conftest.$ac_objext 1997done 1998rm -f conftest.$ac_ext conftest.$ac_objext 1999CC=$ac_save_CC 2000 2001fi 2002 2003case "x$ac_cv_prog_cc_stdc" in 2004 x|xno) 2005 echo "$as_me:2005: result: none needed" >&5 2006echo "${ECHO_T}none needed" >&6 ;; 2007 *) 2008 echo "$as_me:2008: result: $ac_cv_prog_cc_stdc" >&5 2009echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2010 CC="$CC $ac_cv_prog_cc_stdc" ;; 2011esac 2012 2013# This should have been defined by AC_PROG_CC 2014: ${CC:=cc} 2015 2016echo "$as_me:2016: checking \$CC variable" >&5 2017echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6 2018case "$CC" in #(vi 2019*[\ \ ]-[IUD]*) 2020 echo "$as_me:2020: result: broken" >&5 2021echo "${ECHO_T}broken" >&6 2022 { echo "$as_me:2022: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5 2023echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;} 2024 # humor him... 2025 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'` 2026 CC=`echo "$CC" | sed -e 's/[ ].*//'` 2027 2028cf_fix_cppflags=no 2029cf_new_cflags= 2030cf_new_cppflags= 2031cf_new_extra_cppflags= 2032 2033for cf_add_cflags in $cf_flags 2034do 2035case $cf_fix_cppflags in 2036no) 2037 case $cf_add_cflags in #(vi 2038 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 2039 case $cf_add_cflags in 2040 -D*) 2041 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2042 2043 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2044 && test -z "${cf_tst_cflags}" \ 2045 && cf_fix_cppflags=yes 2046 2047 if test $cf_fix_cppflags = yes ; then 2048 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2049 continue 2050 elif test "${cf_tst_cflags}" = "\"'" ; then 2051 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2052 continue 2053 fi 2054 ;; 2055 esac 2056 case "$CPPFLAGS" in 2057 *$cf_add_cflags) #(vi 2058 ;; 2059 *) #(vi 2060 case $cf_add_cflags in #(vi 2061 -D*) 2062 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2063 2064CPPFLAGS=`echo "$CPPFLAGS" | \ 2065 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2066 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2067 2068 ;; 2069 esac 2070 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 2071 ;; 2072 esac 2073 ;; 2074 *) 2075 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 2076 ;; 2077 esac 2078 ;; 2079yes) 2080 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2081 2082 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 2083 2084 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2085 && test -z "${cf_tst_cflags}" \ 2086 && cf_fix_cppflags=no 2087 ;; 2088esac 2089done 2090 2091if test -n "$cf_new_cflags" ; then 2092 2093 CFLAGS="$CFLAGS $cf_new_cflags" 2094fi 2095 2096if test -n "$cf_new_cppflags" ; then 2097 2098 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 2099fi 2100 2101if test -n "$cf_new_extra_cppflags" ; then 2102 2103 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 2104fi 2105 2106 ;; 2107*) 2108 echo "$as_me:2108: result: ok" >&5 2109echo "${ECHO_T}ok" >&6 2110 ;; 2111esac 2112 2113ac_ext=c 2114ac_cpp='$CPP $CPPFLAGS' 2115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2117ac_compiler_gnu=$ac_cv_c_compiler_gnu 2118ac_main_return=return 2119echo "$as_me:2119: checking how to run the C preprocessor" >&5 2120echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2121# On Suns, sometimes $CPP names a directory. 2122if test -n "$CPP" && test -d "$CPP"; then 2123 CPP= 2124fi 2125if test -z "$CPP"; then 2126 if test "${ac_cv_prog_CPP+set}" = set; then 2127 echo $ECHO_N "(cached) $ECHO_C" >&6 2128else 2129 # Double quotes because CPP needs to be expanded 2130 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2131 do 2132 ac_preproc_ok=false 2133for ac_c_preproc_warn_flag in '' yes 2134do 2135 # Use a header file that comes with gcc, so configuring glibc 2136 # with a fresh cross-compiler works. 2137 # On the NeXT, cc -E runs the code through the compiler's parser, 2138 # not just through cpp. "Syntax error" is here to catch this case. 2139 cat >conftest.$ac_ext <<_ACEOF 2140#line 2140 "configure" 2141#include "confdefs.h" 2142#include <assert.h> 2143 Syntax error 2144_ACEOF 2145if { (eval echo "$as_me:2145: \"$ac_cpp conftest.$ac_ext\"") >&5 2146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2147 ac_status=$? 2148 egrep -v '^ *\+' conftest.er1 >conftest.err 2149 rm -f conftest.er1 2150 cat conftest.err >&5 2151 echo "$as_me:2151: \$? = $ac_status" >&5 2152 (exit $ac_status); } >/dev/null; then 2153 if test -s conftest.err; then 2154 ac_cpp_err=$ac_c_preproc_warn_flag 2155 else 2156 ac_cpp_err= 2157 fi 2158else 2159 ac_cpp_err=yes 2160fi 2161if test -z "$ac_cpp_err"; then 2162 : 2163else 2164 echo "$as_me: failed program was:" >&5 2165 cat conftest.$ac_ext >&5 2166 # Broken: fails on valid input. 2167continue 2168fi 2169rm -f conftest.err conftest.$ac_ext 2170 2171 # OK, works on sane cases. Now check whether non-existent headers 2172 # can be detected and how. 2173 cat >conftest.$ac_ext <<_ACEOF 2174#line 2174 "configure" 2175#include "confdefs.h" 2176#include <ac_nonexistent.h> 2177_ACEOF 2178if { (eval echo "$as_me:2178: \"$ac_cpp conftest.$ac_ext\"") >&5 2179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2180 ac_status=$? 2181 egrep -v '^ *\+' conftest.er1 >conftest.err 2182 rm -f conftest.er1 2183 cat conftest.err >&5 2184 echo "$as_me:2184: \$? = $ac_status" >&5 2185 (exit $ac_status); } >/dev/null; then 2186 if test -s conftest.err; then 2187 ac_cpp_err=$ac_c_preproc_warn_flag 2188 else 2189 ac_cpp_err= 2190 fi 2191else 2192 ac_cpp_err=yes 2193fi 2194if test -z "$ac_cpp_err"; then 2195 # Broken: success on invalid input. 2196continue 2197else 2198 echo "$as_me: failed program was:" >&5 2199 cat conftest.$ac_ext >&5 2200 # Passes both tests. 2201ac_preproc_ok=: 2202break 2203fi 2204rm -f conftest.err conftest.$ac_ext 2205 2206done 2207# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2208rm -f conftest.err conftest.$ac_ext 2209if $ac_preproc_ok; then 2210 break 2211fi 2212 2213 done 2214 ac_cv_prog_CPP=$CPP 2215 2216fi 2217 CPP=$ac_cv_prog_CPP 2218else 2219 ac_cv_prog_CPP=$CPP 2220fi 2221echo "$as_me:2221: result: $CPP" >&5 2222echo "${ECHO_T}$CPP" >&6 2223ac_preproc_ok=false 2224for ac_c_preproc_warn_flag in '' yes 2225do 2226 # Use a header file that comes with gcc, so configuring glibc 2227 # with a fresh cross-compiler works. 2228 # On the NeXT, cc -E runs the code through the compiler's parser, 2229 # not just through cpp. "Syntax error" is here to catch this case. 2230 cat >conftest.$ac_ext <<_ACEOF 2231#line 2231 "configure" 2232#include "confdefs.h" 2233#include <assert.h> 2234 Syntax error 2235_ACEOF 2236if { (eval echo "$as_me:2236: \"$ac_cpp conftest.$ac_ext\"") >&5 2237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2238 ac_status=$? 2239 egrep -v '^ *\+' conftest.er1 >conftest.err 2240 rm -f conftest.er1 2241 cat conftest.err >&5 2242 echo "$as_me:2242: \$? = $ac_status" >&5 2243 (exit $ac_status); } >/dev/null; then 2244 if test -s conftest.err; then 2245 ac_cpp_err=$ac_c_preproc_warn_flag 2246 else 2247 ac_cpp_err= 2248 fi 2249else 2250 ac_cpp_err=yes 2251fi 2252if test -z "$ac_cpp_err"; then 2253 : 2254else 2255 echo "$as_me: failed program was:" >&5 2256 cat conftest.$ac_ext >&5 2257 # Broken: fails on valid input. 2258continue 2259fi 2260rm -f conftest.err conftest.$ac_ext 2261 2262 # OK, works on sane cases. Now check whether non-existent headers 2263 # can be detected and how. 2264 cat >conftest.$ac_ext <<_ACEOF 2265#line 2265 "configure" 2266#include "confdefs.h" 2267#include <ac_nonexistent.h> 2268_ACEOF 2269if { (eval echo "$as_me:2269: \"$ac_cpp conftest.$ac_ext\"") >&5 2270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2271 ac_status=$? 2272 egrep -v '^ *\+' conftest.er1 >conftest.err 2273 rm -f conftest.er1 2274 cat conftest.err >&5 2275 echo "$as_me:2275: \$? = $ac_status" >&5 2276 (exit $ac_status); } >/dev/null; then 2277 if test -s conftest.err; then 2278 ac_cpp_err=$ac_c_preproc_warn_flag 2279 else 2280 ac_cpp_err= 2281 fi 2282else 2283 ac_cpp_err=yes 2284fi 2285if test -z "$ac_cpp_err"; then 2286 # Broken: success on invalid input. 2287continue 2288else 2289 echo "$as_me: failed program was:" >&5 2290 cat conftest.$ac_ext >&5 2291 # Passes both tests. 2292ac_preproc_ok=: 2293break 2294fi 2295rm -f conftest.err conftest.$ac_ext 2296 2297done 2298# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2299rm -f conftest.err conftest.$ac_ext 2300if $ac_preproc_ok; then 2301 : 2302else 2303 { { echo "$as_me:2303: error: C preprocessor \"$CPP\" fails sanity check" >&5 2304echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 2305 { (exit 1); exit 1; }; } 2306fi 2307 2308ac_ext=c 2309ac_cpp='$CPP $CPPFLAGS' 2310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2312ac_compiler_gnu=$ac_cv_c_compiler_gnu 2313ac_main_return=return 2314 2315for ac_prog in mawk gawk nawk awk 2316do 2317 # Extract the first word of "$ac_prog", so it can be a program name with args. 2318set dummy $ac_prog; ac_word=$2 2319echo "$as_me:2319: checking for $ac_word" >&5 2320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2321if test "${ac_cv_prog_AWK+set}" = set; then 2322 echo $ECHO_N "(cached) $ECHO_C" >&6 2323else 2324 if test -n "$AWK"; then 2325 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2326else 2327 ac_save_IFS=$IFS; IFS=$ac_path_separator 2328ac_dummy="$PATH" 2329for ac_dir in $ac_dummy; do 2330 IFS=$ac_save_IFS 2331 test -z "$ac_dir" && ac_dir=. 2332 $as_executable_p "$ac_dir/$ac_word" || continue 2333ac_cv_prog_AWK="$ac_prog" 2334echo "$as_me:2334: found $ac_dir/$ac_word" >&5 2335break 2336done 2337 2338fi 2339fi 2340AWK=$ac_cv_prog_AWK 2341if test -n "$AWK"; then 2342 echo "$as_me:2342: result: $AWK" >&5 2343echo "${ECHO_T}$AWK" >&6 2344else 2345 echo "$as_me:2345: result: no" >&5 2346echo "${ECHO_T}no" >&6 2347fi 2348 2349 test -n "$AWK" && break 2350done 2351 2352# Extract the first word of "groff", so it can be a program name with args. 2353set dummy groff; ac_word=$2 2354echo "$as_me:2354: checking for $ac_word" >&5 2355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2356if test "${ac_cv_path_GROFF_PATH+set}" = set; then 2357 echo $ECHO_N "(cached) $ECHO_C" >&6 2358else 2359 case $GROFF_PATH in 2360 [\\/]* | ?:[\\/]*) 2361 ac_cv_path_GROFF_PATH="$GROFF_PATH" # Let the user override the test with a path. 2362 ;; 2363 *) 2364 ac_save_IFS=$IFS; IFS=$ac_path_separator 2365ac_dummy="$PATH" 2366for ac_dir in $ac_dummy; do 2367 IFS=$ac_save_IFS 2368 test -z "$ac_dir" && ac_dir=. 2369 if $as_executable_p "$ac_dir/$ac_word"; then 2370 ac_cv_path_GROFF_PATH="$ac_dir/$ac_word" 2371 echo "$as_me:2371: found $ac_dir/$ac_word" >&5 2372 break 2373fi 2374done 2375 2376 test -z "$ac_cv_path_GROFF_PATH" && ac_cv_path_GROFF_PATH="no" 2377 ;; 2378esac 2379fi 2380GROFF_PATH=$ac_cv_path_GROFF_PATH 2381 2382if test -n "$GROFF_PATH"; then 2383 echo "$as_me:2383: result: $GROFF_PATH" >&5 2384echo "${ECHO_T}$GROFF_PATH" >&6 2385else 2386 echo "$as_me:2386: result: no" >&5 2387echo "${ECHO_T}no" >&6 2388fi 2389 2390if test "x$GROFF_PATH" = xno 2391then 2392 NROFF_NOTE= 2393 GROFF_NOTE="#" 2394else 2395 NROFF_NOTE="#" 2396 GROFF_NOTE= 2397fi 2398 2399# Find a good install program. We prefer a C program (faster), 2400# so one script is as good as another. But avoid the broken or 2401# incompatible versions: 2402# SysV /etc/install, /usr/sbin/install 2403# SunOS /usr/etc/install 2404# IRIX /sbin/install 2405# AIX /bin/install 2406# AmigaOS /C/install, which installs bootblocks on floppy discs 2407# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2408# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2409# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2410# ./install, which can be erroneously created by make from ./install.sh. 2411echo "$as_me:2411: checking for a BSD compatible install" >&5 2412echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 2413if test -z "$INSTALL"; then 2414if test "${ac_cv_path_install+set}" = set; then 2415 echo $ECHO_N "(cached) $ECHO_C" >&6 2416else 2417 ac_save_IFS=$IFS; IFS=$ac_path_separator 2418 for ac_dir in $PATH; do 2419 IFS=$ac_save_IFS 2420 # Account for people who put trailing slashes in PATH elements. 2421 case $ac_dir/ in 2422 / | ./ | .// | /cC/* \ 2423 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 2424 | /usr/ucb/* ) ;; 2425 *) 2426 # OSF1 and SCO ODT 3.0 have their own names for install. 2427 # Don't use installbsd from OSF since it installs stuff as root 2428 # by default. 2429 for ac_prog in ginstall scoinst install; do 2430 if $as_executable_p "$ac_dir/$ac_prog"; then 2431 if test $ac_prog = install && 2432 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2433 # AIX install. It has an incompatible calling convention. 2434 : 2435 elif test $ac_prog = install && 2436 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2437 # program-specific install script used by HP pwplus--don't use. 2438 : 2439 else 2440 ac_cv_path_install="$ac_dir/$ac_prog -c" 2441 break 2 2442 fi 2443 fi 2444 done 2445 ;; 2446 esac 2447 done 2448 2449fi 2450 if test "${ac_cv_path_install+set}" = set; then 2451 INSTALL=$ac_cv_path_install 2452 else 2453 # As a last resort, use the slow shell script. We don't cache a 2454 # path for INSTALL within a source directory, because that will 2455 # break other packages using the cache if that directory is 2456 # removed, or if the path is relative. 2457 INSTALL=$ac_install_sh 2458 fi 2459fi 2460echo "$as_me:2460: result: $INSTALL" >&5 2461echo "${ECHO_T}$INSTALL" >&6 2462 2463# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2464# It thinks the first close brace ends the variable substitution. 2465test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2466 2467test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2468 2469test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2470 2471echo "$as_me:2471: checking whether ln -s works" >&5 2472echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2473LN_S=$as_ln_s 2474if test "$LN_S" = "ln -s"; then 2475 echo "$as_me:2475: result: yes" >&5 2476echo "${ECHO_T}yes" >&6 2477else 2478 echo "$as_me:2478: result: no, using $LN_S" >&5 2479echo "${ECHO_T}no, using $LN_S" >&6 2480fi 2481 2482test "$program_prefix" != NONE && 2483 program_transform_name="s,^,$program_prefix,;$program_transform_name" 2484# Use a double $ so make ignores it. 2485test "$program_suffix" != NONE && 2486 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 2487# Double any \ or $. echo might interpret backslashes. 2488# By default was `s,x,x', remove it if useless. 2489cat <<\_ACEOF >conftest.sed 2490s/[\\$]/&&/g;s/;s,x,x,$// 2491_ACEOF 2492program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2493rm conftest.sed 2494 2495for ac_prog in tdlint lint alint 2496do 2497 # Extract the first word of "$ac_prog", so it can be a program name with args. 2498set dummy $ac_prog; ac_word=$2 2499echo "$as_me:2499: checking for $ac_word" >&5 2500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2501if test "${ac_cv_prog_LINT+set}" = set; then 2502 echo $ECHO_N "(cached) $ECHO_C" >&6 2503else 2504 if test -n "$LINT"; then 2505 ac_cv_prog_LINT="$LINT" # Let the user override the test. 2506else 2507 ac_save_IFS=$IFS; IFS=$ac_path_separator 2508ac_dummy="$PATH" 2509for ac_dir in $ac_dummy; do 2510 IFS=$ac_save_IFS 2511 test -z "$ac_dir" && ac_dir=. 2512 $as_executable_p "$ac_dir/$ac_word" || continue 2513ac_cv_prog_LINT="$ac_prog" 2514echo "$as_me:2514: found $ac_dir/$ac_word" >&5 2515break 2516done 2517 2518fi 2519fi 2520LINT=$ac_cv_prog_LINT 2521if test -n "$LINT"; then 2522 echo "$as_me:2522: result: $LINT" >&5 2523echo "${ECHO_T}$LINT" >&6 2524else 2525 echo "$as_me:2525: result: no" >&5 2526echo "${ECHO_T}no" >&6 2527fi 2528 2529 test -n "$LINT" && break 2530done 2531 2532### checks for compiler characteristics 2533 2534cf_XOPEN_SOURCE=500 2535cf_POSIX_C_SOURCE=199506L 2536cf_xopen_source= 2537 2538case $host_os in #(vi 2539aix[4-7]*) #(vi 2540 cf_xopen_source="-D_ALL_SOURCE" 2541 ;; 2542cygwin|msys) #(vi 2543 cf_XOPEN_SOURCE=600 2544 ;; 2545darwin[0-8].*) #(vi 2546 cf_xopen_source="-D_APPLE_C_SOURCE" 2547 ;; 2548darwin*) #(vi 2549 cf_xopen_source="-D_DARWIN_C_SOURCE" 2550 cf_XOPEN_SOURCE= 2551 ;; 2552freebsd*|dragonfly*) #(vi 2553 # 5.x headers associate 2554 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L 2555 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L 2556 cf_POSIX_C_SOURCE=200112L 2557 cf_XOPEN_SOURCE=600 2558 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 2559 ;; 2560hpux11*) #(vi 2561 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500" 2562 ;; 2563hpux*) #(vi 2564 cf_xopen_source="-D_HPUX_SOURCE" 2565 ;; 2566irix[56].*) #(vi 2567 cf_xopen_source="-D_SGI_SOURCE" 2568 cf_XOPEN_SOURCE= 2569 ;; 2570linux*|gnu*|mint*|k*bsd*-gnu) #(vi 2571 2572echo "$as_me:2572: checking if we must define _GNU_SOURCE" >&5 2573echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6 2574if test "${cf_cv_gnu_source+set}" = set; then 2575 echo $ECHO_N "(cached) $ECHO_C" >&6 2576else 2577 2578cat >conftest.$ac_ext <<_ACEOF 2579#line 2579 "configure" 2580#include "confdefs.h" 2581#include <sys/types.h> 2582int 2583main () 2584{ 2585 2586#ifndef _XOPEN_SOURCE 2587make an error 2588#endif 2589 ; 2590 return 0; 2591} 2592_ACEOF 2593rm -f conftest.$ac_objext 2594if { (eval echo "$as_me:2594: \"$ac_compile\"") >&5 2595 (eval $ac_compile) 2>&5 2596 ac_status=$? 2597 echo "$as_me:2597: \$? = $ac_status" >&5 2598 (exit $ac_status); } && 2599 { ac_try='test -s conftest.$ac_objext' 2600 { (eval echo "$as_me:2600: \"$ac_try\"") >&5 2601 (eval $ac_try) 2>&5 2602 ac_status=$? 2603 echo "$as_me:2603: \$? = $ac_status" >&5 2604 (exit $ac_status); }; }; then 2605 cf_cv_gnu_source=no 2606else 2607 echo "$as_me: failed program was:" >&5 2608cat conftest.$ac_ext >&5 2609cf_save="$CPPFLAGS" 2610 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 2611 cat >conftest.$ac_ext <<_ACEOF 2612#line 2612 "configure" 2613#include "confdefs.h" 2614#include <sys/types.h> 2615int 2616main () 2617{ 2618 2619#ifdef _XOPEN_SOURCE 2620make an error 2621#endif 2622 ; 2623 return 0; 2624} 2625_ACEOF 2626rm -f conftest.$ac_objext 2627if { (eval echo "$as_me:2627: \"$ac_compile\"") >&5 2628 (eval $ac_compile) 2>&5 2629 ac_status=$? 2630 echo "$as_me:2630: \$? = $ac_status" >&5 2631 (exit $ac_status); } && 2632 { ac_try='test -s conftest.$ac_objext' 2633 { (eval echo "$as_me:2633: \"$ac_try\"") >&5 2634 (eval $ac_try) 2>&5 2635 ac_status=$? 2636 echo "$as_me:2636: \$? = $ac_status" >&5 2637 (exit $ac_status); }; }; then 2638 cf_cv_gnu_source=no 2639else 2640 echo "$as_me: failed program was:" >&5 2641cat conftest.$ac_ext >&5 2642cf_cv_gnu_source=yes 2643fi 2644rm -f conftest.$ac_objext conftest.$ac_ext 2645 CPPFLAGS="$cf_save" 2646 2647fi 2648rm -f conftest.$ac_objext conftest.$ac_ext 2649 2650fi 2651echo "$as_me:2651: result: $cf_cv_gnu_source" >&5 2652echo "${ECHO_T}$cf_cv_gnu_source" >&6 2653test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 2654 2655 ;; 2656mirbsd*) #(vi 2657 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types 2658 cf_XOPEN_SOURCE= 2659 2660cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 2661 2662cf_save_CFLAGS="$CFLAGS" 2663cf_save_CPPFLAGS="$CPPFLAGS" 2664 2665cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 2666 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 2667 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 2668 2669cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 2670 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 2671 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 2672 2673echo "$as_me:2673: checking if we should define _POSIX_C_SOURCE" >&5 2674echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 2675if test "${cf_cv_posix_c_source+set}" = set; then 2676 echo $ECHO_N "(cached) $ECHO_C" >&6 2677else 2678 2679echo "${as_me:-configure}:2679: testing if the symbol is already defined go no further ..." 1>&5 2680 2681 cat >conftest.$ac_ext <<_ACEOF 2682#line 2682 "configure" 2683#include "confdefs.h" 2684#include <sys/types.h> 2685int 2686main () 2687{ 2688 2689#ifndef _POSIX_C_SOURCE 2690make an error 2691#endif 2692 ; 2693 return 0; 2694} 2695_ACEOF 2696rm -f conftest.$ac_objext 2697if { (eval echo "$as_me:2697: \"$ac_compile\"") >&5 2698 (eval $ac_compile) 2>&5 2699 ac_status=$? 2700 echo "$as_me:2700: \$? = $ac_status" >&5 2701 (exit $ac_status); } && 2702 { ac_try='test -s conftest.$ac_objext' 2703 { (eval echo "$as_me:2703: \"$ac_try\"") >&5 2704 (eval $ac_try) 2>&5 2705 ac_status=$? 2706 echo "$as_me:2706: \$? = $ac_status" >&5 2707 (exit $ac_status); }; }; then 2708 cf_cv_posix_c_source=no 2709else 2710 echo "$as_me: failed program was:" >&5 2711cat conftest.$ac_ext >&5 2712cf_want_posix_source=no 2713 case .$cf_POSIX_C_SOURCE in #(vi 2714 .[12]??*) #(vi 2715 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 2716 ;; 2717 .2) #(vi 2718 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 2719 cf_want_posix_source=yes 2720 ;; 2721 .*) 2722 cf_want_posix_source=yes 2723 ;; 2724 esac 2725 if test "$cf_want_posix_source" = yes ; then 2726 cat >conftest.$ac_ext <<_ACEOF 2727#line 2727 "configure" 2728#include "confdefs.h" 2729#include <sys/types.h> 2730int 2731main () 2732{ 2733 2734#ifdef _POSIX_SOURCE 2735make an error 2736#endif 2737 ; 2738 return 0; 2739} 2740_ACEOF 2741rm -f conftest.$ac_objext 2742if { (eval echo "$as_me:2742: \"$ac_compile\"") >&5 2743 (eval $ac_compile) 2>&5 2744 ac_status=$? 2745 echo "$as_me:2745: \$? = $ac_status" >&5 2746 (exit $ac_status); } && 2747 { ac_try='test -s conftest.$ac_objext' 2748 { (eval echo "$as_me:2748: \"$ac_try\"") >&5 2749 (eval $ac_try) 2>&5 2750 ac_status=$? 2751 echo "$as_me:2751: \$? = $ac_status" >&5 2752 (exit $ac_status); }; }; then 2753 : 2754else 2755 echo "$as_me: failed program was:" >&5 2756cat conftest.$ac_ext >&5 2757cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 2758fi 2759rm -f conftest.$ac_objext conftest.$ac_ext 2760 fi 2761 2762echo "${as_me:-configure}:2762: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 2763 2764 CFLAGS="$cf_trim_CFLAGS" 2765 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source" 2766 2767echo "${as_me:-configure}:2767: testing if the second compile does not leave our definition intact error ..." 1>&5 2768 2769 cat >conftest.$ac_ext <<_ACEOF 2770#line 2770 "configure" 2771#include "confdefs.h" 2772#include <sys/types.h> 2773int 2774main () 2775{ 2776 2777#ifndef _POSIX_C_SOURCE 2778make an error 2779#endif 2780 ; 2781 return 0; 2782} 2783_ACEOF 2784rm -f conftest.$ac_objext 2785if { (eval echo "$as_me:2785: \"$ac_compile\"") >&5 2786 (eval $ac_compile) 2>&5 2787 ac_status=$? 2788 echo "$as_me:2788: \$? = $ac_status" >&5 2789 (exit $ac_status); } && 2790 { ac_try='test -s conftest.$ac_objext' 2791 { (eval echo "$as_me:2791: \"$ac_try\"") >&5 2792 (eval $ac_try) 2>&5 2793 ac_status=$? 2794 echo "$as_me:2794: \$? = $ac_status" >&5 2795 (exit $ac_status); }; }; then 2796 : 2797else 2798 echo "$as_me: failed program was:" >&5 2799cat conftest.$ac_ext >&5 2800cf_cv_posix_c_source=no 2801fi 2802rm -f conftest.$ac_objext conftest.$ac_ext 2803 CFLAGS="$cf_save_CFLAGS" 2804 CPPFLAGS="$cf_save_CPPFLAGS" 2805 2806fi 2807rm -f conftest.$ac_objext conftest.$ac_ext 2808 2809fi 2810echo "$as_me:2810: result: $cf_cv_posix_c_source" >&5 2811echo "${ECHO_T}$cf_cv_posix_c_source" >&6 2812 2813if test "$cf_cv_posix_c_source" != no ; then 2814 CFLAGS="$cf_trim_CFLAGS" 2815 CPPFLAGS="$cf_trim_CPPFLAGS" 2816 2817cf_fix_cppflags=no 2818cf_new_cflags= 2819cf_new_cppflags= 2820cf_new_extra_cppflags= 2821 2822for cf_add_cflags in $cf_cv_posix_c_source 2823do 2824case $cf_fix_cppflags in 2825no) 2826 case $cf_add_cflags in #(vi 2827 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 2828 case $cf_add_cflags in 2829 -D*) 2830 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2831 2832 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2833 && test -z "${cf_tst_cflags}" \ 2834 && cf_fix_cppflags=yes 2835 2836 if test $cf_fix_cppflags = yes ; then 2837 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2838 continue 2839 elif test "${cf_tst_cflags}" = "\"'" ; then 2840 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2841 continue 2842 fi 2843 ;; 2844 esac 2845 case "$CPPFLAGS" in 2846 *$cf_add_cflags) #(vi 2847 ;; 2848 *) #(vi 2849 case $cf_add_cflags in #(vi 2850 -D*) 2851 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2852 2853CPPFLAGS=`echo "$CPPFLAGS" | \ 2854 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2855 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2856 2857 ;; 2858 esac 2859 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 2860 ;; 2861 esac 2862 ;; 2863 *) 2864 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 2865 ;; 2866 esac 2867 ;; 2868yes) 2869 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2870 2871 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 2872 2873 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2874 && test -z "${cf_tst_cflags}" \ 2875 && cf_fix_cppflags=no 2876 ;; 2877esac 2878done 2879 2880if test -n "$cf_new_cflags" ; then 2881 2882 CFLAGS="$CFLAGS $cf_new_cflags" 2883fi 2884 2885if test -n "$cf_new_cppflags" ; then 2886 2887 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 2888fi 2889 2890if test -n "$cf_new_extra_cppflags" ; then 2891 2892 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 2893fi 2894 2895fi 2896 2897 ;; 2898netbsd*) #(vi 2899 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw 2900 ;; 2901openbsd[4-9]*) #(vi 2902 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw 2903 cf_xopen_source="-D_BSD_SOURCE" 2904 cf_XOPEN_SOURCE=600 2905 ;; 2906openbsd*) #(vi 2907 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw 2908 ;; 2909osf[45]*) #(vi 2910 cf_xopen_source="-D_OSF_SOURCE" 2911 ;; 2912nto-qnx*) #(vi 2913 cf_xopen_source="-D_QNX_SOURCE" 2914 ;; 2915sco*) #(vi 2916 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer 2917 ;; 2918solaris2.*) #(vi 2919 cf_xopen_source="-D__EXTENSIONS__" 2920 ;; 2921*) 2922 2923echo "$as_me:2923: checking if we should define _XOPEN_SOURCE" >&5 2924echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 2925if test "${cf_cv_xopen_source+set}" = set; then 2926 echo $ECHO_N "(cached) $ECHO_C" >&6 2927else 2928 2929 cat >conftest.$ac_ext <<_ACEOF 2930#line 2930 "configure" 2931#include "confdefs.h" 2932 2933#include <stdlib.h> 2934#include <string.h> 2935#include <sys/types.h> 2936 2937int 2938main () 2939{ 2940 2941#ifndef _XOPEN_SOURCE 2942make an error 2943#endif 2944 ; 2945 return 0; 2946} 2947_ACEOF 2948rm -f conftest.$ac_objext 2949if { (eval echo "$as_me:2949: \"$ac_compile\"") >&5 2950 (eval $ac_compile) 2>&5 2951 ac_status=$? 2952 echo "$as_me:2952: \$? = $ac_status" >&5 2953 (exit $ac_status); } && 2954 { ac_try='test -s conftest.$ac_objext' 2955 { (eval echo "$as_me:2955: \"$ac_try\"") >&5 2956 (eval $ac_try) 2>&5 2957 ac_status=$? 2958 echo "$as_me:2958: \$? = $ac_status" >&5 2959 (exit $ac_status); }; }; then 2960 cf_cv_xopen_source=no 2961else 2962 echo "$as_me: failed program was:" >&5 2963cat conftest.$ac_ext >&5 2964cf_save="$CPPFLAGS" 2965 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 2966 cat >conftest.$ac_ext <<_ACEOF 2967#line 2967 "configure" 2968#include "confdefs.h" 2969 2970#include <stdlib.h> 2971#include <string.h> 2972#include <sys/types.h> 2973 2974int 2975main () 2976{ 2977 2978#ifdef _XOPEN_SOURCE 2979make an error 2980#endif 2981 ; 2982 return 0; 2983} 2984_ACEOF 2985rm -f conftest.$ac_objext 2986if { (eval echo "$as_me:2986: \"$ac_compile\"") >&5 2987 (eval $ac_compile) 2>&5 2988 ac_status=$? 2989 echo "$as_me:2989: \$? = $ac_status" >&5 2990 (exit $ac_status); } && 2991 { ac_try='test -s conftest.$ac_objext' 2992 { (eval echo "$as_me:2992: \"$ac_try\"") >&5 2993 (eval $ac_try) 2>&5 2994 ac_status=$? 2995 echo "$as_me:2995: \$? = $ac_status" >&5 2996 (exit $ac_status); }; }; then 2997 cf_cv_xopen_source=no 2998else 2999 echo "$as_me: failed program was:" >&5 3000cat conftest.$ac_ext >&5 3001cf_cv_xopen_source=$cf_XOPEN_SOURCE 3002fi 3003rm -f conftest.$ac_objext conftest.$ac_ext 3004 CPPFLAGS="$cf_save" 3005 3006fi 3007rm -f conftest.$ac_objext conftest.$ac_ext 3008 3009fi 3010echo "$as_me:3010: result: $cf_cv_xopen_source" >&5 3011echo "${ECHO_T}$cf_cv_xopen_source" >&6 3012 3013if test "$cf_cv_xopen_source" != no ; then 3014 3015CFLAGS=`echo "$CFLAGS" | \ 3016 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3017 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3018 3019CPPFLAGS=`echo "$CPPFLAGS" | \ 3020 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3021 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3022 3023 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 3024 3025cf_fix_cppflags=no 3026cf_new_cflags= 3027cf_new_cppflags= 3028cf_new_extra_cppflags= 3029 3030for cf_add_cflags in $cf_temp_xopen_source 3031do 3032case $cf_fix_cppflags in 3033no) 3034 case $cf_add_cflags in #(vi 3035 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 3036 case $cf_add_cflags in 3037 -D*) 3038 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3039 3040 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3041 && test -z "${cf_tst_cflags}" \ 3042 && cf_fix_cppflags=yes 3043 3044 if test $cf_fix_cppflags = yes ; then 3045 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3046 continue 3047 elif test "${cf_tst_cflags}" = "\"'" ; then 3048 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3049 continue 3050 fi 3051 ;; 3052 esac 3053 case "$CPPFLAGS" in 3054 *$cf_add_cflags) #(vi 3055 ;; 3056 *) #(vi 3057 case $cf_add_cflags in #(vi 3058 -D*) 3059 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3060 3061CPPFLAGS=`echo "$CPPFLAGS" | \ 3062 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3063 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3064 3065 ;; 3066 esac 3067 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3068 ;; 3069 esac 3070 ;; 3071 *) 3072 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3073 ;; 3074 esac 3075 ;; 3076yes) 3077 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3078 3079 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3080 3081 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3082 && test -z "${cf_tst_cflags}" \ 3083 && cf_fix_cppflags=no 3084 ;; 3085esac 3086done 3087 3088if test -n "$cf_new_cflags" ; then 3089 3090 CFLAGS="$CFLAGS $cf_new_cflags" 3091fi 3092 3093if test -n "$cf_new_cppflags" ; then 3094 3095 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3096fi 3097 3098if test -n "$cf_new_extra_cppflags" ; then 3099 3100 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3101fi 3102 3103fi 3104 3105cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 3106 3107cf_save_CFLAGS="$CFLAGS" 3108cf_save_CPPFLAGS="$CPPFLAGS" 3109 3110cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 3111 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3112 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 3113 3114cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 3115 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3116 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 3117 3118echo "$as_me:3118: checking if we should define _POSIX_C_SOURCE" >&5 3119echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 3120if test "${cf_cv_posix_c_source+set}" = set; then 3121 echo $ECHO_N "(cached) $ECHO_C" >&6 3122else 3123 3124echo "${as_me:-configure}:3124: testing if the symbol is already defined go no further ..." 1>&5 3125 3126 cat >conftest.$ac_ext <<_ACEOF 3127#line 3127 "configure" 3128#include "confdefs.h" 3129#include <sys/types.h> 3130int 3131main () 3132{ 3133 3134#ifndef _POSIX_C_SOURCE 3135make an error 3136#endif 3137 ; 3138 return 0; 3139} 3140_ACEOF 3141rm -f conftest.$ac_objext 3142if { (eval echo "$as_me:3142: \"$ac_compile\"") >&5 3143 (eval $ac_compile) 2>&5 3144 ac_status=$? 3145 echo "$as_me:3145: \$? = $ac_status" >&5 3146 (exit $ac_status); } && 3147 { ac_try='test -s conftest.$ac_objext' 3148 { (eval echo "$as_me:3148: \"$ac_try\"") >&5 3149 (eval $ac_try) 2>&5 3150 ac_status=$? 3151 echo "$as_me:3151: \$? = $ac_status" >&5 3152 (exit $ac_status); }; }; then 3153 cf_cv_posix_c_source=no 3154else 3155 echo "$as_me: failed program was:" >&5 3156cat conftest.$ac_ext >&5 3157cf_want_posix_source=no 3158 case .$cf_POSIX_C_SOURCE in #(vi 3159 .[12]??*) #(vi 3160 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3161 ;; 3162 .2) #(vi 3163 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3164 cf_want_posix_source=yes 3165 ;; 3166 .*) 3167 cf_want_posix_source=yes 3168 ;; 3169 esac 3170 if test "$cf_want_posix_source" = yes ; then 3171 cat >conftest.$ac_ext <<_ACEOF 3172#line 3172 "configure" 3173#include "confdefs.h" 3174#include <sys/types.h> 3175int 3176main () 3177{ 3178 3179#ifdef _POSIX_SOURCE 3180make an error 3181#endif 3182 ; 3183 return 0; 3184} 3185_ACEOF 3186rm -f conftest.$ac_objext 3187if { (eval echo "$as_me:3187: \"$ac_compile\"") >&5 3188 (eval $ac_compile) 2>&5 3189 ac_status=$? 3190 echo "$as_me:3190: \$? = $ac_status" >&5 3191 (exit $ac_status); } && 3192 { ac_try='test -s conftest.$ac_objext' 3193 { (eval echo "$as_me:3193: \"$ac_try\"") >&5 3194 (eval $ac_try) 2>&5 3195 ac_status=$? 3196 echo "$as_me:3196: \$? = $ac_status" >&5 3197 (exit $ac_status); }; }; then 3198 : 3199else 3200 echo "$as_me: failed program was:" >&5 3201cat conftest.$ac_ext >&5 3202cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 3203fi 3204rm -f conftest.$ac_objext conftest.$ac_ext 3205 fi 3206 3207echo "${as_me:-configure}:3207: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 3208 3209 CFLAGS="$cf_trim_CFLAGS" 3210 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source" 3211 3212echo "${as_me:-configure}:3212: testing if the second compile does not leave our definition intact error ..." 1>&5 3213 3214 cat >conftest.$ac_ext <<_ACEOF 3215#line 3215 "configure" 3216#include "confdefs.h" 3217#include <sys/types.h> 3218int 3219main () 3220{ 3221 3222#ifndef _POSIX_C_SOURCE 3223make an error 3224#endif 3225 ; 3226 return 0; 3227} 3228_ACEOF 3229rm -f conftest.$ac_objext 3230if { (eval echo "$as_me:3230: \"$ac_compile\"") >&5 3231 (eval $ac_compile) 2>&5 3232 ac_status=$? 3233 echo "$as_me:3233: \$? = $ac_status" >&5 3234 (exit $ac_status); } && 3235 { ac_try='test -s conftest.$ac_objext' 3236 { (eval echo "$as_me:3236: \"$ac_try\"") >&5 3237 (eval $ac_try) 2>&5 3238 ac_status=$? 3239 echo "$as_me:3239: \$? = $ac_status" >&5 3240 (exit $ac_status); }; }; then 3241 : 3242else 3243 echo "$as_me: failed program was:" >&5 3244cat conftest.$ac_ext >&5 3245cf_cv_posix_c_source=no 3246fi 3247rm -f conftest.$ac_objext conftest.$ac_ext 3248 CFLAGS="$cf_save_CFLAGS" 3249 CPPFLAGS="$cf_save_CPPFLAGS" 3250 3251fi 3252rm -f conftest.$ac_objext conftest.$ac_ext 3253 3254fi 3255echo "$as_me:3255: result: $cf_cv_posix_c_source" >&5 3256echo "${ECHO_T}$cf_cv_posix_c_source" >&6 3257 3258if test "$cf_cv_posix_c_source" != no ; then 3259 CFLAGS="$cf_trim_CFLAGS" 3260 CPPFLAGS="$cf_trim_CPPFLAGS" 3261 3262cf_fix_cppflags=no 3263cf_new_cflags= 3264cf_new_cppflags= 3265cf_new_extra_cppflags= 3266 3267for cf_add_cflags in $cf_cv_posix_c_source 3268do 3269case $cf_fix_cppflags in 3270no) 3271 case $cf_add_cflags in #(vi 3272 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 3273 case $cf_add_cflags in 3274 -D*) 3275 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3276 3277 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3278 && test -z "${cf_tst_cflags}" \ 3279 && cf_fix_cppflags=yes 3280 3281 if test $cf_fix_cppflags = yes ; then 3282 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3283 continue 3284 elif test "${cf_tst_cflags}" = "\"'" ; then 3285 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3286 continue 3287 fi 3288 ;; 3289 esac 3290 case "$CPPFLAGS" in 3291 *$cf_add_cflags) #(vi 3292 ;; 3293 *) #(vi 3294 case $cf_add_cflags in #(vi 3295 -D*) 3296 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3297 3298CPPFLAGS=`echo "$CPPFLAGS" | \ 3299 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3300 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3301 3302 ;; 3303 esac 3304 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3305 ;; 3306 esac 3307 ;; 3308 *) 3309 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3310 ;; 3311 esac 3312 ;; 3313yes) 3314 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3315 3316 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3317 3318 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3319 && test -z "${cf_tst_cflags}" \ 3320 && cf_fix_cppflags=no 3321 ;; 3322esac 3323done 3324 3325if test -n "$cf_new_cflags" ; then 3326 3327 CFLAGS="$CFLAGS $cf_new_cflags" 3328fi 3329 3330if test -n "$cf_new_cppflags" ; then 3331 3332 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3333fi 3334 3335if test -n "$cf_new_extra_cppflags" ; then 3336 3337 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3338fi 3339 3340fi 3341 3342 ;; 3343esac 3344 3345if test -n "$cf_xopen_source" ; then 3346 3347cf_fix_cppflags=no 3348cf_new_cflags= 3349cf_new_cppflags= 3350cf_new_extra_cppflags= 3351 3352for cf_add_cflags in $cf_xopen_source 3353do 3354case $cf_fix_cppflags in 3355no) 3356 case $cf_add_cflags in #(vi 3357 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 3358 case $cf_add_cflags in 3359 -D*) 3360 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3361 3362 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3363 && test -z "${cf_tst_cflags}" \ 3364 && cf_fix_cppflags=yes 3365 3366 if test $cf_fix_cppflags = yes ; then 3367 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3368 continue 3369 elif test "${cf_tst_cflags}" = "\"'" ; then 3370 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3371 continue 3372 fi 3373 ;; 3374 esac 3375 case "$CPPFLAGS" in 3376 *$cf_add_cflags) #(vi 3377 ;; 3378 *) #(vi 3379 case $cf_add_cflags in #(vi 3380 -D*) 3381 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3382 3383CPPFLAGS=`echo "$CPPFLAGS" | \ 3384 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3385 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3386 3387 ;; 3388 esac 3389 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3390 ;; 3391 esac 3392 ;; 3393 *) 3394 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3395 ;; 3396 esac 3397 ;; 3398yes) 3399 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3400 3401 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3402 3403 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3404 && test -z "${cf_tst_cflags}" \ 3405 && cf_fix_cppflags=no 3406 ;; 3407esac 3408done 3409 3410if test -n "$cf_new_cflags" ; then 3411 3412 CFLAGS="$CFLAGS $cf_new_cflags" 3413fi 3414 3415if test -n "$cf_new_cppflags" ; then 3416 3417 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3418fi 3419 3420if test -n "$cf_new_extra_cppflags" ; then 3421 3422 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3423fi 3424 3425fi 3426 3427if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then 3428 echo "$as_me:3428: checking if _XOPEN_SOURCE really is set" >&5 3429echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6 3430 cat >conftest.$ac_ext <<_ACEOF 3431#line 3431 "configure" 3432#include "confdefs.h" 3433#include <stdlib.h> 3434int 3435main () 3436{ 3437 3438#ifndef _XOPEN_SOURCE 3439make an error 3440#endif 3441 ; 3442 return 0; 3443} 3444_ACEOF 3445rm -f conftest.$ac_objext 3446if { (eval echo "$as_me:3446: \"$ac_compile\"") >&5 3447 (eval $ac_compile) 2>&5 3448 ac_status=$? 3449 echo "$as_me:3449: \$? = $ac_status" >&5 3450 (exit $ac_status); } && 3451 { ac_try='test -s conftest.$ac_objext' 3452 { (eval echo "$as_me:3452: \"$ac_try\"") >&5 3453 (eval $ac_try) 2>&5 3454 ac_status=$? 3455 echo "$as_me:3455: \$? = $ac_status" >&5 3456 (exit $ac_status); }; }; then 3457 cf_XOPEN_SOURCE_set=yes 3458else 3459 echo "$as_me: failed program was:" >&5 3460cat conftest.$ac_ext >&5 3461cf_XOPEN_SOURCE_set=no 3462fi 3463rm -f conftest.$ac_objext conftest.$ac_ext 3464 echo "$as_me:3464: result: $cf_XOPEN_SOURCE_set" >&5 3465echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6 3466 if test $cf_XOPEN_SOURCE_set = yes 3467 then 3468 cat >conftest.$ac_ext <<_ACEOF 3469#line 3469 "configure" 3470#include "confdefs.h" 3471#include <stdlib.h> 3472int 3473main () 3474{ 3475 3476#if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE 3477make an error 3478#endif 3479 ; 3480 return 0; 3481} 3482_ACEOF 3483rm -f conftest.$ac_objext 3484if { (eval echo "$as_me:3484: \"$ac_compile\"") >&5 3485 (eval $ac_compile) 2>&5 3486 ac_status=$? 3487 echo "$as_me:3487: \$? = $ac_status" >&5 3488 (exit $ac_status); } && 3489 { ac_try='test -s conftest.$ac_objext' 3490 { (eval echo "$as_me:3490: \"$ac_try\"") >&5 3491 (eval $ac_try) 2>&5 3492 ac_status=$? 3493 echo "$as_me:3493: \$? = $ac_status" >&5 3494 (exit $ac_status); }; }; then 3495 cf_XOPEN_SOURCE_set_ok=yes 3496else 3497 echo "$as_me: failed program was:" >&5 3498cat conftest.$ac_ext >&5 3499cf_XOPEN_SOURCE_set_ok=no 3500fi 3501rm -f conftest.$ac_objext conftest.$ac_ext 3502 if test $cf_XOPEN_SOURCE_set_ok = no 3503 then 3504 { echo "$as_me:3504: WARNING: _XOPEN_SOURCE is lower than requested" >&5 3505echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;} 3506 fi 3507 else 3508 3509echo "$as_me:3509: checking if we should define _XOPEN_SOURCE" >&5 3510echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 3511if test "${cf_cv_xopen_source+set}" = set; then 3512 echo $ECHO_N "(cached) $ECHO_C" >&6 3513else 3514 3515 cat >conftest.$ac_ext <<_ACEOF 3516#line 3516 "configure" 3517#include "confdefs.h" 3518 3519#include <stdlib.h> 3520#include <string.h> 3521#include <sys/types.h> 3522 3523int 3524main () 3525{ 3526 3527#ifndef _XOPEN_SOURCE 3528make an error 3529#endif 3530 ; 3531 return 0; 3532} 3533_ACEOF 3534rm -f conftest.$ac_objext 3535if { (eval echo "$as_me:3535: \"$ac_compile\"") >&5 3536 (eval $ac_compile) 2>&5 3537 ac_status=$? 3538 echo "$as_me:3538: \$? = $ac_status" >&5 3539 (exit $ac_status); } && 3540 { ac_try='test -s conftest.$ac_objext' 3541 { (eval echo "$as_me:3541: \"$ac_try\"") >&5 3542 (eval $ac_try) 2>&5 3543 ac_status=$? 3544 echo "$as_me:3544: \$? = $ac_status" >&5 3545 (exit $ac_status); }; }; then 3546 cf_cv_xopen_source=no 3547else 3548 echo "$as_me: failed program was:" >&5 3549cat conftest.$ac_ext >&5 3550cf_save="$CPPFLAGS" 3551 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 3552 cat >conftest.$ac_ext <<_ACEOF 3553#line 3553 "configure" 3554#include "confdefs.h" 3555 3556#include <stdlib.h> 3557#include <string.h> 3558#include <sys/types.h> 3559 3560int 3561main () 3562{ 3563 3564#ifdef _XOPEN_SOURCE 3565make an error 3566#endif 3567 ; 3568 return 0; 3569} 3570_ACEOF 3571rm -f conftest.$ac_objext 3572if { (eval echo "$as_me:3572: \"$ac_compile\"") >&5 3573 (eval $ac_compile) 2>&5 3574 ac_status=$? 3575 echo "$as_me:3575: \$? = $ac_status" >&5 3576 (exit $ac_status); } && 3577 { ac_try='test -s conftest.$ac_objext' 3578 { (eval echo "$as_me:3578: \"$ac_try\"") >&5 3579 (eval $ac_try) 2>&5 3580 ac_status=$? 3581 echo "$as_me:3581: \$? = $ac_status" >&5 3582 (exit $ac_status); }; }; then 3583 cf_cv_xopen_source=no 3584else 3585 echo "$as_me: failed program was:" >&5 3586cat conftest.$ac_ext >&5 3587cf_cv_xopen_source=$cf_XOPEN_SOURCE 3588fi 3589rm -f conftest.$ac_objext conftest.$ac_ext 3590 CPPFLAGS="$cf_save" 3591 3592fi 3593rm -f conftest.$ac_objext conftest.$ac_ext 3594 3595fi 3596echo "$as_me:3596: result: $cf_cv_xopen_source" >&5 3597echo "${ECHO_T}$cf_cv_xopen_source" >&6 3598 3599if test "$cf_cv_xopen_source" != no ; then 3600 3601CFLAGS=`echo "$CFLAGS" | \ 3602 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3603 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3604 3605CPPFLAGS=`echo "$CPPFLAGS" | \ 3606 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3607 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3608 3609 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 3610 3611cf_fix_cppflags=no 3612cf_new_cflags= 3613cf_new_cppflags= 3614cf_new_extra_cppflags= 3615 3616for cf_add_cflags in $cf_temp_xopen_source 3617do 3618case $cf_fix_cppflags in 3619no) 3620 case $cf_add_cflags in #(vi 3621 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 3622 case $cf_add_cflags in 3623 -D*) 3624 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3625 3626 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3627 && test -z "${cf_tst_cflags}" \ 3628 && cf_fix_cppflags=yes 3629 3630 if test $cf_fix_cppflags = yes ; then 3631 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3632 continue 3633 elif test "${cf_tst_cflags}" = "\"'" ; then 3634 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3635 continue 3636 fi 3637 ;; 3638 esac 3639 case "$CPPFLAGS" in 3640 *$cf_add_cflags) #(vi 3641 ;; 3642 *) #(vi 3643 case $cf_add_cflags in #(vi 3644 -D*) 3645 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3646 3647CPPFLAGS=`echo "$CPPFLAGS" | \ 3648 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3649 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3650 3651 ;; 3652 esac 3653 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3654 ;; 3655 esac 3656 ;; 3657 *) 3658 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3659 ;; 3660 esac 3661 ;; 3662yes) 3663 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3664 3665 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3666 3667 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3668 && test -z "${cf_tst_cflags}" \ 3669 && cf_fix_cppflags=no 3670 ;; 3671esac 3672done 3673 3674if test -n "$cf_new_cflags" ; then 3675 3676 CFLAGS="$CFLAGS $cf_new_cflags" 3677fi 3678 3679if test -n "$cf_new_cppflags" ; then 3680 3681 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3682fi 3683 3684if test -n "$cf_new_extra_cppflags" ; then 3685 3686 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3687fi 3688 3689fi 3690 3691 fi 3692fi 3693 3694echo "$as_me:3694: checking if SIGWINCH is defined" >&5 3695echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6 3696if test "${cf_cv_define_sigwinch+set}" = set; then 3697 echo $ECHO_N "(cached) $ECHO_C" >&6 3698else 3699 3700 cat >conftest.$ac_ext <<_ACEOF 3701#line 3701 "configure" 3702#include "confdefs.h" 3703 3704#include <sys/types.h> 3705#include <sys/signal.h> 3706 3707int 3708main () 3709{ 3710int x = SIGWINCH 3711 ; 3712 return 0; 3713} 3714_ACEOF 3715rm -f conftest.$ac_objext 3716if { (eval echo "$as_me:3716: \"$ac_compile\"") >&5 3717 (eval $ac_compile) 2>&5 3718 ac_status=$? 3719 echo "$as_me:3719: \$? = $ac_status" >&5 3720 (exit $ac_status); } && 3721 { ac_try='test -s conftest.$ac_objext' 3722 { (eval echo "$as_me:3722: \"$ac_try\"") >&5 3723 (eval $ac_try) 2>&5 3724 ac_status=$? 3725 echo "$as_me:3725: \$? = $ac_status" >&5 3726 (exit $ac_status); }; }; then 3727 cf_cv_define_sigwinch=yes 3728else 3729 echo "$as_me: failed program was:" >&5 3730cat conftest.$ac_ext >&5 3731cat >conftest.$ac_ext <<_ACEOF 3732#line 3732 "configure" 3733#include "confdefs.h" 3734 3735#undef _XOPEN_SOURCE 3736#undef _POSIX_SOURCE 3737#undef _POSIX_C_SOURCE 3738#include <sys/types.h> 3739#include <sys/signal.h> 3740 3741int 3742main () 3743{ 3744int x = SIGWINCH 3745 ; 3746 return 0; 3747} 3748_ACEOF 3749rm -f conftest.$ac_objext 3750if { (eval echo "$as_me:3750: \"$ac_compile\"") >&5 3751 (eval $ac_compile) 2>&5 3752 ac_status=$? 3753 echo "$as_me:3753: \$? = $ac_status" >&5 3754 (exit $ac_status); } && 3755 { ac_try='test -s conftest.$ac_objext' 3756 { (eval echo "$as_me:3756: \"$ac_try\"") >&5 3757 (eval $ac_try) 2>&5 3758 ac_status=$? 3759 echo "$as_me:3759: \$? = $ac_status" >&5 3760 (exit $ac_status); }; }; then 3761 cf_cv_define_sigwinch=maybe 3762else 3763 echo "$as_me: failed program was:" >&5 3764cat conftest.$ac_ext >&5 3765cf_cv_define_sigwinch=no 3766fi 3767rm -f conftest.$ac_objext conftest.$ac_ext 3768 3769fi 3770rm -f conftest.$ac_objext conftest.$ac_ext 3771 3772fi 3773echo "$as_me:3773: result: $cf_cv_define_sigwinch" >&5 3774echo "${ECHO_T}$cf_cv_define_sigwinch" >&6 3775 3776if test "$cf_cv_define_sigwinch" = maybe ; then 3777echo "$as_me:3777: checking for actual SIGWINCH definition" >&5 3778echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6 3779if test "${cf_cv_fixup_sigwinch+set}" = set; then 3780 echo $ECHO_N "(cached) $ECHO_C" >&6 3781else 3782 3783cf_cv_fixup_sigwinch=unknown 3784cf_sigwinch=32 3785while test $cf_sigwinch != 1 3786do 3787 cat >conftest.$ac_ext <<_ACEOF 3788#line 3788 "configure" 3789#include "confdefs.h" 3790 3791#undef _XOPEN_SOURCE 3792#undef _POSIX_SOURCE 3793#undef _POSIX_C_SOURCE 3794#include <sys/types.h> 3795#include <sys/signal.h> 3796 3797int 3798main () 3799{ 3800 3801#if SIGWINCH != $cf_sigwinch 3802make an error 3803#endif 3804int x = SIGWINCH 3805 ; 3806 return 0; 3807} 3808_ACEOF 3809rm -f conftest.$ac_objext 3810if { (eval echo "$as_me:3810: \"$ac_compile\"") >&5 3811 (eval $ac_compile) 2>&5 3812 ac_status=$? 3813 echo "$as_me:3813: \$? = $ac_status" >&5 3814 (exit $ac_status); } && 3815 { ac_try='test -s conftest.$ac_objext' 3816 { (eval echo "$as_me:3816: \"$ac_try\"") >&5 3817 (eval $ac_try) 2>&5 3818 ac_status=$? 3819 echo "$as_me:3819: \$? = $ac_status" >&5 3820 (exit $ac_status); }; }; then 3821 cf_cv_fixup_sigwinch=$cf_sigwinch 3822 break 3823else 3824 echo "$as_me: failed program was:" >&5 3825cat conftest.$ac_ext >&5 3826fi 3827rm -f conftest.$ac_objext conftest.$ac_ext 3828 3829cf_sigwinch=`expr $cf_sigwinch - 1` 3830done 3831 3832fi 3833echo "$as_me:3833: result: $cf_cv_fixup_sigwinch" >&5 3834echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6 3835 3836 if test "$cf_cv_fixup_sigwinch" != unknown ; then 3837 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch" 3838 fi 3839fi 3840 3841### checks for header files 3842 3843for ac_header in \ 3844ncurses/curses.h \ 3845ncurses/term.h \ 3846stdlib.h \ 3847sys/ptem.h sys/ttydefaults.h \ 3848term.h \ 3849termios.h \ 3850unistd.h \ 3851wchar.h \ 3852 3853do 3854as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3855echo "$as_me:3855: checking for $ac_header" >&5 3856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3857if eval "test \"\${$as_ac_Header+set}\" = set"; then 3858 echo $ECHO_N "(cached) $ECHO_C" >&6 3859else 3860 cat >conftest.$ac_ext <<_ACEOF 3861#line 3861 "configure" 3862#include "confdefs.h" 3863#include <$ac_header> 3864_ACEOF 3865if { (eval echo "$as_me:3865: \"$ac_cpp conftest.$ac_ext\"") >&5 3866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3867 ac_status=$? 3868 egrep -v '^ *\+' conftest.er1 >conftest.err 3869 rm -f conftest.er1 3870 cat conftest.err >&5 3871 echo "$as_me:3871: \$? = $ac_status" >&5 3872 (exit $ac_status); } >/dev/null; then 3873 if test -s conftest.err; then 3874 ac_cpp_err=$ac_c_preproc_warn_flag 3875 else 3876 ac_cpp_err= 3877 fi 3878else 3879 ac_cpp_err=yes 3880fi 3881if test -z "$ac_cpp_err"; then 3882 eval "$as_ac_Header=yes" 3883else 3884 echo "$as_me: failed program was:" >&5 3885 cat conftest.$ac_ext >&5 3886 eval "$as_ac_Header=no" 3887fi 3888rm -f conftest.err conftest.$ac_ext 3889fi 3890echo "$as_me:3890: result: `eval echo '${'$as_ac_Header'}'`" >&5 3891echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3892if test `eval echo '${'$as_ac_Header'}'` = yes; then 3893 cat >>confdefs.h <<EOF 3894#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3895EOF 3896 3897fi 3898done 3899 3900echo "$as_me:3900: checking whether time.h and sys/time.h may both be included" >&5 3901echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 3902if test "${ac_cv_header_time+set}" = set; then 3903 echo $ECHO_N "(cached) $ECHO_C" >&6 3904else 3905 cat >conftest.$ac_ext <<_ACEOF 3906#line 3906 "configure" 3907#include "confdefs.h" 3908#include <sys/types.h> 3909#include <sys/time.h> 3910#include <time.h> 3911 3912int 3913main () 3914{ 3915if ((struct tm *) 0) 3916return 0; 3917 ; 3918 return 0; 3919} 3920_ACEOF 3921rm -f conftest.$ac_objext 3922if { (eval echo "$as_me:3922: \"$ac_compile\"") >&5 3923 (eval $ac_compile) 2>&5 3924 ac_status=$? 3925 echo "$as_me:3925: \$? = $ac_status" >&5 3926 (exit $ac_status); } && 3927 { ac_try='test -s conftest.$ac_objext' 3928 { (eval echo "$as_me:3928: \"$ac_try\"") >&5 3929 (eval $ac_try) 2>&5 3930 ac_status=$? 3931 echo "$as_me:3931: \$? = $ac_status" >&5 3932 (exit $ac_status); }; }; then 3933 ac_cv_header_time=yes 3934else 3935 echo "$as_me: failed program was:" >&5 3936cat conftest.$ac_ext >&5 3937ac_cv_header_time=no 3938fi 3939rm -f conftest.$ac_objext conftest.$ac_ext 3940fi 3941echo "$as_me:3941: result: $ac_cv_header_time" >&5 3942echo "${ECHO_T}$ac_cv_header_time" >&6 3943if test $ac_cv_header_time = yes; then 3944 3945cat >>confdefs.h <<\EOF 3946#define TIME_WITH_SYS_TIME 1 3947EOF 3948 3949fi 3950 3951 echo "$as_me:3951: checking for nl_langinfo and CODESET" >&5 3952echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 3953if test "${am_cv_langinfo_codeset+set}" = set; then 3954 echo $ECHO_N "(cached) $ECHO_C" >&6 3955else 3956 cat >conftest.$ac_ext <<_ACEOF 3957#line 3957 "configure" 3958#include "confdefs.h" 3959#include <langinfo.h> 3960int 3961main () 3962{ 3963char* cs = nl_langinfo(CODESET); 3964 ; 3965 return 0; 3966} 3967_ACEOF 3968rm -f conftest.$ac_objext conftest$ac_exeext 3969if { (eval echo "$as_me:3969: \"$ac_link\"") >&5 3970 (eval $ac_link) 2>&5 3971 ac_status=$? 3972 echo "$as_me:3972: \$? = $ac_status" >&5 3973 (exit $ac_status); } && 3974 { ac_try='test -s conftest$ac_exeext' 3975 { (eval echo "$as_me:3975: \"$ac_try\"") >&5 3976 (eval $ac_try) 2>&5 3977 ac_status=$? 3978 echo "$as_me:3978: \$? = $ac_status" >&5 3979 (exit $ac_status); }; }; then 3980 am_cv_langinfo_codeset=yes 3981else 3982 echo "$as_me: failed program was:" >&5 3983cat conftest.$ac_ext >&5 3984am_cv_langinfo_codeset=no 3985fi 3986rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3987 3988fi 3989echo "$as_me:3989: result: $am_cv_langinfo_codeset" >&5 3990echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 3991 if test $am_cv_langinfo_codeset = yes; then 3992 3993cat >>confdefs.h <<\EOF 3994#define HAVE_LANGINFO_CODESET 1 3995EOF 3996 3997 fi 3998 3999### checks for typedefs 4000 4001echo "$as_me:4001: checking for signal global datatype" >&5 4002echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6 4003if test "${cf_cv_sig_atomic_t+set}" = set; then 4004 echo $ECHO_N "(cached) $ECHO_C" >&6 4005else 4006 4007 for cf_type in \ 4008 "volatile sig_atomic_t" \ 4009 "sig_atomic_t" \ 4010 "int" 4011 do 4012 cat >conftest.$ac_ext <<_ACEOF 4013#line 4013 "configure" 4014#include "confdefs.h" 4015 4016#include <sys/types.h> 4017#include <signal.h> 4018#include <stdio.h> 4019 4020extern $cf_type x; 4021$cf_type x; 4022static void handler(int sig) 4023{ 4024 x = 5; 4025} 4026int 4027main () 4028{ 4029signal(SIGINT, handler); 4030 x = 1 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 cf_cv_sig_atomic_t=$cf_type 4048else 4049 echo "$as_me: failed program was:" >&5 4050cat conftest.$ac_ext >&5 4051cf_cv_sig_atomic_t=no 4052fi 4053rm -f conftest.$ac_objext conftest.$ac_ext 4054 test "$cf_cv_sig_atomic_t" != no && break 4055 done 4056 4057fi 4058 4059echo "$as_me:4059: result: $cf_cv_sig_atomic_t" >&5 4060echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6 4061test "$cf_cv_sig_atomic_t" != no && 4062cat >>confdefs.h <<EOF 4063#define SIG_ATOMIC_T $cf_cv_sig_atomic_t 4064EOF 4065 4066echo "$as_me:4066: checking for ANSI C header files" >&5 4067echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4068if test "${ac_cv_header_stdc+set}" = set; then 4069 echo $ECHO_N "(cached) $ECHO_C" >&6 4070else 4071 cat >conftest.$ac_ext <<_ACEOF 4072#line 4072 "configure" 4073#include "confdefs.h" 4074#include <stdlib.h> 4075#include <stdarg.h> 4076#include <string.h> 4077#include <float.h> 4078 4079_ACEOF 4080if { (eval echo "$as_me:4080: \"$ac_cpp conftest.$ac_ext\"") >&5 4081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4082 ac_status=$? 4083 egrep -v '^ *\+' conftest.er1 >conftest.err 4084 rm -f conftest.er1 4085 cat conftest.err >&5 4086 echo "$as_me:4086: \$? = $ac_status" >&5 4087 (exit $ac_status); } >/dev/null; then 4088 if test -s conftest.err; then 4089 ac_cpp_err=$ac_c_preproc_warn_flag 4090 else 4091 ac_cpp_err= 4092 fi 4093else 4094 ac_cpp_err=yes 4095fi 4096if test -z "$ac_cpp_err"; then 4097 ac_cv_header_stdc=yes 4098else 4099 echo "$as_me: failed program was:" >&5 4100 cat conftest.$ac_ext >&5 4101 ac_cv_header_stdc=no 4102fi 4103rm -f conftest.err conftest.$ac_ext 4104 4105if test $ac_cv_header_stdc = yes; then 4106 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4107 cat >conftest.$ac_ext <<_ACEOF 4108#line 4108 "configure" 4109#include "confdefs.h" 4110#include <string.h> 4111 4112_ACEOF 4113if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4114 egrep "memchr" >/dev/null 2>&1; then 4115 : 4116else 4117 ac_cv_header_stdc=no 4118fi 4119rm -rf conftest* 4120 4121fi 4122 4123if test $ac_cv_header_stdc = yes; then 4124 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4125 cat >conftest.$ac_ext <<_ACEOF 4126#line 4126 "configure" 4127#include "confdefs.h" 4128#include <stdlib.h> 4129 4130_ACEOF 4131if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4132 egrep "free" >/dev/null 2>&1; then 4133 : 4134else 4135 ac_cv_header_stdc=no 4136fi 4137rm -rf conftest* 4138 4139fi 4140 4141if test $ac_cv_header_stdc = yes; then 4142 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4143 if test "$cross_compiling" = yes; then 4144 : 4145else 4146 cat >conftest.$ac_ext <<_ACEOF 4147#line 4147 "configure" 4148#include "confdefs.h" 4149#include <ctype.h> 4150#if ((' ' & 0x0FF) == 0x020) 4151# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4152# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4153#else 4154# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 4155 || ('j' <= (c) && (c) <= 'r') \ 4156 || ('s' <= (c) && (c) <= 'z')) 4157# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4158#endif 4159 4160#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4161int 4162main () 4163{ 4164 int i; 4165 for (i = 0; i < 256; i++) 4166 if (XOR (islower (i), ISLOWER (i)) 4167 || toupper (i) != TOUPPER (i)) 4168 $ac_main_return(2); 4169 $ac_main_return (0); 4170} 4171_ACEOF 4172rm -f conftest$ac_exeext 4173if { (eval echo "$as_me:4173: \"$ac_link\"") >&5 4174 (eval $ac_link) 2>&5 4175 ac_status=$? 4176 echo "$as_me:4176: \$? = $ac_status" >&5 4177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4178 { (eval echo "$as_me:4178: \"$ac_try\"") >&5 4179 (eval $ac_try) 2>&5 4180 ac_status=$? 4181 echo "$as_me:4181: \$? = $ac_status" >&5 4182 (exit $ac_status); }; }; then 4183 : 4184else 4185 echo "$as_me: program exited with status $ac_status" >&5 4186echo "$as_me: failed program was:" >&5 4187cat conftest.$ac_ext >&5 4188ac_cv_header_stdc=no 4189fi 4190rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4191fi 4192fi 4193fi 4194echo "$as_me:4194: result: $ac_cv_header_stdc" >&5 4195echo "${ECHO_T}$ac_cv_header_stdc" >&6 4196if test $ac_cv_header_stdc = yes; then 4197 4198cat >>confdefs.h <<\EOF 4199#define STDC_HEADERS 1 4200EOF 4201 4202fi 4203 4204# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4205 4206for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4207 inttypes.h stdint.h unistd.h 4208do 4209as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4210echo "$as_me:4210: checking for $ac_header" >&5 4211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4212if eval "test \"\${$as_ac_Header+set}\" = set"; then 4213 echo $ECHO_N "(cached) $ECHO_C" >&6 4214else 4215 cat >conftest.$ac_ext <<_ACEOF 4216#line 4216 "configure" 4217#include "confdefs.h" 4218$ac_includes_default 4219#include <$ac_header> 4220_ACEOF 4221rm -f conftest.$ac_objext 4222if { (eval echo "$as_me:4222: \"$ac_compile\"") >&5 4223 (eval $ac_compile) 2>&5 4224 ac_status=$? 4225 echo "$as_me:4225: \$? = $ac_status" >&5 4226 (exit $ac_status); } && 4227 { ac_try='test -s conftest.$ac_objext' 4228 { (eval echo "$as_me:4228: \"$ac_try\"") >&5 4229 (eval $ac_try) 2>&5 4230 ac_status=$? 4231 echo "$as_me:4231: \$? = $ac_status" >&5 4232 (exit $ac_status); }; }; then 4233 eval "$as_ac_Header=yes" 4234else 4235 echo "$as_me: failed program was:" >&5 4236cat conftest.$ac_ext >&5 4237eval "$as_ac_Header=no" 4238fi 4239rm -f conftest.$ac_objext conftest.$ac_ext 4240fi 4241echo "$as_me:4241: result: `eval echo '${'$as_ac_Header'}'`" >&5 4242echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4243if test `eval echo '${'$as_ac_Header'}'` = yes; then 4244 cat >>confdefs.h <<EOF 4245#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4246EOF 4247 4248fi 4249done 4250 4251echo "$as_me:4251: checking for time_t" >&5 4252echo $ECHO_N "checking for time_t... $ECHO_C" >&6 4253if test "${ac_cv_type_time_t+set}" = set; then 4254 echo $ECHO_N "(cached) $ECHO_C" >&6 4255else 4256 cat >conftest.$ac_ext <<_ACEOF 4257#line 4257 "configure" 4258#include "confdefs.h" 4259$ac_includes_default 4260int 4261main () 4262{ 4263if ((time_t *) 0) 4264 return 0; 4265if (sizeof (time_t)) 4266 return 0; 4267 ; 4268 return 0; 4269} 4270_ACEOF 4271rm -f conftest.$ac_objext 4272if { (eval echo "$as_me:4272: \"$ac_compile\"") >&5 4273 (eval $ac_compile) 2>&5 4274 ac_status=$? 4275 echo "$as_me:4275: \$? = $ac_status" >&5 4276 (exit $ac_status); } && 4277 { ac_try='test -s conftest.$ac_objext' 4278 { (eval echo "$as_me:4278: \"$ac_try\"") >&5 4279 (eval $ac_try) 2>&5 4280 ac_status=$? 4281 echo "$as_me:4281: \$? = $ac_status" >&5 4282 (exit $ac_status); }; }; then 4283 ac_cv_type_time_t=yes 4284else 4285 echo "$as_me: failed program was:" >&5 4286cat conftest.$ac_ext >&5 4287ac_cv_type_time_t=no 4288fi 4289rm -f conftest.$ac_objext conftest.$ac_ext 4290fi 4291echo "$as_me:4291: result: $ac_cv_type_time_t" >&5 4292echo "${ECHO_T}$ac_cv_type_time_t" >&6 4293if test $ac_cv_type_time_t = yes; then 4294 : 4295else 4296 4297cat >>confdefs.h <<EOF 4298#define time_t long 4299EOF 4300 4301fi 4302 4303echo "$as_me:4303: checking for cc_t in <termios.h> or <termio.h>" >&5 4304echo $ECHO_N "checking for cc_t in <termios.h> or <termio.h>... $ECHO_C" >&6 4305if test "${cf_cv_type_cc_t+set}" = set; then 4306 echo $ECHO_N "(cached) $ECHO_C" >&6 4307else 4308 4309 cat >conftest.$ac_ext <<_ACEOF 4310#line 4310 "configure" 4311#include "confdefs.h" 4312 4313#include <sys/types.h> 4314#if defined(HAVE_TERMIOS_H) 4315#include <termios.h> 4316#else 4317#include <termio.h> 4318#include <sys/ioctl.h> 4319#endif 4320 4321int 4322main () 4323{ 4324cc_t x 4325 ; 4326 return 0; 4327} 4328_ACEOF 4329rm -f conftest.$ac_objext 4330if { (eval echo "$as_me:4330: \"$ac_compile\"") >&5 4331 (eval $ac_compile) 2>&5 4332 ac_status=$? 4333 echo "$as_me:4333: \$? = $ac_status" >&5 4334 (exit $ac_status); } && 4335 { ac_try='test -s conftest.$ac_objext' 4336 { (eval echo "$as_me:4336: \"$ac_try\"") >&5 4337 (eval $ac_try) 2>&5 4338 ac_status=$? 4339 echo "$as_me:4339: \$? = $ac_status" >&5 4340 (exit $ac_status); }; }; then 4341 cf_cv_type_cc_t=yes 4342else 4343 echo "$as_me: failed program was:" >&5 4344cat conftest.$ac_ext >&5 4345cf_cv_type_cc_t=no 4346fi 4347rm -f conftest.$ac_objext conftest.$ac_ext 4348 4349fi 4350 4351echo "$as_me:4351: result: $cf_cv_type_cc_t" >&5 4352echo "${ECHO_T}$cf_cv_type_cc_t" >&6 4353test $cf_cv_type_cc_t = no && 4354cat >>confdefs.h <<\EOF 4355#define cc_t unsigned char 4356EOF 4357 4358echo "$as_me:4358: checking for mode_t" >&5 4359echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 4360if test "${ac_cv_type_mode_t+set}" = set; then 4361 echo $ECHO_N "(cached) $ECHO_C" >&6 4362else 4363 cat >conftest.$ac_ext <<_ACEOF 4364#line 4364 "configure" 4365#include "confdefs.h" 4366$ac_includes_default 4367int 4368main () 4369{ 4370if ((mode_t *) 0) 4371 return 0; 4372if (sizeof (mode_t)) 4373 return 0; 4374 ; 4375 return 0; 4376} 4377_ACEOF 4378rm -f conftest.$ac_objext 4379if { (eval echo "$as_me:4379: \"$ac_compile\"") >&5 4380 (eval $ac_compile) 2>&5 4381 ac_status=$? 4382 echo "$as_me:4382: \$? = $ac_status" >&5 4383 (exit $ac_status); } && 4384 { ac_try='test -s conftest.$ac_objext' 4385 { (eval echo "$as_me:4385: \"$ac_try\"") >&5 4386 (eval $ac_try) 2>&5 4387 ac_status=$? 4388 echo "$as_me:4388: \$? = $ac_status" >&5 4389 (exit $ac_status); }; }; then 4390 ac_cv_type_mode_t=yes 4391else 4392 echo "$as_me: failed program was:" >&5 4393cat conftest.$ac_ext >&5 4394ac_cv_type_mode_t=no 4395fi 4396rm -f conftest.$ac_objext conftest.$ac_ext 4397fi 4398echo "$as_me:4398: result: $ac_cv_type_mode_t" >&5 4399echo "${ECHO_T}$ac_cv_type_mode_t" >&6 4400if test $ac_cv_type_mode_t = yes; then 4401 : 4402else 4403 4404cat >>confdefs.h <<EOF 4405#define mode_t int 4406EOF 4407 4408fi 4409 4410echo "$as_me:4410: checking for pid_t" >&5 4411echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 4412if test "${ac_cv_type_pid_t+set}" = set; then 4413 echo $ECHO_N "(cached) $ECHO_C" >&6 4414else 4415 cat >conftest.$ac_ext <<_ACEOF 4416#line 4416 "configure" 4417#include "confdefs.h" 4418$ac_includes_default 4419int 4420main () 4421{ 4422if ((pid_t *) 0) 4423 return 0; 4424if (sizeof (pid_t)) 4425 return 0; 4426 ; 4427 return 0; 4428} 4429_ACEOF 4430rm -f conftest.$ac_objext 4431if { (eval echo "$as_me:4431: \"$ac_compile\"") >&5 4432 (eval $ac_compile) 2>&5 4433 ac_status=$? 4434 echo "$as_me:4434: \$? = $ac_status" >&5 4435 (exit $ac_status); } && 4436 { ac_try='test -s conftest.$ac_objext' 4437 { (eval echo "$as_me:4437: \"$ac_try\"") >&5 4438 (eval $ac_try) 2>&5 4439 ac_status=$? 4440 echo "$as_me:4440: \$? = $ac_status" >&5 4441 (exit $ac_status); }; }; then 4442 ac_cv_type_pid_t=yes 4443else 4444 echo "$as_me: failed program was:" >&5 4445cat conftest.$ac_ext >&5 4446ac_cv_type_pid_t=no 4447fi 4448rm -f conftest.$ac_objext conftest.$ac_ext 4449fi 4450echo "$as_me:4450: result: $ac_cv_type_pid_t" >&5 4451echo "${ECHO_T}$ac_cv_type_pid_t" >&6 4452if test $ac_cv_type_pid_t = yes; then 4453 : 4454else 4455 4456cat >>confdefs.h <<EOF 4457#define pid_t int 4458EOF 4459 4460fi 4461 4462echo "$as_me:4462: checking for uid_t in sys/types.h" >&5 4463echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 4464if test "${ac_cv_type_uid_t+set}" = set; then 4465 echo $ECHO_N "(cached) $ECHO_C" >&6 4466else 4467 cat >conftest.$ac_ext <<_ACEOF 4468#line 4468 "configure" 4469#include "confdefs.h" 4470#include <sys/types.h> 4471 4472_ACEOF 4473if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4474 egrep "uid_t" >/dev/null 2>&1; then 4475 ac_cv_type_uid_t=yes 4476else 4477 ac_cv_type_uid_t=no 4478fi 4479rm -rf conftest* 4480 4481fi 4482echo "$as_me:4482: result: $ac_cv_type_uid_t" >&5 4483echo "${ECHO_T}$ac_cv_type_uid_t" >&6 4484if test $ac_cv_type_uid_t = no; then 4485 4486cat >>confdefs.h <<\EOF 4487#define uid_t int 4488EOF 4489 4490cat >>confdefs.h <<\EOF 4491#define gid_t int 4492EOF 4493 4494fi 4495 4496echo "$as_me:4496: checking for off_t" >&5 4497echo $ECHO_N "checking for off_t... $ECHO_C" >&6 4498if test "${ac_cv_type_off_t+set}" = set; then 4499 echo $ECHO_N "(cached) $ECHO_C" >&6 4500else 4501 cat >conftest.$ac_ext <<_ACEOF 4502#line 4502 "configure" 4503#include "confdefs.h" 4504$ac_includes_default 4505int 4506main () 4507{ 4508if ((off_t *) 0) 4509 return 0; 4510if (sizeof (off_t)) 4511 return 0; 4512 ; 4513 return 0; 4514} 4515_ACEOF 4516rm -f conftest.$ac_objext 4517if { (eval echo "$as_me:4517: \"$ac_compile\"") >&5 4518 (eval $ac_compile) 2>&5 4519 ac_status=$? 4520 echo "$as_me:4520: \$? = $ac_status" >&5 4521 (exit $ac_status); } && 4522 { ac_try='test -s conftest.$ac_objext' 4523 { (eval echo "$as_me:4523: \"$ac_try\"") >&5 4524 (eval $ac_try) 2>&5 4525 ac_status=$? 4526 echo "$as_me:4526: \$? = $ac_status" >&5 4527 (exit $ac_status); }; }; then 4528 ac_cv_type_off_t=yes 4529else 4530 echo "$as_me: failed program was:" >&5 4531cat conftest.$ac_ext >&5 4532ac_cv_type_off_t=no 4533fi 4534rm -f conftest.$ac_objext conftest.$ac_ext 4535fi 4536echo "$as_me:4536: result: $ac_cv_type_off_t" >&5 4537echo "${ECHO_T}$ac_cv_type_off_t" >&6 4538if test $ac_cv_type_off_t = yes; then 4539 : 4540else 4541 4542cat >>confdefs.h <<EOF 4543#define off_t long 4544EOF 4545 4546fi 4547 4548### checks for library functions 4549 4550for ac_func in \ 4551 gethostname \ 4552 getlogin \ 4553 initgroups \ 4554 mkdtemp \ 4555 putenv \ 4556 unsetenv \ 4557 sched_yield \ 4558 setpgid \ 4559 strftime \ 4560 tcgetattr \ 4561 waitpid \ 4562 wcswidth \ 4563 wcwidth 4564do 4565as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4566echo "$as_me:4566: checking for $ac_func" >&5 4567echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4568if eval "test \"\${$as_ac_var+set}\" = set"; then 4569 echo $ECHO_N "(cached) $ECHO_C" >&6 4570else 4571 cat >conftest.$ac_ext <<_ACEOF 4572#line 4572 "configure" 4573#include "confdefs.h" 4574/* System header to define __stub macros and hopefully few prototypes, 4575 which can conflict with char $ac_func (); below. */ 4576#include <assert.h> 4577/* Override any gcc2 internal prototype to avoid an error. */ 4578#ifdef __cplusplus 4579extern "C" 4580#endif 4581/* We use char because int might match the return type of a gcc2 4582 builtin and then its argument prototype would still apply. */ 4583char $ac_func (); 4584char (*f) (); 4585 4586int 4587main () 4588{ 4589/* The GNU C library defines this for functions which it implements 4590 to always fail with ENOSYS. Some functions are actually named 4591 something starting with __ and the normal name is an alias. */ 4592#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4593choke me 4594#else 4595f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 4596#endif 4597 4598 ; 4599 return 0; 4600} 4601_ACEOF 4602rm -f conftest.$ac_objext conftest$ac_exeext 4603if { (eval echo "$as_me:4603: \"$ac_link\"") >&5 4604 (eval $ac_link) 2>&5 4605 ac_status=$? 4606 echo "$as_me:4606: \$? = $ac_status" >&5 4607 (exit $ac_status); } && 4608 { ac_try='test -s conftest$ac_exeext' 4609 { (eval echo "$as_me:4609: \"$ac_try\"") >&5 4610 (eval $ac_try) 2>&5 4611 ac_status=$? 4612 echo "$as_me:4612: \$? = $ac_status" >&5 4613 (exit $ac_status); }; }; then 4614 eval "$as_ac_var=yes" 4615else 4616 echo "$as_me: failed program was:" >&5 4617cat conftest.$ac_ext >&5 4618eval "$as_ac_var=no" 4619fi 4620rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4621fi 4622echo "$as_me:4622: result: `eval echo '${'$as_ac_var'}'`" >&5 4623echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4624if test `eval echo '${'$as_ac_var'}'` = yes; then 4625 cat >>confdefs.h <<EOF 4626#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4627EOF 4628 4629fi 4630done 4631 4632for ac_header in lastlog.h paths.h 4633do 4634as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4635echo "$as_me:4635: checking for $ac_header" >&5 4636echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4637if eval "test \"\${$as_ac_Header+set}\" = set"; then 4638 echo $ECHO_N "(cached) $ECHO_C" >&6 4639else 4640 cat >conftest.$ac_ext <<_ACEOF 4641#line 4641 "configure" 4642#include "confdefs.h" 4643#include <$ac_header> 4644_ACEOF 4645if { (eval echo "$as_me:4645: \"$ac_cpp conftest.$ac_ext\"") >&5 4646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4647 ac_status=$? 4648 egrep -v '^ *\+' conftest.er1 >conftest.err 4649 rm -f conftest.er1 4650 cat conftest.err >&5 4651 echo "$as_me:4651: \$? = $ac_status" >&5 4652 (exit $ac_status); } >/dev/null; then 4653 if test -s conftest.err; then 4654 ac_cpp_err=$ac_c_preproc_warn_flag 4655 else 4656 ac_cpp_err= 4657 fi 4658else 4659 ac_cpp_err=yes 4660fi 4661if test -z "$ac_cpp_err"; then 4662 eval "$as_ac_Header=yes" 4663else 4664 echo "$as_me: failed program was:" >&5 4665 cat conftest.$ac_ext >&5 4666 eval "$as_ac_Header=no" 4667fi 4668rm -f conftest.err conftest.$ac_ext 4669fi 4670echo "$as_me:4670: result: `eval echo '${'$as_ac_Header'}'`" >&5 4671echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4672if test `eval echo '${'$as_ac_Header'}'` = yes; then 4673 cat >>confdefs.h <<EOF 4674#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4675EOF 4676 4677fi 4678done 4679 4680echo "$as_me:4680: checking for lastlog path" >&5 4681echo $ECHO_N "checking for lastlog path... $ECHO_C" >&6 4682if test "${cf_cv_path_lastlog+set}" = set; then 4683 echo $ECHO_N "(cached) $ECHO_C" >&6 4684else 4685 4686cat >conftest.$ac_ext <<_ACEOF 4687#line 4687 "configure" 4688#include "confdefs.h" 4689 4690#include <sys/types.h> 4691#ifdef HAVE_LASTLOG_H 4692#include <lastlog.h> 4693#else 4694#ifdef HAVE_PATHS_H 4695#include <paths.h> 4696#endif 4697#endif 4698int 4699main () 4700{ 4701char *path = _PATH_LASTLOG 4702 ; 4703 return 0; 4704} 4705_ACEOF 4706rm -f conftest.$ac_objext 4707if { (eval echo "$as_me:4707: \"$ac_compile\"") >&5 4708 (eval $ac_compile) 2>&5 4709 ac_status=$? 4710 echo "$as_me:4710: \$? = $ac_status" >&5 4711 (exit $ac_status); } && 4712 { ac_try='test -s conftest.$ac_objext' 4713 { (eval echo "$as_me:4713: \"$ac_try\"") >&5 4714 (eval $ac_try) 2>&5 4715 ac_status=$? 4716 echo "$as_me:4716: \$? = $ac_status" >&5 4717 (exit $ac_status); }; }; then 4718 cf_cv_path_lastlog="_PATH_LASTLOG" 4719else 4720 echo "$as_me: failed program was:" >&5 4721cat conftest.$ac_ext >&5 4722if test -f /usr/adm/lastlog ; then 4723 cf_cv_path_lastlog=/usr/adm/lastlog 4724 else 4725 cf_cv_path_lastlog=no 4726 fi 4727fi 4728rm -f conftest.$ac_objext conftest.$ac_ext 4729 4730fi 4731echo "$as_me:4731: result: $cf_cv_path_lastlog" >&5 4732echo "${ECHO_T}$cf_cv_path_lastlog" >&6 4733test $cf_cv_path_lastlog != no && 4734cat >>confdefs.h <<\EOF 4735#define USE_LASTLOG 1 4736EOF 4737 4738echo "$as_me:4738: checking for utmp implementation" >&5 4739echo $ECHO_N "checking for utmp implementation... $ECHO_C" >&6 4740if test "${cf_cv_have_utmp+set}" = set; then 4741 echo $ECHO_N "(cached) $ECHO_C" >&6 4742else 4743 4744 cf_cv_have_utmp=no 4745for cf_header in utmpx utmp ; do 4746cf_utmp_includes=" 4747#include <sys/types.h> 4748#include <${cf_header}.h> 4749#define getutent getutxent 4750#ifdef USE_LASTLOG 4751#include <lastlog.h> /* may conflict with utmpx.h on Linux */ 4752#endif 4753" 4754 cat >conftest.$ac_ext <<_ACEOF 4755#line 4755 "configure" 4756#include "confdefs.h" 4757$cf_utmp_includes 4758int 4759main () 4760{ 4761struct $cf_header x; 4762 char *name = x.ut_name; /* utmp.h and compatible definitions */ 4763 4764 ; 4765 return 0; 4766} 4767_ACEOF 4768rm -f conftest.$ac_objext 4769if { (eval echo "$as_me:4769: \"$ac_compile\"") >&5 4770 (eval $ac_compile) 2>&5 4771 ac_status=$? 4772 echo "$as_me:4772: \$? = $ac_status" >&5 4773 (exit $ac_status); } && 4774 { ac_try='test -s conftest.$ac_objext' 4775 { (eval echo "$as_me:4775: \"$ac_try\"") >&5 4776 (eval $ac_try) 2>&5 4777 ac_status=$? 4778 echo "$as_me:4778: \$? = $ac_status" >&5 4779 (exit $ac_status); }; }; then 4780 cf_cv_have_utmp=$cf_header 4781 break 4782else 4783 echo "$as_me: failed program was:" >&5 4784cat conftest.$ac_ext >&5 4785 4786 cat >conftest.$ac_ext <<_ACEOF 4787#line 4787 "configure" 4788#include "confdefs.h" 4789$cf_utmp_includes 4790int 4791main () 4792{ 4793struct $cf_header x; 4794 char *name = x.ut_user; /* utmpx.h must declare this */ 4795 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=$cf_header 4813 break 4814 4815else 4816 echo "$as_me: failed program was:" >&5 4817cat conftest.$ac_ext >&5 4818fi 4819rm -f conftest.$ac_objext conftest.$ac_ext 4820fi 4821rm -f conftest.$ac_objext conftest.$ac_ext 4822done 4823 4824fi 4825echo "$as_me:4825: result: $cf_cv_have_utmp" >&5 4826echo "${ECHO_T}$cf_cv_have_utmp" >&6 4827 4828if test $cf_cv_have_utmp != no ; then 4829 4830cat >>confdefs.h <<\EOF 4831#define HAVE_UTMP 1 4832EOF 4833 4834 test $cf_cv_have_utmp = utmpx && 4835cat >>confdefs.h <<\EOF 4836#define UTMPX_FOR_UTMP 1 4837EOF 4838 4839if test $cf_cv_have_utmp != no ; then 4840echo "$as_me:4840: checking if ${cf_cv_have_utmp}.ut_host is declared" >&5 4841echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_host is declared... $ECHO_C" >&6 4842if test "${cf_cv_have_utmp_ut_host+set}" = set; then 4843 echo $ECHO_N "(cached) $ECHO_C" >&6 4844else 4845 4846 cat >conftest.$ac_ext <<_ACEOF 4847#line 4847 "configure" 4848#include "confdefs.h" 4849 4850#include <sys/types.h> 4851#include <${cf_cv_have_utmp}.h> 4852int 4853main () 4854{ 4855struct $cf_cv_have_utmp x; char *y = &x.ut_host[0] 4856 ; 4857 return 0; 4858} 4859_ACEOF 4860rm -f conftest.$ac_objext 4861if { (eval echo "$as_me:4861: \"$ac_compile\"") >&5 4862 (eval $ac_compile) 2>&5 4863 ac_status=$? 4864 echo "$as_me:4864: \$? = $ac_status" >&5 4865 (exit $ac_status); } && 4866 { ac_try='test -s conftest.$ac_objext' 4867 { (eval echo "$as_me:4867: \"$ac_try\"") >&5 4868 (eval $ac_try) 2>&5 4869 ac_status=$? 4870 echo "$as_me:4870: \$? = $ac_status" >&5 4871 (exit $ac_status); }; }; then 4872 cf_cv_have_utmp_ut_host=yes 4873else 4874 echo "$as_me: failed program was:" >&5 4875cat conftest.$ac_ext >&5 4876cf_cv_have_utmp_ut_host=no 4877fi 4878rm -f conftest.$ac_objext conftest.$ac_ext 4879 4880fi 4881 4882echo "$as_me:4882: result: $cf_cv_have_utmp_ut_host" >&5 4883echo "${ECHO_T}$cf_cv_have_utmp_ut_host" >&6 4884test $cf_cv_have_utmp_ut_host != no && 4885cat >>confdefs.h <<\EOF 4886#define HAVE_UTMP_UT_HOST 1 4887EOF 4888 4889fi 4890 4891if test $cf_cv_have_utmp != no ; then 4892echo "$as_me:4892: checking if ${cf_cv_have_utmp}.ut_syslen is declared" >&5 4893echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_syslen is declared... $ECHO_C" >&6 4894if test "${cf_cv_have_utmp_ut_syslen+set}" = set; then 4895 echo $ECHO_N "(cached) $ECHO_C" >&6 4896else 4897 4898 cat >conftest.$ac_ext <<_ACEOF 4899#line 4899 "configure" 4900#include "confdefs.h" 4901 4902#include <sys/types.h> 4903#include <${cf_cv_have_utmp}.h> 4904int 4905main () 4906{ 4907struct $cf_cv_have_utmp x; int y = x.ut_syslen 4908 ; 4909 return 0; 4910} 4911_ACEOF 4912rm -f conftest.$ac_objext 4913if { (eval echo "$as_me:4913: \"$ac_compile\"") >&5 4914 (eval $ac_compile) 2>&5 4915 ac_status=$? 4916 echo "$as_me:4916: \$? = $ac_status" >&5 4917 (exit $ac_status); } && 4918 { ac_try='test -s conftest.$ac_objext' 4919 { (eval echo "$as_me:4919: \"$ac_try\"") >&5 4920 (eval $ac_try) 2>&5 4921 ac_status=$? 4922 echo "$as_me:4922: \$? = $ac_status" >&5 4923 (exit $ac_status); }; }; then 4924 cf_cv_have_utmp_ut_syslen=yes 4925else 4926 echo "$as_me: failed program was:" >&5 4927cat conftest.$ac_ext >&5 4928cf_cv_have_utmp_ut_syslen=no 4929fi 4930rm -f conftest.$ac_objext conftest.$ac_ext 4931 4932fi 4933 4934echo "$as_me:4934: result: $cf_cv_have_utmp_ut_syslen" >&5 4935echo "${ECHO_T}$cf_cv_have_utmp_ut_syslen" >&6 4936test $cf_cv_have_utmp_ut_syslen != no && 4937cat >>confdefs.h <<\EOF 4938#define HAVE_UTMP_UT_SYSLEN 1 4939EOF 4940 4941fi 4942 4943if test $cf_cv_have_utmp != no ; then 4944echo "$as_me:4944: checking if ${cf_cv_have_utmp}.ut_name is declared" >&5 4945echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_name is declared... $ECHO_C" >&6 4946if test "${cf_cv_have_utmp_ut_name+set}" = set; then 4947 echo $ECHO_N "(cached) $ECHO_C" >&6 4948else 4949 4950 cf_cv_have_utmp_ut_name=no 4951cf_utmp_includes=" 4952#include <sys/types.h> 4953#include <${cf_cv_have_utmp}.h> 4954#define getutent getutxent 4955#ifdef USE_LASTLOG 4956#include <lastlog.h> /* may conflict with utmpx.h on Linux */ 4957#endif 4958" 4959for cf_header in ut_name ut_user ; do 4960 cat >conftest.$ac_ext <<_ACEOF 4961#line 4961 "configure" 4962#include "confdefs.h" 4963$cf_utmp_includes 4964int 4965main () 4966{ 4967struct $cf_cv_have_utmp x; 4968 char *name = x.$cf_header; 4969 4970 ; 4971 return 0; 4972} 4973_ACEOF 4974rm -f conftest.$ac_objext 4975if { (eval echo "$as_me:4975: \"$ac_compile\"") >&5 4976 (eval $ac_compile) 2>&5 4977 ac_status=$? 4978 echo "$as_me:4978: \$? = $ac_status" >&5 4979 (exit $ac_status); } && 4980 { ac_try='test -s conftest.$ac_objext' 4981 { (eval echo "$as_me:4981: \"$ac_try\"") >&5 4982 (eval $ac_try) 2>&5 4983 ac_status=$? 4984 echo "$as_me:4984: \$? = $ac_status" >&5 4985 (exit $ac_status); }; }; then 4986 cf_cv_have_utmp_ut_name=$cf_header 4987 break 4988else 4989 echo "$as_me: failed program was:" >&5 4990cat conftest.$ac_ext >&5 4991fi 4992rm -f conftest.$ac_objext conftest.$ac_ext 4993done 4994 4995fi 4996echo "$as_me:4996: result: $cf_cv_have_utmp_ut_name" >&5 4997echo "${ECHO_T}$cf_cv_have_utmp_ut_name" >&6 4998 4999case $cf_cv_have_utmp_ut_name in #(vi 5000no) #(vi 5001 { { echo "$as_me:5001: error: Cannot find declaration for ut.ut_name" >&5 5002echo "$as_me: error: Cannot find declaration for ut.ut_name" >&2;} 5003 { (exit 1); exit 1; }; } 5004 ;; 5005ut_user) 5006 5007cat >>confdefs.h <<\EOF 5008#define ut_name ut_user 5009EOF 5010 5011 ;; 5012esac 5013fi 5014 5015if test $cf_cv_have_utmp != no ; then 5016echo "$as_me:5016: checking for exit-status in $cf_cv_have_utmp" >&5 5017echo $ECHO_N "checking for exit-status in $cf_cv_have_utmp... $ECHO_C" >&6 5018if test "${cf_cv_have_utmp_ut_xstatus+set}" = set; then 5019 echo $ECHO_N "(cached) $ECHO_C" >&6 5020else 5021 5022for cf_result in \ 5023 ut_exit.__e_exit \ 5024 ut_exit.e_exit \ 5025 ut_exit.ut_e_exit \ 5026 ut_exit.ut_exit 5027do 5028cat >conftest.$ac_ext <<_ACEOF 5029#line 5029 "configure" 5030#include "confdefs.h" 5031 5032#include <sys/types.h> 5033#include <${cf_cv_have_utmp}.h> 5034int 5035main () 5036{ 5037struct $cf_cv_have_utmp x; long y = x.$cf_result = 0 5038 ; 5039 return 0; 5040} 5041_ACEOF 5042rm -f conftest.$ac_objext 5043if { (eval echo "$as_me:5043: \"$ac_compile\"") >&5 5044 (eval $ac_compile) 2>&5 5045 ac_status=$? 5046 echo "$as_me:5046: \$? = $ac_status" >&5 5047 (exit $ac_status); } && 5048 { ac_try='test -s conftest.$ac_objext' 5049 { (eval echo "$as_me:5049: \"$ac_try\"") >&5 5050 (eval $ac_try) 2>&5 5051 ac_status=$? 5052 echo "$as_me:5052: \$? = $ac_status" >&5 5053 (exit $ac_status); }; }; then 5054 cf_cv_have_utmp_ut_xstatus=$cf_result 5055 break 5056else 5057 echo "$as_me: failed program was:" >&5 5058cat conftest.$ac_ext >&5 5059cf_cv_have_utmp_ut_xstatus=no 5060fi 5061rm -f conftest.$ac_objext conftest.$ac_ext 5062done 5063 5064fi 5065echo "$as_me:5065: result: $cf_cv_have_utmp_ut_xstatus" >&5 5066echo "${ECHO_T}$cf_cv_have_utmp_ut_xstatus" >&6 5067if test $cf_cv_have_utmp_ut_xstatus != no ; then 5068 5069cat >>confdefs.h <<\EOF 5070#define HAVE_UTMP_UT_XSTATUS 1 5071EOF 5072 5073cat >>confdefs.h <<EOF 5074#define ut_xstatus $cf_cv_have_utmp_ut_xstatus 5075EOF 5076 5077fi 5078fi 5079 5080if test $cf_cv_have_utmp != no ; then 5081echo "$as_me:5081: checking if ${cf_cv_have_utmp}.ut_xtime is declared" >&5 5082echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_xtime is declared... $ECHO_C" >&6 5083if test "${cf_cv_have_utmp_ut_xtime+set}" = set; then 5084 echo $ECHO_N "(cached) $ECHO_C" >&6 5085else 5086 5087 cat >conftest.$ac_ext <<_ACEOF 5088#line 5088 "configure" 5089#include "confdefs.h" 5090 5091#include <sys/types.h> 5092#include <${cf_cv_have_utmp}.h> 5093int 5094main () 5095{ 5096struct $cf_cv_have_utmp x; long y = x.ut_xtime = 0 5097 ; 5098 return 0; 5099} 5100_ACEOF 5101rm -f conftest.$ac_objext 5102if { (eval echo "$as_me:5102: \"$ac_compile\"") >&5 5103 (eval $ac_compile) 2>&5 5104 ac_status=$? 5105 echo "$as_me:5105: \$? = $ac_status" >&5 5106 (exit $ac_status); } && 5107 { ac_try='test -s conftest.$ac_objext' 5108 { (eval echo "$as_me:5108: \"$ac_try\"") >&5 5109 (eval $ac_try) 2>&5 5110 ac_status=$? 5111 echo "$as_me:5111: \$? = $ac_status" >&5 5112 (exit $ac_status); }; }; then 5113 cf_cv_have_utmp_ut_xtime=yes 5114else 5115 echo "$as_me: failed program was:" >&5 5116cat conftest.$ac_ext >&5 5117cat >conftest.$ac_ext <<_ACEOF 5118#line 5118 "configure" 5119#include "confdefs.h" 5120 5121#include <sys/types.h> 5122#include <${cf_cv_have_utmp}.h> 5123int 5124main () 5125{ 5126struct $cf_cv_have_utmp x; long y = x.ut_tv.tv_sec 5127 ; 5128 return 0; 5129} 5130_ACEOF 5131rm -f conftest.$ac_objext 5132if { (eval echo "$as_me:5132: \"$ac_compile\"") >&5 5133 (eval $ac_compile) 2>&5 5134 ac_status=$? 5135 echo "$as_me:5135: \$? = $ac_status" >&5 5136 (exit $ac_status); } && 5137 { ac_try='test -s conftest.$ac_objext' 5138 { (eval echo "$as_me:5138: \"$ac_try\"") >&5 5139 (eval $ac_try) 2>&5 5140 ac_status=$? 5141 echo "$as_me:5141: \$? = $ac_status" >&5 5142 (exit $ac_status); }; }; then 5143 cf_cv_have_utmp_ut_xtime=define 5144else 5145 echo "$as_me: failed program was:" >&5 5146cat conftest.$ac_ext >&5 5147cf_cv_have_utmp_ut_xtime=no 5148fi 5149rm -f conftest.$ac_objext conftest.$ac_ext 5150 5151fi 5152rm -f conftest.$ac_objext conftest.$ac_ext 5153 5154fi 5155echo "$as_me:5155: result: $cf_cv_have_utmp_ut_xtime" >&5 5156echo "${ECHO_T}$cf_cv_have_utmp_ut_xtime" >&6 5157if test $cf_cv_have_utmp_ut_xtime != no ; then 5158 5159cat >>confdefs.h <<\EOF 5160#define HAVE_UTMP_UT_XTIME 1 5161EOF 5162 5163 if test $cf_cv_have_utmp_ut_xtime = define ; then 5164 5165cat >>confdefs.h <<\EOF 5166#define ut_xtime ut_tv.tv_sec 5167EOF 5168 5169 fi 5170fi 5171fi 5172 5173if test $cf_cv_have_utmp != no ; then 5174echo "$as_me:5174: checking if ${cf_cv_have_utmp}.ut_session is declared" >&5 5175echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_session is declared... $ECHO_C" >&6 5176if test "${cf_cv_have_utmp_ut_session+set}" = set; then 5177 echo $ECHO_N "(cached) $ECHO_C" >&6 5178else 5179 5180 cat >conftest.$ac_ext <<_ACEOF 5181#line 5181 "configure" 5182#include "confdefs.h" 5183 5184#include <sys/types.h> 5185#include <${cf_cv_have_utmp}.h> 5186int 5187main () 5188{ 5189struct $cf_cv_have_utmp x; long y = x.ut_session 5190 ; 5191 return 0; 5192} 5193_ACEOF 5194rm -f conftest.$ac_objext 5195if { (eval echo "$as_me:5195: \"$ac_compile\"") >&5 5196 (eval $ac_compile) 2>&5 5197 ac_status=$? 5198 echo "$as_me:5198: \$? = $ac_status" >&5 5199 (exit $ac_status); } && 5200 { ac_try='test -s conftest.$ac_objext' 5201 { (eval echo "$as_me:5201: \"$ac_try\"") >&5 5202 (eval $ac_try) 2>&5 5203 ac_status=$? 5204 echo "$as_me:5204: \$? = $ac_status" >&5 5205 (exit $ac_status); }; }; then 5206 cf_cv_have_utmp_ut_session=yes 5207else 5208 echo "$as_me: failed program was:" >&5 5209cat conftest.$ac_ext >&5 5210cf_cv_have_utmp_ut_session=no 5211fi 5212rm -f conftest.$ac_objext conftest.$ac_ext 5213 5214fi 5215echo "$as_me:5215: result: $cf_cv_have_utmp_ut_session" >&5 5216echo "${ECHO_T}$cf_cv_have_utmp_ut_session" >&6 5217if test $cf_cv_have_utmp_ut_session != no ; then 5218 5219cat >>confdefs.h <<\EOF 5220#define HAVE_UTMP_UT_SESSION 1 5221EOF 5222 5223fi 5224fi 5225 5226echo "$as_me:5226: checking if $cf_cv_have_utmp is SYSV flavor" >&5 5227echo $ECHO_N "checking if $cf_cv_have_utmp is SYSV flavor... $ECHO_C" >&6 5228if test "${cf_cv_sysv_utmp+set}" = set; then 5229 echo $ECHO_N "(cached) $ECHO_C" >&6 5230else 5231 5232test "$cf_cv_have_utmp" = "utmp" && cf_prefix="ut" || cf_prefix="utx" 5233cat >conftest.$ac_ext <<_ACEOF 5234#line 5234 "configure" 5235#include "confdefs.h" 5236 5237#include <sys/types.h> 5238#include <${cf_cv_have_utmp}.h> 5239int 5240main () 5241{ 5242 5243struct $cf_cv_have_utmp x; 5244 set${cf_prefix}ent (); 5245 get${cf_prefix}id(&x); 5246 put${cf_prefix}line(&x); 5247 end${cf_prefix}ent(); 5248 ; 5249 return 0; 5250} 5251_ACEOF 5252rm -f conftest.$ac_objext conftest$ac_exeext 5253if { (eval echo "$as_me:5253: \"$ac_link\"") >&5 5254 (eval $ac_link) 2>&5 5255 ac_status=$? 5256 echo "$as_me:5256: \$? = $ac_status" >&5 5257 (exit $ac_status); } && 5258 { ac_try='test -s conftest$ac_exeext' 5259 { (eval echo "$as_me:5259: \"$ac_try\"") >&5 5260 (eval $ac_try) 2>&5 5261 ac_status=$? 5262 echo "$as_me:5262: \$? = $ac_status" >&5 5263 (exit $ac_status); }; }; then 5264 cf_cv_sysv_utmp=yes 5265else 5266 echo "$as_me: failed program was:" >&5 5267cat conftest.$ac_ext >&5 5268cf_cv_sysv_utmp=no 5269fi 5270rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5271 5272fi 5273echo "$as_me:5273: result: $cf_cv_sysv_utmp" >&5 5274echo "${ECHO_T}$cf_cv_sysv_utmp" >&6 5275test $cf_cv_sysv_utmp = yes && 5276cat >>confdefs.h <<\EOF 5277#define USE_SYSV_UTMP 1 5278EOF 5279 5280fi 5281 5282for ac_header in lastlog.h 5283do 5284as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5285echo "$as_me:5285: checking for $ac_header" >&5 5286echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5287if eval "test \"\${$as_ac_Header+set}\" = set"; then 5288 echo $ECHO_N "(cached) $ECHO_C" >&6 5289else 5290 cat >conftest.$ac_ext <<_ACEOF 5291#line 5291 "configure" 5292#include "confdefs.h" 5293#include <$ac_header> 5294_ACEOF 5295if { (eval echo "$as_me:5295: \"$ac_cpp conftest.$ac_ext\"") >&5 5296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5297 ac_status=$? 5298 egrep -v '^ *\+' conftest.er1 >conftest.err 5299 rm -f conftest.er1 5300 cat conftest.err >&5 5301 echo "$as_me:5301: \$? = $ac_status" >&5 5302 (exit $ac_status); } >/dev/null; then 5303 if test -s conftest.err; then 5304 ac_cpp_err=$ac_c_preproc_warn_flag 5305 else 5306 ac_cpp_err= 5307 fi 5308else 5309 ac_cpp_err=yes 5310fi 5311if test -z "$ac_cpp_err"; then 5312 eval "$as_ac_Header=yes" 5313else 5314 echo "$as_me: failed program was:" >&5 5315 cat conftest.$ac_ext >&5 5316 eval "$as_ac_Header=no" 5317fi 5318rm -f conftest.err conftest.$ac_ext 5319fi 5320echo "$as_me:5320: result: `eval echo '${'$as_ac_Header'}'`" >&5 5321echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5322if test `eval echo '${'$as_ac_Header'}'` = yes; then 5323 cat >>confdefs.h <<EOF 5324#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5325EOF 5326 5327fi 5328done 5329 5330echo "$as_me:5330: checking for struct lastlog" >&5 5331echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 5332if test "${cf_cv_struct_lastlog+set}" = set; then 5333 echo $ECHO_N "(cached) $ECHO_C" >&6 5334else 5335 5336if test "$cross_compiling" = yes; then 5337 5338cf_cv_struct_lastlog=unknown 5339else 5340 cat >conftest.$ac_ext <<_ACEOF 5341#line 5341 "configure" 5342#include "confdefs.h" 5343 5344#include <sys/types.h> 5345#include <time.h> 5346#include <lastlog.h> 5347 5348int main() 5349{ 5350 struct lastlog data; 5351 return (sizeof(data.ll_time) != sizeof(time_t)); 5352} 5353_ACEOF 5354rm -f conftest$ac_exeext 5355if { (eval echo "$as_me:5355: \"$ac_link\"") >&5 5356 (eval $ac_link) 2>&5 5357 ac_status=$? 5358 echo "$as_me:5358: \$? = $ac_status" >&5 5359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5360 { (eval echo "$as_me:5360: \"$ac_try\"") >&5 5361 (eval $ac_try) 2>&5 5362 ac_status=$? 5363 echo "$as_me:5363: \$? = $ac_status" >&5 5364 (exit $ac_status); }; }; then 5365 5366cf_cv_struct_lastlog=yes 5367else 5368 echo "$as_me: program exited with status $ac_status" >&5 5369echo "$as_me: failed program was:" >&5 5370cat conftest.$ac_ext >&5 5371 5372cf_cv_struct_lastlog=no 5373fi 5374rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5375fi 5376fi 5377echo "$as_me:5377: result: $cf_cv_struct_lastlog" >&5 5378echo "${ECHO_T}$cf_cv_struct_lastlog" >&6 5379 5380test $cf_cv_struct_lastlog != no && 5381cat >>confdefs.h <<\EOF 5382#define USE_STRUCT_LASTLOG 1 5383EOF 5384 5385for ac_header in \ 5386sys/param.h \ 5387 5388do 5389as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5390echo "$as_me:5390: checking for $ac_header" >&5 5391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5392if eval "test \"\${$as_ac_Header+set}\" = set"; then 5393 echo $ECHO_N "(cached) $ECHO_C" >&6 5394else 5395 cat >conftest.$ac_ext <<_ACEOF 5396#line 5396 "configure" 5397#include "confdefs.h" 5398#include <$ac_header> 5399_ACEOF 5400if { (eval echo "$as_me:5400: \"$ac_cpp conftest.$ac_ext\"") >&5 5401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5402 ac_status=$? 5403 egrep -v '^ *\+' conftest.er1 >conftest.err 5404 rm -f conftest.er1 5405 cat conftest.err >&5 5406 echo "$as_me:5406: \$? = $ac_status" >&5 5407 (exit $ac_status); } >/dev/null; then 5408 if test -s conftest.err; then 5409 ac_cpp_err=$ac_c_preproc_warn_flag 5410 else 5411 ac_cpp_err= 5412 fi 5413else 5414 ac_cpp_err=yes 5415fi 5416if test -z "$ac_cpp_err"; then 5417 eval "$as_ac_Header=yes" 5418else 5419 echo "$as_me: failed program was:" >&5 5420 cat conftest.$ac_ext >&5 5421 eval "$as_ac_Header=no" 5422fi 5423rm -f conftest.err conftest.$ac_ext 5424fi 5425echo "$as_me:5425: result: `eval echo '${'$as_ac_Header'}'`" >&5 5426echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5427if test `eval echo '${'$as_ac_Header'}'` = yes; then 5428 cat >>confdefs.h <<EOF 5429#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5430EOF 5431 5432fi 5433done 5434 5435echo "$as_me:5435: checking if POSIX saved-ids are supported" >&5 5436echo $ECHO_N "checking if POSIX saved-ids are supported... $ECHO_C" >&6 5437if test "${cf_cv_posix_saved_ids+set}" = set; then 5438 echo $ECHO_N "(cached) $ECHO_C" >&6 5439else 5440 5441cat >conftest.$ac_ext <<_ACEOF 5442#line 5442 "configure" 5443#include "confdefs.h" 5444 5445#include <unistd.h> 5446#ifdef HAVE_SYS_PARAM_H 5447#include <sys/param.h> /* this may define "BSD" */ 5448#endif 5449 5450int 5451main () 5452{ 5453 5454#if defined(_POSIX_SAVED_IDS) && (_POSIX_SAVED_IDS > 0) 5455 void *p = (void *) seteuid; 5456 int x = seteuid(geteuid()); 5457#elif defined(BSD) && (BSD >= 199103) 5458/* The BSD's may implement the runtime check - and it fails. 5459 * However, saved-ids work almost like POSIX (close enough for most uses). 5460 */ 5461#else 5462make an error 5463#endif 5464 5465 ; 5466 return 0; 5467} 5468_ACEOF 5469rm -f conftest.$ac_objext conftest$ac_exeext 5470if { (eval echo "$as_me:5470: \"$ac_link\"") >&5 5471 (eval $ac_link) 2>&5 5472 ac_status=$? 5473 echo "$as_me:5473: \$? = $ac_status" >&5 5474 (exit $ac_status); } && 5475 { ac_try='test -s conftest$ac_exeext' 5476 { (eval echo "$as_me:5476: \"$ac_try\"") >&5 5477 (eval $ac_try) 2>&5 5478 ac_status=$? 5479 echo "$as_me:5479: \$? = $ac_status" >&5 5480 (exit $ac_status); }; }; then 5481 cf_cv_posix_saved_ids=yes 5482 5483else 5484 echo "$as_me: failed program was:" >&5 5485cat conftest.$ac_ext >&5 5486 5487if test "$cross_compiling" = yes; then 5488 cf_cv_posix_saved_ids=unknown 5489else 5490 cat >conftest.$ac_ext <<_ACEOF 5491#line 5491 "configure" 5492#include "confdefs.h" 5493 5494#ifdef HAVE_STDLIB_H 5495#include <stdlib.h> 5496#endif 5497#include <unistd.h> 5498int main() 5499{ 5500 void *p = (void *) seteuid; 5501 long code = sysconf(_SC_SAVED_IDS); 5502 ${cf_cv_main_return:-return} ((code > 0) ? 0 : 1); 5503} 5504_ACEOF 5505rm -f conftest$ac_exeext 5506if { (eval echo "$as_me:5506: \"$ac_link\"") >&5 5507 (eval $ac_link) 2>&5 5508 ac_status=$? 5509 echo "$as_me:5509: \$? = $ac_status" >&5 5510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5511 { (eval echo "$as_me:5511: \"$ac_try\"") >&5 5512 (eval $ac_try) 2>&5 5513 ac_status=$? 5514 echo "$as_me:5514: \$? = $ac_status" >&5 5515 (exit $ac_status); }; }; then 5516 cf_cv_posix_saved_ids=yes 5517else 5518 echo "$as_me: program exited with status $ac_status" >&5 5519echo "$as_me: failed program was:" >&5 5520cat conftest.$ac_ext >&5 5521cf_cv_posix_saved_ids=no 5522fi 5523rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5524fi 5525 5526fi 5527rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5528 5529fi 5530echo "$as_me:5530: result: $cf_cv_posix_saved_ids" >&5 5531echo "${ECHO_T}$cf_cv_posix_saved_ids" >&6 5532 5533test "$cf_cv_posix_saved_ids" = yes && 5534cat >>confdefs.h <<\EOF 5535#define HAVE_POSIX_SAVED_IDS 1 5536EOF 5537 5538# compute a reasonable value for $TERM to give tgetent(), since we may be 5539# running in 'screen', which sets $TERMCAP to a specific entry that is not 5540# necessarily in /etc/termcap - unsetenv is not portable, so we cannot simply 5541# discard $TERMCAP. 5542cf_TERMVAR=vt100 5543if test -n "$TERMCAP" 5544then 5545 cf_TERMCAP=`echo "$TERMCAP" | tr '\n' ' ' | sed -e 's/^..|//' -e 's/|.*//'` 5546 case "$cf_TERMCAP" in #(vi 5547 screen*.*) #(vi 5548 ;; 5549 *) 5550 cf_TERMVAR="$cf_TERMCAP" 5551 ;; 5552 esac 5553fi 5554test -z "$cf_TERMVAR" && cf_TERMVAR=vt100 5555 5556echo "$as_me:5556: checking if we want full tgetent function" >&5 5557echo $ECHO_N "checking if we want full tgetent function... $ECHO_C" >&6 5558 5559# Check whether --enable-full-tgetent or --disable-full-tgetent was given. 5560if test "${enable_full_tgetent+set}" = set; then 5561 enableval="$enable_full_tgetent" 5562 test "$enableval" != no && enableval=yes 5563 if test "$enableval" != "yes" ; then 5564 cf_full_tgetent=no 5565 else 5566 cf_full_tgetent=yes 5567 fi 5568else 5569 enableval=yes 5570 cf_full_tgetent=yes 5571 5572fi; 5573echo "$as_me:5573: result: $cf_full_tgetent" >&5 5574echo "${ECHO_T}$cf_full_tgetent" >&6 5575 5576if test "$cf_full_tgetent" = yes ; then 5577 cf_test_message="full tgetent" 5578else 5579 cf_test_message="tgetent" 5580fi 5581 5582echo "$as_me:5582: checking for $cf_test_message function" >&5 5583echo $ECHO_N "checking for $cf_test_message function... $ECHO_C" >&6 5584if test "${cf_cv_lib_tgetent+set}" = set; then 5585 echo $ECHO_N "(cached) $ECHO_C" >&6 5586else 5587 5588cf_save_LIBS="$LIBS" 5589cf_cv_lib_tgetent=no 5590if test "$cf_full_tgetent" = yes ; then 5591 cf_TERMLIB="otermcap termcap termlib ncurses curses" 5592 cf_TERMTST="buffer[0] == 0" 5593else 5594 cf_TERMLIB="termlib ncurses curses" 5595 cf_TERMTST="0" 5596fi 5597for cf_termlib in '' $cf_TERMLIB ; do 5598 LIBS="$cf_save_LIBS" 5599 test -n "$cf_termlib" && LIBS="-l$cf_termlib $LIBS" 5600 if test "$cross_compiling" = yes; then 5601 echo "cross-compiling, cannot verify if a termcap/tgetent is present in $cf_termlib" 1>&5 5602else 5603 cat >conftest.$ac_ext <<_ACEOF 5604#line 5604 "configure" 5605#include "confdefs.h" 5606 5607/* terminfo implementations ignore the buffer argument, making it useless for 5608 * the xterm application, which uses this information to make a new TERMCAP 5609 * environment variable. 5610 */ 5611int main() 5612{ 5613 char buffer[1024]; 5614 buffer[0] = 0; 5615 tgetent(buffer, "$cf_TERMVAR"); 5616 ${cf_cv_main_return:-return} ($cf_TERMTST); } 5617_ACEOF 5618rm -f conftest$ac_exeext 5619if { (eval echo "$as_me:5619: \"$ac_link\"") >&5 5620 (eval $ac_link) 2>&5 5621 ac_status=$? 5622 echo "$as_me:5622: \$? = $ac_status" >&5 5623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5624 { (eval echo "$as_me:5624: \"$ac_try\"") >&5 5625 (eval $ac_try) 2>&5 5626 ac_status=$? 5627 echo "$as_me:5627: \$? = $ac_status" >&5 5628 (exit $ac_status); }; }; then 5629 echo "yes, there is a termcap/tgetent in $cf_termlib" 1>&5 5630 if test -n "$cf_termlib" ; then 5631 cf_cv_lib_tgetent="-l$cf_termlib" 5632 else 5633 cf_cv_lib_tgetent=yes 5634 fi 5635 break 5636else 5637 echo "$as_me: program exited with status $ac_status" >&5 5638echo "$as_me: failed program was:" >&5 5639cat conftest.$ac_ext >&5 5640echo "no, there is no termcap/tgetent in $cf_termlib" 1>&5 5641fi 5642rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5643fi 5644done 5645LIBS="$cf_save_LIBS" 5646 5647fi 5648echo "$as_me:5648: result: $cf_cv_lib_tgetent" >&5 5649echo "${ECHO_T}$cf_cv_lib_tgetent" >&6 5650 5651# If we found a working tgetent(), set LIBS and check for termcap.h. 5652# (LIBS cannot be set inside AC_CACHE_CHECK; the commands there should 5653# not have side effects other than setting the cache variable, because 5654# they are not executed when a cached value exists.) 5655if test "x$cf_cv_lib_tgetent" != xno ; then 5656 test "x$cf_cv_lib_tgetent" != xyes && LIBS="$cf_cv_lib_tgetent $LIBS" 5657 5658cat >>confdefs.h <<\EOF 5659#define USE_TERMCAP 1 5660EOF 5661 5662 if test "$cf_full_tgetent" = no ; then 5663 cat >conftest.$ac_ext <<_ACEOF 5664#line 5664 "configure" 5665#include "confdefs.h" 5666 5667#include <termcap.h> 5668int 5669main () 5670{ 5671 5672#ifdef NCURSES_VERSION 5673make an error 5674#endif 5675 ; 5676 return 0; 5677} 5678_ACEOF 5679rm -f conftest.$ac_objext 5680if { (eval echo "$as_me:5680: \"$ac_compile\"") >&5 5681 (eval $ac_compile) 2>&5 5682 ac_status=$? 5683 echo "$as_me:5683: \$? = $ac_status" >&5 5684 (exit $ac_status); } && 5685 { ac_try='test -s conftest.$ac_objext' 5686 { (eval echo "$as_me:5686: \"$ac_try\"") >&5 5687 (eval $ac_try) 2>&5 5688 ac_status=$? 5689 echo "$as_me:5689: \$? = $ac_status" >&5 5690 (exit $ac_status); }; }; then 5691 cat >>confdefs.h <<\EOF 5692#define HAVE_TERMCAP_H 1 5693EOF 5694 5695else 5696 echo "$as_me: failed program was:" >&5 5697cat conftest.$ac_ext >&5 5698fi 5699rm -f conftest.$ac_objext conftest.$ac_ext 5700 else 5701 5702for ac_header in termcap.h 5703do 5704as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5705echo "$as_me:5705: checking for $ac_header" >&5 5706echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5707if eval "test \"\${$as_ac_Header+set}\" = set"; then 5708 echo $ECHO_N "(cached) $ECHO_C" >&6 5709else 5710 cat >conftest.$ac_ext <<_ACEOF 5711#line 5711 "configure" 5712#include "confdefs.h" 5713#include <$ac_header> 5714_ACEOF 5715if { (eval echo "$as_me:5715: \"$ac_cpp conftest.$ac_ext\"") >&5 5716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5717 ac_status=$? 5718 egrep -v '^ *\+' conftest.er1 >conftest.err 5719 rm -f conftest.er1 5720 cat conftest.err >&5 5721 echo "$as_me:5721: \$? = $ac_status" >&5 5722 (exit $ac_status); } >/dev/null; then 5723 if test -s conftest.err; then 5724 ac_cpp_err=$ac_c_preproc_warn_flag 5725 else 5726 ac_cpp_err= 5727 fi 5728else 5729 ac_cpp_err=yes 5730fi 5731if test -z "$ac_cpp_err"; then 5732 eval "$as_ac_Header=yes" 5733else 5734 echo "$as_me: failed program was:" >&5 5735 cat conftest.$ac_ext >&5 5736 eval "$as_ac_Header=no" 5737fi 5738rm -f conftest.err conftest.$ac_ext 5739fi 5740echo "$as_me:5740: result: `eval echo '${'$as_ac_Header'}'`" >&5 5741echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5742if test `eval echo '${'$as_ac_Header'}'` = yes; then 5743 cat >>confdefs.h <<EOF 5744#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5745EOF 5746 5747fi 5748done 5749 5750 fi 5751else 5752 # If we didn't find a tgetent() that supports the buffer 5753 # argument, look again to see whether we can find even 5754 # a crippled one. A crippled tgetent() is still useful to 5755 # validate values for the TERM environment variable given to 5756 # child processes. 5757 echo "$as_me:5757: checking for partial tgetent function" >&5 5758echo $ECHO_N "checking for partial tgetent function... $ECHO_C" >&6 5759if test "${cf_cv_lib_part_tgetent+set}" = set; then 5760 echo $ECHO_N "(cached) $ECHO_C" >&6 5761else 5762 5763 cf_cv_lib_part_tgetent=no 5764 for cf_termlib in $cf_TERMLIB ; do 5765 LIBS="$cf_save_LIBS -l$cf_termlib" 5766 cat >conftest.$ac_ext <<_ACEOF 5767#line 5767 "configure" 5768#include "confdefs.h" 5769 5770int 5771main () 5772{ 5773tgetent(0, "$cf_TERMVAR") 5774 ; 5775 return 0; 5776} 5777_ACEOF 5778rm -f conftest.$ac_objext conftest$ac_exeext 5779if { (eval echo "$as_me:5779: \"$ac_link\"") >&5 5780 (eval $ac_link) 2>&5 5781 ac_status=$? 5782 echo "$as_me:5782: \$? = $ac_status" >&5 5783 (exit $ac_status); } && 5784 { ac_try='test -s conftest$ac_exeext' 5785 { (eval echo "$as_me:5785: \"$ac_try\"") >&5 5786 (eval $ac_try) 2>&5 5787 ac_status=$? 5788 echo "$as_me:5788: \$? = $ac_status" >&5 5789 (exit $ac_status); }; }; then 5790 echo "there is a terminfo/tgetent in $cf_termlib" 1>&5 5791 cf_cv_lib_part_tgetent="-l$cf_termlib" 5792 break 5793else 5794 echo "$as_me: failed program was:" >&5 5795cat conftest.$ac_ext >&5 5796fi 5797rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5798 done 5799 LIBS="$cf_save_LIBS" 5800 5801fi 5802echo "$as_me:5802: result: $cf_cv_lib_part_tgetent" >&5 5803echo "${ECHO_T}$cf_cv_lib_part_tgetent" >&6 5804 5805 if test "$cf_cv_lib_part_tgetent" != no ; then 5806 LIBS="$cf_cv_lib_part_tgetent $LIBS" 5807 5808for ac_header in termcap.h 5809do 5810as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5811echo "$as_me:5811: checking for $ac_header" >&5 5812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5813if eval "test \"\${$as_ac_Header+set}\" = set"; then 5814 echo $ECHO_N "(cached) $ECHO_C" >&6 5815else 5816 cat >conftest.$ac_ext <<_ACEOF 5817#line 5817 "configure" 5818#include "confdefs.h" 5819#include <$ac_header> 5820_ACEOF 5821if { (eval echo "$as_me:5821: \"$ac_cpp conftest.$ac_ext\"") >&5 5822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5823 ac_status=$? 5824 egrep -v '^ *\+' conftest.er1 >conftest.err 5825 rm -f conftest.er1 5826 cat conftest.err >&5 5827 echo "$as_me:5827: \$? = $ac_status" >&5 5828 (exit $ac_status); } >/dev/null; then 5829 if test -s conftest.err; then 5830 ac_cpp_err=$ac_c_preproc_warn_flag 5831 else 5832 ac_cpp_err= 5833 fi 5834else 5835 ac_cpp_err=yes 5836fi 5837if test -z "$ac_cpp_err"; then 5838 eval "$as_ac_Header=yes" 5839else 5840 echo "$as_me: failed program was:" >&5 5841 cat conftest.$ac_ext >&5 5842 eval "$as_ac_Header=no" 5843fi 5844rm -f conftest.err conftest.$ac_ext 5845fi 5846echo "$as_me:5846: result: `eval echo '${'$as_ac_Header'}'`" >&5 5847echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5848if test `eval echo '${'$as_ac_Header'}'` = yes; then 5849 cat >>confdefs.h <<EOF 5850#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5851EOF 5852 5853fi 5854done 5855 5856 # If this is linking against ncurses, we'll trigger the 5857 # ifdef in resize.c that turns the termcap stuff back off. 5858 5859cat >>confdefs.h <<\EOF 5860#define USE_TERMINFO 1 5861EOF 5862 5863 fi 5864fi 5865 5866echo "$as_me:5866: checking for X applications class" >&5 5867echo $ECHO_N "checking for X applications class... $ECHO_C" >&6 5868 5869# Check whether --with-app-class or --without-app-class was given. 5870if test "${with_app_class+set}" = set; then 5871 withval="$with_app_class" 5872 APP_CLASS=$withval 5873else 5874 APP_CLASS=XTerm 5875fi; 5876 5877case x$APP_CLASS in #(vi 5878*[/@,%]*) #(vi 5879 { echo "$as_me:5879: WARNING: X applications class cannot contain punctuation" >&5 5880echo "$as_me: WARNING: X applications class cannot contain punctuation" >&2;} 5881 APP_CLASS=XTerm 5882 ;; 5883x[A-Z]*) #(vi 5884 ;; 5885*) 5886 { echo "$as_me:5886: WARNING: X applications class must start with capital, ignoring $APP_CLASS" >&5 5887echo "$as_me: WARNING: X applications class must start with capital, ignoring $APP_CLASS" >&2;} 5888 APP_CLASS=XTerm 5889 ;; 5890esac 5891 5892echo "$as_me:5892: result: $APP_CLASS" >&5 5893echo "${ECHO_T}$APP_CLASS" >&6 5894 5895echo "$as_me:5895: checking for directory to install resource files" >&5 5896echo $ECHO_N "checking for directory to install resource files... $ECHO_C" >&6 5897 5898# Check whether --with-app-defaults or --without-app-defaults was given. 5899if test "${with_app_defaults+set}" = set; then 5900 withval="$with_app_defaults" 5901 APPSDIR=$withval 5902else 5903 APPSDIR='${exec_prefix}/lib/X11/app-defaults' 5904fi; 5905 5906if test "x$APPSDIR" = xauto 5907then 5908 APPSDIR='${exec_prefix}/lib/X11/app-defaults' 5909 for cf_path in \ 5910 /usr/share/X11/app-defaults \ 5911 /usr/X11/share/X11/app-defaults \ 5912 /usr/X11/lib/X11/app-defaults \ 5913 /usr/lib/X11/app-defaults \ 5914 /etc/X11/app-defaults \ 5915 /usr/pkg/lib/X11/app-defaults \ 5916 /usr/X11R7/lib/X11/app-defaults \ 5917 /usr/X11R6/lib/X11/app-defaults \ 5918 /usr/X11R5/lib/X11/app-defaults \ 5919 /usr/X11R4/lib/X11/app-defaults \ 5920 /usr/local/lib/X11/app-defaults \ 5921 /usr/local/share/X11/app-defaults \ 5922 /usr/lib64/X11/app-defaults 5923 do 5924 if test -d "$cf_path" ; then 5925 APPSDIR="$cf_path" 5926 break 5927 fi 5928 done 5929else 5930 cf_path=$APPSDIR 5931 5932if test "x$prefix" != xNONE; then 5933 cf_path_syntax="$prefix" 5934else 5935 cf_path_syntax="$ac_default_prefix" 5936fi 5937 5938case ".$cf_path" in #(vi 5939.\$\(*\)*|.\'*\'*) #(vi 5940 ;; 5941..|./*|.\\*) #(vi 5942 ;; 5943.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 5944 ;; 5945.\${*prefix}*|.\${*dir}*) #(vi 5946 eval cf_path="$cf_path" 5947 case ".$cf_path" in #(vi 5948 .NONE/*) 5949 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%` 5950 ;; 5951 esac 5952 ;; #(vi 5953.no|.NONE/*) 5954 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%` 5955 ;; 5956*) 5957 { { echo "$as_me:5957: error: expected a pathname, not \"$cf_path\"" >&5 5958echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;} 5959 { (exit 1); exit 1; }; } 5960 ;; 5961esac 5962 5963fi 5964 5965echo "$as_me:5965: result: $APPSDIR" >&5 5966echo "${ECHO_T}$APPSDIR" >&6 5967 5968no_appsdir= 5969if test "$APPSDIR" = no 5970then 5971 no_appsdir="#" 5972else 5973 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(APPSDIR)" 5974fi 5975 5976echo "$as_me:5976: checking for the icon name" >&5 5977echo $ECHO_N "checking for the icon name... $ECHO_C" >&6 5978 5979# Check whether --with-icon-name or --without-icon-name was given. 5980if test "${with_icon_name+set}" = set; then 5981 withval="$with_icon_name" 5982 ICON_NAME="$withval" 5983else 5984 ICON_NAME=xterm-color 5985fi; 5986case "x$ICON_NAME" in 5987xyes|xno|x) 5988 ICON_NAME=xterm-color 5989 ;; 5990esac 5991 5992echo "$as_me:5992: result: $ICON_NAME" >&5 5993echo "${ECHO_T}$ICON_NAME" >&6 5994 5995echo "$as_me:5995: checking for icon symlink to use" >&5 5996echo $ECHO_N "checking for icon symlink to use... $ECHO_C" >&6 5997 5998# Check whether --with-icon-symlink or --without-icon-symlink was given. 5999if test "${with_icon_symlink+set}" = set; then 6000 withval="$with_icon_symlink" 6001 ICON_SYMLINK="$withval" 6002else 6003 ICON_SYMLINK=NONE 6004fi; 6005case "x$ICON_SYMLINK" in 6006xyes) 6007 ICON_SYMLINK=xterm 6008 ;; 6009xno|x) 6010 ICON_SYMLINK=NONE 6011 ;; 6012esac 6013 6014echo "$as_me:6014: result: $ICON_SYMLINK" >&5 6015echo "${ECHO_T}$ICON_SYMLINK" >&6 6016 6017echo "$as_me:6017: checking for directory to install pixmaps" >&5 6018echo $ECHO_N "checking for directory to install pixmaps... $ECHO_C" >&6 6019 6020# Check whether --with-pixmapdir or --without-pixmapdir was given. 6021if test "${with_pixmapdir+set}" = set; then 6022 withval="$with_pixmapdir" 6023 PIXMAPDIR=$withval 6024else 6025 test -z "$PIXMAPDIR" && PIXMAPDIR='${datadir}/pixmaps' 6026fi; 6027 6028if test "x$PIXMAPDIR" = xauto 6029then 6030 PIXMAPDIR='${datadir}/pixmaps' 6031 for cf_path in \ 6032 /usr/share/pixmaps \ 6033 /usr/X11R6/share/pixmaps 6034 do 6035 if test -d "$cf_path" ; then 6036 PIXMAPDIR="$cf_path" 6037 break 6038 fi 6039 done 6040else 6041 cf_path=$PIXMAPDIR 6042 6043if test "x$prefix" != xNONE; then 6044 cf_path_syntax="$prefix" 6045else 6046 cf_path_syntax="$ac_default_prefix" 6047fi 6048 6049case ".$cf_path" in #(vi 6050.\$\(*\)*|.\'*\'*) #(vi 6051 ;; 6052..|./*|.\\*) #(vi 6053 ;; 6054.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 6055 ;; 6056.\${*prefix}*|.\${*dir}*) #(vi 6057 eval cf_path="$cf_path" 6058 case ".$cf_path" in #(vi 6059 .NONE/*) 6060 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%` 6061 ;; 6062 esac 6063 ;; #(vi 6064.no|.NONE/*) 6065 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%` 6066 ;; 6067*) 6068 { { echo "$as_me:6068: error: expected a pathname, not \"$cf_path\"" >&5 6069echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;} 6070 { (exit 1); exit 1; }; } 6071 ;; 6072esac 6073 6074fi 6075echo "$as_me:6075: result: $PIXMAPDIR" >&5 6076echo "${ECHO_T}$PIXMAPDIR" >&6 6077 6078no_pixmapdir= 6079if test "$PIXMAPDIR" = no 6080then 6081 no_pixmapdir="#" 6082else 6083 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(PIXMAPDIR)" 6084fi 6085 6086echo "$as_me:6086: checking for directory to install icons" >&5 6087echo $ECHO_N "checking for directory to install icons... $ECHO_C" >&6 6088 6089# Check whether --with-icondir or --without-icondir was given. 6090if test "${with_icondir+set}" = set; then 6091 withval="$with_icondir" 6092 ICONDIR=$withval 6093else 6094 test -z "$ICONDIR" && ICONDIR=no 6095fi; 6096 6097if test "x$ICONDIR" = xauto 6098then 6099 ICONDIR='${datadir}/icons' 6100 for cf_path in \ 6101 /usr/share/icons \ 6102 /usr/X11R6/share/icons 6103 do 6104 if test -d "$cf_path" ; then 6105 ICONDIR="$cf_path" 6106 break 6107 fi 6108 done 6109else 6110 cf_path=$ICONDIR 6111 6112if test "x$prefix" != xNONE; then 6113 cf_path_syntax="$prefix" 6114else 6115 cf_path_syntax="$ac_default_prefix" 6116fi 6117 6118case ".$cf_path" in #(vi 6119.\$\(*\)*|.\'*\'*) #(vi 6120 ;; 6121..|./*|.\\*) #(vi 6122 ;; 6123.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 6124 ;; 6125.\${*prefix}*|.\${*dir}*) #(vi 6126 eval cf_path="$cf_path" 6127 case ".$cf_path" in #(vi 6128 .NONE/*) 6129 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%` 6130 ;; 6131 esac 6132 ;; #(vi 6133.no|.NONE/*) 6134 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%` 6135 ;; 6136*) 6137 { { echo "$as_me:6137: error: expected a pathname, not \"$cf_path\"" >&5 6138echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;} 6139 { (exit 1); exit 1; }; } 6140 ;; 6141esac 6142 6143fi 6144echo "$as_me:6144: result: $ICONDIR" >&5 6145echo "${ECHO_T}$ICONDIR" >&6 6146 6147no_icondir= 6148if test "$ICONDIR" = no 6149then 6150 no_icondir="#" 6151else 6152 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(ICONDIR)" 6153fi 6154 6155echo "$as_me:6155: checking if icon theme should be used" >&5 6156echo $ECHO_N "checking if icon theme should be used... $ECHO_C" >&6 6157 6158# Check whether --with-icon-theme or --without-icon-theme was given. 6159if test "${with_icon_theme+set}" = set; then 6160 withval="$with_icon_theme" 6161 ICON_THEME=$withval 6162else 6163 ICON_THEME=no 6164fi; 6165 6166case "x$ICON_THEME" in #(vi 6167xno) #(vi 6168 ;; 6169x|xyes) 6170 ICON_THEME=hicolor 6171 ;; 6172esac 6173echo "$as_me:6173: result: $ICON_THEME" >&5 6174echo "${ECHO_T}$ICON_THEME" >&6 6175 6176if test "x$ICON_THEME" = xno 6177then 6178 if test "x$ICONDIR" != xno 6179 then 6180 test -n "$verbose" && echo " ignoring icondir without theme" 1>&6 6181 6182echo "${as_me:-configure}:6182: testing ignoring icondir without theme ..." 1>&5 6183 6184 no_icondir="#" 6185 fi 6186else 6187 if test "x$ICONDIR" = xno 6188 then 6189 { { echo "$as_me:6189: error: icondir must be set for icon theme" >&5 6190echo "$as_me: error: icondir must be set for icon theme" >&2;} 6191 { (exit 1); exit 1; }; } 6192 fi 6193fi 6194 6195: ${ICON_FORMAT:=".svg .png .xpm"} 6196 6197# ICON_NAME= 6198ICON_LIST= 6199 6200if test "x$ICON_THEME" != xno 6201then 6202 cf_icon_list="icons/$ICON_NAME icons/${ICON_NAME}_48x48" 6203else 6204 cf_icon_list="icons/${ICON_NAME}_48x48" 6205fi 6206 6207echo "$as_me:6207: checking for icon(s) to install" >&5 6208echo $ECHO_N "checking for icon(s) to install... $ECHO_C" >&6 6209for cf_name in $cf_icon_list 6210do 6211 test -n "$verbose" && echo " using $ICON_FORMAT" 1>&6 6212 6213echo "${as_me:-configure}:6213: testing using $ICON_FORMAT ..." 1>&5 6214 6215 for cf_suffix in $ICON_FORMAT 6216 do 6217 cf_icon="${cf_name}${cf_suffix}" 6218 cf_left=`echo "$cf_icon" | sed -e 's/:.*//'` 6219 if test ! -f "${cf_left}" 6220 then 6221 if test "x$srcdir" != "x." 6222 then 6223 cf_icon="${srcdir}/${cf_left}" 6224 cf_left=`echo "$cf_icon" | sed -e 's/:.*//'` 6225 if test ! -f "${cf_left}" 6226 then 6227 continue 6228 fi 6229 else 6230 continue 6231 fi 6232 fi 6233 if test "x$ICON_THEME" != xno 6234 then 6235 cf_base=`basename $cf_left` 6236 cf_trim=`echo "$cf_base" | sed -e 's/_[0-9][0-9]x[0-9][0-9]\././'` 6237 case "x${cf_base}" in #(vi 6238 *:*) #(vi 6239 cf_next=$cf_base 6240 # user-defined mapping 6241 ;; 6242 *.png) #(vi 6243 cf_size=`file "$cf_left"|sed -e 's/^[^:]*://' -e 's/^.*[^0-9]\([0-9][0-9]* x [0-9][0-9]*\)[^0-9].*$/\1/' -e 's/ //g'` 6244 if test -z "$cf_size" 6245 then 6246 { echo "$as_me:6246: WARNING: cannot determine size of $cf_left" >&5 6247echo "$as_me: WARNING: cannot determine size of $cf_left" >&2;} 6248 continue 6249 fi 6250 cf_next="$cf_size/apps/$cf_trim" 6251 ;; 6252 *.svg) #(vi 6253 cf_next="scalable/apps/$cf_trim" 6254 ;; 6255 *.xpm) 6256 test -n "$verbose" && echo " ignored XPM file in icon theme" 1>&6 6257 6258echo "${as_me:-configure}:6258: testing ignored XPM file in icon theme ..." 1>&5 6259 6260 continue 6261 ;; 6262 *_[0-9][0-9]*x[0-9][0-9]*.*) #(vi 6263 cf_size=`echo "$cf_left"|sed -e 's/^.*_\([0-9][0-9]*x[0-9][0-9]*\)\..*$/\1/'` 6264 cf_left=`echo "$cf_left"|sed -e 's/^\(.*\)_\([0-9][0-9]*x[0-9][0-9]*\)\(\..*\)$/\1\3/'` 6265 cf_next="$cf_size/apps/$cf_base" 6266 ;; 6267 esac 6268 test -n "$verbose" && echo " adding $cf_next" 1>&6 6269 6270echo "${as_me:-configure}:6270: testing adding $cf_next ..." 1>&5 6271 6272 cf_icon="${cf_icon}:${cf_next}" 6273 fi 6274 test -n "$ICON_LIST" && ICON_LIST="$ICON_LIST " 6275 ICON_LIST="$ICON_LIST${cf_icon}" 6276 if test -z "$ICON_NAME" 6277 then 6278 ICON_NAME=`basename $cf_icon | sed -e 's/[.:].*//'` 6279 fi 6280 done 6281done 6282 6283if test -n "$verbose" 6284then 6285 echo "$as_me:6285: checking result" >&5 6286echo $ECHO_N "checking result... $ECHO_C" >&6 6287fi 6288echo "$as_me:6288: result: $ICON_LIST" >&5 6289echo "${ECHO_T}$ICON_LIST" >&6 6290 6291if test -z "$ICON_LIST" 6292then 6293 { { echo "$as_me:6293: error: no icons found" >&5 6294echo "$as_me: error: no icons found" >&2;} 6295 { (exit 1); exit 1; }; } 6296fi 6297 6298echo "$as_me:6298: checking for icon name" >&5 6299echo $ECHO_N "checking for icon name... $ECHO_C" >&6 6300echo "$as_me:6300: result: $ICON_NAME" >&5 6301echo "${ECHO_T}$ICON_NAME" >&6 6302 6303# Comment-out the install-desktop rule if the desktop-utils are not found. 6304echo "$as_me:6304: checking if you want to install desktop files" >&5 6305echo $ECHO_N "checking if you want to install desktop files... $ECHO_C" >&6 6306 6307# Check whether --enable-desktop or --disable-desktop was given. 6308if test "${enable_desktop+set}" = set; then 6309 enableval="$enable_desktop" 6310 test "$enableval" != no && enableval=yes 6311 if test "$enableval" != "yes" ; then 6312 enable_desktop=$enableval 6313 else 6314 enable_desktop=$enableval 6315 fi 6316else 6317 enableval=yes 6318 enable_desktop=$enableval 6319 6320fi; 6321echo "$as_me:6321: result: $enable_desktop" >&5 6322echo "${ECHO_T}$enable_desktop" >&6 6323 6324desktop_utils= 6325if test "$enable_desktop" = yes ; then 6326# Extract the first word of "desktop-file-install", so it can be a program name with args. 6327set dummy desktop-file-install; ac_word=$2 6328echo "$as_me:6328: checking for $ac_word" >&5 6329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6330if test "${ac_cv_prog_desktop_utils+set}" = set; then 6331 echo $ECHO_N "(cached) $ECHO_C" >&6 6332else 6333 if test -n "$desktop_utils"; then 6334 ac_cv_prog_desktop_utils="$desktop_utils" # Let the user override the test. 6335else 6336 ac_save_IFS=$IFS; IFS=$ac_path_separator 6337ac_dummy="$PATH" 6338for ac_dir in $ac_dummy; do 6339 IFS=$ac_save_IFS 6340 test -z "$ac_dir" && ac_dir=. 6341 $as_executable_p "$ac_dir/$ac_word" || continue 6342ac_cv_prog_desktop_utils="yes" 6343echo "$as_me:6343: found $ac_dir/$ac_word" >&5 6344break 6345done 6346 6347 test -z "$ac_cv_prog_desktop_utils" && ac_cv_prog_desktop_utils="no" 6348fi 6349fi 6350desktop_utils=$ac_cv_prog_desktop_utils 6351if test -n "$desktop_utils"; then 6352 echo "$as_me:6352: result: $desktop_utils" >&5 6353echo "${ECHO_T}$desktop_utils" >&6 6354else 6355 echo "$as_me:6355: result: no" >&5 6356echo "${ECHO_T}no" >&6 6357fi 6358 6359fi 6360 6361test "$desktop_utils" = yes && desktop_utils= || desktop_utils="#" 6362 6363if test -z "$desktop_utils" 6364then 6365 echo "$as_me:6365: checking for requested desktop-category" >&5 6366echo $ECHO_N "checking for requested desktop-category... $ECHO_C" >&6 6367 6368# Check whether --with-desktop-category or --without-desktop-category was given. 6369if test "${with_desktop_category+set}" = set; then 6370 withval="$with_desktop_category" 6371 cf_desktop_want=$withval 6372else 6373 cf_desktop_want=auto 6374fi; 6375 echo "$as_me:6375: result: $cf_desktop_want" >&5 6376echo "${ECHO_T}$cf_desktop_want" >&6 6377 6378 if test "$cf_desktop_want" = auto 6379 then 6380 rm -rf conftest* 6381 cf_desktop_also= 6382 for cf_desktop_dir in \ 6383 /usr/share/app-install \ 6384 /usr/share/applications 6385 do 6386 if test -d $cf_desktop_dir 6387 then 6388 find $cf_desktop_dir -name '*.desktop' | \ 6389 while true 6390 do 6391 read cf_desktop_path 6392 test -z "$cf_desktop_path" && break 6393 cf_desktop_name=`basename $cf_desktop_path .desktop` 6394 case $cf_desktop_name in #(vi 6395 xterm|*-xterm|*rxvt*|konsole|*-terminal) 6396 test -n "$verbose" && echo " inspect $cf_desktop_path" 1>&6 6397 6398echo "${as_me:-configure}:6398: testing inspect $cf_desktop_path ..." 1>&5 6399 6400 egrep '^Categories=' $cf_desktop_path | \ 6401 tr ';' '\n' | \ 6402 sed -e 's%^.*=%%' -e '/^$/d' >>conftest.1 6403 ;; 6404 esac 6405 done 6406 fi 6407 done 6408 if test -s conftest.1 6409 then 6410 cf_desktop_last= 6411 sort conftest.1 | \ 6412 while true 6413 do 6414 read cf_desktop_this 6415 test -z "$cf_desktop_this" && break 6416 case $cf_desktop_this in #(vi 6417 Qt*|GTK*|KDE*|GNOME*|*XFCE*|*Xfce*) #(vi 6418 ;; 6419 System|TerminalEmulator|Utility|*) 6420 test "x$cf_desktop_last" != "x$cf_desktop_this" && echo $cf_desktop_this >>conftest.2 6421 ;; 6422 esac 6423 cf_desktop_last=$cf_desktop_this 6424 done 6425 cf_desktop_want=`cat conftest.2 | tr '\n' ';'` 6426 fi 6427 if test -n "$cf_desktop_want" 6428 then 6429 if test "$cf_desktop_want" = auto 6430 then 6431 cf_desktop_want= 6432 else 6433 # do a sanity check on the semicolon-separated list, ignore on failure 6434 cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/[^;]//g'` 6435 test -z "$cf_desktop_test" && cf_desktop_want= 6436 cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/^.*;$/./g'` 6437 test -z "$cf_desktop_test" && cf_desktop_want= 6438 fi 6439 fi 6440 if test -z "$cf_desktop_want" 6441 then 6442 cf_desktop_want="`echo "System|TerminalEmulator|Utility|*" | sed -e 's/\*//g' -e 's/|/;/g' -e 's/;*$/;/g'`" 6443 test -n "$verbose" && echo " no usable value found for desktop category" 1>&6 6444 6445echo "${as_me:-configure}:6445: testing no usable value found for desktop category ..." 1>&5 6446 6447 fi 6448 fi 6449 DESKTOP_CATEGORY=`echo "$cf_desktop_want" | sed -e 's/[ ,]/;/g'` 6450 test -n "$verbose" && echo " will use Categories=$DESKTOP_CATEGORY" 1>&6 6451 6452echo "${as_me:-configure}:6452: testing will use Categories=$DESKTOP_CATEGORY ..." 1>&5 6453 6454fi 6455 6456echo "$as_me:6456: checking for install-permissions reference" >&5 6457echo $ECHO_N "checking for install-permissions reference... $ECHO_C" >&6 6458 6459# Check whether --with-reference or --without-reference was given. 6460if test "${with_reference+set}" = set; then 6461 withval="$with_reference" 6462 with_reference=$withval 6463else 6464 with_reference=xterm 6465fi; 6466echo "$as_me:6466: result: $with_reference" >&5 6467echo "${ECHO_T}$with_reference" >&6 6468 6469with_full_paths=yes 6470 6471 echo "$as_me:6471: checking for PATH separator" >&5 6472echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6 6473 case $cf_cv_system_name in 6474 os2*) PATH_SEPARATOR=';' ;; 6475 *) ${PATH_SEPARATOR:=':'} ;; 6476 esac 6477 6478 echo "$as_me:6478: result: $PATH_SEPARATOR" >&5 6479echo "${ECHO_T}$PATH_SEPARATOR" >&6 6480 6481test -z "$XTERM_PATH" && XTERM_PATH=$with_reference 6482for ac_prog in $XTERM_PATH $with_reference 6483do 6484 # Extract the first word of "$ac_prog", so it can be a program name with args. 6485set dummy $ac_prog; ac_word=$2 6486echo "$as_me:6486: checking for $ac_word" >&5 6487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6488if test "${ac_cv_path_XTERM_PATH+set}" = set; then 6489 echo $ECHO_N "(cached) $ECHO_C" >&6 6490else 6491 case $XTERM_PATH in 6492 [\\/]* | ?:[\\/]*) 6493 ac_cv_path_XTERM_PATH="$XTERM_PATH" # Let the user override the test with a path. 6494 ;; 6495 *) 6496 ac_save_IFS=$IFS; IFS=$ac_path_separator 6497ac_dummy="$PATH" 6498for ac_dir in $ac_dummy; do 6499 IFS=$ac_save_IFS 6500 test -z "$ac_dir" && ac_dir=. 6501 if $as_executable_p "$ac_dir/$ac_word"; then 6502 ac_cv_path_XTERM_PATH="$ac_dir/$ac_word" 6503 echo "$as_me:6503: found $ac_dir/$ac_word" >&5 6504 break 6505fi 6506done 6507 6508 ;; 6509esac 6510fi 6511XTERM_PATH=$ac_cv_path_XTERM_PATH 6512 6513if test -n "$XTERM_PATH"; then 6514 echo "$as_me:6514: result: $XTERM_PATH" >&5 6515echo "${ECHO_T}$XTERM_PATH" >&6 6516else 6517 echo "$as_me:6517: result: no" >&5 6518echo "${ECHO_T}no" >&6 6519fi 6520 6521 test -n "$XTERM_PATH" && break 6522done 6523test -n "$XTERM_PATH" || XTERM_PATH="$XTERM_PATH" 6524 6525cf_path_prog="" 6526cf_path_args="" 6527IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" 6528for cf_temp in $ac_cv_path_XTERM_PATH 6529do 6530 if test -z "$cf_path_prog" ; then 6531 if test "$with_full_paths" = yes ; then 6532 6533if test "x$prefix" != xNONE; then 6534 cf_path_syntax="$prefix" 6535else 6536 cf_path_syntax="$ac_default_prefix" 6537fi 6538 6539case ".$cf_temp" in #(vi 6540.\$\(*\)*|.\'*\'*) #(vi 6541 ;; 6542..|./*|.\\*) #(vi 6543 ;; 6544.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 6545 ;; 6546.\${*prefix}*|.\${*dir}*) #(vi 6547 eval cf_temp="$cf_temp" 6548 case ".$cf_temp" in #(vi 6549 .NONE/*) 6550 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%` 6551 ;; 6552 esac 6553 ;; #(vi 6554.no|.NONE/*) 6555 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%` 6556 ;; 6557*) 6558 break 6559 ;; 6560esac 6561 6562 cf_path_prog="$cf_temp" 6563 else 6564 cf_path_prog="`basename $cf_temp`" 6565 fi 6566 elif test -z "$cf_path_args" ; then 6567 cf_path_args="$cf_temp" 6568 else 6569 cf_path_args="$cf_path_args $cf_temp" 6570 fi 6571done 6572IFS="$cf_save_ifs" 6573 6574if test -n "$cf_path_prog" ; then 6575 6576echo "${as_me:-configure}:6576: testing defining path for ${cf_path_prog} ..." 1>&5 6577 6578cat >>confdefs.h <<EOF 6579#define XTERM_PATH_PATH "$cf_path_prog" 6580EOF 6581 6582 test -n "$cf_path_args" && 6583cat >>confdefs.h <<EOF 6584#define XTERM_PATH_ARGS "$cf_path_args" 6585EOF 6586 6587fi 6588 6589# If any of --program-prefix, --program-suffix or --program-transform-name is 6590# given, accept an option tell the makefile to create a symbolic link, e.g., 6591# to "xterm" on install. 6592XTERM_SYMLINK=NONE 6593 6594if test "$program_transform_name" != "'s,,,'" ; then 6595cf_name=`echo "$program_transform_name" | sed -e 's,\\$\\$,$,g'` 6596cf_name=`echo xterm |sed -e "$cf_name"` 6597echo "$as_me:6597: checking for symbolic link to create to $cf_name" >&5 6598echo $ECHO_N "checking for symbolic link to create to $cf_name... $ECHO_C" >&6 6599 6600# Check whether --with-xterm-symlink or --without-xterm-symlink was given. 6601if test "${with_xterm_symlink+set}" = set; then 6602 withval="$with_xterm_symlink" 6603 with_symlink=$withval 6604else 6605 with_symlink=xterm 6606fi; 6607echo "$as_me:6607: result: $with_symlink" >&5 6608echo "${ECHO_T}$with_symlink" >&6 6609test "$with_symlink" = yes && with_symlink=xterm 6610test -n "$with_symlink" && \ 6611 test "$with_symlink" != no && \ 6612 test "$with_symlink" != $cf_name && \ 6613 XTERM_SYMLINK="$with_symlink" 6614fi 6615 6616echo "$as_me:6616: checking if you want to disable openpty" >&5 6617echo $ECHO_N "checking if you want to disable openpty... $ECHO_C" >&6 6618 6619# Check whether --enable-openpty or --disable-openpty was given. 6620if test "${enable_openpty+set}" = set; then 6621 enableval="$enable_openpty" 6622 test "$enableval" != no && enableval=yes 6623 if test "$enableval" != "yes" ; then 6624 disable_openpty=yes 6625 else 6626 disable_openpty=no 6627 fi 6628else 6629 enableval=yes 6630 disable_openpty=no 6631 6632fi; 6633echo "$as_me:6633: result: $disable_openpty" >&5 6634echo "${ECHO_T}$disable_openpty" >&6 6635 6636echo "$as_me:6636: checking if you want to disable setuid" >&5 6637echo $ECHO_N "checking if you want to disable setuid... $ECHO_C" >&6 6638 6639# Check whether --enable-setuid or --disable-setuid was given. 6640if test "${enable_setuid+set}" = set; then 6641 enableval="$enable_setuid" 6642 test "$enableval" != no && enableval=yes 6643 if test "$enableval" != "yes" ; then 6644 disable_setuid=yes 6645 else 6646 disable_setuid=no 6647 fi 6648else 6649 enableval=yes 6650 disable_setuid=no 6651 6652fi; 6653echo "$as_me:6653: result: $disable_setuid" >&5 6654echo "${ECHO_T}$disable_setuid" >&6 6655 6656echo "$as_me:6656: checking if you want to disable setgid" >&5 6657echo $ECHO_N "checking if you want to disable setgid... $ECHO_C" >&6 6658 6659# Check whether --enable-setgid or --disable-setgid was given. 6660if test "${enable_setgid+set}" = set; then 6661 enableval="$enable_setgid" 6662 test "$enableval" != no && enableval=yes 6663 if test "$enableval" != "yes" ; then 6664 disable_setgid=yes 6665 else 6666 disable_setgid=no 6667 fi 6668else 6669 enableval=yes 6670 disable_setgid=no 6671 6672fi; 6673echo "$as_me:6673: result: $disable_setgid" >&5 6674echo "${ECHO_T}$disable_setgid" >&6 6675 6676echo "$as_me:6676: checking if you want to run xterm setuid to a given user" >&5 6677echo $ECHO_N "checking if you want to run xterm setuid to a given user... $ECHO_C" >&6 6678 6679# Check whether --with-setuid or --without-setuid was given. 6680if test "${with_setuid+set}" = set; then 6681 withval="$with_setuid" 6682 use_given_setuid=$withval 6683else 6684 use_given_setuid=no 6685fi; 6686echo "$as_me:6686: result: $use_given_setuid" >&5 6687echo "${ECHO_T}$use_given_setuid" >&6 6688 6689if test "$use_given_setuid" != no ; then 6690 if test "$use_given_setuid" = yes ; then 6691 cf_cv_given_setuid=root 6692 else 6693 cf_cv_given_setuid=$use_given_setuid 6694 fi 6695 # inherit SINSTALL_OPTS from environment to allow packager to customize it. 6696 SINSTALL_OPTS="$SINSTALL_OPTS u+s -u $cf_cv_given_setuid" 6697fi 6698 6699echo "$as_me:6699: checking if you want to run xterm setgid to match utmp/utmpx file" >&5 6700echo $ECHO_N "checking if you want to run xterm setgid to match utmp/utmpx file... $ECHO_C" >&6 6701 6702# Check whether --with-utmp-setgid or --without-utmp-setgid was given. 6703if test "${with_utmp_setgid+set}" = set; then 6704 withval="$with_utmp_setgid" 6705 use_utmp_setgid=$withval 6706else 6707 use_utmp_setgid=no 6708fi; 6709echo "$as_me:6709: result: $use_utmp_setgid" >&5 6710echo "${ECHO_T}$use_utmp_setgid" >&6 6711 6712if test "$use_utmp_setgid" != no ; then 6713 if test "$use_utmp_setgid" = yes ; then 6714 6715if test $cf_cv_have_utmp != no ; then 6716echo "$as_me:6716: checking for utmp/utmpx group" >&5 6717echo $ECHO_N "checking for utmp/utmpx group... $ECHO_C" >&6 6718if test "${cf_cv_utmp_group+set}" = set; then 6719 echo $ECHO_N "(cached) $ECHO_C" >&6 6720else 6721 6722for cf_utmp_path in /var/adm /var/run 6723do 6724 for cf_utmp_file in utmpx utmp 6725 do 6726 if test -f $cf_utmp_path/$cf_utmp_file 6727 then 6728 cf_cv_utmp_group=root 6729 6730 cf_option="-l -L" 6731 6732 # Expect listing to have fields like this: 6733 #-r--r--r-- 1 user group 34293 Jul 18 16:29 pathname 6734 ls $cf_option $cf_utmp_path/$cf_utmp_file >conftest 6735 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest 6736 if test -z "$cf_rest" ; then 6737 cf_option="$cf_option -g" 6738 ls $cf_option $cf_utmp_path/$cf_utmp_file >conftest 6739 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest 6740 fi 6741 rm -f conftest 6742 6743 # If we have a pathname, and the date fields look right, assume we've 6744 # captured the group as well. 6745 if test -n "$cf_rest" ; then 6746 cf_test=`echo "${cf_date2}${cf_date3}" | sed -e 's/[0-9:]//g'` 6747 if test -z "$cf_test" ; then 6748 cf_cv_utmp_group=$cf_grp; 6749 fi 6750 fi 6751 break 6752 fi 6753 done 6754 test -n "$cf_cv_utmp_group" && break 6755done 6756 6757fi 6758echo "$as_me:6758: result: $cf_cv_utmp_group" >&5 6759echo "${ECHO_T}$cf_cv_utmp_group" >&6 6760else 6761 { { echo "$as_me:6761: error: cannot find utmp group" >&5 6762echo "$as_me: error: cannot find utmp group" >&2;} 6763 { (exit 1); exit 1; }; } 6764fi 6765 6766 else 6767 cf_cv_utmp_group=$use_utmp_setgid 6768 fi 6769 if test "$cf_cv_posix_saved_ids" != yes ; then 6770 { { echo "$as_me:6770: error: Your system does not support POSIX saved-ids" >&5 6771echo "$as_me: error: Your system does not support POSIX saved-ids" >&2;} 6772 { (exit 1); exit 1; }; } 6773 fi 6774 6775cat >>confdefs.h <<\EOF 6776#define USE_UTMP_SETGID 1 6777EOF 6778 6779 SINSTALL_OPTS="$SINSTALL_OPTS g+s -g $cf_cv_utmp_group" 6780fi 6781 6782echo "$as_me:6782: checking if you want to link with utempter" >&5 6783echo $ECHO_N "checking if you want to link with utempter... $ECHO_C" >&6 6784 6785# Check whether --with-utempter or --without-utempter was given. 6786if test "${with_utempter+set}" = set; then 6787 withval="$with_utempter" 6788 use_utempter=$withval 6789else 6790 use_utempter=no 6791fi; 6792echo "$as_me:6792: result: $use_utempter" >&5 6793echo "${ECHO_T}$use_utempter" >&6 6794 6795if test "$use_utempter" = yes ; then 6796 6797echo "$as_me:6797: checking if we can link with utempter library" >&5 6798echo $ECHO_N "checking if we can link with utempter library... $ECHO_C" >&6 6799if test "${cf_cv_have_utempter+set}" = set; then 6800 echo $ECHO_N "(cached) $ECHO_C" >&6 6801else 6802 6803cf_save_LIBS="$LIBS" 6804LIBS="-lutempter $LIBS" 6805cat >conftest.$ac_ext <<_ACEOF 6806#line 6806 "configure" 6807#include "confdefs.h" 6808 6809#include <utempter.h> 6810 6811int 6812main () 6813{ 6814 6815 addToUtmp("/dev/tty", 0, 1); 6816 removeFromUtmp(); 6817 6818 ; 6819 return 0; 6820} 6821_ACEOF 6822rm -f conftest.$ac_objext conftest$ac_exeext 6823if { (eval echo "$as_me:6823: \"$ac_link\"") >&5 6824 (eval $ac_link) 2>&5 6825 ac_status=$? 6826 echo "$as_me:6826: \$? = $ac_status" >&5 6827 (exit $ac_status); } && 6828 { ac_try='test -s conftest$ac_exeext' 6829 { (eval echo "$as_me:6829: \"$ac_try\"") >&5 6830 (eval $ac_try) 2>&5 6831 ac_status=$? 6832 echo "$as_me:6832: \$? = $ac_status" >&5 6833 (exit $ac_status); }; }; then 6834 6835 cf_cv_have_utempter=yes 6836else 6837 echo "$as_me: failed program was:" >&5 6838cat conftest.$ac_ext >&5 6839 6840 cf_cv_have_utempter=no 6841fi 6842rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6843LIBS="$cf_save_LIBS" 6844 6845fi 6846echo "$as_me:6846: result: $cf_cv_have_utempter" >&5 6847echo "${ECHO_T}$cf_cv_have_utempter" >&6 6848if test "$cf_cv_have_utempter" = yes ; then 6849 6850cat >>confdefs.h <<\EOF 6851#define USE_UTEMPTER 1 6852EOF 6853 6854 LIBS="-lutempter $LIBS" 6855fi 6856 6857 test "$cf_cv_have_utempter" != yes && use_utempter=no 6858else 6859 use_utempter=no 6860fi 6861 6862# Some configurations permit (or require) either setuid or setgid mode. 6863# Let the user decide. 6864if test "$use_utempter" = yes ; then 6865 if test "${enable_setuid+set}" != set ; then 6866 disable_setuid=yes 6867 test -n "$verbose" && echo " No --disable-setuid option given, force to yes" 1>&6 6868 6869echo "${as_me:-configure}:6869: testing No --disable-setuid option given, force to yes ..." 1>&5 6870 6871 fi 6872fi 6873 6874### checks for external data 6875 6876echo "$as_me:6876: checking if external errno is declared" >&5 6877echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6 6878if test "${cf_cv_dcl_errno+set}" = set; then 6879 echo $ECHO_N "(cached) $ECHO_C" >&6 6880else 6881 6882 cat >conftest.$ac_ext <<_ACEOF 6883#line 6883 "configure" 6884#include "confdefs.h" 6885 6886#ifdef HAVE_STDLIB_H 6887#include <stdlib.h> 6888#endif 6889#include <stdio.h> 6890#include <sys/types.h> 6891#include <errno.h> 6892int 6893main () 6894{ 6895int x = (int) errno 6896 ; 6897 return 0; 6898} 6899_ACEOF 6900rm -f conftest.$ac_objext 6901if { (eval echo "$as_me:6901: \"$ac_compile\"") >&5 6902 (eval $ac_compile) 2>&5 6903 ac_status=$? 6904 echo "$as_me:6904: \$? = $ac_status" >&5 6905 (exit $ac_status); } && 6906 { ac_try='test -s conftest.$ac_objext' 6907 { (eval echo "$as_me:6907: \"$ac_try\"") >&5 6908 (eval $ac_try) 2>&5 6909 ac_status=$? 6910 echo "$as_me:6910: \$? = $ac_status" >&5 6911 (exit $ac_status); }; }; then 6912 cf_cv_dcl_errno=yes 6913else 6914 echo "$as_me: failed program was:" >&5 6915cat conftest.$ac_ext >&5 6916cf_cv_dcl_errno=no 6917fi 6918rm -f conftest.$ac_objext conftest.$ac_ext 6919 6920fi 6921echo "$as_me:6921: result: $cf_cv_dcl_errno" >&5 6922echo "${ECHO_T}$cf_cv_dcl_errno" >&6 6923 6924if test "$cf_cv_dcl_errno" = no ; then 6925 6926cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 6927 6928 cat >>confdefs.h <<EOF 6929#define $cf_result 1 6930EOF 6931 6932fi 6933 6934# It's possible (for near-UNIX clones) that the data doesn't exist 6935 6936echo "$as_me:6936: checking if external errno exists" >&5 6937echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6 6938if test "${cf_cv_have_errno+set}" = set; then 6939 echo $ECHO_N "(cached) $ECHO_C" >&6 6940else 6941 6942 cat >conftest.$ac_ext <<_ACEOF 6943#line 6943 "configure" 6944#include "confdefs.h" 6945 6946#undef errno 6947extern int errno; 6948 6949int 6950main () 6951{ 6952errno = 2 6953 ; 6954 return 0; 6955} 6956_ACEOF 6957rm -f conftest.$ac_objext conftest$ac_exeext 6958if { (eval echo "$as_me:6958: \"$ac_link\"") >&5 6959 (eval $ac_link) 2>&5 6960 ac_status=$? 6961 echo "$as_me:6961: \$? = $ac_status" >&5 6962 (exit $ac_status); } && 6963 { ac_try='test -s conftest$ac_exeext' 6964 { (eval echo "$as_me:6964: \"$ac_try\"") >&5 6965 (eval $ac_try) 2>&5 6966 ac_status=$? 6967 echo "$as_me:6967: \$? = $ac_status" >&5 6968 (exit $ac_status); }; }; then 6969 cf_cv_have_errno=yes 6970else 6971 echo "$as_me: failed program was:" >&5 6972cat conftest.$ac_ext >&5 6973cf_cv_have_errno=no 6974fi 6975rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6976 6977fi 6978echo "$as_me:6978: result: $cf_cv_have_errno" >&5 6979echo "${ECHO_T}$cf_cv_have_errno" >&6 6980 6981if test "$cf_cv_have_errno" = yes ; then 6982 6983cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 6984 6985 cat >>confdefs.h <<EOF 6986#define $cf_result 1 6987EOF 6988 6989fi 6990 6991echo "$as_me:6991: checking for explicit tty group name" >&5 6992echo $ECHO_N "checking for explicit tty group name... $ECHO_C" >&6 6993 6994# Check whether --with-tty-group or --without-tty-group was given. 6995if test "${with_tty_group+set}" = set; then 6996 withval="$with_tty_group" 6997 cf_tty_group=$withval 6998else 6999 cf_tty_group=auto... 7000fi; 7001test -z "$cf_tty_group" && cf_tty_group=auto... 7002test "$cf_tty_group" = yes && cf_tty_group=auto... 7003echo "$as_me:7003: result: $cf_tty_group" >&5 7004echo "${ECHO_T}$cf_tty_group" >&6 7005 7006if test "$cf_tty_group" = "auto..." ; then 7007echo "$as_me:7007: checking for tty group name" >&5 7008echo $ECHO_N "checking for tty group name... $ECHO_C" >&6 7009if test "${cf_cv_tty_group_name+set}" = set; then 7010 echo $ECHO_N "(cached) $ECHO_C" >&6 7011else 7012 7013# If we are configuring as root, it is hard to get a clue about the tty group. 7014# But we'll guess based on how our connection is set up - assuming it is done 7015# properly. 7016 7017cf_uid=`id | sed -e 's/^^=*=//' -e 's/(.*$//'` 7018# )vi 7019if test "$cf_uid" != 0 ; then 7020cf_cv_tty_group_name= 7021cf_tty_name=`tty` 7022test "$cf_tty_name" = "not a tty" && cf_tty_name=/dev/tty 7023test -z "$cf_tty_name" && cf_tty_name=/dev/tty 7024if test -c "$cf_tty_name" 7025then 7026 cf_option="-l -L" 7027 7028 # Expect listing to have fields like this: 7029 #-rwxrwxrwx 1 user group 34293 Jul 18 16:29 pathname 7030 ls $cf_option $cf_tty_name >conftest.out 7031 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out 7032 if test -z "$cf_rest" ; then 7033 cf_option="$cf_option -g" 7034 ls $cf_option $cf_tty_name >conftest.out 7035 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out 7036 fi 7037 rm -f conftest.out 7038 cf_cv_tty_group_name=$cf_grp 7039fi 7040fi 7041 7042# If we cannot deduce the tty group, fall back on hardcoded cases 7043 7044if test -z "$cf_cv_tty_group_name" 7045then 7046case $host_os in #(vi 7047osf*) #(vi 7048 cf_cv_tty_group_name="terminal" 7049 ;; 7050*) 7051 cf_cv_tty_group_name="unknown" 7052 if ( egrep '^tty:' /etc/group 2>/dev/null 1>/dev/null ) then 7053 cf_cv_tty_group_name="tty" 7054 fi 7055 ;; 7056esac 7057fi 7058 7059fi 7060echo "$as_me:7060: result: $cf_cv_tty_group_name" >&5 7061echo "${ECHO_T}$cf_cv_tty_group_name" >&6 7062cf_tty_group="$cf_cv_tty_group_name" 7063else 7064 # if configure option, always do this 7065 7066cat >>confdefs.h <<\EOF 7067#define USE_TTY_GROUP 1 7068EOF 7069 7070fi 7071 7072cat >>confdefs.h <<EOF 7073#define TTY_GROUP_NAME "$cf_tty_group" 7074EOF 7075 7076# This is only a double-check that the group-name we obtained above really 7077# does apply to the device. We cannot perform this test if we are in batch 7078# mode, or if we are cross-compiling. 7079 7080echo "$as_me:7080: checking if we may use the $cf_tty_group group" >&5 7081echo $ECHO_N "checking if we may use the $cf_tty_group group... $ECHO_C" >&6 7082if test "${cf_cv_tty_group+set}" = set; then 7083 echo $ECHO_N "(cached) $ECHO_C" >&6 7084else 7085 7086cf_tty_name=`tty` 7087if test "$cf_tty_name" != "not a tty" 7088then 7089if test "$cross_compiling" = yes; then 7090 cf_cv_tty_group=unknown 7091else 7092 cat >conftest.$ac_ext <<_ACEOF 7093#line 7093 "configure" 7094#include "confdefs.h" 7095 7096#include <unistd.h> 7097#include <sys/types.h> 7098#include <sys/stat.h> 7099#include <grp.h> 7100int main() 7101{ 7102 struct stat sb; 7103 struct group *ttygrp = getgrnam(TTY_GROUP_NAME); 7104 char *name = ttyname(0); 7105 7106 endgrent(); 7107 if (ttygrp != 0 7108 && name != 0 7109 && stat(name, &sb) == 0 7110 && sb.st_gid != getgid() 7111 && sb.st_gid == ttygrp->gr_gid) { 7112 ${cf_cv_main_return:-return} (0); 7113 } 7114 ${cf_cv_main_return:-return} (1); 7115} 7116 7117_ACEOF 7118rm -f conftest$ac_exeext 7119if { (eval echo "$as_me:7119: \"$ac_link\"") >&5 7120 (eval $ac_link) 2>&5 7121 ac_status=$? 7122 echo "$as_me:7122: \$? = $ac_status" >&5 7123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7124 { (eval echo "$as_me:7124: \"$ac_try\"") >&5 7125 (eval $ac_try) 2>&5 7126 ac_status=$? 7127 echo "$as_me:7127: \$? = $ac_status" >&5 7128 (exit $ac_status); }; }; then 7129 cf_cv_tty_group=yes 7130else 7131 echo "$as_me: program exited with status $ac_status" >&5 7132echo "$as_me: failed program was:" >&5 7133cat conftest.$ac_ext >&5 7134cf_cv_tty_group=no 7135fi 7136rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7137fi 7138elif test "$cross_compiling" = yes; then 7139 cf_cv_tty_group=unknown 7140else 7141 cf_cv_tty_group=yes 7142fi 7143 7144fi 7145echo "$as_me:7145: result: $cf_cv_tty_group" >&5 7146echo "${ECHO_T}$cf_cv_tty_group" >&6 7147 7148if test $cf_cv_tty_group = no ; then 7149 { echo "$as_me:7149: WARNING: Cannot use $cf_tty_group group" >&5 7150echo "$as_me: WARNING: Cannot use $cf_tty_group group" >&2;} 7151else 7152 cat >>confdefs.h <<\EOF 7153#define USE_TTY_GROUP 1 7154EOF 7155 7156fi 7157 7158### checks for system services and user specified options 7159 7160echo "$as_me:7160: checking for sys/wait.h that is POSIX.1 compatible" >&5 7161echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 7162if test "${ac_cv_header_sys_wait_h+set}" = set; then 7163 echo $ECHO_N "(cached) $ECHO_C" >&6 7164else 7165 cat >conftest.$ac_ext <<_ACEOF 7166#line 7166 "configure" 7167#include "confdefs.h" 7168#include <sys/types.h> 7169#include <sys/wait.h> 7170#ifndef WEXITSTATUS 7171# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 7172#endif 7173#ifndef WIFEXITED 7174# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 7175#endif 7176 7177int 7178main () 7179{ 7180 int s; 7181 wait (&s); 7182 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 7183 ; 7184 return 0; 7185} 7186_ACEOF 7187rm -f conftest.$ac_objext 7188if { (eval echo "$as_me:7188: \"$ac_compile\"") >&5 7189 (eval $ac_compile) 2>&5 7190 ac_status=$? 7191 echo "$as_me:7191: \$? = $ac_status" >&5 7192 (exit $ac_status); } && 7193 { ac_try='test -s conftest.$ac_objext' 7194 { (eval echo "$as_me:7194: \"$ac_try\"") >&5 7195 (eval $ac_try) 2>&5 7196 ac_status=$? 7197 echo "$as_me:7197: \$? = $ac_status" >&5 7198 (exit $ac_status); }; }; then 7199 ac_cv_header_sys_wait_h=yes 7200else 7201 echo "$as_me: failed program was:" >&5 7202cat conftest.$ac_ext >&5 7203ac_cv_header_sys_wait_h=no 7204fi 7205rm -f conftest.$ac_objext conftest.$ac_ext 7206fi 7207echo "$as_me:7207: result: $ac_cv_header_sys_wait_h" >&5 7208echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 7209if test $ac_cv_header_sys_wait_h = yes; then 7210 7211cat >>confdefs.h <<\EOF 7212#define HAVE_SYS_WAIT_H 1 7213EOF 7214 7215fi 7216 7217echo "$as_me:7217: checking for POSIX wait functions" >&5 7218echo $ECHO_N "checking for POSIX wait functions... $ECHO_C" >&6 7219if test "${cf_cv_posix_wait+set}" = set; then 7220 echo $ECHO_N "(cached) $ECHO_C" >&6 7221else 7222 7223cat >conftest.$ac_ext <<_ACEOF 7224#line 7224 "configure" 7225#include "confdefs.h" 7226 7227#include <stdlib.h> 7228#include <stdio.h> 7229#include <sys/types.h> 7230#ifdef HAVE_SYS_WAIT_H 7231#include <sys/wait.h> 7232#endif 7233 7234int 7235main () 7236{ 7237 7238 int stat_loc; 7239 pid_t pid = waitpid(-1, &stat_loc, WNOHANG|WUNTRACED); 7240 pid_t pid2 = wait(&stat_loc); 7241 7242 ; 7243 return 0; 7244} 7245_ACEOF 7246rm -f conftest.$ac_objext conftest$ac_exeext 7247if { (eval echo "$as_me:7247: \"$ac_link\"") >&5 7248 (eval $ac_link) 2>&5 7249 ac_status=$? 7250 echo "$as_me:7250: \$? = $ac_status" >&5 7251 (exit $ac_status); } && 7252 { ac_try='test -s conftest$ac_exeext' 7253 { (eval echo "$as_me:7253: \"$ac_try\"") >&5 7254 (eval $ac_try) 2>&5 7255 ac_status=$? 7256 echo "$as_me:7256: \$? = $ac_status" >&5 7257 (exit $ac_status); }; }; then 7258 cf_cv_posix_wait=yes 7259else 7260 echo "$as_me: failed program was:" >&5 7261cat conftest.$ac_ext >&5 7262cf_cv_posix_wait=no 7263fi 7264rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7265 7266fi 7267echo "$as_me:7267: result: $cf_cv_posix_wait" >&5 7268echo "${ECHO_T}$cf_cv_posix_wait" >&6 7269test "$cf_cv_posix_wait" = yes && 7270cat >>confdefs.h <<\EOF 7271#define USE_POSIX_WAIT 1 7272EOF 7273 7274echo "$as_me:7274: checking if external sys_nerr is declared" >&5 7275echo $ECHO_N "checking if external sys_nerr is declared... $ECHO_C" >&6 7276if test "${cf_cv_dcl_sys_nerr+set}" = set; then 7277 echo $ECHO_N "(cached) $ECHO_C" >&6 7278else 7279 7280 cat >conftest.$ac_ext <<_ACEOF 7281#line 7281 "configure" 7282#include "confdefs.h" 7283 7284#ifdef HAVE_STDLIB_H 7285#include <stdlib.h> 7286#endif 7287#include <stdio.h> 7288#include <sys/types.h> 7289#include <errno.h> 7290int 7291main () 7292{ 7293int x = (int) sys_nerr 7294 ; 7295 return 0; 7296} 7297_ACEOF 7298rm -f conftest.$ac_objext 7299if { (eval echo "$as_me:7299: \"$ac_compile\"") >&5 7300 (eval $ac_compile) 2>&5 7301 ac_status=$? 7302 echo "$as_me:7302: \$? = $ac_status" >&5 7303 (exit $ac_status); } && 7304 { ac_try='test -s conftest.$ac_objext' 7305 { (eval echo "$as_me:7305: \"$ac_try\"") >&5 7306 (eval $ac_try) 2>&5 7307 ac_status=$? 7308 echo "$as_me:7308: \$? = $ac_status" >&5 7309 (exit $ac_status); }; }; then 7310 cf_cv_dcl_sys_nerr=yes 7311else 7312 echo "$as_me: failed program was:" >&5 7313cat conftest.$ac_ext >&5 7314cf_cv_dcl_sys_nerr=no 7315fi 7316rm -f conftest.$ac_objext conftest.$ac_ext 7317 7318fi 7319echo "$as_me:7319: result: $cf_cv_dcl_sys_nerr" >&5 7320echo "${ECHO_T}$cf_cv_dcl_sys_nerr" >&6 7321 7322if test "$cf_cv_dcl_sys_nerr" = no ; then 7323 7324cf_result=`echo "decl_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 7325 7326 cat >>confdefs.h <<EOF 7327#define $cf_result 1 7328EOF 7329 7330fi 7331 7332# It's possible (for near-UNIX clones) that the data doesn't exist 7333 7334echo "$as_me:7334: checking if external sys_nerr exists" >&5 7335echo $ECHO_N "checking if external sys_nerr exists... $ECHO_C" >&6 7336if test "${cf_cv_have_sys_nerr+set}" = set; then 7337 echo $ECHO_N "(cached) $ECHO_C" >&6 7338else 7339 7340 cat >conftest.$ac_ext <<_ACEOF 7341#line 7341 "configure" 7342#include "confdefs.h" 7343 7344#undef sys_nerr 7345extern int sys_nerr; 7346 7347int 7348main () 7349{ 7350sys_nerr = 2 7351 ; 7352 return 0; 7353} 7354_ACEOF 7355rm -f conftest.$ac_objext conftest$ac_exeext 7356if { (eval echo "$as_me:7356: \"$ac_link\"") >&5 7357 (eval $ac_link) 2>&5 7358 ac_status=$? 7359 echo "$as_me:7359: \$? = $ac_status" >&5 7360 (exit $ac_status); } && 7361 { ac_try='test -s conftest$ac_exeext' 7362 { (eval echo "$as_me:7362: \"$ac_try\"") >&5 7363 (eval $ac_try) 2>&5 7364 ac_status=$? 7365 echo "$as_me:7365: \$? = $ac_status" >&5 7366 (exit $ac_status); }; }; then 7367 cf_cv_have_sys_nerr=yes 7368else 7369 echo "$as_me: failed program was:" >&5 7370cat conftest.$ac_ext >&5 7371cf_cv_have_sys_nerr=no 7372fi 7373rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7374 7375fi 7376echo "$as_me:7376: result: $cf_cv_have_sys_nerr" >&5 7377echo "${ECHO_T}$cf_cv_have_sys_nerr" >&6 7378 7379if test "$cf_cv_have_sys_nerr" = yes ; then 7380 7381cf_result=`echo "have_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 7382 7383 cat >>confdefs.h <<EOF 7384#define $cf_result 1 7385EOF 7386 7387fi 7388 7389echo "$as_me:7389: checking if external sys_errlist is declared" >&5 7390echo $ECHO_N "checking if external sys_errlist is declared... $ECHO_C" >&6 7391if test "${cf_cv_dcl_sys_errlist+set}" = set; then 7392 echo $ECHO_N "(cached) $ECHO_C" >&6 7393else 7394 7395 cat >conftest.$ac_ext <<_ACEOF 7396#line 7396 "configure" 7397#include "confdefs.h" 7398 7399#ifdef HAVE_STDLIB_H 7400#include <stdlib.h> 7401#endif 7402#include <stdio.h> 7403#include <sys/types.h> 7404#include <errno.h> 7405int 7406main () 7407{ 7408int x = (int) sys_errlist 7409 ; 7410 return 0; 7411} 7412_ACEOF 7413rm -f conftest.$ac_objext 7414if { (eval echo "$as_me:7414: \"$ac_compile\"") >&5 7415 (eval $ac_compile) 2>&5 7416 ac_status=$? 7417 echo "$as_me:7417: \$? = $ac_status" >&5 7418 (exit $ac_status); } && 7419 { ac_try='test -s conftest.$ac_objext' 7420 { (eval echo "$as_me:7420: \"$ac_try\"") >&5 7421 (eval $ac_try) 2>&5 7422 ac_status=$? 7423 echo "$as_me:7423: \$? = $ac_status" >&5 7424 (exit $ac_status); }; }; then 7425 cf_cv_dcl_sys_errlist=yes 7426else 7427 echo "$as_me: failed program was:" >&5 7428cat conftest.$ac_ext >&5 7429cf_cv_dcl_sys_errlist=no 7430fi 7431rm -f conftest.$ac_objext conftest.$ac_ext 7432 7433fi 7434echo "$as_me:7434: result: $cf_cv_dcl_sys_errlist" >&5 7435echo "${ECHO_T}$cf_cv_dcl_sys_errlist" >&6 7436 7437if test "$cf_cv_dcl_sys_errlist" = no ; then 7438 7439cf_result=`echo "decl_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 7440 7441 cat >>confdefs.h <<EOF 7442#define $cf_result 1 7443EOF 7444 7445fi 7446 7447# It's possible (for near-UNIX clones) that the data doesn't exist 7448 7449echo "$as_me:7449: checking if external sys_errlist exists" >&5 7450echo $ECHO_N "checking if external sys_errlist exists... $ECHO_C" >&6 7451if test "${cf_cv_have_sys_errlist+set}" = set; then 7452 echo $ECHO_N "(cached) $ECHO_C" >&6 7453else 7454 7455 cat >conftest.$ac_ext <<_ACEOF 7456#line 7456 "configure" 7457#include "confdefs.h" 7458 7459#undef sys_errlist 7460extern int sys_errlist; 7461 7462int 7463main () 7464{ 7465sys_errlist = 2 7466 ; 7467 return 0; 7468} 7469_ACEOF 7470rm -f conftest.$ac_objext conftest$ac_exeext 7471if { (eval echo "$as_me:7471: \"$ac_link\"") >&5 7472 (eval $ac_link) 2>&5 7473 ac_status=$? 7474 echo "$as_me:7474: \$? = $ac_status" >&5 7475 (exit $ac_status); } && 7476 { ac_try='test -s conftest$ac_exeext' 7477 { (eval echo "$as_me:7477: \"$ac_try\"") >&5 7478 (eval $ac_try) 2>&5 7479 ac_status=$? 7480 echo "$as_me:7480: \$? = $ac_status" >&5 7481 (exit $ac_status); }; }; then 7482 cf_cv_have_sys_errlist=yes 7483else 7484 echo "$as_me: failed program was:" >&5 7485cat conftest.$ac_ext >&5 7486cf_cv_have_sys_errlist=no 7487fi 7488rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7489 7490fi 7491echo "$as_me:7491: result: $cf_cv_have_sys_errlist" >&5 7492echo "${ECHO_T}$cf_cv_have_sys_errlist" >&6 7493 7494if test "$cf_cv_have_sys_errlist" = yes ; then 7495 7496cf_result=`echo "have_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 7497 7498 cat >>confdefs.h <<EOF 7499#define $cf_result 1 7500EOF 7501 7502fi 7503 7504for ac_header in \ 7505termios.h \ 7506stdlib.h \ 7507X11/Intrinsic.h \ 7508 7509do 7510as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7511echo "$as_me:7511: checking for $ac_header" >&5 7512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7513if eval "test \"\${$as_ac_Header+set}\" = set"; then 7514 echo $ECHO_N "(cached) $ECHO_C" >&6 7515else 7516 cat >conftest.$ac_ext <<_ACEOF 7517#line 7517 "configure" 7518#include "confdefs.h" 7519#include <$ac_header> 7520_ACEOF 7521if { (eval echo "$as_me:7521: \"$ac_cpp conftest.$ac_ext\"") >&5 7522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7523 ac_status=$? 7524 egrep -v '^ *\+' conftest.er1 >conftest.err 7525 rm -f conftest.er1 7526 cat conftest.err >&5 7527 echo "$as_me:7527: \$? = $ac_status" >&5 7528 (exit $ac_status); } >/dev/null; then 7529 if test -s conftest.err; then 7530 ac_cpp_err=$ac_c_preproc_warn_flag 7531 else 7532 ac_cpp_err= 7533 fi 7534else 7535 ac_cpp_err=yes 7536fi 7537if test -z "$ac_cpp_err"; then 7538 eval "$as_ac_Header=yes" 7539else 7540 echo "$as_me: failed program was:" >&5 7541 cat conftest.$ac_ext >&5 7542 eval "$as_ac_Header=no" 7543fi 7544rm -f conftest.err conftest.$ac_ext 7545fi 7546echo "$as_me:7546: result: `eval echo '${'$as_ac_Header'}'`" >&5 7547echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7548if test `eval echo '${'$as_ac_Header'}'` = yes; then 7549 cat >>confdefs.h <<EOF 7550#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7551EOF 7552 7553fi 7554done 7555 7556echo "$as_me:7556: checking if we should define SYSV" >&5 7557echo $ECHO_N "checking if we should define SYSV... $ECHO_C" >&6 7558if test "${cf_cv_sysv+set}" = set; then 7559 echo $ECHO_N "(cached) $ECHO_C" >&6 7560else 7561 7562cat >conftest.$ac_ext <<_ACEOF 7563#line 7563 "configure" 7564#include "confdefs.h" 7565 7566#undef SYSV 7567#define SYSV 1 /* get Xos.h to declare sys_errlist[] */ 7568#ifdef HAVE_STDLIB_H 7569#include <stdlib.h> /* look for wchar_t */ 7570#endif 7571#ifdef HAVE_X11_INTRINSIC_H 7572#include <X11/Intrinsic.h> /* Intrinsic.h has other traps... */ 7573#endif 7574#ifdef HAVE_TERMIOS_H /* needed for HPUX 10.20 */ 7575#include <termios.h> 7576#define STRUCT_TERMIOS struct termios 7577#else 7578#define STRUCT_TERMIOS struct termio 7579#endif 7580#include <curses.h> 7581#include <term.h> /* eliminate most BSD hacks */ 7582#include <errno.h> /* declare sys_errlist on older systems */ 7583#include <sys/termio.h> /* eliminate most of the remaining ones */ 7584 7585int 7586main () 7587{ 7588 7589static STRUCT_TERMIOS d_tio; 7590 d_tio.c_cc[VINTR] = 0; 7591 d_tio.c_cc[VQUIT] = 0; 7592 d_tio.c_cc[VERASE] = 0; 7593 d_tio.c_cc[VKILL] = 0; 7594 d_tio.c_cc[VEOF] = 0; 7595 d_tio.c_cc[VEOL] = 0; 7596 d_tio.c_cc[VMIN] = 0; 7597 d_tio.c_cc[VTIME] = 0; 7598#if defined(HAVE_SYS_ERRLIST) && !defined(DECL_SYS_ERRLIST) 7599sys_errlist[0] = ""; /* Cygwin mis-declares this */ 7600#endif 7601 7602 ; 7603 return 0; 7604} 7605_ACEOF 7606rm -f conftest.$ac_objext 7607if { (eval echo "$as_me:7607: \"$ac_compile\"") >&5 7608 (eval $ac_compile) 2>&5 7609 ac_status=$? 7610 echo "$as_me:7610: \$? = $ac_status" >&5 7611 (exit $ac_status); } && 7612 { ac_try='test -s conftest.$ac_objext' 7613 { (eval echo "$as_me:7613: \"$ac_try\"") >&5 7614 (eval $ac_try) 2>&5 7615 ac_status=$? 7616 echo "$as_me:7616: \$? = $ac_status" >&5 7617 (exit $ac_status); }; }; then 7618 cf_cv_sysv=yes 7619else 7620 echo "$as_me: failed program was:" >&5 7621cat conftest.$ac_ext >&5 7622cf_cv_sysv=no 7623fi 7624rm -f conftest.$ac_objext conftest.$ac_ext 7625 7626fi 7627echo "$as_me:7627: result: $cf_cv_sysv" >&5 7628echo "${ECHO_T}$cf_cv_sysv" >&6 7629test "$cf_cv_sysv" = yes && 7630cat >>confdefs.h <<\EOF 7631#define SYSV 1 7632EOF 7633 7634echo "$as_me:7634: checking for elf_begin in -lelf" >&5 7635echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 7636if test "${ac_cv_lib_elf_elf_begin+set}" = set; then 7637 echo $ECHO_N "(cached) $ECHO_C" >&6 7638else 7639 ac_check_lib_save_LIBS=$LIBS 7640LIBS="-lelf $LIBS" 7641cat >conftest.$ac_ext <<_ACEOF 7642#line 7642 "configure" 7643#include "confdefs.h" 7644 7645/* Override any gcc2 internal prototype to avoid an error. */ 7646#ifdef __cplusplus 7647extern "C" 7648#endif 7649/* We use char because int might match the return type of a gcc2 7650 builtin and then its argument prototype would still apply. */ 7651char elf_begin (); 7652int 7653main () 7654{ 7655elf_begin (); 7656 ; 7657 return 0; 7658} 7659_ACEOF 7660rm -f conftest.$ac_objext conftest$ac_exeext 7661if { (eval echo "$as_me:7661: \"$ac_link\"") >&5 7662 (eval $ac_link) 2>&5 7663 ac_status=$? 7664 echo "$as_me:7664: \$? = $ac_status" >&5 7665 (exit $ac_status); } && 7666 { ac_try='test -s conftest$ac_exeext' 7667 { (eval echo "$as_me:7667: \"$ac_try\"") >&5 7668 (eval $ac_try) 2>&5 7669 ac_status=$? 7670 echo "$as_me:7670: \$? = $ac_status" >&5 7671 (exit $ac_status); }; }; then 7672 ac_cv_lib_elf_elf_begin=yes 7673else 7674 echo "$as_me: failed program was:" >&5 7675cat conftest.$ac_ext >&5 7676ac_cv_lib_elf_elf_begin=no 7677fi 7678rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7679LIBS=$ac_check_lib_save_LIBS 7680fi 7681echo "$as_me:7681: result: $ac_cv_lib_elf_elf_begin" >&5 7682echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 7683if test $ac_cv_lib_elf_elf_begin = yes; then 7684 7685echo "$as_me:7685: checking if this is an SVR4 system" >&5 7686echo $ECHO_N "checking if this is an SVR4 system... $ECHO_C" >&6 7687if test "${cf_cv_svr4+set}" = set; then 7688 echo $ECHO_N "(cached) $ECHO_C" >&6 7689else 7690 7691cat >conftest.$ac_ext <<_ACEOF 7692#line 7692 "configure" 7693#include "confdefs.h" 7694 7695#if defined(__CYGWIN__) 7696make an error 7697#endif 7698#include <elf.h> 7699#include <sys/termio.h> 7700 7701int 7702main () 7703{ 7704 7705static struct termio d_tio; 7706 d_tio.c_cc[VINTR] = 0; 7707 d_tio.c_cc[VQUIT] = 0; 7708 d_tio.c_cc[VERASE] = 0; 7709 d_tio.c_cc[VKILL] = 0; 7710 d_tio.c_cc[VEOF] = 0; 7711 d_tio.c_cc[VEOL] = 0; 7712 d_tio.c_cc[VMIN] = 0; 7713 d_tio.c_cc[VTIME] = 0; 7714 d_tio.c_cc[VLNEXT] = 0; 7715 7716 ; 7717 return 0; 7718} 7719_ACEOF 7720rm -f conftest.$ac_objext 7721if { (eval echo "$as_me:7721: \"$ac_compile\"") >&5 7722 (eval $ac_compile) 2>&5 7723 ac_status=$? 7724 echo "$as_me:7724: \$? = $ac_status" >&5 7725 (exit $ac_status); } && 7726 { ac_try='test -s conftest.$ac_objext' 7727 { (eval echo "$as_me:7727: \"$ac_try\"") >&5 7728 (eval $ac_try) 2>&5 7729 ac_status=$? 7730 echo "$as_me:7730: \$? = $ac_status" >&5 7731 (exit $ac_status); }; }; then 7732 cf_cv_svr4=yes 7733else 7734 echo "$as_me: failed program was:" >&5 7735cat conftest.$ac_ext >&5 7736cf_cv_svr4=no 7737fi 7738rm -f conftest.$ac_objext conftest.$ac_ext 7739 7740fi 7741echo "$as_me:7741: result: $cf_cv_svr4" >&5 7742echo "${ECHO_T}$cf_cv_svr4" >&6 7743 7744fi 7745 7746test "$cf_cv_svr4" = yes && 7747cat >>confdefs.h <<\EOF 7748#define SVR4 1 7749EOF 7750 7751echo "$as_me:7751: checking for X" >&5 7752echo $ECHO_N "checking for X... $ECHO_C" >&6 7753 7754# Check whether --with-x or --without-x was given. 7755if test "${with_x+set}" = set; then 7756 withval="$with_x" 7757 7758fi; 7759# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 7760if test "x$with_x" = xno; then 7761 # The user explicitly disabled X. 7762 have_x=disabled 7763else 7764 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 7765 # Both variables are already set. 7766 have_x=yes 7767 else 7768 if test "${ac_cv_have_x+set}" = set; then 7769 echo $ECHO_N "(cached) $ECHO_C" >&6 7770else 7771 # One or both of the vars are not set, and there is no cached value. 7772ac_x_includes=no ac_x_libraries=no 7773rm -fr conftest.dir 7774if mkdir conftest.dir; then 7775 cd conftest.dir 7776 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 7777 cat >Imakefile <<'EOF' 7778acfindx: 7779 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 7780EOF 7781 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 7782 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 7783 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 7784 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 7785 for ac_extension in a so sl dylib dll; do 7786 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 7787 test -f $ac_im_libdir/libX11.$ac_extension; then 7788 ac_im_usrlibdir=$ac_im_libdir; break 7789 fi 7790 done 7791 # Screen out bogus values from the imake configuration. They are 7792 # bogus both because they are the default anyway, and because 7793 # using them would break gcc on systems where it needs fixed includes. 7794 case $ac_im_incroot in 7795 /usr/include) ;; 7796 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 7797 esac 7798 case $ac_im_usrlibdir in 7799 /usr/lib | /lib) ;; 7800 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 7801 esac 7802 fi 7803 cd .. 7804 rm -fr conftest.dir 7805fi 7806 7807# Standard set of common directories for X headers. 7808# Check X11 before X11Rn because it is often a symlink to the current release. 7809ac_x_header_dirs=' 7810/usr/X11/include 7811/usr/X11R6/include 7812/usr/X11R5/include 7813/usr/X11R4/include 7814 7815/usr/include/X11 7816/usr/include/X11R6 7817/usr/include/X11R5 7818/usr/include/X11R4 7819 7820/usr/local/X11/include 7821/usr/local/X11R6/include 7822/usr/local/X11R5/include 7823/usr/local/X11R4/include 7824 7825/usr/local/include/X11 7826/usr/local/include/X11R6 7827/usr/local/include/X11R5 7828/usr/local/include/X11R4 7829 7830/usr/X386/include 7831/usr/x386/include 7832/usr/XFree86/include/X11 7833 7834/usr/include 7835/usr/local/include 7836/usr/unsupported/include 7837/usr/athena/include 7838/usr/local/x11r5/include 7839/usr/lpp/Xamples/include 7840 7841/usr/openwin/include 7842/usr/openwin/share/include' 7843 7844if test "$ac_x_includes" = no; then 7845 # Guess where to find include files, by looking for Intrinsic.h. 7846 # First, try using that file with no special directory specified. 7847 cat >conftest.$ac_ext <<_ACEOF 7848#line 7848 "configure" 7849#include "confdefs.h" 7850#include <X11/Intrinsic.h> 7851_ACEOF 7852if { (eval echo "$as_me:7852: \"$ac_cpp conftest.$ac_ext\"") >&5 7853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7854 ac_status=$? 7855 egrep -v '^ *\+' conftest.er1 >conftest.err 7856 rm -f conftest.er1 7857 cat conftest.err >&5 7858 echo "$as_me:7858: \$? = $ac_status" >&5 7859 (exit $ac_status); } >/dev/null; then 7860 if test -s conftest.err; then 7861 ac_cpp_err=$ac_c_preproc_warn_flag 7862 else 7863 ac_cpp_err= 7864 fi 7865else 7866 ac_cpp_err=yes 7867fi 7868if test -z "$ac_cpp_err"; then 7869 # We can compile using X headers with no special include directory. 7870ac_x_includes= 7871else 7872 echo "$as_me: failed program was:" >&5 7873 cat conftest.$ac_ext >&5 7874 for ac_dir in $ac_x_header_dirs; do 7875 if test -r "$ac_dir/X11/Intrinsic.h"; then 7876 ac_x_includes=$ac_dir 7877 break 7878 fi 7879done 7880fi 7881rm -f conftest.err conftest.$ac_ext 7882fi # $ac_x_includes = no 7883 7884if test "$ac_x_libraries" = no; then 7885 # Check for the libraries. 7886 # See if we find them without any special options. 7887 # Don't add to $LIBS permanently. 7888 ac_save_LIBS=$LIBS 7889 LIBS="-lXt $LIBS" 7890 cat >conftest.$ac_ext <<_ACEOF 7891#line 7891 "configure" 7892#include "confdefs.h" 7893#include <X11/Intrinsic.h> 7894int 7895main () 7896{ 7897XtMalloc (0) 7898 ; 7899 return 0; 7900} 7901_ACEOF 7902rm -f conftest.$ac_objext conftest$ac_exeext 7903if { (eval echo "$as_me:7903: \"$ac_link\"") >&5 7904 (eval $ac_link) 2>&5 7905 ac_status=$? 7906 echo "$as_me:7906: \$? = $ac_status" >&5 7907 (exit $ac_status); } && 7908 { ac_try='test -s conftest$ac_exeext' 7909 { (eval echo "$as_me:7909: \"$ac_try\"") >&5 7910 (eval $ac_try) 2>&5 7911 ac_status=$? 7912 echo "$as_me:7912: \$? = $ac_status" >&5 7913 (exit $ac_status); }; }; then 7914 LIBS=$ac_save_LIBS 7915# We can link X programs with no special library path. 7916ac_x_libraries= 7917else 7918 echo "$as_me: failed program was:" >&5 7919cat conftest.$ac_ext >&5 7920LIBS=$ac_save_LIBS 7921for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 7922do 7923 # Don't even attempt the hair of trying to link an X program! 7924 for ac_extension in a so sl dylib dll; do 7925 if test -r $ac_dir/libXt.$ac_extension; then 7926 ac_x_libraries=$ac_dir 7927 break 2 7928 fi 7929 done 7930done 7931fi 7932rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7933fi # $ac_x_libraries = no 7934 7935if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 7936 # Didn't find X anywhere. Cache the known absence of X. 7937 ac_cv_have_x="have_x=no" 7938else 7939 # Record where we found X for the cache. 7940 ac_cv_have_x="have_x=yes \ 7941 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 7942fi 7943fi 7944 7945 fi 7946 eval "$ac_cv_have_x" 7947fi # $with_x != no 7948 7949if test "$have_x" != yes; then 7950 echo "$as_me:7950: result: $have_x" >&5 7951echo "${ECHO_T}$have_x" >&6 7952 no_x=yes 7953else 7954 # If each of the values was on the command line, it overrides each guess. 7955 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 7956 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 7957 # Update the cache value to reflect the command line values. 7958 ac_cv_have_x="have_x=yes \ 7959 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 7960 echo "$as_me:7960: result: libraries $x_libraries, headers $x_includes" >&5 7961echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 7962fi 7963 7964if test "$no_x" = yes; then 7965 # Not all programs may use this symbol, but it does not hurt to define it. 7966 7967cat >>confdefs.h <<\EOF 7968#define X_DISPLAY_MISSING 1 7969EOF 7970 7971 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 7972else 7973 if test -n "$x_includes"; then 7974 X_CFLAGS="$X_CFLAGS -I$x_includes" 7975 fi 7976 7977 # It would also be nice to do this for all -L options, not just this one. 7978 if test -n "$x_libraries"; then 7979 X_LIBS="$X_LIBS -L$x_libraries" 7980 # For Solaris; some versions of Sun CC require a space after -R and 7981 # others require no space. Words are not sufficient . . . . 7982 case `(uname -sr) 2>/dev/null` in 7983 "SunOS 5"*) 7984 echo "$as_me:7984: checking whether -R must be followed by a space" >&5 7985echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 7986 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 7987 cat >conftest.$ac_ext <<_ACEOF 7988#line 7988 "configure" 7989#include "confdefs.h" 7990 7991int 7992main () 7993{ 7994 7995 ; 7996 return 0; 7997} 7998_ACEOF 7999rm -f conftest.$ac_objext conftest$ac_exeext 8000if { (eval echo "$as_me:8000: \"$ac_link\"") >&5 8001 (eval $ac_link) 2>&5 8002 ac_status=$? 8003 echo "$as_me:8003: \$? = $ac_status" >&5 8004 (exit $ac_status); } && 8005 { ac_try='test -s conftest$ac_exeext' 8006 { (eval echo "$as_me:8006: \"$ac_try\"") >&5 8007 (eval $ac_try) 2>&5 8008 ac_status=$? 8009 echo "$as_me:8009: \$? = $ac_status" >&5 8010 (exit $ac_status); }; }; then 8011 ac_R_nospace=yes 8012else 8013 echo "$as_me: failed program was:" >&5 8014cat conftest.$ac_ext >&5 8015ac_R_nospace=no 8016fi 8017rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8018 if test $ac_R_nospace = yes; then 8019 echo "$as_me:8019: result: no" >&5 8020echo "${ECHO_T}no" >&6 8021 X_LIBS="$X_LIBS -R$x_libraries" 8022 else 8023 LIBS="$ac_xsave_LIBS -R $x_libraries" 8024 cat >conftest.$ac_ext <<_ACEOF 8025#line 8025 "configure" 8026#include "confdefs.h" 8027 8028int 8029main () 8030{ 8031 8032 ; 8033 return 0; 8034} 8035_ACEOF 8036rm -f conftest.$ac_objext conftest$ac_exeext 8037if { (eval echo "$as_me:8037: \"$ac_link\"") >&5 8038 (eval $ac_link) 2>&5 8039 ac_status=$? 8040 echo "$as_me:8040: \$? = $ac_status" >&5 8041 (exit $ac_status); } && 8042 { ac_try='test -s conftest$ac_exeext' 8043 { (eval echo "$as_me:8043: \"$ac_try\"") >&5 8044 (eval $ac_try) 2>&5 8045 ac_status=$? 8046 echo "$as_me:8046: \$? = $ac_status" >&5 8047 (exit $ac_status); }; }; then 8048 ac_R_space=yes 8049else 8050 echo "$as_me: failed program was:" >&5 8051cat conftest.$ac_ext >&5 8052ac_R_space=no 8053fi 8054rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8055 if test $ac_R_space = yes; then 8056 echo "$as_me:8056: result: yes" >&5 8057echo "${ECHO_T}yes" >&6 8058 X_LIBS="$X_LIBS -R $x_libraries" 8059 else 8060 echo "$as_me:8060: result: neither works" >&5 8061echo "${ECHO_T}neither works" >&6 8062 fi 8063 fi 8064 LIBS=$ac_xsave_LIBS 8065 esac 8066 fi 8067 8068 # Check for system-dependent libraries X programs must link with. 8069 # Do this before checking for the system-independent R6 libraries 8070 # (-lICE), since we may need -lsocket or whatever for X linking. 8071 8072 if test "$ISC" = yes; then 8073 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 8074 else 8075 # Martyn Johnson says this is needed for Ultrix, if the X 8076 # libraries were built with DECnet support. And Karl Berry says 8077 # the Alpha needs dnet_stub (dnet does not exist). 8078 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 8079 cat >conftest.$ac_ext <<_ACEOF 8080#line 8080 "configure" 8081#include "confdefs.h" 8082 8083/* Override any gcc2 internal prototype to avoid an error. */ 8084#ifdef __cplusplus 8085extern "C" 8086#endif 8087/* We use char because int might match the return type of a gcc2 8088 builtin and then its argument prototype would still apply. */ 8089char XOpenDisplay (); 8090int 8091main () 8092{ 8093XOpenDisplay (); 8094 ; 8095 return 0; 8096} 8097_ACEOF 8098rm -f conftest.$ac_objext conftest$ac_exeext 8099if { (eval echo "$as_me:8099: \"$ac_link\"") >&5 8100 (eval $ac_link) 2>&5 8101 ac_status=$? 8102 echo "$as_me:8102: \$? = $ac_status" >&5 8103 (exit $ac_status); } && 8104 { ac_try='test -s conftest$ac_exeext' 8105 { (eval echo "$as_me:8105: \"$ac_try\"") >&5 8106 (eval $ac_try) 2>&5 8107 ac_status=$? 8108 echo "$as_me:8108: \$? = $ac_status" >&5 8109 (exit $ac_status); }; }; then 8110 : 8111else 8112 echo "$as_me: failed program was:" >&5 8113cat conftest.$ac_ext >&5 8114echo "$as_me:8114: checking for dnet_ntoa in -ldnet" >&5 8115echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 8116if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 8117 echo $ECHO_N "(cached) $ECHO_C" >&6 8118else 8119 ac_check_lib_save_LIBS=$LIBS 8120LIBS="-ldnet $LIBS" 8121cat >conftest.$ac_ext <<_ACEOF 8122#line 8122 "configure" 8123#include "confdefs.h" 8124 8125/* Override any gcc2 internal prototype to avoid an error. */ 8126#ifdef __cplusplus 8127extern "C" 8128#endif 8129/* We use char because int might match the return type of a gcc2 8130 builtin and then its argument prototype would still apply. */ 8131char dnet_ntoa (); 8132int 8133main () 8134{ 8135dnet_ntoa (); 8136 ; 8137 return 0; 8138} 8139_ACEOF 8140rm -f conftest.$ac_objext conftest$ac_exeext 8141if { (eval echo "$as_me:8141: \"$ac_link\"") >&5 8142 (eval $ac_link) 2>&5 8143 ac_status=$? 8144 echo "$as_me:8144: \$? = $ac_status" >&5 8145 (exit $ac_status); } && 8146 { ac_try='test -s conftest$ac_exeext' 8147 { (eval echo "$as_me:8147: \"$ac_try\"") >&5 8148 (eval $ac_try) 2>&5 8149 ac_status=$? 8150 echo "$as_me:8150: \$? = $ac_status" >&5 8151 (exit $ac_status); }; }; then 8152 ac_cv_lib_dnet_dnet_ntoa=yes 8153else 8154 echo "$as_me: failed program was:" >&5 8155cat conftest.$ac_ext >&5 8156ac_cv_lib_dnet_dnet_ntoa=no 8157fi 8158rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8159LIBS=$ac_check_lib_save_LIBS 8160fi 8161echo "$as_me:8161: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 8162echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 8163if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 8164 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 8165fi 8166 8167 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 8168 echo "$as_me:8168: checking for dnet_ntoa in -ldnet_stub" >&5 8169echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 8170if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 8171 echo $ECHO_N "(cached) $ECHO_C" >&6 8172else 8173 ac_check_lib_save_LIBS=$LIBS 8174LIBS="-ldnet_stub $LIBS" 8175cat >conftest.$ac_ext <<_ACEOF 8176#line 8176 "configure" 8177#include "confdefs.h" 8178 8179/* Override any gcc2 internal prototype to avoid an error. */ 8180#ifdef __cplusplus 8181extern "C" 8182#endif 8183/* We use char because int might match the return type of a gcc2 8184 builtin and then its argument prototype would still apply. */ 8185char dnet_ntoa (); 8186int 8187main () 8188{ 8189dnet_ntoa (); 8190 ; 8191 return 0; 8192} 8193_ACEOF 8194rm -f conftest.$ac_objext conftest$ac_exeext 8195if { (eval echo "$as_me:8195: \"$ac_link\"") >&5 8196 (eval $ac_link) 2>&5 8197 ac_status=$? 8198 echo "$as_me:8198: \$? = $ac_status" >&5 8199 (exit $ac_status); } && 8200 { ac_try='test -s conftest$ac_exeext' 8201 { (eval echo "$as_me:8201: \"$ac_try\"") >&5 8202 (eval $ac_try) 2>&5 8203 ac_status=$? 8204 echo "$as_me:8204: \$? = $ac_status" >&5 8205 (exit $ac_status); }; }; then 8206 ac_cv_lib_dnet_stub_dnet_ntoa=yes 8207else 8208 echo "$as_me: failed program was:" >&5 8209cat conftest.$ac_ext >&5 8210ac_cv_lib_dnet_stub_dnet_ntoa=no 8211fi 8212rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8213LIBS=$ac_check_lib_save_LIBS 8214fi 8215echo "$as_me:8215: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 8216echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 8217if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 8218 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 8219fi 8220 8221 fi 8222fi 8223rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8224 LIBS="$ac_xsave_LIBS" 8225 8226 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 8227 # to get the SysV transport functions. 8228 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 8229 # needs -lnsl. 8230 # The nsl library prevents programs from opening the X display 8231 # on Irix 5.2, according to T.E. Dickey. 8232 # The functions gethostbyname, getservbyname, and inet_addr are 8233 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 8234 echo "$as_me:8234: checking for gethostbyname" >&5 8235echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 8236if test "${ac_cv_func_gethostbyname+set}" = set; then 8237 echo $ECHO_N "(cached) $ECHO_C" >&6 8238else 8239 cat >conftest.$ac_ext <<_ACEOF 8240#line 8240 "configure" 8241#include "confdefs.h" 8242/* System header to define __stub macros and hopefully few prototypes, 8243 which can conflict with char gethostbyname (); below. */ 8244#include <assert.h> 8245/* Override any gcc2 internal prototype to avoid an error. */ 8246#ifdef __cplusplus 8247extern "C" 8248#endif 8249/* We use char because int might match the return type of a gcc2 8250 builtin and then its argument prototype would still apply. */ 8251char gethostbyname (); 8252char (*f) (); 8253 8254int 8255main () 8256{ 8257/* The GNU C library defines this for functions which it implements 8258 to always fail with ENOSYS. Some functions are actually named 8259 something starting with __ and the normal name is an alias. */ 8260#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 8261choke me 8262#else 8263f = gethostbyname; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 8264#endif 8265 8266 ; 8267 return 0; 8268} 8269_ACEOF 8270rm -f conftest.$ac_objext conftest$ac_exeext 8271if { (eval echo "$as_me:8271: \"$ac_link\"") >&5 8272 (eval $ac_link) 2>&5 8273 ac_status=$? 8274 echo "$as_me:8274: \$? = $ac_status" >&5 8275 (exit $ac_status); } && 8276 { ac_try='test -s conftest$ac_exeext' 8277 { (eval echo "$as_me:8277: \"$ac_try\"") >&5 8278 (eval $ac_try) 2>&5 8279 ac_status=$? 8280 echo "$as_me:8280: \$? = $ac_status" >&5 8281 (exit $ac_status); }; }; then 8282 ac_cv_func_gethostbyname=yes 8283else 8284 echo "$as_me: failed program was:" >&5 8285cat conftest.$ac_ext >&5 8286ac_cv_func_gethostbyname=no 8287fi 8288rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8289fi 8290echo "$as_me:8290: result: $ac_cv_func_gethostbyname" >&5 8291echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 8292 8293 if test $ac_cv_func_gethostbyname = no; then 8294 echo "$as_me:8294: checking for gethostbyname in -lnsl" >&5 8295echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 8296if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 8297 echo $ECHO_N "(cached) $ECHO_C" >&6 8298else 8299 ac_check_lib_save_LIBS=$LIBS 8300LIBS="-lnsl $LIBS" 8301cat >conftest.$ac_ext <<_ACEOF 8302#line 8302 "configure" 8303#include "confdefs.h" 8304 8305/* Override any gcc2 internal prototype to avoid an error. */ 8306#ifdef __cplusplus 8307extern "C" 8308#endif 8309/* We use char because int might match the return type of a gcc2 8310 builtin and then its argument prototype would still apply. */ 8311char gethostbyname (); 8312int 8313main () 8314{ 8315gethostbyname (); 8316 ; 8317 return 0; 8318} 8319_ACEOF 8320rm -f conftest.$ac_objext conftest$ac_exeext 8321if { (eval echo "$as_me:8321: \"$ac_link\"") >&5 8322 (eval $ac_link) 2>&5 8323 ac_status=$? 8324 echo "$as_me:8324: \$? = $ac_status" >&5 8325 (exit $ac_status); } && 8326 { ac_try='test -s conftest$ac_exeext' 8327 { (eval echo "$as_me:8327: \"$ac_try\"") >&5 8328 (eval $ac_try) 2>&5 8329 ac_status=$? 8330 echo "$as_me:8330: \$? = $ac_status" >&5 8331 (exit $ac_status); }; }; then 8332 ac_cv_lib_nsl_gethostbyname=yes 8333else 8334 echo "$as_me: failed program was:" >&5 8335cat conftest.$ac_ext >&5 8336ac_cv_lib_nsl_gethostbyname=no 8337fi 8338rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8339LIBS=$ac_check_lib_save_LIBS 8340fi 8341echo "$as_me:8341: result: $ac_cv_lib_nsl_gethostbyname" >&5 8342echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 8343if test $ac_cv_lib_nsl_gethostbyname = yes; then 8344 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 8345fi 8346 8347 if test $ac_cv_lib_nsl_gethostbyname = no; then 8348 echo "$as_me:8348: checking for gethostbyname in -lbsd" >&5 8349echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 8350if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 8351 echo $ECHO_N "(cached) $ECHO_C" >&6 8352else 8353 ac_check_lib_save_LIBS=$LIBS 8354LIBS="-lbsd $LIBS" 8355cat >conftest.$ac_ext <<_ACEOF 8356#line 8356 "configure" 8357#include "confdefs.h" 8358 8359/* Override any gcc2 internal prototype to avoid an error. */ 8360#ifdef __cplusplus 8361extern "C" 8362#endif 8363/* We use char because int might match the return type of a gcc2 8364 builtin and then its argument prototype would still apply. */ 8365char gethostbyname (); 8366int 8367main () 8368{ 8369gethostbyname (); 8370 ; 8371 return 0; 8372} 8373_ACEOF 8374rm -f conftest.$ac_objext conftest$ac_exeext 8375if { (eval echo "$as_me:8375: \"$ac_link\"") >&5 8376 (eval $ac_link) 2>&5 8377 ac_status=$? 8378 echo "$as_me:8378: \$? = $ac_status" >&5 8379 (exit $ac_status); } && 8380 { ac_try='test -s conftest$ac_exeext' 8381 { (eval echo "$as_me:8381: \"$ac_try\"") >&5 8382 (eval $ac_try) 2>&5 8383 ac_status=$? 8384 echo "$as_me:8384: \$? = $ac_status" >&5 8385 (exit $ac_status); }; }; then 8386 ac_cv_lib_bsd_gethostbyname=yes 8387else 8388 echo "$as_me: failed program was:" >&5 8389cat conftest.$ac_ext >&5 8390ac_cv_lib_bsd_gethostbyname=no 8391fi 8392rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8393LIBS=$ac_check_lib_save_LIBS 8394fi 8395echo "$as_me:8395: result: $ac_cv_lib_bsd_gethostbyname" >&5 8396echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 8397if test $ac_cv_lib_bsd_gethostbyname = yes; then 8398 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 8399fi 8400 8401 fi 8402 fi 8403 8404 # lieder@skyler.mavd.honeywell.com says without -lsocket, 8405 # socket/setsockopt and other routines are undefined under SCO ODT 8406 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 8407 # on later versions), says Simon Leinen: it contains gethostby* 8408 # variants that don't use the nameserver (or something). -lsocket 8409 # must be given before -lnsl if both are needed. We assume that 8410 # if connect needs -lnsl, so does gethostbyname. 8411 echo "$as_me:8411: checking for connect" >&5 8412echo $ECHO_N "checking for connect... $ECHO_C" >&6 8413if test "${ac_cv_func_connect+set}" = set; then 8414 echo $ECHO_N "(cached) $ECHO_C" >&6 8415else 8416 cat >conftest.$ac_ext <<_ACEOF 8417#line 8417 "configure" 8418#include "confdefs.h" 8419/* System header to define __stub macros and hopefully few prototypes, 8420 which can conflict with char connect (); below. */ 8421#include <assert.h> 8422/* Override any gcc2 internal prototype to avoid an error. */ 8423#ifdef __cplusplus 8424extern "C" 8425#endif 8426/* We use char because int might match the return type of a gcc2 8427 builtin and then its argument prototype would still apply. */ 8428char connect (); 8429char (*f) (); 8430 8431int 8432main () 8433{ 8434/* The GNU C library defines this for functions which it implements 8435 to always fail with ENOSYS. Some functions are actually named 8436 something starting with __ and the normal name is an alias. */ 8437#if defined (__stub_connect) || defined (__stub___connect) 8438choke me 8439#else 8440f = connect; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 8441#endif 8442 8443 ; 8444 return 0; 8445} 8446_ACEOF 8447rm -f conftest.$ac_objext conftest$ac_exeext 8448if { (eval echo "$as_me:8448: \"$ac_link\"") >&5 8449 (eval $ac_link) 2>&5 8450 ac_status=$? 8451 echo "$as_me:8451: \$? = $ac_status" >&5 8452 (exit $ac_status); } && 8453 { ac_try='test -s conftest$ac_exeext' 8454 { (eval echo "$as_me:8454: \"$ac_try\"") >&5 8455 (eval $ac_try) 2>&5 8456 ac_status=$? 8457 echo "$as_me:8457: \$? = $ac_status" >&5 8458 (exit $ac_status); }; }; then 8459 ac_cv_func_connect=yes 8460else 8461 echo "$as_me: failed program was:" >&5 8462cat conftest.$ac_ext >&5 8463ac_cv_func_connect=no 8464fi 8465rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8466fi 8467echo "$as_me:8467: result: $ac_cv_func_connect" >&5 8468echo "${ECHO_T}$ac_cv_func_connect" >&6 8469 8470 if test $ac_cv_func_connect = no; then 8471 echo "$as_me:8471: checking for connect in -lsocket" >&5 8472echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 8473if test "${ac_cv_lib_socket_connect+set}" = set; then 8474 echo $ECHO_N "(cached) $ECHO_C" >&6 8475else 8476 ac_check_lib_save_LIBS=$LIBS 8477LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 8478cat >conftest.$ac_ext <<_ACEOF 8479#line 8479 "configure" 8480#include "confdefs.h" 8481 8482/* Override any gcc2 internal prototype to avoid an error. */ 8483#ifdef __cplusplus 8484extern "C" 8485#endif 8486/* We use char because int might match the return type of a gcc2 8487 builtin and then its argument prototype would still apply. */ 8488char connect (); 8489int 8490main () 8491{ 8492connect (); 8493 ; 8494 return 0; 8495} 8496_ACEOF 8497rm -f conftest.$ac_objext conftest$ac_exeext 8498if { (eval echo "$as_me:8498: \"$ac_link\"") >&5 8499 (eval $ac_link) 2>&5 8500 ac_status=$? 8501 echo "$as_me:8501: \$? = $ac_status" >&5 8502 (exit $ac_status); } && 8503 { ac_try='test -s conftest$ac_exeext' 8504 { (eval echo "$as_me:8504: \"$ac_try\"") >&5 8505 (eval $ac_try) 2>&5 8506 ac_status=$? 8507 echo "$as_me:8507: \$? = $ac_status" >&5 8508 (exit $ac_status); }; }; then 8509 ac_cv_lib_socket_connect=yes 8510else 8511 echo "$as_me: failed program was:" >&5 8512cat conftest.$ac_ext >&5 8513ac_cv_lib_socket_connect=no 8514fi 8515rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8516LIBS=$ac_check_lib_save_LIBS 8517fi 8518echo "$as_me:8518: result: $ac_cv_lib_socket_connect" >&5 8519echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 8520if test $ac_cv_lib_socket_connect = yes; then 8521 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 8522fi 8523 8524 fi 8525 8526 # Guillermo Gomez says -lposix is necessary on A/UX. 8527 echo "$as_me:8527: checking for remove" >&5 8528echo $ECHO_N "checking for remove... $ECHO_C" >&6 8529if test "${ac_cv_func_remove+set}" = set; then 8530 echo $ECHO_N "(cached) $ECHO_C" >&6 8531else 8532 cat >conftest.$ac_ext <<_ACEOF 8533#line 8533 "configure" 8534#include "confdefs.h" 8535/* System header to define __stub macros and hopefully few prototypes, 8536 which can conflict with char remove (); below. */ 8537#include <assert.h> 8538/* Override any gcc2 internal prototype to avoid an error. */ 8539#ifdef __cplusplus 8540extern "C" 8541#endif 8542/* We use char because int might match the return type of a gcc2 8543 builtin and then its argument prototype would still apply. */ 8544char remove (); 8545char (*f) (); 8546 8547int 8548main () 8549{ 8550/* The GNU C library defines this for functions which it implements 8551 to always fail with ENOSYS. Some functions are actually named 8552 something starting with __ and the normal name is an alias. */ 8553#if defined (__stub_remove) || defined (__stub___remove) 8554choke me 8555#else 8556f = remove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 8557#endif 8558 8559 ; 8560 return 0; 8561} 8562_ACEOF 8563rm -f conftest.$ac_objext conftest$ac_exeext 8564if { (eval echo "$as_me:8564: \"$ac_link\"") >&5 8565 (eval $ac_link) 2>&5 8566 ac_status=$? 8567 echo "$as_me:8567: \$? = $ac_status" >&5 8568 (exit $ac_status); } && 8569 { ac_try='test -s conftest$ac_exeext' 8570 { (eval echo "$as_me:8570: \"$ac_try\"") >&5 8571 (eval $ac_try) 2>&5 8572 ac_status=$? 8573 echo "$as_me:8573: \$? = $ac_status" >&5 8574 (exit $ac_status); }; }; then 8575 ac_cv_func_remove=yes 8576else 8577 echo "$as_me: failed program was:" >&5 8578cat conftest.$ac_ext >&5 8579ac_cv_func_remove=no 8580fi 8581rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8582fi 8583echo "$as_me:8583: result: $ac_cv_func_remove" >&5 8584echo "${ECHO_T}$ac_cv_func_remove" >&6 8585 8586 if test $ac_cv_func_remove = no; then 8587 echo "$as_me:8587: checking for remove in -lposix" >&5 8588echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 8589if test "${ac_cv_lib_posix_remove+set}" = set; then 8590 echo $ECHO_N "(cached) $ECHO_C" >&6 8591else 8592 ac_check_lib_save_LIBS=$LIBS 8593LIBS="-lposix $LIBS" 8594cat >conftest.$ac_ext <<_ACEOF 8595#line 8595 "configure" 8596#include "confdefs.h" 8597 8598/* Override any gcc2 internal prototype to avoid an error. */ 8599#ifdef __cplusplus 8600extern "C" 8601#endif 8602/* We use char because int might match the return type of a gcc2 8603 builtin and then its argument prototype would still apply. */ 8604char remove (); 8605int 8606main () 8607{ 8608remove (); 8609 ; 8610 return 0; 8611} 8612_ACEOF 8613rm -f conftest.$ac_objext conftest$ac_exeext 8614if { (eval echo "$as_me:8614: \"$ac_link\"") >&5 8615 (eval $ac_link) 2>&5 8616 ac_status=$? 8617 echo "$as_me:8617: \$? = $ac_status" >&5 8618 (exit $ac_status); } && 8619 { ac_try='test -s conftest$ac_exeext' 8620 { (eval echo "$as_me:8620: \"$ac_try\"") >&5 8621 (eval $ac_try) 2>&5 8622 ac_status=$? 8623 echo "$as_me:8623: \$? = $ac_status" >&5 8624 (exit $ac_status); }; }; then 8625 ac_cv_lib_posix_remove=yes 8626else 8627 echo "$as_me: failed program was:" >&5 8628cat conftest.$ac_ext >&5 8629ac_cv_lib_posix_remove=no 8630fi 8631rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8632LIBS=$ac_check_lib_save_LIBS 8633fi 8634echo "$as_me:8634: result: $ac_cv_lib_posix_remove" >&5 8635echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 8636if test $ac_cv_lib_posix_remove = yes; then 8637 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 8638fi 8639 8640 fi 8641 8642 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 8643 echo "$as_me:8643: checking for shmat" >&5 8644echo $ECHO_N "checking for shmat... $ECHO_C" >&6 8645if test "${ac_cv_func_shmat+set}" = set; then 8646 echo $ECHO_N "(cached) $ECHO_C" >&6 8647else 8648 cat >conftest.$ac_ext <<_ACEOF 8649#line 8649 "configure" 8650#include "confdefs.h" 8651/* System header to define __stub macros and hopefully few prototypes, 8652 which can conflict with char shmat (); below. */ 8653#include <assert.h> 8654/* Override any gcc2 internal prototype to avoid an error. */ 8655#ifdef __cplusplus 8656extern "C" 8657#endif 8658/* We use char because int might match the return type of a gcc2 8659 builtin and then its argument prototype would still apply. */ 8660char shmat (); 8661char (*f) (); 8662 8663int 8664main () 8665{ 8666/* The GNU C library defines this for functions which it implements 8667 to always fail with ENOSYS. Some functions are actually named 8668 something starting with __ and the normal name is an alias. */ 8669#if defined (__stub_shmat) || defined (__stub___shmat) 8670choke me 8671#else 8672f = shmat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 8673#endif 8674 8675 ; 8676 return 0; 8677} 8678_ACEOF 8679rm -f conftest.$ac_objext conftest$ac_exeext 8680if { (eval echo "$as_me:8680: \"$ac_link\"") >&5 8681 (eval $ac_link) 2>&5 8682 ac_status=$? 8683 echo "$as_me:8683: \$? = $ac_status" >&5 8684 (exit $ac_status); } && 8685 { ac_try='test -s conftest$ac_exeext' 8686 { (eval echo "$as_me:8686: \"$ac_try\"") >&5 8687 (eval $ac_try) 2>&5 8688 ac_status=$? 8689 echo "$as_me:8689: \$? = $ac_status" >&5 8690 (exit $ac_status); }; }; then 8691 ac_cv_func_shmat=yes 8692else 8693 echo "$as_me: failed program was:" >&5 8694cat conftest.$ac_ext >&5 8695ac_cv_func_shmat=no 8696fi 8697rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8698fi 8699echo "$as_me:8699: result: $ac_cv_func_shmat" >&5 8700echo "${ECHO_T}$ac_cv_func_shmat" >&6 8701 8702 if test $ac_cv_func_shmat = no; then 8703 echo "$as_me:8703: checking for shmat in -lipc" >&5 8704echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 8705if test "${ac_cv_lib_ipc_shmat+set}" = set; then 8706 echo $ECHO_N "(cached) $ECHO_C" >&6 8707else 8708 ac_check_lib_save_LIBS=$LIBS 8709LIBS="-lipc $LIBS" 8710cat >conftest.$ac_ext <<_ACEOF 8711#line 8711 "configure" 8712#include "confdefs.h" 8713 8714/* Override any gcc2 internal prototype to avoid an error. */ 8715#ifdef __cplusplus 8716extern "C" 8717#endif 8718/* We use char because int might match the return type of a gcc2 8719 builtin and then its argument prototype would still apply. */ 8720char shmat (); 8721int 8722main () 8723{ 8724shmat (); 8725 ; 8726 return 0; 8727} 8728_ACEOF 8729rm -f conftest.$ac_objext conftest$ac_exeext 8730if { (eval echo "$as_me:8730: \"$ac_link\"") >&5 8731 (eval $ac_link) 2>&5 8732 ac_status=$? 8733 echo "$as_me:8733: \$? = $ac_status" >&5 8734 (exit $ac_status); } && 8735 { ac_try='test -s conftest$ac_exeext' 8736 { (eval echo "$as_me:8736: \"$ac_try\"") >&5 8737 (eval $ac_try) 2>&5 8738 ac_status=$? 8739 echo "$as_me:8739: \$? = $ac_status" >&5 8740 (exit $ac_status); }; }; then 8741 ac_cv_lib_ipc_shmat=yes 8742else 8743 echo "$as_me: failed program was:" >&5 8744cat conftest.$ac_ext >&5 8745ac_cv_lib_ipc_shmat=no 8746fi 8747rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8748LIBS=$ac_check_lib_save_LIBS 8749fi 8750echo "$as_me:8750: result: $ac_cv_lib_ipc_shmat" >&5 8751echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 8752if test $ac_cv_lib_ipc_shmat = yes; then 8753 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 8754fi 8755 8756 fi 8757 fi 8758 8759 # Check for libraries that X11R6 Xt/Xaw programs need. 8760 ac_save_LDFLAGS=$LDFLAGS 8761 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 8762 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 8763 # check for ICE first), but we must link in the order -lSM -lICE or 8764 # we get undefined symbols. So assume we have SM if we have ICE. 8765 # These have to be linked with before -lX11, unlike the other 8766 # libraries we check for below, so use a different variable. 8767 # John Interrante, Karl Berry 8768 echo "$as_me:8768: checking for IceConnectionNumber in -lICE" >&5 8769echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 8770if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 8771 echo $ECHO_N "(cached) $ECHO_C" >&6 8772else 8773 ac_check_lib_save_LIBS=$LIBS 8774LIBS="-lICE $X_EXTRA_LIBS $LIBS" 8775cat >conftest.$ac_ext <<_ACEOF 8776#line 8776 "configure" 8777#include "confdefs.h" 8778 8779/* Override any gcc2 internal prototype to avoid an error. */ 8780#ifdef __cplusplus 8781extern "C" 8782#endif 8783/* We use char because int might match the return type of a gcc2 8784 builtin and then its argument prototype would still apply. */ 8785char IceConnectionNumber (); 8786int 8787main () 8788{ 8789IceConnectionNumber (); 8790 ; 8791 return 0; 8792} 8793_ACEOF 8794rm -f conftest.$ac_objext conftest$ac_exeext 8795if { (eval echo "$as_me:8795: \"$ac_link\"") >&5 8796 (eval $ac_link) 2>&5 8797 ac_status=$? 8798 echo "$as_me:8798: \$? = $ac_status" >&5 8799 (exit $ac_status); } && 8800 { ac_try='test -s conftest$ac_exeext' 8801 { (eval echo "$as_me:8801: \"$ac_try\"") >&5 8802 (eval $ac_try) 2>&5 8803 ac_status=$? 8804 echo "$as_me:8804: \$? = $ac_status" >&5 8805 (exit $ac_status); }; }; then 8806 ac_cv_lib_ICE_IceConnectionNumber=yes 8807else 8808 echo "$as_me: failed program was:" >&5 8809cat conftest.$ac_ext >&5 8810ac_cv_lib_ICE_IceConnectionNumber=no 8811fi 8812rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8813LIBS=$ac_check_lib_save_LIBS 8814fi 8815echo "$as_me:8815: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 8816echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 8817if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 8818 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 8819fi 8820 8821 LDFLAGS=$ac_save_LDFLAGS 8822 8823fi 8824 8825echo "$as_me:8825: checking if you want to use pkg-config" >&5 8826echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6 8827 8828# Check whether --with-pkg-config or --without-pkg-config was given. 8829if test "${with_pkg_config+set}" = set; then 8830 withval="$with_pkg_config" 8831 cf_pkg_config=$withval 8832else 8833 cf_pkg_config=yes 8834fi; 8835echo "$as_me:8835: result: $cf_pkg_config" >&5 8836echo "${ECHO_T}$cf_pkg_config" >&6 8837 8838case $cf_pkg_config in #(vi 8839no) #(vi 8840 PKG_CONFIG=none 8841 ;; 8842yes) #(vi 8843 8844if test -n "$ac_tool_prefix"; then 8845 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 8846set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 8847echo "$as_me:8847: checking for $ac_word" >&5 8848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8849if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 8850 echo $ECHO_N "(cached) $ECHO_C" >&6 8851else 8852 case $PKG_CONFIG in 8853 [\\/]* | ?:[\\/]*) 8854 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 8855 ;; 8856 *) 8857 ac_save_IFS=$IFS; IFS=$ac_path_separator 8858ac_dummy="$PATH" 8859for ac_dir in $ac_dummy; do 8860 IFS=$ac_save_IFS 8861 test -z "$ac_dir" && ac_dir=. 8862 if $as_executable_p "$ac_dir/$ac_word"; then 8863 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" 8864 echo "$as_me:8864: found $ac_dir/$ac_word" >&5 8865 break 8866fi 8867done 8868 8869 ;; 8870esac 8871fi 8872PKG_CONFIG=$ac_cv_path_PKG_CONFIG 8873 8874if test -n "$PKG_CONFIG"; then 8875 echo "$as_me:8875: result: $PKG_CONFIG" >&5 8876echo "${ECHO_T}$PKG_CONFIG" >&6 8877else 8878 echo "$as_me:8878: result: no" >&5 8879echo "${ECHO_T}no" >&6 8880fi 8881 8882fi 8883if test -z "$ac_cv_path_PKG_CONFIG"; then 8884 ac_pt_PKG_CONFIG=$PKG_CONFIG 8885 # Extract the first word of "pkg-config", so it can be a program name with args. 8886set dummy pkg-config; ac_word=$2 8887echo "$as_me:8887: checking for $ac_word" >&5 8888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8889if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 8890 echo $ECHO_N "(cached) $ECHO_C" >&6 8891else 8892 case $ac_pt_PKG_CONFIG in 8893 [\\/]* | ?:[\\/]*) 8894 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 8895 ;; 8896 *) 8897 ac_save_IFS=$IFS; IFS=$ac_path_separator 8898ac_dummy="$PATH" 8899for ac_dir in $ac_dummy; do 8900 IFS=$ac_save_IFS 8901 test -z "$ac_dir" && ac_dir=. 8902 if $as_executable_p "$ac_dir/$ac_word"; then 8903 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word" 8904 echo "$as_me:8904: found $ac_dir/$ac_word" >&5 8905 break 8906fi 8907done 8908 8909 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none" 8910 ;; 8911esac 8912fi 8913ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 8914 8915if test -n "$ac_pt_PKG_CONFIG"; then 8916 echo "$as_me:8916: result: $ac_pt_PKG_CONFIG" >&5 8917echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 8918else 8919 echo "$as_me:8919: result: no" >&5 8920echo "${ECHO_T}no" >&6 8921fi 8922 8923 PKG_CONFIG=$ac_pt_PKG_CONFIG 8924else 8925 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 8926fi 8927 8928 ;; 8929*) 8930 PKG_CONFIG=$withval 8931 ;; 8932esac 8933 8934test -z "$PKG_CONFIG" && PKG_CONFIG=none 8935if test "$PKG_CONFIG" != none ; then 8936 8937if test "x$prefix" != xNONE; then 8938 cf_path_syntax="$prefix" 8939else 8940 cf_path_syntax="$ac_default_prefix" 8941fi 8942 8943case ".$PKG_CONFIG" in #(vi 8944.\$\(*\)*|.\'*\'*) #(vi 8945 ;; 8946..|./*|.\\*) #(vi 8947 ;; 8948.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 8949 ;; 8950.\${*prefix}*|.\${*dir}*) #(vi 8951 eval PKG_CONFIG="$PKG_CONFIG" 8952 case ".$PKG_CONFIG" in #(vi 8953 .NONE/*) 8954 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%` 8955 ;; 8956 esac 8957 ;; #(vi 8958.no|.NONE/*) 8959 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%` 8960 ;; 8961*) 8962 { { echo "$as_me:8962: error: expected a pathname, not \"$PKG_CONFIG\"" >&5 8963echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;} 8964 { (exit 1); exit 1; }; } 8965 ;; 8966esac 8967 8968fi 8969 8970cf_have_X_LIBS=no 8971 8972if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then 8973 test -n "$verbose" && echo " found package xt" 1>&6 8974 8975echo "${as_me:-configure}:8975: testing found package xt ..." 1>&5 8976 8977 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`" 8978 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`" 8979 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6 8980 8981echo "${as_me:-configure}:8981: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5 8982 8983 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6 8984 8985echo "${as_me:-configure}:8985: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5 8986 8987cf_fix_cppflags=no 8988cf_new_cflags= 8989cf_new_cppflags= 8990cf_new_extra_cppflags= 8991 8992for cf_add_cflags in $cf_pkgconfig_incs 8993do 8994case $cf_fix_cppflags in 8995no) 8996 case $cf_add_cflags in #(vi 8997 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 8998 case $cf_add_cflags in 8999 -D*) 9000 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 9001 9002 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 9003 && test -z "${cf_tst_cflags}" \ 9004 && cf_fix_cppflags=yes 9005 9006 if test $cf_fix_cppflags = yes ; then 9007 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9008 continue 9009 elif test "${cf_tst_cflags}" = "\"'" ; then 9010 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9011 continue 9012 fi 9013 ;; 9014 esac 9015 case "$CPPFLAGS" in 9016 *$cf_add_cflags) #(vi 9017 ;; 9018 *) #(vi 9019 case $cf_add_cflags in #(vi 9020 -D*) 9021 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 9022 9023CPPFLAGS=`echo "$CPPFLAGS" | \ 9024 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 9025 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 9026 9027 ;; 9028 esac 9029 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 9030 ;; 9031 esac 9032 ;; 9033 *) 9034 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 9035 ;; 9036 esac 9037 ;; 9038yes) 9039 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9040 9041 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 9042 9043 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 9044 && test -z "${cf_tst_cflags}" \ 9045 && cf_fix_cppflags=no 9046 ;; 9047esac 9048done 9049 9050if test -n "$cf_new_cflags" ; then 9051 9052 CFLAGS="$CFLAGS $cf_new_cflags" 9053fi 9054 9055if test -n "$cf_new_cppflags" ; then 9056 9057 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 9058fi 9059 9060if test -n "$cf_new_extra_cppflags" ; then 9061 9062 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 9063fi 9064 9065 LIBS="$cf_pkgconfig_libs $LIBS" 9066 9067 case "x$LIBS" in #(vi 9068 *-lX11*) #(vi 9069 ;; 9070 *) 9071# we have an "xt" package, but it may omit Xt's dependency on X11 9072echo "$as_me:9072: checking for usable X dependency" >&5 9073echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6 9074if test "${cf_cv_xt_x11_compat+set}" = set; then 9075 echo $ECHO_N "(cached) $ECHO_C" >&6 9076else 9077 9078cat >conftest.$ac_ext <<_ACEOF 9079#line 9079 "configure" 9080#include "confdefs.h" 9081 9082#include <X11/Xlib.h> 9083 9084int 9085main () 9086{ 9087 9088 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0); 9089 int rc2 = XClearWindow((Display*) 0, (Window) 0); 9090 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0); 9091 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0); 9092 9093 ; 9094 return 0; 9095} 9096_ACEOF 9097rm -f conftest.$ac_objext conftest$ac_exeext 9098if { (eval echo "$as_me:9098: \"$ac_link\"") >&5 9099 (eval $ac_link) 2>&5 9100 ac_status=$? 9101 echo "$as_me:9101: \$? = $ac_status" >&5 9102 (exit $ac_status); } && 9103 { ac_try='test -s conftest$ac_exeext' 9104 { (eval echo "$as_me:9104: \"$ac_try\"") >&5 9105 (eval $ac_try) 2>&5 9106 ac_status=$? 9107 echo "$as_me:9107: \$? = $ac_status" >&5 9108 (exit $ac_status); }; }; then 9109 cf_cv_xt_x11_compat=yes 9110else 9111 echo "$as_me: failed program was:" >&5 9112cat conftest.$ac_ext >&5 9113cf_cv_xt_x11_compat=no 9114fi 9115rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9116fi 9117echo "$as_me:9117: result: $cf_cv_xt_x11_compat" >&5 9118echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6 9119 if test "$cf_cv_xt_x11_compat" = no 9120 then 9121 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6 9122 9123echo "${as_me:-configure}:9123: testing work around broken X11 dependency ..." 1>&5 9124 9125 # 2010/11/19 - good enough until a working Xt on Xcb is delivered. 9126 9127if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then 9128 test -n "$verbose" && echo " found package x11" 1>&6 9129 9130echo "${as_me:-configure}:9130: testing found package x11 ..." 1>&5 9131 9132 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`" 9133 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`" 9134 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6 9135 9136echo "${as_me:-configure}:9136: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 9137 9138 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6 9139 9140echo "${as_me:-configure}:9140: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5 9141 9142cf_fix_cppflags=no 9143cf_new_cflags= 9144cf_new_cppflags= 9145cf_new_extra_cppflags= 9146 9147for cf_add_cflags in $cf_pkgconfig_incs 9148do 9149case $cf_fix_cppflags in 9150no) 9151 case $cf_add_cflags in #(vi 9152 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 9153 case $cf_add_cflags in 9154 -D*) 9155 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 9156 9157 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 9158 && test -z "${cf_tst_cflags}" \ 9159 && cf_fix_cppflags=yes 9160 9161 if test $cf_fix_cppflags = yes ; then 9162 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9163 continue 9164 elif test "${cf_tst_cflags}" = "\"'" ; then 9165 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9166 continue 9167 fi 9168 ;; 9169 esac 9170 case "$CPPFLAGS" in 9171 *$cf_add_cflags) #(vi 9172 ;; 9173 *) #(vi 9174 case $cf_add_cflags in #(vi 9175 -D*) 9176 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 9177 9178CPPFLAGS=`echo "$CPPFLAGS" | \ 9179 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 9180 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 9181 9182 ;; 9183 esac 9184 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 9185 ;; 9186 esac 9187 ;; 9188 *) 9189 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 9190 ;; 9191 esac 9192 ;; 9193yes) 9194 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9195 9196 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 9197 9198 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 9199 && test -z "${cf_tst_cflags}" \ 9200 && cf_fix_cppflags=no 9201 ;; 9202esac 9203done 9204 9205if test -n "$cf_new_cflags" ; then 9206 9207 CFLAGS="$CFLAGS $cf_new_cflags" 9208fi 9209 9210if test -n "$cf_new_cppflags" ; then 9211 9212 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 9213fi 9214 9215if test -n "$cf_new_extra_cppflags" ; then 9216 9217 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 9218fi 9219 9220 LIBS="$cf_pkgconfig_libs $LIBS" 9221 : 9222else 9223 cf_pkgconfig_incs= 9224 cf_pkgconfig_libs= 9225 9226test -n "$verbose" && echo " ...before $LIBS" 1>&6 9227 9228echo "${as_me:-configure}:9228: testing ...before $LIBS ..." 1>&5 9229 9230LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'` 9231test -n "$verbose" && echo " ...after $LIBS" 1>&6 9232 9233echo "${as_me:-configure}:9233: testing ...after $LIBS ..." 1>&5 9234 9235fi 9236 9237 fi 9238 ;; 9239 esac 9240 9241echo "$as_me:9241: checking for usable X Toolkit package" >&5 9242echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6 9243if test "${cf_cv_xt_ice_compat+set}" = set; then 9244 echo $ECHO_N "(cached) $ECHO_C" >&6 9245else 9246 9247cat >conftest.$ac_ext <<_ACEOF 9248#line 9248 "configure" 9249#include "confdefs.h" 9250 9251#include <X11/Shell.h> 9252 9253int 9254main () 9255{ 9256int num = IceConnectionNumber(0) 9257 9258 ; 9259 return 0; 9260} 9261_ACEOF 9262rm -f conftest.$ac_objext conftest$ac_exeext 9263if { (eval echo "$as_me:9263: \"$ac_link\"") >&5 9264 (eval $ac_link) 2>&5 9265 ac_status=$? 9266 echo "$as_me:9266: \$? = $ac_status" >&5 9267 (exit $ac_status); } && 9268 { ac_try='test -s conftest$ac_exeext' 9269 { (eval echo "$as_me:9269: \"$ac_try\"") >&5 9270 (eval $ac_try) 2>&5 9271 ac_status=$? 9272 echo "$as_me:9272: \$? = $ac_status" >&5 9273 (exit $ac_status); }; }; then 9274 cf_cv_xt_ice_compat=yes 9275else 9276 echo "$as_me: failed program was:" >&5 9277cat conftest.$ac_ext >&5 9278cf_cv_xt_ice_compat=no 9279fi 9280rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9281fi 9282echo "$as_me:9282: result: $cf_cv_xt_ice_compat" >&5 9283echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6 9284 9285 if test "$cf_cv_xt_ice_compat" = no 9286 then 9287 # workaround for broken ".pc" files used for X Toolkit. 9288 case "x$X_PRE_LIBS" in #(vi 9289 *-lICE*) 9290 case "x$LIBS" in #(vi 9291 *-lICE*) #(vi 9292 ;; 9293 *) 9294 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6 9295 9296echo "${as_me:-configure}:9296: testing work around broken ICE dependency ..." 1>&5 9297 9298if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then 9299 test -n "$verbose" && echo " found package ice" 1>&6 9300 9301echo "${as_me:-configure}:9301: testing found package ice ..." 1>&5 9302 9303 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`" 9304 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`" 9305 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6 9306 9307echo "${as_me:-configure}:9307: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5 9308 9309 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6 9310 9311echo "${as_me:-configure}:9311: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5 9312 9313cf_fix_cppflags=no 9314cf_new_cflags= 9315cf_new_cppflags= 9316cf_new_extra_cppflags= 9317 9318for cf_add_cflags in $cf_pkgconfig_incs 9319do 9320case $cf_fix_cppflags in 9321no) 9322 case $cf_add_cflags in #(vi 9323 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 9324 case $cf_add_cflags in 9325 -D*) 9326 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 9327 9328 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 9329 && test -z "${cf_tst_cflags}" \ 9330 && cf_fix_cppflags=yes 9331 9332 if test $cf_fix_cppflags = yes ; then 9333 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9334 continue 9335 elif test "${cf_tst_cflags}" = "\"'" ; then 9336 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9337 continue 9338 fi 9339 ;; 9340 esac 9341 case "$CPPFLAGS" in 9342 *$cf_add_cflags) #(vi 9343 ;; 9344 *) #(vi 9345 case $cf_add_cflags in #(vi 9346 -D*) 9347 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 9348 9349CPPFLAGS=`echo "$CPPFLAGS" | \ 9350 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 9351 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 9352 9353 ;; 9354 esac 9355 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 9356 ;; 9357 esac 9358 ;; 9359 *) 9360 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 9361 ;; 9362 esac 9363 ;; 9364yes) 9365 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9366 9367 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 9368 9369 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 9370 && test -z "${cf_tst_cflags}" \ 9371 && cf_fix_cppflags=no 9372 ;; 9373esac 9374done 9375 9376if test -n "$cf_new_cflags" ; then 9377 9378 CFLAGS="$CFLAGS $cf_new_cflags" 9379fi 9380 9381if test -n "$cf_new_cppflags" ; then 9382 9383 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 9384fi 9385 9386if test -n "$cf_new_extra_cppflags" ; then 9387 9388 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 9389fi 9390 9391 LIBS="$cf_pkgconfig_libs $LIBS" 9392 9393if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then 9394 test -n "$verbose" && echo " found package sm" 1>&6 9395 9396echo "${as_me:-configure}:9396: testing found package sm ..." 1>&5 9397 9398 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`" 9399 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`" 9400 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6 9401 9402echo "${as_me:-configure}:9402: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5 9403 9404 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6 9405 9406echo "${as_me:-configure}:9406: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5 9407 9408cf_fix_cppflags=no 9409cf_new_cflags= 9410cf_new_cppflags= 9411cf_new_extra_cppflags= 9412 9413for cf_add_cflags in $cf_pkgconfig_incs 9414do 9415case $cf_fix_cppflags in 9416no) 9417 case $cf_add_cflags in #(vi 9418 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 9419 case $cf_add_cflags in 9420 -D*) 9421 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 9422 9423 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 9424 && test -z "${cf_tst_cflags}" \ 9425 && cf_fix_cppflags=yes 9426 9427 if test $cf_fix_cppflags = yes ; then 9428 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9429 continue 9430 elif test "${cf_tst_cflags}" = "\"'" ; then 9431 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9432 continue 9433 fi 9434 ;; 9435 esac 9436 case "$CPPFLAGS" in 9437 *$cf_add_cflags) #(vi 9438 ;; 9439 *) #(vi 9440 case $cf_add_cflags in #(vi 9441 -D*) 9442 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 9443 9444CPPFLAGS=`echo "$CPPFLAGS" | \ 9445 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 9446 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 9447 9448 ;; 9449 esac 9450 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 9451 ;; 9452 esac 9453 ;; 9454 *) 9455 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 9456 ;; 9457 esac 9458 ;; 9459yes) 9460 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9461 9462 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 9463 9464 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 9465 && test -z "${cf_tst_cflags}" \ 9466 && cf_fix_cppflags=no 9467 ;; 9468esac 9469done 9470 9471if test -n "$cf_new_cflags" ; then 9472 9473 CFLAGS="$CFLAGS $cf_new_cflags" 9474fi 9475 9476if test -n "$cf_new_cppflags" ; then 9477 9478 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 9479fi 9480 9481if test -n "$cf_new_extra_cppflags" ; then 9482 9483 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 9484fi 9485 9486 LIBS="$cf_pkgconfig_libs $LIBS" 9487 : 9488else 9489 cf_pkgconfig_incs= 9490 cf_pkgconfig_libs= 9491 : 9492fi 9493 9494else 9495 cf_pkgconfig_incs= 9496 cf_pkgconfig_libs= 9497 9498test -n "$verbose" && echo " ...before $LIBS" 1>&6 9499 9500echo "${as_me:-configure}:9500: testing ...before $LIBS ..." 1>&5 9501 9502LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'` 9503test -n "$verbose" && echo " ...after $LIBS" 1>&6 9504 9505echo "${as_me:-configure}:9505: testing ...after $LIBS ..." 1>&5 9506 9507fi 9508 9509 ;; 9510 esac 9511 ;; 9512 esac 9513 fi 9514 9515 cf_have_X_LIBS=yes 9516 9517else 9518 cf_pkgconfig_incs= 9519 cf_pkgconfig_libs= 9520 9521 LDFLAGS="$X_LIBS $LDFLAGS" 9522 9523test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6 9524 9525echo "${as_me:-configure}:9525: testing checking additions to CFLAGS ..." 1>&5 9526 9527cf_check_cflags="$CFLAGS" 9528cf_check_cppflags="$CPPFLAGS" 9529 9530cf_fix_cppflags=no 9531cf_new_cflags= 9532cf_new_cppflags= 9533cf_new_extra_cppflags= 9534 9535for cf_add_cflags in $X_CFLAGS 9536do 9537case $cf_fix_cppflags in 9538no) 9539 case $cf_add_cflags in #(vi 9540 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 9541 case $cf_add_cflags in 9542 -D*) 9543 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 9544 9545 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 9546 && test -z "${cf_tst_cflags}" \ 9547 && cf_fix_cppflags=yes 9548 9549 if test $cf_fix_cppflags = yes ; then 9550 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9551 continue 9552 elif test "${cf_tst_cflags}" = "\"'" ; then 9553 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9554 continue 9555 fi 9556 ;; 9557 esac 9558 case "$CPPFLAGS" in 9559 *$cf_add_cflags) #(vi 9560 ;; 9561 *) #(vi 9562 case $cf_add_cflags in #(vi 9563 -D*) 9564 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 9565 9566CPPFLAGS=`echo "$CPPFLAGS" | \ 9567 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 9568 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 9569 9570 ;; 9571 esac 9572 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 9573 ;; 9574 esac 9575 ;; 9576 *) 9577 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 9578 ;; 9579 esac 9580 ;; 9581yes) 9582 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9583 9584 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 9585 9586 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 9587 && test -z "${cf_tst_cflags}" \ 9588 && cf_fix_cppflags=no 9589 ;; 9590esac 9591done 9592 9593if test -n "$cf_new_cflags" ; then 9594 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 9595 9596echo "${as_me:-configure}:9596: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 9597 9598 CFLAGS="$CFLAGS $cf_new_cflags" 9599fi 9600 9601if test -n "$cf_new_cppflags" ; then 9602 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 9603 9604echo "${as_me:-configure}:9604: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 9605 9606 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 9607fi 9608 9609if test -n "$cf_new_extra_cppflags" ; then 9610 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6 9611 9612echo "${as_me:-configure}:9612: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5 9613 9614 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 9615fi 9616 9617if test "$cf_check_cflags" != "$CFLAGS" ; then 9618cat >conftest.$ac_ext <<_ACEOF 9619#line 9619 "configure" 9620#include "confdefs.h" 9621#include <stdio.h> 9622int 9623main () 9624{ 9625printf("Hello world"); 9626 ; 9627 return 0; 9628} 9629_ACEOF 9630rm -f conftest.$ac_objext conftest$ac_exeext 9631if { (eval echo "$as_me:9631: \"$ac_link\"") >&5 9632 (eval $ac_link) 2>&5 9633 ac_status=$? 9634 echo "$as_me:9634: \$? = $ac_status" >&5 9635 (exit $ac_status); } && 9636 { ac_try='test -s conftest$ac_exeext' 9637 { (eval echo "$as_me:9637: \"$ac_try\"") >&5 9638 (eval $ac_try) 2>&5 9639 ac_status=$? 9640 echo "$as_me:9640: \$? = $ac_status" >&5 9641 (exit $ac_status); }; }; then 9642 : 9643else 9644 echo "$as_me: failed program was:" >&5 9645cat conftest.$ac_ext >&5 9646test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6 9647 9648echo "${as_me:-configure}:9648: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5 9649 9650 if test "$cf_check_cppflags" != "$CPPFLAGS" ; then 9651 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6 9652 9653echo "${as_me:-configure}:9653: testing but keeping change to \$CPPFLAGS ..." 1>&5 9654 9655 fi 9656 CFLAGS="$cf_check_flags" 9657fi 9658rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9659fi 9660 9661 echo "$as_me:9661: checking for XOpenDisplay" >&5 9662echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6 9663if test "${ac_cv_func_XOpenDisplay+set}" = set; then 9664 echo $ECHO_N "(cached) $ECHO_C" >&6 9665else 9666 cat >conftest.$ac_ext <<_ACEOF 9667#line 9667 "configure" 9668#include "confdefs.h" 9669/* System header to define __stub macros and hopefully few prototypes, 9670 which can conflict with char XOpenDisplay (); below. */ 9671#include <assert.h> 9672/* Override any gcc2 internal prototype to avoid an error. */ 9673#ifdef __cplusplus 9674extern "C" 9675#endif 9676/* We use char because int might match the return type of a gcc2 9677 builtin and then its argument prototype would still apply. */ 9678char XOpenDisplay (); 9679char (*f) (); 9680 9681int 9682main () 9683{ 9684/* The GNU C library defines this for functions which it implements 9685 to always fail with ENOSYS. Some functions are actually named 9686 something starting with __ and the normal name is an alias. */ 9687#if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay) 9688choke me 9689#else 9690f = XOpenDisplay; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 9691#endif 9692 9693 ; 9694 return 0; 9695} 9696_ACEOF 9697rm -f conftest.$ac_objext conftest$ac_exeext 9698if { (eval echo "$as_me:9698: \"$ac_link\"") >&5 9699 (eval $ac_link) 2>&5 9700 ac_status=$? 9701 echo "$as_me:9701: \$? = $ac_status" >&5 9702 (exit $ac_status); } && 9703 { ac_try='test -s conftest$ac_exeext' 9704 { (eval echo "$as_me:9704: \"$ac_try\"") >&5 9705 (eval $ac_try) 2>&5 9706 ac_status=$? 9707 echo "$as_me:9707: \$? = $ac_status" >&5 9708 (exit $ac_status); }; }; then 9709 ac_cv_func_XOpenDisplay=yes 9710else 9711 echo "$as_me: failed program was:" >&5 9712cat conftest.$ac_ext >&5 9713ac_cv_func_XOpenDisplay=no 9714fi 9715rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9716fi 9717echo "$as_me:9717: result: $ac_cv_func_XOpenDisplay" >&5 9718echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6 9719if test $ac_cv_func_XOpenDisplay = yes; then 9720 : 9721else 9722 9723 echo "$as_me:9723: checking for XOpenDisplay in -lX11" >&5 9724echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6 9725if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then 9726 echo $ECHO_N "(cached) $ECHO_C" >&6 9727else 9728 ac_check_lib_save_LIBS=$LIBS 9729LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS" 9730cat >conftest.$ac_ext <<_ACEOF 9731#line 9731 "configure" 9732#include "confdefs.h" 9733 9734/* Override any gcc2 internal prototype to avoid an error. */ 9735#ifdef __cplusplus 9736extern "C" 9737#endif 9738/* We use char because int might match the return type of a gcc2 9739 builtin and then its argument prototype would still apply. */ 9740char XOpenDisplay (); 9741int 9742main () 9743{ 9744XOpenDisplay (); 9745 ; 9746 return 0; 9747} 9748_ACEOF 9749rm -f conftest.$ac_objext conftest$ac_exeext 9750if { (eval echo "$as_me:9750: \"$ac_link\"") >&5 9751 (eval $ac_link) 2>&5 9752 ac_status=$? 9753 echo "$as_me:9753: \$? = $ac_status" >&5 9754 (exit $ac_status); } && 9755 { ac_try='test -s conftest$ac_exeext' 9756 { (eval echo "$as_me:9756: \"$ac_try\"") >&5 9757 (eval $ac_try) 2>&5 9758 ac_status=$? 9759 echo "$as_me:9759: \$? = $ac_status" >&5 9760 (exit $ac_status); }; }; then 9761 ac_cv_lib_X11_XOpenDisplay=yes 9762else 9763 echo "$as_me: failed program was:" >&5 9764cat conftest.$ac_ext >&5 9765ac_cv_lib_X11_XOpenDisplay=no 9766fi 9767rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9768LIBS=$ac_check_lib_save_LIBS 9769fi 9770echo "$as_me:9770: result: $ac_cv_lib_X11_XOpenDisplay" >&5 9771echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6 9772if test $ac_cv_lib_X11_XOpenDisplay = yes; then 9773 LIBS="-lX11 $LIBS" 9774fi 9775 9776fi 9777 9778 echo "$as_me:9778: checking for XtAppInitialize" >&5 9779echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6 9780if test "${ac_cv_func_XtAppInitialize+set}" = set; then 9781 echo $ECHO_N "(cached) $ECHO_C" >&6 9782else 9783 cat >conftest.$ac_ext <<_ACEOF 9784#line 9784 "configure" 9785#include "confdefs.h" 9786/* System header to define __stub macros and hopefully few prototypes, 9787 which can conflict with char XtAppInitialize (); below. */ 9788#include <assert.h> 9789/* Override any gcc2 internal prototype to avoid an error. */ 9790#ifdef __cplusplus 9791extern "C" 9792#endif 9793/* We use char because int might match the return type of a gcc2 9794 builtin and then its argument prototype would still apply. */ 9795char XtAppInitialize (); 9796char (*f) (); 9797 9798int 9799main () 9800{ 9801/* The GNU C library defines this for functions which it implements 9802 to always fail with ENOSYS. Some functions are actually named 9803 something starting with __ and the normal name is an alias. */ 9804#if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize) 9805choke me 9806#else 9807f = XtAppInitialize; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 9808#endif 9809 9810 ; 9811 return 0; 9812} 9813_ACEOF 9814rm -f conftest.$ac_objext conftest$ac_exeext 9815if { (eval echo "$as_me:9815: \"$ac_link\"") >&5 9816 (eval $ac_link) 2>&5 9817 ac_status=$? 9818 echo "$as_me:9818: \$? = $ac_status" >&5 9819 (exit $ac_status); } && 9820 { ac_try='test -s conftest$ac_exeext' 9821 { (eval echo "$as_me:9821: \"$ac_try\"") >&5 9822 (eval $ac_try) 2>&5 9823 ac_status=$? 9824 echo "$as_me:9824: \$? = $ac_status" >&5 9825 (exit $ac_status); }; }; then 9826 ac_cv_func_XtAppInitialize=yes 9827else 9828 echo "$as_me: failed program was:" >&5 9829cat conftest.$ac_ext >&5 9830ac_cv_func_XtAppInitialize=no 9831fi 9832rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9833fi 9834echo "$as_me:9834: result: $ac_cv_func_XtAppInitialize" >&5 9835echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6 9836if test $ac_cv_func_XtAppInitialize = yes; then 9837 : 9838else 9839 9840 echo "$as_me:9840: checking for XtAppInitialize in -lXt" >&5 9841echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6 9842if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then 9843 echo $ECHO_N "(cached) $ECHO_C" >&6 9844else 9845 ac_check_lib_save_LIBS=$LIBS 9846LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS" 9847cat >conftest.$ac_ext <<_ACEOF 9848#line 9848 "configure" 9849#include "confdefs.h" 9850 9851/* Override any gcc2 internal prototype to avoid an error. */ 9852#ifdef __cplusplus 9853extern "C" 9854#endif 9855/* We use char because int might match the return type of a gcc2 9856 builtin and then its argument prototype would still apply. */ 9857char XtAppInitialize (); 9858int 9859main () 9860{ 9861XtAppInitialize (); 9862 ; 9863 return 0; 9864} 9865_ACEOF 9866rm -f conftest.$ac_objext conftest$ac_exeext 9867if { (eval echo "$as_me:9867: \"$ac_link\"") >&5 9868 (eval $ac_link) 2>&5 9869 ac_status=$? 9870 echo "$as_me:9870: \$? = $ac_status" >&5 9871 (exit $ac_status); } && 9872 { ac_try='test -s conftest$ac_exeext' 9873 { (eval echo "$as_me:9873: \"$ac_try\"") >&5 9874 (eval $ac_try) 2>&5 9875 ac_status=$? 9876 echo "$as_me:9876: \$? = $ac_status" >&5 9877 (exit $ac_status); }; }; then 9878 ac_cv_lib_Xt_XtAppInitialize=yes 9879else 9880 echo "$as_me: failed program was:" >&5 9881cat conftest.$ac_ext >&5 9882ac_cv_lib_Xt_XtAppInitialize=no 9883fi 9884rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9885LIBS=$ac_check_lib_save_LIBS 9886fi 9887echo "$as_me:9887: result: $ac_cv_lib_Xt_XtAppInitialize" >&5 9888echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6 9889if test $ac_cv_lib_Xt_XtAppInitialize = yes; then 9890 9891cat >>confdefs.h <<\EOF 9892#define HAVE_LIBXT 1 9893EOF 9894 9895 cf_have_X_LIBS=Xt 9896 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS" 9897fi 9898 9899fi 9900 9901fi 9902 9903if test $cf_have_X_LIBS = no ; then 9904 { echo "$as_me:9904: WARNING: Unable to successfully link X Toolkit library (-lXt) with 9905test program. You will have to check and add the proper libraries by hand 9906to makefile." >&5 9907echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with 9908test program. You will have to check and add the proper libraries by hand 9909to makefile." >&2;} 9910fi 9911 9912for ac_header in \ 9913 X11/DECkeysym.h \ 9914 X11/Sunkeysym.h \ 9915 X11/XF86keysym.h \ 9916 X11/XKBlib.h \ 9917 X11/Xpoll.h \ 9918 X11/extensions/XKB.h \ 9919 9920do 9921as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9922echo "$as_me:9922: checking for $ac_header" >&5 9923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9924if eval "test \"\${$as_ac_Header+set}\" = set"; then 9925 echo $ECHO_N "(cached) $ECHO_C" >&6 9926else 9927 cat >conftest.$ac_ext <<_ACEOF 9928#line 9928 "configure" 9929#include "confdefs.h" 9930#include <$ac_header> 9931_ACEOF 9932if { (eval echo "$as_me:9932: \"$ac_cpp conftest.$ac_ext\"") >&5 9933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9934 ac_status=$? 9935 egrep -v '^ *\+' conftest.er1 >conftest.err 9936 rm -f conftest.er1 9937 cat conftest.err >&5 9938 echo "$as_me:9938: \$? = $ac_status" >&5 9939 (exit $ac_status); } >/dev/null; then 9940 if test -s conftest.err; then 9941 ac_cpp_err=$ac_c_preproc_warn_flag 9942 else 9943 ac_cpp_err= 9944 fi 9945else 9946 ac_cpp_err=yes 9947fi 9948if test -z "$ac_cpp_err"; then 9949 eval "$as_ac_Header=yes" 9950else 9951 echo "$as_me: failed program was:" >&5 9952 cat conftest.$ac_ext >&5 9953 eval "$as_ac_Header=no" 9954fi 9955rm -f conftest.err conftest.$ac_ext 9956fi 9957echo "$as_me:9957: result: `eval echo '${'$as_ac_Header'}'`" >&5 9958echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9959if test `eval echo '${'$as_ac_Header'}'` = yes; then 9960 cat >>confdefs.h <<EOF 9961#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9962EOF 9963 9964fi 9965done 9966 9967ICON_SUFFIX=.xbm 9968 9969cf_save_cppflags="${CPPFLAGS}" 9970cf_save_ldflags="${LDFLAGS}" 9971 9972echo "$as_me:9972: checking if you want to use the Xpm library for colored icon" >&5 9973echo $ECHO_N "checking if you want to use the Xpm library for colored icon... $ECHO_C" >&6 9974 9975# Check whether --with-xpm or --without-xpm was given. 9976if test "${with_xpm+set}" = set; then 9977 withval="$with_xpm" 9978 cf_Xpm_library="$withval" 9979else 9980 cf_Xpm_library=yes 9981fi; 9982echo "$as_me:9982: result: $cf_Xpm_library" >&5 9983echo "${ECHO_T}$cf_Xpm_library" >&6 9984 9985if test "$cf_Xpm_library" != no ; then 9986 if test "$cf_Xpm_library" != yes ; then 9987 CPPFLAGS="$CPPFLAGS -I$withval/include" 9988 LDFLAGS="$LDFLAGS -L$withval/lib" 9989 fi 9990 echo "$as_me:9990: checking for X11/xpm.h" >&5 9991echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 9992if test "${ac_cv_header_X11_xpm_h+set}" = set; then 9993 echo $ECHO_N "(cached) $ECHO_C" >&6 9994else 9995 cat >conftest.$ac_ext <<_ACEOF 9996#line 9996 "configure" 9997#include "confdefs.h" 9998#include <X11/xpm.h> 9999_ACEOF 10000if { (eval echo "$as_me:10000: \"$ac_cpp conftest.$ac_ext\"") >&5 10001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10002 ac_status=$? 10003 egrep -v '^ *\+' conftest.er1 >conftest.err 10004 rm -f conftest.er1 10005 cat conftest.err >&5 10006 echo "$as_me:10006: \$? = $ac_status" >&5 10007 (exit $ac_status); } >/dev/null; then 10008 if test -s conftest.err; then 10009 ac_cpp_err=$ac_c_preproc_warn_flag 10010 else 10011 ac_cpp_err= 10012 fi 10013else 10014 ac_cpp_err=yes 10015fi 10016if test -z "$ac_cpp_err"; then 10017 ac_cv_header_X11_xpm_h=yes 10018else 10019 echo "$as_me: failed program was:" >&5 10020 cat conftest.$ac_ext >&5 10021 ac_cv_header_X11_xpm_h=no 10022fi 10023rm -f conftest.err conftest.$ac_ext 10024fi 10025echo "$as_me:10025: result: $ac_cv_header_X11_xpm_h" >&5 10026echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 10027if test $ac_cv_header_X11_xpm_h = yes; then 10028 10029 echo "$as_me:10029: checking for XpmCreatePixmapFromData in -lXpm" >&5 10030echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6 10031if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then 10032 echo $ECHO_N "(cached) $ECHO_C" >&6 10033else 10034 ac_check_lib_save_LIBS=$LIBS 10035LIBS="-lXpm -lX11 $X_LIBS $LIBS" 10036cat >conftest.$ac_ext <<_ACEOF 10037#line 10037 "configure" 10038#include "confdefs.h" 10039 10040/* Override any gcc2 internal prototype to avoid an error. */ 10041#ifdef __cplusplus 10042extern "C" 10043#endif 10044/* We use char because int might match the return type of a gcc2 10045 builtin and then its argument prototype would still apply. */ 10046char XpmCreatePixmapFromData (); 10047int 10048main () 10049{ 10050XpmCreatePixmapFromData (); 10051 ; 10052 return 0; 10053} 10054_ACEOF 10055rm -f conftest.$ac_objext conftest$ac_exeext 10056if { (eval echo "$as_me:10056: \"$ac_link\"") >&5 10057 (eval $ac_link) 2>&5 10058 ac_status=$? 10059 echo "$as_me:10059: \$? = $ac_status" >&5 10060 (exit $ac_status); } && 10061 { ac_try='test -s conftest$ac_exeext' 10062 { (eval echo "$as_me:10062: \"$ac_try\"") >&5 10063 (eval $ac_try) 2>&5 10064 ac_status=$? 10065 echo "$as_me:10065: \$? = $ac_status" >&5 10066 (exit $ac_status); }; }; then 10067 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes 10068else 10069 echo "$as_me: failed program was:" >&5 10070cat conftest.$ac_ext >&5 10071ac_cv_lib_Xpm_XpmCreatePixmapFromData=no 10072fi 10073rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10074LIBS=$ac_check_lib_save_LIBS 10075fi 10076echo "$as_me:10076: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 10077echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6 10078if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then 10079 10080cat >>confdefs.h <<\EOF 10081#define HAVE_LIBXPM 1 10082EOF 10083 10084 ICON_SUFFIX=.xpm 10085 LIBS="-lXpm $LIBS" 10086else 10087 CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}" 10088fi 10089 10090else 10091 CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}" 10092fi 10093 10094fi 10095 10096cf_x_athena=${cf_x_athena:-Xaw} 10097 10098echo "$as_me:10098: checking if you want to link with Xaw 3d library" >&5 10099echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6 10100withval= 10101 10102# Check whether --with-Xaw3d or --without-Xaw3d was given. 10103if test "${with_Xaw3d+set}" = set; then 10104 withval="$with_Xaw3d" 10105 10106fi; 10107if test "$withval" = yes ; then 10108 cf_x_athena=Xaw3d 10109 echo "$as_me:10109: result: yes" >&5 10110echo "${ECHO_T}yes" >&6 10111else 10112 echo "$as_me:10112: result: no" >&5 10113echo "${ECHO_T}no" >&6 10114fi 10115 10116echo "$as_me:10116: checking if you want to link with neXT Athena library" >&5 10117echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6 10118withval= 10119 10120# Check whether --with-neXtaw or --without-neXtaw was given. 10121if test "${with_neXtaw+set}" = set; then 10122 withval="$with_neXtaw" 10123 10124fi; 10125if test "$withval" = yes ; then 10126 cf_x_athena=neXtaw 10127 echo "$as_me:10127: result: yes" >&5 10128echo "${ECHO_T}yes" >&6 10129else 10130 echo "$as_me:10130: result: no" >&5 10131echo "${ECHO_T}no" >&6 10132fi 10133 10134echo "$as_me:10134: checking if you want to link with Athena-Plus library" >&5 10135echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6 10136withval= 10137 10138# Check whether --with-XawPlus or --without-XawPlus was given. 10139if test "${with_XawPlus+set}" = set; then 10140 withval="$with_XawPlus" 10141 10142fi; 10143if test "$withval" = yes ; then 10144 cf_x_athena=XawPlus 10145 echo "$as_me:10145: result: yes" >&5 10146echo "${ECHO_T}yes" >&6 10147else 10148 echo "$as_me:10148: result: no" >&5 10149echo "${ECHO_T}no" >&6 10150fi 10151 10152cf_x_athena_lib="" 10153 10154if test "$PKG_CONFIG" != none ; then 10155 cf_athena_list= 10156 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6" 10157 for cf_athena_pkg in \ 10158 $cf_athena_list \ 10159 ${cf_x_athena} \ 10160 ${cf_x_athena}-devel \ 10161 lib${cf_x_athena} \ 10162 lib${cf_x_athena}-devel 10163 do 10164 10165if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists $cf_athena_pkg; then 10166 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6 10167 10168echo "${as_me:-configure}:10168: testing found package $cf_athena_pkg ..." 1>&5 10169 10170 cf_pkgconfig_incs="`$PKG_CONFIG --cflags $cf_athena_pkg 2>/dev/null`" 10171 cf_pkgconfig_libs="`$PKG_CONFIG --libs $cf_athena_pkg 2>/dev/null`" 10172 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6 10173 10174echo "${as_me:-configure}:10174: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5 10175 10176 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6 10177 10178echo "${as_me:-configure}:10178: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5 10179 10180cf_fix_cppflags=no 10181cf_new_cflags= 10182cf_new_cppflags= 10183cf_new_extra_cppflags= 10184 10185for cf_add_cflags in $cf_pkgconfig_incs 10186do 10187case $cf_fix_cppflags in 10188no) 10189 case $cf_add_cflags in #(vi 10190 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 10191 case $cf_add_cflags in 10192 -D*) 10193 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 10194 10195 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 10196 && test -z "${cf_tst_cflags}" \ 10197 && cf_fix_cppflags=yes 10198 10199 if test $cf_fix_cppflags = yes ; then 10200 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10201 continue 10202 elif test "${cf_tst_cflags}" = "\"'" ; then 10203 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10204 continue 10205 fi 10206 ;; 10207 esac 10208 case "$CPPFLAGS" in 10209 *$cf_add_cflags) #(vi 10210 ;; 10211 *) #(vi 10212 case $cf_add_cflags in #(vi 10213 -D*) 10214 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 10215 10216CPPFLAGS=`echo "$CPPFLAGS" | \ 10217 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 10218 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 10219 10220 ;; 10221 esac 10222 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 10223 ;; 10224 esac 10225 ;; 10226 *) 10227 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 10228 ;; 10229 esac 10230 ;; 10231yes) 10232 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10233 10234 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 10235 10236 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 10237 && test -z "${cf_tst_cflags}" \ 10238 && cf_fix_cppflags=no 10239 ;; 10240esac 10241done 10242 10243if test -n "$cf_new_cflags" ; then 10244 10245 CFLAGS="$CFLAGS $cf_new_cflags" 10246fi 10247 10248if test -n "$cf_new_cppflags" ; then 10249 10250 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 10251fi 10252 10253if test -n "$cf_new_extra_cppflags" ; then 10254 10255 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 10256fi 10257 10258 LIBS="$cf_pkgconfig_libs $LIBS" 10259 10260 cf_x_athena_lib="$cf_pkgconfig_libs" 10261 10262cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 10263 10264 cat >>confdefs.h <<EOF 10265#define $cf_x_athena_LIBS 1 10266EOF 10267 10268 for cf_trim_lib in Xmu Xt X11 10269 do 10270 case "$LIBS" in 10271 *-l$cf_trim_lib\ *-l$cf_trim_lib*) 10272 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'` 10273 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6 10274 10275echo "${as_me:-configure}:10275: testing ..trimmed $LIBS ..." 1>&5 10276 10277 ;; 10278 esac 10279 done 10280 10281echo "$as_me:10281: checking for usable $cf_x_athena/Xmu package" >&5 10282echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6 10283if test "${cf_cv_xaw_compat+set}" = set; then 10284 echo $ECHO_N "(cached) $ECHO_C" >&6 10285else 10286 10287cat >conftest.$ac_ext <<_ACEOF 10288#line 10288 "configure" 10289#include "confdefs.h" 10290 10291#include <X11/Xmu/CharSet.h> 10292 10293int 10294main () 10295{ 10296 10297int check = XmuCompareISOLatin1("big", "small") 10298 10299 ; 10300 return 0; 10301} 10302_ACEOF 10303rm -f conftest.$ac_objext conftest$ac_exeext 10304if { (eval echo "$as_me:10304: \"$ac_link\"") >&5 10305 (eval $ac_link) 2>&5 10306 ac_status=$? 10307 echo "$as_me:10307: \$? = $ac_status" >&5 10308 (exit $ac_status); } && 10309 { ac_try='test -s conftest$ac_exeext' 10310 { (eval echo "$as_me:10310: \"$ac_try\"") >&5 10311 (eval $ac_try) 2>&5 10312 ac_status=$? 10313 echo "$as_me:10313: \$? = $ac_status" >&5 10314 (exit $ac_status); }; }; then 10315 cf_cv_xaw_compat=yes 10316else 10317 echo "$as_me: failed program was:" >&5 10318cat conftest.$ac_ext >&5 10319cf_cv_xaw_compat=no 10320fi 10321rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10322fi 10323echo "$as_me:10323: result: $cf_cv_xaw_compat" >&5 10324echo "${ECHO_T}$cf_cv_xaw_compat" >&6 10325 10326 if test "$cf_cv_xaw_compat" = no 10327 then 10328 # workaround for broken ".pc" files... 10329 case "$cf_x_athena_lib" in #(vi 10330 *-lXmu*) #(vi 10331 ;; 10332 *) 10333 test -n "$verbose" && echo " work around broken package" 1>&6 10334 10335echo "${as_me:-configure}:10335: testing work around broken package ..." 1>&5 10336 10337 cf_save_xmu="$LIBS" 10338 cf_first_lib=`echo "$cf_save_xmu" | sed -e 's/^ *//' -e 's/ .*//'` 10339 10340if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xmu; then 10341 test -n "$verbose" && echo " found package xmu" 1>&6 10342 10343echo "${as_me:-configure}:10343: testing found package xmu ..." 1>&5 10344 10345 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xmu 2>/dev/null`" 10346 cf_pkgconfig_libs="`$PKG_CONFIG --libs xmu 2>/dev/null`" 10347 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6 10348 10349echo "${as_me:-configure}:10349: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5 10350 10351 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6 10352 10353echo "${as_me:-configure}:10353: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5 10354 10355cf_fix_cppflags=no 10356cf_new_cflags= 10357cf_new_cppflags= 10358cf_new_extra_cppflags= 10359 10360for cf_add_cflags in $cf_pkgconfig_incs 10361do 10362case $cf_fix_cppflags in 10363no) 10364 case $cf_add_cflags in #(vi 10365 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 10366 case $cf_add_cflags in 10367 -D*) 10368 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 10369 10370 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 10371 && test -z "${cf_tst_cflags}" \ 10372 && cf_fix_cppflags=yes 10373 10374 if test $cf_fix_cppflags = yes ; then 10375 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10376 continue 10377 elif test "${cf_tst_cflags}" = "\"'" ; then 10378 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10379 continue 10380 fi 10381 ;; 10382 esac 10383 case "$CPPFLAGS" in 10384 *$cf_add_cflags) #(vi 10385 ;; 10386 *) #(vi 10387 case $cf_add_cflags in #(vi 10388 -D*) 10389 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 10390 10391CPPFLAGS=`echo "$CPPFLAGS" | \ 10392 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 10393 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 10394 10395 ;; 10396 esac 10397 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 10398 ;; 10399 esac 10400 ;; 10401 *) 10402 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 10403 ;; 10404 esac 10405 ;; 10406yes) 10407 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10408 10409 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 10410 10411 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 10412 && test -z "${cf_tst_cflags}" \ 10413 && cf_fix_cppflags=no 10414 ;; 10415esac 10416done 10417 10418if test -n "$cf_new_cflags" ; then 10419 10420 CFLAGS="$CFLAGS $cf_new_cflags" 10421fi 10422 10423if test -n "$cf_new_cppflags" ; then 10424 10425 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 10426fi 10427 10428if test -n "$cf_new_extra_cppflags" ; then 10429 10430 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 10431fi 10432 10433 LIBS="$cf_pkgconfig_libs $LIBS" 10434 10435 LIBS="$cf_save_xmu" 10436 10437test -n "$verbose" && echo " ...before $LIBS" 1>&6 10438 10439echo "${as_me:-configure}:10439: testing ...before $LIBS ..." 1>&5 10440 10441LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib $cf_pkgconfig_libs %" -e 's% % %g'` 10442test -n "$verbose" && echo " ...after $LIBS" 1>&6 10443 10444echo "${as_me:-configure}:10444: testing ...after $LIBS ..." 1>&5 10445 10446else 10447 cf_pkgconfig_incs= 10448 cf_pkgconfig_libs= 10449 10450test -n "$verbose" && echo " ...before $LIBS" 1>&6 10451 10452echo "${as_me:-configure}:10452: testing ...before $LIBS ..." 1>&5 10453 10454LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib -lXmu %" -e 's% % %g'` 10455test -n "$verbose" && echo " ...after $LIBS" 1>&6 10456 10457echo "${as_me:-configure}:10457: testing ...after $LIBS ..." 1>&5 10458 10459fi 10460 10461 for cf_trim_lib in Xmu Xt X11 10462 do 10463 case "$LIBS" in 10464 *-l$cf_trim_lib\ *-l$cf_trim_lib*) 10465 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'` 10466 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6 10467 10468echo "${as_me:-configure}:10468: testing ..trimmed $LIBS ..." 1>&5 10469 10470 ;; 10471 esac 10472 done 10473 10474 ;; 10475 esac 10476 fi 10477 10478 break 10479else 10480 cf_pkgconfig_incs= 10481 cf_pkgconfig_libs= 10482 : 10483fi 10484 10485 done 10486fi 10487 10488if test -z "$cf_x_athena_lib" ; then 10489 10490if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then 10491 test -n "$verbose" && echo " found package Xext" 1>&6 10492 10493echo "${as_me:-configure}:10493: testing found package Xext ..." 1>&5 10494 10495 cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`" 10496 cf_pkgconfig_libs="`$PKG_CONFIG --libs Xext 2>/dev/null`" 10497 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6 10498 10499echo "${as_me:-configure}:10499: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5 10500 10501 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6 10502 10503echo "${as_me:-configure}:10503: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5 10504 10505cf_fix_cppflags=no 10506cf_new_cflags= 10507cf_new_cppflags= 10508cf_new_extra_cppflags= 10509 10510for cf_add_cflags in $cf_pkgconfig_incs 10511do 10512case $cf_fix_cppflags in 10513no) 10514 case $cf_add_cflags in #(vi 10515 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 10516 case $cf_add_cflags in 10517 -D*) 10518 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 10519 10520 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 10521 && test -z "${cf_tst_cflags}" \ 10522 && cf_fix_cppflags=yes 10523 10524 if test $cf_fix_cppflags = yes ; then 10525 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10526 continue 10527 elif test "${cf_tst_cflags}" = "\"'" ; then 10528 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10529 continue 10530 fi 10531 ;; 10532 esac 10533 case "$CPPFLAGS" in 10534 *$cf_add_cflags) #(vi 10535 ;; 10536 *) #(vi 10537 case $cf_add_cflags in #(vi 10538 -D*) 10539 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 10540 10541CPPFLAGS=`echo "$CPPFLAGS" | \ 10542 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 10543 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 10544 10545 ;; 10546 esac 10547 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 10548 ;; 10549 esac 10550 ;; 10551 *) 10552 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 10553 ;; 10554 esac 10555 ;; 10556yes) 10557 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10558 10559 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 10560 10561 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 10562 && test -z "${cf_tst_cflags}" \ 10563 && cf_fix_cppflags=no 10564 ;; 10565esac 10566done 10567 10568if test -n "$cf_new_cflags" ; then 10569 10570 CFLAGS="$CFLAGS $cf_new_cflags" 10571fi 10572 10573if test -n "$cf_new_cppflags" ; then 10574 10575 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 10576fi 10577 10578if test -n "$cf_new_extra_cppflags" ; then 10579 10580 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 10581fi 10582 10583 LIBS="$cf_pkgconfig_libs $LIBS" 10584 : 10585else 10586 cf_pkgconfig_incs= 10587 cf_pkgconfig_libs= 10588 10589 echo "$as_me:10589: checking for XextCreateExtension in -lXext" >&5 10590echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6 10591if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then 10592 echo $ECHO_N "(cached) $ECHO_C" >&6 10593else 10594 ac_check_lib_save_LIBS=$LIBS 10595LIBS="-lXext $LIBS" 10596cat >conftest.$ac_ext <<_ACEOF 10597#line 10597 "configure" 10598#include "confdefs.h" 10599 10600/* Override any gcc2 internal prototype to avoid an error. */ 10601#ifdef __cplusplus 10602extern "C" 10603#endif 10604/* We use char because int might match the return type of a gcc2 10605 builtin and then its argument prototype would still apply. */ 10606char XextCreateExtension (); 10607int 10608main () 10609{ 10610XextCreateExtension (); 10611 ; 10612 return 0; 10613} 10614_ACEOF 10615rm -f conftest.$ac_objext conftest$ac_exeext 10616if { (eval echo "$as_me:10616: \"$ac_link\"") >&5 10617 (eval $ac_link) 2>&5 10618 ac_status=$? 10619 echo "$as_me:10619: \$? = $ac_status" >&5 10620 (exit $ac_status); } && 10621 { ac_try='test -s conftest$ac_exeext' 10622 { (eval echo "$as_me:10622: \"$ac_try\"") >&5 10623 (eval $ac_try) 2>&5 10624 ac_status=$? 10625 echo "$as_me:10625: \$? = $ac_status" >&5 10626 (exit $ac_status); }; }; then 10627 ac_cv_lib_Xext_XextCreateExtension=yes 10628else 10629 echo "$as_me: failed program was:" >&5 10630cat conftest.$ac_ext >&5 10631ac_cv_lib_Xext_XextCreateExtension=no 10632fi 10633rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10634LIBS=$ac_check_lib_save_LIBS 10635fi 10636echo "$as_me:10636: result: $ac_cv_lib_Xext_XextCreateExtension" >&5 10637echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6 10638if test $ac_cv_lib_Xext_XextCreateExtension = yes; then 10639 LIBS="-lXext $LIBS" 10640fi 10641 10642fi 10643 10644cf_have_X_LIBS=no 10645 10646if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then 10647 test -n "$verbose" && echo " found package xt" 1>&6 10648 10649echo "${as_me:-configure}:10649: testing found package xt ..." 1>&5 10650 10651 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`" 10652 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`" 10653 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6 10654 10655echo "${as_me:-configure}:10655: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5 10656 10657 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6 10658 10659echo "${as_me:-configure}:10659: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5 10660 10661cf_fix_cppflags=no 10662cf_new_cflags= 10663cf_new_cppflags= 10664cf_new_extra_cppflags= 10665 10666for cf_add_cflags in $cf_pkgconfig_incs 10667do 10668case $cf_fix_cppflags in 10669no) 10670 case $cf_add_cflags in #(vi 10671 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 10672 case $cf_add_cflags in 10673 -D*) 10674 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 10675 10676 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 10677 && test -z "${cf_tst_cflags}" \ 10678 && cf_fix_cppflags=yes 10679 10680 if test $cf_fix_cppflags = yes ; then 10681 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10682 continue 10683 elif test "${cf_tst_cflags}" = "\"'" ; then 10684 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10685 continue 10686 fi 10687 ;; 10688 esac 10689 case "$CPPFLAGS" in 10690 *$cf_add_cflags) #(vi 10691 ;; 10692 *) #(vi 10693 case $cf_add_cflags in #(vi 10694 -D*) 10695 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 10696 10697CPPFLAGS=`echo "$CPPFLAGS" | \ 10698 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 10699 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 10700 10701 ;; 10702 esac 10703 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 10704 ;; 10705 esac 10706 ;; 10707 *) 10708 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 10709 ;; 10710 esac 10711 ;; 10712yes) 10713 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10714 10715 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 10716 10717 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 10718 && test -z "${cf_tst_cflags}" \ 10719 && cf_fix_cppflags=no 10720 ;; 10721esac 10722done 10723 10724if test -n "$cf_new_cflags" ; then 10725 10726 CFLAGS="$CFLAGS $cf_new_cflags" 10727fi 10728 10729if test -n "$cf_new_cppflags" ; then 10730 10731 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 10732fi 10733 10734if test -n "$cf_new_extra_cppflags" ; then 10735 10736 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 10737fi 10738 10739 LIBS="$cf_pkgconfig_libs $LIBS" 10740 10741 case "x$LIBS" in #(vi 10742 *-lX11*) #(vi 10743 ;; 10744 *) 10745# we have an "xt" package, but it may omit Xt's dependency on X11 10746echo "$as_me:10746: checking for usable X dependency" >&5 10747echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6 10748if test "${cf_cv_xt_x11_compat+set}" = set; then 10749 echo $ECHO_N "(cached) $ECHO_C" >&6 10750else 10751 10752cat >conftest.$ac_ext <<_ACEOF 10753#line 10753 "configure" 10754#include "confdefs.h" 10755 10756#include <X11/Xlib.h> 10757 10758int 10759main () 10760{ 10761 10762 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0); 10763 int rc2 = XClearWindow((Display*) 0, (Window) 0); 10764 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0); 10765 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0); 10766 10767 ; 10768 return 0; 10769} 10770_ACEOF 10771rm -f conftest.$ac_objext conftest$ac_exeext 10772if { (eval echo "$as_me:10772: \"$ac_link\"") >&5 10773 (eval $ac_link) 2>&5 10774 ac_status=$? 10775 echo "$as_me:10775: \$? = $ac_status" >&5 10776 (exit $ac_status); } && 10777 { ac_try='test -s conftest$ac_exeext' 10778 { (eval echo "$as_me:10778: \"$ac_try\"") >&5 10779 (eval $ac_try) 2>&5 10780 ac_status=$? 10781 echo "$as_me:10781: \$? = $ac_status" >&5 10782 (exit $ac_status); }; }; then 10783 cf_cv_xt_x11_compat=yes 10784else 10785 echo "$as_me: failed program was:" >&5 10786cat conftest.$ac_ext >&5 10787cf_cv_xt_x11_compat=no 10788fi 10789rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10790fi 10791echo "$as_me:10791: result: $cf_cv_xt_x11_compat" >&5 10792echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6 10793 if test "$cf_cv_xt_x11_compat" = no 10794 then 10795 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6 10796 10797echo "${as_me:-configure}:10797: testing work around broken X11 dependency ..." 1>&5 10798 10799 # 2010/11/19 - good enough until a working Xt on Xcb is delivered. 10800 10801if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then 10802 test -n "$verbose" && echo " found package x11" 1>&6 10803 10804echo "${as_me:-configure}:10804: testing found package x11 ..." 1>&5 10805 10806 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`" 10807 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`" 10808 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6 10809 10810echo "${as_me:-configure}:10810: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 10811 10812 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6 10813 10814echo "${as_me:-configure}:10814: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5 10815 10816cf_fix_cppflags=no 10817cf_new_cflags= 10818cf_new_cppflags= 10819cf_new_extra_cppflags= 10820 10821for cf_add_cflags in $cf_pkgconfig_incs 10822do 10823case $cf_fix_cppflags in 10824no) 10825 case $cf_add_cflags in #(vi 10826 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 10827 case $cf_add_cflags in 10828 -D*) 10829 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 10830 10831 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 10832 && test -z "${cf_tst_cflags}" \ 10833 && cf_fix_cppflags=yes 10834 10835 if test $cf_fix_cppflags = yes ; then 10836 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10837 continue 10838 elif test "${cf_tst_cflags}" = "\"'" ; then 10839 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10840 continue 10841 fi 10842 ;; 10843 esac 10844 case "$CPPFLAGS" in 10845 *$cf_add_cflags) #(vi 10846 ;; 10847 *) #(vi 10848 case $cf_add_cflags in #(vi 10849 -D*) 10850 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 10851 10852CPPFLAGS=`echo "$CPPFLAGS" | \ 10853 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 10854 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 10855 10856 ;; 10857 esac 10858 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 10859 ;; 10860 esac 10861 ;; 10862 *) 10863 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 10864 ;; 10865 esac 10866 ;; 10867yes) 10868 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10869 10870 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 10871 10872 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 10873 && test -z "${cf_tst_cflags}" \ 10874 && cf_fix_cppflags=no 10875 ;; 10876esac 10877done 10878 10879if test -n "$cf_new_cflags" ; then 10880 10881 CFLAGS="$CFLAGS $cf_new_cflags" 10882fi 10883 10884if test -n "$cf_new_cppflags" ; then 10885 10886 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 10887fi 10888 10889if test -n "$cf_new_extra_cppflags" ; then 10890 10891 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 10892fi 10893 10894 LIBS="$cf_pkgconfig_libs $LIBS" 10895 : 10896else 10897 cf_pkgconfig_incs= 10898 cf_pkgconfig_libs= 10899 10900test -n "$verbose" && echo " ...before $LIBS" 1>&6 10901 10902echo "${as_me:-configure}:10902: testing ...before $LIBS ..." 1>&5 10903 10904LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'` 10905test -n "$verbose" && echo " ...after $LIBS" 1>&6 10906 10907echo "${as_me:-configure}:10907: testing ...after $LIBS ..." 1>&5 10908 10909fi 10910 10911 fi 10912 ;; 10913 esac 10914 10915echo "$as_me:10915: checking for usable X Toolkit package" >&5 10916echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6 10917if test "${cf_cv_xt_ice_compat+set}" = set; then 10918 echo $ECHO_N "(cached) $ECHO_C" >&6 10919else 10920 10921cat >conftest.$ac_ext <<_ACEOF 10922#line 10922 "configure" 10923#include "confdefs.h" 10924 10925#include <X11/Shell.h> 10926 10927int 10928main () 10929{ 10930int num = IceConnectionNumber(0) 10931 10932 ; 10933 return 0; 10934} 10935_ACEOF 10936rm -f conftest.$ac_objext conftest$ac_exeext 10937if { (eval echo "$as_me:10937: \"$ac_link\"") >&5 10938 (eval $ac_link) 2>&5 10939 ac_status=$? 10940 echo "$as_me:10940: \$? = $ac_status" >&5 10941 (exit $ac_status); } && 10942 { ac_try='test -s conftest$ac_exeext' 10943 { (eval echo "$as_me:10943: \"$ac_try\"") >&5 10944 (eval $ac_try) 2>&5 10945 ac_status=$? 10946 echo "$as_me:10946: \$? = $ac_status" >&5 10947 (exit $ac_status); }; }; then 10948 cf_cv_xt_ice_compat=yes 10949else 10950 echo "$as_me: failed program was:" >&5 10951cat conftest.$ac_ext >&5 10952cf_cv_xt_ice_compat=no 10953fi 10954rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10955fi 10956echo "$as_me:10956: result: $cf_cv_xt_ice_compat" >&5 10957echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6 10958 10959 if test "$cf_cv_xt_ice_compat" = no 10960 then 10961 # workaround for broken ".pc" files used for X Toolkit. 10962 case "x$X_PRE_LIBS" in #(vi 10963 *-lICE*) 10964 case "x$LIBS" in #(vi 10965 *-lICE*) #(vi 10966 ;; 10967 *) 10968 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6 10969 10970echo "${as_me:-configure}:10970: testing work around broken ICE dependency ..." 1>&5 10971 10972if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then 10973 test -n "$verbose" && echo " found package ice" 1>&6 10974 10975echo "${as_me:-configure}:10975: testing found package ice ..." 1>&5 10976 10977 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`" 10978 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`" 10979 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6 10980 10981echo "${as_me:-configure}:10981: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5 10982 10983 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6 10984 10985echo "${as_me:-configure}:10985: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5 10986 10987cf_fix_cppflags=no 10988cf_new_cflags= 10989cf_new_cppflags= 10990cf_new_extra_cppflags= 10991 10992for cf_add_cflags in $cf_pkgconfig_incs 10993do 10994case $cf_fix_cppflags in 10995no) 10996 case $cf_add_cflags in #(vi 10997 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 10998 case $cf_add_cflags in 10999 -D*) 11000 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11001 11002 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 11003 && test -z "${cf_tst_cflags}" \ 11004 && cf_fix_cppflags=yes 11005 11006 if test $cf_fix_cppflags = yes ; then 11007 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11008 continue 11009 elif test "${cf_tst_cflags}" = "\"'" ; then 11010 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11011 continue 11012 fi 11013 ;; 11014 esac 11015 case "$CPPFLAGS" in 11016 *$cf_add_cflags) #(vi 11017 ;; 11018 *) #(vi 11019 case $cf_add_cflags in #(vi 11020 -D*) 11021 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11022 11023CPPFLAGS=`echo "$CPPFLAGS" | \ 11024 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11025 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11026 11027 ;; 11028 esac 11029 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 11030 ;; 11031 esac 11032 ;; 11033 *) 11034 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 11035 ;; 11036 esac 11037 ;; 11038yes) 11039 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11040 11041 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 11042 11043 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 11044 && test -z "${cf_tst_cflags}" \ 11045 && cf_fix_cppflags=no 11046 ;; 11047esac 11048done 11049 11050if test -n "$cf_new_cflags" ; then 11051 11052 CFLAGS="$CFLAGS $cf_new_cflags" 11053fi 11054 11055if test -n "$cf_new_cppflags" ; then 11056 11057 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 11058fi 11059 11060if test -n "$cf_new_extra_cppflags" ; then 11061 11062 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 11063fi 11064 11065 LIBS="$cf_pkgconfig_libs $LIBS" 11066 11067if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then 11068 test -n "$verbose" && echo " found package sm" 1>&6 11069 11070echo "${as_me:-configure}:11070: testing found package sm ..." 1>&5 11071 11072 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`" 11073 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`" 11074 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6 11075 11076echo "${as_me:-configure}:11076: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11077 11078 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6 11079 11080echo "${as_me:-configure}:11080: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5 11081 11082cf_fix_cppflags=no 11083cf_new_cflags= 11084cf_new_cppflags= 11085cf_new_extra_cppflags= 11086 11087for cf_add_cflags in $cf_pkgconfig_incs 11088do 11089case $cf_fix_cppflags in 11090no) 11091 case $cf_add_cflags in #(vi 11092 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 11093 case $cf_add_cflags in 11094 -D*) 11095 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11096 11097 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 11098 && test -z "${cf_tst_cflags}" \ 11099 && cf_fix_cppflags=yes 11100 11101 if test $cf_fix_cppflags = yes ; then 11102 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11103 continue 11104 elif test "${cf_tst_cflags}" = "\"'" ; then 11105 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11106 continue 11107 fi 11108 ;; 11109 esac 11110 case "$CPPFLAGS" in 11111 *$cf_add_cflags) #(vi 11112 ;; 11113 *) #(vi 11114 case $cf_add_cflags in #(vi 11115 -D*) 11116 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11117 11118CPPFLAGS=`echo "$CPPFLAGS" | \ 11119 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11120 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11121 11122 ;; 11123 esac 11124 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 11125 ;; 11126 esac 11127 ;; 11128 *) 11129 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 11130 ;; 11131 esac 11132 ;; 11133yes) 11134 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11135 11136 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 11137 11138 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 11139 && test -z "${cf_tst_cflags}" \ 11140 && cf_fix_cppflags=no 11141 ;; 11142esac 11143done 11144 11145if test -n "$cf_new_cflags" ; then 11146 11147 CFLAGS="$CFLAGS $cf_new_cflags" 11148fi 11149 11150if test -n "$cf_new_cppflags" ; then 11151 11152 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 11153fi 11154 11155if test -n "$cf_new_extra_cppflags" ; then 11156 11157 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 11158fi 11159 11160 LIBS="$cf_pkgconfig_libs $LIBS" 11161 : 11162else 11163 cf_pkgconfig_incs= 11164 cf_pkgconfig_libs= 11165 : 11166fi 11167 11168else 11169 cf_pkgconfig_incs= 11170 cf_pkgconfig_libs= 11171 11172test -n "$verbose" && echo " ...before $LIBS" 1>&6 11173 11174echo "${as_me:-configure}:11174: testing ...before $LIBS ..." 1>&5 11175 11176LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'` 11177test -n "$verbose" && echo " ...after $LIBS" 1>&6 11178 11179echo "${as_me:-configure}:11179: testing ...after $LIBS ..." 1>&5 11180 11181fi 11182 11183 ;; 11184 esac 11185 ;; 11186 esac 11187 fi 11188 11189 cf_have_X_LIBS=yes 11190 11191else 11192 cf_pkgconfig_incs= 11193 cf_pkgconfig_libs= 11194 11195 LDFLAGS="$X_LIBS $LDFLAGS" 11196 11197test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6 11198 11199echo "${as_me:-configure}:11199: testing checking additions to CFLAGS ..." 1>&5 11200 11201cf_check_cflags="$CFLAGS" 11202cf_check_cppflags="$CPPFLAGS" 11203 11204cf_fix_cppflags=no 11205cf_new_cflags= 11206cf_new_cppflags= 11207cf_new_extra_cppflags= 11208 11209for cf_add_cflags in $X_CFLAGS 11210do 11211case $cf_fix_cppflags in 11212no) 11213 case $cf_add_cflags in #(vi 11214 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 11215 case $cf_add_cflags in 11216 -D*) 11217 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11218 11219 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 11220 && test -z "${cf_tst_cflags}" \ 11221 && cf_fix_cppflags=yes 11222 11223 if test $cf_fix_cppflags = yes ; then 11224 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11225 continue 11226 elif test "${cf_tst_cflags}" = "\"'" ; then 11227 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11228 continue 11229 fi 11230 ;; 11231 esac 11232 case "$CPPFLAGS" in 11233 *$cf_add_cflags) #(vi 11234 ;; 11235 *) #(vi 11236 case $cf_add_cflags in #(vi 11237 -D*) 11238 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11239 11240CPPFLAGS=`echo "$CPPFLAGS" | \ 11241 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11242 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11243 11244 ;; 11245 esac 11246 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 11247 ;; 11248 esac 11249 ;; 11250 *) 11251 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 11252 ;; 11253 esac 11254 ;; 11255yes) 11256 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11257 11258 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 11259 11260 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 11261 && test -z "${cf_tst_cflags}" \ 11262 && cf_fix_cppflags=no 11263 ;; 11264esac 11265done 11266 11267if test -n "$cf_new_cflags" ; then 11268 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 11269 11270echo "${as_me:-configure}:11270: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 11271 11272 CFLAGS="$CFLAGS $cf_new_cflags" 11273fi 11274 11275if test -n "$cf_new_cppflags" ; then 11276 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 11277 11278echo "${as_me:-configure}:11278: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 11279 11280 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 11281fi 11282 11283if test -n "$cf_new_extra_cppflags" ; then 11284 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6 11285 11286echo "${as_me:-configure}:11286: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5 11287 11288 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 11289fi 11290 11291if test "$cf_check_cflags" != "$CFLAGS" ; then 11292cat >conftest.$ac_ext <<_ACEOF 11293#line 11293 "configure" 11294#include "confdefs.h" 11295#include <stdio.h> 11296int 11297main () 11298{ 11299printf("Hello world"); 11300 ; 11301 return 0; 11302} 11303_ACEOF 11304rm -f conftest.$ac_objext conftest$ac_exeext 11305if { (eval echo "$as_me:11305: \"$ac_link\"") >&5 11306 (eval $ac_link) 2>&5 11307 ac_status=$? 11308 echo "$as_me:11308: \$? = $ac_status" >&5 11309 (exit $ac_status); } && 11310 { ac_try='test -s conftest$ac_exeext' 11311 { (eval echo "$as_me:11311: \"$ac_try\"") >&5 11312 (eval $ac_try) 2>&5 11313 ac_status=$? 11314 echo "$as_me:11314: \$? = $ac_status" >&5 11315 (exit $ac_status); }; }; then 11316 : 11317else 11318 echo "$as_me: failed program was:" >&5 11319cat conftest.$ac_ext >&5 11320test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6 11321 11322echo "${as_me:-configure}:11322: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5 11323 11324 if test "$cf_check_cppflags" != "$CPPFLAGS" ; then 11325 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6 11326 11327echo "${as_me:-configure}:11327: testing but keeping change to \$CPPFLAGS ..." 1>&5 11328 11329 fi 11330 CFLAGS="$cf_check_flags" 11331fi 11332rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11333fi 11334 11335 echo "$as_me:11335: checking for XOpenDisplay" >&5 11336echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6 11337if test "${ac_cv_func_XOpenDisplay+set}" = set; then 11338 echo $ECHO_N "(cached) $ECHO_C" >&6 11339else 11340 cat >conftest.$ac_ext <<_ACEOF 11341#line 11341 "configure" 11342#include "confdefs.h" 11343/* System header to define __stub macros and hopefully few prototypes, 11344 which can conflict with char XOpenDisplay (); below. */ 11345#include <assert.h> 11346/* Override any gcc2 internal prototype to avoid an error. */ 11347#ifdef __cplusplus 11348extern "C" 11349#endif 11350/* We use char because int might match the return type of a gcc2 11351 builtin and then its argument prototype would still apply. */ 11352char XOpenDisplay (); 11353char (*f) (); 11354 11355int 11356main () 11357{ 11358/* The GNU C library defines this for functions which it implements 11359 to always fail with ENOSYS. Some functions are actually named 11360 something starting with __ and the normal name is an alias. */ 11361#if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay) 11362choke me 11363#else 11364f = XOpenDisplay; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 11365#endif 11366 11367 ; 11368 return 0; 11369} 11370_ACEOF 11371rm -f conftest.$ac_objext conftest$ac_exeext 11372if { (eval echo "$as_me:11372: \"$ac_link\"") >&5 11373 (eval $ac_link) 2>&5 11374 ac_status=$? 11375 echo "$as_me:11375: \$? = $ac_status" >&5 11376 (exit $ac_status); } && 11377 { ac_try='test -s conftest$ac_exeext' 11378 { (eval echo "$as_me:11378: \"$ac_try\"") >&5 11379 (eval $ac_try) 2>&5 11380 ac_status=$? 11381 echo "$as_me:11381: \$? = $ac_status" >&5 11382 (exit $ac_status); }; }; then 11383 ac_cv_func_XOpenDisplay=yes 11384else 11385 echo "$as_me: failed program was:" >&5 11386cat conftest.$ac_ext >&5 11387ac_cv_func_XOpenDisplay=no 11388fi 11389rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11390fi 11391echo "$as_me:11391: result: $ac_cv_func_XOpenDisplay" >&5 11392echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6 11393if test $ac_cv_func_XOpenDisplay = yes; then 11394 : 11395else 11396 11397 echo "$as_me:11397: checking for XOpenDisplay in -lX11" >&5 11398echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6 11399if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then 11400 echo $ECHO_N "(cached) $ECHO_C" >&6 11401else 11402 ac_check_lib_save_LIBS=$LIBS 11403LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS" 11404cat >conftest.$ac_ext <<_ACEOF 11405#line 11405 "configure" 11406#include "confdefs.h" 11407 11408/* Override any gcc2 internal prototype to avoid an error. */ 11409#ifdef __cplusplus 11410extern "C" 11411#endif 11412/* We use char because int might match the return type of a gcc2 11413 builtin and then its argument prototype would still apply. */ 11414char XOpenDisplay (); 11415int 11416main () 11417{ 11418XOpenDisplay (); 11419 ; 11420 return 0; 11421} 11422_ACEOF 11423rm -f conftest.$ac_objext conftest$ac_exeext 11424if { (eval echo "$as_me:11424: \"$ac_link\"") >&5 11425 (eval $ac_link) 2>&5 11426 ac_status=$? 11427 echo "$as_me:11427: \$? = $ac_status" >&5 11428 (exit $ac_status); } && 11429 { ac_try='test -s conftest$ac_exeext' 11430 { (eval echo "$as_me:11430: \"$ac_try\"") >&5 11431 (eval $ac_try) 2>&5 11432 ac_status=$? 11433 echo "$as_me:11433: \$? = $ac_status" >&5 11434 (exit $ac_status); }; }; then 11435 ac_cv_lib_X11_XOpenDisplay=yes 11436else 11437 echo "$as_me: failed program was:" >&5 11438cat conftest.$ac_ext >&5 11439ac_cv_lib_X11_XOpenDisplay=no 11440fi 11441rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11442LIBS=$ac_check_lib_save_LIBS 11443fi 11444echo "$as_me:11444: result: $ac_cv_lib_X11_XOpenDisplay" >&5 11445echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6 11446if test $ac_cv_lib_X11_XOpenDisplay = yes; then 11447 LIBS="-lX11 $LIBS" 11448fi 11449 11450fi 11451 11452 echo "$as_me:11452: checking for XtAppInitialize" >&5 11453echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6 11454if test "${ac_cv_func_XtAppInitialize+set}" = set; then 11455 echo $ECHO_N "(cached) $ECHO_C" >&6 11456else 11457 cat >conftest.$ac_ext <<_ACEOF 11458#line 11458 "configure" 11459#include "confdefs.h" 11460/* System header to define __stub macros and hopefully few prototypes, 11461 which can conflict with char XtAppInitialize (); below. */ 11462#include <assert.h> 11463/* Override any gcc2 internal prototype to avoid an error. */ 11464#ifdef __cplusplus 11465extern "C" 11466#endif 11467/* We use char because int might match the return type of a gcc2 11468 builtin and then its argument prototype would still apply. */ 11469char XtAppInitialize (); 11470char (*f) (); 11471 11472int 11473main () 11474{ 11475/* The GNU C library defines this for functions which it implements 11476 to always fail with ENOSYS. Some functions are actually named 11477 something starting with __ and the normal name is an alias. */ 11478#if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize) 11479choke me 11480#else 11481f = XtAppInitialize; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 11482#endif 11483 11484 ; 11485 return 0; 11486} 11487_ACEOF 11488rm -f conftest.$ac_objext conftest$ac_exeext 11489if { (eval echo "$as_me:11489: \"$ac_link\"") >&5 11490 (eval $ac_link) 2>&5 11491 ac_status=$? 11492 echo "$as_me:11492: \$? = $ac_status" >&5 11493 (exit $ac_status); } && 11494 { ac_try='test -s conftest$ac_exeext' 11495 { (eval echo "$as_me:11495: \"$ac_try\"") >&5 11496 (eval $ac_try) 2>&5 11497 ac_status=$? 11498 echo "$as_me:11498: \$? = $ac_status" >&5 11499 (exit $ac_status); }; }; then 11500 ac_cv_func_XtAppInitialize=yes 11501else 11502 echo "$as_me: failed program was:" >&5 11503cat conftest.$ac_ext >&5 11504ac_cv_func_XtAppInitialize=no 11505fi 11506rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11507fi 11508echo "$as_me:11508: result: $ac_cv_func_XtAppInitialize" >&5 11509echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6 11510if test $ac_cv_func_XtAppInitialize = yes; then 11511 : 11512else 11513 11514 echo "$as_me:11514: checking for XtAppInitialize in -lXt" >&5 11515echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6 11516if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then 11517 echo $ECHO_N "(cached) $ECHO_C" >&6 11518else 11519 ac_check_lib_save_LIBS=$LIBS 11520LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS" 11521cat >conftest.$ac_ext <<_ACEOF 11522#line 11522 "configure" 11523#include "confdefs.h" 11524 11525/* Override any gcc2 internal prototype to avoid an error. */ 11526#ifdef __cplusplus 11527extern "C" 11528#endif 11529/* We use char because int might match the return type of a gcc2 11530 builtin and then its argument prototype would still apply. */ 11531char XtAppInitialize (); 11532int 11533main () 11534{ 11535XtAppInitialize (); 11536 ; 11537 return 0; 11538} 11539_ACEOF 11540rm -f conftest.$ac_objext conftest$ac_exeext 11541if { (eval echo "$as_me:11541: \"$ac_link\"") >&5 11542 (eval $ac_link) 2>&5 11543 ac_status=$? 11544 echo "$as_me:11544: \$? = $ac_status" >&5 11545 (exit $ac_status); } && 11546 { ac_try='test -s conftest$ac_exeext' 11547 { (eval echo "$as_me:11547: \"$ac_try\"") >&5 11548 (eval $ac_try) 2>&5 11549 ac_status=$? 11550 echo "$as_me:11550: \$? = $ac_status" >&5 11551 (exit $ac_status); }; }; then 11552 ac_cv_lib_Xt_XtAppInitialize=yes 11553else 11554 echo "$as_me: failed program was:" >&5 11555cat conftest.$ac_ext >&5 11556ac_cv_lib_Xt_XtAppInitialize=no 11557fi 11558rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11559LIBS=$ac_check_lib_save_LIBS 11560fi 11561echo "$as_me:11561: result: $ac_cv_lib_Xt_XtAppInitialize" >&5 11562echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6 11563if test $ac_cv_lib_Xt_XtAppInitialize = yes; then 11564 11565cat >>confdefs.h <<\EOF 11566#define HAVE_LIBXT 1 11567EOF 11568 11569 cf_have_X_LIBS=Xt 11570 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS" 11571fi 11572 11573fi 11574 11575fi 11576 11577if test $cf_have_X_LIBS = no ; then 11578 { echo "$as_me:11578: WARNING: Unable to successfully link X Toolkit library (-lXt) with 11579test program. You will have to check and add the proper libraries by hand 11580to makefile." >&5 11581echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with 11582test program. You will have to check and add the proper libraries by hand 11583to makefile." >&2;} 11584fi 11585 11586cf_x_athena_root=$cf_x_athena 11587cf_x_athena_inc="" 11588 11589for cf_path in default \ 11590 /usr/contrib/X11R6 \ 11591 /usr/contrib/X11R5 \ 11592 /usr/lib/X11R5 \ 11593 /usr/local 11594do 11595 if test -z "$cf_x_athena_inc" ; then 11596 cf_save="$CPPFLAGS" 11597 cf_test=X11/$cf_x_athena_root/SimpleMenu.h 11598 if test $cf_path != default ; then 11599 CPPFLAGS="$cf_save -I$cf_path/include" 11600 echo "$as_me:11600: checking for $cf_test in $cf_path" >&5 11601echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6 11602 else 11603 echo "$as_me:11603: checking for $cf_test" >&5 11604echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6 11605 fi 11606 cat >conftest.$ac_ext <<_ACEOF 11607#line 11607 "configure" 11608#include "confdefs.h" 11609 11610#include <X11/Intrinsic.h> 11611#include <$cf_test> 11612int 11613main () 11614{ 11615 11616 ; 11617 return 0; 11618} 11619_ACEOF 11620rm -f conftest.$ac_objext 11621if { (eval echo "$as_me:11621: \"$ac_compile\"") >&5 11622 (eval $ac_compile) 2>&5 11623 ac_status=$? 11624 echo "$as_me:11624: \$? = $ac_status" >&5 11625 (exit $ac_status); } && 11626 { ac_try='test -s conftest.$ac_objext' 11627 { (eval echo "$as_me:11627: \"$ac_try\"") >&5 11628 (eval $ac_try) 2>&5 11629 ac_status=$? 11630 echo "$as_me:11630: \$? = $ac_status" >&5 11631 (exit $ac_status); }; }; then 11632 cf_result=yes 11633else 11634 echo "$as_me: failed program was:" >&5 11635cat conftest.$ac_ext >&5 11636cf_result=no 11637fi 11638rm -f conftest.$ac_objext conftest.$ac_ext 11639 echo "$as_me:11639: result: $cf_result" >&5 11640echo "${ECHO_T}$cf_result" >&6 11641 if test "$cf_result" = yes ; then 11642 cf_x_athena_inc=$cf_path 11643 break 11644 else 11645 CPPFLAGS="$cf_save" 11646 fi 11647 fi 11648done 11649 11650if test -z "$cf_x_athena_inc" ; then 11651 { echo "$as_me:11651: WARNING: Unable to successfully find Athena header files with test program" >&5 11652echo "$as_me: WARNING: Unable to successfully find Athena header files with test program" >&2;} 11653elif test "$cf_x_athena_inc" != default ; then 11654 CPPFLAGS="$CPPFLAGS -I$cf_x_athena_inc" 11655fi 11656 11657cf_x_athena_root=$cf_x_athena 11658cf_x_athena_lib="" 11659 11660for cf_path in default \ 11661 /usr/contrib/X11R6 \ 11662 /usr/contrib/X11R5 \ 11663 /usr/lib/X11R5 \ 11664 /usr/local 11665do 11666 for cf_lib in \ 11667 ${cf_x_athena_root} \ 11668 ${cf_x_athena_root}7 \ 11669 ${cf_x_athena_root}6 11670 do 11671 for cf_libs in \ 11672 "-l$cf_lib -lXmu" \ 11673 "-l$cf_lib -lXpm -lXmu" \ 11674 "-l${cf_lib}_s -lXmu_s" 11675 do 11676 if test -z "$cf_x_athena_lib" ; then 11677 cf_save="$LIBS" 11678 cf_test=XawSimpleMenuAddGlobalActions 11679 if test $cf_path != default ; then 11680 LIBS="-L$cf_path/lib $cf_libs $LIBS" 11681 echo "$as_me:11681: checking for $cf_libs in $cf_path" >&5 11682echo $ECHO_N "checking for $cf_libs in $cf_path... $ECHO_C" >&6 11683 else 11684 LIBS="$cf_libs $LIBS" 11685 echo "$as_me:11685: checking for $cf_test in $cf_libs" >&5 11686echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6 11687 fi 11688 cat >conftest.$ac_ext <<_ACEOF 11689#line 11689 "configure" 11690#include "confdefs.h" 11691 11692#include <X11/Intrinsic.h> 11693#include <X11/$cf_x_athena_root/SimpleMenu.h> 11694 11695int 11696main () 11697{ 11698 11699$cf_test((XtAppContext) 0) 11700 ; 11701 return 0; 11702} 11703_ACEOF 11704rm -f conftest.$ac_objext conftest$ac_exeext 11705if { (eval echo "$as_me:11705: \"$ac_link\"") >&5 11706 (eval $ac_link) 2>&5 11707 ac_status=$? 11708 echo "$as_me:11708: \$? = $ac_status" >&5 11709 (exit $ac_status); } && 11710 { ac_try='test -s conftest$ac_exeext' 11711 { (eval echo "$as_me:11711: \"$ac_try\"") >&5 11712 (eval $ac_try) 2>&5 11713 ac_status=$? 11714 echo "$as_me:11714: \$? = $ac_status" >&5 11715 (exit $ac_status); }; }; then 11716 cf_result=yes 11717else 11718 echo "$as_me: failed program was:" >&5 11719cat conftest.$ac_ext >&5 11720cf_result=no 11721fi 11722rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11723 echo "$as_me:11723: result: $cf_result" >&5 11724echo "${ECHO_T}$cf_result" >&6 11725 if test "$cf_result" = yes ; then 11726 cf_x_athena_lib="$cf_libs" 11727 break 11728 fi 11729 LIBS="$cf_save" 11730 fi 11731 done # cf_libs 11732 test -n "$cf_x_athena_lib" && break 11733 done # cf_lib 11734done 11735 11736if test -z "$cf_x_athena_lib" ; then 11737 { { echo "$as_me:11737: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5 11738echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;} 11739 { (exit 1); exit 1; }; } 11740fi 11741 11742cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 11743 11744cat >>confdefs.h <<EOF 11745#define $cf_x_athena_LIBS 1 11746EOF 11747 11748fi 11749 11750for ac_header in X11/Xpoll.h 11751do 11752as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11753echo "$as_me:11753: checking for $ac_header" >&5 11754echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11755if eval "test \"\${$as_ac_Header+set}\" = set"; then 11756 echo $ECHO_N "(cached) $ECHO_C" >&6 11757else 11758 cat >conftest.$ac_ext <<_ACEOF 11759#line 11759 "configure" 11760#include "confdefs.h" 11761#include <$ac_header> 11762_ACEOF 11763if { (eval echo "$as_me:11763: \"$ac_cpp conftest.$ac_ext\"") >&5 11764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11765 ac_status=$? 11766 egrep -v '^ *\+' conftest.er1 >conftest.err 11767 rm -f conftest.er1 11768 cat conftest.err >&5 11769 echo "$as_me:11769: \$? = $ac_status" >&5 11770 (exit $ac_status); } >/dev/null; then 11771 if test -s conftest.err; then 11772 ac_cpp_err=$ac_c_preproc_warn_flag 11773 else 11774 ac_cpp_err= 11775 fi 11776else 11777 ac_cpp_err=yes 11778fi 11779if test -z "$ac_cpp_err"; then 11780 eval "$as_ac_Header=yes" 11781else 11782 echo "$as_me: failed program was:" >&5 11783 cat conftest.$ac_ext >&5 11784 eval "$as_ac_Header=no" 11785fi 11786rm -f conftest.err conftest.$ac_ext 11787fi 11788echo "$as_me:11788: result: `eval echo '${'$as_ac_Header'}'`" >&5 11789echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11790if test `eval echo '${'$as_ac_Header'}'` = yes; then 11791 cat >>confdefs.h <<EOF 11792#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11793EOF 11794 11795fi 11796done 11797 11798echo "$as_me:11798: checking for declaration of fd_set" >&5 11799echo $ECHO_N "checking for declaration of fd_set... $ECHO_C" >&6 11800if test "${cf_cv_type_fd_set+set}" = set; then 11801 echo $ECHO_N "(cached) $ECHO_C" >&6 11802else 11803 11804echo "${as_me:-configure}:11804: testing sys/types alone ..." 1>&5 11805 11806cat >conftest.$ac_ext <<_ACEOF 11807#line 11807 "configure" 11808#include "confdefs.h" 11809 11810#include <sys/types.h> 11811int 11812main () 11813{ 11814fd_set x 11815 ; 11816 return 0; 11817} 11818_ACEOF 11819rm -f conftest.$ac_objext 11820if { (eval echo "$as_me:11820: \"$ac_compile\"") >&5 11821 (eval $ac_compile) 2>&5 11822 ac_status=$? 11823 echo "$as_me:11823: \$? = $ac_status" >&5 11824 (exit $ac_status); } && 11825 { ac_try='test -s conftest.$ac_objext' 11826 { (eval echo "$as_me:11826: \"$ac_try\"") >&5 11827 (eval $ac_try) 2>&5 11828 ac_status=$? 11829 echo "$as_me:11829: \$? = $ac_status" >&5 11830 (exit $ac_status); }; }; then 11831 cf_cv_type_fd_set=sys/types.h 11832else 11833 echo "$as_me: failed program was:" >&5 11834cat conftest.$ac_ext >&5 11835 11836echo "${as_me:-configure}:11836: testing X11/Xpoll.h ..." 1>&5 11837 11838cat >conftest.$ac_ext <<_ACEOF 11839#line 11839 "configure" 11840#include "confdefs.h" 11841 11842#ifdef HAVE_X11_XPOLL_H 11843#include <X11/Xpoll.h> 11844#endif 11845int 11846main () 11847{ 11848fd_set x 11849 ; 11850 return 0; 11851} 11852_ACEOF 11853rm -f conftest.$ac_objext 11854if { (eval echo "$as_me:11854: \"$ac_compile\"") >&5 11855 (eval $ac_compile) 2>&5 11856 ac_status=$? 11857 echo "$as_me:11857: \$? = $ac_status" >&5 11858 (exit $ac_status); } && 11859 { ac_try='test -s conftest.$ac_objext' 11860 { (eval echo "$as_me:11860: \"$ac_try\"") >&5 11861 (eval $ac_try) 2>&5 11862 ac_status=$? 11863 echo "$as_me:11863: \$? = $ac_status" >&5 11864 (exit $ac_status); }; }; then 11865 cf_cv_type_fd_set=X11/Xpoll.h 11866else 11867 echo "$as_me: failed program was:" >&5 11868cat conftest.$ac_ext >&5 11869 11870echo "${as_me:-configure}:11870: testing sys/select.h ..." 1>&5 11871 11872cat >conftest.$ac_ext <<_ACEOF 11873#line 11873 "configure" 11874#include "confdefs.h" 11875 11876#include <sys/types.h> 11877#include <sys/select.h> 11878int 11879main () 11880{ 11881fd_set x 11882 ; 11883 return 0; 11884} 11885_ACEOF 11886rm -f conftest.$ac_objext 11887if { (eval echo "$as_me:11887: \"$ac_compile\"") >&5 11888 (eval $ac_compile) 2>&5 11889 ac_status=$? 11890 echo "$as_me:11890: \$? = $ac_status" >&5 11891 (exit $ac_status); } && 11892 { ac_try='test -s conftest.$ac_objext' 11893 { (eval echo "$as_me:11893: \"$ac_try\"") >&5 11894 (eval $ac_try) 2>&5 11895 ac_status=$? 11896 echo "$as_me:11896: \$? = $ac_status" >&5 11897 (exit $ac_status); }; }; then 11898 cf_cv_type_fd_set=sys/select.h 11899else 11900 echo "$as_me: failed program was:" >&5 11901cat conftest.$ac_ext >&5 11902cf_cv_type_fd_set=unknown 11903fi 11904rm -f conftest.$ac_objext conftest.$ac_ext 11905fi 11906rm -f conftest.$ac_objext conftest.$ac_ext 11907fi 11908rm -f conftest.$ac_objext conftest.$ac_ext 11909fi 11910echo "$as_me:11910: result: $cf_cv_type_fd_set" >&5 11911echo "${ECHO_T}$cf_cv_type_fd_set" >&6 11912if test $cf_cv_type_fd_set = sys/select.h ; then 11913 11914cat >>confdefs.h <<\EOF 11915#define USE_SYS_SELECT_H 1 11916EOF 11917 11918fi 11919 11920echo "$as_me:11920: checking for declaration of fd_mask" >&5 11921echo $ECHO_N "checking for declaration of fd_mask... $ECHO_C" >&6 11922if test "${cf_cv_type_fd_mask+set}" = set; then 11923 echo $ECHO_N "(cached) $ECHO_C" >&6 11924else 11925 11926 if test x$cf_cv_type_fd_set = xX11/Xpoll.h ; then 11927 cat >conftest.$ac_ext <<_ACEOF 11928#line 11928 "configure" 11929#include "confdefs.h" 11930 11931#include <X11/Xpoll.h> 11932int 11933main () 11934{ 11935fd_mask x 11936 ; 11937 return 0; 11938} 11939_ACEOF 11940rm -f conftest.$ac_objext 11941if { (eval echo "$as_me:11941: \"$ac_compile\"") >&5 11942 (eval $ac_compile) 2>&5 11943 ac_status=$? 11944 echo "$as_me:11944: \$? = $ac_status" >&5 11945 (exit $ac_status); } && 11946 { ac_try='test -s conftest.$ac_objext' 11947 { (eval echo "$as_me:11947: \"$ac_try\"") >&5 11948 (eval $ac_try) 2>&5 11949 ac_status=$? 11950 echo "$as_me:11950: \$? = $ac_status" >&5 11951 (exit $ac_status); }; }; then 11952 : 11953else 11954 echo "$as_me: failed program was:" >&5 11955cat conftest.$ac_ext >&5 11956 11957echo "${as_me:-configure}:11957: testing if we must define CSRG_BASED ..." 1>&5 11958 11959# Xosdefs.h on Mac OS X may not define this (but it should). 11960 cat >conftest.$ac_ext <<_ACEOF 11961#line 11961 "configure" 11962#include "confdefs.h" 11963 11964#define CSRG_BASED 11965#include <X11/Xpoll.h> 11966int 11967main () 11968{ 11969fd_mask x 11970 ; 11971 return 0; 11972} 11973_ACEOF 11974rm -f conftest.$ac_objext 11975if { (eval echo "$as_me:11975: \"$ac_compile\"") >&5 11976 (eval $ac_compile) 2>&5 11977 ac_status=$? 11978 echo "$as_me:11978: \$? = $ac_status" >&5 11979 (exit $ac_status); } && 11980 { ac_try='test -s conftest.$ac_objext' 11981 { (eval echo "$as_me:11981: \"$ac_try\"") >&5 11982 (eval $ac_try) 2>&5 11983 ac_status=$? 11984 echo "$as_me:11984: \$? = $ac_status" >&5 11985 (exit $ac_status); }; }; then 11986 cf_cv_type_fd_mask=CSRG_BASED 11987else 11988 echo "$as_me: failed program was:" >&5 11989cat conftest.$ac_ext >&5 11990fi 11991rm -f conftest.$ac_objext conftest.$ac_ext 11992fi 11993rm -f conftest.$ac_objext conftest.$ac_ext 11994 else 11995 cf_cv_type_fd_mask=$cf_cv_type_fd_set 11996 fi 11997 11998fi 11999echo "$as_me:11999: result: $cf_cv_type_fd_mask" >&5 12000echo "${ECHO_T}$cf_cv_type_fd_mask" >&6 12001if test x$cf_cv_type_fd_mask = xCSRG_BASED ; then 12002 12003cat >>confdefs.h <<\EOF 12004#define CSRG_BASED 1 12005EOF 12006 12007fi 12008 12009echo "$as_me:12009: checking for IRIX 6.5 baud-rate redefinitions" >&5 12010echo $ECHO_N "checking for IRIX 6.5 baud-rate redefinitions... $ECHO_C" >&6 12011if test "${cf_cv_termio_c_ispeed+set}" = set; then 12012 echo $ECHO_N "(cached) $ECHO_C" >&6 12013else 12014 12015cat >conftest.$ac_ext <<_ACEOF 12016#line 12016 "configure" 12017#include "confdefs.h" 12018 12019#include <sys/types.h> 12020#include <sys/termio.h> 12021int 12022main () 12023{ 12024 12025struct termio foo; 12026foo.c_ispeed = B38400; 12027foo.c_ospeed = B9600; 12028 12029 ; 12030 return 0; 12031} 12032_ACEOF 12033rm -f conftest.$ac_objext 12034if { (eval echo "$as_me:12034: \"$ac_compile\"") >&5 12035 (eval $ac_compile) 2>&5 12036 ac_status=$? 12037 echo "$as_me:12037: \$? = $ac_status" >&5 12038 (exit $ac_status); } && 12039 { ac_try='test -s conftest.$ac_objext' 12040 { (eval echo "$as_me:12040: \"$ac_try\"") >&5 12041 (eval $ac_try) 2>&5 12042 ac_status=$? 12043 echo "$as_me:12043: \$? = $ac_status" >&5 12044 (exit $ac_status); }; }; then 12045 cf_cv_termio_c_ispeed=yes 12046 12047else 12048 echo "$as_me: failed program was:" >&5 12049cat conftest.$ac_ext >&5 12050cf_cv_termio_c_ispeed=no 12051fi 12052rm -f conftest.$ac_objext conftest.$ac_ext 12053 12054fi 12055echo "$as_me:12055: result: $cf_cv_termio_c_ispeed" >&5 12056echo "${ECHO_T}$cf_cv_termio_c_ispeed" >&6 12057test "$cf_cv_termio_c_ispeed" = yes && 12058cat >>confdefs.h <<\EOF 12059#define HAVE_TERMIO_C_ISPEED 1 12060EOF 12061 12062# If we notice Xcursor, there is a workaround needed. 12063echo "$as_me:12063: checking for XcursorGetTheme in -lXcursor" >&5 12064echo $ECHO_N "checking for XcursorGetTheme in -lXcursor... $ECHO_C" >&6 12065if test "${ac_cv_lib_Xcursor_XcursorGetTheme+set}" = set; then 12066 echo $ECHO_N "(cached) $ECHO_C" >&6 12067else 12068 ac_check_lib_save_LIBS=$LIBS 12069LIBS="-lXcursor $LIBS" 12070cat >conftest.$ac_ext <<_ACEOF 12071#line 12071 "configure" 12072#include "confdefs.h" 12073 12074/* Override any gcc2 internal prototype to avoid an error. */ 12075#ifdef __cplusplus 12076extern "C" 12077#endif 12078/* We use char because int might match the return type of a gcc2 12079 builtin and then its argument prototype would still apply. */ 12080char XcursorGetTheme (); 12081int 12082main () 12083{ 12084XcursorGetTheme (); 12085 ; 12086 return 0; 12087} 12088_ACEOF 12089rm -f conftest.$ac_objext conftest$ac_exeext 12090if { (eval echo "$as_me:12090: \"$ac_link\"") >&5 12091 (eval $ac_link) 2>&5 12092 ac_status=$? 12093 echo "$as_me:12093: \$? = $ac_status" >&5 12094 (exit $ac_status); } && 12095 { ac_try='test -s conftest$ac_exeext' 12096 { (eval echo "$as_me:12096: \"$ac_try\"") >&5 12097 (eval $ac_try) 2>&5 12098 ac_status=$? 12099 echo "$as_me:12099: \$? = $ac_status" >&5 12100 (exit $ac_status); }; }; then 12101 ac_cv_lib_Xcursor_XcursorGetTheme=yes 12102else 12103 echo "$as_me: failed program was:" >&5 12104cat conftest.$ac_ext >&5 12105ac_cv_lib_Xcursor_XcursorGetTheme=no 12106fi 12107rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12108LIBS=$ac_check_lib_save_LIBS 12109fi 12110echo "$as_me:12110: result: $ac_cv_lib_Xcursor_XcursorGetTheme" >&5 12111echo "${ECHO_T}$ac_cv_lib_Xcursor_XcursorGetTheme" >&6 12112if test $ac_cv_lib_Xcursor_XcursorGetTheme = yes; then 12113 cat >>confdefs.h <<\EOF 12114#define HAVE_LIB_XCURSOR 1 12115EOF 12116 12117fi 12118 12119LIBS="$LIBS $X_EXTRA_LIBS" 12120 12121for ac_header in \ 12122stropts.h \ 12123 12124do 12125as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12126echo "$as_me:12126: checking for $ac_header" >&5 12127echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12128if eval "test \"\${$as_ac_Header+set}\" = set"; then 12129 echo $ECHO_N "(cached) $ECHO_C" >&6 12130else 12131 cat >conftest.$ac_ext <<_ACEOF 12132#line 12132 "configure" 12133#include "confdefs.h" 12134#include <$ac_header> 12135_ACEOF 12136if { (eval echo "$as_me:12136: \"$ac_cpp conftest.$ac_ext\"") >&5 12137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 12138 ac_status=$? 12139 egrep -v '^ *\+' conftest.er1 >conftest.err 12140 rm -f conftest.er1 12141 cat conftest.err >&5 12142 echo "$as_me:12142: \$? = $ac_status" >&5 12143 (exit $ac_status); } >/dev/null; then 12144 if test -s conftest.err; then 12145 ac_cpp_err=$ac_c_preproc_warn_flag 12146 else 12147 ac_cpp_err= 12148 fi 12149else 12150 ac_cpp_err=yes 12151fi 12152if test -z "$ac_cpp_err"; then 12153 eval "$as_ac_Header=yes" 12154else 12155 echo "$as_me: failed program was:" >&5 12156 cat conftest.$ac_ext >&5 12157 eval "$as_ac_Header=no" 12158fi 12159rm -f conftest.err conftest.$ac_ext 12160fi 12161echo "$as_me:12161: result: `eval echo '${'$as_ac_Header'}'`" >&5 12162echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12163if test `eval echo '${'$as_ac_Header'}'` = yes; then 12164 cat >>confdefs.h <<EOF 12165#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12166EOF 12167 12168fi 12169done 12170 12171cf_func_grantpt="grantpt ptsname" 12172case $host_os in #(vi 12173darwin[0-9].*) #(vi 12174 ;; 12175*) 12176 cf_func_grantpt="$cf_func_grantpt posix_openpt" 12177 ;; 12178esac 12179 12180for ac_func in $cf_func_grantpt 12181do 12182as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12183echo "$as_me:12183: checking for $ac_func" >&5 12184echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 12185if eval "test \"\${$as_ac_var+set}\" = set"; then 12186 echo $ECHO_N "(cached) $ECHO_C" >&6 12187else 12188 cat >conftest.$ac_ext <<_ACEOF 12189#line 12189 "configure" 12190#include "confdefs.h" 12191/* System header to define __stub macros and hopefully few prototypes, 12192 which can conflict with char $ac_func (); below. */ 12193#include <assert.h> 12194/* Override any gcc2 internal prototype to avoid an error. */ 12195#ifdef __cplusplus 12196extern "C" 12197#endif 12198/* We use char because int might match the return type of a gcc2 12199 builtin and then its argument prototype would still apply. */ 12200char $ac_func (); 12201char (*f) (); 12202 12203int 12204main () 12205{ 12206/* The GNU C library defines this for functions which it implements 12207 to always fail with ENOSYS. Some functions are actually named 12208 something starting with __ and the normal name is an alias. */ 12209#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 12210choke me 12211#else 12212f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 12213#endif 12214 12215 ; 12216 return 0; 12217} 12218_ACEOF 12219rm -f conftest.$ac_objext conftest$ac_exeext 12220if { (eval echo "$as_me:12220: \"$ac_link\"") >&5 12221 (eval $ac_link) 2>&5 12222 ac_status=$? 12223 echo "$as_me:12223: \$? = $ac_status" >&5 12224 (exit $ac_status); } && 12225 { ac_try='test -s conftest$ac_exeext' 12226 { (eval echo "$as_me:12226: \"$ac_try\"") >&5 12227 (eval $ac_try) 2>&5 12228 ac_status=$? 12229 echo "$as_me:12229: \$? = $ac_status" >&5 12230 (exit $ac_status); }; }; then 12231 eval "$as_ac_var=yes" 12232else 12233 echo "$as_me: failed program was:" >&5 12234cat conftest.$ac_ext >&5 12235eval "$as_ac_var=no" 12236fi 12237rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12238fi 12239echo "$as_me:12239: result: `eval echo '${'$as_ac_var'}'`" >&5 12240echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 12241if test `eval echo '${'$as_ac_var'}'` = yes; then 12242 cat >>confdefs.h <<EOF 12243#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12244EOF 12245 12246fi 12247done 12248 12249cf_grantpt_opts= 12250if test "x$ac_cv_func_grantpt" = "xyes" ; then 12251 echo "$as_me:12251: checking if grantpt really works" >&5 12252echo $ECHO_N "checking if grantpt really works... $ECHO_C" >&6 12253 cat >conftest.$ac_ext <<_ACEOF 12254#line 12254 "configure" 12255#include "confdefs.h" 12256 12257#include <stdlib.h> 12258#include <termios.h> 12259#include <unistd.h> 12260#include <signal.h> 12261#include <fcntl.h> 12262#include <errno.h> 12263 12264#ifndef HAVE_POSIX_OPENPT 12265#undef posix_openpt 12266#define posix_openpt(mode) open("/dev/ptmx", mode) 12267#endif 12268 12269#ifdef HAVE_STROPTS_H 12270#include <stropts.h> 12271#endif 12272 12273static void failed(int code) 12274{ 12275 perror("conftest"); 12276 exit(code); 12277} 12278 12279static void my_timeout(int sig) 12280{ 12281 exit(99); 12282} 12283 12284int 12285main () 12286{ 12287 12288 int code = 0; 12289 int rc; 12290 int pty; 12291 int tty; 12292 char *slave; 12293 struct termios tio; 12294 12295 signal(SIGALRM, my_timeout); 12296 12297 if (alarm(2) == 9) 12298 failed(9); 12299 else if ((pty = posix_openpt(O_RDWR)) < 0) 12300 failed(1); 12301 else if ((rc = grantpt(pty)) < 0) 12302 failed(2); 12303 else if ((rc = unlockpt(pty)) < 0) 12304 failed(3); 12305 else if ((slave = ptsname(pty)) == 0) 12306 failed(4); 12307#if (CONFTEST == 3) || defined(CONFTEST_isatty) 12308 else if (!isatty(pty)) 12309 failed(4); 12310#endif 12311#if CONFTEST >= 4 12312 else if ((rc = tcgetattr(pty, &tio)) < 0) 12313 failed(20); 12314 else if ((rc = tcsetattr(pty, TCSAFLUSH, &tio)) < 0) 12315 failed(21); 12316#endif 12317 /* BSD posix_openpt does not treat pty as a terminal until slave is opened. 12318 * Linux does treat it that way. 12319 */ 12320 else if ((tty = open(slave, O_RDWR)) < 0) 12321 failed(5); 12322#ifdef CONFTEST 12323#ifdef I_PUSH 12324#if (CONFTEST == 0) || defined(CONFTEST_ptem) 12325 else if ((rc = ioctl(tty, I_PUSH, "ptem")) < 0) 12326 failed(10); 12327#endif 12328#if (CONFTEST == 1) || defined(CONFTEST_ldterm) 12329 else if ((rc = ioctl(tty, I_PUSH, "ldterm")) < 0) 12330 failed(11); 12331#endif 12332#if (CONFTEST == 2) || defined(CONFTEST_ttcompat) 12333 else if ((rc = ioctl(tty, I_PUSH, "ttcompat")) < 0) 12334 failed(12); 12335#endif 12336#endif /* I_PUSH */ 12337#if CONFTEST >= 5 12338 else if ((rc = tcgetattr(tty, &tio)) < 0) 12339 failed(30); 12340 else if ((rc = tcsetattr(tty, TCSAFLUSH, &tio)) < 0) 12341 failed(31); 12342#endif 12343#endif /* CONFTEST */ 12344 12345 ${cf_cv_main_return:-return}(code); 12346 12347 ; 12348 return 0; 12349} 12350_ACEOF 12351rm -f conftest.$ac_objext conftest$ac_exeext 12352if { (eval echo "$as_me:12352: \"$ac_link\"") >&5 12353 (eval $ac_link) 2>&5 12354 ac_status=$? 12355 echo "$as_me:12355: \$? = $ac_status" >&5 12356 (exit $ac_status); } && 12357 { ac_try='test -s conftest$ac_exeext' 12358 { (eval echo "$as_me:12358: \"$ac_try\"") >&5 12359 (eval $ac_try) 2>&5 12360 ac_status=$? 12361 echo "$as_me:12361: \$? = $ac_status" >&5 12362 (exit $ac_status); }; }; then 12363 12364 if test "$cross_compiling" = yes; then 12365 ac_cv_func_grantpt=maybe 12366else 12367 cat >conftest.$ac_ext <<_ACEOF 12368#line 12368 "configure" 12369#include "confdefs.h" 12370 12371#include <stdlib.h> 12372#include <termios.h> 12373#include <unistd.h> 12374#include <signal.h> 12375#include <fcntl.h> 12376#include <errno.h> 12377 12378#ifndef HAVE_POSIX_OPENPT 12379#undef posix_openpt 12380#define posix_openpt(mode) open("/dev/ptmx", mode) 12381#endif 12382 12383#ifdef HAVE_STROPTS_H 12384#include <stropts.h> 12385#endif 12386 12387static void failed(int code) 12388{ 12389 perror("conftest"); 12390 exit(code); 12391} 12392 12393static void my_timeout(int sig) 12394{ 12395 exit(99); 12396} 12397 12398int main(void) 12399{ 12400 12401 int code = 0; 12402 int rc; 12403 int pty; 12404 int tty; 12405 char *slave; 12406 struct termios tio; 12407 12408 signal(SIGALRM, my_timeout); 12409 12410 if (alarm(2) == 9) 12411 failed(9); 12412 else if ((pty = posix_openpt(O_RDWR)) < 0) 12413 failed(1); 12414 else if ((rc = grantpt(pty)) < 0) 12415 failed(2); 12416 else if ((rc = unlockpt(pty)) < 0) 12417 failed(3); 12418 else if ((slave = ptsname(pty)) == 0) 12419 failed(4); 12420#if (CONFTEST == 3) || defined(CONFTEST_isatty) 12421 else if (!isatty(pty)) 12422 failed(4); 12423#endif 12424#if CONFTEST >= 4 12425 else if ((rc = tcgetattr(pty, &tio)) < 0) 12426 failed(20); 12427 else if ((rc = tcsetattr(pty, TCSAFLUSH, &tio)) < 0) 12428 failed(21); 12429#endif 12430 /* BSD posix_openpt does not treat pty as a terminal until slave is opened. 12431 * Linux does treat it that way. 12432 */ 12433 else if ((tty = open(slave, O_RDWR)) < 0) 12434 failed(5); 12435#ifdef CONFTEST 12436#ifdef I_PUSH 12437#if (CONFTEST == 0) || defined(CONFTEST_ptem) 12438 else if ((rc = ioctl(tty, I_PUSH, "ptem")) < 0) 12439 failed(10); 12440#endif 12441#if (CONFTEST == 1) || defined(CONFTEST_ldterm) 12442 else if ((rc = ioctl(tty, I_PUSH, "ldterm")) < 0) 12443 failed(11); 12444#endif 12445#if (CONFTEST == 2) || defined(CONFTEST_ttcompat) 12446 else if ((rc = ioctl(tty, I_PUSH, "ttcompat")) < 0) 12447 failed(12); 12448#endif 12449#endif /* I_PUSH */ 12450#if CONFTEST >= 5 12451 else if ((rc = tcgetattr(tty, &tio)) < 0) 12452 failed(30); 12453 else if ((rc = tcsetattr(tty, TCSAFLUSH, &tio)) < 0) 12454 failed(31); 12455#endif 12456#endif /* CONFTEST */ 12457 12458 ${cf_cv_main_return:-return}(code); 12459 12460} 12461 12462_ACEOF 12463rm -f conftest$ac_exeext 12464if { (eval echo "$as_me:12464: \"$ac_link\"") >&5 12465 (eval $ac_link) 2>&5 12466 ac_status=$? 12467 echo "$as_me:12467: \$? = $ac_status" >&5 12468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12469 { (eval echo "$as_me:12469: \"$ac_try\"") >&5 12470 (eval $ac_try) 2>&5 12471 ac_status=$? 12472 echo "$as_me:12472: \$? = $ac_status" >&5 12473 (exit $ac_status); }; }; then 12474 : 12475else 12476 echo "$as_me: program exited with status $ac_status" >&5 12477echo "$as_me: failed program was:" >&5 12478cat conftest.$ac_ext >&5 12479ac_cv_func_grantpt=no 12480 12481fi 12482rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12483fi 12484 12485else 12486 echo "$as_me: failed program was:" >&5 12487cat conftest.$ac_ext >&5 12488ac_cv_func_grantpt=no 12489fi 12490rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12491 echo "$as_me:12491: result: $ac_cv_func_grantpt" >&5 12492echo "${ECHO_T}$ac_cv_func_grantpt" >&6 12493 12494 if test "x$ac_cv_func_grantpt" != "xno" ; then 12495 12496 if test "x$ac_cv_func_grantpt" = "xyes" ; then 12497 echo "$as_me:12497: checking for pty features" >&5 12498echo $ECHO_N "checking for pty features... $ECHO_C" >&6 12499 if test "x$ac_cv_header_stropts_h" = xyes 12500 then 12501 cf_pty_this=0 12502 else 12503 cf_pty_this=3 12504 fi 12505 12506 cf_pty_defines= 12507 while test $cf_pty_this != 6 12508 do 12509 12510 cf_pty_feature= 12511 cf_pty_next=`expr $cf_pty_this + 1` 12512 12513echo "${as_me:-configure}:12513: testing pty feature test $cf_pty_next:5 ..." 1>&5 12514 12515 if test "$cross_compiling" = yes; then 12516 { { echo "$as_me:12516: error: cannot run test program while cross compiling" >&5 12517echo "$as_me: error: cannot run test program while cross compiling" >&2;} 12518 { (exit 1); exit 1; }; } 12519else 12520 cat >conftest.$ac_ext <<_ACEOF 12521#line 12521 "configure" 12522#include "confdefs.h" 12523#define CONFTEST $cf_pty_this 12524$cf_pty_defines 12525 12526#include <stdlib.h> 12527#include <termios.h> 12528#include <unistd.h> 12529#include <signal.h> 12530#include <fcntl.h> 12531#include <errno.h> 12532 12533#ifndef HAVE_POSIX_OPENPT 12534#undef posix_openpt 12535#define posix_openpt(mode) open("/dev/ptmx", mode) 12536#endif 12537 12538#ifdef HAVE_STROPTS_H 12539#include <stropts.h> 12540#endif 12541 12542static void failed(int code) 12543{ 12544 perror("conftest"); 12545 exit(code); 12546} 12547 12548static void my_timeout(int sig) 12549{ 12550 exit(99); 12551} 12552 12553int main(void) 12554{ 12555 12556 int code = 0; 12557 int rc; 12558 int pty; 12559 int tty; 12560 char *slave; 12561 struct termios tio; 12562 12563 signal(SIGALRM, my_timeout); 12564 12565 if (alarm(2) == 9) 12566 failed(9); 12567 else if ((pty = posix_openpt(O_RDWR)) < 0) 12568 failed(1); 12569 else if ((rc = grantpt(pty)) < 0) 12570 failed(2); 12571 else if ((rc = unlockpt(pty)) < 0) 12572 failed(3); 12573 else if ((slave = ptsname(pty)) == 0) 12574 failed(4); 12575#if (CONFTEST == 3) || defined(CONFTEST_isatty) 12576 else if (!isatty(pty)) 12577 failed(4); 12578#endif 12579#if CONFTEST >= 4 12580 else if ((rc = tcgetattr(pty, &tio)) < 0) 12581 failed(20); 12582 else if ((rc = tcsetattr(pty, TCSAFLUSH, &tio)) < 0) 12583 failed(21); 12584#endif 12585 /* BSD posix_openpt does not treat pty as a terminal until slave is opened. 12586 * Linux does treat it that way. 12587 */ 12588 else if ((tty = open(slave, O_RDWR)) < 0) 12589 failed(5); 12590#ifdef CONFTEST 12591#ifdef I_PUSH 12592#if (CONFTEST == 0) || defined(CONFTEST_ptem) 12593 else if ((rc = ioctl(tty, I_PUSH, "ptem")) < 0) 12594 failed(10); 12595#endif 12596#if (CONFTEST == 1) || defined(CONFTEST_ldterm) 12597 else if ((rc = ioctl(tty, I_PUSH, "ldterm")) < 0) 12598 failed(11); 12599#endif 12600#if (CONFTEST == 2) || defined(CONFTEST_ttcompat) 12601 else if ((rc = ioctl(tty, I_PUSH, "ttcompat")) < 0) 12602 failed(12); 12603#endif 12604#endif /* I_PUSH */ 12605#if CONFTEST >= 5 12606 else if ((rc = tcgetattr(tty, &tio)) < 0) 12607 failed(30); 12608 else if ((rc = tcsetattr(tty, TCSAFLUSH, &tio)) < 0) 12609 failed(31); 12610#endif 12611#endif /* CONFTEST */ 12612 12613 ${cf_cv_main_return:-return}(code); 12614 12615} 12616 12617_ACEOF 12618rm -f conftest$ac_exeext 12619if { (eval echo "$as_me:12619: \"$ac_link\"") >&5 12620 (eval $ac_link) 2>&5 12621 ac_status=$? 12622 echo "$as_me:12622: \$? = $ac_status" >&5 12623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12624 { (eval echo "$as_me:12624: \"$ac_try\"") >&5 12625 (eval $ac_try) 2>&5 12626 ac_status=$? 12627 echo "$as_me:12627: \$? = $ac_status" >&5 12628 (exit $ac_status); }; }; then 12629 12630 case $cf_pty_next in #(vi 12631 1) #(vi - streams 12632 cf_pty_feature=ptem 12633 ;; 12634 2) #(vi - streams 12635 cf_pty_feature=ldterm 12636 ;; 12637 3) #(vi - streams 12638 cf_pty_feature=ttcompat 12639 ;; 12640 4) #(vi 12641 cf_pty_feature=pty_isatty 12642 ;; 12643 5) #(vi 12644 cf_pty_feature=pty_tcsetattr 12645 ;; 12646 6) #(vi 12647 cf_pty_feature=tty_tcsetattr 12648 ;; 12649 esac 12650 12651else 12652 echo "$as_me: program exited with status $ac_status" >&5 12653echo "$as_me: failed program was:" >&5 12654cat conftest.$ac_ext >&5 12655 12656 case $cf_pty_next in #(vi 12657 1|2|3) 12658 12659echo "${as_me:-configure}:12659: testing skipping remaining streams features $cf_pty_this..2 ..." 1>&5 12660 12661 cf_pty_next=3 12662 ;; 12663 esac 12664 12665fi 12666rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12667fi 12668 if test -n "$cf_pty_feature" 12669 then 12670 cf_pty_defines="$cf_pty_defines 12671#define CONFTEST_$cf_pty_feature 1 12672" 12673 cf_grantpt_opts="$cf_grantpt_opts $cf_pty_feature" 12674 fi 12675 12676 cf_pty_this=$cf_pty_next 12677 done 12678 echo "$as_me:12678: result: $cf_grantpt_opts" >&5 12679echo "${ECHO_T}$cf_grantpt_opts" >&6 12680 cf_grantpt_opts=`echo "$cf_grantpt_opts" | sed -e 's/ isatty//'` 12681 fi 12682 fi 12683fi 12684 12685if test "x$disable_openpty" != "xyes" || test -z "$cf_grantpt_opts" ; then 12686 echo "$as_me:12686: checking for openpty in -lutil" >&5 12687echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 12688if test "${ac_cv_lib_util_openpty+set}" = set; then 12689 echo $ECHO_N "(cached) $ECHO_C" >&6 12690else 12691 ac_check_lib_save_LIBS=$LIBS 12692LIBS="-lutil $LIBS" 12693cat >conftest.$ac_ext <<_ACEOF 12694#line 12694 "configure" 12695#include "confdefs.h" 12696 12697/* Override any gcc2 internal prototype to avoid an error. */ 12698#ifdef __cplusplus 12699extern "C" 12700#endif 12701/* We use char because int might match the return type of a gcc2 12702 builtin and then its argument prototype would still apply. */ 12703char openpty (); 12704int 12705main () 12706{ 12707openpty (); 12708 ; 12709 return 0; 12710} 12711_ACEOF 12712rm -f conftest.$ac_objext conftest$ac_exeext 12713if { (eval echo "$as_me:12713: \"$ac_link\"") >&5 12714 (eval $ac_link) 2>&5 12715 ac_status=$? 12716 echo "$as_me:12716: \$? = $ac_status" >&5 12717 (exit $ac_status); } && 12718 { ac_try='test -s conftest$ac_exeext' 12719 { (eval echo "$as_me:12719: \"$ac_try\"") >&5 12720 (eval $ac_try) 2>&5 12721 ac_status=$? 12722 echo "$as_me:12722: \$? = $ac_status" >&5 12723 (exit $ac_status); }; }; then 12724 ac_cv_lib_util_openpty=yes 12725else 12726 echo "$as_me: failed program was:" >&5 12727cat conftest.$ac_ext >&5 12728ac_cv_lib_util_openpty=no 12729fi 12730rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12731LIBS=$ac_check_lib_save_LIBS 12732fi 12733echo "$as_me:12733: result: $ac_cv_lib_util_openpty" >&5 12734echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 12735if test $ac_cv_lib_util_openpty = yes; then 12736 cf_have_openpty=yes 12737else 12738 cf_have_openpty=no 12739fi 12740 12741 if test "$cf_have_openpty" = yes ; then 12742 ac_cv_func_grantpt=no 12743 LIBS="-lutil $LIBS" 12744 12745cat >>confdefs.h <<\EOF 12746#define HAVE_OPENPTY 1 12747EOF 12748 12749for ac_header in \ 12750 util.h \ 12751 libutil.h \ 12752 pty.h \ 12753 12754do 12755as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12756echo "$as_me:12756: checking for $ac_header" >&5 12757echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12758if eval "test \"\${$as_ac_Header+set}\" = set"; then 12759 echo $ECHO_N "(cached) $ECHO_C" >&6 12760else 12761 cat >conftest.$ac_ext <<_ACEOF 12762#line 12762 "configure" 12763#include "confdefs.h" 12764#include <$ac_header> 12765_ACEOF 12766if { (eval echo "$as_me:12766: \"$ac_cpp conftest.$ac_ext\"") >&5 12767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 12768 ac_status=$? 12769 egrep -v '^ *\+' conftest.er1 >conftest.err 12770 rm -f conftest.er1 12771 cat conftest.err >&5 12772 echo "$as_me:12772: \$? = $ac_status" >&5 12773 (exit $ac_status); } >/dev/null; then 12774 if test -s conftest.err; then 12775 ac_cpp_err=$ac_c_preproc_warn_flag 12776 else 12777 ac_cpp_err= 12778 fi 12779else 12780 ac_cpp_err=yes 12781fi 12782if test -z "$ac_cpp_err"; then 12783 eval "$as_ac_Header=yes" 12784else 12785 echo "$as_me: failed program was:" >&5 12786 cat conftest.$ac_ext >&5 12787 eval "$as_ac_Header=no" 12788fi 12789rm -f conftest.err conftest.$ac_ext 12790fi 12791echo "$as_me:12791: result: `eval echo '${'$as_ac_Header'}'`" >&5 12792echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12793if test `eval echo '${'$as_ac_Header'}'` = yes; then 12794 cat >>confdefs.h <<EOF 12795#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12796EOF 12797 12798fi 12799done 12800 12801 fi 12802fi 12803 12804if test "x$ac_cv_func_grantpt" != xno 12805then 12806 test -n "$verbose" && echo " will rely upon grantpt" 1>&6 12807 12808echo "${as_me:-configure}:12808: testing will rely upon grantpt ..." 1>&5 12809 12810cat >>confdefs.h <<\EOF 12811#define HAVE_WORKING_GRANTPT 1 12812EOF 12813 12814 for cf_feature in $cf_grantpt_opts 12815 do 12816 cf_feature=`echo "$cf_feature" | sed -e 's/ //g'` 12817 12818cf_FEATURE=`echo "$cf_feature" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 12819 12820 cat >>confdefs.h <<EOF 12821#define HAVE_GRANTPT_$cf_FEATURE 1 12822EOF 12823 12824 done 12825elif test "x$cf_have_openpty" = xno 12826then 12827 test -n "$verbose" && echo " will rely upon BSD-pseudoterminals" 1>&6 12828 12829echo "${as_me:-configure}:12829: testing will rely upon BSD-pseudoterminals ..." 1>&5 12830 12831else 12832 test -n "$verbose" && echo " will rely upon openpty" 1>&6 12833 12834echo "${as_me:-configure}:12834: testing will rely upon openpty ..." 1>&5 12835 12836fi 12837 12838echo "$as_me:12838: checking if we can use XkbQueryExtension" >&5 12839echo $ECHO_N "checking if we can use XkbQueryExtension... $ECHO_C" >&6 12840if test "${cf_cv_xkb_query_extension+set}" = set; then 12841 echo $ECHO_N "(cached) $ECHO_C" >&6 12842else 12843 12844cat >conftest.$ac_ext <<_ACEOF 12845#line 12845 "configure" 12846#include "confdefs.h" 12847 12848#include <X11/Xlib.h> 12849#include <X11/extensions/XKB.h> 12850#include <X11/XKBlib.h> 12851 12852int 12853main () 12854{ 12855 12856 int xkbmajor = XkbMajorVersion; 12857 int xkbminor = XkbMinorVersion; 12858 int xkbopcode, xkbevent, xkberror; 12859 12860 if (XkbLibraryVersion(&xkbmajor, &xkbminor) 12861 && XkbQueryExtension((Display *)0, 12862 &xkbopcode, 12863 &xkbevent, 12864 &xkberror, 12865 &xkbmajor, 12866 &xkbminor)) 12867 return 0; 12868 12869 ; 12870 return 0; 12871} 12872_ACEOF 12873rm -f conftest.$ac_objext 12874if { (eval echo "$as_me:12874: \"$ac_compile\"") >&5 12875 (eval $ac_compile) 2>&5 12876 ac_status=$? 12877 echo "$as_me:12877: \$? = $ac_status" >&5 12878 (exit $ac_status); } && 12879 { ac_try='test -s conftest.$ac_objext' 12880 { (eval echo "$as_me:12880: \"$ac_try\"") >&5 12881 (eval $ac_try) 2>&5 12882 ac_status=$? 12883 echo "$as_me:12883: \$? = $ac_status" >&5 12884 (exit $ac_status); }; }; then 12885 12886cf_cv_xkb_query_extension=yes 12887 12888else 12889 echo "$as_me: failed program was:" >&5 12890cat conftest.$ac_ext >&5 12891 12892cf_cv_xkb_query_extension=no 12893 12894fi 12895rm -f conftest.$ac_objext conftest.$ac_ext 12896 12897fi 12898echo "$as_me:12898: result: $cf_cv_xkb_query_extension" >&5 12899echo "${ECHO_T}$cf_cv_xkb_query_extension" >&6 12900 12901if test $cf_cv_xkb_query_extension = yes 12902then 12903 12904for ac_func in XkbQueryExtension 12905do 12906as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12907echo "$as_me:12907: checking for $ac_func" >&5 12908echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 12909if eval "test \"\${$as_ac_var+set}\" = set"; then 12910 echo $ECHO_N "(cached) $ECHO_C" >&6 12911else 12912 cat >conftest.$ac_ext <<_ACEOF 12913#line 12913 "configure" 12914#include "confdefs.h" 12915/* System header to define __stub macros and hopefully few prototypes, 12916 which can conflict with char $ac_func (); below. */ 12917#include <assert.h> 12918/* Override any gcc2 internal prototype to avoid an error. */ 12919#ifdef __cplusplus 12920extern "C" 12921#endif 12922/* We use char because int might match the return type of a gcc2 12923 builtin and then its argument prototype would still apply. */ 12924char $ac_func (); 12925char (*f) (); 12926 12927int 12928main () 12929{ 12930/* The GNU C library defines this for functions which it implements 12931 to always fail with ENOSYS. Some functions are actually named 12932 something starting with __ and the normal name is an alias. */ 12933#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 12934choke me 12935#else 12936f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 12937#endif 12938 12939 ; 12940 return 0; 12941} 12942_ACEOF 12943rm -f conftest.$ac_objext conftest$ac_exeext 12944if { (eval echo "$as_me:12944: \"$ac_link\"") >&5 12945 (eval $ac_link) 2>&5 12946 ac_status=$? 12947 echo "$as_me:12947: \$? = $ac_status" >&5 12948 (exit $ac_status); } && 12949 { ac_try='test -s conftest$ac_exeext' 12950 { (eval echo "$as_me:12950: \"$ac_try\"") >&5 12951 (eval $ac_try) 2>&5 12952 ac_status=$? 12953 echo "$as_me:12953: \$? = $ac_status" >&5 12954 (exit $ac_status); }; }; then 12955 eval "$as_ac_var=yes" 12956else 12957 echo "$as_me: failed program was:" >&5 12958cat conftest.$ac_ext >&5 12959eval "$as_ac_var=no" 12960fi 12961rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12962fi 12963echo "$as_me:12963: result: `eval echo '${'$as_ac_var'}'`" >&5 12964echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 12965if test `eval echo '${'$as_ac_var'}'` = yes; then 12966 cat >>confdefs.h <<EOF 12967#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12968EOF 12969 12970fi 12971done 12972 12973fi 12974 12975echo "$as_me:12975: checking if we can use XkbKeycodeToKeysym" >&5 12976echo $ECHO_N "checking if we can use XkbKeycodeToKeysym... $ECHO_C" >&6 12977if test "${cf_cv_xkb_keycode_to_keysym+set}" = set; then 12978 echo $ECHO_N "(cached) $ECHO_C" >&6 12979else 12980 12981cat >conftest.$ac_ext <<_ACEOF 12982#line 12982 "configure" 12983#include "confdefs.h" 12984 12985#include <X11/Xlib.h> 12986#include <X11/XKBlib.h> 12987 12988int 12989main () 12990{ 12991 12992 KeySym keysym = XkbKeycodeToKeysym((Display *)0, 0, 0, 0); 12993 12994 ; 12995 return 0; 12996} 12997_ACEOF 12998rm -f conftest.$ac_objext 12999if { (eval echo "$as_me:12999: \"$ac_compile\"") >&5 13000 (eval $ac_compile) 2>&5 13001 ac_status=$? 13002 echo "$as_me:13002: \$? = $ac_status" >&5 13003 (exit $ac_status); } && 13004 { ac_try='test -s conftest.$ac_objext' 13005 { (eval echo "$as_me:13005: \"$ac_try\"") >&5 13006 (eval $ac_try) 2>&5 13007 ac_status=$? 13008 echo "$as_me:13008: \$? = $ac_status" >&5 13009 (exit $ac_status); }; }; then 13010 13011cf_cv_xkb_keycode_to_keysym=yes 13012 13013else 13014 echo "$as_me: failed program was:" >&5 13015cat conftest.$ac_ext >&5 13016 13017cf_cv_xkb_keycode_to_keysym=no 13018 13019fi 13020rm -f conftest.$ac_objext conftest.$ac_ext 13021 13022fi 13023echo "$as_me:13023: result: $cf_cv_xkb_keycode_to_keysym" >&5 13024echo "${ECHO_T}$cf_cv_xkb_keycode_to_keysym" >&6 13025 13026if test $cf_cv_xkb_keycode_to_keysym = yes 13027then 13028 13029for ac_func in XkbKeycodeToKeysym 13030do 13031as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13032echo "$as_me:13032: checking for $ac_func" >&5 13033echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 13034if eval "test \"\${$as_ac_var+set}\" = set"; then 13035 echo $ECHO_N "(cached) $ECHO_C" >&6 13036else 13037 cat >conftest.$ac_ext <<_ACEOF 13038#line 13038 "configure" 13039#include "confdefs.h" 13040/* System header to define __stub macros and hopefully few prototypes, 13041 which can conflict with char $ac_func (); below. */ 13042#include <assert.h> 13043/* Override any gcc2 internal prototype to avoid an error. */ 13044#ifdef __cplusplus 13045extern "C" 13046#endif 13047/* We use char because int might match the return type of a gcc2 13048 builtin and then its argument prototype would still apply. */ 13049char $ac_func (); 13050char (*f) (); 13051 13052int 13053main () 13054{ 13055/* The GNU C library defines this for functions which it implements 13056 to always fail with ENOSYS. Some functions are actually named 13057 something starting with __ and the normal name is an alias. */ 13058#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 13059choke me 13060#else 13061f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 13062#endif 13063 13064 ; 13065 return 0; 13066} 13067_ACEOF 13068rm -f conftest.$ac_objext conftest$ac_exeext 13069if { (eval echo "$as_me:13069: \"$ac_link\"") >&5 13070 (eval $ac_link) 2>&5 13071 ac_status=$? 13072 echo "$as_me:13072: \$? = $ac_status" >&5 13073 (exit $ac_status); } && 13074 { ac_try='test -s conftest$ac_exeext' 13075 { (eval echo "$as_me:13075: \"$ac_try\"") >&5 13076 (eval $ac_try) 2>&5 13077 ac_status=$? 13078 echo "$as_me:13078: \$? = $ac_status" >&5 13079 (exit $ac_status); }; }; then 13080 eval "$as_ac_var=yes" 13081else 13082 echo "$as_me: failed program was:" >&5 13083cat conftest.$ac_ext >&5 13084eval "$as_ac_var=no" 13085fi 13086rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13087fi 13088echo "$as_me:13088: result: `eval echo '${'$as_ac_var'}'`" >&5 13089echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 13090if test `eval echo '${'$as_ac_var'}'` = yes; then 13091 cat >>confdefs.h <<EOF 13092#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13093EOF 13094 13095fi 13096done 13097 13098fi 13099 13100echo "$as_me:13100: checking for XKB Bell extension" >&5 13101echo $ECHO_N "checking for XKB Bell extension... $ECHO_C" >&6 13102if test "${cf_cv_xkb_bell_ext+set}" = set; then 13103 echo $ECHO_N "(cached) $ECHO_C" >&6 13104else 13105 13106cat >conftest.$ac_ext <<_ACEOF 13107#line 13107 "configure" 13108#include "confdefs.h" 13109 13110#include <X11/Intrinsic.h> 13111#include <X11/XKBlib.h> /* has the prototype */ 13112#include <X11/extensions/XKBbells.h> /* has the XkbBI_xxx definitions */ 13113 13114int 13115main () 13116{ 13117 13118 int x = (XkbBI_Info |XkbBI_MinorError |XkbBI_MajorError |XkbBI_TerminalBell |XkbBI_MarginBell); 13119 Atom y; 13120 XkbBell((Display *)0, (Widget)0, 0, y); 13121 13122 ; 13123 return 0; 13124} 13125_ACEOF 13126rm -f conftest.$ac_objext conftest$ac_exeext 13127if { (eval echo "$as_me:13127: \"$ac_link\"") >&5 13128 (eval $ac_link) 2>&5 13129 ac_status=$? 13130 echo "$as_me:13130: \$? = $ac_status" >&5 13131 (exit $ac_status); } && 13132 { ac_try='test -s conftest$ac_exeext' 13133 { (eval echo "$as_me:13133: \"$ac_try\"") >&5 13134 (eval $ac_try) 2>&5 13135 ac_status=$? 13136 echo "$as_me:13136: \$? = $ac_status" >&5 13137 (exit $ac_status); }; }; then 13138 cf_cv_xkb_bell_ext=yes 13139else 13140 echo "$as_me: failed program was:" >&5 13141cat conftest.$ac_ext >&5 13142cf_cv_xkb_bell_ext=no 13143fi 13144rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13145 13146fi 13147echo "$as_me:13147: result: $cf_cv_xkb_bell_ext" >&5 13148echo "${ECHO_T}$cf_cv_xkb_bell_ext" >&6 13149test "$cf_cv_xkb_bell_ext" = yes && 13150cat >>confdefs.h <<\EOF 13151#define HAVE_XKB_BELL_EXT 1 13152EOF 13153 13154for ac_func in Xutf8LookupString 13155do 13156as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13157echo "$as_me:13157: checking for $ac_func" >&5 13158echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 13159if eval "test \"\${$as_ac_var+set}\" = set"; then 13160 echo $ECHO_N "(cached) $ECHO_C" >&6 13161else 13162 cat >conftest.$ac_ext <<_ACEOF 13163#line 13163 "configure" 13164#include "confdefs.h" 13165/* System header to define __stub macros and hopefully few prototypes, 13166 which can conflict with char $ac_func (); below. */ 13167#include <assert.h> 13168/* Override any gcc2 internal prototype to avoid an error. */ 13169#ifdef __cplusplus 13170extern "C" 13171#endif 13172/* We use char because int might match the return type of a gcc2 13173 builtin and then its argument prototype would still apply. */ 13174char $ac_func (); 13175char (*f) (); 13176 13177int 13178main () 13179{ 13180/* The GNU C library defines this for functions which it implements 13181 to always fail with ENOSYS. Some functions are actually named 13182 something starting with __ and the normal name is an alias. */ 13183#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 13184choke me 13185#else 13186f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 13187#endif 13188 13189 ; 13190 return 0; 13191} 13192_ACEOF 13193rm -f conftest.$ac_objext conftest$ac_exeext 13194if { (eval echo "$as_me:13194: \"$ac_link\"") >&5 13195 (eval $ac_link) 2>&5 13196 ac_status=$? 13197 echo "$as_me:13197: \$? = $ac_status" >&5 13198 (exit $ac_status); } && 13199 { ac_try='test -s conftest$ac_exeext' 13200 { (eval echo "$as_me:13200: \"$ac_try\"") >&5 13201 (eval $ac_try) 2>&5 13202 ac_status=$? 13203 echo "$as_me:13203: \$? = $ac_status" >&5 13204 (exit $ac_status); }; }; then 13205 eval "$as_ac_var=yes" 13206else 13207 echo "$as_me: failed program was:" >&5 13208cat conftest.$ac_ext >&5 13209eval "$as_ac_var=no" 13210fi 13211rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13212fi 13213echo "$as_me:13213: result: `eval echo '${'$as_ac_var'}'`" >&5 13214echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 13215if test `eval echo '${'$as_ac_var'}'` = yes; then 13216 cat >>confdefs.h <<EOF 13217#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13218EOF 13219 13220else 13221 13222 EXTRAHDRS="$EXTRAHDRS xutf8.h" 13223 EXTRASRCS="$EXTRASRCS xutf8.c" 13224 EXTRAOBJS="$EXTRAOBJS xutf8.o" 13225 13226fi 13227done 13228 13229echo "$as_me:13229: checking if you want narrow prototypes for X libraries" >&5 13230echo $ECHO_N "checking if you want narrow prototypes for X libraries... $ECHO_C" >&6 13231 13232case `$ac_config_guess` in #(vi 13233*cygwin*|*freebsd*|*gnu*|*irix5*|*irix6*|*linux-gnu*|*netbsd*|*openbsd*|*qnx*|*sco*|*sgi*) #(vi 13234 cf_default_narrowproto=yes 13235 ;; 13236*) 13237 cf_default_narrowproto=no 13238 ;; 13239esac 13240 13241# Check whether --enable-narrowproto or --disable-narrowproto was given. 13242if test "${enable_narrowproto+set}" = set; then 13243 enableval="$enable_narrowproto" 13244 test "$enableval" != no && enableval=yes 13245 if test "$enableval" != "$cf_default_narrowproto" ; then 13246 enable_narrowproto=$enableval 13247 else 13248 enable_narrowproto=$cf_default_narrowproto 13249 fi 13250else 13251 enableval=$cf_default_narrowproto 13252 enable_narrowproto=$cf_default_narrowproto 13253 13254fi; 13255echo "$as_me:13255: result: $enable_narrowproto" >&5 13256echo "${ECHO_T}$enable_narrowproto" >&6 13257 13258echo "$as_me:13258: checking if we should use imake to help" >&5 13259echo $ECHO_N "checking if we should use imake to help... $ECHO_C" >&6 13260 13261# Check whether --enable-imake or --disable-imake was given. 13262if test "${enable_imake+set}" = set; then 13263 enableval="$enable_imake" 13264 test "$enableval" != no && enableval=yes 13265 if test "$enableval" != "yes" ; then 13266 enable_imake=no 13267 else 13268 enable_imake=yes 13269 fi 13270else 13271 enableval=yes 13272 enable_imake=yes 13273 13274fi; 13275echo "$as_me:13275: result: $enable_imake" >&5 13276echo "${ECHO_T}$enable_imake" >&6 13277 13278if test "$enable_imake" = yes ; then 13279 13280for ac_prog in xmkmf imake 13281do 13282 # Extract the first word of "$ac_prog", so it can be a program name with args. 13283set dummy $ac_prog; ac_word=$2 13284echo "$as_me:13284: checking for $ac_word" >&5 13285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 13286if test "${ac_cv_path_IMAKE+set}" = set; then 13287 echo $ECHO_N "(cached) $ECHO_C" >&6 13288else 13289 case $IMAKE in 13290 [\\/]* | ?:[\\/]*) 13291 ac_cv_path_IMAKE="$IMAKE" # Let the user override the test with a path. 13292 ;; 13293 *) 13294 ac_save_IFS=$IFS; IFS=$ac_path_separator 13295ac_dummy="$PATH" 13296for ac_dir in $ac_dummy; do 13297 IFS=$ac_save_IFS 13298 test -z "$ac_dir" && ac_dir=. 13299 if $as_executable_p "$ac_dir/$ac_word"; then 13300 ac_cv_path_IMAKE="$ac_dir/$ac_word" 13301 echo "$as_me:13301: found $ac_dir/$ac_word" >&5 13302 break 13303fi 13304done 13305 13306 ;; 13307esac 13308fi 13309IMAKE=$ac_cv_path_IMAKE 13310 13311if test -n "$IMAKE"; then 13312 echo "$as_me:13312: result: $IMAKE" >&5 13313echo "${ECHO_T}$IMAKE" >&6 13314else 13315 echo "$as_me:13315: result: no" >&5 13316echo "${ECHO_T}no" >&6 13317fi 13318 13319 test -n "$IMAKE" && break 13320done 13321 13322if test -n "$IMAKE" ; then 13323 13324case $IMAKE in # (vi 13325*/imake) 13326 cf_imake_opts="-DUseInstalled=YES" # (vi 13327 ;; 13328*/util/xmkmf) 13329 # A single parameter tells xmkmf where the config-files are: 13330 cf_imake_opts="`echo $IMAKE|sed -e s,/config/util/xmkmf,,`" # (vi 13331 ;; 13332*) 13333 cf_imake_opts= 13334 ;; 13335esac 13336 13337# If it's installed properly, imake (or its wrapper, xmkmf) will point to the 13338# config directory. 13339if mkdir conftestdir; then 13340 CDPATH=; export CDPATH 13341 cf_makefile=`cd $srcdir;pwd`/Imakefile 13342 cd conftestdir 13343 13344 cat >fix_cflags.sed <<'CF_EOF' 13345s/\\//g 13346s/[ ][ ]*/ /g 13347s/"//g 13348:pack 13349s/\(=[^ ][^ ]*\) \([^-]\)/\1 \2/g 13350t pack 13351s/\(-D[a-zA-Z0-9_][a-zA-Z0-9_]*\)=\([^\'0-9 ][^ ]*\)/\1='\\"\2\\"'/g 13352s/^IMAKE[ ]/IMAKE_CFLAGS="/ 13353s/ / /g 13354s/$/"/ 13355CF_EOF 13356 13357 cat >fix_lflags.sed <<'CF_EOF' 13358s/^IMAKE[ ]*/IMAKE_LOADFLAGS="/ 13359s/$/"/ 13360CF_EOF 13361 13362 echo >./Imakefile 13363 test -f $cf_makefile && cat $cf_makefile >>./Imakefile 13364 13365 cat >> ./Imakefile <<'CF_EOF' 13366findstddefs: 13367 @echo IMAKE ${ALLDEFINES} $(MAIN_DEFINES) $(VENDORMANDEFS) | sed -f fix_cflags.sed 13368 @echo IMAKE ${EXTRA_LOAD_FLAGS} | sed -f fix_lflags.sed 13369CF_EOF 13370 13371 if ( $IMAKE $cf_imake_opts 1>/dev/null 2>&5 && test -f Makefile) 13372 then 13373 test -n "$verbose" && echo " Using $IMAKE $cf_imake_opts" 1>&6 13374 13375echo "${as_me:-configure}:13375: testing Using $IMAKE $cf_imake_opts ..." 1>&5 13376 13377 else 13378 # sometimes imake doesn't have the config path compiled in. Find it. 13379 cf_config= 13380 for cf_libpath in $X_LIBS $LIBS ; do 13381 case $cf_libpath in # (vi 13382 -L*) 13383 cf_libpath=`echo .$cf_libpath | sed -e 's/^...//'` 13384 cf_libpath=$cf_libpath/X11/config 13385 if test -d $cf_libpath ; then 13386 cf_config=$cf_libpath 13387 break 13388 fi 13389 ;; 13390 esac 13391 done 13392 if test -z "$cf_config" ; then 13393 { echo "$as_me:13393: WARNING: Could not find imake config-directory" >&5 13394echo "$as_me: WARNING: Could not find imake config-directory" >&2;} 13395 else 13396 cf_imake_opts="$cf_imake_opts -I$cf_config" 13397 if ( $IMAKE -v $cf_imake_opts 2>&5) 13398 then 13399 test -n "$verbose" && echo " Using $IMAKE $cf_config" 1>&6 13400 13401echo "${as_me:-configure}:13401: testing Using $IMAKE $cf_config ..." 1>&5 13402 13403 else 13404 { echo "$as_me:13404: WARNING: Cannot run $IMAKE" >&5 13405echo "$as_me: WARNING: Cannot run $IMAKE" >&2;} 13406 fi 13407 fi 13408 fi 13409 13410 # GNU make sometimes prints "make[1]: Entering...", which 13411 # would confuse us. 13412 eval `make findstddefs 2>/dev/null | grep -v make` 13413 13414 cd .. 13415 rm -rf conftestdir 13416 13417 # We use ${ALLDEFINES} rather than ${STD_DEFINES} because the former 13418 # declares XTFUNCPROTO there. However, some vendors (e.g., SGI) have 13419 # modified it to support site.cf, adding a kludge for the /usr/include 13420 # directory. Try to filter that out, otherwise gcc won't find its 13421 # headers. 13422 if test -n "$GCC" ; then 13423 if test -n "$IMAKE_CFLAGS" ; then 13424 cf_nostdinc="" 13425 cf_std_incl="" 13426 cf_cpp_opts="" 13427 for cf_opt in $IMAKE_CFLAGS 13428 do 13429 case "$cf_opt" in 13430 -nostdinc) #(vi 13431 cf_nostdinc="$cf_opt" 13432 ;; 13433 -I/usr/include) #(vi 13434 cf_std_incl="$cf_opt" 13435 ;; 13436 *) #(vi 13437 cf_cpp_opts="$cf_cpp_opts $cf_opt" 13438 ;; 13439 esac 13440 done 13441 if test -z "$cf_nostdinc" ; then 13442 IMAKE_CFLAGS="$cf_cpp_opts $cf_std_incl" 13443 elif test -z "$cf_std_incl" ; then 13444 IMAKE_CFLAGS="$cf_cpp_opts $cf_nostdinc" 13445 else 13446 test -n "$verbose" && echo " suppressed \"$cf_nostdinc\" and \"$cf_std_incl\"" 1>&6 13447 13448echo "${as_me:-configure}:13448: testing suppressed \"$cf_nostdinc\" and \"$cf_std_incl\" ..." 1>&5 13449 13450 IMAKE_CFLAGS="$cf_cpp_opts" 13451 fi 13452 fi 13453 fi 13454fi 13455 13456# Some imake configurations define PROJECTROOT with an empty value. Remove 13457# the empty definition. 13458case $IMAKE_CFLAGS in 13459*-DPROJECTROOT=/*) 13460 ;; 13461*) 13462 IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" |sed -e "s,-DPROJECTROOT=[ ], ,"` 13463 ;; 13464esac 13465 13466fi 13467 13468test -n "$verbose" && echo " IMAKE_CFLAGS $IMAKE_CFLAGS" 1>&6 13469 13470echo "${as_me:-configure}:13470: testing IMAKE_CFLAGS $IMAKE_CFLAGS ..." 1>&5 13471 13472test -n "$verbose" && echo " IMAKE_LOADFLAGS $IMAKE_LOADFLAGS" 1>&6 13473 13474echo "${as_me:-configure}:13474: testing IMAKE_LOADFLAGS $IMAKE_LOADFLAGS ..." 1>&5 13475 13476fi 13477 13478if test -n "$IMAKE" && test -n "$IMAKE_CFLAGS" ; then 13479 13480cf_fix_cppflags=no 13481cf_new_cflags= 13482cf_new_cppflags= 13483cf_new_extra_cppflags= 13484 13485for cf_add_cflags in $IMAKE_CFLAGS 13486do 13487case $cf_fix_cppflags in 13488no) 13489 case $cf_add_cflags in #(vi 13490 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 13491 case $cf_add_cflags in 13492 -D*) 13493 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 13494 13495 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 13496 && test -z "${cf_tst_cflags}" \ 13497 && cf_fix_cppflags=yes 13498 13499 if test $cf_fix_cppflags = yes ; then 13500 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 13501 continue 13502 elif test "${cf_tst_cflags}" = "\"'" ; then 13503 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 13504 continue 13505 fi 13506 ;; 13507 esac 13508 case "$CPPFLAGS" in 13509 *$cf_add_cflags) #(vi 13510 ;; 13511 *) #(vi 13512 case $cf_add_cflags in #(vi 13513 -D*) 13514 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 13515 13516CPPFLAGS=`echo "$CPPFLAGS" | \ 13517 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 13518 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 13519 13520 ;; 13521 esac 13522 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 13523 ;; 13524 esac 13525 ;; 13526 *) 13527 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 13528 ;; 13529 esac 13530 ;; 13531yes) 13532 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 13533 13534 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 13535 13536 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 13537 && test -z "${cf_tst_cflags}" \ 13538 && cf_fix_cppflags=no 13539 ;; 13540esac 13541done 13542 13543if test -n "$cf_new_cflags" ; then 13544 13545 CFLAGS="$CFLAGS $cf_new_cflags" 13546fi 13547 13548if test -n "$cf_new_cppflags" ; then 13549 13550 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 13551fi 13552 13553if test -n "$cf_new_extra_cppflags" ; then 13554 13555 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 13556fi 13557 13558else 13559 IMAKE_CFLAGS= 13560 IMAKE_LOADFLAGS= 13561 test -n "$verbose" && echo " make fallback definitions" 1>&6 13562 13563echo "${as_me:-configure}:13563: testing make fallback definitions ..." 1>&5 13564 13565 # We prefer config.guess' values when we can get them, to avoid 13566 # inconsistent results with uname (AIX for instance). However, 13567 # config.guess is not always consistent either. 13568 case $host_os in 13569 *[0-9].[0-9]*) 13570 UNAME_RELEASE="$host_os" 13571 ;; 13572 *) 13573 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown 13574 ;; 13575 esac 13576 13577 case .$UNAME_RELEASE in 13578 *[0-9].[0-9]*) 13579 OSMAJORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/\..*//'` 13580 OSMINORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/^[^.]*\.//' -e 's/\..*//' -e 's/[^0-9].*//' ` 13581 test -z "$OSMAJORVERSION" && OSMAJORVERSION=1 13582 test -z "$OSMINORVERSION" && OSMINORVERSION=0 13583 IMAKE_CFLAGS="-DOSMAJORVERSION=$OSMAJORVERSION -DOSMINORVERSION=$OSMINORVERSION $IMAKE_CFLAGS" 13584 ;; 13585 esac 13586 13587 # FUNCPROTO is standard with X11R6, but XFree86 drops it, leaving some 13588 # fallback/fragments for NeedPrototypes, etc. 13589 IMAKE_CFLAGS="-DFUNCPROTO=15 $IMAKE_CFLAGS" 13590 13591 # If this is not set properly, Xaw's scrollbars will not work 13592 if test "$enable_narrowproto" = yes ; then 13593 IMAKE_CFLAGS="-DNARROWPROTO=1 $IMAKE_CFLAGS" 13594 fi 13595 13596 # Other special definitions: 13597 case $host_os in 13598 aix*) 13599 # imake on AIX 5.1 defines AIXV3. really. 13600 IMAKE_CFLAGS="-DAIXV3 -DAIXV4 $IMAKE_CFLAGS" 13601 ;; 13602 irix[56].*) #(vi 13603 # these are needed to make SIGWINCH work in xterm 13604 IMAKE_CFLAGS="-DSYSV -DSVR4 $IMAKE_CFLAGS" 13605 ;; 13606 esac 13607 13608cf_fix_cppflags=no 13609cf_new_cflags= 13610cf_new_cppflags= 13611cf_new_extra_cppflags= 13612 13613for cf_add_cflags in $IMAKE_CFLAGS 13614do 13615case $cf_fix_cppflags in 13616no) 13617 case $cf_add_cflags in #(vi 13618 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 13619 case $cf_add_cflags in 13620 -D*) 13621 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 13622 13623 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 13624 && test -z "${cf_tst_cflags}" \ 13625 && cf_fix_cppflags=yes 13626 13627 if test $cf_fix_cppflags = yes ; then 13628 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 13629 continue 13630 elif test "${cf_tst_cflags}" = "\"'" ; then 13631 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 13632 continue 13633 fi 13634 ;; 13635 esac 13636 case "$CPPFLAGS" in 13637 *$cf_add_cflags) #(vi 13638 ;; 13639 *) #(vi 13640 case $cf_add_cflags in #(vi 13641 -D*) 13642 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 13643 13644CPPFLAGS=`echo "$CPPFLAGS" | \ 13645 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 13646 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 13647 13648 ;; 13649 esac 13650 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 13651 ;; 13652 esac 13653 ;; 13654 *) 13655 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 13656 ;; 13657 esac 13658 ;; 13659yes) 13660 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 13661 13662 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 13663 13664 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 13665 && test -z "${cf_tst_cflags}" \ 13666 && cf_fix_cppflags=no 13667 ;; 13668esac 13669done 13670 13671if test -n "$cf_new_cflags" ; then 13672 13673 CFLAGS="$CFLAGS $cf_new_cflags" 13674fi 13675 13676if test -n "$cf_new_cppflags" ; then 13677 13678 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 13679fi 13680 13681if test -n "$cf_new_extra_cppflags" ; then 13682 13683 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 13684fi 13685 13686fi 13687 13688# If we have already established that there is a full termcap implementation, 13689# suppress the definitions for terminfo that we make have imported from the 13690# imake-file. 13691if test "x$cf_cv_lib_tgetent" != xno || test "x$cf_cv_lib_part_tgetent" != xno ; then 13692 case "$IMAKE_CFLAGS" in 13693 *-DUSE_TERMINFO\ -DHAVE_TIGETSTR*) 13694 13695 test -n "$verbose" && echo " removing terminfo flags from IMAKE_CFLAGS" 1>&6 13696 13697echo "${as_me:-configure}:13697: testing removing terminfo flags from IMAKE_CFLAGS ..." 1>&5 13698 13699 IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" | sed -e 's/-DUSE_TERMINFO[ ]*-DHAVE_TIGETSTR[ ]*//'` 13700 test -n "$verbose" && echo " ...result $IMAKE_CFLAGS" 1>&6 13701 13702echo "${as_me:-configure}:13702: testing ...result $IMAKE_CFLAGS ..." 1>&5 13703 13704 test -n "$verbose" && echo " removing terminfo flags from CPPFLAGS" 1>&6 13705 13706echo "${as_me:-configure}:13706: testing removing terminfo flags from CPPFLAGS ..." 1>&5 13707 13708 CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/-DUSE_TERMINFO[ ]*-DHAVE_TIGETSTR[ ]*//'` 13709 test -n "$verbose" && echo " ...result $CPPFLAGS" 1>&6 13710 13711echo "${as_me:-configure}:13711: testing ...result $CPPFLAGS ..." 1>&5 13712 13713 ;; 13714 esac 13715fi 13716 13717echo "$as_me:13717: checking for default terminal-id" >&5 13718echo $ECHO_N "checking for default terminal-id... $ECHO_C" >&6 13719 13720# Check whether --with-terminal-id or --without-terminal-id was given. 13721if test "${with_terminal_id+set}" = set; then 13722 withval="$with_terminal_id" 13723 default_termid=$withval 13724else 13725 default_termid=vt420 13726fi; 13727echo "$as_me:13727: result: $default_termid" >&5 13728echo "${ECHO_T}$default_termid" >&6 13729case $default_termid in 13730vt*) default_termid=`echo $default_termid | sed -e 's/^..//'` 13731 ;; 13732esac 13733 13734cat >>confdefs.h <<EOF 13735#define DFT_DECID "$default_termid" 13736EOF 13737 13738echo "$as_me:13738: checking for default terminal-type" >&5 13739echo $ECHO_N "checking for default terminal-type... $ECHO_C" >&6 13740 13741# Check whether --with-terminal-type or --without-terminal-type was given. 13742if test "${with_terminal_type+set}" = set; then 13743 withval="$with_terminal_type" 13744 default_TERM=$withval 13745else 13746 default_TERM=xterm 13747fi; 13748echo "$as_me:13748: result: $default_TERM" >&5 13749echo "${ECHO_T}$default_TERM" >&6 13750 13751cat >>confdefs.h <<EOF 13752#define DFT_TERMTYPE "$default_TERM" 13753EOF 13754 13755############################################################################### 13756echo "$as_me:13756: checking if backarrow-key should be BS" >&5 13757echo $ECHO_N "checking if backarrow-key should be BS... $ECHO_C" >&6 13758 13759# Check whether --enable-backarrow-key or --disable-backarrow-key was given. 13760if test "${enable_backarrow_key+set}" = set; then 13761 enableval="$enable_backarrow_key" 13762 test "$enableval" != no && enableval=yes 13763 if test "$enableval" != "yes" ; then 13764 backarrow_is_bs=$enableval 13765 else 13766 backarrow_is_bs=yes 13767 fi 13768else 13769 enableval=yes 13770 backarrow_is_bs=yes 13771 13772fi; 13773 13774echo "$as_me:13774: result: $backarrow_is_bs" >&5 13775echo "${ECHO_T}$backarrow_is_bs" >&6 13776case $backarrow_is_bs in #(vi 13777yes) #(vi 13778 backarrow_is_bs=true 13779 ;; 13780no) #(vi 13781 backarrow_is_bs=false 13782 ;; 13783esac 13784cf_xbool1=`echo "$backarrow_is_bs"|sed -e 's/^\(.\).*/\1/'` 13785 13786cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 13787 13788cf_xbool2=`echo "$backarrow_is_bs"|sed -e 's/^.//'` 13789backarrow_is_bs=${cf_xbool1}${cf_xbool2} 13790 13791cat >>confdefs.h <<EOF 13792#define DEF_BACKARO_BS $backarrow_is_bs 13793EOF 13794 13795echo "$as_me:13795: checking if backarrow-key should be treated as erase" >&5 13796echo $ECHO_N "checking if backarrow-key should be treated as erase... $ECHO_C" >&6 13797 13798# Check whether --enable-backarrow-is-erase or --disable-backarrow-is-erase was given. 13799if test "${enable_backarrow_is_erase+set}" = set; then 13800 enableval="$enable_backarrow_is_erase" 13801 test "$enableval" != yes && enableval=no 13802 if test "$enableval" != "no" ; then 13803 backarrow_is_erase=$enableval 13804 else 13805 backarrow_is_erase=no 13806 fi 13807else 13808 enableval=no 13809 backarrow_is_erase=no 13810 13811fi; 13812 13813echo "$as_me:13813: result: $backarrow_is_erase" >&5 13814echo "${ECHO_T}$backarrow_is_erase" >&6 13815case $backarrow_is_erase in #(vi 13816yes) #(vi 13817 backarrow_is_erase=true 13818 ;; 13819no) #(vi 13820 backarrow_is_erase=false 13821 ;; 13822esac 13823cf_xbool1=`echo "$backarrow_is_erase"|sed -e 's/^\(.\).*/\1/'` 13824 13825cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 13826 13827cf_xbool2=`echo "$backarrow_is_erase"|sed -e 's/^.//'` 13828backarrow_is_erase=${cf_xbool1}${cf_xbool2} 13829 13830cat >>confdefs.h <<EOF 13831#define DEF_BACKARO_ERASE $backarrow_is_erase 13832EOF 13833 13834echo "$as_me:13834: checking for default backspace/DEL setting" >&5 13835echo $ECHO_N "checking for default backspace/DEL setting... $ECHO_C" >&6 13836 13837# Check whether --enable-delete-is-del or --disable-delete-is-del was given. 13838if test "${enable_delete_is_del+set}" = set; then 13839 enableval="$enable_delete_is_del" 13840 delete_is_del=$enableval 13841else 13842 delete_is_del=maybe 13843fi; 13844 13845echo "$as_me:13845: result: $delete_is_del" >&5 13846echo "${ECHO_T}$delete_is_del" >&6 13847case $delete_is_del in #(vi 13848yes) #(vi 13849 delete_is_del=true 13850 ;; 13851no) #(vi 13852 delete_is_del=false 13853 ;; 13854esac 13855cf_xbool1=`echo "$delete_is_del"|sed -e 's/^\(.\).*/\1/'` 13856 13857cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 13858 13859cf_xbool2=`echo "$delete_is_del"|sed -e 's/^.//'` 13860delete_is_del=${cf_xbool1}${cf_xbool2} 13861 13862cat >>confdefs.h <<EOF 13863#define DEFDELETE_DEL $delete_is_del 13864EOF 13865 13866echo "$as_me:13866: checking if alt should send ESC" >&5 13867echo $ECHO_N "checking if alt should send ESC... $ECHO_C" >&6 13868 13869# Check whether --enable-alt-sends-esc or --disable-alt-sends-esc was given. 13870if test "${enable_alt_sends_esc+set}" = set; then 13871 enableval="$enable_alt_sends_esc" 13872 test "$enableval" != yes && enableval=no 13873 if test "$enableval" != "no" ; then 13874 alt_sends_esc=$enableval 13875 else 13876 alt_sends_esc=no 13877 fi 13878else 13879 enableval=no 13880 alt_sends_esc=no 13881 13882fi; 13883 13884echo "$as_me:13884: result: $alt_sends_esc" >&5 13885echo "${ECHO_T}$alt_sends_esc" >&6 13886case $alt_sends_esc in #(vi 13887yes) #(vi 13888 alt_sends_esc=true 13889 ;; 13890no) #(vi 13891 alt_sends_esc=false 13892 ;; 13893esac 13894cf_xbool1=`echo "$alt_sends_esc"|sed -e 's/^\(.\).*/\1/'` 13895 13896cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 13897 13898cf_xbool2=`echo "$alt_sends_esc"|sed -e 's/^.//'` 13899alt_sends_esc=${cf_xbool1}${cf_xbool2} 13900 13901cat >>confdefs.h <<EOF 13902#define DEF_ALT_SENDS_ESC $alt_sends_esc 13903EOF 13904 13905echo "$as_me:13905: checking if meta should send ESC" >&5 13906echo $ECHO_N "checking if meta should send ESC... $ECHO_C" >&6 13907 13908# Check whether --enable-meta-sends-esc or --disable-meta-sends-esc was given. 13909if test "${enable_meta_sends_esc+set}" = set; then 13910 enableval="$enable_meta_sends_esc" 13911 test "$enableval" != yes && enableval=no 13912 if test "$enableval" != "no" ; then 13913 meta_sends_esc=$enableval 13914 else 13915 meta_sends_esc=no 13916 fi 13917else 13918 enableval=no 13919 meta_sends_esc=no 13920 13921fi; 13922 13923echo "$as_me:13923: result: $meta_sends_esc" >&5 13924echo "${ECHO_T}$meta_sends_esc" >&6 13925case $meta_sends_esc in #(vi 13926yes) #(vi 13927 meta_sends_esc=true 13928 ;; 13929no) #(vi 13930 meta_sends_esc=false 13931 ;; 13932esac 13933cf_xbool1=`echo "$meta_sends_esc"|sed -e 's/^\(.\).*/\1/'` 13934 13935cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 13936 13937cf_xbool2=`echo "$meta_sends_esc"|sed -e 's/^.//'` 13938meta_sends_esc=${cf_xbool1}${cf_xbool2} 13939 13940cat >>confdefs.h <<EOF 13941#define DEF_META_SENDS_ESC $meta_sends_esc 13942EOF 13943 13944############################################################################### 13945# Extract the first word of "tic", so it can be a program name with args. 13946set dummy tic; ac_word=$2 13947echo "$as_me:13947: checking for $ac_word" >&5 13948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 13949if test "${ac_cv_prog_cf_tic_prog+set}" = set; then 13950 echo $ECHO_N "(cached) $ECHO_C" >&6 13951else 13952 if test -n "$cf_tic_prog"; then 13953 ac_cv_prog_cf_tic_prog="$cf_tic_prog" # Let the user override the test. 13954else 13955 ac_save_IFS=$IFS; IFS=$ac_path_separator 13956ac_dummy="$PATH" 13957for ac_dir in $ac_dummy; do 13958 IFS=$ac_save_IFS 13959 test -z "$ac_dir" && ac_dir=. 13960 $as_executable_p "$ac_dir/$ac_word" || continue 13961ac_cv_prog_cf_tic_prog="yes" 13962echo "$as_me:13962: found $ac_dir/$ac_word" >&5 13963break 13964done 13965 13966 test -z "$ac_cv_prog_cf_tic_prog" && ac_cv_prog_cf_tic_prog="no" 13967fi 13968fi 13969cf_tic_prog=$ac_cv_prog_cf_tic_prog 13970if test -n "$cf_tic_prog"; then 13971 echo "$as_me:13971: result: $cf_tic_prog" >&5 13972echo "${ECHO_T}$cf_tic_prog" >&6 13973else 13974 echo "$as_me:13974: result: no" >&5 13975echo "${ECHO_T}no" >&6 13976fi 13977 13978if test "$cf_tic_prog" = yes ; then 13979 echo "$as_me:13979: checking for private terminfo-directory" >&5 13980echo $ECHO_N "checking for private terminfo-directory... $ECHO_C" >&6 13981 13982# Check whether --with-own-terminfo or --without-own-terminfo was given. 13983if test "${with_own_terminfo+set}" = set; then 13984 withval="$with_own_terminfo" 13985 TERMINFO_DIR=$withval 13986else 13987 TERMINFO_DIR=${TERMINFO-none} 13988fi; 13989 echo "$as_me:13989: result: $TERMINFO_DIR" >&5 13990echo "${ECHO_T}$TERMINFO_DIR" >&6 13991 if test "$TERMINFO_DIR" = yes ; then 13992 { echo "$as_me:13992: WARNING: no value given" >&5 13993echo "$as_me: WARNING: no value given" >&2;} 13994 elif test "$TERMINFO_DIR" != none ; then 13995 if test -d $TERMINFO_DIR ; then 13996 13997cat >>confdefs.h <<EOF 13998#define OWN_TERMINFO_DIR "$TERMINFO_DIR" 13999EOF 14000 14001 else 14002 { echo "$as_me:14002: WARNING: not a directory" >&5 14003echo "$as_me: WARNING: not a directory" >&2;} 14004 fi 14005 elif test "$prefix" != NONE ; then 14006 TERMINFO_DIR='${prefix}/lib/terminfo' 14007 elif test -d /usr/lib/terminfo ; then 14008 TERMINFO_DIR=/usr/lib/terminfo 14009 else 14010 TERMINFO_DIR= 14011 fi 14012 SET_TERMINFO= 14013 if test -n "$TERMINFO_DIR" ; then 14014 TERMINFO_DIR='$(DESTDIR)'$TERMINFO_DIR 14015 SET_TERMINFO='TERMINFO=$(TERMINFO_DIR)' 14016 fi 14017 no_ticprog= 14018else 14019 no_ticprog="#" 14020 TERMINFO_DIR= 14021 SET_TERMINFO= 14022fi 14023 14024############################################################################### 14025 14026echo "$as_me:14026: checking if you want active-icons" >&5 14027echo $ECHO_N "checking if you want active-icons... $ECHO_C" >&6 14028 14029# Check whether --enable-active-icon or --disable-active-icon was given. 14030if test "${enable_active_icon+set}" = set; then 14031 enableval="$enable_active_icon" 14032 test "$enableval" != no && enableval=yes 14033 if test "$enableval" != "yes" ; then 14034 enable_active_icon=no 14035 else 14036 enable_active_icon=yes 14037 fi 14038else 14039 enableval=yes 14040 enable_active_icon=yes 14041 14042fi; 14043echo "$as_me:14043: result: $enable_active_icon" >&5 14044echo "${ECHO_T}$enable_active_icon" >&6 14045if test "$enable_active_icon" = no ; then 14046 14047cat >>confdefs.h <<\EOF 14048#define NO_ACTIVE_ICON 1 14049EOF 14050 14051fi 14052 14053echo "$as_me:14053: checking if you want ANSI color" >&5 14054echo $ECHO_N "checking if you want ANSI color... $ECHO_C" >&6 14055 14056# Check whether --enable-ansi-color or --disable-ansi-color was given. 14057if test "${enable_ansi_color+set}" = set; then 14058 enableval="$enable_ansi_color" 14059 test "$enableval" != no && enableval=yes 14060 if test "$enableval" != "yes" ; then 14061 enable_ansi_color=no 14062 else 14063 enable_ansi_color=yes 14064 fi 14065else 14066 enableval=yes 14067 enable_ansi_color=yes 14068 14069fi; 14070echo "$as_me:14070: result: $enable_ansi_color" >&5 14071echo "${ECHO_T}$enable_ansi_color" >&6 14072test "$enable_ansi_color" = no && 14073cat >>confdefs.h <<\EOF 14074#define OPT_ISO_COLORS 0 14075EOF 14076 14077if test "$enable_ansi_color" = yes ; then 14078 14079 echo "$as_me:14079: checking if you want 16 colors like aixterm" >&5 14080echo $ECHO_N "checking if you want 16 colors like aixterm... $ECHO_C" >&6 14081 14082# Check whether --enable-16-color or --disable-16-color was given. 14083if test "${enable_16_color+set}" = set; then 14084 enableval="$enable_16_color" 14085 test "$enableval" != no && enableval=yes 14086 if test "$enableval" != "yes" ; then 14087 enable_16_color=no 14088 else 14089 enable_16_color=yes 14090 fi 14091else 14092 enableval=yes 14093 enable_16_color=yes 14094 14095fi; 14096 echo "$as_me:14096: result: $enable_16_color" >&5 14097echo "${ECHO_T}$enable_16_color" >&6 14098 test "$enable_16_color" = no && 14099cat >>confdefs.h <<\EOF 14100#define OPT_AIX_COLORS 0 14101EOF 14102 14103 echo "$as_me:14103: checking if you want 256 colors" >&5 14104echo $ECHO_N "checking if you want 256 colors... $ECHO_C" >&6 14105 14106# Check whether --enable-256-color or --disable-256-color was given. 14107if test "${enable_256_color+set}" = set; then 14108 enableval="$enable_256_color" 14109 test "$enableval" != yes && enableval=no 14110 if test "$enableval" != "no" ; then 14111 enable_256_color=yes 14112 else 14113 enable_256_color=no 14114 fi 14115else 14116 enableval=no 14117 enable_256_color=no 14118 14119fi; 14120 echo "$as_me:14120: result: $enable_256_color" >&5 14121echo "${ECHO_T}$enable_256_color" >&6 14122 if test "$enable_256_color" = yes ; then 14123 CHARPROC_DEPS="$CHARPROC_DEPS 256colres.h" 14124 EXTRAHDRS="$EXTRAHDRS 256colres.h" 14125 14126cat >>confdefs.h <<\EOF 14127#define OPT_256_COLORS 1 14128EOF 14129 14130 else 14131 echo "$as_me:14131: checking if you want 88 colors" >&5 14132echo $ECHO_N "checking if you want 88 colors... $ECHO_C" >&6 14133 14134# Check whether --enable-88-color or --disable-88-color was given. 14135if test "${enable_88_color+set}" = set; then 14136 enableval="$enable_88_color" 14137 test "$enableval" != yes && enableval=no 14138 if test "$enableval" != "no" ; then 14139 enable_88_color=yes 14140 else 14141 enable_88_color=no 14142 fi 14143else 14144 enableval=no 14145 enable_88_color=no 14146 14147fi; 14148 echo "$as_me:14148: result: $enable_88_color" >&5 14149echo "${ECHO_T}$enable_88_color" >&6 14150 if test "$enable_88_color" = yes ; then 14151 CHARPROC_DEPS="$CHARPROC_DEPS 88colres.h" 14152 EXTRAHDRS="$EXTRAHDRS 88colres.h" 14153 14154cat >>confdefs.h <<\EOF 14155#define OPT_88_COLORS 1 14156EOF 14157 14158 fi 14159 fi 14160 14161fi 14162 14163echo "$as_me:14163: checking if you want blinking cursor" >&5 14164echo $ECHO_N "checking if you want blinking cursor... $ECHO_C" >&6 14165 14166# Check whether --enable-blink-cursor or --disable-blink-cursor was given. 14167if test "${enable_blink_cursor+set}" = set; then 14168 enableval="$enable_blink_cursor" 14169 test "$enableval" != no && enableval=yes 14170 if test "$enableval" != "yes" ; then 14171 enable_blink_curs=no 14172 else 14173 enable_blink_curs=yes 14174 fi 14175else 14176 enableval=yes 14177 enable_blink_curs=yes 14178 14179fi; 14180echo "$as_me:14180: result: $enable_blink_curs" >&5 14181echo "${ECHO_T}$enable_blink_curs" >&6 14182test "$enable_blink_curs" = no && 14183cat >>confdefs.h <<\EOF 14184#define OPT_BLINK_CURS 0 14185EOF 14186 14187echo "$as_me:14187: checking if you want to ignore Linux's broken palette-strings" >&5 14188echo $ECHO_N "checking if you want to ignore Linux's broken palette-strings... $ECHO_C" >&6 14189 14190case $host_os in #(vi 14191linux*) 14192 assume_broken_osc=yes ;; #(vi 14193*) 14194 assume_broken_osc=no ;; 14195esac 14196 14197# Check whether --enable-broken-osc or --disable-broken-osc was given. 14198if test "${enable_broken_osc+set}" = set; then 14199 enableval="$enable_broken_osc" 14200 test "$enableval" != no && enableval=yes 14201 if test "$enableval" != "$assume_broken_osc" ; then 14202 enable_broken_osc=$enableval 14203 else 14204 enable_broken_osc=$enableval 14205 fi 14206else 14207 enableval=$assume_broken_osc 14208 enable_broken_osc=$enableval 14209 14210fi; 14211echo "$as_me:14211: result: $enable_broken_osc" >&5 14212echo "${ECHO_T}$enable_broken_osc" >&6 14213if test "$enable_broken_osc" = yes ; then 14214 14215cat >>confdefs.h <<\EOF 14216#define OPT_BROKEN_OSC 1 14217EOF 14218 14219else 14220 14221cat >>confdefs.h <<\EOF 14222#define OPT_BROKEN_OSC 0 14223EOF 14224 14225fi 14226 14227echo "$as_me:14227: checking if you want to allow broken string-terminators" >&5 14228echo $ECHO_N "checking if you want to allow broken string-terminators... $ECHO_C" >&6 14229 14230# Check whether --enable-broken-st or --disable-broken-st was given. 14231if test "${enable_broken_st+set}" = set; then 14232 enableval="$enable_broken_st" 14233 test "$enableval" != yes && enableval=no 14234 if test "$enableval" != "no" ; then 14235 enable_broken_st=no 14236 else 14237 enable_broken_st=yes 14238 fi 14239else 14240 enableval=no 14241 enable_broken_st=yes 14242 14243fi; 14244echo "$as_me:14244: result: $enable_broken_st" >&5 14245echo "${ECHO_T}$enable_broken_st" >&6 14246test "$enable_broken_st" = no && 14247cat >>confdefs.h <<\EOF 14248#define OPT_BROKEN_ST 0 14249EOF 14250 14251echo "$as_me:14251: checking if you want printable 128-159" >&5 14252echo $ECHO_N "checking if you want printable 128-159... $ECHO_C" >&6 14253 14254# Check whether --enable-c1-print or --disable-c1-print was given. 14255if test "${enable_c1_print+set}" = set; then 14256 enableval="$enable_c1_print" 14257 test "$enableval" != no && enableval=yes 14258 if test "$enableval" != "yes" ; then 14259 enable_c1_print=no 14260 else 14261 enable_c1_print=yes 14262 fi 14263else 14264 enableval=yes 14265 enable_c1_print=yes 14266 14267fi; 14268echo "$as_me:14268: result: $enable_c1_print" >&5 14269echo "${ECHO_T}$enable_c1_print" >&6 14270test "$enable_c1_print" = no && 14271cat >>confdefs.h <<\EOF 14272#define OPT_C1_PRINT 0 14273EOF 14274 14275if test "$enable_ansi_color" = yes ; then 14276 14277 echo "$as_me:14277: checking if you want bold colors mapped like IBM PC" >&5 14278echo $ECHO_N "checking if you want bold colors mapped like IBM PC... $ECHO_C" >&6 14279 14280# Check whether --enable-bold-color or --disable-bold-color was given. 14281if test "${enable_bold_color+set}" = set; then 14282 enableval="$enable_bold_color" 14283 test "$enableval" != no && enableval=yes 14284 if test "$enableval" != "yes" ; then 14285 enable_pc_color=no 14286 else 14287 enable_pc_color=yes 14288 fi 14289else 14290 enableval=yes 14291 enable_pc_color=yes 14292 14293fi; 14294 echo "$as_me:14294: result: $enable_pc_color" >&5 14295echo "${ECHO_T}$enable_pc_color" >&6 14296 test "$enable_pc_color" = no && 14297cat >>confdefs.h <<\EOF 14298#define OPT_PC_COLORS 0 14299EOF 14300 14301 echo "$as_me:14301: checking if you want separate color-classes" >&5 14302echo $ECHO_N "checking if you want separate color-classes... $ECHO_C" >&6 14303 14304# Check whether --enable-color-class or --disable-color-class was given. 14305if test "${enable_color_class+set}" = set; then 14306 enableval="$enable_color_class" 14307 test "$enableval" != no && enableval=yes 14308 if test "$enableval" != "yes" ; then 14309 enable_color_class=no 14310 else 14311 enable_color_class=yes 14312 fi 14313else 14314 enableval=yes 14315 enable_color_class=yes 14316 14317fi; 14318 echo "$as_me:14318: result: $enable_color_class" >&5 14319echo "${ECHO_T}$enable_color_class" >&6 14320 test "$enable_color_class" = no && 14321cat >>confdefs.h <<\EOF 14322#define OPT_COLOR_CLASS 0 14323EOF 14324 14325 echo "$as_me:14325: checking if you want color-mode enabled by default" >&5 14326echo $ECHO_N "checking if you want color-mode enabled by default... $ECHO_C" >&6 14327 14328# Check whether --enable-color-mode or --disable-color-mode was given. 14329if test "${enable_color_mode+set}" = set; then 14330 enableval="$enable_color_mode" 14331 test "$enableval" != no && enableval=yes 14332 if test "$enableval" != "yes" ; then 14333 default_colormode=no 14334 else 14335 default_colormode=yes 14336 fi 14337else 14338 enableval=yes 14339 default_colormode=yes 14340 14341fi; 14342 echo "$as_me:14342: result: $default_colormode" >&5 14343echo "${ECHO_T}$default_colormode" >&6 14344 test "$default_colormode" = no && 14345cat >>confdefs.h <<\EOF 14346#define DFT_COLORMODE 0 14347EOF 14348 14349fi 14350 14351echo "$as_me:14351: checking if you want support for color highlighting" >&5 14352echo $ECHO_N "checking if you want support for color highlighting... $ECHO_C" >&6 14353 14354# Check whether --enable-highlighting or --disable-highlighting was given. 14355if test "${enable_highlighting+set}" = set; then 14356 enableval="$enable_highlighting" 14357 test "$enableval" != no && enableval=yes 14358 if test "$enableval" != "yes" ; then 14359 default_highlight=no 14360 else 14361 default_highlight=yes 14362 fi 14363else 14364 enableval=yes 14365 default_highlight=yes 14366 14367fi; 14368echo "$as_me:14368: result: $default_highlight" >&5 14369echo "${ECHO_T}$default_highlight" >&6 14370test "$default_highlight" = no && 14371cat >>confdefs.h <<\EOF 14372#define OPT_HIGHLIGHT_COLOR 0 14373EOF 14374 14375echo "$as_me:14375: checking if you want support for doublesize characters" >&5 14376echo $ECHO_N "checking if you want support for doublesize characters... $ECHO_C" >&6 14377 14378# Check whether --enable-doublechars or --disable-doublechars was given. 14379if test "${enable_doublechars+set}" = set; then 14380 enableval="$enable_doublechars" 14381 test "$enableval" != no && enableval=yes 14382 if test "$enableval" != "yes" ; then 14383 enable_doublechars=no 14384 else 14385 enable_doublechars=yes 14386 fi 14387else 14388 enableval=yes 14389 enable_doublechars=yes 14390 14391fi; 14392echo "$as_me:14392: result: $enable_doublechars" >&5 14393echo "${ECHO_T}$enable_doublechars" >&6 14394test "$enable_doublechars" = no && 14395cat >>confdefs.h <<\EOF 14396#define OPT_DEC_CHRSET 0 14397EOF 14398 14399echo "$as_me:14399: checking if you want fallback-support for box characters" >&5 14400echo $ECHO_N "checking if you want fallback-support for box characters... $ECHO_C" >&6 14401 14402# Check whether --enable-boxchars or --disable-boxchars was given. 14403if test "${enable_boxchars+set}" = set; then 14404 enableval="$enable_boxchars" 14405 test "$enableval" != no && enableval=yes 14406 if test "$enableval" != "yes" ; then 14407 enable_boxchars=no 14408 else 14409 enable_boxchars=yes 14410 fi 14411else 14412 enableval=yes 14413 enable_boxchars=yes 14414 14415fi; 14416echo "$as_me:14416: result: $enable_boxchars" >&5 14417echo "${ECHO_T}$enable_boxchars" >&6 14418test "$enable_boxchars" = no && 14419cat >>confdefs.h <<\EOF 14420#define OPT_BOX_CHARS 0 14421EOF 14422 14423echo "$as_me:14423: checking if you want to allow spawning new xterms" >&5 14424echo $ECHO_N "checking if you want to allow spawning new xterms... $ECHO_C" >&6 14425 14426# Check whether --enable-exec-xterm or --disable-exec-xterm was given. 14427if test "${enable_exec_xterm+set}" = set; then 14428 enableval="$enable_exec_xterm" 14429 test "$enableval" != yes && enableval=no 14430 if test "$enableval" != "no" ; then 14431 enable_exec_xterm=yes 14432 else 14433 enable_exec_xterm=no 14434 fi 14435else 14436 enableval=no 14437 enable_exec_xterm=no 14438 14439fi; 14440echo "$as_me:14440: result: $enable_exec_xterm" >&5 14441echo "${ECHO_T}$enable_exec_xterm" >&6 14442if test "$enable_exec_xterm" = yes ; then 14443 14444echo "$as_me:14444: checking for proc tree with cwd-support" >&5 14445echo $ECHO_N "checking for proc tree with cwd-support... $ECHO_C" >&6 14446if test "${cf_cv_procfs_cwd+set}" = set; then 14447 echo $ECHO_N "(cached) $ECHO_C" >&6 14448else 14449 14450cf_cv_procfs_cwd=no 14451for cf_path in /proc /compat/linux/proc /usr/compat/linux/proc 14452do 14453 if test -d $cf_path && \ 14454 test -d $cf_path/$$ && \ 14455 ( test -d $cf_path/$$/cwd || \ 14456 test -L $cf_path/$$/cwd ); then 14457 cf_cv_procfs_cwd=$cf_path 14458 break 14459 fi 14460done 14461 14462fi 14463echo "$as_me:14463: result: $cf_cv_procfs_cwd" >&5 14464echo "${ECHO_T}$cf_cv_procfs_cwd" >&6 14465 14466 if test "$cf_cv_procfs_cwd" = no ; then 14467 { echo "$as_me:14467: WARNING: no suitable proc filesystem found" >&5 14468echo "$as_me: WARNING: no suitable proc filesystem found" >&2;} 14469 else 14470 14471cat >>confdefs.h <<EOF 14472#define PROCFS_ROOT "$cf_cv_procfs_cwd" 14473EOF 14474 14475cat >>confdefs.h <<\EOF 14476#define OPT_EXEC_XTERM 1 14477EOF 14478 14479 fi 14480fi 14481 14482echo "$as_me:14482: checking if you want to use double-buffering" >&5 14483echo $ECHO_N "checking if you want to use double-buffering... $ECHO_C" >&6 14484 14485# Check whether --enable-double-buffer or --disable-double-buffer was given. 14486if test "${enable_double_buffer+set}" = set; then 14487 enableval="$enable_double_buffer" 14488 test "$enableval" != yes && enableval=no 14489 if test "$enableval" != "no" ; then 14490 enable_double_bfr=yes 14491 else 14492 enable_double_bfr=no 14493 fi 14494else 14495 enableval=no 14496 enable_double_bfr=no 14497 14498fi; 14499echo "$as_me:14499: result: $enable_double_bfr" >&5 14500echo "${ECHO_T}$enable_double_bfr" >&6 14501if test "$enable_double_bfr" = yes ; then 14502 case "x$LIBS" in 14503 *Xext*) 14504 ;; 14505 *) 14506 14507if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then 14508 test -n "$verbose" && echo " found package Xext" 1>&6 14509 14510echo "${as_me:-configure}:14510: testing found package Xext ..." 1>&5 14511 14512 cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`" 14513 cf_pkgconfig_libs="`$PKG_CONFIG --libs Xext 2>/dev/null`" 14514 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6 14515 14516echo "${as_me:-configure}:14516: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5 14517 14518 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6 14519 14520echo "${as_me:-configure}:14520: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5 14521 14522cf_fix_cppflags=no 14523cf_new_cflags= 14524cf_new_cppflags= 14525cf_new_extra_cppflags= 14526 14527for cf_add_cflags in $cf_pkgconfig_incs 14528do 14529case $cf_fix_cppflags in 14530no) 14531 case $cf_add_cflags in #(vi 14532 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 14533 case $cf_add_cflags in 14534 -D*) 14535 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 14536 14537 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 14538 && test -z "${cf_tst_cflags}" \ 14539 && cf_fix_cppflags=yes 14540 14541 if test $cf_fix_cppflags = yes ; then 14542 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 14543 continue 14544 elif test "${cf_tst_cflags}" = "\"'" ; then 14545 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 14546 continue 14547 fi 14548 ;; 14549 esac 14550 case "$CPPFLAGS" in 14551 *$cf_add_cflags) #(vi 14552 ;; 14553 *) #(vi 14554 case $cf_add_cflags in #(vi 14555 -D*) 14556 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 14557 14558CPPFLAGS=`echo "$CPPFLAGS" | \ 14559 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 14560 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 14561 14562 ;; 14563 esac 14564 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 14565 ;; 14566 esac 14567 ;; 14568 *) 14569 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 14570 ;; 14571 esac 14572 ;; 14573yes) 14574 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 14575 14576 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 14577 14578 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 14579 && test -z "${cf_tst_cflags}" \ 14580 && cf_fix_cppflags=no 14581 ;; 14582esac 14583done 14584 14585if test -n "$cf_new_cflags" ; then 14586 14587 CFLAGS="$CFLAGS $cf_new_cflags" 14588fi 14589 14590if test -n "$cf_new_cppflags" ; then 14591 14592 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 14593fi 14594 14595if test -n "$cf_new_extra_cppflags" ; then 14596 14597 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 14598fi 14599 14600 LIBS="$cf_pkgconfig_libs $LIBS" 14601 : 14602else 14603 cf_pkgconfig_incs= 14604 cf_pkgconfig_libs= 14605 14606 echo "$as_me:14606: checking for XextCreateExtension in -lXext" >&5 14607echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6 14608if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then 14609 echo $ECHO_N "(cached) $ECHO_C" >&6 14610else 14611 ac_check_lib_save_LIBS=$LIBS 14612LIBS="-lXext $LIBS" 14613cat >conftest.$ac_ext <<_ACEOF 14614#line 14614 "configure" 14615#include "confdefs.h" 14616 14617/* Override any gcc2 internal prototype to avoid an error. */ 14618#ifdef __cplusplus 14619extern "C" 14620#endif 14621/* We use char because int might match the return type of a gcc2 14622 builtin and then its argument prototype would still apply. */ 14623char XextCreateExtension (); 14624int 14625main () 14626{ 14627XextCreateExtension (); 14628 ; 14629 return 0; 14630} 14631_ACEOF 14632rm -f conftest.$ac_objext conftest$ac_exeext 14633if { (eval echo "$as_me:14633: \"$ac_link\"") >&5 14634 (eval $ac_link) 2>&5 14635 ac_status=$? 14636 echo "$as_me:14636: \$? = $ac_status" >&5 14637 (exit $ac_status); } && 14638 { ac_try='test -s conftest$ac_exeext' 14639 { (eval echo "$as_me:14639: \"$ac_try\"") >&5 14640 (eval $ac_try) 2>&5 14641 ac_status=$? 14642 echo "$as_me:14642: \$? = $ac_status" >&5 14643 (exit $ac_status); }; }; then 14644 ac_cv_lib_Xext_XextCreateExtension=yes 14645else 14646 echo "$as_me: failed program was:" >&5 14647cat conftest.$ac_ext >&5 14648ac_cv_lib_Xext_XextCreateExtension=no 14649fi 14650rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14651LIBS=$ac_check_lib_save_LIBS 14652fi 14653echo "$as_me:14653: result: $ac_cv_lib_Xext_XextCreateExtension" >&5 14654echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6 14655if test $ac_cv_lib_Xext_XextCreateExtension = yes; then 14656 LIBS="-lXext $LIBS" 14657fi 14658 14659fi 14660 14661 ;; 14662 esac 14663 14664cat >>confdefs.h <<\EOF 14665#define OPT_DOUBLE_BUFFER 1 14666EOF 14667 14668fi 14669 14670echo "$as_me:14670: checking if you want to use FreeType library" >&5 14671echo $ECHO_N "checking if you want to use FreeType library... $ECHO_C" >&6 14672 14673# Check whether --enable-freetype or --disable-freetype was given. 14674if test "${enable_freetype+set}" = set; then 14675 enableval="$enable_freetype" 14676 test "$enableval" != no && enableval=yes 14677 if test "$enableval" != "yes" ; then 14678 enable_freetype=no 14679 else 14680 enable_freetype=yes 14681 fi 14682else 14683 enableval=yes 14684 enable_freetype=yes 14685 14686fi; 14687echo "$as_me:14687: result: $enable_freetype" >&5 14688echo "${ECHO_T}$enable_freetype" >&6 14689if test "$enable_freetype" = yes ; then 14690 14691cf_cv_x_freetype_incs=no 14692cf_cv_x_freetype_libs=no 14693cf_extra_freetype_libs= 14694FREETYPE_CONFIG=none 14695FREETYPE_PARAMS= 14696 14697echo "$as_me:14697: checking for FreeType configuration script" >&5 14698echo $ECHO_N "checking for FreeType configuration script... $ECHO_C" >&6 14699 14700# Check whether --with-freetype-config or --without-freetype-config was given. 14701if test "${with_freetype_config+set}" = set; then 14702 withval="$with_freetype_config" 14703 cf_cv_x_freetype_cfgs="$withval" 14704else 14705 cf_cv_x_freetype_cfgs=auto 14706fi; 14707test -z $cf_cv_x_freetype_cfgs && cf_cv_x_freetype_cfgs=auto 14708test $cf_cv_x_freetype_cfgs = no && cf_cv_x_freetype_cfgs=none 14709echo "$as_me:14709: result: $cf_cv_x_freetype_cfgs" >&5 14710echo "${ECHO_T}$cf_cv_x_freetype_cfgs" >&6 14711 14712case $cf_cv_x_freetype_cfgs in 14713none) #(vi 14714 echo "$as_me:14714: checking if you specified -D/-I options for FreeType" >&5 14715echo $ECHO_N "checking if you specified -D/-I options for FreeType... $ECHO_C" >&6 14716 14717# Check whether --with-freetype-cflags or --without-freetype-cflags was given. 14718if test "${with_freetype_cflags+set}" = set; then 14719 withval="$with_freetype_cflags" 14720 cf_cv_x_freetype_incs="$with_freetype_cflags" 14721else 14722 cf_cv_x_freetype_incs=no 14723fi; 14724 echo "$as_me:14724: result: $cf_cv_x_freetype_incs" >&5 14725echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6 14726 14727 echo "$as_me:14727: checking if you specified -L/-l options for FreeType" >&5 14728echo $ECHO_N "checking if you specified -L/-l options for FreeType... $ECHO_C" >&6 14729 14730# Check whether --with-freetype-libs or --without-freetype-libs was given. 14731if test "${with_freetype_libs+set}" = set; then 14732 withval="$with_freetype_libs" 14733 cf_cv_x_freetype_libs="$with_freetype_libs" 14734else 14735 cf_cv_x_freetype_libs=no 14736fi; 14737 echo "$as_me:14737: result: $cf_cv_x_freetype_libs" >&5 14738echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6 14739 ;; 14740auto) #(vi 14741 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then 14742 FREETYPE_CONFIG=$PKG_CONFIG 14743 FREETYPE_PARAMS=xft 14744 else 14745 # Extract the first word of "freetype-config", so it can be a program name with args. 14746set dummy freetype-config; ac_word=$2 14747echo "$as_me:14747: checking for $ac_word" >&5 14748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 14749if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then 14750 echo $ECHO_N "(cached) $ECHO_C" >&6 14751else 14752 case $FREETYPE_CONFIG in 14753 [\\/]* | ?:[\\/]*) 14754 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path. 14755 ;; 14756 *) 14757 ac_save_IFS=$IFS; IFS=$ac_path_separator 14758ac_dummy="$PATH" 14759for ac_dir in $ac_dummy; do 14760 IFS=$ac_save_IFS 14761 test -z "$ac_dir" && ac_dir=. 14762 if $as_executable_p "$ac_dir/$ac_word"; then 14763 ac_cv_path_FREETYPE_CONFIG="$ac_dir/$ac_word" 14764 echo "$as_me:14764: found $ac_dir/$ac_word" >&5 14765 break 14766fi 14767done 14768 14769 test -z "$ac_cv_path_FREETYPE_CONFIG" && ac_cv_path_FREETYPE_CONFIG="none" 14770 ;; 14771esac 14772fi 14773FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG 14774 14775if test -n "$FREETYPE_CONFIG"; then 14776 echo "$as_me:14776: result: $FREETYPE_CONFIG" >&5 14777echo "${ECHO_T}$FREETYPE_CONFIG" >&6 14778else 14779 echo "$as_me:14779: result: no" >&5 14780echo "${ECHO_T}no" >&6 14781fi 14782 14783 if test "$FREETYPE_CONFIG" != none; then 14784 FREETYPE_CONFIG=$FREETYPE_CONFIG 14785 cf_extra_freetype_libs="-lXft" 14786 else 14787 # Extract the first word of "xft-config", so it can be a program name with args. 14788set dummy xft-config; ac_word=$2 14789echo "$as_me:14789: checking for $ac_word" >&5 14790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 14791if test "${ac_cv_path_FREETYPE_OLD_CONFIG+set}" = set; then 14792 echo $ECHO_N "(cached) $ECHO_C" >&6 14793else 14794 case $FREETYPE_OLD_CONFIG in 14795 [\\/]* | ?:[\\/]*) 14796 ac_cv_path_FREETYPE_OLD_CONFIG="$FREETYPE_OLD_CONFIG" # Let the user override the test with a path. 14797 ;; 14798 *) 14799 ac_save_IFS=$IFS; IFS=$ac_path_separator 14800ac_dummy="$PATH" 14801for ac_dir in $ac_dummy; do 14802 IFS=$ac_save_IFS 14803 test -z "$ac_dir" && ac_dir=. 14804 if $as_executable_p "$ac_dir/$ac_word"; then 14805 ac_cv_path_FREETYPE_OLD_CONFIG="$ac_dir/$ac_word" 14806 echo "$as_me:14806: found $ac_dir/$ac_word" >&5 14807 break 14808fi 14809done 14810 14811 test -z "$ac_cv_path_FREETYPE_OLD_CONFIG" && ac_cv_path_FREETYPE_OLD_CONFIG="none" 14812 ;; 14813esac 14814fi 14815FREETYPE_OLD_CONFIG=$ac_cv_path_FREETYPE_OLD_CONFIG 14816 14817if test -n "$FREETYPE_OLD_CONFIG"; then 14818 echo "$as_me:14818: result: $FREETYPE_OLD_CONFIG" >&5 14819echo "${ECHO_T}$FREETYPE_OLD_CONFIG" >&6 14820else 14821 echo "$as_me:14821: result: no" >&5 14822echo "${ECHO_T}no" >&6 14823fi 14824 14825 if test "$FREETYPE_OLD_CONFIG" != none; then 14826 FREETYPE_CONFIG=$FREETYPE_OLD_CONFIG 14827 fi 14828 fi 14829 fi 14830 ;; 14831pkg*) #(vi 14832 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then 14833 FREETYPE_CONFIG=$cf_cv_x_freetype_cfgs 14834 FREETYPE_PARAMS=xft 14835 else 14836 { echo "$as_me:14836: WARNING: cannot find pkg-config for Xft" >&5 14837echo "$as_me: WARNING: cannot find pkg-config for Xft" >&2;} 14838 fi 14839 ;; 14840*) #(vi 14841 # Extract the first word of "$cf_cv_x_freetype_cfgs", so it can be a program name with args. 14842set dummy $cf_cv_x_freetype_cfgs; ac_word=$2 14843echo "$as_me:14843: checking for $ac_word" >&5 14844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 14845if test "${ac_cv_path_FREETYPE_XFT_CONFIG+set}" = set; then 14846 echo $ECHO_N "(cached) $ECHO_C" >&6 14847else 14848 case $FREETYPE_XFT_CONFIG in 14849 [\\/]* | ?:[\\/]*) 14850 ac_cv_path_FREETYPE_XFT_CONFIG="$FREETYPE_XFT_CONFIG" # Let the user override the test with a path. 14851 ;; 14852 *) 14853 ac_save_IFS=$IFS; IFS=$ac_path_separator 14854ac_dummy="$PATH" 14855for ac_dir in $ac_dummy; do 14856 IFS=$ac_save_IFS 14857 test -z "$ac_dir" && ac_dir=. 14858 if $as_executable_p "$ac_dir/$ac_word"; then 14859 ac_cv_path_FREETYPE_XFT_CONFIG="$ac_dir/$ac_word" 14860 echo "$as_me:14860: found $ac_dir/$ac_word" >&5 14861 break 14862fi 14863done 14864 14865 test -z "$ac_cv_path_FREETYPE_XFT_CONFIG" && ac_cv_path_FREETYPE_XFT_CONFIG="none" 14866 ;; 14867esac 14868fi 14869FREETYPE_XFT_CONFIG=$ac_cv_path_FREETYPE_XFT_CONFIG 14870 14871if test -n "$FREETYPE_XFT_CONFIG"; then 14872 echo "$as_me:14872: result: $FREETYPE_XFT_CONFIG" >&5 14873echo "${ECHO_T}$FREETYPE_XFT_CONFIG" >&6 14874else 14875 echo "$as_me:14875: result: no" >&5 14876echo "${ECHO_T}no" >&6 14877fi 14878 14879 if test "$FREETYPE_XFT_CONFIG" != none; then 14880 FREETYPE_CONFIG=$FREETYPE_XFT_CONFIG 14881 else 14882 { echo "$as_me:14882: WARNING: cannot find config script for Xft" >&5 14883echo "$as_me: WARNING: cannot find config script for Xft" >&2;} 14884 fi 14885 ;; 14886esac 14887 14888if test "$FREETYPE_CONFIG" != none ; then 14889 echo "$as_me:14889: checking for FreeType config" >&5 14890echo $ECHO_N "checking for FreeType config... $ECHO_C" >&6 14891 echo "$as_me:14891: result: $FREETYPE_CONFIG $FREETYPE_PARAMS" >&5 14892echo "${ECHO_T}$FREETYPE_CONFIG $FREETYPE_PARAMS" >&6 14893 14894 if test "$cf_cv_x_freetype_incs" = no ; then 14895 echo "$as_me:14895: checking for $FREETYPE_CONFIG cflags" >&5 14896echo $ECHO_N "checking for $FREETYPE_CONFIG cflags... $ECHO_C" >&6 14897 cf_cv_x_freetype_incs="`$FREETYPE_CONFIG $FREETYPE_PARAMS --cflags 2>/dev/null`" 14898 echo "$as_me:14898: result: $cf_cv_x_freetype_incs" >&5 14899echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6 14900 fi 14901 14902 if test "$cf_cv_x_freetype_libs" = no ; then 14903 echo "$as_me:14903: checking for $FREETYPE_CONFIG libs" >&5 14904echo $ECHO_N "checking for $FREETYPE_CONFIG libs... $ECHO_C" >&6 14905 cf_cv_x_freetype_libs="$cf_extra_freetype_libs `$FREETYPE_CONFIG $FREETYPE_PARAMS --libs 2>/dev/null`" 14906 echo "$as_me:14906: result: $cf_cv_x_freetype_libs" >&5 14907echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6 14908 fi 14909fi 14910 14911if test "$cf_cv_x_freetype_incs" = no ; then 14912 cf_cv_x_freetype_incs= 14913fi 14914 14915if test "$cf_cv_x_freetype_libs" = no ; then 14916 cf_cv_x_freetype_libs=-lXft 14917fi 14918 14919echo "$as_me:14919: checking if we can link with FreeType libraries" >&5 14920echo $ECHO_N "checking if we can link with FreeType libraries... $ECHO_C" >&6 14921 14922cf_save_LIBS="$LIBS" 14923cf_save_INCS="$CPPFLAGS" 14924 14925LIBS="$cf_cv_x_freetype_libs $LIBS" 14926CPPFLAGS="$CPPFLAGS $cf_cv_x_freetype_incs" 14927 14928cat >conftest.$ac_ext <<_ACEOF 14929#line 14929 "configure" 14930#include "confdefs.h" 14931 14932#include <X11/Xlib.h> 14933#include <X11/extensions/Xrender.h> 14934#include <X11/Xft/Xft.h> 14935int 14936main () 14937{ 14938 14939 XftPattern *pat = XftNameParse ("name"); 14940 ; 14941 return 0; 14942} 14943_ACEOF 14944rm -f conftest.$ac_objext conftest$ac_exeext 14945if { (eval echo "$as_me:14945: \"$ac_link\"") >&5 14946 (eval $ac_link) 2>&5 14947 ac_status=$? 14948 echo "$as_me:14948: \$? = $ac_status" >&5 14949 (exit $ac_status); } && 14950 { ac_try='test -s conftest$ac_exeext' 14951 { (eval echo "$as_me:14951: \"$ac_try\"") >&5 14952 (eval $ac_try) 2>&5 14953 ac_status=$? 14954 echo "$as_me:14954: \$? = $ac_status" >&5 14955 (exit $ac_status); }; }; then 14956 cf_cv_found_freetype=yes 14957else 14958 echo "$as_me: failed program was:" >&5 14959cat conftest.$ac_ext >&5 14960cf_cv_found_freetype=no 14961fi 14962rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14963echo "$as_me:14963: result: $cf_cv_found_freetype" >&5 14964echo "${ECHO_T}$cf_cv_found_freetype" >&6 14965 14966LIBS="$cf_save_LIBS" 14967CPPFLAGS="$cf_save_INCS" 14968 14969if test "$cf_cv_found_freetype" = yes ; then 14970 LIBS="$cf_cv_x_freetype_libs $LIBS" 14971 14972cf_fix_cppflags=no 14973cf_new_cflags= 14974cf_new_cppflags= 14975cf_new_extra_cppflags= 14976 14977for cf_add_cflags in $cf_cv_x_freetype_incs 14978do 14979case $cf_fix_cppflags in 14980no) 14981 case $cf_add_cflags in #(vi 14982 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 14983 case $cf_add_cflags in 14984 -D*) 14985 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 14986 14987 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 14988 && test -z "${cf_tst_cflags}" \ 14989 && cf_fix_cppflags=yes 14990 14991 if test $cf_fix_cppflags = yes ; then 14992 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 14993 continue 14994 elif test "${cf_tst_cflags}" = "\"'" ; then 14995 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 14996 continue 14997 fi 14998 ;; 14999 esac 15000 case "$CPPFLAGS" in 15001 *$cf_add_cflags) #(vi 15002 ;; 15003 *) #(vi 15004 case $cf_add_cflags in #(vi 15005 -D*) 15006 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 15007 15008CPPFLAGS=`echo "$CPPFLAGS" | \ 15009 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 15010 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 15011 15012 ;; 15013 esac 15014 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 15015 ;; 15016 esac 15017 ;; 15018 *) 15019 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 15020 ;; 15021 esac 15022 ;; 15023yes) 15024 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 15025 15026 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 15027 15028 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 15029 && test -z "${cf_tst_cflags}" \ 15030 && cf_fix_cppflags=no 15031 ;; 15032esac 15033done 15034 15035if test -n "$cf_new_cflags" ; then 15036 15037 CFLAGS="$CFLAGS $cf_new_cflags" 15038fi 15039 15040if test -n "$cf_new_cppflags" ; then 15041 15042 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 15043fi 15044 15045if test -n "$cf_new_extra_cppflags" ; then 15046 15047 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 15048fi 15049 15050cat >>confdefs.h <<\EOF 15051#define XRENDERFONT 1 15052EOF 15053 15054for ac_func in \ 15055 XftDrawCharSpec \ 15056 XftDrawSetClip \ 15057 XftDrawSetClipRectangles \ 15058 15059do 15060as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 15061echo "$as_me:15061: checking for $ac_func" >&5 15062echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 15063if eval "test \"\${$as_ac_var+set}\" = set"; then 15064 echo $ECHO_N "(cached) $ECHO_C" >&6 15065else 15066 cat >conftest.$ac_ext <<_ACEOF 15067#line 15067 "configure" 15068#include "confdefs.h" 15069/* System header to define __stub macros and hopefully few prototypes, 15070 which can conflict with char $ac_func (); below. */ 15071#include <assert.h> 15072/* Override any gcc2 internal prototype to avoid an error. */ 15073#ifdef __cplusplus 15074extern "C" 15075#endif 15076/* We use char because int might match the return type of a gcc2 15077 builtin and then its argument prototype would still apply. */ 15078char $ac_func (); 15079char (*f) (); 15080 15081int 15082main () 15083{ 15084/* The GNU C library defines this for functions which it implements 15085 to always fail with ENOSYS. Some functions are actually named 15086 something starting with __ and the normal name is an alias. */ 15087#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15088choke me 15089#else 15090f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 15091#endif 15092 15093 ; 15094 return 0; 15095} 15096_ACEOF 15097rm -f conftest.$ac_objext conftest$ac_exeext 15098if { (eval echo "$as_me:15098: \"$ac_link\"") >&5 15099 (eval $ac_link) 2>&5 15100 ac_status=$? 15101 echo "$as_me:15101: \$? = $ac_status" >&5 15102 (exit $ac_status); } && 15103 { ac_try='test -s conftest$ac_exeext' 15104 { (eval echo "$as_me:15104: \"$ac_try\"") >&5 15105 (eval $ac_try) 2>&5 15106 ac_status=$? 15107 echo "$as_me:15107: \$? = $ac_status" >&5 15108 (exit $ac_status); }; }; then 15109 eval "$as_ac_var=yes" 15110else 15111 echo "$as_me: failed program was:" >&5 15112cat conftest.$ac_ext >&5 15113eval "$as_ac_var=no" 15114fi 15115rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15116fi 15117echo "$as_me:15117: result: `eval echo '${'$as_ac_var'}'`" >&5 15118echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 15119if test `eval echo '${'$as_ac_var'}'` = yes; then 15120 cat >>confdefs.h <<EOF 15121#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 15122EOF 15123 15124fi 15125done 15126 15127else 15128 { echo "$as_me:15128: WARNING: No libraries found for FreeType" >&5 15129echo "$as_me: WARNING: No libraries found for FreeType" >&2;} 15130 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//` 15131fi 15132 15133# FIXME: revisit this if needed 15134 15135if test "$cf_cv_found_freetype" = yes ; then 15136echo "$as_me:15136: checking for usable Xft/fontconfig package" >&5 15137echo $ECHO_N "checking for usable Xft/fontconfig package... $ECHO_C" >&6 15138if test "${cf_cv_xft_compat+set}" = set; then 15139 echo $ECHO_N "(cached) $ECHO_C" >&6 15140else 15141 15142cat >conftest.$ac_ext <<_ACEOF 15143#line 15143 "configure" 15144#include "confdefs.h" 15145 15146#include <X11/Xft/Xft.h> 15147 15148int 15149main () 15150{ 15151 15152 XftPattern *pat; 15153 XftPatternBuild(pat, 15154 XFT_FAMILY, XftTypeString, "mono", 15155 (void *) 0); 15156 15157 ; 15158 return 0; 15159} 15160_ACEOF 15161rm -f conftest.$ac_objext conftest$ac_exeext 15162if { (eval echo "$as_me:15162: \"$ac_link\"") >&5 15163 (eval $ac_link) 2>&5 15164 ac_status=$? 15165 echo "$as_me:15165: \$? = $ac_status" >&5 15166 (exit $ac_status); } && 15167 { ac_try='test -s conftest$ac_exeext' 15168 { (eval echo "$as_me:15168: \"$ac_try\"") >&5 15169 (eval $ac_try) 2>&5 15170 ac_status=$? 15171 echo "$as_me:15171: \$? = $ac_status" >&5 15172 (exit $ac_status); }; }; then 15173 cf_cv_xft_compat=yes 15174else 15175 echo "$as_me: failed program was:" >&5 15176cat conftest.$ac_ext >&5 15177cf_cv_xft_compat=no 15178fi 15179rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15180 15181fi 15182echo "$as_me:15182: result: $cf_cv_xft_compat" >&5 15183echo "${ECHO_T}$cf_cv_xft_compat" >&6 15184 15185if test "$cf_cv_xft_compat" = no 15186then 15187 # workaround for broken ".pc" files used for Xft. 15188 case "$cf_cv_x_freetype_libs" in #(vi 15189 *-lfontconfig*) #(vi 15190 ;; 15191 *) 15192 test -n "$verbose" && echo " work around broken package" 1>&6 15193 15194echo "${as_me:-configure}:15194: testing work around broken package ..." 1>&5 15195 15196 cf_save_fontconfig="$LIBS" 15197 15198if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists fontconfig; then 15199 test -n "$verbose" && echo " found package fontconfig" 1>&6 15200 15201echo "${as_me:-configure}:15201: testing found package fontconfig ..." 1>&5 15202 15203 cf_pkgconfig_incs="`$PKG_CONFIG --cflags fontconfig 2>/dev/null`" 15204 cf_pkgconfig_libs="`$PKG_CONFIG --libs fontconfig 2>/dev/null`" 15205 test -n "$verbose" && echo " package fontconfig CFLAGS: $cf_pkgconfig_incs" 1>&6 15206 15207echo "${as_me:-configure}:15207: testing package fontconfig CFLAGS: $cf_pkgconfig_incs ..." 1>&5 15208 15209 test -n "$verbose" && echo " package fontconfig LIBS: $cf_pkgconfig_libs" 1>&6 15210 15211echo "${as_me:-configure}:15211: testing package fontconfig LIBS: $cf_pkgconfig_libs ..." 1>&5 15212 15213cf_fix_cppflags=no 15214cf_new_cflags= 15215cf_new_cppflags= 15216cf_new_extra_cppflags= 15217 15218for cf_add_cflags in $cf_pkgconfig_incs 15219do 15220case $cf_fix_cppflags in 15221no) 15222 case $cf_add_cflags in #(vi 15223 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 15224 case $cf_add_cflags in 15225 -D*) 15226 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 15227 15228 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 15229 && test -z "${cf_tst_cflags}" \ 15230 && cf_fix_cppflags=yes 15231 15232 if test $cf_fix_cppflags = yes ; then 15233 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 15234 continue 15235 elif test "${cf_tst_cflags}" = "\"'" ; then 15236 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 15237 continue 15238 fi 15239 ;; 15240 esac 15241 case "$CPPFLAGS" in 15242 *$cf_add_cflags) #(vi 15243 ;; 15244 *) #(vi 15245 case $cf_add_cflags in #(vi 15246 -D*) 15247 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 15248 15249CPPFLAGS=`echo "$CPPFLAGS" | \ 15250 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 15251 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 15252 15253 ;; 15254 esac 15255 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 15256 ;; 15257 esac 15258 ;; 15259 *) 15260 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 15261 ;; 15262 esac 15263 ;; 15264yes) 15265 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 15266 15267 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 15268 15269 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 15270 && test -z "${cf_tst_cflags}" \ 15271 && cf_fix_cppflags=no 15272 ;; 15273esac 15274done 15275 15276if test -n "$cf_new_cflags" ; then 15277 15278 CFLAGS="$CFLAGS $cf_new_cflags" 15279fi 15280 15281if test -n "$cf_new_cppflags" ; then 15282 15283 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 15284fi 15285 15286if test -n "$cf_new_extra_cppflags" ; then 15287 15288 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 15289fi 15290 15291 LIBS="$cf_pkgconfig_libs $LIBS" 15292 15293cf_fix_cppflags=no 15294cf_new_cflags= 15295cf_new_cppflags= 15296cf_new_extra_cppflags= 15297 15298for cf_add_cflags in $cf_pkgconfig_incs 15299do 15300case $cf_fix_cppflags in 15301no) 15302 case $cf_add_cflags in #(vi 15303 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 15304 case $cf_add_cflags in 15305 -D*) 15306 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 15307 15308 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 15309 && test -z "${cf_tst_cflags}" \ 15310 && cf_fix_cppflags=yes 15311 15312 if test $cf_fix_cppflags = yes ; then 15313 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 15314 continue 15315 elif test "${cf_tst_cflags}" = "\"'" ; then 15316 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 15317 continue 15318 fi 15319 ;; 15320 esac 15321 case "$CPPFLAGS" in 15322 *$cf_add_cflags) #(vi 15323 ;; 15324 *) #(vi 15325 case $cf_add_cflags in #(vi 15326 -D*) 15327 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 15328 15329CPPFLAGS=`echo "$CPPFLAGS" | \ 15330 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 15331 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 15332 15333 ;; 15334 esac 15335 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 15336 ;; 15337 esac 15338 ;; 15339 *) 15340 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 15341 ;; 15342 esac 15343 ;; 15344yes) 15345 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 15346 15347 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 15348 15349 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 15350 && test -z "${cf_tst_cflags}" \ 15351 && cf_fix_cppflags=no 15352 ;; 15353esac 15354done 15355 15356if test -n "$cf_new_cflags" ; then 15357 15358 CFLAGS="$CFLAGS $cf_new_cflags" 15359fi 15360 15361if test -n "$cf_new_cppflags" ; then 15362 15363 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 15364fi 15365 15366if test -n "$cf_new_extra_cppflags" ; then 15367 15368 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 15369fi 15370 15371 LIBS="$cf_save_fontconfig" 15372 15373test -n "$verbose" && echo " ...before $LIBS" 1>&6 15374 15375echo "${as_me:-configure}:15375: testing ...before $LIBS ..." 1>&5 15376 15377LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXft %-lXft $cf_pkgconfig_libs %" -e 's% % %g'` 15378test -n "$verbose" && echo " ...after $LIBS" 1>&6 15379 15380echo "${as_me:-configure}:15380: testing ...after $LIBS ..." 1>&5 15381 15382else 15383 cf_pkgconfig_incs= 15384 cf_pkgconfig_libs= 15385 15386test -n "$verbose" && echo " ...before $LIBS" 1>&6 15387 15388echo "${as_me:-configure}:15388: testing ...before $LIBS ..." 1>&5 15389 15390LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXft %-lXft -lfontconfig %" -e 's% % %g'` 15391test -n "$verbose" && echo " ...after $LIBS" 1>&6 15392 15393echo "${as_me:-configure}:15393: testing ...after $LIBS ..." 1>&5 15394 15395fi 15396 15397 ;; 15398 esac 15399fi 15400fi 15401 15402else 15403 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//` 15404fi 15405 15406echo "$as_me:15406: checking if you want support for HP-style function keys" >&5 15407echo $ECHO_N "checking if you want support for HP-style function keys... $ECHO_C" >&6 15408 15409# Check whether --enable-hp-fkeys or --disable-hp-fkeys was given. 15410if test "${enable_hp_fkeys+set}" = set; then 15411 enableval="$enable_hp_fkeys" 15412 test "$enableval" != yes && enableval=no 15413 if test "$enableval" != "no" ; then 15414 enable_hp_fkeys=yes 15415 else 15416 enable_hp_fkeys=no 15417 fi 15418else 15419 enableval=no 15420 enable_hp_fkeys=no 15421 15422fi; 15423echo "$as_me:15423: result: $enable_hp_fkeys" >&5 15424echo "${ECHO_T}$enable_hp_fkeys" >&6 15425if test "$enable_hp_fkeys" = yes ; then 15426 15427cat >>confdefs.h <<\EOF 15428#define OPT_HP_FUNC_KEYS 1 15429EOF 15430 15431fi 15432 15433echo "$as_me:15433: checking if you want support for SCO-style function keys" >&5 15434echo $ECHO_N "checking if you want support for SCO-style function keys... $ECHO_C" >&6 15435 15436# Check whether --enable-sco-fkeys or --disable-sco-fkeys was given. 15437if test "${enable_sco_fkeys+set}" = set; then 15438 enableval="$enable_sco_fkeys" 15439 test "$enableval" != yes && enableval=no 15440 if test "$enableval" != "no" ; then 15441 enable_sco_fkeys=yes 15442 else 15443 enable_sco_fkeys=no 15444 fi 15445else 15446 enableval=no 15447 enable_sco_fkeys=no 15448 15449fi; 15450echo "$as_me:15450: result: $enable_sco_fkeys" >&5 15451echo "${ECHO_T}$enable_sco_fkeys" >&6 15452if test "$enable_sco_fkeys" = yes ; then 15453 15454cat >>confdefs.h <<\EOF 15455#define OPT_SCO_FUNC_KEYS 1 15456EOF 15457 15458fi 15459 15460echo "$as_me:15460: checking if you want support for Sun-style function keys" >&5 15461echo $ECHO_N "checking if you want support for Sun-style function keys... $ECHO_C" >&6 15462 15463# Check whether --enable-sun-fkeys or --disable-sun-fkeys was given. 15464if test "${enable_sun_fkeys+set}" = set; then 15465 enableval="$enable_sun_fkeys" 15466 test "$enableval" != no && enableval=yes 15467 if test "$enableval" != "yes" ; then 15468 enable_sun_fkeys=no 15469 else 15470 enable_sun_fkeys=yes 15471 fi 15472else 15473 enableval=yes 15474 enable_sun_fkeys=yes 15475 15476fi; 15477echo "$as_me:15477: result: $enable_sun_fkeys" >&5 15478echo "${ECHO_T}$enable_sun_fkeys" >&6 15479if test "$enable_sun_fkeys" = no ; then 15480 15481cat >>confdefs.h <<\EOF 15482#define OPT_SUN_FUNC_KEYS 0 15483EOF 15484 15485fi 15486 15487echo "$as_me:15487: checking if you want saved-lines stored as a FIFO" >&5 15488echo $ECHO_N "checking if you want saved-lines stored as a FIFO... $ECHO_C" >&6 15489 15490# Check whether --enable-fifo-lines or --disable-fifo-lines was given. 15491if test "${enable_fifo_lines+set}" = set; then 15492 enableval="$enable_fifo_lines" 15493 test "$enableval" != no && enableval=yes 15494 if test "$enableval" != "yes" ; then 15495 enable_fifo_lines=no 15496 else 15497 enable_fifo_lines=yes 15498 fi 15499else 15500 enableval=yes 15501 enable_fifo_lines=yes 15502 15503fi; 15504echo "$as_me:15504: result: $enable_fifo_lines" >&5 15505echo "${ECHO_T}$enable_fifo_lines" >&6 15506if test "$enable_fifo_lines" = yes ; then 15507 15508cat >>confdefs.h <<\EOF 15509#define OPT_FIFO_LINES 1 15510EOF 15511 15512fi 15513 15514echo "$as_me:15514: checking if you want support for internationalization" >&5 15515echo $ECHO_N "checking if you want support for internationalization... $ECHO_C" >&6 15516 15517# Check whether --enable-i18n or --disable-i18n was given. 15518if test "${enable_i18n+set}" = set; then 15519 enableval="$enable_i18n" 15520 test "$enableval" != no && enableval=yes 15521 if test "$enableval" != "yes" ; then 15522 enable_i18n=no 15523 else 15524 enable_i18n=yes 15525 fi 15526else 15527 enableval=yes 15528 enable_i18n=yes 15529 15530fi; 15531echo "$as_me:15531: result: $enable_i18n" >&5 15532echo "${ECHO_T}$enable_i18n" >&6 15533if test "$enable_i18n" = no ; then 15534 15535cat >>confdefs.h <<\EOF 15536#define OPT_I18N_SUPPORT 0 15537EOF 15538 15539fi 15540 15541echo "$as_me:15541: checking if you want support for initial-erase setup" >&5 15542echo $ECHO_N "checking if you want support for initial-erase setup... $ECHO_C" >&6 15543 15544# Check whether --enable-initial-erase or --disable-initial-erase was given. 15545if test "${enable_initial_erase+set}" = set; then 15546 enableval="$enable_initial_erase" 15547 test "$enableval" != no && enableval=yes 15548 if test "$enableval" != "yes" ; then 15549 enable_ie=no 15550 else 15551 enable_ie=yes 15552 fi 15553else 15554 enableval=yes 15555 enable_ie=yes 15556 15557fi; 15558echo "$as_me:15558: result: $enable_ie" >&5 15559echo "${ECHO_T}$enable_ie" >&6 15560if test "$enable_ie" = no ; then 15561 15562cat >>confdefs.h <<\EOF 15563#define OPT_INITIAL_ERASE 0 15564EOF 15565 15566fi 15567 15568echo "$as_me:15568: checking if you want support for input-method" >&5 15569echo $ECHO_N "checking if you want support for input-method... $ECHO_C" >&6 15570 15571# Check whether --enable-input-method or --disable-input-method was given. 15572if test "${enable_input_method+set}" = set; then 15573 enableval="$enable_input_method" 15574 test "$enableval" != no && enableval=yes 15575 if test "$enableval" != "yes" ; then 15576 enable_ximp=no 15577 else 15578 enable_ximp=yes 15579 fi 15580else 15581 enableval=yes 15582 enable_ximp=yes 15583 15584fi; 15585echo "$as_me:15585: result: $enable_ximp" >&5 15586echo "${ECHO_T}$enable_ximp" >&6 15587 15588echo "$as_me:15588: checking if X libraries support input-method" >&5 15589echo $ECHO_N "checking if X libraries support input-method... $ECHO_C" >&6 15590if test "${cf_cv_input_method+set}" = set; then 15591 echo $ECHO_N "(cached) $ECHO_C" >&6 15592else 15593 15594cat >conftest.$ac_ext <<_ACEOF 15595#line 15595 "configure" 15596#include "confdefs.h" 15597 15598#include <X11/IntrinsicP.h> 15599#include <X11/Xatom.h> 15600#include <X11/Xutil.h> 15601#include <X11/Xmu/Atoms.h> 15602#include <X11/Xmu/Converters.h> 15603#include <X11/Xaw/XawImP.h> 15604 15605int 15606main () 15607{ 15608 15609{ 15610 XIM xim; 15611 XIMStyles *xim_styles = 0; 15612 XIMStyle input_style; 15613 Widget w = 0; 15614 15615 XSetLocaleModifiers("@im=none"); 15616 xim = XOpenIM(XtDisplay(w), NULL, NULL, NULL); 15617 XGetIMValues(xim, XNQueryInputStyle, &xim_styles, NULL); 15618 XCloseIM(xim); 15619 input_style = (XIMPreeditNothing | XIMStatusNothing); 15620} 15621 15622 ; 15623 return 0; 15624} 15625_ACEOF 15626rm -f conftest.$ac_objext conftest$ac_exeext 15627if { (eval echo "$as_me:15627: \"$ac_link\"") >&5 15628 (eval $ac_link) 2>&5 15629 ac_status=$? 15630 echo "$as_me:15630: \$? = $ac_status" >&5 15631 (exit $ac_status); } && 15632 { ac_try='test -s conftest$ac_exeext' 15633 { (eval echo "$as_me:15633: \"$ac_try\"") >&5 15634 (eval $ac_try) 2>&5 15635 ac_status=$? 15636 echo "$as_me:15636: \$? = $ac_status" >&5 15637 (exit $ac_status); }; }; then 15638 cf_cv_input_method=yes 15639else 15640 echo "$as_me: failed program was:" >&5 15641cat conftest.$ac_ext >&5 15642cf_cv_input_method=no 15643fi 15644rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15645fi 15646echo "$as_me:15646: result: $cf_cv_input_method" >&5 15647echo "${ECHO_T}$cf_cv_input_method" >&6 15648 15649test "$cf_cv_input_method" = no && enable_ximp=no 15650if test "$enable_ximp" = no ; then 15651 15652cat >>confdefs.h <<\EOF 15653#define OPT_INPUT_METHOD 0 15654EOF 15655 15656fi 15657 15658echo "$as_me:15658: checking if you want support for load-vt-fonts" >&5 15659echo $ECHO_N "checking if you want support for load-vt-fonts... $ECHO_C" >&6 15660 15661# Check whether --enable-load-vt-fonts or --disable-load-vt-fonts was given. 15662if test "${enable_load_vt_fonts+set}" = set; then 15663 enableval="$enable_load_vt_fonts" 15664 test "$enableval" != yes && enableval=no 15665 if test "$enableval" != "no" ; then 15666 enable_load_vt_fonts=yes 15667 else 15668 enable_load_vt_fonts=no 15669 fi 15670else 15671 enableval=no 15672 enable_load_vt_fonts=no 15673 15674fi; 15675echo "$as_me:15675: result: $enable_load_vt_fonts" >&5 15676echo "${ECHO_T}$enable_load_vt_fonts" >&6 15677if test "$enable_load_vt_fonts" = yes ; then 15678 15679cat >>confdefs.h <<\EOF 15680#define OPT_LOAD_VTFONTS 1 15681EOF 15682 15683fi 15684 15685echo "$as_me:15685: checking if you want support for logging" >&5 15686echo $ECHO_N "checking if you want support for logging... $ECHO_C" >&6 15687 15688# Check whether --enable-logging or --disable-logging was given. 15689if test "${enable_logging+set}" = set; then 15690 enableval="$enable_logging" 15691 test "$enableval" != yes && enableval=no 15692 if test "$enableval" != "no" ; then 15693 enable_logging=yes 15694 else 15695 enable_logging=no 15696 fi 15697else 15698 enableval=no 15699 enable_logging=no 15700 15701fi; 15702echo "$as_me:15702: result: $enable_logging" >&5 15703echo "${ECHO_T}$enable_logging" >&6 15704if test "$enable_logging" = yes ; then 15705 15706cat >>confdefs.h <<\EOF 15707#define ALLOWLOGGING 1 15708EOF 15709 15710 echo "$as_me:15710: checking if you want to allow logging via a pipe" >&5 15711echo $ECHO_N "checking if you want to allow logging via a pipe... $ECHO_C" >&6 15712 15713# Check whether --enable-logfile-exec or --disable-logfile-exec was given. 15714if test "${enable_logfile_exec+set}" = set; then 15715 enableval="$enable_logfile_exec" 15716 test "$enableval" != yes && enableval=no 15717 if test "$enableval" != "no" ; then 15718 enable_log_exec=yes 15719 else 15720 enable_log_exec=no 15721 fi 15722else 15723 enableval=no 15724 enable_log_exec=no 15725 15726fi; 15727 echo "$as_me:15727: result: $enable_log_exec" >&5 15728echo "${ECHO_T}$enable_log_exec" >&6 15729 if test "$enable_log_exec" = yes ; then 15730 15731cat >>confdefs.h <<\EOF 15732#define ALLOWLOGFILEEXEC 1 15733EOF 15734 15735 fi 15736fi 15737 15738echo "$as_me:15738: checking if you want support for iconify/maximize translations" >&5 15739echo $ECHO_N "checking if you want support for iconify/maximize translations... $ECHO_C" >&6 15740 15741# Check whether --enable-maximize or --disable-maximize was given. 15742if test "${enable_maximize+set}" = set; then 15743 enableval="$enable_maximize" 15744 test "$enableval" != no && enableval=yes 15745 if test "$enableval" != "yes" ; then 15746 enable_maximize=no 15747 else 15748 enable_maximize=yes 15749 fi 15750else 15751 enableval=yes 15752 enable_maximize=yes 15753 15754fi; 15755echo "$as_me:15755: result: $enable_maximize" >&5 15756echo "${ECHO_T}$enable_maximize" >&6 15757test "$enable_maximize" = no && 15758cat >>confdefs.h <<\EOF 15759#define OPT_MAXIMIZE 0 15760EOF 15761 15762echo "$as_me:15762: checking if you want NumLock to override keyboard tables" >&5 15763echo $ECHO_N "checking if you want NumLock to override keyboard tables... $ECHO_C" >&6 15764 15765# Check whether --enable-num-lock or --disable-num-lock was given. 15766if test "${enable_num_lock+set}" = set; then 15767 enableval="$enable_num_lock" 15768 test "$enableval" != no && enableval=yes 15769 if test "$enableval" != "yes" ; then 15770 enable_numlock=no 15771 else 15772 enable_numlock=yes 15773 fi 15774else 15775 enableval=yes 15776 enable_numlock=yes 15777 15778fi; 15779echo "$as_me:15779: result: $enable_numlock" >&5 15780echo "${ECHO_T}$enable_numlock" >&6 15781test "$enable_numlock" = no && 15782cat >>confdefs.h <<\EOF 15783#define OPT_NUM_LOCK 0 15784EOF 15785 15786echo "$as_me:15786: checking if you want support for get/set of base64 selection data" >&5 15787echo $ECHO_N "checking if you want support for get/set of base64 selection data... $ECHO_C" >&6 15788 15789# Check whether --enable-paste64 or --disable-paste64 was given. 15790if test "${enable_paste64+set}" = set; then 15791 enableval="$enable_paste64" 15792 test "$enableval" != no && enableval=yes 15793 if test "$enableval" != "yes" ; then 15794 enable_paste64=no 15795 else 15796 enable_paste64=yes 15797 fi 15798else 15799 enableval=yes 15800 enable_paste64=yes 15801 15802fi; 15803echo "$as_me:15803: result: $enable_paste64" >&5 15804echo "${ECHO_T}$enable_paste64" >&6 15805if test "$enable_paste64" = yes ; then 15806 15807cat >>confdefs.h <<\EOF 15808#define OPT_PASTE64 1 15809EOF 15810 15811else 15812 15813cat >>confdefs.h <<\EOF 15814#define OPT_PASTE64 0 15815EOF 15816 15817fi 15818 15819echo "$as_me:15819: checking if you want support for pty-handshaking" >&5 15820echo $ECHO_N "checking if you want support for pty-handshaking... $ECHO_C" >&6 15821 15822# Check whether --enable-pty-handshake or --disable-pty-handshake was given. 15823if test "${enable_pty_handshake+set}" = set; then 15824 enableval="$enable_pty_handshake" 15825 test "$enableval" != no && enableval=yes 15826 if test "$enableval" != "yes" ; then 15827 enable_pty_handshake=no 15828 else 15829 enable_pty_handshake=yes 15830 fi 15831else 15832 enableval=yes 15833 enable_pty_handshake=yes 15834 15835fi; 15836echo "$as_me:15836: result: $enable_pty_handshake" >&5 15837echo "${ECHO_T}$enable_pty_handshake" >&6 15838if test "$enable_pty_handshake" = yes ; then 15839 15840cat >>confdefs.h <<\EOF 15841#define OPT_PTY_HANDSHAKE 1 15842EOF 15843 15844else 15845 15846cat >>confdefs.h <<\EOF 15847#define OPT_PTY_HANDSHAKE 0 15848EOF 15849 15850fi 15851 15852echo "$as_me:15852: checking if you want support for mouse in readline applications" >&5 15853echo $ECHO_N "checking if you want support for mouse in readline applications... $ECHO_C" >&6 15854 15855# Check whether --enable-readline-mouse or --disable-readline-mouse was given. 15856if test "${enable_readline_mouse+set}" = set; then 15857 enableval="$enable_readline_mouse" 15858 test "$enableval" != yes && enableval=no 15859 if test "$enableval" != "no" ; then 15860 enable_readline_mouse=yes 15861 else 15862 enable_readline_mouse=no 15863 fi 15864else 15865 enableval=no 15866 enable_readline_mouse=no 15867 15868fi; 15869echo "$as_me:15869: result: $enable_readline_mouse" >&5 15870echo "${ECHO_T}$enable_readline_mouse" >&6 15871if test "$enable_readline_mouse" = yes ; then 15872 15873cat >>confdefs.h <<\EOF 15874#define OPT_READLINE 1 15875EOF 15876 15877fi 15878 15879echo "$as_me:15879: checking if you want support for regular-expression selections" >&5 15880echo $ECHO_N "checking if you want support for regular-expression selections... $ECHO_C" >&6 15881 15882# Check whether --enable-regex or --disable-regex was given. 15883if test "${enable_regex+set}" = set; then 15884 enableval="$enable_regex" 15885 test "$enableval" != no && enableval=yes 15886 if test "$enableval" != "yes" ; then 15887 enable_regex=no 15888 else 15889 enable_regex=yes 15890 fi 15891else 15892 enableval=yes 15893 enable_regex=yes 15894 15895fi; 15896echo "$as_me:15896: result: $enable_regex" >&5 15897echo "${ECHO_T}$enable_regex" >&6 15898if test "$enable_regex" = yes ; then 15899 15900echo "$as_me:15900: checking if you want to use PCRE for regular-expressions" >&5 15901echo $ECHO_N "checking if you want to use PCRE for regular-expressions... $ECHO_C" >&6 15902 15903# Check whether --with-pcre or --without-pcre was given. 15904if test "${with_pcre+set}" = set; then 15905 withval="$with_pcre" 15906 15907fi; 15908test -z "$with_pcre" && with_pcre=no 15909echo "$as_me:15909: result: $with_pcre" >&5 15910echo "${ECHO_T}$with_pcre" >&6 15911 15912if test "$with_pcre" != no ; then 15913 15914if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists libpcre; then 15915 test -n "$verbose" && echo " found package libpcre" 1>&6 15916 15917echo "${as_me:-configure}:15917: testing found package libpcre ..." 1>&5 15918 15919 cf_pkgconfig_incs="`$PKG_CONFIG --cflags libpcre 2>/dev/null`" 15920 cf_pkgconfig_libs="`$PKG_CONFIG --libs libpcre 2>/dev/null`" 15921 test -n "$verbose" && echo " package libpcre CFLAGS: $cf_pkgconfig_incs" 1>&6 15922 15923echo "${as_me:-configure}:15923: testing package libpcre CFLAGS: $cf_pkgconfig_incs ..." 1>&5 15924 15925 test -n "$verbose" && echo " package libpcre LIBS: $cf_pkgconfig_libs" 1>&6 15926 15927echo "${as_me:-configure}:15927: testing package libpcre LIBS: $cf_pkgconfig_libs ..." 1>&5 15928 15929cf_fix_cppflags=no 15930cf_new_cflags= 15931cf_new_cppflags= 15932cf_new_extra_cppflags= 15933 15934for cf_add_cflags in $cf_pkgconfig_incs 15935do 15936case $cf_fix_cppflags in 15937no) 15938 case $cf_add_cflags in #(vi 15939 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 15940 case $cf_add_cflags in 15941 -D*) 15942 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 15943 15944 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 15945 && test -z "${cf_tst_cflags}" \ 15946 && cf_fix_cppflags=yes 15947 15948 if test $cf_fix_cppflags = yes ; then 15949 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 15950 continue 15951 elif test "${cf_tst_cflags}" = "\"'" ; then 15952 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 15953 continue 15954 fi 15955 ;; 15956 esac 15957 case "$CPPFLAGS" in 15958 *$cf_add_cflags) #(vi 15959 ;; 15960 *) #(vi 15961 case $cf_add_cflags in #(vi 15962 -D*) 15963 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 15964 15965CPPFLAGS=`echo "$CPPFLAGS" | \ 15966 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 15967 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 15968 15969 ;; 15970 esac 15971 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 15972 ;; 15973 esac 15974 ;; 15975 *) 15976 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 15977 ;; 15978 esac 15979 ;; 15980yes) 15981 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 15982 15983 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 15984 15985 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 15986 && test -z "${cf_tst_cflags}" \ 15987 && cf_fix_cppflags=no 15988 ;; 15989esac 15990done 15991 15992if test -n "$cf_new_cflags" ; then 15993 15994 CFLAGS="$CFLAGS $cf_new_cflags" 15995fi 15996 15997if test -n "$cf_new_cppflags" ; then 15998 15999 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 16000fi 16001 16002if test -n "$cf_new_extra_cppflags" ; then 16003 16004 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 16005fi 16006 16007 LIBS="$cf_pkgconfig_libs $LIBS" 16008 : 16009else 16010 cf_pkgconfig_incs= 16011 cf_pkgconfig_libs= 16012 16013echo "$as_me:16013: checking for pcre_compile in -lpcre" >&5 16014echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6 16015if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then 16016 echo $ECHO_N "(cached) $ECHO_C" >&6 16017else 16018 ac_check_lib_save_LIBS=$LIBS 16019LIBS="-lpcre $LIBS" 16020cat >conftest.$ac_ext <<_ACEOF 16021#line 16021 "configure" 16022#include "confdefs.h" 16023 16024/* Override any gcc2 internal prototype to avoid an error. */ 16025#ifdef __cplusplus 16026extern "C" 16027#endif 16028/* We use char because int might match the return type of a gcc2 16029 builtin and then its argument prototype would still apply. */ 16030char pcre_compile (); 16031int 16032main () 16033{ 16034pcre_compile (); 16035 ; 16036 return 0; 16037} 16038_ACEOF 16039rm -f conftest.$ac_objext conftest$ac_exeext 16040if { (eval echo "$as_me:16040: \"$ac_link\"") >&5 16041 (eval $ac_link) 2>&5 16042 ac_status=$? 16043 echo "$as_me:16043: \$? = $ac_status" >&5 16044 (exit $ac_status); } && 16045 { ac_try='test -s conftest$ac_exeext' 16046 { (eval echo "$as_me:16046: \"$ac_try\"") >&5 16047 (eval $ac_try) 2>&5 16048 ac_status=$? 16049 echo "$as_me:16049: \$? = $ac_status" >&5 16050 (exit $ac_status); }; }; then 16051 ac_cv_lib_pcre_pcre_compile=yes 16052else 16053 echo "$as_me: failed program was:" >&5 16054cat conftest.$ac_ext >&5 16055ac_cv_lib_pcre_pcre_compile=no 16056fi 16057rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16058LIBS=$ac_check_lib_save_LIBS 16059fi 16060echo "$as_me:16060: result: $ac_cv_lib_pcre_pcre_compile" >&5 16061echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6 16062if test $ac_cv_lib_pcre_pcre_compile = yes; then 16063 cat >>confdefs.h <<EOF 16064#define HAVE_LIBPCRE 1 16065EOF 16066 16067 LIBS="-lpcre $LIBS" 16068 16069else 16070 { { echo "$as_me:16070: error: Cannot find PCRE library" >&5 16071echo "$as_me: error: Cannot find PCRE library" >&2;} 16072 { (exit 1); exit 1; }; } 16073fi 16074 16075fi 16076 16077cat >>confdefs.h <<\EOF 16078#define HAVE_LIB_PCRE 1 16079EOF 16080 16081 case $LIBS in #(vi 16082 *pcreposix*) #(vi 16083 ;; 16084 *) 16085 echo "$as_me:16085: checking for pcreposix_regcomp in -lpcreposix" >&5 16086echo $ECHO_N "checking for pcreposix_regcomp in -lpcreposix... $ECHO_C" >&6 16087if test "${ac_cv_lib_pcreposix_pcreposix_regcomp+set}" = set; then 16088 echo $ECHO_N "(cached) $ECHO_C" >&6 16089else 16090 ac_check_lib_save_LIBS=$LIBS 16091LIBS="-lpcreposix $LIBS" 16092cat >conftest.$ac_ext <<_ACEOF 16093#line 16093 "configure" 16094#include "confdefs.h" 16095 16096/* Override any gcc2 internal prototype to avoid an error. */ 16097#ifdef __cplusplus 16098extern "C" 16099#endif 16100/* We use char because int might match the return type of a gcc2 16101 builtin and then its argument prototype would still apply. */ 16102char pcreposix_regcomp (); 16103int 16104main () 16105{ 16106pcreposix_regcomp (); 16107 ; 16108 return 0; 16109} 16110_ACEOF 16111rm -f conftest.$ac_objext conftest$ac_exeext 16112if { (eval echo "$as_me:16112: \"$ac_link\"") >&5 16113 (eval $ac_link) 2>&5 16114 ac_status=$? 16115 echo "$as_me:16115: \$? = $ac_status" >&5 16116 (exit $ac_status); } && 16117 { ac_try='test -s conftest$ac_exeext' 16118 { (eval echo "$as_me:16118: \"$ac_try\"") >&5 16119 (eval $ac_try) 2>&5 16120 ac_status=$? 16121 echo "$as_me:16121: \$? = $ac_status" >&5 16122 (exit $ac_status); }; }; then 16123 ac_cv_lib_pcreposix_pcreposix_regcomp=yes 16124else 16125 echo "$as_me: failed program was:" >&5 16126cat conftest.$ac_ext >&5 16127ac_cv_lib_pcreposix_pcreposix_regcomp=no 16128fi 16129rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16130LIBS=$ac_check_lib_save_LIBS 16131fi 16132echo "$as_me:16132: result: $ac_cv_lib_pcreposix_pcreposix_regcomp" >&5 16133echo "${ECHO_T}$ac_cv_lib_pcreposix_pcreposix_regcomp" >&6 16134if test $ac_cv_lib_pcreposix_pcreposix_regcomp = yes; then 16135 16136cat >>confdefs.h <<\EOF 16137#define HAVE_PCREPOSIX_H 1 16138EOF 16139 16140 LIBS="-lpcreposix $LIBS" 16141else 16142 echo "$as_me:16142: checking for regcomp in -lpcreposix" >&5 16143echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6 16144if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then 16145 echo $ECHO_N "(cached) $ECHO_C" >&6 16146else 16147 ac_check_lib_save_LIBS=$LIBS 16148LIBS="-lpcreposix $LIBS" 16149cat >conftest.$ac_ext <<_ACEOF 16150#line 16150 "configure" 16151#include "confdefs.h" 16152 16153/* Override any gcc2 internal prototype to avoid an error. */ 16154#ifdef __cplusplus 16155extern "C" 16156#endif 16157/* We use char because int might match the return type of a gcc2 16158 builtin and then its argument prototype would still apply. */ 16159char regcomp (); 16160int 16161main () 16162{ 16163regcomp (); 16164 ; 16165 return 0; 16166} 16167_ACEOF 16168rm -f conftest.$ac_objext conftest$ac_exeext 16169if { (eval echo "$as_me:16169: \"$ac_link\"") >&5 16170 (eval $ac_link) 2>&5 16171 ac_status=$? 16172 echo "$as_me:16172: \$? = $ac_status" >&5 16173 (exit $ac_status); } && 16174 { ac_try='test -s conftest$ac_exeext' 16175 { (eval echo "$as_me:16175: \"$ac_try\"") >&5 16176 (eval $ac_try) 2>&5 16177 ac_status=$? 16178 echo "$as_me:16178: \$? = $ac_status" >&5 16179 (exit $ac_status); }; }; then 16180 ac_cv_lib_pcreposix_regcomp=yes 16181else 16182 echo "$as_me: failed program was:" >&5 16183cat conftest.$ac_ext >&5 16184ac_cv_lib_pcreposix_regcomp=no 16185fi 16186rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16187LIBS=$ac_check_lib_save_LIBS 16188fi 16189echo "$as_me:16189: result: $ac_cv_lib_pcreposix_regcomp" >&5 16190echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6 16191if test $ac_cv_lib_pcreposix_regcomp = yes; then 16192 16193cat >>confdefs.h <<\EOF 16194#define HAVE_PCREPOSIX_H 1 16195EOF 16196 16197 LIBS="-lpcreposix $LIBS" 16198else 16199 { { echo "$as_me:16199: error: Cannot find PCRE POSIX library" >&5 16200echo "$as_me: error: Cannot find PCRE POSIX library" >&2;} 16201 { (exit 1); exit 1; }; } 16202fi 16203 16204fi 16205 16206 ;; 16207 esac 16208fi 16209 16210 if test "$with_pcre" = no ; then 16211 16212cf_regex_func=no 16213 16214cf_regex_libs="regex re" 16215case $host_os in #(vi 16216mingw*) 16217 cf_regex_libs="gnurx $cf_regex_libs" 16218 ;; 16219esac 16220 16221echo "$as_me:16221: checking for regcomp" >&5 16222echo $ECHO_N "checking for regcomp... $ECHO_C" >&6 16223if test "${ac_cv_func_regcomp+set}" = set; then 16224 echo $ECHO_N "(cached) $ECHO_C" >&6 16225else 16226 cat >conftest.$ac_ext <<_ACEOF 16227#line 16227 "configure" 16228#include "confdefs.h" 16229/* System header to define __stub macros and hopefully few prototypes, 16230 which can conflict with char regcomp (); below. */ 16231#include <assert.h> 16232/* Override any gcc2 internal prototype to avoid an error. */ 16233#ifdef __cplusplus 16234extern "C" 16235#endif 16236/* We use char because int might match the return type of a gcc2 16237 builtin and then its argument prototype would still apply. */ 16238char regcomp (); 16239char (*f) (); 16240 16241int 16242main () 16243{ 16244/* The GNU C library defines this for functions which it implements 16245 to always fail with ENOSYS. Some functions are actually named 16246 something starting with __ and the normal name is an alias. */ 16247#if defined (__stub_regcomp) || defined (__stub___regcomp) 16248choke me 16249#else 16250f = regcomp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 16251#endif 16252 16253 ; 16254 return 0; 16255} 16256_ACEOF 16257rm -f conftest.$ac_objext conftest$ac_exeext 16258if { (eval echo "$as_me:16258: \"$ac_link\"") >&5 16259 (eval $ac_link) 2>&5 16260 ac_status=$? 16261 echo "$as_me:16261: \$? = $ac_status" >&5 16262 (exit $ac_status); } && 16263 { ac_try='test -s conftest$ac_exeext' 16264 { (eval echo "$as_me:16264: \"$ac_try\"") >&5 16265 (eval $ac_try) 2>&5 16266 ac_status=$? 16267 echo "$as_me:16267: \$? = $ac_status" >&5 16268 (exit $ac_status); }; }; then 16269 ac_cv_func_regcomp=yes 16270else 16271 echo "$as_me: failed program was:" >&5 16272cat conftest.$ac_ext >&5 16273ac_cv_func_regcomp=no 16274fi 16275rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16276fi 16277echo "$as_me:16277: result: $ac_cv_func_regcomp" >&5 16278echo "${ECHO_T}$ac_cv_func_regcomp" >&6 16279if test $ac_cv_func_regcomp = yes; then 16280 cf_regex_func=regcomp 16281else 16282 16283 for cf_regex_lib in $cf_regex_libs 16284 do 16285 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh` 16286echo "$as_me:16286: checking for regcomp in -l$cf_regex_lib" >&5 16287echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6 16288if eval "test \"\${$as_ac_Lib+set}\" = set"; then 16289 echo $ECHO_N "(cached) $ECHO_C" >&6 16290else 16291 ac_check_lib_save_LIBS=$LIBS 16292LIBS="-l$cf_regex_lib $LIBS" 16293cat >conftest.$ac_ext <<_ACEOF 16294#line 16294 "configure" 16295#include "confdefs.h" 16296 16297/* Override any gcc2 internal prototype to avoid an error. */ 16298#ifdef __cplusplus 16299extern "C" 16300#endif 16301/* We use char because int might match the return type of a gcc2 16302 builtin and then its argument prototype would still apply. */ 16303char regcomp (); 16304int 16305main () 16306{ 16307regcomp (); 16308 ; 16309 return 0; 16310} 16311_ACEOF 16312rm -f conftest.$ac_objext conftest$ac_exeext 16313if { (eval echo "$as_me:16313: \"$ac_link\"") >&5 16314 (eval $ac_link) 2>&5 16315 ac_status=$? 16316 echo "$as_me:16316: \$? = $ac_status" >&5 16317 (exit $ac_status); } && 16318 { ac_try='test -s conftest$ac_exeext' 16319 { (eval echo "$as_me:16319: \"$ac_try\"") >&5 16320 (eval $ac_try) 2>&5 16321 ac_status=$? 16322 echo "$as_me:16322: \$? = $ac_status" >&5 16323 (exit $ac_status); }; }; then 16324 eval "$as_ac_Lib=yes" 16325else 16326 echo "$as_me: failed program was:" >&5 16327cat conftest.$ac_ext >&5 16328eval "$as_ac_Lib=no" 16329fi 16330rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16331LIBS=$ac_check_lib_save_LIBS 16332fi 16333echo "$as_me:16333: result: `eval echo '${'$as_ac_Lib'}'`" >&5 16334echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 16335if test `eval echo '${'$as_ac_Lib'}'` = yes; then 16336 16337 LIBS="-l$cf_regex_lib $LIBS" 16338 cf_regex_func=regcomp 16339 break 16340fi 16341 16342 done 16343 16344fi 16345 16346if test "$cf_regex_func" = no ; then 16347 echo "$as_me:16347: checking for compile" >&5 16348echo $ECHO_N "checking for compile... $ECHO_C" >&6 16349if test "${ac_cv_func_compile+set}" = set; then 16350 echo $ECHO_N "(cached) $ECHO_C" >&6 16351else 16352 cat >conftest.$ac_ext <<_ACEOF 16353#line 16353 "configure" 16354#include "confdefs.h" 16355/* System header to define __stub macros and hopefully few prototypes, 16356 which can conflict with char compile (); below. */ 16357#include <assert.h> 16358/* Override any gcc2 internal prototype to avoid an error. */ 16359#ifdef __cplusplus 16360extern "C" 16361#endif 16362/* We use char because int might match the return type of a gcc2 16363 builtin and then its argument prototype would still apply. */ 16364char compile (); 16365char (*f) (); 16366 16367int 16368main () 16369{ 16370/* The GNU C library defines this for functions which it implements 16371 to always fail with ENOSYS. Some functions are actually named 16372 something starting with __ and the normal name is an alias. */ 16373#if defined (__stub_compile) || defined (__stub___compile) 16374choke me 16375#else 16376f = compile; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 16377#endif 16378 16379 ; 16380 return 0; 16381} 16382_ACEOF 16383rm -f conftest.$ac_objext conftest$ac_exeext 16384if { (eval echo "$as_me:16384: \"$ac_link\"") >&5 16385 (eval $ac_link) 2>&5 16386 ac_status=$? 16387 echo "$as_me:16387: \$? = $ac_status" >&5 16388 (exit $ac_status); } && 16389 { ac_try='test -s conftest$ac_exeext' 16390 { (eval echo "$as_me:16390: \"$ac_try\"") >&5 16391 (eval $ac_try) 2>&5 16392 ac_status=$? 16393 echo "$as_me:16393: \$? = $ac_status" >&5 16394 (exit $ac_status); }; }; then 16395 ac_cv_func_compile=yes 16396else 16397 echo "$as_me: failed program was:" >&5 16398cat conftest.$ac_ext >&5 16399ac_cv_func_compile=no 16400fi 16401rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16402fi 16403echo "$as_me:16403: result: $ac_cv_func_compile" >&5 16404echo "${ECHO_T}$ac_cv_func_compile" >&6 16405if test $ac_cv_func_compile = yes; then 16406 cf_regex_func=compile 16407else 16408 16409 echo "$as_me:16409: checking for compile in -lgen" >&5 16410echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6 16411if test "${ac_cv_lib_gen_compile+set}" = set; then 16412 echo $ECHO_N "(cached) $ECHO_C" >&6 16413else 16414 ac_check_lib_save_LIBS=$LIBS 16415LIBS="-lgen $LIBS" 16416cat >conftest.$ac_ext <<_ACEOF 16417#line 16417 "configure" 16418#include "confdefs.h" 16419 16420/* Override any gcc2 internal prototype to avoid an error. */ 16421#ifdef __cplusplus 16422extern "C" 16423#endif 16424/* We use char because int might match the return type of a gcc2 16425 builtin and then its argument prototype would still apply. */ 16426char compile (); 16427int 16428main () 16429{ 16430compile (); 16431 ; 16432 return 0; 16433} 16434_ACEOF 16435rm -f conftest.$ac_objext conftest$ac_exeext 16436if { (eval echo "$as_me:16436: \"$ac_link\"") >&5 16437 (eval $ac_link) 2>&5 16438 ac_status=$? 16439 echo "$as_me:16439: \$? = $ac_status" >&5 16440 (exit $ac_status); } && 16441 { ac_try='test -s conftest$ac_exeext' 16442 { (eval echo "$as_me:16442: \"$ac_try\"") >&5 16443 (eval $ac_try) 2>&5 16444 ac_status=$? 16445 echo "$as_me:16445: \$? = $ac_status" >&5 16446 (exit $ac_status); }; }; then 16447 ac_cv_lib_gen_compile=yes 16448else 16449 echo "$as_me: failed program was:" >&5 16450cat conftest.$ac_ext >&5 16451ac_cv_lib_gen_compile=no 16452fi 16453rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16454LIBS=$ac_check_lib_save_LIBS 16455fi 16456echo "$as_me:16456: result: $ac_cv_lib_gen_compile" >&5 16457echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6 16458if test $ac_cv_lib_gen_compile = yes; then 16459 16460 LIBS="-lgen $LIBS" 16461 cf_regex_func=compile 16462fi 16463 16464fi 16465 16466fi 16467 16468if test "$cf_regex_func" = no ; then 16469 { echo "$as_me:16469: WARNING: cannot find regular expression library" >&5 16470echo "$as_me: WARNING: cannot find regular expression library" >&2;} 16471fi 16472 16473echo "$as_me:16473: checking for regular-expression headers" >&5 16474echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6 16475if test "${cf_cv_regex_hdrs+set}" = set; then 16476 echo $ECHO_N "(cached) $ECHO_C" >&6 16477else 16478 16479cf_cv_regex_hdrs=no 16480case $cf_regex_func in #(vi 16481compile) #(vi 16482 for cf_regex_hdr in regexp.h regexpr.h 16483 do 16484 cat >conftest.$ac_ext <<_ACEOF 16485#line 16485 "configure" 16486#include "confdefs.h" 16487#include <$cf_regex_hdr> 16488int 16489main () 16490{ 16491 16492 char *p = compile("", "", "", 0); 16493 int x = step("", ""); 16494 16495 ; 16496 return 0; 16497} 16498_ACEOF 16499rm -f conftest.$ac_objext conftest$ac_exeext 16500if { (eval echo "$as_me:16500: \"$ac_link\"") >&5 16501 (eval $ac_link) 2>&5 16502 ac_status=$? 16503 echo "$as_me:16503: \$? = $ac_status" >&5 16504 (exit $ac_status); } && 16505 { ac_try='test -s conftest$ac_exeext' 16506 { (eval echo "$as_me:16506: \"$ac_try\"") >&5 16507 (eval $ac_try) 2>&5 16508 ac_status=$? 16509 echo "$as_me:16509: \$? = $ac_status" >&5 16510 (exit $ac_status); }; }; then 16511 16512 cf_cv_regex_hdrs=$cf_regex_hdr 16513 break 16514 16515else 16516 echo "$as_me: failed program was:" >&5 16517cat conftest.$ac_ext >&5 16518fi 16519rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16520 done 16521 ;; 16522*) 16523 for cf_regex_hdr in regex.h 16524 do 16525 cat >conftest.$ac_ext <<_ACEOF 16526#line 16526 "configure" 16527#include "confdefs.h" 16528#include <sys/types.h> 16529#include <$cf_regex_hdr> 16530int 16531main () 16532{ 16533 16534 regex_t *p; 16535 int x = regcomp(p, "", 0); 16536 int y = regexec(p, "", 0, 0, 0); 16537 regfree(p); 16538 16539 ; 16540 return 0; 16541} 16542_ACEOF 16543rm -f conftest.$ac_objext conftest$ac_exeext 16544if { (eval echo "$as_me:16544: \"$ac_link\"") >&5 16545 (eval $ac_link) 2>&5 16546 ac_status=$? 16547 echo "$as_me:16547: \$? = $ac_status" >&5 16548 (exit $ac_status); } && 16549 { ac_try='test -s conftest$ac_exeext' 16550 { (eval echo "$as_me:16550: \"$ac_try\"") >&5 16551 (eval $ac_try) 2>&5 16552 ac_status=$? 16553 echo "$as_me:16553: \$? = $ac_status" >&5 16554 (exit $ac_status); }; }; then 16555 16556 cf_cv_regex_hdrs=$cf_regex_hdr 16557 break 16558 16559else 16560 echo "$as_me: failed program was:" >&5 16561cat conftest.$ac_ext >&5 16562fi 16563rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16564 done 16565 ;; 16566esac 16567 16568fi 16569echo "$as_me:16569: result: $cf_cv_regex_hdrs" >&5 16570echo "${ECHO_T}$cf_cv_regex_hdrs" >&6 16571 16572case $cf_cv_regex_hdrs in #(vi 16573 no) { echo "$as_me:16573: WARNING: no regular expression header found" >&5 16574echo "$as_me: WARNING: no regular expression header found" >&2;} ;; #(vi 16575 regex.h) 16576cat >>confdefs.h <<\EOF 16577#define HAVE_REGEX_H_FUNCS 1 16578EOF 16579 ;; #(vi 16580 regexp.h) 16581cat >>confdefs.h <<\EOF 16582#define HAVE_REGEXP_H_FUNCS 1 16583EOF 16584 ;; #(vi 16585 regexpr.h) 16586cat >>confdefs.h <<\EOF 16587#define HAVE_REGEXPR_H_FUNCS 1 16588EOF 16589 ;; 16590esac 16591 16592 if test "X$cf_cv_regex_hdrs" != "Xregex.h" ; then 16593 { { echo "$as_me:16593: error: Only POSIX or PCRE regular expressions are supported" >&5 16594echo "$as_me: error: Only POSIX or PCRE regular expressions are supported" >&2;} 16595 { (exit 1); exit 1; }; } 16596 fi 16597 fi 16598 16599cat >>confdefs.h <<\EOF 16600#define OPT_SELECT_REGEX 1 16601EOF 16602 16603fi 16604 16605echo "$as_me:16605: checking if you want support for right-scrollbar" >&5 16606echo $ECHO_N "checking if you want support for right-scrollbar... $ECHO_C" >&6 16607 16608# Check whether --enable-rightbar or --disable-rightbar was given. 16609if test "${enable_rightbar+set}" = set; then 16610 enableval="$enable_rightbar" 16611 test "$enableval" != no && enableval=yes 16612 if test "$enableval" != "yes" ; then 16613 enable_rightbar=no 16614 else 16615 enable_rightbar=yes 16616 fi 16617else 16618 enableval=yes 16619 enable_rightbar=yes 16620 16621fi; 16622echo "$as_me:16622: result: $enable_rightbar" >&5 16623echo "${ECHO_T}$enable_rightbar" >&6 16624if test "$enable_rightbar" = yes ; then 16625 16626cat >>confdefs.h <<\EOF 16627#define SCROLLBAR_RIGHT 1 16628EOF 16629 16630fi 16631 16632echo "$as_me:16632: checking if you want check for redundant name-change" >&5 16633echo $ECHO_N "checking if you want check for redundant name-change... $ECHO_C" >&6 16634 16635# Check whether --enable-samename or --disable-samename was given. 16636if test "${enable_samename+set}" = set; then 16637 enableval="$enable_samename" 16638 test "$enableval" != no && enableval=yes 16639 if test "$enableval" != "yes" ; then 16640 enable_samename=no 16641 else 16642 enable_samename=yes 16643 fi 16644else 16645 enableval=yes 16646 enable_samename=yes 16647 16648fi; 16649echo "$as_me:16649: result: $enable_samename" >&5 16650echo "${ECHO_T}$enable_samename" >&6 16651test "$enable_samename" = no && 16652cat >>confdefs.h <<\EOF 16653#define OPT_SAME_NAME 0 16654EOF 16655 16656echo "$as_me:16656: checking if you want support for selection-actions" >&5 16657echo $ECHO_N "checking if you want support for selection-actions... $ECHO_C" >&6 16658 16659# Check whether --enable-selection-ops or --disable-selection-ops was given. 16660if test "${enable_selection_ops+set}" = set; then 16661 enableval="$enable_selection_ops" 16662 test "$enableval" != no && enableval=yes 16663 if test "$enableval" != "yes" ; then 16664 enable_selection_ops=no 16665 else 16666 enable_selection_ops=yes 16667 fi 16668else 16669 enableval=yes 16670 enable_selection_ops=yes 16671 16672fi; 16673echo "$as_me:16673: result: $enable_selection_ops" >&5 16674echo "${ECHO_T}$enable_selection_ops" >&6 16675test "$enable_selection_ops" = no && 16676cat >>confdefs.h <<\EOF 16677#define OPT_SELECTION_OPS 0 16678EOF 16679 16680echo "$as_me:16680: checking if you want support for session management" >&5 16681echo $ECHO_N "checking if you want support for session management... $ECHO_C" >&6 16682 16683# Check whether --enable-session-mgt or --disable-session-mgt was given. 16684if test "${enable_session_mgt+set}" = set; then 16685 enableval="$enable_session_mgt" 16686 test "$enableval" != no && enableval=yes 16687 if test "$enableval" != "yes" ; then 16688 enable_session_mgt=no 16689 else 16690 enable_session_mgt=yes 16691 fi 16692else 16693 enableval=yes 16694 enable_session_mgt=yes 16695 16696fi; 16697echo "$as_me:16697: result: $enable_session_mgt" >&5 16698echo "${ECHO_T}$enable_session_mgt" >&6 16699test "$enable_session_mgt" = no && 16700cat >>confdefs.h <<\EOF 16701#define OPT_SESSION_MGT 0 16702EOF 16703 16704echo "$as_me:16704: checking if you want to use termcap function-keys" >&5 16705echo $ECHO_N "checking if you want to use termcap function-keys... $ECHO_C" >&6 16706 16707# Check whether --enable-tcap-fkeys or --disable-tcap-fkeys was given. 16708if test "${enable_tcap_fkeys+set}" = set; then 16709 enableval="$enable_tcap_fkeys" 16710 test "$enableval" != no && enableval=yes 16711 if test "$enableval" != "yes" ; then 16712 enable_tcap_fkeys=no 16713 else 16714 enable_tcap_fkeys=yes 16715 fi 16716else 16717 enableval=yes 16718 enable_tcap_fkeys=yes 16719 16720fi; 16721echo "$as_me:16721: result: $enable_tcap_fkeys" >&5 16722echo "${ECHO_T}$enable_tcap_fkeys" >&6 16723test "$enable_tcap_fkeys" = yes && 16724cat >>confdefs.h <<\EOF 16725#define OPT_TCAP_FKEYS 1 16726EOF 16727 16728echo "$as_me:16728: checking if you want to use termcap-query/report" >&5 16729echo $ECHO_N "checking if you want to use termcap-query/report... $ECHO_C" >&6 16730 16731# Check whether --enable-tcap-query or --disable-tcap-query was given. 16732if test "${enable_tcap_query+set}" = set; then 16733 enableval="$enable_tcap_query" 16734 test "$enableval" != no && enableval=yes 16735 if test "$enableval" != "yes" ; then 16736 enable_tcap_query=no 16737 else 16738 enable_tcap_query=yes 16739 fi 16740else 16741 enableval=yes 16742 enable_tcap_query=yes 16743 16744fi; 16745echo "$as_me:16745: result: $enable_tcap_query" >&5 16746echo "${ECHO_T}$enable_tcap_query" >&6 16747test "$enable_tcap_query" = yes && 16748cat >>confdefs.h <<\EOF 16749#define OPT_TCAP_QUERY 1 16750EOF 16751 16752echo "$as_me:16752: checking if you want support for tek4014" >&5 16753echo $ECHO_N "checking if you want support for tek4014... $ECHO_C" >&6 16754 16755# Check whether --enable-tek4014 or --disable-tek4014 was given. 16756if test "${enable_tek4014+set}" = set; then 16757 enableval="$enable_tek4014" 16758 test "$enableval" != no && enableval=yes 16759 if test "$enableval" != "yes" ; then 16760 enable_tek4014=no 16761 else 16762 enable_tek4014=yes 16763 fi 16764else 16765 enableval=yes 16766 enable_tek4014=yes 16767 16768fi; 16769echo "$as_me:16769: result: $enable_tek4014" >&5 16770echo "${ECHO_T}$enable_tek4014" >&6 16771if test "$enable_tek4014" = no ; then 16772 16773cat >>confdefs.h <<\EOF 16774#define OPT_TEK4014 0 16775EOF 16776 16777else 16778 EXTRAHDRS="$EXTRAHDRS Tekparse.h" 16779 EXTRASRCS="$EXTRASRCS TekPrsTbl.c Tekproc.c" 16780 EXTRAOBJS="$EXTRAOBJS TekPrsTbl.o Tekproc.o" 16781fi 16782 16783echo "$as_me:16783: checking if you want pulldown menus with a toolbar" >&5 16784echo $ECHO_N "checking if you want pulldown menus with a toolbar... $ECHO_C" >&6 16785 16786# Check whether --enable-toolbar or --disable-toolbar was given. 16787if test "${enable_toolbar+set}" = set; then 16788 enableval="$enable_toolbar" 16789 test "$enableval" != yes && enableval=no 16790 if test "$enableval" != "no" ; then 16791 enable_toolbar=yes 16792 else 16793 enable_toolbar=no 16794 fi 16795else 16796 enableval=no 16797 enable_toolbar=no 16798 16799fi; 16800echo "$as_me:16800: result: $enable_toolbar" >&5 16801echo "${ECHO_T}$enable_toolbar" >&6 16802if test "$enable_toolbar" = yes ; then 16803 16804cat >>confdefs.h <<\EOF 16805#define OPT_TOOLBAR 1 16806EOF 16807 16808fi 16809 16810echo "$as_me:16810: checking if you want VT52 emulation" >&5 16811echo $ECHO_N "checking if you want VT52 emulation... $ECHO_C" >&6 16812 16813# Check whether --enable-vt52 or --disable-vt52 was given. 16814if test "${enable_vt52+set}" = set; then 16815 enableval="$enable_vt52" 16816 test "$enableval" != no && enableval=yes 16817 if test "$enableval" != "yes" ; then 16818 enable_vt52=no 16819 else 16820 enable_vt52=yes 16821 fi 16822else 16823 enableval=yes 16824 enable_vt52=yes 16825 16826fi; 16827echo "$as_me:16827: result: $enable_vt52" >&5 16828echo "${ECHO_T}$enable_vt52" >&6 16829test "$enable_vt52" = no && 16830cat >>confdefs.h <<\EOF 16831#define OPT_VT52_MODE 0 16832EOF 16833 16834echo "$as_me:16834: checking if you want wide-character support" >&5 16835echo $ECHO_N "checking if you want wide-character support... $ECHO_C" >&6 16836 16837# Check whether --enable-wide-chars or --disable-wide-chars was given. 16838if test "${enable_wide_chars+set}" = set; then 16839 enableval="$enable_wide_chars" 16840 test "$enableval" != no && enableval=yes 16841 if test "$enableval" != "yes" ; then 16842 enable_wchar=no 16843 else 16844 enable_wchar=yes 16845 fi 16846else 16847 enableval=yes 16848 enable_wchar=yes 16849 16850fi; 16851echo "$as_me:16851: result: $enable_wchar" >&5 16852echo "${ECHO_T}$enable_wchar" >&6 16853 16854echo "$as_me:16854: checking if you want only 16-bit character support" >&5 16855echo $ECHO_N "checking if you want only 16-bit character support... $ECHO_C" >&6 16856 16857# Check whether --enable-16bit-chars or --disable-16bit-chars was given. 16858if test "${enable_16bit_chars+set}" = set; then 16859 enableval="$enable_16bit_chars" 16860 test "$enableval" != yes && enableval=no 16861 if test "$enableval" != "no" ; then 16862 enable_16bit_chars=yes 16863 else 16864 enable_16bit_chars=no 16865 fi 16866else 16867 enableval=no 16868 enable_16bit_chars=no 16869 16870fi; 16871echo "$as_me:16871: result: $enable_16bit_chars" >&5 16872echo "${ECHO_T}$enable_16bit_chars" >&6 16873 16874if test "$enable_16bit_chars" = yes ; then 16875 16876cat >>confdefs.h <<\EOF 16877#define OPT_WIDER_ICHAR 0 16878EOF 16879 16880 enable_wchar=yes 16881fi 16882 16883if test "$enable_wchar" = yes ; then 16884 16885echo "$as_me:16885: checking if you want to use mini-luit/Latin9 built-in support" >&5 16886echo $ECHO_N "checking if you want to use mini-luit/Latin9 built-in support... $ECHO_C" >&6 16887 16888# Check whether --enable-mini-luit or --disable-mini-luit was given. 16889if test "${enable_mini_luit+set}" = set; then 16890 enableval="$enable_mini_luit" 16891 test "$enableval" != yes && enableval=no 16892 if test "$enableval" != "no" ; then 16893 enable_mini_luit=yes 16894 else 16895 enable_mini_luit=no 16896 fi 16897else 16898 enableval=no 16899 enable_mini_luit=no 16900 16901fi; 16902echo "$as_me:16902: result: $enable_mini_luit" >&5 16903echo "${ECHO_T}$enable_mini_luit" >&6 16904if test "$enable_mini_luit" = yes ; then 16905 16906cat >>confdefs.h <<\EOF 16907#define OPT_MINI_LUIT 1 16908EOF 16909 16910fi 16911 16912echo "$as_me:16912: checking if you want to use luit" >&5 16913echo $ECHO_N "checking if you want to use luit... $ECHO_C" >&6 16914 16915# Check whether --enable-luit or --disable-luit was given. 16916if test "${enable_luit+set}" = set; then 16917 enableval="$enable_luit" 16918 test "$enableval" != no && enableval=yes 16919 if test "$enableval" != "yes" ; then 16920 enable_luit=no 16921 else 16922 enable_luit=yes 16923 fi 16924else 16925 enableval=yes 16926 enable_luit=yes 16927 16928fi; 16929echo "$as_me:16929: result: $enable_luit" >&5 16930echo "${ECHO_T}$enable_luit" >&6 16931if test "$enable_luit" = yes ; then 16932 16933cat >>confdefs.h <<\EOF 16934#define OPT_LUIT_PROG 1 16935EOF 16936 16937test -z "$LUIT" && LUIT=xterm-filter 16938for ac_prog in $LUIT xterm-filter bluit luit 16939do 16940 # Extract the first word of "$ac_prog", so it can be a program name with args. 16941set dummy $ac_prog; ac_word=$2 16942echo "$as_me:16942: checking for $ac_word" >&5 16943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 16944if test "${ac_cv_path_LUIT+set}" = set; then 16945 echo $ECHO_N "(cached) $ECHO_C" >&6 16946else 16947 case $LUIT in 16948 [\\/]* | ?:[\\/]*) 16949 ac_cv_path_LUIT="$LUIT" # Let the user override the test with a path. 16950 ;; 16951 *) 16952 ac_save_IFS=$IFS; IFS=$ac_path_separator 16953ac_dummy="$PATH" 16954for ac_dir in $ac_dummy; do 16955 IFS=$ac_save_IFS 16956 test -z "$ac_dir" && ac_dir=. 16957 if $as_executable_p "$ac_dir/$ac_word"; then 16958 ac_cv_path_LUIT="$ac_dir/$ac_word" 16959 echo "$as_me:16959: found $ac_dir/$ac_word" >&5 16960 break 16961fi 16962done 16963 16964 ;; 16965esac 16966fi 16967LUIT=$ac_cv_path_LUIT 16968 16969if test -n "$LUIT"; then 16970 echo "$as_me:16970: result: $LUIT" >&5 16971echo "${ECHO_T}$LUIT" >&6 16972else 16973 echo "$as_me:16973: result: no" >&5 16974echo "${ECHO_T}no" >&6 16975fi 16976 16977 test -n "$LUIT" && break 16978done 16979test -n "$LUIT" || LUIT="$LUIT" 16980 16981cf_path_prog="" 16982cf_path_args="" 16983IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" 16984for cf_temp in $ac_cv_path_LUIT 16985do 16986 if test -z "$cf_path_prog" ; then 16987 if test "$with_full_paths" = yes ; then 16988 16989if test "x$prefix" != xNONE; then 16990 cf_path_syntax="$prefix" 16991else 16992 cf_path_syntax="$ac_default_prefix" 16993fi 16994 16995case ".$cf_temp" in #(vi 16996.\$\(*\)*|.\'*\'*) #(vi 16997 ;; 16998..|./*|.\\*) #(vi 16999 ;; 17000.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 17001 ;; 17002.\${*prefix}*|.\${*dir}*) #(vi 17003 eval cf_temp="$cf_temp" 17004 case ".$cf_temp" in #(vi 17005 .NONE/*) 17006 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%` 17007 ;; 17008 esac 17009 ;; #(vi 17010.no|.NONE/*) 17011 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%` 17012 ;; 17013*) 17014 break 17015 ;; 17016esac 17017 17018 cf_path_prog="$cf_temp" 17019 else 17020 cf_path_prog="`basename $cf_temp`" 17021 fi 17022 elif test -z "$cf_path_args" ; then 17023 cf_path_args="$cf_temp" 17024 else 17025 cf_path_args="$cf_path_args $cf_temp" 17026 fi 17027done 17028IFS="$cf_save_ifs" 17029 17030if test -n "$cf_path_prog" ; then 17031 17032echo "${as_me:-configure}:17032: testing defining path for ${cf_path_prog} ..." 1>&5 17033 17034cat >>confdefs.h <<EOF 17035#define LUIT_PATH "$cf_path_prog" 17036EOF 17037 17038 test -n "$cf_path_args" && 17039cat >>confdefs.h <<EOF 17040#define LUIT_ARGS "$cf_path_args" 17041EOF 17042 17043fi 17044 17045fi 17046 17047cat >>confdefs.h <<\EOF 17048#define OPT_WIDE_CHARS 1 17049EOF 17050 17051 EXTRAHDRS="$EXTRAHDRS charclass.h precompose.h wcwidth.h" 17052 EXTRASRCS="$EXTRASRCS charclass.c precompose.c wcwidth.c" 17053 EXTRAOBJS="$EXTRAOBJS charclass.o precompose.o wcwidth.o" 17054fi 17055 17056echo "$as_me:17056: checking if you want dynamic-abbreviation support" >&5 17057echo $ECHO_N "checking if you want dynamic-abbreviation support... $ECHO_C" >&6 17058 17059# Check whether --enable-dabbrev or --disable-dabbrev was given. 17060if test "${enable_dabbrev+set}" = set; then 17061 enableval="$enable_dabbrev" 17062 test "$enableval" != yes && enableval=no 17063 if test "$enableval" != "no" ; then 17064 enable_dabbrev=yes 17065 else 17066 enable_dabbrev=no 17067 fi 17068else 17069 enableval=no 17070 enable_dabbrev=no 17071 17072fi; 17073echo "$as_me:17073: result: $enable_dabbrev" >&5 17074echo "${ECHO_T}$enable_dabbrev" >&6 17075if test "$enable_dabbrev" = yes ; then 17076 17077cat >>confdefs.h <<\EOF 17078#define OPT_DABBREV 1 17079EOF 17080 17081fi 17082 17083echo "$as_me:17083: checking if you want DECterm Locator support" >&5 17084echo $ECHO_N "checking if you want DECterm Locator support... $ECHO_C" >&6 17085 17086# Check whether --enable-dec-locator or --disable-dec-locator was given. 17087if test "${enable_dec_locator+set}" = set; then 17088 enableval="$enable_dec_locator" 17089 test "$enableval" != yes && enableval=no 17090 if test "$enableval" != "no" ; then 17091 enable_dec_locator=yes 17092 else 17093 enable_dec_locator=no 17094 fi 17095else 17096 enableval=no 17097 enable_dec_locator=no 17098 17099fi; 17100echo "$as_me:17100: result: $enable_dec_locator" >&5 17101echo "${ECHO_T}$enable_dec_locator" >&6 17102if test "$enable_dec_locator" = yes ; then 17103 17104cat >>confdefs.h <<\EOF 17105#define OPT_DEC_LOCATOR 1 17106EOF 17107 17108fi 17109 17110echo "$as_me:17110: checking if you want sixel graphics support" >&5 17111echo $ECHO_N "checking if you want sixel graphics support... $ECHO_C" >&6 17112 17113# Check whether --enable-sixel-graphics or --disable-sixel-graphics was given. 17114if test "${enable_sixel_graphics+set}" = set; then 17115 enableval="$enable_sixel_graphics" 17116 test "$enableval" != yes && enableval=no 17117 if test "$enableval" != "no" ; then 17118 enable_sixel_graphics=yes 17119 else 17120 enable_sixel_graphics=no 17121 fi 17122else 17123 enableval=no 17124 enable_sixel_graphics=no 17125 17126fi; 17127echo "$as_me:17127: result: $enable_sixel_graphics" >&5 17128echo "${ECHO_T}$enable_sixel_graphics" >&6 17129if test "$enable_sixel_graphics" = yes ; then 17130 17131cat >>confdefs.h <<\EOF 17132#define OPT_SIXEL_GRAPHICS 1 17133EOF 17134 17135 EXTRAHDRS="$EXTRAHDRS graphics.h" 17136 EXTRASRCS="$EXTRASRCS graphics.c" 17137 EXTRAOBJS="$EXTRAOBJS graphics.o" 17138fi 17139 17140echo "$as_me:17140: checking if you want VT420 rectangle support" >&5 17141echo $ECHO_N "checking if you want VT420 rectangle support... $ECHO_C" >&6 17142 17143# Check whether --enable-rectangles or --disable-rectangles was given. 17144if test "${enable_rectangles+set}" = set; then 17145 enableval="$enable_rectangles" 17146 test "$enableval" != no && enableval=yes 17147 if test "$enableval" != "yes" ; then 17148 enable_rectangles=no 17149 else 17150 enable_rectangles=yes 17151 fi 17152else 17153 enableval=yes 17154 enable_rectangles=yes 17155 17156fi; 17157echo "$as_me:17157: result: $enable_rectangles" >&5 17158echo "${ECHO_T}$enable_rectangles" >&6 17159if test "$enable_rectangles" = yes ; then 17160 17161cat >>confdefs.h <<\EOF 17162#define OPT_DEC_RECTOPS 1 17163EOF 17164 17165fi 17166 17167echo "$as_me:17167: checking if you want -ziconbeep option" >&5 17168echo $ECHO_N "checking if you want -ziconbeep option... $ECHO_C" >&6 17169 17170# Check whether --enable-ziconbeep or --disable-ziconbeep was given. 17171if test "${enable_ziconbeep+set}" = set; then 17172 enableval="$enable_ziconbeep" 17173 test "$enableval" != no && enableval=yes 17174 if test "$enableval" != "yes" ; then 17175 enable_ziconbeep=no 17176 else 17177 enable_ziconbeep=yes 17178 fi 17179else 17180 enableval=yes 17181 enable_ziconbeep=yes 17182 17183fi; 17184echo "$as_me:17184: result: $enable_ziconbeep" >&5 17185echo "${ECHO_T}$enable_ziconbeep" >&6 17186test "$enable_ziconbeep" = no && 17187cat >>confdefs.h <<\EOF 17188#define OPT_ZICONBEEP 0 17189EOF 17190 17191############################################################################### 17192 17193echo "$as_me:17193: checking if you want debugging traces" >&5 17194echo $ECHO_N "checking if you want debugging traces... $ECHO_C" >&6 17195 17196# Check whether --enable-trace or --disable-trace was given. 17197if test "${enable_trace+set}" = set; then 17198 enableval="$enable_trace" 17199 test "$enableval" != yes && enableval=no 17200 if test "$enableval" != "no" ; then 17201 enable_trace=yes 17202 else 17203 enable_trace=no 17204 fi 17205else 17206 enableval=no 17207 enable_trace=no 17208 17209fi; 17210echo "$as_me:17210: result: $enable_trace" >&5 17211echo "${ECHO_T}$enable_trace" >&6 17212if test "$enable_trace" = yes ; then 17213 17214cat >>confdefs.h <<\EOF 17215#define OPT_TRACE 1 17216EOF 17217 17218 EXTRASRCS="$EXTRASRCS trace.c" 17219 EXTRAOBJS="$EXTRAOBJS trace.o" 17220fi 17221 17222echo "$as_me:17222: checking if you want to use dmalloc for testing" >&5 17223echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6 17224 17225# Check whether --with-dmalloc or --without-dmalloc was given. 17226if test "${with_dmalloc+set}" = set; then 17227 withval="$with_dmalloc" 17228 17229cat >>confdefs.h <<EOF 17230#define USE_DMALLOC 1 17231EOF 17232 17233 : ${with_cflags:=-g} 17234 : ${with_no_leaks:=yes} 17235 with_dmalloc=yes 17236else 17237 with_dmalloc= 17238fi; 17239echo "$as_me:17239: result: ${with_dmalloc:-no}" >&5 17240echo "${ECHO_T}${with_dmalloc:-no}" >&6 17241 17242case .$with_cflags in #(vi 17243.*-g*) 17244 case .$CFLAGS in #(vi 17245 .*-g*) #(vi 17246 ;; 17247 *) 17248 17249cf_fix_cppflags=no 17250cf_new_cflags= 17251cf_new_cppflags= 17252cf_new_extra_cppflags= 17253 17254for cf_add_cflags in -g 17255do 17256case $cf_fix_cppflags in 17257no) 17258 case $cf_add_cflags in #(vi 17259 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 17260 case $cf_add_cflags in 17261 -D*) 17262 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 17263 17264 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 17265 && test -z "${cf_tst_cflags}" \ 17266 && cf_fix_cppflags=yes 17267 17268 if test $cf_fix_cppflags = yes ; then 17269 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 17270 continue 17271 elif test "${cf_tst_cflags}" = "\"'" ; then 17272 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 17273 continue 17274 fi 17275 ;; 17276 esac 17277 case "$CPPFLAGS" in 17278 *$cf_add_cflags) #(vi 17279 ;; 17280 *) #(vi 17281 case $cf_add_cflags in #(vi 17282 -D*) 17283 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 17284 17285CPPFLAGS=`echo "$CPPFLAGS" | \ 17286 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 17287 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 17288 17289 ;; 17290 esac 17291 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 17292 ;; 17293 esac 17294 ;; 17295 *) 17296 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 17297 ;; 17298 esac 17299 ;; 17300yes) 17301 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 17302 17303 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 17304 17305 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 17306 && test -z "${cf_tst_cflags}" \ 17307 && cf_fix_cppflags=no 17308 ;; 17309esac 17310done 17311 17312if test -n "$cf_new_cflags" ; then 17313 17314 CFLAGS="$CFLAGS $cf_new_cflags" 17315fi 17316 17317if test -n "$cf_new_cppflags" ; then 17318 17319 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 17320fi 17321 17322if test -n "$cf_new_extra_cppflags" ; then 17323 17324 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 17325fi 17326 17327 ;; 17328 esac 17329 ;; 17330esac 17331 17332if test "$with_dmalloc" = yes ; then 17333 echo "$as_me:17333: checking for dmalloc.h" >&5 17334echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6 17335if test "${ac_cv_header_dmalloc_h+set}" = set; then 17336 echo $ECHO_N "(cached) $ECHO_C" >&6 17337else 17338 cat >conftest.$ac_ext <<_ACEOF 17339#line 17339 "configure" 17340#include "confdefs.h" 17341#include <dmalloc.h> 17342_ACEOF 17343if { (eval echo "$as_me:17343: \"$ac_cpp conftest.$ac_ext\"") >&5 17344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 17345 ac_status=$? 17346 egrep -v '^ *\+' conftest.er1 >conftest.err 17347 rm -f conftest.er1 17348 cat conftest.err >&5 17349 echo "$as_me:17349: \$? = $ac_status" >&5 17350 (exit $ac_status); } >/dev/null; then 17351 if test -s conftest.err; then 17352 ac_cpp_err=$ac_c_preproc_warn_flag 17353 else 17354 ac_cpp_err= 17355 fi 17356else 17357 ac_cpp_err=yes 17358fi 17359if test -z "$ac_cpp_err"; then 17360 ac_cv_header_dmalloc_h=yes 17361else 17362 echo "$as_me: failed program was:" >&5 17363 cat conftest.$ac_ext >&5 17364 ac_cv_header_dmalloc_h=no 17365fi 17366rm -f conftest.err conftest.$ac_ext 17367fi 17368echo "$as_me:17368: result: $ac_cv_header_dmalloc_h" >&5 17369echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6 17370if test $ac_cv_header_dmalloc_h = yes; then 17371 17372echo "$as_me:17372: checking for dmalloc_debug in -ldmalloc" >&5 17373echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6 17374if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then 17375 echo $ECHO_N "(cached) $ECHO_C" >&6 17376else 17377 ac_check_lib_save_LIBS=$LIBS 17378LIBS="-ldmalloc $LIBS" 17379cat >conftest.$ac_ext <<_ACEOF 17380#line 17380 "configure" 17381#include "confdefs.h" 17382 17383/* Override any gcc2 internal prototype to avoid an error. */ 17384#ifdef __cplusplus 17385extern "C" 17386#endif 17387/* We use char because int might match the return type of a gcc2 17388 builtin and then its argument prototype would still apply. */ 17389char dmalloc_debug (); 17390int 17391main () 17392{ 17393dmalloc_debug (); 17394 ; 17395 return 0; 17396} 17397_ACEOF 17398rm -f conftest.$ac_objext conftest$ac_exeext 17399if { (eval echo "$as_me:17399: \"$ac_link\"") >&5 17400 (eval $ac_link) 2>&5 17401 ac_status=$? 17402 echo "$as_me:17402: \$? = $ac_status" >&5 17403 (exit $ac_status); } && 17404 { ac_try='test -s conftest$ac_exeext' 17405 { (eval echo "$as_me:17405: \"$ac_try\"") >&5 17406 (eval $ac_try) 2>&5 17407 ac_status=$? 17408 echo "$as_me:17408: \$? = $ac_status" >&5 17409 (exit $ac_status); }; }; then 17410 ac_cv_lib_dmalloc_dmalloc_debug=yes 17411else 17412 echo "$as_me: failed program was:" >&5 17413cat conftest.$ac_ext >&5 17414ac_cv_lib_dmalloc_dmalloc_debug=no 17415fi 17416rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17417LIBS=$ac_check_lib_save_LIBS 17418fi 17419echo "$as_me:17419: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5 17420echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6 17421if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then 17422 cat >>confdefs.h <<EOF 17423#define HAVE_LIBDMALLOC 1 17424EOF 17425 17426 LIBS="-ldmalloc $LIBS" 17427 17428fi 17429 17430fi 17431 17432fi 17433 17434echo "$as_me:17434: checking if you want to use dbmalloc for testing" >&5 17435echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6 17436 17437# Check whether --with-dbmalloc or --without-dbmalloc was given. 17438if test "${with_dbmalloc+set}" = set; then 17439 withval="$with_dbmalloc" 17440 17441cat >>confdefs.h <<EOF 17442#define USE_DBMALLOC 1 17443EOF 17444 17445 : ${with_cflags:=-g} 17446 : ${with_no_leaks:=yes} 17447 with_dbmalloc=yes 17448else 17449 with_dbmalloc= 17450fi; 17451echo "$as_me:17451: result: ${with_dbmalloc:-no}" >&5 17452echo "${ECHO_T}${with_dbmalloc:-no}" >&6 17453 17454case .$with_cflags in #(vi 17455.*-g*) 17456 case .$CFLAGS in #(vi 17457 .*-g*) #(vi 17458 ;; 17459 *) 17460 17461cf_fix_cppflags=no 17462cf_new_cflags= 17463cf_new_cppflags= 17464cf_new_extra_cppflags= 17465 17466for cf_add_cflags in -g 17467do 17468case $cf_fix_cppflags in 17469no) 17470 case $cf_add_cflags in #(vi 17471 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 17472 case $cf_add_cflags in 17473 -D*) 17474 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 17475 17476 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 17477 && test -z "${cf_tst_cflags}" \ 17478 && cf_fix_cppflags=yes 17479 17480 if test $cf_fix_cppflags = yes ; then 17481 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 17482 continue 17483 elif test "${cf_tst_cflags}" = "\"'" ; then 17484 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 17485 continue 17486 fi 17487 ;; 17488 esac 17489 case "$CPPFLAGS" in 17490 *$cf_add_cflags) #(vi 17491 ;; 17492 *) #(vi 17493 case $cf_add_cflags in #(vi 17494 -D*) 17495 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 17496 17497CPPFLAGS=`echo "$CPPFLAGS" | \ 17498 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 17499 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 17500 17501 ;; 17502 esac 17503 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 17504 ;; 17505 esac 17506 ;; 17507 *) 17508 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 17509 ;; 17510 esac 17511 ;; 17512yes) 17513 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 17514 17515 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 17516 17517 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 17518 && test -z "${cf_tst_cflags}" \ 17519 && cf_fix_cppflags=no 17520 ;; 17521esac 17522done 17523 17524if test -n "$cf_new_cflags" ; then 17525 17526 CFLAGS="$CFLAGS $cf_new_cflags" 17527fi 17528 17529if test -n "$cf_new_cppflags" ; then 17530 17531 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 17532fi 17533 17534if test -n "$cf_new_extra_cppflags" ; then 17535 17536 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 17537fi 17538 17539 ;; 17540 esac 17541 ;; 17542esac 17543 17544if test "$with_dbmalloc" = yes ; then 17545 echo "$as_me:17545: checking for dbmalloc.h" >&5 17546echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6 17547if test "${ac_cv_header_dbmalloc_h+set}" = set; then 17548 echo $ECHO_N "(cached) $ECHO_C" >&6 17549else 17550 cat >conftest.$ac_ext <<_ACEOF 17551#line 17551 "configure" 17552#include "confdefs.h" 17553#include <dbmalloc.h> 17554_ACEOF 17555if { (eval echo "$as_me:17555: \"$ac_cpp conftest.$ac_ext\"") >&5 17556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 17557 ac_status=$? 17558 egrep -v '^ *\+' conftest.er1 >conftest.err 17559 rm -f conftest.er1 17560 cat conftest.err >&5 17561 echo "$as_me:17561: \$? = $ac_status" >&5 17562 (exit $ac_status); } >/dev/null; then 17563 if test -s conftest.err; then 17564 ac_cpp_err=$ac_c_preproc_warn_flag 17565 else 17566 ac_cpp_err= 17567 fi 17568else 17569 ac_cpp_err=yes 17570fi 17571if test -z "$ac_cpp_err"; then 17572 ac_cv_header_dbmalloc_h=yes 17573else 17574 echo "$as_me: failed program was:" >&5 17575 cat conftest.$ac_ext >&5 17576 ac_cv_header_dbmalloc_h=no 17577fi 17578rm -f conftest.err conftest.$ac_ext 17579fi 17580echo "$as_me:17580: result: $ac_cv_header_dbmalloc_h" >&5 17581echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6 17582if test $ac_cv_header_dbmalloc_h = yes; then 17583 17584echo "$as_me:17584: checking for debug_malloc in -ldbmalloc" >&5 17585echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6 17586if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then 17587 echo $ECHO_N "(cached) $ECHO_C" >&6 17588else 17589 ac_check_lib_save_LIBS=$LIBS 17590LIBS="-ldbmalloc $LIBS" 17591cat >conftest.$ac_ext <<_ACEOF 17592#line 17592 "configure" 17593#include "confdefs.h" 17594 17595/* Override any gcc2 internal prototype to avoid an error. */ 17596#ifdef __cplusplus 17597extern "C" 17598#endif 17599/* We use char because int might match the return type of a gcc2 17600 builtin and then its argument prototype would still apply. */ 17601char debug_malloc (); 17602int 17603main () 17604{ 17605debug_malloc (); 17606 ; 17607 return 0; 17608} 17609_ACEOF 17610rm -f conftest.$ac_objext conftest$ac_exeext 17611if { (eval echo "$as_me:17611: \"$ac_link\"") >&5 17612 (eval $ac_link) 2>&5 17613 ac_status=$? 17614 echo "$as_me:17614: \$? = $ac_status" >&5 17615 (exit $ac_status); } && 17616 { ac_try='test -s conftest$ac_exeext' 17617 { (eval echo "$as_me:17617: \"$ac_try\"") >&5 17618 (eval $ac_try) 2>&5 17619 ac_status=$? 17620 echo "$as_me:17620: \$? = $ac_status" >&5 17621 (exit $ac_status); }; }; then 17622 ac_cv_lib_dbmalloc_debug_malloc=yes 17623else 17624 echo "$as_me: failed program was:" >&5 17625cat conftest.$ac_ext >&5 17626ac_cv_lib_dbmalloc_debug_malloc=no 17627fi 17628rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17629LIBS=$ac_check_lib_save_LIBS 17630fi 17631echo "$as_me:17631: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5 17632echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6 17633if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then 17634 cat >>confdefs.h <<EOF 17635#define HAVE_LIBDBMALLOC 1 17636EOF 17637 17638 LIBS="-ldbmalloc $LIBS" 17639 17640fi 17641 17642fi 17643 17644fi 17645 17646echo "$as_me:17646: checking if you want to use valgrind for testing" >&5 17647echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6 17648 17649# Check whether --with-valgrind or --without-valgrind was given. 17650if test "${with_valgrind+set}" = set; then 17651 withval="$with_valgrind" 17652 17653cat >>confdefs.h <<EOF 17654#define USE_VALGRIND 1 17655EOF 17656 17657 : ${with_cflags:=-g} 17658 : ${with_no_leaks:=yes} 17659 with_valgrind=yes 17660else 17661 with_valgrind= 17662fi; 17663echo "$as_me:17663: result: ${with_valgrind:-no}" >&5 17664echo "${ECHO_T}${with_valgrind:-no}" >&6 17665 17666case .$with_cflags in #(vi 17667.*-g*) 17668 case .$CFLAGS in #(vi 17669 .*-g*) #(vi 17670 ;; 17671 *) 17672 17673cf_fix_cppflags=no 17674cf_new_cflags= 17675cf_new_cppflags= 17676cf_new_extra_cppflags= 17677 17678for cf_add_cflags in -g 17679do 17680case $cf_fix_cppflags in 17681no) 17682 case $cf_add_cflags in #(vi 17683 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 17684 case $cf_add_cflags in 17685 -D*) 17686 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 17687 17688 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 17689 && test -z "${cf_tst_cflags}" \ 17690 && cf_fix_cppflags=yes 17691 17692 if test $cf_fix_cppflags = yes ; then 17693 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 17694 continue 17695 elif test "${cf_tst_cflags}" = "\"'" ; then 17696 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 17697 continue 17698 fi 17699 ;; 17700 esac 17701 case "$CPPFLAGS" in 17702 *$cf_add_cflags) #(vi 17703 ;; 17704 *) #(vi 17705 case $cf_add_cflags in #(vi 17706 -D*) 17707 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 17708 17709CPPFLAGS=`echo "$CPPFLAGS" | \ 17710 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 17711 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 17712 17713 ;; 17714 esac 17715 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 17716 ;; 17717 esac 17718 ;; 17719 *) 17720 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 17721 ;; 17722 esac 17723 ;; 17724yes) 17725 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 17726 17727 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 17728 17729 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 17730 && test -z "${cf_tst_cflags}" \ 17731 && cf_fix_cppflags=no 17732 ;; 17733esac 17734done 17735 17736if test -n "$cf_new_cflags" ; then 17737 17738 CFLAGS="$CFLAGS $cf_new_cflags" 17739fi 17740 17741if test -n "$cf_new_cppflags" ; then 17742 17743 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 17744fi 17745 17746if test -n "$cf_new_extra_cppflags" ; then 17747 17748 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 17749fi 17750 17751 ;; 17752 esac 17753 ;; 17754esac 17755 17756echo "$as_me:17756: checking if you want to perform memory-leak testing" >&5 17757echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6 17758 17759# Check whether --enable-leaks or --disable-leaks was given. 17760if test "${enable_leaks+set}" = set; then 17761 enableval="$enable_leaks" 17762 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi 17763else 17764 : ${with_no_leaks:=no} 17765fi; 17766echo "$as_me:17766: result: $with_no_leaks" >&5 17767echo "${ECHO_T}$with_no_leaks" >&6 17768 17769if test "$with_no_leaks" = yes ; then 17770 17771cat >>confdefs.h <<\EOF 17772#define NO_LEAKS 1 17773EOF 17774 17775cat >>confdefs.h <<\EOF 17776#define YY_NO_LEAKS 1 17777EOF 17778 17779fi 17780 17781echo "$as_me:17781: checking if you want to see long compiling messages" >&5 17782echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6 17783 17784# Check whether --enable-echo or --disable-echo was given. 17785if test "${enable_echo+set}" = set; then 17786 enableval="$enable_echo" 17787 test "$enableval" != no && enableval=yes 17788 if test "$enableval" != "yes" ; then 17789 17790 ECHO_LT='--silent' 17791 ECHO_LD='@echo linking $@;' 17792 RULE_CC='@echo compiling $<' 17793 SHOW_CC='@echo compiling $@' 17794 ECHO_CC='@' 17795 17796 else 17797 17798 ECHO_LT='' 17799 ECHO_LD='' 17800 RULE_CC='' 17801 SHOW_CC='' 17802 ECHO_CC='' 17803 17804 fi 17805else 17806 enableval=yes 17807 17808 ECHO_LT='' 17809 ECHO_LD='' 17810 RULE_CC='' 17811 SHOW_CC='' 17812 ECHO_CC='' 17813 17814fi; 17815echo "$as_me:17815: result: $enableval" >&5 17816echo "${ECHO_T}$enableval" >&6 17817 17818echo "$as_me:17818: checking if you want magic cookie emulation" >&5 17819echo $ECHO_N "checking if you want magic cookie emulation... $ECHO_C" >&6 17820 17821# Check whether --enable-xmc-glitch or --disable-xmc-glitch was given. 17822if test "${enable_xmc_glitch+set}" = set; then 17823 enableval="$enable_xmc_glitch" 17824 test "$enableval" != yes && enableval=no 17825 if test "$enableval" != "no" ; then 17826 enable_xmc=yes 17827 else 17828 enable_xmc=no 17829 fi 17830else 17831 enableval=no 17832 enable_xmc=no 17833 17834fi; 17835echo "$as_me:17835: result: $enable_xmc" >&5 17836echo "${ECHO_T}$enable_xmc" >&6 17837if test "$enable_xmc" = yes ; then 17838 17839cat >>confdefs.h <<\EOF 17840#define OPT_XMC_GLITCH 1 17841EOF 17842 17843 EXTRASRCS="$EXTRASRCS testxmc.c" 17844 EXTRAOBJS="$EXTRAOBJS testxmc.o" 17845fi 17846 17847for ac_func in tigetstr 17848do 17849as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17850echo "$as_me:17850: checking for $ac_func" >&5 17851echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 17852if eval "test \"\${$as_ac_var+set}\" = set"; then 17853 echo $ECHO_N "(cached) $ECHO_C" >&6 17854else 17855 cat >conftest.$ac_ext <<_ACEOF 17856#line 17856 "configure" 17857#include "confdefs.h" 17858/* System header to define __stub macros and hopefully few prototypes, 17859 which can conflict with char $ac_func (); below. */ 17860#include <assert.h> 17861/* Override any gcc2 internal prototype to avoid an error. */ 17862#ifdef __cplusplus 17863extern "C" 17864#endif 17865/* We use char because int might match the return type of a gcc2 17866 builtin and then its argument prototype would still apply. */ 17867char $ac_func (); 17868char (*f) (); 17869 17870int 17871main () 17872{ 17873/* The GNU C library defines this for functions which it implements 17874 to always fail with ENOSYS. Some functions are actually named 17875 something starting with __ and the normal name is an alias. */ 17876#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17877choke me 17878#else 17879f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 17880#endif 17881 17882 ; 17883 return 0; 17884} 17885_ACEOF 17886rm -f conftest.$ac_objext conftest$ac_exeext 17887if { (eval echo "$as_me:17887: \"$ac_link\"") >&5 17888 (eval $ac_link) 2>&5 17889 ac_status=$? 17890 echo "$as_me:17890: \$? = $ac_status" >&5 17891 (exit $ac_status); } && 17892 { ac_try='test -s conftest$ac_exeext' 17893 { (eval echo "$as_me:17893: \"$ac_try\"") >&5 17894 (eval $ac_try) 2>&5 17895 ac_status=$? 17896 echo "$as_me:17896: \$? = $ac_status" >&5 17897 (exit $ac_status); }; }; then 17898 eval "$as_ac_var=yes" 17899else 17900 echo "$as_me: failed program was:" >&5 17901cat conftest.$ac_ext >&5 17902eval "$as_ac_var=no" 17903fi 17904rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17905fi 17906echo "$as_me:17906: result: `eval echo '${'$as_ac_var'}'`" >&5 17907echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 17908if test `eval echo '${'$as_ac_var'}'` = yes; then 17909 cat >>confdefs.h <<EOF 17910#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17911EOF 17912 17913fi 17914done 17915 17916if test -n "$cf_cv_lib_part_tgetent"; then 17917 17918for ac_func in use_extended_names 17919do 17920as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17921echo "$as_me:17921: checking for $ac_func" >&5 17922echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 17923if eval "test \"\${$as_ac_var+set}\" = set"; then 17924 echo $ECHO_N "(cached) $ECHO_C" >&6 17925else 17926 cat >conftest.$ac_ext <<_ACEOF 17927#line 17927 "configure" 17928#include "confdefs.h" 17929/* System header to define __stub macros and hopefully few prototypes, 17930 which can conflict with char $ac_func (); below. */ 17931#include <assert.h> 17932/* Override any gcc2 internal prototype to avoid an error. */ 17933#ifdef __cplusplus 17934extern "C" 17935#endif 17936/* We use char because int might match the return type of a gcc2 17937 builtin and then its argument prototype would still apply. */ 17938char $ac_func (); 17939char (*f) (); 17940 17941int 17942main () 17943{ 17944/* The GNU C library defines this for functions which it implements 17945 to always fail with ENOSYS. Some functions are actually named 17946 something starting with __ and the normal name is an alias. */ 17947#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17948choke me 17949#else 17950f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 17951#endif 17952 17953 ; 17954 return 0; 17955} 17956_ACEOF 17957rm -f conftest.$ac_objext conftest$ac_exeext 17958if { (eval echo "$as_me:17958: \"$ac_link\"") >&5 17959 (eval $ac_link) 2>&5 17960 ac_status=$? 17961 echo "$as_me:17961: \$? = $ac_status" >&5 17962 (exit $ac_status); } && 17963 { ac_try='test -s conftest$ac_exeext' 17964 { (eval echo "$as_me:17964: \"$ac_try\"") >&5 17965 (eval $ac_try) 2>&5 17966 ac_status=$? 17967 echo "$as_me:17967: \$? = $ac_status" >&5 17968 (exit $ac_status); }; }; then 17969 eval "$as_ac_var=yes" 17970else 17971 echo "$as_me: failed program was:" >&5 17972cat conftest.$ac_ext >&5 17973eval "$as_ac_var=no" 17974fi 17975rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17976fi 17977echo "$as_me:17977: result: `eval echo '${'$as_ac_var'}'`" >&5 17978echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 17979if test `eval echo '${'$as_ac_var'}'` = yes; then 17980 cat >>confdefs.h <<EOF 17981#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17982EOF 17983 17984fi 17985done 17986 17987fi 17988 17989if test -n "$GCC" ; then 17990echo "$as_me:17990: checking if you want to turn on gcc warnings" >&5 17991echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6 17992 17993# Check whether --enable-warnings or --disable-warnings was given. 17994if test "${enable_warnings+set}" = set; then 17995 enableval="$enable_warnings" 17996 test "$enableval" != yes && enableval=no 17997 if test "$enableval" != "no" ; then 17998 with_warnings=yes 17999 else 18000 with_warnings=no 18001 fi 18002else 18003 enableval=no 18004 with_warnings=no 18005 18006fi; 18007echo "$as_me:18007: result: $with_warnings" >&5 18008echo "${ECHO_T}$with_warnings" >&6 18009if test "$with_warnings" = yes 18010then 18011 18012if test "$GCC" = yes 18013then 18014cat > conftest.i <<EOF 18015#ifndef GCC_PRINTF 18016#define GCC_PRINTF 0 18017#endif 18018#ifndef GCC_SCANF 18019#define GCC_SCANF 0 18020#endif 18021#ifndef GCC_NORETURN 18022#define GCC_NORETURN /* nothing */ 18023#endif 18024#ifndef GCC_UNUSED 18025#define GCC_UNUSED /* nothing */ 18026#endif 18027EOF 18028if test "$GCC" = yes 18029then 18030 { echo "$as_me:18030: checking for $CC __attribute__ directives..." >&5 18031echo "$as_me: checking for $CC __attribute__ directives..." >&6;} 18032cat > conftest.$ac_ext <<EOF 18033#line 18033 "${as_me:-configure}" 18034#include "confdefs.h" 18035#include "conftest.h" 18036#include "conftest.i" 18037#if GCC_PRINTF 18038#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) 18039#else 18040#define GCC_PRINTFLIKE(fmt,var) /*nothing*/ 18041#endif 18042#if GCC_SCANF 18043#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) 18044#else 18045#define GCC_SCANFLIKE(fmt,var) /*nothing*/ 18046#endif 18047extern void wow(char *,...) GCC_SCANFLIKE(1,2); 18048extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN; 18049extern void foo(void) GCC_NORETURN; 18050int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; } 18051EOF 18052 cf_printf_attribute=no 18053 cf_scanf_attribute=no 18054 for cf_attribute in scanf printf unused noreturn 18055 do 18056 18057cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 18058 18059 cf_directive="__attribute__(($cf_attribute))" 18060 echo "checking for $CC $cf_directive" 1>&5 18061 18062 case $cf_attribute in #(vi 18063 printf) #(vi 18064 cf_printf_attribute=yes 18065 cat >conftest.h <<EOF 18066#define GCC_$cf_ATTRIBUTE 1 18067EOF 18068 ;; 18069 scanf) #(vi 18070 cf_scanf_attribute=yes 18071 cat >conftest.h <<EOF 18072#define GCC_$cf_ATTRIBUTE 1 18073EOF 18074 ;; 18075 *) #(vi 18076 cat >conftest.h <<EOF 18077#define GCC_$cf_ATTRIBUTE $cf_directive 18078EOF 18079 ;; 18080 esac 18081 18082 if { (eval echo "$as_me:18082: \"$ac_compile\"") >&5 18083 (eval $ac_compile) 2>&5 18084 ac_status=$? 18085 echo "$as_me:18085: \$? = $ac_status" >&5 18086 (exit $ac_status); }; then 18087 test -n "$verbose" && echo "$as_me:18087: result: ... $cf_attribute" >&5 18088echo "${ECHO_T}... $cf_attribute" >&6 18089 cat conftest.h >>confdefs.h 18090 case $cf_attribute in #(vi 18091 noreturn) #(vi 18092 18093cat >>confdefs.h <<EOF 18094#define GCC_NORETURN $cf_directive 18095EOF 18096 18097 ;; 18098 printf) #(vi 18099 cf_value='/* nothing */' 18100 if test "$cf_printf_attribute" != no ; then 18101 cf_value='__attribute__((format(printf,fmt,var)))' 18102 18103cat >>confdefs.h <<\EOF 18104#define GCC_PRINTF 1 18105EOF 18106 18107 fi 18108 18109cat >>confdefs.h <<EOF 18110#define GCC_PRINTFLIKE(fmt,var) $cf_value 18111EOF 18112 18113 ;; 18114 scanf) #(vi 18115 cf_value='/* nothing */' 18116 if test "$cf_scanf_attribute" != no ; then 18117 cf_value='__attribute__((format(scanf,fmt,var)))' 18118 18119cat >>confdefs.h <<\EOF 18120#define GCC_SCANF 1 18121EOF 18122 18123 fi 18124 18125cat >>confdefs.h <<EOF 18126#define GCC_SCANFLIKE(fmt,var) $cf_value 18127EOF 18128 18129 ;; 18130 unused) #(vi 18131 18132cat >>confdefs.h <<EOF 18133#define GCC_UNUSED $cf_directive 18134EOF 18135 18136 ;; 18137 esac 18138 fi 18139 done 18140else 18141 fgrep define conftest.i >>confdefs.h 18142fi 18143rm -rf conftest* 18144fi 18145 18146INTEL_COMPILER=no 18147 18148if test "$GCC" = yes ; then 18149 case $host_os in 18150 linux*|gnu*) 18151 echo "$as_me:18151: checking if this is really Intel C compiler" >&5 18152echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6 18153 cf_save_CFLAGS="$CFLAGS" 18154 CFLAGS="$CFLAGS -no-gcc" 18155 cat >conftest.$ac_ext <<_ACEOF 18156#line 18156 "configure" 18157#include "confdefs.h" 18158 18159int 18160main () 18161{ 18162 18163#ifdef __INTEL_COMPILER 18164#else 18165make an error 18166#endif 18167 18168 ; 18169 return 0; 18170} 18171_ACEOF 18172rm -f conftest.$ac_objext 18173if { (eval echo "$as_me:18173: \"$ac_compile\"") >&5 18174 (eval $ac_compile) 2>&5 18175 ac_status=$? 18176 echo "$as_me:18176: \$? = $ac_status" >&5 18177 (exit $ac_status); } && 18178 { ac_try='test -s conftest.$ac_objext' 18179 { (eval echo "$as_me:18179: \"$ac_try\"") >&5 18180 (eval $ac_try) 2>&5 18181 ac_status=$? 18182 echo "$as_me:18182: \$? = $ac_status" >&5 18183 (exit $ac_status); }; }; then 18184 INTEL_COMPILER=yes 18185cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc" 18186 18187else 18188 echo "$as_me: failed program was:" >&5 18189cat conftest.$ac_ext >&5 18190fi 18191rm -f conftest.$ac_objext conftest.$ac_ext 18192 CFLAGS="$cf_save_CFLAGS" 18193 echo "$as_me:18193: result: $INTEL_COMPILER" >&5 18194echo "${ECHO_T}$INTEL_COMPILER" >&6 18195 ;; 18196 esac 18197fi 18198 18199CLANG_COMPILER=no 18200 18201if test "$GCC" = yes ; then 18202 echo "$as_me:18202: checking if this is really Clang C compiler" >&5 18203echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6 18204 cf_save_CFLAGS="$CFLAGS" 18205 CFLAGS="$CFLAGS -Qunused-arguments" 18206 cat >conftest.$ac_ext <<_ACEOF 18207#line 18207 "configure" 18208#include "confdefs.h" 18209 18210int 18211main () 18212{ 18213 18214#ifdef __clang__ 18215#else 18216make an error 18217#endif 18218 18219 ; 18220 return 0; 18221} 18222_ACEOF 18223rm -f conftest.$ac_objext 18224if { (eval echo "$as_me:18224: \"$ac_compile\"") >&5 18225 (eval $ac_compile) 2>&5 18226 ac_status=$? 18227 echo "$as_me:18227: \$? = $ac_status" >&5 18228 (exit $ac_status); } && 18229 { ac_try='test -s conftest.$ac_objext' 18230 { (eval echo "$as_me:18230: \"$ac_try\"") >&5 18231 (eval $ac_try) 2>&5 18232 ac_status=$? 18233 echo "$as_me:18233: \$? = $ac_status" >&5 18234 (exit $ac_status); }; }; then 18235 CLANG_COMPILER=yes 18236cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments" 18237 18238else 18239 echo "$as_me: failed program was:" >&5 18240cat conftest.$ac_ext >&5 18241fi 18242rm -f conftest.$ac_objext conftest.$ac_ext 18243 CFLAGS="$cf_save_CFLAGS" 18244 echo "$as_me:18244: result: $CLANG_COMPILER" >&5 18245echo "${ECHO_T}$CLANG_COMPILER" >&6 18246fi 18247 18248cat > conftest.$ac_ext <<EOF 18249#line 18249 "${as_me:-configure}" 18250int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; } 18251EOF 18252 18253if test "$INTEL_COMPILER" = yes 18254then 18255# The "-wdXXX" options suppress warnings: 18256# remark #1419: external declaration in primary source file 18257# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem) 18258# remark #1684: conversion from pointer to same-sized integral type (potential portability problem) 18259# remark #193: zero used for undefined preprocessing identifier 18260# remark #593: variable "curs_sb_left_arrow" was set but never used 18261# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits 18262# remark #869: parameter "tw" was never referenced 18263# remark #981: operands are evaluated in unspecified order 18264# warning #279: controlling expression is constant 18265 18266 { echo "$as_me:18266: checking for $CC warning options..." >&5 18267echo "$as_me: checking for $CC warning options..." >&6;} 18268 cf_save_CFLAGS="$CFLAGS" 18269 EXTRA_CFLAGS="-Wall" 18270 for cf_opt in \ 18271 wd1419 \ 18272 wd1683 \ 18273 wd1684 \ 18274 wd193 \ 18275 wd593 \ 18276 wd279 \ 18277 wd810 \ 18278 wd869 \ 18279 wd981 18280 do 18281 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 18282 if { (eval echo "$as_me:18282: \"$ac_compile\"") >&5 18283 (eval $ac_compile) 2>&5 18284 ac_status=$? 18285 echo "$as_me:18285: \$? = $ac_status" >&5 18286 (exit $ac_status); }; then 18287 test -n "$verbose" && echo "$as_me:18287: result: ... -$cf_opt" >&5 18288echo "${ECHO_T}... -$cf_opt" >&6 18289 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 18290 fi 18291 done 18292 CFLAGS="$cf_save_CFLAGS" 18293 18294elif test "$GCC" = yes 18295then 18296 { echo "$as_me:18296: checking for $CC warning options..." >&5 18297echo "$as_me: checking for $CC warning options..." >&6;} 18298 cf_save_CFLAGS="$CFLAGS" 18299 EXTRA_CFLAGS= 18300 cf_warn_CONST="" 18301 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings" 18302 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs" 18303 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings= 18304 for cf_opt in W Wall \ 18305 Wbad-function-cast \ 18306 Wcast-align \ 18307 Wcast-qual \ 18308 Wdeclaration-after-statement \ 18309 Wextra \ 18310 Winline \ 18311 Wmissing-declarations \ 18312 Wmissing-prototypes \ 18313 Wnested-externs \ 18314 Wpointer-arith \ 18315 Wshadow \ 18316 Wstrict-prototypes \ 18317 Wundef $cf_gcc_warnings $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum 18318 do 18319 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 18320 if { (eval echo "$as_me:18320: \"$ac_compile\"") >&5 18321 (eval $ac_compile) 2>&5 18322 ac_status=$? 18323 echo "$as_me:18323: \$? = $ac_status" >&5 18324 (exit $ac_status); }; then 18325 test -n "$verbose" && echo "$as_me:18325: result: ... -$cf_opt" >&5 18326echo "${ECHO_T}... -$cf_opt" >&6 18327 case $cf_opt in #(vi 18328 Wcast-qual) #(vi 18329 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES" 18330 ;; 18331 Winline) #(vi 18332 case $GCC_VERSION in 18333 [34].*) 18334 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 18335 18336echo "${as_me:-configure}:18336: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 18337 18338 continue;; 18339 esac 18340 ;; 18341 Wpointer-arith) #(vi 18342 case $GCC_VERSION in 18343 [12].*) 18344 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 18345 18346echo "${as_me:-configure}:18346: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 18347 18348 continue;; 18349 esac 18350 ;; 18351 esac 18352 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 18353 fi 18354 done 18355 CFLAGS="$cf_save_CFLAGS" 18356fi 18357rm -rf conftest* 18358 18359fi 18360fi 18361 18362test "$disable_setuid" = yes && 18363cat >>confdefs.h <<\EOF 18364#define DISABLE_SETUID 1 18365EOF 18366 18367test "$disable_setgid" = yes && 18368cat >>confdefs.h <<\EOF 18369#define DISABLE_SETGID 1 18370EOF 18371 18372if test $disable_setuid = yes ; then 18373 MAY_SETUID="#" 18374 NOT_SETUID= 18375elif test $disable_setgid = yes ; then 18376 MAY_SETUID="#" 18377 NOT_SETUID= 18378else 18379 MAY_SETUID= 18380 NOT_SETUID="#" 18381fi 18382 18383### remove from CPPFLAGS the optional features we define in xtermcfg.h 18384### or other conflicting symbols that may be defined via imake: 18385for cf_def in \ 18386 __STDC__ \ 18387 ALLOWLOGGING \ 18388 ALLOWLOGFILEEXEC \ 18389 OPT_LUIT_PROG \ 18390 OPT_WIDE_CHARS \ 18391 SCROLLBAR_RIGHT \ 18392 USE_TTY_GROUP \ 18393 USE_UTEMPTER \ 18394 XRENDERFONT 18395do 18396 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-D$cf_def//` 18397done 18398 18399echo "$as_me:18399: checking if filesystem supports mixed-case filenames" >&5 18400echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6 18401if test "${cf_cv_mixedcase+set}" = set; then 18402 echo $ECHO_N "(cached) $ECHO_C" >&6 18403else 18404 18405if test "$cross_compiling" = yes ; then 18406 case $target_alias in #(vi 18407 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*) #(vi 18408 cf_cv_mixedcase=no 18409 ;; 18410 *) 18411 cf_cv_mixedcase=yes 18412 ;; 18413 esac 18414else 18415 rm -f conftest CONFTEST 18416 echo test >conftest 18417 if test -f CONFTEST ; then 18418 cf_cv_mixedcase=no 18419 else 18420 cf_cv_mixedcase=yes 18421 fi 18422 rm -f conftest CONFTEST 18423fi 18424 18425fi 18426echo "$as_me:18426: result: $cf_cv_mixedcase" >&5 18427echo "${ECHO_T}$cf_cv_mixedcase" >&6 18428test "$cf_cv_mixedcase" = yes && 18429cat >>confdefs.h <<\EOF 18430#define MIXEDCASE_FILENAMES 1 18431EOF 18432 18433for ac_prog in exctags ctags 18434do 18435 # Extract the first word of "$ac_prog", so it can be a program name with args. 18436set dummy $ac_prog; ac_word=$2 18437echo "$as_me:18437: checking for $ac_word" >&5 18438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18439if test "${ac_cv_prog_CTAGS+set}" = set; then 18440 echo $ECHO_N "(cached) $ECHO_C" >&6 18441else 18442 if test -n "$CTAGS"; then 18443 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test. 18444else 18445 ac_save_IFS=$IFS; IFS=$ac_path_separator 18446ac_dummy="$PATH" 18447for ac_dir in $ac_dummy; do 18448 IFS=$ac_save_IFS 18449 test -z "$ac_dir" && ac_dir=. 18450 $as_executable_p "$ac_dir/$ac_word" || continue 18451ac_cv_prog_CTAGS="$ac_prog" 18452echo "$as_me:18452: found $ac_dir/$ac_word" >&5 18453break 18454done 18455 18456fi 18457fi 18458CTAGS=$ac_cv_prog_CTAGS 18459if test -n "$CTAGS"; then 18460 echo "$as_me:18460: result: $CTAGS" >&5 18461echo "${ECHO_T}$CTAGS" >&6 18462else 18463 echo "$as_me:18463: result: no" >&5 18464echo "${ECHO_T}no" >&6 18465fi 18466 18467 test -n "$CTAGS" && break 18468done 18469 18470for ac_prog in exetags etags 18471do 18472 # Extract the first word of "$ac_prog", so it can be a program name with args. 18473set dummy $ac_prog; ac_word=$2 18474echo "$as_me:18474: checking for $ac_word" >&5 18475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18476if test "${ac_cv_prog_ETAGS+set}" = set; then 18477 echo $ECHO_N "(cached) $ECHO_C" >&6 18478else 18479 if test -n "$ETAGS"; then 18480 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test. 18481else 18482 ac_save_IFS=$IFS; IFS=$ac_path_separator 18483ac_dummy="$PATH" 18484for ac_dir in $ac_dummy; do 18485 IFS=$ac_save_IFS 18486 test -z "$ac_dir" && ac_dir=. 18487 $as_executable_p "$ac_dir/$ac_word" || continue 18488ac_cv_prog_ETAGS="$ac_prog" 18489echo "$as_me:18489: found $ac_dir/$ac_word" >&5 18490break 18491done 18492 18493fi 18494fi 18495ETAGS=$ac_cv_prog_ETAGS 18496if test -n "$ETAGS"; then 18497 echo "$as_me:18497: result: $ETAGS" >&5 18498echo "${ECHO_T}$ETAGS" >&6 18499else 18500 echo "$as_me:18500: result: no" >&5 18501echo "${ECHO_T}no" >&6 18502fi 18503 18504 test -n "$ETAGS" && break 18505done 18506 18507# Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args. 18508set dummy ${CTAGS:-ctags}; ac_word=$2 18509echo "$as_me:18509: checking for $ac_word" >&5 18510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18511if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then 18512 echo $ECHO_N "(cached) $ECHO_C" >&6 18513else 18514 if test -n "$MAKE_LOWER_TAGS"; then 18515 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test. 18516else 18517 ac_save_IFS=$IFS; IFS=$ac_path_separator 18518ac_dummy="$PATH" 18519for ac_dir in $ac_dummy; do 18520 IFS=$ac_save_IFS 18521 test -z "$ac_dir" && ac_dir=. 18522 $as_executable_p "$ac_dir/$ac_word" || continue 18523ac_cv_prog_MAKE_LOWER_TAGS="yes" 18524echo "$as_me:18524: found $ac_dir/$ac_word" >&5 18525break 18526done 18527 18528 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no" 18529fi 18530fi 18531MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS 18532if test -n "$MAKE_LOWER_TAGS"; then 18533 echo "$as_me:18533: result: $MAKE_LOWER_TAGS" >&5 18534echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6 18535else 18536 echo "$as_me:18536: result: no" >&5 18537echo "${ECHO_T}no" >&6 18538fi 18539 18540if test "$cf_cv_mixedcase" = yes ; then 18541 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args. 18542set dummy ${ETAGS:-etags}; ac_word=$2 18543echo "$as_me:18543: checking for $ac_word" >&5 18544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18545if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then 18546 echo $ECHO_N "(cached) $ECHO_C" >&6 18547else 18548 if test -n "$MAKE_UPPER_TAGS"; then 18549 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test. 18550else 18551 ac_save_IFS=$IFS; IFS=$ac_path_separator 18552ac_dummy="$PATH" 18553for ac_dir in $ac_dummy; do 18554 IFS=$ac_save_IFS 18555 test -z "$ac_dir" && ac_dir=. 18556 $as_executable_p "$ac_dir/$ac_word" || continue 18557ac_cv_prog_MAKE_UPPER_TAGS="yes" 18558echo "$as_me:18558: found $ac_dir/$ac_word" >&5 18559break 18560done 18561 18562 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no" 18563fi 18564fi 18565MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS 18566if test -n "$MAKE_UPPER_TAGS"; then 18567 echo "$as_me:18567: result: $MAKE_UPPER_TAGS" >&5 18568echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6 18569else 18570 echo "$as_me:18570: result: no" >&5 18571echo "${ECHO_T}no" >&6 18572fi 18573 18574else 18575 MAKE_UPPER_TAGS=no 18576fi 18577 18578if test "$MAKE_UPPER_TAGS" = yes ; then 18579 MAKE_UPPER_TAGS= 18580else 18581 MAKE_UPPER_TAGS="#" 18582fi 18583 18584if test "$MAKE_LOWER_TAGS" = yes ; then 18585 MAKE_LOWER_TAGS= 18586else 18587 MAKE_LOWER_TAGS="#" 18588fi 18589 18590LD_RPATH_OPT= 18591echo "$as_me:18591: checking for an rpath option" >&5 18592echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6 18593case $cf_cv_system_name in #(vi 18594irix*) #(vi 18595 if test "$GCC" = yes; then 18596 LD_RPATH_OPT="-Wl,-rpath," 18597 else 18598 LD_RPATH_OPT="-rpath " 18599 fi 18600 ;; 18601linux*|gnu*|k*bsd*-gnu) #(vi 18602 LD_RPATH_OPT="-Wl,-rpath," 18603 ;; 18604openbsd[2-9].*|mirbsd*) #(vi 18605 LD_RPATH_OPT="-Wl,-rpath," 18606 ;; 18607dragonfly*|freebsd*) #(vi 18608 LD_RPATH_OPT="-rpath " 18609 ;; 18610netbsd*) #(vi 18611 LD_RPATH_OPT="-Wl,-rpath," 18612 ;; 18613osf*|mls+*) #(vi 18614 LD_RPATH_OPT="-rpath " 18615 ;; 18616solaris2*) #(vi 18617 LD_RPATH_OPT="-R" 18618 ;; 18619*) 18620 ;; 18621esac 18622echo "$as_me:18622: result: $LD_RPATH_OPT" >&5 18623echo "${ECHO_T}$LD_RPATH_OPT" >&6 18624 18625case "x$LD_RPATH_OPT" in #(vi 18626x-R*) 18627 echo "$as_me:18627: checking if we need a space after rpath option" >&5 18628echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6 18629 cf_save_LIBS="$LIBS" 18630 LIBS="${LD_RPATH_OPT}$libdir $LIBS" 18631 cat >conftest.$ac_ext <<_ACEOF 18632#line 18632 "configure" 18633#include "confdefs.h" 18634 18635int 18636main () 18637{ 18638 18639 ; 18640 return 0; 18641} 18642_ACEOF 18643rm -f conftest.$ac_objext conftest$ac_exeext 18644if { (eval echo "$as_me:18644: \"$ac_link\"") >&5 18645 (eval $ac_link) 2>&5 18646 ac_status=$? 18647 echo "$as_me:18647: \$? = $ac_status" >&5 18648 (exit $ac_status); } && 18649 { ac_try='test -s conftest$ac_exeext' 18650 { (eval echo "$as_me:18650: \"$ac_try\"") >&5 18651 (eval $ac_try) 2>&5 18652 ac_status=$? 18653 echo "$as_me:18653: \$? = $ac_status" >&5 18654 (exit $ac_status); }; }; then 18655 cf_rpath_space=no 18656else 18657 echo "$as_me: failed program was:" >&5 18658cat conftest.$ac_ext >&5 18659cf_rpath_space=yes 18660fi 18661rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18662 LIBS="$cf_save_LIBS" 18663 echo "$as_me:18663: result: $cf_rpath_space" >&5 18664echo "${ECHO_T}$cf_rpath_space" >&6 18665 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT " 18666 ;; 18667esac 18668 18669echo "$as_me:18669: checking if rpath-hack should be disabled" >&5 18670echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6 18671 18672# Check whether --enable-rpath-hack or --disable-rpath-hack was given. 18673if test "${enable_rpath_hack+set}" = set; then 18674 enableval="$enable_rpath_hack" 18675 test "$enableval" != no && enableval=yes 18676 if test "$enableval" != "yes" ; then 18677 cf_disable_rpath_hack=yes 18678 else 18679 cf_disable_rpath_hack=no 18680 fi 18681else 18682 enableval=yes 18683 cf_disable_rpath_hack=no 18684 18685fi; 18686echo "$as_me:18686: result: $cf_disable_rpath_hack" >&5 18687echo "${ECHO_T}$cf_disable_rpath_hack" >&6 18688if test "$cf_disable_rpath_hack" = no ; then 18689 18690echo "$as_me:18690: checking for updated LDFLAGS" >&5 18691echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6 18692if test -n "$LD_RPATH_OPT" ; then 18693 echo "$as_me:18693: result: maybe" >&5 18694echo "${ECHO_T}maybe" >&6 18695 18696 for ac_prog in ldd 18697do 18698 # Extract the first word of "$ac_prog", so it can be a program name with args. 18699set dummy $ac_prog; ac_word=$2 18700echo "$as_me:18700: checking for $ac_word" >&5 18701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18702if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then 18703 echo $ECHO_N "(cached) $ECHO_C" >&6 18704else 18705 if test -n "$cf_ldd_prog"; then 18706 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test. 18707else 18708 ac_save_IFS=$IFS; IFS=$ac_path_separator 18709ac_dummy="$PATH" 18710for ac_dir in $ac_dummy; do 18711 IFS=$ac_save_IFS 18712 test -z "$ac_dir" && ac_dir=. 18713 $as_executable_p "$ac_dir/$ac_word" || continue 18714ac_cv_prog_cf_ldd_prog="$ac_prog" 18715echo "$as_me:18715: found $ac_dir/$ac_word" >&5 18716break 18717done 18718 18719fi 18720fi 18721cf_ldd_prog=$ac_cv_prog_cf_ldd_prog 18722if test -n "$cf_ldd_prog"; then 18723 echo "$as_me:18723: result: $cf_ldd_prog" >&5 18724echo "${ECHO_T}$cf_ldd_prog" >&6 18725else 18726 echo "$as_me:18726: result: no" >&5 18727echo "${ECHO_T}no" >&6 18728fi 18729 18730 test -n "$cf_ldd_prog" && break 18731done 18732test -n "$cf_ldd_prog" || cf_ldd_prog="no" 18733 18734 cf_rpath_list="/usr/lib /lib" 18735 if test "$cf_ldd_prog" != no 18736 then 18737 cf_rpath_oops= 18738 18739cat >conftest.$ac_ext <<_ACEOF 18740#line 18740 "configure" 18741#include "confdefs.h" 18742#include <stdio.h> 18743int 18744main () 18745{ 18746printf("Hello"); 18747 ; 18748 return 0; 18749} 18750_ACEOF 18751rm -f conftest.$ac_objext conftest$ac_exeext 18752if { (eval echo "$as_me:18752: \"$ac_link\"") >&5 18753 (eval $ac_link) 2>&5 18754 ac_status=$? 18755 echo "$as_me:18755: \$? = $ac_status" >&5 18756 (exit $ac_status); } && 18757 { ac_try='test -s conftest$ac_exeext' 18758 { (eval echo "$as_me:18758: \"$ac_try\"") >&5 18759 (eval $ac_try) 2>&5 18760 ac_status=$? 18761 echo "$as_me:18761: \$? = $ac_status" >&5 18762 (exit $ac_status); }; }; then 18763 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq` 18764 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq` 18765else 18766 echo "$as_me: failed program was:" >&5 18767cat conftest.$ac_ext >&5 18768fi 18769rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18770 18771 # If we passed the link-test, but get a "not found" on a given library, 18772 # this could be due to inept reconfiguration of gcc to make it only 18773 # partly honor /usr/local/lib (or whatever). Sometimes this behavior 18774 # is intentional, e.g., installing gcc in /usr/bin and suppressing the 18775 # /usr/local libraries. 18776 if test -n "$cf_rpath_oops" 18777 then 18778 for cf_rpath_src in $cf_rpath_oops 18779 do 18780 for cf_rpath_dir in \ 18781 /usr/local \ 18782 /usr/pkg \ 18783 /opt/sfw 18784 do 18785 if test -f $cf_rpath_dir/lib/$cf_rpath_src 18786 then 18787 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6 18788 18789echo "${as_me:-configure}:18789: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5 18790 18791 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib" 18792 break 18793 fi 18794 done 18795 done 18796 fi 18797 fi 18798 18799 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6 18800 18801echo "${as_me:-configure}:18801: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5 18802 18803test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6 18804 18805echo "${as_me:-configure}:18805: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5 18806 18807cf_rpath_dst= 18808for cf_rpath_src in $LDFLAGS 18809do 18810 case $cf_rpath_src in #(vi 18811 -L*) #(vi 18812 18813 # check if this refers to a directory which we will ignore 18814 cf_rpath_skip=no 18815 if test -n "$cf_rpath_list" 18816 then 18817 for cf_rpath_item in $cf_rpath_list 18818 do 18819 if test "x$cf_rpath_src" = "x-L$cf_rpath_item" 18820 then 18821 cf_rpath_skip=yes 18822 break 18823 fi 18824 done 18825 fi 18826 18827 if test "$cf_rpath_skip" = no 18828 then 18829 # transform the option 18830 if test "$LD_RPATH_OPT" = "-R " ; then 18831 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"` 18832 else 18833 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"` 18834 fi 18835 18836 # if we have not already added this, add it now 18837 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"` 18838 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS" 18839 then 18840 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6 18841 18842echo "${as_me:-configure}:18842: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5 18843 18844 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS" 18845 fi 18846 fi 18847 ;; 18848 esac 18849 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src" 18850done 18851LDFLAGS=$cf_rpath_dst 18852 18853test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6 18854 18855echo "${as_me:-configure}:18855: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5 18856 18857test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6 18858 18859echo "${as_me:-configure}:18859: testing ...checking LIBS $LIBS ..." 1>&5 18860 18861cf_rpath_dst= 18862for cf_rpath_src in $LIBS 18863do 18864 case $cf_rpath_src in #(vi 18865 -L*) #(vi 18866 18867 # check if this refers to a directory which we will ignore 18868 cf_rpath_skip=no 18869 if test -n "$cf_rpath_list" 18870 then 18871 for cf_rpath_item in $cf_rpath_list 18872 do 18873 if test "x$cf_rpath_src" = "x-L$cf_rpath_item" 18874 then 18875 cf_rpath_skip=yes 18876 break 18877 fi 18878 done 18879 fi 18880 18881 if test "$cf_rpath_skip" = no 18882 then 18883 # transform the option 18884 if test "$LD_RPATH_OPT" = "-R " ; then 18885 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"` 18886 else 18887 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"` 18888 fi 18889 18890 # if we have not already added this, add it now 18891 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"` 18892 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS" 18893 then 18894 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6 18895 18896echo "${as_me:-configure}:18896: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5 18897 18898 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS" 18899 fi 18900 fi 18901 ;; 18902 esac 18903 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src" 18904done 18905LIBS=$cf_rpath_dst 18906 18907test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6 18908 18909echo "${as_me:-configure}:18909: testing ...checked LIBS $LIBS ..." 1>&5 18910 18911 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6 18912 18913echo "${as_me:-configure}:18913: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5 18914 18915else 18916 echo "$as_me:18916: result: no" >&5 18917echo "${ECHO_T}no" >&6 18918fi 18919 18920fi 18921 18922# Force plink.sh to not trim pcre's libraries, which have the same symbol 18923# names as the system regexp. 18924if test "$with_pcre" != no 18925then 18926 LIBS=`echo "$LIBS" | sed -e 's/-lpcre/-kpcre/g'` 18927fi 18928 18929### output xtermcfg.h, etc 18930ac_config_files="$ac_config_files Makefile df-install minstall:minstall.in" 18931cat >confcache <<\_ACEOF 18932# This file is a shell script that caches the results of configure 18933# tests run on this system so they can be shared between configure 18934# scripts and configure runs, see configure's option --config-cache. 18935# It is not useful on other systems. If it contains results you don't 18936# want to keep, you may remove or edit it. 18937# 18938# config.status only pays attention to the cache file if you give it 18939# the --recheck option to rerun configure. 18940# 18941# `ac_cv_env_foo' variables (set or unset) will be overriden when 18942# loading this file, other *unset* `ac_cv_foo' will be assigned the 18943# following values. 18944 18945_ACEOF 18946 18947# The following way of writing the cache mishandles newlines in values, 18948# but we know of no workaround that is simple, portable, and efficient. 18949# So, don't put newlines in cache variables' values. 18950# Ultrix sh set writes to stderr and can't be redirected directly, 18951# and sets the high bit in the cache file unless we assign to the vars. 18952{ 18953 (set) 2>&1 | 18954 case `(ac_space=' '; set | grep ac_space) 2>&1` in 18955 *ac_space=\ *) 18956 # `set' does not quote correctly, so add quotes (double-quote 18957 # substitution turns \\\\ into \\, and sed turns \\ into \). 18958 sed -n \ 18959 "s/'/'\\\\''/g; 18960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18961 ;; 18962 *) 18963 # `set' quotes correctly as required by POSIX, so do not add quotes. 18964 sed -n \ 18965 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 18966 ;; 18967 esac; 18968} | 18969 sed ' 18970 t clear 18971 : clear 18972 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18973 t end 18974 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18975 : end' >>confcache 18976if cmp -s $cache_file confcache; then :; else 18977 if test -w $cache_file; then 18978 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 18979 cat confcache >$cache_file 18980 else 18981 echo "not updating unwritable cache $cache_file" 18982 fi 18983fi 18984rm -f confcache 18985 18986test "x$prefix" = xNONE && prefix=$ac_default_prefix 18987# Let make expand exec_prefix. 18988test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18989 18990# VPATH may cause trouble with some makes, so we remove $(srcdir), 18991# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 18992# trailing colons and then remove the whole line if VPATH becomes empty 18993# (actually we leave an empty line to preserve line numbers). 18994if test "x$srcdir" = x.; then 18995 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 18996s/:*\$(srcdir):*/:/; 18997s/:*\${srcdir}:*/:/; 18998s/:*@srcdir@:*/:/; 18999s/^\([^=]*=[ ]*\):*/\1/; 19000s/:*$//; 19001s/^[^=]*=[ ]*$//; 19002}' 19003fi 19004 19005DEFS=-DHAVE_CONFIG_H 19006 19007: ${CONFIG_STATUS=./config.status} 19008ac_clean_files_save=$ac_clean_files 19009ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19010{ echo "$as_me:19010: creating $CONFIG_STATUS" >&5 19011echo "$as_me: creating $CONFIG_STATUS" >&6;} 19012cat >$CONFIG_STATUS <<_ACEOF 19013#! $SHELL 19014# Generated automatically by configure. 19015# Run this file to recreate the current configuration. 19016# Compiler output produced by configure, useful for debugging 19017# configure, is in config.log if it exists. 19018 19019debug=false 19020SHELL=\${CONFIG_SHELL-$SHELL} 19021ac_cs_invocation="\$0 \$@" 19022 19023_ACEOF 19024 19025cat >>$CONFIG_STATUS <<\_ACEOF 19026# Be Bourne compatible 19027if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19028 emulate sh 19029 NULLCMD=: 19030elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 19031 set -o posix 19032fi 19033 19034# Name of the executable. 19035as_me=`echo "$0" |sed 's,.*[\\/],,'` 19036 19037if expr a : '\(a\)' >/dev/null 2>&1; then 19038 as_expr=expr 19039else 19040 as_expr=false 19041fi 19042 19043rm -f conf$$ conf$$.exe conf$$.file 19044echo >conf$$.file 19045if ln -s conf$$.file conf$$ 2>/dev/null; then 19046 # We could just check for DJGPP; but this test a) works b) is more generic 19047 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 19048 if test -f conf$$.exe; then 19049 # Don't use ln at all; we don't have any links 19050 as_ln_s='cp -p' 19051 else 19052 as_ln_s='ln -s' 19053 fi 19054elif ln conf$$.file conf$$ 2>/dev/null; then 19055 as_ln_s=ln 19056else 19057 as_ln_s='cp -p' 19058fi 19059rm -f conf$$ conf$$.exe conf$$.file 19060 19061as_executable_p="test -f" 19062 19063# Support unset when possible. 19064if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 19065 as_unset=unset 19066else 19067 as_unset=false 19068fi 19069 19070# NLS nuisances. 19071$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 19072$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 19073$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 19074$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 19075$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 19076$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 19077$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 19078$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 19079 19080# IFS 19081# We need space, tab and new line, in precisely that order. 19082as_nl=' 19083' 19084IFS=" $as_nl" 19085 19086# CDPATH. 19087$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 19088 19089exec 6>&1 19090 19091_ACEOF 19092 19093# Files that config.status was made for. 19094if test -n "$ac_config_files"; then 19095 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 19096fi 19097 19098if test -n "$ac_config_headers"; then 19099 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 19100fi 19101 19102if test -n "$ac_config_links"; then 19103 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 19104fi 19105 19106if test -n "$ac_config_commands"; then 19107 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 19108fi 19109 19110cat >>$CONFIG_STATUS <<\EOF 19111 19112ac_cs_usage="\ 19113\`$as_me' instantiates files from templates according to the 19114current configuration. 19115 19116Usage: $0 [OPTIONS] [FILE]... 19117 19118 -h, --help print this help, then exit 19119 -V, --version print version number, then exit 19120 -d, --debug don't remove temporary files 19121 --recheck update $as_me by reconfiguring in the same conditions 19122 --file=FILE[:TEMPLATE] 19123 instantiate the configuration file FILE 19124 --header=FILE[:TEMPLATE] 19125 instantiate the configuration header FILE 19126 19127Configuration files: 19128$config_files 19129 19130Configuration headers: 19131$config_headers 19132 19133Report bugs to <dickey@invisible-island.net>." 19134EOF 19135 19136cat >>$CONFIG_STATUS <<EOF 19137ac_cs_version="\\ 19138config.status 19139configured by $0, generated by GNU Autoconf 2.52.20121002, 19140 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 19141 19142Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 19143Free Software Foundation, Inc. 19144This config.status script is free software; the Free Software Foundation 19145gives unlimited permission to copy, distribute and modify it." 19146srcdir=$srcdir 19147INSTALL="$INSTALL" 19148EOF 19149 19150cat >>$CONFIG_STATUS <<\EOF 19151# If no file are specified by the user, then we need to provide default 19152# value. By we need to know if files were specified by the user. 19153ac_need_defaults=: 19154while test $# != 0 19155do 19156 case $1 in 19157 --*=*) 19158 ac_option=`expr "x$1" : 'x\([^=]*\)='` 19159 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 19160 shift 19161 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 19162 shift 19163 ;; 19164 -*);; 19165 *) # This is not an option, so the user has probably given explicit 19166 # arguments. 19167 ac_need_defaults=false;; 19168 esac 19169 19170 case $1 in 19171 # Handling of the options. 19172EOF 19173cat >>$CONFIG_STATUS <<EOF 19174 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19175 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 19176 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 19177EOF 19178cat >>$CONFIG_STATUS <<\EOF 19179 --version | --vers* | -V ) 19180 echo "$ac_cs_version"; exit 0 ;; 19181 --he | --h) 19182 # Conflict between --help and --header 19183 { { echo "$as_me:19183: error: ambiguous option: $1 19184Try \`$0 --help' for more information." >&5 19185echo "$as_me: error: ambiguous option: $1 19186Try \`$0 --help' for more information." >&2;} 19187 { (exit 1); exit 1; }; };; 19188 --help | --hel | -h ) 19189 echo "$ac_cs_usage"; exit 0 ;; 19190 --debug | --d* | -d ) 19191 debug=: ;; 19192 --file | --fil | --fi | --f ) 19193 shift 19194 CONFIG_FILES="$CONFIG_FILES $1" 19195 ac_need_defaults=false;; 19196 --header | --heade | --head | --hea ) 19197 shift 19198 CONFIG_HEADERS="$CONFIG_HEADERS $1" 19199 ac_need_defaults=false;; 19200 19201 # This is an error. 19202 -*) { { echo "$as_me:19202: error: unrecognized option: $1 19203Try \`$0 --help' for more information." >&5 19204echo "$as_me: error: unrecognized option: $1 19205Try \`$0 --help' for more information." >&2;} 19206 { (exit 1); exit 1; }; } ;; 19207 19208 *) ac_config_targets="$ac_config_targets $1" ;; 19209 19210 esac 19211 shift 19212done 19213 19214exec 5>>config.log 19215cat >&5 << _ACEOF 19216 19217## ----------------------- ## 19218## Running config.status. ## 19219## ----------------------- ## 19220 19221This file was extended by $as_me 2.52.20121002, executed with 19222 CONFIG_FILES = $CONFIG_FILES 19223 CONFIG_HEADERS = $CONFIG_HEADERS 19224 CONFIG_LINKS = $CONFIG_LINKS 19225 CONFIG_COMMANDS = $CONFIG_COMMANDS 19226 > $ac_cs_invocation 19227on `(hostname || uname -n) 2>/dev/null | sed 1q` 19228 19229_ACEOF 19230EOF 19231 19232cat >>$CONFIG_STATUS <<\EOF 19233for ac_config_target in $ac_config_targets 19234do 19235 case "$ac_config_target" in 19236 # Handling of arguments. 19237 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19238 "df-install" ) CONFIG_FILES="$CONFIG_FILES df-install" ;; 19239 "minstall" ) CONFIG_FILES="$CONFIG_FILES minstall:minstall.in" ;; 19240 "xtermcfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS xtermcfg.h:xtermcfg.hin" ;; 19241 *) { { echo "$as_me:19241: error: invalid argument: $ac_config_target" >&5 19242echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 19243 { (exit 1); exit 1; }; };; 19244 esac 19245done 19246 19247# If the user did not use the arguments to specify the items to instantiate, 19248# then the envvar interface is used. Set only those that are not. 19249# We use the long form for the default assignment because of an extremely 19250# bizarre bug on SunOS 4.1.3. 19251if $ac_need_defaults; then 19252 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19253 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19254fi 19255 19256# Create a temporary directory, and hook for its removal unless debugging. 19257$debug || 19258{ 19259 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 19260 trap '{ (exit 1); exit 1; }' 1 2 13 15 19261} 19262 19263# Create a (secure) tmp directory for tmp files. 19264: ${TMPDIR=/tmp} 19265{ 19266 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 19267 test -n "$tmp" && test -d "$tmp" 19268} || 19269{ 19270 tmp=$TMPDIR/cs$$-$RANDOM 19271 (umask 077 && mkdir $tmp) 19272} || 19273{ 19274 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 19275 { (exit 1); exit 1; } 19276} 19277 19278EOF 19279 19280cat >>$CONFIG_STATUS <<EOF 19281 19282# 19283# CONFIG_FILES section. 19284# 19285 19286# No need to generate the scripts if there are no CONFIG_FILES. 19287# This happens for instance when ./config.status config.h 19288if test -n "\$CONFIG_FILES"; then 19289 # Protect against being on the right side of a sed subst in config.status. 19290 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 19291 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 19292s,@SHELL@,$SHELL,;t t 19293s,@exec_prefix@,$exec_prefix,;t t 19294s,@prefix@,$prefix,;t t 19295s,@program_transform_name@,$program_transform_name,;t t 19296s,@bindir@,$bindir,;t t 19297s,@sbindir@,$sbindir,;t t 19298s,@libexecdir@,$libexecdir,;t t 19299s,@datarootdir@,$datarootdir,;t t 19300s,@datadir@,$datadir,;t t 19301s,@sysconfdir@,$sysconfdir,;t t 19302s,@sharedstatedir@,$sharedstatedir,;t t 19303s,@localstatedir@,$localstatedir,;t t 19304s,@libdir@,$libdir,;t t 19305s,@includedir@,$includedir,;t t 19306s,@oldincludedir@,$oldincludedir,;t t 19307s,@infodir@,$infodir,;t t 19308s,@mandir@,$mandir,;t t 19309s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 19310s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 19311s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 19312s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 19313s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 19314s,@build_alias@,$build_alias,;t t 19315s,@host_alias@,$host_alias,;t t 19316s,@target_alias@,$target_alias,;t t 19317s,@ECHO_C@,$ECHO_C,;t t 19318s,@ECHO_N@,$ECHO_N,;t t 19319s,@ECHO_T@,$ECHO_T,;t t 19320s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 19321s,@DEFS@,$DEFS,;t t 19322s,@LIBS@,$LIBS,;t t 19323s,@build@,$build,;t t 19324s,@build_cpu@,$build_cpu,;t t 19325s,@build_vendor@,$build_vendor,;t t 19326s,@build_os@,$build_os,;t t 19327s,@host@,$host,;t t 19328s,@host_cpu@,$host_cpu,;t t 19329s,@host_vendor@,$host_vendor,;t t 19330s,@host_os@,$host_os,;t t 19331s,@CC@,$CC,;t t 19332s,@CFLAGS@,$CFLAGS,;t t 19333s,@LDFLAGS@,$LDFLAGS,;t t 19334s,@CPPFLAGS@,$CPPFLAGS,;t t 19335s,@ac_ct_CC@,$ac_ct_CC,;t t 19336s,@EXEEXT@,$EXEEXT,;t t 19337s,@OBJEXT@,$OBJEXT,;t t 19338s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t 19339s,@CPP@,$CPP,;t t 19340s,@AWK@,$AWK,;t t 19341s,@GROFF_PATH@,$GROFF_PATH,;t t 19342s,@GROFF_NOTE@,$GROFF_NOTE,;t t 19343s,@NROFF_NOTE@,$NROFF_NOTE,;t t 19344s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 19345s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 19346s,@INSTALL_DATA@,$INSTALL_DATA,;t t 19347s,@LN_S@,$LN_S,;t t 19348s,@LINT@,$LINT,;t t 19349s,@APP_CLASS@,$APP_CLASS,;t t 19350s,@APPSDIR@,$APPSDIR,;t t 19351s,@no_appsdir@,$no_appsdir,;t t 19352s,@ICON_NAME@,$ICON_NAME,;t t 19353s,@ICON_SYMLINK@,$ICON_SYMLINK,;t t 19354s,@PIXMAPDIR@,$PIXMAPDIR,;t t 19355s,@no_pixmapdir@,$no_pixmapdir,;t t 19356s,@ICONDIR@,$ICONDIR,;t t 19357s,@no_icondir@,$no_icondir,;t t 19358s,@ICON_FORMAT@,$ICON_FORMAT,;t t 19359s,@ICON_THEME@,$ICON_THEME,;t t 19360s,@ICON_LIST@,$ICON_LIST,;t t 19361s,@desktop_utils@,$desktop_utils,;t t 19362s,@DESKTOP_FLAGS@,$DESKTOP_FLAGS,;t t 19363s,@DESKTOP_CATEGORY@,$DESKTOP_CATEGORY,;t t 19364s,@XTERM_PATH@,$XTERM_PATH,;t t 19365s,@XTERM_SYMLINK@,$XTERM_SYMLINK,;t t 19366s,@SINSTALL_OPTS@,$SINSTALL_OPTS,;t t 19367s,@X_CFLAGS@,$X_CFLAGS,;t t 19368s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 19369s,@X_LIBS@,$X_LIBS,;t t 19370s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 19371s,@PKG_CONFIG@,$PKG_CONFIG,;t t 19372s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t 19373s,@ICON_SUFFIX@,$ICON_SUFFIX,;t t 19374s,@IMAKE@,$IMAKE,;t t 19375s,@IMAKE_CFLAGS@,$IMAKE_CFLAGS,;t t 19376s,@IMAKE_LOADFLAGS@,$IMAKE_LOADFLAGS,;t t 19377s,@default_termid@,$default_termid,;t t 19378s,@default_TERM@,$default_TERM,;t t 19379s,@backarrow_is_bs@,$backarrow_is_bs,;t t 19380s,@backarrow_is_erase@,$backarrow_is_erase,;t t 19381s,@delete_is_del@,$delete_is_del,;t t 19382s,@alt_sends_esc@,$alt_sends_esc,;t t 19383s,@meta_sends_esc@,$meta_sends_esc,;t t 19384s,@cf_tic_prog@,$cf_tic_prog,;t t 19385s,@no_ticprog@,$no_ticprog,;t t 19386s,@TERMINFO_DIR@,$TERMINFO_DIR,;t t 19387s,@SET_TERMINFO@,$SET_TERMINFO,;t t 19388s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t 19389s,@FREETYPE_OLD_CONFIG@,$FREETYPE_OLD_CONFIG,;t t 19390s,@FREETYPE_XFT_CONFIG@,$FREETYPE_XFT_CONFIG,;t t 19391s,@HAVE_TYPE_FCCHAR32@,$HAVE_TYPE_FCCHAR32,;t t 19392s,@HAVE_TYPE_XFTCHARSPEC@,$HAVE_TYPE_XFTCHARSPEC,;t t 19393s,@LUIT@,$LUIT,;t t 19394s,@ECHO_LT@,$ECHO_LT,;t t 19395s,@ECHO_LD@,$ECHO_LD,;t t 19396s,@RULE_CC@,$RULE_CC,;t t 19397s,@SHOW_CC@,$SHOW_CC,;t t 19398s,@ECHO_CC@,$ECHO_CC,;t t 19399s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t 19400s,@CHARPROC_DEPS@,$CHARPROC_DEPS,;t t 19401s,@EXTRAHDRS@,$EXTRAHDRS,;t t 19402s,@EXTRASRCS@,$EXTRASRCS,;t t 19403s,@EXTRAOBJS@,$EXTRAOBJS,;t t 19404s,@MAY_SETUID@,$MAY_SETUID,;t t 19405s,@NOT_SETUID@,$NOT_SETUID,;t t 19406s,@CTAGS@,$CTAGS,;t t 19407s,@ETAGS@,$ETAGS,;t t 19408s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t 19409s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t 19410s,@cf_ldd_prog@,$cf_ldd_prog,;t t 19411s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t 19412CEOF 19413 19414EOF 19415 19416 cat >>$CONFIG_STATUS <<\EOF 19417 # Split the substitutions into bite-sized pieces for seds with 19418 # small command number limits, like on Digital OSF/1 and HP-UX. 19419 ac_max_sed_lines=48 19420 ac_sed_frag=1 # Number of current file. 19421 ac_beg=1 # First line for current file. 19422 ac_end=$ac_max_sed_lines # Line after last line for current file. 19423 ac_more_lines=: 19424 ac_sed_cmds= 19425 while $ac_more_lines; do 19426 if test $ac_beg -gt 1; then 19427 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 19428 else 19429 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 19430 fi 19431 if test ! -s $tmp/subs.frag; then 19432 ac_more_lines=false 19433 else 19434 # The purpose of the label and of the branching condition is to 19435 # speed up the sed processing (if there are no `@' at all, there 19436 # is no need to browse any of the substitutions). 19437 # These are the two extra sed commands mentioned above. 19438 (echo ':t 19439 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 19440 if test -z "$ac_sed_cmds"; then 19441 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 19442 else 19443 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 19444 fi 19445 ac_sed_frag=`expr $ac_sed_frag + 1` 19446 ac_beg=$ac_end 19447 ac_end=`expr $ac_end + $ac_max_sed_lines` 19448 fi 19449 done 19450 if test -z "$ac_sed_cmds"; then 19451 ac_sed_cmds=cat 19452 fi 19453fi # test -n "$CONFIG_FILES" 19454 19455EOF 19456cat >>$CONFIG_STATUS <<\EOF 19457for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 19458 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 19459 case $ac_file in 19460 - | *:- | *:-:* ) # input from stdin 19461 cat >$tmp/stdin 19462 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 19463 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 19464 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 19465 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 19466 * ) ac_file_in=$ac_file.in ;; 19467 esac 19468 19469 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 19470 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19471 X"$ac_file" : 'X\(//\)[^/]' \| \ 19472 X"$ac_file" : 'X\(//\)$' \| \ 19473 X"$ac_file" : 'X\(/\)' \| \ 19474 . : '\(.\)' 2>/dev/null || 19475echo X"$ac_file" | 19476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 19477 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 19478 /^X\(\/\/\)$/{ s//\1/; q; } 19479 /^X\(\/\).*/{ s//\1/; q; } 19480 s/.*/./; q'` 19481 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 19482 { case "$ac_dir" in 19483 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 19484 *) as_incr_dir=.;; 19485esac 19486as_dummy="$ac_dir" 19487for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 19488 case $as_mkdir_dir in 19489 # Skip DOS drivespec 19490 ?:) as_incr_dir=$as_mkdir_dir ;; 19491 *) 19492 as_incr_dir=$as_incr_dir/$as_mkdir_dir 19493 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 19494 ;; 19495 esac 19496done; } 19497 19498 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 19499 # A "../" for each directory in $ac_dir_suffix. 19500 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 19501 else 19502 ac_dir_suffix= ac_dots= 19503 fi 19504 19505 case $srcdir in 19506 .) ac_srcdir=. 19507 if test -z "$ac_dots"; then 19508 ac_top_srcdir=. 19509 else 19510 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` 19511 fi ;; 19512 [\\/]* | ?:[\\/]* ) 19513 ac_srcdir=$srcdir$ac_dir_suffix; 19514 ac_top_srcdir=$srcdir ;; 19515 *) # Relative path. 19516 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix 19517 ac_top_srcdir=$ac_dots$srcdir ;; 19518 esac 19519 19520 case $INSTALL in 19521 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19522 *) ac_INSTALL=$ac_dots$INSTALL ;; 19523 esac 19524 19525 if test x"$ac_file" != x-; then 19526 { echo "$as_me:19526: creating $ac_file" >&5 19527echo "$as_me: creating $ac_file" >&6;} 19528 rm -f "$ac_file" 19529 fi 19530 # Let's still pretend it is `configure' which instantiates (i.e., don't 19531 # use $as_me), people would be surprised to read: 19532 # /* config.h. Generated automatically by config.status. */ 19533 configure_input="Generated automatically from `echo $ac_file_in | 19534 sed 's,.*/,,'` by configure." 19535 19536 # First look for the input files in the build tree, otherwise in the 19537 # src tree. 19538 ac_file_inputs=`IFS=: 19539 for f in $ac_file_in; do 19540 case $f in 19541 -) echo $tmp/stdin ;; 19542 [\\/$]*) 19543 # Absolute (can't be DOS-style, as IFS=:) 19544 test -f "$f" || { { echo "$as_me:19544: error: cannot find input file: $f" >&5 19545echo "$as_me: error: cannot find input file: $f" >&2;} 19546 { (exit 1); exit 1; }; } 19547 echo $f;; 19548 *) # Relative 19549 if test -f "$f"; then 19550 # Build tree 19551 echo $f 19552 elif test -f "$srcdir/$f"; then 19553 # Source tree 19554 echo $srcdir/$f 19555 else 19556 # /dev/null tree 19557 { { echo "$as_me:19557: error: cannot find input file: $f" >&5 19558echo "$as_me: error: cannot find input file: $f" >&2;} 19559 { (exit 1); exit 1; }; } 19560 fi;; 19561 esac 19562 done` || { (exit 1); exit 1; } 19563EOF 19564cat >>$CONFIG_STATUS <<\EOF 19565 ac_warn_datarootdir=no 19566 if test x"$ac_file" != x-; then 19567 for ac_item in $ac_file_inputs 19568 do 19569 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item` 19570 if test -n "$ac_seen"; then 19571 ac_used=`grep '@datarootdir@' $ac_item` 19572 if test -z "$ac_used"; then 19573 { echo "$as_me:19573: WARNING: datarootdir was used implicitly but not set: 19574$ac_seen" >&5 19575echo "$as_me: WARNING: datarootdir was used implicitly but not set: 19576$ac_seen" >&2;} 19577 ac_warn_datarootdir=yes 19578 fi 19579 fi 19580 ac_seen=`grep '${datarootdir}' $ac_item` 19581 if test -n "$ac_seen"; then 19582 { echo "$as_me:19582: WARNING: datarootdir was used explicitly but not set: 19583$ac_seen" >&5 19584echo "$as_me: WARNING: datarootdir was used explicitly but not set: 19585$ac_seen" >&2;} 19586 ac_warn_datarootdir=yes 19587 fi 19588 done 19589 fi 19590 19591if test "x$ac_warn_datarootdir" = xyes; then 19592 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'" 19593fi 19594 19595EOF 19596cat >>$CONFIG_STATUS <<EOF 19597 sed "$ac_vpsub 19598$extrasub 19599EOF 19600cat >>$CONFIG_STATUS <<\EOF 19601:t 19602/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19603s,@configure_input@,$configure_input,;t t 19604s,@srcdir@,$ac_srcdir,;t t 19605s,@top_srcdir@,$ac_top_srcdir,;t t 19606s,@INSTALL@,$ac_INSTALL,;t t 19607" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 19608 rm -f $tmp/stdin 19609 if test x"$ac_file" != x-; then 19610 cp $tmp/out $ac_file 19611 19612 for ac_name in prefix exec_prefix datarootdir 19613 do 19614 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file` 19615 if test -n "$ac_seen"; then 19616 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file` 19617 if test -z "$ac_init"; then 19618 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'` 19619 { echo "$as_me:19619: WARNING: Variable $ac_name is used but was not set: 19620$ac_seen" >&5 19621echo "$as_me: WARNING: Variable $ac_name is used but was not set: 19622$ac_seen" >&2;} 19623 fi 19624 fi 19625 done 19626 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out 19627 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out 19628 if test -s $tmp/out; then 19629 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out` 19630 { echo "$as_me:19630: WARNING: Some variables may not be substituted: 19631$ac_seen" >&5 19632echo "$as_me: WARNING: Some variables may not be substituted: 19633$ac_seen" >&2;} 19634 fi 19635 else 19636 cat $tmp/out 19637 fi 19638 rm -f $tmp/out 19639 19640done 19641EOF 19642cat >>$CONFIG_STATUS <<\EOF 19643 19644# 19645# CONFIG_HEADER section. 19646# 19647 19648# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 19649# NAME is the cpp macro being defined and VALUE is the value it is being given. 19650# 19651# ac_d sets the value in "#define NAME VALUE" lines. 19652ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 19653ac_dB='[ ].*$,\1#\2' 19654ac_dC=' ' 19655ac_dD=',;t' 19656# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 19657ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 19658ac_iB='\([ ]\),\1#\2define\3' 19659ac_iC=' ' 19660ac_iD='\4,;t' 19661# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 19662ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 19663ac_uB='$,\1#\2define\3' 19664ac_uC=' ' 19665ac_uD=',;t' 19666 19667for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 19668 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 19669 case $ac_file in 19670 - | *:- | *:-:* ) # input from stdin 19671 cat >$tmp/stdin 19672 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 19673 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 19674 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 19675 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 19676 * ) ac_file_in=$ac_file.in ;; 19677 esac 19678 19679 test x"$ac_file" != x- && { echo "$as_me:19679: creating $ac_file" >&5 19680echo "$as_me: creating $ac_file" >&6;} 19681 19682 # First look for the input files in the build tree, otherwise in the 19683 # src tree. 19684 ac_file_inputs=`IFS=: 19685 for f in $ac_file_in; do 19686 case $f in 19687 -) echo $tmp/stdin ;; 19688 [\\/$]*) 19689 # Absolute (can't be DOS-style, as IFS=:) 19690 test -f "$f" || { { echo "$as_me:19690: error: cannot find input file: $f" >&5 19691echo "$as_me: error: cannot find input file: $f" >&2;} 19692 { (exit 1); exit 1; }; } 19693 echo $f;; 19694 *) # Relative 19695 if test -f "$f"; then 19696 # Build tree 19697 echo $f 19698 elif test -f "$srcdir/$f"; then 19699 # Source tree 19700 echo $srcdir/$f 19701 else 19702 # /dev/null tree 19703 { { echo "$as_me:19703: error: cannot find input file: $f" >&5 19704echo "$as_me: error: cannot find input file: $f" >&2;} 19705 { (exit 1); exit 1; }; } 19706 fi;; 19707 esac 19708 done` || { (exit 1); exit 1; } 19709 # Remove the trailing spaces. 19710 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 19711 19712EOF 19713 19714# Transform confdefs.h into two sed scripts, `conftest.defines' and 19715# `conftest.undefs', that substitutes the proper values into 19716# config.h.in to produce config.h. The first handles `#define' 19717# templates, and the second `#undef' templates. 19718# And first: Protect against being on the right side of a sed subst in 19719# config.status. Protect against being in an unquoted here document 19720# in config.status. 19721rm -f conftest.defines conftest.undefs 19722# Using a here document instead of a string reduces the quoting nightmare. 19723# Putting comments in sed scripts is not portable. 19724# 19725# `end' is used to avoid that the second main sed command (meant for 19726# 0-ary CPP macros) applies to n-ary macro definitions. 19727# See the Autoconf documentation for `clear'. 19728cat >confdef2sed.sed <<\EOF 19729s/[\\&,]/\\&/g 19730s,[\\$`],\\&,g 19731t clear 19732: clear 19733s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp 19734t end 19735s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 19736: end 19737EOF 19738# If some macros were called several times there might be several times 19739# the same #defines, which is useless. Nevertheless, we may not want to 19740# sort them, since we want the *last* AC-DEFINE to be honored. 19741uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 19742sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 19743sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs 19744rm -f confdef2sed.sed 19745 19746# This sed command replaces #undef with comments. This is necessary, for 19747# example, in the case of _POSIX_SOURCE, which is predefined and required 19748# on some systems where configure will not decide to define it. 19749cat >>conftest.undefs <<\EOF 19750s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 19751EOF 19752 19753# Break up conftest.defines because some shells have a limit on the size 19754# of here documents, and old seds have small limits too (100 cmds). 19755echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 19756echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 19757echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 19758echo ' :' >>$CONFIG_STATUS 19759rm -f conftest.tail 19760while grep . conftest.defines >/dev/null 19761do 19762 # Write a limited-size here document to $tmp/defines.sed. 19763 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 19764 # Speed up: don't consider the non `#define' lines. 19765 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 19766 # Work around the forget-to-reset-the-flag bug. 19767 echo 't clr' >>$CONFIG_STATUS 19768 echo ': clr' >>$CONFIG_STATUS 19769 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 19770 echo 'CEOF 19771 sed -f $tmp/defines.sed $tmp/in >$tmp/out 19772 rm -f $tmp/in 19773 mv $tmp/out $tmp/in 19774' >>$CONFIG_STATUS 19775 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 19776 rm -f conftest.defines 19777 mv conftest.tail conftest.defines 19778done 19779rm -f conftest.defines 19780echo ' fi # egrep' >>$CONFIG_STATUS 19781echo >>$CONFIG_STATUS 19782 19783# Break up conftest.undefs because some shells have a limit on the size 19784# of here documents, and old seds have small limits too (100 cmds). 19785echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 19786rm -f conftest.tail 19787while grep . conftest.undefs >/dev/null 19788do 19789 # Write a limited-size here document to $tmp/undefs.sed. 19790 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 19791 # Speed up: don't consider the non `#undef' 19792 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 19793 # Work around the forget-to-reset-the-flag bug. 19794 echo 't clr' >>$CONFIG_STATUS 19795 echo ': clr' >>$CONFIG_STATUS 19796 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 19797 echo 'CEOF 19798 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 19799 rm -f $tmp/in 19800 mv $tmp/out $tmp/in 19801' >>$CONFIG_STATUS 19802 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 19803 rm -f conftest.undefs 19804 mv conftest.tail conftest.undefs 19805done 19806rm -f conftest.undefs 19807 19808cat >>$CONFIG_STATUS <<\EOF 19809 # Let's still pretend it is `configure' which instantiates (i.e., don't 19810 # use $as_me), people would be surprised to read: 19811 # /* config.h. Generated automatically by config.status. */ 19812 if test x"$ac_file" = x-; then 19813 echo "/* Generated automatically by configure. */" >$tmp/config.h 19814 else 19815 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 19816 fi 19817 cat $tmp/in >>$tmp/config.h 19818 rm -f $tmp/in 19819 if test x"$ac_file" != x-; then 19820 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 19821 { echo "$as_me:19821: $ac_file is unchanged" >&5 19822echo "$as_me: $ac_file is unchanged" >&6;} 19823 else 19824 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19825 X"$ac_file" : 'X\(//\)[^/]' \| \ 19826 X"$ac_file" : 'X\(//\)$' \| \ 19827 X"$ac_file" : 'X\(/\)' \| \ 19828 . : '\(.\)' 2>/dev/null || 19829echo X"$ac_file" | 19830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 19831 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 19832 /^X\(\/\/\)$/{ s//\1/; q; } 19833 /^X\(\/\).*/{ s//\1/; q; } 19834 s/.*/./; q'` 19835 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 19836 { case "$ac_dir" in 19837 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 19838 *) as_incr_dir=.;; 19839esac 19840as_dummy="$ac_dir" 19841for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 19842 case $as_mkdir_dir in 19843 # Skip DOS drivespec 19844 ?:) as_incr_dir=$as_mkdir_dir ;; 19845 *) 19846 as_incr_dir=$as_incr_dir/$as_mkdir_dir 19847 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 19848 ;; 19849 esac 19850done; } 19851 19852 fi 19853 rm -f $ac_file 19854 mv $tmp/config.h $ac_file 19855 fi 19856 else 19857 cat $tmp/config.h 19858 rm -f $tmp/config.h 19859 fi 19860done 19861EOF 19862 19863cat >>$CONFIG_STATUS <<\EOF 19864 19865{ (exit 0); exit 0; } 19866EOF 19867chmod +x $CONFIG_STATUS 19868ac_clean_files=$ac_clean_files_save 19869 19870# configure is writing to config.log, and then calls config.status. 19871# config.status does its own redirection, appending to config.log. 19872# Unfortunately, on DOS this fails, as config.log is still kept open 19873# by configure, so config.status won't be able to write to it; its 19874# output is simply discarded. So we exec the FD to /dev/null, 19875# effectively closing config.log, so it can be properly (re)opened and 19876# appended to by config.status. When coming back to configure, we 19877# need to make the FD available again. 19878if test "$no_create" != yes; then 19879 ac_cs_success=: 19880 exec 5>/dev/null 19881 $SHELL $CONFIG_STATUS || ac_cs_success=false 19882 exec 5>>config.log 19883 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19884 # would make configure fail if this is the last instruction. 19885 $ac_cs_success || { (exit 1); exit 1; } 19886fi 19887 19888