1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by Autoconf 2.52.20240618. 4# 5# Copyright 2003-2022,2023 Thomas E. Dickey 6# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 7# Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10 11# Avoid depending upon Character Ranges. 12as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15as_cr_digits='0123456789' 16as_cr_alnum=$as_cr_Letters$as_cr_digits 17 18# Sed expression to map a string onto a valid variable name. 19as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 20 21# Sed expression to map a string onto a valid CPP name. 22as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 23 24# Be Bourne compatible 25if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 26 emulate sh 27 NULLCMD=: 28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 29 set -o posix 30fi 31 32# Name of the executable. 33as_me=`echo "$0" |sed 's,.*[\\/],,'` 34 35if expr a : '\(a\)' >/dev/null 2>&1; then 36 as_expr="expr" 37else 38 as_expr="false" 39fi 40 41rm -f conf$$ conf$$.exe conf$$.file 42echo >conf$$.file 43if ln -s conf$$.file conf$$ 2>/dev/null; then 44 # We could just check for DJGPP; but this test a) works b) is more generic 45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 46 if test -f conf$$.exe; then 47 # Don't use ln at all; we don't have any links 48 as_ln_s='cp -p' 49 else 50 as_ln_s='ln -s' 51 fi 52elif ln conf$$.file conf$$ 2>/dev/null; then 53 as_ln_s='ln' 54else 55 as_ln_s='cp -p' 56fi 57rm -f conf$$ conf$$.exe conf$$.file 58 59as_executable_p="test -f" 60 61# Support unset when possible. 62if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 63 as_unset="unset" 64else 65 as_unset="false" 66fi 67 68# NLS nuisances. 69$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 70$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 71$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 72$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 73$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 74$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 75$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 76$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 77 78# IFS 79# We need space, tab and new line, in precisely that order. 80as_nl=' 81' 82IFS=" $as_nl" 83 84# CDPATH. 85$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 86 87# Name of the host. 88# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 89# so uname gets run too. 90ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 91 92exec 6>&1 93 94# 95# Initializations. 96# 97ac_default_prefix=/usr/local 98cross_compiling=no 99subdirs= 100MFLAGS= 101MAKEFLAGS= 102SHELL=${CONFIG_SHELL-/bin/sh} 103 104# Maximum number of lines to put in a shell here document. 105# This variable seems obsolete. It should probably be removed, and 106# only ac_max_sed_lines should be used. 107: "${ac_max_here_lines=38}" 108 109ac_unique_file="charproc.c" 110# Factoring default headers for most tests. 111ac_includes_default="\ 112#include <stdio.h> 113#if HAVE_SYS_TYPES_H 114# include <sys/types.h> 115#endif 116#if HAVE_SYS_STAT_H 117# include <sys/stat.h> 118#endif 119#if STDC_HEADERS 120# include <stdlib.h> 121# include <stddef.h> 122#else 123# if HAVE_STDLIB_H 124# include <stdlib.h> 125# endif 126#endif 127#if HAVE_STRING_H 128# if !STDC_HEADERS && HAVE_MEMORY_H 129# include <memory.h> 130# endif 131# include <string.h> 132#endif 133#if HAVE_STRINGS_H 134# include <strings.h> 135#endif 136#if HAVE_INTTYPES_H 137# include <inttypes.h> 138#else 139# if HAVE_STDINT_H 140# include <stdint.h> 141# endif 142#endif 143#if HAVE_UNISTD_H 144# include <unistd.h> 145#endif" 146 147# Initialize some variables set by options. 148ac_init_help= 149ac_init_version=false 150# The variables have the same names as the options, with 151# dashes changed to underlines. 152cache_file=/dev/null 153exec_prefix=NONE 154no_create= 155no_recursion= 156prefix=NONE 157program_prefix=NONE 158program_suffix=NONE 159program_transform_name=s,x,x, 160silent= 161site= 162srcdir= 163verbose= 164x_includes=NONE 165x_libraries=NONE 166 167# Installation directory options. 168# These are left unexpanded so users can "make install exec_prefix=/foo" 169# and all the variables that are supposed to be based on exec_prefix 170# by default will actually change. 171# Use braces instead of parens because sh, perl, etc. also accept them. 172bindir='${exec_prefix}/bin' 173sbindir='${exec_prefix}/sbin' 174libexecdir='${exec_prefix}/libexec' 175datarootdir='${prefix}/share' 176datadir='${datarootdir}' 177sysconfdir='${prefix}/etc' 178sharedstatedir='${prefix}/com' 179localstatedir='${prefix}/var' 180runstatedir='${localstatedir}/run' 181libdir='${exec_prefix}/lib' 182includedir='${prefix}/include' 183oldincludedir='/usr/include' 184infodir='${datarootdir}/info' 185mandir='${datarootdir}/man' 186 187# Identity of this package. 188PACKAGE_NAME= 189PACKAGE_TARNAME= 190PACKAGE_VERSION= 191PACKAGE_STRING= 192PACKAGE_BUGREPORT= 193 194ac_prev= 195for ac_option 196do 197 # If the previous option needs an argument, assign it. 198 if test -n "$ac_prev"; then 199 eval "$ac_prev=\$ac_option" 200 ac_prev= 201 continue 202 fi 203 204 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 205 206 # Accept the important Cygnus configure options, so we can diagnose typos. 207 208 case "$ac_option" in 209 210 -bindir | --bindir | --bindi | --bind | --bin | --bi) 211 ac_prev=bindir ;; 212 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 213 bindir=$ac_optarg ;; 214 215 -build | --build | --buil | --bui | --bu) 216 ac_prev=build_alias ;; 217 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 218 build_alias=$ac_optarg ;; 219 220 -cache-file | --cache-file | --cache-fil | --cache-fi \ 221 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 222 ac_prev=cache_file ;; 223 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 224 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 225 cache_file=$ac_optarg ;; 226 227 --config-cache | -C) 228 cache_file=config.cache ;; 229 230 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 231 ac_prev=datadir ;; 232 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 233 | --da=*) 234 datadir=$ac_optarg ;; 235 236 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 237 | --dataroo | --dataro | --datar) 238 ac_prev=datarootdir ;; 239 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 240 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 241 datarootdir=$ac_optarg ;; 242 243 -disable-* | --disable-*) 244 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 245 # Reject names that are not valid shell variable names. 246 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 247 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 248 { (exit 1); exit 1; }; } 249 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'` 250 eval "enable_$ac_feature=no" ;; 251 252 -enable-* | --enable-*) 253 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 254 # Reject names that are not valid shell variable names. 255 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 256 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 257 { (exit 1); exit 1; }; } 258 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'` 259 case "$ac_option" in 260 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 261 *) ac_optarg=yes ;; 262 esac 263 eval "enable_$ac_feature='$ac_optarg'" ;; 264 265 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 266 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 267 | --exec | --exe | --ex) 268 ac_prev=exec_prefix ;; 269 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 270 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 271 | --exec=* | --exe=* | --ex=*) 272 exec_prefix=$ac_optarg ;; 273 274 -gas | --gas | --ga | --g) 275 # Obsolete; use --with-gas. 276 with_gas=yes ;; 277 278 -help | --help | --hel | --he | -h) 279 ac_init_help=long ;; 280 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 281 ac_init_help=recursive ;; 282 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 283 ac_init_help=short ;; 284 285 -host | --host | --hos | --ho) 286 ac_prev=host_alias ;; 287 -host=* | --host=* | --hos=* | --ho=*) 288 host_alias=$ac_optarg ;; 289 290 -includedir | --includedir | --includedi | --included | --include \ 291 | --includ | --inclu | --incl | --inc) 292 ac_prev=includedir ;; 293 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 294 | --includ=* | --inclu=* | --incl=* | --inc=*) 295 includedir=$ac_optarg ;; 296 297 -infodir | --infodir | --infodi | --infod | --info | --inf) 298 ac_prev=infodir ;; 299 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 300 infodir=$ac_optarg ;; 301 302 -libdir | --libdir | --libdi | --libd) 303 ac_prev=libdir ;; 304 -libdir=* | --libdir=* | --libdi=* | --libd=*) 305 libdir=$ac_optarg ;; 306 307 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 308 | --libexe | --libex | --libe) 309 ac_prev=libexecdir ;; 310 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 311 | --libexe=* | --libex=* | --libe=*) 312 libexecdir=$ac_optarg ;; 313 314 -localstatedir | --localstatedir | --localstatedi | --localstated \ 315 | --localstate | --localstat | --localsta | --localst \ 316 | --locals | --local | --loca | --loc | --lo) 317 ac_prev=localstatedir ;; 318 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 319 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 320 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 321 localstatedir=$ac_optarg ;; 322 323 -runstatedir | --runstatedir | --runstatedi | --runstated \ 324 | --runstate | --runstat | --runsta | --runst \ 325 | --runs | --run | --ru) 326 ac_prev=runstatedir ;; 327 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 328 | --runstate=* | --runstat=* | --runsta=* | --runst=* \ 329 | --runs=* | --run=* | --ru=*) 330 runstatedir=$ac_optarg ;; 331 332 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 333 ac_prev=mandir ;; 334 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 335 mandir=$ac_optarg ;; 336 337 -nfp | --nfp | --nf) 338 # Obsolete; use --without-fp. 339 with_fp=no ;; 340 341 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 342 | --no-cr | --no-c) 343 no_create=yes ;; 344 345 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 346 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 347 no_recursion=yes ;; 348 349 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 350 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 351 | --oldin | --oldi | --old | --ol | --o) 352 ac_prev=oldincludedir ;; 353 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 354 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 355 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 356 oldincludedir=$ac_optarg ;; 357 358 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 359 ac_prev=prefix ;; 360 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 361 prefix=$ac_optarg ;; 362 363 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 364 | --program-pre | --program-pr | --program-p) 365 ac_prev=program_prefix ;; 366 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 367 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 368 program_prefix=$ac_optarg ;; 369 370 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 371 | --program-suf | --program-su | --program-s) 372 ac_prev=program_suffix ;; 373 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 374 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 375 program_suffix=$ac_optarg ;; 376 377 -program-transform-name | --program-transform-name \ 378 | --program-transform-nam | --program-transform-na \ 379 | --program-transform-n | --program-transform- \ 380 | --program-transform | --program-transfor \ 381 | --program-transfo | --program-transf \ 382 | --program-trans | --program-tran \ 383 | --progr-tra | --program-tr | --program-t) 384 ac_prev=program_transform_name ;; 385 -program-transform-name=* | --program-transform-name=* \ 386 | --program-transform-nam=* | --program-transform-na=* \ 387 | --program-transform-n=* | --program-transform-=* \ 388 | --program-transform=* | --program-transfor=* \ 389 | --program-transfo=* | --program-transf=* \ 390 | --program-trans=* | --program-tran=* \ 391 | --progr-tra=* | --program-tr=* | --program-t=*) 392 program_transform_name=$ac_optarg ;; 393 394 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 395 | -silent | --silent | --silen | --sile | --sil) 396 silent=yes ;; 397 398 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 399 ac_prev=sbindir ;; 400 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 401 | --sbi=* | --sb=*) 402 sbindir=$ac_optarg ;; 403 404 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 405 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 406 | --sharedst | --shareds | --shared | --share | --shar \ 407 | --sha | --sh) 408 ac_prev=sharedstatedir ;; 409 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 410 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 411 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 412 | --sha=* | --sh=*) 413 sharedstatedir=$ac_optarg ;; 414 415 -site | --site | --sit) 416 ac_prev=site ;; 417 -site=* | --site=* | --sit=*) 418 site=$ac_optarg ;; 419 420 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 421 ac_prev=srcdir ;; 422 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 423 srcdir=$ac_optarg ;; 424 425 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 426 | --syscon | --sysco | --sysc | --sys | --sy) 427 ac_prev=sysconfdir ;; 428 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 429 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 430 sysconfdir=$ac_optarg ;; 431 432 -target | --target | --targe | --targ | --tar | --ta | --t) 433 ac_prev=target_alias ;; 434 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 435 target_alias=$ac_optarg ;; 436 437 -v | -verbose | --verbose | --verbos | --verbo | --verb) 438 verbose=yes ;; 439 440 -version | --version | --versio | --versi | --vers | -V) 441 ac_init_version=: ;; 442 443 -with-* | --with-*) 444 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 445 # Reject names that are not valid shell variable names. 446 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 447 { echo "$as_me: error: invalid package name: $ac_package" >&2 448 { (exit 1); exit 1; }; } 449 ac_package=`echo "$ac_package" | sed 's/-/_/g'` 450 case "$ac_option" in 451 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 452 *) ac_optarg=yes ;; 453 esac 454 eval "with_$ac_package='$ac_optarg'" ;; 455 456 -without-* | --without-*) 457 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 458 # Reject names that are not valid shell variable names. 459 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 460 { echo "$as_me: error: invalid package name: $ac_package" >&2 461 { (exit 1); exit 1; }; } 462 ac_package=`echo "$ac_package" | sed 's/-/_/g'` 463 eval "with_$ac_package=no" ;; 464 465 --x) 466 # Obsolete; use --with-x. 467 with_x=yes ;; 468 469 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 470 | --x-incl | --x-inc | --x-in | --x-i) 471 ac_prev=x_includes ;; 472 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 473 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 474 x_includes=$ac_optarg ;; 475 476 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 477 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 478 ac_prev=x_libraries ;; 479 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 480 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 481 x_libraries=$ac_optarg ;; 482 483 -*dir | -dvi* | -doc* | -html* | -local* | -pdf* | -ps* ) 484 echo "$as_me: WARNING: unsupported option: $ac_option" >&2 485 ;; 486 487 -*) { echo "$as_me: error: unrecognized option: $ac_option 488Try \`$0 --help' for more information." >&2 489 { (exit 1); exit 1; }; } 490 ;; 491 492 *=*) 493 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 494 # Reject names that are not valid shell variable names. 495 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 496 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 497 { (exit 1); exit 1; }; } 498 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 499 eval "$ac_envvar='$ac_optarg'" 500 export "$ac_envvar" ;; 501 502 *) 503 # FIXME: should be removed in autoconf 3.0. 504 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 505 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 506 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 507 : "${build_alias=$ac_option}" "${host_alias=$ac_option}" "${target_alias=$ac_option}" 508 ;; 509 510 esac 511done 512 513if test -n "$ac_prev"; then 514 ac_option=--`echo "$ac_prev" | sed 's/_/-/g'` 515 { echo "$as_me: error: missing argument to $ac_option" >&2 516 { (exit 1); exit 1; }; } 517fi 518 519# Be sure to have absolute paths. 520for ac_var in exec_prefix prefix 521do 522 eval ac_val=$`echo "$ac_var"` 523 case "$ac_val" in 524 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 525 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 526 { (exit 1); exit 1; }; };; 527 esac 528done 529 530# Be sure to have absolute paths. 531for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \ 532 localstatedir libdir includedir oldincludedir infodir mandir 533do 534 eval ac_val=$`echo "$ac_var"` 535 case "$ac_val" in 536 [\\/$]* | ?:[\\/]* ) ;; 537 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 538 { (exit 1); exit 1; }; };; 539 esac 540done 541 542# There might be people who depend on the old broken behavior: `$host' 543# used to hold the argument of --host etc. 544build=$build_alias 545host=$host_alias 546target=$target_alias 547 548# FIXME: should be removed in autoconf 3.0. 549if test "x$host_alias" != x; then 550 if test "x$build_alias" = x; then 551 cross_compiling=maybe 552 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 553 If a cross compiler is detected then cross compile mode will be used." >&2 554 elif test "x$build_alias" != "x$host_alias"; then 555 cross_compiling=yes 556 fi 557fi 558 559ac_tool_prefix= 560test -n "$host_alias" && ac_tool_prefix=$host_alias- 561 562test "$silent" = yes && exec 6>/dev/null 563 564# Find the source files, if location was not specified. 565if test -z "$srcdir"; then 566 ac_srcdir_defaulted=yes 567 # Try the directory containing this script, then its parent. 568 ac_prog=$0 569 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` 570 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 571 srcdir=$ac_confdir 572 if test ! -r "$srcdir/$ac_unique_file"; then 573 srcdir=.. 574 fi 575else 576 ac_srcdir_defaulted=no 577fi 578if test ! -r "$srcdir/$ac_unique_file"; then 579 if test "$ac_srcdir_defaulted" = yes; then 580 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 581 { (exit 1); exit 1; }; } 582 else 583 { echo "$as_me: error: cannot find sources in $srcdir" >&2 584 { (exit 1); exit 1; }; } 585 fi 586fi 587srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 588ac_env_build_alias_set=${build_alias+set} 589ac_env_build_alias_value=$build_alias 590ac_cv_env_build_alias_set=${build_alias+set} 591ac_cv_env_build_alias_value=$build_alias 592ac_env_host_alias_set=${host_alias+set} 593ac_env_host_alias_value=$host_alias 594ac_cv_env_host_alias_set=${host_alias+set} 595ac_cv_env_host_alias_value=$host_alias 596ac_env_target_alias_set=${target_alias+set} 597ac_env_target_alias_value=$target_alias 598ac_cv_env_target_alias_set=${target_alias+set} 599ac_cv_env_target_alias_value=$target_alias 600ac_env_CC_set=${CC+set} 601ac_env_CC_value=$CC 602ac_cv_env_CC_set=${CC+set} 603ac_cv_env_CC_value=$CC 604ac_env_CFLAGS_set=${CFLAGS+set} 605ac_env_CFLAGS_value=$CFLAGS 606ac_cv_env_CFLAGS_set=${CFLAGS+set} 607ac_cv_env_CFLAGS_value=$CFLAGS 608ac_env_LDFLAGS_set=${LDFLAGS+set} 609ac_env_LDFLAGS_value=$LDFLAGS 610ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 611ac_cv_env_LDFLAGS_value=$LDFLAGS 612ac_env_CPPFLAGS_set=${CPPFLAGS+set} 613ac_env_CPPFLAGS_value=$CPPFLAGS 614ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 615ac_cv_env_CPPFLAGS_value=$CPPFLAGS 616ac_env_CPP_set=${CPP+set} 617ac_env_CPP_value=$CPP 618ac_cv_env_CPP_set=${CPP+set} 619ac_cv_env_CPP_value=$CPP 620 621# 622# Report the --help message. 623# 624if test "$ac_init_help" = "long"; then 625 # Omit some internal or obsolete options to make the list less imposing. 626 # This message is too long to be a string in the A/UX 3.1 sh. 627 cat <<EOF 628\`configure' configures this package to adapt to many kinds of systems. 629 630Usage: $0 [OPTION]... [VAR=VALUE]... 631 632To assign environment variables (e.g., CC, CFLAGS...), specify them as 633VAR=VALUE. See below for descriptions of some of the useful variables. 634 635Defaults for the options are specified in brackets. 636 637Configuration: 638 -h, --help display this help and exit 639 --help=short display options specific to this package 640 --help=recursive display the short help of all the included packages 641 -V, --version display version information and exit 642 -q, --quiet, --silent do not print \`checking...' messages 643 --cache-file=FILE cache test results in FILE [disabled] 644 -C, --config-cache alias for \`--cache-file=config.cache' 645 -n, --no-create do not create output files 646 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 647 648EOF 649 650 cat <<EOF 651Installation directories: 652 --prefix=PREFIX install architecture-independent files in PREFIX 653 [$ac_default_prefix] 654 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 655 [PREFIX] 656 657By default, \`make install' will install all the files in 658\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 659an installation prefix other than \`$ac_default_prefix' using \`--prefix', 660for instance \`--prefix=\$HOME'. 661 662For better control, use the options below. 663 664Fine tuning of the installation directories: 665 --bindir=DIR user executables [EPREFIX/bin] 666 --sbindir=DIR system admin executables [EPREFIX/sbin] 667 --libexecdir=DIR program executables [EPREFIX/libexec] 668 --datarootdir=DIR read-only architecture-independent data [PREFIX/share] 669 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 670 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 671 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 672 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 673 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run] 674 --libdir=DIR object code libraries [EPREFIX/lib] 675 --includedir=DIR C header files [PREFIX/include] 676 --oldincludedir=DIR C header files for non-gcc [/usr/include] 677 --infodir=DIR info documentation [DATAROOTDIR/info] 678 --mandir=DIR man documentation [DATAROOTDIR/man] 679EOF 680 681 cat <<\EOF 682 683Program names: 684 --program-prefix=PREFIX prepend PREFIX to installed program names 685 --program-suffix=SUFFIX append SUFFIX to installed program names 686 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 687 688X features: 689 --x-includes=DIR X include files are in DIR 690 --x-libraries=DIR X library files are in DIR 691 692System types: 693 --build=BUILD configure for building on BUILD [guessed] 694 --host=HOST build programs to run on HOST [BUILD] 695 --target=TARGET configure for building compilers for TARGET [HOST] 696EOF 697fi 698 699if test -n "$ac_init_help"; then 700 701 cat <<\EOF 702 703Optional Features: 704 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 705 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 706 707Optional Packages: 708 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 709 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 710 711Compile/Install Options: 712 --disable-full-tgetent disable check for full tgetent function 713 --with-app-class=XXX override X applications class (default XTerm) 714 --with-app-defaults=DIR directory in which to install resource files (EPREFIX/lib/X11/app-defaults) 715 --with-system-type=XXX test: override derived host system-type 716 --with-icon-name[=XXX] override icon name (default: mini.xterm) 717 --with-icon-symlink[=XXX] make symbolic link for icon name (default: xterm) 718 --with-pixmapdir=DIR directory in which to install pixmaps (DATADIR/pixmaps) 719 --with-icondir=DIR directory in which to install icons for desktop 720 --with-icon-theme[=XXX] install icons into desktop theme (hicolor) 721 --disable-desktop disable install of xterm desktop files 722 --with-desktop-category=XXX one or more desktop categories or auto 723 --with-reference=XXX program to use as permissions-reference 724 --with-xterm-symlink[=XXX] make symbolic link to installed xterm 725 --disable-openpty disable openpty, prefer other interfaces 726 --disable-setuid disable setuid in xterm, do not install setuid/setgid 727 --disable-setgid disable setgid in xterm, do not install setuid/setgid 728 --with-setuid[=XXX] use the given setuid user 729 --with-utmp-setgid[=XXX] use setgid to match utmp/utmpx file 730 --with-utempter use utempter library for access to utmp 731 --with-utmp-path=XXX use XXX rather than auto for utmp path 732 --with-wtmp-path=XXX use XXX rather than auto for wtmp path 733 --with-tty-group[=XXX] use XXX for the tty-group 734 --with-x use the X Window System 735 --with-pkg-config[=CMD] enable/disable use of pkg-config and its name CMD 736 --with-xpm[=DIR] use Xpm library for colored icon, may specify path 737 --without-xinerama do not use Xinerama extension for multiscreen support 738 --with-Xaw3d link with Xaw 3d library 739 --with-Xaw3dxft link with Xaw 3d xft library 740 --with-neXtaw link with neXT Athena library 741 --with-XawPlus link with Athena-Plus library 742 --disable-xcursor disable cursorTheme resource 743 --enable-narrowproto enable narrow prototypes for X libraries 744 --enable-imake enable use of imake for definitions 745 --with-man2html[=XXX] use XXX rather than groff 746Terminal Configuration: 747 --with-terminal-id=V set default decTerminalID (default: vt420) 748 --with-terminal-type=T set default $TERM (default: xterm) 749 --enable-backarrow-key set default backarrowKey resource (default: true) 750 --enable-backarrow-is-erase set default backarrowKeyIsErase resource (default: false) 751 --enable-delete-is-del set default deleteIsDEL resource (default: maybe) 752 --enable-pty-erase set default ptyInitialErase resource (default: maybe) 753 --enable-alt-sends-esc set default altSendsEscape resource (default: no) 754 --enable-meta-sends-esc set default metaSendsEscape resource (default: no) 755 --with-own-terminfo[=P] set default $TERMINFO (default: from environment) 756 --enable-env-terminfo setenv $TERMINFO if --with-own-terminfo gives value 757Optional Features: 758 --disable-active-icon disable X11R6.3 active-icon feature 759 --disable-ansi-color disable ANSI color 760 --disable-16-color disable 16-color support 761 --disable-256-color disable 256-color support 762 --disable-direct-color disable direct-color support 763 --disable-88-color disable 88-color support 764 --disable-blink-cursor disable support for blinking cursor 765 --enable-block-select meta-button1 begins block-selection 766 --enable-broken-osc allow broken Linux OSC-strings 767 --disable-broken-st disallow broken string-terminators 768 --enable-builtin-xpms compile-in icon data 769 --disable-c1-print disallow -k8 option for printable 128-159 770 --disable-bold-color disable PC-style mapping of bold colors 771 --disable-color-class disable separate color class resources 772 --disable-color-mode disable default colorMode resource 773 --disable-highlighting disable support for color highlighting 774 --disable-doublechars disable support for double-size chars 775 --disable-boxchars disable fallback-support for box chars 776 --disable-exec-selection disable "exec-formatted" and "exec-selection" actions 777 --enable-exec-xterm enable "spawn-new-terminal" action 778 --enable-double-buffer enable double-buffering in default resources 779 --disable-freetype disable freetype library-support 780 --with-freetype-config configure script to use for FreeType 781 --with-freetype-cflags -D/-I options for compiling with FreeType 782 --with-freetype-libs -L/-l options to link FreeType 783 --enable-hp-fkeys enable support for HP-style function keys 784 --enable-sco-fkeys enable support for SCO-style function keys 785 --disable-sun-fkeys disable support for Sun-style function keys 786 --disable-fifo-lines disable FIFO-storage for saved-lines 787 --disable-i18n disable internationalization 788 --disable-initial-erase disable setup for stty erase 789 --disable-input-method disable input-method 790 --enable-load-vt-fonts enable load-vt-fonts() action 791 --enable-logging enable logging 792 --enable-logfile-exec enable exec'd logfile filter 793 --disable-maximize disable actions for iconify/deiconify/maximize/restore 794 --disable-num-lock disable NumLock keypad support 795 --disable-paste64 disable get/set base64 selection data 796 --disable-pty-handshake disable pty-handshake support 797 --disable-readline-mouse disable support for mouse in readline applications 798 --disable-regex disable regular-expression selections 799 --with-pcre2 use PCRE2 for regular-expressions 800 --with-pcre use PCRE for regular-expressions 801 --disable-rightbar disable right-scrollbar support 802 --disable-samename disable check for redundant name-change 803 --disable-selection-ops disable selection-action operations 804 --disable-session-mgt disable support for session management 805 --enable-status-line enable support for status-line 806 --disable-tcap-fkeys disable termcap function-keys support 807 --disable-tcap-query disable compiled-in termcap-query support 808 --disable-tek4014 disable tek4014 emulation 809 --enable-toolbar compile-in toolbar for pulldown menus 810 --disable-vt52 disable VT52 emulation 811 --disable-wide-attrs disable wide-attribute support 812 --disable-wide-chars disable wide-character support 813 --enable-16bit-chars enable 16-bit character support 814 --enable-mini-luit enable mini-luit (built-in Latin9 support) 815 --disable-luit enable luit filter (Unicode translation) 816 --enable-dabbrev enable dynamic-abbreviation support 817 --enable-dec-locator enable DECterm Locator support 818 --disable-screen-dumps disable XHTML and SVG screen dumps 819 --enable-regis-graphics enable ReGIS graphics support 820 --disable-sixel-graphics disable sixel graphics support 821 --disable-print-graphics disable screen dump to sixel support 822 --disable-rectangles disable VT420 rectangle support 823 --disable-ziconbeep disable -ziconbeep option 824Testing/development Options: 825 --enable-trace test: set to enable debugging traces 826 --with-dmalloc test: use Gray Watson's dmalloc library 827 --with-dbmalloc test: use Conor Cahill's dbmalloc library 828 --with-valgrind test: use valgrind 829 --disable-leaks test: free permanent memory, analyze leaks 830 --disable-echo do not display "compiling" commands 831 --enable-xmc-glitch test: enable xmc magic-cookie emulation 832 --enable-warnings test: turn on gcc compiler warnings 833 --enable-stdnoreturn enable C11 _Noreturn feature for diagnostics 834 --disable-rpath-hack don't add rpath options for additional libraries 835 836Some influential environment variables: 837 CC C compiler command 838 CFLAGS C compiler flags 839 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 840 nonstandard directory <lib dir> 841 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 842 headers in a nonstandard directory <include dir> 843 CPP C preprocessor 844 845Use these variables to override the choices made by `configure' or to help 846it to find libraries and programs with nonstandard names/locations. 847 848EOF 849fi 850 851if test "$ac_init_help" = "recursive"; then 852 # If there are subdirs, report their specific --help. 853 ac_popdir=`pwd` 854 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 855 cd "$ac_subdir" 856 # A "../" for each directory in /$ac_subdir. 857 ac_dots=`echo "$ac_subdir" | 858 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 859 860 case "$srcdir" in 861 .) # No --srcdir option. We are building in place. 862 ac_sub_srcdir="$srcdir" ;; 863 [\\/]* | ?:[\\/]* ) # Absolute path. 864 ac_sub_srcdir="$srcdir/$ac_subdir" ;; 865 *) # Relative path. 866 ac_sub_srcdir="$ac_dots$srcdir/$ac_subdir" ;; 867 esac 868 869 # Check for guested configure; otherwise get Cygnus style configure. 870 if test -f "$ac_sub_srcdir/configure.gnu"; then 871 echo 872 $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive 873 elif test -f "$ac_sub_srcdir/configure"; then 874 echo 875 $SHELL "$ac_sub_srcdir/configure" --help=recursive 876 elif test -f "$ac_sub_srcdir/configure.ac" || 877 test -f "$ac_sub_srcdir/configure.in"; then 878 echo 879 "$ac_configure" --help 880 else 881 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 882 fi 883 cd "$ac_popdir" 884 done 885fi 886 887test -n "$ac_init_help" && exit 0 888if "$ac_init_version"; then 889 cat <<\EOF 890 891Copyright 2003-2022,2023 Thomas E. Dickey 892Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 893Free Software Foundation, Inc. 894This configure script is free software; the Free Software Foundation 895gives unlimited permission to copy, distribute and modify it. 896EOF 897 exit 0 898fi 899exec 5>config.log 900cat >&5 <<EOF 901This file contains any messages produced by compilers while 902running configure, to aid debugging if configure makes a mistake. 903 904It was created by $as_me, which was 905generated by GNU Autoconf 2.52.20240618. Invocation command line was 906 907 $ $0 $@ 908 909EOF 910{ 911cat <<_ASUNAME 912## ---------- ## 913## Platform. ## 914## ---------- ## 915 916hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 917uname -m = `(uname -m) 2>/dev/null || echo unknown` 918uname -r = `(uname -r) 2>/dev/null || echo unknown` 919uname -s = `(uname -s) 2>/dev/null || echo unknown` 920uname -v = `(uname -v) 2>/dev/null || echo unknown` 921 922/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 923/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 924 925/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 926/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 927/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 928hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 929/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 930/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 931/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 932 933PATH = $PATH 934 935_ASUNAME 936} >&5 937 938cat >&5 <<EOF 939## ------------ ## 940## Core tests. ## 941## ------------ ## 942 943EOF 944 945# Keep a trace of the command line. 946# Strip out --no-create and --no-recursion so they do not pile up. 947# Also quote any args containing shell meta-characters. 948ac_configure_args= 949ac_sep= 950for ac_arg 951do 952 case "$ac_arg" in 953 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 954 | --no-cr | --no-c) ;; 955 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 956 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 957 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 958 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 959 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 960 ac_sep=" " ;; 961 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 962 ac_sep=" " ;; 963 esac 964 # Get rid of the leading space. 965done 966 967# When interrupted or exit'd, cleanup temporary files, and complete 968# config.log. We remove comments because anyway the quotes in there 969# would cause problems or look ugly. 970trap 'exit_status=$? 971 # Save into config.log some information that might help in debugging. 972 echo >&5 973 echo "## ----------------- ##" >&5 974 echo "## Cache variables. ##" >&5 975 echo "## ----------------- ##" >&5 976 echo >&5 977 # The following way of writing the cache mishandles newlines in values, 978{ 979 (set) 2>&1 | 980 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 981 *ac_space=\ *) 982 sed -n \ 983 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 984 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 985 ;; 986 *) 987 sed -n \ 988 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 989 ;; 990 esac; 991} >&5 992 sed "/^$/d" confdefs.h >conftest.log 993 if test -s conftest.log; then 994 echo >&5 995 echo "## ------------ ##" >&5 996 echo "## confdefs.h. ##" >&5 997 echo "## ------------ ##" >&5 998 echo >&5 999 cat conftest.log >&5 1000 fi 1001 (echo; echo) >&5 1002 test "$ac_signal" != 0 && 1003 echo "$as_me: caught signal $ac_signal" >&5 1004 echo "$as_me: exit $exit_status" >&5 1005 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 1006 exit $exit_status 1007 ' 0 1008for ac_signal in 1 2 13 15; do 1009 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' "$ac_signal" 1010done 1011ac_signal=0 1012 1013# confdefs.h avoids OS command line length limits that DEFS can exceed. 1014rm -rf conftest* confdefs.h 1015# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1016echo >confdefs.h 1017 1018# Let the site file select an alternate cache file if it wants to. 1019# Prefer explicitly selected file to automatically selected ones. 1020if test -z "$CONFIG_SITE"; then 1021 if test "x$prefix" != xNONE; then 1022 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1023 else 1024 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1025 fi 1026fi 1027for ac_site_file in $CONFIG_SITE; do 1028 if test -r "$ac_site_file"; then 1029 { echo "$as_me:1029: loading site script $ac_site_file" >&5 1030echo "$as_me: loading site script $ac_site_file" >&6;} 1031 cat "$ac_site_file" >&5 1032 . "$ac_site_file" 1033 fi 1034done 1035 1036if test -r "$cache_file"; then 1037 # Some versions of bash will fail to source /dev/null (special 1038 # files actually), so we avoid doing that. 1039 if test -f "$cache_file"; then 1040 { echo "$as_me:1040: loading cache $cache_file" >&5 1041echo "$as_me: loading cache $cache_file" >&6;} 1042 case $cache_file in 1043 [\\/]* | ?:[\\/]* ) . $cache_file;; 1044 *) . ./$cache_file;; 1045 esac 1046 fi 1047else 1048 { echo "$as_me:1048: creating cache $cache_file" >&5 1049echo "$as_me: creating cache $cache_file" >&6;} 1050 >$cache_file 1051fi 1052 1053# Check that the precious variables saved in the cache have kept the same 1054# value. 1055ac_cache_corrupted=false 1056for ac_var in `(set) 2>&1 | 1057 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1058 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1059 eval ac_new_set=\$ac_env_${ac_var}_set 1060 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1061 eval ac_new_val="\$ac_env_${ac_var}_value" 1062 case "$ac_old_set,$ac_new_set" in 1063 set,) 1064 { echo "$as_me:1064: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1065echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1066 ac_cache_corrupted=: ;; 1067 ,set) 1068 { echo "$as_me:1068: error: \`$ac_var' was not set in the previous run" >&5 1069echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1070 ac_cache_corrupted=: ;; 1071 ,);; 1072 *) 1073 if test "x$ac_old_val" != "x$ac_new_val"; then 1074 { echo "$as_me:1074: error: \`$ac_var' has changed since the previous run:" >&5 1075echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1076 { echo "$as_me:1076: former value: $ac_old_val" >&5 1077echo "$as_me: former value: $ac_old_val" >&2;} 1078 { echo "$as_me:1078: current value: $ac_new_val" >&5 1079echo "$as_me: current value: $ac_new_val" >&2;} 1080 ac_cache_corrupted=: 1081 fi;; 1082 esac 1083 # Pass precious variables to config.status. It doesn't matter if 1084 # we pass some twice (in addition to the command line arguments). 1085 if test "$ac_new_set" = set; then 1086 case "$ac_new_val" in 1087 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1088 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` 1089 ac_configure_args="$ac_configure_args '$ac_arg'" 1090 ;; 1091 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" 1092 ;; 1093 esac 1094 fi 1095done 1096if "$ac_cache_corrupted"; then 1097 { echo "$as_me:1097: error: changes in the environment can compromise the build" >&5 1098echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1099 { { echo "$as_me:1099: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1100echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1101 { (exit 1); exit 1; }; } 1102fi 1103 1104ac_ext=c 1105ac_cpp='$CPP $CPPFLAGS' 1106ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 1107ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 1108ac_compiler_gnu=$ac_cv_c_compiler_gnu 1109ac_main_return="return" 1110 1111case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in 1112 *c*,-n*) ECHO_N= 1113 ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway 1114 ECHO_T=' ' 1115 ;; 1116 *c*,* ) ECHO_N=-n 1117 ECHO_C= 1118 ECHO_T= 1119 ;; 1120 *) ECHO_N= 1121 ECHO_C='\c' 1122 ECHO_T= 1123 ;; 1124esac 1125echo "#! $SHELL" >conftest.sh 1126echo "exit 0" >>conftest.sh 1127chmod +x conftest.sh 1128if { (echo "$as_me:1128: PATH=\".;.\"; conftest.sh") >&5 1129 (PATH=".;."; conftest.sh) 2>&5 1130 ac_status=$? 1131 echo "$as_me:1131: \$? = $ac_status" >&5 1132 (exit "$ac_status"); }; then 1133 ac_path_separator=';' 1134else 1135 ac_path_separator=: 1136fi 1137PATH_SEPARATOR="$ac_path_separator" 1138rm -f conftest.sh 1139 1140ac_config_headers="$ac_config_headers xtermcfg.h:xtermcfg.hin" 1141 1142ac_aux_dir= 1143for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1144 if test -f "$ac_dir/install-sh"; then 1145 ac_aux_dir=$ac_dir 1146 ac_install_sh="$ac_aux_dir/install-sh -c" 1147 break 1148 elif test -f "$ac_dir/install.sh"; then 1149 ac_aux_dir=$ac_dir 1150 ac_install_sh="$ac_aux_dir/install.sh -c" 1151 break 1152 elif test -f "$ac_dir/shtool"; then 1153 ac_aux_dir=$ac_dir 1154 ac_install_sh="$ac_aux_dir/shtool install -c" 1155 break 1156 fi 1157done 1158if test -z "$ac_aux_dir"; then 1159 { { echo "$as_me:1159: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1160echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1161 { (exit 1); exit 1; }; } 1162fi 1163ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1164ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1165ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1166 1167# Make sure we can run config.sub. 1168$ac_config_sub sun4 >/dev/null 2>&1 || 1169 { { echo "$as_me:1169: error: cannot run $ac_config_sub" >&5 1170echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1171 { (exit 1); exit 1; }; } 1172 1173echo "$as_me:1173: checking build system type" >&5 1174echo $ECHO_N "checking build system type... $ECHO_C" >&6 1175if test "${ac_cv_build+set}" = set; then 1176 echo $ECHO_N "(cached) $ECHO_C" >&6 1177else 1178 ac_cv_build_alias=$build_alias 1179test -z "$ac_cv_build_alias" && 1180 ac_cv_build_alias=`$ac_config_guess` 1181test -z "$ac_cv_build_alias" && 1182 { { echo "$as_me:1182: error: cannot guess build type; you must specify one" >&5 1183echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1184 { (exit 1); exit 1; }; } 1185ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` || 1186 { { echo "$as_me:1186: error: $ac_config_sub $ac_cv_build_alias failed." >&5 1187echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} 1188 { (exit 1); exit 1; }; } 1189 1190fi 1191echo "$as_me:1191: result: $ac_cv_build" >&5 1192echo "${ECHO_T}$ac_cv_build" >&6 1193build=$ac_cv_build 1194build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1195build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1196build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1197 1198if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then 1199 echo "$as_me:1199: checking host system type" >&5 1200echo $ECHO_N "checking host system type... $ECHO_C" >&6 1201if test "${ac_cv_host+set}" = set; then 1202 echo $ECHO_N "(cached) $ECHO_C" >&6 1203else 1204 ac_cv_host_alias=$host_alias 1205test -z "$ac_cv_host_alias" && 1206 ac_cv_host_alias=$ac_cv_build_alias 1207ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` || 1208 { { echo "$as_me:1208: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1209echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1210 { (exit 1); exit 1; }; } 1211 1212fi 1213echo "$as_me:1213: result: $ac_cv_host" >&5 1214echo "${ECHO_T}$ac_cv_host" >&6 1215host=$ac_cv_host 1216host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1217host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1218host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1219 1220 system_name="$host_os" 1221else 1222 system_name="`(uname -s -r) 2>/dev/null`" 1223 if test -z "$system_name" ; then 1224 system_name="`(hostname) 2>/dev/null`" 1225 fi 1226fi 1227test -n "$system_name" && 1228cat >>confdefs.h <<EOF 1229#define SYSTEM_NAME "$system_name" 1230EOF 1231 1232if test "${cf_cv_system_name+set}" = set; then 1233 echo $ECHO_N "(cached) $ECHO_C" >&6 1234else 1235 cf_cv_system_name="$system_name" 1236fi 1237 1238test -z "$system_name" && system_name="$cf_cv_system_name" 1239test -n "$cf_cv_system_name" && echo "$as_me:1239: result: Configuring for $cf_cv_system_name" >&5 1240echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6 1241 1242if test ".$system_name" != ".$cf_cv_system_name" ; then 1243 echo "$as_me:1243: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5 1244echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6 1245 { { echo "$as_me:1245: error: \"Please remove config.cache and try again.\"" >&5 1246echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;} 1247 { (exit 1); exit 1; }; } 1248fi 1249 1250### checks for alternative programs 1251 1252case "$host_os" in 1253(openedition) : "${CFLAGS=\"-O2 -Wc,dll -Wl,EDIT=NO\"}" 1254 : "${CPPFLAGS=\"-D_ALL_SOURCE\"}" 1255 : "${LIBS=\"/usr/lib/Xaw.x /usr/lib/SM.x /usr/lib/ICE.x /usr/lib/X11.x\"}" 1256 : "${CC=c89}";; 1257(darwin*) 1258 : "${LDFLAGS}=\"${LDFLAGS} -Wl,-bind_at_load\"";; 1259esac 1260 1261ac_ext=c 1262ac_cpp='$CPP $CPPFLAGS' 1263ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 1264ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 1265ac_compiler_gnu=$ac_cv_c_compiler_gnu 1266ac_main_return="return" 1267if test -n "$ac_tool_prefix"; then 1268 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1269set dummy ${ac_tool_prefix}gcc; ac_word=$2 1270echo "$as_me:1270: checking for $ac_word" >&5 1271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1272if test "${ac_cv_prog_CC+set}" = set; then 1273 echo $ECHO_N "(cached) $ECHO_C" >&6 1274else 1275 if test -n "$CC"; then 1276 ac_cv_prog_CC="$CC" # Let the user override the test. 1277else 1278 ac_save_IFS=$IFS; IFS=$ac_path_separator 1279ac_dummy="$PATH" 1280for ac_dir in $ac_dummy; do 1281 IFS=$ac_save_IFS 1282 test -z "$ac_dir" && ac_dir=. 1283 $as_executable_p "$ac_dir/$ac_word" || continue 1284ac_cv_prog_CC="${ac_tool_prefix}gcc" 1285echo "$as_me:1285: found $ac_dir/$ac_word" >&5 1286break 1287done 1288 1289fi 1290fi 1291CC=$ac_cv_prog_CC 1292if test -n "$CC"; then 1293 echo "$as_me:1293: result: $CC" >&5 1294echo "${ECHO_T}$CC" >&6 1295else 1296 echo "$as_me:1296: result: no" >&5 1297echo "${ECHO_T}no" >&6 1298fi 1299 1300fi 1301if test -z "$ac_cv_prog_CC"; then 1302 ac_ct_CC=$CC 1303 # Extract the first word of "gcc", so it can be a program name with args. 1304set dummy gcc; ac_word=$2 1305echo "$as_me:1305: checking for $ac_word" >&5 1306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1307if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1308 echo $ECHO_N "(cached) $ECHO_C" >&6 1309else 1310 if test -n "$ac_ct_CC"; then 1311 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1312else 1313 ac_save_IFS=$IFS; IFS=$ac_path_separator 1314ac_dummy="$PATH" 1315for ac_dir in $ac_dummy; do 1316 IFS=$ac_save_IFS 1317 test -z "$ac_dir" && ac_dir=. 1318 $as_executable_p "$ac_dir/$ac_word" || continue 1319ac_cv_prog_ac_ct_CC="gcc" 1320echo "$as_me:1320: found $ac_dir/$ac_word" >&5 1321break 1322done 1323 1324fi 1325fi 1326ac_ct_CC=$ac_cv_prog_ac_ct_CC 1327if test -n "$ac_ct_CC"; then 1328 echo "$as_me:1328: result: $ac_ct_CC" >&5 1329echo "${ECHO_T}$ac_ct_CC" >&6 1330else 1331 echo "$as_me:1331: result: no" >&5 1332echo "${ECHO_T}no" >&6 1333fi 1334 1335 CC=$ac_ct_CC 1336else 1337 CC="$ac_cv_prog_CC" 1338fi 1339 1340if test -z "$CC"; then 1341 if test -n "$ac_tool_prefix"; then 1342 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1343set dummy ${ac_tool_prefix}cc; ac_word=$2 1344echo "$as_me:1344: checking for $ac_word" >&5 1345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1346if test "${ac_cv_prog_CC+set}" = set; then 1347 echo $ECHO_N "(cached) $ECHO_C" >&6 1348else 1349 if test -n "$CC"; then 1350 ac_cv_prog_CC="$CC" # Let the user override the test. 1351else 1352 ac_save_IFS=$IFS; IFS=$ac_path_separator 1353ac_dummy="$PATH" 1354for ac_dir in $ac_dummy; do 1355 IFS=$ac_save_IFS 1356 test -z "$ac_dir" && ac_dir=. 1357 $as_executable_p "$ac_dir/$ac_word" || continue 1358ac_cv_prog_CC="${ac_tool_prefix}cc" 1359echo "$as_me:1359: found $ac_dir/$ac_word" >&5 1360break 1361done 1362 1363fi 1364fi 1365CC=$ac_cv_prog_CC 1366if test -n "$CC"; then 1367 echo "$as_me:1367: result: $CC" >&5 1368echo "${ECHO_T}$CC" >&6 1369else 1370 echo "$as_me:1370: result: no" >&5 1371echo "${ECHO_T}no" >&6 1372fi 1373 1374fi 1375if test -z "$ac_cv_prog_CC"; then 1376 ac_ct_CC=$CC 1377 # Extract the first word of "cc", so it can be a program name with args. 1378set dummy cc; ac_word=$2 1379echo "$as_me:1379: checking for $ac_word" >&5 1380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1381if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1382 echo $ECHO_N "(cached) $ECHO_C" >&6 1383else 1384 if test -n "$ac_ct_CC"; then 1385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1386else 1387 ac_save_IFS=$IFS; IFS=$ac_path_separator 1388ac_dummy="$PATH" 1389for ac_dir in $ac_dummy; do 1390 IFS=$ac_save_IFS 1391 test -z "$ac_dir" && ac_dir=. 1392 $as_executable_p "$ac_dir/$ac_word" || continue 1393ac_cv_prog_ac_ct_CC="cc" 1394echo "$as_me:1394: found $ac_dir/$ac_word" >&5 1395break 1396done 1397 1398fi 1399fi 1400ac_ct_CC=$ac_cv_prog_ac_ct_CC 1401if test -n "$ac_ct_CC"; then 1402 echo "$as_me:1402: result: $ac_ct_CC" >&5 1403echo "${ECHO_T}$ac_ct_CC" >&6 1404else 1405 echo "$as_me:1405: result: no" >&5 1406echo "${ECHO_T}no" >&6 1407fi 1408 1409 CC=$ac_ct_CC 1410else 1411 CC="$ac_cv_prog_CC" 1412fi 1413 1414fi 1415if test -z "$CC"; then 1416 # Extract the first word of "cc", so it can be a program name with args. 1417set dummy cc; ac_word=$2 1418echo "$as_me:1418: checking for $ac_word" >&5 1419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1420if test "${ac_cv_prog_CC+set}" = set; then 1421 echo $ECHO_N "(cached) $ECHO_C" >&6 1422else 1423 if test -n "$CC"; then 1424 ac_cv_prog_CC="$CC" # Let the user override the test. 1425else 1426 ac_prog_rejected=no 1427 ac_save_IFS=$IFS; IFS=$ac_path_separator 1428ac_dummy="$PATH" 1429for ac_dir in $ac_dummy; do 1430 IFS=$ac_save_IFS 1431 test -z "$ac_dir" && ac_dir=. 1432 $as_executable_p "$ac_dir/$ac_word" || continue 1433if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1434 ac_prog_rejected=yes 1435 continue 1436fi 1437ac_cv_prog_CC="cc" 1438echo "$as_me:1438: found $ac_dir/$ac_word" >&5 1439break 1440done 1441 1442if test "$ac_prog_rejected" = yes; then 1443 # We found a bogon in the path, so make sure we never use it. 1444 set dummy $ac_cv_prog_CC 1445 shift 1446 if test $# != 0; then 1447 # We chose a different compiler from the bogus one. 1448 # However, it has the same basename, so the bogon will be chosen 1449 # first if we set CC to just the basename; use the full file name. 1450 shift 1451 set dummy "$ac_dir/$ac_word" ${1+"$@"} 1452 shift 1453 ac_cv_prog_CC="$@" 1454 fi 1455fi 1456fi 1457fi 1458CC=$ac_cv_prog_CC 1459if test -n "$CC"; then 1460 echo "$as_me:1460: result: $CC" >&5 1461echo "${ECHO_T}$CC" >&6 1462else 1463 echo "$as_me:1463: result: no" >&5 1464echo "${ECHO_T}no" >&6 1465fi 1466 1467fi 1468if test -z "$CC"; then 1469 if test -n "$ac_tool_prefix"; then 1470 for ac_prog in cl 1471 do 1472 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1473set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1474echo "$as_me:1474: checking for $ac_word" >&5 1475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1476if test "${ac_cv_prog_CC+set}" = set; then 1477 echo $ECHO_N "(cached) $ECHO_C" >&6 1478else 1479 if test -n "$CC"; then 1480 ac_cv_prog_CC="$CC" # Let the user override the test. 1481else 1482 ac_save_IFS=$IFS; IFS=$ac_path_separator 1483ac_dummy="$PATH" 1484for ac_dir in $ac_dummy; do 1485 IFS=$ac_save_IFS 1486 test -z "$ac_dir" && ac_dir=. 1487 $as_executable_p "$ac_dir/$ac_word" || continue 1488ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1489echo "$as_me:1489: found $ac_dir/$ac_word" >&5 1490break 1491done 1492 1493fi 1494fi 1495CC=$ac_cv_prog_CC 1496if test -n "$CC"; then 1497 echo "$as_me:1497: result: $CC" >&5 1498echo "${ECHO_T}$CC" >&6 1499else 1500 echo "$as_me:1500: result: no" >&5 1501echo "${ECHO_T}no" >&6 1502fi 1503 1504 test -n "$CC" && break 1505 done 1506fi 1507if test -z "$CC"; then 1508 ac_ct_CC=$CC 1509 for ac_prog in cl 1510do 1511 # Extract the first word of "$ac_prog", so it can be a program name with args. 1512set dummy $ac_prog; ac_word=$2 1513echo "$as_me:1513: checking for $ac_word" >&5 1514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1515if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1516 echo $ECHO_N "(cached) $ECHO_C" >&6 1517else 1518 if test -n "$ac_ct_CC"; then 1519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1520else 1521 ac_save_IFS=$IFS; IFS=$ac_path_separator 1522ac_dummy="$PATH" 1523for ac_dir in $ac_dummy; do 1524 IFS=$ac_save_IFS 1525 test -z "$ac_dir" && ac_dir=. 1526 $as_executable_p "$ac_dir/$ac_word" || continue 1527ac_cv_prog_ac_ct_CC="$ac_prog" 1528echo "$as_me:1528: found $ac_dir/$ac_word" >&5 1529break 1530done 1531 1532fi 1533fi 1534ac_ct_CC=$ac_cv_prog_ac_ct_CC 1535if test -n "$ac_ct_CC"; then 1536 echo "$as_me:1536: result: $ac_ct_CC" >&5 1537echo "${ECHO_T}$ac_ct_CC" >&6 1538else 1539 echo "$as_me:1539: result: no" >&5 1540echo "${ECHO_T}no" >&6 1541fi 1542 1543 test -n "$ac_ct_CC" && break 1544done 1545 1546 CC=$ac_ct_CC 1547fi 1548 1549fi 1550 1551test -z "$CC" && { { echo "$as_me:1551: error: no acceptable cc found in \$PATH" >&5 1552echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1553 { (exit 1); exit 1; }; } 1554 1555# Provide some information about the compiler. 1556echo "$as_me:1556:" \ 1557 "checking for C compiler version" >&5 1558ac_compiler=`set X $ac_compile; echo "$2"` 1559{ (eval echo "$as_me:1559: \"$ac_compiler --version </dev/null >&5\"") >&5 1560 (eval $ac_compiler --version </dev/null >&5) 2>&5 1561 ac_status=$? 1562 echo "$as_me:1562: \$? = $ac_status" >&5 1563 (exit "$ac_status"); } 1564{ (eval echo "$as_me:1564: \"$ac_compiler -v </dev/null >&5\"") >&5 1565 (eval $ac_compiler -v </dev/null >&5) 2>&5 1566 ac_status=$? 1567 echo "$as_me:1567: \$? = $ac_status" >&5 1568 (exit "$ac_status"); } 1569{ (eval echo "$as_me:1569: \"$ac_compiler -V </dev/null >&5\"") >&5 1570 (eval $ac_compiler -V </dev/null >&5) 2>&5 1571 ac_status=$? 1572 echo "$as_me:1572: \$? = $ac_status" >&5 1573 (exit "$ac_status"); } 1574 1575cat >"conftest.$ac_ext" <<_ACEOF 1576#line 1576 "configure" 1577#include "confdefs.h" 1578 1579int 1580main (void) 1581{ 1582 1583 ; 1584 return 0; 1585} 1586_ACEOF 1587ac_clean_files_save=$ac_clean_files 1588ac_clean_files="$ac_clean_files a.out a.exe" 1589# Try to create an executable without -o first, disregard a.out. 1590# It will help us diagnose broken compilers, and finding out an intuition 1591# of exeext. 1592echo "$as_me:1592: checking for C compiler default output" >&5 1593echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1594ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'` 1595if { (eval echo "$as_me:1595: \"$ac_link_default\"") >&5 1596 (eval $ac_link_default) 2>&5 1597 ac_status=$? 1598 echo "$as_me:1598: \$? = $ac_status" >&5 1599 (exit "$ac_status"); }; then 1600 # Find the output, starting from the most likely. This scheme is 1601# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1602# resort. 1603for ac_file in `ls a.exe conftest.exe 2>/dev/null; 1604 ls a.out conftest 2>/dev/null; 1605 ls a.* conftest.* 2>/dev/null`; do 1606 case $ac_file in 1607 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1608 a.out ) # We found the default executable, but exeext='' is most 1609 # certainly right. 1610 break;; 1611 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1612 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 1613 export ac_cv_exeext 1614 break;; 1615 * ) break;; 1616 esac 1617done 1618else 1619 echo "$as_me: failed program was:" >&5 1620cat "conftest.$ac_ext" >&5 1621{ { echo "$as_me:1621: error: C compiler cannot create executables" >&5 1622echo "$as_me: error: C compiler cannot create executables" >&2;} 1623 { (exit 77); exit 77; }; } 1624fi 1625 1626ac_exeext=$ac_cv_exeext 1627echo "$as_me:1627: result: $ac_file" >&5 1628echo "${ECHO_T}$ac_file" >&6 1629 1630# Check the compiler produces executables we can run. If not, either 1631# the compiler is broken, or we cross compile. 1632echo "$as_me:1632: checking whether the C compiler works" >&5 1633echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1634# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1635# If not cross compiling, check that we can run a simple program. 1636if test "$cross_compiling" != yes; then 1637 if { ac_try='./$ac_file' 1638 { (eval echo "$as_me:1638: \"$ac_try\"") >&5 1639 (eval $ac_try) 2>&5 1640 ac_status=$? 1641 echo "$as_me:1641: \$? = $ac_status" >&5 1642 (exit "$ac_status"); }; }; then 1643 cross_compiling=no 1644 else 1645 if test "$cross_compiling" = maybe; then 1646 cross_compiling=yes 1647 else 1648 { { echo "$as_me:1648: error: cannot run C compiled programs. 1649If you meant to cross compile, use \`--host'." >&5 1650echo "$as_me: error: cannot run C compiled programs. 1651If you meant to cross compile, use \`--host'." >&2;} 1652 { (exit 1); exit 1; }; } 1653 fi 1654 fi 1655fi 1656echo "$as_me:1656: result: yes" >&5 1657echo "${ECHO_T}yes" >&6 1658 1659rm -f a.out a.exe "conftest$ac_cv_exeext" 1660ac_clean_files=$ac_clean_files_save 1661# Check the compiler produces executables we can run. If not, either 1662# the compiler is broken, or we cross compile. 1663echo "$as_me:1663: checking whether we are cross compiling" >&5 1664echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1665echo "$as_me:1665: result: $cross_compiling" >&5 1666echo "${ECHO_T}$cross_compiling" >&6 1667 1668echo "$as_me:1668: checking for executable suffix" >&5 1669echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1670if { (eval echo "$as_me:1670: \"$ac_link\"") >&5 1671 (eval $ac_link) 2>&5 1672 ac_status=$? 1673 echo "$as_me:1673: \$? = $ac_status" >&5 1674 (exit "$ac_status"); }; then 1675 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1676# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1677# work properly (i.e., refer to `conftest.exe'), while it won't with 1678# `rm'. 1679for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1680 case $ac_file in 1681 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1682 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1683 export ac_cv_exeext 1684 break;; 1685 * ) break;; 1686 esac 1687done 1688else 1689 { { echo "$as_me:1689: error: cannot compute EXEEXT: cannot compile and link" >&5 1690echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1691 { (exit 1); exit 1; }; } 1692fi 1693 1694rm -f "conftest$ac_cv_exeext" 1695echo "$as_me:1695: result: $ac_cv_exeext" >&5 1696echo "${ECHO_T}$ac_cv_exeext" >&6 1697 1698rm -f "conftest.$ac_ext" 1699EXEEXT=$ac_cv_exeext 1700ac_exeext=$EXEEXT 1701echo "$as_me:1701: checking for object suffix" >&5 1702echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 1703if test "${ac_cv_objext+set}" = set; then 1704 echo $ECHO_N "(cached) $ECHO_C" >&6 1705else 1706 cat >"conftest.$ac_ext" <<_ACEOF 1707#line 1707 "configure" 1708#include "confdefs.h" 1709 1710int 1711main (void) 1712{ 1713 1714 ; 1715 return 0; 1716} 1717_ACEOF 1718rm -f conftest.o conftest.obj 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"); }; then 1724 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1725 case $ac_file in 1726 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;; 1727 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1728 break;; 1729 esac 1730done 1731else 1732 echo "$as_me: failed program was:" >&5 1733cat "conftest.$ac_ext" >&5 1734{ { echo "$as_me:1734: error: cannot compute OBJEXT: cannot compile" >&5 1735echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1736 { (exit 1); exit 1; }; } 1737fi 1738 1739rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext" 1740fi 1741echo "$as_me:1741: result: $ac_cv_objext" >&5 1742echo "${ECHO_T}$ac_cv_objext" >&6 1743OBJEXT=$ac_cv_objext 1744ac_objext=$OBJEXT 1745echo "$as_me:1745: checking whether we are using the GNU C compiler" >&5 1746echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1747if test "${ac_cv_c_compiler_gnu+set}" = set; then 1748 echo $ECHO_N "(cached) $ECHO_C" >&6 1749else 1750 cat >"conftest.$ac_ext" <<_ACEOF 1751#line 1751 "configure" 1752#include "confdefs.h" 1753 1754int 1755main (void) 1756{ 1757#ifndef __GNUC__ 1758 choke me 1759#endif 1760 1761 ; 1762 return 0; 1763} 1764_ACEOF 1765rm -f "conftest.$ac_objext" 1766if { (eval echo "$as_me:1766: \"$ac_compile\"") >&5 1767 (eval $ac_compile) 2>&5 1768 ac_status=$? 1769 echo "$as_me:1769: \$? = $ac_status" >&5 1770 (exit "$ac_status"); } && 1771 { ac_try='test -s "conftest.$ac_objext"' 1772 { (eval echo "$as_me:1772: \"$ac_try\"") >&5 1773 (eval $ac_try) 2>&5 1774 ac_status=$? 1775 echo "$as_me:1775: \$? = $ac_status" >&5 1776 (exit "$ac_status"); }; }; then 1777 ac_compiler_gnu=yes 1778else 1779 echo "$as_me: failed program was:" >&5 1780cat "conftest.$ac_ext" >&5 1781ac_compiler_gnu=no 1782fi 1783rm -f "conftest.$ac_objext" "conftest.$ac_ext" 1784ac_cv_c_compiler_gnu=$ac_compiler_gnu 1785 1786fi 1787echo "$as_me:1787: result: $ac_cv_c_compiler_gnu" >&5 1788echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1789GCC=`test $ac_compiler_gnu = yes && echo yes` 1790ac_test_CFLAGS=${CFLAGS+set} 1791ac_save_CFLAGS=$CFLAGS 1792CFLAGS="-g" 1793echo "$as_me:1793: checking whether $CC accepts -g" >&5 1794echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1795if test "${ac_cv_prog_cc_g+set}" = set; then 1796 echo $ECHO_N "(cached) $ECHO_C" >&6 1797else 1798 cat >"conftest.$ac_ext" <<_ACEOF 1799#line 1799 "configure" 1800#include "confdefs.h" 1801 1802int 1803main (void) 1804{ 1805 1806 ; 1807 return 0; 1808} 1809_ACEOF 1810rm -f "conftest.$ac_objext" 1811if { (eval echo "$as_me:1811: \"$ac_compile\"") >&5 1812 (eval $ac_compile) 2>&5 1813 ac_status=$? 1814 echo "$as_me:1814: \$? = $ac_status" >&5 1815 (exit "$ac_status"); } && 1816 { ac_try='test -s "conftest.$ac_objext"' 1817 { (eval echo "$as_me:1817: \"$ac_try\"") >&5 1818 (eval $ac_try) 2>&5 1819 ac_status=$? 1820 echo "$as_me:1820: \$? = $ac_status" >&5 1821 (exit "$ac_status"); }; }; then 1822 ac_cv_prog_cc_g=yes 1823else 1824 echo "$as_me: failed program was:" >&5 1825cat "conftest.$ac_ext" >&5 1826ac_cv_prog_cc_g=no 1827fi 1828rm -f "conftest.$ac_objext" "conftest.$ac_ext" 1829fi 1830echo "$as_me:1830: result: $ac_cv_prog_cc_g" >&5 1831echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1832if test "$ac_test_CFLAGS" = set; then 1833 CFLAGS=$ac_save_CFLAGS 1834elif test $ac_cv_prog_cc_g = yes; then 1835 if test "$GCC" = yes; then 1836 CFLAGS="-g -O2" 1837 else 1838 CFLAGS="-g" 1839 fi 1840else 1841 if test "$GCC" = yes; then 1842 CFLAGS="-O2" 1843 else 1844 CFLAGS= 1845 fi 1846fi 1847# Some people use a C++ compiler to compile C. Since we use `exit', 1848# in C++ we need to declare it. In case someone uses the same compiler 1849# for both compiling C and C++ we need to have the C++ compiler decide 1850# the declaration of exit, since it's the most demanding environment. 1851cat >"conftest.$ac_ext" <<_ACEOF 1852#ifndef __cplusplus 1853 choke me 1854#endif 1855_ACEOF 1856rm -f "conftest.$ac_objext" 1857if { (eval echo "$as_me:1857: \"$ac_compile\"") >&5 1858 (eval $ac_compile) 2>&5 1859 ac_status=$? 1860 echo "$as_me:1860: \$? = $ac_status" >&5 1861 (exit "$ac_status"); } && 1862 { ac_try='test -s "conftest.$ac_objext"' 1863 { (eval echo "$as_me:1863: \"$ac_try\"") >&5 1864 (eval $ac_try) 2>&5 1865 ac_status=$? 1866 echo "$as_me:1866: \$? = $ac_status" >&5 1867 (exit "$ac_status"); }; }; then 1868 for ac_declaration in \ 1869 ''\ 1870 '#include <stdlib.h>' \ 1871 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1872 'extern "C" void std::exit (int); using std::exit;' \ 1873 'extern "C" void exit (int) throw ();' \ 1874 'extern "C" void exit (int);' \ 1875 'void exit (int);' 1876do 1877 cat >"conftest.$ac_ext" <<_ACEOF 1878#line 1878 "configure" 1879#include "confdefs.h" 1880#include <stdlib.h> 1881$ac_declaration 1882int 1883main (void) 1884{ 1885exit (42); 1886 ; 1887 return 0; 1888} 1889_ACEOF 1890rm -f "conftest.$ac_objext" 1891if { (eval echo "$as_me:1891: \"$ac_compile\"") >&5 1892 (eval $ac_compile) 2>&5 1893 ac_status=$? 1894 echo "$as_me:1894: \$? = $ac_status" >&5 1895 (exit "$ac_status"); } && 1896 { ac_try='test -s "conftest.$ac_objext"' 1897 { (eval echo "$as_me:1897: \"$ac_try\"") >&5 1898 (eval $ac_try) 2>&5 1899 ac_status=$? 1900 echo "$as_me:1900: \$? = $ac_status" >&5 1901 (exit "$ac_status"); }; }; then 1902 : 1903else 1904 echo "$as_me: failed program was:" >&5 1905cat "conftest.$ac_ext" >&5 1906continue 1907fi 1908rm -f "conftest.$ac_objext" "conftest.$ac_ext" 1909 cat >"conftest.$ac_ext" <<_ACEOF 1910#line 1910 "configure" 1911#include "confdefs.h" 1912$ac_declaration 1913int 1914main (void) 1915{ 1916exit (42); 1917 ; 1918 return 0; 1919} 1920_ACEOF 1921rm -f "conftest.$ac_objext" 1922if { (eval echo "$as_me:1922: \"$ac_compile\"") >&5 1923 (eval $ac_compile) 2>&5 1924 ac_status=$? 1925 echo "$as_me:1925: \$? = $ac_status" >&5 1926 (exit "$ac_status"); } && 1927 { ac_try='test -s "conftest.$ac_objext"' 1928 { (eval echo "$as_me:1928: \"$ac_try\"") >&5 1929 (eval $ac_try) 2>&5 1930 ac_status=$? 1931 echo "$as_me:1931: \$? = $ac_status" >&5 1932 (exit "$ac_status"); }; }; then 1933 break 1934else 1935 echo "$as_me: failed program was:" >&5 1936cat "conftest.$ac_ext" >&5 1937fi 1938rm -f "conftest.$ac_objext" "conftest.$ac_ext" 1939done 1940rm -rf conftest* 1941if test -n "$ac_declaration"; then 1942 echo '#ifdef __cplusplus' >>confdefs.h 1943 echo "$ac_declaration" >>confdefs.h 1944 echo '#endif' >>confdefs.h 1945fi 1946 1947else 1948 echo "$as_me: failed program was:" >&5 1949cat "conftest.$ac_ext" >&5 1950fi 1951rm -f "conftest.$ac_objext" "conftest.$ac_ext" 1952ac_ext=c 1953ac_cpp='$CPP $CPPFLAGS' 1954ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 1955ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 1956ac_compiler_gnu=$ac_cv_c_compiler_gnu 1957ac_main_return="return" 1958 1959GCC_VERSION=none 1960if test "$GCC" = yes ; then 1961 echo "$as_me:1961: checking version of $CC" >&5 1962echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 1963 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^[^(]*([^)][^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`" 1964 test -z "$GCC_VERSION" && GCC_VERSION=unknown 1965 echo "$as_me:1965: result: $GCC_VERSION" >&5 1966echo "${ECHO_T}$GCC_VERSION" >&6 1967fi 1968 1969INTEL_COMPILER=no 1970 1971if test "$GCC" = yes ; then 1972 case "$host_os" in 1973 (linux*|gnu*) 1974 echo "$as_me:1974: checking if this is really Intel C compiler" >&5 1975echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6 1976 cf_save_CFLAGS="$CFLAGS" 1977 CFLAGS="$CFLAGS -no-gcc" 1978 cat >"conftest.$ac_ext" <<_ACEOF 1979#line 1979 "configure" 1980#include "confdefs.h" 1981 1982int 1983main (void) 1984{ 1985 1986#ifdef __INTEL_COMPILER 1987#else 1988#error __INTEL_COMPILER is not defined 1989#endif 1990 1991 ; 1992 return 0; 1993} 1994_ACEOF 1995rm -f "conftest.$ac_objext" 1996if { (eval echo "$as_me:1996: \"$ac_compile\"") >&5 1997 (eval $ac_compile) 2>&5 1998 ac_status=$? 1999 echo "$as_me:1999: \$? = $ac_status" >&5 2000 (exit "$ac_status"); } && 2001 { ac_try='test -s "conftest.$ac_objext"' 2002 { (eval echo "$as_me:2002: \"$ac_try\"") >&5 2003 (eval $ac_try) 2>&5 2004 ac_status=$? 2005 echo "$as_me:2005: \$? = $ac_status" >&5 2006 (exit "$ac_status"); }; }; then 2007 INTEL_COMPILER=yes 2008cf_save_CFLAGS="$cf_save_CFLAGS -we147" 2009 2010else 2011 echo "$as_me: failed program was:" >&5 2012cat "conftest.$ac_ext" >&5 2013fi 2014rm -f "conftest.$ac_objext" "conftest.$ac_ext" 2015 CFLAGS="$cf_save_CFLAGS" 2016 echo "$as_me:2016: result: $INTEL_COMPILER" >&5 2017echo "${ECHO_T}$INTEL_COMPILER" >&6 2018 ;; 2019 esac 2020fi 2021 2022CLANG_COMPILER=no 2023 2024if test "$GCC" = yes ; then 2025 echo "$as_me:2025: checking if this is really Clang C compiler" >&5 2026echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6 2027 cf_save_CFLAGS="$CFLAGS" 2028 cat >"conftest.$ac_ext" <<_ACEOF 2029#line 2029 "configure" 2030#include "confdefs.h" 2031 2032int 2033main (void) 2034{ 2035 2036#ifdef __clang__ 2037#else 2038#error __clang__ is not defined 2039#endif 2040 2041 ; 2042 return 0; 2043} 2044_ACEOF 2045rm -f "conftest.$ac_objext" 2046if { (eval echo "$as_me:2046: \"$ac_compile\"") >&5 2047 (eval $ac_compile) 2>&5 2048 ac_status=$? 2049 echo "$as_me:2049: \$? = $ac_status" >&5 2050 (exit "$ac_status"); } && 2051 { ac_try='test -s "conftest.$ac_objext"' 2052 { (eval echo "$as_me:2052: \"$ac_try\"") >&5 2053 (eval $ac_try) 2>&5 2054 ac_status=$? 2055 echo "$as_me:2055: \$? = $ac_status" >&5 2056 (exit "$ac_status"); }; }; then 2057 CLANG_COMPILER=yes 2058 2059else 2060 echo "$as_me: failed program was:" >&5 2061cat "conftest.$ac_ext" >&5 2062fi 2063rm -f "conftest.$ac_objext" "conftest.$ac_ext" 2064 CFLAGS="$cf_save_CFLAGS" 2065 echo "$as_me:2065: result: $CLANG_COMPILER" >&5 2066echo "${ECHO_T}$CLANG_COMPILER" >&6 2067fi 2068 2069CLANG_VERSION=none 2070 2071if test "x$CLANG_COMPILER" = "xyes" ; then 2072 case "$CC" in 2073 (c[1-9][0-9]|*/c[1-9][0-9]) 2074 { echo "$as_me:2074: WARNING: replacing broken compiler alias $CC" >&5 2075echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;} 2076 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`" 2077 CC=clang 2078 ;; 2079 esac 2080 2081 echo "$as_me:2081: checking version of $CC" >&5 2082echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 2083 CLANG_VERSION="`$CC --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(CLANG[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`" 2084 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown 2085 echo "$as_me:2085: result: $CLANG_VERSION" >&5 2086echo "${ECHO_T}$CLANG_VERSION" >&6 2087 2088 for cf_clang_opt in \ 2089 -Qunused-arguments \ 2090 -Wno-error=implicit-function-declaration 2091 do 2092 echo "$as_me:2092: checking if option $cf_clang_opt works" >&5 2093echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6 2094 cf_save_CFLAGS="$CFLAGS" 2095 CFLAGS="$CFLAGS $cf_clang_opt" 2096 cat >"conftest.$ac_ext" <<_ACEOF 2097#line 2097 "configure" 2098#include "confdefs.h" 2099 2100 #include <stdio.h> 2101int 2102main (void) 2103{ 2104 2105 printf("hello!\\n"); 2106 ; 2107 return 0; 2108} 2109_ACEOF 2110rm -f "conftest.$ac_objext" "conftest$ac_exeext" 2111if { (eval echo "$as_me:2111: \"$ac_link\"") >&5 2112 (eval $ac_link) 2>&5 2113 ac_status=$? 2114 echo "$as_me:2114: \$? = $ac_status" >&5 2115 (exit "$ac_status"); } && 2116 { ac_try='test -s "conftest$ac_exeext"' 2117 { (eval echo "$as_me:2117: \"$ac_try\"") >&5 2118 (eval $ac_try) 2>&5 2119 ac_status=$? 2120 echo "$as_me:2120: \$? = $ac_status" >&5 2121 (exit "$ac_status"); }; }; then 2122 2123 cf_clang_optok=yes 2124else 2125 echo "$as_me: failed program was:" >&5 2126cat "conftest.$ac_ext" >&5 2127 2128 cf_clang_optok=no 2129fi 2130rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 2131 echo "$as_me:2131: result: $cf_clang_optok" >&5 2132echo "${ECHO_T}$cf_clang_optok" >&6 2133 CFLAGS="$cf_save_CFLAGS" 2134 if test "$cf_clang_optok" = yes; then 2135 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6 2136 2137echo "${as_me:-configure}:2137: testing adding option $cf_clang_opt ..." 1>&5 2138 2139 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 2140 CFLAGS="${CFLAGS}$cf_clang_opt" 2141 2142 fi 2143 done 2144fi 2145 2146echo "$as_me:2146: checking for $CC option to accept ANSI C" >&5 2147echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2148if test "${ac_cv_prog_cc_stdc+set}" = set; then 2149 echo $ECHO_N "(cached) $ECHO_C" >&6 2150else 2151 ac_cv_prog_cc_stdc=no 2152ac_save_CC=$CC 2153cat >"conftest.$ac_ext" <<_ACEOF 2154#line 2154 "configure" 2155#include "confdefs.h" 2156#include <stdarg.h> 2157#include <stdio.h> 2158#include <sys/types.h> 2159#include <sys/stat.h> 2160/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2161struct buf { int x; }; 2162FILE * (*rcsopen) (struct buf *, struct stat *, int); 2163static char *e (char **p, int i) 2164{ 2165 return p[i]; 2166} 2167static char *f (char * (*g) (char **, int), char **p, ...) 2168{ 2169 char *s; 2170 va_list v; 2171 va_start (v,p); 2172 s = g (p, va_arg (v,int)); 2173 va_end (v); 2174 return s; 2175} 2176int test (int i, double x); 2177struct s1 {int (*f) (int a);}; 2178struct s2 {int (*f) (double a);}; 2179int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2180int argc; 2181char **argv; 2182int 2183main (void) 2184{ 2185return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2186 ; 2187 return 0; 2188} 2189_ACEOF 2190# Don't try gcc -ansi; that turns off useful extensions and 2191# breaks some systems' header files. 2192# AIX -qlanglvl=ansi 2193# Ultrix and OSF/1 -std1 2194# HP-UX 10.20 and later -Ae 2195# HP-UX older versions -Aa -D_HPUX_SOURCE 2196# SVR4 -Xc -D__EXTENSIONS__ 2197for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2198do 2199 CC="$ac_save_CC $ac_arg" 2200 rm -f "conftest.$ac_objext" 2201if { (eval echo "$as_me:2201: \"$ac_compile\"") >&5 2202 (eval $ac_compile) 2>&5 2203 ac_status=$? 2204 echo "$as_me:2204: \$? = $ac_status" >&5 2205 (exit "$ac_status"); } && 2206 { ac_try='test -s "conftest.$ac_objext"' 2207 { (eval echo "$as_me:2207: \"$ac_try\"") >&5 2208 (eval $ac_try) 2>&5 2209 ac_status=$? 2210 echo "$as_me:2210: \$? = $ac_status" >&5 2211 (exit "$ac_status"); }; }; then 2212 ac_cv_prog_cc_stdc=$ac_arg 2213break 2214else 2215 echo "$as_me: failed program was:" >&5 2216cat "conftest.$ac_ext" >&5 2217fi 2218rm -f "conftest.$ac_objext" 2219done 2220rm -f "conftest.$ac_ext" "conftest.$ac_objext" 2221CC=$ac_save_CC 2222 2223fi 2224 2225case "x$ac_cv_prog_cc_stdc" in 2226 x|xno) 2227 echo "$as_me:2227: result: none needed" >&5 2228echo "${ECHO_T}none needed" >&6 ;; 2229 *) 2230 echo "$as_me:2230: result: $ac_cv_prog_cc_stdc" >&5 2231echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2232 CC="$CC $ac_cv_prog_cc_stdc" ;; 2233esac 2234 2235# This should have been defined by AC_PROG_CC 2236: "${CC:=cc}" 2237 2238echo "$as_me:2238: checking \$CFLAGS variable" >&5 2239echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6 2240case "x$CFLAGS" in 2241(*-[IUD]*) 2242 echo "$as_me:2242: result: broken" >&5 2243echo "${ECHO_T}broken" >&6 2244 { echo "$as_me:2244: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5 2245echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;} 2246 cf_flags="$CFLAGS" 2247 CFLAGS= 2248 for cf_arg in $cf_flags 2249 do 2250 2251cf_fix_cppflags=no 2252cf_new_cflags= 2253cf_new_cppflags= 2254cf_new_extra_cppflags= 2255 2256for cf_add_cflags in $cf_arg 2257do 2258case "$cf_fix_cppflags" in 2259(no) 2260 case "$cf_add_cflags" in 2261 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 2262 case "$cf_add_cflags" in 2263 (-D*) 2264 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2265 2266 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2267 && test -z "${cf_tst_cflags}" \ 2268 && cf_fix_cppflags=yes 2269 2270 if test "$cf_fix_cppflags" = yes ; then 2271 2272 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2273 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2274 2275 continue 2276 elif test "${cf_tst_cflags}" = "\"'" ; then 2277 2278 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2279 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2280 2281 continue 2282 fi 2283 ;; 2284 esac 2285 case "$CPPFLAGS" in 2286 (*$cf_add_cflags) 2287 ;; 2288 (*) 2289 case "$cf_add_cflags" in 2290 (-D*) 2291 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2292 2293CPPFLAGS=`echo "$CPPFLAGS" | \ 2294 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2295 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2296 2297 ;; 2298 esac 2299 2300 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 2301 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 2302 2303 ;; 2304 esac 2305 ;; 2306 (*) 2307 2308 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 2309 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 2310 2311 ;; 2312 esac 2313 ;; 2314(yes) 2315 2316 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2317 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2318 2319 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 2320 2321 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2322 && test -z "${cf_tst_cflags}" \ 2323 && cf_fix_cppflags=no 2324 ;; 2325esac 2326done 2327 2328if test -n "$cf_new_cflags" ; then 2329 2330 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 2331 CFLAGS="${CFLAGS}$cf_new_cflags" 2332 2333fi 2334 2335if test -n "$cf_new_cppflags" ; then 2336 2337 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 2338 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 2339 2340fi 2341 2342if test -n "$cf_new_extra_cppflags" ; then 2343 2344 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 2345 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 2346 2347fi 2348 2349 done 2350 ;; 2351(*) 2352 echo "$as_me:2352: result: ok" >&5 2353echo "${ECHO_T}ok" >&6 2354 ;; 2355esac 2356 2357echo "$as_me:2357: checking \$CC variable" >&5 2358echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6 2359case "$CC" in 2360(*[\ \ ]-*) 2361 echo "$as_me:2361: result: broken" >&5 2362echo "${ECHO_T}broken" >&6 2363 { echo "$as_me:2363: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5 2364echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;} 2365 # humor him... 2366 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'` 2367 cf_flags=`echo "$CC" | sed -e "s%^$cf_prog%%"` 2368 CC="$cf_prog" 2369 for cf_arg in $cf_flags 2370 do 2371 case "x$cf_arg" in 2372 (x-[IUDfgOW]*) 2373 2374cf_fix_cppflags=no 2375cf_new_cflags= 2376cf_new_cppflags= 2377cf_new_extra_cppflags= 2378 2379for cf_add_cflags in $cf_arg 2380do 2381case "$cf_fix_cppflags" in 2382(no) 2383 case "$cf_add_cflags" in 2384 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 2385 case "$cf_add_cflags" in 2386 (-D*) 2387 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2388 2389 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2390 && test -z "${cf_tst_cflags}" \ 2391 && cf_fix_cppflags=yes 2392 2393 if test "$cf_fix_cppflags" = yes ; then 2394 2395 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2396 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2397 2398 continue 2399 elif test "${cf_tst_cflags}" = "\"'" ; then 2400 2401 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2402 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2403 2404 continue 2405 fi 2406 ;; 2407 esac 2408 case "$CPPFLAGS" in 2409 (*$cf_add_cflags) 2410 ;; 2411 (*) 2412 case "$cf_add_cflags" in 2413 (-D*) 2414 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2415 2416CPPFLAGS=`echo "$CPPFLAGS" | \ 2417 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2418 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2419 2420 ;; 2421 esac 2422 2423 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 2424 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 2425 2426 ;; 2427 esac 2428 ;; 2429 (*) 2430 2431 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 2432 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 2433 2434 ;; 2435 esac 2436 ;; 2437(yes) 2438 2439 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2440 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2441 2442 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 2443 2444 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2445 && test -z "${cf_tst_cflags}" \ 2446 && cf_fix_cppflags=no 2447 ;; 2448esac 2449done 2450 2451if test -n "$cf_new_cflags" ; then 2452 2453 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 2454 CFLAGS="${CFLAGS}$cf_new_cflags" 2455 2456fi 2457 2458if test -n "$cf_new_cppflags" ; then 2459 2460 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 2461 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 2462 2463fi 2464 2465if test -n "$cf_new_extra_cppflags" ; then 2466 2467 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 2468 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 2469 2470fi 2471 2472 ;; 2473 (*) 2474 CC="$CC $cf_arg" 2475 ;; 2476 esac 2477 done 2478 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6 2479 2480echo "${as_me:-configure}:2480: testing resulting CC: '$CC' ..." 1>&5 2481 2482 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6 2483 2484echo "${as_me:-configure}:2484: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5 2485 2486 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6 2487 2488echo "${as_me:-configure}:2488: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5 2489 2490 ;; 2491(*) 2492 echo "$as_me:2492: result: ok" >&5 2493echo "${ECHO_T}ok" >&6 2494 ;; 2495esac 2496 2497for ac_prog in ggrep grep 2498do 2499 # Extract the first word of "$ac_prog", so it can be a program name with args. 2500set dummy $ac_prog; ac_word=$2 2501echo "$as_me:2501: checking for $ac_word" >&5 2502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2503if test "${ac_cv_prog_GREP+set}" = set; then 2504 echo $ECHO_N "(cached) $ECHO_C" >&6 2505else 2506 if test -n "$GREP"; then 2507 ac_cv_prog_GREP="$GREP" # Let the user override the test. 2508else 2509 ac_save_IFS=$IFS; IFS=$ac_path_separator 2510ac_dummy="$PATH" 2511for ac_dir in $ac_dummy; do 2512 IFS=$ac_save_IFS 2513 test -z "$ac_dir" && ac_dir=. 2514 $as_executable_p "$ac_dir/$ac_word" || continue 2515ac_cv_prog_GREP="$ac_prog" 2516echo "$as_me:2516: found $ac_dir/$ac_word" >&5 2517break 2518done 2519 2520fi 2521fi 2522GREP=$ac_cv_prog_GREP 2523if test -n "$GREP"; then 2524 echo "$as_me:2524: result: $GREP" >&5 2525echo "${ECHO_T}$GREP" >&6 2526else 2527 echo "$as_me:2527: result: no" >&5 2528echo "${ECHO_T}no" >&6 2529fi 2530 2531 test -n "$GREP" && break 2532done 2533test -n "$GREP" || GREP=": " 2534 2535echo "$as_me:2535: checking for egrep" >&5 2536echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2537if test "${ac_cv_path_EGREP+set}" = set; then 2538 echo $ECHO_N "(cached) $ECHO_C" >&6 2539else 2540 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 2541 then ac_cv_path_EGREP="$GREP -E" 2542 else 2543 for ac_prog in gegrep egrep 2544do 2545 # Extract the first word of "$ac_prog", so it can be a program name with args. 2546set dummy $ac_prog; ac_word=$2 2547echo "$as_me:2547: checking for $ac_word" >&5 2548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2549if test "${ac_cv_path_EGREP+set}" = set; then 2550 echo $ECHO_N "(cached) $ECHO_C" >&6 2551else 2552 case $EGREP in 2553 [\\/]* | ?:[\\/]*) 2554 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 2555 ;; 2556 *) 2557 ac_save_IFS=$IFS; IFS=$ac_path_separator 2558ac_dummy="$PATH" 2559for ac_dir in $ac_dummy; do 2560 IFS=$ac_save_IFS 2561 test -z "$ac_dir" && ac_dir=. 2562 if $as_executable_p "$ac_dir/$ac_word"; then 2563 ac_cv_path_EGREP="$ac_dir/$ac_word" 2564 echo "$as_me:2564: found $ac_dir/$ac_word" >&5 2565 break 2566fi 2567done 2568 2569 ;; 2570esac 2571fi 2572EGREP=$ac_cv_path_EGREP 2573 2574if test -n "$EGREP"; then 2575 echo "$as_me:2575: result: $EGREP" >&5 2576echo "${ECHO_T}$EGREP" >&6 2577else 2578 echo "$as_me:2578: result: no" >&5 2579echo "${ECHO_T}no" >&6 2580fi 2581 2582 test -n "$EGREP" && break 2583done 2584test -n "$EGREP" || EGREP=": " 2585 2586 test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:2586: error: cannot find workable egrep" >&5 2587echo "$as_me: error: cannot find workable egrep" >&2;} 2588 { (exit 1); exit 1; }; } 2589 fi 2590fi 2591echo "$as_me:2591: result: $ac_cv_path_EGREP" >&5 2592echo "${ECHO_T}$ac_cv_path_EGREP" >&6 2593 EGREP="$ac_cv_path_EGREP" 2594 2595ac_ext=c 2596ac_cpp='$CPP $CPPFLAGS' 2597ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 2598ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 2599ac_compiler_gnu=$ac_cv_c_compiler_gnu 2600ac_main_return="return" 2601echo "$as_me:2601: checking how to run the C preprocessor" >&5 2602echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2603# On Suns, sometimes $CPP names a directory. 2604if test -n "$CPP" && test -d "$CPP"; then 2605 CPP= 2606fi 2607if test -z "$CPP"; then 2608 if test "${ac_cv_prog_CPP+set}" = set; then 2609 echo $ECHO_N "(cached) $ECHO_C" >&6 2610else 2611 # Double quotes because CPP needs to be expanded 2612 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2613 do 2614 ac_preproc_ok=false 2615for ac_c_preproc_warn_flag in '' yes 2616do 2617 # Use a header file that comes with gcc, so configuring glibc 2618 # with a fresh cross-compiler works. 2619 # On the NeXT, cc -E runs the code through the compiler's parser, 2620 # not just through cpp. "Syntax error" is here to catch this case. 2621 cat >"conftest.$ac_ext" <<_ACEOF 2622#line 2622 "configure" 2623#include "confdefs.h" 2624#include <assert.h> 2625 Syntax error 2626_ACEOF 2627if { (eval echo "$as_me:2627: \"$ac_cpp "conftest.$ac_ext"\"") >&5 2628 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 2629 ac_status=$? 2630 $EGREP -v '^ *\+' conftest.er1 >conftest.err 2631 rm -f conftest.er1 2632 cat conftest.err >&5 2633 echo "$as_me:2633: \$? = $ac_status" >&5 2634 (exit "$ac_status"); } >/dev/null; then 2635 if test -s conftest.err; then 2636 ac_cpp_err=$ac_c_preproc_warn_flag 2637 else 2638 ac_cpp_err= 2639 fi 2640else 2641 ac_cpp_err=yes 2642fi 2643if test -z "$ac_cpp_err"; then 2644 : 2645else 2646 echo "$as_me: failed program was:" >&5 2647 cat "conftest.$ac_ext" >&5 2648 # Broken: fails on valid input. 2649continue 2650fi 2651rm -f conftest.err "conftest.$ac_ext" 2652 2653 # OK, works on sane cases. Now check whether non-existent headers 2654 # can be detected and how. 2655 cat >"conftest.$ac_ext" <<_ACEOF 2656#line 2656 "configure" 2657#include "confdefs.h" 2658#include <ac_nonexistent.h> 2659_ACEOF 2660if { (eval echo "$as_me:2660: \"$ac_cpp "conftest.$ac_ext"\"") >&5 2661 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 2662 ac_status=$? 2663 $EGREP -v '^ *\+' conftest.er1 >conftest.err 2664 rm -f conftest.er1 2665 cat conftest.err >&5 2666 echo "$as_me:2666: \$? = $ac_status" >&5 2667 (exit "$ac_status"); } >/dev/null; then 2668 if test -s conftest.err; then 2669 ac_cpp_err=$ac_c_preproc_warn_flag 2670 else 2671 ac_cpp_err= 2672 fi 2673else 2674 ac_cpp_err=yes 2675fi 2676if test -z "$ac_cpp_err"; then 2677 # Broken: success on invalid input. 2678continue 2679else 2680 echo "$as_me: failed program was:" >&5 2681 cat "conftest.$ac_ext" >&5 2682 # Passes both tests. 2683ac_preproc_ok=: 2684break 2685fi 2686rm -f conftest.err "conftest.$ac_ext" 2687 2688done 2689# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2690rm -f conftest.err "conftest.$ac_ext" 2691if $ac_preproc_ok; then 2692 break 2693fi 2694 2695 done 2696 ac_cv_prog_CPP=$CPP 2697 2698fi 2699 CPP=$ac_cv_prog_CPP 2700else 2701 ac_cv_prog_CPP=$CPP 2702fi 2703echo "$as_me:2703: result: $CPP" >&5 2704echo "${ECHO_T}$CPP" >&6 2705ac_preproc_ok=false 2706for ac_c_preproc_warn_flag in '' yes 2707do 2708 # Use a header file that comes with gcc, so configuring glibc 2709 # with a fresh cross-compiler works. 2710 # On the NeXT, cc -E runs the code through the compiler's parser, 2711 # not just through cpp. "Syntax error" is here to catch this case. 2712 cat >"conftest.$ac_ext" <<_ACEOF 2713#line 2713 "configure" 2714#include "confdefs.h" 2715#include <assert.h> 2716 Syntax error 2717_ACEOF 2718if { (eval echo "$as_me:2718: \"$ac_cpp "conftest.$ac_ext"\"") >&5 2719 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 2720 ac_status=$? 2721 $EGREP -v '^ *\+' conftest.er1 >conftest.err 2722 rm -f conftest.er1 2723 cat conftest.err >&5 2724 echo "$as_me:2724: \$? = $ac_status" >&5 2725 (exit "$ac_status"); } >/dev/null; then 2726 if test -s conftest.err; then 2727 ac_cpp_err=$ac_c_preproc_warn_flag 2728 else 2729 ac_cpp_err= 2730 fi 2731else 2732 ac_cpp_err=yes 2733fi 2734if test -z "$ac_cpp_err"; then 2735 : 2736else 2737 echo "$as_me: failed program was:" >&5 2738 cat "conftest.$ac_ext" >&5 2739 # Broken: fails on valid input. 2740continue 2741fi 2742rm -f conftest.err "conftest.$ac_ext" 2743 2744 # OK, works on sane cases. Now check whether non-existent headers 2745 # can be detected and how. 2746 cat >"conftest.$ac_ext" <<_ACEOF 2747#line 2747 "configure" 2748#include "confdefs.h" 2749#include <ac_nonexistent.h> 2750_ACEOF 2751if { (eval echo "$as_me:2751: \"$ac_cpp "conftest.$ac_ext"\"") >&5 2752 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 2753 ac_status=$? 2754 $EGREP -v '^ *\+' conftest.er1 >conftest.err 2755 rm -f conftest.er1 2756 cat conftest.err >&5 2757 echo "$as_me:2757: \$? = $ac_status" >&5 2758 (exit "$ac_status"); } >/dev/null; then 2759 if test -s conftest.err; then 2760 ac_cpp_err=$ac_c_preproc_warn_flag 2761 else 2762 ac_cpp_err= 2763 fi 2764else 2765 ac_cpp_err=yes 2766fi 2767if test -z "$ac_cpp_err"; then 2768 # Broken: success on invalid input. 2769continue 2770else 2771 echo "$as_me: failed program was:" >&5 2772 cat "conftest.$ac_ext" >&5 2773 # Passes both tests. 2774ac_preproc_ok=: 2775break 2776fi 2777rm -f conftest.err "conftest.$ac_ext" 2778 2779done 2780# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2781rm -f conftest.err "conftest.$ac_ext" 2782if $ac_preproc_ok; then 2783 : 2784else 2785 { { echo "$as_me:2785: error: C preprocessor \"$CPP\" fails sanity check" >&5 2786echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 2787 { (exit 1); exit 1; }; } 2788fi 2789 2790ac_ext=c 2791ac_cpp='$CPP $CPPFLAGS' 2792ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 2793ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 2794ac_compiler_gnu=$ac_cv_c_compiler_gnu 2795ac_main_return="return" 2796 2797for ac_prog in mawk gawk nawk awk 2798do 2799 # Extract the first word of "$ac_prog", so it can be a program name with args. 2800set dummy $ac_prog; ac_word=$2 2801echo "$as_me:2801: checking for $ac_word" >&5 2802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2803if test "${ac_cv_prog_AWK+set}" = set; then 2804 echo $ECHO_N "(cached) $ECHO_C" >&6 2805else 2806 if test -n "$AWK"; then 2807 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2808else 2809 ac_save_IFS=$IFS; IFS=$ac_path_separator 2810ac_dummy="$PATH" 2811for ac_dir in $ac_dummy; do 2812 IFS=$ac_save_IFS 2813 test -z "$ac_dir" && ac_dir=. 2814 $as_executable_p "$ac_dir/$ac_word" || continue 2815ac_cv_prog_AWK="$ac_prog" 2816echo "$as_me:2816: found $ac_dir/$ac_word" >&5 2817break 2818done 2819 2820fi 2821fi 2822AWK=$ac_cv_prog_AWK 2823if test -n "$AWK"; then 2824 echo "$as_me:2824: result: $AWK" >&5 2825echo "${ECHO_T}$AWK" >&6 2826else 2827 echo "$as_me:2827: result: no" >&5 2828echo "${ECHO_T}no" >&6 2829fi 2830 2831 test -n "$AWK" && break 2832done 2833 2834# Find a good install program. We prefer a C program (faster), 2835# so one script is as good as another. But avoid the broken or 2836# incompatible versions: 2837# SysV /etc/install, /usr/sbin/install 2838# SunOS /usr/etc/install 2839# IRIX /sbin/install 2840# AIX /bin/install 2841# AmigaOS /C/install, which installs bootblocks on floppy discs 2842# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2843# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2844# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2845# ./install, which can be erroneously created by make from ./install.sh. 2846echo "$as_me:2846: checking for a BSD compatible install" >&5 2847echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 2848if test -z "$INSTALL"; then 2849if test "${ac_cv_path_install+set}" = set; then 2850 echo $ECHO_N "(cached) $ECHO_C" >&6 2851else 2852 ac_save_IFS=$IFS; IFS=$ac_path_separator 2853 for ac_dir in $PATH; do 2854 IFS=$ac_save_IFS 2855 # Account for people who put trailing slashes in PATH elements. 2856 case $ac_dir/ in 2857 / | ./ | .// | /cC/* \ 2858 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 2859 | /usr/ucb/* ) ;; 2860 *) 2861 # OSF1 and SCO ODT 3.0 have their own names for install. 2862 # Don't use installbsd from OSF since it installs stuff as root 2863 # by default. 2864 for ac_prog in ginstall scoinst install; do 2865 if $as_executable_p "$ac_dir/$ac_prog"; then 2866 if test $ac_prog = install && 2867 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2868 # AIX install. It has an incompatible calling convention. 2869 : 2870 elif test $ac_prog = install && 2871 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2872 # program-specific install script used by HP pwplus--don't use. 2873 : 2874 else 2875 ac_cv_path_install="$ac_dir/$ac_prog -c" 2876 break 2 2877 fi 2878 fi 2879 done 2880 ;; 2881 esac 2882 done 2883 2884fi 2885 if test "${ac_cv_path_install+set}" = set; then 2886 INSTALL=$ac_cv_path_install 2887 else 2888 # As a last resort, use the slow shell script. We don't cache a 2889 # path for INSTALL within a source directory, because that will 2890 # break other packages using the cache if that directory is 2891 # removed, or if the path is relative. 2892 INSTALL=$ac_install_sh 2893 fi 2894fi 2895echo "$as_me:2895: result: $INSTALL" >&5 2896echo "${ECHO_T}$INSTALL" >&6 2897 2898# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2899# It thinks the first close brace ends the variable substitution. 2900test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2901 2902test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2903 2904test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2905 2906echo "$as_me:2906: checking whether ln -s works" >&5 2907echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2908LN_S=$as_ln_s 2909if test "$LN_S" = "ln -s"; then 2910 echo "$as_me:2910: result: yes" >&5 2911echo "${ECHO_T}yes" >&6 2912else 2913 echo "$as_me:2913: result: no, using $LN_S" >&5 2914echo "${ECHO_T}no, using $LN_S" >&6 2915fi 2916 2917test "$program_prefix" != NONE && 2918 program_transform_name="s,^,$program_prefix,;$program_transform_name" 2919# Use a double $ so make ignores it. 2920test "$program_suffix" != NONE && 2921 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 2922# Double any \ or $. echo might interpret backslashes. 2923# By default was `s,x,x', remove it if useless. 2924cat <<\_ACEOF >conftest.sed 2925s/[\\$]/&&/g;s/;s,x,x,$// 2926_ACEOF 2927program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2928rm conftest.sed 2929 2930for ac_prog in lint cppcheck splint 2931do 2932 # Extract the first word of "$ac_prog", so it can be a program name with args. 2933set dummy $ac_prog; ac_word=$2 2934echo "$as_me:2934: checking for $ac_word" >&5 2935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2936if test "${ac_cv_prog_LINT+set}" = set; then 2937 echo $ECHO_N "(cached) $ECHO_C" >&6 2938else 2939 if test -n "$LINT"; then 2940 ac_cv_prog_LINT="$LINT" # Let the user override the test. 2941else 2942 ac_save_IFS=$IFS; IFS=$ac_path_separator 2943ac_dummy="$PATH" 2944for ac_dir in $ac_dummy; do 2945 IFS=$ac_save_IFS 2946 test -z "$ac_dir" && ac_dir=. 2947 $as_executable_p "$ac_dir/$ac_word" || continue 2948ac_cv_prog_LINT="$ac_prog" 2949echo "$as_me:2949: found $ac_dir/$ac_word" >&5 2950break 2951done 2952 2953fi 2954fi 2955LINT=$ac_cv_prog_LINT 2956if test -n "$LINT"; then 2957 echo "$as_me:2957: result: $LINT" >&5 2958echo "${ECHO_T}$LINT" >&6 2959else 2960 echo "$as_me:2960: result: no" >&5 2961echo "${ECHO_T}no" >&6 2962fi 2963 2964 test -n "$LINT" && break 2965done 2966 2967case "x$LINT" in 2968(xlint|x*/lint) # NetBSD 10 2969 test -z "$LINT_OPTS" && LINT_OPTS="-chapbrxzgFS -v -Ac11" 2970 ;; 2971(xcppcheck|x*/cppcheck) 2972 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all -D__CPPCHECK__" 2973 ;; 2974esac 2975 2976### checks for compiler characteristics 2977 2978echo "$as_me:2978: checking if the POSIX test-macros are already defined" >&5 2979echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6 2980if test "${cf_cv_posix_visible+set}" = set; then 2981 echo $ECHO_N "(cached) $ECHO_C" >&6 2982else 2983 2984cat >"conftest.$ac_ext" <<_ACEOF 2985#line 2985 "configure" 2986#include "confdefs.h" 2987#include <stdio.h> 2988int 2989main (void) 2990{ 2991 2992#if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \ 2993 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \ 2994 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \ 2995 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0) 2996#error conflicting symbols found 2997#endif 2998 2999 ; 3000 return 0; 3001} 3002_ACEOF 3003rm -f "conftest.$ac_objext" 3004if { (eval echo "$as_me:3004: \"$ac_compile\"") >&5 3005 (eval $ac_compile) 2>&5 3006 ac_status=$? 3007 echo "$as_me:3007: \$? = $ac_status" >&5 3008 (exit "$ac_status"); } && 3009 { ac_try='test -s "conftest.$ac_objext"' 3010 { (eval echo "$as_me:3010: \"$ac_try\"") >&5 3011 (eval $ac_try) 2>&5 3012 ac_status=$? 3013 echo "$as_me:3013: \$? = $ac_status" >&5 3014 (exit "$ac_status"); }; }; then 3015 cf_cv_posix_visible=no 3016else 3017 echo "$as_me: failed program was:" >&5 3018cat "conftest.$ac_ext" >&5 3019cf_cv_posix_visible=yes 3020fi 3021rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3022 3023fi 3024echo "$as_me:3024: result: $cf_cv_posix_visible" >&5 3025echo "${ECHO_T}$cf_cv_posix_visible" >&6 3026 3027if test "$cf_cv_posix_visible" = no; then 3028 3029cf_XOPEN_SOURCE=700 3030cf_POSIX_C_SOURCE=199506L 3031cf_xopen_source= 3032 3033case "$host_os" in 3034(aix[4-7]*) 3035 cf_xopen_source="-D_ALL_SOURCE" 3036 ;; 3037(darwin[0-8].*) 3038 cf_xopen_source="-D_APPLE_C_SOURCE" 3039 ;; 3040(darwin*) 3041 cf_xopen_source="-D_DARWIN_C_SOURCE" 3042 cf_XOPEN_SOURCE= 3043 ;; 3044(freebsd*|dragonfly*|midnightbsd*) 3045 # 5.x headers associate 3046 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L 3047 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L 3048 cf_POSIX_C_SOURCE=200112L 3049 cf_XOPEN_SOURCE=600 3050 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 3051 ;; 3052(hpux11*) 3053 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500" 3054 ;; 3055(hpux*) 3056 cf_xopen_source="-D_HPUX_SOURCE" 3057 ;; 3058(irix[56].*) 3059 cf_xopen_source="-D_SGI_SOURCE" 3060 cf_XOPEN_SOURCE= 3061 ;; 3062(linux*gnu|linux*gnuabi64|linux*gnuabin32|linux*gnueabi|linux*gnueabihf|linux*gnux32|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin|msys|mingw*|linux*uclibc) 3063 3064cf_gnu_xopen_source=$cf_XOPEN_SOURCE 3065 3066echo "$as_me:3066: checking if this is the GNU C library" >&5 3067echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6 3068if test "${cf_cv_gnu_library+set}" = set; then 3069 echo $ECHO_N "(cached) $ECHO_C" >&6 3070else 3071 3072cat >"conftest.$ac_ext" <<_ACEOF 3073#line 3073 "configure" 3074#include "confdefs.h" 3075#include <sys/types.h> 3076int 3077main (void) 3078{ 3079 3080 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0 3081 return 0; 3082 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0 3083 return 0; 3084 #else 3085 # error not GNU C library 3086 #endif 3087 ; 3088 return 0; 3089} 3090_ACEOF 3091rm -f "conftest.$ac_objext" 3092if { (eval echo "$as_me:3092: \"$ac_compile\"") >&5 3093 (eval $ac_compile) 2>&5 3094 ac_status=$? 3095 echo "$as_me:3095: \$? = $ac_status" >&5 3096 (exit "$ac_status"); } && 3097 { ac_try='test -s "conftest.$ac_objext"' 3098 { (eval echo "$as_me:3098: \"$ac_try\"") >&5 3099 (eval $ac_try) 2>&5 3100 ac_status=$? 3101 echo "$as_me:3101: \$? = $ac_status" >&5 3102 (exit "$ac_status"); }; }; then 3103 cf_cv_gnu_library=yes 3104else 3105 echo "$as_me: failed program was:" >&5 3106cat "conftest.$ac_ext" >&5 3107cf_cv_gnu_library=no 3108fi 3109rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3110 3111fi 3112echo "$as_me:3112: result: $cf_cv_gnu_library" >&5 3113echo "${ECHO_T}$cf_cv_gnu_library" >&6 3114 3115if test x$cf_cv_gnu_library = xyes; then 3116 3117 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE 3118 # was changed to help a little. newlib incorporated the change about 4 3119 # years later. 3120 echo "$as_me:3120: checking if _DEFAULT_SOURCE can be used as a basis" >&5 3121echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6 3122if test "${cf_cv_gnu_library_219+set}" = set; then 3123 echo $ECHO_N "(cached) $ECHO_C" >&6 3124else 3125 3126 cf_save="$CPPFLAGS" 3127 3128 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3129 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE" 3130 3131 cat >"conftest.$ac_ext" <<_ACEOF 3132#line 3132 "configure" 3133#include "confdefs.h" 3134#include <sys/types.h> 3135int 3136main (void) 3137{ 3138 3139 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2) 3140 return 0; 3141 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3) 3142 return 0; 3143 #else 3144 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old 3145 #endif 3146 ; 3147 return 0; 3148} 3149_ACEOF 3150rm -f "conftest.$ac_objext" 3151if { (eval echo "$as_me:3151: \"$ac_compile\"") >&5 3152 (eval $ac_compile) 2>&5 3153 ac_status=$? 3154 echo "$as_me:3154: \$? = $ac_status" >&5 3155 (exit "$ac_status"); } && 3156 { ac_try='test -s "conftest.$ac_objext"' 3157 { (eval echo "$as_me:3157: \"$ac_try\"") >&5 3158 (eval $ac_try) 2>&5 3159 ac_status=$? 3160 echo "$as_me:3160: \$? = $ac_status" >&5 3161 (exit "$ac_status"); }; }; then 3162 cf_cv_gnu_library_219=yes 3163else 3164 echo "$as_me: failed program was:" >&5 3165cat "conftest.$ac_ext" >&5 3166cf_cv_gnu_library_219=no 3167fi 3168rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3169 CPPFLAGS="$cf_save" 3170 3171fi 3172echo "$as_me:3172: result: $cf_cv_gnu_library_219" >&5 3173echo "${ECHO_T}$cf_cv_gnu_library_219" >&6 3174 3175 if test "x$cf_cv_gnu_library_219" = xyes; then 3176 cf_save="$CPPFLAGS" 3177 echo "$as_me:3177: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5 3178echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6 3179if test "${cf_cv_gnu_dftsrc_219+set}" = set; then 3180 echo $ECHO_N "(cached) $ECHO_C" >&6 3181else 3182 3183cf_fix_cppflags=no 3184cf_new_cflags= 3185cf_new_cppflags= 3186cf_new_extra_cppflags= 3187 3188for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source 3189do 3190case "$cf_fix_cppflags" in 3191(no) 3192 case "$cf_add_cflags" in 3193 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 3194 case "$cf_add_cflags" in 3195 (-D*) 3196 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3197 3198 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3199 && test -z "${cf_tst_cflags}" \ 3200 && cf_fix_cppflags=yes 3201 3202 if test "$cf_fix_cppflags" = yes ; then 3203 3204 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3205 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3206 3207 continue 3208 elif test "${cf_tst_cflags}" = "\"'" ; then 3209 3210 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3211 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3212 3213 continue 3214 fi 3215 ;; 3216 esac 3217 case "$CPPFLAGS" in 3218 (*$cf_add_cflags) 3219 ;; 3220 (*) 3221 case "$cf_add_cflags" in 3222 (-D*) 3223 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3224 3225CPPFLAGS=`echo "$CPPFLAGS" | \ 3226 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3227 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3228 3229 ;; 3230 esac 3231 3232 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 3233 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 3234 3235 ;; 3236 esac 3237 ;; 3238 (*) 3239 3240 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 3241 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 3242 3243 ;; 3244 esac 3245 ;; 3246(yes) 3247 3248 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3249 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3250 3251 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 3252 3253 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3254 && test -z "${cf_tst_cflags}" \ 3255 && cf_fix_cppflags=no 3256 ;; 3257esac 3258done 3259 3260if test -n "$cf_new_cflags" ; then 3261 3262 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 3263 CFLAGS="${CFLAGS}$cf_new_cflags" 3264 3265fi 3266 3267if test -n "$cf_new_cppflags" ; then 3268 3269 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3270 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 3271 3272fi 3273 3274if test -n "$cf_new_extra_cppflags" ; then 3275 3276 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 3277 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 3278 3279fi 3280 3281 cat >"conftest.$ac_ext" <<_ACEOF 3282#line 3282 "configure" 3283#include "confdefs.h" 3284 3285 #include <limits.h> 3286 #include <sys/types.h> 3287 3288int 3289main (void) 3290{ 3291 3292 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1) 3293 return 0; 3294 #else 3295 # error GNU C library is too old 3296 #endif 3297 ; 3298 return 0; 3299} 3300_ACEOF 3301rm -f "conftest.$ac_objext" 3302if { (eval echo "$as_me:3302: \"$ac_compile\"") >&5 3303 (eval $ac_compile) 2>&5 3304 ac_status=$? 3305 echo "$as_me:3305: \$? = $ac_status" >&5 3306 (exit "$ac_status"); } && 3307 { ac_try='test -s "conftest.$ac_objext"' 3308 { (eval echo "$as_me:3308: \"$ac_try\"") >&5 3309 (eval $ac_try) 2>&5 3310 ac_status=$? 3311 echo "$as_me:3311: \$? = $ac_status" >&5 3312 (exit "$ac_status"); }; }; then 3313 cf_cv_gnu_dftsrc_219=yes 3314else 3315 echo "$as_me: failed program was:" >&5 3316cat "conftest.$ac_ext" >&5 3317cf_cv_gnu_dftsrc_219=no 3318fi 3319rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3320 3321fi 3322echo "$as_me:3322: result: $cf_cv_gnu_dftsrc_219" >&5 3323echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6 3324 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save" 3325 else 3326 cf_cv_gnu_dftsrc_219=maybe 3327 fi 3328 3329 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then 3330 3331 echo "$as_me:3331: checking if we must define _GNU_SOURCE" >&5 3332echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6 3333if test "${cf_cv_gnu_source+set}" = set; then 3334 echo $ECHO_N "(cached) $ECHO_C" >&6 3335else 3336 3337 cat >"conftest.$ac_ext" <<_ACEOF 3338#line 3338 "configure" 3339#include "confdefs.h" 3340#include <sys/types.h> 3341int 3342main (void) 3343{ 3344 3345 #ifndef _XOPEN_SOURCE 3346 #error expected _XOPEN_SOURCE to be defined 3347 #endif 3348 ; 3349 return 0; 3350} 3351_ACEOF 3352rm -f "conftest.$ac_objext" 3353if { (eval echo "$as_me:3353: \"$ac_compile\"") >&5 3354 (eval $ac_compile) 2>&5 3355 ac_status=$? 3356 echo "$as_me:3356: \$? = $ac_status" >&5 3357 (exit "$ac_status"); } && 3358 { ac_try='test -s "conftest.$ac_objext"' 3359 { (eval echo "$as_me:3359: \"$ac_try\"") >&5 3360 (eval $ac_try) 2>&5 3361 ac_status=$? 3362 echo "$as_me:3362: \$? = $ac_status" >&5 3363 (exit "$ac_status"); }; }; then 3364 cf_cv_gnu_source=no 3365else 3366 echo "$as_me: failed program was:" >&5 3367cat "conftest.$ac_ext" >&5 3368cf_save="$CPPFLAGS" 3369 3370cf_fix_cppflags=no 3371cf_new_cflags= 3372cf_new_cppflags= 3373cf_new_extra_cppflags= 3374 3375for cf_add_cflags in -D_GNU_SOURCE 3376do 3377case "$cf_fix_cppflags" in 3378(no) 3379 case "$cf_add_cflags" in 3380 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 3381 case "$cf_add_cflags" in 3382 (-D*) 3383 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3384 3385 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3386 && test -z "${cf_tst_cflags}" \ 3387 && cf_fix_cppflags=yes 3388 3389 if test "$cf_fix_cppflags" = yes ; then 3390 3391 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3392 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3393 3394 continue 3395 elif test "${cf_tst_cflags}" = "\"'" ; then 3396 3397 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3398 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3399 3400 continue 3401 fi 3402 ;; 3403 esac 3404 case "$CPPFLAGS" in 3405 (*$cf_add_cflags) 3406 ;; 3407 (*) 3408 case "$cf_add_cflags" in 3409 (-D*) 3410 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3411 3412CPPFLAGS=`echo "$CPPFLAGS" | \ 3413 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3414 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3415 3416 ;; 3417 esac 3418 3419 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 3420 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 3421 3422 ;; 3423 esac 3424 ;; 3425 (*) 3426 3427 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 3428 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 3429 3430 ;; 3431 esac 3432 ;; 3433(yes) 3434 3435 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3436 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3437 3438 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 3439 3440 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3441 && test -z "${cf_tst_cflags}" \ 3442 && cf_fix_cppflags=no 3443 ;; 3444esac 3445done 3446 3447if test -n "$cf_new_cflags" ; then 3448 3449 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 3450 CFLAGS="${CFLAGS}$cf_new_cflags" 3451 3452fi 3453 3454if test -n "$cf_new_cppflags" ; then 3455 3456 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3457 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 3458 3459fi 3460 3461if test -n "$cf_new_extra_cppflags" ; then 3462 3463 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 3464 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 3465 3466fi 3467 3468 cat >"conftest.$ac_ext" <<_ACEOF 3469#line 3469 "configure" 3470#include "confdefs.h" 3471#include <sys/types.h> 3472int 3473main (void) 3474{ 3475 3476 #ifdef _XOPEN_SOURCE 3477 #error expected _XOPEN_SOURCE to be undefined 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_cv_gnu_source=no 3496else 3497 echo "$as_me: failed program was:" >&5 3498cat "conftest.$ac_ext" >&5 3499cf_cv_gnu_source=yes 3500fi 3501rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3502 CPPFLAGS="$cf_save" 3503 3504fi 3505rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3506 3507fi 3508echo "$as_me:3508: result: $cf_cv_gnu_source" >&5 3509echo "${ECHO_T}$cf_cv_gnu_source" >&6 3510 3511 if test "$cf_cv_gnu_source" = yes 3512 then 3513 echo "$as_me:3513: checking if we should also define _DEFAULT_SOURCE" >&5 3514echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6 3515if test "${cf_cv_default_source+set}" = set; then 3516 echo $ECHO_N "(cached) $ECHO_C" >&6 3517else 3518 3519 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3520 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE" 3521 3522 cat >"conftest.$ac_ext" <<_ACEOF 3523#line 3523 "configure" 3524#include "confdefs.h" 3525#include <sys/types.h> 3526int 3527main (void) 3528{ 3529 3530 #ifdef _DEFAULT_SOURCE 3531 #error expected _DEFAULT_SOURCE to be undefined 3532 #endif 3533 ; 3534 return 0; 3535} 3536_ACEOF 3537rm -f "conftest.$ac_objext" 3538if { (eval echo "$as_me:3538: \"$ac_compile\"") >&5 3539 (eval $ac_compile) 2>&5 3540 ac_status=$? 3541 echo "$as_me:3541: \$? = $ac_status" >&5 3542 (exit "$ac_status"); } && 3543 { ac_try='test -s "conftest.$ac_objext"' 3544 { (eval echo "$as_me:3544: \"$ac_try\"") >&5 3545 (eval $ac_try) 2>&5 3546 ac_status=$? 3547 echo "$as_me:3547: \$? = $ac_status" >&5 3548 (exit "$ac_status"); }; }; then 3549 cf_cv_default_source=no 3550else 3551 echo "$as_me: failed program was:" >&5 3552cat "conftest.$ac_ext" >&5 3553cf_cv_default_source=yes 3554fi 3555rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3556 3557fi 3558echo "$as_me:3558: result: $cf_cv_default_source" >&5 3559echo "${ECHO_T}$cf_cv_default_source" >&6 3560 if test "$cf_cv_default_source" = yes 3561 then 3562 3563 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3564 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE" 3565 3566 fi 3567 fi 3568 fi 3569 3570fi 3571 3572 ;; 3573linux*musl) 3574 cf_xopen_source="-D_BSD_SOURCE" 3575 ;; 3576(minix*) 3577 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this... 3578 ;; 3579(mirbsd*) 3580 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types 3581 cf_XOPEN_SOURCE= 3582 3583if test "$cf_cv_posix_visible" = no; then 3584 3585cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 3586 3587cf_save_CFLAGS="$CFLAGS" 3588cf_save_CPPFLAGS="$CPPFLAGS" 3589 3590cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 3591 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3592 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 3593 3594cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 3595 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3596 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 3597 3598echo "$as_me:3598: checking if we should define _POSIX_C_SOURCE" >&5 3599echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 3600if test "${cf_cv_posix_c_source+set}" = set; then 3601 echo $ECHO_N "(cached) $ECHO_C" >&6 3602else 3603 3604echo "${as_me:-configure}:3604: testing if the symbol is already defined go no further ..." 1>&5 3605 3606 cat >"conftest.$ac_ext" <<_ACEOF 3607#line 3607 "configure" 3608#include "confdefs.h" 3609#include <sys/types.h> 3610int 3611main (void) 3612{ 3613 3614#ifndef _POSIX_C_SOURCE 3615#error _POSIX_C_SOURCE is not defined 3616#endif 3617 ; 3618 return 0; 3619} 3620_ACEOF 3621rm -f "conftest.$ac_objext" 3622if { (eval echo "$as_me:3622: \"$ac_compile\"") >&5 3623 (eval $ac_compile) 2>&5 3624 ac_status=$? 3625 echo "$as_me:3625: \$? = $ac_status" >&5 3626 (exit "$ac_status"); } && 3627 { ac_try='test -s "conftest.$ac_objext"' 3628 { (eval echo "$as_me:3628: \"$ac_try\"") >&5 3629 (eval $ac_try) 2>&5 3630 ac_status=$? 3631 echo "$as_me:3631: \$? = $ac_status" >&5 3632 (exit "$ac_status"); }; }; then 3633 cf_cv_posix_c_source=no 3634else 3635 echo "$as_me: failed program was:" >&5 3636cat "conftest.$ac_ext" >&5 3637cf_want_posix_source=no 3638 case .$cf_POSIX_C_SOURCE in 3639 (.[12]??*) 3640 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3641 ;; 3642 (.2) 3643 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3644 cf_want_posix_source=yes 3645 ;; 3646 (.*) 3647 cf_want_posix_source=yes 3648 ;; 3649 esac 3650 if test "$cf_want_posix_source" = yes ; then 3651 cat >"conftest.$ac_ext" <<_ACEOF 3652#line 3652 "configure" 3653#include "confdefs.h" 3654#include <sys/types.h> 3655int 3656main (void) 3657{ 3658 3659#ifdef _POSIX_SOURCE 3660#error _POSIX_SOURCE is defined 3661#endif 3662 ; 3663 return 0; 3664} 3665_ACEOF 3666rm -f "conftest.$ac_objext" 3667if { (eval echo "$as_me:3667: \"$ac_compile\"") >&5 3668 (eval $ac_compile) 2>&5 3669 ac_status=$? 3670 echo "$as_me:3670: \$? = $ac_status" >&5 3671 (exit "$ac_status"); } && 3672 { ac_try='test -s "conftest.$ac_objext"' 3673 { (eval echo "$as_me:3673: \"$ac_try\"") >&5 3674 (eval $ac_try) 2>&5 3675 ac_status=$? 3676 echo "$as_me:3676: \$? = $ac_status" >&5 3677 (exit "$ac_status"); }; }; then 3678 : 3679else 3680 echo "$as_me: failed program was:" >&5 3681cat "conftest.$ac_ext" >&5 3682cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 3683fi 3684rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3685 fi 3686 3687echo "${as_me:-configure}:3687: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 3688 3689 CFLAGS="$cf_trim_CFLAGS" 3690 CPPFLAGS="$cf_trim_CPPFLAGS" 3691 3692 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3693 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source" 3694 3695echo "${as_me:-configure}:3695: testing if the second compile does not leave our definition intact error ..." 1>&5 3696 3697 cat >"conftest.$ac_ext" <<_ACEOF 3698#line 3698 "configure" 3699#include "confdefs.h" 3700#include <sys/types.h> 3701int 3702main (void) 3703{ 3704 3705#ifndef _POSIX_C_SOURCE 3706#error _POSIX_C_SOURCE is not defined 3707#endif 3708 ; 3709 return 0; 3710} 3711_ACEOF 3712rm -f "conftest.$ac_objext" 3713if { (eval echo "$as_me:3713: \"$ac_compile\"") >&5 3714 (eval $ac_compile) 2>&5 3715 ac_status=$? 3716 echo "$as_me:3716: \$? = $ac_status" >&5 3717 (exit "$ac_status"); } && 3718 { ac_try='test -s "conftest.$ac_objext"' 3719 { (eval echo "$as_me:3719: \"$ac_try\"") >&5 3720 (eval $ac_try) 2>&5 3721 ac_status=$? 3722 echo "$as_me:3722: \$? = $ac_status" >&5 3723 (exit "$ac_status"); }; }; then 3724 : 3725else 3726 echo "$as_me: failed program was:" >&5 3727cat "conftest.$ac_ext" >&5 3728cf_cv_posix_c_source=no 3729fi 3730rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3731 CFLAGS="$cf_save_CFLAGS" 3732 CPPFLAGS="$cf_save_CPPFLAGS" 3733 3734fi 3735rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3736 3737fi 3738echo "$as_me:3738: result: $cf_cv_posix_c_source" >&5 3739echo "${ECHO_T}$cf_cv_posix_c_source" >&6 3740 3741if test "$cf_cv_posix_c_source" != no ; then 3742 CFLAGS="$cf_trim_CFLAGS" 3743 CPPFLAGS="$cf_trim_CPPFLAGS" 3744 3745cf_fix_cppflags=no 3746cf_new_cflags= 3747cf_new_cppflags= 3748cf_new_extra_cppflags= 3749 3750for cf_add_cflags in $cf_cv_posix_c_source 3751do 3752case "$cf_fix_cppflags" in 3753(no) 3754 case "$cf_add_cflags" in 3755 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 3756 case "$cf_add_cflags" in 3757 (-D*) 3758 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3759 3760 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3761 && test -z "${cf_tst_cflags}" \ 3762 && cf_fix_cppflags=yes 3763 3764 if test "$cf_fix_cppflags" = yes ; then 3765 3766 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3767 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3768 3769 continue 3770 elif test "${cf_tst_cflags}" = "\"'" ; then 3771 3772 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3773 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3774 3775 continue 3776 fi 3777 ;; 3778 esac 3779 case "$CPPFLAGS" in 3780 (*$cf_add_cflags) 3781 ;; 3782 (*) 3783 case "$cf_add_cflags" in 3784 (-D*) 3785 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3786 3787CPPFLAGS=`echo "$CPPFLAGS" | \ 3788 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3789 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3790 3791 ;; 3792 esac 3793 3794 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 3795 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 3796 3797 ;; 3798 esac 3799 ;; 3800 (*) 3801 3802 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 3803 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 3804 3805 ;; 3806 esac 3807 ;; 3808(yes) 3809 3810 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3811 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3812 3813 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 3814 3815 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3816 && test -z "${cf_tst_cflags}" \ 3817 && cf_fix_cppflags=no 3818 ;; 3819esac 3820done 3821 3822if test -n "$cf_new_cflags" ; then 3823 3824 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 3825 CFLAGS="${CFLAGS}$cf_new_cflags" 3826 3827fi 3828 3829if test -n "$cf_new_cppflags" ; then 3830 3831 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3832 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 3833 3834fi 3835 3836if test -n "$cf_new_extra_cppflags" ; then 3837 3838 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 3839 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 3840 3841fi 3842 3843fi 3844 3845fi # cf_cv_posix_visible 3846 3847 ;; 3848(netbsd*) 3849 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw 3850 ;; 3851(openbsd[6-9]*) 3852 # OpenBSD 6.x has broken locale support, both compile-time and runtime. 3853 # see https://www.mail-archive.com/bugs@openbsd.org/msg13200.html 3854 # Abusing the conformance level is a workaround. 3855 { echo "$as_me:3855: WARNING: this system does not provide usable locale support" >&5 3856echo "$as_me: WARNING: this system does not provide usable locale support" >&2;} 3857 cf_xopen_source="-D_BSD_SOURCE" 3858 cf_XOPEN_SOURCE=700 3859 ;; 3860(openbsd[4-5]*) 3861 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw 3862 cf_xopen_source="-D_BSD_SOURCE" 3863 cf_XOPEN_SOURCE=600 3864 ;; 3865(openbsd*) 3866 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw 3867 ;; 3868(osf[45]*) 3869 cf_xopen_source="-D_OSF_SOURCE" 3870 ;; 3871(nto-qnx*) 3872 cf_xopen_source="-D_QNX_SOURCE" 3873 ;; 3874(sco*) 3875 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer 3876 ;; 3877(solaris2.*) 3878 cf_xopen_source="-D__EXTENSIONS__" 3879 cf_cv_xopen_source=broken 3880 ;; 3881(sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2) 3882 cf_XOPEN_SOURCE= 3883 cf_POSIX_C_SOURCE= 3884 ;; 3885(*) 3886 3887echo "$as_me:3887: checking if we should define _XOPEN_SOURCE" >&5 3888echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 3889if test "${cf_cv_xopen_source+set}" = set; then 3890 echo $ECHO_N "(cached) $ECHO_C" >&6 3891else 3892 3893 cat >"conftest.$ac_ext" <<_ACEOF 3894#line 3894 "configure" 3895#include "confdefs.h" 3896 3897$ac_includes_default 3898 3899int 3900main (void) 3901{ 3902 3903#ifndef _XOPEN_SOURCE 3904#error _XOPEN_SOURCE is not defined 3905#endif 3906 3907 ; 3908 return 0; 3909} 3910_ACEOF 3911rm -f "conftest.$ac_objext" 3912if { (eval echo "$as_me:3912: \"$ac_compile\"") >&5 3913 (eval $ac_compile) 2>&5 3914 ac_status=$? 3915 echo "$as_me:3915: \$? = $ac_status" >&5 3916 (exit "$ac_status"); } && 3917 { ac_try='test -s "conftest.$ac_objext"' 3918 { (eval echo "$as_me:3918: \"$ac_try\"") >&5 3919 (eval $ac_try) 2>&5 3920 ac_status=$? 3921 echo "$as_me:3921: \$? = $ac_status" >&5 3922 (exit "$ac_status"); }; }; then 3923 cf_cv_xopen_source=no 3924else 3925 echo "$as_me: failed program was:" >&5 3926cat "conftest.$ac_ext" >&5 3927cf_save="$CPPFLAGS" 3928 3929 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3930 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 3931 3932 cat >"conftest.$ac_ext" <<_ACEOF 3933#line 3933 "configure" 3934#include "confdefs.h" 3935 3936$ac_includes_default 3937 3938int 3939main (void) 3940{ 3941 3942#ifndef _XOPEN_SOURCE 3943#error _XOPEN_SOURCE is not defined 3944#endif 3945 3946 ; 3947 return 0; 3948} 3949_ACEOF 3950rm -f "conftest.$ac_objext" 3951if { (eval echo "$as_me:3951: \"$ac_compile\"") >&5 3952 (eval $ac_compile) 2>&5 3953 ac_status=$? 3954 echo "$as_me:3954: \$? = $ac_status" >&5 3955 (exit "$ac_status"); } && 3956 { ac_try='test -s "conftest.$ac_objext"' 3957 { (eval echo "$as_me:3957: \"$ac_try\"") >&5 3958 (eval $ac_try) 2>&5 3959 ac_status=$? 3960 echo "$as_me:3960: \$? = $ac_status" >&5 3961 (exit "$ac_status"); }; }; then 3962 cf_cv_xopen_source=no 3963else 3964 echo "$as_me: failed program was:" >&5 3965cat "conftest.$ac_ext" >&5 3966cf_cv_xopen_source=$cf_XOPEN_SOURCE 3967fi 3968rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3969 CPPFLAGS="$cf_save" 3970 3971fi 3972rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3973 3974fi 3975echo "$as_me:3975: result: $cf_cv_xopen_source" >&5 3976echo "${ECHO_T}$cf_cv_xopen_source" >&6 3977 3978if test "$cf_cv_xopen_source" != no ; then 3979 3980CFLAGS=`echo "$CFLAGS" | \ 3981 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3982 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3983 3984CPPFLAGS=`echo "$CPPFLAGS" | \ 3985 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3986 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3987 3988 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 3989 3990for cf_add_cflags in $cf_temp_xopen_source 3991do 3992 case "x$cf_add_cflags" in 3993 (x-[DU]*) 3994 3995cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'` 3996while true 3997do 3998 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'` 3999 test "$CFLAGS" != "$cf_old_cflag" || break 4000 4001 CFLAGS="$cf_old_cflag" 4002done 4003 4004cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'` 4005while true 4006do 4007 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'` 4008 test "$CPPFLAGS" != "$cf_old_cflag" || break 4009 4010 CPPFLAGS="$cf_old_cflag" 4011done 4012 4013 ;; 4014 esac 4015 4016cf_fix_cppflags=no 4017cf_new_cflags= 4018cf_new_cppflags= 4019cf_new_extra_cppflags= 4020 4021for cf_add_cflags in $cf_add_cflags 4022do 4023case "$cf_fix_cppflags" in 4024(no) 4025 case "$cf_add_cflags" in 4026 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 4027 case "$cf_add_cflags" in 4028 (-D*) 4029 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4030 4031 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4032 && test -z "${cf_tst_cflags}" \ 4033 && cf_fix_cppflags=yes 4034 4035 if test "$cf_fix_cppflags" = yes ; then 4036 4037 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4038 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4039 4040 continue 4041 elif test "${cf_tst_cflags}" = "\"'" ; then 4042 4043 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4044 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4045 4046 continue 4047 fi 4048 ;; 4049 esac 4050 case "$CPPFLAGS" in 4051 (*$cf_add_cflags) 4052 ;; 4053 (*) 4054 case "$cf_add_cflags" in 4055 (-D*) 4056 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4057 4058CPPFLAGS=`echo "$CPPFLAGS" | \ 4059 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4060 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4061 4062 ;; 4063 esac 4064 4065 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 4066 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 4067 4068 ;; 4069 esac 4070 ;; 4071 (*) 4072 4073 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 4074 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 4075 4076 ;; 4077 esac 4078 ;; 4079(yes) 4080 4081 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4082 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4083 4084 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 4085 4086 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4087 && test -z "${cf_tst_cflags}" \ 4088 && cf_fix_cppflags=no 4089 ;; 4090esac 4091done 4092 4093if test -n "$cf_new_cflags" ; then 4094 4095 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 4096 CFLAGS="${CFLAGS}$cf_new_cflags" 4097 4098fi 4099 4100if test -n "$cf_new_cppflags" ; then 4101 4102 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4103 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 4104 4105fi 4106 4107if test -n "$cf_new_extra_cppflags" ; then 4108 4109 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 4110 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 4111 4112fi 4113 4114done 4115 4116fi 4117 4118 cf_save_xopen_cppflags="$CPPFLAGS" 4119 4120if test "$cf_cv_posix_visible" = no; then 4121 4122cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 4123 4124cf_save_CFLAGS="$CFLAGS" 4125cf_save_CPPFLAGS="$CPPFLAGS" 4126 4127cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 4128 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 4129 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 4130 4131cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 4132 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 4133 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 4134 4135echo "$as_me:4135: checking if we should define _POSIX_C_SOURCE" >&5 4136echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 4137if test "${cf_cv_posix_c_source+set}" = set; then 4138 echo $ECHO_N "(cached) $ECHO_C" >&6 4139else 4140 4141echo "${as_me:-configure}:4141: testing if the symbol is already defined go no further ..." 1>&5 4142 4143 cat >"conftest.$ac_ext" <<_ACEOF 4144#line 4144 "configure" 4145#include "confdefs.h" 4146#include <sys/types.h> 4147int 4148main (void) 4149{ 4150 4151#ifndef _POSIX_C_SOURCE 4152#error _POSIX_C_SOURCE is not defined 4153#endif 4154 ; 4155 return 0; 4156} 4157_ACEOF 4158rm -f "conftest.$ac_objext" 4159if { (eval echo "$as_me:4159: \"$ac_compile\"") >&5 4160 (eval $ac_compile) 2>&5 4161 ac_status=$? 4162 echo "$as_me:4162: \$? = $ac_status" >&5 4163 (exit "$ac_status"); } && 4164 { ac_try='test -s "conftest.$ac_objext"' 4165 { (eval echo "$as_me:4165: \"$ac_try\"") >&5 4166 (eval $ac_try) 2>&5 4167 ac_status=$? 4168 echo "$as_me:4168: \$? = $ac_status" >&5 4169 (exit "$ac_status"); }; }; then 4170 cf_cv_posix_c_source=no 4171else 4172 echo "$as_me: failed program was:" >&5 4173cat "conftest.$ac_ext" >&5 4174cf_want_posix_source=no 4175 case .$cf_POSIX_C_SOURCE in 4176 (.[12]??*) 4177 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 4178 ;; 4179 (.2) 4180 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 4181 cf_want_posix_source=yes 4182 ;; 4183 (.*) 4184 cf_want_posix_source=yes 4185 ;; 4186 esac 4187 if test "$cf_want_posix_source" = yes ; then 4188 cat >"conftest.$ac_ext" <<_ACEOF 4189#line 4189 "configure" 4190#include "confdefs.h" 4191#include <sys/types.h> 4192int 4193main (void) 4194{ 4195 4196#ifdef _POSIX_SOURCE 4197#error _POSIX_SOURCE is defined 4198#endif 4199 ; 4200 return 0; 4201} 4202_ACEOF 4203rm -f "conftest.$ac_objext" 4204if { (eval echo "$as_me:4204: \"$ac_compile\"") >&5 4205 (eval $ac_compile) 2>&5 4206 ac_status=$? 4207 echo "$as_me:4207: \$? = $ac_status" >&5 4208 (exit "$ac_status"); } && 4209 { ac_try='test -s "conftest.$ac_objext"' 4210 { (eval echo "$as_me:4210: \"$ac_try\"") >&5 4211 (eval $ac_try) 2>&5 4212 ac_status=$? 4213 echo "$as_me:4213: \$? = $ac_status" >&5 4214 (exit "$ac_status"); }; }; then 4215 : 4216else 4217 echo "$as_me: failed program was:" >&5 4218cat "conftest.$ac_ext" >&5 4219cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 4220fi 4221rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4222 fi 4223 4224echo "${as_me:-configure}:4224: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 4225 4226 CFLAGS="$cf_trim_CFLAGS" 4227 CPPFLAGS="$cf_trim_CPPFLAGS" 4228 4229 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4230 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source" 4231 4232echo "${as_me:-configure}:4232: testing if the second compile does not leave our definition intact error ..." 1>&5 4233 4234 cat >"conftest.$ac_ext" <<_ACEOF 4235#line 4235 "configure" 4236#include "confdefs.h" 4237#include <sys/types.h> 4238int 4239main (void) 4240{ 4241 4242#ifndef _POSIX_C_SOURCE 4243#error _POSIX_C_SOURCE is not defined 4244#endif 4245 ; 4246 return 0; 4247} 4248_ACEOF 4249rm -f "conftest.$ac_objext" 4250if { (eval echo "$as_me:4250: \"$ac_compile\"") >&5 4251 (eval $ac_compile) 2>&5 4252 ac_status=$? 4253 echo "$as_me:4253: \$? = $ac_status" >&5 4254 (exit "$ac_status"); } && 4255 { ac_try='test -s "conftest.$ac_objext"' 4256 { (eval echo "$as_me:4256: \"$ac_try\"") >&5 4257 (eval $ac_try) 2>&5 4258 ac_status=$? 4259 echo "$as_me:4259: \$? = $ac_status" >&5 4260 (exit "$ac_status"); }; }; then 4261 : 4262else 4263 echo "$as_me: failed program was:" >&5 4264cat "conftest.$ac_ext" >&5 4265cf_cv_posix_c_source=no 4266fi 4267rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4268 CFLAGS="$cf_save_CFLAGS" 4269 CPPFLAGS="$cf_save_CPPFLAGS" 4270 4271fi 4272rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4273 4274fi 4275echo "$as_me:4275: result: $cf_cv_posix_c_source" >&5 4276echo "${ECHO_T}$cf_cv_posix_c_source" >&6 4277 4278if test "$cf_cv_posix_c_source" != no ; then 4279 CFLAGS="$cf_trim_CFLAGS" 4280 CPPFLAGS="$cf_trim_CPPFLAGS" 4281 4282cf_fix_cppflags=no 4283cf_new_cflags= 4284cf_new_cppflags= 4285cf_new_extra_cppflags= 4286 4287for cf_add_cflags in $cf_cv_posix_c_source 4288do 4289case "$cf_fix_cppflags" in 4290(no) 4291 case "$cf_add_cflags" in 4292 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 4293 case "$cf_add_cflags" in 4294 (-D*) 4295 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4296 4297 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4298 && test -z "${cf_tst_cflags}" \ 4299 && cf_fix_cppflags=yes 4300 4301 if test "$cf_fix_cppflags" = yes ; then 4302 4303 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4304 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4305 4306 continue 4307 elif test "${cf_tst_cflags}" = "\"'" ; then 4308 4309 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4310 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4311 4312 continue 4313 fi 4314 ;; 4315 esac 4316 case "$CPPFLAGS" in 4317 (*$cf_add_cflags) 4318 ;; 4319 (*) 4320 case "$cf_add_cflags" in 4321 (-D*) 4322 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4323 4324CPPFLAGS=`echo "$CPPFLAGS" | \ 4325 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4326 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4327 4328 ;; 4329 esac 4330 4331 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 4332 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 4333 4334 ;; 4335 esac 4336 ;; 4337 (*) 4338 4339 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 4340 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 4341 4342 ;; 4343 esac 4344 ;; 4345(yes) 4346 4347 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4348 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4349 4350 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 4351 4352 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4353 && test -z "${cf_tst_cflags}" \ 4354 && cf_fix_cppflags=no 4355 ;; 4356esac 4357done 4358 4359if test -n "$cf_new_cflags" ; then 4360 4361 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 4362 CFLAGS="${CFLAGS}$cf_new_cflags" 4363 4364fi 4365 4366if test -n "$cf_new_cppflags" ; then 4367 4368 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4369 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 4370 4371fi 4372 4373if test -n "$cf_new_extra_cppflags" ; then 4374 4375 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 4376 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 4377 4378fi 4379 4380fi 4381 4382fi # cf_cv_posix_visible 4383 4384 # Some of these niche implementations use copy/paste, double-check... 4385 if test "$cf_cv_xopen_source" = no ; then 4386 test -n "$verbose" && echo " checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE" 1>&6 4387 4388echo "${as_me:-configure}:4388: testing checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE ..." 1>&5 4389 4390 cat >"conftest.$ac_ext" <<_ACEOF 4391#line 4391 "configure" 4392#include "confdefs.h" 4393 4394$ac_includes_default 4395 4396int 4397main (void) 4398{ 4399 4400#ifndef _XOPEN_SOURCE 4401#error _XOPEN_SOURCE is not defined 4402#endif 4403 4404 ; 4405 return 0; 4406} 4407_ACEOF 4408rm -f "conftest.$ac_objext" 4409if { (eval echo "$as_me:4409: \"$ac_compile\"") >&5 4410 (eval $ac_compile) 2>&5 4411 ac_status=$? 4412 echo "$as_me:4412: \$? = $ac_status" >&5 4413 (exit "$ac_status"); } && 4414 { ac_try='test -s "conftest.$ac_objext"' 4415 { (eval echo "$as_me:4415: \"$ac_try\"") >&5 4416 (eval $ac_try) 2>&5 4417 ac_status=$? 4418 echo "$as_me:4418: \$? = $ac_status" >&5 4419 (exit "$ac_status"); }; }; then 4420 : 4421else 4422 echo "$as_me: failed program was:" >&5 4423cat "conftest.$ac_ext" >&5 4424 4425 { echo "$as_me:4425: WARNING: _POSIX_C_SOURCE definition is not usable" >&5 4426echo "$as_me: WARNING: _POSIX_C_SOURCE definition is not usable" >&2;} 4427 CPPFLAGS="$cf_save_xopen_cppflags" 4428fi 4429rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4430 fi 4431 ;; 4432esac 4433 4434if test -n "$cf_xopen_source" ; then 4435 4436for cf_add_cflags in $cf_xopen_source 4437do 4438 case "x$cf_add_cflags" in 4439 (x-[DU]*) 4440 4441cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'` 4442while true 4443do 4444 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'` 4445 test "$CFLAGS" != "$cf_old_cflag" || break 4446 test -n "$verbose" && echo " removing old option $cf_add_cflags from CFLAGS" 1>&6 4447 4448echo "${as_me:-configure}:4448: testing removing old option $cf_add_cflags from CFLAGS ..." 1>&5 4449 4450 CFLAGS="$cf_old_cflag" 4451done 4452 4453cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'` 4454while true 4455do 4456 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'` 4457 test "$CPPFLAGS" != "$cf_old_cflag" || break 4458 test -n "$verbose" && echo " removing old option $cf_add_cflags from CPPFLAGS" 1>&6 4459 4460echo "${as_me:-configure}:4460: testing removing old option $cf_add_cflags from CPPFLAGS ..." 1>&5 4461 4462 CPPFLAGS="$cf_old_cflag" 4463done 4464 4465 ;; 4466 esac 4467 4468cf_fix_cppflags=no 4469cf_new_cflags= 4470cf_new_cppflags= 4471cf_new_extra_cppflags= 4472 4473for cf_add_cflags in $cf_add_cflags 4474do 4475case "$cf_fix_cppflags" in 4476(no) 4477 case "$cf_add_cflags" in 4478 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 4479 case "$cf_add_cflags" in 4480 (-D*) 4481 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4482 4483 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4484 && test -z "${cf_tst_cflags}" \ 4485 && cf_fix_cppflags=yes 4486 4487 if test "$cf_fix_cppflags" = yes ; then 4488 4489 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4490 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4491 4492 continue 4493 elif test "${cf_tst_cflags}" = "\"'" ; then 4494 4495 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4496 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4497 4498 continue 4499 fi 4500 ;; 4501 esac 4502 case "$CPPFLAGS" in 4503 (*$cf_add_cflags) 4504 ;; 4505 (*) 4506 case "$cf_add_cflags" in 4507 (-D*) 4508 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4509 4510CPPFLAGS=`echo "$CPPFLAGS" | \ 4511 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4512 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4513 4514 ;; 4515 esac 4516 4517 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 4518 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 4519 4520 ;; 4521 esac 4522 ;; 4523 (*) 4524 4525 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 4526 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 4527 4528 ;; 4529 esac 4530 ;; 4531(yes) 4532 4533 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4534 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4535 4536 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 4537 4538 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4539 && test -z "${cf_tst_cflags}" \ 4540 && cf_fix_cppflags=no 4541 ;; 4542esac 4543done 4544 4545if test -n "$cf_new_cflags" ; then 4546 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 4547 4548echo "${as_me:-configure}:4548: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 4549 4550 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 4551 CFLAGS="${CFLAGS}$cf_new_cflags" 4552 4553fi 4554 4555if test -n "$cf_new_cppflags" ; then 4556 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 4557 4558echo "${as_me:-configure}:4558: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 4559 4560 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4561 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 4562 4563fi 4564 4565if test -n "$cf_new_extra_cppflags" ; then 4566 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6 4567 4568echo "${as_me:-configure}:4568: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5 4569 4570 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 4571 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 4572 4573fi 4574 4575done 4576 4577fi 4578 4579if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then 4580 echo "$as_me:4580: checking if _XOPEN_SOURCE really is set" >&5 4581echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6 4582 cat >"conftest.$ac_ext" <<_ACEOF 4583#line 4583 "configure" 4584#include "confdefs.h" 4585#include <stdlib.h> 4586int 4587main (void) 4588{ 4589 4590#ifndef _XOPEN_SOURCE 4591#error _XOPEN_SOURCE is not defined 4592#endif 4593 ; 4594 return 0; 4595} 4596_ACEOF 4597rm -f "conftest.$ac_objext" 4598if { (eval echo "$as_me:4598: \"$ac_compile\"") >&5 4599 (eval $ac_compile) 2>&5 4600 ac_status=$? 4601 echo "$as_me:4601: \$? = $ac_status" >&5 4602 (exit "$ac_status"); } && 4603 { ac_try='test -s "conftest.$ac_objext"' 4604 { (eval echo "$as_me:4604: \"$ac_try\"") >&5 4605 (eval $ac_try) 2>&5 4606 ac_status=$? 4607 echo "$as_me:4607: \$? = $ac_status" >&5 4608 (exit "$ac_status"); }; }; then 4609 cf_XOPEN_SOURCE_set=yes 4610else 4611 echo "$as_me: failed program was:" >&5 4612cat "conftest.$ac_ext" >&5 4613cf_XOPEN_SOURCE_set=no 4614fi 4615rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4616 echo "$as_me:4616: result: $cf_XOPEN_SOURCE_set" >&5 4617echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6 4618 if test "$cf_XOPEN_SOURCE_set" = yes 4619 then 4620 cat >"conftest.$ac_ext" <<_ACEOF 4621#line 4621 "configure" 4622#include "confdefs.h" 4623#include <stdlib.h> 4624int 4625main (void) 4626{ 4627 4628#if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE 4629#error (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE 4630#endif 4631 ; 4632 return 0; 4633} 4634_ACEOF 4635rm -f "conftest.$ac_objext" 4636if { (eval echo "$as_me:4636: \"$ac_compile\"") >&5 4637 (eval $ac_compile) 2>&5 4638 ac_status=$? 4639 echo "$as_me:4639: \$? = $ac_status" >&5 4640 (exit "$ac_status"); } && 4641 { ac_try='test -s "conftest.$ac_objext"' 4642 { (eval echo "$as_me:4642: \"$ac_try\"") >&5 4643 (eval $ac_try) 2>&5 4644 ac_status=$? 4645 echo "$as_me:4645: \$? = $ac_status" >&5 4646 (exit "$ac_status"); }; }; then 4647 cf_XOPEN_SOURCE_set_ok=yes 4648else 4649 echo "$as_me: failed program was:" >&5 4650cat "conftest.$ac_ext" >&5 4651cf_XOPEN_SOURCE_set_ok=no 4652fi 4653rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4654 if test "$cf_XOPEN_SOURCE_set_ok" = no 4655 then 4656 { echo "$as_me:4656: WARNING: _XOPEN_SOURCE is lower than requested" >&5 4657echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;} 4658 fi 4659 else 4660 4661echo "$as_me:4661: checking if we should define _XOPEN_SOURCE" >&5 4662echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 4663if test "${cf_cv_xopen_source+set}" = set; then 4664 echo $ECHO_N "(cached) $ECHO_C" >&6 4665else 4666 4667 cat >"conftest.$ac_ext" <<_ACEOF 4668#line 4668 "configure" 4669#include "confdefs.h" 4670 4671$ac_includes_default 4672 4673int 4674main (void) 4675{ 4676 4677#ifndef _XOPEN_SOURCE 4678#error _XOPEN_SOURCE is not defined 4679#endif 4680 4681 ; 4682 return 0; 4683} 4684_ACEOF 4685rm -f "conftest.$ac_objext" 4686if { (eval echo "$as_me:4686: \"$ac_compile\"") >&5 4687 (eval $ac_compile) 2>&5 4688 ac_status=$? 4689 echo "$as_me:4689: \$? = $ac_status" >&5 4690 (exit "$ac_status"); } && 4691 { ac_try='test -s "conftest.$ac_objext"' 4692 { (eval echo "$as_me:4692: \"$ac_try\"") >&5 4693 (eval $ac_try) 2>&5 4694 ac_status=$? 4695 echo "$as_me:4695: \$? = $ac_status" >&5 4696 (exit "$ac_status"); }; }; then 4697 cf_cv_xopen_source=no 4698else 4699 echo "$as_me: failed program was:" >&5 4700cat "conftest.$ac_ext" >&5 4701cf_save="$CPPFLAGS" 4702 4703 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4704 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 4705 4706 cat >"conftest.$ac_ext" <<_ACEOF 4707#line 4707 "configure" 4708#include "confdefs.h" 4709 4710$ac_includes_default 4711 4712int 4713main (void) 4714{ 4715 4716#ifndef _XOPEN_SOURCE 4717#error _XOPEN_SOURCE is not defined 4718#endif 4719 4720 ; 4721 return 0; 4722} 4723_ACEOF 4724rm -f "conftest.$ac_objext" 4725if { (eval echo "$as_me:4725: \"$ac_compile\"") >&5 4726 (eval $ac_compile) 2>&5 4727 ac_status=$? 4728 echo "$as_me:4728: \$? = $ac_status" >&5 4729 (exit "$ac_status"); } && 4730 { ac_try='test -s "conftest.$ac_objext"' 4731 { (eval echo "$as_me:4731: \"$ac_try\"") >&5 4732 (eval $ac_try) 2>&5 4733 ac_status=$? 4734 echo "$as_me:4734: \$? = $ac_status" >&5 4735 (exit "$ac_status"); }; }; then 4736 cf_cv_xopen_source=no 4737else 4738 echo "$as_me: failed program was:" >&5 4739cat "conftest.$ac_ext" >&5 4740cf_cv_xopen_source=$cf_XOPEN_SOURCE 4741fi 4742rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4743 CPPFLAGS="$cf_save" 4744 4745fi 4746rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4747 4748fi 4749echo "$as_me:4749: result: $cf_cv_xopen_source" >&5 4750echo "${ECHO_T}$cf_cv_xopen_source" >&6 4751 4752if test "$cf_cv_xopen_source" != no ; then 4753 4754CFLAGS=`echo "$CFLAGS" | \ 4755 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 4756 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 4757 4758CPPFLAGS=`echo "$CPPFLAGS" | \ 4759 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 4760 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 4761 4762 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 4763 4764for cf_add_cflags in $cf_temp_xopen_source 4765do 4766 case "x$cf_add_cflags" in 4767 (x-[DU]*) 4768 4769cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'` 4770while true 4771do 4772 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'` 4773 test "$CFLAGS" != "$cf_old_cflag" || break 4774 4775 CFLAGS="$cf_old_cflag" 4776done 4777 4778cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'` 4779while true 4780do 4781 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'` 4782 test "$CPPFLAGS" != "$cf_old_cflag" || break 4783 4784 CPPFLAGS="$cf_old_cflag" 4785done 4786 4787 ;; 4788 esac 4789 4790cf_fix_cppflags=no 4791cf_new_cflags= 4792cf_new_cppflags= 4793cf_new_extra_cppflags= 4794 4795for cf_add_cflags in $cf_add_cflags 4796do 4797case "$cf_fix_cppflags" in 4798(no) 4799 case "$cf_add_cflags" in 4800 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 4801 case "$cf_add_cflags" in 4802 (-D*) 4803 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4804 4805 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4806 && test -z "${cf_tst_cflags}" \ 4807 && cf_fix_cppflags=yes 4808 4809 if test "$cf_fix_cppflags" = yes ; then 4810 4811 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4812 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4813 4814 continue 4815 elif test "${cf_tst_cflags}" = "\"'" ; then 4816 4817 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4818 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4819 4820 continue 4821 fi 4822 ;; 4823 esac 4824 case "$CPPFLAGS" in 4825 (*$cf_add_cflags) 4826 ;; 4827 (*) 4828 case "$cf_add_cflags" in 4829 (-D*) 4830 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4831 4832CPPFLAGS=`echo "$CPPFLAGS" | \ 4833 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4834 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4835 4836 ;; 4837 esac 4838 4839 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 4840 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 4841 4842 ;; 4843 esac 4844 ;; 4845 (*) 4846 4847 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 4848 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 4849 4850 ;; 4851 esac 4852 ;; 4853(yes) 4854 4855 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4856 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4857 4858 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 4859 4860 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4861 && test -z "${cf_tst_cflags}" \ 4862 && cf_fix_cppflags=no 4863 ;; 4864esac 4865done 4866 4867if test -n "$cf_new_cflags" ; then 4868 4869 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 4870 CFLAGS="${CFLAGS}$cf_new_cflags" 4871 4872fi 4873 4874if test -n "$cf_new_cppflags" ; then 4875 4876 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4877 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 4878 4879fi 4880 4881if test -n "$cf_new_extra_cppflags" ; then 4882 4883 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 4884 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 4885 4886fi 4887 4888done 4889 4890fi 4891 4892 fi 4893fi 4894fi # cf_cv_posix_visible 4895 4896echo "$as_me:4896: checking if SIGWINCH is defined" >&5 4897echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6 4898if test "${cf_cv_define_sigwinch+set}" = set; then 4899 echo $ECHO_N "(cached) $ECHO_C" >&6 4900else 4901 4902 cat >"conftest.$ac_ext" <<_ACEOF 4903#line 4903 "configure" 4904#include "confdefs.h" 4905 4906#include <sys/types.h> 4907#include <sys/signal.h> 4908 4909int 4910main (void) 4911{ 4912int x = SIGWINCH; (void)x 4913 ; 4914 return 0; 4915} 4916_ACEOF 4917rm -f "conftest.$ac_objext" 4918if { (eval echo "$as_me:4918: \"$ac_compile\"") >&5 4919 (eval $ac_compile) 2>&5 4920 ac_status=$? 4921 echo "$as_me:4921: \$? = $ac_status" >&5 4922 (exit "$ac_status"); } && 4923 { ac_try='test -s "conftest.$ac_objext"' 4924 { (eval echo "$as_me:4924: \"$ac_try\"") >&5 4925 (eval $ac_try) 2>&5 4926 ac_status=$? 4927 echo "$as_me:4927: \$? = $ac_status" >&5 4928 (exit "$ac_status"); }; }; then 4929 cf_cv_define_sigwinch=yes 4930else 4931 echo "$as_me: failed program was:" >&5 4932cat "conftest.$ac_ext" >&5 4933cat >"conftest.$ac_ext" <<_ACEOF 4934#line 4934 "configure" 4935#include "confdefs.h" 4936 4937#undef _XOPEN_SOURCE 4938#undef _POSIX_SOURCE 4939#undef _POSIX_C_SOURCE 4940#include <sys/types.h> 4941#include <sys/signal.h> 4942 4943int 4944main (void) 4945{ 4946int x = SIGWINCH; (void)x 4947 ; 4948 return 0; 4949} 4950_ACEOF 4951rm -f "conftest.$ac_objext" 4952if { (eval echo "$as_me:4952: \"$ac_compile\"") >&5 4953 (eval $ac_compile) 2>&5 4954 ac_status=$? 4955 echo "$as_me:4955: \$? = $ac_status" >&5 4956 (exit "$ac_status"); } && 4957 { ac_try='test -s "conftest.$ac_objext"' 4958 { (eval echo "$as_me:4958: \"$ac_try\"") >&5 4959 (eval $ac_try) 2>&5 4960 ac_status=$? 4961 echo "$as_me:4961: \$? = $ac_status" >&5 4962 (exit "$ac_status"); }; }; then 4963 cf_cv_define_sigwinch=maybe 4964else 4965 echo "$as_me: failed program was:" >&5 4966cat "conftest.$ac_ext" >&5 4967cf_cv_define_sigwinch=no 4968fi 4969rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4970 4971fi 4972rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4973 4974fi 4975echo "$as_me:4975: result: $cf_cv_define_sigwinch" >&5 4976echo "${ECHO_T}$cf_cv_define_sigwinch" >&6 4977 4978if test "$cf_cv_define_sigwinch" = maybe ; then 4979echo "$as_me:4979: checking for actual SIGWINCH definition" >&5 4980echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6 4981if test "${cf_cv_fixup_sigwinch+set}" = set; then 4982 echo $ECHO_N "(cached) $ECHO_C" >&6 4983else 4984 4985cf_cv_fixup_sigwinch=unknown 4986cf_sigwinch=32 4987while test "$cf_sigwinch" != 1 4988do 4989 cat >"conftest.$ac_ext" <<_ACEOF 4990#line 4990 "configure" 4991#include "confdefs.h" 4992 4993#undef _XOPEN_SOURCE 4994#undef _POSIX_SOURCE 4995#undef _POSIX_C_SOURCE 4996#include <sys/types.h> 4997#include <sys/signal.h> 4998 4999int 5000main (void) 5001{ 5002 5003#if SIGWINCH != $cf_sigwinch 5004#error SIGWINCH is not $cf_sigwinch 5005#endif 5006int x = SIGWINCH; (void)x 5007 ; 5008 return 0; 5009} 5010_ACEOF 5011rm -f "conftest.$ac_objext" 5012if { (eval echo "$as_me:5012: \"$ac_compile\"") >&5 5013 (eval $ac_compile) 2>&5 5014 ac_status=$? 5015 echo "$as_me:5015: \$? = $ac_status" >&5 5016 (exit "$ac_status"); } && 5017 { ac_try='test -s "conftest.$ac_objext"' 5018 { (eval echo "$as_me:5018: \"$ac_try\"") >&5 5019 (eval $ac_try) 2>&5 5020 ac_status=$? 5021 echo "$as_me:5021: \$? = $ac_status" >&5 5022 (exit "$ac_status"); }; }; then 5023 cf_cv_fixup_sigwinch=$cf_sigwinch 5024 break 5025else 5026 echo "$as_me: failed program was:" >&5 5027cat "conftest.$ac_ext" >&5 5028fi 5029rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5030 5031cf_sigwinch="`expr "$cf_sigwinch" - 1`" 5032done 5033 5034fi 5035echo "$as_me:5035: result: $cf_cv_fixup_sigwinch" >&5 5036echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6 5037 5038 if test "$cf_cv_fixup_sigwinch" != unknown ; then 5039 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch" 5040 fi 5041fi 5042 5043### checks for header files 5044 5045echo "$as_me:5045: checking for ANSI C header files" >&5 5046echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 5047if test "${ac_cv_header_stdc+set}" = set; then 5048 echo $ECHO_N "(cached) $ECHO_C" >&6 5049else 5050 cat >"conftest.$ac_ext" <<_ACEOF 5051#line 5051 "configure" 5052#include "confdefs.h" 5053#include <stdlib.h> 5054#include <stdarg.h> 5055#include <string.h> 5056#include <float.h> 5057 5058_ACEOF 5059if { (eval echo "$as_me:5059: \"$ac_cpp "conftest.$ac_ext"\"") >&5 5060 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 5061 ac_status=$? 5062 $EGREP -v '^ *\+' conftest.er1 >conftest.err 5063 rm -f conftest.er1 5064 cat conftest.err >&5 5065 echo "$as_me:5065: \$? = $ac_status" >&5 5066 (exit "$ac_status"); } >/dev/null; then 5067 if test -s conftest.err; then 5068 ac_cpp_err=$ac_c_preproc_warn_flag 5069 else 5070 ac_cpp_err= 5071 fi 5072else 5073 ac_cpp_err=yes 5074fi 5075if test -z "$ac_cpp_err"; then 5076 ac_cv_header_stdc=yes 5077else 5078 echo "$as_me: failed program was:" >&5 5079 cat "conftest.$ac_ext" >&5 5080 ac_cv_header_stdc=no 5081fi 5082rm -f conftest.err "conftest.$ac_ext" 5083 5084if test $ac_cv_header_stdc = yes; then 5085 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5086 cat >"conftest.$ac_ext" <<_ACEOF 5087#line 5087 "configure" 5088#include "confdefs.h" 5089#include <string.h> 5090 5091_ACEOF 5092if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5093 $EGREP "memchr" >/dev/null 2>&1; then 5094 : 5095else 5096 ac_cv_header_stdc=no 5097fi 5098rm -rf conftest* 5099 5100fi 5101 5102if test $ac_cv_header_stdc = yes; then 5103 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5104 cat >"conftest.$ac_ext" <<_ACEOF 5105#line 5105 "configure" 5106#include "confdefs.h" 5107#include <stdlib.h> 5108 5109_ACEOF 5110if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5111 $EGREP "free" >/dev/null 2>&1; then 5112 : 5113else 5114 ac_cv_header_stdc=no 5115fi 5116rm -rf conftest* 5117 5118fi 5119 5120if test $ac_cv_header_stdc = yes; then 5121 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5122 if test "$cross_compiling" = yes; then 5123 : 5124else 5125 cat >"conftest.$ac_ext" <<_ACEOF 5126#line 5126 "configure" 5127#include "confdefs.h" 5128#include <ctype.h> 5129#if ((' ' & 0x0FF) == 0x020) 5130# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5131# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5132#else 5133# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 5134 || ('j' <= (c) && (c) <= 'r') \ 5135 || ('s' <= (c) && (c) <= 'z')) 5136# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5137#endif 5138 5139#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5140int 5141main (void) 5142{ 5143 int i; 5144 for (i = 0; i < 256; i++) 5145 if (XOR (islower (i), ISLOWER (i)) 5146 || toupper (i) != TOUPPER (i)) 5147 $ac_main_return(2); 5148 $ac_main_return (0); 5149} 5150_ACEOF 5151rm -f "conftest$ac_exeext" 5152if { (eval echo "$as_me:5152: \"$ac_link\"") >&5 5153 (eval $ac_link) 2>&5 5154 ac_status=$? 5155 echo "$as_me:5155: \$? = $ac_status" >&5 5156 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 5157 { (eval echo "$as_me:5157: \"$ac_try\"") >&5 5158 (eval $ac_try) 2>&5 5159 ac_status=$? 5160 echo "$as_me:5160: \$? = $ac_status" >&5 5161 (exit "$ac_status"); }; }; then 5162 : 5163else 5164 echo "$as_me: program exited with status $ac_status" >&5 5165echo "$as_me: failed program was:" >&5 5166cat "conftest.$ac_ext" >&5 5167ac_cv_header_stdc=no 5168fi 5169rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 5170fi 5171fi 5172fi 5173echo "$as_me:5173: result: $ac_cv_header_stdc" >&5 5174echo "${ECHO_T}$ac_cv_header_stdc" >&6 5175if test $ac_cv_header_stdc = yes; then 5176 5177cat >>confdefs.h <<\EOF 5178#define STDC_HEADERS 1 5179EOF 5180 5181fi 5182 5183# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5184 5185for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5186 inttypes.h stdint.h unistd.h 5187do 5188as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5189echo "$as_me:5189: checking for $ac_header" >&5 5190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5191if eval "test \"\${$as_ac_Header+set}\" = set"; then 5192 echo $ECHO_N "(cached) $ECHO_C" >&6 5193else 5194 cat >"conftest.$ac_ext" <<_ACEOF 5195#line 5195 "configure" 5196#include "confdefs.h" 5197$ac_includes_default 5198#include <$ac_header> 5199_ACEOF 5200rm -f "conftest.$ac_objext" 5201if { (eval echo "$as_me:5201: \"$ac_compile\"") >&5 5202 (eval $ac_compile) 2>&5 5203 ac_status=$? 5204 echo "$as_me:5204: \$? = $ac_status" >&5 5205 (exit "$ac_status"); } && 5206 { ac_try='test -s "conftest.$ac_objext"' 5207 { (eval echo "$as_me:5207: \"$ac_try\"") >&5 5208 (eval $ac_try) 2>&5 5209 ac_status=$? 5210 echo "$as_me:5210: \$? = $ac_status" >&5 5211 (exit "$ac_status"); }; }; then 5212 eval "$as_ac_Header=yes" 5213else 5214 echo "$as_me: failed program was:" >&5 5215cat "conftest.$ac_ext" >&5 5216eval "$as_ac_Header=no" 5217fi 5218rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5219fi 5220echo "$as_me:5220: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 5221echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 5222if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 5223 cat >>confdefs.h <<EOF 5224#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5225EOF 5226 5227fi 5228done 5229 5230echo "$as_me:5230: checking whether exit is declared" >&5 5231echo $ECHO_N "checking whether exit is declared... $ECHO_C" >&6 5232if test "${ac_cv_have_decl_exit+set}" = set; then 5233 echo $ECHO_N "(cached) $ECHO_C" >&6 5234else 5235 cat >"conftest.$ac_ext" <<_ACEOF 5236#line 5236 "configure" 5237#include "confdefs.h" 5238$ac_includes_default 5239int 5240main (void) 5241{ 5242#ifndef exit 5243 (void) exit; 5244#endif 5245 5246 ; 5247 return 0; 5248} 5249_ACEOF 5250rm -f "conftest.$ac_objext" 5251if { (eval echo "$as_me:5251: \"$ac_compile\"") >&5 5252 (eval $ac_compile) 2>&5 5253 ac_status=$? 5254 echo "$as_me:5254: \$? = $ac_status" >&5 5255 (exit "$ac_status"); } && 5256 { ac_try='test -s "conftest.$ac_objext"' 5257 { (eval echo "$as_me:5257: \"$ac_try\"") >&5 5258 (eval $ac_try) 2>&5 5259 ac_status=$? 5260 echo "$as_me:5260: \$? = $ac_status" >&5 5261 (exit "$ac_status"); }; }; then 5262 ac_cv_have_decl_exit=yes 5263else 5264 echo "$as_me: failed program was:" >&5 5265cat "conftest.$ac_ext" >&5 5266ac_cv_have_decl_exit=no 5267fi 5268rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5269fi 5270echo "$as_me:5270: result: $ac_cv_have_decl_exit" >&5 5271echo "${ECHO_T}$ac_cv_have_decl_exit" >&6 5272 5273for ac_header in \ 5274ncurses/curses.h \ 5275ncurses/term.h \ 5276sys/ptem.h \ 5277sys/ttydefaults.h \ 5278term.h \ 5279termios.h \ 5280wchar.h \ 5281 5282do 5283as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5284echo "$as_me:5284: checking for $ac_header" >&5 5285echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5286if eval "test \"\${$as_ac_Header+set}\" = set"; then 5287 echo $ECHO_N "(cached) $ECHO_C" >&6 5288else 5289 cat >"conftest.$ac_ext" <<_ACEOF 5290#line 5290 "configure" 5291#include "confdefs.h" 5292#include <$ac_header> 5293_ACEOF 5294if { (eval echo "$as_me:5294: \"$ac_cpp "conftest.$ac_ext"\"") >&5 5295 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 5296 ac_status=$? 5297 $EGREP -v '^ *\+' conftest.er1 >conftest.err 5298 rm -f conftest.er1 5299 cat conftest.err >&5 5300 echo "$as_me:5300: \$? = $ac_status" >&5 5301 (exit "$ac_status"); } >/dev/null; then 5302 if test -s conftest.err; then 5303 ac_cpp_err=$ac_c_preproc_warn_flag 5304 else 5305 ac_cpp_err= 5306 fi 5307else 5308 ac_cpp_err=yes 5309fi 5310if test -z "$ac_cpp_err"; then 5311 eval "$as_ac_Header=yes" 5312else 5313 echo "$as_me: failed program was:" >&5 5314 cat "conftest.$ac_ext" >&5 5315 eval "$as_ac_Header=no" 5316fi 5317rm -f conftest.err "conftest.$ac_ext" 5318fi 5319echo "$as_me:5319: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 5320echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 5321if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 5322 cat >>confdefs.h <<EOF 5323#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5324EOF 5325 5326fi 5327done 5328 5329echo "$as_me:5329: checking whether time.h and sys/time.h may both be included" >&5 5330echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 5331if test "${ac_cv_header_time+set}" = set; then 5332 echo $ECHO_N "(cached) $ECHO_C" >&6 5333else 5334 cat >"conftest.$ac_ext" <<_ACEOF 5335#line 5335 "configure" 5336#include "confdefs.h" 5337#include <sys/types.h> 5338#include <sys/time.h> 5339#include <time.h> 5340 5341int 5342main (void) 5343{ 5344if ((struct tm *) 0) 5345return 0; 5346 ; 5347 return 0; 5348} 5349_ACEOF 5350rm -f "conftest.$ac_objext" 5351if { (eval echo "$as_me:5351: \"$ac_compile\"") >&5 5352 (eval $ac_compile) 2>&5 5353 ac_status=$? 5354 echo "$as_me:5354: \$? = $ac_status" >&5 5355 (exit "$ac_status"); } && 5356 { ac_try='test -s "conftest.$ac_objext"' 5357 { (eval echo "$as_me:5357: \"$ac_try\"") >&5 5358 (eval $ac_try) 2>&5 5359 ac_status=$? 5360 echo "$as_me:5360: \$? = $ac_status" >&5 5361 (exit "$ac_status"); }; }; then 5362 ac_cv_header_time=yes 5363else 5364 echo "$as_me: failed program was:" >&5 5365cat "conftest.$ac_ext" >&5 5366ac_cv_header_time=no 5367fi 5368rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5369fi 5370echo "$as_me:5370: result: $ac_cv_header_time" >&5 5371echo "${ECHO_T}$ac_cv_header_time" >&6 5372if test $ac_cv_header_time = yes; then 5373 5374cat >>confdefs.h <<\EOF 5375#define TIME_WITH_SYS_TIME 1 5376EOF 5377 5378fi 5379 5380echo "$as_me:5380: checking for nl_langinfo and CODESET" >&5 5381echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 5382if test "${am_cv_langinfo_codeset+set}" = set; then 5383 echo $ECHO_N "(cached) $ECHO_C" >&6 5384else 5385 cat >"conftest.$ac_ext" <<_ACEOF 5386#line 5386 "configure" 5387#include "confdefs.h" 5388 5389$ac_includes_default 5390#include <langinfo.h> 5391int 5392main (void) 5393{ 5394char* cs = nl_langinfo(CODESET); (void)cs 5395 ; 5396 return 0; 5397} 5398_ACEOF 5399rm -f "conftest.$ac_objext" "conftest$ac_exeext" 5400if { (eval echo "$as_me:5400: \"$ac_link\"") >&5 5401 (eval $ac_link) 2>&5 5402 ac_status=$? 5403 echo "$as_me:5403: \$? = $ac_status" >&5 5404 (exit "$ac_status"); } && 5405 { ac_try='test -s "conftest$ac_exeext"' 5406 { (eval echo "$as_me:5406: \"$ac_try\"") >&5 5407 (eval $ac_try) 2>&5 5408 ac_status=$? 5409 echo "$as_me:5409: \$? = $ac_status" >&5 5410 (exit "$ac_status"); }; }; then 5411 am_cv_langinfo_codeset=yes 5412else 5413 echo "$as_me: failed program was:" >&5 5414cat "conftest.$ac_ext" >&5 5415am_cv_langinfo_codeset=no 5416fi 5417rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 5418 5419fi 5420echo "$as_me:5420: result: $am_cv_langinfo_codeset" >&5 5421echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 5422 if test "$am_cv_langinfo_codeset" = yes; then 5423 5424cat >>confdefs.h <<\EOF 5425#define HAVE_LANGINFO_CODESET 1 5426EOF 5427 5428 fi 5429 5430### checks for typedefs 5431 5432echo "$as_me:5432: checking for signal global datatype" >&5 5433echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6 5434if test "${cf_cv_sig_atomic_t+set}" = set; then 5435 echo $ECHO_N "(cached) $ECHO_C" >&6 5436else 5437 5438 for cf_type in \ 5439 "volatile sig_atomic_t" \ 5440 "sig_atomic_t" \ 5441 "int" 5442 do 5443 cat >"conftest.$ac_ext" <<_ACEOF 5444#line 5444 "configure" 5445#include "confdefs.h" 5446 5447#include <sys/types.h> 5448#include <signal.h> 5449#include <stdio.h> 5450 5451extern $cf_type x; 5452$cf_type x; 5453static void handler(int sig) 5454{ 5455 (void)sig; 5456 x = 5; 5457} 5458int 5459main (void) 5460{ 5461signal(SIGINT, handler); 5462 x = 1 5463 ; 5464 return 0; 5465} 5466_ACEOF 5467rm -f "conftest.$ac_objext" 5468if { (eval echo "$as_me:5468: \"$ac_compile\"") >&5 5469 (eval $ac_compile) 2>&5 5470 ac_status=$? 5471 echo "$as_me:5471: \$? = $ac_status" >&5 5472 (exit "$ac_status"); } && 5473 { ac_try='test -s "conftest.$ac_objext"' 5474 { (eval echo "$as_me:5474: \"$ac_try\"") >&5 5475 (eval $ac_try) 2>&5 5476 ac_status=$? 5477 echo "$as_me:5477: \$? = $ac_status" >&5 5478 (exit "$ac_status"); }; }; then 5479 cf_cv_sig_atomic_t=$cf_type 5480else 5481 echo "$as_me: failed program was:" >&5 5482cat "conftest.$ac_ext" >&5 5483cf_cv_sig_atomic_t=no 5484fi 5485rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5486 test "$cf_cv_sig_atomic_t" != no && break 5487 done 5488 5489fi 5490 5491echo "$as_me:5491: result: $cf_cv_sig_atomic_t" >&5 5492echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6 5493test "$cf_cv_sig_atomic_t" != no && 5494cat >>confdefs.h <<EOF 5495#define SIG_ATOMIC_T $cf_cv_sig_atomic_t 5496EOF 5497 5498echo "$as_me:5498: checking for time_t" >&5 5499echo $ECHO_N "checking for time_t... $ECHO_C" >&6 5500if test "${ac_cv_type_time_t+set}" = set; then 5501 echo $ECHO_N "(cached) $ECHO_C" >&6 5502else 5503 cat >"conftest.$ac_ext" <<_ACEOF 5504#line 5504 "configure" 5505#include "confdefs.h" 5506$ac_includes_default 5507int 5508main (void) 5509{ 5510if ((time_t *) 0) 5511 return 0; 5512if (sizeof (time_t)) 5513 return 0; 5514 ; 5515 return 0; 5516} 5517_ACEOF 5518rm -f "conftest.$ac_objext" 5519if { (eval echo "$as_me:5519: \"$ac_compile\"") >&5 5520 (eval $ac_compile) 2>&5 5521 ac_status=$? 5522 echo "$as_me:5522: \$? = $ac_status" >&5 5523 (exit "$ac_status"); } && 5524 { ac_try='test -s "conftest.$ac_objext"' 5525 { (eval echo "$as_me:5525: \"$ac_try\"") >&5 5526 (eval $ac_try) 2>&5 5527 ac_status=$? 5528 echo "$as_me:5528: \$? = $ac_status" >&5 5529 (exit "$ac_status"); }; }; then 5530 ac_cv_type_time_t=yes 5531else 5532 echo "$as_me: failed program was:" >&5 5533cat "conftest.$ac_ext" >&5 5534ac_cv_type_time_t=no 5535fi 5536rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5537fi 5538echo "$as_me:5538: result: $ac_cv_type_time_t" >&5 5539echo "${ECHO_T}$ac_cv_type_time_t" >&6 5540if test "$ac_cv_type_time_t" = yes; then 5541 : 5542else 5543 5544cat >>confdefs.h <<EOF 5545#define time_t long 5546EOF 5547 5548fi 5549 5550echo "$as_me:5550: checking for cc_t in <termios.h> or <termio.h>" >&5 5551echo $ECHO_N "checking for cc_t in <termios.h> or <termio.h>... $ECHO_C" >&6 5552if test "${cf_cv_type_cc_t+set}" = set; then 5553 echo $ECHO_N "(cached) $ECHO_C" >&6 5554else 5555 5556 cat >"conftest.$ac_ext" <<_ACEOF 5557#line 5557 "configure" 5558#include "confdefs.h" 5559 5560#include <sys/types.h> 5561#if defined(HAVE_TERMIOS_H) 5562#include <termios.h> 5563#else 5564#include <termio.h> 5565#include <sys/ioctl.h> 5566#endif 5567 5568int 5569main (void) 5570{ 5571cc_t x; (void)x 5572 ; 5573 return 0; 5574} 5575_ACEOF 5576rm -f "conftest.$ac_objext" 5577if { (eval echo "$as_me:5577: \"$ac_compile\"") >&5 5578 (eval $ac_compile) 2>&5 5579 ac_status=$? 5580 echo "$as_me:5580: \$? = $ac_status" >&5 5581 (exit "$ac_status"); } && 5582 { ac_try='test -s "conftest.$ac_objext"' 5583 { (eval echo "$as_me:5583: \"$ac_try\"") >&5 5584 (eval $ac_try) 2>&5 5585 ac_status=$? 5586 echo "$as_me:5586: \$? = $ac_status" >&5 5587 (exit "$ac_status"); }; }; then 5588 cf_cv_type_cc_t=yes 5589else 5590 echo "$as_me: failed program was:" >&5 5591cat "conftest.$ac_ext" >&5 5592cf_cv_type_cc_t=no 5593fi 5594rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5595 5596fi 5597 5598echo "$as_me:5598: result: $cf_cv_type_cc_t" >&5 5599echo "${ECHO_T}$cf_cv_type_cc_t" >&6 5600test $cf_cv_type_cc_t = no && 5601cat >>confdefs.h <<\EOF 5602#define cc_t unsigned char 5603EOF 5604 5605echo "$as_me:5605: checking for nfds_t in <poll.h>" >&5 5606echo $ECHO_N "checking for nfds_t in <poll.h>... $ECHO_C" >&6 5607if test "${cf_cv_type_nfds_t+set}" = set; then 5608 echo $ECHO_N "(cached) $ECHO_C" >&6 5609else 5610 5611 cat >"conftest.$ac_ext" <<_ACEOF 5612#line 5612 "configure" 5613#include "confdefs.h" 5614 5615$ac_includes_default 5616#include <poll.h> 5617 5618int 5619main (void) 5620{ 5621nfds_t x; (void)x 5622 ; 5623 return 0; 5624} 5625_ACEOF 5626rm -f "conftest.$ac_objext" 5627if { (eval echo "$as_me:5627: \"$ac_compile\"") >&5 5628 (eval $ac_compile) 2>&5 5629 ac_status=$? 5630 echo "$as_me:5630: \$? = $ac_status" >&5 5631 (exit "$ac_status"); } && 5632 { ac_try='test -s "conftest.$ac_objext"' 5633 { (eval echo "$as_me:5633: \"$ac_try\"") >&5 5634 (eval $ac_try) 2>&5 5635 ac_status=$? 5636 echo "$as_me:5636: \$? = $ac_status" >&5 5637 (exit "$ac_status"); }; }; then 5638 cf_cv_type_nfds_t=yes 5639else 5640 echo "$as_me: failed program was:" >&5 5641cat "conftest.$ac_ext" >&5 5642cf_cv_type_nfds_t=no 5643fi 5644rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5645 5646fi 5647 5648echo "$as_me:5648: result: $cf_cv_type_nfds_t" >&5 5649echo "${ECHO_T}$cf_cv_type_nfds_t" >&6 5650test $cf_cv_type_nfds_t = no && 5651cat >>confdefs.h <<\EOF 5652#define nfds_t unsigned 5653EOF 5654 5655echo "$as_me:5655: checking for mode_t" >&5 5656echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 5657if test "${ac_cv_type_mode_t+set}" = set; then 5658 echo $ECHO_N "(cached) $ECHO_C" >&6 5659else 5660 cat >"conftest.$ac_ext" <<_ACEOF 5661#line 5661 "configure" 5662#include "confdefs.h" 5663$ac_includes_default 5664int 5665main (void) 5666{ 5667if ((mode_t *) 0) 5668 return 0; 5669if (sizeof (mode_t)) 5670 return 0; 5671 ; 5672 return 0; 5673} 5674_ACEOF 5675rm -f "conftest.$ac_objext" 5676if { (eval echo "$as_me:5676: \"$ac_compile\"") >&5 5677 (eval $ac_compile) 2>&5 5678 ac_status=$? 5679 echo "$as_me:5679: \$? = $ac_status" >&5 5680 (exit "$ac_status"); } && 5681 { ac_try='test -s "conftest.$ac_objext"' 5682 { (eval echo "$as_me:5682: \"$ac_try\"") >&5 5683 (eval $ac_try) 2>&5 5684 ac_status=$? 5685 echo "$as_me:5685: \$? = $ac_status" >&5 5686 (exit "$ac_status"); }; }; then 5687 ac_cv_type_mode_t=yes 5688else 5689 echo "$as_me: failed program was:" >&5 5690cat "conftest.$ac_ext" >&5 5691ac_cv_type_mode_t=no 5692fi 5693rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5694fi 5695echo "$as_me:5695: result: $ac_cv_type_mode_t" >&5 5696echo "${ECHO_T}$ac_cv_type_mode_t" >&6 5697if test "$ac_cv_type_mode_t" = yes; then 5698 : 5699else 5700 5701cat >>confdefs.h <<EOF 5702#define mode_t int 5703EOF 5704 5705fi 5706 5707echo "$as_me:5707: checking for pid_t" >&5 5708echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 5709if test "${ac_cv_type_pid_t+set}" = set; then 5710 echo $ECHO_N "(cached) $ECHO_C" >&6 5711else 5712 cat >"conftest.$ac_ext" <<_ACEOF 5713#line 5713 "configure" 5714#include "confdefs.h" 5715$ac_includes_default 5716int 5717main (void) 5718{ 5719if ((pid_t *) 0) 5720 return 0; 5721if (sizeof (pid_t)) 5722 return 0; 5723 ; 5724 return 0; 5725} 5726_ACEOF 5727rm -f "conftest.$ac_objext" 5728if { (eval echo "$as_me:5728: \"$ac_compile\"") >&5 5729 (eval $ac_compile) 2>&5 5730 ac_status=$? 5731 echo "$as_me:5731: \$? = $ac_status" >&5 5732 (exit "$ac_status"); } && 5733 { ac_try='test -s "conftest.$ac_objext"' 5734 { (eval echo "$as_me:5734: \"$ac_try\"") >&5 5735 (eval $ac_try) 2>&5 5736 ac_status=$? 5737 echo "$as_me:5737: \$? = $ac_status" >&5 5738 (exit "$ac_status"); }; }; then 5739 ac_cv_type_pid_t=yes 5740else 5741 echo "$as_me: failed program was:" >&5 5742cat "conftest.$ac_ext" >&5 5743ac_cv_type_pid_t=no 5744fi 5745rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5746fi 5747echo "$as_me:5747: result: $ac_cv_type_pid_t" >&5 5748echo "${ECHO_T}$ac_cv_type_pid_t" >&6 5749if test "$ac_cv_type_pid_t" = yes; then 5750 : 5751else 5752 5753cat >>confdefs.h <<EOF 5754#define pid_t int 5755EOF 5756 5757fi 5758 5759echo "$as_me:5759: checking for uid_t in sys/types.h" >&5 5760echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 5761if test "${ac_cv_type_uid_t+set}" = set; then 5762 echo $ECHO_N "(cached) $ECHO_C" >&6 5763else 5764 cat >"conftest.$ac_ext" <<_ACEOF 5765#line 5765 "configure" 5766#include "confdefs.h" 5767#include <sys/types.h> 5768 5769_ACEOF 5770if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5771 $EGREP "uid_t" >/dev/null 2>&1; then 5772 ac_cv_type_uid_t=yes 5773else 5774 ac_cv_type_uid_t=no 5775fi 5776rm -rf conftest* 5777 5778fi 5779echo "$as_me:5779: result: $ac_cv_type_uid_t" >&5 5780echo "${ECHO_T}$ac_cv_type_uid_t" >&6 5781if test $ac_cv_type_uid_t = no; then 5782 5783cat >>confdefs.h <<\EOF 5784#define uid_t int 5785EOF 5786 5787cat >>confdefs.h <<\EOF 5788#define gid_t int 5789EOF 5790 5791fi 5792 5793echo "$as_me:5793: checking for off_t" >&5 5794echo $ECHO_N "checking for off_t... $ECHO_C" >&6 5795if test "${ac_cv_type_off_t+set}" = set; then 5796 echo $ECHO_N "(cached) $ECHO_C" >&6 5797else 5798 cat >"conftest.$ac_ext" <<_ACEOF 5799#line 5799 "configure" 5800#include "confdefs.h" 5801$ac_includes_default 5802int 5803main (void) 5804{ 5805if ((off_t *) 0) 5806 return 0; 5807if (sizeof (off_t)) 5808 return 0; 5809 ; 5810 return 0; 5811} 5812_ACEOF 5813rm -f "conftest.$ac_objext" 5814if { (eval echo "$as_me:5814: \"$ac_compile\"") >&5 5815 (eval $ac_compile) 2>&5 5816 ac_status=$? 5817 echo "$as_me:5817: \$? = $ac_status" >&5 5818 (exit "$ac_status"); } && 5819 { ac_try='test -s "conftest.$ac_objext"' 5820 { (eval echo "$as_me:5820: \"$ac_try\"") >&5 5821 (eval $ac_try) 2>&5 5822 ac_status=$? 5823 echo "$as_me:5823: \$? = $ac_status" >&5 5824 (exit "$ac_status"); }; }; then 5825 ac_cv_type_off_t=yes 5826else 5827 echo "$as_me: failed program was:" >&5 5828cat "conftest.$ac_ext" >&5 5829ac_cv_type_off_t=no 5830fi 5831rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5832fi 5833echo "$as_me:5833: result: $ac_cv_type_off_t" >&5 5834echo "${ECHO_T}$ac_cv_type_off_t" >&6 5835if test "$ac_cv_type_off_t" = yes; then 5836 : 5837else 5838 5839cat >>confdefs.h <<EOF 5840#define off_t long 5841EOF 5842 5843fi 5844 5845### checks for library functions 5846 5847for ac_func in \ 5848 gethostname \ 5849 getusershell \ 5850 endusershell \ 5851 getlogin \ 5852 initgroups \ 5853 mkdtemp \ 5854 putenv \ 5855 unsetenv \ 5856 sched_yield \ 5857 setpgid \ 5858 setsid \ 5859 tcgetattr \ 5860 waitpid \ 5861 wcswidth \ 5862 wcwidth 5863do 5864as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5865echo "$as_me:5865: checking for $ac_func" >&5 5866echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5867if eval "test \"\${$as_ac_var+set}\" = set"; then 5868 echo $ECHO_N "(cached) $ECHO_C" >&6 5869else 5870 cat >"conftest.$ac_ext" <<_ACEOF 5871#line 5871 "configure" 5872#include "confdefs.h" 5873#define $ac_func autoconf_temporary 5874#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 5875#undef $ac_func 5876 5877#ifdef __cplusplus 5878extern "C" 5879#endif 5880 5881/* We use char because int might match the return type of a gcc2 5882 builtin and then its argument prototype would still apply. */ 5883char $ac_func (void); 5884 5885int 5886main (void) 5887{ 5888 5889/* The GNU C library defines stubs for functions which it implements 5890 to always fail with ENOSYS. Some functions are actually named 5891 something starting with __ and the normal name is an alias. */ 5892#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5893#error found stub for $ac_func 5894#endif 5895 5896 return $ac_func (); 5897 ; 5898 return 0; 5899} 5900_ACEOF 5901rm -f "conftest.$ac_objext" "conftest$ac_exeext" 5902if { (eval echo "$as_me:5902: \"$ac_link\"") >&5 5903 (eval $ac_link) 2>&5 5904 ac_status=$? 5905 echo "$as_me:5905: \$? = $ac_status" >&5 5906 (exit "$ac_status"); } && 5907 { ac_try='test -s "conftest$ac_exeext"' 5908 { (eval echo "$as_me:5908: \"$ac_try\"") >&5 5909 (eval $ac_try) 2>&5 5910 ac_status=$? 5911 echo "$as_me:5911: \$? = $ac_status" >&5 5912 (exit "$ac_status"); }; }; then 5913 eval "$as_ac_var=yes" 5914else 5915 echo "$as_me: failed program was:" >&5 5916cat "conftest.$ac_ext" >&5 5917eval "$as_ac_var=no" 5918fi 5919rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 5920fi 5921echo "$as_me:5921: result: `eval echo '${'"$as_ac_var"'}'`" >&5 5922echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 5923if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 5924 cat >>confdefs.h <<EOF 5925#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5926EOF 5927 5928fi 5929done 5930 5931cf_save_libs="$LIBS" 5932echo "$as_me:5932: checking for clock_gettime" >&5 5933echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6 5934if test "${ac_cv_func_clock_gettime+set}" = set; then 5935 echo $ECHO_N "(cached) $ECHO_C" >&6 5936else 5937 cat >"conftest.$ac_ext" <<_ACEOF 5938#line 5938 "configure" 5939#include "confdefs.h" 5940#define clock_gettime autoconf_temporary 5941#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 5942#undef clock_gettime 5943 5944#ifdef __cplusplus 5945extern "C" 5946#endif 5947 5948/* We use char because int might match the return type of a gcc2 5949 builtin and then its argument prototype would still apply. */ 5950char clock_gettime (void); 5951 5952int 5953main (void) 5954{ 5955 5956/* The GNU C library defines stubs for functions which it implements 5957 to always fail with ENOSYS. Some functions are actually named 5958 something starting with __ and the normal name is an alias. */ 5959#if defined (__stub_clock_gettime) || defined (__stub___clock_gettime) 5960#error found stub for clock_gettime 5961#endif 5962 5963 return clock_gettime (); 5964 ; 5965 return 0; 5966} 5967_ACEOF 5968rm -f "conftest.$ac_objext" "conftest$ac_exeext" 5969if { (eval echo "$as_me:5969: \"$ac_link\"") >&5 5970 (eval $ac_link) 2>&5 5971 ac_status=$? 5972 echo "$as_me:5972: \$? = $ac_status" >&5 5973 (exit "$ac_status"); } && 5974 { ac_try='test -s "conftest$ac_exeext"' 5975 { (eval echo "$as_me:5975: \"$ac_try\"") >&5 5976 (eval $ac_try) 2>&5 5977 ac_status=$? 5978 echo "$as_me:5978: \$? = $ac_status" >&5 5979 (exit "$ac_status"); }; }; then 5980 ac_cv_func_clock_gettime=yes 5981else 5982 echo "$as_me: failed program was:" >&5 5983cat "conftest.$ac_ext" >&5 5984ac_cv_func_clock_gettime=no 5985fi 5986rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 5987fi 5988echo "$as_me:5988: result: $ac_cv_func_clock_gettime" >&5 5989echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6 5990if test "$ac_cv_func_clock_gettime" = yes; then 5991 cf_cv_test_clock_gettime=yes 5992else 5993 echo "$as_me:5993: checking for clock_gettime in -lrt" >&5 5994echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6 5995if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then 5996 echo $ECHO_N "(cached) $ECHO_C" >&6 5997else 5998 ac_check_lib_save_LIBS=$LIBS 5999LIBS="-lrt $LIBS" 6000cat >"conftest.$ac_ext" <<_ACEOF 6001#line 6001 "configure" 6002#include "confdefs.h" 6003 6004/* Override any gcc2 internal prototype to avoid an error. */ 6005#ifdef __cplusplus 6006extern "C" 6007#endif 6008/* We use char because int might match the return type of a gcc2 6009 builtin and then its argument prototype would still apply. */ 6010char clock_gettime (void); 6011int 6012main (void) 6013{ 6014clock_gettime (); 6015 ; 6016 return 0; 6017} 6018_ACEOF 6019rm -f "conftest.$ac_objext" "conftest$ac_exeext" 6020if { (eval echo "$as_me:6020: \"$ac_link\"") >&5 6021 (eval $ac_link) 2>&5 6022 ac_status=$? 6023 echo "$as_me:6023: \$? = $ac_status" >&5 6024 (exit "$ac_status"); } && 6025 { ac_try='test -s "conftest$ac_exeext"' 6026 { (eval echo "$as_me:6026: \"$ac_try\"") >&5 6027 (eval $ac_try) 2>&5 6028 ac_status=$? 6029 echo "$as_me:6029: \$? = $ac_status" >&5 6030 (exit "$ac_status"); }; }; then 6031 ac_cv_lib_rt_clock_gettime=yes 6032else 6033 echo "$as_me: failed program was:" >&5 6034cat "conftest.$ac_ext" >&5 6035ac_cv_lib_rt_clock_gettime=no 6036fi 6037rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 6038LIBS=$ac_check_lib_save_LIBS 6039fi 6040echo "$as_me:6040: result: $ac_cv_lib_rt_clock_gettime" >&5 6041echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6 6042if test "$ac_cv_lib_rt_clock_gettime" = yes; then 6043 LIBS="-lrt $LIBS" 6044 cf_cv_test_clock_gettime=yes 6045else 6046 cf_cv_test_clock_gettime=no 6047fi 6048 6049fi 6050 6051if test "$cf_cv_test_clock_gettime" = yes ; then 6052echo "$as_me:6052: checking if clock_gettime links" >&5 6053echo $ECHO_N "checking if clock_gettime links... $ECHO_C" >&6 6054if test "${cf_cv_func_clock_gettime+set}" = set; then 6055 echo $ECHO_N "(cached) $ECHO_C" >&6 6056else 6057 6058 cat >"conftest.$ac_ext" <<_ACEOF 6059#line 6059 "configure" 6060#include "confdefs.h" 6061 6062$ac_includes_default 6063#include <time.h> 6064 6065int 6066main (void) 6067{ 6068struct timespec ts; 6069 int rc = clock_gettime(CLOCK_REALTIME, &ts) 6070 + clock_gettime(CLOCK_MONOTONIC, &ts); 6071 (void) rc; (void)ts 6072 ; 6073 return 0; 6074} 6075_ACEOF 6076rm -f "conftest.$ac_objext" "conftest$ac_exeext" 6077if { (eval echo "$as_me:6077: \"$ac_link\"") >&5 6078 (eval $ac_link) 2>&5 6079 ac_status=$? 6080 echo "$as_me:6080: \$? = $ac_status" >&5 6081 (exit "$ac_status"); } && 6082 { ac_try='test -s "conftest$ac_exeext"' 6083 { (eval echo "$as_me:6083: \"$ac_try\"") >&5 6084 (eval $ac_try) 2>&5 6085 ac_status=$? 6086 echo "$as_me:6086: \$? = $ac_status" >&5 6087 (exit "$ac_status"); }; }; then 6088 cf_cv_func_clock_gettime=yes 6089else 6090 echo "$as_me: failed program was:" >&5 6091cat "conftest.$ac_ext" >&5 6092cf_cv_func_clock_gettime=no 6093fi 6094rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 6095 6096fi 6097echo "$as_me:6097: result: $cf_cv_func_clock_gettime" >&5 6098echo "${ECHO_T}$cf_cv_func_clock_gettime" >&6 6099else 6100 cf_cv_func_clock_gettime=no 6101fi 6102 6103if test "$cf_cv_func_clock_gettime" = yes 6104then 6105 6106cat >>confdefs.h <<\EOF 6107#define HAVE_CLOCK_GETTIME 1 6108EOF 6109 6110else 6111echo "$as_me:6111: checking for gettimeofday" >&5 6112echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6 6113if test "${ac_cv_func_gettimeofday+set}" = set; then 6114 echo $ECHO_N "(cached) $ECHO_C" >&6 6115else 6116 cat >"conftest.$ac_ext" <<_ACEOF 6117#line 6117 "configure" 6118#include "confdefs.h" 6119#define gettimeofday autoconf_temporary 6120#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 6121#undef gettimeofday 6122 6123#ifdef __cplusplus 6124extern "C" 6125#endif 6126 6127/* We use char because int might match the return type of a gcc2 6128 builtin and then its argument prototype would still apply. */ 6129char gettimeofday (void); 6130 6131int 6132main (void) 6133{ 6134 6135/* The GNU C library defines stubs for functions which it implements 6136 to always fail with ENOSYS. Some functions are actually named 6137 something starting with __ and the normal name is an alias. */ 6138#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) 6139#error found stub for gettimeofday 6140#endif 6141 6142 return gettimeofday (); 6143 ; 6144 return 0; 6145} 6146_ACEOF 6147rm -f "conftest.$ac_objext" "conftest$ac_exeext" 6148if { (eval echo "$as_me:6148: \"$ac_link\"") >&5 6149 (eval $ac_link) 2>&5 6150 ac_status=$? 6151 echo "$as_me:6151: \$? = $ac_status" >&5 6152 (exit "$ac_status"); } && 6153 { ac_try='test -s "conftest$ac_exeext"' 6154 { (eval echo "$as_me:6154: \"$ac_try\"") >&5 6155 (eval $ac_try) 2>&5 6156 ac_status=$? 6157 echo "$as_me:6157: \$? = $ac_status" >&5 6158 (exit "$ac_status"); }; }; then 6159 ac_cv_func_gettimeofday=yes 6160else 6161 echo "$as_me: failed program was:" >&5 6162cat "conftest.$ac_ext" >&5 6163ac_cv_func_gettimeofday=no 6164fi 6165rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 6166fi 6167echo "$as_me:6167: result: $ac_cv_func_gettimeofday" >&5 6168echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6 6169if test "$ac_cv_func_gettimeofday" = yes; then 6170 6171cat >>confdefs.h <<\EOF 6172#define HAVE_GETTIMEOFDAY 1 6173EOF 6174 6175else 6176 6177echo "$as_me:6177: checking for gettimeofday in -lbsd" >&5 6178echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6 6179if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then 6180 echo $ECHO_N "(cached) $ECHO_C" >&6 6181else 6182 ac_check_lib_save_LIBS=$LIBS 6183LIBS="-lbsd $LIBS" 6184cat >"conftest.$ac_ext" <<_ACEOF 6185#line 6185 "configure" 6186#include "confdefs.h" 6187 6188/* Override any gcc2 internal prototype to avoid an error. */ 6189#ifdef __cplusplus 6190extern "C" 6191#endif 6192/* We use char because int might match the return type of a gcc2 6193 builtin and then its argument prototype would still apply. */ 6194char gettimeofday (void); 6195int 6196main (void) 6197{ 6198gettimeofday (); 6199 ; 6200 return 0; 6201} 6202_ACEOF 6203rm -f "conftest.$ac_objext" "conftest$ac_exeext" 6204if { (eval echo "$as_me:6204: \"$ac_link\"") >&5 6205 (eval $ac_link) 2>&5 6206 ac_status=$? 6207 echo "$as_me:6207: \$? = $ac_status" >&5 6208 (exit "$ac_status"); } && 6209 { ac_try='test -s "conftest$ac_exeext"' 6210 { (eval echo "$as_me:6210: \"$ac_try\"") >&5 6211 (eval $ac_try) 2>&5 6212 ac_status=$? 6213 echo "$as_me:6213: \$? = $ac_status" >&5 6214 (exit "$ac_status"); }; }; then 6215 ac_cv_lib_bsd_gettimeofday=yes 6216else 6217 echo "$as_me: failed program was:" >&5 6218cat "conftest.$ac_ext" >&5 6219ac_cv_lib_bsd_gettimeofday=no 6220fi 6221rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 6222LIBS=$ac_check_lib_save_LIBS 6223fi 6224echo "$as_me:6224: result: $ac_cv_lib_bsd_gettimeofday" >&5 6225echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6 6226if test "$ac_cv_lib_bsd_gettimeofday" = yes; then 6227 6228cat >>confdefs.h <<\EOF 6229#define HAVE_GETTIMEOFDAY 1 6230EOF 6231 6232cf_add_libs="$LIBS" 6233# reverse order 6234cf_add_0lib= 6235for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 6236# filter duplicates 6237for cf_add_1lib in $cf_add_0lib; do 6238 for cf_add_2lib in $cf_add_libs; do 6239 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 6240 cf_add_1lib= 6241 break 6242 fi 6243 done 6244 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 6245done 6246LIBS="$cf_add_libs" 6247 6248fi 6249 6250fi 6251fi 6252 6253echo "$as_me:6253: checking for strftime function" >&5 6254echo $ECHO_N "checking for strftime function... $ECHO_C" >&6 6255if test "${cf_cv_func_strftime+set}" = set; then 6256 echo $ECHO_N "(cached) $ECHO_C" >&6 6257else 6258 6259cat >"conftest.$ac_ext" <<_ACEOF 6260#line 6260 "configure" 6261#include "confdefs.h" 6262 6263$ac_includes_default 6264#include <time.h> 6265 6266int 6267main (void) 6268{ 6269 6270 time_t now = time((time_t*)0); 6271 struct tm *tm = localtime(&now); 6272 char buffer[80]; 6273 size_t result = strftime(buffer, sizeof(buffer), "%c", tm); 6274 6275 (void)result; 6276 (void)buffer; 6277 6278 ; 6279 return 0; 6280} 6281_ACEOF 6282rm -f "conftest.$ac_objext" "conftest$ac_exeext" 6283if { (eval echo "$as_me:6283: \"$ac_link\"") >&5 6284 (eval $ac_link) 2>&5 6285 ac_status=$? 6286 echo "$as_me:6286: \$? = $ac_status" >&5 6287 (exit "$ac_status"); } && 6288 { ac_try='test -s "conftest$ac_exeext"' 6289 { (eval echo "$as_me:6289: \"$ac_try\"") >&5 6290 (eval $ac_try) 2>&5 6291 ac_status=$? 6292 echo "$as_me:6292: \$? = $ac_status" >&5 6293 (exit "$ac_status"); }; }; then 6294 cf_cv_func_strftime=yes 6295else 6296 echo "$as_me: failed program was:" >&5 6297cat "conftest.$ac_ext" >&5 6298cf_cv_func_strftime=no 6299fi 6300rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 6301 6302fi 6303echo "$as_me:6303: result: $cf_cv_func_strftime" >&5 6304echo "${ECHO_T}$cf_cv_func_strftime" >&6 6305 6306test "$cf_cv_func_strftime" = yes && 6307cat >>confdefs.h <<\EOF 6308#define HAVE_STRFTIME 1 6309EOF 6310 6311for ac_header in \ 6312unistd.h \ 6313 6314do 6315as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6316echo "$as_me:6316: checking for $ac_header" >&5 6317echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6318if eval "test \"\${$as_ac_Header+set}\" = set"; then 6319 echo $ECHO_N "(cached) $ECHO_C" >&6 6320else 6321 cat >"conftest.$ac_ext" <<_ACEOF 6322#line 6322 "configure" 6323#include "confdefs.h" 6324#include <$ac_header> 6325_ACEOF 6326if { (eval echo "$as_me:6326: \"$ac_cpp "conftest.$ac_ext"\"") >&5 6327 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 6328 ac_status=$? 6329 $EGREP -v '^ *\+' conftest.er1 >conftest.err 6330 rm -f conftest.er1 6331 cat conftest.err >&5 6332 echo "$as_me:6332: \$? = $ac_status" >&5 6333 (exit "$ac_status"); } >/dev/null; then 6334 if test -s conftest.err; then 6335 ac_cpp_err=$ac_c_preproc_warn_flag 6336 else 6337 ac_cpp_err= 6338 fi 6339else 6340 ac_cpp_err=yes 6341fi 6342if test -z "$ac_cpp_err"; then 6343 eval "$as_ac_Header=yes" 6344else 6345 echo "$as_me: failed program was:" >&5 6346 cat "conftest.$ac_ext" >&5 6347 eval "$as_ac_Header=no" 6348fi 6349rm -f conftest.err "conftest.$ac_ext" 6350fi 6351echo "$as_me:6351: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 6352echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 6353if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 6354 cat >>confdefs.h <<EOF 6355#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6356EOF 6357 6358fi 6359done 6360 6361echo "$as_me:6361: checking for working mkstemp" >&5 6362echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6 6363if test "${cf_cv_func_mkstemp+set}" = set; then 6364 echo $ECHO_N "(cached) $ECHO_C" >&6 6365else 6366 6367rm -rf ./conftest* 6368if test "$cross_compiling" = yes; then 6369 cf_cv_func_mkstemp=maybe 6370else 6371 cat >"conftest.$ac_ext" <<_ACEOF 6372#line 6372 "configure" 6373#include "confdefs.h" 6374 6375$ac_includes_default 6376 6377int main(void) 6378{ 6379 static char tmpl[] = "conftestXXXXXX"; 6380 char name[2][80]; 6381 int n; 6382 int result = 0; 6383 int fd; 6384 struct stat sb; 6385 6386 umask(077); 6387 for (n = 0; n < 2; ++n) { 6388 strcpy(name[n], tmpl); 6389 if ((fd = mkstemp(name[n])) >= 0) { 6390 if (!strcmp(name[n], tmpl) 6391 || stat(name[n], &sb) != 0 6392 || (sb.st_mode & S_IFMT) != S_IFREG 6393 || (sb.st_mode & 077) != 0) { 6394 result = 1; 6395 } 6396 close(fd); 6397 } 6398 } 6399 if (result == 0 6400 && !strcmp(name[0], name[1])) 6401 result = 1; 6402 ${cf_cv_main_return:-return}(result); 6403} 6404 6405_ACEOF 6406rm -f "conftest$ac_exeext" 6407if { (eval echo "$as_me:6407: \"$ac_link\"") >&5 6408 (eval $ac_link) 2>&5 6409 ac_status=$? 6410 echo "$as_me:6410: \$? = $ac_status" >&5 6411 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 6412 { (eval echo "$as_me:6412: \"$ac_try\"") >&5 6413 (eval $ac_try) 2>&5 6414 ac_status=$? 6415 echo "$as_me:6415: \$? = $ac_status" >&5 6416 (exit "$ac_status"); }; }; then 6417 cf_cv_func_mkstemp=yes 6418 6419else 6420 echo "$as_me: program exited with status $ac_status" >&5 6421echo "$as_me: failed program was:" >&5 6422cat "conftest.$ac_ext" >&5 6423cf_cv_func_mkstemp=no 6424 6425fi 6426rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 6427fi 6428 6429fi 6430echo "$as_me:6430: result: $cf_cv_func_mkstemp" >&5 6431echo "${ECHO_T}$cf_cv_func_mkstemp" >&6 6432if test "x$cf_cv_func_mkstemp" = xmaybe ; then 6433 echo "$as_me:6433: checking for mkstemp" >&5 6434echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6 6435if test "${ac_cv_func_mkstemp+set}" = set; then 6436 echo $ECHO_N "(cached) $ECHO_C" >&6 6437else 6438 cat >"conftest.$ac_ext" <<_ACEOF 6439#line 6439 "configure" 6440#include "confdefs.h" 6441#define mkstemp autoconf_temporary 6442#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 6443#undef mkstemp 6444 6445#ifdef __cplusplus 6446extern "C" 6447#endif 6448 6449/* We use char because int might match the return type of a gcc2 6450 builtin and then its argument prototype would still apply. */ 6451char mkstemp (void); 6452 6453int 6454main (void) 6455{ 6456 6457/* The GNU C library defines stubs for functions which it implements 6458 to always fail with ENOSYS. Some functions are actually named 6459 something starting with __ and the normal name is an alias. */ 6460#if defined (__stub_mkstemp) || defined (__stub___mkstemp) 6461#error found stub for mkstemp 6462#endif 6463 6464 return mkstemp (); 6465 ; 6466 return 0; 6467} 6468_ACEOF 6469rm -f "conftest.$ac_objext" "conftest$ac_exeext" 6470if { (eval echo "$as_me:6470: \"$ac_link\"") >&5 6471 (eval $ac_link) 2>&5 6472 ac_status=$? 6473 echo "$as_me:6473: \$? = $ac_status" >&5 6474 (exit "$ac_status"); } && 6475 { ac_try='test -s "conftest$ac_exeext"' 6476 { (eval echo "$as_me:6476: \"$ac_try\"") >&5 6477 (eval $ac_try) 2>&5 6478 ac_status=$? 6479 echo "$as_me:6479: \$? = $ac_status" >&5 6480 (exit "$ac_status"); }; }; then 6481 ac_cv_func_mkstemp=yes 6482else 6483 echo "$as_me: failed program was:" >&5 6484cat "conftest.$ac_ext" >&5 6485ac_cv_func_mkstemp=no 6486fi 6487rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 6488fi 6489echo "$as_me:6489: result: $ac_cv_func_mkstemp" >&5 6490echo "${ECHO_T}$ac_cv_func_mkstemp" >&6 6491 6492fi 6493if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then 6494 6495cat >>confdefs.h <<\EOF 6496#define HAVE_MKSTEMP 1 6497EOF 6498 6499fi 6500 6501echo "$as_me:6501: checking if setitimer is available" >&5 6502echo $ECHO_N "checking if setitimer is available... $ECHO_C" >&6 6503if test "${cf_cv_func_setitimer+set}" = set; then 6504 echo $ECHO_N "(cached) $ECHO_C" >&6 6505else 6506 6507cat >"conftest.$ac_ext" <<_ACEOF 6508#line 6508 "configure" 6509#include "confdefs.h" 6510 6511$ac_includes_default 6512#include <sys/time.h> 6513 6514int 6515main (void) 6516{ 6517 6518 struct itimerval it; 6519 memset(&it, 0, sizeof(struct itimerval)); 6520 it.it_value.tv_sec = 1; 6521 setitimer(ITIMER_REAL, &it, NULL); 6522 6523 ; 6524 return 0; 6525} 6526_ACEOF 6527rm -f "conftest.$ac_objext" 6528if { (eval echo "$as_me:6528: \"$ac_compile\"") >&5 6529 (eval $ac_compile) 2>&5 6530 ac_status=$? 6531 echo "$as_me:6531: \$? = $ac_status" >&5 6532 (exit "$ac_status"); } && 6533 { ac_try='test -s "conftest.$ac_objext"' 6534 { (eval echo "$as_me:6534: \"$ac_try\"") >&5 6535 (eval $ac_try) 2>&5 6536 ac_status=$? 6537 echo "$as_me:6537: \$? = $ac_status" >&5 6538 (exit "$ac_status"); }; }; then 6539 cf_cv_func_setitimer=yes 6540else 6541 echo "$as_me: failed program was:" >&5 6542cat "conftest.$ac_ext" >&5 6543cf_cv_func_setitimer=no 6544fi 6545rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6546 6547fi 6548echo "$as_me:6548: result: $cf_cv_func_setitimer" >&5 6549echo "${ECHO_T}$cf_cv_func_setitimer" >&6 6550test "$cf_cv_func_setitimer" != no && 6551cat >>confdefs.h <<\EOF 6552#define HAVE_SETITIMER 1 6553EOF 6554 6555for ac_header in lastlog.h paths.h 6556do 6557as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6558echo "$as_me:6558: checking for $ac_header" >&5 6559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6560if eval "test \"\${$as_ac_Header+set}\" = set"; then 6561 echo $ECHO_N "(cached) $ECHO_C" >&6 6562else 6563 cat >"conftest.$ac_ext" <<_ACEOF 6564#line 6564 "configure" 6565#include "confdefs.h" 6566#include <$ac_header> 6567_ACEOF 6568if { (eval echo "$as_me:6568: \"$ac_cpp "conftest.$ac_ext"\"") >&5 6569 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 6570 ac_status=$? 6571 $EGREP -v '^ *\+' conftest.er1 >conftest.err 6572 rm -f conftest.er1 6573 cat conftest.err >&5 6574 echo "$as_me:6574: \$? = $ac_status" >&5 6575 (exit "$ac_status"); } >/dev/null; then 6576 if test -s conftest.err; then 6577 ac_cpp_err=$ac_c_preproc_warn_flag 6578 else 6579 ac_cpp_err= 6580 fi 6581else 6582 ac_cpp_err=yes 6583fi 6584if test -z "$ac_cpp_err"; then 6585 eval "$as_ac_Header=yes" 6586else 6587 echo "$as_me: failed program was:" >&5 6588 cat "conftest.$ac_ext" >&5 6589 eval "$as_ac_Header=no" 6590fi 6591rm -f conftest.err "conftest.$ac_ext" 6592fi 6593echo "$as_me:6593: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 6594echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 6595if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 6596 cat >>confdefs.h <<EOF 6597#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6598EOF 6599 6600fi 6601done 6602 6603echo "$as_me:6603: checking for lastlog path" >&5 6604echo $ECHO_N "checking for lastlog path... $ECHO_C" >&6 6605if test "${cf_cv_path_lastlog+set}" = set; then 6606 echo $ECHO_N "(cached) $ECHO_C" >&6 6607else 6608 6609cat >"conftest.$ac_ext" <<_ACEOF 6610#line 6610 "configure" 6611#include "confdefs.h" 6612 6613#include <sys/types.h> 6614#ifdef HAVE_LASTLOG_H 6615#include <lastlog.h> 6616#else 6617#ifdef HAVE_PATHS_H 6618#include <paths.h> 6619#endif 6620#endif 6621int 6622main (void) 6623{ 6624static char path[] = _PATH_LASTLOG; (void)path 6625 ; 6626 return 0; 6627} 6628_ACEOF 6629rm -f "conftest.$ac_objext" 6630if { (eval echo "$as_me:6630: \"$ac_compile\"") >&5 6631 (eval $ac_compile) 2>&5 6632 ac_status=$? 6633 echo "$as_me:6633: \$? = $ac_status" >&5 6634 (exit "$ac_status"); } && 6635 { ac_try='test -s "conftest.$ac_objext"' 6636 { (eval echo "$as_me:6636: \"$ac_try\"") >&5 6637 (eval $ac_try) 2>&5 6638 ac_status=$? 6639 echo "$as_me:6639: \$? = $ac_status" >&5 6640 (exit "$ac_status"); }; }; then 6641 cf_cv_path_lastlog="_PATH_LASTLOG" 6642else 6643 echo "$as_me: failed program was:" >&5 6644cat "conftest.$ac_ext" >&5 6645if test -f /usr/adm/lastlog ; then 6646 cf_cv_path_lastlog=/usr/adm/lastlog 6647 else 6648 cf_cv_path_lastlog=no 6649 fi 6650fi 6651rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6652 6653fi 6654echo "$as_me:6654: result: $cf_cv_path_lastlog" >&5 6655echo "${ECHO_T}$cf_cv_path_lastlog" >&6 6656test "$cf_cv_path_lastlog" != no && 6657cat >>confdefs.h <<\EOF 6658#define USE_LASTLOG 1 6659EOF 6660 6661echo "$as_me:6661: checking for utmp implementation" >&5 6662echo $ECHO_N "checking for utmp implementation... $ECHO_C" >&6 6663if test "${cf_cv_have_utmp+set}" = set; then 6664 echo $ECHO_N "(cached) $ECHO_C" >&6 6665else 6666 6667 cf_cv_have_utmp=no 6668for cf_header in utmpx utmp ; do 6669cf_utmp_includes=" 6670#include <sys/types.h> 6671#include <${cf_header}.h> 6672#define getutent getutxent 6673#ifdef USE_LASTLOG 6674#include <lastlog.h> /* may conflict with utmpx.h on Linux */ 6675#endif 6676" 6677 cat >"conftest.$ac_ext" <<_ACEOF 6678#line 6678 "configure" 6679#include "confdefs.h" 6680$cf_utmp_includes 6681int 6682main (void) 6683{ 6684struct $cf_header x; 6685 char *name = x.ut_name; /* utmp.h and compatible definitions */ 6686 (void)x; 6687 (void)name; 6688 6689 ; 6690 return 0; 6691} 6692_ACEOF 6693rm -f "conftest.$ac_objext" 6694if { (eval echo "$as_me:6694: \"$ac_compile\"") >&5 6695 (eval $ac_compile) 2>&5 6696 ac_status=$? 6697 echo "$as_me:6697: \$? = $ac_status" >&5 6698 (exit "$ac_status"); } && 6699 { ac_try='test -s "conftest.$ac_objext"' 6700 { (eval echo "$as_me:6700: \"$ac_try\"") >&5 6701 (eval $ac_try) 2>&5 6702 ac_status=$? 6703 echo "$as_me:6703: \$? = $ac_status" >&5 6704 (exit "$ac_status"); }; }; then 6705 cf_cv_have_utmp=$cf_header 6706 break 6707else 6708 echo "$as_me: failed program was:" >&5 6709cat "conftest.$ac_ext" >&5 6710 6711 cat >"conftest.$ac_ext" <<_ACEOF 6712#line 6712 "configure" 6713#include "confdefs.h" 6714$cf_utmp_includes 6715int 6716main (void) 6717{ 6718struct $cf_header x; 6719 char *name = x.ut_user; /* utmpx.h must declare this */ 6720 (void)x; 6721 (void)name; 6722 6723 ; 6724 return 0; 6725} 6726_ACEOF 6727rm -f "conftest.$ac_objext" 6728if { (eval echo "$as_me:6728: \"$ac_compile\"") >&5 6729 (eval $ac_compile) 2>&5 6730 ac_status=$? 6731 echo "$as_me:6731: \$? = $ac_status" >&5 6732 (exit "$ac_status"); } && 6733 { ac_try='test -s "conftest.$ac_objext"' 6734 { (eval echo "$as_me:6734: \"$ac_try\"") >&5 6735 (eval $ac_try) 2>&5 6736 ac_status=$? 6737 echo "$as_me:6737: \$? = $ac_status" >&5 6738 (exit "$ac_status"); }; }; then 6739 cf_cv_have_utmp=$cf_header 6740 break 6741 6742else 6743 echo "$as_me: failed program was:" >&5 6744cat "conftest.$ac_ext" >&5 6745fi 6746rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6747fi 6748rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6749done 6750 6751fi 6752echo "$as_me:6752: result: $cf_cv_have_utmp" >&5 6753echo "${ECHO_T}$cf_cv_have_utmp" >&6 6754 6755if test "$cf_cv_have_utmp" != no ; then 6756 6757cat >>confdefs.h <<\EOF 6758#define HAVE_UTMP 1 6759EOF 6760 6761 test "$cf_cv_have_utmp" = utmpx && 6762cat >>confdefs.h <<\EOF 6763#define UTMPX_FOR_UTMP 1 6764EOF 6765 6766if test "$cf_cv_have_utmp" != no ; then 6767echo "$as_me:6767: checking if ${cf_cv_have_utmp}.ut_host is declared" >&5 6768echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_host is declared... $ECHO_C" >&6 6769if test "${cf_cv_have_utmp_ut_host+set}" = set; then 6770 echo $ECHO_N "(cached) $ECHO_C" >&6 6771else 6772 6773 cat >"conftest.$ac_ext" <<_ACEOF 6774#line 6774 "configure" 6775#include "confdefs.h" 6776 6777#include <sys/types.h> 6778#include <${cf_cv_have_utmp}.h> 6779int 6780main (void) 6781{ 6782struct $cf_cv_have_utmp x; 6783 char *y = &x.ut_host[0]; 6784 (void)x; 6785 (void)y 6786 ; 6787 return 0; 6788} 6789_ACEOF 6790rm -f "conftest.$ac_objext" 6791if { (eval echo "$as_me:6791: \"$ac_compile\"") >&5 6792 (eval $ac_compile) 2>&5 6793 ac_status=$? 6794 echo "$as_me:6794: \$? = $ac_status" >&5 6795 (exit "$ac_status"); } && 6796 { ac_try='test -s "conftest.$ac_objext"' 6797 { (eval echo "$as_me:6797: \"$ac_try\"") >&5 6798 (eval $ac_try) 2>&5 6799 ac_status=$? 6800 echo "$as_me:6800: \$? = $ac_status" >&5 6801 (exit "$ac_status"); }; }; then 6802 cf_cv_have_utmp_ut_host=yes 6803else 6804 echo "$as_me: failed program was:" >&5 6805cat "conftest.$ac_ext" >&5 6806cf_cv_have_utmp_ut_host=no 6807fi 6808rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6809 6810fi 6811 6812echo "$as_me:6812: result: $cf_cv_have_utmp_ut_host" >&5 6813echo "${ECHO_T}$cf_cv_have_utmp_ut_host" >&6 6814test "$cf_cv_have_utmp_ut_host" != no && 6815cat >>confdefs.h <<\EOF 6816#define HAVE_UTMP_UT_HOST 1 6817EOF 6818 6819fi 6820 6821if test "$cf_cv_have_utmp" != no ; then 6822echo "$as_me:6822: checking if ${cf_cv_have_utmp}.ut_syslen is declared" >&5 6823echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_syslen is declared... $ECHO_C" >&6 6824if test "${cf_cv_have_utmp_ut_syslen+set}" = set; then 6825 echo $ECHO_N "(cached) $ECHO_C" >&6 6826else 6827 6828 cat >"conftest.$ac_ext" <<_ACEOF 6829#line 6829 "configure" 6830#include "confdefs.h" 6831 6832#include <sys/types.h> 6833#include <${cf_cv_have_utmp}.h> 6834int 6835main (void) 6836{ 6837struct $cf_cv_have_utmp x; 6838 int y = x.ut_syslen; 6839 (void)x; 6840 (void)y 6841 ; 6842 return 0; 6843} 6844_ACEOF 6845rm -f "conftest.$ac_objext" 6846if { (eval echo "$as_me:6846: \"$ac_compile\"") >&5 6847 (eval $ac_compile) 2>&5 6848 ac_status=$? 6849 echo "$as_me:6849: \$? = $ac_status" >&5 6850 (exit "$ac_status"); } && 6851 { ac_try='test -s "conftest.$ac_objext"' 6852 { (eval echo "$as_me:6852: \"$ac_try\"") >&5 6853 (eval $ac_try) 2>&5 6854 ac_status=$? 6855 echo "$as_me:6855: \$? = $ac_status" >&5 6856 (exit "$ac_status"); }; }; then 6857 cf_cv_have_utmp_ut_syslen=yes 6858else 6859 echo "$as_me: failed program was:" >&5 6860cat "conftest.$ac_ext" >&5 6861cf_cv_have_utmp_ut_syslen=no 6862fi 6863rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6864 6865fi 6866 6867echo "$as_me:6867: result: $cf_cv_have_utmp_ut_syslen" >&5 6868echo "${ECHO_T}$cf_cv_have_utmp_ut_syslen" >&6 6869test "$cf_cv_have_utmp_ut_syslen" != no && 6870cat >>confdefs.h <<\EOF 6871#define HAVE_UTMP_UT_SYSLEN 1 6872EOF 6873 6874fi 6875 6876if test "$cf_cv_have_utmp" != no ; then 6877echo "$as_me:6877: checking if ${cf_cv_have_utmp}.ut_name is declared" >&5 6878echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_name is declared... $ECHO_C" >&6 6879if test "${cf_cv_have_utmp_ut_name+set}" = set; then 6880 echo $ECHO_N "(cached) $ECHO_C" >&6 6881else 6882 6883 cf_cv_have_utmp_ut_name=no 6884cf_utmp_includes=" 6885#include <sys/types.h> 6886#include <${cf_cv_have_utmp}.h> 6887#define getutent getutxent 6888#ifdef USE_LASTLOG 6889#include <lastlog.h> /* may conflict with utmpx.h on Linux */ 6890#endif 6891" 6892for cf_header in ut_name ut_user ; do 6893 cat >"conftest.$ac_ext" <<_ACEOF 6894#line 6894 "configure" 6895#include "confdefs.h" 6896$cf_utmp_includes 6897int 6898main (void) 6899{ 6900struct $cf_cv_have_utmp x; 6901 char *name = x.$cf_header; 6902 (void)x; 6903 (void)name; 6904 6905 ; 6906 return 0; 6907} 6908_ACEOF 6909rm -f "conftest.$ac_objext" 6910if { (eval echo "$as_me:6910: \"$ac_compile\"") >&5 6911 (eval $ac_compile) 2>&5 6912 ac_status=$? 6913 echo "$as_me:6913: \$? = $ac_status" >&5 6914 (exit "$ac_status"); } && 6915 { ac_try='test -s "conftest.$ac_objext"' 6916 { (eval echo "$as_me:6916: \"$ac_try\"") >&5 6917 (eval $ac_try) 2>&5 6918 ac_status=$? 6919 echo "$as_me:6919: \$? = $ac_status" >&5 6920 (exit "$ac_status"); }; }; then 6921 cf_cv_have_utmp_ut_name=$cf_header 6922 break 6923else 6924 echo "$as_me: failed program was:" >&5 6925cat "conftest.$ac_ext" >&5 6926fi 6927rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6928done 6929 6930fi 6931echo "$as_me:6931: result: $cf_cv_have_utmp_ut_name" >&5 6932echo "${ECHO_T}$cf_cv_have_utmp_ut_name" >&6 6933 6934case "$cf_cv_have_utmp_ut_name" in 6935(no) 6936 { { echo "$as_me:6936: error: Cannot find declaration for ut.ut_name" >&5 6937echo "$as_me: error: Cannot find declaration for ut.ut_name" >&2;} 6938 { (exit 1); exit 1; }; } 6939 ;; 6940(ut_user) 6941 6942cat >>confdefs.h <<\EOF 6943#define ut_name ut_user 6944EOF 6945 6946 ;; 6947esac 6948fi 6949 6950if test "$cf_cv_have_utmp" != no ; then 6951echo "$as_me:6951: checking for exit-status in $cf_cv_have_utmp" >&5 6952echo $ECHO_N "checking for exit-status in $cf_cv_have_utmp... $ECHO_C" >&6 6953if test "${cf_cv_have_utmp_ut_xstatus+set}" = set; then 6954 echo $ECHO_N "(cached) $ECHO_C" >&6 6955else 6956 6957for cf_result in \ 6958 ut_exit.__e_exit \ 6959 ut_exit.e_exit \ 6960 ut_exit.ut_e_exit \ 6961 ut_exit.ut_exit 6962do 6963cat >"conftest.$ac_ext" <<_ACEOF 6964#line 6964 "configure" 6965#include "confdefs.h" 6966 6967#include <sys/types.h> 6968#include <${cf_cv_have_utmp}.h> 6969int 6970main (void) 6971{ 6972struct $cf_cv_have_utmp x; 6973 long y = x.$cf_result = 0; 6974 (void)x; 6975 (void)y 6976 ; 6977 return 0; 6978} 6979_ACEOF 6980rm -f "conftest.$ac_objext" 6981if { (eval echo "$as_me:6981: \"$ac_compile\"") >&5 6982 (eval $ac_compile) 2>&5 6983 ac_status=$? 6984 echo "$as_me:6984: \$? = $ac_status" >&5 6985 (exit "$ac_status"); } && 6986 { ac_try='test -s "conftest.$ac_objext"' 6987 { (eval echo "$as_me:6987: \"$ac_try\"") >&5 6988 (eval $ac_try) 2>&5 6989 ac_status=$? 6990 echo "$as_me:6990: \$? = $ac_status" >&5 6991 (exit "$ac_status"); }; }; then 6992 cf_cv_have_utmp_ut_xstatus=$cf_result 6993 break 6994else 6995 echo "$as_me: failed program was:" >&5 6996cat "conftest.$ac_ext" >&5 6997cf_cv_have_utmp_ut_xstatus=no 6998fi 6999rm -f "conftest.$ac_objext" "conftest.$ac_ext" 7000done 7001 7002fi 7003echo "$as_me:7003: result: $cf_cv_have_utmp_ut_xstatus" >&5 7004echo "${ECHO_T}$cf_cv_have_utmp_ut_xstatus" >&6 7005if test "$cf_cv_have_utmp_ut_xstatus" != no ; then 7006 7007cat >>confdefs.h <<\EOF 7008#define HAVE_UTMP_UT_XSTATUS 1 7009EOF 7010 7011cat >>confdefs.h <<EOF 7012#define ut_xstatus $cf_cv_have_utmp_ut_xstatus 7013EOF 7014 7015fi 7016fi 7017 7018if test "$cf_cv_have_utmp" != no ; then 7019echo "$as_me:7019: checking if ${cf_cv_have_utmp}.ut_xtime is declared" >&5 7020echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_xtime is declared... $ECHO_C" >&6 7021if test "${cf_cv_have_utmp_ut_xtime+set}" = set; then 7022 echo $ECHO_N "(cached) $ECHO_C" >&6 7023else 7024 7025 cat >"conftest.$ac_ext" <<_ACEOF 7026#line 7026 "configure" 7027#include "confdefs.h" 7028 7029#include <sys/types.h> 7030#include <${cf_cv_have_utmp}.h> 7031int 7032main (void) 7033{ 7034struct $cf_cv_have_utmp x; 7035 long y = x.ut_xtime = 0; 7036 (void)x; 7037 (void)y 7038 ; 7039 return 0; 7040} 7041_ACEOF 7042rm -f "conftest.$ac_objext" 7043if { (eval echo "$as_me:7043: \"$ac_compile\"") >&5 7044 (eval $ac_compile) 2>&5 7045 ac_status=$? 7046 echo "$as_me:7046: \$? = $ac_status" >&5 7047 (exit "$ac_status"); } && 7048 { ac_try='test -s "conftest.$ac_objext"' 7049 { (eval echo "$as_me:7049: \"$ac_try\"") >&5 7050 (eval $ac_try) 2>&5 7051 ac_status=$? 7052 echo "$as_me:7052: \$? = $ac_status" >&5 7053 (exit "$ac_status"); }; }; then 7054 cf_cv_have_utmp_ut_xtime=yes 7055else 7056 echo "$as_me: failed program was:" >&5 7057cat "conftest.$ac_ext" >&5 7058cat >"conftest.$ac_ext" <<_ACEOF 7059#line 7059 "configure" 7060#include "confdefs.h" 7061 7062#include <sys/types.h> 7063#include <${cf_cv_have_utmp}.h> 7064int 7065main (void) 7066{ 7067struct $cf_cv_have_utmp x; 7068 long y = x.ut_tv.tv_sec; 7069 (void)x; 7070 (void)y 7071 ; 7072 return 0; 7073} 7074_ACEOF 7075rm -f "conftest.$ac_objext" 7076if { (eval echo "$as_me:7076: \"$ac_compile\"") >&5 7077 (eval $ac_compile) 2>&5 7078 ac_status=$? 7079 echo "$as_me:7079: \$? = $ac_status" >&5 7080 (exit "$ac_status"); } && 7081 { ac_try='test -s "conftest.$ac_objext"' 7082 { (eval echo "$as_me:7082: \"$ac_try\"") >&5 7083 (eval $ac_try) 2>&5 7084 ac_status=$? 7085 echo "$as_me:7085: \$? = $ac_status" >&5 7086 (exit "$ac_status"); }; }; then 7087 cf_cv_have_utmp_ut_xtime=define 7088else 7089 echo "$as_me: failed program was:" >&5 7090cat "conftest.$ac_ext" >&5 7091cf_cv_have_utmp_ut_xtime=no 7092fi 7093rm -f "conftest.$ac_objext" "conftest.$ac_ext" 7094 7095fi 7096rm -f "conftest.$ac_objext" "conftest.$ac_ext" 7097 7098fi 7099echo "$as_me:7099: result: $cf_cv_have_utmp_ut_xtime" >&5 7100echo "${ECHO_T}$cf_cv_have_utmp_ut_xtime" >&6 7101if test "$cf_cv_have_utmp_ut_xtime" != no ; then 7102 7103cat >>confdefs.h <<\EOF 7104#define HAVE_UTMP_UT_XTIME 1 7105EOF 7106 7107 if test "$cf_cv_have_utmp_ut_xtime" = define ; then 7108 7109cat >>confdefs.h <<\EOF 7110#define ut_xtime ut_tv.tv_sec 7111EOF 7112 7113 fi 7114fi 7115fi 7116 7117if test "$cf_cv_have_utmp" != no ; then 7118echo "$as_me:7118: checking if ${cf_cv_have_utmp}.ut_session is declared" >&5 7119echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_session is declared... $ECHO_C" >&6 7120if test "${cf_cv_have_utmp_ut_session+set}" = set; then 7121 echo $ECHO_N "(cached) $ECHO_C" >&6 7122else 7123 7124 cat >"conftest.$ac_ext" <<_ACEOF 7125#line 7125 "configure" 7126#include "confdefs.h" 7127 7128#include <sys/types.h> 7129#include <${cf_cv_have_utmp}.h> 7130int 7131main (void) 7132{ 7133static struct $cf_cv_have_utmp x; 7134 long y = x.ut_session; 7135 (void)x; 7136 (void)y 7137 ; 7138 return 0; 7139} 7140_ACEOF 7141rm -f "conftest.$ac_objext" 7142if { (eval echo "$as_me:7142: \"$ac_compile\"") >&5 7143 (eval $ac_compile) 2>&5 7144 ac_status=$? 7145 echo "$as_me:7145: \$? = $ac_status" >&5 7146 (exit "$ac_status"); } && 7147 { ac_try='test -s "conftest.$ac_objext"' 7148 { (eval echo "$as_me:7148: \"$ac_try\"") >&5 7149 (eval $ac_try) 2>&5 7150 ac_status=$? 7151 echo "$as_me:7151: \$? = $ac_status" >&5 7152 (exit "$ac_status"); }; }; then 7153 cf_cv_have_utmp_ut_session=yes 7154else 7155 echo "$as_me: failed program was:" >&5 7156cat "conftest.$ac_ext" >&5 7157cf_cv_have_utmp_ut_session=no 7158fi 7159rm -f "conftest.$ac_objext" "conftest.$ac_ext" 7160 7161fi 7162echo "$as_me:7162: result: $cf_cv_have_utmp_ut_session" >&5 7163echo "${ECHO_T}$cf_cv_have_utmp_ut_session" >&6 7164if test "$cf_cv_have_utmp_ut_session" != no ; then 7165 7166cat >>confdefs.h <<\EOF 7167#define HAVE_UTMP_UT_SESSION 1 7168EOF 7169 7170fi 7171fi 7172 7173echo "$as_me:7173: checking if $cf_cv_have_utmp is SYSV flavor" >&5 7174echo $ECHO_N "checking if $cf_cv_have_utmp is SYSV flavor... $ECHO_C" >&6 7175if test "${cf_cv_sysv_utmp+set}" = set; then 7176 echo $ECHO_N "(cached) $ECHO_C" >&6 7177else 7178 7179test "$cf_cv_have_utmp" = "utmp" && cf_prefix="ut" || cf_prefix="utx" 7180cat >"conftest.$ac_ext" <<_ACEOF 7181#line 7181 "configure" 7182#include "confdefs.h" 7183 7184#include <sys/types.h> 7185#include <${cf_cv_have_utmp}.h> 7186int 7187main (void) 7188{ 7189 7190struct $cf_cv_have_utmp x; 7191 set${cf_prefix}ent (); 7192 get${cf_prefix}id(&x); 7193 put${cf_prefix}line(&x); 7194 end${cf_prefix}ent(); 7195 ; 7196 return 0; 7197} 7198_ACEOF 7199rm -f "conftest.$ac_objext" "conftest$ac_exeext" 7200if { (eval echo "$as_me:7200: \"$ac_link\"") >&5 7201 (eval $ac_link) 2>&5 7202 ac_status=$? 7203 echo "$as_me:7203: \$? = $ac_status" >&5 7204 (exit "$ac_status"); } && 7205 { ac_try='test -s "conftest$ac_exeext"' 7206 { (eval echo "$as_me:7206: \"$ac_try\"") >&5 7207 (eval $ac_try) 2>&5 7208 ac_status=$? 7209 echo "$as_me:7209: \$? = $ac_status" >&5 7210 (exit "$ac_status"); }; }; then 7211 cf_cv_sysv_utmp=yes 7212else 7213 echo "$as_me: failed program was:" >&5 7214cat "conftest.$ac_ext" >&5 7215cf_cv_sysv_utmp=no 7216fi 7217rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 7218 7219fi 7220echo "$as_me:7220: result: $cf_cv_sysv_utmp" >&5 7221echo "${ECHO_T}$cf_cv_sysv_utmp" >&6 7222test "$cf_cv_sysv_utmp" = yes && 7223cat >>confdefs.h <<\EOF 7224#define USE_SYSV_UTMP 1 7225EOF 7226 7227fi 7228 7229for ac_header in lastlog.h 7230do 7231as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7232echo "$as_me:7232: checking for $ac_header" >&5 7233echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7234if eval "test \"\${$as_ac_Header+set}\" = set"; then 7235 echo $ECHO_N "(cached) $ECHO_C" >&6 7236else 7237 cat >"conftest.$ac_ext" <<_ACEOF 7238#line 7238 "configure" 7239#include "confdefs.h" 7240#include <$ac_header> 7241_ACEOF 7242if { (eval echo "$as_me:7242: \"$ac_cpp "conftest.$ac_ext"\"") >&5 7243 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 7244 ac_status=$? 7245 $EGREP -v '^ *\+' conftest.er1 >conftest.err 7246 rm -f conftest.er1 7247 cat conftest.err >&5 7248 echo "$as_me:7248: \$? = $ac_status" >&5 7249 (exit "$ac_status"); } >/dev/null; then 7250 if test -s conftest.err; then 7251 ac_cpp_err=$ac_c_preproc_warn_flag 7252 else 7253 ac_cpp_err= 7254 fi 7255else 7256 ac_cpp_err=yes 7257fi 7258if test -z "$ac_cpp_err"; then 7259 eval "$as_ac_Header=yes" 7260else 7261 echo "$as_me: failed program was:" >&5 7262 cat "conftest.$ac_ext" >&5 7263 eval "$as_ac_Header=no" 7264fi 7265rm -f conftest.err "conftest.$ac_ext" 7266fi 7267echo "$as_me:7267: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 7268echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 7269if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 7270 cat >>confdefs.h <<EOF 7271#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7272EOF 7273 7274fi 7275done 7276 7277echo "$as_me:7277: checking for struct lastlog" >&5 7278echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 7279if test "${cf_cv_struct_lastlog+set}" = set; then 7280 echo $ECHO_N "(cached) $ECHO_C" >&6 7281else 7282 7283if test "$cross_compiling" = yes; then 7284 7285cf_cv_struct_lastlog=unknown 7286else 7287 cat >"conftest.$ac_ext" <<_ACEOF 7288#line 7288 "configure" 7289#include "confdefs.h" 7290 7291$ac_includes_default 7292 7293#include <time.h> 7294#include <lastlog.h> 7295 7296int main(void) 7297{ 7298 struct lastlog data; 7299 return (sizeof(data.ll_time) != sizeof(time_t)); 7300} 7301_ACEOF 7302rm -f "conftest$ac_exeext" 7303if { (eval echo "$as_me:7303: \"$ac_link\"") >&5 7304 (eval $ac_link) 2>&5 7305 ac_status=$? 7306 echo "$as_me:7306: \$? = $ac_status" >&5 7307 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 7308 { (eval echo "$as_me:7308: \"$ac_try\"") >&5 7309 (eval $ac_try) 2>&5 7310 ac_status=$? 7311 echo "$as_me:7311: \$? = $ac_status" >&5 7312 (exit "$ac_status"); }; }; then 7313 7314cf_cv_struct_lastlog=yes 7315else 7316 echo "$as_me: program exited with status $ac_status" >&5 7317echo "$as_me: failed program was:" >&5 7318cat "conftest.$ac_ext" >&5 7319 7320cf_cv_struct_lastlog=no 7321fi 7322rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 7323fi 7324fi 7325echo "$as_me:7325: result: $cf_cv_struct_lastlog" >&5 7326echo "${ECHO_T}$cf_cv_struct_lastlog" >&6 7327 7328test $cf_cv_struct_lastlog != no && 7329cat >>confdefs.h <<\EOF 7330#define USE_STRUCT_LASTLOG 1 7331EOF 7332 7333for ac_header in \ 7334sys/param.h \ 7335 7336do 7337as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7338echo "$as_me:7338: checking for $ac_header" >&5 7339echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7340if eval "test \"\${$as_ac_Header+set}\" = set"; then 7341 echo $ECHO_N "(cached) $ECHO_C" >&6 7342else 7343 cat >"conftest.$ac_ext" <<_ACEOF 7344#line 7344 "configure" 7345#include "confdefs.h" 7346#include <$ac_header> 7347_ACEOF 7348if { (eval echo "$as_me:7348: \"$ac_cpp "conftest.$ac_ext"\"") >&5 7349 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 7350 ac_status=$? 7351 $EGREP -v '^ *\+' conftest.er1 >conftest.err 7352 rm -f conftest.er1 7353 cat conftest.err >&5 7354 echo "$as_me:7354: \$? = $ac_status" >&5 7355 (exit "$ac_status"); } >/dev/null; then 7356 if test -s conftest.err; then 7357 ac_cpp_err=$ac_c_preproc_warn_flag 7358 else 7359 ac_cpp_err= 7360 fi 7361else 7362 ac_cpp_err=yes 7363fi 7364if test -z "$ac_cpp_err"; then 7365 eval "$as_ac_Header=yes" 7366else 7367 echo "$as_me: failed program was:" >&5 7368 cat "conftest.$ac_ext" >&5 7369 eval "$as_ac_Header=no" 7370fi 7371rm -f conftest.err "conftest.$ac_ext" 7372fi 7373echo "$as_me:7373: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 7374echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 7375if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 7376 cat >>confdefs.h <<EOF 7377#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7378EOF 7379 7380fi 7381done 7382 7383echo "$as_me:7383: checking if POSIX saved-ids are supported" >&5 7384echo $ECHO_N "checking if POSIX saved-ids are supported... $ECHO_C" >&6 7385if test "${cf_cv_posix_saved_ids+set}" = set; then 7386 echo $ECHO_N "(cached) $ECHO_C" >&6 7387else 7388 7389cat >"conftest.$ac_ext" <<_ACEOF 7390#line 7390 "configure" 7391#include "confdefs.h" 7392 7393#include <unistd.h> 7394#ifdef HAVE_SYS_PARAM_H 7395#include <sys/param.h> /* this may define "BSD" */ 7396#endif 7397 7398int 7399main (void) 7400{ 7401 7402#if defined(_POSIX_SAVED_IDS) && (_POSIX_SAVED_IDS > 0) 7403 int (*my_seteuid)(uid_t) = seteuid; 7404 int x = my_seteuid(geteuid()); 7405 (void)x; 7406#elif defined(BSD) && (BSD >= 199103) 7407/* The BSD's may implement the runtime check - and it fails. 7408 * However, saved-ids work almost like POSIX (close enough for most uses). 7409 */ 7410#else 7411#error no saved-ids found 7412#endif 7413 7414 ; 7415 return 0; 7416} 7417_ACEOF 7418rm -f "conftest.$ac_objext" "conftest$ac_exeext" 7419if { (eval echo "$as_me:7419: \"$ac_link\"") >&5 7420 (eval $ac_link) 2>&5 7421 ac_status=$? 7422 echo "$as_me:7422: \$? = $ac_status" >&5 7423 (exit "$ac_status"); } && 7424 { ac_try='test -s "conftest$ac_exeext"' 7425 { (eval echo "$as_me:7425: \"$ac_try\"") >&5 7426 (eval $ac_try) 2>&5 7427 ac_status=$? 7428 echo "$as_me:7428: \$? = $ac_status" >&5 7429 (exit "$ac_status"); }; }; then 7430 cf_cv_posix_saved_ids=yes 7431 7432else 7433 echo "$as_me: failed program was:" >&5 7434cat "conftest.$ac_ext" >&5 7435 7436if test "$cross_compiling" = yes; then 7437 cf_cv_posix_saved_ids=unknown 7438else 7439 cat >"conftest.$ac_ext" <<_ACEOF 7440#line 7440 "configure" 7441#include "confdefs.h" 7442 7443$ac_includes_default 7444 7445int main(void) 7446{ 7447 void *p = (void *) seteuid; 7448 long code = sysconf(_SC_SAVED_IDS); 7449 (void)p; 7450 ${cf_cv_main_return:-return} ((code > 0) ? 0 : 1); 7451} 7452_ACEOF 7453rm -f "conftest$ac_exeext" 7454if { (eval echo "$as_me:7454: \"$ac_link\"") >&5 7455 (eval $ac_link) 2>&5 7456 ac_status=$? 7457 echo "$as_me:7457: \$? = $ac_status" >&5 7458 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 7459 { (eval echo "$as_me:7459: \"$ac_try\"") >&5 7460 (eval $ac_try) 2>&5 7461 ac_status=$? 7462 echo "$as_me:7462: \$? = $ac_status" >&5 7463 (exit "$ac_status"); }; }; then 7464 cf_cv_posix_saved_ids=yes 7465else 7466 echo "$as_me: program exited with status $ac_status" >&5 7467echo "$as_me: failed program was:" >&5 7468cat "conftest.$ac_ext" >&5 7469cf_cv_posix_saved_ids=no 7470fi 7471rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 7472fi 7473 7474fi 7475rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 7476 7477fi 7478echo "$as_me:7478: result: $cf_cv_posix_saved_ids" >&5 7479echo "${ECHO_T}$cf_cv_posix_saved_ids" >&6 7480 7481test "$cf_cv_posix_saved_ids" = yes && 7482cat >>confdefs.h <<\EOF 7483#define HAVE_POSIX_SAVED_IDS 1 7484EOF 7485 7486# compute a reasonable value for $TERM to give tgetent(), since we may be 7487# running in 'screen', which sets $TERMCAP to a specific entry that is not 7488# necessarily in /etc/termcap - unsetenv is not portable, so we cannot simply 7489# discard $TERMCAP. 7490cf_TERMVAR=vt100 7491if test -n "$TERMCAP" 7492then 7493 cf_TERMCAP=`echo "$TERMCAP" | tr '\n' ' ' | sed -e 's/^..|//' -e 's/|.*//'` 7494 case "$cf_TERMCAP" in 7495 (screen*.*) 7496 ;; 7497 (*) 7498 cf_TERMVAR="$cf_TERMCAP" 7499 ;; 7500 esac 7501fi 7502test -z "$cf_TERMVAR" && cf_TERMVAR=vt100 7503 7504# BSD termcap used no header file 7505# SVr4 provided termcap prototypes as a legacy feature in term.h 7506# GNU termcap provided termcap prototypes in termcap.h 7507# ncurses provides termcap prototypes in both term.h and termcap.h 7508# 7509# The terminfo-based termcap interfaces do not provide a full tgetent (i.e., do 7510# not return the text of the termcap entry in the buffer), but as a special 7511# case, FreeBSD provides ncurses' termcap.h with a modified termcap reader that 7512# returns the termcap text. 7513 7514for ac_header in termcap.h 7515do 7516as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7517echo "$as_me:7517: checking for $ac_header" >&5 7518echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7519if eval "test \"\${$as_ac_Header+set}\" = set"; then 7520 echo $ECHO_N "(cached) $ECHO_C" >&6 7521else 7522 cat >"conftest.$ac_ext" <<_ACEOF 7523#line 7523 "configure" 7524#include "confdefs.h" 7525#include <$ac_header> 7526_ACEOF 7527if { (eval echo "$as_me:7527: \"$ac_cpp "conftest.$ac_ext"\"") >&5 7528 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 7529 ac_status=$? 7530 $EGREP -v '^ *\+' conftest.er1 >conftest.err 7531 rm -f conftest.er1 7532 cat conftest.err >&5 7533 echo "$as_me:7533: \$? = $ac_status" >&5 7534 (exit "$ac_status"); } >/dev/null; then 7535 if test -s conftest.err; then 7536 ac_cpp_err=$ac_c_preproc_warn_flag 7537 else 7538 ac_cpp_err= 7539 fi 7540else 7541 ac_cpp_err=yes 7542fi 7543if test -z "$ac_cpp_err"; then 7544 eval "$as_ac_Header=yes" 7545else 7546 echo "$as_me: failed program was:" >&5 7547 cat "conftest.$ac_ext" >&5 7548 eval "$as_ac_Header=no" 7549fi 7550rm -f conftest.err "conftest.$ac_ext" 7551fi 7552echo "$as_me:7552: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 7553echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 7554if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 7555 cat >>confdefs.h <<EOF 7556#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7557EOF 7558 7559fi 7560done 7561 7562cf_termcap_h="\ 7563#ifdef HAVE_TERMCAP_H 7564#include <termcap.h> 7565#else 7566extern int tgetent(char *, const char *); 7567#endif" 7568 7569echo "$as_me:7569: checking if we want full tgetent function" >&5 7570echo $ECHO_N "checking if we want full tgetent function... $ECHO_C" >&6 7571 7572# Check whether --enable-full-tgetent or --disable-full-tgetent was given. 7573if test "${enable_full_tgetent+set}" = set; then 7574 enableval="$enable_full_tgetent" 7575 test "$enableval" != no && enableval=yes 7576 if test "$enableval" != "yes" ; then 7577 cf_full_tgetent=no 7578 else 7579 cf_full_tgetent=yes 7580 fi 7581else 7582 enableval=yes 7583 cf_full_tgetent=yes 7584 7585fi; 7586echo "$as_me:7586: result: $cf_full_tgetent" >&5 7587echo "${ECHO_T}$cf_full_tgetent" >&6 7588 7589if test "$cf_full_tgetent" = yes ; then 7590 cf_test_message="full tgetent" 7591else 7592 cf_test_message="tgetent" 7593fi 7594 7595echo "$as_me:7595: checking for $cf_test_message function" >&5 7596echo $ECHO_N "checking for $cf_test_message function... $ECHO_C" >&6 7597if test "${cf_cv_lib_tgetent+set}" = set; then 7598 echo $ECHO_N "(cached) $ECHO_C" >&6 7599else 7600 7601cf_save_LIBS="$LIBS" 7602cf_cv_lib_tgetent=no 7603cf_TERMLIB="termlib ncursesw ncurses curses" 7604if test "$cf_full_tgetent" = yes ; then 7605 cf_TERMLIB="otermcap termcap $cf_TERMLIB" 7606 cf_TERMTST="buffer[0] == 0" 7607else 7608 cf_TERMLIB="tinfow tinfo $cf_TERMLIB" 7609 cf_TERMTST="0" 7610fi 7611for cf_termlib in '' $cf_TERMLIB ; do 7612 LIBS="$cf_save_LIBS" 7613 test -n "$cf_termlib" && { 7614cf_add_libs="$LIBS" 7615# reverse order 7616cf_add_0lib= 7617for cf_add_1lib in -l$cf_termlib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 7618# filter duplicates 7619for cf_add_1lib in $cf_add_0lib; do 7620 for cf_add_2lib in $cf_add_libs; do 7621 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 7622 cf_add_1lib= 7623 break 7624 fi 7625 done 7626 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 7627done 7628LIBS="$cf_add_libs" 7629 } 7630 if test "$cross_compiling" = yes; then 7631 echo "cross-compiling, cannot verify if a termcap/tgetent is present in $cf_termlib" 1>&5 7632else 7633 cat >"conftest.$ac_ext" <<_ACEOF 7634#line 7634 "configure" 7635#include "confdefs.h" 7636 7637$cf_termcap_h 7638 7639/* terminfo implementations ignore the buffer argument, making it useless for 7640 * the xterm application, which uses this information to make a new TERMCAP 7641 * environment variable. 7642 */ 7643int main(void) 7644{ 7645 char buffer[1024]; 7646 buffer[0] = 0; 7647 tgetent(buffer, "$cf_TERMVAR"); 7648 ${cf_cv_main_return:-return} ($cf_TERMTST); } 7649_ACEOF 7650rm -f "conftest$ac_exeext" 7651if { (eval echo "$as_me:7651: \"$ac_link\"") >&5 7652 (eval $ac_link) 2>&5 7653 ac_status=$? 7654 echo "$as_me:7654: \$? = $ac_status" >&5 7655 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 7656 { (eval echo "$as_me:7656: \"$ac_try\"") >&5 7657 (eval $ac_try) 2>&5 7658 ac_status=$? 7659 echo "$as_me:7659: \$? = $ac_status" >&5 7660 (exit "$ac_status"); }; }; then 7661 echo "yes, there is a termcap/tgetent in $cf_termlib" 1>&5 7662 if test -n "$cf_termlib" ; then 7663 cf_cv_lib_tgetent="-l$cf_termlib" 7664 else 7665 cf_cv_lib_tgetent=yes 7666 fi 7667 break 7668else 7669 echo "$as_me: program exited with status $ac_status" >&5 7670echo "$as_me: failed program was:" >&5 7671cat "conftest.$ac_ext" >&5 7672echo "no, there is no termcap/tgetent in $cf_termlib" 1>&5 7673fi 7674rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 7675fi 7676done 7677LIBS="$cf_save_LIBS" 7678 7679fi 7680echo "$as_me:7680: result: $cf_cv_lib_tgetent" >&5 7681echo "${ECHO_T}$cf_cv_lib_tgetent" >&6 7682 7683# If we found a working tgetent(), set LIBS and check for termcap.h. 7684# (LIBS cannot be set inside AC_CACHE_CHECK; the commands there should 7685# not have side effects other than setting the cache variable, because 7686# they are not executed when a cached value exists.) 7687if test "x$cf_cv_lib_tgetent" != xno ; then 7688 test "x$cf_cv_lib_tgetent" != xyes && { 7689cf_add_libs="$LIBS" 7690# reverse order 7691cf_add_0lib= 7692for cf_add_1lib in $cf_cv_lib_tgetent; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 7693# filter duplicates 7694for cf_add_1lib in $cf_add_0lib; do 7695 for cf_add_2lib in $cf_add_libs; do 7696 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 7697 cf_add_1lib= 7698 break 7699 fi 7700 done 7701 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 7702done 7703LIBS="$cf_add_libs" 7704 } 7705 7706cat >>confdefs.h <<\EOF 7707#define USE_TERMCAP 1 7708EOF 7709 7710 if test "$cf_full_tgetent" = no ; then 7711 cat >"conftest.$ac_ext" <<_ACEOF 7712#line 7712 "configure" 7713#include "confdefs.h" 7714 7715#include <termcap.h> 7716int 7717main (void) 7718{ 7719 7720#ifdef NCURSES_VERSION 7721#error do not use ncurses termcap.h 7722#endif 7723 ; 7724 return 0; 7725} 7726_ACEOF 7727rm -f "conftest.$ac_objext" 7728if { (eval echo "$as_me:7728: \"$ac_compile\"") >&5 7729 (eval $ac_compile) 2>&5 7730 ac_status=$? 7731 echo "$as_me:7731: \$? = $ac_status" >&5 7732 (exit "$ac_status"); } && 7733 { ac_try='test -s "conftest.$ac_objext"' 7734 { (eval echo "$as_me:7734: \"$ac_try\"") >&5 7735 (eval $ac_try) 2>&5 7736 ac_status=$? 7737 echo "$as_me:7737: \$? = $ac_status" >&5 7738 (exit "$ac_status"); }; }; then 7739 cat >>confdefs.h <<\EOF 7740#define HAVE_TERMCAP_H 1 7741EOF 7742 7743else 7744 echo "$as_me: failed program was:" >&5 7745cat "conftest.$ac_ext" >&5 7746fi 7747rm -f "conftest.$ac_objext" "conftest.$ac_ext" 7748 fi 7749else 7750 # If we didn't find a tgetent() that supports the buffer 7751 # argument, look again to see whether we can find even 7752 # a crippled one. A crippled tgetent() is still useful to 7753 # validate values for the TERM environment variable given to 7754 # child processes. 7755 echo "$as_me:7755: checking for partial tgetent function" >&5 7756echo $ECHO_N "checking for partial tgetent function... $ECHO_C" >&6 7757if test "${cf_cv_lib_part_tgetent+set}" = set; then 7758 echo $ECHO_N "(cached) $ECHO_C" >&6 7759else 7760 7761 cf_cv_lib_part_tgetent=no 7762 for cf_termlib in $cf_TERMLIB ; do 7763 LIBS="$cf_save_LIBS -l$cf_termlib" 7764 cat >"conftest.$ac_ext" <<_ACEOF 7765#line 7765 "configure" 7766#include "confdefs.h" 7767$cf_termcap_h 7768int 7769main (void) 7770{ 7771tgetent(0, "$cf_TERMVAR") 7772 ; 7773 return 0; 7774} 7775_ACEOF 7776rm -f "conftest.$ac_objext" "conftest$ac_exeext" 7777if { (eval echo "$as_me:7777: \"$ac_link\"") >&5 7778 (eval $ac_link) 2>&5 7779 ac_status=$? 7780 echo "$as_me:7780: \$? = $ac_status" >&5 7781 (exit "$ac_status"); } && 7782 { ac_try='test -s "conftest$ac_exeext"' 7783 { (eval echo "$as_me:7783: \"$ac_try\"") >&5 7784 (eval $ac_try) 2>&5 7785 ac_status=$? 7786 echo "$as_me:7786: \$? = $ac_status" >&5 7787 (exit "$ac_status"); }; }; then 7788 echo "there is a terminfo/tgetent in $cf_termlib" 1>&5 7789 cf_cv_lib_part_tgetent="-l$cf_termlib" 7790 break 7791else 7792 echo "$as_me: failed program was:" >&5 7793cat "conftest.$ac_ext" >&5 7794fi 7795rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 7796 done 7797 LIBS="$cf_save_LIBS" 7798 7799fi 7800echo "$as_me:7800: result: $cf_cv_lib_part_tgetent" >&5 7801echo "${ECHO_T}$cf_cv_lib_part_tgetent" >&6 7802 7803 if test "$cf_cv_lib_part_tgetent" != no ; then 7804 7805cf_add_libs="$LIBS" 7806# reverse order 7807cf_add_0lib= 7808for cf_add_1lib in $cf_cv_lib_part_tgetent; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 7809# filter duplicates 7810for cf_add_1lib in $cf_add_0lib; do 7811 for cf_add_2lib in $cf_add_libs; do 7812 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 7813 cf_add_1lib= 7814 break 7815 fi 7816 done 7817 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 7818done 7819LIBS="$cf_add_libs" 7820 7821 # If this is linking against ncurses, we'll trigger the 7822 # ifdef in resize.c that turns the termcap stuff back off. 7823 7824cat >>confdefs.h <<\EOF 7825#define USE_TERMINFO 1 7826EOF 7827 7828 fi 7829fi 7830 7831echo "$as_me:7831: checking for X applications class" >&5 7832echo $ECHO_N "checking for X applications class... $ECHO_C" >&6 7833 7834# Check whether --with-app-class or --without-app-class was given. 7835if test "${with_app_class+set}" = set; then 7836 withval="$with_app_class" 7837 APP_CLASS=$withval 7838else 7839 APP_CLASS=XTerm 7840fi; 7841 7842case x$APP_CLASS in 7843(*[/@,%]*) 7844 { echo "$as_me:7844: WARNING: X applications class cannot contain punctuation" >&5 7845echo "$as_me: WARNING: X applications class cannot contain punctuation" >&2;} 7846 APP_CLASS=XTerm 7847 ;; 7848(x[A-Z]*) 7849 ;; 7850(*) 7851 { echo "$as_me:7851: WARNING: X applications class must start with capital, ignoring $APP_CLASS" >&5 7852echo "$as_me: WARNING: X applications class must start with capital, ignoring $APP_CLASS" >&2;} 7853 APP_CLASS=XTerm 7854 ;; 7855esac 7856 7857echo "$as_me:7857: result: $APP_CLASS" >&5 7858echo "${ECHO_T}$APP_CLASS" >&6 7859 7860if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then 7861 echo "$as_me:7861: checking target system type" >&5 7862echo $ECHO_N "checking target system type... $ECHO_C" >&6 7863if test "${ac_cv_target+set}" = set; then 7864 echo $ECHO_N "(cached) $ECHO_C" >&6 7865else 7866 ac_cv_target_alias=$target_alias 7867test "x$ac_cv_target_alias" = "x" && 7868 ac_cv_target_alias=$ac_cv_host_alias 7869ac_cv_target=`$ac_config_sub "$ac_cv_target_alias"` || 7870 { { echo "$as_me:7870: error: $ac_config_sub $ac_cv_target_alias failed" >&5 7871echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 7872 { (exit 1); exit 1; }; } 7873 7874fi 7875echo "$as_me:7875: result: $ac_cv_target" >&5 7876echo "${ECHO_T}$ac_cv_target" >&6 7877target=$ac_cv_target 7878target_cpu=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 7879target_vendor=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 7880target_os=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 7881 7882# The aliases save the names the user supplied, while $host etc. 7883# will get canonicalized. 7884test -n "$target_alias" && 7885 test "$program_prefix$program_suffix$program_transform_name" = \ 7886 NONENONEs,x,x, && 7887 program_prefix=${target_alias}- 7888 system_name="$host_os" 7889else 7890 system_name="`(uname -s -r) 2>/dev/null`" 7891 if test -z "$system_name" ; then 7892 system_name="`(hostname) 2>/dev/null`" 7893 fi 7894fi 7895test -n "$system_name" && 7896cat >>confdefs.h <<EOF 7897#define SYSTEM_NAME "$system_name" 7898EOF 7899 7900if test "${cf_cv_system_name+set}" = set; then 7901 echo $ECHO_N "(cached) $ECHO_C" >&6 7902else 7903 cf_cv_system_name="$system_name" 7904fi 7905 7906test -z "$system_name" && system_name="$cf_cv_system_name" 7907test -n "$cf_cv_system_name" && echo "$as_me:7907: result: Configuring for $cf_cv_system_name" >&5 7908echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6 7909 7910if test ".$system_name" != ".$cf_cv_system_name" ; then 7911 echo "$as_me:7911: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5 7912echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6 7913 { { echo "$as_me:7913: error: \"Please remove config.cache and try again.\"" >&5 7914echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;} 7915 { (exit 1); exit 1; }; } 7916fi 7917 7918# Check whether --with-system-type or --without-system-type was given. 7919if test "${with_system_type+set}" = set; then 7920 withval="$with_system_type" 7921 { echo "$as_me:7921: WARNING: overriding system type to $withval" >&5 7922echo "$as_me: WARNING: overriding system type to $withval" >&2;} 7923 cf_cv_system_name=$withval 7924 host_os=$withval 7925 7926fi; 7927 7928case "$cf_cv_system_name" in 7929(cygwin*|msys*|mingw32*|mingw64|os2*) 7930 GLOB_FULLPATH_POSIX='/*' 7931 GLOB_FULLPATH_OTHER='[a-zA-Z]:[\\/]*' 7932 ;; 7933(*) 7934 GLOB_FULLPATH_POSIX='/*' 7935 GLOB_FULLPATH_OTHER=$GLOB_FULLPATH_POSIX 7936 ;; 7937esac 7938 7939echo "$as_me:7939: checking for directory to install resource files" >&5 7940echo $ECHO_N "checking for directory to install resource files... $ECHO_C" >&6 7941 7942# Check whether --with-app-defaults or --without-app-defaults was given. 7943if test "${with_app_defaults+set}" = set; then 7944 withval="$with_app_defaults" 7945 APPSDIR=$withval 7946else 7947 APPSDIR='${exec_prefix}/lib/X11/app-defaults' 7948fi; 7949 7950if test "x$APPSDIR" = xauto 7951then 7952 APPSDIR='${exec_prefix}/lib/X11/app-defaults' 7953 for cf_path in \ 7954 /opt/local/share/X11/app-defaults \ 7955 /opt/X11/share/X11/app-defaults \ 7956 /usr/share/X11/app-defaults \ 7957 /usr/X11/share/X11/app-defaults \ 7958 /usr/X11/lib/X11/app-defaults \ 7959 /usr/lib/X11/app-defaults \ 7960 /etc/X11/app-defaults \ 7961 /usr/pkg/lib/X11/app-defaults \ 7962 /usr/X11R7/lib/X11/app-defaults \ 7963 /usr/X11R6/lib/X11/app-defaults \ 7964 /usr/X11R5/lib/X11/app-defaults \ 7965 /usr/X11R4/lib/X11/app-defaults \ 7966 /usr/local/lib/X11/app-defaults \ 7967 /usr/local/share/X11/app-defaults \ 7968 /usr/lib64/X11/app-defaults 7969 do 7970 if test -d "$cf_path" ; then 7971 APPSDIR="$cf_path" 7972 break 7973 fi 7974 done 7975else 7976 cf_path=$APPSDIR 7977 7978if test "x$prefix" != xNONE; then 7979 cf_path_syntax="$prefix" 7980else 7981 cf_path_syntax="$ac_default_prefix" 7982fi 7983 7984case "x$cf_path" in 7985(x\$\(*\)*|x\'*\'*) 7986 ;; 7987(x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER) 7988 ;; 7989(x\$\{*prefix\}*|x\$\{*dir\}*) 7990 eval cf_path="$cf_path" 7991 case "x$cf_path" in 7992 (xNONE/*) 7993 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` 7994 ;; 7995 esac 7996 ;; 7997(xno|xNONE/*) 7998 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` 7999 ;; 8000(*) 8001 { { echo "$as_me:8001: error: expected a pathname, not \"$cf_path\"" >&5 8002echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;} 8003 { (exit 1); exit 1; }; } 8004 ;; 8005esac 8006 8007fi 8008 8009echo "$as_me:8009: result: $APPSDIR" >&5 8010echo "${ECHO_T}$APPSDIR" >&6 8011 8012no_appsdir= 8013if test "$APPSDIR" = no 8014then 8015 no_appsdir="#" 8016else 8017 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(APPSDIR)" 8018fi 8019 8020echo "$as_me:8020: checking for the icon name" >&5 8021echo $ECHO_N "checking for the icon name... $ECHO_C" >&6 8022 8023# Check whether --with-icon-name or --without-icon-name was given. 8024if test "${with_icon_name+set}" = set; then 8025 withval="$with_icon_name" 8026 ICON_NAME="$withval" 8027else 8028 ICON_NAME=mini.xterm 8029fi; 8030case "x$ICON_NAME" in 8031(xyes|xno|x) 8032 ICON_NAME=mini.xterm 8033 ;; 8034esac 8035 8036echo "$as_me:8036: result: $ICON_NAME" >&5 8037echo "${ECHO_T}$ICON_NAME" >&6 8038 8039echo "$as_me:8039: checking for icon symlink to use" >&5 8040echo $ECHO_N "checking for icon symlink to use... $ECHO_C" >&6 8041 8042# Check whether --with-icon-symlink or --without-icon-symlink was given. 8043if test "${with_icon_symlink+set}" = set; then 8044 withval="$with_icon_symlink" 8045 ICON_SYMLINK="$withval" 8046else 8047 ICON_SYMLINK=NONE 8048fi; 8049case "x$ICON_SYMLINK" in 8050(xyes) 8051 ICON_SYMLINK=xterm 8052 ;; 8053(xno|x) 8054 ICON_SYMLINK=NONE 8055 ;; 8056esac 8057 8058echo "$as_me:8058: result: $ICON_SYMLINK" >&5 8059echo "${ECHO_T}$ICON_SYMLINK" >&6 8060 8061# Install all icons except for the overused "terminal". 8062cf_cv_icon_list= 8063for my_item in $srcdir/icons/*.svg 8064do 8065 test -f "$my_item" || continue 8066 cf_icon_name=`echo "$my_item" |sed -e "s,.svg,," -e "s,^$srcdir/,,"` 8067 case $cf_icon_name in 8068 (*_48x48) 8069 continue 8070 ;; 8071 esac 8072 test -n "$verbose" && echo " adding $cf_icon_name to icon-list" 1>&6 8073 8074echo "${as_me:-configure}:8074: testing adding $cf_icon_name to icon-list ..." 1>&5 8075 8076 cf_cv_icon_list="$cf_cv_icon_list $cf_icon_name" 8077 if test -f "${cf_icon_name}_48x48.png" 8078 then 8079 test -n "$verbose" && echo " adding ${cf_icon_name}_48x48 to icon-list" 1>&6 8080 8081echo "${as_me:-configure}:8081: testing adding ${cf_icon_name}_48x48 to icon-list ..." 1>&5 8082 8083 cf_cv_icon_list="$cf_cv_icon_list ${cf_icon_name}_48x48" 8084 fi 8085done 8086 8087echo "$as_me:8087: checking for directory to install pixmaps" >&5 8088echo $ECHO_N "checking for directory to install pixmaps... $ECHO_C" >&6 8089 8090# Check whether --with-pixmapdir or --without-pixmapdir was given. 8091if test "${with_pixmapdir+set}" = set; then 8092 withval="$with_pixmapdir" 8093 PIXMAPDIR=$withval 8094else 8095 test -z "$PIXMAPDIR" && PIXMAPDIR='${datadir}/pixmaps' 8096fi; 8097 8098if test "x$PIXMAPDIR" = xauto 8099then 8100 PIXMAPDIR='${datadir}/pixmaps' 8101 for cf_path in \ 8102 /usr/share/pixmaps \ 8103 /usr/X11R6/share/pixmaps 8104 do 8105 if test -d "$cf_path" ; then 8106 PIXMAPDIR="$cf_path" 8107 break 8108 fi 8109 done 8110else 8111 cf_path=$PIXMAPDIR 8112 8113if test "x$prefix" != xNONE; then 8114 cf_path_syntax="$prefix" 8115else 8116 cf_path_syntax="$ac_default_prefix" 8117fi 8118 8119case "x$cf_path" in 8120(x\$\(*\)*|x\'*\'*) 8121 ;; 8122(x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER) 8123 ;; 8124(x\$\{*prefix\}*|x\$\{*dir\}*) 8125 eval cf_path="$cf_path" 8126 case "x$cf_path" in 8127 (xNONE/*) 8128 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` 8129 ;; 8130 esac 8131 ;; 8132(xno|xNONE/*) 8133 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` 8134 ;; 8135(*) 8136 { { echo "$as_me:8136: error: expected a pathname, not \"$cf_path\"" >&5 8137echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;} 8138 { (exit 1); exit 1; }; } 8139 ;; 8140esac 8141 8142fi 8143echo "$as_me:8143: result: $PIXMAPDIR" >&5 8144echo "${ECHO_T}$PIXMAPDIR" >&6 8145 8146no_pixmapdir= 8147if test "$PIXMAPDIR" = no 8148then 8149 no_pixmapdir="#" 8150else 8151 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(PIXMAPDIR)" 8152fi 8153 8154echo "$as_me:8154: checking for directory to install icons" >&5 8155echo $ECHO_N "checking for directory to install icons... $ECHO_C" >&6 8156 8157# Check whether --with-icondir or --without-icondir was given. 8158if test "${with_icondir+set}" = set; then 8159 withval="$with_icondir" 8160 ICONDIR=$withval 8161else 8162 test -z "$ICONDIR" && ICONDIR=no 8163fi; 8164 8165if test "x$ICONDIR" = xauto 8166then 8167 ICONDIR='${datadir}/icons' 8168 for cf_path in \ 8169 /usr/share/icons \ 8170 /usr/X11R6/share/icons 8171 do 8172 if test -d "$cf_path" ; then 8173 ICONDIR="$cf_path" 8174 break 8175 fi 8176 done 8177else 8178 cf_path=$ICONDIR 8179 8180if test "x$prefix" != xNONE; then 8181 cf_path_syntax="$prefix" 8182else 8183 cf_path_syntax="$ac_default_prefix" 8184fi 8185 8186case "x$cf_path" in 8187(x\$\(*\)*|x\'*\'*) 8188 ;; 8189(x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER) 8190 ;; 8191(x\$\{*prefix\}*|x\$\{*dir\}*) 8192 eval cf_path="$cf_path" 8193 case "x$cf_path" in 8194 (xNONE/*) 8195 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` 8196 ;; 8197 esac 8198 ;; 8199(xno|xNONE/*) 8200 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` 8201 ;; 8202(*) 8203 { { echo "$as_me:8203: error: expected a pathname, not \"$cf_path\"" >&5 8204echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;} 8205 { (exit 1); exit 1; }; } 8206 ;; 8207esac 8208 8209fi 8210echo "$as_me:8210: result: $ICONDIR" >&5 8211echo "${ECHO_T}$ICONDIR" >&6 8212 8213no_icondir= 8214if test "$ICONDIR" = no 8215then 8216 no_icondir="#" 8217else 8218 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(ICONDIR)" 8219fi 8220 8221echo "$as_me:8221: checking if icon theme should be used" >&5 8222echo $ECHO_N "checking if icon theme should be used... $ECHO_C" >&6 8223 8224# Check whether --with-icon-theme or --without-icon-theme was given. 8225if test "${with_icon_theme+set}" = set; then 8226 withval="$with_icon_theme" 8227 ICON_THEME=$withval 8228else 8229 ICON_THEME=no 8230fi; 8231 8232case "x$ICON_THEME" in 8233(xno) 8234 ;; 8235(x|xyes) 8236 ICON_THEME=hicolor 8237 ;; 8238esac 8239echo "$as_me:8239: result: $ICON_THEME" >&5 8240echo "${ECHO_T}$ICON_THEME" >&6 8241 8242if test "x$ICON_THEME" = xno 8243then 8244 if test "x$ICONDIR" != xno 8245 then 8246 test -n "$verbose" && echo " ignoring icondir without theme" 1>&6 8247 8248echo "${as_me:-configure}:8248: testing ignoring icondir without theme ..." 1>&5 8249 8250 no_icondir="#" 8251 fi 8252else 8253 if test "x$ICONDIR" = xno 8254 then 8255 { { echo "$as_me:8255: error: icondir must be set for icon theme" >&5 8256echo "$as_me: error: icondir must be set for icon theme" >&2;} 8257 { (exit 1); exit 1; }; } 8258 fi 8259fi 8260 8261: ${ICON_FORMAT:=".svg .png .xpm"} 8262 8263ICON_LIST= 8264 8265if test "x$ICON_THEME" != xno 8266then 8267 cf_icon_list="$cf_cv_icon_list" 8268else 8269 cf_icon_list="icons/${ICON_NAME}_48x48" 8270fi 8271 8272echo "$as_me:8272: checking for icon(s) to install" >&5 8273echo $ECHO_N "checking for icon(s) to install... $ECHO_C" >&6 8274for cf_name in $cf_icon_list 8275do 8276 test -n "$verbose" && echo " using $ICON_FORMAT" 1>&6 8277 8278echo "${as_me:-configure}:8278: testing using $ICON_FORMAT ..." 1>&5 8279 8280 for cf_suffix in $ICON_FORMAT 8281 do 8282 cf_icon="${cf_name}${cf_suffix}" 8283 cf_left=`echo "$cf_icon" | sed -e 's/:.*//'` 8284 if test ! -f "${cf_left}" 8285 then 8286 if test "x$srcdir" != "x." 8287 then 8288 cf_icon="${srcdir}/${cf_left}" 8289 cf_left=`echo "$cf_icon" | sed -e 's/:.*//'` 8290 if test ! -f "${cf_left}" 8291 then 8292 continue 8293 fi 8294 else 8295 continue 8296 fi 8297 fi 8298 if test "x$ICON_THEME" != xno 8299 then 8300 cf_base=`basename "$cf_left"` 8301 cf_trim=`echo "$cf_base" | sed -e 's/_[0-9][0-9]x[0-9][0-9]\././'` 8302 case "x${cf_base}" in 8303 (*:*) 8304 cf_next=$cf_base 8305 # user-defined mapping 8306 ;; 8307 (*.png) 8308 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'` 8309 if test -z "$cf_size" 8310 then 8311 { echo "$as_me:8311: WARNING: cannot determine size of $cf_left" >&5 8312echo "$as_me: WARNING: cannot determine size of $cf_left" >&2;} 8313 continue 8314 fi 8315 cf_next="$cf_size/apps/$cf_trim" 8316 ;; 8317 (*.svg) 8318 cf_next="scalable/apps/$cf_trim" 8319 ;; 8320 (*.xpm) 8321 test -n "$verbose" && echo " ignored XPM file in icon theme" 1>&6 8322 8323echo "${as_me:-configure}:8323: testing ignored XPM file in icon theme ..." 1>&5 8324 8325 continue 8326 ;; 8327 (*_[0-9][0-9]*x[0-9][0-9]*.*) 8328 cf_size=`echo "$cf_left"|sed -e 's/^.*_\([0-9][0-9]*x[0-9][0-9]*\)\..*$/\1/'` 8329 cf_left=`echo "$cf_left"|sed -e 's/^\(.*\)_\([0-9][0-9]*x[0-9][0-9]*\)\(\..*\)$/\1\3/'` 8330 cf_next="$cf_size/apps/$cf_base" 8331 ;; 8332 esac 8333 test -n "$verbose" && echo " adding $cf_next" 1>&6 8334 8335echo "${as_me:-configure}:8335: testing adding $cf_next ..." 1>&5 8336 8337 cf_icon="${cf_icon}:${cf_next}" 8338 fi 8339 test -n "$ICON_LIST" && ICON_LIST="$ICON_LIST " 8340 ICON_LIST="$ICON_LIST${cf_icon}" 8341 if test -z "$ICON_NAME" 8342 then 8343 ICON_NAME=`basename "$cf_icon" | sed -e 's/[.:].*//'` 8344 fi 8345 done 8346done 8347 8348if test -n "$verbose" 8349then 8350 echo "$as_me:8350: checking result" >&5 8351echo $ECHO_N "checking result... $ECHO_C" >&6 8352fi 8353echo "$as_me:8353: result: $ICON_LIST" >&5 8354echo "${ECHO_T}$ICON_LIST" >&6 8355 8356if test -z "$ICON_LIST" 8357then 8358 { { echo "$as_me:8358: error: no icons found" >&5 8359echo "$as_me: error: no icons found" >&2;} 8360 { (exit 1); exit 1; }; } 8361fi 8362 8363echo "$as_me:8363: checking for icon name" >&5 8364echo $ECHO_N "checking for icon name... $ECHO_C" >&6 8365echo "$as_me:8365: result: $ICON_NAME" >&5 8366echo "${ECHO_T}$ICON_NAME" >&6 8367 8368# Comment-out the install-desktop rule if the desktop-utils are not found. 8369echo "$as_me:8369: checking if you want to install desktop files" >&5 8370echo $ECHO_N "checking if you want to install desktop files... $ECHO_C" >&6 8371 8372# Check whether --enable-desktop or --disable-desktop was given. 8373if test "${enable_desktop+set}" = set; then 8374 enableval="$enable_desktop" 8375 test "$enableval" != no && enableval=yes 8376 if test "$enableval" != "yes" ; then 8377 enable_desktop=$enableval 8378 else 8379 enable_desktop=$enableval 8380 fi 8381else 8382 enableval=yes 8383 enable_desktop=$enableval 8384 8385fi; 8386echo "$as_me:8386: result: $enable_desktop" >&5 8387echo "${ECHO_T}$enable_desktop" >&6 8388 8389desktop_utils= 8390if test "$enable_desktop" = yes ; then 8391# Extract the first word of "desktop-file-install", so it can be a program name with args. 8392set dummy desktop-file-install; ac_word=$2 8393echo "$as_me:8393: checking for $ac_word" >&5 8394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8395if test "${ac_cv_prog_desktop_utils+set}" = set; then 8396 echo $ECHO_N "(cached) $ECHO_C" >&6 8397else 8398 if test -n "$desktop_utils"; then 8399 ac_cv_prog_desktop_utils="$desktop_utils" # Let the user override the test. 8400else 8401 ac_save_IFS=$IFS; IFS=$ac_path_separator 8402ac_dummy="$PATH" 8403for ac_dir in $ac_dummy; do 8404 IFS=$ac_save_IFS 8405 test -z "$ac_dir" && ac_dir=. 8406 $as_executable_p "$ac_dir/$ac_word" || continue 8407ac_cv_prog_desktop_utils="yes" 8408echo "$as_me:8408: found $ac_dir/$ac_word" >&5 8409break 8410done 8411 8412 test -z "$ac_cv_prog_desktop_utils" && ac_cv_prog_desktop_utils="no" 8413fi 8414fi 8415desktop_utils=$ac_cv_prog_desktop_utils 8416if test -n "$desktop_utils"; then 8417 echo "$as_me:8417: result: $desktop_utils" >&5 8418echo "${ECHO_T}$desktop_utils" >&6 8419else 8420 echo "$as_me:8420: result: no" >&5 8421echo "${ECHO_T}no" >&6 8422fi 8423 8424fi 8425 8426test "$desktop_utils" = yes && desktop_utils= || desktop_utils="#" 8427 8428if test -z "$desktop_utils" 8429then 8430 echo "$as_me:8430: checking for requested desktop-category" >&5 8431echo $ECHO_N "checking for requested desktop-category... $ECHO_C" >&6 8432 8433# Check whether --with-desktop-category or --without-desktop-category was given. 8434if test "${with_desktop_category+set}" = set; then 8435 withval="$with_desktop_category" 8436 cf_desktop_want=$withval 8437else 8438 cf_desktop_want=auto 8439fi; 8440 echo "$as_me:8440: result: $cf_desktop_want" >&5 8441echo "${ECHO_T}$cf_desktop_want" >&6 8442 8443 if test "$cf_desktop_want" = auto 8444 then 8445 rm -rf conftest* 8446 cf_desktop_also= 8447 for cf_desktop_dir in \ 8448 /usr/share/app-install \ 8449 /usr/share/applications 8450 do 8451 if test -d $cf_desktop_dir 8452 then 8453 find $cf_desktop_dir -name '*.desktop' | \ 8454 while true 8455 do 8456 read cf_desktop_path 8457 test -z "$cf_desktop_path" && break 8458 cf_desktop_name=`basename "$cf_desktop_path" .desktop` 8459 case $cf_desktop_name in 8460 (xterm|*-xterm|*rxvt*|*konsole|*[Tt]erminal) 8461 test -n "$verbose" && echo " inspect $cf_desktop_path" 1>&6 8462 8463echo "${as_me:-configure}:8463: testing inspect $cf_desktop_path ..." 1>&5 8464 8465 ${EGREP-egrep} '^Categories=' "$cf_desktop_path" | \ 8466 tr ';' '\n' | \ 8467 sed -e 's%^.*=%%' -e '/^$/d' >>conftest.1 8468 ;; 8469 esac 8470 done 8471 fi 8472 done 8473 if test -s conftest.1 8474 then 8475 cf_desktop_last= 8476 sort conftest.1 | \ 8477 while true 8478 do 8479 read cf_desktop_this 8480 test -z "$cf_desktop_this" && break 8481 if test -s conftest.2 8482 then 8483 grep -w "$cf_desktop_this" conftest.2 >/dev/null && continue 8484 elif test -s conftest.3 8485 then 8486 grep -w "$cf_desktop_this" conftest.3 >/dev/null && continue 8487 fi 8488 case "$cf_desktop_this" in 8489 (-*) 8490 ;; 8491 (Qt*|*Xfce*|*[ABCDEFGHIJKLMNOPQRSTUVWXYZ][ABCDEFGHIJKLMNOPQRSTUVWXYZ]*) 8492 test -n "$verbose" && echo " ignored $cf_desktop_this" 1>&6 8493 8494echo "${as_me:-configure}:8494: testing ignored $cf_desktop_this ..." 1>&5 8495 8496 echo "$cf_desktop_this" >> conftest.3 8497 ;; 8498 (System|TerminalEmulator|*) 8499 test -n "$verbose" && echo " applied $cf_desktop_this" 1>&6 8500 8501echo "${as_me:-configure}:8501: testing applied $cf_desktop_this ..." 1>&5 8502 8503 test "x$cf_desktop_last" != "x$cf_desktop_this" && echo "$cf_desktop_this" >>conftest.2 8504 ;; 8505 esac 8506 cf_desktop_last=$cf_desktop_this 8507 done 8508 cf_desktop_want="`tr '\n' ';' < conftest.2`" 8509 fi 8510 if test -n "$cf_desktop_want" 8511 then 8512 if test "$cf_desktop_want" = auto 8513 then 8514 cf_desktop_want= 8515 else 8516 # do a sanity check on the semicolon-separated list, ignore on failure 8517 cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/[^;]//g'` 8518 test -z "$cf_desktop_test" && cf_desktop_want= 8519 cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/^.*;$/./g'` 8520 test -z "$cf_desktop_test" && cf_desktop_want= 8521 fi 8522 fi 8523 if test -z "$cf_desktop_want" 8524 then 8525 cf_desktop_want="`echo "System|TerminalEmulator|*" | sed -e 's/\*//g' -e 's/|/;/g' -e 's/;*$/;/g'`" 8526 test -n "$verbose" && echo " no usable value found for desktop category" 1>&6 8527 8528echo "${as_me:-configure}:8528: testing no usable value found for desktop category ..." 1>&5 8529 8530 fi 8531 fi 8532 DESKTOP_CATEGORY=`echo "$cf_desktop_want" | sed -e 's/[ ,]/;/g'` 8533 test -n "$verbose" && echo " will use Categories=$DESKTOP_CATEGORY" 1>&6 8534 8535echo "${as_me:-configure}:8535: testing will use Categories=$DESKTOP_CATEGORY ..." 1>&5 8536 8537fi 8538 8539echo "$as_me:8539: checking for install-permissions reference" >&5 8540echo $ECHO_N "checking for install-permissions reference... $ECHO_C" >&6 8541 8542# Check whether --with-reference or --without-reference was given. 8543if test "${with_reference+set}" = set; then 8544 withval="$with_reference" 8545 with_reference=$withval 8546else 8547 with_reference=xterm 8548fi; 8549echo "$as_me:8549: result: $with_reference" >&5 8550echo "${ECHO_T}$with_reference" >&6 8551 8552with_full_paths=yes 8553 8554 echo "$as_me:8554: checking for PATH separator" >&5 8555echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6 8556 case "$cf_cv_system_name" in 8557 (os2*) PATH_SEPARATOR=';' ;; 8558 (*) ${PATH_SEPARATOR:=':'} ;; 8559 esac 8560 8561 echo "$as_me:8561: result: $PATH_SEPARATOR" >&5 8562echo "${ECHO_T}$PATH_SEPARATOR" >&6 8563 8564test -z "$XTERM_PATH" && XTERM_PATH="$with_reference" 8565for ac_prog in $XTERM_PATH $with_reference 8566do 8567 # Extract the first word of "$ac_prog", so it can be a program name with args. 8568set dummy $ac_prog; ac_word=$2 8569echo "$as_me:8569: checking for $ac_word" >&5 8570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8571if test "${ac_cv_path_XTERM_PATH+set}" = set; then 8572 echo $ECHO_N "(cached) $ECHO_C" >&6 8573else 8574 case $XTERM_PATH in 8575 [\\/]* | ?:[\\/]*) 8576 ac_cv_path_XTERM_PATH="$XTERM_PATH" # Let the user override the test with a path. 8577 ;; 8578 *) 8579 ac_save_IFS=$IFS; IFS=$ac_path_separator 8580ac_dummy="$PATH" 8581for ac_dir in $ac_dummy; do 8582 IFS=$ac_save_IFS 8583 test -z "$ac_dir" && ac_dir=. 8584 if $as_executable_p "$ac_dir/$ac_word"; then 8585 ac_cv_path_XTERM_PATH="$ac_dir/$ac_word" 8586 echo "$as_me:8586: found $ac_dir/$ac_word" >&5 8587 break 8588fi 8589done 8590 8591 ;; 8592esac 8593fi 8594XTERM_PATH=$ac_cv_path_XTERM_PATH 8595 8596if test -n "$XTERM_PATH"; then 8597 echo "$as_me:8597: result: $XTERM_PATH" >&5 8598echo "${ECHO_T}$XTERM_PATH" >&6 8599else 8600 echo "$as_me:8600: result: no" >&5 8601echo "${ECHO_T}no" >&6 8602fi 8603 8604 test -n "$XTERM_PATH" && break 8605done 8606test -n "$XTERM_PATH" || XTERM_PATH="$XTERM_PATH" 8607 8608cf_path_prog="" 8609cf_path_args="" 8610IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" 8611for cf_temp in $ac_cv_path_XTERM_PATH 8612do 8613 if test -z "$cf_path_prog" ; then 8614 if test "$with_full_paths" = yes ; then 8615 8616if test "x$prefix" != xNONE; then 8617 cf_path_syntax="$prefix" 8618else 8619 cf_path_syntax="$ac_default_prefix" 8620fi 8621 8622case "x$cf_temp" in 8623(x\$\(*\)*|x\'*\'*) 8624 ;; 8625(x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER) 8626 ;; 8627(x\$\{*prefix\}*|x\$\{*dir\}*) 8628 eval cf_temp="$cf_temp" 8629 case "x$cf_temp" in 8630 (xNONE/*) 8631 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` 8632 ;; 8633 esac 8634 ;; 8635(xno|xNONE/*) 8636 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` 8637 ;; 8638(*) 8639 break 8640 ;; 8641esac 8642 8643 cf_path_prog="$cf_temp" 8644 else 8645 cf_path_prog="`basename "$cf_temp"`" 8646 fi 8647 elif test -z "$cf_path_args" ; then 8648 cf_path_args="$cf_temp" 8649 else 8650 cf_path_args="$cf_path_args $cf_temp" 8651 fi 8652done 8653IFS="$cf_save_ifs" 8654 8655if test -n "$cf_path_prog" ; then 8656 8657echo "${as_me:-configure}:8657: testing defining path for ${cf_path_prog} ..." 1>&5 8658 8659cat >>confdefs.h <<EOF 8660#define XTERM_PATH_PATH "$cf_path_prog" 8661EOF 8662 8663 test -n "$cf_path_args" && 8664cat >>confdefs.h <<EOF 8665#define XTERM_PATH_ARGS "$cf_path_args" 8666EOF 8667 8668fi 8669 8670# If any of --program-prefix, --program-suffix or --program-transform-name is 8671# given, accept an option tell the makefile to create a symbolic link, e.g., 8672# to "xterm" on install. 8673XTERM_SYMLINK=NONE 8674 8675if test "$program_transform_name" != "'s,,,'" ; then 8676cf_name=`echo "$program_transform_name" | sed -e 's,\\$\\$,$,g'` 8677cf_name=`echo xterm |sed -e "$cf_name"` 8678echo "$as_me:8678: checking for symbolic link to create to $cf_name" >&5 8679echo $ECHO_N "checking for symbolic link to create to $cf_name... $ECHO_C" >&6 8680 8681# Check whether --with-xterm-symlink or --without-xterm-symlink was given. 8682if test "${with_xterm_symlink+set}" = set; then 8683 withval="$with_xterm_symlink" 8684 with_symlink=$withval 8685else 8686 with_symlink=xterm 8687fi; 8688echo "$as_me:8688: result: $with_symlink" >&5 8689echo "${ECHO_T}$with_symlink" >&6 8690test "$with_symlink" = yes && with_symlink=xterm 8691test -n "$with_symlink" && \ 8692 test "$with_symlink" != no && \ 8693 test "$with_symlink" != "$cf_name" && \ 8694 XTERM_SYMLINK="$with_symlink" 8695fi 8696 8697echo "$as_me:8697: checking if you want to disable openpty" >&5 8698echo $ECHO_N "checking if you want to disable openpty... $ECHO_C" >&6 8699 8700# Check whether --enable-openpty or --disable-openpty was given. 8701if test "${enable_openpty+set}" = set; then 8702 enableval="$enable_openpty" 8703 test "$enableval" != no && enableval=yes 8704 if test "$enableval" != "yes" ; then 8705 disable_openpty=yes 8706 else 8707 disable_openpty=no 8708 fi 8709else 8710 enableval=yes 8711 disable_openpty=no 8712 8713fi; 8714echo "$as_me:8714: result: $disable_openpty" >&5 8715echo "${ECHO_T}$disable_openpty" >&6 8716 8717echo "$as_me:8717: checking if you want to disable setuid" >&5 8718echo $ECHO_N "checking if you want to disable setuid... $ECHO_C" >&6 8719 8720# Check whether --enable-setuid or --disable-setuid was given. 8721if test "${enable_setuid+set}" = set; then 8722 enableval="$enable_setuid" 8723 test "$enableval" != no && enableval=yes 8724 if test "$enableval" != "yes" ; then 8725 disable_setuid=yes 8726 else 8727 disable_setuid=no 8728 fi 8729else 8730 enableval=yes 8731 disable_setuid=no 8732 8733fi; 8734echo "$as_me:8734: result: $disable_setuid" >&5 8735echo "${ECHO_T}$disable_setuid" >&6 8736 8737echo "$as_me:8737: checking if you want to disable setgid" >&5 8738echo $ECHO_N "checking if you want to disable setgid... $ECHO_C" >&6 8739 8740# Check whether --enable-setgid or --disable-setgid was given. 8741if test "${enable_setgid+set}" = set; then 8742 enableval="$enable_setgid" 8743 test "$enableval" != no && enableval=yes 8744 if test "$enableval" != "yes" ; then 8745 disable_setgid=yes 8746 else 8747 disable_setgid=no 8748 fi 8749else 8750 enableval=yes 8751 disable_setgid=no 8752 8753fi; 8754echo "$as_me:8754: result: $disable_setgid" >&5 8755echo "${ECHO_T}$disable_setgid" >&6 8756 8757echo "$as_me:8757: checking if you want to run xterm setuid to a given user" >&5 8758echo $ECHO_N "checking if you want to run xterm setuid to a given user... $ECHO_C" >&6 8759 8760# Check whether --with-setuid or --without-setuid was given. 8761if test "${with_setuid+set}" = set; then 8762 withval="$with_setuid" 8763 use_given_setuid=$withval 8764else 8765 use_given_setuid=no 8766fi; 8767echo "$as_me:8767: result: $use_given_setuid" >&5 8768echo "${ECHO_T}$use_given_setuid" >&6 8769 8770if test "$use_given_setuid" != no ; then 8771 if test "$use_given_setuid" = yes ; then 8772 cf_cv_given_setuid=root 8773 else 8774 cf_cv_given_setuid=$use_given_setuid 8775 fi 8776 # inherit SINSTALL_OPTS from environment to allow packager to customize it. 8777 SINSTALL_OPTS="$SINSTALL_OPTS u+s -u $cf_cv_given_setuid" 8778fi 8779 8780echo "$as_me:8780: checking if you want to run xterm setgid to match utmp/utmpx file" >&5 8781echo $ECHO_N "checking if you want to run xterm setgid to match utmp/utmpx file... $ECHO_C" >&6 8782 8783# Check whether --with-utmp-setgid or --without-utmp-setgid was given. 8784if test "${with_utmp_setgid+set}" = set; then 8785 withval="$with_utmp_setgid" 8786 use_utmp_setgid=$withval 8787else 8788 use_utmp_setgid=no 8789fi; 8790echo "$as_me:8790: result: $use_utmp_setgid" >&5 8791echo "${ECHO_T}$use_utmp_setgid" >&6 8792 8793if test "$use_utmp_setgid" != no ; then 8794 if test "$use_utmp_setgid" = yes ; then 8795 8796if test $cf_cv_have_utmp != no ; then 8797echo "$as_me:8797: checking for utmp/utmpx group" >&5 8798echo $ECHO_N "checking for utmp/utmpx group... $ECHO_C" >&6 8799if test "${cf_cv_utmp_group+set}" = set; then 8800 echo $ECHO_N "(cached) $ECHO_C" >&6 8801else 8802 8803for cf_utmp_path in /var/adm /var/run 8804do 8805 for cf_utmp_file in utmpx utmp 8806 do 8807 if test -f $cf_utmp_path/$cf_utmp_file 8808 then 8809 cf_cv_utmp_group=root 8810 8811 cf_option="-lL" 8812 8813 # Expect listing to have fields like this: 8814 #-r--r--r-- 1 user group 34293 Jul 18 16:29 pathname 8815 ls "$cf_option" "$cf_utmp_path/$cf_utmp_file" >conftest 8816 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest 8817 if test -z "$cf_rest" ; then 8818 cf_option="${cf_option}g" 8819 ls "$cf_option" "$cf_utmp_path/$cf_utmp_file" >conftest 8820 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest 8821 fi 8822 rm -f conftest 8823 8824 # If we have a pathname, and the date fields look right, assume we've 8825 # captured the group as well. 8826 if test -n "$cf_rest" ; then 8827 cf_test=`echo "${cf_date2}${cf_date3}" | sed -e 's/[0-9:]//g'` 8828 if test -z "$cf_test" ; then 8829 cf_cv_utmp_group=$cf_grp; 8830 fi 8831 fi 8832 break 8833 fi 8834 done 8835 test -n "$cf_cv_utmp_group" && break 8836done 8837 8838fi 8839echo "$as_me:8839: result: $cf_cv_utmp_group" >&5 8840echo "${ECHO_T}$cf_cv_utmp_group" >&6 8841else 8842 { { echo "$as_me:8842: error: cannot find utmp group" >&5 8843echo "$as_me: error: cannot find utmp group" >&2;} 8844 { (exit 1); exit 1; }; } 8845fi 8846 8847 else 8848 cf_cv_utmp_group=$use_utmp_setgid 8849 fi 8850 if test "$cf_cv_posix_saved_ids" != yes ; then 8851 { { echo "$as_me:8851: error: Your system does not support POSIX saved-ids" >&5 8852echo "$as_me: error: Your system does not support POSIX saved-ids" >&2;} 8853 { (exit 1); exit 1; }; } 8854 fi 8855 8856cat >>confdefs.h <<\EOF 8857#define USE_UTMP_SETGID 1 8858EOF 8859 8860 SINSTALL_OPTS="$SINSTALL_OPTS g+s -g $cf_cv_utmp_group" 8861fi 8862 8863echo "$as_me:8863: checking if you want to link with utempter" >&5 8864echo $ECHO_N "checking if you want to link with utempter... $ECHO_C" >&6 8865 8866# Check whether --with-utempter or --without-utempter was given. 8867if test "${with_utempter+set}" = set; then 8868 withval="$with_utempter" 8869 use_utempter=$withval 8870else 8871 use_utempter=no 8872fi; 8873echo "$as_me:8873: result: $use_utempter" >&5 8874echo "${ECHO_T}$use_utempter" >&6 8875 8876if test "$use_utempter" = yes ; then 8877 8878echo "$as_me:8878: checking if we can link with utempter library" >&5 8879echo $ECHO_N "checking if we can link with utempter library... $ECHO_C" >&6 8880if test "${cf_cv_have_utempter+set}" = set; then 8881 echo $ECHO_N "(cached) $ECHO_C" >&6 8882else 8883 8884cf_save_LIBS="$LIBS" 8885 8886cf_add_libs="$LIBS" 8887# reverse order 8888cf_add_0lib= 8889for cf_add_1lib in -lutempter; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 8890# filter duplicates 8891for cf_add_1lib in $cf_add_0lib; do 8892 for cf_add_2lib in $cf_add_libs; do 8893 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 8894 cf_add_1lib= 8895 break 8896 fi 8897 done 8898 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 8899done 8900LIBS="$cf_add_libs" 8901 8902cat >"conftest.$ac_ext" <<_ACEOF 8903#line 8903 "configure" 8904#include "confdefs.h" 8905 8906#include <utempter.h> 8907 8908int 8909main (void) 8910{ 8911 8912 addToUtmp("/dev/tty", 0, 1); 8913 removeFromUtmp(); 8914 8915 ; 8916 return 0; 8917} 8918_ACEOF 8919rm -f "conftest.$ac_objext" "conftest$ac_exeext" 8920if { (eval echo "$as_me:8920: \"$ac_link\"") >&5 8921 (eval $ac_link) 2>&5 8922 ac_status=$? 8923 echo "$as_me:8923: \$? = $ac_status" >&5 8924 (exit "$ac_status"); } && 8925 { ac_try='test -s "conftest$ac_exeext"' 8926 { (eval echo "$as_me:8926: \"$ac_try\"") >&5 8927 (eval $ac_try) 2>&5 8928 ac_status=$? 8929 echo "$as_me:8929: \$? = $ac_status" >&5 8930 (exit "$ac_status"); }; }; then 8931 8932 cf_cv_have_utempter=yes 8933else 8934 echo "$as_me: failed program was:" >&5 8935cat "conftest.$ac_ext" >&5 8936 8937 cf_cv_have_utempter=no 8938fi 8939rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 8940LIBS="$cf_save_LIBS" 8941 8942fi 8943echo "$as_me:8943: result: $cf_cv_have_utempter" >&5 8944echo "${ECHO_T}$cf_cv_have_utempter" >&6 8945if test "$cf_cv_have_utempter" = yes ; then 8946 8947cat >>confdefs.h <<\EOF 8948#define USE_UTEMPTER 1 8949EOF 8950 8951cf_add_libs="$LIBS" 8952# reverse order 8953cf_add_0lib= 8954for cf_add_1lib in -lutempter; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 8955# filter duplicates 8956for cf_add_1lib in $cf_add_0lib; do 8957 for cf_add_2lib in $cf_add_libs; do 8958 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 8959 cf_add_1lib= 8960 break 8961 fi 8962 done 8963 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 8964done 8965LIBS="$cf_add_libs" 8966 8967fi 8968 8969 test "$cf_cv_have_utempter" != yes && use_utempter=no 8970else 8971 use_utempter=no 8972fi 8973 8974# Some configurations permit (or require) either setuid or setgid mode. 8975# Let the user decide. 8976if test "$use_utempter" = yes ; then 8977 if test "${enable_setuid+set}" != set ; then 8978 disable_setuid=yes 8979 test -n "$verbose" && echo " No --disable-setuid option given, force to yes" 1>&6 8980 8981echo "${as_me:-configure}:8981: testing No --disable-setuid option given, force to yes ..." 1>&5 8982 8983 fi 8984fi 8985 8986# We use these for the manpage: 8987 8988# Check whether --with-utmp-path or --without-utmp-path was given. 8989if test "${with_utmp_path+set}" = set; then 8990 withval="$with_utmp_path" 8991 cf_utmp_path=$withval 8992else 8993 cf_utmp_path=auto 8994fi; 8995if test "$cf_utmp_path" = auto ; then 8996 for cf_utmp_path in /etc/utmp /var/adm/utmp /var/log/utmp /var/run/utmp 8997 do 8998 if test -f ${cf_utmp_path}x ; then 8999 cf_utmp_path=${cf_utmp_path}x 9000 break 9001 elif test -f $cf_utmp_path ; then 9002 break 9003 fi 9004 done 9005else 9006 9007if test "x$prefix" != xNONE; then 9008 cf_path_syntax="$prefix" 9009else 9010 cf_path_syntax="$ac_default_prefix" 9011fi 9012 9013case "x$cf_utmp_path" in 9014(x\$\(*\)*|x\'*\'*) 9015 ;; 9016(x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER) 9017 ;; 9018(x\$\{*prefix\}*|x\$\{*dir\}*) 9019 eval cf_utmp_path="$cf_utmp_path" 9020 case "x$cf_utmp_path" in 9021 (xNONE/*) 9022 cf_utmp_path=`echo "$cf_utmp_path" | sed -e s%NONE%$cf_path_syntax%` 9023 ;; 9024 esac 9025 ;; 9026(xno|xNONE/*) 9027 cf_utmp_path=`echo "$cf_utmp_path" | sed -e s%NONE%$cf_path_syntax%` 9028 ;; 9029(*) 9030 { { echo "$as_me:9030: error: expected a pathname, not \"$cf_utmp_path\"" >&5 9031echo "$as_me: error: expected a pathname, not \"$cf_utmp_path\"" >&2;} 9032 { (exit 1); exit 1; }; } 9033 ;; 9034esac 9035 9036fi 9037UTMP_PATH=$cf_utmp_path 9038UTMP_NAME=`echo "$cf_utmp_path" | sed -e 's,^.*/,,'` 9039 9040# Check whether --with-wtmp-path or --without-wtmp-path was given. 9041if test "${with_wtmp_path+set}" = set; then 9042 withval="$with_wtmp_path" 9043 cf_wtmp_path=$withval 9044else 9045 cf_wtmp_path=auto 9046fi; 9047if test "$cf_wtmp_path" = auto ; then 9048 for cf_wtmp_path in /etc/wtmp /var/adm/wtmp /var/run/wtmp /var/log/wtmp 9049 do 9050 if test -f ${cf_wtmp_path}x ; then 9051 cf_wtmp_path=${cf_wtmp_path}x 9052 break 9053 elif test -f $cf_wtmp_path/wtmp ; then 9054 break 9055 fi 9056 done 9057else 9058 9059if test "x$prefix" != xNONE; then 9060 cf_path_syntax="$prefix" 9061else 9062 cf_path_syntax="$ac_default_prefix" 9063fi 9064 9065case "x$cf_wtmp_path" in 9066(x\$\(*\)*|x\'*\'*) 9067 ;; 9068(x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER) 9069 ;; 9070(x\$\{*prefix\}*|x\$\{*dir\}*) 9071 eval cf_wtmp_path="$cf_wtmp_path" 9072 case "x$cf_wtmp_path" in 9073 (xNONE/*) 9074 cf_wtmp_path=`echo "$cf_wtmp_path" | sed -e s%NONE%$cf_path_syntax%` 9075 ;; 9076 esac 9077 ;; 9078(xno|xNONE/*) 9079 cf_wtmp_path=`echo "$cf_wtmp_path" | sed -e s%NONE%$cf_path_syntax%` 9080 ;; 9081(*) 9082 { { echo "$as_me:9082: error: expected a pathname, not \"$cf_wtmp_path\"" >&5 9083echo "$as_me: error: expected a pathname, not \"$cf_wtmp_path\"" >&2;} 9084 { (exit 1); exit 1; }; } 9085 ;; 9086esac 9087 9088fi 9089WTMP_PATH=$cf_wtmp_path 9090WTMP_NAME=`echo "$cf_wtmp_path" | sed -e 's,^.*/,,'` 9091 9092### checks for external data 9093 9094echo "$as_me:9094: checking if external errno is declared" >&5 9095echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6 9096if test "${cf_cv_dcl_errno+set}" = set; then 9097 echo $ECHO_N "(cached) $ECHO_C" >&6 9098else 9099 9100 cat >"conftest.$ac_ext" <<_ACEOF 9101#line 9101 "configure" 9102#include "confdefs.h" 9103 9104$ac_includes_default 9105#include <errno.h> 9106int 9107main (void) 9108{ 9109int x = (int) errno; (void)x 9110 ; 9111 return 0; 9112} 9113_ACEOF 9114rm -f "conftest.$ac_objext" 9115if { (eval echo "$as_me:9115: \"$ac_compile\"") >&5 9116 (eval $ac_compile) 2>&5 9117 ac_status=$? 9118 echo "$as_me:9118: \$? = $ac_status" >&5 9119 (exit "$ac_status"); } && 9120 { ac_try='test -s "conftest.$ac_objext"' 9121 { (eval echo "$as_me:9121: \"$ac_try\"") >&5 9122 (eval $ac_try) 2>&5 9123 ac_status=$? 9124 echo "$as_me:9124: \$? = $ac_status" >&5 9125 (exit "$ac_status"); }; }; then 9126 cf_cv_dcl_errno=yes 9127else 9128 echo "$as_me: failed program was:" >&5 9129cat "conftest.$ac_ext" >&5 9130cf_cv_dcl_errno=no 9131fi 9132rm -f "conftest.$ac_objext" "conftest.$ac_ext" 9133 9134fi 9135echo "$as_me:9135: result: $cf_cv_dcl_errno" >&5 9136echo "${ECHO_T}$cf_cv_dcl_errno" >&6 9137 9138if test "$cf_cv_dcl_errno" = no ; then 9139 9140cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 9141 9142 cat >>confdefs.h <<EOF 9143#define $cf_result 1 9144EOF 9145 9146fi 9147 9148# It's possible (for near-UNIX clones) that the data doesn't exist 9149 9150echo "$as_me:9150: checking if external errno exists" >&5 9151echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6 9152if test "${cf_cv_have_errno+set}" = set; then 9153 echo $ECHO_N "(cached) $ECHO_C" >&6 9154else 9155 9156 cat >"conftest.$ac_ext" <<_ACEOF 9157#line 9157 "configure" 9158#include "confdefs.h" 9159 9160#undef errno 9161extern int errno; 9162 9163int 9164main (void) 9165{ 9166errno = 2 9167 ; 9168 return 0; 9169} 9170_ACEOF 9171rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9172if { (eval echo "$as_me:9172: \"$ac_link\"") >&5 9173 (eval $ac_link) 2>&5 9174 ac_status=$? 9175 echo "$as_me:9175: \$? = $ac_status" >&5 9176 (exit "$ac_status"); } && 9177 { ac_try='test -s "conftest$ac_exeext"' 9178 { (eval echo "$as_me:9178: \"$ac_try\"") >&5 9179 (eval $ac_try) 2>&5 9180 ac_status=$? 9181 echo "$as_me:9181: \$? = $ac_status" >&5 9182 (exit "$ac_status"); }; }; then 9183 cf_cv_have_errno=yes 9184else 9185 echo "$as_me: failed program was:" >&5 9186cat "conftest.$ac_ext" >&5 9187cf_cv_have_errno=no 9188fi 9189rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9190 9191fi 9192echo "$as_me:9192: result: $cf_cv_have_errno" >&5 9193echo "${ECHO_T}$cf_cv_have_errno" >&6 9194 9195if test "$cf_cv_have_errno" = yes ; then 9196 9197cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 9198 9199 cat >>confdefs.h <<EOF 9200#define $cf_result 1 9201EOF 9202 9203fi 9204 9205echo "$as_me:9205: checking for explicit tty group name" >&5 9206echo $ECHO_N "checking for explicit tty group name... $ECHO_C" >&6 9207 9208# Check whether --with-tty-group or --without-tty-group was given. 9209if test "${with_tty_group+set}" = set; then 9210 withval="$with_tty_group" 9211 cf_tty_group=$withval 9212else 9213 cf_tty_group=auto... 9214fi; 9215test -z "$cf_tty_group" && cf_tty_group=auto... 9216test "$cf_tty_group" = yes && cf_tty_group=auto... 9217echo "$as_me:9217: result: $cf_tty_group" >&5 9218echo "${ECHO_T}$cf_tty_group" >&6 9219 9220if test "$cf_tty_group" = "auto..." ; then 9221echo "$as_me:9221: checking for tty group name" >&5 9222echo $ECHO_N "checking for tty group name... $ECHO_C" >&6 9223if test "${cf_cv_tty_group_name+set}" = set; then 9224 echo $ECHO_N "(cached) $ECHO_C" >&6 9225else 9226 9227# If we are configuring as root, it is hard to get a clue about the tty group. 9228# But we'll guess based on how our connection is set up - assuming it is done 9229# properly. 9230 9231cf_uid="`id | sed -e 's/^^=*=//' -e 's/(.*$//'`" 9232# )vi 9233if test "$cf_uid" != 0 ; then 9234cf_cv_tty_group_name= 9235cf_tty_name="`tty`" 9236test "$cf_tty_name" = "not a tty" && cf_tty_name=/dev/tty 9237test -z "$cf_tty_name" && cf_tty_name=/dev/tty 9238if test -c "$cf_tty_name" 9239then 9240 cf_option="-lL" 9241 9242 # Expect listing to have fields like this: 9243 #-rwxrwxrwx 1 user group 34293 Jul 18 16:29 pathname 9244 ls $cf_option "$cf_tty_name" >conftest.out 9245 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out 9246 if test -z "$cf_rest" ; then 9247 cf_option="${cf_option}g" 9248 ls "$cf_option" "$cf_tty_name" >conftest.out 9249 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out 9250 fi 9251 rm -f conftest.out 9252 cf_cv_tty_group_name=$cf_grp 9253fi 9254fi 9255 9256# If we cannot deduce the tty group, fall back on hardcoded cases 9257 9258if test -z "$cf_cv_tty_group_name" 9259then 9260case $host_os in 9261(osf*) 9262 cf_cv_tty_group_name="terminal" 9263 ;; 9264(*) 9265 cf_cv_tty_group_name="unknown" 9266 if ( ${EGREP-egrep} '^tty:' /etc/group 2>/dev/null 1>/dev/null ) then 9267 cf_cv_tty_group_name="tty" 9268 fi 9269 ;; 9270esac 9271fi 9272 9273fi 9274echo "$as_me:9274: result: $cf_cv_tty_group_name" >&5 9275echo "${ECHO_T}$cf_cv_tty_group_name" >&6 9276cf_tty_group="$cf_cv_tty_group_name" 9277else 9278 # if configure option, always do this 9279 9280cat >>confdefs.h <<\EOF 9281#define USE_TTY_GROUP 1 9282EOF 9283 9284fi 9285 9286cat >>confdefs.h <<EOF 9287#define TTY_GROUP_NAME "$cf_tty_group" 9288EOF 9289 9290# This is only a double-check that the group-name we obtained above really 9291# does apply to the device. We cannot perform this test if we are in batch 9292# mode, or if we are cross-compiling. 9293 9294echo "$as_me:9294: checking if we may use the $cf_tty_group group" >&5 9295echo $ECHO_N "checking if we may use the $cf_tty_group group... $ECHO_C" >&6 9296if test "${cf_cv_tty_group+set}" = set; then 9297 echo $ECHO_N "(cached) $ECHO_C" >&6 9298else 9299 9300cf_tty_name="`tty`" 9301if test "$cf_tty_name" != "not a tty" 9302then 9303if test "$cross_compiling" = yes; then 9304 cf_cv_tty_group=unknown 9305else 9306 cat >"conftest.$ac_ext" <<_ACEOF 9307#line 9307 "configure" 9308#include "confdefs.h" 9309 9310$ac_includes_default 9311 9312#include <grp.h> 9313 9314int main(void) 9315{ 9316 static char default_tty[] = "/dev/tty"; 9317 struct stat sb; 9318 struct group *ttygrp; 9319 int fd; 9320 char *name; 9321 9322 for (fd = 0; fd < 3; ++fd) { 9323 if ((name = ttyname(fd)) != 0) 9324 break; 9325 } 9326 if (name == 0) 9327 name = default_tty; 9328 9329 ttygrp = getgrnam(TTY_GROUP_NAME); 9330 endgrent(); 9331 9332 if (ttygrp != 0 9333 && name != 0 9334 && stat(name, &sb) == 0 9335 && sb.st_gid != getgid() 9336 && sb.st_gid == ttygrp->gr_gid) { 9337 ${cf_cv_main_return:-return} (0); 9338 } 9339 ${cf_cv_main_return:-return} (1); 9340} 9341 9342_ACEOF 9343rm -f "conftest$ac_exeext" 9344if { (eval echo "$as_me:9344: \"$ac_link\"") >&5 9345 (eval $ac_link) 2>&5 9346 ac_status=$? 9347 echo "$as_me:9347: \$? = $ac_status" >&5 9348 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 9349 { (eval echo "$as_me:9349: \"$ac_try\"") >&5 9350 (eval $ac_try) 2>&5 9351 ac_status=$? 9352 echo "$as_me:9352: \$? = $ac_status" >&5 9353 (exit "$ac_status"); }; }; then 9354 cf_cv_tty_group=yes 9355else 9356 echo "$as_me: program exited with status $ac_status" >&5 9357echo "$as_me: failed program was:" >&5 9358cat "conftest.$ac_ext" >&5 9359cf_cv_tty_group=no 9360fi 9361rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 9362fi 9363elif test "$cross_compiling" = yes; then 9364 cf_cv_tty_group=unknown 9365else 9366 cf_cv_tty_group=yes 9367fi 9368 9369fi 9370echo "$as_me:9370: result: $cf_cv_tty_group" >&5 9371echo "${ECHO_T}$cf_cv_tty_group" >&6 9372 9373if test $cf_cv_tty_group = no ; then 9374 { echo "$as_me:9374: WARNING: Cannot use $cf_tty_group group" >&5 9375echo "$as_me: WARNING: Cannot use $cf_tty_group group" >&2;} 9376else 9377 cat >>confdefs.h <<\EOF 9378#define USE_TTY_GROUP 1 9379EOF 9380 9381fi 9382 9383### checks for system services and user specified options 9384 9385echo "$as_me:9385: checking for X" >&5 9386echo $ECHO_N "checking for X... $ECHO_C" >&6 9387 9388# Check whether --with-x or --without-x was given. 9389if test "${with_x+set}" = set; then 9390 withval="$with_x" 9391 9392fi; 9393# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 9394if test "x$with_x" = xno; then 9395 # The user explicitly disabled X. 9396 have_x=disabled 9397else 9398 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 9399 # Both variables are already set. 9400 have_x=yes 9401 else 9402 if test "${ac_cv_have_x+set}" = set; then 9403 echo $ECHO_N "(cached) $ECHO_C" >&6 9404else 9405 # One or both of the vars are not set, and there is no cached value. 9406ac_x_includes=no ac_x_libraries=no 9407rm -fr conftest.dir 9408if mkdir conftest.dir; then 9409 cd conftest.dir 9410 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 9411 cat >Imakefile <<'EOF' 9412acfindx: 9413 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 9414EOF 9415 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 9416 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 9417 eval "`${MAKE-make} acfindx 2>/dev/null | grep -v make`" 9418 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 9419 for ac_extension in a so sl dylib dll; do 9420 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 9421 test -f "$ac_im_libdir/libX11.$ac_extension"; then 9422 ac_im_usrlibdir=$ac_im_libdir; break 9423 fi 9424 done 9425 # Screen out bogus values from the imake configuration. They are 9426 # bogus both because they are the default anyway, and because 9427 # using them would break gcc on systems where it needs fixed includes. 9428 case $ac_im_incroot in 9429 /usr/include) ;; 9430 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 9431 esac 9432 case $ac_im_usrlibdir in 9433 /usr/lib | /lib) ;; 9434 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 9435 esac 9436 fi 9437 cd .. 9438 rm -fr conftest.dir 9439fi 9440 9441# Standard set of common directories for X headers. 9442# Check X11 before X11Rn because it is often a symlink to the current release. 9443ac_x_header_dirs=' 9444/usr/X11/include 9445/usr/X11R7/include 9446/usr/X11R6/include 9447/usr/X11R5/include 9448/usr/X11R4/include 9449 9450/opt/local/include 9451/opt/X11/include 9452 9453/usr/include/X11 9454/usr/include/X11R7 9455/usr/include/X11R6 9456/usr/include/X11R5 9457/usr/include/X11R4 9458 9459/usr/local/X11/include 9460/usr/local/X11R7/include 9461/usr/local/X11R6/include 9462/usr/local/X11R5/include 9463/usr/local/X11R4/include 9464 9465/usr/local/include/X11 9466/usr/local/include/X11R7 9467/usr/local/include/X11R6 9468/usr/local/include/X11R5 9469/usr/local/include/X11R4 9470 9471/usr/X386/include 9472/usr/x386/include 9473/usr/XFree86/include/X11 9474 9475/usr/include 9476/usr/local/include 9477/usr/unsupported/include 9478/usr/athena/include 9479/usr/local/x11r5/include 9480/usr/lpp/Xamples/include 9481 9482/usr/openwin/include 9483/usr/openwin/share/include' 9484 9485if test "$ac_x_includes" = no; then 9486 # Guess where to find include files, by looking for Intrinsic.h. 9487 # First, try using that file with no special directory specified. 9488 cat >"conftest.$ac_ext" <<_ACEOF 9489#line 9489 "configure" 9490#include "confdefs.h" 9491#include <X11/Intrinsic.h> 9492_ACEOF 9493if { (eval echo "$as_me:9493: \"$ac_cpp "conftest.$ac_ext"\"") >&5 9494 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 9495 ac_status=$? 9496 $EGREP -v '^ *\+' conftest.er1 >conftest.err 9497 rm -f conftest.er1 9498 cat conftest.err >&5 9499 echo "$as_me:9499: \$? = $ac_status" >&5 9500 (exit "$ac_status"); } >/dev/null; then 9501 if test -s conftest.err; then 9502 ac_cpp_err=$ac_c_preproc_warn_flag 9503 else 9504 ac_cpp_err= 9505 fi 9506else 9507 ac_cpp_err=yes 9508fi 9509if test -z "$ac_cpp_err"; then 9510 # We can compile using X headers with no special include directory. 9511ac_x_includes= 9512else 9513 echo "$as_me: failed program was:" >&5 9514 cat "conftest.$ac_ext" >&5 9515 for ac_dir in $ac_x_header_dirs; do 9516 if test -r "$ac_dir/X11/Intrinsic.h"; then 9517 ac_x_includes=$ac_dir 9518 break 9519 fi 9520done 9521fi 9522rm -f conftest.err "conftest.$ac_ext" 9523fi # $ac_x_includes = no 9524 9525if test "$ac_x_libraries" = no; then 9526 # Check for the libraries. 9527 # See if we find them without any special options. 9528 # Don't add to $LIBS permanently. 9529 ac_save_LIBS=$LIBS 9530 LIBS="-lXt $LIBS" 9531 cat >"conftest.$ac_ext" <<_ACEOF 9532#line 9532 "configure" 9533#include "confdefs.h" 9534#include <X11/Intrinsic.h> 9535int 9536main (void) 9537{ 9538XtMalloc (0) 9539 ; 9540 return 0; 9541} 9542_ACEOF 9543rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9544if { (eval echo "$as_me:9544: \"$ac_link\"") >&5 9545 (eval $ac_link) 2>&5 9546 ac_status=$? 9547 echo "$as_me:9547: \$? = $ac_status" >&5 9548 (exit "$ac_status"); } && 9549 { ac_try='test -s "conftest$ac_exeext"' 9550 { (eval echo "$as_me:9550: \"$ac_try\"") >&5 9551 (eval $ac_try) 2>&5 9552 ac_status=$? 9553 echo "$as_me:9553: \$? = $ac_status" >&5 9554 (exit "$ac_status"); }; }; then 9555 LIBS=$ac_save_LIBS 9556# We can link X programs with no special library path. 9557ac_x_libraries= 9558else 9559 echo "$as_me: failed program was:" >&5 9560cat "conftest.$ac_ext" >&5 9561LIBS=$ac_save_LIBS 9562for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 9563do 9564 # Don't even attempt the hair of trying to link an X program! 9565 for ac_extension in a so sl dylib dll; do 9566 if test -r "$ac_dir/libXt.$ac_extension"; then 9567 ac_x_libraries=$ac_dir 9568 break 2 9569 fi 9570 done 9571done 9572fi 9573rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9574fi # $ac_x_libraries = no 9575 9576if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 9577 # Didn't find X anywhere. Cache the known absence of X. 9578 ac_cv_have_x="have_x=no" 9579else 9580 # Record where we found X for the cache. 9581 ac_cv_have_x="have_x=yes \ 9582 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 9583fi 9584fi 9585 9586 fi 9587 eval "$ac_cv_have_x" 9588fi # $with_x != no 9589 9590if test "$have_x" != yes; then 9591 echo "$as_me:9591: result: $have_x" >&5 9592echo "${ECHO_T}$have_x" >&6 9593 no_x=yes 9594else 9595 # If each of the values was on the command line, it overrides each guess. 9596 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 9597 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 9598 # Update the cache value to reflect the command line values. 9599 ac_cv_have_x="have_x=yes \ 9600 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 9601 echo "$as_me:9601: result: libraries $x_libraries, headers $x_includes" >&5 9602echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 9603fi 9604 9605if test "$no_x" = yes; then 9606 # Not all programs may use this symbol, but it does not hurt to define it. 9607 9608cat >>confdefs.h <<\EOF 9609#define X_DISPLAY_MISSING 1 9610EOF 9611 9612 X_CFLAGS= 9613 X_PRE_LIBS= 9614 X_LIBS= 9615 X_EXTRA_LIBS= 9616else 9617 if test -n "$x_includes"; then 9618 X_CFLAGS="$X_CFLAGS -I$x_includes" 9619 fi 9620 9621 # It would also be nice to do this for all -L options, not just this one. 9622 if test -n "$x_libraries"; then 9623 X_LIBS="$X_LIBS -L$x_libraries" 9624 # For Solaris; some versions of Sun CC require a space after -R and 9625 # others require no space. Words are not sufficient . . . . 9626 case `(uname -sr) 2>/dev/null` in 9627 "SunOS 5"*) 9628 echo "$as_me:9628: checking whether -R must be followed by a space" >&5 9629echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 9630 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 9631 cat >"conftest.$ac_ext" <<_ACEOF 9632#line 9632 "configure" 9633#include "confdefs.h" 9634 9635int 9636main (void) 9637{ 9638 9639 ; 9640 return 0; 9641} 9642_ACEOF 9643rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9644if { (eval echo "$as_me:9644: \"$ac_link\"") >&5 9645 (eval $ac_link) 2>&5 9646 ac_status=$? 9647 echo "$as_me:9647: \$? = $ac_status" >&5 9648 (exit "$ac_status"); } && 9649 { ac_try='test -s "conftest$ac_exeext"' 9650 { (eval echo "$as_me:9650: \"$ac_try\"") >&5 9651 (eval $ac_try) 2>&5 9652 ac_status=$? 9653 echo "$as_me:9653: \$? = $ac_status" >&5 9654 (exit "$ac_status"); }; }; then 9655 ac_R_nospace=yes 9656else 9657 echo "$as_me: failed program was:" >&5 9658cat "conftest.$ac_ext" >&5 9659ac_R_nospace=no 9660fi 9661rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9662 if test $ac_R_nospace = yes; then 9663 echo "$as_me:9663: result: no" >&5 9664echo "${ECHO_T}no" >&6 9665 X_LIBS="$X_LIBS -R$x_libraries" 9666 else 9667 LIBS="$ac_xsave_LIBS -R $x_libraries" 9668 cat >"conftest.$ac_ext" <<_ACEOF 9669#line 9669 "configure" 9670#include "confdefs.h" 9671 9672int 9673main (void) 9674{ 9675 9676 ; 9677 return 0; 9678} 9679_ACEOF 9680rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9681if { (eval echo "$as_me:9681: \"$ac_link\"") >&5 9682 (eval $ac_link) 2>&5 9683 ac_status=$? 9684 echo "$as_me:9684: \$? = $ac_status" >&5 9685 (exit "$ac_status"); } && 9686 { ac_try='test -s "conftest$ac_exeext"' 9687 { (eval echo "$as_me:9687: \"$ac_try\"") >&5 9688 (eval $ac_try) 2>&5 9689 ac_status=$? 9690 echo "$as_me:9690: \$? = $ac_status" >&5 9691 (exit "$ac_status"); }; }; then 9692 ac_R_space=yes 9693else 9694 echo "$as_me: failed program was:" >&5 9695cat "conftest.$ac_ext" >&5 9696ac_R_space=no 9697fi 9698rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9699 if test $ac_R_space = yes; then 9700 echo "$as_me:9700: result: yes" >&5 9701echo "${ECHO_T}yes" >&6 9702 X_LIBS="$X_LIBS -R $x_libraries" 9703 else 9704 echo "$as_me:9704: result: neither works" >&5 9705echo "${ECHO_T}neither works" >&6 9706 fi 9707 fi 9708 LIBS=$ac_xsave_LIBS 9709 esac 9710 fi 9711 9712 # Check for system-dependent libraries X programs must link with. 9713 # Do this before checking for the system-independent R6 libraries 9714 # (-lICE), since we may need -lsocket or whatever for X linking. 9715 9716 if test "$ISC" = yes; then 9717 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 9718 else 9719 # Martyn Johnson says this is needed for Ultrix, if the X 9720 # libraries were built with DECnet support. And Karl Berry says 9721 # the Alpha needs dnet_stub (dnet does not exist). 9722 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 9723 cat >"conftest.$ac_ext" <<_ACEOF 9724#line 9724 "configure" 9725#include "confdefs.h" 9726 9727/* Override any gcc2 internal prototype to avoid an error. */ 9728#ifdef __cplusplus 9729extern "C" 9730#endif 9731/* We use char because int might match the return type of a gcc2 9732 builtin and then its argument prototype would still apply. */ 9733char XOpenDisplay (void); 9734int 9735main (void) 9736{ 9737XOpenDisplay (); 9738 ; 9739 return 0; 9740} 9741_ACEOF 9742rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9743if { (eval echo "$as_me:9743: \"$ac_link\"") >&5 9744 (eval $ac_link) 2>&5 9745 ac_status=$? 9746 echo "$as_me:9746: \$? = $ac_status" >&5 9747 (exit "$ac_status"); } && 9748 { ac_try='test -s "conftest$ac_exeext"' 9749 { (eval echo "$as_me:9749: \"$ac_try\"") >&5 9750 (eval $ac_try) 2>&5 9751 ac_status=$? 9752 echo "$as_me:9752: \$? = $ac_status" >&5 9753 (exit "$ac_status"); }; }; then 9754 : 9755else 9756 echo "$as_me: failed program was:" >&5 9757cat "conftest.$ac_ext" >&5 9758echo "$as_me:9758: checking for dnet_ntoa in -ldnet" >&5 9759echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 9760if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 9761 echo $ECHO_N "(cached) $ECHO_C" >&6 9762else 9763 ac_check_lib_save_LIBS=$LIBS 9764LIBS="-ldnet $LIBS" 9765cat >"conftest.$ac_ext" <<_ACEOF 9766#line 9766 "configure" 9767#include "confdefs.h" 9768 9769/* Override any gcc2 internal prototype to avoid an error. */ 9770#ifdef __cplusplus 9771extern "C" 9772#endif 9773/* We use char because int might match the return type of a gcc2 9774 builtin and then its argument prototype would still apply. */ 9775char dnet_ntoa (void); 9776int 9777main (void) 9778{ 9779dnet_ntoa (); 9780 ; 9781 return 0; 9782} 9783_ACEOF 9784rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9785if { (eval echo "$as_me:9785: \"$ac_link\"") >&5 9786 (eval $ac_link) 2>&5 9787 ac_status=$? 9788 echo "$as_me:9788: \$? = $ac_status" >&5 9789 (exit "$ac_status"); } && 9790 { ac_try='test -s "conftest$ac_exeext"' 9791 { (eval echo "$as_me:9791: \"$ac_try\"") >&5 9792 (eval $ac_try) 2>&5 9793 ac_status=$? 9794 echo "$as_me:9794: \$? = $ac_status" >&5 9795 (exit "$ac_status"); }; }; then 9796 ac_cv_lib_dnet_dnet_ntoa=yes 9797else 9798 echo "$as_me: failed program was:" >&5 9799cat "conftest.$ac_ext" >&5 9800ac_cv_lib_dnet_dnet_ntoa=no 9801fi 9802rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9803LIBS=$ac_check_lib_save_LIBS 9804fi 9805echo "$as_me:9805: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 9806echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 9807if test "$ac_cv_lib_dnet_dnet_ntoa" = yes; then 9808 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 9809fi 9810 9811 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 9812 echo "$as_me:9812: checking for dnet_ntoa in -ldnet_stub" >&5 9813echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 9814if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 9815 echo $ECHO_N "(cached) $ECHO_C" >&6 9816else 9817 ac_check_lib_save_LIBS=$LIBS 9818LIBS="-ldnet_stub $LIBS" 9819cat >"conftest.$ac_ext" <<_ACEOF 9820#line 9820 "configure" 9821#include "confdefs.h" 9822 9823/* Override any gcc2 internal prototype to avoid an error. */ 9824#ifdef __cplusplus 9825extern "C" 9826#endif 9827/* We use char because int might match the return type of a gcc2 9828 builtin and then its argument prototype would still apply. */ 9829char dnet_ntoa (void); 9830int 9831main (void) 9832{ 9833dnet_ntoa (); 9834 ; 9835 return 0; 9836} 9837_ACEOF 9838rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9839if { (eval echo "$as_me:9839: \"$ac_link\"") >&5 9840 (eval $ac_link) 2>&5 9841 ac_status=$? 9842 echo "$as_me:9842: \$? = $ac_status" >&5 9843 (exit "$ac_status"); } && 9844 { ac_try='test -s "conftest$ac_exeext"' 9845 { (eval echo "$as_me:9845: \"$ac_try\"") >&5 9846 (eval $ac_try) 2>&5 9847 ac_status=$? 9848 echo "$as_me:9848: \$? = $ac_status" >&5 9849 (exit "$ac_status"); }; }; then 9850 ac_cv_lib_dnet_stub_dnet_ntoa=yes 9851else 9852 echo "$as_me: failed program was:" >&5 9853cat "conftest.$ac_ext" >&5 9854ac_cv_lib_dnet_stub_dnet_ntoa=no 9855fi 9856rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9857LIBS=$ac_check_lib_save_LIBS 9858fi 9859echo "$as_me:9859: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 9860echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 9861if test "$ac_cv_lib_dnet_stub_dnet_ntoa" = yes; then 9862 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 9863fi 9864 9865 fi 9866fi 9867rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9868 LIBS="$ac_xsave_LIBS" 9869 9870 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 9871 # to get the SysV transport functions. 9872 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 9873 # needs -lnsl. 9874 # The nsl library prevents programs from opening the X display 9875 # on Irix 5.2, according to T.E. Dickey. 9876 # The functions gethostbyname, getservbyname, and inet_addr are 9877 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 9878 echo "$as_me:9878: checking for gethostbyname" >&5 9879echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 9880if test "${ac_cv_func_gethostbyname+set}" = set; then 9881 echo $ECHO_N "(cached) $ECHO_C" >&6 9882else 9883 cat >"conftest.$ac_ext" <<_ACEOF 9884#line 9884 "configure" 9885#include "confdefs.h" 9886#define gethostbyname autoconf_temporary 9887#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 9888#undef gethostbyname 9889 9890#ifdef __cplusplus 9891extern "C" 9892#endif 9893 9894/* We use char because int might match the return type of a gcc2 9895 builtin and then its argument prototype would still apply. */ 9896char gethostbyname (void); 9897 9898int 9899main (void) 9900{ 9901 9902/* The GNU C library defines stubs for functions which it implements 9903 to always fail with ENOSYS. Some functions are actually named 9904 something starting with __ and the normal name is an alias. */ 9905#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 9906#error found stub for gethostbyname 9907#endif 9908 9909 return gethostbyname (); 9910 ; 9911 return 0; 9912} 9913_ACEOF 9914rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9915if { (eval echo "$as_me:9915: \"$ac_link\"") >&5 9916 (eval $ac_link) 2>&5 9917 ac_status=$? 9918 echo "$as_me:9918: \$? = $ac_status" >&5 9919 (exit "$ac_status"); } && 9920 { ac_try='test -s "conftest$ac_exeext"' 9921 { (eval echo "$as_me:9921: \"$ac_try\"") >&5 9922 (eval $ac_try) 2>&5 9923 ac_status=$? 9924 echo "$as_me:9924: \$? = $ac_status" >&5 9925 (exit "$ac_status"); }; }; then 9926 ac_cv_func_gethostbyname=yes 9927else 9928 echo "$as_me: failed program was:" >&5 9929cat "conftest.$ac_ext" >&5 9930ac_cv_func_gethostbyname=no 9931fi 9932rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9933fi 9934echo "$as_me:9934: result: $ac_cv_func_gethostbyname" >&5 9935echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 9936 9937 if test $ac_cv_func_gethostbyname = no; then 9938 echo "$as_me:9938: checking for gethostbyname in -lnsl" >&5 9939echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 9940if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 9941 echo $ECHO_N "(cached) $ECHO_C" >&6 9942else 9943 ac_check_lib_save_LIBS=$LIBS 9944LIBS="-lnsl $LIBS" 9945cat >"conftest.$ac_ext" <<_ACEOF 9946#line 9946 "configure" 9947#include "confdefs.h" 9948 9949/* Override any gcc2 internal prototype to avoid an error. */ 9950#ifdef __cplusplus 9951extern "C" 9952#endif 9953/* We use char because int might match the return type of a gcc2 9954 builtin and then its argument prototype would still apply. */ 9955char gethostbyname (void); 9956int 9957main (void) 9958{ 9959gethostbyname (); 9960 ; 9961 return 0; 9962} 9963_ACEOF 9964rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9965if { (eval echo "$as_me:9965: \"$ac_link\"") >&5 9966 (eval $ac_link) 2>&5 9967 ac_status=$? 9968 echo "$as_me:9968: \$? = $ac_status" >&5 9969 (exit "$ac_status"); } && 9970 { ac_try='test -s "conftest$ac_exeext"' 9971 { (eval echo "$as_me:9971: \"$ac_try\"") >&5 9972 (eval $ac_try) 2>&5 9973 ac_status=$? 9974 echo "$as_me:9974: \$? = $ac_status" >&5 9975 (exit "$ac_status"); }; }; then 9976 ac_cv_lib_nsl_gethostbyname=yes 9977else 9978 echo "$as_me: failed program was:" >&5 9979cat "conftest.$ac_ext" >&5 9980ac_cv_lib_nsl_gethostbyname=no 9981fi 9982rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9983LIBS=$ac_check_lib_save_LIBS 9984fi 9985echo "$as_me:9985: result: $ac_cv_lib_nsl_gethostbyname" >&5 9986echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 9987if test "$ac_cv_lib_nsl_gethostbyname" = yes; then 9988 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 9989fi 9990 9991 if test $ac_cv_lib_nsl_gethostbyname = no; then 9992 echo "$as_me:9992: checking for gethostbyname in -lbsd" >&5 9993echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 9994if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 9995 echo $ECHO_N "(cached) $ECHO_C" >&6 9996else 9997 ac_check_lib_save_LIBS=$LIBS 9998LIBS="-lbsd $LIBS" 9999cat >"conftest.$ac_ext" <<_ACEOF 10000#line 10000 "configure" 10001#include "confdefs.h" 10002 10003/* Override any gcc2 internal prototype to avoid an error. */ 10004#ifdef __cplusplus 10005extern "C" 10006#endif 10007/* We use char because int might match the return type of a gcc2 10008 builtin and then its argument prototype would still apply. */ 10009char gethostbyname (void); 10010int 10011main (void) 10012{ 10013gethostbyname (); 10014 ; 10015 return 0; 10016} 10017_ACEOF 10018rm -f "conftest.$ac_objext" "conftest$ac_exeext" 10019if { (eval echo "$as_me:10019: \"$ac_link\"") >&5 10020 (eval $ac_link) 2>&5 10021 ac_status=$? 10022 echo "$as_me:10022: \$? = $ac_status" >&5 10023 (exit "$ac_status"); } && 10024 { ac_try='test -s "conftest$ac_exeext"' 10025 { (eval echo "$as_me:10025: \"$ac_try\"") >&5 10026 (eval $ac_try) 2>&5 10027 ac_status=$? 10028 echo "$as_me:10028: \$? = $ac_status" >&5 10029 (exit "$ac_status"); }; }; then 10030 ac_cv_lib_bsd_gethostbyname=yes 10031else 10032 echo "$as_me: failed program was:" >&5 10033cat "conftest.$ac_ext" >&5 10034ac_cv_lib_bsd_gethostbyname=no 10035fi 10036rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 10037LIBS=$ac_check_lib_save_LIBS 10038fi 10039echo "$as_me:10039: result: $ac_cv_lib_bsd_gethostbyname" >&5 10040echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 10041if test "$ac_cv_lib_bsd_gethostbyname" = yes; then 10042 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 10043fi 10044 10045 fi 10046 fi 10047 10048 # lieder@skyler.mavd.honeywell.com says without -lsocket, 10049 # socket/setsockopt and other routines are undefined under SCO ODT 10050 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 10051 # on later versions), says Simon Leinen: it contains gethostby* 10052 # variants that don't use the nameserver (or something). -lsocket 10053 # must be given before -lnsl if both are needed. We assume that 10054 # if connect needs -lnsl, so does gethostbyname. 10055 echo "$as_me:10055: checking for connect" >&5 10056echo $ECHO_N "checking for connect... $ECHO_C" >&6 10057if test "${ac_cv_func_connect+set}" = set; then 10058 echo $ECHO_N "(cached) $ECHO_C" >&6 10059else 10060 cat >"conftest.$ac_ext" <<_ACEOF 10061#line 10061 "configure" 10062#include "confdefs.h" 10063#define connect autoconf_temporary 10064#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 10065#undef connect 10066 10067#ifdef __cplusplus 10068extern "C" 10069#endif 10070 10071/* We use char because int might match the return type of a gcc2 10072 builtin and then its argument prototype would still apply. */ 10073char connect (void); 10074 10075int 10076main (void) 10077{ 10078 10079/* The GNU C library defines stubs for functions which it implements 10080 to always fail with ENOSYS. Some functions are actually named 10081 something starting with __ and the normal name is an alias. */ 10082#if defined (__stub_connect) || defined (__stub___connect) 10083#error found stub for connect 10084#endif 10085 10086 return connect (); 10087 ; 10088 return 0; 10089} 10090_ACEOF 10091rm -f "conftest.$ac_objext" "conftest$ac_exeext" 10092if { (eval echo "$as_me:10092: \"$ac_link\"") >&5 10093 (eval $ac_link) 2>&5 10094 ac_status=$? 10095 echo "$as_me:10095: \$? = $ac_status" >&5 10096 (exit "$ac_status"); } && 10097 { ac_try='test -s "conftest$ac_exeext"' 10098 { (eval echo "$as_me:10098: \"$ac_try\"") >&5 10099 (eval $ac_try) 2>&5 10100 ac_status=$? 10101 echo "$as_me:10101: \$? = $ac_status" >&5 10102 (exit "$ac_status"); }; }; then 10103 ac_cv_func_connect=yes 10104else 10105 echo "$as_me: failed program was:" >&5 10106cat "conftest.$ac_ext" >&5 10107ac_cv_func_connect=no 10108fi 10109rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 10110fi 10111echo "$as_me:10111: result: $ac_cv_func_connect" >&5 10112echo "${ECHO_T}$ac_cv_func_connect" >&6 10113 10114 if test $ac_cv_func_connect = no; then 10115 echo "$as_me:10115: checking for connect in -lsocket" >&5 10116echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 10117if test "${ac_cv_lib_socket_connect+set}" = set; then 10118 echo $ECHO_N "(cached) $ECHO_C" >&6 10119else 10120 ac_check_lib_save_LIBS=$LIBS 10121LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 10122cat >"conftest.$ac_ext" <<_ACEOF 10123#line 10123 "configure" 10124#include "confdefs.h" 10125 10126/* Override any gcc2 internal prototype to avoid an error. */ 10127#ifdef __cplusplus 10128extern "C" 10129#endif 10130/* We use char because int might match the return type of a gcc2 10131 builtin and then its argument prototype would still apply. */ 10132char connect (void); 10133int 10134main (void) 10135{ 10136connect (); 10137 ; 10138 return 0; 10139} 10140_ACEOF 10141rm -f "conftest.$ac_objext" "conftest$ac_exeext" 10142if { (eval echo "$as_me:10142: \"$ac_link\"") >&5 10143 (eval $ac_link) 2>&5 10144 ac_status=$? 10145 echo "$as_me:10145: \$? = $ac_status" >&5 10146 (exit "$ac_status"); } && 10147 { ac_try='test -s "conftest$ac_exeext"' 10148 { (eval echo "$as_me:10148: \"$ac_try\"") >&5 10149 (eval $ac_try) 2>&5 10150 ac_status=$? 10151 echo "$as_me:10151: \$? = $ac_status" >&5 10152 (exit "$ac_status"); }; }; then 10153 ac_cv_lib_socket_connect=yes 10154else 10155 echo "$as_me: failed program was:" >&5 10156cat "conftest.$ac_ext" >&5 10157ac_cv_lib_socket_connect=no 10158fi 10159rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 10160LIBS=$ac_check_lib_save_LIBS 10161fi 10162echo "$as_me:10162: result: $ac_cv_lib_socket_connect" >&5 10163echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 10164if test "$ac_cv_lib_socket_connect" = yes; then 10165 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 10166fi 10167 10168 fi 10169 10170 # Guillermo Gomez says -lposix is necessary on A/UX. 10171 echo "$as_me:10171: checking for remove" >&5 10172echo $ECHO_N "checking for remove... $ECHO_C" >&6 10173if test "${ac_cv_func_remove+set}" = set; then 10174 echo $ECHO_N "(cached) $ECHO_C" >&6 10175else 10176 cat >"conftest.$ac_ext" <<_ACEOF 10177#line 10177 "configure" 10178#include "confdefs.h" 10179#define remove autoconf_temporary 10180#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 10181#undef remove 10182 10183#ifdef __cplusplus 10184extern "C" 10185#endif 10186 10187/* We use char because int might match the return type of a gcc2 10188 builtin and then its argument prototype would still apply. */ 10189char remove (void); 10190 10191int 10192main (void) 10193{ 10194 10195/* The GNU C library defines stubs for functions which it implements 10196 to always fail with ENOSYS. Some functions are actually named 10197 something starting with __ and the normal name is an alias. */ 10198#if defined (__stub_remove) || defined (__stub___remove) 10199#error found stub for remove 10200#endif 10201 10202 return remove (); 10203 ; 10204 return 0; 10205} 10206_ACEOF 10207rm -f "conftest.$ac_objext" "conftest$ac_exeext" 10208if { (eval echo "$as_me:10208: \"$ac_link\"") >&5 10209 (eval $ac_link) 2>&5 10210 ac_status=$? 10211 echo "$as_me:10211: \$? = $ac_status" >&5 10212 (exit "$ac_status"); } && 10213 { ac_try='test -s "conftest$ac_exeext"' 10214 { (eval echo "$as_me:10214: \"$ac_try\"") >&5 10215 (eval $ac_try) 2>&5 10216 ac_status=$? 10217 echo "$as_me:10217: \$? = $ac_status" >&5 10218 (exit "$ac_status"); }; }; then 10219 ac_cv_func_remove=yes 10220else 10221 echo "$as_me: failed program was:" >&5 10222cat "conftest.$ac_ext" >&5 10223ac_cv_func_remove=no 10224fi 10225rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 10226fi 10227echo "$as_me:10227: result: $ac_cv_func_remove" >&5 10228echo "${ECHO_T}$ac_cv_func_remove" >&6 10229 10230 if test $ac_cv_func_remove = no; then 10231 echo "$as_me:10231: checking for remove in -lposix" >&5 10232echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 10233if test "${ac_cv_lib_posix_remove+set}" = set; then 10234 echo $ECHO_N "(cached) $ECHO_C" >&6 10235else 10236 ac_check_lib_save_LIBS=$LIBS 10237LIBS="-lposix $LIBS" 10238cat >"conftest.$ac_ext" <<_ACEOF 10239#line 10239 "configure" 10240#include "confdefs.h" 10241 10242/* Override any gcc2 internal prototype to avoid an error. */ 10243#ifdef __cplusplus 10244extern "C" 10245#endif 10246/* We use char because int might match the return type of a gcc2 10247 builtin and then its argument prototype would still apply. */ 10248char remove (void); 10249int 10250main (void) 10251{ 10252remove (); 10253 ; 10254 return 0; 10255} 10256_ACEOF 10257rm -f "conftest.$ac_objext" "conftest$ac_exeext" 10258if { (eval echo "$as_me:10258: \"$ac_link\"") >&5 10259 (eval $ac_link) 2>&5 10260 ac_status=$? 10261 echo "$as_me:10261: \$? = $ac_status" >&5 10262 (exit "$ac_status"); } && 10263 { ac_try='test -s "conftest$ac_exeext"' 10264 { (eval echo "$as_me:10264: \"$ac_try\"") >&5 10265 (eval $ac_try) 2>&5 10266 ac_status=$? 10267 echo "$as_me:10267: \$? = $ac_status" >&5 10268 (exit "$ac_status"); }; }; then 10269 ac_cv_lib_posix_remove=yes 10270else 10271 echo "$as_me: failed program was:" >&5 10272cat "conftest.$ac_ext" >&5 10273ac_cv_lib_posix_remove=no 10274fi 10275rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 10276LIBS=$ac_check_lib_save_LIBS 10277fi 10278echo "$as_me:10278: result: $ac_cv_lib_posix_remove" >&5 10279echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 10280if test "$ac_cv_lib_posix_remove" = yes; then 10281 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 10282fi 10283 10284 fi 10285 10286 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 10287 echo "$as_me:10287: checking for shmat" >&5 10288echo $ECHO_N "checking for shmat... $ECHO_C" >&6 10289if test "${ac_cv_func_shmat+set}" = set; then 10290 echo $ECHO_N "(cached) $ECHO_C" >&6 10291else 10292 cat >"conftest.$ac_ext" <<_ACEOF 10293#line 10293 "configure" 10294#include "confdefs.h" 10295#define shmat autoconf_temporary 10296#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 10297#undef shmat 10298 10299#ifdef __cplusplus 10300extern "C" 10301#endif 10302 10303/* We use char because int might match the return type of a gcc2 10304 builtin and then its argument prototype would still apply. */ 10305char shmat (void); 10306 10307int 10308main (void) 10309{ 10310 10311/* The GNU C library defines stubs for functions which it implements 10312 to always fail with ENOSYS. Some functions are actually named 10313 something starting with __ and the normal name is an alias. */ 10314#if defined (__stub_shmat) || defined (__stub___shmat) 10315#error found stub for shmat 10316#endif 10317 10318 return shmat (); 10319 ; 10320 return 0; 10321} 10322_ACEOF 10323rm -f "conftest.$ac_objext" "conftest$ac_exeext" 10324if { (eval echo "$as_me:10324: \"$ac_link\"") >&5 10325 (eval $ac_link) 2>&5 10326 ac_status=$? 10327 echo "$as_me:10327: \$? = $ac_status" >&5 10328 (exit "$ac_status"); } && 10329 { ac_try='test -s "conftest$ac_exeext"' 10330 { (eval echo "$as_me:10330: \"$ac_try\"") >&5 10331 (eval $ac_try) 2>&5 10332 ac_status=$? 10333 echo "$as_me:10333: \$? = $ac_status" >&5 10334 (exit "$ac_status"); }; }; then 10335 ac_cv_func_shmat=yes 10336else 10337 echo "$as_me: failed program was:" >&5 10338cat "conftest.$ac_ext" >&5 10339ac_cv_func_shmat=no 10340fi 10341rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 10342fi 10343echo "$as_me:10343: result: $ac_cv_func_shmat" >&5 10344echo "${ECHO_T}$ac_cv_func_shmat" >&6 10345 10346 if test $ac_cv_func_shmat = no; then 10347 echo "$as_me:10347: checking for shmat in -lipc" >&5 10348echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 10349if test "${ac_cv_lib_ipc_shmat+set}" = set; then 10350 echo $ECHO_N "(cached) $ECHO_C" >&6 10351else 10352 ac_check_lib_save_LIBS=$LIBS 10353LIBS="-lipc $LIBS" 10354cat >"conftest.$ac_ext" <<_ACEOF 10355#line 10355 "configure" 10356#include "confdefs.h" 10357 10358/* Override any gcc2 internal prototype to avoid an error. */ 10359#ifdef __cplusplus 10360extern "C" 10361#endif 10362/* We use char because int might match the return type of a gcc2 10363 builtin and then its argument prototype would still apply. */ 10364char shmat (void); 10365int 10366main (void) 10367{ 10368shmat (); 10369 ; 10370 return 0; 10371} 10372_ACEOF 10373rm -f "conftest.$ac_objext" "conftest$ac_exeext" 10374if { (eval echo "$as_me:10374: \"$ac_link\"") >&5 10375 (eval $ac_link) 2>&5 10376 ac_status=$? 10377 echo "$as_me:10377: \$? = $ac_status" >&5 10378 (exit "$ac_status"); } && 10379 { ac_try='test -s "conftest$ac_exeext"' 10380 { (eval echo "$as_me:10380: \"$ac_try\"") >&5 10381 (eval $ac_try) 2>&5 10382 ac_status=$? 10383 echo "$as_me:10383: \$? = $ac_status" >&5 10384 (exit "$ac_status"); }; }; then 10385 ac_cv_lib_ipc_shmat=yes 10386else 10387 echo "$as_me: failed program was:" >&5 10388cat "conftest.$ac_ext" >&5 10389ac_cv_lib_ipc_shmat=no 10390fi 10391rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 10392LIBS=$ac_check_lib_save_LIBS 10393fi 10394echo "$as_me:10394: result: $ac_cv_lib_ipc_shmat" >&5 10395echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 10396if test "$ac_cv_lib_ipc_shmat" = yes; then 10397 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 10398fi 10399 10400 fi 10401 fi 10402 10403 # Check for libraries that X11R6 Xt/Xaw programs need. 10404 ac_save_LDFLAGS=$LDFLAGS 10405 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 10406 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 10407 # check for ICE first), but we must link in the order -lSM -lICE or 10408 # we get undefined symbols. So assume we have SM if we have ICE. 10409 # These have to be linked with before -lX11, unlike the other 10410 # libraries we check for below, so use a different variable. 10411 # John Interrante, Karl Berry 10412 echo "$as_me:10412: checking for IceConnectionNumber in -lICE" >&5 10413echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 10414if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 10415 echo $ECHO_N "(cached) $ECHO_C" >&6 10416else 10417 ac_check_lib_save_LIBS=$LIBS 10418LIBS="-lICE $X_EXTRA_LIBS $LIBS" 10419cat >"conftest.$ac_ext" <<_ACEOF 10420#line 10420 "configure" 10421#include "confdefs.h" 10422 10423/* Override any gcc2 internal prototype to avoid an error. */ 10424#ifdef __cplusplus 10425extern "C" 10426#endif 10427/* We use char because int might match the return type of a gcc2 10428 builtin and then its argument prototype would still apply. */ 10429char IceConnectionNumber (void); 10430int 10431main (void) 10432{ 10433IceConnectionNumber (); 10434 ; 10435 return 0; 10436} 10437_ACEOF 10438rm -f "conftest.$ac_objext" "conftest$ac_exeext" 10439if { (eval echo "$as_me:10439: \"$ac_link\"") >&5 10440 (eval $ac_link) 2>&5 10441 ac_status=$? 10442 echo "$as_me:10442: \$? = $ac_status" >&5 10443 (exit "$ac_status"); } && 10444 { ac_try='test -s "conftest$ac_exeext"' 10445 { (eval echo "$as_me:10445: \"$ac_try\"") >&5 10446 (eval $ac_try) 2>&5 10447 ac_status=$? 10448 echo "$as_me:10448: \$? = $ac_status" >&5 10449 (exit "$ac_status"); }; }; then 10450 ac_cv_lib_ICE_IceConnectionNumber=yes 10451else 10452 echo "$as_me: failed program was:" >&5 10453cat "conftest.$ac_ext" >&5 10454ac_cv_lib_ICE_IceConnectionNumber=no 10455fi 10456rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 10457LIBS=$ac_check_lib_save_LIBS 10458fi 10459echo "$as_me:10459: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 10460echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 10461if test "$ac_cv_lib_ICE_IceConnectionNumber" = yes; then 10462 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 10463fi 10464 10465 LDFLAGS=$ac_save_LDFLAGS 10466 10467fi 10468 10469echo "$as_me:10469: checking for sys/wait.h that is POSIX.1 compatible" >&5 10470echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 10471if test "${ac_cv_header_sys_wait_h+set}" = set; then 10472 echo $ECHO_N "(cached) $ECHO_C" >&6 10473else 10474 cat >"conftest.$ac_ext" <<_ACEOF 10475#line 10475 "configure" 10476#include "confdefs.h" 10477#include <sys/types.h> 10478#include <sys/wait.h> 10479#ifndef WEXITSTATUS 10480# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 10481#endif 10482#ifndef WIFEXITED 10483# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 10484#endif 10485 10486int 10487main (void) 10488{ 10489 int s; 10490 wait (&s); 10491 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 10492 ; 10493 return 0; 10494} 10495_ACEOF 10496rm -f "conftest.$ac_objext" 10497if { (eval echo "$as_me:10497: \"$ac_compile\"") >&5 10498 (eval $ac_compile) 2>&5 10499 ac_status=$? 10500 echo "$as_me:10500: \$? = $ac_status" >&5 10501 (exit "$ac_status"); } && 10502 { ac_try='test -s "conftest.$ac_objext"' 10503 { (eval echo "$as_me:10503: \"$ac_try\"") >&5 10504 (eval $ac_try) 2>&5 10505 ac_status=$? 10506 echo "$as_me:10506: \$? = $ac_status" >&5 10507 (exit "$ac_status"); }; }; then 10508 ac_cv_header_sys_wait_h=yes 10509else 10510 echo "$as_me: failed program was:" >&5 10511cat "conftest.$ac_ext" >&5 10512ac_cv_header_sys_wait_h=no 10513fi 10514rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10515fi 10516echo "$as_me:10516: result: $ac_cv_header_sys_wait_h" >&5 10517echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 10518if test $ac_cv_header_sys_wait_h = yes; then 10519 10520cat >>confdefs.h <<\EOF 10521#define HAVE_SYS_WAIT_H 1 10522EOF 10523 10524fi 10525 10526echo "$as_me:10526: checking for POSIX wait functions" >&5 10527echo $ECHO_N "checking for POSIX wait functions... $ECHO_C" >&6 10528if test "${cf_cv_posix_wait+set}" = set; then 10529 echo $ECHO_N "(cached) $ECHO_C" >&6 10530else 10531 10532cat >"conftest.$ac_ext" <<_ACEOF 10533#line 10533 "configure" 10534#include "confdefs.h" 10535 10536$ac_includes_default 10537 10538#ifdef HAVE_SYS_WAIT_H 10539#include <sys/wait.h> 10540#endif 10541 10542int 10543main (void) 10544{ 10545 10546 int stat_loc; 10547 pid_t pid = waitpid(-1, &stat_loc, WNOHANG|WUNTRACED); 10548 pid_t pid2 = wait(&stat_loc); 10549 (void)pid; 10550 (void)pid2; 10551 10552 ; 10553 return 0; 10554} 10555_ACEOF 10556rm -f "conftest.$ac_objext" "conftest$ac_exeext" 10557if { (eval echo "$as_me:10557: \"$ac_link\"") >&5 10558 (eval $ac_link) 2>&5 10559 ac_status=$? 10560 echo "$as_me:10560: \$? = $ac_status" >&5 10561 (exit "$ac_status"); } && 10562 { ac_try='test -s "conftest$ac_exeext"' 10563 { (eval echo "$as_me:10563: \"$ac_try\"") >&5 10564 (eval $ac_try) 2>&5 10565 ac_status=$? 10566 echo "$as_me:10566: \$? = $ac_status" >&5 10567 (exit "$ac_status"); }; }; then 10568 cf_cv_posix_wait=yes 10569else 10570 echo "$as_me: failed program was:" >&5 10571cat "conftest.$ac_ext" >&5 10572cf_cv_posix_wait=no 10573fi 10574rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 10575 10576fi 10577echo "$as_me:10577: result: $cf_cv_posix_wait" >&5 10578echo "${ECHO_T}$cf_cv_posix_wait" >&6 10579test "$cf_cv_posix_wait" = yes && 10580cat >>confdefs.h <<\EOF 10581#define USE_POSIX_WAIT 1 10582EOF 10583 10584echo "$as_me:10584: checking if external sys_nerr is declared" >&5 10585echo $ECHO_N "checking if external sys_nerr is declared... $ECHO_C" >&6 10586if test "${cf_cv_dcl_sys_nerr+set}" = set; then 10587 echo $ECHO_N "(cached) $ECHO_C" >&6 10588else 10589 10590 cat >"conftest.$ac_ext" <<_ACEOF 10591#line 10591 "configure" 10592#include "confdefs.h" 10593 10594$ac_includes_default 10595#include <errno.h> 10596int 10597main (void) 10598{ 10599int x = (int) sys_nerr; (void)x 10600 ; 10601 return 0; 10602} 10603_ACEOF 10604rm -f "conftest.$ac_objext" 10605if { (eval echo "$as_me:10605: \"$ac_compile\"") >&5 10606 (eval $ac_compile) 2>&5 10607 ac_status=$? 10608 echo "$as_me:10608: \$? = $ac_status" >&5 10609 (exit "$ac_status"); } && 10610 { ac_try='test -s "conftest.$ac_objext"' 10611 { (eval echo "$as_me:10611: \"$ac_try\"") >&5 10612 (eval $ac_try) 2>&5 10613 ac_status=$? 10614 echo "$as_me:10614: \$? = $ac_status" >&5 10615 (exit "$ac_status"); }; }; then 10616 cf_cv_dcl_sys_nerr=yes 10617else 10618 echo "$as_me: failed program was:" >&5 10619cat "conftest.$ac_ext" >&5 10620cf_cv_dcl_sys_nerr=no 10621fi 10622rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10623 10624fi 10625echo "$as_me:10625: result: $cf_cv_dcl_sys_nerr" >&5 10626echo "${ECHO_T}$cf_cv_dcl_sys_nerr" >&6 10627 10628if test "$cf_cv_dcl_sys_nerr" = no ; then 10629 10630cf_result=`echo "decl_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 10631 10632 cat >>confdefs.h <<EOF 10633#define $cf_result 1 10634EOF 10635 10636fi 10637 10638# It's possible (for near-UNIX clones) that the data doesn't exist 10639 10640echo "$as_me:10640: checking if external sys_nerr exists" >&5 10641echo $ECHO_N "checking if external sys_nerr exists... $ECHO_C" >&6 10642if test "${cf_cv_have_sys_nerr+set}" = set; then 10643 echo $ECHO_N "(cached) $ECHO_C" >&6 10644else 10645 10646 cat >"conftest.$ac_ext" <<_ACEOF 10647#line 10647 "configure" 10648#include "confdefs.h" 10649 10650#undef sys_nerr 10651extern int sys_nerr; 10652 10653int 10654main (void) 10655{ 10656sys_nerr = 2 10657 ; 10658 return 0; 10659} 10660_ACEOF 10661rm -f "conftest.$ac_objext" "conftest$ac_exeext" 10662if { (eval echo "$as_me:10662: \"$ac_link\"") >&5 10663 (eval $ac_link) 2>&5 10664 ac_status=$? 10665 echo "$as_me:10665: \$? = $ac_status" >&5 10666 (exit "$ac_status"); } && 10667 { ac_try='test -s "conftest$ac_exeext"' 10668 { (eval echo "$as_me:10668: \"$ac_try\"") >&5 10669 (eval $ac_try) 2>&5 10670 ac_status=$? 10671 echo "$as_me:10671: \$? = $ac_status" >&5 10672 (exit "$ac_status"); }; }; then 10673 cf_cv_have_sys_nerr=yes 10674else 10675 echo "$as_me: failed program was:" >&5 10676cat "conftest.$ac_ext" >&5 10677cf_cv_have_sys_nerr=no 10678fi 10679rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 10680 10681fi 10682echo "$as_me:10682: result: $cf_cv_have_sys_nerr" >&5 10683echo "${ECHO_T}$cf_cv_have_sys_nerr" >&6 10684 10685if test "$cf_cv_have_sys_nerr" = yes ; then 10686 10687cf_result=`echo "have_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 10688 10689 cat >>confdefs.h <<EOF 10690#define $cf_result 1 10691EOF 10692 10693fi 10694 10695echo "$as_me:10695: checking if external sys_errlist is declared" >&5 10696echo $ECHO_N "checking if external sys_errlist is declared... $ECHO_C" >&6 10697if test "${cf_cv_dcl_sys_errlist+set}" = set; then 10698 echo $ECHO_N "(cached) $ECHO_C" >&6 10699else 10700 10701 cat >"conftest.$ac_ext" <<_ACEOF 10702#line 10702 "configure" 10703#include "confdefs.h" 10704 10705$ac_includes_default 10706#include <errno.h> 10707int 10708main (void) 10709{ 10710int x = (int) sys_errlist; (void)x 10711 ; 10712 return 0; 10713} 10714_ACEOF 10715rm -f "conftest.$ac_objext" 10716if { (eval echo "$as_me:10716: \"$ac_compile\"") >&5 10717 (eval $ac_compile) 2>&5 10718 ac_status=$? 10719 echo "$as_me:10719: \$? = $ac_status" >&5 10720 (exit "$ac_status"); } && 10721 { ac_try='test -s "conftest.$ac_objext"' 10722 { (eval echo "$as_me:10722: \"$ac_try\"") >&5 10723 (eval $ac_try) 2>&5 10724 ac_status=$? 10725 echo "$as_me:10725: \$? = $ac_status" >&5 10726 (exit "$ac_status"); }; }; then 10727 cf_cv_dcl_sys_errlist=yes 10728else 10729 echo "$as_me: failed program was:" >&5 10730cat "conftest.$ac_ext" >&5 10731cf_cv_dcl_sys_errlist=no 10732fi 10733rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10734 10735fi 10736echo "$as_me:10736: result: $cf_cv_dcl_sys_errlist" >&5 10737echo "${ECHO_T}$cf_cv_dcl_sys_errlist" >&6 10738 10739if test "$cf_cv_dcl_sys_errlist" = no ; then 10740 10741cf_result=`echo "decl_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 10742 10743 cat >>confdefs.h <<EOF 10744#define $cf_result 1 10745EOF 10746 10747fi 10748 10749# It's possible (for near-UNIX clones) that the data doesn't exist 10750 10751echo "$as_me:10751: checking if external sys_errlist exists" >&5 10752echo $ECHO_N "checking if external sys_errlist exists... $ECHO_C" >&6 10753if test "${cf_cv_have_sys_errlist+set}" = set; then 10754 echo $ECHO_N "(cached) $ECHO_C" >&6 10755else 10756 10757 cat >"conftest.$ac_ext" <<_ACEOF 10758#line 10758 "configure" 10759#include "confdefs.h" 10760 10761#undef sys_errlist 10762extern int sys_errlist; 10763 10764int 10765main (void) 10766{ 10767sys_errlist = 2 10768 ; 10769 return 0; 10770} 10771_ACEOF 10772rm -f "conftest.$ac_objext" "conftest$ac_exeext" 10773if { (eval echo "$as_me:10773: \"$ac_link\"") >&5 10774 (eval $ac_link) 2>&5 10775 ac_status=$? 10776 echo "$as_me:10776: \$? = $ac_status" >&5 10777 (exit "$ac_status"); } && 10778 { ac_try='test -s "conftest$ac_exeext"' 10779 { (eval echo "$as_me:10779: \"$ac_try\"") >&5 10780 (eval $ac_try) 2>&5 10781 ac_status=$? 10782 echo "$as_me:10782: \$? = $ac_status" >&5 10783 (exit "$ac_status"); }; }; then 10784 cf_cv_have_sys_errlist=yes 10785else 10786 echo "$as_me: failed program was:" >&5 10787cat "conftest.$ac_ext" >&5 10788cf_cv_have_sys_errlist=no 10789fi 10790rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 10791 10792fi 10793echo "$as_me:10793: result: $cf_cv_have_sys_errlist" >&5 10794echo "${ECHO_T}$cf_cv_have_sys_errlist" >&6 10795 10796if test "$cf_cv_have_sys_errlist" = yes ; then 10797 10798cf_result=`echo "have_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 10799 10800 cat >>confdefs.h <<EOF 10801#define $cf_result 1 10802EOF 10803 10804fi 10805 10806cf_save_LIBS_CF_SYSV="$LIBS" 10807cf_save_CFLAGS_CF_SYSV="$CFLAGS" 10808cf_save_CPPFLAGS_CF_SYSV="$CPPFLAGS" 10809LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}" 10810for cf_X_CFLAGS in $X_CFLAGS 10811do 10812 case "x$cf_X_CFLAGS" in 10813 x-[IUD]*) 10814 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS" 10815 ;; 10816 *) 10817 CFLAGS="$CFLAGS $cf_X_CFLAGS" 10818 ;; 10819 esac 10820done 10821 10822for ac_header in \ 10823termios.h \ 10824stdlib.h \ 10825X11/Intrinsic.h \ 10826 10827do 10828as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10829echo "$as_me:10829: checking for $ac_header" >&5 10830echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10831if eval "test \"\${$as_ac_Header+set}\" = set"; then 10832 echo $ECHO_N "(cached) $ECHO_C" >&6 10833else 10834 cat >"conftest.$ac_ext" <<_ACEOF 10835#line 10835 "configure" 10836#include "confdefs.h" 10837#include <$ac_header> 10838_ACEOF 10839if { (eval echo "$as_me:10839: \"$ac_cpp "conftest.$ac_ext"\"") >&5 10840 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 10841 ac_status=$? 10842 $EGREP -v '^ *\+' conftest.er1 >conftest.err 10843 rm -f conftest.er1 10844 cat conftest.err >&5 10845 echo "$as_me:10845: \$? = $ac_status" >&5 10846 (exit "$ac_status"); } >/dev/null; then 10847 if test -s conftest.err; then 10848 ac_cpp_err=$ac_c_preproc_warn_flag 10849 else 10850 ac_cpp_err= 10851 fi 10852else 10853 ac_cpp_err=yes 10854fi 10855if test -z "$ac_cpp_err"; then 10856 eval "$as_ac_Header=yes" 10857else 10858 echo "$as_me: failed program was:" >&5 10859 cat "conftest.$ac_ext" >&5 10860 eval "$as_ac_Header=no" 10861fi 10862rm -f conftest.err "conftest.$ac_ext" 10863fi 10864echo "$as_me:10864: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 10865echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 10866if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 10867 cat >>confdefs.h <<EOF 10868#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10869EOF 10870 10871fi 10872done 10873 10874echo "$as_me:10874: checking if we should define SYSV" >&5 10875echo $ECHO_N "checking if we should define SYSV... $ECHO_C" >&6 10876if test "${cf_cv_sysv+set}" = set; then 10877 echo $ECHO_N "(cached) $ECHO_C" >&6 10878else 10879 10880cat >"conftest.$ac_ext" <<_ACEOF 10881#line 10881 "configure" 10882#include "confdefs.h" 10883 10884#undef SYSV 10885#define SYSV 1 /* get Xos.h to declare sys_errlist[] */ 10886#ifdef HAVE_STDLIB_H 10887#include <stdlib.h> /* look for wchar_t */ 10888#endif 10889#ifdef HAVE_X11_INTRINSIC_H 10890#include <X11/Intrinsic.h> /* Intrinsic.h has other traps... */ 10891#endif 10892#ifdef HAVE_TERMIOS_H /* needed for HPUX 10.20 */ 10893#include <termios.h> 10894#define STRUCT_TERMIOS struct termios 10895#else 10896#define STRUCT_TERMIOS struct termio 10897#endif 10898#include <curses.h> 10899#include <term.h> /* eliminate most BSD hacks */ 10900#include <errno.h> /* declare sys_errlist on older systems */ 10901#include <sys/termio.h> /* eliminate most of the remaining ones */ 10902 10903int 10904main (void) 10905{ 10906 10907static STRUCT_TERMIOS d_tio; 10908 d_tio.c_cc[VINTR] = 0; 10909 d_tio.c_cc[VQUIT] = 0; 10910 d_tio.c_cc[VERASE] = 0; 10911 d_tio.c_cc[VKILL] = 0; 10912 d_tio.c_cc[VEOF] = 0; 10913 d_tio.c_cc[VEOL] = 0; 10914 d_tio.c_cc[VMIN] = 0; 10915 d_tio.c_cc[VTIME] = 0; 10916#if defined(HAVE_SYS_ERRLIST) && !defined(DECL_SYS_ERRLIST) 10917sys_errlist[0] = ""; /* Cygwin mis-declares this */ 10918#endif 10919 10920 ; 10921 return 0; 10922} 10923_ACEOF 10924rm -f "conftest.$ac_objext" 10925if { (eval echo "$as_me:10925: \"$ac_compile\"") >&5 10926 (eval $ac_compile) 2>&5 10927 ac_status=$? 10928 echo "$as_me:10928: \$? = $ac_status" >&5 10929 (exit "$ac_status"); } && 10930 { ac_try='test -s "conftest.$ac_objext"' 10931 { (eval echo "$as_me:10931: \"$ac_try\"") >&5 10932 (eval $ac_try) 2>&5 10933 ac_status=$? 10934 echo "$as_me:10934: \$? = $ac_status" >&5 10935 (exit "$ac_status"); }; }; then 10936 cf_cv_sysv=yes 10937else 10938 echo "$as_me: failed program was:" >&5 10939cat "conftest.$ac_ext" >&5 10940cf_cv_sysv=no 10941fi 10942rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10943 10944fi 10945echo "$as_me:10945: result: $cf_cv_sysv" >&5 10946echo "${ECHO_T}$cf_cv_sysv" >&6 10947test "$cf_cv_sysv" = yes && 10948cat >>confdefs.h <<\EOF 10949#define SYSV 1 10950EOF 10951 10952LIBS="$cf_save_LIBS_CF_SYSV" 10953CFLAGS="$cf_save_CFLAGS_CF_SYSV" 10954CPPFLAGS="$cf_save_CPPFLAGS_CF_SYSV" 10955 10956echo "$as_me:10956: checking for elf_begin in -lelf" >&5 10957echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 10958if test "${ac_cv_lib_elf_elf_begin+set}" = set; then 10959 echo $ECHO_N "(cached) $ECHO_C" >&6 10960else 10961 ac_check_lib_save_LIBS=$LIBS 10962LIBS="-lelf $LIBS" 10963cat >"conftest.$ac_ext" <<_ACEOF 10964#line 10964 "configure" 10965#include "confdefs.h" 10966 10967/* Override any gcc2 internal prototype to avoid an error. */ 10968#ifdef __cplusplus 10969extern "C" 10970#endif 10971/* We use char because int might match the return type of a gcc2 10972 builtin and then its argument prototype would still apply. */ 10973char elf_begin (void); 10974int 10975main (void) 10976{ 10977elf_begin (); 10978 ; 10979 return 0; 10980} 10981_ACEOF 10982rm -f "conftest.$ac_objext" "conftest$ac_exeext" 10983if { (eval echo "$as_me:10983: \"$ac_link\"") >&5 10984 (eval $ac_link) 2>&5 10985 ac_status=$? 10986 echo "$as_me:10986: \$? = $ac_status" >&5 10987 (exit "$ac_status"); } && 10988 { ac_try='test -s "conftest$ac_exeext"' 10989 { (eval echo "$as_me:10989: \"$ac_try\"") >&5 10990 (eval $ac_try) 2>&5 10991 ac_status=$? 10992 echo "$as_me:10992: \$? = $ac_status" >&5 10993 (exit "$ac_status"); }; }; then 10994 ac_cv_lib_elf_elf_begin=yes 10995else 10996 echo "$as_me: failed program was:" >&5 10997cat "conftest.$ac_ext" >&5 10998ac_cv_lib_elf_elf_begin=no 10999fi 11000rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 11001LIBS=$ac_check_lib_save_LIBS 11002fi 11003echo "$as_me:11003: result: $ac_cv_lib_elf_elf_begin" >&5 11004echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 11005if test "$ac_cv_lib_elf_elf_begin" = yes; then 11006 11007echo "$as_me:11007: checking if this is an SVR4 system" >&5 11008echo $ECHO_N "checking if this is an SVR4 system... $ECHO_C" >&6 11009if test "${cf_cv_svr4+set}" = set; then 11010 echo $ECHO_N "(cached) $ECHO_C" >&6 11011else 11012 11013cat >"conftest.$ac_ext" <<_ACEOF 11014#line 11014 "configure" 11015#include "confdefs.h" 11016 11017#if defined(__CYGWIN__) 11018#error Cygwin is not SVr4 11019#endif 11020#include <elf.h> 11021#include <sys/termio.h> 11022 11023int 11024main (void) 11025{ 11026 11027static struct termio d_tio; 11028 d_tio.c_cc[VINTR] = 0; 11029 d_tio.c_cc[VQUIT] = 0; 11030 d_tio.c_cc[VERASE] = 0; 11031 d_tio.c_cc[VKILL] = 0; 11032 d_tio.c_cc[VEOF] = 0; 11033 d_tio.c_cc[VEOL] = 0; 11034 d_tio.c_cc[VMIN] = 0; 11035 d_tio.c_cc[VTIME] = 0; 11036 d_tio.c_cc[VLNEXT] = 0; 11037 11038 ; 11039 return 0; 11040} 11041_ACEOF 11042rm -f "conftest.$ac_objext" 11043if { (eval echo "$as_me:11043: \"$ac_compile\"") >&5 11044 (eval $ac_compile) 2>&5 11045 ac_status=$? 11046 echo "$as_me:11046: \$? = $ac_status" >&5 11047 (exit "$ac_status"); } && 11048 { ac_try='test -s "conftest.$ac_objext"' 11049 { (eval echo "$as_me:11049: \"$ac_try\"") >&5 11050 (eval $ac_try) 2>&5 11051 ac_status=$? 11052 echo "$as_me:11052: \$? = $ac_status" >&5 11053 (exit "$ac_status"); }; }; then 11054 cf_cv_svr4=yes 11055else 11056 echo "$as_me: failed program was:" >&5 11057cat "conftest.$ac_ext" >&5 11058cf_cv_svr4=no 11059fi 11060rm -f "conftest.$ac_objext" "conftest.$ac_ext" 11061 11062fi 11063echo "$as_me:11063: result: $cf_cv_svr4" >&5 11064echo "${ECHO_T}$cf_cv_svr4" >&6 11065 11066fi 11067 11068test "$cf_cv_svr4" = yes && 11069cat >>confdefs.h <<\EOF 11070#define SVR4 1 11071EOF 11072 11073echo "$as_me:11073: checking if you want to use pkg-config" >&5 11074echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6 11075 11076# Check whether --with-pkg-config or --without-pkg-config was given. 11077if test "${with_pkg_config+set}" = set; then 11078 withval="$with_pkg_config" 11079 cf_pkg_config=$withval 11080else 11081 cf_pkg_config=yes 11082fi; 11083echo "$as_me:11083: result: $cf_pkg_config" >&5 11084echo "${ECHO_T}$cf_pkg_config" >&6 11085 11086case "$cf_pkg_config" in 11087(no) 11088 PKG_CONFIG=none 11089 ;; 11090(yes) 11091 11092if test -n "$ac_tool_prefix"; then 11093 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11094set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11095echo "$as_me:11095: checking for $ac_word" >&5 11096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 11097if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 11098 echo $ECHO_N "(cached) $ECHO_C" >&6 11099else 11100 case $PKG_CONFIG in 11101 [\\/]* | ?:[\\/]*) 11102 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11103 ;; 11104 *) 11105 ac_save_IFS=$IFS; IFS=$ac_path_separator 11106ac_dummy="$PATH" 11107for ac_dir in $ac_dummy; do 11108 IFS=$ac_save_IFS 11109 test -z "$ac_dir" && ac_dir=. 11110 if $as_executable_p "$ac_dir/$ac_word"; then 11111 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" 11112 echo "$as_me:11112: found $ac_dir/$ac_word" >&5 11113 break 11114fi 11115done 11116 11117 ;; 11118esac 11119fi 11120PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11121 11122if test -n "$PKG_CONFIG"; then 11123 echo "$as_me:11123: result: $PKG_CONFIG" >&5 11124echo "${ECHO_T}$PKG_CONFIG" >&6 11125else 11126 echo "$as_me:11126: result: no" >&5 11127echo "${ECHO_T}no" >&6 11128fi 11129 11130fi 11131if test -z "$ac_cv_path_PKG_CONFIG"; then 11132 ac_pt_PKG_CONFIG=$PKG_CONFIG 11133 # Extract the first word of "pkg-config", so it can be a program name with args. 11134set dummy pkg-config; ac_word=$2 11135echo "$as_me:11135: checking for $ac_word" >&5 11136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 11137if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 11138 echo $ECHO_N "(cached) $ECHO_C" >&6 11139else 11140 case $ac_pt_PKG_CONFIG in 11141 [\\/]* | ?:[\\/]*) 11142 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11143 ;; 11144 *) 11145 ac_save_IFS=$IFS; IFS=$ac_path_separator 11146ac_dummy="$PATH" 11147for ac_dir in $ac_dummy; do 11148 IFS=$ac_save_IFS 11149 test -z "$ac_dir" && ac_dir=. 11150 if $as_executable_p "$ac_dir/$ac_word"; then 11151 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word" 11152 echo "$as_me:11152: found $ac_dir/$ac_word" >&5 11153 break 11154fi 11155done 11156 11157 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none" 11158 ;; 11159esac 11160fi 11161ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11162 11163if test -n "$ac_pt_PKG_CONFIG"; then 11164 echo "$as_me:11164: result: $ac_pt_PKG_CONFIG" >&5 11165echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 11166else 11167 echo "$as_me:11167: result: no" >&5 11168echo "${ECHO_T}no" >&6 11169fi 11170 11171 PKG_CONFIG=$ac_pt_PKG_CONFIG 11172else 11173 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11174fi 11175 11176 ;; 11177(*) 11178 PKG_CONFIG=$withval 11179 ;; 11180esac 11181 11182test -z "$PKG_CONFIG" && PKG_CONFIG=none 11183if test "$PKG_CONFIG" != none ; then 11184 11185if test "x$prefix" != xNONE; then 11186 cf_path_syntax="$prefix" 11187else 11188 cf_path_syntax="$ac_default_prefix" 11189fi 11190 11191case "x$PKG_CONFIG" in 11192(x\$\(*\)*|x\'*\'*) 11193 ;; 11194(x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER) 11195 ;; 11196(x\$\{*prefix\}*|x\$\{*dir\}*) 11197 eval PKG_CONFIG="$PKG_CONFIG" 11198 case "x$PKG_CONFIG" in 11199 (xNONE/*) 11200 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%` 11201 ;; 11202 esac 11203 ;; 11204(xno|xNONE/*) 11205 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%` 11206 ;; 11207(*) 11208 { { echo "$as_me:11208: error: expected a pathname, not \"$PKG_CONFIG\"" >&5 11209echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;} 11210 { (exit 1); exit 1; }; } 11211 ;; 11212esac 11213 11214elif test "x$cf_pkg_config" != xno ; then 11215 { echo "$as_me:11215: WARNING: pkg-config is not installed" >&5 11216echo "$as_me: WARNING: pkg-config is not installed" >&2;} 11217fi 11218 11219# OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new) (and 11220# in some cases has installed dummy files in the former, other cases replaced 11221# it with a link to the new location). This complicates the configure script. 11222# Check for that pitfall, and recover using pkg-config 11223# 11224# If none of these are set, the configuration is almost certainly broken. 11225if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}" 11226then 11227 11228if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then 11229 test -n "$verbose" && echo " found package x11" 1>&6 11230 11231echo "${as_me:-configure}:11231: testing found package x11 ..." 1>&5 11232 11233 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`" 11234 cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`" 11235 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6 11236 11237echo "${as_me:-configure}:11237: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11238 11239 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6 11240 11241echo "${as_me:-configure}:11241: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5 11242 11243cf_fix_cppflags=no 11244cf_new_cflags= 11245cf_new_cppflags= 11246cf_new_extra_cppflags= 11247 11248for cf_add_cflags in $cf_pkgconfig_incs 11249do 11250case "$cf_fix_cppflags" in 11251(no) 11252 case "$cf_add_cflags" in 11253 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11254 case "$cf_add_cflags" in 11255 (-D*) 11256 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11257 11258 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11259 && test -z "${cf_tst_cflags}" \ 11260 && cf_fix_cppflags=yes 11261 11262 if test "$cf_fix_cppflags" = yes ; then 11263 11264 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11265 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11266 11267 continue 11268 elif test "${cf_tst_cflags}" = "\"'" ; then 11269 11270 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11271 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11272 11273 continue 11274 fi 11275 ;; 11276 esac 11277 case "$CPPFLAGS" in 11278 (*$cf_add_cflags) 11279 ;; 11280 (*) 11281 case "$cf_add_cflags" in 11282 (-D*) 11283 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11284 11285CPPFLAGS=`echo "$CPPFLAGS" | \ 11286 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11287 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11288 11289 ;; 11290 esac 11291 11292 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 11293 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 11294 11295 ;; 11296 esac 11297 ;; 11298 (*) 11299 11300 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 11301 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 11302 11303 ;; 11304 esac 11305 ;; 11306(yes) 11307 11308 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11309 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11310 11311 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 11312 11313 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11314 && test -z "${cf_tst_cflags}" \ 11315 && cf_fix_cppflags=no 11316 ;; 11317esac 11318done 11319 11320if test -n "$cf_new_cflags" ; then 11321 11322 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 11323 CFLAGS="${CFLAGS}$cf_new_cflags" 11324 11325fi 11326 11327if test -n "$cf_new_cppflags" ; then 11328 11329 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11330 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 11331 11332fi 11333 11334if test -n "$cf_new_extra_cppflags" ; then 11335 11336 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 11337 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 11338 11339fi 11340 11341cf_add_libs="$LIBS" 11342# reverse order 11343cf_add_0lib= 11344for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 11345# filter duplicates 11346for cf_add_1lib in $cf_add_0lib; do 11347 for cf_add_2lib in $cf_add_libs; do 11348 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 11349 cf_add_1lib= 11350 break 11351 fi 11352 done 11353 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 11354done 11355LIBS="$cf_add_libs" 11356 11357 : 11358else 11359 cf_pkgconfig_incs= 11360 cf_pkgconfig_libs= 11361 { echo "$as_me:11361: WARNING: unable to find X11 library" >&5 11362echo "$as_me: WARNING: unable to find X11 library" >&2;} 11363fi 11364 11365if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then 11366 test -n "$verbose" && echo " found package ice" 1>&6 11367 11368echo "${as_me:-configure}:11368: testing found package ice ..." 1>&5 11369 11370 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`" 11371 cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`" 11372 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6 11373 11374echo "${as_me:-configure}:11374: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11375 11376 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6 11377 11378echo "${as_me:-configure}:11378: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5 11379 11380cf_fix_cppflags=no 11381cf_new_cflags= 11382cf_new_cppflags= 11383cf_new_extra_cppflags= 11384 11385for cf_add_cflags in $cf_pkgconfig_incs 11386do 11387case "$cf_fix_cppflags" in 11388(no) 11389 case "$cf_add_cflags" in 11390 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11391 case "$cf_add_cflags" in 11392 (-D*) 11393 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11394 11395 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11396 && test -z "${cf_tst_cflags}" \ 11397 && cf_fix_cppflags=yes 11398 11399 if test "$cf_fix_cppflags" = yes ; then 11400 11401 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11402 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11403 11404 continue 11405 elif test "${cf_tst_cflags}" = "\"'" ; then 11406 11407 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11408 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11409 11410 continue 11411 fi 11412 ;; 11413 esac 11414 case "$CPPFLAGS" in 11415 (*$cf_add_cflags) 11416 ;; 11417 (*) 11418 case "$cf_add_cflags" in 11419 (-D*) 11420 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11421 11422CPPFLAGS=`echo "$CPPFLAGS" | \ 11423 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11424 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11425 11426 ;; 11427 esac 11428 11429 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 11430 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 11431 11432 ;; 11433 esac 11434 ;; 11435 (*) 11436 11437 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 11438 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 11439 11440 ;; 11441 esac 11442 ;; 11443(yes) 11444 11445 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11446 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11447 11448 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 11449 11450 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11451 && test -z "${cf_tst_cflags}" \ 11452 && cf_fix_cppflags=no 11453 ;; 11454esac 11455done 11456 11457if test -n "$cf_new_cflags" ; then 11458 11459 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 11460 CFLAGS="${CFLAGS}$cf_new_cflags" 11461 11462fi 11463 11464if test -n "$cf_new_cppflags" ; then 11465 11466 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11467 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 11468 11469fi 11470 11471if test -n "$cf_new_extra_cppflags" ; then 11472 11473 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 11474 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 11475 11476fi 11477 11478cf_add_libs="$LIBS" 11479# reverse order 11480cf_add_0lib= 11481for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 11482# filter duplicates 11483for cf_add_1lib in $cf_add_0lib; do 11484 for cf_add_2lib in $cf_add_libs; do 11485 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 11486 cf_add_1lib= 11487 break 11488 fi 11489 done 11490 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 11491done 11492LIBS="$cf_add_libs" 11493 11494 : 11495else 11496 cf_pkgconfig_incs= 11497 cf_pkgconfig_libs= 11498 { echo "$as_me:11498: WARNING: unable to find ICE library" >&5 11499echo "$as_me: WARNING: unable to find ICE library" >&2;} 11500fi 11501 11502if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then 11503 test -n "$verbose" && echo " found package sm" 1>&6 11504 11505echo "${as_me:-configure}:11505: testing found package sm ..." 1>&5 11506 11507 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`" 11508 cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`" 11509 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6 11510 11511echo "${as_me:-configure}:11511: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11512 11513 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6 11514 11515echo "${as_me:-configure}:11515: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5 11516 11517cf_fix_cppflags=no 11518cf_new_cflags= 11519cf_new_cppflags= 11520cf_new_extra_cppflags= 11521 11522for cf_add_cflags in $cf_pkgconfig_incs 11523do 11524case "$cf_fix_cppflags" in 11525(no) 11526 case "$cf_add_cflags" in 11527 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11528 case "$cf_add_cflags" in 11529 (-D*) 11530 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11531 11532 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11533 && test -z "${cf_tst_cflags}" \ 11534 && cf_fix_cppflags=yes 11535 11536 if test "$cf_fix_cppflags" = yes ; then 11537 11538 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11539 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11540 11541 continue 11542 elif test "${cf_tst_cflags}" = "\"'" ; then 11543 11544 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11545 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11546 11547 continue 11548 fi 11549 ;; 11550 esac 11551 case "$CPPFLAGS" in 11552 (*$cf_add_cflags) 11553 ;; 11554 (*) 11555 case "$cf_add_cflags" in 11556 (-D*) 11557 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11558 11559CPPFLAGS=`echo "$CPPFLAGS" | \ 11560 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11561 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11562 11563 ;; 11564 esac 11565 11566 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 11567 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 11568 11569 ;; 11570 esac 11571 ;; 11572 (*) 11573 11574 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 11575 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 11576 11577 ;; 11578 esac 11579 ;; 11580(yes) 11581 11582 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11583 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11584 11585 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 11586 11587 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11588 && test -z "${cf_tst_cflags}" \ 11589 && cf_fix_cppflags=no 11590 ;; 11591esac 11592done 11593 11594if test -n "$cf_new_cflags" ; then 11595 11596 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 11597 CFLAGS="${CFLAGS}$cf_new_cflags" 11598 11599fi 11600 11601if test -n "$cf_new_cppflags" ; then 11602 11603 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11604 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 11605 11606fi 11607 11608if test -n "$cf_new_extra_cppflags" ; then 11609 11610 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 11611 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 11612 11613fi 11614 11615cf_add_libs="$LIBS" 11616# reverse order 11617cf_add_0lib= 11618for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 11619# filter duplicates 11620for cf_add_1lib in $cf_add_0lib; do 11621 for cf_add_2lib in $cf_add_libs; do 11622 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 11623 cf_add_1lib= 11624 break 11625 fi 11626 done 11627 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 11628done 11629LIBS="$cf_add_libs" 11630 11631 : 11632else 11633 cf_pkgconfig_incs= 11634 cf_pkgconfig_libs= 11635 { echo "$as_me:11635: WARNING: unable to find SM library" >&5 11636echo "$as_me: WARNING: unable to find SM library" >&2;} 11637fi 11638 11639if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then 11640 test -n "$verbose" && echo " found package xt" 1>&6 11641 11642echo "${as_me:-configure}:11642: testing found package xt ..." 1>&5 11643 11644 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`" 11645 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`" 11646 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6 11647 11648echo "${as_me:-configure}:11648: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11649 11650 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6 11651 11652echo "${as_me:-configure}:11652: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5 11653 11654cf_fix_cppflags=no 11655cf_new_cflags= 11656cf_new_cppflags= 11657cf_new_extra_cppflags= 11658 11659for cf_add_cflags in $cf_pkgconfig_incs 11660do 11661case "$cf_fix_cppflags" in 11662(no) 11663 case "$cf_add_cflags" in 11664 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11665 case "$cf_add_cflags" in 11666 (-D*) 11667 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11668 11669 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11670 && test -z "${cf_tst_cflags}" \ 11671 && cf_fix_cppflags=yes 11672 11673 if test "$cf_fix_cppflags" = yes ; then 11674 11675 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11676 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11677 11678 continue 11679 elif test "${cf_tst_cflags}" = "\"'" ; then 11680 11681 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11682 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11683 11684 continue 11685 fi 11686 ;; 11687 esac 11688 case "$CPPFLAGS" in 11689 (*$cf_add_cflags) 11690 ;; 11691 (*) 11692 case "$cf_add_cflags" in 11693 (-D*) 11694 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11695 11696CPPFLAGS=`echo "$CPPFLAGS" | \ 11697 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11698 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11699 11700 ;; 11701 esac 11702 11703 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 11704 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 11705 11706 ;; 11707 esac 11708 ;; 11709 (*) 11710 11711 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 11712 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 11713 11714 ;; 11715 esac 11716 ;; 11717(yes) 11718 11719 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11720 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11721 11722 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 11723 11724 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11725 && test -z "${cf_tst_cflags}" \ 11726 && cf_fix_cppflags=no 11727 ;; 11728esac 11729done 11730 11731if test -n "$cf_new_cflags" ; then 11732 11733 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 11734 CFLAGS="${CFLAGS}$cf_new_cflags" 11735 11736fi 11737 11738if test -n "$cf_new_cppflags" ; then 11739 11740 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11741 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 11742 11743fi 11744 11745if test -n "$cf_new_extra_cppflags" ; then 11746 11747 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 11748 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 11749 11750fi 11751 11752cf_add_libs="$LIBS" 11753# reverse order 11754cf_add_0lib= 11755for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 11756# filter duplicates 11757for cf_add_1lib in $cf_add_0lib; do 11758 for cf_add_2lib in $cf_add_libs; do 11759 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 11760 cf_add_1lib= 11761 break 11762 fi 11763 done 11764 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 11765done 11766LIBS="$cf_add_libs" 11767 11768 : 11769else 11770 cf_pkgconfig_incs= 11771 cf_pkgconfig_libs= 11772 { echo "$as_me:11772: WARNING: unable to find Xt library" >&5 11773echo "$as_me: WARNING: unable to find Xt library" >&2;} 11774fi 11775 11776else 11777 LIBS="$X_PRE_LIBS $LIBS $X_EXTRA_LIBS" 11778fi 11779 11780cf_have_X_LIBS=no 11781 11782if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then 11783 test -n "$verbose" && echo " found package xt" 1>&6 11784 11785echo "${as_me:-configure}:11785: testing found package xt ..." 1>&5 11786 11787 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`" 11788 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`" 11789 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6 11790 11791echo "${as_me:-configure}:11791: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11792 11793 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6 11794 11795echo "${as_me:-configure}:11795: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5 11796 11797cf_fix_cppflags=no 11798cf_new_cflags= 11799cf_new_cppflags= 11800cf_new_extra_cppflags= 11801 11802for cf_add_cflags in $cf_pkgconfig_incs 11803do 11804case "$cf_fix_cppflags" in 11805(no) 11806 case "$cf_add_cflags" in 11807 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11808 case "$cf_add_cflags" in 11809 (-D*) 11810 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11811 11812 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11813 && test -z "${cf_tst_cflags}" \ 11814 && cf_fix_cppflags=yes 11815 11816 if test "$cf_fix_cppflags" = yes ; then 11817 11818 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11819 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11820 11821 continue 11822 elif test "${cf_tst_cflags}" = "\"'" ; then 11823 11824 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11825 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11826 11827 continue 11828 fi 11829 ;; 11830 esac 11831 case "$CPPFLAGS" in 11832 (*$cf_add_cflags) 11833 ;; 11834 (*) 11835 case "$cf_add_cflags" in 11836 (-D*) 11837 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11838 11839CPPFLAGS=`echo "$CPPFLAGS" | \ 11840 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11841 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11842 11843 ;; 11844 esac 11845 11846 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 11847 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 11848 11849 ;; 11850 esac 11851 ;; 11852 (*) 11853 11854 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 11855 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 11856 11857 ;; 11858 esac 11859 ;; 11860(yes) 11861 11862 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11863 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11864 11865 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 11866 11867 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11868 && test -z "${cf_tst_cflags}" \ 11869 && cf_fix_cppflags=no 11870 ;; 11871esac 11872done 11873 11874if test -n "$cf_new_cflags" ; then 11875 11876 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 11877 CFLAGS="${CFLAGS}$cf_new_cflags" 11878 11879fi 11880 11881if test -n "$cf_new_cppflags" ; then 11882 11883 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11884 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 11885 11886fi 11887 11888if test -n "$cf_new_extra_cppflags" ; then 11889 11890 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 11891 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 11892 11893fi 11894 11895cf_add_libs="$LIBS" 11896# reverse order 11897cf_add_0lib= 11898for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 11899# filter duplicates 11900for cf_add_1lib in $cf_add_0lib; do 11901 for cf_add_2lib in $cf_add_libs; do 11902 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 11903 cf_add_1lib= 11904 break 11905 fi 11906 done 11907 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 11908done 11909LIBS="$cf_add_libs" 11910 11911 case "x$LIBS" in 11912 (*-lX11*) 11913 ;; 11914 (*) 11915# we have an "xt" package, but it may omit Xt's dependency on X11 11916echo "$as_me:11916: checking for usable X dependency" >&5 11917echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6 11918if test "${cf_cv_xt_x11_compat+set}" = set; then 11919 echo $ECHO_N "(cached) $ECHO_C" >&6 11920else 11921 11922cat >"conftest.$ac_ext" <<_ACEOF 11923#line 11923 "configure" 11924#include "confdefs.h" 11925 11926$ac_includes_default 11927#include <X11/Xlib.h> 11928 11929int 11930main (void) 11931{ 11932 11933 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0); 11934 int rc2 = XClearWindow((Display*) 0, (Window) 0); 11935 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0); 11936 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0); 11937 11938 ; 11939 return 0; 11940} 11941_ACEOF 11942rm -f "conftest.$ac_objext" "conftest$ac_exeext" 11943if { (eval echo "$as_me:11943: \"$ac_link\"") >&5 11944 (eval $ac_link) 2>&5 11945 ac_status=$? 11946 echo "$as_me:11946: \$? = $ac_status" >&5 11947 (exit "$ac_status"); } && 11948 { ac_try='test -s "conftest$ac_exeext"' 11949 { (eval echo "$as_me:11949: \"$ac_try\"") >&5 11950 (eval $ac_try) 2>&5 11951 ac_status=$? 11952 echo "$as_me:11952: \$? = $ac_status" >&5 11953 (exit "$ac_status"); }; }; then 11954 cf_cv_xt_x11_compat=yes 11955else 11956 echo "$as_me: failed program was:" >&5 11957cat "conftest.$ac_ext" >&5 11958cf_cv_xt_x11_compat=no 11959fi 11960rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 11961fi 11962echo "$as_me:11962: result: $cf_cv_xt_x11_compat" >&5 11963echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6 11964 if test "$cf_cv_xt_x11_compat" = no 11965 then 11966 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6 11967 11968echo "${as_me:-configure}:11968: testing work around broken X11 dependency ..." 1>&5 11969 11970 # 2010/11/19 - good enough until a working Xt on Xcb is delivered. 11971 11972if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then 11973 test -n "$verbose" && echo " found package x11" 1>&6 11974 11975echo "${as_me:-configure}:11975: testing found package x11 ..." 1>&5 11976 11977 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`" 11978 cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`" 11979 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6 11980 11981echo "${as_me:-configure}:11981: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11982 11983 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6 11984 11985echo "${as_me:-configure}:11985: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5 11986 11987cf_fix_cppflags=no 11988cf_new_cflags= 11989cf_new_cppflags= 11990cf_new_extra_cppflags= 11991 11992for cf_add_cflags in $cf_pkgconfig_incs 11993do 11994case "$cf_fix_cppflags" in 11995(no) 11996 case "$cf_add_cflags" in 11997 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11998 case "$cf_add_cflags" in 11999 (-D*) 12000 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 12001 12002 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12003 && test -z "${cf_tst_cflags}" \ 12004 && cf_fix_cppflags=yes 12005 12006 if test "$cf_fix_cppflags" = yes ; then 12007 12008 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12009 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12010 12011 continue 12012 elif test "${cf_tst_cflags}" = "\"'" ; then 12013 12014 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12015 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12016 12017 continue 12018 fi 12019 ;; 12020 esac 12021 case "$CPPFLAGS" in 12022 (*$cf_add_cflags) 12023 ;; 12024 (*) 12025 case "$cf_add_cflags" in 12026 (-D*) 12027 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 12028 12029CPPFLAGS=`echo "$CPPFLAGS" | \ 12030 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 12031 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 12032 12033 ;; 12034 esac 12035 12036 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 12037 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 12038 12039 ;; 12040 esac 12041 ;; 12042 (*) 12043 12044 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 12045 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 12046 12047 ;; 12048 esac 12049 ;; 12050(yes) 12051 12052 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12053 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12054 12055 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 12056 12057 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12058 && test -z "${cf_tst_cflags}" \ 12059 && cf_fix_cppflags=no 12060 ;; 12061esac 12062done 12063 12064if test -n "$cf_new_cflags" ; then 12065 12066 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 12067 CFLAGS="${CFLAGS}$cf_new_cflags" 12068 12069fi 12070 12071if test -n "$cf_new_cppflags" ; then 12072 12073 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 12074 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 12075 12076fi 12077 12078if test -n "$cf_new_extra_cppflags" ; then 12079 12080 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 12081 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 12082 12083fi 12084 12085cf_add_libs="$LIBS" 12086# reverse order 12087cf_add_0lib= 12088for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 12089# filter duplicates 12090for cf_add_1lib in $cf_add_0lib; do 12091 for cf_add_2lib in $cf_add_libs; do 12092 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 12093 cf_add_1lib= 12094 break 12095 fi 12096 done 12097 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 12098done 12099LIBS="$cf_add_libs" 12100 12101 : 12102else 12103 cf_pkgconfig_incs= 12104 cf_pkgconfig_libs= 12105 12106test -n "$verbose" && echo " ...before $LIBS" 1>&6 12107 12108echo "${as_me:-configure}:12108: testing ...before $LIBS ..." 1>&5 12109 12110LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'` 12111test -n "$verbose" && echo " ...after $LIBS" 1>&6 12112 12113echo "${as_me:-configure}:12113: testing ...after $LIBS ..." 1>&5 12114 12115fi 12116 12117 fi 12118 ;; 12119 esac 12120 12121echo "$as_me:12121: checking for usable X Toolkit package" >&5 12122echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6 12123if test "${cf_cv_xt_ice_compat+set}" = set; then 12124 echo $ECHO_N "(cached) $ECHO_C" >&6 12125else 12126 12127cat >"conftest.$ac_ext" <<_ACEOF 12128#line 12128 "configure" 12129#include "confdefs.h" 12130 12131$ac_includes_default 12132#include <X11/Shell.h> 12133 12134int 12135main (void) 12136{ 12137int num = IceConnectionNumber(0); (void) num 12138 12139 ; 12140 return 0; 12141} 12142_ACEOF 12143rm -f "conftest.$ac_objext" "conftest$ac_exeext" 12144if { (eval echo "$as_me:12144: \"$ac_link\"") >&5 12145 (eval $ac_link) 2>&5 12146 ac_status=$? 12147 echo "$as_me:12147: \$? = $ac_status" >&5 12148 (exit "$ac_status"); } && 12149 { ac_try='test -s "conftest$ac_exeext"' 12150 { (eval echo "$as_me:12150: \"$ac_try\"") >&5 12151 (eval $ac_try) 2>&5 12152 ac_status=$? 12153 echo "$as_me:12153: \$? = $ac_status" >&5 12154 (exit "$ac_status"); }; }; then 12155 cf_cv_xt_ice_compat=yes 12156else 12157 echo "$as_me: failed program was:" >&5 12158cat "conftest.$ac_ext" >&5 12159cf_cv_xt_ice_compat=no 12160fi 12161rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 12162fi 12163echo "$as_me:12163: result: $cf_cv_xt_ice_compat" >&5 12164echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6 12165 12166 if test "$cf_cv_xt_ice_compat" = no 12167 then 12168 # workaround for broken ".pc" files used for X Toolkit. 12169 case "x$X_PRE_LIBS" in 12170 (*-lICE*) 12171 case "x$LIBS" in 12172 (*-lICE*) 12173 ;; 12174 (*) 12175 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6 12176 12177echo "${as_me:-configure}:12177: testing work around broken ICE dependency ..." 1>&5 12178 12179if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then 12180 test -n "$verbose" && echo " found package ice" 1>&6 12181 12182echo "${as_me:-configure}:12182: testing found package ice ..." 1>&5 12183 12184 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`" 12185 cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`" 12186 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6 12187 12188echo "${as_me:-configure}:12188: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5 12189 12190 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6 12191 12192echo "${as_me:-configure}:12192: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5 12193 12194cf_fix_cppflags=no 12195cf_new_cflags= 12196cf_new_cppflags= 12197cf_new_extra_cppflags= 12198 12199for cf_add_cflags in $cf_pkgconfig_incs 12200do 12201case "$cf_fix_cppflags" in 12202(no) 12203 case "$cf_add_cflags" in 12204 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 12205 case "$cf_add_cflags" in 12206 (-D*) 12207 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 12208 12209 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12210 && test -z "${cf_tst_cflags}" \ 12211 && cf_fix_cppflags=yes 12212 12213 if test "$cf_fix_cppflags" = yes ; then 12214 12215 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12216 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12217 12218 continue 12219 elif test "${cf_tst_cflags}" = "\"'" ; then 12220 12221 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12222 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12223 12224 continue 12225 fi 12226 ;; 12227 esac 12228 case "$CPPFLAGS" in 12229 (*$cf_add_cflags) 12230 ;; 12231 (*) 12232 case "$cf_add_cflags" in 12233 (-D*) 12234 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 12235 12236CPPFLAGS=`echo "$CPPFLAGS" | \ 12237 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 12238 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 12239 12240 ;; 12241 esac 12242 12243 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 12244 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 12245 12246 ;; 12247 esac 12248 ;; 12249 (*) 12250 12251 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 12252 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 12253 12254 ;; 12255 esac 12256 ;; 12257(yes) 12258 12259 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12260 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12261 12262 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 12263 12264 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12265 && test -z "${cf_tst_cflags}" \ 12266 && cf_fix_cppflags=no 12267 ;; 12268esac 12269done 12270 12271if test -n "$cf_new_cflags" ; then 12272 12273 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 12274 CFLAGS="${CFLAGS}$cf_new_cflags" 12275 12276fi 12277 12278if test -n "$cf_new_cppflags" ; then 12279 12280 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 12281 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 12282 12283fi 12284 12285if test -n "$cf_new_extra_cppflags" ; then 12286 12287 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 12288 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 12289 12290fi 12291 12292cf_add_libs="$LIBS" 12293# reverse order 12294cf_add_0lib= 12295for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 12296# filter duplicates 12297for cf_add_1lib in $cf_add_0lib; do 12298 for cf_add_2lib in $cf_add_libs; do 12299 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 12300 cf_add_1lib= 12301 break 12302 fi 12303 done 12304 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 12305done 12306LIBS="$cf_add_libs" 12307 12308if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then 12309 test -n "$verbose" && echo " found package sm" 1>&6 12310 12311echo "${as_me:-configure}:12311: testing found package sm ..." 1>&5 12312 12313 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`" 12314 cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`" 12315 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6 12316 12317echo "${as_me:-configure}:12317: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5 12318 12319 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6 12320 12321echo "${as_me:-configure}:12321: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5 12322 12323cf_fix_cppflags=no 12324cf_new_cflags= 12325cf_new_cppflags= 12326cf_new_extra_cppflags= 12327 12328for cf_add_cflags in $cf_pkgconfig_incs 12329do 12330case "$cf_fix_cppflags" in 12331(no) 12332 case "$cf_add_cflags" in 12333 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 12334 case "$cf_add_cflags" in 12335 (-D*) 12336 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 12337 12338 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12339 && test -z "${cf_tst_cflags}" \ 12340 && cf_fix_cppflags=yes 12341 12342 if test "$cf_fix_cppflags" = yes ; then 12343 12344 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12345 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12346 12347 continue 12348 elif test "${cf_tst_cflags}" = "\"'" ; then 12349 12350 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12351 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12352 12353 continue 12354 fi 12355 ;; 12356 esac 12357 case "$CPPFLAGS" in 12358 (*$cf_add_cflags) 12359 ;; 12360 (*) 12361 case "$cf_add_cflags" in 12362 (-D*) 12363 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 12364 12365CPPFLAGS=`echo "$CPPFLAGS" | \ 12366 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 12367 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 12368 12369 ;; 12370 esac 12371 12372 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 12373 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 12374 12375 ;; 12376 esac 12377 ;; 12378 (*) 12379 12380 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 12381 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 12382 12383 ;; 12384 esac 12385 ;; 12386(yes) 12387 12388 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12389 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12390 12391 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 12392 12393 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12394 && test -z "${cf_tst_cflags}" \ 12395 && cf_fix_cppflags=no 12396 ;; 12397esac 12398done 12399 12400if test -n "$cf_new_cflags" ; then 12401 12402 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 12403 CFLAGS="${CFLAGS}$cf_new_cflags" 12404 12405fi 12406 12407if test -n "$cf_new_cppflags" ; then 12408 12409 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 12410 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 12411 12412fi 12413 12414if test -n "$cf_new_extra_cppflags" ; then 12415 12416 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 12417 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 12418 12419fi 12420 12421cf_add_libs="$LIBS" 12422# reverse order 12423cf_add_0lib= 12424for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 12425# filter duplicates 12426for cf_add_1lib in $cf_add_0lib; do 12427 for cf_add_2lib in $cf_add_libs; do 12428 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 12429 cf_add_1lib= 12430 break 12431 fi 12432 done 12433 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 12434done 12435LIBS="$cf_add_libs" 12436 12437 : 12438else 12439 cf_pkgconfig_incs= 12440 cf_pkgconfig_libs= 12441 : 12442fi 12443 12444else 12445 cf_pkgconfig_incs= 12446 cf_pkgconfig_libs= 12447 12448test -n "$verbose" && echo " ...before $LIBS" 1>&6 12449 12450echo "${as_me:-configure}:12450: testing ...before $LIBS ..." 1>&5 12451 12452LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'` 12453test -n "$verbose" && echo " ...after $LIBS" 1>&6 12454 12455echo "${as_me:-configure}:12455: testing ...after $LIBS ..." 1>&5 12456 12457fi 12458 12459 ;; 12460 esac 12461 ;; 12462 esac 12463 fi 12464 12465 cf_have_X_LIBS=yes 12466 12467else 12468 cf_pkgconfig_incs= 12469 cf_pkgconfig_libs= 12470 12471 LDFLAGS="$X_LIBS $LDFLAGS" 12472 12473test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6 12474 12475echo "${as_me:-configure}:12475: testing checking additions to CFLAGS ..." 1>&5 12476 12477cf_check_cflags="$CFLAGS" 12478cf_check_cppflags="$CPPFLAGS" 12479 12480cf_fix_cppflags=no 12481cf_new_cflags= 12482cf_new_cppflags= 12483cf_new_extra_cppflags= 12484 12485for cf_add_cflags in $X_CFLAGS 12486do 12487case "$cf_fix_cppflags" in 12488(no) 12489 case "$cf_add_cflags" in 12490 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 12491 case "$cf_add_cflags" in 12492 (-D*) 12493 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 12494 12495 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12496 && test -z "${cf_tst_cflags}" \ 12497 && cf_fix_cppflags=yes 12498 12499 if test "$cf_fix_cppflags" = yes ; then 12500 12501 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12502 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12503 12504 continue 12505 elif test "${cf_tst_cflags}" = "\"'" ; then 12506 12507 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12508 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12509 12510 continue 12511 fi 12512 ;; 12513 esac 12514 case "$CPPFLAGS" in 12515 (*$cf_add_cflags) 12516 ;; 12517 (*) 12518 case "$cf_add_cflags" in 12519 (-D*) 12520 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 12521 12522CPPFLAGS=`echo "$CPPFLAGS" | \ 12523 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 12524 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 12525 12526 ;; 12527 esac 12528 12529 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 12530 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 12531 12532 ;; 12533 esac 12534 ;; 12535 (*) 12536 12537 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 12538 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 12539 12540 ;; 12541 esac 12542 ;; 12543(yes) 12544 12545 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12546 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12547 12548 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 12549 12550 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12551 && test -z "${cf_tst_cflags}" \ 12552 && cf_fix_cppflags=no 12553 ;; 12554esac 12555done 12556 12557if test -n "$cf_new_cflags" ; then 12558 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 12559 12560echo "${as_me:-configure}:12560: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 12561 12562 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 12563 CFLAGS="${CFLAGS}$cf_new_cflags" 12564 12565fi 12566 12567if test -n "$cf_new_cppflags" ; then 12568 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 12569 12570echo "${as_me:-configure}:12570: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 12571 12572 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 12573 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 12574 12575fi 12576 12577if test -n "$cf_new_extra_cppflags" ; then 12578 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6 12579 12580echo "${as_me:-configure}:12580: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5 12581 12582 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 12583 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 12584 12585fi 12586 12587if test "x$cf_check_cflags" != "x$CFLAGS" ; then 12588cat >"conftest.$ac_ext" <<_ACEOF 12589#line 12589 "configure" 12590#include "confdefs.h" 12591#include <stdio.h> 12592int 12593main (void) 12594{ 12595printf("Hello world"); 12596 ; 12597 return 0; 12598} 12599_ACEOF 12600rm -f "conftest.$ac_objext" "conftest$ac_exeext" 12601if { (eval echo "$as_me:12601: \"$ac_link\"") >&5 12602 (eval $ac_link) 2>&5 12603 ac_status=$? 12604 echo "$as_me:12604: \$? = $ac_status" >&5 12605 (exit "$ac_status"); } && 12606 { ac_try='test -s "conftest$ac_exeext"' 12607 { (eval echo "$as_me:12607: \"$ac_try\"") >&5 12608 (eval $ac_try) 2>&5 12609 ac_status=$? 12610 echo "$as_me:12610: \$? = $ac_status" >&5 12611 (exit "$ac_status"); }; }; then 12612 : 12613else 12614 echo "$as_me: failed program was:" >&5 12615cat "conftest.$ac_ext" >&5 12616test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6 12617 12618echo "${as_me:-configure}:12618: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5 12619 12620 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then 12621 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6 12622 12623echo "${as_me:-configure}:12623: testing but keeping change to \$CPPFLAGS ..." 1>&5 12624 12625 fi 12626 CFLAGS="$cf_check_cflags" 12627fi 12628rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 12629fi 12630 12631 echo "$as_me:12631: checking for XOpenDisplay" >&5 12632echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6 12633if test "${ac_cv_func_XOpenDisplay+set}" = set; then 12634 echo $ECHO_N "(cached) $ECHO_C" >&6 12635else 12636 cat >"conftest.$ac_ext" <<_ACEOF 12637#line 12637 "configure" 12638#include "confdefs.h" 12639#define XOpenDisplay autoconf_temporary 12640#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 12641#undef XOpenDisplay 12642 12643#ifdef __cplusplus 12644extern "C" 12645#endif 12646 12647/* We use char because int might match the return type of a gcc2 12648 builtin and then its argument prototype would still apply. */ 12649char XOpenDisplay (void); 12650 12651int 12652main (void) 12653{ 12654 12655/* The GNU C library defines stubs for functions which it implements 12656 to always fail with ENOSYS. Some functions are actually named 12657 something starting with __ and the normal name is an alias. */ 12658#if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay) 12659#error found stub for XOpenDisplay 12660#endif 12661 12662 return XOpenDisplay (); 12663 ; 12664 return 0; 12665} 12666_ACEOF 12667rm -f "conftest.$ac_objext" "conftest$ac_exeext" 12668if { (eval echo "$as_me:12668: \"$ac_link\"") >&5 12669 (eval $ac_link) 2>&5 12670 ac_status=$? 12671 echo "$as_me:12671: \$? = $ac_status" >&5 12672 (exit "$ac_status"); } && 12673 { ac_try='test -s "conftest$ac_exeext"' 12674 { (eval echo "$as_me:12674: \"$ac_try\"") >&5 12675 (eval $ac_try) 2>&5 12676 ac_status=$? 12677 echo "$as_me:12677: \$? = $ac_status" >&5 12678 (exit "$ac_status"); }; }; then 12679 ac_cv_func_XOpenDisplay=yes 12680else 12681 echo "$as_me: failed program was:" >&5 12682cat "conftest.$ac_ext" >&5 12683ac_cv_func_XOpenDisplay=no 12684fi 12685rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 12686fi 12687echo "$as_me:12687: result: $ac_cv_func_XOpenDisplay" >&5 12688echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6 12689if test "$ac_cv_func_XOpenDisplay" = yes; then 12690 : 12691else 12692 12693 echo "$as_me:12693: checking for XOpenDisplay in -lX11" >&5 12694echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6 12695if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then 12696 echo $ECHO_N "(cached) $ECHO_C" >&6 12697else 12698 ac_check_lib_save_LIBS=$LIBS 12699LIBS="-lX11 $LIBS" 12700cat >"conftest.$ac_ext" <<_ACEOF 12701#line 12701 "configure" 12702#include "confdefs.h" 12703 12704/* Override any gcc2 internal prototype to avoid an error. */ 12705#ifdef __cplusplus 12706extern "C" 12707#endif 12708/* We use char because int might match the return type of a gcc2 12709 builtin and then its argument prototype would still apply. */ 12710char XOpenDisplay (void); 12711int 12712main (void) 12713{ 12714XOpenDisplay (); 12715 ; 12716 return 0; 12717} 12718_ACEOF 12719rm -f "conftest.$ac_objext" "conftest$ac_exeext" 12720if { (eval echo "$as_me:12720: \"$ac_link\"") >&5 12721 (eval $ac_link) 2>&5 12722 ac_status=$? 12723 echo "$as_me:12723: \$? = $ac_status" >&5 12724 (exit "$ac_status"); } && 12725 { ac_try='test -s "conftest$ac_exeext"' 12726 { (eval echo "$as_me:12726: \"$ac_try\"") >&5 12727 (eval $ac_try) 2>&5 12728 ac_status=$? 12729 echo "$as_me:12729: \$? = $ac_status" >&5 12730 (exit "$ac_status"); }; }; then 12731 ac_cv_lib_X11_XOpenDisplay=yes 12732else 12733 echo "$as_me: failed program was:" >&5 12734cat "conftest.$ac_ext" >&5 12735ac_cv_lib_X11_XOpenDisplay=no 12736fi 12737rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 12738LIBS=$ac_check_lib_save_LIBS 12739fi 12740echo "$as_me:12740: result: $ac_cv_lib_X11_XOpenDisplay" >&5 12741echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6 12742if test "$ac_cv_lib_X11_XOpenDisplay" = yes; then 12743 12744cf_add_libs="$LIBS" 12745# reverse order 12746cf_add_0lib= 12747for cf_add_1lib in -lX11; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 12748# filter duplicates 12749for cf_add_1lib in $cf_add_0lib; do 12750 for cf_add_2lib in $cf_add_libs; do 12751 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 12752 cf_add_1lib= 12753 break 12754 fi 12755 done 12756 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 12757done 12758LIBS="$cf_add_libs" 12759 12760fi 12761 12762fi 12763 12764 echo "$as_me:12764: checking for XtAppInitialize" >&5 12765echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6 12766if test "${ac_cv_func_XtAppInitialize+set}" = set; then 12767 echo $ECHO_N "(cached) $ECHO_C" >&6 12768else 12769 cat >"conftest.$ac_ext" <<_ACEOF 12770#line 12770 "configure" 12771#include "confdefs.h" 12772#define XtAppInitialize autoconf_temporary 12773#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 12774#undef XtAppInitialize 12775 12776#ifdef __cplusplus 12777extern "C" 12778#endif 12779 12780/* We use char because int might match the return type of a gcc2 12781 builtin and then its argument prototype would still apply. */ 12782char XtAppInitialize (void); 12783 12784int 12785main (void) 12786{ 12787 12788/* The GNU C library defines stubs for functions which it implements 12789 to always fail with ENOSYS. Some functions are actually named 12790 something starting with __ and the normal name is an alias. */ 12791#if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize) 12792#error found stub for XtAppInitialize 12793#endif 12794 12795 return XtAppInitialize (); 12796 ; 12797 return 0; 12798} 12799_ACEOF 12800rm -f "conftest.$ac_objext" "conftest$ac_exeext" 12801if { (eval echo "$as_me:12801: \"$ac_link\"") >&5 12802 (eval $ac_link) 2>&5 12803 ac_status=$? 12804 echo "$as_me:12804: \$? = $ac_status" >&5 12805 (exit "$ac_status"); } && 12806 { ac_try='test -s "conftest$ac_exeext"' 12807 { (eval echo "$as_me:12807: \"$ac_try\"") >&5 12808 (eval $ac_try) 2>&5 12809 ac_status=$? 12810 echo "$as_me:12810: \$? = $ac_status" >&5 12811 (exit "$ac_status"); }; }; then 12812 ac_cv_func_XtAppInitialize=yes 12813else 12814 echo "$as_me: failed program was:" >&5 12815cat "conftest.$ac_ext" >&5 12816ac_cv_func_XtAppInitialize=no 12817fi 12818rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 12819fi 12820echo "$as_me:12820: result: $ac_cv_func_XtAppInitialize" >&5 12821echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6 12822if test "$ac_cv_func_XtAppInitialize" = yes; then 12823 : 12824else 12825 12826 echo "$as_me:12826: checking for XtAppInitialize in -lXt" >&5 12827echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6 12828if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then 12829 echo $ECHO_N "(cached) $ECHO_C" >&6 12830else 12831 ac_check_lib_save_LIBS=$LIBS 12832LIBS="-lXt $LIBS" 12833cat >"conftest.$ac_ext" <<_ACEOF 12834#line 12834 "configure" 12835#include "confdefs.h" 12836 12837/* Override any gcc2 internal prototype to avoid an error. */ 12838#ifdef __cplusplus 12839extern "C" 12840#endif 12841/* We use char because int might match the return type of a gcc2 12842 builtin and then its argument prototype would still apply. */ 12843char XtAppInitialize (void); 12844int 12845main (void) 12846{ 12847XtAppInitialize (); 12848 ; 12849 return 0; 12850} 12851_ACEOF 12852rm -f "conftest.$ac_objext" "conftest$ac_exeext" 12853if { (eval echo "$as_me:12853: \"$ac_link\"") >&5 12854 (eval $ac_link) 2>&5 12855 ac_status=$? 12856 echo "$as_me:12856: \$? = $ac_status" >&5 12857 (exit "$ac_status"); } && 12858 { ac_try='test -s "conftest$ac_exeext"' 12859 { (eval echo "$as_me:12859: \"$ac_try\"") >&5 12860 (eval $ac_try) 2>&5 12861 ac_status=$? 12862 echo "$as_me:12862: \$? = $ac_status" >&5 12863 (exit "$ac_status"); }; }; then 12864 ac_cv_lib_Xt_XtAppInitialize=yes 12865else 12866 echo "$as_me: failed program was:" >&5 12867cat "conftest.$ac_ext" >&5 12868ac_cv_lib_Xt_XtAppInitialize=no 12869fi 12870rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 12871LIBS=$ac_check_lib_save_LIBS 12872fi 12873echo "$as_me:12873: result: $ac_cv_lib_Xt_XtAppInitialize" >&5 12874echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6 12875if test "$ac_cv_lib_Xt_XtAppInitialize" = yes; then 12876 12877cat >>confdefs.h <<\EOF 12878#define HAVE_LIBXT 1 12879EOF 12880 12881 cf_have_X_LIBS=Xt 12882 LIBS="-lXt $LIBS" 12883fi 12884 12885fi 12886 12887fi 12888 12889if test "$cf_have_X_LIBS" = no ; then 12890 { echo "$as_me:12890: WARNING: Unable to successfully link X Toolkit library (-lXt) with 12891test program. You will have to check and add the proper libraries by hand 12892to makefile." >&5 12893echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with 12894test program. You will have to check and add the proper libraries by hand 12895to makefile." >&2;} 12896fi 12897 12898for ac_header in \ 12899 X11/DECkeysym.h \ 12900 X11/Sunkeysym.h \ 12901 X11/XF86keysym.h \ 12902 X11/XKBlib.h \ 12903 X11/TranslateI.h \ 12904 X11/Xpoll.h \ 12905 X11/extensions/XKB.h \ 12906 12907do 12908as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12909echo "$as_me:12909: checking for $ac_header" >&5 12910echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12911if eval "test \"\${$as_ac_Header+set}\" = set"; then 12912 echo $ECHO_N "(cached) $ECHO_C" >&6 12913else 12914 cat >"conftest.$ac_ext" <<_ACEOF 12915#line 12915 "configure" 12916#include "confdefs.h" 12917#include <$ac_header> 12918_ACEOF 12919if { (eval echo "$as_me:12919: \"$ac_cpp "conftest.$ac_ext"\"") >&5 12920 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 12921 ac_status=$? 12922 $EGREP -v '^ *\+' conftest.er1 >conftest.err 12923 rm -f conftest.er1 12924 cat conftest.err >&5 12925 echo "$as_me:12925: \$? = $ac_status" >&5 12926 (exit "$ac_status"); } >/dev/null; then 12927 if test -s conftest.err; then 12928 ac_cpp_err=$ac_c_preproc_warn_flag 12929 else 12930 ac_cpp_err= 12931 fi 12932else 12933 ac_cpp_err=yes 12934fi 12935if test -z "$ac_cpp_err"; then 12936 eval "$as_ac_Header=yes" 12937else 12938 echo "$as_me: failed program was:" >&5 12939 cat "conftest.$ac_ext" >&5 12940 eval "$as_ac_Header=no" 12941fi 12942rm -f conftest.err "conftest.$ac_ext" 12943fi 12944echo "$as_me:12944: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 12945echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 12946if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 12947 cat >>confdefs.h <<EOF 12948#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12949EOF 12950 12951fi 12952done 12953 12954ICON_SUFFIX=.xbm 12955 12956cf_save_cppflags="${CPPFLAGS}" 12957cf_save_ldflags="${LDFLAGS}" 12958 12959echo "$as_me:12959: checking if you want to use the Xpm library for colored icon" >&5 12960echo $ECHO_N "checking if you want to use the Xpm library for colored icon... $ECHO_C" >&6 12961 12962# Check whether --with-xpm or --without-xpm was given. 12963if test "${with_xpm+set}" = set; then 12964 withval="$with_xpm" 12965 cf_Xpm_library="$withval" 12966else 12967 cf_Xpm_library=yes 12968fi; 12969echo "$as_me:12969: result: $cf_Xpm_library" >&5 12970echo "${ECHO_T}$cf_Xpm_library" >&6 12971 12972if test "$cf_Xpm_library" != no ; then 12973 if test "$cf_Xpm_library" != yes ; then 12974 CPPFLAGS="$CPPFLAGS -I$withval/include" 12975 LDFLAGS="$LDFLAGS -L$withval/lib" 12976 fi 12977 echo "$as_me:12977: checking for X11/xpm.h" >&5 12978echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 12979if test "${ac_cv_header_X11_xpm_h+set}" = set; then 12980 echo $ECHO_N "(cached) $ECHO_C" >&6 12981else 12982 cat >"conftest.$ac_ext" <<_ACEOF 12983#line 12983 "configure" 12984#include "confdefs.h" 12985#include <X11/xpm.h> 12986_ACEOF 12987if { (eval echo "$as_me:12987: \"$ac_cpp "conftest.$ac_ext"\"") >&5 12988 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 12989 ac_status=$? 12990 $EGREP -v '^ *\+' conftest.er1 >conftest.err 12991 rm -f conftest.er1 12992 cat conftest.err >&5 12993 echo "$as_me:12993: \$? = $ac_status" >&5 12994 (exit "$ac_status"); } >/dev/null; then 12995 if test -s conftest.err; then 12996 ac_cpp_err=$ac_c_preproc_warn_flag 12997 else 12998 ac_cpp_err= 12999 fi 13000else 13001 ac_cpp_err=yes 13002fi 13003if test -z "$ac_cpp_err"; then 13004 ac_cv_header_X11_xpm_h=yes 13005else 13006 echo "$as_me: failed program was:" >&5 13007 cat "conftest.$ac_ext" >&5 13008 ac_cv_header_X11_xpm_h=no 13009fi 13010rm -f conftest.err "conftest.$ac_ext" 13011fi 13012echo "$as_me:13012: result: $ac_cv_header_X11_xpm_h" >&5 13013echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 13014if test "$ac_cv_header_X11_xpm_h" = yes; then 13015 13016 echo "$as_me:13016: checking for XpmCreatePixmapFromData in -lXpm" >&5 13017echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6 13018if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then 13019 echo $ECHO_N "(cached) $ECHO_C" >&6 13020else 13021 ac_check_lib_save_LIBS=$LIBS 13022LIBS="-lXpm -lX11 $X_LIBS $LIBS" 13023cat >"conftest.$ac_ext" <<_ACEOF 13024#line 13024 "configure" 13025#include "confdefs.h" 13026 13027/* Override any gcc2 internal prototype to avoid an error. */ 13028#ifdef __cplusplus 13029extern "C" 13030#endif 13031/* We use char because int might match the return type of a gcc2 13032 builtin and then its argument prototype would still apply. */ 13033char XpmCreatePixmapFromData (void); 13034int 13035main (void) 13036{ 13037XpmCreatePixmapFromData (); 13038 ; 13039 return 0; 13040} 13041_ACEOF 13042rm -f "conftest.$ac_objext" "conftest$ac_exeext" 13043if { (eval echo "$as_me:13043: \"$ac_link\"") >&5 13044 (eval $ac_link) 2>&5 13045 ac_status=$? 13046 echo "$as_me:13046: \$? = $ac_status" >&5 13047 (exit "$ac_status"); } && 13048 { ac_try='test -s "conftest$ac_exeext"' 13049 { (eval echo "$as_me:13049: \"$ac_try\"") >&5 13050 (eval $ac_try) 2>&5 13051 ac_status=$? 13052 echo "$as_me:13052: \$? = $ac_status" >&5 13053 (exit "$ac_status"); }; }; then 13054 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes 13055else 13056 echo "$as_me: failed program was:" >&5 13057cat "conftest.$ac_ext" >&5 13058ac_cv_lib_Xpm_XpmCreatePixmapFromData=no 13059fi 13060rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 13061LIBS=$ac_check_lib_save_LIBS 13062fi 13063echo "$as_me:13063: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 13064echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6 13065if test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = yes; then 13066 13067cat >>confdefs.h <<\EOF 13068#define HAVE_LIBXPM 1 13069EOF 13070 13071 ICON_SUFFIX=.xpm 13072 LIBS="-lXpm $LIBS" 13073else 13074 CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}" 13075fi 13076 13077else 13078 CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}" 13079fi 13080 13081fi 13082 13083echo "$as_me:13083: checking if you want to use the Xinerama extension" >&5 13084echo $ECHO_N "checking if you want to use the Xinerama extension... $ECHO_C" >&6 13085 13086# Check whether --with-xinerama or --without-xinerama was given. 13087if test "${with_xinerama+set}" = set; then 13088 withval="$with_xinerama" 13089 cf_with_xinerama="$withval" 13090else 13091 cf_with_xinerama=yes 13092fi; 13093echo "$as_me:13093: result: $cf_with_xinerama" >&5 13094echo "${ECHO_T}$cf_with_xinerama" >&6 13095if test "$cf_with_xinerama" = yes; then 13096 13097if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xinerama"; then 13098 test -n "$verbose" && echo " found package xinerama" 1>&6 13099 13100echo "${as_me:-configure}:13100: testing found package xinerama ..." 1>&5 13101 13102 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xinerama" 2>/dev/null`" 13103 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xinerama" 2>/dev/null`" 13104 test -n "$verbose" && echo " package xinerama CFLAGS: $cf_pkgconfig_incs" 1>&6 13105 13106echo "${as_me:-configure}:13106: testing package xinerama CFLAGS: $cf_pkgconfig_incs ..." 1>&5 13107 13108 test -n "$verbose" && echo " package xinerama LIBS: $cf_pkgconfig_libs" 1>&6 13109 13110echo "${as_me:-configure}:13110: testing package xinerama LIBS: $cf_pkgconfig_libs ..." 1>&5 13111 13112cf_fix_cppflags=no 13113cf_new_cflags= 13114cf_new_cppflags= 13115cf_new_extra_cppflags= 13116 13117for cf_add_cflags in $cf_pkgconfig_incs 13118do 13119case "$cf_fix_cppflags" in 13120(no) 13121 case "$cf_add_cflags" in 13122 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 13123 case "$cf_add_cflags" in 13124 (-D*) 13125 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 13126 13127 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13128 && test -z "${cf_tst_cflags}" \ 13129 && cf_fix_cppflags=yes 13130 13131 if test "$cf_fix_cppflags" = yes ; then 13132 13133 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13134 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13135 13136 continue 13137 elif test "${cf_tst_cflags}" = "\"'" ; then 13138 13139 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13140 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13141 13142 continue 13143 fi 13144 ;; 13145 esac 13146 case "$CPPFLAGS" in 13147 (*$cf_add_cflags) 13148 ;; 13149 (*) 13150 case "$cf_add_cflags" in 13151 (-D*) 13152 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 13153 13154CPPFLAGS=`echo "$CPPFLAGS" | \ 13155 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 13156 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 13157 13158 ;; 13159 esac 13160 13161 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 13162 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 13163 13164 ;; 13165 esac 13166 ;; 13167 (*) 13168 13169 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 13170 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 13171 13172 ;; 13173 esac 13174 ;; 13175(yes) 13176 13177 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13178 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13179 13180 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 13181 13182 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13183 && test -z "${cf_tst_cflags}" \ 13184 && cf_fix_cppflags=no 13185 ;; 13186esac 13187done 13188 13189if test -n "$cf_new_cflags" ; then 13190 13191 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 13192 CFLAGS="${CFLAGS}$cf_new_cflags" 13193 13194fi 13195 13196if test -n "$cf_new_cppflags" ; then 13197 13198 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 13199 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 13200 13201fi 13202 13203if test -n "$cf_new_extra_cppflags" ; then 13204 13205 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 13206 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 13207 13208fi 13209 13210cf_add_libs="$LIBS" 13211# reverse order 13212cf_add_0lib= 13213for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 13214# filter duplicates 13215for cf_add_1lib in $cf_add_0lib; do 13216 for cf_add_2lib in $cf_add_libs; do 13217 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 13218 cf_add_1lib= 13219 break 13220 fi 13221 done 13222 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 13223done 13224LIBS="$cf_add_libs" 13225 13226 cat >>confdefs.h <<\EOF 13227#define HAVE_X11_EXTENSIONS_XINERAMA_H 1 13228EOF 13229 13230else 13231 cf_pkgconfig_incs= 13232 cf_pkgconfig_libs= 13233 13234 echo "$as_me:13234: checking for XineramaQueryScreens in -lXinerama" >&5 13235echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6 13236if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then 13237 echo $ECHO_N "(cached) $ECHO_C" >&6 13238else 13239 ac_check_lib_save_LIBS=$LIBS 13240LIBS="-lXinerama $LIBS" 13241cat >"conftest.$ac_ext" <<_ACEOF 13242#line 13242 "configure" 13243#include "confdefs.h" 13244 13245/* Override any gcc2 internal prototype to avoid an error. */ 13246#ifdef __cplusplus 13247extern "C" 13248#endif 13249/* We use char because int might match the return type of a gcc2 13250 builtin and then its argument prototype would still apply. */ 13251char XineramaQueryScreens (void); 13252int 13253main (void) 13254{ 13255XineramaQueryScreens (); 13256 ; 13257 return 0; 13258} 13259_ACEOF 13260rm -f "conftest.$ac_objext" "conftest$ac_exeext" 13261if { (eval echo "$as_me:13261: \"$ac_link\"") >&5 13262 (eval $ac_link) 2>&5 13263 ac_status=$? 13264 echo "$as_me:13264: \$? = $ac_status" >&5 13265 (exit "$ac_status"); } && 13266 { ac_try='test -s "conftest$ac_exeext"' 13267 { (eval echo "$as_me:13267: \"$ac_try\"") >&5 13268 (eval $ac_try) 2>&5 13269 ac_status=$? 13270 echo "$as_me:13270: \$? = $ac_status" >&5 13271 (exit "$ac_status"); }; }; then 13272 ac_cv_lib_Xinerama_XineramaQueryScreens=yes 13273else 13274 echo "$as_me: failed program was:" >&5 13275cat "conftest.$ac_ext" >&5 13276ac_cv_lib_Xinerama_XineramaQueryScreens=no 13277fi 13278rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 13279LIBS=$ac_check_lib_save_LIBS 13280fi 13281echo "$as_me:13281: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5 13282echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6 13283if test "$ac_cv_lib_Xinerama_XineramaQueryScreens" = yes; then 13284 13285cf_add_libs="$LIBS" 13286# reverse order 13287cf_add_0lib= 13288for cf_add_1lib in -lXinerama; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 13289# filter duplicates 13290for cf_add_1lib in $cf_add_0lib; do 13291 for cf_add_2lib in $cf_add_libs; do 13292 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 13293 cf_add_1lib= 13294 break 13295 fi 13296 done 13297 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 13298done 13299LIBS="$cf_add_libs" 13300 13301for ac_header in \ 13302 X11/extensions/Xinerama.h \ 13303 13304do 13305as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13306echo "$as_me:13306: checking for $ac_header" >&5 13307echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13308if eval "test \"\${$as_ac_Header+set}\" = set"; then 13309 echo $ECHO_N "(cached) $ECHO_C" >&6 13310else 13311 cat >"conftest.$ac_ext" <<_ACEOF 13312#line 13312 "configure" 13313#include "confdefs.h" 13314#include <$ac_header> 13315_ACEOF 13316if { (eval echo "$as_me:13316: \"$ac_cpp "conftest.$ac_ext"\"") >&5 13317 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 13318 ac_status=$? 13319 $EGREP -v '^ *\+' conftest.er1 >conftest.err 13320 rm -f conftest.er1 13321 cat conftest.err >&5 13322 echo "$as_me:13322: \$? = $ac_status" >&5 13323 (exit "$ac_status"); } >/dev/null; then 13324 if test -s conftest.err; then 13325 ac_cpp_err=$ac_c_preproc_warn_flag 13326 else 13327 ac_cpp_err= 13328 fi 13329else 13330 ac_cpp_err=yes 13331fi 13332if test -z "$ac_cpp_err"; then 13333 eval "$as_ac_Header=yes" 13334else 13335 echo "$as_me: failed program was:" >&5 13336 cat "conftest.$ac_ext" >&5 13337 eval "$as_ac_Header=no" 13338fi 13339rm -f conftest.err "conftest.$ac_ext" 13340fi 13341echo "$as_me:13341: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 13342echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 13343if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 13344 cat >>confdefs.h <<EOF 13345#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13346EOF 13347 13348fi 13349done 13350 13351fi 13352 13353fi 13354 13355fi 13356 13357cf_x_athena=${cf_x_athena:-Xaw} 13358 13359echo "$as_me:13359: checking if you want to link with Xaw 3d library" >&5 13360echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6 13361withval= 13362 13363# Check whether --with-Xaw3d or --without-Xaw3d was given. 13364if test "${with_Xaw3d+set}" = set; then 13365 withval="$with_Xaw3d" 13366 13367fi; 13368if test "$withval" = yes ; then 13369 cf_x_athena=Xaw3d 13370 echo "$as_me:13370: result: yes" >&5 13371echo "${ECHO_T}yes" >&6 13372else 13373 echo "$as_me:13373: result: no" >&5 13374echo "${ECHO_T}no" >&6 13375fi 13376 13377echo "$as_me:13377: checking if you want to link with Xaw 3d xft library" >&5 13378echo $ECHO_N "checking if you want to link with Xaw 3d xft library... $ECHO_C" >&6 13379withval= 13380 13381# Check whether --with-Xaw3dxft or --without-Xaw3dxft was given. 13382if test "${with_Xaw3dxft+set}" = set; then 13383 withval="$with_Xaw3dxft" 13384 13385fi; 13386if test "$withval" = yes ; then 13387 cf_x_athena=Xaw3dxft 13388 echo "$as_me:13388: result: yes" >&5 13389echo "${ECHO_T}yes" >&6 13390else 13391 echo "$as_me:13391: result: no" >&5 13392echo "${ECHO_T}no" >&6 13393fi 13394 13395echo "$as_me:13395: checking if you want to link with neXT Athena library" >&5 13396echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6 13397withval= 13398 13399# Check whether --with-neXtaw or --without-neXtaw was given. 13400if test "${with_neXtaw+set}" = set; then 13401 withval="$with_neXtaw" 13402 13403fi; 13404if test "$withval" = yes ; then 13405 cf_x_athena=neXtaw 13406 echo "$as_me:13406: result: yes" >&5 13407echo "${ECHO_T}yes" >&6 13408else 13409 echo "$as_me:13409: result: no" >&5 13410echo "${ECHO_T}no" >&6 13411fi 13412 13413echo "$as_me:13413: checking if you want to link with Athena-Plus library" >&5 13414echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6 13415withval= 13416 13417# Check whether --with-XawPlus or --without-XawPlus was given. 13418if test "${with_XawPlus+set}" = set; then 13419 withval="$with_XawPlus" 13420 13421fi; 13422if test "$withval" = yes ; then 13423 cf_x_athena=XawPlus 13424 echo "$as_me:13424: result: yes" >&5 13425echo "${ECHO_T}yes" >&6 13426else 13427 echo "$as_me:13427: result: no" >&5 13428echo "${ECHO_T}no" >&6 13429fi 13430 13431cf_x_athena_lib="" 13432 13433if test "$PKG_CONFIG" != none ; then 13434 cf_athena_list= 13435 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6" 13436 for cf_athena_pkg in \ 13437 $cf_athena_list \ 13438 ${cf_x_athena} \ 13439 ${cf_x_athena}-devel \ 13440 lib${cf_x_athena} \ 13441 lib${cf_x_athena}-devel 13442 do 13443 13444if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_athena_pkg"; then 13445 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6 13446 13447echo "${as_me:-configure}:13447: testing found package $cf_athena_pkg ..." 1>&5 13448 13449 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_athena_pkg" 2>/dev/null`" 13450 cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_athena_pkg" 2>/dev/null`" 13451 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6 13452 13453echo "${as_me:-configure}:13453: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5 13454 13455 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6 13456 13457echo "${as_me:-configure}:13457: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5 13458 13459cf_fix_cppflags=no 13460cf_new_cflags= 13461cf_new_cppflags= 13462cf_new_extra_cppflags= 13463 13464for cf_add_cflags in $cf_pkgconfig_incs 13465do 13466case "$cf_fix_cppflags" in 13467(no) 13468 case "$cf_add_cflags" in 13469 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 13470 case "$cf_add_cflags" in 13471 (-D*) 13472 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 13473 13474 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13475 && test -z "${cf_tst_cflags}" \ 13476 && cf_fix_cppflags=yes 13477 13478 if test "$cf_fix_cppflags" = yes ; then 13479 13480 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13481 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13482 13483 continue 13484 elif test "${cf_tst_cflags}" = "\"'" ; then 13485 13486 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13487 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13488 13489 continue 13490 fi 13491 ;; 13492 esac 13493 case "$CPPFLAGS" in 13494 (*$cf_add_cflags) 13495 ;; 13496 (*) 13497 case "$cf_add_cflags" in 13498 (-D*) 13499 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 13500 13501CPPFLAGS=`echo "$CPPFLAGS" | \ 13502 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 13503 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 13504 13505 ;; 13506 esac 13507 13508 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 13509 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 13510 13511 ;; 13512 esac 13513 ;; 13514 (*) 13515 13516 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 13517 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 13518 13519 ;; 13520 esac 13521 ;; 13522(yes) 13523 13524 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13525 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13526 13527 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 13528 13529 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13530 && test -z "${cf_tst_cflags}" \ 13531 && cf_fix_cppflags=no 13532 ;; 13533esac 13534done 13535 13536if test -n "$cf_new_cflags" ; then 13537 13538 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 13539 CFLAGS="${CFLAGS}$cf_new_cflags" 13540 13541fi 13542 13543if test -n "$cf_new_cppflags" ; then 13544 13545 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 13546 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 13547 13548fi 13549 13550if test -n "$cf_new_extra_cppflags" ; then 13551 13552 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 13553 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 13554 13555fi 13556 13557cf_add_libs="$LIBS" 13558# reverse order 13559cf_add_0lib= 13560for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 13561# filter duplicates 13562for cf_add_1lib in $cf_add_0lib; do 13563 for cf_add_2lib in $cf_add_libs; do 13564 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 13565 cf_add_1lib= 13566 break 13567 fi 13568 done 13569 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 13570done 13571LIBS="$cf_add_libs" 13572 13573 cf_x_athena_lib="$cf_pkgconfig_libs" 13574 13575cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 13576 13577 cat >>confdefs.h <<EOF 13578#define $cf_x_athena_LIBS 1 13579EOF 13580 13581 for cf_trim_lib in Xmu Xt X11 13582 do 13583 case "$LIBS" in 13584 (*-l$cf_trim_lib\ *-l$cf_trim_lib*) 13585 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'` 13586 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6 13587 13588echo "${as_me:-configure}:13588: testing ..trimmed $LIBS ..." 1>&5 13589 13590 ;; 13591 esac 13592 done 13593 13594echo "$as_me:13594: checking for usable $cf_x_athena/Xmu package" >&5 13595echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6 13596if test "${cf_cv_xaw_compat+set}" = set; then 13597 echo $ECHO_N "(cached) $ECHO_C" >&6 13598else 13599 13600cat >"conftest.$ac_ext" <<_ACEOF 13601#line 13601 "configure" 13602#include "confdefs.h" 13603 13604$ac_includes_default 13605#include <X11/Xmu/CharSet.h> 13606 13607int 13608main (void) 13609{ 13610 13611int check = XmuCompareISOLatin1("big", "small"); 13612(void)check; 13613 13614 ; 13615 return 0; 13616} 13617_ACEOF 13618rm -f "conftest.$ac_objext" "conftest$ac_exeext" 13619if { (eval echo "$as_me:13619: \"$ac_link\"") >&5 13620 (eval $ac_link) 2>&5 13621 ac_status=$? 13622 echo "$as_me:13622: \$? = $ac_status" >&5 13623 (exit "$ac_status"); } && 13624 { ac_try='test -s "conftest$ac_exeext"' 13625 { (eval echo "$as_me:13625: \"$ac_try\"") >&5 13626 (eval $ac_try) 2>&5 13627 ac_status=$? 13628 echo "$as_me:13628: \$? = $ac_status" >&5 13629 (exit "$ac_status"); }; }; then 13630 cf_cv_xaw_compat=yes 13631else 13632 echo "$as_me: failed program was:" >&5 13633cat "conftest.$ac_ext" >&5 13634cf_cv_xaw_compat=no 13635fi 13636rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 13637fi 13638echo "$as_me:13638: result: $cf_cv_xaw_compat" >&5 13639echo "${ECHO_T}$cf_cv_xaw_compat" >&6 13640 13641 if test "$cf_cv_xaw_compat" = no 13642 then 13643 # workaround for broken ".pc" files... 13644 case "$cf_x_athena_lib" in 13645 (*-lXmu*) 13646 ;; 13647 (*) 13648 test -n "$verbose" && echo " work around broken package" 1>&6 13649 13650echo "${as_me:-configure}:13650: testing work around broken package ..." 1>&5 13651 13652 cf_save_xmu="$LIBS" 13653 cf_first_lib=`echo "$cf_save_xmu" | sed -e 's/^ *//' -e 's/ .*//'` 13654 13655if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xmu"; then 13656 test -n "$verbose" && echo " found package xmu" 1>&6 13657 13658echo "${as_me:-configure}:13658: testing found package xmu ..." 1>&5 13659 13660 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xmu" 2>/dev/null`" 13661 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xmu" 2>/dev/null`" 13662 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6 13663 13664echo "${as_me:-configure}:13664: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5 13665 13666 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6 13667 13668echo "${as_me:-configure}:13668: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5 13669 13670cf_fix_cppflags=no 13671cf_new_cflags= 13672cf_new_cppflags= 13673cf_new_extra_cppflags= 13674 13675for cf_add_cflags in $cf_pkgconfig_incs 13676do 13677case "$cf_fix_cppflags" in 13678(no) 13679 case "$cf_add_cflags" in 13680 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 13681 case "$cf_add_cflags" in 13682 (-D*) 13683 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 13684 13685 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13686 && test -z "${cf_tst_cflags}" \ 13687 && cf_fix_cppflags=yes 13688 13689 if test "$cf_fix_cppflags" = yes ; then 13690 13691 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13692 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13693 13694 continue 13695 elif test "${cf_tst_cflags}" = "\"'" ; then 13696 13697 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13698 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13699 13700 continue 13701 fi 13702 ;; 13703 esac 13704 case "$CPPFLAGS" in 13705 (*$cf_add_cflags) 13706 ;; 13707 (*) 13708 case "$cf_add_cflags" in 13709 (-D*) 13710 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 13711 13712CPPFLAGS=`echo "$CPPFLAGS" | \ 13713 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 13714 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 13715 13716 ;; 13717 esac 13718 13719 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 13720 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 13721 13722 ;; 13723 esac 13724 ;; 13725 (*) 13726 13727 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 13728 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 13729 13730 ;; 13731 esac 13732 ;; 13733(yes) 13734 13735 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13736 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13737 13738 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 13739 13740 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13741 && test -z "${cf_tst_cflags}" \ 13742 && cf_fix_cppflags=no 13743 ;; 13744esac 13745done 13746 13747if test -n "$cf_new_cflags" ; then 13748 13749 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 13750 CFLAGS="${CFLAGS}$cf_new_cflags" 13751 13752fi 13753 13754if test -n "$cf_new_cppflags" ; then 13755 13756 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 13757 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 13758 13759fi 13760 13761if test -n "$cf_new_extra_cppflags" ; then 13762 13763 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 13764 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 13765 13766fi 13767 13768cf_add_libs="$LIBS" 13769# reverse order 13770cf_add_0lib= 13771for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 13772# filter duplicates 13773for cf_add_1lib in $cf_add_0lib; do 13774 for cf_add_2lib in $cf_add_libs; do 13775 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 13776 cf_add_1lib= 13777 break 13778 fi 13779 done 13780 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 13781done 13782LIBS="$cf_add_libs" 13783 13784 LIBS="$cf_save_xmu" 13785 13786test -n "$verbose" && echo " ...before $LIBS" 1>&6 13787 13788echo "${as_me:-configure}:13788: testing ...before $LIBS ..." 1>&5 13789 13790LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib $cf_pkgconfig_libs %" -e 's% % %g'` 13791test -n "$verbose" && echo " ...after $LIBS" 1>&6 13792 13793echo "${as_me:-configure}:13793: testing ...after $LIBS ..." 1>&5 13794 13795else 13796 cf_pkgconfig_incs= 13797 cf_pkgconfig_libs= 13798 13799test -n "$verbose" && echo " ...before $LIBS" 1>&6 13800 13801echo "${as_me:-configure}:13801: testing ...before $LIBS ..." 1>&5 13802 13803LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib -lXmu %" -e 's% % %g'` 13804test -n "$verbose" && echo " ...after $LIBS" 1>&6 13805 13806echo "${as_me:-configure}:13806: testing ...after $LIBS ..." 1>&5 13807 13808fi 13809 13810 for cf_trim_lib in Xmu Xt X11 13811 do 13812 case "$LIBS" in 13813 (*-l$cf_trim_lib\ *-l$cf_trim_lib*) 13814 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'` 13815 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6 13816 13817echo "${as_me:-configure}:13817: testing ..trimmed $LIBS ..." 1>&5 13818 13819 ;; 13820 esac 13821 done 13822 13823 ;; 13824 esac 13825 fi 13826 13827 break 13828else 13829 cf_pkgconfig_incs= 13830 cf_pkgconfig_libs= 13831 : 13832fi 13833 13834 done 13835fi 13836 13837if test -z "$cf_x_athena_lib" ; then 13838 13839if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "Xext"; then 13840 test -n "$verbose" && echo " found package Xext" 1>&6 13841 13842echo "${as_me:-configure}:13842: testing found package Xext ..." 1>&5 13843 13844 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "Xext" 2>/dev/null`" 13845 cf_pkgconfig_libs="`$PKG_CONFIG --libs "Xext" 2>/dev/null`" 13846 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6 13847 13848echo "${as_me:-configure}:13848: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5 13849 13850 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6 13851 13852echo "${as_me:-configure}:13852: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5 13853 13854cf_fix_cppflags=no 13855cf_new_cflags= 13856cf_new_cppflags= 13857cf_new_extra_cppflags= 13858 13859for cf_add_cflags in $cf_pkgconfig_incs 13860do 13861case "$cf_fix_cppflags" in 13862(no) 13863 case "$cf_add_cflags" in 13864 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 13865 case "$cf_add_cflags" in 13866 (-D*) 13867 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 13868 13869 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13870 && test -z "${cf_tst_cflags}" \ 13871 && cf_fix_cppflags=yes 13872 13873 if test "$cf_fix_cppflags" = yes ; then 13874 13875 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13876 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13877 13878 continue 13879 elif test "${cf_tst_cflags}" = "\"'" ; then 13880 13881 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13882 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13883 13884 continue 13885 fi 13886 ;; 13887 esac 13888 case "$CPPFLAGS" in 13889 (*$cf_add_cflags) 13890 ;; 13891 (*) 13892 case "$cf_add_cflags" in 13893 (-D*) 13894 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 13895 13896CPPFLAGS=`echo "$CPPFLAGS" | \ 13897 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 13898 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 13899 13900 ;; 13901 esac 13902 13903 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 13904 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 13905 13906 ;; 13907 esac 13908 ;; 13909 (*) 13910 13911 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 13912 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 13913 13914 ;; 13915 esac 13916 ;; 13917(yes) 13918 13919 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13920 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13921 13922 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 13923 13924 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13925 && test -z "${cf_tst_cflags}" \ 13926 && cf_fix_cppflags=no 13927 ;; 13928esac 13929done 13930 13931if test -n "$cf_new_cflags" ; then 13932 13933 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 13934 CFLAGS="${CFLAGS}$cf_new_cflags" 13935 13936fi 13937 13938if test -n "$cf_new_cppflags" ; then 13939 13940 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 13941 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 13942 13943fi 13944 13945if test -n "$cf_new_extra_cppflags" ; then 13946 13947 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 13948 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 13949 13950fi 13951 13952cf_add_libs="$LIBS" 13953# reverse order 13954cf_add_0lib= 13955for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 13956# filter duplicates 13957for cf_add_1lib in $cf_add_0lib; do 13958 for cf_add_2lib in $cf_add_libs; do 13959 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 13960 cf_add_1lib= 13961 break 13962 fi 13963 done 13964 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 13965done 13966LIBS="$cf_add_libs" 13967 13968 : 13969else 13970 cf_pkgconfig_incs= 13971 cf_pkgconfig_libs= 13972 13973 echo "$as_me:13973: checking for XextCreateExtension in -lXext" >&5 13974echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6 13975if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then 13976 echo $ECHO_N "(cached) $ECHO_C" >&6 13977else 13978 ac_check_lib_save_LIBS=$LIBS 13979LIBS="-lXext $LIBS" 13980cat >"conftest.$ac_ext" <<_ACEOF 13981#line 13981 "configure" 13982#include "confdefs.h" 13983 13984/* Override any gcc2 internal prototype to avoid an error. */ 13985#ifdef __cplusplus 13986extern "C" 13987#endif 13988/* We use char because int might match the return type of a gcc2 13989 builtin and then its argument prototype would still apply. */ 13990char XextCreateExtension (void); 13991int 13992main (void) 13993{ 13994XextCreateExtension (); 13995 ; 13996 return 0; 13997} 13998_ACEOF 13999rm -f "conftest.$ac_objext" "conftest$ac_exeext" 14000if { (eval echo "$as_me:14000: \"$ac_link\"") >&5 14001 (eval $ac_link) 2>&5 14002 ac_status=$? 14003 echo "$as_me:14003: \$? = $ac_status" >&5 14004 (exit "$ac_status"); } && 14005 { ac_try='test -s "conftest$ac_exeext"' 14006 { (eval echo "$as_me:14006: \"$ac_try\"") >&5 14007 (eval $ac_try) 2>&5 14008 ac_status=$? 14009 echo "$as_me:14009: \$? = $ac_status" >&5 14010 (exit "$ac_status"); }; }; then 14011 ac_cv_lib_Xext_XextCreateExtension=yes 14012else 14013 echo "$as_me: failed program was:" >&5 14014cat "conftest.$ac_ext" >&5 14015ac_cv_lib_Xext_XextCreateExtension=no 14016fi 14017rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 14018LIBS=$ac_check_lib_save_LIBS 14019fi 14020echo "$as_me:14020: result: $ac_cv_lib_Xext_XextCreateExtension" >&5 14021echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6 14022if test "$ac_cv_lib_Xext_XextCreateExtension" = yes; then 14023 14024cf_add_libs="$LIBS" 14025# reverse order 14026cf_add_0lib= 14027for cf_add_1lib in -lXext; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 14028# filter duplicates 14029for cf_add_1lib in $cf_add_0lib; do 14030 for cf_add_2lib in $cf_add_libs; do 14031 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 14032 cf_add_1lib= 14033 break 14034 fi 14035 done 14036 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 14037done 14038LIBS="$cf_add_libs" 14039 14040fi 14041 14042fi 14043 14044# OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new) (and 14045# in some cases has installed dummy files in the former, other cases replaced 14046# it with a link to the new location). This complicates the configure script. 14047# Check for that pitfall, and recover using pkg-config 14048# 14049# If none of these are set, the configuration is almost certainly broken. 14050if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}" 14051then 14052 14053if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then 14054 test -n "$verbose" && echo " found package x11" 1>&6 14055 14056echo "${as_me:-configure}:14056: testing found package x11 ..." 1>&5 14057 14058 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`" 14059 cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`" 14060 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6 14061 14062echo "${as_me:-configure}:14062: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 14063 14064 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6 14065 14066echo "${as_me:-configure}:14066: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5 14067 14068cf_fix_cppflags=no 14069cf_new_cflags= 14070cf_new_cppflags= 14071cf_new_extra_cppflags= 14072 14073for cf_add_cflags in $cf_pkgconfig_incs 14074do 14075case "$cf_fix_cppflags" in 14076(no) 14077 case "$cf_add_cflags" in 14078 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 14079 case "$cf_add_cflags" in 14080 (-D*) 14081 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 14082 14083 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14084 && test -z "${cf_tst_cflags}" \ 14085 && cf_fix_cppflags=yes 14086 14087 if test "$cf_fix_cppflags" = yes ; then 14088 14089 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14090 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14091 14092 continue 14093 elif test "${cf_tst_cflags}" = "\"'" ; then 14094 14095 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14096 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14097 14098 continue 14099 fi 14100 ;; 14101 esac 14102 case "$CPPFLAGS" in 14103 (*$cf_add_cflags) 14104 ;; 14105 (*) 14106 case "$cf_add_cflags" in 14107 (-D*) 14108 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 14109 14110CPPFLAGS=`echo "$CPPFLAGS" | \ 14111 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 14112 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 14113 14114 ;; 14115 esac 14116 14117 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 14118 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 14119 14120 ;; 14121 esac 14122 ;; 14123 (*) 14124 14125 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 14126 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 14127 14128 ;; 14129 esac 14130 ;; 14131(yes) 14132 14133 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14134 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14135 14136 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 14137 14138 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14139 && test -z "${cf_tst_cflags}" \ 14140 && cf_fix_cppflags=no 14141 ;; 14142esac 14143done 14144 14145if test -n "$cf_new_cflags" ; then 14146 14147 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 14148 CFLAGS="${CFLAGS}$cf_new_cflags" 14149 14150fi 14151 14152if test -n "$cf_new_cppflags" ; then 14153 14154 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 14155 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 14156 14157fi 14158 14159if test -n "$cf_new_extra_cppflags" ; then 14160 14161 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 14162 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 14163 14164fi 14165 14166cf_add_libs="$LIBS" 14167# reverse order 14168cf_add_0lib= 14169for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 14170# filter duplicates 14171for cf_add_1lib in $cf_add_0lib; do 14172 for cf_add_2lib in $cf_add_libs; do 14173 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 14174 cf_add_1lib= 14175 break 14176 fi 14177 done 14178 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 14179done 14180LIBS="$cf_add_libs" 14181 14182 : 14183else 14184 cf_pkgconfig_incs= 14185 cf_pkgconfig_libs= 14186 { echo "$as_me:14186: WARNING: unable to find X11 library" >&5 14187echo "$as_me: WARNING: unable to find X11 library" >&2;} 14188fi 14189 14190if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then 14191 test -n "$verbose" && echo " found package ice" 1>&6 14192 14193echo "${as_me:-configure}:14193: testing found package ice ..." 1>&5 14194 14195 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`" 14196 cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`" 14197 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6 14198 14199echo "${as_me:-configure}:14199: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5 14200 14201 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6 14202 14203echo "${as_me:-configure}:14203: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5 14204 14205cf_fix_cppflags=no 14206cf_new_cflags= 14207cf_new_cppflags= 14208cf_new_extra_cppflags= 14209 14210for cf_add_cflags in $cf_pkgconfig_incs 14211do 14212case "$cf_fix_cppflags" in 14213(no) 14214 case "$cf_add_cflags" in 14215 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 14216 case "$cf_add_cflags" in 14217 (-D*) 14218 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 14219 14220 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14221 && test -z "${cf_tst_cflags}" \ 14222 && cf_fix_cppflags=yes 14223 14224 if test "$cf_fix_cppflags" = yes ; then 14225 14226 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14227 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14228 14229 continue 14230 elif test "${cf_tst_cflags}" = "\"'" ; then 14231 14232 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14233 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14234 14235 continue 14236 fi 14237 ;; 14238 esac 14239 case "$CPPFLAGS" in 14240 (*$cf_add_cflags) 14241 ;; 14242 (*) 14243 case "$cf_add_cflags" in 14244 (-D*) 14245 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 14246 14247CPPFLAGS=`echo "$CPPFLAGS" | \ 14248 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 14249 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 14250 14251 ;; 14252 esac 14253 14254 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 14255 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 14256 14257 ;; 14258 esac 14259 ;; 14260 (*) 14261 14262 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 14263 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 14264 14265 ;; 14266 esac 14267 ;; 14268(yes) 14269 14270 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14271 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14272 14273 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 14274 14275 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14276 && test -z "${cf_tst_cflags}" \ 14277 && cf_fix_cppflags=no 14278 ;; 14279esac 14280done 14281 14282if test -n "$cf_new_cflags" ; then 14283 14284 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 14285 CFLAGS="${CFLAGS}$cf_new_cflags" 14286 14287fi 14288 14289if test -n "$cf_new_cppflags" ; then 14290 14291 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 14292 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 14293 14294fi 14295 14296if test -n "$cf_new_extra_cppflags" ; then 14297 14298 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 14299 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 14300 14301fi 14302 14303cf_add_libs="$LIBS" 14304# reverse order 14305cf_add_0lib= 14306for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 14307# filter duplicates 14308for cf_add_1lib in $cf_add_0lib; do 14309 for cf_add_2lib in $cf_add_libs; do 14310 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 14311 cf_add_1lib= 14312 break 14313 fi 14314 done 14315 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 14316done 14317LIBS="$cf_add_libs" 14318 14319 : 14320else 14321 cf_pkgconfig_incs= 14322 cf_pkgconfig_libs= 14323 { echo "$as_me:14323: WARNING: unable to find ICE library" >&5 14324echo "$as_me: WARNING: unable to find ICE library" >&2;} 14325fi 14326 14327if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then 14328 test -n "$verbose" && echo " found package sm" 1>&6 14329 14330echo "${as_me:-configure}:14330: testing found package sm ..." 1>&5 14331 14332 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`" 14333 cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`" 14334 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6 14335 14336echo "${as_me:-configure}:14336: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5 14337 14338 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6 14339 14340echo "${as_me:-configure}:14340: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5 14341 14342cf_fix_cppflags=no 14343cf_new_cflags= 14344cf_new_cppflags= 14345cf_new_extra_cppflags= 14346 14347for cf_add_cflags in $cf_pkgconfig_incs 14348do 14349case "$cf_fix_cppflags" in 14350(no) 14351 case "$cf_add_cflags" in 14352 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 14353 case "$cf_add_cflags" in 14354 (-D*) 14355 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 14356 14357 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14358 && test -z "${cf_tst_cflags}" \ 14359 && cf_fix_cppflags=yes 14360 14361 if test "$cf_fix_cppflags" = yes ; then 14362 14363 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14364 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14365 14366 continue 14367 elif test "${cf_tst_cflags}" = "\"'" ; then 14368 14369 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14370 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14371 14372 continue 14373 fi 14374 ;; 14375 esac 14376 case "$CPPFLAGS" in 14377 (*$cf_add_cflags) 14378 ;; 14379 (*) 14380 case "$cf_add_cflags" in 14381 (-D*) 14382 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 14383 14384CPPFLAGS=`echo "$CPPFLAGS" | \ 14385 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 14386 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 14387 14388 ;; 14389 esac 14390 14391 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 14392 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 14393 14394 ;; 14395 esac 14396 ;; 14397 (*) 14398 14399 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 14400 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 14401 14402 ;; 14403 esac 14404 ;; 14405(yes) 14406 14407 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14408 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14409 14410 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 14411 14412 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14413 && test -z "${cf_tst_cflags}" \ 14414 && cf_fix_cppflags=no 14415 ;; 14416esac 14417done 14418 14419if test -n "$cf_new_cflags" ; then 14420 14421 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 14422 CFLAGS="${CFLAGS}$cf_new_cflags" 14423 14424fi 14425 14426if test -n "$cf_new_cppflags" ; then 14427 14428 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 14429 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 14430 14431fi 14432 14433if test -n "$cf_new_extra_cppflags" ; then 14434 14435 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 14436 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 14437 14438fi 14439 14440cf_add_libs="$LIBS" 14441# reverse order 14442cf_add_0lib= 14443for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 14444# filter duplicates 14445for cf_add_1lib in $cf_add_0lib; do 14446 for cf_add_2lib in $cf_add_libs; do 14447 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 14448 cf_add_1lib= 14449 break 14450 fi 14451 done 14452 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 14453done 14454LIBS="$cf_add_libs" 14455 14456 : 14457else 14458 cf_pkgconfig_incs= 14459 cf_pkgconfig_libs= 14460 { echo "$as_me:14460: WARNING: unable to find SM library" >&5 14461echo "$as_me: WARNING: unable to find SM library" >&2;} 14462fi 14463 14464if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then 14465 test -n "$verbose" && echo " found package xt" 1>&6 14466 14467echo "${as_me:-configure}:14467: testing found package xt ..." 1>&5 14468 14469 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`" 14470 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`" 14471 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6 14472 14473echo "${as_me:-configure}:14473: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5 14474 14475 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6 14476 14477echo "${as_me:-configure}:14477: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5 14478 14479cf_fix_cppflags=no 14480cf_new_cflags= 14481cf_new_cppflags= 14482cf_new_extra_cppflags= 14483 14484for cf_add_cflags in $cf_pkgconfig_incs 14485do 14486case "$cf_fix_cppflags" in 14487(no) 14488 case "$cf_add_cflags" in 14489 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 14490 case "$cf_add_cflags" in 14491 (-D*) 14492 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 14493 14494 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14495 && test -z "${cf_tst_cflags}" \ 14496 && cf_fix_cppflags=yes 14497 14498 if test "$cf_fix_cppflags" = yes ; then 14499 14500 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14501 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14502 14503 continue 14504 elif test "${cf_tst_cflags}" = "\"'" ; then 14505 14506 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14507 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14508 14509 continue 14510 fi 14511 ;; 14512 esac 14513 case "$CPPFLAGS" in 14514 (*$cf_add_cflags) 14515 ;; 14516 (*) 14517 case "$cf_add_cflags" in 14518 (-D*) 14519 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 14520 14521CPPFLAGS=`echo "$CPPFLAGS" | \ 14522 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 14523 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 14524 14525 ;; 14526 esac 14527 14528 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 14529 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 14530 14531 ;; 14532 esac 14533 ;; 14534 (*) 14535 14536 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 14537 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 14538 14539 ;; 14540 esac 14541 ;; 14542(yes) 14543 14544 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14545 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14546 14547 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 14548 14549 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14550 && test -z "${cf_tst_cflags}" \ 14551 && cf_fix_cppflags=no 14552 ;; 14553esac 14554done 14555 14556if test -n "$cf_new_cflags" ; then 14557 14558 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 14559 CFLAGS="${CFLAGS}$cf_new_cflags" 14560 14561fi 14562 14563if test -n "$cf_new_cppflags" ; then 14564 14565 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 14566 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 14567 14568fi 14569 14570if test -n "$cf_new_extra_cppflags" ; then 14571 14572 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 14573 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 14574 14575fi 14576 14577cf_add_libs="$LIBS" 14578# reverse order 14579cf_add_0lib= 14580for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 14581# filter duplicates 14582for cf_add_1lib in $cf_add_0lib; do 14583 for cf_add_2lib in $cf_add_libs; do 14584 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 14585 cf_add_1lib= 14586 break 14587 fi 14588 done 14589 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 14590done 14591LIBS="$cf_add_libs" 14592 14593 : 14594else 14595 cf_pkgconfig_incs= 14596 cf_pkgconfig_libs= 14597 { echo "$as_me:14597: WARNING: unable to find Xt library" >&5 14598echo "$as_me: WARNING: unable to find Xt library" >&2;} 14599fi 14600 14601else 14602 LIBS="$X_PRE_LIBS $LIBS $X_EXTRA_LIBS" 14603fi 14604 14605cf_have_X_LIBS=no 14606 14607if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then 14608 test -n "$verbose" && echo " found package xt" 1>&6 14609 14610echo "${as_me:-configure}:14610: testing found package xt ..." 1>&5 14611 14612 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`" 14613 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`" 14614 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6 14615 14616echo "${as_me:-configure}:14616: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5 14617 14618 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6 14619 14620echo "${as_me:-configure}:14620: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5 14621 14622cf_fix_cppflags=no 14623cf_new_cflags= 14624cf_new_cppflags= 14625cf_new_extra_cppflags= 14626 14627for cf_add_cflags in $cf_pkgconfig_incs 14628do 14629case "$cf_fix_cppflags" in 14630(no) 14631 case "$cf_add_cflags" in 14632 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 14633 case "$cf_add_cflags" in 14634 (-D*) 14635 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 14636 14637 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14638 && test -z "${cf_tst_cflags}" \ 14639 && cf_fix_cppflags=yes 14640 14641 if test "$cf_fix_cppflags" = yes ; then 14642 14643 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14644 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14645 14646 continue 14647 elif test "${cf_tst_cflags}" = "\"'" ; then 14648 14649 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14650 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14651 14652 continue 14653 fi 14654 ;; 14655 esac 14656 case "$CPPFLAGS" in 14657 (*$cf_add_cflags) 14658 ;; 14659 (*) 14660 case "$cf_add_cflags" in 14661 (-D*) 14662 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 14663 14664CPPFLAGS=`echo "$CPPFLAGS" | \ 14665 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 14666 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 14667 14668 ;; 14669 esac 14670 14671 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 14672 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 14673 14674 ;; 14675 esac 14676 ;; 14677 (*) 14678 14679 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 14680 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 14681 14682 ;; 14683 esac 14684 ;; 14685(yes) 14686 14687 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14688 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14689 14690 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 14691 14692 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14693 && test -z "${cf_tst_cflags}" \ 14694 && cf_fix_cppflags=no 14695 ;; 14696esac 14697done 14698 14699if test -n "$cf_new_cflags" ; then 14700 14701 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 14702 CFLAGS="${CFLAGS}$cf_new_cflags" 14703 14704fi 14705 14706if test -n "$cf_new_cppflags" ; then 14707 14708 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 14709 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 14710 14711fi 14712 14713if test -n "$cf_new_extra_cppflags" ; then 14714 14715 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 14716 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 14717 14718fi 14719 14720cf_add_libs="$LIBS" 14721# reverse order 14722cf_add_0lib= 14723for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 14724# filter duplicates 14725for cf_add_1lib in $cf_add_0lib; do 14726 for cf_add_2lib in $cf_add_libs; do 14727 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 14728 cf_add_1lib= 14729 break 14730 fi 14731 done 14732 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 14733done 14734LIBS="$cf_add_libs" 14735 14736 case "x$LIBS" in 14737 (*-lX11*) 14738 ;; 14739 (*) 14740# we have an "xt" package, but it may omit Xt's dependency on X11 14741echo "$as_me:14741: checking for usable X dependency" >&5 14742echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6 14743if test "${cf_cv_xt_x11_compat+set}" = set; then 14744 echo $ECHO_N "(cached) $ECHO_C" >&6 14745else 14746 14747cat >"conftest.$ac_ext" <<_ACEOF 14748#line 14748 "configure" 14749#include "confdefs.h" 14750 14751$ac_includes_default 14752#include <X11/Xlib.h> 14753 14754int 14755main (void) 14756{ 14757 14758 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0); 14759 int rc2 = XClearWindow((Display*) 0, (Window) 0); 14760 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0); 14761 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0); 14762 14763 ; 14764 return 0; 14765} 14766_ACEOF 14767rm -f "conftest.$ac_objext" "conftest$ac_exeext" 14768if { (eval echo "$as_me:14768: \"$ac_link\"") >&5 14769 (eval $ac_link) 2>&5 14770 ac_status=$? 14771 echo "$as_me:14771: \$? = $ac_status" >&5 14772 (exit "$ac_status"); } && 14773 { ac_try='test -s "conftest$ac_exeext"' 14774 { (eval echo "$as_me:14774: \"$ac_try\"") >&5 14775 (eval $ac_try) 2>&5 14776 ac_status=$? 14777 echo "$as_me:14777: \$? = $ac_status" >&5 14778 (exit "$ac_status"); }; }; then 14779 cf_cv_xt_x11_compat=yes 14780else 14781 echo "$as_me: failed program was:" >&5 14782cat "conftest.$ac_ext" >&5 14783cf_cv_xt_x11_compat=no 14784fi 14785rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 14786fi 14787echo "$as_me:14787: result: $cf_cv_xt_x11_compat" >&5 14788echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6 14789 if test "$cf_cv_xt_x11_compat" = no 14790 then 14791 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6 14792 14793echo "${as_me:-configure}:14793: testing work around broken X11 dependency ..." 1>&5 14794 14795 # 2010/11/19 - good enough until a working Xt on Xcb is delivered. 14796 14797if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then 14798 test -n "$verbose" && echo " found package x11" 1>&6 14799 14800echo "${as_me:-configure}:14800: testing found package x11 ..." 1>&5 14801 14802 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`" 14803 cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`" 14804 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6 14805 14806echo "${as_me:-configure}:14806: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 14807 14808 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6 14809 14810echo "${as_me:-configure}:14810: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5 14811 14812cf_fix_cppflags=no 14813cf_new_cflags= 14814cf_new_cppflags= 14815cf_new_extra_cppflags= 14816 14817for cf_add_cflags in $cf_pkgconfig_incs 14818do 14819case "$cf_fix_cppflags" in 14820(no) 14821 case "$cf_add_cflags" in 14822 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 14823 case "$cf_add_cflags" in 14824 (-D*) 14825 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 14826 14827 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14828 && test -z "${cf_tst_cflags}" \ 14829 && cf_fix_cppflags=yes 14830 14831 if test "$cf_fix_cppflags" = yes ; then 14832 14833 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14834 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14835 14836 continue 14837 elif test "${cf_tst_cflags}" = "\"'" ; then 14838 14839 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14840 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14841 14842 continue 14843 fi 14844 ;; 14845 esac 14846 case "$CPPFLAGS" in 14847 (*$cf_add_cflags) 14848 ;; 14849 (*) 14850 case "$cf_add_cflags" in 14851 (-D*) 14852 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 14853 14854CPPFLAGS=`echo "$CPPFLAGS" | \ 14855 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 14856 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 14857 14858 ;; 14859 esac 14860 14861 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 14862 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 14863 14864 ;; 14865 esac 14866 ;; 14867 (*) 14868 14869 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 14870 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 14871 14872 ;; 14873 esac 14874 ;; 14875(yes) 14876 14877 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14878 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14879 14880 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 14881 14882 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14883 && test -z "${cf_tst_cflags}" \ 14884 && cf_fix_cppflags=no 14885 ;; 14886esac 14887done 14888 14889if test -n "$cf_new_cflags" ; then 14890 14891 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 14892 CFLAGS="${CFLAGS}$cf_new_cflags" 14893 14894fi 14895 14896if test -n "$cf_new_cppflags" ; then 14897 14898 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 14899 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 14900 14901fi 14902 14903if test -n "$cf_new_extra_cppflags" ; then 14904 14905 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 14906 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 14907 14908fi 14909 14910cf_add_libs="$LIBS" 14911# reverse order 14912cf_add_0lib= 14913for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 14914# filter duplicates 14915for cf_add_1lib in $cf_add_0lib; do 14916 for cf_add_2lib in $cf_add_libs; do 14917 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 14918 cf_add_1lib= 14919 break 14920 fi 14921 done 14922 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 14923done 14924LIBS="$cf_add_libs" 14925 14926 : 14927else 14928 cf_pkgconfig_incs= 14929 cf_pkgconfig_libs= 14930 14931test -n "$verbose" && echo " ...before $LIBS" 1>&6 14932 14933echo "${as_me:-configure}:14933: testing ...before $LIBS ..." 1>&5 14934 14935LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'` 14936test -n "$verbose" && echo " ...after $LIBS" 1>&6 14937 14938echo "${as_me:-configure}:14938: testing ...after $LIBS ..." 1>&5 14939 14940fi 14941 14942 fi 14943 ;; 14944 esac 14945 14946echo "$as_me:14946: checking for usable X Toolkit package" >&5 14947echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6 14948if test "${cf_cv_xt_ice_compat+set}" = set; then 14949 echo $ECHO_N "(cached) $ECHO_C" >&6 14950else 14951 14952cat >"conftest.$ac_ext" <<_ACEOF 14953#line 14953 "configure" 14954#include "confdefs.h" 14955 14956$ac_includes_default 14957#include <X11/Shell.h> 14958 14959int 14960main (void) 14961{ 14962int num = IceConnectionNumber(0); (void) num 14963 14964 ; 14965 return 0; 14966} 14967_ACEOF 14968rm -f "conftest.$ac_objext" "conftest$ac_exeext" 14969if { (eval echo "$as_me:14969: \"$ac_link\"") >&5 14970 (eval $ac_link) 2>&5 14971 ac_status=$? 14972 echo "$as_me:14972: \$? = $ac_status" >&5 14973 (exit "$ac_status"); } && 14974 { ac_try='test -s "conftest$ac_exeext"' 14975 { (eval echo "$as_me:14975: \"$ac_try\"") >&5 14976 (eval $ac_try) 2>&5 14977 ac_status=$? 14978 echo "$as_me:14978: \$? = $ac_status" >&5 14979 (exit "$ac_status"); }; }; then 14980 cf_cv_xt_ice_compat=yes 14981else 14982 echo "$as_me: failed program was:" >&5 14983cat "conftest.$ac_ext" >&5 14984cf_cv_xt_ice_compat=no 14985fi 14986rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 14987fi 14988echo "$as_me:14988: result: $cf_cv_xt_ice_compat" >&5 14989echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6 14990 14991 if test "$cf_cv_xt_ice_compat" = no 14992 then 14993 # workaround for broken ".pc" files used for X Toolkit. 14994 case "x$X_PRE_LIBS" in 14995 (*-lICE*) 14996 case "x$LIBS" in 14997 (*-lICE*) 14998 ;; 14999 (*) 15000 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6 15001 15002echo "${as_me:-configure}:15002: testing work around broken ICE dependency ..." 1>&5 15003 15004if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then 15005 test -n "$verbose" && echo " found package ice" 1>&6 15006 15007echo "${as_me:-configure}:15007: testing found package ice ..." 1>&5 15008 15009 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`" 15010 cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`" 15011 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6 15012 15013echo "${as_me:-configure}:15013: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5 15014 15015 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6 15016 15017echo "${as_me:-configure}:15017: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5 15018 15019cf_fix_cppflags=no 15020cf_new_cflags= 15021cf_new_cppflags= 15022cf_new_extra_cppflags= 15023 15024for cf_add_cflags in $cf_pkgconfig_incs 15025do 15026case "$cf_fix_cppflags" in 15027(no) 15028 case "$cf_add_cflags" in 15029 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 15030 case "$cf_add_cflags" in 15031 (-D*) 15032 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 15033 15034 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 15035 && test -z "${cf_tst_cflags}" \ 15036 && cf_fix_cppflags=yes 15037 15038 if test "$cf_fix_cppflags" = yes ; then 15039 15040 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 15041 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 15042 15043 continue 15044 elif test "${cf_tst_cflags}" = "\"'" ; then 15045 15046 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 15047 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 15048 15049 continue 15050 fi 15051 ;; 15052 esac 15053 case "$CPPFLAGS" in 15054 (*$cf_add_cflags) 15055 ;; 15056 (*) 15057 case "$cf_add_cflags" in 15058 (-D*) 15059 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 15060 15061CPPFLAGS=`echo "$CPPFLAGS" | \ 15062 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 15063 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 15064 15065 ;; 15066 esac 15067 15068 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 15069 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 15070 15071 ;; 15072 esac 15073 ;; 15074 (*) 15075 15076 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 15077 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 15078 15079 ;; 15080 esac 15081 ;; 15082(yes) 15083 15084 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 15085 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 15086 15087 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 15088 15089 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 15090 && test -z "${cf_tst_cflags}" \ 15091 && cf_fix_cppflags=no 15092 ;; 15093esac 15094done 15095 15096if test -n "$cf_new_cflags" ; then 15097 15098 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 15099 CFLAGS="${CFLAGS}$cf_new_cflags" 15100 15101fi 15102 15103if test -n "$cf_new_cppflags" ; then 15104 15105 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 15106 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 15107 15108fi 15109 15110if test -n "$cf_new_extra_cppflags" ; then 15111 15112 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 15113 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 15114 15115fi 15116 15117cf_add_libs="$LIBS" 15118# reverse order 15119cf_add_0lib= 15120for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 15121# filter duplicates 15122for cf_add_1lib in $cf_add_0lib; do 15123 for cf_add_2lib in $cf_add_libs; do 15124 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 15125 cf_add_1lib= 15126 break 15127 fi 15128 done 15129 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 15130done 15131LIBS="$cf_add_libs" 15132 15133if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then 15134 test -n "$verbose" && echo " found package sm" 1>&6 15135 15136echo "${as_me:-configure}:15136: testing found package sm ..." 1>&5 15137 15138 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`" 15139 cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`" 15140 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6 15141 15142echo "${as_me:-configure}:15142: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5 15143 15144 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6 15145 15146echo "${as_me:-configure}:15146: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5 15147 15148cf_fix_cppflags=no 15149cf_new_cflags= 15150cf_new_cppflags= 15151cf_new_extra_cppflags= 15152 15153for cf_add_cflags in $cf_pkgconfig_incs 15154do 15155case "$cf_fix_cppflags" in 15156(no) 15157 case "$cf_add_cflags" in 15158 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 15159 case "$cf_add_cflags" in 15160 (-D*) 15161 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 15162 15163 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 15164 && test -z "${cf_tst_cflags}" \ 15165 && cf_fix_cppflags=yes 15166 15167 if test "$cf_fix_cppflags" = yes ; then 15168 15169 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 15170 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 15171 15172 continue 15173 elif test "${cf_tst_cflags}" = "\"'" ; then 15174 15175 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 15176 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 15177 15178 continue 15179 fi 15180 ;; 15181 esac 15182 case "$CPPFLAGS" in 15183 (*$cf_add_cflags) 15184 ;; 15185 (*) 15186 case "$cf_add_cflags" in 15187 (-D*) 15188 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 15189 15190CPPFLAGS=`echo "$CPPFLAGS" | \ 15191 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 15192 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 15193 15194 ;; 15195 esac 15196 15197 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 15198 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 15199 15200 ;; 15201 esac 15202 ;; 15203 (*) 15204 15205 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 15206 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 15207 15208 ;; 15209 esac 15210 ;; 15211(yes) 15212 15213 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 15214 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 15215 15216 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 15217 15218 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 15219 && test -z "${cf_tst_cflags}" \ 15220 && cf_fix_cppflags=no 15221 ;; 15222esac 15223done 15224 15225if test -n "$cf_new_cflags" ; then 15226 15227 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 15228 CFLAGS="${CFLAGS}$cf_new_cflags" 15229 15230fi 15231 15232if test -n "$cf_new_cppflags" ; then 15233 15234 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 15235 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 15236 15237fi 15238 15239if test -n "$cf_new_extra_cppflags" ; then 15240 15241 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 15242 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 15243 15244fi 15245 15246cf_add_libs="$LIBS" 15247# reverse order 15248cf_add_0lib= 15249for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 15250# filter duplicates 15251for cf_add_1lib in $cf_add_0lib; do 15252 for cf_add_2lib in $cf_add_libs; do 15253 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 15254 cf_add_1lib= 15255 break 15256 fi 15257 done 15258 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 15259done 15260LIBS="$cf_add_libs" 15261 15262 : 15263else 15264 cf_pkgconfig_incs= 15265 cf_pkgconfig_libs= 15266 : 15267fi 15268 15269else 15270 cf_pkgconfig_incs= 15271 cf_pkgconfig_libs= 15272 15273test -n "$verbose" && echo " ...before $LIBS" 1>&6 15274 15275echo "${as_me:-configure}:15275: testing ...before $LIBS ..." 1>&5 15276 15277LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'` 15278test -n "$verbose" && echo " ...after $LIBS" 1>&6 15279 15280echo "${as_me:-configure}:15280: testing ...after $LIBS ..." 1>&5 15281 15282fi 15283 15284 ;; 15285 esac 15286 ;; 15287 esac 15288 fi 15289 15290 cf_have_X_LIBS=yes 15291 15292else 15293 cf_pkgconfig_incs= 15294 cf_pkgconfig_libs= 15295 15296 LDFLAGS="$X_LIBS $LDFLAGS" 15297 15298test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6 15299 15300echo "${as_me:-configure}:15300: testing checking additions to CFLAGS ..." 1>&5 15301 15302cf_check_cflags="$CFLAGS" 15303cf_check_cppflags="$CPPFLAGS" 15304 15305cf_fix_cppflags=no 15306cf_new_cflags= 15307cf_new_cppflags= 15308cf_new_extra_cppflags= 15309 15310for cf_add_cflags in $X_CFLAGS 15311do 15312case "$cf_fix_cppflags" in 15313(no) 15314 case "$cf_add_cflags" in 15315 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 15316 case "$cf_add_cflags" in 15317 (-D*) 15318 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 15319 15320 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 15321 && test -z "${cf_tst_cflags}" \ 15322 && cf_fix_cppflags=yes 15323 15324 if test "$cf_fix_cppflags" = yes ; then 15325 15326 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 15327 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 15328 15329 continue 15330 elif test "${cf_tst_cflags}" = "\"'" ; then 15331 15332 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 15333 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 15334 15335 continue 15336 fi 15337 ;; 15338 esac 15339 case "$CPPFLAGS" in 15340 (*$cf_add_cflags) 15341 ;; 15342 (*) 15343 case "$cf_add_cflags" in 15344 (-D*) 15345 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 15346 15347CPPFLAGS=`echo "$CPPFLAGS" | \ 15348 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 15349 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 15350 15351 ;; 15352 esac 15353 15354 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 15355 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 15356 15357 ;; 15358 esac 15359 ;; 15360 (*) 15361 15362 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 15363 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 15364 15365 ;; 15366 esac 15367 ;; 15368(yes) 15369 15370 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 15371 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 15372 15373 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 15374 15375 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 15376 && test -z "${cf_tst_cflags}" \ 15377 && cf_fix_cppflags=no 15378 ;; 15379esac 15380done 15381 15382if test -n "$cf_new_cflags" ; then 15383 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 15384 15385echo "${as_me:-configure}:15385: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 15386 15387 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 15388 CFLAGS="${CFLAGS}$cf_new_cflags" 15389 15390fi 15391 15392if test -n "$cf_new_cppflags" ; then 15393 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 15394 15395echo "${as_me:-configure}:15395: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 15396 15397 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 15398 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 15399 15400fi 15401 15402if test -n "$cf_new_extra_cppflags" ; then 15403 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6 15404 15405echo "${as_me:-configure}:15405: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5 15406 15407 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 15408 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 15409 15410fi 15411 15412if test "x$cf_check_cflags" != "x$CFLAGS" ; then 15413cat >"conftest.$ac_ext" <<_ACEOF 15414#line 15414 "configure" 15415#include "confdefs.h" 15416#include <stdio.h> 15417int 15418main (void) 15419{ 15420printf("Hello world"); 15421 ; 15422 return 0; 15423} 15424_ACEOF 15425rm -f "conftest.$ac_objext" "conftest$ac_exeext" 15426if { (eval echo "$as_me:15426: \"$ac_link\"") >&5 15427 (eval $ac_link) 2>&5 15428 ac_status=$? 15429 echo "$as_me:15429: \$? = $ac_status" >&5 15430 (exit "$ac_status"); } && 15431 { ac_try='test -s "conftest$ac_exeext"' 15432 { (eval echo "$as_me:15432: \"$ac_try\"") >&5 15433 (eval $ac_try) 2>&5 15434 ac_status=$? 15435 echo "$as_me:15435: \$? = $ac_status" >&5 15436 (exit "$ac_status"); }; }; then 15437 : 15438else 15439 echo "$as_me: failed program was:" >&5 15440cat "conftest.$ac_ext" >&5 15441test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6 15442 15443echo "${as_me:-configure}:15443: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5 15444 15445 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then 15446 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6 15447 15448echo "${as_me:-configure}:15448: testing but keeping change to \$CPPFLAGS ..." 1>&5 15449 15450 fi 15451 CFLAGS="$cf_check_cflags" 15452fi 15453rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 15454fi 15455 15456 echo "$as_me:15456: checking for XOpenDisplay" >&5 15457echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6 15458if test "${ac_cv_func_XOpenDisplay+set}" = set; then 15459 echo $ECHO_N "(cached) $ECHO_C" >&6 15460else 15461 cat >"conftest.$ac_ext" <<_ACEOF 15462#line 15462 "configure" 15463#include "confdefs.h" 15464#define XOpenDisplay autoconf_temporary 15465#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 15466#undef XOpenDisplay 15467 15468#ifdef __cplusplus 15469extern "C" 15470#endif 15471 15472/* We use char because int might match the return type of a gcc2 15473 builtin and then its argument prototype would still apply. */ 15474char XOpenDisplay (void); 15475 15476int 15477main (void) 15478{ 15479 15480/* The GNU C library defines stubs for functions which it implements 15481 to always fail with ENOSYS. Some functions are actually named 15482 something starting with __ and the normal name is an alias. */ 15483#if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay) 15484#error found stub for XOpenDisplay 15485#endif 15486 15487 return XOpenDisplay (); 15488 ; 15489 return 0; 15490} 15491_ACEOF 15492rm -f "conftest.$ac_objext" "conftest$ac_exeext" 15493if { (eval echo "$as_me:15493: \"$ac_link\"") >&5 15494 (eval $ac_link) 2>&5 15495 ac_status=$? 15496 echo "$as_me:15496: \$? = $ac_status" >&5 15497 (exit "$ac_status"); } && 15498 { ac_try='test -s "conftest$ac_exeext"' 15499 { (eval echo "$as_me:15499: \"$ac_try\"") >&5 15500 (eval $ac_try) 2>&5 15501 ac_status=$? 15502 echo "$as_me:15502: \$? = $ac_status" >&5 15503 (exit "$ac_status"); }; }; then 15504 ac_cv_func_XOpenDisplay=yes 15505else 15506 echo "$as_me: failed program was:" >&5 15507cat "conftest.$ac_ext" >&5 15508ac_cv_func_XOpenDisplay=no 15509fi 15510rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 15511fi 15512echo "$as_me:15512: result: $ac_cv_func_XOpenDisplay" >&5 15513echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6 15514if test "$ac_cv_func_XOpenDisplay" = yes; then 15515 : 15516else 15517 15518 echo "$as_me:15518: checking for XOpenDisplay in -lX11" >&5 15519echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6 15520if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then 15521 echo $ECHO_N "(cached) $ECHO_C" >&6 15522else 15523 ac_check_lib_save_LIBS=$LIBS 15524LIBS="-lX11 $LIBS" 15525cat >"conftest.$ac_ext" <<_ACEOF 15526#line 15526 "configure" 15527#include "confdefs.h" 15528 15529/* Override any gcc2 internal prototype to avoid an error. */ 15530#ifdef __cplusplus 15531extern "C" 15532#endif 15533/* We use char because int might match the return type of a gcc2 15534 builtin and then its argument prototype would still apply. */ 15535char XOpenDisplay (void); 15536int 15537main (void) 15538{ 15539XOpenDisplay (); 15540 ; 15541 return 0; 15542} 15543_ACEOF 15544rm -f "conftest.$ac_objext" "conftest$ac_exeext" 15545if { (eval echo "$as_me:15545: \"$ac_link\"") >&5 15546 (eval $ac_link) 2>&5 15547 ac_status=$? 15548 echo "$as_me:15548: \$? = $ac_status" >&5 15549 (exit "$ac_status"); } && 15550 { ac_try='test -s "conftest$ac_exeext"' 15551 { (eval echo "$as_me:15551: \"$ac_try\"") >&5 15552 (eval $ac_try) 2>&5 15553 ac_status=$? 15554 echo "$as_me:15554: \$? = $ac_status" >&5 15555 (exit "$ac_status"); }; }; then 15556 ac_cv_lib_X11_XOpenDisplay=yes 15557else 15558 echo "$as_me: failed program was:" >&5 15559cat "conftest.$ac_ext" >&5 15560ac_cv_lib_X11_XOpenDisplay=no 15561fi 15562rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 15563LIBS=$ac_check_lib_save_LIBS 15564fi 15565echo "$as_me:15565: result: $ac_cv_lib_X11_XOpenDisplay" >&5 15566echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6 15567if test "$ac_cv_lib_X11_XOpenDisplay" = yes; then 15568 15569cf_add_libs="$LIBS" 15570# reverse order 15571cf_add_0lib= 15572for cf_add_1lib in -lX11; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 15573# filter duplicates 15574for cf_add_1lib in $cf_add_0lib; do 15575 for cf_add_2lib in $cf_add_libs; do 15576 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 15577 cf_add_1lib= 15578 break 15579 fi 15580 done 15581 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 15582done 15583LIBS="$cf_add_libs" 15584 15585fi 15586 15587fi 15588 15589 echo "$as_me:15589: checking for XtAppInitialize" >&5 15590echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6 15591if test "${ac_cv_func_XtAppInitialize+set}" = set; then 15592 echo $ECHO_N "(cached) $ECHO_C" >&6 15593else 15594 cat >"conftest.$ac_ext" <<_ACEOF 15595#line 15595 "configure" 15596#include "confdefs.h" 15597#define XtAppInitialize autoconf_temporary 15598#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 15599#undef XtAppInitialize 15600 15601#ifdef __cplusplus 15602extern "C" 15603#endif 15604 15605/* We use char because int might match the return type of a gcc2 15606 builtin and then its argument prototype would still apply. */ 15607char XtAppInitialize (void); 15608 15609int 15610main (void) 15611{ 15612 15613/* The GNU C library defines stubs for functions which it implements 15614 to always fail with ENOSYS. Some functions are actually named 15615 something starting with __ and the normal name is an alias. */ 15616#if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize) 15617#error found stub for XtAppInitialize 15618#endif 15619 15620 return XtAppInitialize (); 15621 ; 15622 return 0; 15623} 15624_ACEOF 15625rm -f "conftest.$ac_objext" "conftest$ac_exeext" 15626if { (eval echo "$as_me:15626: \"$ac_link\"") >&5 15627 (eval $ac_link) 2>&5 15628 ac_status=$? 15629 echo "$as_me:15629: \$? = $ac_status" >&5 15630 (exit "$ac_status"); } && 15631 { ac_try='test -s "conftest$ac_exeext"' 15632 { (eval echo "$as_me:15632: \"$ac_try\"") >&5 15633 (eval $ac_try) 2>&5 15634 ac_status=$? 15635 echo "$as_me:15635: \$? = $ac_status" >&5 15636 (exit "$ac_status"); }; }; then 15637 ac_cv_func_XtAppInitialize=yes 15638else 15639 echo "$as_me: failed program was:" >&5 15640cat "conftest.$ac_ext" >&5 15641ac_cv_func_XtAppInitialize=no 15642fi 15643rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 15644fi 15645echo "$as_me:15645: result: $ac_cv_func_XtAppInitialize" >&5 15646echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6 15647if test "$ac_cv_func_XtAppInitialize" = yes; then 15648 : 15649else 15650 15651 echo "$as_me:15651: checking for XtAppInitialize in -lXt" >&5 15652echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6 15653if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then 15654 echo $ECHO_N "(cached) $ECHO_C" >&6 15655else 15656 ac_check_lib_save_LIBS=$LIBS 15657LIBS="-lXt $LIBS" 15658cat >"conftest.$ac_ext" <<_ACEOF 15659#line 15659 "configure" 15660#include "confdefs.h" 15661 15662/* Override any gcc2 internal prototype to avoid an error. */ 15663#ifdef __cplusplus 15664extern "C" 15665#endif 15666/* We use char because int might match the return type of a gcc2 15667 builtin and then its argument prototype would still apply. */ 15668char XtAppInitialize (void); 15669int 15670main (void) 15671{ 15672XtAppInitialize (); 15673 ; 15674 return 0; 15675} 15676_ACEOF 15677rm -f "conftest.$ac_objext" "conftest$ac_exeext" 15678if { (eval echo "$as_me:15678: \"$ac_link\"") >&5 15679 (eval $ac_link) 2>&5 15680 ac_status=$? 15681 echo "$as_me:15681: \$? = $ac_status" >&5 15682 (exit "$ac_status"); } && 15683 { ac_try='test -s "conftest$ac_exeext"' 15684 { (eval echo "$as_me:15684: \"$ac_try\"") >&5 15685 (eval $ac_try) 2>&5 15686 ac_status=$? 15687 echo "$as_me:15687: \$? = $ac_status" >&5 15688 (exit "$ac_status"); }; }; then 15689 ac_cv_lib_Xt_XtAppInitialize=yes 15690else 15691 echo "$as_me: failed program was:" >&5 15692cat "conftest.$ac_ext" >&5 15693ac_cv_lib_Xt_XtAppInitialize=no 15694fi 15695rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 15696LIBS=$ac_check_lib_save_LIBS 15697fi 15698echo "$as_me:15698: result: $ac_cv_lib_Xt_XtAppInitialize" >&5 15699echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6 15700if test "$ac_cv_lib_Xt_XtAppInitialize" = yes; then 15701 15702cat >>confdefs.h <<\EOF 15703#define HAVE_LIBXT 1 15704EOF 15705 15706 cf_have_X_LIBS=Xt 15707 LIBS="-lXt $LIBS" 15708fi 15709 15710fi 15711 15712fi 15713 15714if test "$cf_have_X_LIBS" = no ; then 15715 { echo "$as_me:15715: WARNING: Unable to successfully link X Toolkit library (-lXt) with 15716test program. You will have to check and add the proper libraries by hand 15717to makefile." >&5 15718echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with 15719test program. You will have to check and add the proper libraries by hand 15720to makefile." >&2;} 15721fi 15722 15723cf_x_athena_root=$cf_x_athena 15724cf_x_athena_inc="" 15725 15726for cf_path in default \ 15727 /usr/contrib/X11R6 \ 15728 /usr/contrib/X11R5 \ 15729 /usr/lib/X11R5 \ 15730 /usr/local 15731do 15732 if test -z "$cf_x_athena_inc" ; then 15733 15734cf_save_LIBS_CF_X_ATHENA_CPPFLAGS="$LIBS" 15735cf_save_CFLAGS_CF_X_ATHENA_CPPFLAGS="$CFLAGS" 15736cf_save_CPPFLAGS_CF_X_ATHENA_CPPFLAGS="$CPPFLAGS" 15737LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}" 15738for cf_X_CFLAGS in $X_CFLAGS 15739do 15740 case "x$cf_X_CFLAGS" in 15741 x-[IUD]*) 15742 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS" 15743 ;; 15744 *) 15745 CFLAGS="$CFLAGS $cf_X_CFLAGS" 15746 ;; 15747 esac 15748done 15749 15750 cf_test=X11/$cf_x_athena_root/SimpleMenu.h 15751 if test "$cf_path" != default ; then 15752 15753 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 15754 CPPFLAGS="${CPPFLAGS}-I$cf_path/include" 15755 15756 echo "$as_me:15756: checking for $cf_test in $cf_path" >&5 15757echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6 15758 else 15759 echo "$as_me:15759: checking for $cf_test" >&5 15760echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6 15761 fi 15762 cat >"conftest.$ac_ext" <<_ACEOF 15763#line 15763 "configure" 15764#include "confdefs.h" 15765 15766#include <X11/Intrinsic.h> 15767#include <$cf_test> 15768int 15769main (void) 15770{ 15771 15772 ; 15773 return 0; 15774} 15775_ACEOF 15776rm -f "conftest.$ac_objext" 15777if { (eval echo "$as_me:15777: \"$ac_compile\"") >&5 15778 (eval $ac_compile) 2>&5 15779 ac_status=$? 15780 echo "$as_me:15780: \$? = $ac_status" >&5 15781 (exit "$ac_status"); } && 15782 { ac_try='test -s "conftest.$ac_objext"' 15783 { (eval echo "$as_me:15783: \"$ac_try\"") >&5 15784 (eval $ac_try) 2>&5 15785 ac_status=$? 15786 echo "$as_me:15786: \$? = $ac_status" >&5 15787 (exit "$ac_status"); }; }; then 15788 cf_result=yes 15789else 15790 echo "$as_me: failed program was:" >&5 15791cat "conftest.$ac_ext" >&5 15792cf_result=no 15793fi 15794rm -f "conftest.$ac_objext" "conftest.$ac_ext" 15795 echo "$as_me:15795: result: $cf_result" >&5 15796echo "${ECHO_T}$cf_result" >&6 15797 15798LIBS="$cf_save_LIBS_CF_X_ATHENA_CPPFLAGS" 15799CFLAGS="$cf_save_CFLAGS_CF_X_ATHENA_CPPFLAGS" 15800CPPFLAGS="$cf_save_CPPFLAGS_CF_X_ATHENA_CPPFLAGS" 15801 15802 if test "$cf_result" = yes ; then 15803 test "$cf_path" = default && cf_x_athena_inc=default 15804 test "$cf_path" != default && cf_x_athena_inc="$cf_path/include" 15805 break 15806 fi 15807 fi 15808done 15809 15810if test -z "$cf_x_athena_inc" ; then 15811 { echo "$as_me:15811: WARNING: Unable to find Athena header files" >&5 15812echo "$as_me: WARNING: Unable to find Athena header files" >&2;} 15813elif test "$cf_x_athena_inc" != default ; then 15814 15815 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 15816 CPPFLAGS="${CPPFLAGS}-I$cf_x_athena_inc" 15817 15818fi 15819 15820cf_x_athena_root=$cf_x_athena 15821cf_x_athena_lib="" 15822 15823for cf_path in default \ 15824 /usr/contrib/X11R6 \ 15825 /usr/contrib/X11R5 \ 15826 /usr/lib/X11R5 \ 15827 /usr/local 15828do 15829 for cf_lib in \ 15830 ${cf_x_athena_root} \ 15831 ${cf_x_athena_root}7 \ 15832 ${cf_x_athena_root}6 15833 do 15834 for cf_libs in \ 15835 "-l$cf_lib -lXmu" \ 15836 "-l$cf_lib -lXpm -lXmu" \ 15837 "-l${cf_lib}_s -lXmu_s" 15838 do 15839 test -n "$cf_x_athena_lib" && break 15840 15841cf_save_LIBS_CF_X_ATHENA_LIBS="$LIBS" 15842cf_save_CFLAGS_CF_X_ATHENA_LIBS="$CFLAGS" 15843cf_save_CPPFLAGS_CF_X_ATHENA_LIBS="$CPPFLAGS" 15844LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}" 15845for cf_X_CFLAGS in $X_CFLAGS 15846do 15847 case "x$cf_X_CFLAGS" in 15848 x-[IUD]*) 15849 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS" 15850 ;; 15851 *) 15852 CFLAGS="$CFLAGS $cf_X_CFLAGS" 15853 ;; 15854 esac 15855done 15856 15857 cf_test=XawSimpleMenuAddGlobalActions 15858 test "$cf_path" != default && cf_libs="-L$cf_path/lib $cf_libs" 15859 15860cf_add_libs="$LIBS" 15861# reverse order 15862cf_add_0lib= 15863for cf_add_1lib in $cf_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 15864# filter duplicates 15865for cf_add_1lib in $cf_add_0lib; do 15866 for cf_add_2lib in $cf_add_libs; do 15867 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 15868 cf_add_1lib= 15869 break 15870 fi 15871 done 15872 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 15873done 15874LIBS="$cf_add_libs" 15875 15876 echo "$as_me:15876: checking for $cf_test in $cf_libs" >&5 15877echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6 15878 cat >"conftest.$ac_ext" <<_ACEOF 15879#line 15879 "configure" 15880#include "confdefs.h" 15881 15882$ac_includes_default 15883#include <X11/Intrinsic.h> 15884#include <X11/$cf_x_athena_root/SimpleMenu.h> 15885 15886int 15887main (void) 15888{ 15889 15890$cf_test((XtAppContext) 0) 15891 ; 15892 return 0; 15893} 15894_ACEOF 15895rm -f "conftest.$ac_objext" "conftest$ac_exeext" 15896if { (eval echo "$as_me:15896: \"$ac_link\"") >&5 15897 (eval $ac_link) 2>&5 15898 ac_status=$? 15899 echo "$as_me:15899: \$? = $ac_status" >&5 15900 (exit "$ac_status"); } && 15901 { ac_try='test -s "conftest$ac_exeext"' 15902 { (eval echo "$as_me:15902: \"$ac_try\"") >&5 15903 (eval $ac_try) 2>&5 15904 ac_status=$? 15905 echo "$as_me:15905: \$? = $ac_status" >&5 15906 (exit "$ac_status"); }; }; then 15907 cf_result=yes 15908else 15909 echo "$as_me: failed program was:" >&5 15910cat "conftest.$ac_ext" >&5 15911cf_result=no 15912fi 15913rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 15914 echo "$as_me:15914: result: $cf_result" >&5 15915echo "${ECHO_T}$cf_result" >&6 15916 15917LIBS="$cf_save_LIBS_CF_X_ATHENA_LIBS" 15918CFLAGS="$cf_save_CFLAGS_CF_X_ATHENA_LIBS" 15919CPPFLAGS="$cf_save_CPPFLAGS_CF_X_ATHENA_LIBS" 15920 15921 if test "$cf_result" = yes ; then 15922 cf_x_athena_lib="$cf_libs" 15923 break 15924 fi 15925 done # cf_libs 15926 test -n "$cf_x_athena_lib" && break 15927 done # cf_lib 15928done 15929 15930if test -z "$cf_x_athena_lib" ; then 15931 { { echo "$as_me:15931: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5 15932echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;} 15933 { (exit 1); exit 1; }; } 15934fi 15935 15936cf_add_libs="$LIBS" 15937# reverse order 15938cf_add_0lib= 15939for cf_add_1lib in $cf_x_athena_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 15940# filter duplicates 15941for cf_add_1lib in $cf_add_0lib; do 15942 for cf_add_2lib in $cf_add_libs; do 15943 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 15944 cf_add_1lib= 15945 break 15946 fi 15947 done 15948 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 15949done 15950LIBS="$cf_add_libs" 15951 15952cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 15953 15954cat >>confdefs.h <<EOF 15955#define $cf_x_athena_LIBS 1 15956EOF 15957 15958fi 15959 15960for ac_header in X11/Xpoll.h 15961do 15962as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15963echo "$as_me:15963: checking for $ac_header" >&5 15964echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 15965if eval "test \"\${$as_ac_Header+set}\" = set"; then 15966 echo $ECHO_N "(cached) $ECHO_C" >&6 15967else 15968 cat >"conftest.$ac_ext" <<_ACEOF 15969#line 15969 "configure" 15970#include "confdefs.h" 15971#include <$ac_header> 15972_ACEOF 15973if { (eval echo "$as_me:15973: \"$ac_cpp "conftest.$ac_ext"\"") >&5 15974 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 15975 ac_status=$? 15976 $EGREP -v '^ *\+' conftest.er1 >conftest.err 15977 rm -f conftest.er1 15978 cat conftest.err >&5 15979 echo "$as_me:15979: \$? = $ac_status" >&5 15980 (exit "$ac_status"); } >/dev/null; then 15981 if test -s conftest.err; then 15982 ac_cpp_err=$ac_c_preproc_warn_flag 15983 else 15984 ac_cpp_err= 15985 fi 15986else 15987 ac_cpp_err=yes 15988fi 15989if test -z "$ac_cpp_err"; then 15990 eval "$as_ac_Header=yes" 15991else 15992 echo "$as_me: failed program was:" >&5 15993 cat "conftest.$ac_ext" >&5 15994 eval "$as_ac_Header=no" 15995fi 15996rm -f conftest.err "conftest.$ac_ext" 15997fi 15998echo "$as_me:15998: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 15999echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 16000if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 16001 cat >>confdefs.h <<EOF 16002#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16003EOF 16004 16005fi 16006done 16007 16008echo "$as_me:16008: checking for declaration of fd_set" >&5 16009echo $ECHO_N "checking for declaration of fd_set... $ECHO_C" >&6 16010if test "${cf_cv_type_fd_set+set}" = set; then 16011 echo $ECHO_N "(cached) $ECHO_C" >&6 16012else 16013 16014echo "${as_me:-configure}:16014: testing sys/types alone ..." 1>&5 16015 16016cat >"conftest.$ac_ext" <<_ACEOF 16017#line 16017 "configure" 16018#include "confdefs.h" 16019 16020#include <sys/types.h> 16021int 16022main (void) 16023{ 16024fd_set x; (void)x 16025 ; 16026 return 0; 16027} 16028_ACEOF 16029rm -f "conftest.$ac_objext" 16030if { (eval echo "$as_me:16030: \"$ac_compile\"") >&5 16031 (eval $ac_compile) 2>&5 16032 ac_status=$? 16033 echo "$as_me:16033: \$? = $ac_status" >&5 16034 (exit "$ac_status"); } && 16035 { ac_try='test -s "conftest.$ac_objext"' 16036 { (eval echo "$as_me:16036: \"$ac_try\"") >&5 16037 (eval $ac_try) 2>&5 16038 ac_status=$? 16039 echo "$as_me:16039: \$? = $ac_status" >&5 16040 (exit "$ac_status"); }; }; then 16041 cf_cv_type_fd_set=sys/types.h 16042else 16043 echo "$as_me: failed program was:" >&5 16044cat "conftest.$ac_ext" >&5 16045 16046echo "${as_me:-configure}:16046: testing X11/Xpoll.h ..." 1>&5 16047 16048cat >"conftest.$ac_ext" <<_ACEOF 16049#line 16049 "configure" 16050#include "confdefs.h" 16051 16052#ifdef HAVE_X11_XPOLL_H 16053#include <X11/Xpoll.h> 16054#endif 16055int 16056main (void) 16057{ 16058fd_set x; (void)x 16059 ; 16060 return 0; 16061} 16062_ACEOF 16063rm -f "conftest.$ac_objext" 16064if { (eval echo "$as_me:16064: \"$ac_compile\"") >&5 16065 (eval $ac_compile) 2>&5 16066 ac_status=$? 16067 echo "$as_me:16067: \$? = $ac_status" >&5 16068 (exit "$ac_status"); } && 16069 { ac_try='test -s "conftest.$ac_objext"' 16070 { (eval echo "$as_me:16070: \"$ac_try\"") >&5 16071 (eval $ac_try) 2>&5 16072 ac_status=$? 16073 echo "$as_me:16073: \$? = $ac_status" >&5 16074 (exit "$ac_status"); }; }; then 16075 cf_cv_type_fd_set=X11/Xpoll.h 16076else 16077 echo "$as_me: failed program was:" >&5 16078cat "conftest.$ac_ext" >&5 16079 16080echo "${as_me:-configure}:16080: testing sys/select.h ..." 1>&5 16081 16082cat >"conftest.$ac_ext" <<_ACEOF 16083#line 16083 "configure" 16084#include "confdefs.h" 16085 16086#include <sys/types.h> 16087#include <sys/select.h> 16088int 16089main (void) 16090{ 16091fd_set x; (void)x 16092 ; 16093 return 0; 16094} 16095_ACEOF 16096rm -f "conftest.$ac_objext" 16097if { (eval echo "$as_me:16097: \"$ac_compile\"") >&5 16098 (eval $ac_compile) 2>&5 16099 ac_status=$? 16100 echo "$as_me:16100: \$? = $ac_status" >&5 16101 (exit "$ac_status"); } && 16102 { ac_try='test -s "conftest.$ac_objext"' 16103 { (eval echo "$as_me:16103: \"$ac_try\"") >&5 16104 (eval $ac_try) 2>&5 16105 ac_status=$? 16106 echo "$as_me:16106: \$? = $ac_status" >&5 16107 (exit "$ac_status"); }; }; then 16108 cf_cv_type_fd_set=sys/select.h 16109else 16110 echo "$as_me: failed program was:" >&5 16111cat "conftest.$ac_ext" >&5 16112cf_cv_type_fd_set=unknown 16113fi 16114rm -f "conftest.$ac_objext" "conftest.$ac_ext" 16115fi 16116rm -f "conftest.$ac_objext" "conftest.$ac_ext" 16117fi 16118rm -f "conftest.$ac_objext" "conftest.$ac_ext" 16119fi 16120echo "$as_me:16120: result: $cf_cv_type_fd_set" >&5 16121echo "${ECHO_T}$cf_cv_type_fd_set" >&6 16122if test $cf_cv_type_fd_set = sys/select.h ; then 16123 16124cat >>confdefs.h <<\EOF 16125#define USE_SYS_SELECT_H 1 16126EOF 16127 16128fi 16129 16130echo "$as_me:16130: checking for declaration of fd_mask" >&5 16131echo $ECHO_N "checking for declaration of fd_mask... $ECHO_C" >&6 16132if test "${cf_cv_type_fd_mask+set}" = set; then 16133 echo $ECHO_N "(cached) $ECHO_C" >&6 16134else 16135 16136 if test x$cf_cv_type_fd_set = xX11/Xpoll.h ; then 16137 cat >"conftest.$ac_ext" <<_ACEOF 16138#line 16138 "configure" 16139#include "confdefs.h" 16140 16141#include <X11/Xpoll.h> 16142int 16143main (void) 16144{ 16145fd_mask x 16146 ; 16147 return 0; 16148} 16149_ACEOF 16150rm -f "conftest.$ac_objext" 16151if { (eval echo "$as_me:16151: \"$ac_compile\"") >&5 16152 (eval $ac_compile) 2>&5 16153 ac_status=$? 16154 echo "$as_me:16154: \$? = $ac_status" >&5 16155 (exit "$ac_status"); } && 16156 { ac_try='test -s "conftest.$ac_objext"' 16157 { (eval echo "$as_me:16157: \"$ac_try\"") >&5 16158 (eval $ac_try) 2>&5 16159 ac_status=$? 16160 echo "$as_me:16160: \$? = $ac_status" >&5 16161 (exit "$ac_status"); }; }; then 16162 : 16163else 16164 echo "$as_me: failed program was:" >&5 16165cat "conftest.$ac_ext" >&5 16166 16167echo "${as_me:-configure}:16167: testing if we must define CSRG_BASED ..." 1>&5 16168 16169# Xosdefs.h on Mac OS X may not define this (but it should). 16170 cat >"conftest.$ac_ext" <<_ACEOF 16171#line 16171 "configure" 16172#include "confdefs.h" 16173 16174#define CSRG_BASED 16175#include <X11/Xpoll.h> 16176int 16177main (void) 16178{ 16179fd_mask x 16180 ; 16181 return 0; 16182} 16183_ACEOF 16184rm -f "conftest.$ac_objext" 16185if { (eval echo "$as_me:16185: \"$ac_compile\"") >&5 16186 (eval $ac_compile) 2>&5 16187 ac_status=$? 16188 echo "$as_me:16188: \$? = $ac_status" >&5 16189 (exit "$ac_status"); } && 16190 { ac_try='test -s "conftest.$ac_objext"' 16191 { (eval echo "$as_me:16191: \"$ac_try\"") >&5 16192 (eval $ac_try) 2>&5 16193 ac_status=$? 16194 echo "$as_me:16194: \$? = $ac_status" >&5 16195 (exit "$ac_status"); }; }; then 16196 cf_cv_type_fd_mask=CSRG_BASED 16197else 16198 echo "$as_me: failed program was:" >&5 16199cat "conftest.$ac_ext" >&5 16200fi 16201rm -f "conftest.$ac_objext" "conftest.$ac_ext" 16202fi 16203rm -f "conftest.$ac_objext" "conftest.$ac_ext" 16204 else 16205 cf_cv_type_fd_mask=$cf_cv_type_fd_set 16206 fi 16207 16208fi 16209echo "$as_me:16209: result: $cf_cv_type_fd_mask" >&5 16210echo "${ECHO_T}$cf_cv_type_fd_mask" >&6 16211if test x$cf_cv_type_fd_mask = xCSRG_BASED ; then 16212 16213cat >>confdefs.h <<\EOF 16214#define CSRG_BASED 1 16215EOF 16216 16217fi 16218 16219echo "$as_me:16219: checking for IRIX 6.5 baud-rate redefinitions" >&5 16220echo $ECHO_N "checking for IRIX 6.5 baud-rate redefinitions... $ECHO_C" >&6 16221if test "${cf_cv_termio_c_ispeed+set}" = set; then 16222 echo $ECHO_N "(cached) $ECHO_C" >&6 16223else 16224 16225cat >"conftest.$ac_ext" <<_ACEOF 16226#line 16226 "configure" 16227#include "confdefs.h" 16228 16229#include <sys/types.h> 16230#include <sys/termio.h> 16231int 16232main (void) 16233{ 16234 16235struct termio foo; 16236foo.c_ispeed = B38400; 16237foo.c_ospeed = B9600; 16238(void)foo; 16239 16240 ; 16241 return 0; 16242} 16243_ACEOF 16244rm -f "conftest.$ac_objext" 16245if { (eval echo "$as_me:16245: \"$ac_compile\"") >&5 16246 (eval $ac_compile) 2>&5 16247 ac_status=$? 16248 echo "$as_me:16248: \$? = $ac_status" >&5 16249 (exit "$ac_status"); } && 16250 { ac_try='test -s "conftest.$ac_objext"' 16251 { (eval echo "$as_me:16251: \"$ac_try\"") >&5 16252 (eval $ac_try) 2>&5 16253 ac_status=$? 16254 echo "$as_me:16254: \$? = $ac_status" >&5 16255 (exit "$ac_status"); }; }; then 16256 cf_cv_termio_c_ispeed=yes 16257 16258else 16259 echo "$as_me: failed program was:" >&5 16260cat "conftest.$ac_ext" >&5 16261cf_cv_termio_c_ispeed=no 16262fi 16263rm -f "conftest.$ac_objext" "conftest.$ac_ext" 16264 16265fi 16266echo "$as_me:16266: result: $cf_cv_termio_c_ispeed" >&5 16267echo "${ECHO_T}$cf_cv_termio_c_ispeed" >&6 16268test "$cf_cv_termio_c_ispeed" = yes && 16269cat >>confdefs.h <<\EOF 16270#define HAVE_TERMIO_C_ISPEED 1 16271EOF 16272 16273echo "$as_me:16273: checking for termios type tcflag_t" >&5 16274echo $ECHO_N "checking for termios type tcflag_t... $ECHO_C" >&6 16275if test "${cf_cv_havetype_tcflag_t+set}" = set; then 16276 echo $ECHO_N "(cached) $ECHO_C" >&6 16277else 16278 16279 cat >"conftest.$ac_ext" <<_ACEOF 16280#line 16280 "configure" 16281#include "confdefs.h" 16282#include <termios.h> 16283int 16284main (void) 16285{ 16286 16287 tcflag_t x = 0; (void)x 16288 ; 16289 return 0; 16290} 16291_ACEOF 16292rm -f "conftest.$ac_objext" 16293if { (eval echo "$as_me:16293: \"$ac_compile\"") >&5 16294 (eval $ac_compile) 2>&5 16295 ac_status=$? 16296 echo "$as_me:16296: \$? = $ac_status" >&5 16297 (exit "$ac_status"); } && 16298 { ac_try='test -s "conftest.$ac_objext"' 16299 { (eval echo "$as_me:16299: \"$ac_try\"") >&5 16300 (eval $ac_try) 2>&5 16301 ac_status=$? 16302 echo "$as_me:16302: \$? = $ac_status" >&5 16303 (exit "$ac_status"); }; }; then 16304 cf_cv_havetype_tcflag_t=yes 16305else 16306 echo "$as_me: failed program was:" >&5 16307cat "conftest.$ac_ext" >&5 16308cf_cv_havetype_tcflag_t=no 16309fi 16310rm -f "conftest.$ac_objext" "conftest.$ac_ext" 16311 16312fi 16313echo "$as_me:16313: result: $cf_cv_havetype_tcflag_t" >&5 16314echo "${ECHO_T}$cf_cv_havetype_tcflag_t" >&6 16315test "$cf_cv_havetype_tcflag_t" = no && 16316cat >>confdefs.h <<\EOF 16317#define tcflag_t unsigned long 16318EOF 16319 16320echo "$as_me:16320: checking for termios type speed_t" >&5 16321echo $ECHO_N "checking for termios type speed_t... $ECHO_C" >&6 16322if test "${cf_cv_havetype_speed_t+set}" = set; then 16323 echo $ECHO_N "(cached) $ECHO_C" >&6 16324else 16325 16326 cat >"conftest.$ac_ext" <<_ACEOF 16327#line 16327 "configure" 16328#include "confdefs.h" 16329#include <termios.h> 16330int 16331main (void) 16332{ 16333 16334 speed_t x = 0; (void)x 16335 ; 16336 return 0; 16337} 16338_ACEOF 16339rm -f "conftest.$ac_objext" 16340if { (eval echo "$as_me:16340: \"$ac_compile\"") >&5 16341 (eval $ac_compile) 2>&5 16342 ac_status=$? 16343 echo "$as_me:16343: \$? = $ac_status" >&5 16344 (exit "$ac_status"); } && 16345 { ac_try='test -s "conftest.$ac_objext"' 16346 { (eval echo "$as_me:16346: \"$ac_try\"") >&5 16347 (eval $ac_try) 2>&5 16348 ac_status=$? 16349 echo "$as_me:16349: \$? = $ac_status" >&5 16350 (exit "$ac_status"); }; }; then 16351 cf_cv_havetype_speed_t=yes 16352else 16353 echo "$as_me: failed program was:" >&5 16354cat "conftest.$ac_ext" >&5 16355cf_cv_havetype_speed_t=no 16356fi 16357rm -f "conftest.$ac_objext" "conftest.$ac_ext" 16358 16359fi 16360echo "$as_me:16360: result: $cf_cv_havetype_speed_t" >&5 16361echo "${ECHO_T}$cf_cv_havetype_speed_t" >&6 16362test "$cf_cv_havetype_speed_t" = no && 16363cat >>confdefs.h <<\EOF 16364#define speed_t unsigned short 16365EOF 16366 16367echo "$as_me:16367: checking for termios type cc_t" >&5 16368echo $ECHO_N "checking for termios type cc_t... $ECHO_C" >&6 16369if test "${cf_cv_havetype_cc_t+set}" = set; then 16370 echo $ECHO_N "(cached) $ECHO_C" >&6 16371else 16372 16373 cat >"conftest.$ac_ext" <<_ACEOF 16374#line 16374 "configure" 16375#include "confdefs.h" 16376#include <termios.h> 16377int 16378main (void) 16379{ 16380 16381 cc_t x = 0; (void)x 16382 ; 16383 return 0; 16384} 16385_ACEOF 16386rm -f "conftest.$ac_objext" 16387if { (eval echo "$as_me:16387: \"$ac_compile\"") >&5 16388 (eval $ac_compile) 2>&5 16389 ac_status=$? 16390 echo "$as_me:16390: \$? = $ac_status" >&5 16391 (exit "$ac_status"); } && 16392 { ac_try='test -s "conftest.$ac_objext"' 16393 { (eval echo "$as_me:16393: \"$ac_try\"") >&5 16394 (eval $ac_try) 2>&5 16395 ac_status=$? 16396 echo "$as_me:16396: \$? = $ac_status" >&5 16397 (exit "$ac_status"); }; }; then 16398 cf_cv_havetype_cc_t=yes 16399else 16400 echo "$as_me: failed program was:" >&5 16401cat "conftest.$ac_ext" >&5 16402cf_cv_havetype_cc_t=no 16403fi 16404rm -f "conftest.$ac_objext" "conftest.$ac_ext" 16405 16406fi 16407echo "$as_me:16407: result: $cf_cv_havetype_cc_t" >&5 16408echo "${ECHO_T}$cf_cv_havetype_cc_t" >&6 16409test "$cf_cv_havetype_cc_t" = no && 16410cat >>confdefs.h <<\EOF 16411#define cc_t unsigned char 16412EOF 16413 16414# The Xcursor library is normally (weakly) linked via the X11 library rather 16415# than directly to applications. xterm can select a cursor theme; users can 16416# also use environment variables to select cursor size. We would only notice 16417# the library if there are development files for it. Provide a way to disable 16418# the feature if it is unwanted. 16419echo "$as_me:16419: checking if we expect to use the Xcursor library" >&5 16420echo $ECHO_N "checking if we expect to use the Xcursor library... $ECHO_C" >&6 16421 16422# Check whether --enable-xcursor or --disable-xcursor was given. 16423if test "${enable_xcursor+set}" = set; then 16424 enableval="$enable_xcursor" 16425 test "$enableval" != no && enableval=yes 16426 if test "$enableval" != "yes" ; then 16427 enable_xcursor=no 16428 else 16429 enable_xcursor=yes 16430 fi 16431else 16432 enableval=yes 16433 enable_xcursor=yes 16434 16435fi; 16436echo "$as_me:16436: result: $enable_xcursor" >&5 16437echo "${ECHO_T}$enable_xcursor" >&6 16438if test "$enable_xcursor" = yes; then 16439 16440cat >>confdefs.h <<\EOF 16441#define HAVE_LIB_XCURSOR 1 16442EOF 16443 16444fi 16445 16446LIBS="$LIBS $X_EXTRA_LIBS" 16447 16448for ac_header in \ 16449stropts.h \ 16450 16451do 16452as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16453echo "$as_me:16453: checking for $ac_header" >&5 16454echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 16455if eval "test \"\${$as_ac_Header+set}\" = set"; then 16456 echo $ECHO_N "(cached) $ECHO_C" >&6 16457else 16458 cat >"conftest.$ac_ext" <<_ACEOF 16459#line 16459 "configure" 16460#include "confdefs.h" 16461#include <$ac_header> 16462_ACEOF 16463if { (eval echo "$as_me:16463: \"$ac_cpp "conftest.$ac_ext"\"") >&5 16464 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 16465 ac_status=$? 16466 $EGREP -v '^ *\+' conftest.er1 >conftest.err 16467 rm -f conftest.er1 16468 cat conftest.err >&5 16469 echo "$as_me:16469: \$? = $ac_status" >&5 16470 (exit "$ac_status"); } >/dev/null; then 16471 if test -s conftest.err; then 16472 ac_cpp_err=$ac_c_preproc_warn_flag 16473 else 16474 ac_cpp_err= 16475 fi 16476else 16477 ac_cpp_err=yes 16478fi 16479if test -z "$ac_cpp_err"; then 16480 eval "$as_ac_Header=yes" 16481else 16482 echo "$as_me: failed program was:" >&5 16483 cat "conftest.$ac_ext" >&5 16484 eval "$as_ac_Header=no" 16485fi 16486rm -f conftest.err "conftest.$ac_ext" 16487fi 16488echo "$as_me:16488: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 16489echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 16490if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 16491 cat >>confdefs.h <<EOF 16492#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16493EOF 16494 16495fi 16496done 16497 16498cf_func_grantpt="grantpt ptsname" 16499cf_prefer_openpt=no 16500case $host_os in 16501(darwin[0-9].*) 16502 ;; 16503(openbsd[0-9].*) 16504 # The POSIX entrypoints exist, but have never worked. 16505 ;; 16506(linux*) 16507 cf_func_grantpt="$cf_func_grantpt posix_openpt" 16508 cf_prefer_openpt=yes 16509 ;; 16510(*) 16511 cf_func_grantpt="$cf_func_grantpt posix_openpt" 16512 ;; 16513esac 16514 16515for ac_func in $cf_func_grantpt 16516do 16517as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16518echo "$as_me:16518: checking for $ac_func" >&5 16519echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16520if eval "test \"\${$as_ac_var+set}\" = set"; then 16521 echo $ECHO_N "(cached) $ECHO_C" >&6 16522else 16523 cat >"conftest.$ac_ext" <<_ACEOF 16524#line 16524 "configure" 16525#include "confdefs.h" 16526#define $ac_func autoconf_temporary 16527#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 16528#undef $ac_func 16529 16530#ifdef __cplusplus 16531extern "C" 16532#endif 16533 16534/* We use char because int might match the return type of a gcc2 16535 builtin and then its argument prototype would still apply. */ 16536char $ac_func (void); 16537 16538int 16539main (void) 16540{ 16541 16542/* The GNU C library defines stubs for functions which it implements 16543 to always fail with ENOSYS. Some functions are actually named 16544 something starting with __ and the normal name is an alias. */ 16545#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16546#error found stub for $ac_func 16547#endif 16548 16549 return $ac_func (); 16550 ; 16551 return 0; 16552} 16553_ACEOF 16554rm -f "conftest.$ac_objext" "conftest$ac_exeext" 16555if { (eval echo "$as_me:16555: \"$ac_link\"") >&5 16556 (eval $ac_link) 2>&5 16557 ac_status=$? 16558 echo "$as_me:16558: \$? = $ac_status" >&5 16559 (exit "$ac_status"); } && 16560 { ac_try='test -s "conftest$ac_exeext"' 16561 { (eval echo "$as_me:16561: \"$ac_try\"") >&5 16562 (eval $ac_try) 2>&5 16563 ac_status=$? 16564 echo "$as_me:16564: \$? = $ac_status" >&5 16565 (exit "$ac_status"); }; }; then 16566 eval "$as_ac_var=yes" 16567else 16568 echo "$as_me: failed program was:" >&5 16569cat "conftest.$ac_ext" >&5 16570eval "$as_ac_var=no" 16571fi 16572rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 16573fi 16574echo "$as_me:16574: result: `eval echo '${'"$as_ac_var"'}'`" >&5 16575echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 16576if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 16577 cat >>confdefs.h <<EOF 16578#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16579EOF 16580 16581fi 16582done 16583 16584cf_grantpt_opts= 16585if test "x$ac_cv_func_grantpt" = "xyes" ; then 16586 echo "$as_me:16586: checking if grantpt really works" >&5 16587echo $ECHO_N "checking if grantpt really works... $ECHO_C" >&6 16588 cat >"conftest.$ac_ext" <<_ACEOF 16589#line 16589 "configure" 16590#include "confdefs.h" 16591 16592#include <stdlib.h> 16593#include <stdio.h> 16594#include <termios.h> 16595#include <unistd.h> 16596#include <signal.h> 16597#include <fcntl.h> 16598#include <errno.h> 16599 16600#ifndef HAVE_POSIX_OPENPT 16601#undef posix_openpt 16602#define posix_openpt(mode) open("/dev/ptmx", mode) 16603#endif 16604 16605#ifdef HAVE_STROPTS_H 16606#include <stropts.h> 16607#endif 16608 16609static void failed(int code) 16610{ 16611 perror("conftest"); 16612 exit(code); 16613} 16614 16615static void my_timeout(int sig) 16616{ 16617 (void)sig; 16618 exit(99); 16619} 16620 16621int 16622main (void) 16623{ 16624 16625 int code = 0; 16626 int pty; 16627 int tty; 16628 char *slave; 16629 struct termios tio; 16630 16631 (void)tio; 16632 signal(SIGALRM, my_timeout); 16633 16634 if (alarm(2) == 9) 16635 failed(9); 16636 else if ((pty = posix_openpt(O_RDWR)) < 0) 16637 failed(1); 16638 else if (grantpt(pty) < 0) 16639 failed(2); 16640 else if (unlockpt(pty) < 0) 16641 failed(3); 16642 else if ((slave = ptsname(pty)) == 0) 16643 failed(4); 16644#if (CONFTEST == 3) || defined(CONFTEST_isatty) 16645 else if (!isatty(pty)) 16646 failed(4); 16647#endif 16648#if CONFTEST >= 4 16649 else if (tcgetattr(pty, &tio) < 0) 16650 failed(20); 16651 else if (tcsetattr(pty, TCSAFLUSH, &tio) < 0) 16652 failed(21); 16653#endif 16654 /* BSD posix_openpt does not treat pty as a terminal until slave is opened. 16655 * Linux does treat it that way. 16656 */ 16657 else if ((tty = open(slave, O_RDWR)) < 0) 16658 failed(5); 16659#ifdef CONFTEST 16660#ifdef I_PUSH 16661#if (CONFTEST == 0) || defined(CONFTEST_ptem) 16662 else if (ioctl(tty, I_PUSH, "ptem") < 0) 16663 failed(10); 16664#endif 16665#if (CONFTEST == 1) || defined(CONFTEST_ldterm) 16666 else if (ioctl(tty, I_PUSH, "ldterm") < 0) 16667 failed(11); 16668#endif 16669#if (CONFTEST == 2) || defined(CONFTEST_ttcompat) 16670 else if (ioctl(tty, I_PUSH, "ttcompat") < 0) 16671 failed(12); 16672#endif 16673#endif /* I_PUSH */ 16674#if CONFTEST >= 5 16675 else if (tcgetattr(tty, &tio) < 0) 16676 failed(30); 16677 else if (tcsetattr(tty, TCSAFLUSH, &tio) < 0) 16678 failed(31); 16679#endif 16680#endif /* CONFTEST */ 16681 (void) tty; 16682 ${cf_cv_main_return:-return}(code); 16683 16684 ; 16685 return 0; 16686} 16687_ACEOF 16688rm -f "conftest.$ac_objext" "conftest$ac_exeext" 16689if { (eval echo "$as_me:16689: \"$ac_link\"") >&5 16690 (eval $ac_link) 2>&5 16691 ac_status=$? 16692 echo "$as_me:16692: \$? = $ac_status" >&5 16693 (exit "$ac_status"); } && 16694 { ac_try='test -s "conftest$ac_exeext"' 16695 { (eval echo "$as_me:16695: \"$ac_try\"") >&5 16696 (eval $ac_try) 2>&5 16697 ac_status=$? 16698 echo "$as_me:16698: \$? = $ac_status" >&5 16699 (exit "$ac_status"); }; }; then 16700 16701 if test "$cross_compiling" = yes; then 16702 ac_cv_func_grantpt=maybe 16703else 16704 cat >"conftest.$ac_ext" <<_ACEOF 16705#line 16705 "configure" 16706#include "confdefs.h" 16707 16708#include <stdlib.h> 16709#include <stdio.h> 16710#include <termios.h> 16711#include <unistd.h> 16712#include <signal.h> 16713#include <fcntl.h> 16714#include <errno.h> 16715 16716#ifndef HAVE_POSIX_OPENPT 16717#undef posix_openpt 16718#define posix_openpt(mode) open("/dev/ptmx", mode) 16719#endif 16720 16721#ifdef HAVE_STROPTS_H 16722#include <stropts.h> 16723#endif 16724 16725static void failed(int code) 16726{ 16727 perror("conftest"); 16728 exit(code); 16729} 16730 16731static void my_timeout(int sig) 16732{ 16733 (void)sig; 16734 exit(99); 16735} 16736 16737int main(void) 16738{ 16739 16740 int code = 0; 16741 int pty; 16742 int tty; 16743 char *slave; 16744 struct termios tio; 16745 16746 (void)tio; 16747 signal(SIGALRM, my_timeout); 16748 16749 if (alarm(2) == 9) 16750 failed(9); 16751 else if ((pty = posix_openpt(O_RDWR)) < 0) 16752 failed(1); 16753 else if (grantpt(pty) < 0) 16754 failed(2); 16755 else if (unlockpt(pty) < 0) 16756 failed(3); 16757 else if ((slave = ptsname(pty)) == 0) 16758 failed(4); 16759#if (CONFTEST == 3) || defined(CONFTEST_isatty) 16760 else if (!isatty(pty)) 16761 failed(4); 16762#endif 16763#if CONFTEST >= 4 16764 else if (tcgetattr(pty, &tio) < 0) 16765 failed(20); 16766 else if (tcsetattr(pty, TCSAFLUSH, &tio) < 0) 16767 failed(21); 16768#endif 16769 /* BSD posix_openpt does not treat pty as a terminal until slave is opened. 16770 * Linux does treat it that way. 16771 */ 16772 else if ((tty = open(slave, O_RDWR)) < 0) 16773 failed(5); 16774#ifdef CONFTEST 16775#ifdef I_PUSH 16776#if (CONFTEST == 0) || defined(CONFTEST_ptem) 16777 else if (ioctl(tty, I_PUSH, "ptem") < 0) 16778 failed(10); 16779#endif 16780#if (CONFTEST == 1) || defined(CONFTEST_ldterm) 16781 else if (ioctl(tty, I_PUSH, "ldterm") < 0) 16782 failed(11); 16783#endif 16784#if (CONFTEST == 2) || defined(CONFTEST_ttcompat) 16785 else if (ioctl(tty, I_PUSH, "ttcompat") < 0) 16786 failed(12); 16787#endif 16788#endif /* I_PUSH */ 16789#if CONFTEST >= 5 16790 else if (tcgetattr(tty, &tio) < 0) 16791 failed(30); 16792 else if (tcsetattr(tty, TCSAFLUSH, &tio) < 0) 16793 failed(31); 16794#endif 16795#endif /* CONFTEST */ 16796 (void) tty; 16797 ${cf_cv_main_return:-return}(code); 16798 16799} 16800 16801_ACEOF 16802rm -f "conftest$ac_exeext" 16803if { (eval echo "$as_me:16803: \"$ac_link\"") >&5 16804 (eval $ac_link) 2>&5 16805 ac_status=$? 16806 echo "$as_me:16806: \$? = $ac_status" >&5 16807 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 16808 { (eval echo "$as_me:16808: \"$ac_try\"") >&5 16809 (eval $ac_try) 2>&5 16810 ac_status=$? 16811 echo "$as_me:16811: \$? = $ac_status" >&5 16812 (exit "$ac_status"); }; }; then 16813 : 16814else 16815 echo "$as_me: program exited with status $ac_status" >&5 16816echo "$as_me: failed program was:" >&5 16817cat "conftest.$ac_ext" >&5 16818ac_cv_func_grantpt=no 16819 16820fi 16821rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 16822fi 16823 16824else 16825 echo "$as_me: failed program was:" >&5 16826cat "conftest.$ac_ext" >&5 16827ac_cv_func_grantpt=no 16828fi 16829rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 16830 echo "$as_me:16830: result: $ac_cv_func_grantpt" >&5 16831echo "${ECHO_T}$ac_cv_func_grantpt" >&6 16832 16833 if test "x$ac_cv_func_grantpt" != "xno" ; then 16834 16835 if test "x$ac_cv_func_grantpt" = "xyes" ; then 16836 echo "$as_me:16836: checking for pty features" >&5 16837echo $ECHO_N "checking for pty features... $ECHO_C" >&6 16838 if test "x$ac_cv_header_stropts_h" = xyes 16839 then 16840 cf_pty_this=0 16841 else 16842 cf_pty_this=3 16843 fi 16844 16845 cf_pty_defines= 16846 while test $cf_pty_this != 6 16847 do 16848 16849 cf_pty_feature= 16850 cf_pty_next="`expr $cf_pty_this + 1`" 16851 16852echo "${as_me:-configure}:16852: testing pty feature test $cf_pty_next:5 ..." 1>&5 16853 16854 if test "$cross_compiling" = yes; then 16855 { { echo "$as_me:16855: error: cannot run test program while cross compiling" >&5 16856echo "$as_me: error: cannot run test program while cross compiling" >&2;} 16857 { (exit 1); exit 1; }; } 16858else 16859 cat >"conftest.$ac_ext" <<_ACEOF 16860#line 16860 "configure" 16861#include "confdefs.h" 16862#define CONFTEST $cf_pty_this 16863$cf_pty_defines 16864 16865#include <stdlib.h> 16866#include <stdio.h> 16867#include <termios.h> 16868#include <unistd.h> 16869#include <signal.h> 16870#include <fcntl.h> 16871#include <errno.h> 16872 16873#ifndef HAVE_POSIX_OPENPT 16874#undef posix_openpt 16875#define posix_openpt(mode) open("/dev/ptmx", mode) 16876#endif 16877 16878#ifdef HAVE_STROPTS_H 16879#include <stropts.h> 16880#endif 16881 16882static void failed(int code) 16883{ 16884 perror("conftest"); 16885 exit(code); 16886} 16887 16888static void my_timeout(int sig) 16889{ 16890 (void)sig; 16891 exit(99); 16892} 16893 16894int main(void) 16895{ 16896 16897 int code = 0; 16898 int pty; 16899 int tty; 16900 char *slave; 16901 struct termios tio; 16902 16903 (void)tio; 16904 signal(SIGALRM, my_timeout); 16905 16906 if (alarm(2) == 9) 16907 failed(9); 16908 else if ((pty = posix_openpt(O_RDWR)) < 0) 16909 failed(1); 16910 else if (grantpt(pty) < 0) 16911 failed(2); 16912 else if (unlockpt(pty) < 0) 16913 failed(3); 16914 else if ((slave = ptsname(pty)) == 0) 16915 failed(4); 16916#if (CONFTEST == 3) || defined(CONFTEST_isatty) 16917 else if (!isatty(pty)) 16918 failed(4); 16919#endif 16920#if CONFTEST >= 4 16921 else if (tcgetattr(pty, &tio) < 0) 16922 failed(20); 16923 else if (tcsetattr(pty, TCSAFLUSH, &tio) < 0) 16924 failed(21); 16925#endif 16926 /* BSD posix_openpt does not treat pty as a terminal until slave is opened. 16927 * Linux does treat it that way. 16928 */ 16929 else if ((tty = open(slave, O_RDWR)) < 0) 16930 failed(5); 16931#ifdef CONFTEST 16932#ifdef I_PUSH 16933#if (CONFTEST == 0) || defined(CONFTEST_ptem) 16934 else if (ioctl(tty, I_PUSH, "ptem") < 0) 16935 failed(10); 16936#endif 16937#if (CONFTEST == 1) || defined(CONFTEST_ldterm) 16938 else if (ioctl(tty, I_PUSH, "ldterm") < 0) 16939 failed(11); 16940#endif 16941#if (CONFTEST == 2) || defined(CONFTEST_ttcompat) 16942 else if (ioctl(tty, I_PUSH, "ttcompat") < 0) 16943 failed(12); 16944#endif 16945#endif /* I_PUSH */ 16946#if CONFTEST >= 5 16947 else if (tcgetattr(tty, &tio) < 0) 16948 failed(30); 16949 else if (tcsetattr(tty, TCSAFLUSH, &tio) < 0) 16950 failed(31); 16951#endif 16952#endif /* CONFTEST */ 16953 (void) tty; 16954 ${cf_cv_main_return:-return}(code); 16955 16956} 16957 16958_ACEOF 16959rm -f "conftest$ac_exeext" 16960if { (eval echo "$as_me:16960: \"$ac_link\"") >&5 16961 (eval $ac_link) 2>&5 16962 ac_status=$? 16963 echo "$as_me:16963: \$? = $ac_status" >&5 16964 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 16965 { (eval echo "$as_me:16965: \"$ac_try\"") >&5 16966 (eval $ac_try) 2>&5 16967 ac_status=$? 16968 echo "$as_me:16968: \$? = $ac_status" >&5 16969 (exit "$ac_status"); }; }; then 16970 16971 case $cf_pty_next in 16972 (1) # - streams 16973 cf_pty_feature=ptem 16974 ;; 16975 (2) # - streams 16976 cf_pty_feature=ldterm 16977 ;; 16978 (3) # - streams 16979 cf_pty_feature=ttcompat 16980 ;; 16981 (4) 16982 cf_pty_feature=pty_isatty 16983 ;; 16984 (5) 16985 cf_pty_feature=pty_tcsetattr 16986 ;; 16987 (6) 16988 cf_pty_feature=tty_tcsetattr 16989 ;; 16990 esac 16991 16992else 16993 echo "$as_me: program exited with status $ac_status" >&5 16994echo "$as_me: failed program was:" >&5 16995cat "conftest.$ac_ext" >&5 16996 16997 case $cf_pty_next in 16998 (1|2|3) 16999 17000echo "${as_me:-configure}:17000: testing skipping remaining streams features $cf_pty_this..2 ..." 1>&5 17001 17002 cf_pty_next=3 17003 ;; 17004 esac 17005 17006fi 17007rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 17008fi 17009 if test -n "$cf_pty_feature" 17010 then 17011 cf_pty_defines="$cf_pty_defines 17012#define CONFTEST_$cf_pty_feature 1 17013" 17014 cf_grantpt_opts="$cf_grantpt_opts $cf_pty_feature" 17015 fi 17016 17017 cf_pty_this=$cf_pty_next 17018 done 17019 echo "$as_me:17019: result: $cf_grantpt_opts" >&5 17020echo "${ECHO_T}$cf_grantpt_opts" >&6 17021 cf_grantpt_opts=`echo "$cf_grantpt_opts" | sed -e 's/ isatty//'` 17022 fi 17023 fi 17024fi 17025 17026if test "x$cf_prefer_posix_openpt" = "xyes" && test "x$ac_cv_func_posix_openpt" = "xyes" ; then 17027 test -n "$verbose" && echo " prefer posix_openpt over openpty" 1>&6 17028 17029echo "${as_me:-configure}:17029: testing prefer posix_openpt over openpty ..." 1>&5 17030 17031elif test "x$disable_openpty" != "xyes" || test -z "$cf_grantpt_opts" ; then 17032 echo "$as_me:17032: checking for openpty in -lutil" >&5 17033echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 17034if test "${ac_cv_lib_util_openpty+set}" = set; then 17035 echo $ECHO_N "(cached) $ECHO_C" >&6 17036else 17037 ac_check_lib_save_LIBS=$LIBS 17038LIBS="-lutil $LIBS" 17039cat >"conftest.$ac_ext" <<_ACEOF 17040#line 17040 "configure" 17041#include "confdefs.h" 17042 17043/* Override any gcc2 internal prototype to avoid an error. */ 17044#ifdef __cplusplus 17045extern "C" 17046#endif 17047/* We use char because int might match the return type of a gcc2 17048 builtin and then its argument prototype would still apply. */ 17049char openpty (void); 17050int 17051main (void) 17052{ 17053openpty (); 17054 ; 17055 return 0; 17056} 17057_ACEOF 17058rm -f "conftest.$ac_objext" "conftest$ac_exeext" 17059if { (eval echo "$as_me:17059: \"$ac_link\"") >&5 17060 (eval $ac_link) 2>&5 17061 ac_status=$? 17062 echo "$as_me:17062: \$? = $ac_status" >&5 17063 (exit "$ac_status"); } && 17064 { ac_try='test -s "conftest$ac_exeext"' 17065 { (eval echo "$as_me:17065: \"$ac_try\"") >&5 17066 (eval $ac_try) 2>&5 17067 ac_status=$? 17068 echo "$as_me:17068: \$? = $ac_status" >&5 17069 (exit "$ac_status"); }; }; then 17070 ac_cv_lib_util_openpty=yes 17071else 17072 echo "$as_me: failed program was:" >&5 17073cat "conftest.$ac_ext" >&5 17074ac_cv_lib_util_openpty=no 17075fi 17076rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 17077LIBS=$ac_check_lib_save_LIBS 17078fi 17079echo "$as_me:17079: result: $ac_cv_lib_util_openpty" >&5 17080echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 17081if test "$ac_cv_lib_util_openpty" = yes; then 17082 cf_have_openpty=yes 17083else 17084 cf_have_openpty=no 17085fi 17086 17087 if test "$cf_have_openpty" = yes ; then 17088 ac_cv_func_grantpt=no 17089 LIBS="-lutil $LIBS" 17090 17091cat >>confdefs.h <<\EOF 17092#define HAVE_OPENPTY 1 17093EOF 17094 17095for ac_header in \ 17096 util.h \ 17097 libutil.h \ 17098 pty.h \ 17099 17100do 17101as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 17102echo "$as_me:17102: checking for $ac_header" >&5 17103echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 17104if eval "test \"\${$as_ac_Header+set}\" = set"; then 17105 echo $ECHO_N "(cached) $ECHO_C" >&6 17106else 17107 cat >"conftest.$ac_ext" <<_ACEOF 17108#line 17108 "configure" 17109#include "confdefs.h" 17110#include <$ac_header> 17111_ACEOF 17112if { (eval echo "$as_me:17112: \"$ac_cpp "conftest.$ac_ext"\"") >&5 17113 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 17114 ac_status=$? 17115 $EGREP -v '^ *\+' conftest.er1 >conftest.err 17116 rm -f conftest.er1 17117 cat conftest.err >&5 17118 echo "$as_me:17118: \$? = $ac_status" >&5 17119 (exit "$ac_status"); } >/dev/null; then 17120 if test -s conftest.err; then 17121 ac_cpp_err=$ac_c_preproc_warn_flag 17122 else 17123 ac_cpp_err= 17124 fi 17125else 17126 ac_cpp_err=yes 17127fi 17128if test -z "$ac_cpp_err"; then 17129 eval "$as_ac_Header=yes" 17130else 17131 echo "$as_me: failed program was:" >&5 17132 cat "conftest.$ac_ext" >&5 17133 eval "$as_ac_Header=no" 17134fi 17135rm -f conftest.err "conftest.$ac_ext" 17136fi 17137echo "$as_me:17137: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 17138echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 17139if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 17140 cat >>confdefs.h <<EOF 17141#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 17142EOF 17143 17144fi 17145done 17146 17147 fi 17148fi 17149 17150if test "x$ac_cv_func_grantpt" != xno 17151then 17152 test -n "$verbose" && echo " will rely upon grantpt" 1>&6 17153 17154echo "${as_me:-configure}:17154: testing will rely upon grantpt ..." 1>&5 17155 17156cat >>confdefs.h <<\EOF 17157#define HAVE_WORKING_GRANTPT 1 17158EOF 17159 17160 for cf_feature in $cf_grantpt_opts 17161 do 17162 cf_feature=`echo "$cf_feature" | sed -e 's/ //g'` 17163 17164cf_FEATURE=`echo "$cf_feature" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 17165 17166 cat >>confdefs.h <<EOF 17167#define HAVE_GRANTPT_$cf_FEATURE 1 17168EOF 17169 17170 done 17171elif test "x$cf_have_openpty" = xno 17172then 17173 test -n "$verbose" && echo " will rely upon BSD-pseudoterminals" 1>&6 17174 17175echo "${as_me:-configure}:17175: testing will rely upon BSD-pseudoterminals ..." 1>&5 17176 17177else 17178 test -n "$verbose" && echo " will rely upon openpty" 1>&6 17179 17180echo "${as_me:-configure}:17180: testing will rely upon openpty ..." 1>&5 17181 17182fi 17183 17184echo "$as_me:17184: checking if we can use XkbQueryExtension" >&5 17185echo $ECHO_N "checking if we can use XkbQueryExtension... $ECHO_C" >&6 17186if test "${cf_cv_xkb_query_extension+set}" = set; then 17187 echo $ECHO_N "(cached) $ECHO_C" >&6 17188else 17189 17190cat >"conftest.$ac_ext" <<_ACEOF 17191#line 17191 "configure" 17192#include "confdefs.h" 17193 17194#include <X11/Xlib.h> 17195#include <X11/extensions/XKB.h> 17196#include <X11/XKBlib.h> 17197 17198int 17199main (void) 17200{ 17201 17202 int xkbmajor = XkbMajorVersion; 17203 int xkbminor = XkbMinorVersion; 17204 int xkbopcode, xkbevent, xkberror; 17205 17206 if (XkbLibraryVersion(&xkbmajor, &xkbminor) 17207 && XkbQueryExtension((Display *)0, 17208 &xkbopcode, 17209 &xkbevent, 17210 &xkberror, 17211 &xkbmajor, 17212 &xkbminor)) 17213 return 0; 17214 17215 ; 17216 return 0; 17217} 17218_ACEOF 17219rm -f "conftest.$ac_objext" 17220if { (eval echo "$as_me:17220: \"$ac_compile\"") >&5 17221 (eval $ac_compile) 2>&5 17222 ac_status=$? 17223 echo "$as_me:17223: \$? = $ac_status" >&5 17224 (exit "$ac_status"); } && 17225 { ac_try='test -s "conftest.$ac_objext"' 17226 { (eval echo "$as_me:17226: \"$ac_try\"") >&5 17227 (eval $ac_try) 2>&5 17228 ac_status=$? 17229 echo "$as_me:17229: \$? = $ac_status" >&5 17230 (exit "$ac_status"); }; }; then 17231 17232cf_cv_xkb_query_extension=yes 17233 17234else 17235 echo "$as_me: failed program was:" >&5 17236cat "conftest.$ac_ext" >&5 17237 17238cf_cv_xkb_query_extension=no 17239 17240fi 17241rm -f "conftest.$ac_objext" "conftest.$ac_ext" 17242 17243fi 17244echo "$as_me:17244: result: $cf_cv_xkb_query_extension" >&5 17245echo "${ECHO_T}$cf_cv_xkb_query_extension" >&6 17246 17247if test $cf_cv_xkb_query_extension = yes 17248then 17249 17250for ac_func in XkbQueryExtension 17251do 17252as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17253echo "$as_me:17253: checking for $ac_func" >&5 17254echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 17255if eval "test \"\${$as_ac_var+set}\" = set"; then 17256 echo $ECHO_N "(cached) $ECHO_C" >&6 17257else 17258 cat >"conftest.$ac_ext" <<_ACEOF 17259#line 17259 "configure" 17260#include "confdefs.h" 17261#define $ac_func autoconf_temporary 17262#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 17263#undef $ac_func 17264 17265#ifdef __cplusplus 17266extern "C" 17267#endif 17268 17269/* We use char because int might match the return type of a gcc2 17270 builtin and then its argument prototype would still apply. */ 17271char $ac_func (void); 17272 17273int 17274main (void) 17275{ 17276 17277/* The GNU C library defines stubs for functions which it implements 17278 to always fail with ENOSYS. Some functions are actually named 17279 something starting with __ and the normal name is an alias. */ 17280#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17281#error found stub for $ac_func 17282#endif 17283 17284 return $ac_func (); 17285 ; 17286 return 0; 17287} 17288_ACEOF 17289rm -f "conftest.$ac_objext" "conftest$ac_exeext" 17290if { (eval echo "$as_me:17290: \"$ac_link\"") >&5 17291 (eval $ac_link) 2>&5 17292 ac_status=$? 17293 echo "$as_me:17293: \$? = $ac_status" >&5 17294 (exit "$ac_status"); } && 17295 { ac_try='test -s "conftest$ac_exeext"' 17296 { (eval echo "$as_me:17296: \"$ac_try\"") >&5 17297 (eval $ac_try) 2>&5 17298 ac_status=$? 17299 echo "$as_me:17299: \$? = $ac_status" >&5 17300 (exit "$ac_status"); }; }; then 17301 eval "$as_ac_var=yes" 17302else 17303 echo "$as_me: failed program was:" >&5 17304cat "conftest.$ac_ext" >&5 17305eval "$as_ac_var=no" 17306fi 17307rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 17308fi 17309echo "$as_me:17309: result: `eval echo '${'"$as_ac_var"'}'`" >&5 17310echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 17311if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 17312 cat >>confdefs.h <<EOF 17313#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17314EOF 17315 17316fi 17317done 17318 17319fi 17320 17321echo "$as_me:17321: checking if we can use XkbKeycodeToKeysym" >&5 17322echo $ECHO_N "checking if we can use XkbKeycodeToKeysym... $ECHO_C" >&6 17323if test "${cf_cv_xkb_keycode_to_keysym+set}" = set; then 17324 echo $ECHO_N "(cached) $ECHO_C" >&6 17325else 17326 17327cat >"conftest.$ac_ext" <<_ACEOF 17328#line 17328 "configure" 17329#include "confdefs.h" 17330 17331#include <X11/Xlib.h> 17332#include <X11/XKBlib.h> 17333 17334int 17335main (void) 17336{ 17337 17338 KeySym keysym = XkbKeycodeToKeysym((Display *)0, 0, 0, 0); 17339 (void)keysym; 17340 17341 ; 17342 return 0; 17343} 17344_ACEOF 17345rm -f "conftest.$ac_objext" 17346if { (eval echo "$as_me:17346: \"$ac_compile\"") >&5 17347 (eval $ac_compile) 2>&5 17348 ac_status=$? 17349 echo "$as_me:17349: \$? = $ac_status" >&5 17350 (exit "$ac_status"); } && 17351 { ac_try='test -s "conftest.$ac_objext"' 17352 { (eval echo "$as_me:17352: \"$ac_try\"") >&5 17353 (eval $ac_try) 2>&5 17354 ac_status=$? 17355 echo "$as_me:17355: \$? = $ac_status" >&5 17356 (exit "$ac_status"); }; }; then 17357 17358cf_cv_xkb_keycode_to_keysym=yes 17359 17360else 17361 echo "$as_me: failed program was:" >&5 17362cat "conftest.$ac_ext" >&5 17363 17364cf_cv_xkb_keycode_to_keysym=no 17365 17366fi 17367rm -f "conftest.$ac_objext" "conftest.$ac_ext" 17368 17369fi 17370echo "$as_me:17370: result: $cf_cv_xkb_keycode_to_keysym" >&5 17371echo "${ECHO_T}$cf_cv_xkb_keycode_to_keysym" >&6 17372 17373if test $cf_cv_xkb_keycode_to_keysym = yes 17374then 17375 17376for ac_func in XkbKeycodeToKeysym 17377do 17378as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17379echo "$as_me:17379: checking for $ac_func" >&5 17380echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 17381if eval "test \"\${$as_ac_var+set}\" = set"; then 17382 echo $ECHO_N "(cached) $ECHO_C" >&6 17383else 17384 cat >"conftest.$ac_ext" <<_ACEOF 17385#line 17385 "configure" 17386#include "confdefs.h" 17387#define $ac_func autoconf_temporary 17388#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 17389#undef $ac_func 17390 17391#ifdef __cplusplus 17392extern "C" 17393#endif 17394 17395/* We use char because int might match the return type of a gcc2 17396 builtin and then its argument prototype would still apply. */ 17397char $ac_func (void); 17398 17399int 17400main (void) 17401{ 17402 17403/* The GNU C library defines stubs for functions which it implements 17404 to always fail with ENOSYS. Some functions are actually named 17405 something starting with __ and the normal name is an alias. */ 17406#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17407#error found stub for $ac_func 17408#endif 17409 17410 return $ac_func (); 17411 ; 17412 return 0; 17413} 17414_ACEOF 17415rm -f "conftest.$ac_objext" "conftest$ac_exeext" 17416if { (eval echo "$as_me:17416: \"$ac_link\"") >&5 17417 (eval $ac_link) 2>&5 17418 ac_status=$? 17419 echo "$as_me:17419: \$? = $ac_status" >&5 17420 (exit "$ac_status"); } && 17421 { ac_try='test -s "conftest$ac_exeext"' 17422 { (eval echo "$as_me:17422: \"$ac_try\"") >&5 17423 (eval $ac_try) 2>&5 17424 ac_status=$? 17425 echo "$as_me:17425: \$? = $ac_status" >&5 17426 (exit "$ac_status"); }; }; then 17427 eval "$as_ac_var=yes" 17428else 17429 echo "$as_me: failed program was:" >&5 17430cat "conftest.$ac_ext" >&5 17431eval "$as_ac_var=no" 17432fi 17433rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 17434fi 17435echo "$as_me:17435: result: `eval echo '${'"$as_ac_var"'}'`" >&5 17436echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 17437if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 17438 cat >>confdefs.h <<EOF 17439#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17440EOF 17441 17442fi 17443done 17444 17445fi 17446 17447cf_save_LIBS_CF_XKB_BELL_EXT="$LIBS" 17448cf_save_CFLAGS_CF_XKB_BELL_EXT="$CFLAGS" 17449cf_save_CPPFLAGS_CF_XKB_BELL_EXT="$CPPFLAGS" 17450LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}" 17451for cf_X_CFLAGS in $X_CFLAGS 17452do 17453 case "x$cf_X_CFLAGS" in 17454 x-[IUD]*) 17455 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS" 17456 ;; 17457 *) 17458 CFLAGS="$CFLAGS $cf_X_CFLAGS" 17459 ;; 17460 esac 17461done 17462 17463echo "$as_me:17463: checking for XKB Bell extension" >&5 17464echo $ECHO_N "checking for XKB Bell extension... $ECHO_C" >&6 17465if test "${cf_cv_xkb_bell_ext+set}" = set; then 17466 echo $ECHO_N "(cached) $ECHO_C" >&6 17467else 17468 17469cat >"conftest.$ac_ext" <<_ACEOF 17470#line 17470 "configure" 17471#include "confdefs.h" 17472 17473#include <X11/Intrinsic.h> 17474#include <X11/XKBlib.h> /* has the prototype */ 17475#include <X11/extensions/XKBbells.h> /* has the XkbBI_xxx definitions */ 17476 17477int 17478main (void) 17479{ 17480 17481 int x = (XkbBI_Info |XkbBI_MinorError |XkbBI_MajorError |XkbBI_TerminalBell |XkbBI_MarginBell); 17482 Atom y = 0; 17483 (void)x; 17484 XkbBell((Display *)0, (Window)0, 0, y); 17485 17486 ; 17487 return 0; 17488} 17489_ACEOF 17490rm -f "conftest.$ac_objext" "conftest$ac_exeext" 17491if { (eval echo "$as_me:17491: \"$ac_link\"") >&5 17492 (eval $ac_link) 2>&5 17493 ac_status=$? 17494 echo "$as_me:17494: \$? = $ac_status" >&5 17495 (exit "$ac_status"); } && 17496 { ac_try='test -s "conftest$ac_exeext"' 17497 { (eval echo "$as_me:17497: \"$ac_try\"") >&5 17498 (eval $ac_try) 2>&5 17499 ac_status=$? 17500 echo "$as_me:17500: \$? = $ac_status" >&5 17501 (exit "$ac_status"); }; }; then 17502 cf_cv_xkb_bell_ext=yes 17503else 17504 echo "$as_me: failed program was:" >&5 17505cat "conftest.$ac_ext" >&5 17506cf_cv_xkb_bell_ext=no 17507fi 17508rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 17509 17510fi 17511echo "$as_me:17511: result: $cf_cv_xkb_bell_ext" >&5 17512echo "${ECHO_T}$cf_cv_xkb_bell_ext" >&6 17513test "$cf_cv_xkb_bell_ext" = yes && 17514cat >>confdefs.h <<\EOF 17515#define HAVE_XKB_BELL_EXT 1 17516EOF 17517 17518LIBS="$cf_save_LIBS_CF_XKB_BELL_EXT" 17519CFLAGS="$cf_save_CFLAGS_CF_XKB_BELL_EXT" 17520CPPFLAGS="$cf_save_CPPFLAGS_CF_XKB_BELL_EXT" 17521 17522for ac_func in Xutf8LookupString 17523do 17524as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17525echo "$as_me:17525: checking for $ac_func" >&5 17526echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 17527if eval "test \"\${$as_ac_var+set}\" = set"; then 17528 echo $ECHO_N "(cached) $ECHO_C" >&6 17529else 17530 cat >"conftest.$ac_ext" <<_ACEOF 17531#line 17531 "configure" 17532#include "confdefs.h" 17533#define $ac_func autoconf_temporary 17534#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 17535#undef $ac_func 17536 17537#ifdef __cplusplus 17538extern "C" 17539#endif 17540 17541/* We use char because int might match the return type of a gcc2 17542 builtin and then its argument prototype would still apply. */ 17543char $ac_func (void); 17544 17545int 17546main (void) 17547{ 17548 17549/* The GNU C library defines stubs for functions which it implements 17550 to always fail with ENOSYS. Some functions are actually named 17551 something starting with __ and the normal name is an alias. */ 17552#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17553#error found stub for $ac_func 17554#endif 17555 17556 return $ac_func (); 17557 ; 17558 return 0; 17559} 17560_ACEOF 17561rm -f "conftest.$ac_objext" "conftest$ac_exeext" 17562if { (eval echo "$as_me:17562: \"$ac_link\"") >&5 17563 (eval $ac_link) 2>&5 17564 ac_status=$? 17565 echo "$as_me:17565: \$? = $ac_status" >&5 17566 (exit "$ac_status"); } && 17567 { ac_try='test -s "conftest$ac_exeext"' 17568 { (eval echo "$as_me:17568: \"$ac_try\"") >&5 17569 (eval $ac_try) 2>&5 17570 ac_status=$? 17571 echo "$as_me:17571: \$? = $ac_status" >&5 17572 (exit "$ac_status"); }; }; then 17573 eval "$as_ac_var=yes" 17574else 17575 echo "$as_me: failed program was:" >&5 17576cat "conftest.$ac_ext" >&5 17577eval "$as_ac_var=no" 17578fi 17579rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 17580fi 17581echo "$as_me:17581: result: `eval echo '${'"$as_ac_var"'}'`" >&5 17582echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 17583if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 17584 cat >>confdefs.h <<EOF 17585#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17586EOF 17587 17588else 17589 17590 EXTRAHDRS="$EXTRAHDRS xutf8.h" 17591 EXTRASRCS="$EXTRASRCS xutf8.c" 17592 EXTRAOBJS="$EXTRAOBJS xutf8.o" 17593 17594fi 17595done 17596 17597echo "$as_me:17597: checking if you want narrow prototypes for X libraries" >&5 17598echo $ECHO_N "checking if you want narrow prototypes for X libraries... $ECHO_C" >&6 17599 17600case `$ac_config_guess` in 17601(*freebsd*|*gnu*|*irix5*|*irix6*|*netbsd*|*openbsd*|*qnx*|*sco*|*sgi*) 17602 cf_default_narrowproto=yes 17603 ;; 17604(*) 17605 cf_default_narrowproto=no 17606 ;; 17607esac 17608 17609# Check whether --enable-narrowproto or --disable-narrowproto was given. 17610if test "${enable_narrowproto+set}" = set; then 17611 enableval="$enable_narrowproto" 17612 test "$enableval" != no && enableval=yes 17613 if test "$enableval" != "$cf_default_narrowproto" ; then 17614 enable_narrowproto=$enableval 17615 else 17616 enable_narrowproto=$cf_default_narrowproto 17617 fi 17618else 17619 enableval=$cf_default_narrowproto 17620 enable_narrowproto=$cf_default_narrowproto 17621 17622fi; 17623echo "$as_me:17623: result: $enable_narrowproto" >&5 17624echo "${ECHO_T}$enable_narrowproto" >&6 17625 17626echo "$as_me:17626: checking if we should use imake to help" >&5 17627echo $ECHO_N "checking if we should use imake to help... $ECHO_C" >&6 17628 17629# Check whether --enable-imake or --disable-imake was given. 17630if test "${enable_imake+set}" = set; then 17631 enableval="$enable_imake" 17632 test "$enableval" != yes && enableval=no 17633 if test "$enableval" != "no" ; then 17634 enable_imake=yes 17635 else 17636 enable_imake=no 17637 fi 17638else 17639 enableval=no 17640 enable_imake=no 17641 17642fi; 17643echo "$as_me:17643: result: $enable_imake" >&5 17644echo "${ECHO_T}$enable_imake" >&6 17645 17646if test "$enable_imake" = yes ; then 17647 17648for ac_prog in xmkmf imake 17649do 17650 # Extract the first word of "$ac_prog", so it can be a program name with args. 17651set dummy $ac_prog; ac_word=$2 17652echo "$as_me:17652: checking for $ac_word" >&5 17653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 17654if test "${ac_cv_path_IMAKE+set}" = set; then 17655 echo $ECHO_N "(cached) $ECHO_C" >&6 17656else 17657 case $IMAKE in 17658 [\\/]* | ?:[\\/]*) 17659 ac_cv_path_IMAKE="$IMAKE" # Let the user override the test with a path. 17660 ;; 17661 *) 17662 ac_save_IFS=$IFS; IFS=$ac_path_separator 17663ac_dummy="$PATH" 17664for ac_dir in $ac_dummy; do 17665 IFS=$ac_save_IFS 17666 test -z "$ac_dir" && ac_dir=. 17667 if $as_executable_p "$ac_dir/$ac_word"; then 17668 ac_cv_path_IMAKE="$ac_dir/$ac_word" 17669 echo "$as_me:17669: found $ac_dir/$ac_word" >&5 17670 break 17671fi 17672done 17673 17674 ;; 17675esac 17676fi 17677IMAKE=$ac_cv_path_IMAKE 17678 17679if test -n "$IMAKE"; then 17680 echo "$as_me:17680: result: $IMAKE" >&5 17681echo "${ECHO_T}$IMAKE" >&6 17682else 17683 echo "$as_me:17683: result: no" >&5 17684echo "${ECHO_T}no" >&6 17685fi 17686 17687 test -n "$IMAKE" && break 17688done 17689 17690if test -n "$IMAKE" ; then 17691 17692case $IMAKE in 17693(*/imake) 17694 cf_imake_opts="-DUseInstalled=YES" 17695 ;; 17696(*/util/xmkmf) 17697 # A single parameter tells xmkmf where the config-files are: 17698 cf_imake_opts="`echo "$IMAKE"|sed -e s,/config/util/xmkmf,,`" 17699 ;; 17700(*) 17701 cf_imake_opts= 17702 ;; 17703esac 17704 17705# If it's installed properly, imake (or its wrapper, xmkmf) will point to the 17706# config directory. 17707if mkdir conftestdir; then 17708 CDPATH=; export CDPATH 17709 cf_makefile=`cd "$srcdir" || exit;pwd`/Imakefile 17710 cd conftestdir 17711 17712 cat >fix_cflags.sed <<'CF_EOF' 17713s/\\//g 17714s/[ ][ ]*/ /g 17715s/"//g 17716:pack 17717s/\(=[^ ][^ ]*\) \([^-]\)/\1 \2/g 17718t pack 17719s/\(-D[a-zA-Z0-9_][a-zA-Z0-9_]*\)=\([^\'0-9 ][^ ]*\)/\1='\\"\2\\"'/g 17720s/^IMAKE[ ]/IMAKE_CFLAGS="/ 17721s/ / /g 17722s/$/"/ 17723CF_EOF 17724 17725 cat >fix_lflags.sed <<'CF_EOF' 17726s/^IMAKE[ ]*/IMAKE_LOADFLAGS="/ 17727s/$/"/ 17728CF_EOF 17729 17730 echo >./Imakefile 17731 test -f "$cf_makefile" && cat "$cf_makefile" >>./Imakefile 17732 17733 cat >> ./Imakefile <<'CF_EOF' 17734findstddefs: 17735 @echo IMAKE ${ALLDEFINES} $(MAIN_DEFINES) $(VENDORMANDEFS) | sed -f fix_cflags.sed 17736 @echo IMAKE ${EXTRA_LOAD_FLAGS} | sed -f fix_lflags.sed 17737CF_EOF 17738 17739 if ( $IMAKE "$cf_imake_opts" 1>/dev/null 2>&5 && test -f Makefile) 17740 then 17741 test -n "$verbose" && echo " Using $IMAKE $cf_imake_opts" 1>&6 17742 17743echo "${as_me:-configure}:17743: testing Using $IMAKE $cf_imake_opts ..." 1>&5 17744 17745 else 17746 # sometimes imake doesn't have the config path compiled in. Find it. 17747 cf_config= 17748 for cf_libpath in $X_LIBS $LIBS ; do 17749 case "$cf_libpath" in 17750 (-L*) 17751 cf_libpath=`echo ".$cf_libpath" | sed -e 's/^...//'` 17752 cf_libpath="$cf_libpath/X11/config" 17753 if test -d "$cf_libpath" ; then 17754 cf_config="$cf_libpath" 17755 break 17756 fi 17757 ;; 17758 esac 17759 done 17760 if test -z "$cf_config" ; then 17761 { echo "$as_me:17761: WARNING: Could not find imake config-directory" >&5 17762echo "$as_me: WARNING: Could not find imake config-directory" >&2;} 17763 else 17764 cf_imake_opts="$cf_imake_opts -I$cf_config" 17765 if ( "$IMAKE" -v "$cf_imake_opts" 2>&5) 17766 then 17767 test -n "$verbose" && echo " Using $IMAKE $cf_config" 1>&6 17768 17769echo "${as_me:-configure}:17769: testing Using $IMAKE $cf_config ..." 1>&5 17770 17771 else 17772 { echo "$as_me:17772: WARNING: Cannot run $IMAKE" >&5 17773echo "$as_me: WARNING: Cannot run $IMAKE" >&2;} 17774 fi 17775 fi 17776 fi 17777 17778 # GNU make sometimes prints "make[1]: Entering...", which 17779 # would confuse us. 17780 eval "`make findstddefs 2>/dev/null | grep -v make`" 17781 17782 cd .. 17783 rm -rf conftestdir 17784 17785 # We use ${ALLDEFINES} rather than ${STD_DEFINES} because the former 17786 # declares XTFUNCPROTO there. However, some vendors (e.g., SGI) have 17787 # modified it to support site.cf, adding a kludge for the /usr/include 17788 # directory. Try to filter that out, otherwise gcc won't find its 17789 # headers. 17790 if test -n "$GCC" ; then 17791 if test -n "$IMAKE_CFLAGS" ; then 17792 cf_nostdinc="" 17793 cf_std_incl="" 17794 cf_cpp_opts="" 17795 for cf_opt in $IMAKE_CFLAGS 17796 do 17797 case "$cf_opt" in 17798 (-nostdinc) 17799 cf_nostdinc="$cf_opt" 17800 ;; 17801 (-I/usr/include) 17802 cf_std_incl="$cf_opt" 17803 ;; 17804 (*) 17805 cf_cpp_opts="$cf_cpp_opts $cf_opt" 17806 ;; 17807 esac 17808 done 17809 if test -z "$cf_nostdinc" ; then 17810 IMAKE_CFLAGS="$cf_cpp_opts $cf_std_incl" 17811 elif test -z "$cf_std_incl" ; then 17812 IMAKE_CFLAGS="$cf_cpp_opts $cf_nostdinc" 17813 else 17814 test -n "$verbose" && echo " suppressed \"$cf_nostdinc\" and \"$cf_std_incl\"" 1>&6 17815 17816echo "${as_me:-configure}:17816: testing suppressed \"$cf_nostdinc\" and \"$cf_std_incl\" ..." 1>&5 17817 17818 IMAKE_CFLAGS="$cf_cpp_opts" 17819 fi 17820 fi 17821 fi 17822fi 17823 17824# Some imake configurations define PROJECTROOT with an empty value. Remove 17825# the empty definition. 17826case $IMAKE_CFLAGS in 17827(*-DPROJECTROOT=/*) 17828 ;; 17829(*) 17830 IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" |sed -e "s,-DPROJECTROOT=[ ], ,"` 17831 ;; 17832esac 17833 17834fi 17835 17836test -n "$verbose" && echo " IMAKE_CFLAGS $IMAKE_CFLAGS" 1>&6 17837 17838echo "${as_me:-configure}:17838: testing IMAKE_CFLAGS $IMAKE_CFLAGS ..." 1>&5 17839 17840test -n "$verbose" && echo " IMAKE_LOADFLAGS $IMAKE_LOADFLAGS" 1>&6 17841 17842echo "${as_me:-configure}:17842: testing IMAKE_LOADFLAGS $IMAKE_LOADFLAGS ..." 1>&5 17843 17844fi 17845 17846if test -n "$IMAKE" && test -n "$IMAKE_CFLAGS" ; then 17847 17848cf_fix_cppflags=no 17849cf_new_cflags= 17850cf_new_cppflags= 17851cf_new_extra_cppflags= 17852 17853for cf_add_cflags in $IMAKE_CFLAGS 17854do 17855case "$cf_fix_cppflags" in 17856(no) 17857 case "$cf_add_cflags" in 17858 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 17859 case "$cf_add_cflags" in 17860 (-D*) 17861 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 17862 17863 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 17864 && test -z "${cf_tst_cflags}" \ 17865 && cf_fix_cppflags=yes 17866 17867 if test "$cf_fix_cppflags" = yes ; then 17868 17869 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 17870 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 17871 17872 continue 17873 elif test "${cf_tst_cflags}" = "\"'" ; then 17874 17875 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 17876 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 17877 17878 continue 17879 fi 17880 ;; 17881 esac 17882 case "$CPPFLAGS" in 17883 (*$cf_add_cflags) 17884 ;; 17885 (*) 17886 case "$cf_add_cflags" in 17887 (-D*) 17888 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 17889 17890CPPFLAGS=`echo "$CPPFLAGS" | \ 17891 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 17892 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 17893 17894 ;; 17895 esac 17896 17897 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 17898 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 17899 17900 ;; 17901 esac 17902 ;; 17903 (*) 17904 17905 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 17906 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 17907 17908 ;; 17909 esac 17910 ;; 17911(yes) 17912 17913 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 17914 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 17915 17916 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 17917 17918 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 17919 && test -z "${cf_tst_cflags}" \ 17920 && cf_fix_cppflags=no 17921 ;; 17922esac 17923done 17924 17925if test -n "$cf_new_cflags" ; then 17926 17927 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 17928 CFLAGS="${CFLAGS}$cf_new_cflags" 17929 17930fi 17931 17932if test -n "$cf_new_cppflags" ; then 17933 17934 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 17935 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 17936 17937fi 17938 17939if test -n "$cf_new_extra_cppflags" ; then 17940 17941 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 17942 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 17943 17944fi 17945 17946else 17947 IMAKE_CFLAGS= 17948 IMAKE_LOADFLAGS= 17949 test -n "$verbose" && echo " make fallback definitions" 1>&6 17950 17951echo "${as_me:-configure}:17951: testing make fallback definitions ..." 1>&5 17952 17953 # We prefer config.guess' values when we can get them, to avoid 17954 # inconsistent results with uname (AIX for instance). However, 17955 # config.guess is not always consistent either. 17956 case $host_os in 17957 (*[0-9].[0-9]*) 17958 UNAME_RELEASE="$host_os" 17959 ;; 17960 (*) 17961 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown 17962 ;; 17963 esac 17964 17965 case .$UNAME_RELEASE in 17966 (*[0-9].[0-9]*) 17967 OSMAJORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/\..*//'` 17968 OSMINORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/^[^.]*\.//' -e 's/\..*//' -e 's/[^0-9].*//' ` 17969 test -z "$OSMAJORVERSION" && OSMAJORVERSION=1 17970 test -z "$OSMINORVERSION" && OSMINORVERSION=0 17971 IMAKE_CFLAGS="-DOSMAJORVERSION=$OSMAJORVERSION -DOSMINORVERSION=$OSMINORVERSION $IMAKE_CFLAGS" 17972 ;; 17973 esac 17974 17975 # FUNCPROTO is standard with X11R6, but XFree86 drops it, leaving some 17976 # fallback/fragments for NeedPrototypes, etc. 17977 IMAKE_CFLAGS="-DFUNCPROTO=15 $IMAKE_CFLAGS" 17978 17979 # If this is not set properly, Xaw's scrollbars will not work 17980 if test "$enable_narrowproto" = yes ; then 17981 IMAKE_CFLAGS="-DNARROWPROTO=1 $IMAKE_CFLAGS" 17982 fi 17983 17984 # Other special definitions: 17985 case $host_os in 17986 (aix*) 17987 # imake on AIX 5.1 defines AIXV3. really. 17988 IMAKE_CFLAGS="-DAIXV3 -DAIXV4 $IMAKE_CFLAGS" 17989 ;; 17990 (irix[56].*) 17991 # these are needed to make SIGWINCH work in xterm 17992 IMAKE_CFLAGS="-DSYSV -DSVR4 $IMAKE_CFLAGS" 17993 ;; 17994 esac 17995 17996 # "modern" systems install X applications in /usr/bin. Other systems may 17997 # use one of the X release-based directories. 17998 case "$CFLAGS $CPPFLAGS $IMAKE_CFLAGS" in 17999 (*-DPROJECTROOT*) 18000 ;; 18001 (*) 18002 for cf_dir in /usr/X11R7 /usr/X11R6 /usr/X11R5 18003 do 18004 if test -d "$cf_dir/bin" 18005 then 18006 IMAKE_CFLAGS="$IMAKE_CFLAGS -DPROJECTROOT=\\\"$cf_dir\\\"" 18007 break 18008 fi 18009 done 18010 ;; 18011 esac 18012 18013cf_fix_cppflags=no 18014cf_new_cflags= 18015cf_new_cppflags= 18016cf_new_extra_cppflags= 18017 18018for cf_add_cflags in $IMAKE_CFLAGS 18019do 18020case "$cf_fix_cppflags" in 18021(no) 18022 case "$cf_add_cflags" in 18023 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 18024 case "$cf_add_cflags" in 18025 (-D*) 18026 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 18027 18028 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 18029 && test -z "${cf_tst_cflags}" \ 18030 && cf_fix_cppflags=yes 18031 18032 if test "$cf_fix_cppflags" = yes ; then 18033 18034 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 18035 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 18036 18037 continue 18038 elif test "${cf_tst_cflags}" = "\"'" ; then 18039 18040 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 18041 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 18042 18043 continue 18044 fi 18045 ;; 18046 esac 18047 case "$CPPFLAGS" in 18048 (*$cf_add_cflags) 18049 ;; 18050 (*) 18051 case "$cf_add_cflags" in 18052 (-D*) 18053 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 18054 18055CPPFLAGS=`echo "$CPPFLAGS" | \ 18056 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 18057 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 18058 18059 ;; 18060 esac 18061 18062 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 18063 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 18064 18065 ;; 18066 esac 18067 ;; 18068 (*) 18069 18070 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 18071 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 18072 18073 ;; 18074 esac 18075 ;; 18076(yes) 18077 18078 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 18079 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 18080 18081 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 18082 18083 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 18084 && test -z "${cf_tst_cflags}" \ 18085 && cf_fix_cppflags=no 18086 ;; 18087esac 18088done 18089 18090if test -n "$cf_new_cflags" ; then 18091 18092 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 18093 CFLAGS="${CFLAGS}$cf_new_cflags" 18094 18095fi 18096 18097if test -n "$cf_new_cppflags" ; then 18098 18099 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 18100 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 18101 18102fi 18103 18104if test -n "$cf_new_extra_cppflags" ; then 18105 18106 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 18107 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 18108 18109fi 18110 18111fi 18112 18113# Extract the first word of "groff", so it can be a program name with args. 18114set dummy groff; ac_word=$2 18115echo "$as_me:18115: checking for $ac_word" >&5 18116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18117if test "${ac_cv_path_GROFF_PATH+set}" = set; then 18118 echo $ECHO_N "(cached) $ECHO_C" >&6 18119else 18120 case $GROFF_PATH in 18121 [\\/]* | ?:[\\/]*) 18122 ac_cv_path_GROFF_PATH="$GROFF_PATH" # Let the user override the test with a path. 18123 ;; 18124 *) 18125 ac_save_IFS=$IFS; IFS=$ac_path_separator 18126ac_dummy="$PATH" 18127for ac_dir in $ac_dummy; do 18128 IFS=$ac_save_IFS 18129 test -z "$ac_dir" && ac_dir=. 18130 if $as_executable_p "$ac_dir/$ac_word"; then 18131 ac_cv_path_GROFF_PATH="$ac_dir/$ac_word" 18132 echo "$as_me:18132: found $ac_dir/$ac_word" >&5 18133 break 18134fi 18135done 18136 18137 test -z "$ac_cv_path_GROFF_PATH" && ac_cv_path_GROFF_PATH="no" 18138 ;; 18139esac 18140fi 18141GROFF_PATH=$ac_cv_path_GROFF_PATH 18142 18143if test -n "$GROFF_PATH"; then 18144 echo "$as_me:18144: result: $GROFF_PATH" >&5 18145echo "${ECHO_T}$GROFF_PATH" >&6 18146else 18147 echo "$as_me:18147: result: no" >&5 18148echo "${ECHO_T}no" >&6 18149fi 18150 18151for ac_prog in nroff mandoc 18152do 18153 # Extract the first word of "$ac_prog", so it can be a program name with args. 18154set dummy $ac_prog; ac_word=$2 18155echo "$as_me:18155: checking for $ac_word" >&5 18156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18157if test "${ac_cv_path_NROFF_PATH+set}" = set; then 18158 echo $ECHO_N "(cached) $ECHO_C" >&6 18159else 18160 case $NROFF_PATH in 18161 [\\/]* | ?:[\\/]*) 18162 ac_cv_path_NROFF_PATH="$NROFF_PATH" # Let the user override the test with a path. 18163 ;; 18164 *) 18165 ac_save_IFS=$IFS; IFS=$ac_path_separator 18166ac_dummy="$PATH" 18167for ac_dir in $ac_dummy; do 18168 IFS=$ac_save_IFS 18169 test -z "$ac_dir" && ac_dir=. 18170 if $as_executable_p "$ac_dir/$ac_word"; then 18171 ac_cv_path_NROFF_PATH="$ac_dir/$ac_word" 18172 echo "$as_me:18172: found $ac_dir/$ac_word" >&5 18173 break 18174fi 18175done 18176 18177 ;; 18178esac 18179fi 18180NROFF_PATH=$ac_cv_path_NROFF_PATH 18181 18182if test -n "$NROFF_PATH"; then 18183 echo "$as_me:18183: result: $NROFF_PATH" >&5 18184echo "${ECHO_T}$NROFF_PATH" >&6 18185else 18186 echo "$as_me:18186: result: no" >&5 18187echo "${ECHO_T}no" >&6 18188fi 18189 18190 test -n "$NROFF_PATH" && break 18191done 18192test -n "$NROFF_PATH" || NROFF_PATH="no" 18193 18194# Extract the first word of "tbl", so it can be a program name with args. 18195set dummy tbl; ac_word=$2 18196echo "$as_me:18196: checking for $ac_word" >&5 18197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18198if test "${ac_cv_path_TBL_PATH+set}" = set; then 18199 echo $ECHO_N "(cached) $ECHO_C" >&6 18200else 18201 case $TBL_PATH in 18202 [\\/]* | ?:[\\/]*) 18203 ac_cv_path_TBL_PATH="$TBL_PATH" # Let the user override the test with a path. 18204 ;; 18205 *) 18206 ac_save_IFS=$IFS; IFS=$ac_path_separator 18207ac_dummy="$PATH" 18208for ac_dir in $ac_dummy; do 18209 IFS=$ac_save_IFS 18210 test -z "$ac_dir" && ac_dir=. 18211 if $as_executable_p "$ac_dir/$ac_word"; then 18212 ac_cv_path_TBL_PATH="$ac_dir/$ac_word" 18213 echo "$as_me:18213: found $ac_dir/$ac_word" >&5 18214 break 18215fi 18216done 18217 18218 test -z "$ac_cv_path_TBL_PATH" && ac_cv_path_TBL_PATH="cat" 18219 ;; 18220esac 18221fi 18222TBL_PATH=$ac_cv_path_TBL_PATH 18223 18224if test -n "$TBL_PATH"; then 18225 echo "$as_me:18225: result: $TBL_PATH" >&5 18226echo "${ECHO_T}$TBL_PATH" >&6 18227else 18228 echo "$as_me:18228: result: no" >&5 18229echo "${ECHO_T}no" >&6 18230fi 18231 18232if test "x$GROFF_PATH" = xno 18233then 18234 NROFF_NOTE= 18235 GROFF_NOTE="#" 18236else 18237 NROFF_NOTE="#" 18238 GROFF_NOTE= 18239fi 18240 18241echo "$as_me:18241: checking for fgrep" >&5 18242echo $ECHO_N "checking for fgrep... $ECHO_C" >&6 18243if test "${ac_cv_path_FGREP+set}" = set; then 18244 echo $ECHO_N "(cached) $ECHO_C" >&6 18245else 18246 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 18247 then ac_cv_path_FGREP="$GREP -F" 18248 else 18249 for ac_prog in gfgrep fgrep 18250do 18251 # Extract the first word of "$ac_prog", so it can be a program name with args. 18252set dummy $ac_prog; ac_word=$2 18253echo "$as_me:18253: checking for $ac_word" >&5 18254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18255if test "${ac_cv_path_FGREP+set}" = set; then 18256 echo $ECHO_N "(cached) $ECHO_C" >&6 18257else 18258 case $FGREP in 18259 [\\/]* | ?:[\\/]*) 18260 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 18261 ;; 18262 *) 18263 ac_save_IFS=$IFS; IFS=$ac_path_separator 18264ac_dummy="$PATH" 18265for ac_dir in $ac_dummy; do 18266 IFS=$ac_save_IFS 18267 test -z "$ac_dir" && ac_dir=. 18268 if $as_executable_p "$ac_dir/$ac_word"; then 18269 ac_cv_path_FGREP="$ac_dir/$ac_word" 18270 echo "$as_me:18270: found $ac_dir/$ac_word" >&5 18271 break 18272fi 18273done 18274 18275 ;; 18276esac 18277fi 18278FGREP=$ac_cv_path_FGREP 18279 18280if test -n "$FGREP"; then 18281 echo "$as_me:18281: result: $FGREP" >&5 18282echo "${ECHO_T}$FGREP" >&6 18283else 18284 echo "$as_me:18284: result: no" >&5 18285echo "${ECHO_T}no" >&6 18286fi 18287 18288 test -n "$FGREP" && break 18289done 18290test -n "$FGREP" || FGREP=": " 18291 18292 test "x$ac_cv_path_FGREP" = "x:" && { { echo "$as_me:18292: error: cannot find workable fgrep" >&5 18293echo "$as_me: error: cannot find workable fgrep" >&2;} 18294 { (exit 1); exit 1; }; } 18295 fi 18296fi 18297echo "$as_me:18297: result: $ac_cv_path_FGREP" >&5 18298echo "${ECHO_T}$ac_cv_path_FGREP" >&6 18299 FGREP="$ac_cv_path_FGREP" 18300 18301case "x${with_man2html}" in 18302(xno) 18303 cf_man2html=no 18304 ;; 18305(x|xyes) 18306 # Extract the first word of "man2html", so it can be a program name with args. 18307set dummy man2html; ac_word=$2 18308echo "$as_me:18308: checking for $ac_word" >&5 18309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18310if test "${ac_cv_path_cf_man2html+set}" = set; then 18311 echo $ECHO_N "(cached) $ECHO_C" >&6 18312else 18313 case $cf_man2html in 18314 [\\/]* | ?:[\\/]*) 18315 ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path. 18316 ;; 18317 *) 18318 ac_save_IFS=$IFS; IFS=$ac_path_separator 18319ac_dummy="$PATH" 18320for ac_dir in $ac_dummy; do 18321 IFS=$ac_save_IFS 18322 test -z "$ac_dir" && ac_dir=. 18323 if $as_executable_p "$ac_dir/$ac_word"; then 18324 ac_cv_path_cf_man2html="$ac_dir/$ac_word" 18325 echo "$as_me:18325: found $ac_dir/$ac_word" >&5 18326 break 18327fi 18328done 18329 18330 test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no" 18331 ;; 18332esac 18333fi 18334cf_man2html=$ac_cv_path_cf_man2html 18335 18336if test -n "$cf_man2html"; then 18337 echo "$as_me:18337: result: $cf_man2html" >&5 18338echo "${ECHO_T}$cf_man2html" >&6 18339else 18340 echo "$as_me:18340: result: no" >&5 18341echo "${ECHO_T}no" >&6 18342fi 18343 18344 case "x$cf_man2html" in 18345 (x/*) 18346 echo "$as_me:18346: checking for the modified Earl Hood script" >&5 18347echo $ECHO_N "checking for the modified Earl Hood script... $ECHO_C" >&6 18348 if ( $cf_man2html -help 2>&1 | grep 'Make an index of headers at the end' >/dev/null ) 18349 then 18350 cf_man2html_ok=yes 18351 else 18352 cf_man2html=no 18353 cf_man2html_ok=no 18354 fi 18355 echo "$as_me:18355: result: $cf_man2html_ok" >&5 18356echo "${ECHO_T}$cf_man2html_ok" >&6 18357 ;; 18358 (*) 18359 cf_man2html=no 18360 ;; 18361 esac 18362esac 18363 18364echo "$as_me:18364: checking for program to convert manpage to html" >&5 18365echo $ECHO_N "checking for program to convert manpage to html... $ECHO_C" >&6 18366 18367# Check whether --with-man2html or --without-man2html was given. 18368if test "${with_man2html+set}" = set; then 18369 withval="$with_man2html" 18370 cf_man2html=$withval 18371else 18372 cf_man2html=$cf_man2html 18373fi; 18374 18375cf_with_groff=no 18376 18377case $cf_man2html in 18378(yes) 18379 echo "$as_me:18379: result: man2html" >&5 18380echo "${ECHO_T}man2html" >&6 18381 # Extract the first word of "man2html", so it can be a program name with args. 18382set dummy man2html; ac_word=$2 18383echo "$as_me:18383: checking for $ac_word" >&5 18384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18385if test "${ac_cv_path_cf_man2html+set}" = set; then 18386 echo $ECHO_N "(cached) $ECHO_C" >&6 18387else 18388 case $cf_man2html in 18389 [\\/]* | ?:[\\/]*) 18390 ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path. 18391 ;; 18392 *) 18393 ac_save_IFS=$IFS; IFS=$ac_path_separator 18394ac_dummy="$PATH" 18395for ac_dir in $ac_dummy; do 18396 IFS=$ac_save_IFS 18397 test -z "$ac_dir" && ac_dir=. 18398 if $as_executable_p "$ac_dir/$ac_word"; then 18399 ac_cv_path_cf_man2html="$ac_dir/$ac_word" 18400 echo "$as_me:18400: found $ac_dir/$ac_word" >&5 18401 break 18402fi 18403done 18404 18405 test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no" 18406 ;; 18407esac 18408fi 18409cf_man2html=$ac_cv_path_cf_man2html 18410 18411if test -n "$cf_man2html"; then 18412 echo "$as_me:18412: result: $cf_man2html" >&5 18413echo "${ECHO_T}$cf_man2html" >&6 18414else 18415 echo "$as_me:18415: result: no" >&5 18416echo "${ECHO_T}no" >&6 18417fi 18418 18419 ;; 18420(no|groff|*/groff*) 18421 cf_with_groff=yes 18422 cf_man2html=$GROFF_PATH 18423 echo "$as_me:18423: result: $cf_man2html" >&5 18424echo "${ECHO_T}$cf_man2html" >&6 18425 ;; 18426(*) 18427 echo "$as_me:18427: result: $cf_man2html" >&5 18428echo "${ECHO_T}$cf_man2html" >&6 18429 ;; 18430esac 18431 18432MAN2HTML_TEMP="man2html.tmp" 18433 cat >$MAN2HTML_TEMP <<CF_EOF 18434#!$SHELL 18435# Temporary script generated by CF_WITH_MAN2HTML 18436# Convert inputs to html, sending result to standard output. 18437# 18438# Parameters: 18439# \${1} = rootname of file to convert 18440# \${2} = suffix of file to convert, e.g., "1" 18441# \${3} = macros to use, e.g., "man" 18442# 18443ROOT=\$1 18444TYPE=\$2 18445MACS=\$3 18446 18447unset LANG 18448unset LC_ALL 18449unset LC_CTYPE 18450unset LANGUAGE 18451GROFF_NO_SGR=stupid 18452export GROFF_NO_SGR 18453 18454CF_EOF 18455 18456NROFF_OPTS= 18457if test "x$cf_with_groff" = xyes 18458then 18459 MAN2HTML_NOTE="$GROFF_NOTE" 18460 MAN2HTML_PATH="$GROFF_PATH" 18461 cat >>$MAN2HTML_TEMP <<CF_EOF 18462$SHELL -c "$TBL_PATH \${ROOT}.\${TYPE} | $GROFF_PATH -P -o0 -I\${ROOT}_ -Thtml -\${MACS}" 18463CF_EOF 18464else 18465 # disable hyphenation if this is groff 18466 if test "x$GROFF_PATH" != xno 18467 then 18468 echo "$as_me:18468: checking if nroff is really groff" >&5 18469echo $ECHO_N "checking if nroff is really groff... $ECHO_C" >&6 18470 cf_check_groff="`$NROFF_PATH --version 2>/dev/null | grep groff`" 18471 test -n "$cf_check_groff" && cf_check_groff=yes 18472 test -n "$cf_check_groff" || cf_check_groff=no 18473 echo "$as_me:18473: result: $cf_check_groff" >&5 18474echo "${ECHO_T}$cf_check_groff" >&6 18475 test "x$cf_check_groff" = xyes && NROFF_OPTS="-rHY=0" 18476 fi 18477 MAN2HTML_NOTE="" 18478 18479if test "x$prefix" != xNONE; then 18480 cf_path_syntax="$prefix" 18481else 18482 cf_path_syntax="$ac_default_prefix" 18483fi 18484 18485case "x$cf_man2html" in 18486(x\$\(*\)*|x\'*\'*) 18487 ;; 18488(x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER) 18489 ;; 18490(x\$\{*prefix\}*|x\$\{*dir\}*) 18491 eval cf_man2html="$cf_man2html" 18492 case "x$cf_man2html" in 18493 (xNONE/*) 18494 cf_man2html=`echo "$cf_man2html" | sed -e s%NONE%$cf_path_syntax%` 18495 ;; 18496 esac 18497 ;; 18498(xno|xNONE/*) 18499 cf_man2html=`echo "$cf_man2html" | sed -e s%NONE%$cf_path_syntax%` 18500 ;; 18501(*) 18502 { { echo "$as_me:18502: error: expected a pathname, not \"$cf_man2html\"" >&5 18503echo "$as_me: error: expected a pathname, not \"$cf_man2html\"" >&2;} 18504 { (exit 1); exit 1; }; } 18505 ;; 18506esac 18507 18508 MAN2HTML_PATH="$cf_man2html" 18509 echo "$as_me:18509: checking for $cf_man2html top/bottom margins" >&5 18510echo $ECHO_N "checking for $cf_man2html top/bottom margins... $ECHO_C" >&6 18511 18512 # for this example, expect 3 lines of content, the remainder is head/foot 18513 cat >conftest.in <<CF_EOF 18514.TH HEAD1 HEAD2 HEAD3 HEAD4 HEAD5 18515.SH SECTION 18516MARKER 18517CF_EOF 18518 18519 LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out 18520 18521 cf_man2html_1st="`${FGREP-fgrep} -n MARKER conftest.out |sed -e 's/^[^0-9]*://' -e 's/:.*//'`" 18522 cf_man2html_top=`expr "$cf_man2html_1st" - 2` 18523 cf_man2html_bot="`wc -l conftest.out |sed -e 's/[^0-9]//g'`" 18524 cf_man2html_bot=`expr "$cf_man2html_bot" - 2 - "$cf_man2html_top"` 18525 cf_man2html_top_bot="-topm=$cf_man2html_top -botm=$cf_man2html_bot" 18526 18527 echo "$as_me:18527: result: $cf_man2html_top_bot" >&5 18528echo "${ECHO_T}$cf_man2html_top_bot" >&6 18529 18530 echo "$as_me:18530: checking for pagesize to use" >&5 18531echo $ECHO_N "checking for pagesize to use... $ECHO_C" >&6 18532 for cf_block in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 18533 do 18534 cat >>conftest.in <<CF_EOF 18535.nf 185360 185371 185382 185393 185404 185415 185426 185437 185448 185459 18546CF_EOF 18547 done 18548 18549 LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out 18550 cf_man2html_page="`${FGREP-fgrep} -n HEAD1 conftest.out |sed -n '$p' |sed -e 's/^[^0-9]*://' -e 's/:.*//'`" 18551 test -z "$cf_man2html_page" && cf_man2html_page=99999 18552 test "$cf_man2html_page" -gt 100 && cf_man2html_page=99999 18553 18554 rm -rf conftest* 18555 echo "$as_me:18555: result: $cf_man2html_page" >&5 18556echo "${ECHO_T}$cf_man2html_page" >&6 18557 18558 cat >>$MAN2HTML_TEMP <<CF_EOF 18559: \${MAN2HTML_PATH=$MAN2HTML_PATH} 18560MAN2HTML_OPTS="\$MAN2HTML_OPTS -index -title=\"\$ROOT(\$TYPE)\" -compress -pgsize $cf_man2html_page" 18561case \${TYPE} in 18562(ms) 18563 $TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH $NROFF_OPTS -\${MACS} | \$MAN2HTML_PATH -topm=0 -botm=0 \$MAN2HTML_OPTS 18564 ;; 18565(*) 18566 $TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH $NROFF_OPTS -\${MACS} | \$MAN2HTML_PATH $cf_man2html_top_bot \$MAN2HTML_OPTS 18567 ;; 18568esac 18569CF_EOF 18570fi 18571 18572chmod 700 $MAN2HTML_TEMP 18573 18574# If we have already established that there is a full termcap implementation, 18575# suppress the definitions for terminfo that we make have imported from the 18576# imake-file. 18577if test "x$cf_cv_lib_tgetent" != xno || test "x$cf_cv_lib_part_tgetent" != xno ; then 18578 case "$IMAKE_CFLAGS" in 18579 (*-DUSE_TERMINFO\ -DHAVE_TIGETSTR*) 18580 18581 test -n "$verbose" && echo " removing terminfo flags from IMAKE_CFLAGS" 1>&6 18582 18583echo "${as_me:-configure}:18583: testing removing terminfo flags from IMAKE_CFLAGS ..." 1>&5 18584 18585 IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" | sed -e 's/-DUSE_TERMINFO[ ]*-DHAVE_TIGETSTR[ ]*//'` 18586 test -n "$verbose" && echo " ...result $IMAKE_CFLAGS" 1>&6 18587 18588echo "${as_me:-configure}:18588: testing ...result $IMAKE_CFLAGS ..." 1>&5 18589 18590 test -n "$verbose" && echo " removing terminfo flags from CPPFLAGS" 1>&6 18591 18592echo "${as_me:-configure}:18592: testing removing terminfo flags from CPPFLAGS ..." 1>&5 18593 18594 CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/-DUSE_TERMINFO[ ]*-DHAVE_TIGETSTR[ ]*//'` 18595 test -n "$verbose" && echo " ...result $CPPFLAGS" 1>&6 18596 18597echo "${as_me:-configure}:18597: testing ...result $CPPFLAGS ..." 1>&5 18598 18599 ;; 18600 esac 18601fi 18602 18603echo "$as_me:18603: checking for default terminal-id" >&5 18604echo $ECHO_N "checking for default terminal-id... $ECHO_C" >&6 18605 18606# Check whether --with-terminal-id or --without-terminal-id was given. 18607if test "${with_terminal_id+set}" = set; then 18608 withval="$with_terminal_id" 18609 default_termid=$withval 18610else 18611 default_termid=vt420 18612fi; 18613echo "$as_me:18613: result: $default_termid" >&5 18614echo "${ECHO_T}$default_termid" >&6 18615case $default_termid in 18616(vt*) default_termid=`echo $default_termid | sed -e 's/^..//'` 18617 ;; 18618([1-9][0-9][0-9]|[1-9][0-9]) 18619 ;; 18620(*) 18621 { { echo "$as_me:18621: error: expected a number, not $default_termid" >&5 18622echo "$as_me: error: expected a number, not $default_termid" >&2;} 18623 { (exit 1); exit 1; }; } 18624 ;; 18625esac 18626 18627cat >>confdefs.h <<EOF 18628#define DFT_DECID "$default_termid" 18629EOF 18630 18631echo "$as_me:18631: checking for default terminal-type" >&5 18632echo $ECHO_N "checking for default terminal-type... $ECHO_C" >&6 18633 18634# Check whether --with-terminal-type or --without-terminal-type was given. 18635if test "${with_terminal_type+set}" = set; then 18636 withval="$with_terminal_type" 18637 default_TERM=$withval 18638else 18639 default_TERM=xterm 18640fi; 18641echo "$as_me:18641: result: $default_TERM" >&5 18642echo "${ECHO_T}$default_TERM" >&6 18643 18644cat >>confdefs.h <<EOF 18645#define DFT_TERMTYPE "$default_TERM" 18646EOF 18647 18648############################################################################### 18649echo "$as_me:18649: checking if backarrow-key should be BS" >&5 18650echo $ECHO_N "checking if backarrow-key should be BS... $ECHO_C" >&6 18651 18652# Check whether --enable-backarrow-key or --disable-backarrow-key was given. 18653if test "${enable_backarrow_key+set}" = set; then 18654 enableval="$enable_backarrow_key" 18655 test "$enableval" != no && enableval=yes 18656 if test "$enableval" != "yes" ; then 18657 backarrow_is_bs=$enableval 18658 else 18659 backarrow_is_bs=yes 18660 fi 18661else 18662 enableval=yes 18663 backarrow_is_bs=yes 18664 18665fi; 18666 18667echo "$as_me:18667: result: $backarrow_is_bs" >&5 18668echo "${ECHO_T}$backarrow_is_bs" >&6 18669case $backarrow_is_bs in 18670(yes) 18671 backarrow_is_bs=true 18672 ;; 18673(no) 18674 backarrow_is_bs=false 18675 ;; 18676esac 18677cf_xbool1=`echo "$backarrow_is_bs"|sed -e 's/^\(.\).*/\1/'` 18678 18679cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 18680 18681cf_xbool2=`echo "$backarrow_is_bs"|sed -e 's/^.//'` 18682backarrow_is_bs=${cf_xbool1}${cf_xbool2} 18683 18684cat >>confdefs.h <<EOF 18685#define DEF_BACKARO_BS $backarrow_is_bs 18686EOF 18687 18688echo "$as_me:18688: checking if backarrow-key should be treated as erase" >&5 18689echo $ECHO_N "checking if backarrow-key should be treated as erase... $ECHO_C" >&6 18690 18691# Check whether --enable-backarrow-is-erase or --disable-backarrow-is-erase was given. 18692if test "${enable_backarrow_is_erase+set}" = set; then 18693 enableval="$enable_backarrow_is_erase" 18694 test "$enableval" != yes && enableval=no 18695 if test "$enableval" != "no" ; then 18696 backarrow_is_erase=$enableval 18697 else 18698 backarrow_is_erase=no 18699 fi 18700else 18701 enableval=no 18702 backarrow_is_erase=no 18703 18704fi; 18705 18706echo "$as_me:18706: result: $backarrow_is_erase" >&5 18707echo "${ECHO_T}$backarrow_is_erase" >&6 18708case $backarrow_is_erase in 18709(yes) 18710 backarrow_is_erase=true 18711 ;; 18712(no) 18713 backarrow_is_erase=false 18714 ;; 18715esac 18716cf_xbool1=`echo "$backarrow_is_erase"|sed -e 's/^\(.\).*/\1/'` 18717 18718cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 18719 18720cf_xbool2=`echo "$backarrow_is_erase"|sed -e 's/^.//'` 18721backarrow_is_erase=${cf_xbool1}${cf_xbool2} 18722 18723cat >>confdefs.h <<EOF 18724#define DEF_BACKARO_ERASE $backarrow_is_erase 18725EOF 18726 18727echo "$as_me:18727: checking for default backspace/DEL setting" >&5 18728echo $ECHO_N "checking for default backspace/DEL setting... $ECHO_C" >&6 18729 18730# Check whether --enable-delete-is-del or --disable-delete-is-del was given. 18731if test "${enable_delete_is_del+set}" = set; then 18732 enableval="$enable_delete_is_del" 18733 delete_is_del=$enableval 18734else 18735 delete_is_del=maybe 18736fi; 18737 18738echo "$as_me:18738: result: $delete_is_del" >&5 18739echo "${ECHO_T}$delete_is_del" >&6 18740case $delete_is_del in 18741(yes) 18742 delete_is_del=true 18743 ;; 18744(no) 18745 delete_is_del=false 18746 ;; 18747esac 18748cf_xbool1=`echo "$delete_is_del"|sed -e 's/^\(.\).*/\1/'` 18749 18750cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 18751 18752cf_xbool2=`echo "$delete_is_del"|sed -e 's/^.//'` 18753delete_is_del=${cf_xbool1}${cf_xbool2} 18754 18755cat >>confdefs.h <<EOF 18756#define DEFDELETE_DEL $delete_is_del 18757EOF 18758 18759echo "$as_me:18759: checking for default pty initial erase setting" >&5 18760echo $ECHO_N "checking for default pty initial erase setting... $ECHO_C" >&6 18761 18762# Check whether --enable-pty-erase or --disable-pty-erase was given. 18763if test "${enable_pty_erase+set}" = set; then 18764 enableval="$enable_pty_erase" 18765 initial_erase=$enableval 18766else 18767 initial_erase=False 18768fi; 18769 18770echo "$as_me:18770: result: $initial_erase" >&5 18771echo "${ECHO_T}$initial_erase" >&6 18772case $initial_erase in 18773(yes) 18774 initial_erase=true 18775 ;; 18776(no) 18777 initial_erase=false 18778 ;; 18779esac 18780cf_xbool1=`echo "$initial_erase"|sed -e 's/^\(.\).*/\1/'` 18781 18782cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 18783 18784cf_xbool2=`echo "$initial_erase"|sed -e 's/^.//'` 18785initial_erase=${cf_xbool1}${cf_xbool2} 18786 18787cat >>confdefs.h <<EOF 18788#define DEF_INITIAL_ERASE $initial_erase 18789EOF 18790 18791echo "$as_me:18791: checking if alt should send ESC" >&5 18792echo $ECHO_N "checking if alt should send ESC... $ECHO_C" >&6 18793 18794# Check whether --enable-alt-sends-esc or --disable-alt-sends-esc was given. 18795if test "${enable_alt_sends_esc+set}" = set; then 18796 enableval="$enable_alt_sends_esc" 18797 test "$enableval" != yes && enableval=no 18798 if test "$enableval" != "no" ; then 18799 alt_sends_esc=$enableval 18800 else 18801 alt_sends_esc=no 18802 fi 18803else 18804 enableval=no 18805 alt_sends_esc=no 18806 18807fi; 18808 18809echo "$as_me:18809: result: $alt_sends_esc" >&5 18810echo "${ECHO_T}$alt_sends_esc" >&6 18811case $alt_sends_esc in 18812(yes) 18813 alt_sends_esc=true 18814 ;; 18815(no) 18816 alt_sends_esc=false 18817 ;; 18818esac 18819cf_xbool1=`echo "$alt_sends_esc"|sed -e 's/^\(.\).*/\1/'` 18820 18821cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 18822 18823cf_xbool2=`echo "$alt_sends_esc"|sed -e 's/^.//'` 18824alt_sends_esc=${cf_xbool1}${cf_xbool2} 18825 18826cat >>confdefs.h <<EOF 18827#define DEF_ALT_SENDS_ESC $alt_sends_esc 18828EOF 18829 18830echo "$as_me:18830: checking if meta should send ESC" >&5 18831echo $ECHO_N "checking if meta should send ESC... $ECHO_C" >&6 18832 18833# Check whether --enable-meta-sends-esc or --disable-meta-sends-esc was given. 18834if test "${enable_meta_sends_esc+set}" = set; then 18835 enableval="$enable_meta_sends_esc" 18836 test "$enableval" != yes && enableval=no 18837 if test "$enableval" != "no" ; then 18838 meta_sends_esc=$enableval 18839 else 18840 meta_sends_esc=no 18841 fi 18842else 18843 enableval=no 18844 meta_sends_esc=no 18845 18846fi; 18847 18848echo "$as_me:18848: result: $meta_sends_esc" >&5 18849echo "${ECHO_T}$meta_sends_esc" >&6 18850case $meta_sends_esc in 18851(yes) 18852 meta_sends_esc=true 18853 ;; 18854(no) 18855 meta_sends_esc=false 18856 ;; 18857esac 18858cf_xbool1=`echo "$meta_sends_esc"|sed -e 's/^\(.\).*/\1/'` 18859 18860cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 18861 18862cf_xbool2=`echo "$meta_sends_esc"|sed -e 's/^.//'` 18863meta_sends_esc=${cf_xbool1}${cf_xbool2} 18864 18865cat >>confdefs.h <<EOF 18866#define DEF_META_SENDS_ESC $meta_sends_esc 18867EOF 18868 18869############################################################################### 18870# Extract the first word of "tic", so it can be a program name with args. 18871set dummy tic; ac_word=$2 18872echo "$as_me:18872: checking for $ac_word" >&5 18873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18874if test "${ac_cv_prog_cf_tic_prog+set}" = set; then 18875 echo $ECHO_N "(cached) $ECHO_C" >&6 18876else 18877 if test -n "$cf_tic_prog"; then 18878 ac_cv_prog_cf_tic_prog="$cf_tic_prog" # Let the user override the test. 18879else 18880 ac_save_IFS=$IFS; IFS=$ac_path_separator 18881ac_dummy="$PATH" 18882for ac_dir in $ac_dummy; do 18883 IFS=$ac_save_IFS 18884 test -z "$ac_dir" && ac_dir=. 18885 $as_executable_p "$ac_dir/$ac_word" || continue 18886ac_cv_prog_cf_tic_prog="yes" 18887echo "$as_me:18887: found $ac_dir/$ac_word" >&5 18888break 18889done 18890 18891 test -z "$ac_cv_prog_cf_tic_prog" && ac_cv_prog_cf_tic_prog="no" 18892fi 18893fi 18894cf_tic_prog=$ac_cv_prog_cf_tic_prog 18895if test -n "$cf_tic_prog"; then 18896 echo "$as_me:18896: result: $cf_tic_prog" >&5 18897echo "${ECHO_T}$cf_tic_prog" >&6 18898else 18899 echo "$as_me:18899: result: no" >&5 18900echo "${ECHO_T}no" >&6 18901fi 18902 18903if test "$cf_tic_prog" = yes ; then 18904 if test -n "$TERMINFO" 18905 then 18906 case "$TERMINFO" in 18907 (/*) 18908 test -d "$TERMINFO" || unset TERMINFO 18909 ;; 18910 (*) 18911 unset TERMINFO 18912 ;; 18913 esac 18914 fi 18915 echo "$as_me:18915: checking for private terminfo-directory" >&5 18916echo $ECHO_N "checking for private terminfo-directory... $ECHO_C" >&6 18917 18918# Check whether --with-own-terminfo or --without-own-terminfo was given. 18919if test "${with_own_terminfo+set}" = set; then 18920 withval="$with_own_terminfo" 18921 TERMINFO_DIR=$withval 18922else 18923 TERMINFO_DIR=${TERMINFO-none} 18924fi; 18925 echo "$as_me:18925: result: $TERMINFO_DIR" >&5 18926echo "${ECHO_T}$TERMINFO_DIR" >&6 18927 if test "$TERMINFO_DIR" = yes ; then 18928 { echo "$as_me:18928: WARNING: no value given" >&5 18929echo "$as_me: WARNING: no value given" >&2;} 18930 elif test "$TERMINFO_DIR" != none ; then 18931 if test -d "$TERMINFO_DIR" ; then 18932 18933cat >>confdefs.h <<EOF 18934#define OWN_TERMINFO_DIR "$TERMINFO_DIR" 18935EOF 18936 18937 echo "$as_me:18937: checking if \$TERMINFO should also be set" >&5 18938echo $ECHO_N "checking if \$TERMINFO should also be set... $ECHO_C" >&6 18939 18940# Check whether --enable-env-terminfo or --disable-env-terminfo was given. 18941if test "${enable_env_terminfo+set}" = set; then 18942 enableval="$enable_env_terminfo" 18943 cf_env_terminfo=yes 18944else 18945 cf_env_terminfo=no 18946fi; 18947 echo "$as_me:18947: result: $cf_env_terminfo" >&5 18948echo "${ECHO_T}$cf_env_terminfo" >&6 18949 test $cf_env_terminfo = yes && 18950 18951cat >>confdefs.h <<\EOF 18952#define OWN_TERMINFO_ENV 1 18953EOF 18954 18955 else 18956 { echo "$as_me:18956: WARNING: not a directory" >&5 18957echo "$as_me: WARNING: not a directory" >&2;} 18958 fi 18959 elif test "$prefix" != NONE ; then 18960 TERMINFO_DIR='${prefix}/lib/terminfo' 18961 elif test -d /usr/lib/terminfo ; then 18962 TERMINFO_DIR=/usr/lib/terminfo 18963 else 18964 TERMINFO_DIR= 18965 fi 18966 SET_TERMINFO= 18967 if test -n "$TERMINFO_DIR" ; then 18968 TERMINFO_DIR='${DESTDIR}'$TERMINFO_DIR 18969 SET_TERMINFO='TERMINFO=${TERMINFO_DIR}' 18970 fi 18971 no_ticprog= 18972else 18973 no_ticprog="#" 18974 TERMINFO_DIR= 18975 SET_TERMINFO= 18976fi 18977 18978############################################################################### 18979 18980echo "$as_me:18980: checking if you want active-icons" >&5 18981echo $ECHO_N "checking if you want active-icons... $ECHO_C" >&6 18982 18983# Check whether --enable-active-icon or --disable-active-icon was given. 18984if test "${enable_active_icon+set}" = set; then 18985 enableval="$enable_active_icon" 18986 test "$enableval" != no && enableval=yes 18987 if test "$enableval" != "yes" ; then 18988 enable_active_icon=no 18989 else 18990 enable_active_icon=yes 18991 fi 18992else 18993 enableval=yes 18994 enable_active_icon=yes 18995 18996fi; 18997echo "$as_me:18997: result: $enable_active_icon" >&5 18998echo "${ECHO_T}$enable_active_icon" >&6 18999if test "$enable_active_icon" = no ; then 19000 19001cat >>confdefs.h <<\EOF 19002#define NO_ACTIVE_ICON 1 19003EOF 19004 19005fi 19006 19007echo "$as_me:19007: checking if you want ANSI color" >&5 19008echo $ECHO_N "checking if you want ANSI color... $ECHO_C" >&6 19009 19010# Check whether --enable-ansi-color or --disable-ansi-color was given. 19011if test "${enable_ansi_color+set}" = set; then 19012 enableval="$enable_ansi_color" 19013 test "$enableval" != no && enableval=yes 19014 if test "$enableval" != "yes" ; then 19015 enable_ansi_color=no 19016 else 19017 enable_ansi_color=yes 19018 fi 19019else 19020 enableval=yes 19021 enable_ansi_color=yes 19022 19023fi; 19024echo "$as_me:19024: result: $enable_ansi_color" >&5 19025echo "${ECHO_T}$enable_ansi_color" >&6 19026test "$enable_ansi_color" = no && 19027cat >>confdefs.h <<\EOF 19028#define OPT_ISO_COLORS 0 19029EOF 19030 19031if test "$enable_ansi_color" = yes ; then 19032 19033 echo "$as_me:19033: checking if you want 16 colors like aixterm" >&5 19034echo $ECHO_N "checking if you want 16 colors like aixterm... $ECHO_C" >&6 19035 19036# Check whether --enable-16-color or --disable-16-color was given. 19037if test "${enable_16_color+set}" = set; then 19038 enableval="$enable_16_color" 19039 test "$enableval" != no && enableval=yes 19040 if test "$enableval" != "yes" ; then 19041 enable_16_color=no 19042 else 19043 enable_16_color=yes 19044 fi 19045else 19046 enableval=yes 19047 enable_16_color=yes 19048 19049fi; 19050 echo "$as_me:19050: result: $enable_16_color" >&5 19051echo "${ECHO_T}$enable_16_color" >&6 19052 test "$enable_16_color" = no && 19053cat >>confdefs.h <<\EOF 19054#define OPT_AIX_COLORS 0 19055EOF 19056 19057 echo "$as_me:19057: checking if you want 256 colors" >&5 19058echo $ECHO_N "checking if you want 256 colors... $ECHO_C" >&6 19059 19060# Check whether --enable-256-color or --disable-256-color was given. 19061if test "${enable_256_color+set}" = set; then 19062 enableval="$enable_256_color" 19063 test "$enableval" != no && enableval=yes 19064 if test "$enableval" != "yes" ; then 19065 enable_256_color=no 19066 else 19067 enable_256_color=yes 19068 fi 19069else 19070 enableval=yes 19071 enable_256_color=yes 19072 19073fi; 19074 echo "$as_me:19074: result: $enable_256_color" >&5 19075echo "${ECHO_T}$enable_256_color" >&6 19076 19077 if test "$enable_256_color" = yes ; then 19078 19079 CHARPROC_DEPS="$CHARPROC_DEPS 256colres.h" 19080 EXTRAHDRS="$EXTRAHDRS 256colres.h" 19081 19082cat >>confdefs.h <<\EOF 19083#define OPT_256_COLORS 1 19084EOF 19085 19086 echo "$as_me:19086: checking if you want direct-color support" >&5 19087echo $ECHO_N "checking if you want direct-color support... $ECHO_C" >&6 19088 19089# Check whether --enable-direct-color or --disable-direct-color was given. 19090if test "${enable_direct_color+set}" = set; then 19091 enableval="$enable_direct_color" 19092 test "$enableval" != no && enableval=yes 19093 if test "$enableval" != "yes" ; then 19094 enable_direct_color=no 19095 else 19096 enable_direct_color=yes 19097 fi 19098else 19099 enableval=yes 19100 enable_direct_color=yes 19101 19102fi; 19103 echo "$as_me:19103: result: $enable_direct_color" >&5 19104echo "${ECHO_T}$enable_direct_color" >&6 19105 if test "$enable_direct_color" = yes ; then 19106 19107cat >>confdefs.h <<\EOF 19108#define OPT_DIRECT_COLOR 1 19109EOF 19110 19111 fi 19112 19113 else 19114 19115 echo "$as_me:19115: checking if you want 88 colors" >&5 19116echo $ECHO_N "checking if you want 88 colors... $ECHO_C" >&6 19117 19118# Check whether --enable-88-color or --disable-88-color was given. 19119if test "${enable_88_color+set}" = set; then 19120 enableval="$enable_88_color" 19121 test "$enableval" != no && enableval=yes 19122 if test "$enableval" != "yes" ; then 19123 enable_88_color=no 19124 else 19125 enable_88_color=yes 19126 fi 19127else 19128 enableval=yes 19129 enable_88_color=yes 19130 19131fi; 19132 echo "$as_me:19132: result: $enable_88_color" >&5 19133echo "${ECHO_T}$enable_88_color" >&6 19134 if test "$enable_88_color" = yes ; then 19135 CHARPROC_DEPS="$CHARPROC_DEPS 88colres.h" 19136 EXTRAHDRS="$EXTRAHDRS 88colres.h" 19137 19138cat >>confdefs.h <<\EOF 19139#define OPT_88_COLORS 1 19140EOF 19141 19142 fi 19143 19144 fi 19145 19146fi 19147 19148echo "$as_me:19148: checking if you want blinking cursor" >&5 19149echo $ECHO_N "checking if you want blinking cursor... $ECHO_C" >&6 19150 19151# Check whether --enable-blink-cursor or --disable-blink-cursor was given. 19152if test "${enable_blink_cursor+set}" = set; then 19153 enableval="$enable_blink_cursor" 19154 test "$enableval" != no && enableval=yes 19155 if test "$enableval" != "yes" ; then 19156 enable_blink_curs=no 19157 else 19158 enable_blink_curs=yes 19159 fi 19160else 19161 enableval=yes 19162 enable_blink_curs=yes 19163 19164fi; 19165echo "$as_me:19165: result: $enable_blink_curs" >&5 19166echo "${ECHO_T}$enable_blink_curs" >&6 19167test "$enable_blink_curs" = no && 19168cat >>confdefs.h <<\EOF 19169#define OPT_BLINK_CURS 0 19170EOF 19171 19172echo "$as_me:19172: checking if you want support for block-selection" >&5 19173echo $ECHO_N "checking if you want support for block-selection... $ECHO_C" >&6 19174 19175# Check whether --enable-block-select or --disable-block-select was given. 19176if test "${enable_block_select+set}" = set; then 19177 enableval="$enable_block_select" 19178 test "$enableval" != no && enableval=yes 19179 if test "$enableval" != "$assume_broken_osc" ; then 19180 enable_block_select=$enableval 19181 else 19182 enable_block_select=$enableval 19183 fi 19184else 19185 enableval=$assume_broken_osc 19186 enable_block_select=$enableval 19187 19188fi; 19189echo "$as_me:19189: result: $enable_block_select" >&5 19190echo "${ECHO_T}$enable_block_select" >&6 19191if test "$enable_block_select" = yes ; then 19192 19193cat >>confdefs.h <<\EOF 19194#define OPT_BLOCK_SELECT 1 19195EOF 19196 19197else 19198 19199cat >>confdefs.h <<\EOF 19200#define OPT_BLOCK_SELECT 0 19201EOF 19202 19203fi 19204 19205echo "$as_me:19205: checking if you want to ignore Linux's broken palette-strings" >&5 19206echo $ECHO_N "checking if you want to ignore Linux's broken palette-strings... $ECHO_C" >&6 19207 19208case $host_os in 19209(linux*) 19210 assume_broken_osc=yes ;; 19211(*) 19212 assume_broken_osc=no ;; 19213esac 19214 19215# Check whether --enable-broken-osc or --disable-broken-osc was given. 19216if test "${enable_broken_osc+set}" = set; then 19217 enableval="$enable_broken_osc" 19218 test "$enableval" != no && enableval=yes 19219 if test "$enableval" != "$assume_broken_osc" ; then 19220 enable_broken_osc=$enableval 19221 else 19222 enable_broken_osc=$enableval 19223 fi 19224else 19225 enableval=$assume_broken_osc 19226 enable_broken_osc=$enableval 19227 19228fi; 19229echo "$as_me:19229: result: $enable_broken_osc" >&5 19230echo "${ECHO_T}$enable_broken_osc" >&6 19231if test "$enable_broken_osc" = yes ; then 19232 19233cat >>confdefs.h <<\EOF 19234#define OPT_BROKEN_OSC 1 19235EOF 19236 19237else 19238 19239cat >>confdefs.h <<\EOF 19240#define OPT_BROKEN_OSC 0 19241EOF 19242 19243fi 19244 19245echo "$as_me:19245: checking if you want to allow broken string-terminators" >&5 19246echo $ECHO_N "checking if you want to allow broken string-terminators... $ECHO_C" >&6 19247 19248# Check whether --enable-broken-st or --disable-broken-st was given. 19249if test "${enable_broken_st+set}" = set; then 19250 enableval="$enable_broken_st" 19251 test "$enableval" != yes && enableval=no 19252 if test "$enableval" != "no" ; then 19253 enable_broken_st=no 19254 else 19255 enable_broken_st=yes 19256 fi 19257else 19258 enableval=no 19259 enable_broken_st=yes 19260 19261fi; 19262echo "$as_me:19262: result: $enable_broken_st" >&5 19263echo "${ECHO_T}$enable_broken_st" >&6 19264test "$enable_broken_st" = no && 19265cat >>confdefs.h <<\EOF 19266#define OPT_BROKEN_ST 0 19267EOF 19268 19269echo "$as_me:19269: checking if you want to compile-in icon data" >&5 19270echo $ECHO_N "checking if you want to compile-in icon data... $ECHO_C" >&6 19271 19272# Check whether --enable-builtin-xpms or --disable-builtin-xpms was given. 19273if test "${enable_builtin_xpms+set}" = set; then 19274 enableval="$enable_builtin_xpms" 19275 test "$enableval" != yes && enableval=no 19276 if test "$enableval" != "no" ; then 19277 enable_builtin_xpms=yes 19278 else 19279 enable_builtin_xpms=no 19280 fi 19281else 19282 enableval=no 19283 enable_builtin_xpms=no 19284 19285fi; 19286echo "$as_me:19286: result: $enable_builtin_xpms" >&5 19287echo "${ECHO_T}$enable_builtin_xpms" >&6 19288test "$enable_builtin_xpms" = yes && 19289cat >>confdefs.h <<\EOF 19290#define OPT_BUILTIN_XPMS 1 19291EOF 19292 19293echo "$as_me:19293: checking if you want printable 128-159" >&5 19294echo $ECHO_N "checking if you want printable 128-159... $ECHO_C" >&6 19295 19296# Check whether --enable-c1-print or --disable-c1-print was given. 19297if test "${enable_c1_print+set}" = set; then 19298 enableval="$enable_c1_print" 19299 test "$enableval" != no && enableval=yes 19300 if test "$enableval" != "yes" ; then 19301 enable_c1_print=no 19302 else 19303 enable_c1_print=yes 19304 fi 19305else 19306 enableval=yes 19307 enable_c1_print=yes 19308 19309fi; 19310echo "$as_me:19310: result: $enable_c1_print" >&5 19311echo "${ECHO_T}$enable_c1_print" >&6 19312test "$enable_c1_print" = no && 19313cat >>confdefs.h <<\EOF 19314#define OPT_C1_PRINT 0 19315EOF 19316 19317if test "$enable_ansi_color" = yes ; then 19318 19319 echo "$as_me:19319: checking if you want bold colors mapped like IBM PC" >&5 19320echo $ECHO_N "checking if you want bold colors mapped like IBM PC... $ECHO_C" >&6 19321 19322# Check whether --enable-bold-color or --disable-bold-color was given. 19323if test "${enable_bold_color+set}" = set; then 19324 enableval="$enable_bold_color" 19325 test "$enableval" != no && enableval=yes 19326 if test "$enableval" != "yes" ; then 19327 enable_pc_color=no 19328 else 19329 enable_pc_color=yes 19330 fi 19331else 19332 enableval=yes 19333 enable_pc_color=yes 19334 19335fi; 19336 echo "$as_me:19336: result: $enable_pc_color" >&5 19337echo "${ECHO_T}$enable_pc_color" >&6 19338 test "$enable_pc_color" = no && 19339cat >>confdefs.h <<\EOF 19340#define OPT_PC_COLORS 0 19341EOF 19342 19343 echo "$as_me:19343: checking if you want separate color-classes" >&5 19344echo $ECHO_N "checking if you want separate color-classes... $ECHO_C" >&6 19345 19346# Check whether --enable-color-class or --disable-color-class was given. 19347if test "${enable_color_class+set}" = set; then 19348 enableval="$enable_color_class" 19349 test "$enableval" != no && enableval=yes 19350 if test "$enableval" != "yes" ; then 19351 enable_color_class=no 19352 else 19353 enable_color_class=yes 19354 fi 19355else 19356 enableval=yes 19357 enable_color_class=yes 19358 19359fi; 19360 echo "$as_me:19360: result: $enable_color_class" >&5 19361echo "${ECHO_T}$enable_color_class" >&6 19362 test "$enable_color_class" = no && 19363cat >>confdefs.h <<\EOF 19364#define OPT_COLOR_CLASS 0 19365EOF 19366 19367 echo "$as_me:19367: checking if you want color-mode enabled by default" >&5 19368echo $ECHO_N "checking if you want color-mode enabled by default... $ECHO_C" >&6 19369 19370# Check whether --enable-color-mode or --disable-color-mode was given. 19371if test "${enable_color_mode+set}" = set; then 19372 enableval="$enable_color_mode" 19373 test "$enableval" != no && enableval=yes 19374 if test "$enableval" != "yes" ; then 19375 default_colormode=no 19376 else 19377 default_colormode=yes 19378 fi 19379else 19380 enableval=yes 19381 default_colormode=yes 19382 19383fi; 19384 echo "$as_me:19384: result: $default_colormode" >&5 19385echo "${ECHO_T}$default_colormode" >&6 19386 test "$default_colormode" = no && 19387cat >>confdefs.h <<\EOF 19388#define DFT_COLORMODE 0 19389EOF 19390 19391fi 19392 19393echo "$as_me:19393: checking if you want support for color highlighting" >&5 19394echo $ECHO_N "checking if you want support for color highlighting... $ECHO_C" >&6 19395 19396# Check whether --enable-highlighting or --disable-highlighting was given. 19397if test "${enable_highlighting+set}" = set; then 19398 enableval="$enable_highlighting" 19399 test "$enableval" != no && enableval=yes 19400 if test "$enableval" != "yes" ; then 19401 default_highlight=no 19402 else 19403 default_highlight=yes 19404 fi 19405else 19406 enableval=yes 19407 default_highlight=yes 19408 19409fi; 19410echo "$as_me:19410: result: $default_highlight" >&5 19411echo "${ECHO_T}$default_highlight" >&6 19412test "$default_highlight" = no && 19413cat >>confdefs.h <<\EOF 19414#define OPT_HIGHLIGHT_COLOR 0 19415EOF 19416 19417echo "$as_me:19417: checking if you want support for doublesize characters" >&5 19418echo $ECHO_N "checking if you want support for doublesize characters... $ECHO_C" >&6 19419 19420# Check whether --enable-doublechars or --disable-doublechars was given. 19421if test "${enable_doublechars+set}" = set; then 19422 enableval="$enable_doublechars" 19423 test "$enableval" != no && enableval=yes 19424 if test "$enableval" != "yes" ; then 19425 enable_doublechars=no 19426 else 19427 enable_doublechars=yes 19428 fi 19429else 19430 enableval=yes 19431 enable_doublechars=yes 19432 19433fi; 19434echo "$as_me:19434: result: $enable_doublechars" >&5 19435echo "${ECHO_T}$enable_doublechars" >&6 19436test "$enable_doublechars" = no && 19437cat >>confdefs.h <<\EOF 19438#define OPT_DEC_CHRSET 0 19439EOF 19440 19441echo "$as_me:19441: checking if you want fallback-support for box characters" >&5 19442echo $ECHO_N "checking if you want fallback-support for box characters... $ECHO_C" >&6 19443 19444# Check whether --enable-boxchars or --disable-boxchars was given. 19445if test "${enable_boxchars+set}" = set; then 19446 enableval="$enable_boxchars" 19447 test "$enableval" != no && enableval=yes 19448 if test "$enableval" != "yes" ; then 19449 enable_boxchars=no 19450 else 19451 enable_boxchars=yes 19452 fi 19453else 19454 enableval=yes 19455 enable_boxchars=yes 19456 19457fi; 19458echo "$as_me:19458: result: $enable_boxchars" >&5 19459echo "${ECHO_T}$enable_boxchars" >&6 19460test "$enable_boxchars" = no && 19461cat >>confdefs.h <<\EOF 19462#define OPT_BOX_CHARS 0 19463EOF 19464 19465echo "$as_me:19465: checking if you want to allow spawning commands to process selections" >&5 19466echo $ECHO_N "checking if you want to allow spawning commands to process selections... $ECHO_C" >&6 19467 19468# Check whether --enable-exec-selection or --disable-exec-selection was given. 19469if test "${enable_exec_selection+set}" = set; then 19470 enableval="$enable_exec_selection" 19471 test "$enableval" != no && enableval=yes 19472 if test "$enableval" != "yes" ; then 19473 enable_exec_selection=no 19474 else 19475 enable_exec_selection=yes 19476 fi 19477else 19478 enableval=yes 19479 enable_exec_selection=yes 19480 19481fi; 19482echo "$as_me:19482: result: $enable_exec_selection" >&5 19483echo "${ECHO_T}$enable_exec_selection" >&6 19484if test "$enable_exec_selection" = no ; then 19485 19486cat >>confdefs.h <<\EOF 19487#define OPT_EXEC_SELECTION 0 19488EOF 19489 19490fi 19491 19492echo "$as_me:19492: checking if you want to allow spawning new xterms" >&5 19493echo $ECHO_N "checking if you want to allow spawning new xterms... $ECHO_C" >&6 19494 19495# Check whether --enable-exec-xterm or --disable-exec-xterm was given. 19496if test "${enable_exec_xterm+set}" = set; then 19497 enableval="$enable_exec_xterm" 19498 test "$enableval" != yes && enableval=no 19499 if test "$enableval" != "no" ; then 19500 enable_exec_xterm=yes 19501 else 19502 enable_exec_xterm=no 19503 fi 19504else 19505 enableval=no 19506 enable_exec_xterm=no 19507 19508fi; 19509echo "$as_me:19509: result: $enable_exec_xterm" >&5 19510echo "${ECHO_T}$enable_exec_xterm" >&6 19511if test "$enable_exec_xterm" = yes ; then 19512 19513echo "$as_me:19513: checking for proc tree with cwd-support" >&5 19514echo $ECHO_N "checking for proc tree with cwd-support... $ECHO_C" >&6 19515if test "${cf_cv_procfs_cwd+set}" = set; then 19516 echo $ECHO_N "(cached) $ECHO_C" >&6 19517else 19518 19519cf_cv_procfs_cwd=no 19520for cf_path in /proc /compat/linux/proc /usr/compat/linux/proc 19521do 19522 if test -d "$cf_path" && \ 19523 test -d "$cf_path"/$$ && \ 19524 { test -d "$cf_path"/$$/cwd || \ 19525 test -L "$cf_path"/$$/cwd; }; then 19526 cf_cv_procfs_cwd="$cf_path" 19527 break 19528 fi 19529done 19530 19531fi 19532echo "$as_me:19532: result: $cf_cv_procfs_cwd" >&5 19533echo "${ECHO_T}$cf_cv_procfs_cwd" >&6 19534 19535 if test "$cf_cv_procfs_cwd" = no ; then 19536 { echo "$as_me:19536: WARNING: no suitable proc filesystem found" >&5 19537echo "$as_me: WARNING: no suitable proc filesystem found" >&2;} 19538 else 19539 19540cat >>confdefs.h <<EOF 19541#define PROCFS_ROOT "$cf_cv_procfs_cwd" 19542EOF 19543 19544cat >>confdefs.h <<\EOF 19545#define OPT_EXEC_XTERM 1 19546EOF 19547 19548 fi 19549fi 19550 19551if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "Xext"; then 19552 test -n "$verbose" && echo " found package Xext" 1>&6 19553 19554echo "${as_me:-configure}:19554: testing found package Xext ..." 1>&5 19555 19556 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "Xext" 2>/dev/null`" 19557 cf_pkgconfig_libs="`$PKG_CONFIG --libs "Xext" 2>/dev/null`" 19558 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6 19559 19560echo "${as_me:-configure}:19560: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5 19561 19562 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6 19563 19564echo "${as_me:-configure}:19564: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5 19565 19566cf_fix_cppflags=no 19567cf_new_cflags= 19568cf_new_cppflags= 19569cf_new_extra_cppflags= 19570 19571for cf_add_cflags in $cf_pkgconfig_incs 19572do 19573case "$cf_fix_cppflags" in 19574(no) 19575 case "$cf_add_cflags" in 19576 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 19577 case "$cf_add_cflags" in 19578 (-D*) 19579 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 19580 19581 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 19582 && test -z "${cf_tst_cflags}" \ 19583 && cf_fix_cppflags=yes 19584 19585 if test "$cf_fix_cppflags" = yes ; then 19586 19587 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 19588 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 19589 19590 continue 19591 elif test "${cf_tst_cflags}" = "\"'" ; then 19592 19593 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 19594 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 19595 19596 continue 19597 fi 19598 ;; 19599 esac 19600 case "$CPPFLAGS" in 19601 (*$cf_add_cflags) 19602 ;; 19603 (*) 19604 case "$cf_add_cflags" in 19605 (-D*) 19606 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 19607 19608CPPFLAGS=`echo "$CPPFLAGS" | \ 19609 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 19610 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 19611 19612 ;; 19613 esac 19614 19615 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 19616 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 19617 19618 ;; 19619 esac 19620 ;; 19621 (*) 19622 19623 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 19624 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 19625 19626 ;; 19627 esac 19628 ;; 19629(yes) 19630 19631 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 19632 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 19633 19634 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 19635 19636 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 19637 && test -z "${cf_tst_cflags}" \ 19638 && cf_fix_cppflags=no 19639 ;; 19640esac 19641done 19642 19643if test -n "$cf_new_cflags" ; then 19644 19645 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 19646 CFLAGS="${CFLAGS}$cf_new_cflags" 19647 19648fi 19649 19650if test -n "$cf_new_cppflags" ; then 19651 19652 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 19653 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 19654 19655fi 19656 19657if test -n "$cf_new_extra_cppflags" ; then 19658 19659 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 19660 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 19661 19662fi 19663 19664cf_add_libs="$LIBS" 19665# reverse order 19666cf_add_0lib= 19667for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 19668# filter duplicates 19669for cf_add_1lib in $cf_add_0lib; do 19670 for cf_add_2lib in $cf_add_libs; do 19671 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 19672 cf_add_1lib= 19673 break 19674 fi 19675 done 19676 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 19677done 19678LIBS="$cf_add_libs" 19679 19680 : 19681else 19682 cf_pkgconfig_incs= 19683 cf_pkgconfig_libs= 19684 19685 echo "$as_me:19685: checking for XextCreateExtension in -lXext" >&5 19686echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6 19687if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then 19688 echo $ECHO_N "(cached) $ECHO_C" >&6 19689else 19690 ac_check_lib_save_LIBS=$LIBS 19691LIBS="-lXext $LIBS" 19692cat >"conftest.$ac_ext" <<_ACEOF 19693#line 19693 "configure" 19694#include "confdefs.h" 19695 19696/* Override any gcc2 internal prototype to avoid an error. */ 19697#ifdef __cplusplus 19698extern "C" 19699#endif 19700/* We use char because int might match the return type of a gcc2 19701 builtin and then its argument prototype would still apply. */ 19702char XextCreateExtension (void); 19703int 19704main (void) 19705{ 19706XextCreateExtension (); 19707 ; 19708 return 0; 19709} 19710_ACEOF 19711rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19712if { (eval echo "$as_me:19712: \"$ac_link\"") >&5 19713 (eval $ac_link) 2>&5 19714 ac_status=$? 19715 echo "$as_me:19715: \$? = $ac_status" >&5 19716 (exit "$ac_status"); } && 19717 { ac_try='test -s "conftest$ac_exeext"' 19718 { (eval echo "$as_me:19718: \"$ac_try\"") >&5 19719 (eval $ac_try) 2>&5 19720 ac_status=$? 19721 echo "$as_me:19721: \$? = $ac_status" >&5 19722 (exit "$ac_status"); }; }; then 19723 ac_cv_lib_Xext_XextCreateExtension=yes 19724else 19725 echo "$as_me: failed program was:" >&5 19726cat "conftest.$ac_ext" >&5 19727ac_cv_lib_Xext_XextCreateExtension=no 19728fi 19729rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19730LIBS=$ac_check_lib_save_LIBS 19731fi 19732echo "$as_me:19732: result: $ac_cv_lib_Xext_XextCreateExtension" >&5 19733echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6 19734if test "$ac_cv_lib_Xext_XextCreateExtension" = yes; then 19735 19736cf_add_libs="$LIBS" 19737# reverse order 19738cf_add_0lib= 19739for cf_add_1lib in -lXext; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 19740# filter duplicates 19741for cf_add_1lib in $cf_add_0lib; do 19742 for cf_add_2lib in $cf_add_libs; do 19743 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 19744 cf_add_1lib= 19745 break 19746 fi 19747 done 19748 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 19749done 19750LIBS="$cf_add_libs" 19751 19752fi 19753 19754fi 19755 19756echo "$as_me:19756: checking for X11/extensions/Xdbe.h" >&5 19757echo $ECHO_N "checking for X11/extensions/Xdbe.h... $ECHO_C" >&6 19758if test "${ac_cv_header_X11_extensions_Xdbe_h+set}" = set; then 19759 echo $ECHO_N "(cached) $ECHO_C" >&6 19760else 19761 cat >"conftest.$ac_ext" <<_ACEOF 19762#line 19762 "configure" 19763#include "confdefs.h" 19764#include <X11/extensions/Xdbe.h> 19765_ACEOF 19766if { (eval echo "$as_me:19766: \"$ac_cpp "conftest.$ac_ext"\"") >&5 19767 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 19768 ac_status=$? 19769 $EGREP -v '^ *\+' conftest.er1 >conftest.err 19770 rm -f conftest.er1 19771 cat conftest.err >&5 19772 echo "$as_me:19772: \$? = $ac_status" >&5 19773 (exit "$ac_status"); } >/dev/null; then 19774 if test -s conftest.err; then 19775 ac_cpp_err=$ac_c_preproc_warn_flag 19776 else 19777 ac_cpp_err= 19778 fi 19779else 19780 ac_cpp_err=yes 19781fi 19782if test -z "$ac_cpp_err"; then 19783 ac_cv_header_X11_extensions_Xdbe_h=yes 19784else 19785 echo "$as_me: failed program was:" >&5 19786 cat "conftest.$ac_ext" >&5 19787 ac_cv_header_X11_extensions_Xdbe_h=no 19788fi 19789rm -f conftest.err "conftest.$ac_ext" 19790fi 19791echo "$as_me:19791: result: $ac_cv_header_X11_extensions_Xdbe_h" >&5 19792echo "${ECHO_T}$ac_cv_header_X11_extensions_Xdbe_h" >&6 19793if test "$ac_cv_header_X11_extensions_Xdbe_h" = yes; then 19794 19795cat >>confdefs.h <<\EOF 19796#define HAVE_X11_EXTENSIONS_XDBE_H 1 19797EOF 19798 19799 echo "$as_me:19799: checking for XdbeSwapBuffers" >&5 19800echo $ECHO_N "checking for XdbeSwapBuffers... $ECHO_C" >&6 19801if test "${ac_cv_func_XdbeSwapBuffers+set}" = set; then 19802 echo $ECHO_N "(cached) $ECHO_C" >&6 19803else 19804 cat >"conftest.$ac_ext" <<_ACEOF 19805#line 19805 "configure" 19806#include "confdefs.h" 19807#define XdbeSwapBuffers autoconf_temporary 19808#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 19809#undef XdbeSwapBuffers 19810 19811#ifdef __cplusplus 19812extern "C" 19813#endif 19814 19815/* We use char because int might match the return type of a gcc2 19816 builtin and then its argument prototype would still apply. */ 19817char XdbeSwapBuffers (void); 19818 19819int 19820main (void) 19821{ 19822 19823/* The GNU C library defines stubs for functions which it implements 19824 to always fail with ENOSYS. Some functions are actually named 19825 something starting with __ and the normal name is an alias. */ 19826#if defined (__stub_XdbeSwapBuffers) || defined (__stub___XdbeSwapBuffers) 19827#error found stub for XdbeSwapBuffers 19828#endif 19829 19830 return XdbeSwapBuffers (); 19831 ; 19832 return 0; 19833} 19834_ACEOF 19835rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19836if { (eval echo "$as_me:19836: \"$ac_link\"") >&5 19837 (eval $ac_link) 2>&5 19838 ac_status=$? 19839 echo "$as_me:19839: \$? = $ac_status" >&5 19840 (exit "$ac_status"); } && 19841 { ac_try='test -s "conftest$ac_exeext"' 19842 { (eval echo "$as_me:19842: \"$ac_try\"") >&5 19843 (eval $ac_try) 2>&5 19844 ac_status=$? 19845 echo "$as_me:19845: \$? = $ac_status" >&5 19846 (exit "$ac_status"); }; }; then 19847 ac_cv_func_XdbeSwapBuffers=yes 19848else 19849 echo "$as_me: failed program was:" >&5 19850cat "conftest.$ac_ext" >&5 19851ac_cv_func_XdbeSwapBuffers=no 19852fi 19853rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19854fi 19855echo "$as_me:19855: result: $ac_cv_func_XdbeSwapBuffers" >&5 19856echo "${ECHO_T}$ac_cv_func_XdbeSwapBuffers" >&6 19857if test "$ac_cv_func_XdbeSwapBuffers" = yes; then 19858 19859cat >>confdefs.h <<\EOF 19860#define HAVE_XDBESWAPBUFFERS 1 19861EOF 19862 19863 cf_x_ext_double_buffer=yes 19864fi 19865 19866fi 19867 19868double_buffer=False 19869if test "$cf_x_ext_double_buffer" = yes ; then 19870 echo "$as_me:19870: checking if you want to enable double-buffering in default resources" >&5 19871echo $ECHO_N "checking if you want to enable double-buffering in default resources... $ECHO_C" >&6 19872 19873# Check whether --enable-double-buffer or --disable-double-buffer was given. 19874if test "${enable_double_buffer+set}" = set; then 19875 enableval="$enable_double_buffer" 19876 test "$enableval" != yes && enableval=no 19877 if test "$enableval" != "no" ; then 19878 enable_double_bfr=yes 19879 else 19880 enable_double_bfr=no 19881 fi 19882else 19883 enableval=no 19884 enable_double_bfr=no 19885 19886fi; 19887 echo "$as_me:19887: result: $enable_double_bfr" >&5 19888echo "${ECHO_T}$enable_double_bfr" >&6 19889 if test "$enable_double_bfr" = yes ; then 19890 19891cat >>confdefs.h <<\EOF 19892#define OPT_DOUBLE_BUFFER 1 19893EOF 19894 19895 double_buffer=True 19896 fi 19897fi 19898 19899echo "$as_me:19899: checking if you want to use FreeType library" >&5 19900echo $ECHO_N "checking if you want to use FreeType library... $ECHO_C" >&6 19901 19902# Check whether --enable-freetype or --disable-freetype was given. 19903if test "${enable_freetype+set}" = set; then 19904 enableval="$enable_freetype" 19905 test "$enableval" != no && enableval=yes 19906 if test "$enableval" != "yes" ; then 19907 enable_freetype=no 19908 else 19909 enable_freetype=yes 19910 fi 19911else 19912 enableval=yes 19913 enable_freetype=yes 19914 19915fi; 19916echo "$as_me:19916: result: $enable_freetype" >&5 19917echo "${ECHO_T}$enable_freetype" >&6 19918if test "$enable_freetype" = yes ; then 19919 19920cf_cv_x_freetype_incs=no 19921cf_cv_x_freetype_libs=no 19922cf_extra_freetype_libs= 19923FREETYPE_CONFIG=none 19924FREETYPE_PARAMS= 19925 19926echo "$as_me:19926: checking for FreeType configuration script" >&5 19927echo $ECHO_N "checking for FreeType configuration script... $ECHO_C" >&6 19928 19929# Check whether --with-freetype-config or --without-freetype-config was given. 19930if test "${with_freetype_config+set}" = set; then 19931 withval="$with_freetype_config" 19932 cf_cv_x_freetype_cfgs="$withval" 19933else 19934 cf_cv_x_freetype_cfgs=auto 19935fi; 19936test -z $cf_cv_x_freetype_cfgs && cf_cv_x_freetype_cfgs=auto 19937test $cf_cv_x_freetype_cfgs = no && cf_cv_x_freetype_cfgs=none 19938echo "$as_me:19938: result: $cf_cv_x_freetype_cfgs" >&5 19939echo "${ECHO_T}$cf_cv_x_freetype_cfgs" >&6 19940 19941case $cf_cv_x_freetype_cfgs in 19942(none) 19943 echo "$as_me:19943: checking if you specified -D/-I options for FreeType" >&5 19944echo $ECHO_N "checking if you specified -D/-I options for FreeType... $ECHO_C" >&6 19945 19946# Check whether --with-freetype-cflags or --without-freetype-cflags was given. 19947if test "${with_freetype_cflags+set}" = set; then 19948 withval="$with_freetype_cflags" 19949 cf_cv_x_freetype_incs="$with_freetype_cflags" 19950else 19951 cf_cv_x_freetype_incs=no 19952fi; 19953 echo "$as_me:19953: result: $cf_cv_x_freetype_incs" >&5 19954echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6 19955 19956 echo "$as_me:19956: checking if you specified -L/-l options for FreeType" >&5 19957echo $ECHO_N "checking if you specified -L/-l options for FreeType... $ECHO_C" >&6 19958 19959# Check whether --with-freetype-libs or --without-freetype-libs was given. 19960if test "${with_freetype_libs+set}" = set; then 19961 withval="$with_freetype_libs" 19962 cf_cv_x_freetype_libs="$with_freetype_libs" 19963else 19964 cf_cv_x_freetype_libs=no 19965fi; 19966 echo "$as_me:19966: result: $cf_cv_x_freetype_libs" >&5 19967echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6 19968 ;; 19969(auto) 19970 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then 19971 FREETYPE_CONFIG=$PKG_CONFIG 19972 FREETYPE_PARAMS=xft 19973 else 19974 # Extract the first word of "freetype-config", so it can be a program name with args. 19975set dummy freetype-config; ac_word=$2 19976echo "$as_me:19976: checking for $ac_word" >&5 19977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19978if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then 19979 echo $ECHO_N "(cached) $ECHO_C" >&6 19980else 19981 case $FREETYPE_CONFIG in 19982 [\\/]* | ?:[\\/]*) 19983 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path. 19984 ;; 19985 *) 19986 ac_save_IFS=$IFS; IFS=$ac_path_separator 19987ac_dummy="$PATH" 19988for ac_dir in $ac_dummy; do 19989 IFS=$ac_save_IFS 19990 test -z "$ac_dir" && ac_dir=. 19991 if $as_executable_p "$ac_dir/$ac_word"; then 19992 ac_cv_path_FREETYPE_CONFIG="$ac_dir/$ac_word" 19993 echo "$as_me:19993: found $ac_dir/$ac_word" >&5 19994 break 19995fi 19996done 19997 19998 test -z "$ac_cv_path_FREETYPE_CONFIG" && ac_cv_path_FREETYPE_CONFIG="none" 19999 ;; 20000esac 20001fi 20002FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG 20003 20004if test -n "$FREETYPE_CONFIG"; then 20005 echo "$as_me:20005: result: $FREETYPE_CONFIG" >&5 20006echo "${ECHO_T}$FREETYPE_CONFIG" >&6 20007else 20008 echo "$as_me:20008: result: no" >&5 20009echo "${ECHO_T}no" >&6 20010fi 20011 20012 if test "$FREETYPE_CONFIG" != none; then 20013 FREETYPE_CONFIG=$FREETYPE_CONFIG 20014 cf_extra_freetype_libs="-lXft" 20015 else 20016 # Extract the first word of "xft-config", so it can be a program name with args. 20017set dummy xft-config; ac_word=$2 20018echo "$as_me:20018: checking for $ac_word" >&5 20019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20020if test "${ac_cv_path_FREETYPE_OLD_CONFIG+set}" = set; then 20021 echo $ECHO_N "(cached) $ECHO_C" >&6 20022else 20023 case $FREETYPE_OLD_CONFIG in 20024 [\\/]* | ?:[\\/]*) 20025 ac_cv_path_FREETYPE_OLD_CONFIG="$FREETYPE_OLD_CONFIG" # Let the user override the test with a path. 20026 ;; 20027 *) 20028 ac_save_IFS=$IFS; IFS=$ac_path_separator 20029ac_dummy="$PATH" 20030for ac_dir in $ac_dummy; do 20031 IFS=$ac_save_IFS 20032 test -z "$ac_dir" && ac_dir=. 20033 if $as_executable_p "$ac_dir/$ac_word"; then 20034 ac_cv_path_FREETYPE_OLD_CONFIG="$ac_dir/$ac_word" 20035 echo "$as_me:20035: found $ac_dir/$ac_word" >&5 20036 break 20037fi 20038done 20039 20040 test -z "$ac_cv_path_FREETYPE_OLD_CONFIG" && ac_cv_path_FREETYPE_OLD_CONFIG="none" 20041 ;; 20042esac 20043fi 20044FREETYPE_OLD_CONFIG=$ac_cv_path_FREETYPE_OLD_CONFIG 20045 20046if test -n "$FREETYPE_OLD_CONFIG"; then 20047 echo "$as_me:20047: result: $FREETYPE_OLD_CONFIG" >&5 20048echo "${ECHO_T}$FREETYPE_OLD_CONFIG" >&6 20049else 20050 echo "$as_me:20050: result: no" >&5 20051echo "${ECHO_T}no" >&6 20052fi 20053 20054 if test "$FREETYPE_OLD_CONFIG" != none; then 20055 FREETYPE_CONFIG=$FREETYPE_OLD_CONFIG 20056 fi 20057 fi 20058 fi 20059 ;; 20060(pkg*) 20061 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then 20062 FREETYPE_CONFIG=$cf_cv_x_freetype_cfgs 20063 FREETYPE_PARAMS=xft 20064 else 20065 { echo "$as_me:20065: WARNING: cannot find pkg-config for Xft" >&5 20066echo "$as_me: WARNING: cannot find pkg-config for Xft" >&2;} 20067 fi 20068 ;; 20069(*) 20070 # Extract the first word of "$cf_cv_x_freetype_cfgs", so it can be a program name with args. 20071set dummy $cf_cv_x_freetype_cfgs; ac_word=$2 20072echo "$as_me:20072: checking for $ac_word" >&5 20073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20074if test "${ac_cv_path_FREETYPE_XFT_CONFIG+set}" = set; then 20075 echo $ECHO_N "(cached) $ECHO_C" >&6 20076else 20077 case $FREETYPE_XFT_CONFIG in 20078 [\\/]* | ?:[\\/]*) 20079 ac_cv_path_FREETYPE_XFT_CONFIG="$FREETYPE_XFT_CONFIG" # Let the user override the test with a path. 20080 ;; 20081 *) 20082 ac_save_IFS=$IFS; IFS=$ac_path_separator 20083ac_dummy="$PATH" 20084for ac_dir in $ac_dummy; do 20085 IFS=$ac_save_IFS 20086 test -z "$ac_dir" && ac_dir=. 20087 if $as_executable_p "$ac_dir/$ac_word"; then 20088 ac_cv_path_FREETYPE_XFT_CONFIG="$ac_dir/$ac_word" 20089 echo "$as_me:20089: found $ac_dir/$ac_word" >&5 20090 break 20091fi 20092done 20093 20094 test -z "$ac_cv_path_FREETYPE_XFT_CONFIG" && ac_cv_path_FREETYPE_XFT_CONFIG="none" 20095 ;; 20096esac 20097fi 20098FREETYPE_XFT_CONFIG=$ac_cv_path_FREETYPE_XFT_CONFIG 20099 20100if test -n "$FREETYPE_XFT_CONFIG"; then 20101 echo "$as_me:20101: result: $FREETYPE_XFT_CONFIG" >&5 20102echo "${ECHO_T}$FREETYPE_XFT_CONFIG" >&6 20103else 20104 echo "$as_me:20104: result: no" >&5 20105echo "${ECHO_T}no" >&6 20106fi 20107 20108 if test "$FREETYPE_XFT_CONFIG" != none; then 20109 FREETYPE_CONFIG=$FREETYPE_XFT_CONFIG 20110 else 20111 { echo "$as_me:20111: WARNING: cannot find config script for Xft" >&5 20112echo "$as_me: WARNING: cannot find config script for Xft" >&2;} 20113 fi 20114 ;; 20115esac 20116 20117if test "$FREETYPE_CONFIG" != none ; then 20118 echo "$as_me:20118: checking for FreeType config" >&5 20119echo $ECHO_N "checking for FreeType config... $ECHO_C" >&6 20120 echo "$as_me:20120: result: $FREETYPE_CONFIG $FREETYPE_PARAMS" >&5 20121echo "${ECHO_T}$FREETYPE_CONFIG $FREETYPE_PARAMS" >&6 20122 20123 if test "$cf_cv_x_freetype_incs" = no ; then 20124 echo "$as_me:20124: checking for $FREETYPE_CONFIG cflags" >&5 20125echo $ECHO_N "checking for $FREETYPE_CONFIG cflags... $ECHO_C" >&6 20126 cf_cv_x_freetype_incs="`$FREETYPE_CONFIG $FREETYPE_PARAMS --cflags 2>/dev/null`" 20127 echo "$as_me:20127: result: $cf_cv_x_freetype_incs" >&5 20128echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6 20129 fi 20130 20131 if test "$cf_cv_x_freetype_libs" = no ; then 20132 echo "$as_me:20132: checking for $FREETYPE_CONFIG libs" >&5 20133echo $ECHO_N "checking for $FREETYPE_CONFIG libs... $ECHO_C" >&6 20134 cf_cv_x_freetype_libs="$cf_extra_freetype_libs `$FREETYPE_CONFIG $FREETYPE_PARAMS --libs 2>/dev/null`" 20135 echo "$as_me:20135: result: $cf_cv_x_freetype_libs" >&5 20136echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6 20137 fi 20138fi 20139 20140if test "$cf_cv_x_freetype_incs" = no ; then 20141 cf_cv_x_freetype_incs= 20142fi 20143 20144if test "$cf_cv_x_freetype_libs" = no ; then 20145 cf_cv_x_freetype_libs=-lXft 20146fi 20147 20148echo "$as_me:20148: checking if we can link with FreeType libraries" >&5 20149echo $ECHO_N "checking if we can link with FreeType libraries... $ECHO_C" >&6 20150 20151cf_save_LIBS="$LIBS" 20152cf_save_INCS="$CPPFLAGS" 20153 20154cf_add_libs="$LIBS" 20155# reverse order 20156cf_add_0lib= 20157for cf_add_1lib in $cf_cv_x_freetype_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 20158# filter duplicates 20159for cf_add_1lib in $cf_add_0lib; do 20160 for cf_add_2lib in $cf_add_libs; do 20161 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 20162 cf_add_1lib= 20163 break 20164 fi 20165 done 20166 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 20167done 20168LIBS="$cf_add_libs" 20169 20170CPPFLAGS="$CPPFLAGS $cf_cv_x_freetype_incs" 20171 20172cat >"conftest.$ac_ext" <<_ACEOF 20173#line 20173 "configure" 20174#include "confdefs.h" 20175 20176#include <X11/Xlib.h> 20177#include <X11/extensions/Xrender.h> 20178#include <X11/Xft/Xft.h> 20179int 20180main (void) 20181{ 20182 20183 XftPattern *pat = XftNameParse ("name"); (void)pat 20184 ; 20185 return 0; 20186} 20187_ACEOF 20188rm -f "conftest.$ac_objext" "conftest$ac_exeext" 20189if { (eval echo "$as_me:20189: \"$ac_link\"") >&5 20190 (eval $ac_link) 2>&5 20191 ac_status=$? 20192 echo "$as_me:20192: \$? = $ac_status" >&5 20193 (exit "$ac_status"); } && 20194 { ac_try='test -s "conftest$ac_exeext"' 20195 { (eval echo "$as_me:20195: \"$ac_try\"") >&5 20196 (eval $ac_try) 2>&5 20197 ac_status=$? 20198 echo "$as_me:20198: \$? = $ac_status" >&5 20199 (exit "$ac_status"); }; }; then 20200 cf_cv_found_freetype=yes 20201else 20202 echo "$as_me: failed program was:" >&5 20203cat "conftest.$ac_ext" >&5 20204cf_cv_found_freetype=no 20205fi 20206rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 20207echo "$as_me:20207: result: $cf_cv_found_freetype" >&5 20208echo "${ECHO_T}$cf_cv_found_freetype" >&6 20209 20210LIBS="$cf_save_LIBS" 20211CPPFLAGS="$cf_save_INCS" 20212 20213if test "$cf_cv_found_freetype" = yes ; then 20214 20215cf_add_libs="$LIBS" 20216# reverse order 20217cf_add_0lib= 20218for cf_add_1lib in $cf_cv_x_freetype_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 20219# filter duplicates 20220for cf_add_1lib in $cf_add_0lib; do 20221 for cf_add_2lib in $cf_add_libs; do 20222 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 20223 cf_add_1lib= 20224 break 20225 fi 20226 done 20227 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 20228done 20229LIBS="$cf_add_libs" 20230 20231cf_fix_cppflags=no 20232cf_new_cflags= 20233cf_new_cppflags= 20234cf_new_extra_cppflags= 20235 20236for cf_add_cflags in $cf_cv_x_freetype_incs 20237do 20238case "$cf_fix_cppflags" in 20239(no) 20240 case "$cf_add_cflags" in 20241 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 20242 case "$cf_add_cflags" in 20243 (-D*) 20244 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 20245 20246 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 20247 && test -z "${cf_tst_cflags}" \ 20248 && cf_fix_cppflags=yes 20249 20250 if test "$cf_fix_cppflags" = yes ; then 20251 20252 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20253 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20254 20255 continue 20256 elif test "${cf_tst_cflags}" = "\"'" ; then 20257 20258 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20259 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20260 20261 continue 20262 fi 20263 ;; 20264 esac 20265 case "$CPPFLAGS" in 20266 (*$cf_add_cflags) 20267 ;; 20268 (*) 20269 case "$cf_add_cflags" in 20270 (-D*) 20271 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 20272 20273CPPFLAGS=`echo "$CPPFLAGS" | \ 20274 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 20275 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 20276 20277 ;; 20278 esac 20279 20280 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 20281 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 20282 20283 ;; 20284 esac 20285 ;; 20286 (*) 20287 20288 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 20289 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 20290 20291 ;; 20292 esac 20293 ;; 20294(yes) 20295 20296 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20297 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20298 20299 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 20300 20301 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 20302 && test -z "${cf_tst_cflags}" \ 20303 && cf_fix_cppflags=no 20304 ;; 20305esac 20306done 20307 20308if test -n "$cf_new_cflags" ; then 20309 20310 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 20311 CFLAGS="${CFLAGS}$cf_new_cflags" 20312 20313fi 20314 20315if test -n "$cf_new_cppflags" ; then 20316 20317 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 20318 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 20319 20320fi 20321 20322if test -n "$cf_new_extra_cppflags" ; then 20323 20324 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 20325 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 20326 20327fi 20328 20329cat >>confdefs.h <<\EOF 20330#define XRENDERFONT 1 20331EOF 20332 20333for ac_func in \ 20334 XftDrawCharSpec \ 20335 XftDrawSetClip \ 20336 XftDrawSetClipRectangles \ 20337 20338do 20339as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20340echo "$as_me:20340: checking for $ac_func" >&5 20341echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 20342if eval "test \"\${$as_ac_var+set}\" = set"; then 20343 echo $ECHO_N "(cached) $ECHO_C" >&6 20344else 20345 cat >"conftest.$ac_ext" <<_ACEOF 20346#line 20346 "configure" 20347#include "confdefs.h" 20348#define $ac_func autoconf_temporary 20349#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 20350#undef $ac_func 20351 20352#ifdef __cplusplus 20353extern "C" 20354#endif 20355 20356/* We use char because int might match the return type of a gcc2 20357 builtin and then its argument prototype would still apply. */ 20358char $ac_func (void); 20359 20360int 20361main (void) 20362{ 20363 20364/* The GNU C library defines stubs for functions which it implements 20365 to always fail with ENOSYS. Some functions are actually named 20366 something starting with __ and the normal name is an alias. */ 20367#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 20368#error found stub for $ac_func 20369#endif 20370 20371 return $ac_func (); 20372 ; 20373 return 0; 20374} 20375_ACEOF 20376rm -f "conftest.$ac_objext" "conftest$ac_exeext" 20377if { (eval echo "$as_me:20377: \"$ac_link\"") >&5 20378 (eval $ac_link) 2>&5 20379 ac_status=$? 20380 echo "$as_me:20380: \$? = $ac_status" >&5 20381 (exit "$ac_status"); } && 20382 { ac_try='test -s "conftest$ac_exeext"' 20383 { (eval echo "$as_me:20383: \"$ac_try\"") >&5 20384 (eval $ac_try) 2>&5 20385 ac_status=$? 20386 echo "$as_me:20386: \$? = $ac_status" >&5 20387 (exit "$ac_status"); }; }; then 20388 eval "$as_ac_var=yes" 20389else 20390 echo "$as_me: failed program was:" >&5 20391cat "conftest.$ac_ext" >&5 20392eval "$as_ac_var=no" 20393fi 20394rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 20395fi 20396echo "$as_me:20396: result: `eval echo '${'"$as_ac_var"'}'`" >&5 20397echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 20398if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 20399 cat >>confdefs.h <<EOF 20400#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20401EOF 20402 20403fi 20404done 20405 20406else 20407 { echo "$as_me:20407: WARNING: No libraries found for FreeType" >&5 20408echo "$as_me: WARNING: No libraries found for FreeType" >&2;} 20409 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//` 20410fi 20411 20412# FIXME: revisit this if needed 20413 20414if test "$cf_cv_found_freetype" = yes ; then 20415echo "$as_me:20415: checking for usable Xft/fontconfig package" >&5 20416echo $ECHO_N "checking for usable Xft/fontconfig package... $ECHO_C" >&6 20417if test "${cf_cv_xft_compat+set}" = set; then 20418 echo $ECHO_N "(cached) $ECHO_C" >&6 20419else 20420 20421cat >"conftest.$ac_ext" <<_ACEOF 20422#line 20422 "configure" 20423#include "confdefs.h" 20424 20425#include <X11/Xlib.h> 20426#include <X11/Xft/Xft.h> 20427 20428int 20429main (void) 20430{ 20431 20432 XftPattern *pat = 0; 20433 XftPatternBuild(pat, 20434 XFT_FAMILY, XftTypeString, "mono", 20435 (void *) 0); 20436 20437 ; 20438 return 0; 20439} 20440_ACEOF 20441rm -f "conftest.$ac_objext" "conftest$ac_exeext" 20442if { (eval echo "$as_me:20442: \"$ac_link\"") >&5 20443 (eval $ac_link) 2>&5 20444 ac_status=$? 20445 echo "$as_me:20445: \$? = $ac_status" >&5 20446 (exit "$ac_status"); } && 20447 { ac_try='test -s "conftest$ac_exeext"' 20448 { (eval echo "$as_me:20448: \"$ac_try\"") >&5 20449 (eval $ac_try) 2>&5 20450 ac_status=$? 20451 echo "$as_me:20451: \$? = $ac_status" >&5 20452 (exit "$ac_status"); }; }; then 20453 cf_cv_xft_compat=yes 20454else 20455 echo "$as_me: failed program was:" >&5 20456cat "conftest.$ac_ext" >&5 20457cf_cv_xft_compat=no 20458fi 20459rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 20460 20461fi 20462echo "$as_me:20462: result: $cf_cv_xft_compat" >&5 20463echo "${ECHO_T}$cf_cv_xft_compat" >&6 20464 20465if test "$cf_cv_xft_compat" = no 20466then 20467 # workaround for broken ".pc" files used for Xft. 20468 case "$cf_cv_x_freetype_libs" in 20469 (*-lfontconfig*) 20470 ;; 20471 (*) 20472 test -n "$verbose" && echo " work around broken package" 1>&6 20473 20474echo "${as_me:-configure}:20474: testing work around broken package ..." 1>&5 20475 20476 cf_save_fontconfig="$LIBS" 20477 20478if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "fontconfig"; then 20479 test -n "$verbose" && echo " found package fontconfig" 1>&6 20480 20481echo "${as_me:-configure}:20481: testing found package fontconfig ..." 1>&5 20482 20483 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`" 20484 cf_pkgconfig_libs="`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`" 20485 test -n "$verbose" && echo " package fontconfig CFLAGS: $cf_pkgconfig_incs" 1>&6 20486 20487echo "${as_me:-configure}:20487: testing package fontconfig CFLAGS: $cf_pkgconfig_incs ..." 1>&5 20488 20489 test -n "$verbose" && echo " package fontconfig LIBS: $cf_pkgconfig_libs" 1>&6 20490 20491echo "${as_me:-configure}:20491: testing package fontconfig LIBS: $cf_pkgconfig_libs ..." 1>&5 20492 20493cf_fix_cppflags=no 20494cf_new_cflags= 20495cf_new_cppflags= 20496cf_new_extra_cppflags= 20497 20498for cf_add_cflags in $cf_pkgconfig_incs 20499do 20500case "$cf_fix_cppflags" in 20501(no) 20502 case "$cf_add_cflags" in 20503 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 20504 case "$cf_add_cflags" in 20505 (-D*) 20506 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 20507 20508 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 20509 && test -z "${cf_tst_cflags}" \ 20510 && cf_fix_cppflags=yes 20511 20512 if test "$cf_fix_cppflags" = yes ; then 20513 20514 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20515 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20516 20517 continue 20518 elif test "${cf_tst_cflags}" = "\"'" ; then 20519 20520 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20521 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20522 20523 continue 20524 fi 20525 ;; 20526 esac 20527 case "$CPPFLAGS" in 20528 (*$cf_add_cflags) 20529 ;; 20530 (*) 20531 case "$cf_add_cflags" in 20532 (-D*) 20533 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 20534 20535CPPFLAGS=`echo "$CPPFLAGS" | \ 20536 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 20537 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 20538 20539 ;; 20540 esac 20541 20542 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 20543 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 20544 20545 ;; 20546 esac 20547 ;; 20548 (*) 20549 20550 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 20551 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 20552 20553 ;; 20554 esac 20555 ;; 20556(yes) 20557 20558 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20559 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20560 20561 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 20562 20563 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 20564 && test -z "${cf_tst_cflags}" \ 20565 && cf_fix_cppflags=no 20566 ;; 20567esac 20568done 20569 20570if test -n "$cf_new_cflags" ; then 20571 20572 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 20573 CFLAGS="${CFLAGS}$cf_new_cflags" 20574 20575fi 20576 20577if test -n "$cf_new_cppflags" ; then 20578 20579 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 20580 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 20581 20582fi 20583 20584if test -n "$cf_new_extra_cppflags" ; then 20585 20586 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 20587 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 20588 20589fi 20590 20591cf_add_libs="$LIBS" 20592# reverse order 20593cf_add_0lib= 20594for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 20595# filter duplicates 20596for cf_add_1lib in $cf_add_0lib; do 20597 for cf_add_2lib in $cf_add_libs; do 20598 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 20599 cf_add_1lib= 20600 break 20601 fi 20602 done 20603 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 20604done 20605LIBS="$cf_add_libs" 20606 20607cf_fix_cppflags=no 20608cf_new_cflags= 20609cf_new_cppflags= 20610cf_new_extra_cppflags= 20611 20612for cf_add_cflags in $cf_pkgconfig_incs 20613do 20614case "$cf_fix_cppflags" in 20615(no) 20616 case "$cf_add_cflags" in 20617 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 20618 case "$cf_add_cflags" in 20619 (-D*) 20620 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 20621 20622 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 20623 && test -z "${cf_tst_cflags}" \ 20624 && cf_fix_cppflags=yes 20625 20626 if test "$cf_fix_cppflags" = yes ; then 20627 20628 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20629 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20630 20631 continue 20632 elif test "${cf_tst_cflags}" = "\"'" ; then 20633 20634 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20635 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20636 20637 continue 20638 fi 20639 ;; 20640 esac 20641 case "$CPPFLAGS" in 20642 (*$cf_add_cflags) 20643 ;; 20644 (*) 20645 case "$cf_add_cflags" in 20646 (-D*) 20647 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 20648 20649CPPFLAGS=`echo "$CPPFLAGS" | \ 20650 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 20651 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 20652 20653 ;; 20654 esac 20655 20656 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 20657 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 20658 20659 ;; 20660 esac 20661 ;; 20662 (*) 20663 20664 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 20665 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 20666 20667 ;; 20668 esac 20669 ;; 20670(yes) 20671 20672 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20673 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20674 20675 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 20676 20677 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 20678 && test -z "${cf_tst_cflags}" \ 20679 && cf_fix_cppflags=no 20680 ;; 20681esac 20682done 20683 20684if test -n "$cf_new_cflags" ; then 20685 20686 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 20687 CFLAGS="${CFLAGS}$cf_new_cflags" 20688 20689fi 20690 20691if test -n "$cf_new_cppflags" ; then 20692 20693 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 20694 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 20695 20696fi 20697 20698if test -n "$cf_new_extra_cppflags" ; then 20699 20700 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 20701 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 20702 20703fi 20704 20705 LIBS="$cf_save_fontconfig" 20706 20707test -n "$verbose" && echo " ...before $LIBS" 1>&6 20708 20709echo "${as_me:-configure}:20709: testing ...before $LIBS ..." 1>&5 20710 20711LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXft %-lXft $cf_pkgconfig_libs %" -e 's% % %g'` 20712test -n "$verbose" && echo " ...after $LIBS" 1>&6 20713 20714echo "${as_me:-configure}:20714: testing ...after $LIBS ..." 1>&5 20715 20716else 20717 cf_pkgconfig_incs= 20718 cf_pkgconfig_libs= 20719 20720test -n "$verbose" && echo " ...before $LIBS" 1>&6 20721 20722echo "${as_me:-configure}:20722: testing ...before $LIBS ..." 1>&5 20723 20724LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXft %-lXft -lfontconfig %" -e 's% % %g'` 20725test -n "$verbose" && echo " ...after $LIBS" 1>&6 20726 20727echo "${as_me:-configure}:20727: testing ...after $LIBS ..." 1>&5 20728 20729fi 20730 20731 ;; 20732 esac 20733fi 20734fi 20735 20736else 20737 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//` 20738fi 20739 20740echo "$as_me:20740: checking if you want support for HP-style function keys" >&5 20741echo $ECHO_N "checking if you want support for HP-style function keys... $ECHO_C" >&6 20742 20743# Check whether --enable-hp-fkeys or --disable-hp-fkeys was given. 20744if test "${enable_hp_fkeys+set}" = set; then 20745 enableval="$enable_hp_fkeys" 20746 test "$enableval" != yes && enableval=no 20747 if test "$enableval" != "no" ; then 20748 enable_hp_fkeys=yes 20749 else 20750 enable_hp_fkeys=no 20751 fi 20752else 20753 enableval=no 20754 enable_hp_fkeys=no 20755 20756fi; 20757echo "$as_me:20757: result: $enable_hp_fkeys" >&5 20758echo "${ECHO_T}$enable_hp_fkeys" >&6 20759if test "$enable_hp_fkeys" = yes ; then 20760 20761cat >>confdefs.h <<\EOF 20762#define OPT_HP_FUNC_KEYS 1 20763EOF 20764 20765fi 20766 20767echo "$as_me:20767: checking if you want support for SCO-style function keys" >&5 20768echo $ECHO_N "checking if you want support for SCO-style function keys... $ECHO_C" >&6 20769 20770# Check whether --enable-sco-fkeys or --disable-sco-fkeys was given. 20771if test "${enable_sco_fkeys+set}" = set; then 20772 enableval="$enable_sco_fkeys" 20773 test "$enableval" != yes && enableval=no 20774 if test "$enableval" != "no" ; then 20775 enable_sco_fkeys=yes 20776 else 20777 enable_sco_fkeys=no 20778 fi 20779else 20780 enableval=no 20781 enable_sco_fkeys=no 20782 20783fi; 20784echo "$as_me:20784: result: $enable_sco_fkeys" >&5 20785echo "${ECHO_T}$enable_sco_fkeys" >&6 20786if test "$enable_sco_fkeys" = yes ; then 20787 20788cat >>confdefs.h <<\EOF 20789#define OPT_SCO_FUNC_KEYS 1 20790EOF 20791 20792fi 20793 20794echo "$as_me:20794: checking if you want support for Sun-style function keys" >&5 20795echo $ECHO_N "checking if you want support for Sun-style function keys... $ECHO_C" >&6 20796 20797# Check whether --enable-sun-fkeys or --disable-sun-fkeys was given. 20798if test "${enable_sun_fkeys+set}" = set; then 20799 enableval="$enable_sun_fkeys" 20800 test "$enableval" != no && enableval=yes 20801 if test "$enableval" != "yes" ; then 20802 enable_sun_fkeys=no 20803 else 20804 enable_sun_fkeys=yes 20805 fi 20806else 20807 enableval=yes 20808 enable_sun_fkeys=yes 20809 20810fi; 20811echo "$as_me:20811: result: $enable_sun_fkeys" >&5 20812echo "${ECHO_T}$enable_sun_fkeys" >&6 20813if test "$enable_sun_fkeys" = no ; then 20814 20815cat >>confdefs.h <<\EOF 20816#define OPT_SUN_FUNC_KEYS 0 20817EOF 20818 20819fi 20820 20821echo "$as_me:20821: checking if you want saved-lines stored as a FIFO" >&5 20822echo $ECHO_N "checking if you want saved-lines stored as a FIFO... $ECHO_C" >&6 20823 20824# Check whether --enable-fifo-lines or --disable-fifo-lines was given. 20825if test "${enable_fifo_lines+set}" = set; then 20826 enableval="$enable_fifo_lines" 20827 test "$enableval" != no && enableval=yes 20828 if test "$enableval" != "yes" ; then 20829 enable_fifo_lines=no 20830 else 20831 enable_fifo_lines=yes 20832 fi 20833else 20834 enableval=yes 20835 enable_fifo_lines=yes 20836 20837fi; 20838echo "$as_me:20838: result: $enable_fifo_lines" >&5 20839echo "${ECHO_T}$enable_fifo_lines" >&6 20840if test "$enable_fifo_lines" != yes ; then 20841 { echo "$as_me:20841: WARNING: this option has been deprecated" >&5 20842echo "$as_me: WARNING: this option has been deprecated" >&2;} 20843fi 20844 20845echo "$as_me:20845: checking if you want support for internationalization" >&5 20846echo $ECHO_N "checking if you want support for internationalization... $ECHO_C" >&6 20847 20848# Check whether --enable-i18n or --disable-i18n was given. 20849if test "${enable_i18n+set}" = set; then 20850 enableval="$enable_i18n" 20851 test "$enableval" != no && enableval=yes 20852 if test "$enableval" != "yes" ; then 20853 enable_i18n=no 20854 else 20855 enable_i18n=yes 20856 fi 20857else 20858 enableval=yes 20859 enable_i18n=yes 20860 20861fi; 20862echo "$as_me:20862: result: $enable_i18n" >&5 20863echo "${ECHO_T}$enable_i18n" >&6 20864if test "$enable_i18n" = no ; then 20865 20866cat >>confdefs.h <<\EOF 20867#define OPT_I18N_SUPPORT 0 20868EOF 20869 20870fi 20871 20872echo "$as_me:20872: checking if you want support for initial-erase setup" >&5 20873echo $ECHO_N "checking if you want support for initial-erase setup... $ECHO_C" >&6 20874 20875# Check whether --enable-initial-erase or --disable-initial-erase was given. 20876if test "${enable_initial_erase+set}" = set; then 20877 enableval="$enable_initial_erase" 20878 test "$enableval" != no && enableval=yes 20879 if test "$enableval" != "yes" ; then 20880 enable_ie=no 20881 else 20882 enable_ie=yes 20883 fi 20884else 20885 enableval=yes 20886 enable_ie=yes 20887 20888fi; 20889echo "$as_me:20889: result: $enable_ie" >&5 20890echo "${ECHO_T}$enable_ie" >&6 20891if test "$enable_ie" = no ; then 20892 20893cat >>confdefs.h <<\EOF 20894#define OPT_INITIAL_ERASE 0 20895EOF 20896 20897fi 20898 20899echo "$as_me:20899: checking if you want support for input-method" >&5 20900echo $ECHO_N "checking if you want support for input-method... $ECHO_C" >&6 20901 20902# Check whether --enable-input-method or --disable-input-method was given. 20903if test "${enable_input_method+set}" = set; then 20904 enableval="$enable_input_method" 20905 test "$enableval" != no && enableval=yes 20906 if test "$enableval" != "yes" ; then 20907 enable_ximp=no 20908 else 20909 enable_ximp=$enable_i18n 20910 fi 20911else 20912 enableval=yes 20913 enable_ximp=$enable_i18n 20914 20915fi; 20916echo "$as_me:20916: result: $enable_ximp" >&5 20917echo "${ECHO_T}$enable_ximp" >&6 20918 20919echo "$as_me:20919: checking if X libraries support input-method" >&5 20920echo $ECHO_N "checking if X libraries support input-method... $ECHO_C" >&6 20921if test "${cf_cv_input_method+set}" = set; then 20922 echo $ECHO_N "(cached) $ECHO_C" >&6 20923else 20924 20925cat >"conftest.$ac_ext" <<_ACEOF 20926#line 20926 "configure" 20927#include "confdefs.h" 20928 20929#include <X11/IntrinsicP.h> 20930#include <X11/Xatom.h> 20931#include <X11/Xutil.h> 20932#include <X11/Xmu/Atoms.h> 20933#include <X11/Xmu/Converters.h> 20934#include <X11/Xaw/XawImP.h> 20935 20936int 20937main (void) 20938{ 20939 20940{ 20941 XIM xim; 20942 XIMStyles *xim_styles = 0; 20943 XIMStyle input_style; 20944 Widget w = XtCreateWidget("none", (WidgetClass)0, None, (ArgList)0, 0); 20945 20946 XSetLocaleModifiers("@im=none"); 20947 xim = XOpenIM(XtDisplay(w), NULL, NULL, NULL); 20948 XGetIMValues(xim, XNQueryInputStyle, &xim_styles, NULL); 20949 XCloseIM(xim); 20950 input_style = (XIMPreeditNothing | XIMStatusNothing); 20951 (void)xim_styles; 20952 (void)input_style; 20953} 20954 20955 ; 20956 return 0; 20957} 20958_ACEOF 20959rm -f "conftest.$ac_objext" "conftest$ac_exeext" 20960if { (eval echo "$as_me:20960: \"$ac_link\"") >&5 20961 (eval $ac_link) 2>&5 20962 ac_status=$? 20963 echo "$as_me:20963: \$? = $ac_status" >&5 20964 (exit "$ac_status"); } && 20965 { ac_try='test -s "conftest$ac_exeext"' 20966 { (eval echo "$as_me:20966: \"$ac_try\"") >&5 20967 (eval $ac_try) 2>&5 20968 ac_status=$? 20969 echo "$as_me:20969: \$? = $ac_status" >&5 20970 (exit "$ac_status"); }; }; then 20971 cf_cv_input_method=yes 20972else 20973 echo "$as_me: failed program was:" >&5 20974cat "conftest.$ac_ext" >&5 20975cf_cv_input_method=no 20976fi 20977rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 20978fi 20979echo "$as_me:20979: result: $cf_cv_input_method" >&5 20980echo "${ECHO_T}$cf_cv_input_method" >&6 20981 20982test "$cf_cv_input_method" = no && enable_ximp=no 20983if test "$enable_ximp" != no ; then 20984 if test "$enable_i18n" = no ; then 20985 { echo "$as_me:20985: WARNING: input-method relies upon internationalization" >&5 20986echo "$as_me: WARNING: input-method relies upon internationalization" >&2;} 20987 enable_ximp=no 20988 fi 20989fi 20990if test "$enable_ximp" = no ; then 20991 20992cat >>confdefs.h <<\EOF 20993#define OPT_INPUT_METHOD 0 20994EOF 20995 20996fi 20997 20998echo "$as_me:20998: checking if you want support for load-vt-fonts" >&5 20999echo $ECHO_N "checking if you want support for load-vt-fonts... $ECHO_C" >&6 21000 21001# Check whether --enable-load-vt-fonts or --disable-load-vt-fonts was given. 21002if test "${enable_load_vt_fonts+set}" = set; then 21003 enableval="$enable_load_vt_fonts" 21004 test "$enableval" != yes && enableval=no 21005 if test "$enableval" != "no" ; then 21006 enable_load_vt_fonts=yes 21007 else 21008 enable_load_vt_fonts=no 21009 fi 21010else 21011 enableval=no 21012 enable_load_vt_fonts=no 21013 21014fi; 21015echo "$as_me:21015: result: $enable_load_vt_fonts" >&5 21016echo "${ECHO_T}$enable_load_vt_fonts" >&6 21017if test "$enable_load_vt_fonts" = yes ; then 21018 21019cat >>confdefs.h <<\EOF 21020#define OPT_LOAD_VTFONTS 1 21021EOF 21022 21023fi 21024 21025echo "$as_me:21025: checking if you want support for logging" >&5 21026echo $ECHO_N "checking if you want support for logging... $ECHO_C" >&6 21027 21028# Check whether --enable-logging or --disable-logging was given. 21029if test "${enable_logging+set}" = set; then 21030 enableval="$enable_logging" 21031 test "$enableval" != yes && enableval=no 21032 if test "$enableval" != "no" ; then 21033 enable_logging=yes 21034 else 21035 enable_logging=no 21036 fi 21037else 21038 enableval=no 21039 enable_logging=no 21040 21041fi; 21042echo "$as_me:21042: result: $enable_logging" >&5 21043echo "${ECHO_T}$enable_logging" >&6 21044if test "$enable_logging" = yes ; then 21045 21046cat >>confdefs.h <<\EOF 21047#define ALLOWLOGGING 1 21048EOF 21049 21050 echo "$as_me:21050: checking if you want to allow logging via a pipe" >&5 21051echo $ECHO_N "checking if you want to allow logging via a pipe... $ECHO_C" >&6 21052 21053# Check whether --enable-logfile-exec or --disable-logfile-exec was given. 21054if test "${enable_logfile_exec+set}" = set; then 21055 enableval="$enable_logfile_exec" 21056 test "$enableval" != yes && enableval=no 21057 if test "$enableval" != "no" ; then 21058 enable_log_exec=yes 21059 else 21060 enable_log_exec=no 21061 fi 21062else 21063 enableval=no 21064 enable_log_exec=no 21065 21066fi; 21067 echo "$as_me:21067: result: $enable_log_exec" >&5 21068echo "${ECHO_T}$enable_log_exec" >&6 21069 if test "$enable_log_exec" = yes ; then 21070 21071cat >>confdefs.h <<\EOF 21072#define ALLOWLOGFILEEXEC 1 21073EOF 21074 21075 fi 21076fi 21077 21078echo "$as_me:21078: checking if you want support for iconify/maximize translations" >&5 21079echo $ECHO_N "checking if you want support for iconify/maximize translations... $ECHO_C" >&6 21080 21081# Check whether --enable-maximize or --disable-maximize was given. 21082if test "${enable_maximize+set}" = set; then 21083 enableval="$enable_maximize" 21084 test "$enableval" != no && enableval=yes 21085 if test "$enableval" != "yes" ; then 21086 enable_maximize=no 21087 else 21088 enable_maximize=yes 21089 fi 21090else 21091 enableval=yes 21092 enable_maximize=yes 21093 21094fi; 21095echo "$as_me:21095: result: $enable_maximize" >&5 21096echo "${ECHO_T}$enable_maximize" >&6 21097test "$enable_maximize" = no && 21098cat >>confdefs.h <<\EOF 21099#define OPT_MAXIMIZE 0 21100EOF 21101 21102echo "$as_me:21102: checking if you want NumLock to override keyboard tables" >&5 21103echo $ECHO_N "checking if you want NumLock to override keyboard tables... $ECHO_C" >&6 21104 21105# Check whether --enable-num-lock or --disable-num-lock was given. 21106if test "${enable_num_lock+set}" = set; then 21107 enableval="$enable_num_lock" 21108 test "$enableval" != no && enableval=yes 21109 if test "$enableval" != "yes" ; then 21110 enable_numlock=no 21111 else 21112 enable_numlock=yes 21113 fi 21114else 21115 enableval=yes 21116 enable_numlock=yes 21117 21118fi; 21119echo "$as_me:21119: result: $enable_numlock" >&5 21120echo "${ECHO_T}$enable_numlock" >&6 21121test "$enable_numlock" = no && 21122cat >>confdefs.h <<\EOF 21123#define OPT_NUM_LOCK 0 21124EOF 21125 21126echo "$as_me:21126: checking if you want support for get/set of base64 selection data" >&5 21127echo $ECHO_N "checking if you want support for get/set of base64 selection data... $ECHO_C" >&6 21128 21129# Check whether --enable-paste64 or --disable-paste64 was given. 21130if test "${enable_paste64+set}" = set; then 21131 enableval="$enable_paste64" 21132 test "$enableval" != no && enableval=yes 21133 if test "$enableval" != "yes" ; then 21134 enable_paste64=no 21135 else 21136 enable_paste64=yes 21137 fi 21138else 21139 enableval=yes 21140 enable_paste64=yes 21141 21142fi; 21143echo "$as_me:21143: result: $enable_paste64" >&5 21144echo "${ECHO_T}$enable_paste64" >&6 21145if test "$enable_paste64" = yes ; then 21146 21147cat >>confdefs.h <<\EOF 21148#define OPT_PASTE64 1 21149EOF 21150 21151else 21152 21153cat >>confdefs.h <<\EOF 21154#define OPT_PASTE64 0 21155EOF 21156 21157fi 21158 21159echo "$as_me:21159: checking if you want support for pty-handshaking" >&5 21160echo $ECHO_N "checking if you want support for pty-handshaking... $ECHO_C" >&6 21161 21162# Check whether --enable-pty-handshake or --disable-pty-handshake was given. 21163if test "${enable_pty_handshake+set}" = set; then 21164 enableval="$enable_pty_handshake" 21165 test "$enableval" != no && enableval=yes 21166 if test "$enableval" != "yes" ; then 21167 enable_pty_handshake=no 21168 else 21169 enable_pty_handshake=yes 21170 fi 21171else 21172 enableval=yes 21173 enable_pty_handshake=yes 21174 21175fi; 21176echo "$as_me:21176: result: $enable_pty_handshake" >&5 21177echo "${ECHO_T}$enable_pty_handshake" >&6 21178if test "$enable_pty_handshake" = yes ; then 21179 21180cat >>confdefs.h <<\EOF 21181#define OPT_PTY_HANDSHAKE 1 21182EOF 21183 21184else 21185 21186cat >>confdefs.h <<\EOF 21187#define OPT_PTY_HANDSHAKE 0 21188EOF 21189 21190fi 21191 21192echo "$as_me:21192: checking if you want support for mouse in readline applications" >&5 21193echo $ECHO_N "checking if you want support for mouse in readline applications... $ECHO_C" >&6 21194 21195# Check whether --enable-readline-mouse or --disable-readline-mouse was given. 21196if test "${enable_readline_mouse+set}" = set; then 21197 enableval="$enable_readline_mouse" 21198 test "$enableval" != no && enableval=yes 21199 if test "$enableval" != "yes" ; then 21200 enable_readline_mouse=no 21201 else 21202 enable_readline_mouse=yes 21203 fi 21204else 21205 enableval=yes 21206 enable_readline_mouse=yes 21207 21208fi; 21209echo "$as_me:21209: result: $enable_readline_mouse" >&5 21210echo "${ECHO_T}$enable_readline_mouse" >&6 21211if test "$enable_readline_mouse" = yes ; then 21212 21213cat >>confdefs.h <<\EOF 21214#define OPT_READLINE 1 21215EOF 21216 21217fi 21218 21219echo "$as_me:21219: checking if you want support for regular-expression selections" >&5 21220echo $ECHO_N "checking if you want support for regular-expression selections... $ECHO_C" >&6 21221 21222# Check whether --enable-regex or --disable-regex was given. 21223if test "${enable_regex+set}" = set; then 21224 enableval="$enable_regex" 21225 test "$enableval" != no && enableval=yes 21226 if test "$enableval" != "yes" ; then 21227 enable_regex=no 21228 else 21229 enable_regex=yes 21230 fi 21231else 21232 enableval=yes 21233 enable_regex=yes 21234 21235fi; 21236echo "$as_me:21236: result: $enable_regex" >&5 21237echo "${ECHO_T}$enable_regex" >&6 21238if test "$enable_regex" = yes ; then 21239 21240echo "$as_me:21240: checking if you want to use PCRE2 for regular-expressions" >&5 21241echo $ECHO_N "checking if you want to use PCRE2 for regular-expressions... $ECHO_C" >&6 21242 21243# Check whether --with-pcre2 or --without-pcre2 was given. 21244if test "${with_pcre2+set}" = set; then 21245 withval="$with_pcre2" 21246 21247fi; 21248test -z "$with_pcre2" && with_pcre2=no 21249echo "$as_me:21249: result: $with_pcre2" >&5 21250echo "${ECHO_T}$with_pcre2" >&6 21251 21252if test "x$with_pcre2" != xno ; then 21253 cf_with_pcre2_ok=no 21254 for cf_with_pcre2 in libpcre2 libpcre2-posix libpcre 21255 do 21256 21257if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_with_pcre2"; then 21258 test -n "$verbose" && echo " found package $cf_with_pcre2" 1>&6 21259 21260echo "${as_me:-configure}:21260: testing found package $cf_with_pcre2 ..." 1>&5 21261 21262 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_with_pcre2" 2>/dev/null`" 21263 cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_with_pcre2" 2>/dev/null`" 21264 test -n "$verbose" && echo " package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs" 1>&6 21265 21266echo "${as_me:-configure}:21266: testing package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 21267 21268 test -n "$verbose" && echo " package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs" 1>&6 21269 21270echo "${as_me:-configure}:21270: testing package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs ..." 1>&5 21271 21272cf_fix_cppflags=no 21273cf_new_cflags= 21274cf_new_cppflags= 21275cf_new_extra_cppflags= 21276 21277for cf_add_cflags in $cf_pkgconfig_incs 21278do 21279case "$cf_fix_cppflags" in 21280(no) 21281 case "$cf_add_cflags" in 21282 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 21283 case "$cf_add_cflags" in 21284 (-D*) 21285 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 21286 21287 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 21288 && test -z "${cf_tst_cflags}" \ 21289 && cf_fix_cppflags=yes 21290 21291 if test "$cf_fix_cppflags" = yes ; then 21292 21293 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 21294 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 21295 21296 continue 21297 elif test "${cf_tst_cflags}" = "\"'" ; then 21298 21299 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 21300 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 21301 21302 continue 21303 fi 21304 ;; 21305 esac 21306 case "$CPPFLAGS" in 21307 (*$cf_add_cflags) 21308 ;; 21309 (*) 21310 case "$cf_add_cflags" in 21311 (-D*) 21312 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 21313 21314CPPFLAGS=`echo "$CPPFLAGS" | \ 21315 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 21316 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 21317 21318 ;; 21319 esac 21320 21321 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 21322 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 21323 21324 ;; 21325 esac 21326 ;; 21327 (*) 21328 21329 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 21330 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 21331 21332 ;; 21333 esac 21334 ;; 21335(yes) 21336 21337 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 21338 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 21339 21340 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 21341 21342 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 21343 && test -z "${cf_tst_cflags}" \ 21344 && cf_fix_cppflags=no 21345 ;; 21346esac 21347done 21348 21349if test -n "$cf_new_cflags" ; then 21350 21351 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 21352 CFLAGS="${CFLAGS}$cf_new_cflags" 21353 21354fi 21355 21356if test -n "$cf_new_cppflags" ; then 21357 21358 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 21359 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 21360 21361fi 21362 21363if test -n "$cf_new_extra_cppflags" ; then 21364 21365 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 21366 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 21367 21368fi 21369 21370cf_add_libs="$LIBS" 21371# reverse order 21372cf_add_0lib= 21373for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 21374# filter duplicates 21375for cf_add_1lib in $cf_add_0lib; do 21376 for cf_add_2lib in $cf_add_libs; do 21377 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 21378 cf_add_1lib= 21379 break 21380 fi 21381 done 21382 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 21383done 21384LIBS="$cf_add_libs" 21385 21386 cf_with_pcre2_ok=yes; break 21387else 21388 cf_pkgconfig_incs= 21389 cf_pkgconfig_libs= 21390 : 21391fi 21392 21393 done 21394 cf_with_pcre2_ok=yes || { { echo "$as_me:21394: error: Cannot find PCRE2 library" >&5 21395echo "$as_me: error: Cannot find PCRE2 library" >&2;} 21396 { (exit 1); exit 1; }; } 21397 21398cat >>confdefs.h <<\EOF 21399#define HAVE_LIB_PCRE2 1 21400EOF 21401 21402 # if pkgconfig gave no results, look for the libraries directly 21403 case "$LIBS" in 21404 (*pcre2-posix*|*pcreposix*) 21405 ;; 21406 (*) 21407 echo "$as_me:21407: checking for regcomp in -lpcre2-posix" >&5 21408echo $ECHO_N "checking for regcomp in -lpcre2-posix... $ECHO_C" >&6 21409if test "${ac_cv_lib_pcre2_posix_regcomp+set}" = set; then 21410 echo $ECHO_N "(cached) $ECHO_C" >&6 21411else 21412 ac_check_lib_save_LIBS=$LIBS 21413LIBS="-lpcre2-posix $LIBS" 21414cat >"conftest.$ac_ext" <<_ACEOF 21415#line 21415 "configure" 21416#include "confdefs.h" 21417 21418/* Override any gcc2 internal prototype to avoid an error. */ 21419#ifdef __cplusplus 21420extern "C" 21421#endif 21422/* We use char because int might match the return type of a gcc2 21423 builtin and then its argument prototype would still apply. */ 21424char regcomp (void); 21425int 21426main (void) 21427{ 21428regcomp (); 21429 ; 21430 return 0; 21431} 21432_ACEOF 21433rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21434if { (eval echo "$as_me:21434: \"$ac_link\"") >&5 21435 (eval $ac_link) 2>&5 21436 ac_status=$? 21437 echo "$as_me:21437: \$? = $ac_status" >&5 21438 (exit "$ac_status"); } && 21439 { ac_try='test -s "conftest$ac_exeext"' 21440 { (eval echo "$as_me:21440: \"$ac_try\"") >&5 21441 (eval $ac_try) 2>&5 21442 ac_status=$? 21443 echo "$as_me:21443: \$? = $ac_status" >&5 21444 (exit "$ac_status"); }; }; then 21445 ac_cv_lib_pcre2_posix_regcomp=yes 21446else 21447 echo "$as_me: failed program was:" >&5 21448cat "conftest.$ac_ext" >&5 21449ac_cv_lib_pcre2_posix_regcomp=no 21450fi 21451rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21452LIBS=$ac_check_lib_save_LIBS 21453fi 21454echo "$as_me:21454: result: $ac_cv_lib_pcre2_posix_regcomp" >&5 21455echo "${ECHO_T}$ac_cv_lib_pcre2_posix_regcomp" >&6 21456if test "$ac_cv_lib_pcre2_posix_regcomp" = yes; then 21457 21458cf_add_libs="$LIBS" 21459# reverse order 21460cf_add_0lib= 21461for cf_add_1lib in -lpcre2-posix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 21462# filter duplicates 21463for cf_add_1lib in $cf_add_0lib; do 21464 for cf_add_2lib in $cf_add_libs; do 21465 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 21466 cf_add_1lib= 21467 break 21468 fi 21469 done 21470 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 21471done 21472LIBS="$cf_add_libs" 21473 21474else 21475 echo "$as_me:21475: checking for regcomp in -lpcreposix" >&5 21476echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6 21477if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then 21478 echo $ECHO_N "(cached) $ECHO_C" >&6 21479else 21480 ac_check_lib_save_LIBS=$LIBS 21481LIBS="-lpcreposix $LIBS" 21482cat >"conftest.$ac_ext" <<_ACEOF 21483#line 21483 "configure" 21484#include "confdefs.h" 21485 21486/* Override any gcc2 internal prototype to avoid an error. */ 21487#ifdef __cplusplus 21488extern "C" 21489#endif 21490/* We use char because int might match the return type of a gcc2 21491 builtin and then its argument prototype would still apply. */ 21492char regcomp (void); 21493int 21494main (void) 21495{ 21496regcomp (); 21497 ; 21498 return 0; 21499} 21500_ACEOF 21501rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21502if { (eval echo "$as_me:21502: \"$ac_link\"") >&5 21503 (eval $ac_link) 2>&5 21504 ac_status=$? 21505 echo "$as_me:21505: \$? = $ac_status" >&5 21506 (exit "$ac_status"); } && 21507 { ac_try='test -s "conftest$ac_exeext"' 21508 { (eval echo "$as_me:21508: \"$ac_try\"") >&5 21509 (eval $ac_try) 2>&5 21510 ac_status=$? 21511 echo "$as_me:21511: \$? = $ac_status" >&5 21512 (exit "$ac_status"); }; }; then 21513 ac_cv_lib_pcreposix_regcomp=yes 21514else 21515 echo "$as_me: failed program was:" >&5 21516cat "conftest.$ac_ext" >&5 21517ac_cv_lib_pcreposix_regcomp=no 21518fi 21519rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21520LIBS=$ac_check_lib_save_LIBS 21521fi 21522echo "$as_me:21522: result: $ac_cv_lib_pcreposix_regcomp" >&5 21523echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6 21524if test "$ac_cv_lib_pcreposix_regcomp" = yes; then 21525 21526cf_add_libs="$LIBS" 21527# reverse order 21528cf_add_0lib= 21529for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 21530# filter duplicates 21531for cf_add_1lib in $cf_add_0lib; do 21532 for cf_add_2lib in $cf_add_libs; do 21533 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 21534 cf_add_1lib= 21535 break 21536 fi 21537 done 21538 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 21539done 21540LIBS="$cf_add_libs" 21541 21542else 21543 { { echo "$as_me:21543: error: Cannot find PCRE2 POSIX library" >&5 21544echo "$as_me: error: Cannot find PCRE2 POSIX library" >&2;} 21545 { (exit 1); exit 1; }; } 21546fi 21547 21548fi 21549 21550 ;; 21551 esac 21552 21553 # either way, check for the library header files 21554 21555for ac_header in pcre2posix.h pcreposix.h 21556do 21557as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21558echo "$as_me:21558: checking for $ac_header" >&5 21559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21560if eval "test \"\${$as_ac_Header+set}\" = set"; then 21561 echo $ECHO_N "(cached) $ECHO_C" >&6 21562else 21563 cat >"conftest.$ac_ext" <<_ACEOF 21564#line 21564 "configure" 21565#include "confdefs.h" 21566#include <$ac_header> 21567_ACEOF 21568if { (eval echo "$as_me:21568: \"$ac_cpp "conftest.$ac_ext"\"") >&5 21569 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 21570 ac_status=$? 21571 $EGREP -v '^ *\+' conftest.er1 >conftest.err 21572 rm -f conftest.er1 21573 cat conftest.err >&5 21574 echo "$as_me:21574: \$? = $ac_status" >&5 21575 (exit "$ac_status"); } >/dev/null; then 21576 if test -s conftest.err; then 21577 ac_cpp_err=$ac_c_preproc_warn_flag 21578 else 21579 ac_cpp_err= 21580 fi 21581else 21582 ac_cpp_err=yes 21583fi 21584if test -z "$ac_cpp_err"; then 21585 eval "$as_ac_Header=yes" 21586else 21587 echo "$as_me: failed program was:" >&5 21588 cat "conftest.$ac_ext" >&5 21589 eval "$as_ac_Header=no" 21590fi 21591rm -f conftest.err "conftest.$ac_ext" 21592fi 21593echo "$as_me:21593: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 21594echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 21595if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 21596 cat >>confdefs.h <<EOF 21597#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21598EOF 21599 21600fi 21601done 21602 21603for ac_func in PCRE2regcomp 21604do 21605as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21606echo "$as_me:21606: checking for $ac_func" >&5 21607echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 21608if eval "test \"\${$as_ac_var+set}\" = set"; then 21609 echo $ECHO_N "(cached) $ECHO_C" >&6 21610else 21611 cat >"conftest.$ac_ext" <<_ACEOF 21612#line 21612 "configure" 21613#include "confdefs.h" 21614#define $ac_func autoconf_temporary 21615#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 21616#undef $ac_func 21617 21618#ifdef __cplusplus 21619extern "C" 21620#endif 21621 21622/* We use char because int might match the return type of a gcc2 21623 builtin and then its argument prototype would still apply. */ 21624char $ac_func (void); 21625 21626int 21627main (void) 21628{ 21629 21630/* The GNU C library defines stubs for functions which it implements 21631 to always fail with ENOSYS. Some functions are actually named 21632 something starting with __ and the normal name is an alias. */ 21633#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21634#error found stub for $ac_func 21635#endif 21636 21637 return $ac_func (); 21638 ; 21639 return 0; 21640} 21641_ACEOF 21642rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21643if { (eval echo "$as_me:21643: \"$ac_link\"") >&5 21644 (eval $ac_link) 2>&5 21645 ac_status=$? 21646 echo "$as_me:21646: \$? = $ac_status" >&5 21647 (exit "$ac_status"); } && 21648 { ac_try='test -s "conftest$ac_exeext"' 21649 { (eval echo "$as_me:21649: \"$ac_try\"") >&5 21650 (eval $ac_try) 2>&5 21651 ac_status=$? 21652 echo "$as_me:21652: \$? = $ac_status" >&5 21653 (exit "$ac_status"); }; }; then 21654 eval "$as_ac_var=yes" 21655else 21656 echo "$as_me: failed program was:" >&5 21657cat "conftest.$ac_ext" >&5 21658eval "$as_ac_var=no" 21659fi 21660rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21661fi 21662echo "$as_me:21662: result: `eval echo '${'"$as_ac_var"'}'`" >&5 21663echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 21664if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 21665 cat >>confdefs.h <<EOF 21666#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21667EOF 21668 21669fi 21670done 21671 21672fi 21673 21674 if test "$with_pcre2" = no ; then 21675 21676echo "$as_me:21676: checking if you want to use PCRE for regular-expressions" >&5 21677echo $ECHO_N "checking if you want to use PCRE for regular-expressions... $ECHO_C" >&6 21678 21679# Check whether --with-pcre or --without-pcre was given. 21680if test "${with_pcre+set}" = set; then 21681 withval="$with_pcre" 21682 21683fi; 21684test -z "$with_pcre" && with_pcre=no 21685echo "$as_me:21685: result: $with_pcre" >&5 21686echo "${ECHO_T}$with_pcre" >&6 21687 21688if test "$with_pcre" != no ; then 21689 21690if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "libpcre"; then 21691 test -n "$verbose" && echo " found package libpcre" 1>&6 21692 21693echo "${as_me:-configure}:21693: testing found package libpcre ..." 1>&5 21694 21695 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "libpcre" 2>/dev/null`" 21696 cf_pkgconfig_libs="`$PKG_CONFIG --libs "libpcre" 2>/dev/null`" 21697 test -n "$verbose" && echo " package libpcre CFLAGS: $cf_pkgconfig_incs" 1>&6 21698 21699echo "${as_me:-configure}:21699: testing package libpcre CFLAGS: $cf_pkgconfig_incs ..." 1>&5 21700 21701 test -n "$verbose" && echo " package libpcre LIBS: $cf_pkgconfig_libs" 1>&6 21702 21703echo "${as_me:-configure}:21703: testing package libpcre LIBS: $cf_pkgconfig_libs ..." 1>&5 21704 21705cf_fix_cppflags=no 21706cf_new_cflags= 21707cf_new_cppflags= 21708cf_new_extra_cppflags= 21709 21710for cf_add_cflags in $cf_pkgconfig_incs 21711do 21712case "$cf_fix_cppflags" in 21713(no) 21714 case "$cf_add_cflags" in 21715 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 21716 case "$cf_add_cflags" in 21717 (-D*) 21718 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 21719 21720 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 21721 && test -z "${cf_tst_cflags}" \ 21722 && cf_fix_cppflags=yes 21723 21724 if test "$cf_fix_cppflags" = yes ; then 21725 21726 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 21727 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 21728 21729 continue 21730 elif test "${cf_tst_cflags}" = "\"'" ; then 21731 21732 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 21733 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 21734 21735 continue 21736 fi 21737 ;; 21738 esac 21739 case "$CPPFLAGS" in 21740 (*$cf_add_cflags) 21741 ;; 21742 (*) 21743 case "$cf_add_cflags" in 21744 (-D*) 21745 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 21746 21747CPPFLAGS=`echo "$CPPFLAGS" | \ 21748 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 21749 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 21750 21751 ;; 21752 esac 21753 21754 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 21755 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 21756 21757 ;; 21758 esac 21759 ;; 21760 (*) 21761 21762 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 21763 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 21764 21765 ;; 21766 esac 21767 ;; 21768(yes) 21769 21770 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 21771 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 21772 21773 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 21774 21775 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 21776 && test -z "${cf_tst_cflags}" \ 21777 && cf_fix_cppflags=no 21778 ;; 21779esac 21780done 21781 21782if test -n "$cf_new_cflags" ; then 21783 21784 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 21785 CFLAGS="${CFLAGS}$cf_new_cflags" 21786 21787fi 21788 21789if test -n "$cf_new_cppflags" ; then 21790 21791 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 21792 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 21793 21794fi 21795 21796if test -n "$cf_new_extra_cppflags" ; then 21797 21798 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 21799 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 21800 21801fi 21802 21803cf_add_libs="$LIBS" 21804# reverse order 21805cf_add_0lib= 21806for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 21807# filter duplicates 21808for cf_add_1lib in $cf_add_0lib; do 21809 for cf_add_2lib in $cf_add_libs; do 21810 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 21811 cf_add_1lib= 21812 break 21813 fi 21814 done 21815 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 21816done 21817LIBS="$cf_add_libs" 21818 21819 : 21820else 21821 cf_pkgconfig_incs= 21822 cf_pkgconfig_libs= 21823 21824echo "$as_me:21824: checking for pcre_compile in -lpcre" >&5 21825echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6 21826if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then 21827 echo $ECHO_N "(cached) $ECHO_C" >&6 21828else 21829 ac_check_lib_save_LIBS=$LIBS 21830LIBS="-lpcre $LIBS" 21831cat >"conftest.$ac_ext" <<_ACEOF 21832#line 21832 "configure" 21833#include "confdefs.h" 21834 21835/* Override any gcc2 internal prototype to avoid an error. */ 21836#ifdef __cplusplus 21837extern "C" 21838#endif 21839/* We use char because int might match the return type of a gcc2 21840 builtin and then its argument prototype would still apply. */ 21841char pcre_compile (void); 21842int 21843main (void) 21844{ 21845pcre_compile (); 21846 ; 21847 return 0; 21848} 21849_ACEOF 21850rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21851if { (eval echo "$as_me:21851: \"$ac_link\"") >&5 21852 (eval $ac_link) 2>&5 21853 ac_status=$? 21854 echo "$as_me:21854: \$? = $ac_status" >&5 21855 (exit "$ac_status"); } && 21856 { ac_try='test -s "conftest$ac_exeext"' 21857 { (eval echo "$as_me:21857: \"$ac_try\"") >&5 21858 (eval $ac_try) 2>&5 21859 ac_status=$? 21860 echo "$as_me:21860: \$? = $ac_status" >&5 21861 (exit "$ac_status"); }; }; then 21862 ac_cv_lib_pcre_pcre_compile=yes 21863else 21864 echo "$as_me: failed program was:" >&5 21865cat "conftest.$ac_ext" >&5 21866ac_cv_lib_pcre_pcre_compile=no 21867fi 21868rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21869LIBS=$ac_check_lib_save_LIBS 21870fi 21871echo "$as_me:21871: result: $ac_cv_lib_pcre_pcre_compile" >&5 21872echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6 21873if test "$ac_cv_lib_pcre_pcre_compile" = yes; then 21874 cat >>confdefs.h <<EOF 21875#define HAVE_LIBPCRE 1 21876EOF 21877 21878 LIBS="-lpcre $LIBS" 21879 21880else 21881 { { echo "$as_me:21881: error: Cannot find PCRE library" >&5 21882echo "$as_me: error: Cannot find PCRE library" >&2;} 21883 { (exit 1); exit 1; }; } 21884fi 21885 21886fi 21887 21888cat >>confdefs.h <<\EOF 21889#define HAVE_LIB_PCRE 1 21890EOF 21891 21892 case $LIBS in 21893 (*pcreposix*) 21894 ;; 21895 (*) 21896 echo "$as_me:21896: checking for pcreposix_regcomp in -lpcreposix" >&5 21897echo $ECHO_N "checking for pcreposix_regcomp in -lpcreposix... $ECHO_C" >&6 21898if test "${ac_cv_lib_pcreposix_pcreposix_regcomp+set}" = set; then 21899 echo $ECHO_N "(cached) $ECHO_C" >&6 21900else 21901 ac_check_lib_save_LIBS=$LIBS 21902LIBS="-lpcreposix $LIBS" 21903cat >"conftest.$ac_ext" <<_ACEOF 21904#line 21904 "configure" 21905#include "confdefs.h" 21906 21907/* Override any gcc2 internal prototype to avoid an error. */ 21908#ifdef __cplusplus 21909extern "C" 21910#endif 21911/* We use char because int might match the return type of a gcc2 21912 builtin and then its argument prototype would still apply. */ 21913char pcreposix_regcomp (void); 21914int 21915main (void) 21916{ 21917pcreposix_regcomp (); 21918 ; 21919 return 0; 21920} 21921_ACEOF 21922rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21923if { (eval echo "$as_me:21923: \"$ac_link\"") >&5 21924 (eval $ac_link) 2>&5 21925 ac_status=$? 21926 echo "$as_me:21926: \$? = $ac_status" >&5 21927 (exit "$ac_status"); } && 21928 { ac_try='test -s "conftest$ac_exeext"' 21929 { (eval echo "$as_me:21929: \"$ac_try\"") >&5 21930 (eval $ac_try) 2>&5 21931 ac_status=$? 21932 echo "$as_me:21932: \$? = $ac_status" >&5 21933 (exit "$ac_status"); }; }; then 21934 ac_cv_lib_pcreposix_pcreposix_regcomp=yes 21935else 21936 echo "$as_me: failed program was:" >&5 21937cat "conftest.$ac_ext" >&5 21938ac_cv_lib_pcreposix_pcreposix_regcomp=no 21939fi 21940rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21941LIBS=$ac_check_lib_save_LIBS 21942fi 21943echo "$as_me:21943: result: $ac_cv_lib_pcreposix_pcreposix_regcomp" >&5 21944echo "${ECHO_T}$ac_cv_lib_pcreposix_pcreposix_regcomp" >&6 21945if test "$ac_cv_lib_pcreposix_pcreposix_regcomp" = yes; then 21946 21947cat >>confdefs.h <<\EOF 21948#define HAVE_PCREPOSIX_H 1 21949EOF 21950 21951cf_add_libs="$LIBS" 21952# reverse order 21953cf_add_0lib= 21954for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 21955# filter duplicates 21956for cf_add_1lib in $cf_add_0lib; do 21957 for cf_add_2lib in $cf_add_libs; do 21958 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 21959 cf_add_1lib= 21960 break 21961 fi 21962 done 21963 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 21964done 21965LIBS="$cf_add_libs" 21966 21967else 21968 echo "$as_me:21968: checking for regcomp in -lpcreposix" >&5 21969echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6 21970if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then 21971 echo $ECHO_N "(cached) $ECHO_C" >&6 21972else 21973 ac_check_lib_save_LIBS=$LIBS 21974LIBS="-lpcreposix $LIBS" 21975cat >"conftest.$ac_ext" <<_ACEOF 21976#line 21976 "configure" 21977#include "confdefs.h" 21978 21979/* Override any gcc2 internal prototype to avoid an error. */ 21980#ifdef __cplusplus 21981extern "C" 21982#endif 21983/* We use char because int might match the return type of a gcc2 21984 builtin and then its argument prototype would still apply. */ 21985char regcomp (void); 21986int 21987main (void) 21988{ 21989regcomp (); 21990 ; 21991 return 0; 21992} 21993_ACEOF 21994rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21995if { (eval echo "$as_me:21995: \"$ac_link\"") >&5 21996 (eval $ac_link) 2>&5 21997 ac_status=$? 21998 echo "$as_me:21998: \$? = $ac_status" >&5 21999 (exit "$ac_status"); } && 22000 { ac_try='test -s "conftest$ac_exeext"' 22001 { (eval echo "$as_me:22001: \"$ac_try\"") >&5 22002 (eval $ac_try) 2>&5 22003 ac_status=$? 22004 echo "$as_me:22004: \$? = $ac_status" >&5 22005 (exit "$ac_status"); }; }; then 22006 ac_cv_lib_pcreposix_regcomp=yes 22007else 22008 echo "$as_me: failed program was:" >&5 22009cat "conftest.$ac_ext" >&5 22010ac_cv_lib_pcreposix_regcomp=no 22011fi 22012rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22013LIBS=$ac_check_lib_save_LIBS 22014fi 22015echo "$as_me:22015: result: $ac_cv_lib_pcreposix_regcomp" >&5 22016echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6 22017if test "$ac_cv_lib_pcreposix_regcomp" = yes; then 22018 22019cat >>confdefs.h <<\EOF 22020#define HAVE_PCREPOSIX_H 1 22021EOF 22022 22023cf_add_libs="$LIBS" 22024# reverse order 22025cf_add_0lib= 22026for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 22027# filter duplicates 22028for cf_add_1lib in $cf_add_0lib; do 22029 for cf_add_2lib in $cf_add_libs; do 22030 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 22031 cf_add_1lib= 22032 break 22033 fi 22034 done 22035 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 22036done 22037LIBS="$cf_add_libs" 22038 22039else 22040 { { echo "$as_me:22040: error: Cannot find PCRE POSIX library" >&5 22041echo "$as_me: error: Cannot find PCRE POSIX library" >&2;} 22042 { (exit 1); exit 1; }; } 22043fi 22044 22045fi 22046 22047 ;; 22048 esac 22049fi 22050 22051 if test "$with_pcre" = no ; then 22052 22053cf_regex_func=no 22054cf_regex_libs= 22055case "$host_os" in 22056(mingw*) 22057 # -lsystre -ltre -lintl -liconv 22058 echo "$as_me:22058: checking for regcomp in -lsystre" >&5 22059echo $ECHO_N "checking for regcomp in -lsystre... $ECHO_C" >&6 22060if test "${ac_cv_lib_systre_regcomp+set}" = set; then 22061 echo $ECHO_N "(cached) $ECHO_C" >&6 22062else 22063 ac_check_lib_save_LIBS=$LIBS 22064LIBS="-lsystre $LIBS" 22065cat >"conftest.$ac_ext" <<_ACEOF 22066#line 22066 "configure" 22067#include "confdefs.h" 22068 22069/* Override any gcc2 internal prototype to avoid an error. */ 22070#ifdef __cplusplus 22071extern "C" 22072#endif 22073/* We use char because int might match the return type of a gcc2 22074 builtin and then its argument prototype would still apply. */ 22075char regcomp (void); 22076int 22077main (void) 22078{ 22079regcomp (); 22080 ; 22081 return 0; 22082} 22083_ACEOF 22084rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22085if { (eval echo "$as_me:22085: \"$ac_link\"") >&5 22086 (eval $ac_link) 2>&5 22087 ac_status=$? 22088 echo "$as_me:22088: \$? = $ac_status" >&5 22089 (exit "$ac_status"); } && 22090 { ac_try='test -s "conftest$ac_exeext"' 22091 { (eval echo "$as_me:22091: \"$ac_try\"") >&5 22092 (eval $ac_try) 2>&5 22093 ac_status=$? 22094 echo "$as_me:22094: \$? = $ac_status" >&5 22095 (exit "$ac_status"); }; }; then 22096 ac_cv_lib_systre_regcomp=yes 22097else 22098 echo "$as_me: failed program was:" >&5 22099cat "conftest.$ac_ext" >&5 22100ac_cv_lib_systre_regcomp=no 22101fi 22102rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22103LIBS=$ac_check_lib_save_LIBS 22104fi 22105echo "$as_me:22105: result: $ac_cv_lib_systre_regcomp" >&5 22106echo "${ECHO_T}$ac_cv_lib_systre_regcomp" >&6 22107if test "$ac_cv_lib_systre_regcomp" = yes; then 22108 22109 echo "$as_me:22109: checking for libiconv_open in -liconv" >&5 22110echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6 22111if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then 22112 echo $ECHO_N "(cached) $ECHO_C" >&6 22113else 22114 ac_check_lib_save_LIBS=$LIBS 22115LIBS="-liconv $LIBS" 22116cat >"conftest.$ac_ext" <<_ACEOF 22117#line 22117 "configure" 22118#include "confdefs.h" 22119 22120/* Override any gcc2 internal prototype to avoid an error. */ 22121#ifdef __cplusplus 22122extern "C" 22123#endif 22124/* We use char because int might match the return type of a gcc2 22125 builtin and then its argument prototype would still apply. */ 22126char libiconv_open (void); 22127int 22128main (void) 22129{ 22130libiconv_open (); 22131 ; 22132 return 0; 22133} 22134_ACEOF 22135rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22136if { (eval echo "$as_me:22136: \"$ac_link\"") >&5 22137 (eval $ac_link) 2>&5 22138 ac_status=$? 22139 echo "$as_me:22139: \$? = $ac_status" >&5 22140 (exit "$ac_status"); } && 22141 { ac_try='test -s "conftest$ac_exeext"' 22142 { (eval echo "$as_me:22142: \"$ac_try\"") >&5 22143 (eval $ac_try) 2>&5 22144 ac_status=$? 22145 echo "$as_me:22145: \$? = $ac_status" >&5 22146 (exit "$ac_status"); }; }; then 22147 ac_cv_lib_iconv_libiconv_open=yes 22148else 22149 echo "$as_me: failed program was:" >&5 22150cat "conftest.$ac_ext" >&5 22151ac_cv_lib_iconv_libiconv_open=no 22152fi 22153rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22154LIBS=$ac_check_lib_save_LIBS 22155fi 22156echo "$as_me:22156: result: $ac_cv_lib_iconv_libiconv_open" >&5 22157echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6 22158if test "$ac_cv_lib_iconv_libiconv_open" = yes; then 22159 22160cf_add_libs="$LIBS" 22161# reverse order 22162cf_add_0lib= 22163for cf_add_1lib in -liconv; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 22164# filter duplicates 22165for cf_add_1lib in $cf_add_0lib; do 22166 for cf_add_2lib in $cf_add_libs; do 22167 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 22168 cf_add_1lib= 22169 break 22170 fi 22171 done 22172 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 22173done 22174LIBS="$cf_add_libs" 22175 22176fi 22177 22178 echo "$as_me:22178: checking for libintl_gettext in -lintl" >&5 22179echo $ECHO_N "checking for libintl_gettext in -lintl... $ECHO_C" >&6 22180if test "${ac_cv_lib_intl_libintl_gettext+set}" = set; then 22181 echo $ECHO_N "(cached) $ECHO_C" >&6 22182else 22183 ac_check_lib_save_LIBS=$LIBS 22184LIBS="-lintl $LIBS" 22185cat >"conftest.$ac_ext" <<_ACEOF 22186#line 22186 "configure" 22187#include "confdefs.h" 22188 22189/* Override any gcc2 internal prototype to avoid an error. */ 22190#ifdef __cplusplus 22191extern "C" 22192#endif 22193/* We use char because int might match the return type of a gcc2 22194 builtin and then its argument prototype would still apply. */ 22195char libintl_gettext (void); 22196int 22197main (void) 22198{ 22199libintl_gettext (); 22200 ; 22201 return 0; 22202} 22203_ACEOF 22204rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22205if { (eval echo "$as_me:22205: \"$ac_link\"") >&5 22206 (eval $ac_link) 2>&5 22207 ac_status=$? 22208 echo "$as_me:22208: \$? = $ac_status" >&5 22209 (exit "$ac_status"); } && 22210 { ac_try='test -s "conftest$ac_exeext"' 22211 { (eval echo "$as_me:22211: \"$ac_try\"") >&5 22212 (eval $ac_try) 2>&5 22213 ac_status=$? 22214 echo "$as_me:22214: \$? = $ac_status" >&5 22215 (exit "$ac_status"); }; }; then 22216 ac_cv_lib_intl_libintl_gettext=yes 22217else 22218 echo "$as_me: failed program was:" >&5 22219cat "conftest.$ac_ext" >&5 22220ac_cv_lib_intl_libintl_gettext=no 22221fi 22222rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22223LIBS=$ac_check_lib_save_LIBS 22224fi 22225echo "$as_me:22225: result: $ac_cv_lib_intl_libintl_gettext" >&5 22226echo "${ECHO_T}$ac_cv_lib_intl_libintl_gettext" >&6 22227if test "$ac_cv_lib_intl_libintl_gettext" = yes; then 22228 22229cf_add_libs="$LIBS" 22230# reverse order 22231cf_add_0lib= 22232for cf_add_1lib in -lintl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 22233# filter duplicates 22234for cf_add_1lib in $cf_add_0lib; do 22235 for cf_add_2lib in $cf_add_libs; do 22236 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 22237 cf_add_1lib= 22238 break 22239 fi 22240 done 22241 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 22242done 22243LIBS="$cf_add_libs" 22244 22245fi 22246 22247 echo "$as_me:22247: checking for tre_regcomp in -ltre" >&5 22248echo $ECHO_N "checking for tre_regcomp in -ltre... $ECHO_C" >&6 22249if test "${ac_cv_lib_tre_tre_regcomp+set}" = set; then 22250 echo $ECHO_N "(cached) $ECHO_C" >&6 22251else 22252 ac_check_lib_save_LIBS=$LIBS 22253LIBS="-ltre $LIBS" 22254cat >"conftest.$ac_ext" <<_ACEOF 22255#line 22255 "configure" 22256#include "confdefs.h" 22257 22258/* Override any gcc2 internal prototype to avoid an error. */ 22259#ifdef __cplusplus 22260extern "C" 22261#endif 22262/* We use char because int might match the return type of a gcc2 22263 builtin and then its argument prototype would still apply. */ 22264char tre_regcomp (void); 22265int 22266main (void) 22267{ 22268tre_regcomp (); 22269 ; 22270 return 0; 22271} 22272_ACEOF 22273rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22274if { (eval echo "$as_me:22274: \"$ac_link\"") >&5 22275 (eval $ac_link) 2>&5 22276 ac_status=$? 22277 echo "$as_me:22277: \$? = $ac_status" >&5 22278 (exit "$ac_status"); } && 22279 { ac_try='test -s "conftest$ac_exeext"' 22280 { (eval echo "$as_me:22280: \"$ac_try\"") >&5 22281 (eval $ac_try) 2>&5 22282 ac_status=$? 22283 echo "$as_me:22283: \$? = $ac_status" >&5 22284 (exit "$ac_status"); }; }; then 22285 ac_cv_lib_tre_tre_regcomp=yes 22286else 22287 echo "$as_me: failed program was:" >&5 22288cat "conftest.$ac_ext" >&5 22289ac_cv_lib_tre_tre_regcomp=no 22290fi 22291rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22292LIBS=$ac_check_lib_save_LIBS 22293fi 22294echo "$as_me:22294: result: $ac_cv_lib_tre_tre_regcomp" >&5 22295echo "${ECHO_T}$ac_cv_lib_tre_tre_regcomp" >&6 22296if test "$ac_cv_lib_tre_tre_regcomp" = yes; then 22297 22298cf_add_libs="$LIBS" 22299# reverse order 22300cf_add_0lib= 22301for cf_add_1lib in -ltre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 22302# filter duplicates 22303for cf_add_1lib in $cf_add_0lib; do 22304 for cf_add_2lib in $cf_add_libs; do 22305 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 22306 cf_add_1lib= 22307 break 22308 fi 22309 done 22310 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 22311done 22312LIBS="$cf_add_libs" 22313 22314fi 22315 22316cf_add_libs="$LIBS" 22317# reverse order 22318cf_add_0lib= 22319for cf_add_1lib in -lsystre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 22320# filter duplicates 22321for cf_add_1lib in $cf_add_0lib; do 22322 for cf_add_2lib in $cf_add_libs; do 22323 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 22324 cf_add_1lib= 22325 break 22326 fi 22327 done 22328 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 22329done 22330LIBS="$cf_add_libs" 22331 22332 cf_regex_func=regcomp 22333 22334else 22335 22336 echo "$as_me:22336: checking for regcomp in -lgnurx" >&5 22337echo $ECHO_N "checking for regcomp in -lgnurx... $ECHO_C" >&6 22338if test "${ac_cv_lib_gnurx_regcomp+set}" = set; then 22339 echo $ECHO_N "(cached) $ECHO_C" >&6 22340else 22341 ac_check_lib_save_LIBS=$LIBS 22342LIBS="-lgnurx $LIBS" 22343cat >"conftest.$ac_ext" <<_ACEOF 22344#line 22344 "configure" 22345#include "confdefs.h" 22346 22347/* Override any gcc2 internal prototype to avoid an error. */ 22348#ifdef __cplusplus 22349extern "C" 22350#endif 22351/* We use char because int might match the return type of a gcc2 22352 builtin and then its argument prototype would still apply. */ 22353char regcomp (void); 22354int 22355main (void) 22356{ 22357regcomp (); 22358 ; 22359 return 0; 22360} 22361_ACEOF 22362rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22363if { (eval echo "$as_me:22363: \"$ac_link\"") >&5 22364 (eval $ac_link) 2>&5 22365 ac_status=$? 22366 echo "$as_me:22366: \$? = $ac_status" >&5 22367 (exit "$ac_status"); } && 22368 { ac_try='test -s "conftest$ac_exeext"' 22369 { (eval echo "$as_me:22369: \"$ac_try\"") >&5 22370 (eval $ac_try) 2>&5 22371 ac_status=$? 22372 echo "$as_me:22372: \$? = $ac_status" >&5 22373 (exit "$ac_status"); }; }; then 22374 ac_cv_lib_gnurx_regcomp=yes 22375else 22376 echo "$as_me: failed program was:" >&5 22377cat "conftest.$ac_ext" >&5 22378ac_cv_lib_gnurx_regcomp=no 22379fi 22380rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22381LIBS=$ac_check_lib_save_LIBS 22382fi 22383echo "$as_me:22383: result: $ac_cv_lib_gnurx_regcomp" >&5 22384echo "${ECHO_T}$ac_cv_lib_gnurx_regcomp" >&6 22385if test "$ac_cv_lib_gnurx_regcomp" = yes; then 22386 22387cf_add_libs="$LIBS" 22388# reverse order 22389cf_add_0lib= 22390for cf_add_1lib in -lgnurx; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 22391# filter duplicates 22392for cf_add_1lib in $cf_add_0lib; do 22393 for cf_add_2lib in $cf_add_libs; do 22394 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 22395 cf_add_1lib= 22396 break 22397 fi 22398 done 22399 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 22400done 22401LIBS="$cf_add_libs" 22402 22403 cf_regex_func=regcomp 22404fi 22405 22406fi 22407 22408 ;; 22409(*) 22410 cf_regex_libs="regex re" 22411 echo "$as_me:22411: checking for regcomp" >&5 22412echo $ECHO_N "checking for regcomp... $ECHO_C" >&6 22413if test "${ac_cv_func_regcomp+set}" = set; then 22414 echo $ECHO_N "(cached) $ECHO_C" >&6 22415else 22416 cat >"conftest.$ac_ext" <<_ACEOF 22417#line 22417 "configure" 22418#include "confdefs.h" 22419#define regcomp autoconf_temporary 22420#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 22421#undef regcomp 22422 22423#ifdef __cplusplus 22424extern "C" 22425#endif 22426 22427/* We use char because int might match the return type of a gcc2 22428 builtin and then its argument prototype would still apply. */ 22429char regcomp (void); 22430 22431int 22432main (void) 22433{ 22434 22435/* The GNU C library defines stubs for functions which it implements 22436 to always fail with ENOSYS. Some functions are actually named 22437 something starting with __ and the normal name is an alias. */ 22438#if defined (__stub_regcomp) || defined (__stub___regcomp) 22439#error found stub for regcomp 22440#endif 22441 22442 return regcomp (); 22443 ; 22444 return 0; 22445} 22446_ACEOF 22447rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22448if { (eval echo "$as_me:22448: \"$ac_link\"") >&5 22449 (eval $ac_link) 2>&5 22450 ac_status=$? 22451 echo "$as_me:22451: \$? = $ac_status" >&5 22452 (exit "$ac_status"); } && 22453 { ac_try='test -s "conftest$ac_exeext"' 22454 { (eval echo "$as_me:22454: \"$ac_try\"") >&5 22455 (eval $ac_try) 2>&5 22456 ac_status=$? 22457 echo "$as_me:22457: \$? = $ac_status" >&5 22458 (exit "$ac_status"); }; }; then 22459 ac_cv_func_regcomp=yes 22460else 22461 echo "$as_me: failed program was:" >&5 22462cat "conftest.$ac_ext" >&5 22463ac_cv_func_regcomp=no 22464fi 22465rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22466fi 22467echo "$as_me:22467: result: $ac_cv_func_regcomp" >&5 22468echo "${ECHO_T}$ac_cv_func_regcomp" >&6 22469if test "$ac_cv_func_regcomp" = yes; then 22470 cf_regex_func=regcomp 22471else 22472 22473 for cf_regex_lib in $cf_regex_libs 22474 do 22475 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh` 22476echo "$as_me:22476: checking for regcomp in -l$cf_regex_lib" >&5 22477echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6 22478if eval "test \"\${$as_ac_Lib+set}\" = set"; then 22479 echo $ECHO_N "(cached) $ECHO_C" >&6 22480else 22481 ac_check_lib_save_LIBS=$LIBS 22482LIBS="-l$cf_regex_lib $LIBS" 22483cat >"conftest.$ac_ext" <<_ACEOF 22484#line 22484 "configure" 22485#include "confdefs.h" 22486 22487/* Override any gcc2 internal prototype to avoid an error. */ 22488#ifdef __cplusplus 22489extern "C" 22490#endif 22491/* We use char because int might match the return type of a gcc2 22492 builtin and then its argument prototype would still apply. */ 22493char regcomp (void); 22494int 22495main (void) 22496{ 22497regcomp (); 22498 ; 22499 return 0; 22500} 22501_ACEOF 22502rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22503if { (eval echo "$as_me:22503: \"$ac_link\"") >&5 22504 (eval $ac_link) 2>&5 22505 ac_status=$? 22506 echo "$as_me:22506: \$? = $ac_status" >&5 22507 (exit "$ac_status"); } && 22508 { ac_try='test -s "conftest$ac_exeext"' 22509 { (eval echo "$as_me:22509: \"$ac_try\"") >&5 22510 (eval $ac_try) 2>&5 22511 ac_status=$? 22512 echo "$as_me:22512: \$? = $ac_status" >&5 22513 (exit "$ac_status"); }; }; then 22514 eval "$as_ac_Lib=yes" 22515else 22516 echo "$as_me: failed program was:" >&5 22517cat "conftest.$ac_ext" >&5 22518eval "$as_ac_Lib=no" 22519fi 22520rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22521LIBS=$ac_check_lib_save_LIBS 22522fi 22523echo "$as_me:22523: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5 22524echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6 22525if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then 22526 22527cf_add_libs="$LIBS" 22528# reverse order 22529cf_add_0lib= 22530for cf_add_1lib in -l$cf_regex_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 22531# filter duplicates 22532for cf_add_1lib in $cf_add_0lib; do 22533 for cf_add_2lib in $cf_add_libs; do 22534 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 22535 cf_add_1lib= 22536 break 22537 fi 22538 done 22539 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 22540done 22541LIBS="$cf_add_libs" 22542 22543 cf_regex_func=regcomp 22544 break 22545fi 22546 22547 done 22548 22549fi 22550 22551 ;; 22552esac 22553 22554if test "$cf_regex_func" = no ; then 22555 echo "$as_me:22555: checking for compile" >&5 22556echo $ECHO_N "checking for compile... $ECHO_C" >&6 22557if test "${ac_cv_func_compile+set}" = set; then 22558 echo $ECHO_N "(cached) $ECHO_C" >&6 22559else 22560 cat >"conftest.$ac_ext" <<_ACEOF 22561#line 22561 "configure" 22562#include "confdefs.h" 22563#define compile autoconf_temporary 22564#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 22565#undef compile 22566 22567#ifdef __cplusplus 22568extern "C" 22569#endif 22570 22571/* We use char because int might match the return type of a gcc2 22572 builtin and then its argument prototype would still apply. */ 22573char compile (void); 22574 22575int 22576main (void) 22577{ 22578 22579/* The GNU C library defines stubs for functions which it implements 22580 to always fail with ENOSYS. Some functions are actually named 22581 something starting with __ and the normal name is an alias. */ 22582#if defined (__stub_compile) || defined (__stub___compile) 22583#error found stub for compile 22584#endif 22585 22586 return compile (); 22587 ; 22588 return 0; 22589} 22590_ACEOF 22591rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22592if { (eval echo "$as_me:22592: \"$ac_link\"") >&5 22593 (eval $ac_link) 2>&5 22594 ac_status=$? 22595 echo "$as_me:22595: \$? = $ac_status" >&5 22596 (exit "$ac_status"); } && 22597 { ac_try='test -s "conftest$ac_exeext"' 22598 { (eval echo "$as_me:22598: \"$ac_try\"") >&5 22599 (eval $ac_try) 2>&5 22600 ac_status=$? 22601 echo "$as_me:22601: \$? = $ac_status" >&5 22602 (exit "$ac_status"); }; }; then 22603 ac_cv_func_compile=yes 22604else 22605 echo "$as_me: failed program was:" >&5 22606cat "conftest.$ac_ext" >&5 22607ac_cv_func_compile=no 22608fi 22609rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22610fi 22611echo "$as_me:22611: result: $ac_cv_func_compile" >&5 22612echo "${ECHO_T}$ac_cv_func_compile" >&6 22613if test "$ac_cv_func_compile" = yes; then 22614 cf_regex_func=compile 22615else 22616 22617 echo "$as_me:22617: checking for compile in -lgen" >&5 22618echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6 22619if test "${ac_cv_lib_gen_compile+set}" = set; then 22620 echo $ECHO_N "(cached) $ECHO_C" >&6 22621else 22622 ac_check_lib_save_LIBS=$LIBS 22623LIBS="-lgen $LIBS" 22624cat >"conftest.$ac_ext" <<_ACEOF 22625#line 22625 "configure" 22626#include "confdefs.h" 22627 22628/* Override any gcc2 internal prototype to avoid an error. */ 22629#ifdef __cplusplus 22630extern "C" 22631#endif 22632/* We use char because int might match the return type of a gcc2 22633 builtin and then its argument prototype would still apply. */ 22634char compile (void); 22635int 22636main (void) 22637{ 22638compile (); 22639 ; 22640 return 0; 22641} 22642_ACEOF 22643rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22644if { (eval echo "$as_me:22644: \"$ac_link\"") >&5 22645 (eval $ac_link) 2>&5 22646 ac_status=$? 22647 echo "$as_me:22647: \$? = $ac_status" >&5 22648 (exit "$ac_status"); } && 22649 { ac_try='test -s "conftest$ac_exeext"' 22650 { (eval echo "$as_me:22650: \"$ac_try\"") >&5 22651 (eval $ac_try) 2>&5 22652 ac_status=$? 22653 echo "$as_me:22653: \$? = $ac_status" >&5 22654 (exit "$ac_status"); }; }; then 22655 ac_cv_lib_gen_compile=yes 22656else 22657 echo "$as_me: failed program was:" >&5 22658cat "conftest.$ac_ext" >&5 22659ac_cv_lib_gen_compile=no 22660fi 22661rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22662LIBS=$ac_check_lib_save_LIBS 22663fi 22664echo "$as_me:22664: result: $ac_cv_lib_gen_compile" >&5 22665echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6 22666if test "$ac_cv_lib_gen_compile" = yes; then 22667 22668cf_add_libs="$LIBS" 22669# reverse order 22670cf_add_0lib= 22671for cf_add_1lib in -lgen; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 22672# filter duplicates 22673for cf_add_1lib in $cf_add_0lib; do 22674 for cf_add_2lib in $cf_add_libs; do 22675 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 22676 cf_add_1lib= 22677 break 22678 fi 22679 done 22680 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 22681done 22682LIBS="$cf_add_libs" 22683 22684 cf_regex_func=compile 22685fi 22686 22687fi 22688 22689fi 22690 22691if test "$cf_regex_func" = no ; then 22692 { echo "$as_me:22692: WARNING: cannot find regular expression library" >&5 22693echo "$as_me: WARNING: cannot find regular expression library" >&2;} 22694fi 22695 22696echo "$as_me:22696: checking for regular-expression headers" >&5 22697echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6 22698if test "${cf_cv_regex_hdrs+set}" = set; then 22699 echo $ECHO_N "(cached) $ECHO_C" >&6 22700else 22701 22702cf_cv_regex_hdrs=no 22703case "$cf_regex_func" in 22704(compile) 22705 for cf_regex_hdr in regexp.h regexpr.h 22706 do 22707 cat >"conftest.$ac_ext" <<_ACEOF 22708#line 22708 "configure" 22709#include "confdefs.h" 22710#include <$cf_regex_hdr> 22711int 22712main (void) 22713{ 22714 22715 char *p = compile("", "", "", 0); 22716 int x = step("", ""); 22717 (void)p; 22718 (void)x; 22719 22720 ; 22721 return 0; 22722} 22723_ACEOF 22724rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22725if { (eval echo "$as_me:22725: \"$ac_link\"") >&5 22726 (eval $ac_link) 2>&5 22727 ac_status=$? 22728 echo "$as_me:22728: \$? = $ac_status" >&5 22729 (exit "$ac_status"); } && 22730 { ac_try='test -s "conftest$ac_exeext"' 22731 { (eval echo "$as_me:22731: \"$ac_try\"") >&5 22732 (eval $ac_try) 2>&5 22733 ac_status=$? 22734 echo "$as_me:22734: \$? = $ac_status" >&5 22735 (exit "$ac_status"); }; }; then 22736 22737 cf_cv_regex_hdrs=$cf_regex_hdr 22738 break 22739 22740else 22741 echo "$as_me: failed program was:" >&5 22742cat "conftest.$ac_ext" >&5 22743fi 22744rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22745 done 22746 ;; 22747(*) 22748 for cf_regex_hdr in regex.h 22749 do 22750 cat >"conftest.$ac_ext" <<_ACEOF 22751#line 22751 "configure" 22752#include "confdefs.h" 22753#include <sys/types.h> 22754#include <stdio.h> 22755#include <$cf_regex_hdr> 22756int 22757main (void) 22758{ 22759 22760 regex_t *p = NULL; 22761 int x = regcomp(p, "", 0); 22762 int y = regexec(p, "", 0, 0, 0); 22763 (void)x; 22764 (void)y; 22765 regfree(p); 22766 22767 ; 22768 return 0; 22769} 22770_ACEOF 22771rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22772if { (eval echo "$as_me:22772: \"$ac_link\"") >&5 22773 (eval $ac_link) 2>&5 22774 ac_status=$? 22775 echo "$as_me:22775: \$? = $ac_status" >&5 22776 (exit "$ac_status"); } && 22777 { ac_try='test -s "conftest$ac_exeext"' 22778 { (eval echo "$as_me:22778: \"$ac_try\"") >&5 22779 (eval $ac_try) 2>&5 22780 ac_status=$? 22781 echo "$as_me:22781: \$? = $ac_status" >&5 22782 (exit "$ac_status"); }; }; then 22783 22784 cf_cv_regex_hdrs=$cf_regex_hdr 22785 break 22786 22787else 22788 echo "$as_me: failed program was:" >&5 22789cat "conftest.$ac_ext" >&5 22790fi 22791rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22792 done 22793 ;; 22794esac 22795 22796fi 22797echo "$as_me:22797: result: $cf_cv_regex_hdrs" >&5 22798echo "${ECHO_T}$cf_cv_regex_hdrs" >&6 22799 22800case "$cf_cv_regex_hdrs" in 22801 (no) { echo "$as_me:22801: WARNING: no regular expression header found" >&5 22802echo "$as_me: WARNING: no regular expression header found" >&2;} ;; 22803 (regex.h) 22804cat >>confdefs.h <<\EOF 22805#define HAVE_REGEX_H_FUNCS 1 22806EOF 22807 ;; 22808 (regexp.h) 22809cat >>confdefs.h <<\EOF 22810#define HAVE_REGEXP_H_FUNCS 1 22811EOF 22812 ;; 22813 (regexpr.h) 22814cat >>confdefs.h <<\EOF 22815#define HAVE_REGEXPR_H_FUNCS 1 22816EOF 22817 ;; 22818esac 22819 22820 if test "X$cf_cv_regex_hdrs" != "Xregex.h" ; then 22821 { { echo "$as_me:22821: error: Only POSIX, PCRE, or PCRE2 regular expressions are supported" >&5 22822echo "$as_me: error: Only POSIX, PCRE, or PCRE2 regular expressions are supported" >&2;} 22823 { (exit 1); exit 1; }; } 22824 fi 22825 fi 22826 fi 22827 22828cat >>confdefs.h <<\EOF 22829#define OPT_SELECT_REGEX 1 22830EOF 22831 22832fi 22833 22834echo "$as_me:22834: checking if you want support for right-scrollbar" >&5 22835echo $ECHO_N "checking if you want support for right-scrollbar... $ECHO_C" >&6 22836 22837# Check whether --enable-rightbar or --disable-rightbar was given. 22838if test "${enable_rightbar+set}" = set; then 22839 enableval="$enable_rightbar" 22840 test "$enableval" != no && enableval=yes 22841 if test "$enableval" != "yes" ; then 22842 enable_rightbar=no 22843 else 22844 enable_rightbar=yes 22845 fi 22846else 22847 enableval=yes 22848 enable_rightbar=yes 22849 22850fi; 22851echo "$as_me:22851: result: $enable_rightbar" >&5 22852echo "${ECHO_T}$enable_rightbar" >&6 22853if test "$enable_rightbar" = yes ; then 22854 22855cat >>confdefs.h <<\EOF 22856#define SCROLLBAR_RIGHT 1 22857EOF 22858 22859fi 22860 22861echo "$as_me:22861: checking if you want check for redundant name-change" >&5 22862echo $ECHO_N "checking if you want check for redundant name-change... $ECHO_C" >&6 22863 22864# Check whether --enable-samename or --disable-samename was given. 22865if test "${enable_samename+set}" = set; then 22866 enableval="$enable_samename" 22867 test "$enableval" != no && enableval=yes 22868 if test "$enableval" != "yes" ; then 22869 enable_samename=no 22870 else 22871 enable_samename=yes 22872 fi 22873else 22874 enableval=yes 22875 enable_samename=yes 22876 22877fi; 22878echo "$as_me:22878: result: $enable_samename" >&5 22879echo "${ECHO_T}$enable_samename" >&6 22880test "$enable_samename" = no && 22881cat >>confdefs.h <<\EOF 22882#define OPT_SAME_NAME 0 22883EOF 22884 22885echo "$as_me:22885: checking if you want support for selection-actions" >&5 22886echo $ECHO_N "checking if you want support for selection-actions... $ECHO_C" >&6 22887 22888# Check whether --enable-selection-ops or --disable-selection-ops was given. 22889if test "${enable_selection_ops+set}" = set; then 22890 enableval="$enable_selection_ops" 22891 test "$enableval" != no && enableval=yes 22892 if test "$enableval" != "yes" ; then 22893 enable_selection_ops=no 22894 else 22895 enable_selection_ops=yes 22896 fi 22897else 22898 enableval=yes 22899 enable_selection_ops=yes 22900 22901fi; 22902echo "$as_me:22902: result: $enable_selection_ops" >&5 22903echo "${ECHO_T}$enable_selection_ops" >&6 22904test "$enable_selection_ops" = no && 22905cat >>confdefs.h <<\EOF 22906#define OPT_SELECTION_OPS 0 22907EOF 22908 22909echo "$as_me:22909: checking if you want support for session management" >&5 22910echo $ECHO_N "checking if you want support for session management... $ECHO_C" >&6 22911 22912# Check whether --enable-session-mgt or --disable-session-mgt was given. 22913if test "${enable_session_mgt+set}" = set; then 22914 enableval="$enable_session_mgt" 22915 test "$enableval" != no && enableval=yes 22916 if test "$enableval" != "yes" ; then 22917 enable_session_mgt=no 22918 else 22919 enable_session_mgt=yes 22920 fi 22921else 22922 enableval=yes 22923 enable_session_mgt=yes 22924 22925fi; 22926echo "$as_me:22926: result: $enable_session_mgt" >&5 22927echo "${ECHO_T}$enable_session_mgt" >&6 22928test "$enable_session_mgt" = no && 22929cat >>confdefs.h <<\EOF 22930#define OPT_SESSION_MGT 0 22931EOF 22932 22933echo "$as_me:22933: checking if you want support for status-line" >&5 22934echo $ECHO_N "checking if you want support for status-line... $ECHO_C" >&6 22935 22936# Check whether --enable-status-line or --disable-status-line was given. 22937if test "${enable_status_line+set}" = set; then 22938 enableval="$enable_status_line" 22939 test "$enableval" != yes && enableval=no 22940 if test "$enableval" != "no" ; then 22941 enable_status_line=yes 22942 else 22943 enable_status_line=no 22944 fi 22945else 22946 enableval=no 22947 enable_status_line=no 22948 22949fi; 22950echo "$as_me:22950: result: $enable_status_line" >&5 22951echo "${ECHO_T}$enable_status_line" >&6 22952test "$enable_status_line" = yes && 22953cat >>confdefs.h <<\EOF 22954#define OPT_STATUS_LINE 1 22955EOF 22956 22957echo "$as_me:22957: checking if you want to use termcap function-keys" >&5 22958echo $ECHO_N "checking if you want to use termcap function-keys... $ECHO_C" >&6 22959 22960# Check whether --enable-tcap-fkeys or --disable-tcap-fkeys was given. 22961if test "${enable_tcap_fkeys+set}" = set; then 22962 enableval="$enable_tcap_fkeys" 22963 test "$enableval" != no && enableval=yes 22964 if test "$enableval" != "yes" ; then 22965 enable_tcap_fkeys=no 22966 else 22967 enable_tcap_fkeys=yes 22968 fi 22969else 22970 enableval=yes 22971 enable_tcap_fkeys=yes 22972 22973fi; 22974echo "$as_me:22974: result: $enable_tcap_fkeys" >&5 22975echo "${ECHO_T}$enable_tcap_fkeys" >&6 22976test "$enable_tcap_fkeys" = no && 22977cat >>confdefs.h <<\EOF 22978#define OPT_TCAP_FKEYS 0 22979EOF 22980 22981echo "$as_me:22981: checking if you want to use termcap-query/report" >&5 22982echo $ECHO_N "checking if you want to use termcap-query/report... $ECHO_C" >&6 22983 22984# Check whether --enable-tcap-query or --disable-tcap-query was given. 22985if test "${enable_tcap_query+set}" = set; then 22986 enableval="$enable_tcap_query" 22987 test "$enableval" != no && enableval=yes 22988 if test "$enableval" != "yes" ; then 22989 enable_tcap_query=no 22990 else 22991 enable_tcap_query=yes 22992 fi 22993else 22994 enableval=yes 22995 enable_tcap_query=yes 22996 22997fi; 22998echo "$as_me:22998: result: $enable_tcap_query" >&5 22999echo "${ECHO_T}$enable_tcap_query" >&6 23000test "$enable_tcap_query" = no && 23001cat >>confdefs.h <<\EOF 23002#define OPT_TCAP_QUERY 0 23003EOF 23004 23005echo "$as_me:23005: checking if you want support for tek4014" >&5 23006echo $ECHO_N "checking if you want support for tek4014... $ECHO_C" >&6 23007 23008# Check whether --enable-tek4014 or --disable-tek4014 was given. 23009if test "${enable_tek4014+set}" = set; then 23010 enableval="$enable_tek4014" 23011 test "$enableval" != no && enableval=yes 23012 if test "$enableval" != "yes" ; then 23013 enable_tek4014=no 23014 else 23015 enable_tek4014=yes 23016 fi 23017else 23018 enableval=yes 23019 enable_tek4014=yes 23020 23021fi; 23022echo "$as_me:23022: result: $enable_tek4014" >&5 23023echo "${ECHO_T}$enable_tek4014" >&6 23024if test "$enable_tek4014" = no ; then 23025 23026cat >>confdefs.h <<\EOF 23027#define OPT_TEK4014 0 23028EOF 23029 23030else 23031 EXTRAHDRS="$EXTRAHDRS Tekparse.h" 23032 EXTRASRCS="$EXTRASRCS TekPrsTbl.c Tekproc.c" 23033 EXTRAOBJS="$EXTRAOBJS TekPrsTbl.o Tekproc.o" 23034fi 23035 23036echo "$as_me:23036: checking if you want pulldown menus with a toolbar" >&5 23037echo $ECHO_N "checking if you want pulldown menus with a toolbar... $ECHO_C" >&6 23038 23039# Check whether --enable-toolbar or --disable-toolbar was given. 23040if test "${enable_toolbar+set}" = set; then 23041 enableval="$enable_toolbar" 23042 test "$enableval" != yes && enableval=no 23043 if test "$enableval" != "no" ; then 23044 enable_toolbar=yes 23045 else 23046 enable_toolbar=no 23047 fi 23048else 23049 enableval=no 23050 enable_toolbar=no 23051 23052fi; 23053echo "$as_me:23053: result: $enable_toolbar" >&5 23054echo "${ECHO_T}$enable_toolbar" >&6 23055if test "$enable_toolbar" = yes ; then 23056 23057cat >>confdefs.h <<\EOF 23058#define OPT_TOOLBAR 1 23059EOF 23060 23061fi 23062 23063echo "$as_me:23063: checking if you want VT52 emulation" >&5 23064echo $ECHO_N "checking if you want VT52 emulation... $ECHO_C" >&6 23065 23066# Check whether --enable-vt52 or --disable-vt52 was given. 23067if test "${enable_vt52+set}" = set; then 23068 enableval="$enable_vt52" 23069 test "$enableval" != no && enableval=yes 23070 if test "$enableval" != "yes" ; then 23071 enable_vt52=no 23072 else 23073 enable_vt52=yes 23074 fi 23075else 23076 enableval=yes 23077 enable_vt52=yes 23078 23079fi; 23080echo "$as_me:23080: result: $enable_vt52" >&5 23081echo "${ECHO_T}$enable_vt52" >&6 23082test "$enable_vt52" = no && 23083cat >>confdefs.h <<\EOF 23084#define OPT_VT52_MODE 0 23085EOF 23086 23087echo "$as_me:23087: checking if you want wide-attribute support" >&5 23088echo $ECHO_N "checking if you want wide-attribute support... $ECHO_C" >&6 23089 23090# Check whether --enable-wide-attrs or --disable-wide-attrs was given. 23091if test "${enable_wide_attrs+set}" = set; then 23092 enableval="$enable_wide_attrs" 23093 test "$enableval" != no && enableval=yes 23094 if test "$enableval" != "yes" ; then 23095 enable_wattr=no 23096 else 23097 enable_wattr=yes 23098 fi 23099else 23100 enableval=yes 23101 enable_wattr=yes 23102 23103fi; 23104echo "$as_me:23104: result: $enable_wattr" >&5 23105echo "${ECHO_T}$enable_wattr" >&6 23106 23107if test x$enable_wattr = xno && test x$enable_direct_color = xyes ; then 23108 { echo "$as_me:23108: WARNING: overriding wide-attributes to support direct color" >&5 23109echo "$as_me: WARNING: overriding wide-attributes to support direct color" >&2;} 23110 enable_wattr=yes 23111fi 23112 23113echo "$as_me:23113: checking if you want wide-character support" >&5 23114echo $ECHO_N "checking if you want wide-character support... $ECHO_C" >&6 23115 23116# Check whether --enable-wide-chars or --disable-wide-chars was given. 23117if test "${enable_wide_chars+set}" = set; then 23118 enableval="$enable_wide_chars" 23119 test "$enableval" != no && enableval=yes 23120 if test "$enableval" != "yes" ; then 23121 enable_wchar=no 23122 else 23123 enable_wchar=yes 23124 fi 23125else 23126 enableval=yes 23127 enable_wchar=yes 23128 23129fi; 23130echo "$as_me:23130: result: $enable_wchar" >&5 23131echo "${ECHO_T}$enable_wchar" >&6 23132test "x$enable_wattr" = xno && 23133cat >>confdefs.h <<\EOF 23134#define OPT_WIDE_ATTRS 0 23135EOF 23136 23137echo "$as_me:23137: checking if you want only 16-bit character support" >&5 23138echo $ECHO_N "checking if you want only 16-bit character support... $ECHO_C" >&6 23139 23140# Check whether --enable-16bit-chars or --disable-16bit-chars was given. 23141if test "${enable_16bit_chars+set}" = set; then 23142 enableval="$enable_16bit_chars" 23143 test "$enableval" != yes && enableval=no 23144 if test "$enableval" != "no" ; then 23145 enable_16bit_chars=yes 23146 else 23147 enable_16bit_chars=no 23148 fi 23149else 23150 enableval=no 23151 enable_16bit_chars=no 23152 23153fi; 23154echo "$as_me:23154: result: $enable_16bit_chars" >&5 23155echo "${ECHO_T}$enable_16bit_chars" >&6 23156 23157if test "$enable_16bit_chars" = yes ; then 23158 23159cat >>confdefs.h <<\EOF 23160#define OPT_WIDER_ICHAR 0 23161EOF 23162 23163 enable_wchar=yes 23164fi 23165 23166if test "$enable_wchar" = yes ; then 23167 23168echo "$as_me:23168: checking if you want to use mini-luit/Latin9 built-in support" >&5 23169echo $ECHO_N "checking if you want to use mini-luit/Latin9 built-in support... $ECHO_C" >&6 23170 23171# Check whether --enable-mini-luit or --disable-mini-luit was given. 23172if test "${enable_mini_luit+set}" = set; then 23173 enableval="$enable_mini_luit" 23174 test "$enableval" != yes && enableval=no 23175 if test "$enableval" != "no" ; then 23176 enable_mini_luit=yes 23177 else 23178 enable_mini_luit=no 23179 fi 23180else 23181 enableval=no 23182 enable_mini_luit=no 23183 23184fi; 23185echo "$as_me:23185: result: $enable_mini_luit" >&5 23186echo "${ECHO_T}$enable_mini_luit" >&6 23187if test "$enable_mini_luit" = yes ; then 23188 23189cat >>confdefs.h <<\EOF 23190#define OPT_MINI_LUIT 1 23191EOF 23192 23193fi 23194 23195echo "$as_me:23195: checking if you want to use luit" >&5 23196echo $ECHO_N "checking if you want to use luit... $ECHO_C" >&6 23197 23198# Check whether --enable-luit or --disable-luit was given. 23199if test "${enable_luit+set}" = set; then 23200 enableval="$enable_luit" 23201 test "$enableval" != no && enableval=yes 23202 if test "$enableval" != "yes" ; then 23203 enable_luit=no 23204 else 23205 enable_luit=yes 23206 fi 23207else 23208 enableval=yes 23209 enable_luit=yes 23210 23211fi; 23212echo "$as_me:23212: result: $enable_luit" >&5 23213echo "${ECHO_T}$enable_luit" >&6 23214if test "$enable_luit" = yes ; then 23215 23216cat >>confdefs.h <<\EOF 23217#define OPT_LUIT_PROG 1 23218EOF 23219 23220test -z "$LUIT" && LUIT="xterm-filter" 23221for ac_prog in $LUIT xterm-filter bluit luit 23222do 23223 # Extract the first word of "$ac_prog", so it can be a program name with args. 23224set dummy $ac_prog; ac_word=$2 23225echo "$as_me:23225: checking for $ac_word" >&5 23226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 23227if test "${ac_cv_path_LUIT+set}" = set; then 23228 echo $ECHO_N "(cached) $ECHO_C" >&6 23229else 23230 case $LUIT in 23231 [\\/]* | ?:[\\/]*) 23232 ac_cv_path_LUIT="$LUIT" # Let the user override the test with a path. 23233 ;; 23234 *) 23235 ac_save_IFS=$IFS; IFS=$ac_path_separator 23236ac_dummy="$PATH" 23237for ac_dir in $ac_dummy; do 23238 IFS=$ac_save_IFS 23239 test -z "$ac_dir" && ac_dir=. 23240 if $as_executable_p "$ac_dir/$ac_word"; then 23241 ac_cv_path_LUIT="$ac_dir/$ac_word" 23242 echo "$as_me:23242: found $ac_dir/$ac_word" >&5 23243 break 23244fi 23245done 23246 23247 ;; 23248esac 23249fi 23250LUIT=$ac_cv_path_LUIT 23251 23252if test -n "$LUIT"; then 23253 echo "$as_me:23253: result: $LUIT" >&5 23254echo "${ECHO_T}$LUIT" >&6 23255else 23256 echo "$as_me:23256: result: no" >&5 23257echo "${ECHO_T}no" >&6 23258fi 23259 23260 test -n "$LUIT" && break 23261done 23262test -n "$LUIT" || LUIT="$LUIT" 23263 23264cf_path_prog="" 23265cf_path_args="" 23266IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" 23267for cf_temp in $ac_cv_path_LUIT 23268do 23269 if test -z "$cf_path_prog" ; then 23270 if test "$with_full_paths" = yes ; then 23271 23272if test "x$prefix" != xNONE; then 23273 cf_path_syntax="$prefix" 23274else 23275 cf_path_syntax="$ac_default_prefix" 23276fi 23277 23278case "x$cf_temp" in 23279(x\$\(*\)*|x\'*\'*) 23280 ;; 23281(x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER) 23282 ;; 23283(x\$\{*prefix\}*|x\$\{*dir\}*) 23284 eval cf_temp="$cf_temp" 23285 case "x$cf_temp" in 23286 (xNONE/*) 23287 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` 23288 ;; 23289 esac 23290 ;; 23291(xno|xNONE/*) 23292 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` 23293 ;; 23294(*) 23295 break 23296 ;; 23297esac 23298 23299 cf_path_prog="$cf_temp" 23300 else 23301 cf_path_prog="`basename "$cf_temp"`" 23302 fi 23303 elif test -z "$cf_path_args" ; then 23304 cf_path_args="$cf_temp" 23305 else 23306 cf_path_args="$cf_path_args $cf_temp" 23307 fi 23308done 23309IFS="$cf_save_ifs" 23310 23311if test -n "$cf_path_prog" ; then 23312 23313echo "${as_me:-configure}:23313: testing defining path for ${cf_path_prog} ..." 1>&5 23314 23315cat >>confdefs.h <<EOF 23316#define LUIT_PATH "$cf_path_prog" 23317EOF 23318 23319 test -n "$cf_path_args" && 23320cat >>confdefs.h <<EOF 23321#define LUIT_ARGS "$cf_path_args" 23322EOF 23323 23324fi 23325 23326fi 23327 23328cat >>confdefs.h <<\EOF 23329#define OPT_WIDE_CHARS 1 23330EOF 23331 23332 EXTRAHDRS="$EXTRAHDRS charclass.h precompose.h wcwidth.h" 23333 EXTRASRCS="$EXTRASRCS charclass.c precompose.c wcwidth.c" 23334 EXTRAOBJS="$EXTRAOBJS charclass.o precompose.o wcwidth.o" 23335fi 23336 23337echo "$as_me:23337: checking if you want dynamic-abbreviation support" >&5 23338echo $ECHO_N "checking if you want dynamic-abbreviation support... $ECHO_C" >&6 23339 23340# Check whether --enable-dabbrev or --disable-dabbrev was given. 23341if test "${enable_dabbrev+set}" = set; then 23342 enableval="$enable_dabbrev" 23343 test "$enableval" != yes && enableval=no 23344 if test "$enableval" != "no" ; then 23345 enable_dabbrev=yes 23346 else 23347 enable_dabbrev=no 23348 fi 23349else 23350 enableval=no 23351 enable_dabbrev=no 23352 23353fi; 23354echo "$as_me:23354: result: $enable_dabbrev" >&5 23355echo "${ECHO_T}$enable_dabbrev" >&6 23356if test "$enable_dabbrev" = yes ; then 23357 23358cat >>confdefs.h <<\EOF 23359#define OPT_DABBREV 1 23360EOF 23361 23362fi 23363 23364echo "$as_me:23364: checking if you want DECterm Locator support" >&5 23365echo $ECHO_N "checking if you want DECterm Locator support... $ECHO_C" >&6 23366 23367# Check whether --enable-dec-locator or --disable-dec-locator was given. 23368if test "${enable_dec_locator+set}" = set; then 23369 enableval="$enable_dec_locator" 23370 test "$enableval" != yes && enableval=no 23371 if test "$enableval" != "no" ; then 23372 enable_dec_locator=yes 23373 else 23374 enable_dec_locator=no 23375 fi 23376else 23377 enableval=no 23378 enable_dec_locator=no 23379 23380fi; 23381echo "$as_me:23381: result: $enable_dec_locator" >&5 23382echo "${ECHO_T}$enable_dec_locator" >&6 23383if test "$enable_dec_locator" = yes ; then 23384 23385cat >>confdefs.h <<\EOF 23386#define OPT_DEC_LOCATOR 1 23387EOF 23388 23389fi 23390 23391echo "$as_me:23391: checking if you want XHTML and SVG screen dump support" >&5 23392echo $ECHO_N "checking if you want XHTML and SVG screen dump support... $ECHO_C" >&6 23393 23394# Check whether --enable-screen-dumps or --disable-screen-dumps was given. 23395if test "${enable_screen_dumps+set}" = set; then 23396 enableval="$enable_screen_dumps" 23397 test "$enableval" != no && enableval=yes 23398 if test "$enableval" != "yes" ; then 23399 enable_screen_dumps=no 23400 else 23401 enable_screen_dumps=yes 23402 fi 23403else 23404 enableval=yes 23405 enable_screen_dumps=yes 23406 23407fi; 23408echo "$as_me:23408: result: $enable_screen_dumps" >&5 23409echo "${ECHO_T}$enable_screen_dumps" >&6 23410if test "$enable_screen_dumps" = yes ; then 23411 EXTRASRCS="$EXTRASRCS html.c svg.c" 23412 EXTRAOBJS="$EXTRAOBJS html.o svg.o" 23413else 23414 23415cat >>confdefs.h <<\EOF 23416#define OPT_SCREEN_DUMPS 0 23417EOF 23418 23419fi 23420 23421echo "$as_me:23421: checking if you want ReGIS graphics support" >&5 23422echo $ECHO_N "checking if you want ReGIS graphics support... $ECHO_C" >&6 23423 23424# Check whether --enable-regis-graphics or --disable-regis-graphics was given. 23425if test "${enable_regis_graphics+set}" = set; then 23426 enableval="$enable_regis_graphics" 23427 test "$enableval" != yes && enableval=no 23428 if test "$enableval" != "no" ; then 23429 enable_regis_graphics=yes 23430 else 23431 enable_regis_graphics=no 23432 fi 23433else 23434 enableval=no 23435 enable_regis_graphics=no 23436 23437fi; 23438echo "$as_me:23438: result: $enable_regis_graphics" >&5 23439echo "${ECHO_T}$enable_regis_graphics" >&6 23440if test "$enable_regis_graphics" = yes ; then 23441 23442cat >>confdefs.h <<\EOF 23443#define OPT_REGIS_GRAPHICS 1 23444EOF 23445 23446 EXTRAHDRS="$EXTRAHDRS graphics_regis.h" 23447 EXTRASRCS="$EXTRASRCS graphics_regis.c" 23448 EXTRAOBJS="$EXTRAOBJS graphics_regis.o" 23449 23450echo "$as_me:23450: checking if -lm needed for math functions" >&5 23451echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6 23452if test "${cf_cv_need_libm+set}" = set; then 23453 echo $ECHO_N "(cached) $ECHO_C" >&6 23454else 23455 23456 cat >"conftest.$ac_ext" <<_ACEOF 23457#line 23457 "configure" 23458#include "confdefs.h" 23459 23460 #include <stdio.h> 23461 #include <stdlib.h> 23462 #include <math.h> 23463 23464int 23465main (void) 23466{ 23467double x = rand(); printf("result = %g\\n", sin(x)) 23468 ; 23469 return 0; 23470} 23471_ACEOF 23472rm -f "conftest.$ac_objext" "conftest$ac_exeext" 23473if { (eval echo "$as_me:23473: \"$ac_link\"") >&5 23474 (eval $ac_link) 2>&5 23475 ac_status=$? 23476 echo "$as_me:23476: \$? = $ac_status" >&5 23477 (exit "$ac_status"); } && 23478 { ac_try='test -s "conftest$ac_exeext"' 23479 { (eval echo "$as_me:23479: \"$ac_try\"") >&5 23480 (eval $ac_try) 2>&5 23481 ac_status=$? 23482 echo "$as_me:23482: \$? = $ac_status" >&5 23483 (exit "$ac_status"); }; }; then 23484 cf_cv_need_libm=no 23485else 23486 echo "$as_me: failed program was:" >&5 23487cat "conftest.$ac_ext" >&5 23488cf_cv_need_libm=yes 23489fi 23490rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 23491fi 23492echo "$as_me:23492: result: $cf_cv_need_libm" >&5 23493echo "${ECHO_T}$cf_cv_need_libm" >&6 23494 23495if test "$cf_cv_need_libm" = yes 23496then 23497 23498 cf_save_LIBS="$LIBS" 23499 LIBS="$LIBS -lm" 23500 echo "$as_me:23500: checking if -lm is available for math functions" >&5 23501echo $ECHO_N "checking if -lm is available for math functions... $ECHO_C" >&6 23502if test "${cf_cv_have_libm+set}" = set; then 23503 echo $ECHO_N "(cached) $ECHO_C" >&6 23504else 23505 23506 cat >"conftest.$ac_ext" <<_ACEOF 23507#line 23507 "configure" 23508#include "confdefs.h" 23509 23510 #include <stdio.h> 23511 #include <stdlib.h> 23512 #include <math.h> 23513 23514int 23515main (void) 23516{ 23517double x = rand(); printf("result = %g\\n", sin(x)) 23518 ; 23519 return 0; 23520} 23521_ACEOF 23522rm -f "conftest.$ac_objext" "conftest$ac_exeext" 23523if { (eval echo "$as_me:23523: \"$ac_link\"") >&5 23524 (eval $ac_link) 2>&5 23525 ac_status=$? 23526 echo "$as_me:23526: \$? = $ac_status" >&5 23527 (exit "$ac_status"); } && 23528 { ac_try='test -s "conftest$ac_exeext"' 23529 { (eval echo "$as_me:23529: \"$ac_try\"") >&5 23530 (eval $ac_try) 2>&5 23531 ac_status=$? 23532 echo "$as_me:23532: \$? = $ac_status" >&5 23533 (exit "$ac_status"); }; }; then 23534 cf_cv_have_libm=yes 23535else 23536 echo "$as_me: failed program was:" >&5 23537cat "conftest.$ac_ext" >&5 23538cf_cv_have_libm=no 23539fi 23540rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 23541fi 23542echo "$as_me:23542: result: $cf_cv_have_libm" >&5 23543echo "${ECHO_T}$cf_cv_have_libm" >&6 23544 LIBS="$cf_save_LIBS" 23545 23546 if test "$cf_cv_have_libm" = yes 23547 then 23548 23549cf_add_libs="$LIBS" 23550# reverse order 23551cf_add_0lib= 23552for cf_add_1lib in -lm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 23553# filter duplicates 23554for cf_add_1lib in $cf_add_0lib; do 23555 for cf_add_2lib in $cf_add_libs; do 23556 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 23557 cf_add_1lib= 23558 break 23559 fi 23560 done 23561 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 23562done 23563LIBS="$cf_add_libs" 23564 23565 fi 23566else 23567 cf_cv_have_libm=yes 23568fi 23569 23570if test "$cf_cv_have_libm" = yes 23571then 23572 23573cat >>confdefs.h <<\EOF 23574#define HAVE_MATH_FUNCS 1 23575EOF 23576 23577fi 23578 23579fi 23580 23581echo "$as_me:23581: checking if you want sixel graphics support" >&5 23582echo $ECHO_N "checking if you want sixel graphics support... $ECHO_C" >&6 23583 23584# Check whether --enable-sixel-graphics or --disable-sixel-graphics was given. 23585if test "${enable_sixel_graphics+set}" = set; then 23586 enableval="$enable_sixel_graphics" 23587 test "$enableval" != no && enableval=yes 23588 if test "$enableval" != "yes" ; then 23589 enable_sixel_graphics=no 23590 else 23591 enable_sixel_graphics=yes 23592 fi 23593else 23594 enableval=yes 23595 enable_sixel_graphics=yes 23596 23597fi; 23598echo "$as_me:23598: result: $enable_sixel_graphics" >&5 23599echo "${ECHO_T}$enable_sixel_graphics" >&6 23600if test "$enable_sixel_graphics" = yes ; then 23601 23602cat >>confdefs.h <<\EOF 23603#define OPT_SIXEL_GRAPHICS 1 23604EOF 23605 23606 EXTRAHDRS="$EXTRAHDRS graphics_sixel.h" 23607 EXTRASRCS="$EXTRASRCS graphics_sixel.c" 23608 EXTRAOBJS="$EXTRAOBJS graphics_sixel.o" 23609fi 23610 23611if test "$enable_regis_graphics" = yes || test "$enable_sixel_graphics" = yes ; then 23612 23613cat >>confdefs.h <<\EOF 23614#define OPT_GRAPHICS 1 23615EOF 23616 23617 EXTRAHDRS="$EXTRAHDRS graphics.h" 23618 EXTRASRCS="$EXTRASRCS graphics.c" 23619 EXTRAOBJS="$EXTRAOBJS graphics.o" 23620 STRINGS_MAX=600000 23621else 23622 STRINGS_MAX=20000 23623fi 23624 23625echo "$as_me:23625: checking if you want sixel screen dump support" >&5 23626echo $ECHO_N "checking if you want sixel screen dump support... $ECHO_C" >&6 23627 23628# Check whether --enable-print-graphics or --disable-print-graphics was given. 23629if test "${enable_print_graphics+set}" = set; then 23630 enableval="$enable_print_graphics" 23631 test "$enableval" != no && enableval=yes 23632 if test "$enableval" != "yes" ; then 23633 enable_print_graphics=no 23634 else 23635 enable_print_graphics=$enable_regis_graphics 23636 fi 23637else 23638 enableval=yes 23639 enable_print_graphics=$enable_regis_graphics 23640 23641fi; 23642echo "$as_me:23642: result: $enable_print_graphics" >&5 23643echo "${ECHO_T}$enable_print_graphics" >&6 23644if test "$enable_print_graphics" = yes ; then 23645 23646cat >>confdefs.h <<\EOF 23647#define OPT_PRINT_GRAPHICS 1 23648EOF 23649 23650fi 23651 23652echo "$as_me:23652: checking if you want VT420 rectangle support" >&5 23653echo $ECHO_N "checking if you want VT420 rectangle support... $ECHO_C" >&6 23654 23655# Check whether --enable-rectangles or --disable-rectangles was given. 23656if test "${enable_rectangles+set}" = set; then 23657 enableval="$enable_rectangles" 23658 test "$enableval" != no && enableval=yes 23659 if test "$enableval" != "yes" ; then 23660 enable_rectangles=no 23661 else 23662 enable_rectangles=yes 23663 fi 23664else 23665 enableval=yes 23666 enable_rectangles=yes 23667 23668fi; 23669echo "$as_me:23669: result: $enable_rectangles" >&5 23670echo "${ECHO_T}$enable_rectangles" >&6 23671if test "$enable_rectangles" = no ; then 23672 23673cat >>confdefs.h <<\EOF 23674#define OPT_DEC_RECTOPS 0 23675EOF 23676 23677fi 23678 23679echo "$as_me:23679: checking if you want -ziconbeep option" >&5 23680echo $ECHO_N "checking if you want -ziconbeep option... $ECHO_C" >&6 23681 23682# Check whether --enable-ziconbeep or --disable-ziconbeep was given. 23683if test "${enable_ziconbeep+set}" = set; then 23684 enableval="$enable_ziconbeep" 23685 test "$enableval" != no && enableval=yes 23686 if test "$enableval" != "yes" ; then 23687 enable_ziconbeep=no 23688 else 23689 enable_ziconbeep=yes 23690 fi 23691else 23692 enableval=yes 23693 enable_ziconbeep=yes 23694 23695fi; 23696echo "$as_me:23696: result: $enable_ziconbeep" >&5 23697echo "${ECHO_T}$enable_ziconbeep" >&6 23698test "$enable_ziconbeep" = no && 23699cat >>confdefs.h <<\EOF 23700#define OPT_ZICONBEEP 0 23701EOF 23702 23703############################################################################### 23704 23705echo "$as_me:23705: checking if you want debugging traces" >&5 23706echo $ECHO_N "checking if you want debugging traces... $ECHO_C" >&6 23707 23708# Check whether --enable-trace or --disable-trace was given. 23709if test "${enable_trace+set}" = set; then 23710 enableval="$enable_trace" 23711 test "$enableval" != yes && enableval=no 23712 if test "$enableval" != "no" ; then 23713 enable_trace=yes 23714 else 23715 enable_trace=no 23716 fi 23717else 23718 enableval=no 23719 enable_trace=no 23720 23721fi; 23722echo "$as_me:23722: result: $enable_trace" >&5 23723echo "${ECHO_T}$enable_trace" >&6 23724if test "$enable_trace" = yes ; then 23725 23726cat >>confdefs.h <<\EOF 23727#define OPT_TRACE 1 23728EOF 23729 23730 EXTRASRCS="$EXTRASRCS trace.c" 23731 EXTRAOBJS="$EXTRAOBJS trace.o" 23732fi 23733 23734echo "$as_me:23734: checking if you want to use dmalloc for testing" >&5 23735echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6 23736 23737# Check whether --with-dmalloc or --without-dmalloc was given. 23738if test "${with_dmalloc+set}" = set; then 23739 withval="$with_dmalloc" 23740 case "x$withval" in 23741 (x|xno) ;; 23742 (*) 23743 : "${with_cflags:=-g}" 23744 : "${enable_leaks:=no}" 23745 with_dmalloc=yes 23746 23747cat >>confdefs.h <<EOF 23748#define USE_DMALLOC 1 23749EOF 23750 23751 ;; 23752 esac 23753else 23754 with_dmalloc= 23755fi; 23756echo "$as_me:23756: result: ${with_dmalloc:-no}" >&5 23757echo "${ECHO_T}${with_dmalloc:-no}" >&6 23758 23759case ".$with_cflags" in 23760(.*-g*) 23761 case .$CFLAGS in 23762 (.*-g*) 23763 ;; 23764 (*) 23765 23766cf_fix_cppflags=no 23767cf_new_cflags= 23768cf_new_cppflags= 23769cf_new_extra_cppflags= 23770 23771for cf_add_cflags in -g 23772do 23773case "$cf_fix_cppflags" in 23774(no) 23775 case "$cf_add_cflags" in 23776 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 23777 case "$cf_add_cflags" in 23778 (-D*) 23779 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 23780 23781 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 23782 && test -z "${cf_tst_cflags}" \ 23783 && cf_fix_cppflags=yes 23784 23785 if test "$cf_fix_cppflags" = yes ; then 23786 23787 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 23788 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 23789 23790 continue 23791 elif test "${cf_tst_cflags}" = "\"'" ; then 23792 23793 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 23794 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 23795 23796 continue 23797 fi 23798 ;; 23799 esac 23800 case "$CPPFLAGS" in 23801 (*$cf_add_cflags) 23802 ;; 23803 (*) 23804 case "$cf_add_cflags" in 23805 (-D*) 23806 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 23807 23808CPPFLAGS=`echo "$CPPFLAGS" | \ 23809 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 23810 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 23811 23812 ;; 23813 esac 23814 23815 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 23816 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 23817 23818 ;; 23819 esac 23820 ;; 23821 (*) 23822 23823 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 23824 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 23825 23826 ;; 23827 esac 23828 ;; 23829(yes) 23830 23831 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 23832 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 23833 23834 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 23835 23836 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 23837 && test -z "${cf_tst_cflags}" \ 23838 && cf_fix_cppflags=no 23839 ;; 23840esac 23841done 23842 23843if test -n "$cf_new_cflags" ; then 23844 23845 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 23846 CFLAGS="${CFLAGS}$cf_new_cflags" 23847 23848fi 23849 23850if test -n "$cf_new_cppflags" ; then 23851 23852 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 23853 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 23854 23855fi 23856 23857if test -n "$cf_new_extra_cppflags" ; then 23858 23859 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 23860 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 23861 23862fi 23863 23864 ;; 23865 esac 23866 ;; 23867esac 23868 23869if test "$with_dmalloc" = yes ; then 23870 echo "$as_me:23870: checking for dmalloc.h" >&5 23871echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6 23872if test "${ac_cv_header_dmalloc_h+set}" = set; then 23873 echo $ECHO_N "(cached) $ECHO_C" >&6 23874else 23875 cat >"conftest.$ac_ext" <<_ACEOF 23876#line 23876 "configure" 23877#include "confdefs.h" 23878#include <dmalloc.h> 23879_ACEOF 23880if { (eval echo "$as_me:23880: \"$ac_cpp "conftest.$ac_ext"\"") >&5 23881 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 23882 ac_status=$? 23883 $EGREP -v '^ *\+' conftest.er1 >conftest.err 23884 rm -f conftest.er1 23885 cat conftest.err >&5 23886 echo "$as_me:23886: \$? = $ac_status" >&5 23887 (exit "$ac_status"); } >/dev/null; then 23888 if test -s conftest.err; then 23889 ac_cpp_err=$ac_c_preproc_warn_flag 23890 else 23891 ac_cpp_err= 23892 fi 23893else 23894 ac_cpp_err=yes 23895fi 23896if test -z "$ac_cpp_err"; then 23897 ac_cv_header_dmalloc_h=yes 23898else 23899 echo "$as_me: failed program was:" >&5 23900 cat "conftest.$ac_ext" >&5 23901 ac_cv_header_dmalloc_h=no 23902fi 23903rm -f conftest.err "conftest.$ac_ext" 23904fi 23905echo "$as_me:23905: result: $ac_cv_header_dmalloc_h" >&5 23906echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6 23907if test "$ac_cv_header_dmalloc_h" = yes; then 23908 23909echo "$as_me:23909: checking for dmalloc_debug in -ldmalloc" >&5 23910echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6 23911if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then 23912 echo $ECHO_N "(cached) $ECHO_C" >&6 23913else 23914 ac_check_lib_save_LIBS=$LIBS 23915LIBS="-ldmalloc $LIBS" 23916cat >"conftest.$ac_ext" <<_ACEOF 23917#line 23917 "configure" 23918#include "confdefs.h" 23919 23920/* Override any gcc2 internal prototype to avoid an error. */ 23921#ifdef __cplusplus 23922extern "C" 23923#endif 23924/* We use char because int might match the return type of a gcc2 23925 builtin and then its argument prototype would still apply. */ 23926char dmalloc_debug (void); 23927int 23928main (void) 23929{ 23930dmalloc_debug (); 23931 ; 23932 return 0; 23933} 23934_ACEOF 23935rm -f "conftest.$ac_objext" "conftest$ac_exeext" 23936if { (eval echo "$as_me:23936: \"$ac_link\"") >&5 23937 (eval $ac_link) 2>&5 23938 ac_status=$? 23939 echo "$as_me:23939: \$? = $ac_status" >&5 23940 (exit "$ac_status"); } && 23941 { ac_try='test -s "conftest$ac_exeext"' 23942 { (eval echo "$as_me:23942: \"$ac_try\"") >&5 23943 (eval $ac_try) 2>&5 23944 ac_status=$? 23945 echo "$as_me:23945: \$? = $ac_status" >&5 23946 (exit "$ac_status"); }; }; then 23947 ac_cv_lib_dmalloc_dmalloc_debug=yes 23948else 23949 echo "$as_me: failed program was:" >&5 23950cat "conftest.$ac_ext" >&5 23951ac_cv_lib_dmalloc_dmalloc_debug=no 23952fi 23953rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 23954LIBS=$ac_check_lib_save_LIBS 23955fi 23956echo "$as_me:23956: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5 23957echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6 23958if test "$ac_cv_lib_dmalloc_dmalloc_debug" = yes; then 23959 cat >>confdefs.h <<EOF 23960#define HAVE_LIBDMALLOC 1 23961EOF 23962 23963 LIBS="-ldmalloc $LIBS" 23964 23965fi 23966 23967fi 23968 23969fi 23970 23971echo "$as_me:23971: checking if you want to use dbmalloc for testing" >&5 23972echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6 23973 23974# Check whether --with-dbmalloc or --without-dbmalloc was given. 23975if test "${with_dbmalloc+set}" = set; then 23976 withval="$with_dbmalloc" 23977 case "x$withval" in 23978 (x|xno) ;; 23979 (*) 23980 : "${with_cflags:=-g}" 23981 : "${enable_leaks:=no}" 23982 with_dbmalloc=yes 23983 23984cat >>confdefs.h <<EOF 23985#define USE_DBMALLOC 1 23986EOF 23987 23988 ;; 23989 esac 23990else 23991 with_dbmalloc= 23992fi; 23993echo "$as_me:23993: result: ${with_dbmalloc:-no}" >&5 23994echo "${ECHO_T}${with_dbmalloc:-no}" >&6 23995 23996case ".$with_cflags" in 23997(.*-g*) 23998 case .$CFLAGS in 23999 (.*-g*) 24000 ;; 24001 (*) 24002 24003cf_fix_cppflags=no 24004cf_new_cflags= 24005cf_new_cppflags= 24006cf_new_extra_cppflags= 24007 24008for cf_add_cflags in -g 24009do 24010case "$cf_fix_cppflags" in 24011(no) 24012 case "$cf_add_cflags" in 24013 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 24014 case "$cf_add_cflags" in 24015 (-D*) 24016 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 24017 24018 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 24019 && test -z "${cf_tst_cflags}" \ 24020 && cf_fix_cppflags=yes 24021 24022 if test "$cf_fix_cppflags" = yes ; then 24023 24024 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 24025 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 24026 24027 continue 24028 elif test "${cf_tst_cflags}" = "\"'" ; then 24029 24030 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 24031 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 24032 24033 continue 24034 fi 24035 ;; 24036 esac 24037 case "$CPPFLAGS" in 24038 (*$cf_add_cflags) 24039 ;; 24040 (*) 24041 case "$cf_add_cflags" in 24042 (-D*) 24043 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 24044 24045CPPFLAGS=`echo "$CPPFLAGS" | \ 24046 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 24047 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 24048 24049 ;; 24050 esac 24051 24052 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 24053 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 24054 24055 ;; 24056 esac 24057 ;; 24058 (*) 24059 24060 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 24061 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 24062 24063 ;; 24064 esac 24065 ;; 24066(yes) 24067 24068 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 24069 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 24070 24071 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 24072 24073 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 24074 && test -z "${cf_tst_cflags}" \ 24075 && cf_fix_cppflags=no 24076 ;; 24077esac 24078done 24079 24080if test -n "$cf_new_cflags" ; then 24081 24082 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 24083 CFLAGS="${CFLAGS}$cf_new_cflags" 24084 24085fi 24086 24087if test -n "$cf_new_cppflags" ; then 24088 24089 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 24090 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 24091 24092fi 24093 24094if test -n "$cf_new_extra_cppflags" ; then 24095 24096 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 24097 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 24098 24099fi 24100 24101 ;; 24102 esac 24103 ;; 24104esac 24105 24106if test "$with_dbmalloc" = yes ; then 24107 echo "$as_me:24107: checking for dbmalloc.h" >&5 24108echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6 24109if test "${ac_cv_header_dbmalloc_h+set}" = set; then 24110 echo $ECHO_N "(cached) $ECHO_C" >&6 24111else 24112 cat >"conftest.$ac_ext" <<_ACEOF 24113#line 24113 "configure" 24114#include "confdefs.h" 24115#include <dbmalloc.h> 24116_ACEOF 24117if { (eval echo "$as_me:24117: \"$ac_cpp "conftest.$ac_ext"\"") >&5 24118 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 24119 ac_status=$? 24120 $EGREP -v '^ *\+' conftest.er1 >conftest.err 24121 rm -f conftest.er1 24122 cat conftest.err >&5 24123 echo "$as_me:24123: \$? = $ac_status" >&5 24124 (exit "$ac_status"); } >/dev/null; then 24125 if test -s conftest.err; then 24126 ac_cpp_err=$ac_c_preproc_warn_flag 24127 else 24128 ac_cpp_err= 24129 fi 24130else 24131 ac_cpp_err=yes 24132fi 24133if test -z "$ac_cpp_err"; then 24134 ac_cv_header_dbmalloc_h=yes 24135else 24136 echo "$as_me: failed program was:" >&5 24137 cat "conftest.$ac_ext" >&5 24138 ac_cv_header_dbmalloc_h=no 24139fi 24140rm -f conftest.err "conftest.$ac_ext" 24141fi 24142echo "$as_me:24142: result: $ac_cv_header_dbmalloc_h" >&5 24143echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6 24144if test "$ac_cv_header_dbmalloc_h" = yes; then 24145 24146echo "$as_me:24146: checking for debug_malloc in -ldbmalloc" >&5 24147echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6 24148if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then 24149 echo $ECHO_N "(cached) $ECHO_C" >&6 24150else 24151 ac_check_lib_save_LIBS=$LIBS 24152LIBS="-ldbmalloc $LIBS" 24153cat >"conftest.$ac_ext" <<_ACEOF 24154#line 24154 "configure" 24155#include "confdefs.h" 24156 24157/* Override any gcc2 internal prototype to avoid an error. */ 24158#ifdef __cplusplus 24159extern "C" 24160#endif 24161/* We use char because int might match the return type of a gcc2 24162 builtin and then its argument prototype would still apply. */ 24163char debug_malloc (void); 24164int 24165main (void) 24166{ 24167debug_malloc (); 24168 ; 24169 return 0; 24170} 24171_ACEOF 24172rm -f "conftest.$ac_objext" "conftest$ac_exeext" 24173if { (eval echo "$as_me:24173: \"$ac_link\"") >&5 24174 (eval $ac_link) 2>&5 24175 ac_status=$? 24176 echo "$as_me:24176: \$? = $ac_status" >&5 24177 (exit "$ac_status"); } && 24178 { ac_try='test -s "conftest$ac_exeext"' 24179 { (eval echo "$as_me:24179: \"$ac_try\"") >&5 24180 (eval $ac_try) 2>&5 24181 ac_status=$? 24182 echo "$as_me:24182: \$? = $ac_status" >&5 24183 (exit "$ac_status"); }; }; then 24184 ac_cv_lib_dbmalloc_debug_malloc=yes 24185else 24186 echo "$as_me: failed program was:" >&5 24187cat "conftest.$ac_ext" >&5 24188ac_cv_lib_dbmalloc_debug_malloc=no 24189fi 24190rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 24191LIBS=$ac_check_lib_save_LIBS 24192fi 24193echo "$as_me:24193: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5 24194echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6 24195if test "$ac_cv_lib_dbmalloc_debug_malloc" = yes; then 24196 cat >>confdefs.h <<EOF 24197#define HAVE_LIBDBMALLOC 1 24198EOF 24199 24200 LIBS="-ldbmalloc $LIBS" 24201 24202fi 24203 24204fi 24205 24206fi 24207 24208echo "$as_me:24208: checking if you want to use valgrind for testing" >&5 24209echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6 24210 24211# Check whether --with-valgrind or --without-valgrind was given. 24212if test "${with_valgrind+set}" = set; then 24213 withval="$with_valgrind" 24214 case "x$withval" in 24215 (x|xno) ;; 24216 (*) 24217 : "${with_cflags:=-g}" 24218 : "${enable_leaks:=no}" 24219 with_valgrind=yes 24220 24221cat >>confdefs.h <<EOF 24222#define USE_VALGRIND 1 24223EOF 24224 24225 ;; 24226 esac 24227else 24228 with_valgrind= 24229fi; 24230echo "$as_me:24230: result: ${with_valgrind:-no}" >&5 24231echo "${ECHO_T}${with_valgrind:-no}" >&6 24232 24233case ".$with_cflags" in 24234(.*-g*) 24235 case .$CFLAGS in 24236 (.*-g*) 24237 ;; 24238 (*) 24239 24240cf_fix_cppflags=no 24241cf_new_cflags= 24242cf_new_cppflags= 24243cf_new_extra_cppflags= 24244 24245for cf_add_cflags in -g 24246do 24247case "$cf_fix_cppflags" in 24248(no) 24249 case "$cf_add_cflags" in 24250 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 24251 case "$cf_add_cflags" in 24252 (-D*) 24253 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 24254 24255 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 24256 && test -z "${cf_tst_cflags}" \ 24257 && cf_fix_cppflags=yes 24258 24259 if test "$cf_fix_cppflags" = yes ; then 24260 24261 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 24262 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 24263 24264 continue 24265 elif test "${cf_tst_cflags}" = "\"'" ; then 24266 24267 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 24268 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 24269 24270 continue 24271 fi 24272 ;; 24273 esac 24274 case "$CPPFLAGS" in 24275 (*$cf_add_cflags) 24276 ;; 24277 (*) 24278 case "$cf_add_cflags" in 24279 (-D*) 24280 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 24281 24282CPPFLAGS=`echo "$CPPFLAGS" | \ 24283 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 24284 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 24285 24286 ;; 24287 esac 24288 24289 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 24290 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 24291 24292 ;; 24293 esac 24294 ;; 24295 (*) 24296 24297 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 24298 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 24299 24300 ;; 24301 esac 24302 ;; 24303(yes) 24304 24305 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 24306 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 24307 24308 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 24309 24310 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 24311 && test -z "${cf_tst_cflags}" \ 24312 && cf_fix_cppflags=no 24313 ;; 24314esac 24315done 24316 24317if test -n "$cf_new_cflags" ; then 24318 24319 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 24320 CFLAGS="${CFLAGS}$cf_new_cflags" 24321 24322fi 24323 24324if test -n "$cf_new_cppflags" ; then 24325 24326 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 24327 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 24328 24329fi 24330 24331if test -n "$cf_new_extra_cppflags" ; then 24332 24333 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 24334 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 24335 24336fi 24337 24338 ;; 24339 esac 24340 ;; 24341esac 24342 24343echo "$as_me:24343: checking if you want to perform memory-leak testing" >&5 24344echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6 24345 24346# Check whether --enable-leaks or --disable-leaks was given. 24347if test "${enable_leaks+set}" = set; then 24348 enableval="$enable_leaks" 24349 enable_leaks=$enableval 24350else 24351 enable_leaks=yes 24352fi; 24353if test "x$enable_leaks" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi 24354echo "$as_me:24354: result: $with_no_leaks" >&5 24355echo "${ECHO_T}$with_no_leaks" >&6 24356 24357if test "$enable_leaks" = no ; then 24358 24359cat >>confdefs.h <<\EOF 24360#define NO_LEAKS 1 24361EOF 24362 24363cat >>confdefs.h <<\EOF 24364#define YY_NO_LEAKS 1 24365EOF 24366 24367fi 24368 24369echo "$as_me:24369: checking if you want to see long compiling messages" >&5 24370echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6 24371 24372# Check whether --enable-echo or --disable-echo was given. 24373if test "${enable_echo+set}" = set; then 24374 enableval="$enable_echo" 24375 test "$enableval" != no && enableval=yes 24376 if test "$enableval" != "yes" ; then 24377 24378 ECHO_LT='--silent' 24379 ECHO_LD='@echo linking $@;' 24380 RULE_CC='@echo compiling $<' 24381 SHOW_CC='@echo compiling $@' 24382 ECHO_CC='@' 24383 24384 else 24385 24386 ECHO_LT='' 24387 ECHO_LD='' 24388 RULE_CC='' 24389 SHOW_CC='' 24390 ECHO_CC='' 24391 24392 fi 24393else 24394 enableval=yes 24395 24396 ECHO_LT='' 24397 ECHO_LD='' 24398 RULE_CC='' 24399 SHOW_CC='' 24400 ECHO_CC='' 24401 24402fi; 24403echo "$as_me:24403: result: $enableval" >&5 24404echo "${ECHO_T}$enableval" >&6 24405 24406echo "$as_me:24406: checking if you want magic cookie emulation" >&5 24407echo $ECHO_N "checking if you want magic cookie emulation... $ECHO_C" >&6 24408 24409# Check whether --enable-xmc-glitch or --disable-xmc-glitch was given. 24410if test "${enable_xmc_glitch+set}" = set; then 24411 enableval="$enable_xmc_glitch" 24412 test "$enableval" != yes && enableval=no 24413 if test "$enableval" != "no" ; then 24414 enable_xmc=yes 24415 else 24416 enable_xmc=no 24417 fi 24418else 24419 enableval=no 24420 enable_xmc=no 24421 24422fi; 24423echo "$as_me:24423: result: $enable_xmc" >&5 24424echo "${ECHO_T}$enable_xmc" >&6 24425if test "$enable_xmc" = yes ; then 24426 24427cat >>confdefs.h <<\EOF 24428#define OPT_XMC_GLITCH 1 24429EOF 24430 24431 EXTRASRCS="$EXTRASRCS testxmc.c" 24432 EXTRAOBJS="$EXTRAOBJS testxmc.o" 24433fi 24434 24435for ac_func in tigetstr 24436do 24437as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 24438echo "$as_me:24438: checking for $ac_func" >&5 24439echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 24440if eval "test \"\${$as_ac_var+set}\" = set"; then 24441 echo $ECHO_N "(cached) $ECHO_C" >&6 24442else 24443 cat >"conftest.$ac_ext" <<_ACEOF 24444#line 24444 "configure" 24445#include "confdefs.h" 24446#define $ac_func autoconf_temporary 24447#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 24448#undef $ac_func 24449 24450#ifdef __cplusplus 24451extern "C" 24452#endif 24453 24454/* We use char because int might match the return type of a gcc2 24455 builtin and then its argument prototype would still apply. */ 24456char $ac_func (void); 24457 24458int 24459main (void) 24460{ 24461 24462/* The GNU C library defines stubs for functions which it implements 24463 to always fail with ENOSYS. Some functions are actually named 24464 something starting with __ and the normal name is an alias. */ 24465#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 24466#error found stub for $ac_func 24467#endif 24468 24469 return $ac_func (); 24470 ; 24471 return 0; 24472} 24473_ACEOF 24474rm -f "conftest.$ac_objext" "conftest$ac_exeext" 24475if { (eval echo "$as_me:24475: \"$ac_link\"") >&5 24476 (eval $ac_link) 2>&5 24477 ac_status=$? 24478 echo "$as_me:24478: \$? = $ac_status" >&5 24479 (exit "$ac_status"); } && 24480 { ac_try='test -s "conftest$ac_exeext"' 24481 { (eval echo "$as_me:24481: \"$ac_try\"") >&5 24482 (eval $ac_try) 2>&5 24483 ac_status=$? 24484 echo "$as_me:24484: \$? = $ac_status" >&5 24485 (exit "$ac_status"); }; }; then 24486 eval "$as_ac_var=yes" 24487else 24488 echo "$as_me: failed program was:" >&5 24489cat "conftest.$ac_ext" >&5 24490eval "$as_ac_var=no" 24491fi 24492rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 24493fi 24494echo "$as_me:24494: result: `eval echo '${'"$as_ac_var"'}'`" >&5 24495echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 24496if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 24497 cat >>confdefs.h <<EOF 24498#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 24499EOF 24500 24501fi 24502done 24503 24504if test -n "$cf_cv_lib_part_tgetent"; then 24505 24506for ac_func in use_extended_names 24507do 24508as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 24509echo "$as_me:24509: checking for $ac_func" >&5 24510echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 24511if eval "test \"\${$as_ac_var+set}\" = set"; then 24512 echo $ECHO_N "(cached) $ECHO_C" >&6 24513else 24514 cat >"conftest.$ac_ext" <<_ACEOF 24515#line 24515 "configure" 24516#include "confdefs.h" 24517#define $ac_func autoconf_temporary 24518#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 24519#undef $ac_func 24520 24521#ifdef __cplusplus 24522extern "C" 24523#endif 24524 24525/* We use char because int might match the return type of a gcc2 24526 builtin and then its argument prototype would still apply. */ 24527char $ac_func (void); 24528 24529int 24530main (void) 24531{ 24532 24533/* The GNU C library defines stubs for functions which it implements 24534 to always fail with ENOSYS. Some functions are actually named 24535 something starting with __ and the normal name is an alias. */ 24536#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 24537#error found stub for $ac_func 24538#endif 24539 24540 return $ac_func (); 24541 ; 24542 return 0; 24543} 24544_ACEOF 24545rm -f "conftest.$ac_objext" "conftest$ac_exeext" 24546if { (eval echo "$as_me:24546: \"$ac_link\"") >&5 24547 (eval $ac_link) 2>&5 24548 ac_status=$? 24549 echo "$as_me:24549: \$? = $ac_status" >&5 24550 (exit "$ac_status"); } && 24551 { ac_try='test -s "conftest$ac_exeext"' 24552 { (eval echo "$as_me:24552: \"$ac_try\"") >&5 24553 (eval $ac_try) 2>&5 24554 ac_status=$? 24555 echo "$as_me:24555: \$? = $ac_status" >&5 24556 (exit "$ac_status"); }; }; then 24557 eval "$as_ac_var=yes" 24558else 24559 echo "$as_me: failed program was:" >&5 24560cat "conftest.$ac_ext" >&5 24561eval "$as_ac_var=no" 24562fi 24563rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 24564fi 24565echo "$as_me:24565: result: `eval echo '${'"$as_ac_var"'}'`" >&5 24566echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 24567if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 24568 cat >>confdefs.h <<EOF 24569#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 24570EOF 24571 24572fi 24573done 24574 24575fi 24576 24577echo "$as_me:24577: checking if you want to use C11 _Noreturn feature" >&5 24578echo $ECHO_N "checking if you want to use C11 _Noreturn feature... $ECHO_C" >&6 24579 24580# Check whether --enable-stdnoreturn or --disable-stdnoreturn was given. 24581if test "${enable_stdnoreturn+set}" = set; then 24582 enableval="$enable_stdnoreturn" 24583 test "$enableval" != yes && enableval=no 24584 if test "$enableval" != "no" ; then 24585 enable_stdnoreturn=yes 24586 else 24587 enable_stdnoreturn=no 24588 fi 24589else 24590 enableval=no 24591 enable_stdnoreturn=no 24592 24593fi; 24594echo "$as_me:24594: result: $enable_stdnoreturn" >&5 24595echo "${ECHO_T}$enable_stdnoreturn" >&6 24596 24597if test $enable_stdnoreturn = yes; then 24598echo "$as_me:24598: checking for C11 _Noreturn feature" >&5 24599echo $ECHO_N "checking for C11 _Noreturn feature... $ECHO_C" >&6 24600if test "${cf_cv_c11_noreturn+set}" = set; then 24601 echo $ECHO_N "(cached) $ECHO_C" >&6 24602else 24603 cat >"conftest.$ac_ext" <<_ACEOF 24604#line 24604 "configure" 24605#include "confdefs.h" 24606 24607$ac_includes_default 24608#include <stdnoreturn.h> 24609static _Noreturn void giveup(void) { exit(0); } 24610 24611int 24612main (void) 24613{ 24614if (feof(stdin)) giveup() 24615 ; 24616 return 0; 24617} 24618_ACEOF 24619rm -f "conftest.$ac_objext" 24620if { (eval echo "$as_me:24620: \"$ac_compile\"") >&5 24621 (eval $ac_compile) 2>&5 24622 ac_status=$? 24623 echo "$as_me:24623: \$? = $ac_status" >&5 24624 (exit "$ac_status"); } && 24625 { ac_try='test -s "conftest.$ac_objext"' 24626 { (eval echo "$as_me:24626: \"$ac_try\"") >&5 24627 (eval $ac_try) 2>&5 24628 ac_status=$? 24629 echo "$as_me:24629: \$? = $ac_status" >&5 24630 (exit "$ac_status"); }; }; then 24631 cf_cv_c11_noreturn=yes 24632else 24633 echo "$as_me: failed program was:" >&5 24634cat "conftest.$ac_ext" >&5 24635cf_cv_c11_noreturn=no 24636fi 24637rm -f "conftest.$ac_objext" "conftest.$ac_ext" 24638 24639fi 24640echo "$as_me:24640: result: $cf_cv_c11_noreturn" >&5 24641echo "${ECHO_T}$cf_cv_c11_noreturn" >&6 24642else 24643 cf_cv_c11_noreturn=no, 24644fi 24645 24646if test "$cf_cv_c11_noreturn" = yes; then 24647 24648cat >>confdefs.h <<\EOF 24649#define HAVE_STDNORETURN_H 1 24650EOF 24651 24652cat >>confdefs.h <<EOF 24653#define STDC_NORETURN _Noreturn 24654EOF 24655 24656 HAVE_STDNORETURN_H=1 24657else 24658 HAVE_STDNORETURN_H=0 24659fi 24660 24661if test "$GCC" = yes || test "$GXX" = yes 24662then 24663 24664if test "$GCC" = yes || test "$GXX" = yes 24665then 24666 case $CFLAGS in 24667 (*-Werror=*) 24668 cf_temp_flags= 24669 for cf_temp_scan in $CFLAGS 24670 do 24671 case "x$cf_temp_scan" in 24672 (x-Werror=format*) 24673 24674 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags " 24675 cf_temp_flags="${cf_temp_flags}$cf_temp_scan" 24676 24677 ;; 24678 (x-Werror=*) 24679 24680 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS " 24681 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan" 24682 24683 ;; 24684 (*) 24685 24686 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags " 24687 cf_temp_flags="${cf_temp_flags}$cf_temp_scan" 24688 24689 ;; 24690 esac 24691 done 24692 if test "x$CFLAGS" != "x$cf_temp_flags" 24693 then 24694 test -n "$verbose" && echo " repairing CFLAGS: $CFLAGS" 1>&6 24695 24696echo "${as_me:-configure}:24696: testing repairing CFLAGS: $CFLAGS ..." 1>&5 24697 24698 CFLAGS="$cf_temp_flags" 24699 test -n "$verbose" && echo " ... fixed $CFLAGS" 1>&6 24700 24701echo "${as_me:-configure}:24701: testing ... fixed $CFLAGS ..." 1>&5 24702 24703 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6 24704 24705echo "${as_me:-configure}:24705: testing ... extra $EXTRA_CFLAGS ..." 1>&5 24706 24707 fi 24708 ;; 24709 esac 24710fi 24711 24712if test "$GCC" = yes || test "$GXX" = yes 24713then 24714 case $CPPFLAGS in 24715 (*-Werror=*) 24716 cf_temp_flags= 24717 for cf_temp_scan in $CPPFLAGS 24718 do 24719 case "x$cf_temp_scan" in 24720 (x-Werror=format*) 24721 24722 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags " 24723 cf_temp_flags="${cf_temp_flags}$cf_temp_scan" 24724 24725 ;; 24726 (x-Werror=*) 24727 24728 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS " 24729 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan" 24730 24731 ;; 24732 (*) 24733 24734 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags " 24735 cf_temp_flags="${cf_temp_flags}$cf_temp_scan" 24736 24737 ;; 24738 esac 24739 done 24740 if test "x$CPPFLAGS" != "x$cf_temp_flags" 24741 then 24742 test -n "$verbose" && echo " repairing CPPFLAGS: $CPPFLAGS" 1>&6 24743 24744echo "${as_me:-configure}:24744: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5 24745 24746 CPPFLAGS="$cf_temp_flags" 24747 test -n "$verbose" && echo " ... fixed $CPPFLAGS" 1>&6 24748 24749echo "${as_me:-configure}:24749: testing ... fixed $CPPFLAGS ..." 1>&5 24750 24751 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6 24752 24753echo "${as_me:-configure}:24753: testing ... extra $EXTRA_CFLAGS ..." 1>&5 24754 24755 fi 24756 ;; 24757 esac 24758fi 24759 24760if test "$GCC" = yes || test "$GXX" = yes 24761then 24762 case $LDFLAGS in 24763 (*-Werror=*) 24764 cf_temp_flags= 24765 for cf_temp_scan in $LDFLAGS 24766 do 24767 case "x$cf_temp_scan" in 24768 (x-Werror=format*) 24769 24770 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags " 24771 cf_temp_flags="${cf_temp_flags}$cf_temp_scan" 24772 24773 ;; 24774 (x-Werror=*) 24775 24776 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS " 24777 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan" 24778 24779 ;; 24780 (*) 24781 24782 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags " 24783 cf_temp_flags="${cf_temp_flags}$cf_temp_scan" 24784 24785 ;; 24786 esac 24787 done 24788 if test "x$LDFLAGS" != "x$cf_temp_flags" 24789 then 24790 test -n "$verbose" && echo " repairing LDFLAGS: $LDFLAGS" 1>&6 24791 24792echo "${as_me:-configure}:24792: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5 24793 24794 LDFLAGS="$cf_temp_flags" 24795 test -n "$verbose" && echo " ... fixed $LDFLAGS" 1>&6 24796 24797echo "${as_me:-configure}:24797: testing ... fixed $LDFLAGS ..." 1>&5 24798 24799 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6 24800 24801echo "${as_me:-configure}:24801: testing ... extra $EXTRA_CFLAGS ..." 1>&5 24802 24803 fi 24804 ;; 24805 esac 24806fi 24807 24808echo "$as_me:24808: checking if you want to turn on gcc warnings" >&5 24809echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6 24810 24811# Check whether --enable-warnings or --disable-warnings was given. 24812if test "${enable_warnings+set}" = set; then 24813 enableval="$enable_warnings" 24814 test "$enableval" != yes && enableval=no 24815 if test "$enableval" != "no" ; then 24816 enable_warnings=yes 24817 else 24818 enable_warnings=no 24819 fi 24820else 24821 enableval=no 24822 enable_warnings=no 24823 24824fi; 24825echo "$as_me:24825: result: $enable_warnings" >&5 24826echo "${ECHO_T}$enable_warnings" >&6 24827if test "$enable_warnings" = "yes" 24828then 24829 24830if test "x$have_x" = xyes; then 24831 24832cf_save_LIBS_CF_CONST_X_STRING="$LIBS" 24833cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS" 24834cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS" 24835LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}" 24836for cf_X_CFLAGS in $X_CFLAGS 24837do 24838 case "x$cf_X_CFLAGS" in 24839 x-[IUD]*) 24840 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS" 24841 ;; 24842 *) 24843 CFLAGS="$CFLAGS $cf_X_CFLAGS" 24844 ;; 24845 esac 24846done 24847 24848cat >"conftest.$ac_ext" <<_ACEOF 24849#line 24849 "configure" 24850#include "confdefs.h" 24851 24852$ac_includes_default 24853#include <X11/Intrinsic.h> 24854 24855int 24856main (void) 24857{ 24858String foo = malloc(1); free((void*)foo) 24859 ; 24860 return 0; 24861} 24862_ACEOF 24863rm -f "conftest.$ac_objext" 24864if { (eval echo "$as_me:24864: \"$ac_compile\"") >&5 24865 (eval $ac_compile) 2>&5 24866 ac_status=$? 24867 echo "$as_me:24867: \$? = $ac_status" >&5 24868 (exit "$ac_status"); } && 24869 { ac_try='test -s "conftest.$ac_objext"' 24870 { (eval echo "$as_me:24870: \"$ac_try\"") >&5 24871 (eval $ac_try) 2>&5 24872 ac_status=$? 24873 echo "$as_me:24873: \$? = $ac_status" >&5 24874 (exit "$ac_status"); }; }; then 24875 24876echo "$as_me:24876: checking for X11/Xt const-feature" >&5 24877echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6 24878if test "${cf_cv_const_x_string+set}" = set; then 24879 echo $ECHO_N "(cached) $ECHO_C" >&6 24880else 24881 24882 cat >"conftest.$ac_ext" <<_ACEOF 24883#line 24883 "configure" 24884#include "confdefs.h" 24885 24886#undef _CONST_X_STRING 24887#define _CONST_X_STRING /* X11R7.8 (perhaps) */ 24888#undef XTSTRINGDEFINES /* X11R5 and later */ 24889$ac_includes_default 24890#include <X11/Intrinsic.h> 24891 24892int 24893main (void) 24894{ 24895String foo = malloc(1); *foo = 0 24896 ; 24897 return 0; 24898} 24899_ACEOF 24900rm -f "conftest.$ac_objext" 24901if { (eval echo "$as_me:24901: \"$ac_compile\"") >&5 24902 (eval $ac_compile) 2>&5 24903 ac_status=$? 24904 echo "$as_me:24904: \$? = $ac_status" >&5 24905 (exit "$ac_status"); } && 24906 { ac_try='test -s "conftest.$ac_objext"' 24907 { (eval echo "$as_me:24907: \"$ac_try\"") >&5 24908 (eval $ac_try) 2>&5 24909 ac_status=$? 24910 echo "$as_me:24910: \$? = $ac_status" >&5 24911 (exit "$ac_status"); }; }; then 24912 24913 cf_cv_const_x_string=no 24914 24915else 24916 echo "$as_me: failed program was:" >&5 24917cat "conftest.$ac_ext" >&5 24918 24919 cf_cv_const_x_string=yes 24920 24921fi 24922rm -f "conftest.$ac_objext" "conftest.$ac_ext" 24923 24924fi 24925echo "$as_me:24925: result: $cf_cv_const_x_string" >&5 24926echo "${ECHO_T}$cf_cv_const_x_string" >&6 24927 24928LIBS="$cf_save_LIBS_CF_CONST_X_STRING" 24929CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING" 24930CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING" 24931 24932case "$cf_cv_const_x_string" in 24933(no) 24934 24935 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 24936 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES" 24937 24938 ;; 24939(*) 24940 24941 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 24942 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING" 24943 24944 ;; 24945esac 24946 24947else 24948 echo "$as_me: failed program was:" >&5 24949cat "conftest.$ac_ext" >&5 24950fi 24951rm -f "conftest.$ac_objext" "conftest.$ac_ext" 24952 fi 24953cat > "conftest.$ac_ext" <<EOF 24954#line 24954 "${as_me:-configure}" 24955int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; } 24956EOF 24957if test "$INTEL_COMPILER" = yes 24958then 24959# The "-wdXXX" options suppress warnings: 24960# remark #1419: external declaration in primary source file 24961# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem) 24962# remark #1684: conversion from pointer to same-sized integral type (potential portability problem) 24963# remark #193: zero used for undefined preprocessing identifier 24964# remark #593: variable "curs_sb_left_arrow" was set but never used 24965# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits 24966# remark #869: parameter "tw" was never referenced 24967# remark #981: operands are evaluated in unspecified order 24968# warning #279: controlling expression is constant 24969 24970 { echo "$as_me:24970: checking for $CC warning options..." >&5 24971echo "$as_me: checking for $CC warning options..." >&6;} 24972 cf_save_CFLAGS="$CFLAGS" 24973 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall" 24974 for cf_opt in \ 24975 wd1419 \ 24976 wd1683 \ 24977 wd1684 \ 24978 wd193 \ 24979 wd593 \ 24980 wd279 \ 24981 wd810 \ 24982 wd869 \ 24983 wd981 24984 do 24985 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 24986 if { (eval echo "$as_me:24986: \"$ac_compile\"") >&5 24987 (eval $ac_compile) 2>&5 24988 ac_status=$? 24989 echo "$as_me:24989: \$? = $ac_status" >&5 24990 (exit "$ac_status"); }; then 24991 test -n "$verbose" && echo "$as_me:24991: result: ... -$cf_opt" >&5 24992echo "${ECHO_T}... -$cf_opt" >&6 24993 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 24994 fi 24995 done 24996 CFLAGS="$cf_save_CFLAGS" 24997elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown" 24998then 24999 { echo "$as_me:24999: checking for $CC warning options..." >&5 25000echo "$as_me: checking for $CC warning options..." >&6;} 25001 cf_save_CFLAGS="$CFLAGS" 25002 cf_warn_CONST="" 25003 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings" 25004 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs" 25005 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings= 25006 for cf_opt in W Wall \ 25007 Wbad-function-cast \ 25008 Wcast-align \ 25009 Wcast-qual \ 25010 Wdeclaration-after-statement \ 25011 Wextra \ 25012 Winline \ 25013 Wmissing-declarations \ 25014 Wmissing-prototypes \ 25015 Wnested-externs \ 25016 Wpointer-arith \ 25017 Wshadow \ 25018 Wstrict-prototypes \ 25019 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum Wno-cast-qual 25020 do 25021 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 25022 if { (eval echo "$as_me:25022: \"$ac_compile\"") >&5 25023 (eval $ac_compile) 2>&5 25024 ac_status=$? 25025 echo "$as_me:25025: \$? = $ac_status" >&5 25026 (exit "$ac_status"); }; then 25027 test -n "$verbose" && echo "$as_me:25027: result: ... -$cf_opt" >&5 25028echo "${ECHO_T}... -$cf_opt" >&6 25029 case "$cf_opt" in 25030 (Winline) 25031 case "$GCC_VERSION" in 25032 ([34].*) 25033 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 25034 25035echo "${as_me:-configure}:25035: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 25036 25037 continue;; 25038 esac 25039 ;; 25040 (Wpointer-arith) 25041 case "$GCC_VERSION" in 25042 ([12].*) 25043 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 25044 25045echo "${as_me:-configure}:25045: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 25046 25047 continue;; 25048 esac 25049 ;; 25050 esac 25051 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 25052 fi 25053 done 25054 CFLAGS="$cf_save_CFLAGS" 25055fi 25056rm -rf ./conftest* 25057 25058fi 25059 25060if test "$GCC" = yes || test "$GXX" = yes 25061then 25062cat > conftest.i <<EOF 25063#ifndef GCC_PRINTF 25064#define GCC_PRINTF 0 25065#endif 25066#ifndef GCC_SCANF 25067#define GCC_SCANF 0 25068#endif 25069#ifndef GCC_NORETURN 25070#define GCC_NORETURN /* nothing */ 25071#endif 25072#ifndef GCC_UNUSED 25073#define GCC_UNUSED /* nothing */ 25074#endif 25075EOF 25076if test "$GCC" = yes 25077then 25078 { echo "$as_me:25078: checking for $CC __attribute__ directives..." >&5 25079echo "$as_me: checking for $CC __attribute__ directives..." >&6;} 25080cat > "conftest.$ac_ext" <<EOF 25081#line 25081 "${as_me:-configure}" 25082#include <stdio.h> 25083#include "confdefs.h" 25084#include "conftest.h" 25085#include "conftest.i" 25086#if GCC_PRINTF 25087#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) 25088#else 25089#define GCC_PRINTFLIKE(fmt,var) /*nothing*/ 25090#endif 25091#if GCC_SCANF 25092#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) 25093#else 25094#define GCC_SCANFLIKE(fmt,var) /*nothing*/ 25095#endif 25096extern void wow(char *,...) GCC_SCANFLIKE(1,2); 25097extern GCC_NORETURN void oops(char *,...) GCC_PRINTFLIKE(1,2); 25098extern GCC_NORETURN void foo(void); 25099int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; } 25100EOF 25101 cf_printf_attribute=no 25102 cf_scanf_attribute=no 25103 for cf_attribute in scanf printf unused noreturn 25104 do 25105 25106cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 25107 25108 cf_directive="__attribute__(($cf_attribute))" 25109 echo "checking for $CC $cf_directive" 1>&5 25110 25111 case "$cf_attribute" in 25112 (printf) 25113 cf_printf_attribute=yes 25114 cat >conftest.h <<EOF 25115#define GCC_$cf_ATTRIBUTE 1 25116EOF 25117 ;; 25118 (scanf) 25119 cf_scanf_attribute=yes 25120 cat >conftest.h <<EOF 25121#define GCC_$cf_ATTRIBUTE 1 25122EOF 25123 ;; 25124 (*) 25125 cat >conftest.h <<EOF 25126#define GCC_$cf_ATTRIBUTE $cf_directive 25127EOF 25128 ;; 25129 esac 25130 25131 if { (eval echo "$as_me:25131: \"$ac_compile\"") >&5 25132 (eval $ac_compile) 2>&5 25133 ac_status=$? 25134 echo "$as_me:25134: \$? = $ac_status" >&5 25135 (exit "$ac_status"); }; then 25136 test -n "$verbose" && echo "$as_me:25136: result: ... $cf_attribute" >&5 25137echo "${ECHO_T}... $cf_attribute" >&6 25138 cat conftest.h >>confdefs.h 25139 case "$cf_attribute" in 25140 (noreturn) 25141 25142cat >>confdefs.h <<EOF 25143#define GCC_NORETURN $cf_directive 25144EOF 25145 25146 ;; 25147 (printf) 25148 cf_value='/* nothing */' 25149 if test "$cf_printf_attribute" != no ; then 25150 cf_value='__attribute__((format(printf,fmt,var)))' 25151 25152cat >>confdefs.h <<\EOF 25153#define GCC_PRINTF 1 25154EOF 25155 25156 fi 25157 25158cat >>confdefs.h <<EOF 25159#define GCC_PRINTFLIKE(fmt,var) $cf_value 25160EOF 25161 25162 ;; 25163 (scanf) 25164 cf_value='/* nothing */' 25165 if test "$cf_scanf_attribute" != no ; then 25166 cf_value='__attribute__((format(scanf,fmt,var)))' 25167 25168cat >>confdefs.h <<\EOF 25169#define GCC_SCANF 1 25170EOF 25171 25172 fi 25173 25174cat >>confdefs.h <<EOF 25175#define GCC_SCANFLIKE(fmt,var) $cf_value 25176EOF 25177 25178 ;; 25179 (unused) 25180 25181cat >>confdefs.h <<EOF 25182#define GCC_UNUSED $cf_directive 25183EOF 25184 25185 ;; 25186 esac 25187 fi 25188 done 25189else 25190 ${FGREP-fgrep} define conftest.i >>confdefs.h 25191fi 25192rm -rf ./conftest* 25193fi 25194 25195fi 25196 25197test "$disable_setuid" = yes && 25198cat >>confdefs.h <<\EOF 25199#define DISABLE_SETUID 1 25200EOF 25201 25202test "$disable_setgid" = yes && 25203cat >>confdefs.h <<\EOF 25204#define DISABLE_SETGID 1 25205EOF 25206 25207if test $disable_setuid = yes ; then 25208 MAY_SETUID="#" 25209 NOT_SETUID= 25210elif test $disable_setgid = yes ; then 25211 MAY_SETUID="#" 25212 NOT_SETUID= 25213else 25214 MAY_SETUID= 25215 NOT_SETUID="#" 25216fi 25217 25218### remove from CPPFLAGS the optional features we define in xtermcfg.h 25219### or other conflicting symbols that may be defined via imake: 25220for cf_def in \ 25221 __STDC__ \ 25222 ALLOWLOGGING \ 25223 ALLOWLOGFILEEXEC \ 25224 OPT_LUIT_PROG \ 25225 OPT_WIDE_CHARS \ 25226 SCROLLBAR_RIGHT \ 25227 USE_TTY_GROUP \ 25228 USE_UTEMPTER \ 25229 XRENDERFONT 25230do 25231 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-D$cf_def//` 25232done 25233 25234echo "$as_me:25234: checking if filesystem supports mixed-case filenames" >&5 25235echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6 25236if test "${cf_cv_mixedcase+set}" = set; then 25237 echo $ECHO_N "(cached) $ECHO_C" >&6 25238else 25239 25240if test "$cross_compiling" = yes ; then 25241 case "$target_alias" in 25242 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*) 25243 cf_cv_mixedcase=no 25244 ;; 25245 (*) 25246 cf_cv_mixedcase=yes 25247 ;; 25248 esac 25249else 25250 rm -f conftest CONFTEST 25251 echo test >conftest 25252 if test -f CONFTEST ; then 25253 cf_cv_mixedcase=no 25254 else 25255 cf_cv_mixedcase=yes 25256 fi 25257 rm -f conftest CONFTEST 25258fi 25259 25260fi 25261echo "$as_me:25261: result: $cf_cv_mixedcase" >&5 25262echo "${ECHO_T}$cf_cv_mixedcase" >&6 25263test "$cf_cv_mixedcase" = yes && 25264cat >>confdefs.h <<\EOF 25265#define MIXEDCASE_FILENAMES 1 25266EOF 25267 25268for ac_prog in exctags ctags 25269do 25270 # Extract the first word of "$ac_prog", so it can be a program name with args. 25271set dummy $ac_prog; ac_word=$2 25272echo "$as_me:25272: checking for $ac_word" >&5 25273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 25274if test "${ac_cv_prog_CTAGS+set}" = set; then 25275 echo $ECHO_N "(cached) $ECHO_C" >&6 25276else 25277 if test -n "$CTAGS"; then 25278 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test. 25279else 25280 ac_save_IFS=$IFS; IFS=$ac_path_separator 25281ac_dummy="$PATH" 25282for ac_dir in $ac_dummy; do 25283 IFS=$ac_save_IFS 25284 test -z "$ac_dir" && ac_dir=. 25285 $as_executable_p "$ac_dir/$ac_word" || continue 25286ac_cv_prog_CTAGS="$ac_prog" 25287echo "$as_me:25287: found $ac_dir/$ac_word" >&5 25288break 25289done 25290 25291fi 25292fi 25293CTAGS=$ac_cv_prog_CTAGS 25294if test -n "$CTAGS"; then 25295 echo "$as_me:25295: result: $CTAGS" >&5 25296echo "${ECHO_T}$CTAGS" >&6 25297else 25298 echo "$as_me:25298: result: no" >&5 25299echo "${ECHO_T}no" >&6 25300fi 25301 25302 test -n "$CTAGS" && break 25303done 25304 25305for ac_prog in exetags etags 25306do 25307 # Extract the first word of "$ac_prog", so it can be a program name with args. 25308set dummy $ac_prog; ac_word=$2 25309echo "$as_me:25309: checking for $ac_word" >&5 25310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 25311if test "${ac_cv_prog_ETAGS+set}" = set; then 25312 echo $ECHO_N "(cached) $ECHO_C" >&6 25313else 25314 if test -n "$ETAGS"; then 25315 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test. 25316else 25317 ac_save_IFS=$IFS; IFS=$ac_path_separator 25318ac_dummy="$PATH" 25319for ac_dir in $ac_dummy; do 25320 IFS=$ac_save_IFS 25321 test -z "$ac_dir" && ac_dir=. 25322 $as_executable_p "$ac_dir/$ac_word" || continue 25323ac_cv_prog_ETAGS="$ac_prog" 25324echo "$as_me:25324: found $ac_dir/$ac_word" >&5 25325break 25326done 25327 25328fi 25329fi 25330ETAGS=$ac_cv_prog_ETAGS 25331if test -n "$ETAGS"; then 25332 echo "$as_me:25332: result: $ETAGS" >&5 25333echo "${ECHO_T}$ETAGS" >&6 25334else 25335 echo "$as_me:25335: result: no" >&5 25336echo "${ECHO_T}no" >&6 25337fi 25338 25339 test -n "$ETAGS" && break 25340done 25341 25342# Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args. 25343set dummy ${CTAGS:-ctags}; ac_word=$2 25344echo "$as_me:25344: checking for $ac_word" >&5 25345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 25346if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then 25347 echo $ECHO_N "(cached) $ECHO_C" >&6 25348else 25349 if test -n "$MAKE_LOWER_TAGS"; then 25350 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test. 25351else 25352 ac_save_IFS=$IFS; IFS=$ac_path_separator 25353ac_dummy="$PATH" 25354for ac_dir in $ac_dummy; do 25355 IFS=$ac_save_IFS 25356 test -z "$ac_dir" && ac_dir=. 25357 $as_executable_p "$ac_dir/$ac_word" || continue 25358ac_cv_prog_MAKE_LOWER_TAGS="yes" 25359echo "$as_me:25359: found $ac_dir/$ac_word" >&5 25360break 25361done 25362 25363 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no" 25364fi 25365fi 25366MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS 25367if test -n "$MAKE_LOWER_TAGS"; then 25368 echo "$as_me:25368: result: $MAKE_LOWER_TAGS" >&5 25369echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6 25370else 25371 echo "$as_me:25371: result: no" >&5 25372echo "${ECHO_T}no" >&6 25373fi 25374 25375if test "$cf_cv_mixedcase" = yes ; then 25376 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args. 25377set dummy ${ETAGS:-etags}; ac_word=$2 25378echo "$as_me:25378: checking for $ac_word" >&5 25379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 25380if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then 25381 echo $ECHO_N "(cached) $ECHO_C" >&6 25382else 25383 if test -n "$MAKE_UPPER_TAGS"; then 25384 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test. 25385else 25386 ac_save_IFS=$IFS; IFS=$ac_path_separator 25387ac_dummy="$PATH" 25388for ac_dir in $ac_dummy; do 25389 IFS=$ac_save_IFS 25390 test -z "$ac_dir" && ac_dir=. 25391 $as_executable_p "$ac_dir/$ac_word" || continue 25392ac_cv_prog_MAKE_UPPER_TAGS="yes" 25393echo "$as_me:25393: found $ac_dir/$ac_word" >&5 25394break 25395done 25396 25397 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no" 25398fi 25399fi 25400MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS 25401if test -n "$MAKE_UPPER_TAGS"; then 25402 echo "$as_me:25402: result: $MAKE_UPPER_TAGS" >&5 25403echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6 25404else 25405 echo "$as_me:25405: result: no" >&5 25406echo "${ECHO_T}no" >&6 25407fi 25408 25409else 25410 MAKE_UPPER_TAGS=no 25411fi 25412 25413if test "$MAKE_UPPER_TAGS" = yes ; then 25414 MAKE_UPPER_TAGS= 25415else 25416 MAKE_UPPER_TAGS="#" 25417fi 25418 25419if test "$MAKE_LOWER_TAGS" = yes ; then 25420 MAKE_LOWER_TAGS= 25421else 25422 MAKE_LOWER_TAGS="#" 25423fi 25424 25425LD_RPATH_OPT= 25426if test "x$cf_cv_enable_rpath" != xno 25427then 25428 echo "$as_me:25428: checking for an rpath option" >&5 25429echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6 25430 case "$cf_cv_system_name" in 25431 (irix*) 25432 if test "$GCC" = yes; then 25433 LD_RPATH_OPT="-Wl,-rpath," 25434 else 25435 LD_RPATH_OPT="-rpath " 25436 fi 25437 ;; 25438 (linux*|gnu*|k*bsd*-gnu|freebsd*) 25439 LD_RPATH_OPT="-Wl,-rpath," 25440 ;; 25441 (openbsd[2-9].*|mirbsd*) 25442 LD_RPATH_OPT="-Wl,-rpath," 25443 ;; 25444 (dragonfly*) 25445 LD_RPATH_OPT="-rpath " 25446 ;; 25447 (netbsd*) 25448 LD_RPATH_OPT="-Wl,-rpath," 25449 ;; 25450 (osf*|mls+*) 25451 LD_RPATH_OPT="-rpath " 25452 ;; 25453 (solaris2*) 25454 LD_RPATH_OPT="-R" 25455 ;; 25456 (*) 25457 ;; 25458 esac 25459 echo "$as_me:25459: result: $LD_RPATH_OPT" >&5 25460echo "${ECHO_T}$LD_RPATH_OPT" >&6 25461 25462 case "x$LD_RPATH_OPT" in 25463 (x-R*) 25464 echo "$as_me:25464: checking if we need a space after rpath option" >&5 25465echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6 25466 cf_save_LIBS="$LIBS" 25467 25468cf_add_libs="$LIBS" 25469# reverse order 25470cf_add_0lib= 25471for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 25472# filter duplicates 25473for cf_add_1lib in $cf_add_0lib; do 25474 for cf_add_2lib in $cf_add_libs; do 25475 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 25476 cf_add_1lib= 25477 break 25478 fi 25479 done 25480 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 25481done 25482LIBS="$cf_add_libs" 25483 25484 cat >"conftest.$ac_ext" <<_ACEOF 25485#line 25485 "configure" 25486#include "confdefs.h" 25487 25488int 25489main (void) 25490{ 25491 25492 ; 25493 return 0; 25494} 25495_ACEOF 25496rm -f "conftest.$ac_objext" "conftest$ac_exeext" 25497if { (eval echo "$as_me:25497: \"$ac_link\"") >&5 25498 (eval $ac_link) 2>&5 25499 ac_status=$? 25500 echo "$as_me:25500: \$? = $ac_status" >&5 25501 (exit "$ac_status"); } && 25502 { ac_try='test -s "conftest$ac_exeext"' 25503 { (eval echo "$as_me:25503: \"$ac_try\"") >&5 25504 (eval $ac_try) 2>&5 25505 ac_status=$? 25506 echo "$as_me:25506: \$? = $ac_status" >&5 25507 (exit "$ac_status"); }; }; then 25508 cf_rpath_space=no 25509else 25510 echo "$as_me: failed program was:" >&5 25511cat "conftest.$ac_ext" >&5 25512cf_rpath_space=yes 25513fi 25514rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 25515 LIBS="$cf_save_LIBS" 25516 echo "$as_me:25516: result: $cf_rpath_space" >&5 25517echo "${ECHO_T}$cf_rpath_space" >&6 25518 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT " 25519 ;; 25520 esac 25521fi 25522 25523echo "$as_me:25523: checking if rpath-hack should be disabled" >&5 25524echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6 25525 25526# Check whether --enable-rpath-hack or --disable-rpath-hack was given. 25527if test "${enable_rpath_hack+set}" = set; then 25528 enableval="$enable_rpath_hack" 25529 test "$enableval" != no && enableval=yes 25530 if test "$enableval" != "yes" ; then 25531 enable_rpath_hack=no 25532 else 25533 enable_rpath_hack=yes 25534 fi 25535else 25536 enableval=yes 25537 enable_rpath_hack=yes 25538 25539fi; 25540if test "x$enable_rpath_hack" = xno; then cf_disable_rpath_hack=yes; else cf_disable_rpath_hack=no; fi 25541echo "$as_me:25541: result: $cf_disable_rpath_hack" >&5 25542echo "${ECHO_T}$cf_disable_rpath_hack" >&6 25543 25544if test "$enable_rpath_hack" = yes ; then 25545 25546echo "$as_me:25546: checking for updated LDFLAGS" >&5 25547echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6 25548if test -n "$LD_RPATH_OPT" ; then 25549 echo "$as_me:25549: result: maybe" >&5 25550echo "${ECHO_T}maybe" >&6 25551 25552 for ac_prog in ldd 25553do 25554 # Extract the first word of "$ac_prog", so it can be a program name with args. 25555set dummy $ac_prog; ac_word=$2 25556echo "$as_me:25556: checking for $ac_word" >&5 25557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 25558if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then 25559 echo $ECHO_N "(cached) $ECHO_C" >&6 25560else 25561 if test -n "$cf_ldd_prog"; then 25562 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test. 25563else 25564 ac_save_IFS=$IFS; IFS=$ac_path_separator 25565ac_dummy="$PATH" 25566for ac_dir in $ac_dummy; do 25567 IFS=$ac_save_IFS 25568 test -z "$ac_dir" && ac_dir=. 25569 $as_executable_p "$ac_dir/$ac_word" || continue 25570ac_cv_prog_cf_ldd_prog="$ac_prog" 25571echo "$as_me:25571: found $ac_dir/$ac_word" >&5 25572break 25573done 25574 25575fi 25576fi 25577cf_ldd_prog=$ac_cv_prog_cf_ldd_prog 25578if test -n "$cf_ldd_prog"; then 25579 echo "$as_me:25579: result: $cf_ldd_prog" >&5 25580echo "${ECHO_T}$cf_ldd_prog" >&6 25581else 25582 echo "$as_me:25582: result: no" >&5 25583echo "${ECHO_T}no" >&6 25584fi 25585 25586 test -n "$cf_ldd_prog" && break 25587done 25588test -n "$cf_ldd_prog" || cf_ldd_prog="no" 25589 25590 cf_rpath_list="/usr/lib /lib" 25591 if test "$cf_ldd_prog" != no 25592 then 25593 cf_rpath_oops= 25594 25595cat >"conftest.$ac_ext" <<_ACEOF 25596#line 25596 "configure" 25597#include "confdefs.h" 25598#include <stdio.h> 25599int 25600main (void) 25601{ 25602printf("Hello"); 25603 ; 25604 return 0; 25605} 25606_ACEOF 25607rm -f "conftest.$ac_objext" "conftest$ac_exeext" 25608if { (eval echo "$as_me:25608: \"$ac_link\"") >&5 25609 (eval $ac_link) 2>&5 25610 ac_status=$? 25611 echo "$as_me:25611: \$? = $ac_status" >&5 25612 (exit "$ac_status"); } && 25613 { ac_try='test -s "conftest$ac_exeext"' 25614 { (eval echo "$as_me:25614: \"$ac_try\"") >&5 25615 (eval $ac_try) 2>&5 25616 ac_status=$? 25617 echo "$as_me:25617: \$? = $ac_status" >&5 25618 (exit "$ac_status"); }; }; then 25619 cf_rpath_oops=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} ' not found' | sed -e 's% =>.*$%%' |sort | uniq` 25620 cf_rpath_list=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq` 25621else 25622 echo "$as_me: failed program was:" >&5 25623cat "conftest.$ac_ext" >&5 25624fi 25625rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 25626 25627 # If we passed the link-test, but get a "not found" on a given library, 25628 # this could be due to inept reconfiguration of gcc to make it only 25629 # partly honor /usr/local/lib (or whatever). Sometimes this behavior 25630 # is intentional, e.g., installing gcc in /usr/bin and suppressing the 25631 # /usr/local libraries. 25632 if test -n "$cf_rpath_oops" 25633 then 25634 for cf_rpath_src in $cf_rpath_oops 25635 do 25636 for cf_rpath_dir in \ 25637 /usr/local \ 25638 /usr/pkg \ 25639 /opt/sfw 25640 do 25641 if test -f "$cf_rpath_dir/lib/$cf_rpath_src" 25642 then 25643 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6 25644 25645echo "${as_me:-configure}:25645: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5 25646 25647 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib" 25648 break 25649 fi 25650 done 25651 done 25652 fi 25653 fi 25654 25655 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6 25656 25657echo "${as_me:-configure}:25657: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5 25658 25659test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6 25660 25661echo "${as_me:-configure}:25661: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5 25662 25663cf_rpath_dst= 25664for cf_rpath_src in $LDFLAGS 25665do 25666 case "$cf_rpath_src" in 25667 (-L*) 25668 25669 # check if this refers to a directory which we will ignore 25670 cf_rpath_skip=no 25671 if test -n "$cf_rpath_list" 25672 then 25673 for cf_rpath_item in $cf_rpath_list 25674 do 25675 if test "x$cf_rpath_src" = "x-L$cf_rpath_item" 25676 then 25677 cf_rpath_skip=yes 25678 break 25679 fi 25680 done 25681 fi 25682 25683 if test "$cf_rpath_skip" = no 25684 then 25685 # transform the option 25686 if test "$LD_RPATH_OPT" = "-R " ; then 25687 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"` 25688 else 25689 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"` 25690 fi 25691 25692 # if we have not already added this, add it now 25693 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"` 25694 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS" 25695 then 25696 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6 25697 25698echo "${as_me:-configure}:25698: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5 25699 25700 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS" 25701 fi 25702 fi 25703 ;; 25704 esac 25705 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src" 25706done 25707LDFLAGS=$cf_rpath_dst 25708 25709test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6 25710 25711echo "${as_me:-configure}:25711: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5 25712 25713test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6 25714 25715echo "${as_me:-configure}:25715: testing ...checking LIBS $LIBS ..." 1>&5 25716 25717cf_rpath_dst= 25718for cf_rpath_src in $LIBS 25719do 25720 case "$cf_rpath_src" in 25721 (-L*) 25722 25723 # check if this refers to a directory which we will ignore 25724 cf_rpath_skip=no 25725 if test -n "$cf_rpath_list" 25726 then 25727 for cf_rpath_item in $cf_rpath_list 25728 do 25729 if test "x$cf_rpath_src" = "x-L$cf_rpath_item" 25730 then 25731 cf_rpath_skip=yes 25732 break 25733 fi 25734 done 25735 fi 25736 25737 if test "$cf_rpath_skip" = no 25738 then 25739 # transform the option 25740 if test "$LD_RPATH_OPT" = "-R " ; then 25741 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"` 25742 else 25743 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"` 25744 fi 25745 25746 # if we have not already added this, add it now 25747 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"` 25748 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS" 25749 then 25750 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6 25751 25752echo "${as_me:-configure}:25752: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5 25753 25754 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS" 25755 fi 25756 fi 25757 ;; 25758 esac 25759 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src" 25760done 25761LIBS=$cf_rpath_dst 25762 25763test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6 25764 25765echo "${as_me:-configure}:25765: testing ...checked LIBS $LIBS ..." 1>&5 25766 25767 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6 25768 25769echo "${as_me:-configure}:25769: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5 25770 25771else 25772 echo "$as_me:25772: result: no" >&5 25773echo "${ECHO_T}no" >&6 25774fi 25775 25776fi 25777 25778# Force plink.sh to not trim pcre's libraries, which have the same symbol 25779# names as the system regexp. 25780if test "$with_pcre" != no 25781then 25782 LIBS=`echo "$LIBS" | sed -e 's/-lpcre/-kpcre/g'` 25783fi 25784 25785### output xtermcfg.h, etc 25786ac_config_files="$ac_config_files Makefile df-install minstall:minstall.in run-tic.sh:run-tic.in" 25787 25788cat >confcache <<\_ACEOF 25789# This file is a shell script that caches the results of configure 25790# tests run on this system so they can be shared between configure 25791# scripts and configure runs, see configure's option --config-cache. 25792# It is not useful on other systems. If it contains results you don't 25793# want to keep, you may remove or edit it. 25794# 25795# config.status only pays attention to the cache file if you give it 25796# the --recheck option to rerun configure. 25797# 25798# `ac_cv_env_foo' variables (set or unset) will be overridden when 25799# loading this file, other *unset* `ac_cv_foo' will be assigned the 25800# following values. 25801 25802_ACEOF 25803 25804# The following way of writing the cache mishandles newlines in values, 25805# but we know of no workaround that is simple, portable, and efficient. 25806# So, don't put newlines in cache variables' values. 25807# Ultrix sh set writes to stderr and can't be redirected directly, 25808# and sets the high bit in the cache file unless we assign to the vars. 25809{ 25810 (set) 2>&1 | 25811 case `(ac_space=' '; set | grep ac_space) 2>&1` in 25812 *ac_space=\ *) 25813 # `set' does not quote correctly, so add quotes (double-quote 25814 # substitution turns \\\\ into \\, and sed turns \\ into \). 25815 sed -n \ 25816 "s/'/'\\\\''/g; 25817 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 25818 ;; 25819 *) 25820 # `set' quotes correctly as required by POSIX, so do not add quotes. 25821 sed -n \ 25822 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 25823 ;; 25824 esac; 25825} | 25826 sed ' 25827 t clear 25828 : clear 25829 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 25830 t end 25831 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 25832 : end' >>confcache 25833if cmp -s $cache_file confcache; then :; else 25834 if test -w $cache_file; then 25835 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 25836 cat confcache >$cache_file 25837 else 25838 echo "not updating unwritable cache $cache_file" 25839 fi 25840fi 25841rm -f confcache 25842 25843test "x$prefix" = xNONE && prefix=$ac_default_prefix 25844# Let make expand exec_prefix. 25845test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 25846 25847# VPATH may cause trouble with some makes, so we remove $(srcdir), 25848# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 25849# trailing colons and then remove the whole line if VPATH becomes empty 25850# (actually we leave an empty line to preserve line numbers). 25851if test "x$srcdir" = x.; then 25852 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 25853s/:*\$(srcdir):*/:/; 25854s/:*\${srcdir}:*/:/; 25855s/:*@srcdir@:*/:/; 25856s/^\([^=]*=[ ]*\):*/\1/; 25857s/:*$//; 25858s/^[^=]*=[ ]*$//; 25859}' 25860fi 25861 25862DEFS=-DHAVE_CONFIG_H 25863 25864: "${CONFIG_STATUS=./config.status}" 25865ac_clean_files_save=$ac_clean_files 25866ac_clean_files="$ac_clean_files $CONFIG_STATUS" 25867{ echo "$as_me:25867: creating $CONFIG_STATUS" >&5 25868echo "$as_me: creating $CONFIG_STATUS" >&6;} 25869cat >"$CONFIG_STATUS" <<_ACEOF 25870#! $SHELL 25871# Generated automatically by configure. 25872# Run this file to recreate the current configuration. 25873# Compiler output produced by configure, useful for debugging 25874# configure, is in config.log if it exists. 25875 25876me=\`echo "\$0" | sed -e 's,.*\\/,,'\` 25877 25878debug=false 25879SHELL=\${CONFIG_SHELL-$SHELL} 25880ac_cs_invocation="\$0 \$@" 25881 25882CLICOLOR_FORCE= GREP_OPTIONS= 25883unset CLICOLOR_FORCE GREP_OPTIONS 25884_ACEOF 25885 25886cat >>"$CONFIG_STATUS" <<\_ACEOF 25887# Be Bourne compatible 25888if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 25889 emulate sh 25890 NULLCMD=: 25891elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 25892 set -o posix 25893fi 25894 25895# Name of the executable. 25896as_me=`echo "$0" |sed 's,.*[\\/],,'` 25897 25898if expr a : '\(a\)' >/dev/null 2>&1; then 25899 as_expr="expr" 25900else 25901 as_expr="false" 25902fi 25903 25904rm -f conf$$ conf$$.exe conf$$.file 25905echo >conf$$.file 25906if ln -s conf$$.file conf$$ 2>/dev/null; then 25907 # We could just check for DJGPP; but this test a) works b) is more generic 25908 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 25909 if test -f conf$$.exe; then 25910 # Don't use ln at all; we don't have any links 25911 as_ln_s='cp -p' 25912 else 25913 as_ln_s='ln -s' 25914 fi 25915elif ln conf$$.file conf$$ 2>/dev/null; then 25916 as_ln_s='ln' 25917else 25918 as_ln_s='cp -p' 25919fi 25920rm -f conf$$ conf$$.exe conf$$.file 25921 25922as_executable_p="test -f" 25923 25924# Support unset when possible. 25925if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 25926 as_unset="unset" 25927else 25928 as_unset="false" 25929fi 25930 25931# NLS nuisances. 25932$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 25933$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 25934$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 25935$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 25936$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 25937$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 25938$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 25939$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 25940 25941# IFS 25942# We need space, tab and new line, in precisely that order. 25943as_nl=' 25944' 25945IFS=" $as_nl" 25946 25947# CDPATH. 25948$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 25949 25950exec 6>&1 25951 25952_ACEOF 25953 25954# Files that config.status was made for. 25955if test -n "$ac_config_files"; then 25956 echo "config_files=\"$ac_config_files\"" >>"$CONFIG_STATUS" 25957fi 25958 25959if test -n "$ac_config_headers"; then 25960 echo "config_headers=\"$ac_config_headers\"" >>"$CONFIG_STATUS" 25961fi 25962 25963if test -n "$ac_config_links"; then 25964 echo "config_links=\"$ac_config_links\"" >>"$CONFIG_STATUS" 25965fi 25966 25967if test -n "$ac_config_commands"; then 25968 echo "config_commands=\"$ac_config_commands\"" >>"$CONFIG_STATUS" 25969fi 25970 25971cat >>"$CONFIG_STATUS" <<\EOF 25972 25973ac_cs_usage="\ 25974\`$as_me' instantiates files from templates according to the 25975current configuration. 25976 25977Usage: $0 [OPTIONS] [FILE]... 25978 25979 -h, --help print this help, then exit 25980 -V, --version print version number, then exit 25981 -d, --debug don't remove temporary files 25982 --recheck update $as_me by reconfiguring in the same conditions 25983 --file=FILE[:TEMPLATE] 25984 instantiate the configuration file FILE 25985 --header=FILE[:TEMPLATE] 25986 instantiate the configuration header FILE 25987 25988Configuration files: 25989$config_files 25990 25991Configuration headers: 25992$config_headers 25993 25994Report bugs to <dickey@invisible-island.net>." 25995EOF 25996 25997cat >>"$CONFIG_STATUS" <<EOF 25998ac_cs_version="\\ 25999config.status 26000configured by $0, generated by GNU Autoconf 2.52.20240618, 26001 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 26002 26003Copyright 2003-2022,2023 Thomas E. Dickey 26004Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 26005Free Software Foundation, Inc. 26006This config.status script is free software; the Free Software Foundation 26007gives unlimited permission to copy, distribute and modify it." 26008srcdir="$srcdir" 26009INSTALL="$INSTALL" 26010EOF 26011 26012cat >>"$CONFIG_STATUS" <<\EOF 26013# If no file are specified by the user, then we need to provide default 26014# value. By we need to know if files were specified by the user. 26015ac_need_defaults=: 26016while test $# != 0 26017do 26018 case $1 in 26019 --*=*) 26020 ac_option=`expr "x$1" : 'x\([^=]*\)='` 26021 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 26022 shift 26023 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 26024 shift 26025 ;; 26026 -*);; 26027 *) # This is not an option, so the user has probably given explicit 26028 # arguments. 26029 ac_need_defaults=false;; 26030 esac 26031 26032 case $1 in 26033 # Handling of the options. 26034EOF 26035cat >>"$CONFIG_STATUS" <<EOF 26036 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 26037 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 26038 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 26039EOF 26040cat >>"$CONFIG_STATUS" <<\EOF 26041 --version | --vers* | -V ) 26042 echo "$ac_cs_version"; exit 0 ;; 26043 --he | --h) 26044 # Conflict between --help and --header 26045 { { echo "$as_me:26045: error: ambiguous option: $1 26046Try \`$0 --help' for more information." >&5 26047echo "$as_me: error: ambiguous option: $1 26048Try \`$0 --help' for more information." >&2;} 26049 { (exit 1); exit 1; }; };; 26050 --help | --hel | -h ) 26051 echo "$ac_cs_usage"; exit 0 ;; 26052 --debug | --d* | -d ) 26053 debug=: ;; 26054 --file | --fil | --fi | --f ) 26055 shift 26056 CONFIG_FILES="$CONFIG_FILES $1" 26057 ac_need_defaults=false;; 26058 --header | --heade | --head | --hea ) 26059 shift 26060 CONFIG_HEADERS="$CONFIG_HEADERS $1" 26061 ac_need_defaults=false;; 26062 26063 # This is an error. 26064 -*) { { echo "$as_me:26064: error: unrecognized option: $1 26065Try \`$0 --help' for more information." >&5 26066echo "$as_me: error: unrecognized option: $1 26067Try \`$0 --help' for more information." >&2;} 26068 { (exit 1); exit 1; }; } ;; 26069 26070 *) ac_config_targets="$ac_config_targets $1" ;; 26071 26072 esac 26073 shift 26074done 26075 26076exec 5>>config.log 26077cat >&5 << _ACEOF 26078 26079## ----------------------- ## 26080## Running config.status. ## 26081## ----------------------- ## 26082 26083This file was extended by $as_me 2.52.20240618, executed with 26084 CONFIG_FILES = $CONFIG_FILES 26085 CONFIG_HEADERS = $CONFIG_HEADERS 26086 CONFIG_LINKS = $CONFIG_LINKS 26087 CONFIG_COMMANDS = $CONFIG_COMMANDS 26088 > "$ac_cs_invocation" 26089on `(hostname || uname -n) 2>/dev/null | sed 1q` 26090 26091_ACEOF 26092EOF 26093 26094cat >>"$CONFIG_STATUS" <<\EOF 26095for ac_config_target in $ac_config_targets 26096do 26097 case "$ac_config_target" in 26098 # Handling of arguments. 26099 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 26100 "df-install" ) CONFIG_FILES="$CONFIG_FILES df-install" ;; 26101 "minstall" ) CONFIG_FILES="$CONFIG_FILES minstall:minstall.in" ;; 26102 "run-tic.sh" ) CONFIG_FILES="$CONFIG_FILES run-tic.sh:run-tic.in" ;; 26103 "xtermcfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS xtermcfg.h:xtermcfg.hin" ;; 26104 *) { { echo "$as_me:26104: error: invalid argument: $ac_config_target" >&5 26105echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 26106 { (exit 1); exit 1; }; };; 26107 esac 26108done 26109 26110# If the user did not use the arguments to specify the items to instantiate, 26111# then the envvar interface is used. Set only those that are not. 26112# We use the long form for the default assignment because of an extremely 26113# bizarre bug on SunOS 4.1.3. 26114if "$ac_need_defaults"; then 26115 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 26116 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 26117fi 26118 26119# Create a temporary directory, and hook for its removal unless debugging. 26120$debug || 26121{ 26122 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 26123 trap '{ (exit 1); exit 1; }' 1 2 13 15 26124} 26125 26126# Create a (secure) tmp directory for tmp files. 26127: "${TMPDIR=/tmp}" 26128{ 26129 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 26130 test -n "$tmp" && test -d "$tmp" 26131} || 26132{ 26133 tmp=$TMPDIR/cs$$-$RANDOM 26134 (umask 077 && mkdir "$tmp") 26135} || 26136{ 26137 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 26138 { (exit 1); exit 1; } 26139} 26140 26141EOF 26142 26143cat >>"$CONFIG_STATUS" <<EOF 26144 26145# 26146# CONFIG_FILES section. 26147# 26148 26149# No need to generate the scripts if there are no CONFIG_FILES. 26150# This happens for instance when ./config.status config.h 26151if test -n "\$CONFIG_FILES"; then 26152 # Protect against being on the right side of a sed subst in config.status. 26153 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 26154 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >"\$tmp"/subs.sed <<\\CEOF 26155s,@SHELL@,$SHELL,;t t 26156s,@exec_prefix@,$exec_prefix,;t t 26157s,@prefix@,$prefix,;t t 26158s,@program_transform_name@,$program_transform_name,;t t 26159s,@bindir@,$bindir,;t t 26160s,@sbindir@,$sbindir,;t t 26161s,@libexecdir@,$libexecdir,;t t 26162s,@datarootdir@,$datarootdir,;t t 26163s,@datadir@,$datadir,;t t 26164s,@sysconfdir@,$sysconfdir,;t t 26165s,@sharedstatedir@,$sharedstatedir,;t t 26166s,@localstatedir@,$localstatedir,;t t 26167s,@runstatedir@,$runstatedir,;t t 26168s,@libdir@,$libdir,;t t 26169s,@includedir@,$includedir,;t t 26170s,@oldincludedir@,$oldincludedir,;t t 26171s,@infodir@,$infodir,;t t 26172s,@mandir@,$mandir,;t t 26173s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 26174s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 26175s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 26176s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 26177s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 26178s,@build_alias@,$build_alias,;t t 26179s,@host_alias@,$host_alias,;t t 26180s,@target_alias@,$target_alias,;t t 26181s,@ECHO_C@,$ECHO_C,;t t 26182s,@ECHO_N@,$ECHO_N,;t t 26183s,@ECHO_T@,$ECHO_T,;t t 26184s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 26185s,@DEFS@,$DEFS,;t t 26186s,@LIBS@,$LIBS,;t t 26187s,@build@,$build,;t t 26188s,@build_cpu@,$build_cpu,;t t 26189s,@build_vendor@,$build_vendor,;t t 26190s,@build_os@,$build_os,;t t 26191s,@host@,$host,;t t 26192s,@host_cpu@,$host_cpu,;t t 26193s,@host_vendor@,$host_vendor,;t t 26194s,@host_os@,$host_os,;t t 26195s,@CC@,$CC,;t t 26196s,@CFLAGS@,$CFLAGS,;t t 26197s,@LDFLAGS@,$LDFLAGS,;t t 26198s,@CPPFLAGS@,$CPPFLAGS,;t t 26199s,@ac_ct_CC@,$ac_ct_CC,;t t 26200s,@EXEEXT@,$EXEEXT,;t t 26201s,@OBJEXT@,$OBJEXT,;t t 26202s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t 26203s,@CPP@,$CPP,;t t 26204s,@GREP@,$GREP,;t t 26205s,@EGREP@,$EGREP,;t t 26206s,@AWK@,$AWK,;t t 26207s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 26208s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 26209s,@INSTALL_DATA@,$INSTALL_DATA,;t t 26210s,@LN_S@,$LN_S,;t t 26211s,@LINT@,$LINT,;t t 26212s,@LINT_OPTS@,$LINT_OPTS,;t t 26213s,@LINT_LIBS@,$LINT_LIBS,;t t 26214s,@APP_CLASS@,$APP_CLASS,;t t 26215s,@target@,$target,;t t 26216s,@target_cpu@,$target_cpu,;t t 26217s,@target_vendor@,$target_vendor,;t t 26218s,@target_os@,$target_os,;t t 26219s,@GLOB_FULLPATH_POSIX@,$GLOB_FULLPATH_POSIX,;t t 26220s,@GLOB_FULLPATH_OTHER@,$GLOB_FULLPATH_OTHER,;t t 26221s,@APPSDIR@,$APPSDIR,;t t 26222s,@no_appsdir@,$no_appsdir,;t t 26223s,@ICON_NAME@,$ICON_NAME,;t t 26224s,@ICON_SYMLINK@,$ICON_SYMLINK,;t t 26225s,@PIXMAPDIR@,$PIXMAPDIR,;t t 26226s,@no_pixmapdir@,$no_pixmapdir,;t t 26227s,@ICONDIR@,$ICONDIR,;t t 26228s,@no_icondir@,$no_icondir,;t t 26229s,@ICON_FORMAT@,$ICON_FORMAT,;t t 26230s,@ICON_THEME@,$ICON_THEME,;t t 26231s,@ICON_LIST@,$ICON_LIST,;t t 26232s,@desktop_utils@,$desktop_utils,;t t 26233s,@DESKTOP_FLAGS@,$DESKTOP_FLAGS,;t t 26234s,@DESKTOP_CATEGORY@,$DESKTOP_CATEGORY,;t t 26235s,@XTERM_PATH@,$XTERM_PATH,;t t 26236s,@XTERM_SYMLINK@,$XTERM_SYMLINK,;t t 26237s,@SINSTALL_OPTS@,$SINSTALL_OPTS,;t t 26238s,@UTMP_NAME@,$UTMP_NAME,;t t 26239s,@UTMP_PATH@,$UTMP_PATH,;t t 26240s,@WTMP_NAME@,$WTMP_NAME,;t t 26241s,@WTMP_PATH@,$WTMP_PATH,;t t 26242s,@X_CFLAGS@,$X_CFLAGS,;t t 26243s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 26244s,@X_LIBS@,$X_LIBS,;t t 26245s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 26246s,@PKG_CONFIG@,$PKG_CONFIG,;t t 26247s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t 26248s,@ICON_SUFFIX@,$ICON_SUFFIX,;t t 26249s,@IMAKE@,$IMAKE,;t t 26250s,@IMAKE_CFLAGS@,$IMAKE_CFLAGS,;t t 26251s,@IMAKE_LOADFLAGS@,$IMAKE_LOADFLAGS,;t t 26252s,@GROFF_PATH@,$GROFF_PATH,;t t 26253s,@NROFF_PATH@,$NROFF_PATH,;t t 26254s,@TBL_PATH@,$TBL_PATH,;t t 26255s,@GROFF_NOTE@,$GROFF_NOTE,;t t 26256s,@NROFF_NOTE@,$NROFF_NOTE,;t t 26257s,@FGREP@,$FGREP,;t t 26258s,@cf_man2html@,$cf_man2html,;t t 26259s,@MAN2HTML_NOTE@,$MAN2HTML_NOTE,;t t 26260s,@MAN2HTML_PATH@,$MAN2HTML_PATH,;t t 26261s,@MAN2HTML_TEMP@,$MAN2HTML_TEMP,;t t 26262s,@default_termid@,$default_termid,;t t 26263s,@default_TERM@,$default_TERM,;t t 26264s,@backarrow_is_bs@,$backarrow_is_bs,;t t 26265s,@backarrow_is_erase@,$backarrow_is_erase,;t t 26266s,@delete_is_del@,$delete_is_del,;t t 26267s,@initial_erase@,$initial_erase,;t t 26268s,@alt_sends_esc@,$alt_sends_esc,;t t 26269s,@meta_sends_esc@,$meta_sends_esc,;t t 26270s,@cf_tic_prog@,$cf_tic_prog,;t t 26271s,@no_ticprog@,$no_ticprog,;t t 26272s,@TERMINFO_DIR@,$TERMINFO_DIR,;t t 26273s,@SET_TERMINFO@,$SET_TERMINFO,;t t 26274s,@double_buffer@,$double_buffer,;t t 26275s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t 26276s,@FREETYPE_OLD_CONFIG@,$FREETYPE_OLD_CONFIG,;t t 26277s,@FREETYPE_XFT_CONFIG@,$FREETYPE_XFT_CONFIG,;t t 26278s,@HAVE_TYPE_FCCHAR32@,$HAVE_TYPE_FCCHAR32,;t t 26279s,@HAVE_TYPE_XFTCHARSPEC@,$HAVE_TYPE_XFTCHARSPEC,;t t 26280s,@LUIT@,$LUIT,;t t 26281s,@STRINGS_MAX@,$STRINGS_MAX,;t t 26282s,@ECHO_LT@,$ECHO_LT,;t t 26283s,@ECHO_LD@,$ECHO_LD,;t t 26284s,@RULE_CC@,$RULE_CC,;t t 26285s,@SHOW_CC@,$SHOW_CC,;t t 26286s,@ECHO_CC@,$ECHO_CC,;t t 26287s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t 26288s,@HAVE_STDNORETURN_H@,$HAVE_STDNORETURN_H,;t t 26289s,@STDC_NORETURN@,$STDC_NORETURN,;t t 26290s,@CHARPROC_DEPS@,$CHARPROC_DEPS,;t t 26291s,@EXTRAHDRS@,$EXTRAHDRS,;t t 26292s,@EXTRASRCS@,$EXTRASRCS,;t t 26293s,@EXTRAOBJS@,$EXTRAOBJS,;t t 26294s,@MAY_SETUID@,$MAY_SETUID,;t t 26295s,@NOT_SETUID@,$NOT_SETUID,;t t 26296s,@CTAGS@,$CTAGS,;t t 26297s,@ETAGS@,$ETAGS,;t t 26298s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t 26299s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t 26300s,@cf_ldd_prog@,$cf_ldd_prog,;t t 26301s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t 26302CEOF 26303 26304EOF 26305 26306 cat >>"$CONFIG_STATUS" <<\EOF 26307 # Split the substitutions into bite-sized pieces for seds with 26308 # small command number limits, like on Digital OSF/1 and HP-UX. 26309 ac_max_sed_lines=48 26310 ac_sed_frag=1 # Number of current file. 26311 ac_beg=1 # First line for current file. 26312 ac_end=$ac_max_sed_lines # Line after last line for current file. 26313 ac_more_lines=: 26314 ac_sed_cmds= 26315 while "$ac_more_lines"; do 26316 if test "$ac_beg" -gt 1; then 26317 sed "1,${ac_beg}d; ${ac_end}q" "$tmp"/subs.sed >"$tmp"/subs.frag 26318 else 26319 sed "${ac_end}q" "$tmp"/subs.sed >"$tmp"/subs.frag 26320 fi 26321 if test ! -s "$tmp"/subs.frag; then 26322 ac_more_lines=false 26323 else 26324 # The purpose of the label and of the branching condition is to 26325 # speed up the sed processing (if there are no `@' at all, there 26326 # is no need to browse any of the substitutions). 26327 # These are the two extra sed commands mentioned above. 26328 (echo ':t 26329 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && sed -e 's/\\\\*$//g' -e 's/$/\\/' -e 's/;t t\\/;t t/' -e 't' -e '3,'$ac_max_sed_lines's/$/\\/' "$tmp"/subs.frag) >"$tmp"/subs-$ac_sed_frag.sed 26330 # It is possible to make a multiline substitution using escaped newlines. 26331 # Ensure that we do not split the substitution between script fragments. 26332 ac_BEG=$ac_end 26333 ac_END=`expr "$ac_end" + "$ac_max_sed_lines"` 26334 sed "1,${ac_BEG}d; ${ac_END}p; q" "$tmp"/subs.sed >"$tmp"/subs.next 26335 if test -s "$tmp"/subs.next; then 26336 grep '^s,@[^@,][^@,]*@,.*$' "$tmp"/subs.next | grep -v '^s,@.*;t t$' >"$tmp"/subs.edit 26337 if test ! -s "$tmp"/subs.edit; then 26338 grep "^s,@[^@,][^@,]*@,.*,;t t$" "$tmp"/subs.next >"$tmp"/subs.edit 26339 if test ! -s "$tmp"/subs.edit; then 26340 if test "$ac_beg" -gt 1; then 26341 ac_end=`expr "$ac_end" - 1` 26342 continue 26343 fi 26344 fi 26345 fi 26346 fi 26347 26348 if test -z "$ac_sed_cmds"; then 26349 ac_sed_cmds="sed -f \"$tmp\"/subs-$ac_sed_frag.sed" 26350 else 26351 ac_sed_cmds="$ac_sed_cmds | sed -f \"$tmp\"/subs-$ac_sed_frag.sed" 26352 fi 26353 ac_sed_frag=`expr "$ac_sed_frag" + 1` 26354 ac_beg=$ac_end 26355 ac_end=`expr "$ac_end" + "$ac_max_sed_lines"` 26356 fi 26357 done 26358 if test -z "$ac_sed_cmds"; then 26359 ac_sed_cmds="cat" 26360 fi 26361fi # test -n "$CONFIG_FILES" 26362 26363EOF 26364cat >>"$CONFIG_STATUS" <<\EOF 26365for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 26366 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 26367 case "$ac_file" in 26368 - | *:- | *:-:* ) # input from stdin 26369 cat >"$tmp"/stdin 26370 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 26371 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 26372 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 26373 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 26374 * ) ac_file_in=$ac_file.in ;; 26375 esac 26376 26377 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 26378 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26379 X"$ac_file" : 'X\(//\)[^/]' \| \ 26380 X"$ac_file" : 'X\(//\)$' \| \ 26381 X"$ac_file" : 'X\(/\)' \| \ 26382 . : '\(.\)' 2>/dev/null || 26383echo X"$ac_file" | 26384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 26385 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 26386 /^X\(\/\/\)$/{ s//\1/; q; } 26387 /^X\(\/\).*/{ s//\1/; q; } 26388 s/.*/./; q'` 26389 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 26390 { case "$ac_dir" in 26391 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 26392 *) as_incr_dir=.;; 26393esac 26394as_dummy="$ac_dir" 26395for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 26396 case $as_mkdir_dir in 26397 # Skip DOS drivespec 26398 ?:) as_incr_dir=$as_mkdir_dir ;; 26399 *) 26400 as_incr_dir=$as_incr_dir/$as_mkdir_dir 26401 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 26402 ;; 26403 esac 26404done; } 26405 26406 ac_dir_suffix="/`echo "$ac_dir"|sed 's,^\./,,'`" 26407 # A "../" for each directory in $ac_dir_suffix. 26408 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 26409 else 26410 ac_dir_suffix= ac_dots= 26411 fi 26412 26413 case "$srcdir" in 26414 .) ac_srcdir=. 26415 if test -z "$ac_dots"; then 26416 ac_top_srcdir=. 26417 else 26418 ac_top_srcdir=`echo "$ac_dots" | sed 's,/$,,'` 26419 fi ;; 26420 [\\/]* | ?:[\\/]* ) 26421 ac_srcdir="$srcdir$ac_dir_suffix"; 26422 ac_top_srcdir="$srcdir" ;; 26423 *) # Relative path. 26424 ac_srcdir="$ac_dots$srcdir$ac_dir_suffix" 26425 ac_top_srcdir="$ac_dots$srcdir" ;; 26426 esac 26427 26428 case $INSTALL in 26429 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 26430 *) ac_INSTALL=$ac_dots$INSTALL ;; 26431 esac 26432 26433 if test x"$ac_file" != x-; then 26434 { echo "$as_me:26434: creating $ac_file" >&5 26435echo "$as_me: creating $ac_file" >&6;} 26436 rm -f "$ac_file" 26437 fi 26438 # Let's still pretend it is `configure' which instantiates (i.e., don't 26439 # use $as_me), people would be surprised to read: 26440 # /* config.h. Generated automatically by config.status. */ 26441 configure_input="Generated automatically from `echo $ac_file_in | 26442 sed 's,.*/,,'` by configure." 26443 26444 # First look for the input files in the build tree, otherwise in the 26445 # src tree. 26446 ac_file_inputs=`IFS=: 26447 for f in $ac_file_in; do 26448 case $f in 26449 -) echo "$tmp"/stdin ;; 26450 [\\/$]*) 26451 # Absolute (can't be DOS-style, as IFS=:) 26452 test -f "$f" || { { echo "$as_me:26452: error: cannot find input file: $f" >&5 26453echo "$as_me: error: cannot find input file: $f" >&2;} 26454 { (exit 1); exit 1; }; } 26455 echo "$f";; 26456 *) # Relative 26457 if test -f "$f"; then 26458 # Build tree 26459 echo "$f" 26460 elif test -f "$srcdir/$f"; then 26461 # Source tree 26462 echo "$srcdir/$f" 26463 else 26464 # /dev/null tree 26465 { { echo "$as_me:26465: error: cannot find input file: $f" >&5 26466echo "$as_me: error: cannot find input file: $f" >&2;} 26467 { (exit 1); exit 1; }; } 26468 fi;; 26469 esac 26470 done` || { (exit 1); exit 1; } 26471EOF 26472cat >>"$CONFIG_STATUS" <<\EOF 26473 ac_warn_datarootdir=no 26474 if test x"$ac_file" != x-; then 26475 for ac_item in $ac_file_inputs 26476 do 26477 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' "$ac_item"` 26478 if test -n "$ac_seen"; then 26479 ac_used=`grep '@datarootdir@' "$ac_item"` 26480 if test -z "$ac_used"; then 26481 { echo "$as_me:26481: WARNING: datarootdir was used implicitly but not set: 26482$ac_seen" >&5 26483echo "$as_me: WARNING: datarootdir was used implicitly but not set: 26484$ac_seen" >&2;} 26485 ac_warn_datarootdir=yes 26486 fi 26487 fi 26488 ac_seen=`grep '${datarootdir}' "$ac_item"` 26489 if test -n "$ac_seen"; then 26490 { echo "$as_me:26490: WARNING: datarootdir was used explicitly but not set: 26491$ac_seen" >&5 26492echo "$as_me: WARNING: datarootdir was used explicitly but not set: 26493$ac_seen" >&2;} 26494 ac_warn_datarootdir=yes 26495 fi 26496 done 26497 fi 26498 26499if test "x$ac_warn_datarootdir" = xyes; then 26500 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'" 26501fi 26502 26503EOF 26504cat >>"$CONFIG_STATUS" <<EOF 26505 sed "$ac_vpsub 26506$extrasub 26507EOF 26508cat >>"$CONFIG_STATUS" <<\EOF 26509:t 26510/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 26511s,@configure_input@,$configure_input,;t t 26512s,@srcdir@,$ac_srcdir,;t t 26513s,@top_srcdir@,$ac_top_srcdir,;t t 26514s,@INSTALL@,$ac_INSTALL,;t t 26515" $ac_file_inputs | (eval "$ac_sed_cmds") >"$tmp"/out 26516 rm -f "$tmp"/stdin 26517EOF 26518test -n "${FGREP}" || FGREP="grep -F" 26519test -n "${EGREP}" || EGREP="grep -E" 26520cat >>"$CONFIG_STATUS" <<EOF 26521 test -n "\${FGREP}" || FGREP="$FGREP" 26522 test -n "\${EGREP}" || EGREP="$EGREP" 26523EOF 26524cat >>"$CONFIG_STATUS" <<\EOF 26525 if test x"$ac_file" != x-; then 26526 cp "$tmp/out" "$ac_file" 26527 26528 for ac_name in prefix exec_prefix datarootdir 26529 do 26530 ac_seen=`$FGREP -n '${'$ac_name'[:=].*}' "$ac_file"` 26531 if test -n "$ac_seen"; then 26532 ac_init=`$EGREP '[ ]*'$ac_name'[ ]*=' "$ac_file"` 26533 if test -z "$ac_init"; then 26534 ac_seen=`echo "$ac_seen" |sed -e 's,^,'"$ac_file"':,'` 26535 { echo "$as_me:26535: WARNING: Variable $ac_name is used but was not set: 26536$ac_seen" >&5 26537echo "$as_me: WARNING: Variable $ac_name is used but was not set: 26538$ac_seen" >&2;} 26539 fi 26540 fi 26541 done 26542 $EGREP -n '@[a-z_][a-z_0-9]+@' "$ac_file" >"$tmp"/out 26543 $EGREP -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>"$tmp"/out 26544 if test -s "$tmp"/out; then 26545 ac_seen=`sed -e 's,^,'"$ac_file"':,' < "$tmp"/out` 26546 { echo "$as_me:26546: WARNING: Some variables may not be substituted: 26547$ac_seen" >&5 26548echo "$as_me: WARNING: Some variables may not be substituted: 26549$ac_seen" >&2;} 26550 fi 26551 else 26552 cat "$tmp"/out 26553 fi 26554 rm -f "$tmp"/out 26555 26556done 26557EOF 26558cat >>"$CONFIG_STATUS" <<\EOF 26559 26560# 26561# CONFIG_HEADER section. 26562# 26563 26564# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 26565# NAME is the cpp macro being defined and VALUE is the value it is being given. 26566# 26567# ac_d sets the value in "#define NAME VALUE" lines. 26568ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 26569ac_dB='[ ].*$,\1#\2' 26570ac_dC=' ' 26571ac_dD=',;t' 26572# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 26573ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 26574ac_iB='\([ ]\),\1#\2define\3' 26575ac_iC=' ' 26576ac_iD='\4,;t' 26577# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 26578ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 26579ac_uB='$,\1#\2define\3' 26580ac_uC=' ' 26581ac_uD=',;t' 26582 26583for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 26584 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 26585 case "$ac_file" in 26586 - | *:- | *:-:* ) # input from stdin 26587 cat >"$tmp"/stdin 26588 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 26589 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 26590 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 26591 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 26592 * ) ac_file_in=$ac_file.in ;; 26593 esac 26594 26595 test x"$ac_file" != x- && { echo "$as_me:26595: creating $ac_file" >&5 26596echo "$as_me: creating $ac_file" >&6;} 26597 26598 # First look for the input files in the build tree, otherwise in the 26599 # src tree. 26600 ac_file_inputs=`IFS=: 26601 for f in $ac_file_in; do 26602 case $f in 26603 -) echo "$tmp"/stdin ;; 26604 [\\/$]*) 26605 # Absolute (can't be DOS-style, as IFS=:) 26606 test -f "$f" || { { echo "$as_me:26606: error: cannot find input file: $f" >&5 26607echo "$as_me: error: cannot find input file: $f" >&2;} 26608 { (exit 1); exit 1; }; } 26609 echo $f;; 26610 *) # Relative 26611 if test -f "$f"; then 26612 # Build tree 26613 echo $f 26614 elif test -f "$srcdir/$f"; then 26615 # Source tree 26616 echo "$srcdir/$f" 26617 else 26618 # /dev/null tree 26619 { { echo "$as_me:26619: error: cannot find input file: $f" >&5 26620echo "$as_me: error: cannot find input file: $f" >&2;} 26621 { (exit 1); exit 1; }; } 26622 fi;; 26623 esac 26624 done` || { (exit 1); exit 1; } 26625 # Remove the trailing spaces. 26626 sed 's/[ ]*$//' $ac_file_inputs >"$tmp"/in 26627 26628EOF 26629 26630# Transform confdefs.h into two sed scripts, `conftest.defines' and 26631# `conftest.undefs', that substitutes the proper values into 26632# config.h.in to produce config.h. The first handles `#define' 26633# templates, and the second `#undef' templates. 26634# And first: Protect against being on the right side of a sed subst in 26635# config.status. Protect against being in an unquoted here document 26636# in config.status. 26637rm -f conftest.defines conftest.undefs 26638# Using a here document instead of a string reduces the quoting nightmare. 26639# Putting comments in sed scripts is not portable. 26640# 26641# `end' is used to avoid that the second main sed command (meant for 26642# 0-ary CPP macros) applies to n-ary macro definitions. 26643# See the Autoconf documentation for `clear'. 26644cat >confdef2sed.sed <<\EOF 26645s/[\\&,]/\\&/g 26646s,[\\$`],\\&,g 26647t clear 26648: clear 26649s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp 26650t end 26651s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 26652: end 26653EOF 26654# If some macros were called several times there might be several times 26655# the same #defines, which is useless. Nevertheless, we may not want to 26656# sort them, since we want the *last* AC-DEFINE to be honored. 26657uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 26658sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 26659sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs 26660rm -f confdef2sed.sed 26661 26662# This sed command replaces #undef with comments. This is necessary, for 26663# example, in the case of _POSIX_SOURCE, which is predefined and required 26664# on some systems where configure will not decide to define it. 26665cat >>conftest.undefs <<\EOF 26666s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 26667EOF 26668 26669# Break up conftest.defines because some shells have a limit on the size 26670# of here documents, and old seds have small limits too (100 cmds). 26671echo ' # Handle all the #define templates only if necessary.' >>"$CONFIG_STATUS" 26672echo ' test -n "${EGREP}" || EGREP="grep -E"' >>"$CONFIG_STATUS" 26673echo ' if ${EGREP} "^[ ]*#[ ]*define" "$tmp"/in >/dev/null; then' >>"$CONFIG_STATUS" 26674echo ' # If there are no defines, we may have an empty if/fi' >>"$CONFIG_STATUS" 26675echo ' :' >>"$CONFIG_STATUS" 26676rm -f conftest.tail 26677while grep . conftest.defines >/dev/null 26678do 26679 # Write a limited-size here document to "$tmp"/defines.sed. 26680 echo ' cat >"$tmp"/defines.sed <<CEOF' >>"$CONFIG_STATUS" 26681 # Speed up: don't consider the non `#define' lines. 26682 echo '/^[ ]*#[ ]*define/!b' >>"$CONFIG_STATUS" 26683 # Work around the forget-to-reset-the-flag bug. 26684 echo 't clr' >>"$CONFIG_STATUS" 26685 echo ': clr' >>"$CONFIG_STATUS" 26686 sed "${ac_max_here_lines}q" conftest.defines >>"$CONFIG_STATUS" 26687 echo 'CEOF 26688 sed -f "$tmp"/defines.sed "$tmp"/in >"$tmp"/out 26689 rm -f "$tmp"/in 26690 mv "$tmp"/out "$tmp"/in 26691' >>"$CONFIG_STATUS" 26692 sed "1,${ac_max_here_lines}d" conftest.defines >conftest.tail 26693 rm -f conftest.defines 26694 mv conftest.tail conftest.defines 26695done 26696rm -f conftest.defines 26697echo ' fi # grep' >>"$CONFIG_STATUS" 26698echo >>"$CONFIG_STATUS" 26699 26700# Break up conftest.undefs because some shells have a limit on the size 26701# of here documents, and old seds have small limits too (100 cmds). 26702echo ' # Handle all the #undef templates' >>"$CONFIG_STATUS" 26703rm -f conftest.tail 26704while grep . conftest.undefs >/dev/null 26705do 26706 # Write a limited-size here document to "$tmp"/undefs.sed. 26707 echo ' cat >"$tmp"/undefs.sed <<CEOF' >>"$CONFIG_STATUS" 26708 # Speed up: don't consider the non `#undef' 26709 echo '/^[ ]*#[ ]*undef/!b' >>"$CONFIG_STATUS" 26710 # Work around the forget-to-reset-the-flag bug. 26711 echo 't clr' >>"$CONFIG_STATUS" 26712 echo ': clr' >>"$CONFIG_STATUS" 26713 sed "${ac_max_here_lines}q" conftest.undefs >>"$CONFIG_STATUS" 26714 echo 'CEOF 26715 sed -f "$tmp"/undefs.sed "$tmp"/in >"$tmp"/out 26716 rm -f "$tmp"/in 26717 mv "$tmp"/out "$tmp"/in 26718' >>"$CONFIG_STATUS" 26719 sed "1,${ac_max_here_lines}d" conftest.undefs >conftest.tail 26720 rm -f conftest.undefs 26721 mv conftest.tail conftest.undefs 26722done 26723rm -f conftest.undefs 26724 26725cat >>"$CONFIG_STATUS" <<\EOF 26726 # Let's still pretend it is `configure' which instantiates (i.e., don't 26727 # use $as_me), people would be surprised to read: 26728 # /* config.h. Generated automatically by config.status. */ 26729 if test x"$ac_file" = x-; then 26730 echo "/* Generated automatically by configure. */" >"$tmp"/config.h 26731 else 26732 echo "/* $ac_file. Generated automatically by configure. */" >"$tmp"/config.h 26733 fi 26734 cat "$tmp"/in >>"$tmp"/config.h 26735 rm -f "$tmp"/in 26736 if test x"$ac_file" != x-; then 26737 if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then 26738 { echo "$as_me:26738: $ac_file is unchanged" >&5 26739echo "$as_me: $ac_file is unchanged" >&6;} 26740 else 26741 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26742 X"$ac_file" : 'X\(//\)[^/]' \| \ 26743 X"$ac_file" : 'X\(//\)$' \| \ 26744 X"$ac_file" : 'X\(/\)' \| \ 26745 . : '\(.\)' 2>/dev/null || 26746echo X"$ac_file" | 26747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 26748 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 26749 /^X\(\/\/\)$/{ s//\1/; q; } 26750 /^X\(\/\).*/{ s//\1/; q; } 26751 s/.*/./; q'` 26752 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 26753 { case "$ac_dir" in 26754 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 26755 *) as_incr_dir=.;; 26756esac 26757as_dummy="$ac_dir" 26758for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 26759 case $as_mkdir_dir in 26760 # Skip DOS drivespec 26761 ?:) as_incr_dir=$as_mkdir_dir ;; 26762 *) 26763 as_incr_dir=$as_incr_dir/$as_mkdir_dir 26764 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 26765 ;; 26766 esac 26767done; } 26768 26769 fi 26770 rm -f "$ac_file" 26771 mv "$tmp/config.h" "$ac_file" 26772 fi 26773 else 26774 cat "$tmp"/config.h 26775 rm -f "$tmp"/config.h 26776 fi 26777done 26778EOF 26779 26780cat >>"$CONFIG_STATUS" <<\EOF 26781 26782{ (exit 0); exit 0; } 26783EOF 26784chmod +x "$CONFIG_STATUS" 26785ac_clean_files=$ac_clean_files_save 26786 26787# configure is writing to config.log, and then calls config.status. 26788# config.status does its own redirection, appending to config.log. 26789# Unfortunately, on DOS this fails, as config.log is still kept open 26790# by configure, so config.status won't be able to write to it; its 26791# output is simply discarded. So we exec the FD to /dev/null, 26792# effectively closing config.log, so it can be properly (re)opened and 26793# appended to by config.status. When coming back to configure, we 26794# need to make the FD available again. 26795if test "$no_create" != yes; then 26796 ac_cs_success=: 26797 exec 5>/dev/null 26798 $SHELL "$CONFIG_STATUS" || ac_cs_success=false 26799 exec 5>>config.log 26800 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 26801 # would make configure fail if this is the last instruction. 26802 "$ac_cs_success" || { (exit 1); exit 1; } 26803fi 26804 26805