configure revision f2e35a3a
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by Autoconf 2.52.20210105. 4# 5# Copyright 2003-2020,2021 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 -*) { echo "$as_me: error: unrecognized option: $ac_option 484Try \`$0 --help' for more information." >&2 485 { (exit 1); exit 1; }; } 486 ;; 487 488 *=*) 489 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 490 # Reject names that are not valid shell variable names. 491 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 492 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 493 { (exit 1); exit 1; }; } 494 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 495 eval "$ac_envvar='$ac_optarg'" 496 export "$ac_envvar" ;; 497 498 *) 499 # FIXME: should be removed in autoconf 3.0. 500 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 501 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 502 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 503 : "${build_alias=$ac_option}" "${host_alias=$ac_option}" "${target_alias=$ac_option}" 504 ;; 505 506 esac 507done 508 509if test -n "$ac_prev"; then 510 ac_option=--`echo "$ac_prev" | sed 's/_/-/g'` 511 { echo "$as_me: error: missing argument to $ac_option" >&2 512 { (exit 1); exit 1; }; } 513fi 514 515# Be sure to have absolute paths. 516for ac_var in exec_prefix prefix 517do 518 eval ac_val=$`echo "$ac_var"` 519 case "$ac_val" in 520 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 521 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 522 { (exit 1); exit 1; }; };; 523 esac 524done 525 526# Be sure to have absolute paths. 527for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \ 528 localstatedir libdir includedir oldincludedir infodir mandir 529do 530 eval ac_val=$`echo "$ac_var"` 531 case "$ac_val" in 532 [\\/$]* | ?:[\\/]* ) ;; 533 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 534 { (exit 1); exit 1; }; };; 535 esac 536done 537 538# There might be people who depend on the old broken behavior: `$host' 539# used to hold the argument of --host etc. 540build=$build_alias 541host=$host_alias 542target=$target_alias 543 544# FIXME: should be removed in autoconf 3.0. 545if test "x$host_alias" != x; then 546 if test "x$build_alias" = x; then 547 cross_compiling=maybe 548 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 549 If a cross compiler is detected then cross compile mode will be used." >&2 550 elif test "x$build_alias" != "x$host_alias"; then 551 cross_compiling=yes 552 fi 553fi 554 555ac_tool_prefix= 556test -n "$host_alias" && ac_tool_prefix=$host_alias- 557 558test "$silent" = yes && exec 6>/dev/null 559 560# Find the source files, if location was not specified. 561if test -z "$srcdir"; then 562 ac_srcdir_defaulted=yes 563 # Try the directory containing this script, then its parent. 564 ac_prog=$0 565 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` 566 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 567 srcdir=$ac_confdir 568 if test ! -r "$srcdir/$ac_unique_file"; then 569 srcdir=.. 570 fi 571else 572 ac_srcdir_defaulted=no 573fi 574if test ! -r "$srcdir/$ac_unique_file"; then 575 if test "$ac_srcdir_defaulted" = yes; then 576 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 577 { (exit 1); exit 1; }; } 578 else 579 { echo "$as_me: error: cannot find sources in $srcdir" >&2 580 { (exit 1); exit 1; }; } 581 fi 582fi 583srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 584ac_env_build_alias_set=${build_alias+set} 585ac_env_build_alias_value=$build_alias 586ac_cv_env_build_alias_set=${build_alias+set} 587ac_cv_env_build_alias_value=$build_alias 588ac_env_host_alias_set=${host_alias+set} 589ac_env_host_alias_value=$host_alias 590ac_cv_env_host_alias_set=${host_alias+set} 591ac_cv_env_host_alias_value=$host_alias 592ac_env_target_alias_set=${target_alias+set} 593ac_env_target_alias_value=$target_alias 594ac_cv_env_target_alias_set=${target_alias+set} 595ac_cv_env_target_alias_value=$target_alias 596ac_env_CC_set=${CC+set} 597ac_env_CC_value=$CC 598ac_cv_env_CC_set=${CC+set} 599ac_cv_env_CC_value=$CC 600ac_env_CFLAGS_set=${CFLAGS+set} 601ac_env_CFLAGS_value=$CFLAGS 602ac_cv_env_CFLAGS_set=${CFLAGS+set} 603ac_cv_env_CFLAGS_value=$CFLAGS 604ac_env_LDFLAGS_set=${LDFLAGS+set} 605ac_env_LDFLAGS_value=$LDFLAGS 606ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 607ac_cv_env_LDFLAGS_value=$LDFLAGS 608ac_env_CPPFLAGS_set=${CPPFLAGS+set} 609ac_env_CPPFLAGS_value=$CPPFLAGS 610ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 611ac_cv_env_CPPFLAGS_value=$CPPFLAGS 612ac_env_CPP_set=${CPP+set} 613ac_env_CPP_value=$CPP 614ac_cv_env_CPP_set=${CPP+set} 615ac_cv_env_CPP_value=$CPP 616 617# 618# Report the --help message. 619# 620if test "$ac_init_help" = "long"; then 621 # Omit some internal or obsolete options to make the list less imposing. 622 # This message is too long to be a string in the A/UX 3.1 sh. 623 cat <<EOF 624\`configure' configures this package to adapt to many kinds of systems. 625 626Usage: $0 [OPTION]... [VAR=VALUE]... 627 628To assign environment variables (e.g., CC, CFLAGS...), specify them as 629VAR=VALUE. See below for descriptions of some of the useful variables. 630 631Defaults for the options are specified in brackets. 632 633Configuration: 634 -h, --help display this help and exit 635 --help=short display options specific to this package 636 --help=recursive display the short help of all the included packages 637 -V, --version display version information and exit 638 -q, --quiet, --silent do not print \`checking...' messages 639 --cache-file=FILE cache test results in FILE [disabled] 640 -C, --config-cache alias for \`--cache-file=config.cache' 641 -n, --no-create do not create output files 642 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 643 644EOF 645 646 cat <<EOF 647Installation directories: 648 --prefix=PREFIX install architecture-independent files in PREFIX 649 [$ac_default_prefix] 650 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 651 [PREFIX] 652 653By default, \`make install' will install all the files in 654\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 655an installation prefix other than \`$ac_default_prefix' using \`--prefix', 656for instance \`--prefix=\$HOME'. 657 658For better control, use the options below. 659 660Fine tuning of the installation directories: 661 --bindir=DIR user executables [EPREFIX/bin] 662 --sbindir=DIR system admin executables [EPREFIX/sbin] 663 --libexecdir=DIR program executables [EPREFIX/libexec] 664 --datarootdir=DIR read-only architecture-independent data [PREFIX/share] 665 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 666 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 667 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 668 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 669 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run] 670 --libdir=DIR object code libraries [EPREFIX/lib] 671 --includedir=DIR C header files [PREFIX/include] 672 --oldincludedir=DIR C header files for non-gcc [/usr/include] 673 --infodir=DIR info documentation [DATAROOTDIR/info] 674 --mandir=DIR man documentation [DATAROOTDIR/man] 675EOF 676 677 cat <<\EOF 678 679Program names: 680 --program-prefix=PREFIX prepend PREFIX to installed program names 681 --program-suffix=SUFFIX append SUFFIX to installed program names 682 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 683 684X features: 685 --x-includes=DIR X include files are in DIR 686 --x-libraries=DIR X library files are in DIR 687 688System types: 689 --build=BUILD configure for building on BUILD [guessed] 690 --host=HOST build programs to run on HOST [BUILD] 691EOF 692fi 693 694if test -n "$ac_init_help"; then 695 696 cat <<\EOF 697 698Optional Features: 699 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 700 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 701 702Optional Packages: 703 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 704 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 705 706Compile/Install Options: 707 --disable-full-tgetent disable check for full tgetent function 708 --with-app-class=XXX override X applications class (default XTerm) 709 --with-app-defaults=DIR directory in which to install resource files (EPREFIX/lib/X11/app-defaults) 710 --with-icon-name=XXXX override icon name (default: mini.xterm) 711 --with-icon-symlink=XXX make symbolic link for icon name (default: xterm) 712 --with-pixmapdir=DIR directory in which to install pixmaps (DATADIR/pixmaps) 713 --with-icondir=DIR directory in which to install icons for desktop 714 --with-icon-theme=XXX install icons into desktop theme (hicolor) 715 --disable-desktop disable install of xterm desktop files 716 --with-desktop-category=XXX one or more desktop catgories or auto 717 --with-reference=XXX program to use as permissions-reference 718 --with-xterm-symlink=XXX make symbolic link to installed xterm 719 --disable-openpty disable openpty, prefer other interfaces 720 --disable-setuid disable setuid in xterm, do not install setuid/setgid 721 --disable-setgid disable setgid in xterm, do not install setuid/setgid 722 --with-setuid=XXX use the given setuid user 723 --with-utmp-setgid=XXX use setgid to match utmp/utmpx file 724 --with-utempter use utempter library for access to utmp 725 --with-tty-group=XXX use XXX for the tty-group 726 --with-x use the X Window System 727 --with-pkg-config{=path} enable/disable use of pkg-config 728 --with-xpm=DIR use Xpm library for colored icon, may specify path 729 --without-xinerama do not use Xinerama extension for multiscreen support 730 --with-Xaw3d link with Xaw 3d library 731 --with-Xaw3dxft link with Xaw 3d xft library 732 --with-neXtaw link with neXT Athena library 733 --with-XawPlus link with Athena-Plus library 734 --enable-narrowproto enable narrow prototypes for X libraries 735 --disable-imake disable use of imake for definitions 736 --with-man2html=XXX use XXX rather than groff 737Terminal Configuration: 738 --with-terminal-id=V set default decTerminalID (default: vt420) 739 --with-terminal-type=T set default $TERM (default: xterm) 740 --enable-backarrow-key set default backarrowKey resource (default: true) 741 --enable-backarrow-is-erase set default backarrowKeyIsErase resource (default: false) 742 --enable-delete-is-del set default deleteIsDEL resource (default: maybe) 743 --enable-pty-erase set default ptyInitialErase resource (default: maybe) 744 --enable-alt-sends-esc set default altSendsEscape resource (default: no) 745 --enable-meta-sends-esc set default metaSendsEscape resource (default: no) 746 --with-own-terminfo=P set default $TERMINFO (default: from environment) 747 --enable-env-terminfo setenv $TERMINFO if --with-own-terminfo gives value 748Optional Features: 749 --disable-active-icon disable X11R6.3 active-icon feature 750 --disable-ansi-color disable ANSI color 751 --disable-16-color disable 16-color support 752 --disable-256-color disable 256-color support 753 --disable-direct-color disable direct-color support 754 --disable-88-color disable 88-color support 755 --disable-blink-cursor disable support for blinking cursor 756 --enable-broken-osc allow broken Linux OSC-strings 757 --disable-broken-st disallow broken string-terminators 758 --enable-builtin-xpms compile-in icon data 759 --disable-c1-print disallow -k8 option for printable 128-159 760 --disable-bold-color disable PC-style mapping of bold colors 761 --disable-color-class disable separate color class resources 762 --disable-color-mode disable default colorMode resource 763 --disable-highlighting disable support for color highlighting 764 --disable-doublechars disable support for double-size chars 765 --disable-boxchars disable fallback-support for box chars 766 --enable-exec-xterm enable "spawn-new-terminal" action 767 --enable-double-buffer enable double-buffering in default resources 768 --disable-freetype disable freetype library-support 769 --with-freetype-config configure script to use for FreeType 770 --with-freetype-cflags -D/-I options for compiling with FreeType 771 --with-freetype-libs -L/-l options to link FreeType 772 --enable-hp-fkeys enable support for HP-style function keys 773 --enable-sco-fkeys enable support for SCO-style function keys 774 --disable-sun-fkeys disable support for Sun-style function keys 775 --disable-fifo-lines disable FIFO-storage for saved-lines 776 --disable-i18n disable internationalization 777 --disable-initial-erase disable setup for stty erase 778 --disable-input-method disable input-method 779 --enable-load-vt-fonts enable load-vt-fonts() action 780 --enable-logging enable logging 781 --enable-logfile-exec enable exec'd logfile filter 782 --disable-maximize disable actions for iconify/deiconify/maximize/restore 783 --disable-num-lock disable NumLock keypad support 784 --disable-paste64 disable get/set base64 selection data 785 --disable-pty-handshake disable pty-handshake support 786 --enable-readline-mouse enable support for mouse in readline applications 787 --disable-regex disable regular-expression selections 788 --with-pcre2 use PCRE2 for regular-expressions 789 --with-pcre use PCRE for regular-expressions 790 --disable-rightbar disable right-scrollbar support 791 --disable-samename disable check for redundant name-change 792 --disable-selection-ops disable selection-action operations 793 --disable-session-mgt disable support for session management 794 --disable-tcap-fkeys disable termcap function-keys support 795 --disable-tcap-query disable compiled-in termcap-query support 796 --disable-tek4014 disable tek4014 emulation 797 --enable-toolbar compile-in toolbar for pulldown menus 798 --disable-vt52 disable VT52 emulation 799 --disable-wide-attrs disable wide-attribute support 800 --disable-wide-chars disable wide-character support 801 --enable-16bit-chars enable 16-bit character support 802 --enable-mini-luit enable mini-luit (built-in Latin9 support) 803 --disable-luit enable luit filter (Unicode translation) 804 --enable-dabbrev enable dynamic-abbreviation support 805 --enable-dec-locator enable DECterm Locator support 806 --disable-screen-dumps disable XHTML and SVG screen dumps 807 --enable-regis-graphics enable ReGIS graphics support 808 --disable-sixel-graphics disable sixel graphics support 809 --disable-print-graphics disable screen dump to sixel support 810 --disable-rectangles disable VT420 rectangle support 811 --disable-ziconbeep disable -ziconbeep option 812Testing/development Options: 813 --enable-trace test: set to enable debugging traces 814 --with-dmalloc test: use Gray Watson's dmalloc library 815 --with-dbmalloc test: use Conor Cahill's dbmalloc library 816 --with-valgrind test: use valgrind 817 --disable-leaks test: free permanent memory, analyze leaks 818 --disable-echo do not display "compiling" commands 819 --enable-xmc-glitch test: enable xmc magic-cookie emulation 820 --enable-warnings test: turn on gcc compiler warnings 821 --disable-rpath-hack don't add rpath options for additional libraries 822 823Some influential environment variables: 824 CC C compiler command 825 CFLAGS C compiler flags 826 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 827 nonstandard directory <lib dir> 828 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 829 headers in a nonstandard directory <include dir> 830 CPP C preprocessor 831 832Use these variables to override the choices made by `configure' or to help 833it to find libraries and programs with nonstandard names/locations. 834 835EOF 836fi 837 838if test "$ac_init_help" = "recursive"; then 839 # If there are subdirs, report their specific --help. 840 ac_popdir=`pwd` 841 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 842 cd "$ac_subdir" 843 # A "../" for each directory in /$ac_subdir. 844 ac_dots=`echo "$ac_subdir" | 845 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 846 847 case "$srcdir" in 848 .) # No --srcdir option. We are building in place. 849 ac_sub_srcdir="$srcdir" ;; 850 [\\/]* | ?:[\\/]* ) # Absolute path. 851 ac_sub_srcdir="$srcdir/$ac_subdir" ;; 852 *) # Relative path. 853 ac_sub_srcdir="$ac_dots$srcdir/$ac_subdir" ;; 854 esac 855 856 # Check for guested configure; otherwise get Cygnus style configure. 857 if test -f "$ac_sub_srcdir/configure.gnu"; then 858 echo 859 $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive 860 elif test -f "$ac_sub_srcdir/configure"; then 861 echo 862 $SHELL "$ac_sub_srcdir/configure" --help=recursive 863 elif test -f "$ac_sub_srcdir/configure.ac" || 864 test -f "$ac_sub_srcdir/configure.in"; then 865 echo 866 "$ac_configure" --help 867 else 868 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 869 fi 870 cd "$ac_popdir" 871 done 872fi 873 874test -n "$ac_init_help" && exit 0 875if "$ac_init_version"; then 876 cat <<\EOF 877 878Copyright 2003-2020,2021 Thomas E. Dickey 879Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 880Free Software Foundation, Inc. 881This configure script is free software; the Free Software Foundation 882gives unlimited permission to copy, distribute and modify it. 883EOF 884 exit 0 885fi 886exec 5>config.log 887cat >&5 <<EOF 888This file contains any messages produced by compilers while 889running configure, to aid debugging if configure makes a mistake. 890 891It was created by $as_me, which was 892generated by GNU Autoconf 2.52.20210105. Invocation command line was 893 894 $ $0 $@ 895 896EOF 897{ 898cat <<_ASUNAME 899## ---------- ## 900## Platform. ## 901## ---------- ## 902 903hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 904uname -m = `(uname -m) 2>/dev/null || echo unknown` 905uname -r = `(uname -r) 2>/dev/null || echo unknown` 906uname -s = `(uname -s) 2>/dev/null || echo unknown` 907uname -v = `(uname -v) 2>/dev/null || echo unknown` 908 909/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 910/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 911 912/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 913/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 914/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 915hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 916/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 917/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 918/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 919 920PATH = $PATH 921 922_ASUNAME 923} >&5 924 925cat >&5 <<EOF 926## ------------ ## 927## Core tests. ## 928## ------------ ## 929 930EOF 931 932# Keep a trace of the command line. 933# Strip out --no-create and --no-recursion so they do not pile up. 934# Also quote any args containing shell meta-characters. 935ac_configure_args= 936ac_sep= 937for ac_arg 938do 939 case "$ac_arg" in 940 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 941 | --no-cr | --no-c) ;; 942 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 943 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 944 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 945 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 946 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 947 ac_sep=" " ;; 948 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 949 ac_sep=" " ;; 950 esac 951 # Get rid of the leading space. 952done 953 954# When interrupted or exit'd, cleanup temporary files, and complete 955# config.log. We remove comments because anyway the quotes in there 956# would cause problems or look ugly. 957trap 'exit_status=$? 958 # Save into config.log some information that might help in debugging. 959 echo >&5 960 echo "## ----------------- ##" >&5 961 echo "## Cache variables. ##" >&5 962 echo "## ----------------- ##" >&5 963 echo >&5 964 # The following way of writing the cache mishandles newlines in values, 965{ 966 (set) 2>&1 | 967 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 968 *ac_space=\ *) 969 sed -n \ 970 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 971 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 972 ;; 973 *) 974 sed -n \ 975 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 976 ;; 977 esac; 978} >&5 979 sed "/^$/d" confdefs.h >conftest.log 980 if test -s conftest.log; then 981 echo >&5 982 echo "## ------------ ##" >&5 983 echo "## confdefs.h. ##" >&5 984 echo "## ------------ ##" >&5 985 echo >&5 986 cat conftest.log >&5 987 fi 988 (echo; echo) >&5 989 test "$ac_signal" != 0 && 990 echo "$as_me: caught signal $ac_signal" >&5 991 echo "$as_me: exit $exit_status" >&5 992 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 993 exit $exit_status 994 ' 0 995for ac_signal in 1 2 13 15; do 996 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' "$ac_signal" 997done 998ac_signal=0 999 1000# confdefs.h avoids OS command line length limits that DEFS can exceed. 1001rm -rf conftest* confdefs.h 1002# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1003echo >confdefs.h 1004 1005# Let the site file select an alternate cache file if it wants to. 1006# Prefer explicitly selected file to automatically selected ones. 1007if test -z "$CONFIG_SITE"; then 1008 if test "x$prefix" != xNONE; then 1009 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1010 else 1011 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1012 fi 1013fi 1014for ac_site_file in $CONFIG_SITE; do 1015 if test -r "$ac_site_file"; then 1016 { echo "$as_me:1016: loading site script $ac_site_file" >&5 1017echo "$as_me: loading site script $ac_site_file" >&6;} 1018 cat "$ac_site_file" >&5 1019 . "$ac_site_file" 1020 fi 1021done 1022 1023if test -r "$cache_file"; then 1024 # Some versions of bash will fail to source /dev/null (special 1025 # files actually), so we avoid doing that. 1026 if test -f "$cache_file"; then 1027 { echo "$as_me:1027: loading cache $cache_file" >&5 1028echo "$as_me: loading cache $cache_file" >&6;} 1029 case $cache_file in 1030 [\\/]* | ?:[\\/]* ) . $cache_file;; 1031 *) . ./$cache_file;; 1032 esac 1033 fi 1034else 1035 { echo "$as_me:1035: creating cache $cache_file" >&5 1036echo "$as_me: creating cache $cache_file" >&6;} 1037 >$cache_file 1038fi 1039 1040# Check that the precious variables saved in the cache have kept the same 1041# value. 1042ac_cache_corrupted=false 1043for ac_var in `(set) 2>&1 | 1044 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1045 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1046 eval ac_new_set=\$ac_env_${ac_var}_set 1047 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1048 eval ac_new_val="\$ac_env_${ac_var}_value" 1049 case "$ac_old_set,$ac_new_set" in 1050 set,) 1051 { echo "$as_me:1051: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1052echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1053 ac_cache_corrupted=: ;; 1054 ,set) 1055 { echo "$as_me:1055: error: \`$ac_var' was not set in the previous run" >&5 1056echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1057 ac_cache_corrupted=: ;; 1058 ,);; 1059 *) 1060 if test "x$ac_old_val" != "x$ac_new_val"; then 1061 { echo "$as_me:1061: error: \`$ac_var' has changed since the previous run:" >&5 1062echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1063 { echo "$as_me:1063: former value: $ac_old_val" >&5 1064echo "$as_me: former value: $ac_old_val" >&2;} 1065 { echo "$as_me:1065: current value: $ac_new_val" >&5 1066echo "$as_me: current value: $ac_new_val" >&2;} 1067 ac_cache_corrupted=: 1068 fi;; 1069 esac 1070 # Pass precious variables to config.status. It doesn't matter if 1071 # we pass some twice (in addition to the command line arguments). 1072 if test "$ac_new_set" = set; then 1073 case "$ac_new_val" in 1074 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1075 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` 1076 ac_configure_args="$ac_configure_args '$ac_arg'" 1077 ;; 1078 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" 1079 ;; 1080 esac 1081 fi 1082done 1083if "$ac_cache_corrupted"; then 1084 { echo "$as_me:1084: error: changes in the environment can compromise the build" >&5 1085echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1086 { { echo "$as_me:1086: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1087echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1088 { (exit 1); exit 1; }; } 1089fi 1090 1091ac_ext=c 1092ac_cpp='$CPP $CPPFLAGS' 1093ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 1094ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 1095ac_compiler_gnu=$ac_cv_c_compiler_gnu 1096ac_main_return="return" 1097 1098case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in 1099 *c*,-n*) ECHO_N= 1100 ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway 1101 ECHO_T=' ' 1102 ;; 1103 *c*,* ) ECHO_N=-n 1104 ECHO_C= 1105 ECHO_T= 1106 ;; 1107 *) ECHO_N= 1108 ECHO_C='\c' 1109 ECHO_T= 1110 ;; 1111esac 1112echo "#! $SHELL" >conftest.sh 1113echo "exit 0" >>conftest.sh 1114chmod +x conftest.sh 1115if { (echo "$as_me:1115: PATH=\".;.\"; conftest.sh") >&5 1116 (PATH=".;."; conftest.sh) 2>&5 1117 ac_status=$? 1118 echo "$as_me:1118: \$? = $ac_status" >&5 1119 (exit "$ac_status"); }; then 1120 ac_path_separator=';' 1121else 1122 ac_path_separator=: 1123fi 1124PATH_SEPARATOR="$ac_path_separator" 1125rm -f conftest.sh 1126 1127ac_config_headers="$ac_config_headers xtermcfg.h:xtermcfg.hin" 1128 1129ac_aux_dir= 1130for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1131 if test -f "$ac_dir/install-sh"; then 1132 ac_aux_dir=$ac_dir 1133 ac_install_sh="$ac_aux_dir/install-sh -c" 1134 break 1135 elif test -f "$ac_dir/install.sh"; then 1136 ac_aux_dir=$ac_dir 1137 ac_install_sh="$ac_aux_dir/install.sh -c" 1138 break 1139 elif test -f "$ac_dir/shtool"; then 1140 ac_aux_dir=$ac_dir 1141 ac_install_sh="$ac_aux_dir/shtool install -c" 1142 break 1143 fi 1144done 1145if test -z "$ac_aux_dir"; then 1146 { { echo "$as_me:1146: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1147echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1148 { (exit 1); exit 1; }; } 1149fi 1150ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1151ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1152ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1153 1154# Make sure we can run config.sub. 1155$ac_config_sub sun4 >/dev/null 2>&1 || 1156 { { echo "$as_me:1156: error: cannot run $ac_config_sub" >&5 1157echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1158 { (exit 1); exit 1; }; } 1159 1160echo "$as_me:1160: checking build system type" >&5 1161echo $ECHO_N "checking build system type... $ECHO_C" >&6 1162if test "${ac_cv_build+set}" = set; then 1163 echo $ECHO_N "(cached) $ECHO_C" >&6 1164else 1165 ac_cv_build_alias=$build_alias 1166test -z "$ac_cv_build_alias" && 1167 ac_cv_build_alias=`$ac_config_guess` 1168test -z "$ac_cv_build_alias" && 1169 { { echo "$as_me:1169: error: cannot guess build type; you must specify one" >&5 1170echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1171 { (exit 1); exit 1; }; } 1172ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` || 1173 { { echo "$as_me:1173: error: $ac_config_sub $ac_cv_build_alias failed." >&5 1174echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} 1175 { (exit 1); exit 1; }; } 1176 1177fi 1178echo "$as_me:1178: result: $ac_cv_build" >&5 1179echo "${ECHO_T}$ac_cv_build" >&6 1180build=$ac_cv_build 1181build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1182build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1183build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1184 1185if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then 1186 echo "$as_me:1186: checking host system type" >&5 1187echo $ECHO_N "checking host system type... $ECHO_C" >&6 1188if test "${ac_cv_host+set}" = set; then 1189 echo $ECHO_N "(cached) $ECHO_C" >&6 1190else 1191 ac_cv_host_alias=$host_alias 1192test -z "$ac_cv_host_alias" && 1193 ac_cv_host_alias=$ac_cv_build_alias 1194ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` || 1195 { { echo "$as_me:1195: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1196echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1197 { (exit 1); exit 1; }; } 1198 1199fi 1200echo "$as_me:1200: result: $ac_cv_host" >&5 1201echo "${ECHO_T}$ac_cv_host" >&6 1202host=$ac_cv_host 1203host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1204host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1205host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1206 1207 system_name="$host_os" 1208else 1209 system_name="`(uname -s -r) 2>/dev/null`" 1210 if test -z "$system_name" ; then 1211 system_name="`(hostname) 2>/dev/null`" 1212 fi 1213fi 1214test -n "$system_name" && 1215cat >>confdefs.h <<EOF 1216#define SYSTEM_NAME "$system_name" 1217EOF 1218 1219if test "${cf_cv_system_name+set}" = set; then 1220 echo $ECHO_N "(cached) $ECHO_C" >&6 1221else 1222 cf_cv_system_name="$system_name" 1223fi 1224 1225test -z "$system_name" && system_name="$cf_cv_system_name" 1226test -n "$cf_cv_system_name" && echo "$as_me:1226: result: Configuring for $cf_cv_system_name" >&5 1227echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6 1228 1229if test ".$system_name" != ".$cf_cv_system_name" ; then 1230 echo "$as_me:1230: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5 1231echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6 1232 { { echo "$as_me:1232: error: \"Please remove config.cache and try again.\"" >&5 1233echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;} 1234 { (exit 1); exit 1; }; } 1235fi 1236 1237### checks for alternative programs 1238 1239case "$host_os" in 1240(openedition) : "${CFLAGS=\"-O2 -Wc,dll -Wl,EDIT=NO\"}" 1241 : "${CPPFLAGS=\"-D_ALL_SOURCE\"}" 1242 : "${LIBS=\"/usr/lib/Xaw.x /usr/lib/SM.x /usr/lib/ICE.x /usr/lib/X11.x\"}" 1243 : "${CC=c89}";; 1244(darwin*) 1245 : "${LDFLAGS}=\"${LDFLAGS} -Wl,-bind_at_load\"";; 1246esac 1247 1248ac_ext=c 1249ac_cpp='$CPP $CPPFLAGS' 1250ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 1251ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 1252ac_compiler_gnu=$ac_cv_c_compiler_gnu 1253ac_main_return="return" 1254if test -n "$ac_tool_prefix"; then 1255 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1256set dummy ${ac_tool_prefix}gcc; ac_word=$2 1257echo "$as_me:1257: checking for $ac_word" >&5 1258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1259if test "${ac_cv_prog_CC+set}" = set; then 1260 echo $ECHO_N "(cached) $ECHO_C" >&6 1261else 1262 if test -n "$CC"; then 1263 ac_cv_prog_CC="$CC" # Let the user override the test. 1264else 1265 ac_save_IFS=$IFS; IFS=$ac_path_separator 1266ac_dummy="$PATH" 1267for ac_dir in $ac_dummy; do 1268 IFS=$ac_save_IFS 1269 test -z "$ac_dir" && ac_dir=. 1270 $as_executable_p "$ac_dir/$ac_word" || continue 1271ac_cv_prog_CC="${ac_tool_prefix}gcc" 1272echo "$as_me:1272: found $ac_dir/$ac_word" >&5 1273break 1274done 1275 1276fi 1277fi 1278CC=$ac_cv_prog_CC 1279if test -n "$CC"; then 1280 echo "$as_me:1280: result: $CC" >&5 1281echo "${ECHO_T}$CC" >&6 1282else 1283 echo "$as_me:1283: result: no" >&5 1284echo "${ECHO_T}no" >&6 1285fi 1286 1287fi 1288if test -z "$ac_cv_prog_CC"; then 1289 ac_ct_CC=$CC 1290 # Extract the first word of "gcc", so it can be a program name with args. 1291set dummy gcc; ac_word=$2 1292echo "$as_me:1292: checking for $ac_word" >&5 1293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1294if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1295 echo $ECHO_N "(cached) $ECHO_C" >&6 1296else 1297 if test -n "$ac_ct_CC"; then 1298 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1299else 1300 ac_save_IFS=$IFS; IFS=$ac_path_separator 1301ac_dummy="$PATH" 1302for ac_dir in $ac_dummy; do 1303 IFS=$ac_save_IFS 1304 test -z "$ac_dir" && ac_dir=. 1305 $as_executable_p "$ac_dir/$ac_word" || continue 1306ac_cv_prog_ac_ct_CC="gcc" 1307echo "$as_me:1307: found $ac_dir/$ac_word" >&5 1308break 1309done 1310 1311fi 1312fi 1313ac_ct_CC=$ac_cv_prog_ac_ct_CC 1314if test -n "$ac_ct_CC"; then 1315 echo "$as_me:1315: result: $ac_ct_CC" >&5 1316echo "${ECHO_T}$ac_ct_CC" >&6 1317else 1318 echo "$as_me:1318: result: no" >&5 1319echo "${ECHO_T}no" >&6 1320fi 1321 1322 CC=$ac_ct_CC 1323else 1324 CC="$ac_cv_prog_CC" 1325fi 1326 1327if test -z "$CC"; then 1328 if test -n "$ac_tool_prefix"; then 1329 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1330set dummy ${ac_tool_prefix}cc; ac_word=$2 1331echo "$as_me:1331: checking for $ac_word" >&5 1332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1333if test "${ac_cv_prog_CC+set}" = set; then 1334 echo $ECHO_N "(cached) $ECHO_C" >&6 1335else 1336 if test -n "$CC"; then 1337 ac_cv_prog_CC="$CC" # Let the user override the test. 1338else 1339 ac_save_IFS=$IFS; IFS=$ac_path_separator 1340ac_dummy="$PATH" 1341for ac_dir in $ac_dummy; do 1342 IFS=$ac_save_IFS 1343 test -z "$ac_dir" && ac_dir=. 1344 $as_executable_p "$ac_dir/$ac_word" || continue 1345ac_cv_prog_CC="${ac_tool_prefix}cc" 1346echo "$as_me:1346: found $ac_dir/$ac_word" >&5 1347break 1348done 1349 1350fi 1351fi 1352CC=$ac_cv_prog_CC 1353if test -n "$CC"; then 1354 echo "$as_me:1354: result: $CC" >&5 1355echo "${ECHO_T}$CC" >&6 1356else 1357 echo "$as_me:1357: result: no" >&5 1358echo "${ECHO_T}no" >&6 1359fi 1360 1361fi 1362if test -z "$ac_cv_prog_CC"; then 1363 ac_ct_CC=$CC 1364 # Extract the first word of "cc", so it can be a program name with args. 1365set dummy cc; ac_word=$2 1366echo "$as_me:1366: checking for $ac_word" >&5 1367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1368if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1369 echo $ECHO_N "(cached) $ECHO_C" >&6 1370else 1371 if test -n "$ac_ct_CC"; then 1372 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1373else 1374 ac_save_IFS=$IFS; IFS=$ac_path_separator 1375ac_dummy="$PATH" 1376for ac_dir in $ac_dummy; do 1377 IFS=$ac_save_IFS 1378 test -z "$ac_dir" && ac_dir=. 1379 $as_executable_p "$ac_dir/$ac_word" || continue 1380ac_cv_prog_ac_ct_CC="cc" 1381echo "$as_me:1381: found $ac_dir/$ac_word" >&5 1382break 1383done 1384 1385fi 1386fi 1387ac_ct_CC=$ac_cv_prog_ac_ct_CC 1388if test -n "$ac_ct_CC"; then 1389 echo "$as_me:1389: result: $ac_ct_CC" >&5 1390echo "${ECHO_T}$ac_ct_CC" >&6 1391else 1392 echo "$as_me:1392: result: no" >&5 1393echo "${ECHO_T}no" >&6 1394fi 1395 1396 CC=$ac_ct_CC 1397else 1398 CC="$ac_cv_prog_CC" 1399fi 1400 1401fi 1402if test -z "$CC"; then 1403 # Extract the first word of "cc", so it can be a program name with args. 1404set dummy cc; ac_word=$2 1405echo "$as_me:1405: checking for $ac_word" >&5 1406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1407if test "${ac_cv_prog_CC+set}" = set; then 1408 echo $ECHO_N "(cached) $ECHO_C" >&6 1409else 1410 if test -n "$CC"; then 1411 ac_cv_prog_CC="$CC" # Let the user override the test. 1412else 1413 ac_prog_rejected=no 1414 ac_save_IFS=$IFS; IFS=$ac_path_separator 1415ac_dummy="$PATH" 1416for ac_dir in $ac_dummy; do 1417 IFS=$ac_save_IFS 1418 test -z "$ac_dir" && ac_dir=. 1419 $as_executable_p "$ac_dir/$ac_word" || continue 1420if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1421 ac_prog_rejected=yes 1422 continue 1423fi 1424ac_cv_prog_CC="cc" 1425echo "$as_me:1425: found $ac_dir/$ac_word" >&5 1426break 1427done 1428 1429if test "$ac_prog_rejected" = yes; then 1430 # We found a bogon in the path, so make sure we never use it. 1431 set dummy $ac_cv_prog_CC 1432 shift 1433 if test $# != 0; then 1434 # We chose a different compiler from the bogus one. 1435 # However, it has the same basename, so the bogon will be chosen 1436 # first if we set CC to just the basename; use the full file name. 1437 shift 1438 set dummy "$ac_dir/$ac_word" ${1+"$@"} 1439 shift 1440 ac_cv_prog_CC="$@" 1441 fi 1442fi 1443fi 1444fi 1445CC=$ac_cv_prog_CC 1446if test -n "$CC"; then 1447 echo "$as_me:1447: result: $CC" >&5 1448echo "${ECHO_T}$CC" >&6 1449else 1450 echo "$as_me:1450: result: no" >&5 1451echo "${ECHO_T}no" >&6 1452fi 1453 1454fi 1455if test -z "$CC"; then 1456 if test -n "$ac_tool_prefix"; then 1457 for ac_prog in cl 1458 do 1459 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1460set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1461echo "$as_me:1461: checking for $ac_word" >&5 1462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1463if test "${ac_cv_prog_CC+set}" = set; then 1464 echo $ECHO_N "(cached) $ECHO_C" >&6 1465else 1466 if test -n "$CC"; then 1467 ac_cv_prog_CC="$CC" # Let the user override the test. 1468else 1469 ac_save_IFS=$IFS; IFS=$ac_path_separator 1470ac_dummy="$PATH" 1471for ac_dir in $ac_dummy; do 1472 IFS=$ac_save_IFS 1473 test -z "$ac_dir" && ac_dir=. 1474 $as_executable_p "$ac_dir/$ac_word" || continue 1475ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1476echo "$as_me:1476: found $ac_dir/$ac_word" >&5 1477break 1478done 1479 1480fi 1481fi 1482CC=$ac_cv_prog_CC 1483if test -n "$CC"; then 1484 echo "$as_me:1484: result: $CC" >&5 1485echo "${ECHO_T}$CC" >&6 1486else 1487 echo "$as_me:1487: result: no" >&5 1488echo "${ECHO_T}no" >&6 1489fi 1490 1491 test -n "$CC" && break 1492 done 1493fi 1494if test -z "$CC"; then 1495 ac_ct_CC=$CC 1496 for ac_prog in cl 1497do 1498 # Extract the first word of "$ac_prog", so it can be a program name with args. 1499set dummy $ac_prog; ac_word=$2 1500echo "$as_me:1500: checking for $ac_word" >&5 1501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1502if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1503 echo $ECHO_N "(cached) $ECHO_C" >&6 1504else 1505 if test -n "$ac_ct_CC"; then 1506 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1507else 1508 ac_save_IFS=$IFS; IFS=$ac_path_separator 1509ac_dummy="$PATH" 1510for ac_dir in $ac_dummy; do 1511 IFS=$ac_save_IFS 1512 test -z "$ac_dir" && ac_dir=. 1513 $as_executable_p "$ac_dir/$ac_word" || continue 1514ac_cv_prog_ac_ct_CC="$ac_prog" 1515echo "$as_me:1515: found $ac_dir/$ac_word" >&5 1516break 1517done 1518 1519fi 1520fi 1521ac_ct_CC=$ac_cv_prog_ac_ct_CC 1522if test -n "$ac_ct_CC"; then 1523 echo "$as_me:1523: result: $ac_ct_CC" >&5 1524echo "${ECHO_T}$ac_ct_CC" >&6 1525else 1526 echo "$as_me:1526: result: no" >&5 1527echo "${ECHO_T}no" >&6 1528fi 1529 1530 test -n "$ac_ct_CC" && break 1531done 1532 1533 CC=$ac_ct_CC 1534fi 1535 1536fi 1537 1538test -z "$CC" && { { echo "$as_me:1538: error: no acceptable cc found in \$PATH" >&5 1539echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1540 { (exit 1); exit 1; }; } 1541 1542# Provide some information about the compiler. 1543echo "$as_me:1543:" \ 1544 "checking for C compiler version" >&5 1545ac_compiler=`set X $ac_compile; echo "$2"` 1546{ (eval echo "$as_me:1546: \"$ac_compiler --version </dev/null >&5\"") >&5 1547 (eval $ac_compiler --version </dev/null >&5) 2>&5 1548 ac_status=$? 1549 echo "$as_me:1549: \$? = $ac_status" >&5 1550 (exit "$ac_status"); } 1551{ (eval echo "$as_me:1551: \"$ac_compiler -v </dev/null >&5\"") >&5 1552 (eval $ac_compiler -v </dev/null >&5) 2>&5 1553 ac_status=$? 1554 echo "$as_me:1554: \$? = $ac_status" >&5 1555 (exit "$ac_status"); } 1556{ (eval echo "$as_me:1556: \"$ac_compiler -V </dev/null >&5\"") >&5 1557 (eval $ac_compiler -V </dev/null >&5) 2>&5 1558 ac_status=$? 1559 echo "$as_me:1559: \$? = $ac_status" >&5 1560 (exit "$ac_status"); } 1561 1562cat >"conftest.$ac_ext" <<_ACEOF 1563#line 1563 "configure" 1564#include "confdefs.h" 1565 1566int 1567main (void) 1568{ 1569 1570 ; 1571 return 0; 1572} 1573_ACEOF 1574ac_clean_files_save=$ac_clean_files 1575ac_clean_files="$ac_clean_files a.out a.exe" 1576# Try to create an executable without -o first, disregard a.out. 1577# It will help us diagnose broken compilers, and finding out an intuition 1578# of exeext. 1579echo "$as_me:1579: checking for C compiler default output" >&5 1580echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1581ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'` 1582if { (eval echo "$as_me:1582: \"$ac_link_default\"") >&5 1583 (eval $ac_link_default) 2>&5 1584 ac_status=$? 1585 echo "$as_me:1585: \$? = $ac_status" >&5 1586 (exit "$ac_status"); }; then 1587 # Find the output, starting from the most likely. This scheme is 1588# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1589# resort. 1590for ac_file in `ls a.exe conftest.exe 2>/dev/null; 1591 ls a.out conftest 2>/dev/null; 1592 ls a.* conftest.* 2>/dev/null`; do 1593 case $ac_file in 1594 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1595 a.out ) # We found the default executable, but exeext='' is most 1596 # certainly right. 1597 break;; 1598 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1599 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 1600 export ac_cv_exeext 1601 break;; 1602 * ) break;; 1603 esac 1604done 1605else 1606 echo "$as_me: failed program was:" >&5 1607cat "conftest.$ac_ext" >&5 1608{ { echo "$as_me:1608: error: C compiler cannot create executables" >&5 1609echo "$as_me: error: C compiler cannot create executables" >&2;} 1610 { (exit 77); exit 77; }; } 1611fi 1612 1613ac_exeext=$ac_cv_exeext 1614echo "$as_me:1614: result: $ac_file" >&5 1615echo "${ECHO_T}$ac_file" >&6 1616 1617# Check the compiler produces executables we can run. If not, either 1618# the compiler is broken, or we cross compile. 1619echo "$as_me:1619: checking whether the C compiler works" >&5 1620echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1621# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1622# If not cross compiling, check that we can run a simple program. 1623if test "$cross_compiling" != yes; then 1624 if { ac_try='./$ac_file' 1625 { (eval echo "$as_me:1625: \"$ac_try\"") >&5 1626 (eval $ac_try) 2>&5 1627 ac_status=$? 1628 echo "$as_me:1628: \$? = $ac_status" >&5 1629 (exit "$ac_status"); }; }; then 1630 cross_compiling=no 1631 else 1632 if test "$cross_compiling" = maybe; then 1633 cross_compiling=yes 1634 else 1635 { { echo "$as_me:1635: error: cannot run C compiled programs. 1636If you meant to cross compile, use \`--host'." >&5 1637echo "$as_me: error: cannot run C compiled programs. 1638If you meant to cross compile, use \`--host'." >&2;} 1639 { (exit 1); exit 1; }; } 1640 fi 1641 fi 1642fi 1643echo "$as_me:1643: result: yes" >&5 1644echo "${ECHO_T}yes" >&6 1645 1646rm -f a.out a.exe "conftest$ac_cv_exeext" 1647ac_clean_files=$ac_clean_files_save 1648# Check the compiler produces executables we can run. If not, either 1649# the compiler is broken, or we cross compile. 1650echo "$as_me:1650: checking whether we are cross compiling" >&5 1651echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1652echo "$as_me:1652: result: $cross_compiling" >&5 1653echo "${ECHO_T}$cross_compiling" >&6 1654 1655echo "$as_me:1655: checking for executable suffix" >&5 1656echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1657if { (eval echo "$as_me:1657: \"$ac_link\"") >&5 1658 (eval $ac_link) 2>&5 1659 ac_status=$? 1660 echo "$as_me:1660: \$? = $ac_status" >&5 1661 (exit "$ac_status"); }; then 1662 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1663# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1664# work properly (i.e., refer to `conftest.exe'), while it won't with 1665# `rm'. 1666for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1667 case $ac_file in 1668 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1669 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1670 export ac_cv_exeext 1671 break;; 1672 * ) break;; 1673 esac 1674done 1675else 1676 { { echo "$as_me:1676: error: cannot compute EXEEXT: cannot compile and link" >&5 1677echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1678 { (exit 1); exit 1; }; } 1679fi 1680 1681rm -f "conftest$ac_cv_exeext" 1682echo "$as_me:1682: result: $ac_cv_exeext" >&5 1683echo "${ECHO_T}$ac_cv_exeext" >&6 1684 1685rm -f "conftest.$ac_ext" 1686EXEEXT=$ac_cv_exeext 1687ac_exeext=$EXEEXT 1688echo "$as_me:1688: checking for object suffix" >&5 1689echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 1690if test "${ac_cv_objext+set}" = set; then 1691 echo $ECHO_N "(cached) $ECHO_C" >&6 1692else 1693 cat >"conftest.$ac_ext" <<_ACEOF 1694#line 1694 "configure" 1695#include "confdefs.h" 1696 1697int 1698main (void) 1699{ 1700 1701 ; 1702 return 0; 1703} 1704_ACEOF 1705rm -f conftest.o conftest.obj 1706if { (eval echo "$as_me:1706: \"$ac_compile\"") >&5 1707 (eval $ac_compile) 2>&5 1708 ac_status=$? 1709 echo "$as_me:1709: \$? = $ac_status" >&5 1710 (exit "$ac_status"); }; then 1711 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1712 case $ac_file in 1713 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;; 1714 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1715 break;; 1716 esac 1717done 1718else 1719 echo "$as_me: failed program was:" >&5 1720cat "conftest.$ac_ext" >&5 1721{ { echo "$as_me:1721: error: cannot compute OBJEXT: cannot compile" >&5 1722echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1723 { (exit 1); exit 1; }; } 1724fi 1725 1726rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext" 1727fi 1728echo "$as_me:1728: result: $ac_cv_objext" >&5 1729echo "${ECHO_T}$ac_cv_objext" >&6 1730OBJEXT=$ac_cv_objext 1731ac_objext=$OBJEXT 1732echo "$as_me:1732: checking whether we are using the GNU C compiler" >&5 1733echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1734if test "${ac_cv_c_compiler_gnu+set}" = set; then 1735 echo $ECHO_N "(cached) $ECHO_C" >&6 1736else 1737 cat >"conftest.$ac_ext" <<_ACEOF 1738#line 1738 "configure" 1739#include "confdefs.h" 1740 1741int 1742main (void) 1743{ 1744#ifndef __GNUC__ 1745 choke me 1746#endif 1747 1748 ; 1749 return 0; 1750} 1751_ACEOF 1752rm -f "conftest.$ac_objext" 1753if { (eval echo "$as_me:1753: \"$ac_compile\"") >&5 1754 (eval $ac_compile) 2>&5 1755 ac_status=$? 1756 echo "$as_me:1756: \$? = $ac_status" >&5 1757 (exit "$ac_status"); } && 1758 { ac_try='test -s "conftest.$ac_objext"' 1759 { (eval echo "$as_me:1759: \"$ac_try\"") >&5 1760 (eval $ac_try) 2>&5 1761 ac_status=$? 1762 echo "$as_me:1762: \$? = $ac_status" >&5 1763 (exit "$ac_status"); }; }; then 1764 ac_compiler_gnu=yes 1765else 1766 echo "$as_me: failed program was:" >&5 1767cat "conftest.$ac_ext" >&5 1768ac_compiler_gnu=no 1769fi 1770rm -f "conftest.$ac_objext" "conftest.$ac_ext" 1771ac_cv_c_compiler_gnu=$ac_compiler_gnu 1772 1773fi 1774echo "$as_me:1774: result: $ac_cv_c_compiler_gnu" >&5 1775echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1776GCC=`test $ac_compiler_gnu = yes && echo yes` 1777ac_test_CFLAGS=${CFLAGS+set} 1778ac_save_CFLAGS=$CFLAGS 1779CFLAGS="-g" 1780echo "$as_me:1780: checking whether $CC accepts -g" >&5 1781echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1782if test "${ac_cv_prog_cc_g+set}" = set; then 1783 echo $ECHO_N "(cached) $ECHO_C" >&6 1784else 1785 cat >"conftest.$ac_ext" <<_ACEOF 1786#line 1786 "configure" 1787#include "confdefs.h" 1788 1789int 1790main (void) 1791{ 1792 1793 ; 1794 return 0; 1795} 1796_ACEOF 1797rm -f "conftest.$ac_objext" 1798if { (eval echo "$as_me:1798: \"$ac_compile\"") >&5 1799 (eval $ac_compile) 2>&5 1800 ac_status=$? 1801 echo "$as_me:1801: \$? = $ac_status" >&5 1802 (exit "$ac_status"); } && 1803 { ac_try='test -s "conftest.$ac_objext"' 1804 { (eval echo "$as_me:1804: \"$ac_try\"") >&5 1805 (eval $ac_try) 2>&5 1806 ac_status=$? 1807 echo "$as_me:1807: \$? = $ac_status" >&5 1808 (exit "$ac_status"); }; }; then 1809 ac_cv_prog_cc_g=yes 1810else 1811 echo "$as_me: failed program was:" >&5 1812cat "conftest.$ac_ext" >&5 1813ac_cv_prog_cc_g=no 1814fi 1815rm -f "conftest.$ac_objext" "conftest.$ac_ext" 1816fi 1817echo "$as_me:1817: result: $ac_cv_prog_cc_g" >&5 1818echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1819if test "$ac_test_CFLAGS" = set; then 1820 CFLAGS=$ac_save_CFLAGS 1821elif test $ac_cv_prog_cc_g = yes; then 1822 if test "$GCC" = yes; then 1823 CFLAGS="-g -O2" 1824 else 1825 CFLAGS="-g" 1826 fi 1827else 1828 if test "$GCC" = yes; then 1829 CFLAGS="-O2" 1830 else 1831 CFLAGS= 1832 fi 1833fi 1834# Some people use a C++ compiler to compile C. Since we use `exit', 1835# in C++ we need to declare it. In case someone uses the same compiler 1836# for both compiling C and C++ we need to have the C++ compiler decide 1837# the declaration of exit, since it's the most demanding environment. 1838cat >"conftest.$ac_ext" <<_ACEOF 1839#ifndef __cplusplus 1840 choke me 1841#endif 1842_ACEOF 1843rm -f "conftest.$ac_objext" 1844if { (eval echo "$as_me:1844: \"$ac_compile\"") >&5 1845 (eval $ac_compile) 2>&5 1846 ac_status=$? 1847 echo "$as_me:1847: \$? = $ac_status" >&5 1848 (exit "$ac_status"); } && 1849 { ac_try='test -s "conftest.$ac_objext"' 1850 { (eval echo "$as_me:1850: \"$ac_try\"") >&5 1851 (eval $ac_try) 2>&5 1852 ac_status=$? 1853 echo "$as_me:1853: \$? = $ac_status" >&5 1854 (exit "$ac_status"); }; }; then 1855 for ac_declaration in \ 1856 ''\ 1857 '#include <stdlib.h>' \ 1858 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1859 'extern "C" void std::exit (int); using std::exit;' \ 1860 'extern "C" void exit (int) throw ();' \ 1861 'extern "C" void exit (int);' \ 1862 'void exit (int);' 1863do 1864 cat >"conftest.$ac_ext" <<_ACEOF 1865#line 1865 "configure" 1866#include "confdefs.h" 1867#include <stdlib.h> 1868$ac_declaration 1869int 1870main (void) 1871{ 1872exit (42); 1873 ; 1874 return 0; 1875} 1876_ACEOF 1877rm -f "conftest.$ac_objext" 1878if { (eval echo "$as_me:1878: \"$ac_compile\"") >&5 1879 (eval $ac_compile) 2>&5 1880 ac_status=$? 1881 echo "$as_me:1881: \$? = $ac_status" >&5 1882 (exit "$ac_status"); } && 1883 { ac_try='test -s "conftest.$ac_objext"' 1884 { (eval echo "$as_me:1884: \"$ac_try\"") >&5 1885 (eval $ac_try) 2>&5 1886 ac_status=$? 1887 echo "$as_me:1887: \$? = $ac_status" >&5 1888 (exit "$ac_status"); }; }; then 1889 : 1890else 1891 echo "$as_me: failed program was:" >&5 1892cat "conftest.$ac_ext" >&5 1893continue 1894fi 1895rm -f "conftest.$ac_objext" "conftest.$ac_ext" 1896 cat >"conftest.$ac_ext" <<_ACEOF 1897#line 1897 "configure" 1898#include "confdefs.h" 1899$ac_declaration 1900int 1901main (void) 1902{ 1903exit (42); 1904 ; 1905 return 0; 1906} 1907_ACEOF 1908rm -f "conftest.$ac_objext" 1909if { (eval echo "$as_me:1909: \"$ac_compile\"") >&5 1910 (eval $ac_compile) 2>&5 1911 ac_status=$? 1912 echo "$as_me:1912: \$? = $ac_status" >&5 1913 (exit "$ac_status"); } && 1914 { ac_try='test -s "conftest.$ac_objext"' 1915 { (eval echo "$as_me:1915: \"$ac_try\"") >&5 1916 (eval $ac_try) 2>&5 1917 ac_status=$? 1918 echo "$as_me:1918: \$? = $ac_status" >&5 1919 (exit "$ac_status"); }; }; then 1920 break 1921else 1922 echo "$as_me: failed program was:" >&5 1923cat "conftest.$ac_ext" >&5 1924fi 1925rm -f "conftest.$ac_objext" "conftest.$ac_ext" 1926done 1927rm -rf conftest* 1928if test -n "$ac_declaration"; then 1929 echo '#ifdef __cplusplus' >>confdefs.h 1930 echo "$ac_declaration" >>confdefs.h 1931 echo '#endif' >>confdefs.h 1932fi 1933 1934else 1935 echo "$as_me: failed program was:" >&5 1936cat "conftest.$ac_ext" >&5 1937fi 1938rm -f "conftest.$ac_objext" "conftest.$ac_ext" 1939ac_ext=c 1940ac_cpp='$CPP $CPPFLAGS' 1941ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 1942ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 1943ac_compiler_gnu=$ac_cv_c_compiler_gnu 1944ac_main_return="return" 1945 1946GCC_VERSION=none 1947if test "$GCC" = yes ; then 1948 echo "$as_me:1948: checking version of $CC" >&5 1949echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 1950 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`" 1951 test -z "$GCC_VERSION" && GCC_VERSION=unknown 1952 echo "$as_me:1952: result: $GCC_VERSION" >&5 1953echo "${ECHO_T}$GCC_VERSION" >&6 1954fi 1955 1956INTEL_COMPILER=no 1957 1958if test "$GCC" = yes ; then 1959 case "$host_os" in 1960 (linux*|gnu*) 1961 echo "$as_me:1961: checking if this is really Intel C compiler" >&5 1962echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6 1963 cf_save_CFLAGS="$CFLAGS" 1964 CFLAGS="$CFLAGS -no-gcc" 1965 cat >"conftest.$ac_ext" <<_ACEOF 1966#line 1966 "configure" 1967#include "confdefs.h" 1968 1969int 1970main (void) 1971{ 1972 1973#ifdef __INTEL_COMPILER 1974#else 1975make an error 1976#endif 1977 1978 ; 1979 return 0; 1980} 1981_ACEOF 1982rm -f "conftest.$ac_objext" 1983if { (eval echo "$as_me:1983: \"$ac_compile\"") >&5 1984 (eval $ac_compile) 2>&5 1985 ac_status=$? 1986 echo "$as_me:1986: \$? = $ac_status" >&5 1987 (exit "$ac_status"); } && 1988 { ac_try='test -s "conftest.$ac_objext"' 1989 { (eval echo "$as_me:1989: \"$ac_try\"") >&5 1990 (eval $ac_try) 2>&5 1991 ac_status=$? 1992 echo "$as_me:1992: \$? = $ac_status" >&5 1993 (exit "$ac_status"); }; }; then 1994 INTEL_COMPILER=yes 1995cf_save_CFLAGS="$cf_save_CFLAGS -we147" 1996 1997else 1998 echo "$as_me: failed program was:" >&5 1999cat "conftest.$ac_ext" >&5 2000fi 2001rm -f "conftest.$ac_objext" "conftest.$ac_ext" 2002 CFLAGS="$cf_save_CFLAGS" 2003 echo "$as_me:2003: result: $INTEL_COMPILER" >&5 2004echo "${ECHO_T}$INTEL_COMPILER" >&6 2005 ;; 2006 esac 2007fi 2008 2009CLANG_COMPILER=no 2010 2011if test "$GCC" = yes ; then 2012 echo "$as_me:2012: checking if this is really Clang C compiler" >&5 2013echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6 2014 cf_save_CFLAGS="$CFLAGS" 2015 cat >"conftest.$ac_ext" <<_ACEOF 2016#line 2016 "configure" 2017#include "confdefs.h" 2018 2019int 2020main (void) 2021{ 2022 2023#ifdef __clang__ 2024#else 2025make an error 2026#endif 2027 2028 ; 2029 return 0; 2030} 2031_ACEOF 2032rm -f "conftest.$ac_objext" 2033if { (eval echo "$as_me:2033: \"$ac_compile\"") >&5 2034 (eval $ac_compile) 2>&5 2035 ac_status=$? 2036 echo "$as_me:2036: \$? = $ac_status" >&5 2037 (exit "$ac_status"); } && 2038 { ac_try='test -s "conftest.$ac_objext"' 2039 { (eval echo "$as_me:2039: \"$ac_try\"") >&5 2040 (eval $ac_try) 2>&5 2041 ac_status=$? 2042 echo "$as_me:2042: \$? = $ac_status" >&5 2043 (exit "$ac_status"); }; }; then 2044 CLANG_COMPILER=yes 2045 2046else 2047 echo "$as_me: failed program was:" >&5 2048cat "conftest.$ac_ext" >&5 2049fi 2050rm -f "conftest.$ac_objext" "conftest.$ac_ext" 2051 CFLAGS="$cf_save_CFLAGS" 2052 echo "$as_me:2052: result: $CLANG_COMPILER" >&5 2053echo "${ECHO_T}$CLANG_COMPILER" >&6 2054fi 2055 2056CLANG_VERSION=none 2057 2058if test "x$CLANG_COMPILER" = "xyes" ; then 2059 case "$CC" in 2060 (c[1-9][0-9]|*/c[1-9][0-9]) 2061 { echo "$as_me:2061: WARNING: replacing broken compiler alias $CC" >&5 2062echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;} 2063 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`" 2064 CC=clang 2065 ;; 2066 esac 2067 2068 echo "$as_me:2068: checking version of $CC" >&5 2069echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 2070 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.].*//'`" 2071 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown 2072 echo "$as_me:2072: result: $CLANG_VERSION" >&5 2073echo "${ECHO_T}$CLANG_VERSION" >&6 2074 2075 for cf_clang_opt in \ 2076 -Qunused-arguments \ 2077 -Wno-error=implicit-function-declaration 2078 do 2079 echo "$as_me:2079: checking if option $cf_clang_opt works" >&5 2080echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6 2081 cf_save_CFLAGS="$CFLAGS" 2082 CFLAGS="$CFLAGS $cf_clang_opt" 2083 cat >"conftest.$ac_ext" <<_ACEOF 2084#line 2084 "configure" 2085#include "confdefs.h" 2086 2087 #include <stdio.h> 2088int 2089main (void) 2090{ 2091 2092 printf("hello!\\n"); 2093 ; 2094 return 0; 2095} 2096_ACEOF 2097rm -f "conftest.$ac_objext" "conftest$ac_exeext" 2098if { (eval echo "$as_me:2098: \"$ac_link\"") >&5 2099 (eval $ac_link) 2>&5 2100 ac_status=$? 2101 echo "$as_me:2101: \$? = $ac_status" >&5 2102 (exit "$ac_status"); } && 2103 { ac_try='test -s "conftest$ac_exeext"' 2104 { (eval echo "$as_me:2104: \"$ac_try\"") >&5 2105 (eval $ac_try) 2>&5 2106 ac_status=$? 2107 echo "$as_me:2107: \$? = $ac_status" >&5 2108 (exit "$ac_status"); }; }; then 2109 2110 cf_clang_optok=yes 2111else 2112 echo "$as_me: failed program was:" >&5 2113cat "conftest.$ac_ext" >&5 2114 2115 cf_clang_optok=no 2116fi 2117rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 2118 echo "$as_me:2118: result: $cf_clang_optok" >&5 2119echo "${ECHO_T}$cf_clang_optok" >&6 2120 CFLAGS="$cf_save_CFLAGS" 2121 if test "$cf_clang_optok" = yes; then 2122 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6 2123 2124echo "${as_me:-configure}:2124: testing adding option $cf_clang_opt ..." 1>&5 2125 2126 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 2127 CFLAGS="${CFLAGS}$cf_clang_opt" 2128 2129 fi 2130 done 2131fi 2132 2133echo "$as_me:2133: checking for $CC option to accept ANSI C" >&5 2134echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2135if test "${ac_cv_prog_cc_stdc+set}" = set; then 2136 echo $ECHO_N "(cached) $ECHO_C" >&6 2137else 2138 ac_cv_prog_cc_stdc=no 2139ac_save_CC=$CC 2140cat >"conftest.$ac_ext" <<_ACEOF 2141#line 2141 "configure" 2142#include "confdefs.h" 2143#include <stdarg.h> 2144#include <stdio.h> 2145#include <sys/types.h> 2146#include <sys/stat.h> 2147/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2148struct buf { int x; }; 2149FILE * (*rcsopen) (struct buf *, struct stat *, int); 2150static char *e (p, i) 2151 char **p; 2152 int i; 2153{ 2154 return p[i]; 2155} 2156static char *f (char * (*g) (char **, int), char **p, ...) 2157{ 2158 char *s; 2159 va_list v; 2160 va_start (v,p); 2161 s = g (p, va_arg (v,int)); 2162 va_end (v); 2163 return s; 2164} 2165int test (int i, double x); 2166struct s1 {int (*f) (int a);}; 2167struct s2 {int (*f) (double a);}; 2168int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2169int argc; 2170char **argv; 2171int 2172main (void) 2173{ 2174return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2175 ; 2176 return 0; 2177} 2178_ACEOF 2179# Don't try gcc -ansi; that turns off useful extensions and 2180# breaks some systems' header files. 2181# AIX -qlanglvl=ansi 2182# Ultrix and OSF/1 -std1 2183# HP-UX 10.20 and later -Ae 2184# HP-UX older versions -Aa -D_HPUX_SOURCE 2185# SVR4 -Xc -D__EXTENSIONS__ 2186for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2187do 2188 CC="$ac_save_CC $ac_arg" 2189 rm -f "conftest.$ac_objext" 2190if { (eval echo "$as_me:2190: \"$ac_compile\"") >&5 2191 (eval $ac_compile) 2>&5 2192 ac_status=$? 2193 echo "$as_me:2193: \$? = $ac_status" >&5 2194 (exit "$ac_status"); } && 2195 { ac_try='test -s "conftest.$ac_objext"' 2196 { (eval echo "$as_me:2196: \"$ac_try\"") >&5 2197 (eval $ac_try) 2>&5 2198 ac_status=$? 2199 echo "$as_me:2199: \$? = $ac_status" >&5 2200 (exit "$ac_status"); }; }; then 2201 ac_cv_prog_cc_stdc=$ac_arg 2202break 2203else 2204 echo "$as_me: failed program was:" >&5 2205cat "conftest.$ac_ext" >&5 2206fi 2207rm -f "conftest.$ac_objext" 2208done 2209rm -f "conftest.$ac_ext" "conftest.$ac_objext" 2210CC=$ac_save_CC 2211 2212fi 2213 2214case "x$ac_cv_prog_cc_stdc" in 2215 x|xno) 2216 echo "$as_me:2216: result: none needed" >&5 2217echo "${ECHO_T}none needed" >&6 ;; 2218 *) 2219 echo "$as_me:2219: result: $ac_cv_prog_cc_stdc" >&5 2220echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2221 CC="$CC $ac_cv_prog_cc_stdc" ;; 2222esac 2223 2224# This should have been defined by AC_PROG_CC 2225: "${CC:=cc}" 2226 2227echo "$as_me:2227: checking \$CFLAGS variable" >&5 2228echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6 2229case "x$CFLAGS" in 2230(*-[IUD]*) 2231 echo "$as_me:2231: result: broken" >&5 2232echo "${ECHO_T}broken" >&6 2233 { echo "$as_me:2233: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5 2234echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;} 2235 cf_flags="$CFLAGS" 2236 CFLAGS= 2237 for cf_arg in $cf_flags 2238 do 2239 2240cf_fix_cppflags=no 2241cf_new_cflags= 2242cf_new_cppflags= 2243cf_new_extra_cppflags= 2244 2245for cf_add_cflags in $cf_arg 2246do 2247case "$cf_fix_cppflags" in 2248(no) 2249 case "$cf_add_cflags" in 2250 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 2251 case "$cf_add_cflags" in 2252 (-D*) 2253 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2254 2255 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2256 && test -z "${cf_tst_cflags}" \ 2257 && cf_fix_cppflags=yes 2258 2259 if test "$cf_fix_cppflags" = yes ; then 2260 2261 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2262 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2263 2264 continue 2265 elif test "${cf_tst_cflags}" = "\"'" ; then 2266 2267 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2268 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2269 2270 continue 2271 fi 2272 ;; 2273 esac 2274 case "$CPPFLAGS" in 2275 (*$cf_add_cflags) 2276 ;; 2277 (*) 2278 case "$cf_add_cflags" in 2279 (-D*) 2280 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2281 2282CPPFLAGS=`echo "$CPPFLAGS" | \ 2283 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2284 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2285 2286 ;; 2287 esac 2288 2289 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 2290 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 2291 2292 ;; 2293 esac 2294 ;; 2295 (*) 2296 2297 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 2298 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 2299 2300 ;; 2301 esac 2302 ;; 2303(yes) 2304 2305 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2306 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2307 2308 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 2309 2310 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2311 && test -z "${cf_tst_cflags}" \ 2312 && cf_fix_cppflags=no 2313 ;; 2314esac 2315done 2316 2317if test -n "$cf_new_cflags" ; then 2318 2319 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 2320 CFLAGS="${CFLAGS}$cf_new_cflags" 2321 2322fi 2323 2324if test -n "$cf_new_cppflags" ; then 2325 2326 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 2327 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 2328 2329fi 2330 2331if test -n "$cf_new_extra_cppflags" ; then 2332 2333 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 2334 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 2335 2336fi 2337 2338 done 2339 ;; 2340(*) 2341 echo "$as_me:2341: result: ok" >&5 2342echo "${ECHO_T}ok" >&6 2343 ;; 2344esac 2345 2346echo "$as_me:2346: checking \$CC variable" >&5 2347echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6 2348case "$CC" in 2349(*[\ \ ]-*) 2350 echo "$as_me:2350: result: broken" >&5 2351echo "${ECHO_T}broken" >&6 2352 { echo "$as_me:2352: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5 2353echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;} 2354 # humor him... 2355 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'` 2356 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'` 2357 CC="$cf_prog" 2358 for cf_arg in $cf_flags 2359 do 2360 case "x$cf_arg" in 2361 (x-[IUDfgOW]*) 2362 2363cf_fix_cppflags=no 2364cf_new_cflags= 2365cf_new_cppflags= 2366cf_new_extra_cppflags= 2367 2368for cf_add_cflags in $cf_arg 2369do 2370case "$cf_fix_cppflags" in 2371(no) 2372 case "$cf_add_cflags" in 2373 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 2374 case "$cf_add_cflags" in 2375 (-D*) 2376 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2377 2378 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2379 && test -z "${cf_tst_cflags}" \ 2380 && cf_fix_cppflags=yes 2381 2382 if test "$cf_fix_cppflags" = yes ; then 2383 2384 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2385 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2386 2387 continue 2388 elif test "${cf_tst_cflags}" = "\"'" ; then 2389 2390 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2391 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2392 2393 continue 2394 fi 2395 ;; 2396 esac 2397 case "$CPPFLAGS" in 2398 (*$cf_add_cflags) 2399 ;; 2400 (*) 2401 case "$cf_add_cflags" in 2402 (-D*) 2403 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2404 2405CPPFLAGS=`echo "$CPPFLAGS" | \ 2406 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2407 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2408 2409 ;; 2410 esac 2411 2412 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 2413 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 2414 2415 ;; 2416 esac 2417 ;; 2418 (*) 2419 2420 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 2421 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 2422 2423 ;; 2424 esac 2425 ;; 2426(yes) 2427 2428 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2429 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2430 2431 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 2432 2433 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2434 && test -z "${cf_tst_cflags}" \ 2435 && cf_fix_cppflags=no 2436 ;; 2437esac 2438done 2439 2440if test -n "$cf_new_cflags" ; then 2441 2442 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 2443 CFLAGS="${CFLAGS}$cf_new_cflags" 2444 2445fi 2446 2447if test -n "$cf_new_cppflags" ; then 2448 2449 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 2450 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 2451 2452fi 2453 2454if test -n "$cf_new_extra_cppflags" ; then 2455 2456 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 2457 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 2458 2459fi 2460 2461 ;; 2462 (*) 2463 CC="$CC $cf_arg" 2464 ;; 2465 esac 2466 done 2467 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6 2468 2469echo "${as_me:-configure}:2469: testing resulting CC: '$CC' ..." 1>&5 2470 2471 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6 2472 2473echo "${as_me:-configure}:2473: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5 2474 2475 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6 2476 2477echo "${as_me:-configure}:2477: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5 2478 2479 ;; 2480(*) 2481 echo "$as_me:2481: result: ok" >&5 2482echo "${ECHO_T}ok" >&6 2483 ;; 2484esac 2485 2486for ac_prog in ggrep grep 2487do 2488 # Extract the first word of "$ac_prog", so it can be a program name with args. 2489set dummy $ac_prog; ac_word=$2 2490echo "$as_me:2490: checking for $ac_word" >&5 2491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2492if test "${ac_cv_prog_GREP+set}" = set; then 2493 echo $ECHO_N "(cached) $ECHO_C" >&6 2494else 2495 if test -n "$GREP"; then 2496 ac_cv_prog_GREP="$GREP" # Let the user override the test. 2497else 2498 ac_save_IFS=$IFS; IFS=$ac_path_separator 2499ac_dummy="$PATH" 2500for ac_dir in $ac_dummy; do 2501 IFS=$ac_save_IFS 2502 test -z "$ac_dir" && ac_dir=. 2503 $as_executable_p "$ac_dir/$ac_word" || continue 2504ac_cv_prog_GREP="$ac_prog" 2505echo "$as_me:2505: found $ac_dir/$ac_word" >&5 2506break 2507done 2508 2509fi 2510fi 2511GREP=$ac_cv_prog_GREP 2512if test -n "$GREP"; then 2513 echo "$as_me:2513: result: $GREP" >&5 2514echo "${ECHO_T}$GREP" >&6 2515else 2516 echo "$as_me:2516: result: no" >&5 2517echo "${ECHO_T}no" >&6 2518fi 2519 2520 test -n "$GREP" && break 2521done 2522test -n "$GREP" || GREP=": " 2523 2524echo "$as_me:2524: checking for egrep" >&5 2525echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2526if test "${ac_cv_path_EGREP+set}" = set; then 2527 echo $ECHO_N "(cached) $ECHO_C" >&6 2528else 2529 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 2530 then ac_cv_path_EGREP="$GREP -E" 2531 else 2532 for ac_prog in gegrep egrep 2533do 2534 # Extract the first word of "$ac_prog", so it can be a program name with args. 2535set dummy $ac_prog; ac_word=$2 2536echo "$as_me:2536: checking for $ac_word" >&5 2537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2538if test "${ac_cv_path_EGREP+set}" = set; then 2539 echo $ECHO_N "(cached) $ECHO_C" >&6 2540else 2541 case $EGREP in 2542 [\\/]* | ?:[\\/]*) 2543 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 2544 ;; 2545 *) 2546 ac_save_IFS=$IFS; IFS=$ac_path_separator 2547ac_dummy="$PATH" 2548for ac_dir in $ac_dummy; do 2549 IFS=$ac_save_IFS 2550 test -z "$ac_dir" && ac_dir=. 2551 if $as_executable_p "$ac_dir/$ac_word"; then 2552 ac_cv_path_EGREP="$ac_dir/$ac_word" 2553 echo "$as_me:2553: found $ac_dir/$ac_word" >&5 2554 break 2555fi 2556done 2557 2558 ;; 2559esac 2560fi 2561EGREP=$ac_cv_path_EGREP 2562 2563if test -n "$EGREP"; then 2564 echo "$as_me:2564: result: $EGREP" >&5 2565echo "${ECHO_T}$EGREP" >&6 2566else 2567 echo "$as_me:2567: result: no" >&5 2568echo "${ECHO_T}no" >&6 2569fi 2570 2571 test -n "$EGREP" && break 2572done 2573test -n "$EGREP" || EGREP=": " 2574 2575 test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:2575: error: cannot find workable egrep" >&5 2576echo "$as_me: error: cannot find workable egrep" >&2;} 2577 { (exit 1); exit 1; }; } 2578 fi 2579fi 2580echo "$as_me:2580: result: $ac_cv_path_EGREP" >&5 2581echo "${ECHO_T}$ac_cv_path_EGREP" >&6 2582 EGREP="$ac_cv_path_EGREP" 2583 2584ac_ext=c 2585ac_cpp='$CPP $CPPFLAGS' 2586ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 2587ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 2588ac_compiler_gnu=$ac_cv_c_compiler_gnu 2589ac_main_return="return" 2590echo "$as_me:2590: checking how to run the C preprocessor" >&5 2591echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2592# On Suns, sometimes $CPP names a directory. 2593if test -n "$CPP" && test -d "$CPP"; then 2594 CPP= 2595fi 2596if test -z "$CPP"; then 2597 if test "${ac_cv_prog_CPP+set}" = set; then 2598 echo $ECHO_N "(cached) $ECHO_C" >&6 2599else 2600 # Double quotes because CPP needs to be expanded 2601 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2602 do 2603 ac_preproc_ok=false 2604for ac_c_preproc_warn_flag in '' yes 2605do 2606 # Use a header file that comes with gcc, so configuring glibc 2607 # with a fresh cross-compiler works. 2608 # On the NeXT, cc -E runs the code through the compiler's parser, 2609 # not just through cpp. "Syntax error" is here to catch this case. 2610 cat >"conftest.$ac_ext" <<_ACEOF 2611#line 2611 "configure" 2612#include "confdefs.h" 2613#include <assert.h> 2614 Syntax error 2615_ACEOF 2616if { (eval echo "$as_me:2616: \"$ac_cpp "conftest.$ac_ext"\"") >&5 2617 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 2618 ac_status=$? 2619 $EGREP -v '^ *\+' conftest.er1 >conftest.err 2620 rm -f conftest.er1 2621 cat conftest.err >&5 2622 echo "$as_me:2622: \$? = $ac_status" >&5 2623 (exit "$ac_status"); } >/dev/null; then 2624 if test -s conftest.err; then 2625 ac_cpp_err=$ac_c_preproc_warn_flag 2626 else 2627 ac_cpp_err= 2628 fi 2629else 2630 ac_cpp_err=yes 2631fi 2632if test -z "$ac_cpp_err"; then 2633 : 2634else 2635 echo "$as_me: failed program was:" >&5 2636 cat "conftest.$ac_ext" >&5 2637 # Broken: fails on valid input. 2638continue 2639fi 2640rm -f conftest.err "conftest.$ac_ext" 2641 2642 # OK, works on sane cases. Now check whether non-existent headers 2643 # can be detected and how. 2644 cat >"conftest.$ac_ext" <<_ACEOF 2645#line 2645 "configure" 2646#include "confdefs.h" 2647#include <ac_nonexistent.h> 2648_ACEOF 2649if { (eval echo "$as_me:2649: \"$ac_cpp "conftest.$ac_ext"\"") >&5 2650 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 2651 ac_status=$? 2652 $EGREP -v '^ *\+' conftest.er1 >conftest.err 2653 rm -f conftest.er1 2654 cat conftest.err >&5 2655 echo "$as_me:2655: \$? = $ac_status" >&5 2656 (exit "$ac_status"); } >/dev/null; then 2657 if test -s conftest.err; then 2658 ac_cpp_err=$ac_c_preproc_warn_flag 2659 else 2660 ac_cpp_err= 2661 fi 2662else 2663 ac_cpp_err=yes 2664fi 2665if test -z "$ac_cpp_err"; then 2666 # Broken: success on invalid input. 2667continue 2668else 2669 echo "$as_me: failed program was:" >&5 2670 cat "conftest.$ac_ext" >&5 2671 # Passes both tests. 2672ac_preproc_ok=: 2673break 2674fi 2675rm -f conftest.err "conftest.$ac_ext" 2676 2677done 2678# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2679rm -f conftest.err "conftest.$ac_ext" 2680if $ac_preproc_ok; then 2681 break 2682fi 2683 2684 done 2685 ac_cv_prog_CPP=$CPP 2686 2687fi 2688 CPP=$ac_cv_prog_CPP 2689else 2690 ac_cv_prog_CPP=$CPP 2691fi 2692echo "$as_me:2692: result: $CPP" >&5 2693echo "${ECHO_T}$CPP" >&6 2694ac_preproc_ok=false 2695for ac_c_preproc_warn_flag in '' yes 2696do 2697 # Use a header file that comes with gcc, so configuring glibc 2698 # with a fresh cross-compiler works. 2699 # On the NeXT, cc -E runs the code through the compiler's parser, 2700 # not just through cpp. "Syntax error" is here to catch this case. 2701 cat >"conftest.$ac_ext" <<_ACEOF 2702#line 2702 "configure" 2703#include "confdefs.h" 2704#include <assert.h> 2705 Syntax error 2706_ACEOF 2707if { (eval echo "$as_me:2707: \"$ac_cpp "conftest.$ac_ext"\"") >&5 2708 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 2709 ac_status=$? 2710 $EGREP -v '^ *\+' conftest.er1 >conftest.err 2711 rm -f conftest.er1 2712 cat conftest.err >&5 2713 echo "$as_me:2713: \$? = $ac_status" >&5 2714 (exit "$ac_status"); } >/dev/null; then 2715 if test -s conftest.err; then 2716 ac_cpp_err=$ac_c_preproc_warn_flag 2717 else 2718 ac_cpp_err= 2719 fi 2720else 2721 ac_cpp_err=yes 2722fi 2723if test -z "$ac_cpp_err"; then 2724 : 2725else 2726 echo "$as_me: failed program was:" >&5 2727 cat "conftest.$ac_ext" >&5 2728 # Broken: fails on valid input. 2729continue 2730fi 2731rm -f conftest.err "conftest.$ac_ext" 2732 2733 # OK, works on sane cases. Now check whether non-existent headers 2734 # can be detected and how. 2735 cat >"conftest.$ac_ext" <<_ACEOF 2736#line 2736 "configure" 2737#include "confdefs.h" 2738#include <ac_nonexistent.h> 2739_ACEOF 2740if { (eval echo "$as_me:2740: \"$ac_cpp "conftest.$ac_ext"\"") >&5 2741 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 2742 ac_status=$? 2743 $EGREP -v '^ *\+' conftest.er1 >conftest.err 2744 rm -f conftest.er1 2745 cat conftest.err >&5 2746 echo "$as_me:2746: \$? = $ac_status" >&5 2747 (exit "$ac_status"); } >/dev/null; then 2748 if test -s conftest.err; then 2749 ac_cpp_err=$ac_c_preproc_warn_flag 2750 else 2751 ac_cpp_err= 2752 fi 2753else 2754 ac_cpp_err=yes 2755fi 2756if test -z "$ac_cpp_err"; then 2757 # Broken: success on invalid input. 2758continue 2759else 2760 echo "$as_me: failed program was:" >&5 2761 cat "conftest.$ac_ext" >&5 2762 # Passes both tests. 2763ac_preproc_ok=: 2764break 2765fi 2766rm -f conftest.err "conftest.$ac_ext" 2767 2768done 2769# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2770rm -f conftest.err "conftest.$ac_ext" 2771if $ac_preproc_ok; then 2772 : 2773else 2774 { { echo "$as_me:2774: error: C preprocessor \"$CPP\" fails sanity check" >&5 2775echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 2776 { (exit 1); exit 1; }; } 2777fi 2778 2779ac_ext=c 2780ac_cpp='$CPP $CPPFLAGS' 2781ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 2782ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 2783ac_compiler_gnu=$ac_cv_c_compiler_gnu 2784ac_main_return="return" 2785 2786for ac_prog in mawk gawk nawk awk 2787do 2788 # Extract the first word of "$ac_prog", so it can be a program name with args. 2789set dummy $ac_prog; ac_word=$2 2790echo "$as_me:2790: checking for $ac_word" >&5 2791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2792if test "${ac_cv_prog_AWK+set}" = set; then 2793 echo $ECHO_N "(cached) $ECHO_C" >&6 2794else 2795 if test -n "$AWK"; then 2796 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2797else 2798 ac_save_IFS=$IFS; IFS=$ac_path_separator 2799ac_dummy="$PATH" 2800for ac_dir in $ac_dummy; do 2801 IFS=$ac_save_IFS 2802 test -z "$ac_dir" && ac_dir=. 2803 $as_executable_p "$ac_dir/$ac_word" || continue 2804ac_cv_prog_AWK="$ac_prog" 2805echo "$as_me:2805: found $ac_dir/$ac_word" >&5 2806break 2807done 2808 2809fi 2810fi 2811AWK=$ac_cv_prog_AWK 2812if test -n "$AWK"; then 2813 echo "$as_me:2813: result: $AWK" >&5 2814echo "${ECHO_T}$AWK" >&6 2815else 2816 echo "$as_me:2816: result: no" >&5 2817echo "${ECHO_T}no" >&6 2818fi 2819 2820 test -n "$AWK" && break 2821done 2822 2823# Find a good install program. We prefer a C program (faster), 2824# so one script is as good as another. But avoid the broken or 2825# incompatible versions: 2826# SysV /etc/install, /usr/sbin/install 2827# SunOS /usr/etc/install 2828# IRIX /sbin/install 2829# AIX /bin/install 2830# AmigaOS /C/install, which installs bootblocks on floppy discs 2831# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2832# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2833# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2834# ./install, which can be erroneously created by make from ./install.sh. 2835echo "$as_me:2835: checking for a BSD compatible install" >&5 2836echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 2837if test -z "$INSTALL"; then 2838if test "${ac_cv_path_install+set}" = set; then 2839 echo $ECHO_N "(cached) $ECHO_C" >&6 2840else 2841 ac_save_IFS=$IFS; IFS=$ac_path_separator 2842 for ac_dir in $PATH; do 2843 IFS=$ac_save_IFS 2844 # Account for people who put trailing slashes in PATH elements. 2845 case $ac_dir/ in 2846 / | ./ | .// | /cC/* \ 2847 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 2848 | /usr/ucb/* ) ;; 2849 *) 2850 # OSF1 and SCO ODT 3.0 have their own names for install. 2851 # Don't use installbsd from OSF since it installs stuff as root 2852 # by default. 2853 for ac_prog in ginstall scoinst install; do 2854 if $as_executable_p "$ac_dir/$ac_prog"; then 2855 if test $ac_prog = install && 2856 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2857 # AIX install. It has an incompatible calling convention. 2858 : 2859 elif test $ac_prog = install && 2860 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2861 # program-specific install script used by HP pwplus--don't use. 2862 : 2863 else 2864 ac_cv_path_install="$ac_dir/$ac_prog -c" 2865 break 2 2866 fi 2867 fi 2868 done 2869 ;; 2870 esac 2871 done 2872 2873fi 2874 if test "${ac_cv_path_install+set}" = set; then 2875 INSTALL=$ac_cv_path_install 2876 else 2877 # As a last resort, use the slow shell script. We don't cache a 2878 # path for INSTALL within a source directory, because that will 2879 # break other packages using the cache if that directory is 2880 # removed, or if the path is relative. 2881 INSTALL=$ac_install_sh 2882 fi 2883fi 2884echo "$as_me:2884: result: $INSTALL" >&5 2885echo "${ECHO_T}$INSTALL" >&6 2886 2887# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2888# It thinks the first close brace ends the variable substitution. 2889test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2890 2891test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2892 2893test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2894 2895echo "$as_me:2895: checking whether ln -s works" >&5 2896echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2897LN_S=$as_ln_s 2898if test "$LN_S" = "ln -s"; then 2899 echo "$as_me:2899: result: yes" >&5 2900echo "${ECHO_T}yes" >&6 2901else 2902 echo "$as_me:2902: result: no, using $LN_S" >&5 2903echo "${ECHO_T}no, using $LN_S" >&6 2904fi 2905 2906test "$program_prefix" != NONE && 2907 program_transform_name="s,^,$program_prefix,;$program_transform_name" 2908# Use a double $ so make ignores it. 2909test "$program_suffix" != NONE && 2910 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 2911# Double any \ or $. echo might interpret backslashes. 2912# By default was `s,x,x', remove it if useless. 2913cat <<\_ACEOF >conftest.sed 2914s/[\\$]/&&/g;s/;s,x,x,$// 2915_ACEOF 2916program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2917rm conftest.sed 2918 2919for ac_prog in lint cppcheck splint 2920do 2921 # Extract the first word of "$ac_prog", so it can be a program name with args. 2922set dummy $ac_prog; ac_word=$2 2923echo "$as_me:2923: checking for $ac_word" >&5 2924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2925if test "${ac_cv_prog_LINT+set}" = set; then 2926 echo $ECHO_N "(cached) $ECHO_C" >&6 2927else 2928 if test -n "$LINT"; then 2929 ac_cv_prog_LINT="$LINT" # Let the user override the test. 2930else 2931 ac_save_IFS=$IFS; IFS=$ac_path_separator 2932ac_dummy="$PATH" 2933for ac_dir in $ac_dummy; do 2934 IFS=$ac_save_IFS 2935 test -z "$ac_dir" && ac_dir=. 2936 $as_executable_p "$ac_dir/$ac_word" || continue 2937ac_cv_prog_LINT="$ac_prog" 2938echo "$as_me:2938: found $ac_dir/$ac_word" >&5 2939break 2940done 2941 2942fi 2943fi 2944LINT=$ac_cv_prog_LINT 2945if test -n "$LINT"; then 2946 echo "$as_me:2946: result: $LINT" >&5 2947echo "${ECHO_T}$LINT" >&6 2948else 2949 echo "$as_me:2949: result: no" >&5 2950echo "${ECHO_T}no" >&6 2951fi 2952 2953 test -n "$LINT" && break 2954done 2955 2956case "x$LINT" in 2957(xcppcheck|x*/cppcheck) 2958 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all" 2959 ;; 2960esac 2961 2962### checks for compiler characteristics 2963 2964echo "$as_me:2964: checking if the POSIX test-macros are already defined" >&5 2965echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6 2966if test "${cf_cv_posix_visible+set}" = set; then 2967 echo $ECHO_N "(cached) $ECHO_C" >&6 2968else 2969 2970cat >"conftest.$ac_ext" <<_ACEOF 2971#line 2971 "configure" 2972#include "confdefs.h" 2973#include <stdio.h> 2974int 2975main (void) 2976{ 2977 2978#if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \ 2979 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \ 2980 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \ 2981 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0) 2982#error conflicting symbols found 2983#endif 2984 2985 ; 2986 return 0; 2987} 2988_ACEOF 2989rm -f "conftest.$ac_objext" 2990if { (eval echo "$as_me:2990: \"$ac_compile\"") >&5 2991 (eval $ac_compile) 2>&5 2992 ac_status=$? 2993 echo "$as_me:2993: \$? = $ac_status" >&5 2994 (exit "$ac_status"); } && 2995 { ac_try='test -s "conftest.$ac_objext"' 2996 { (eval echo "$as_me:2996: \"$ac_try\"") >&5 2997 (eval $ac_try) 2>&5 2998 ac_status=$? 2999 echo "$as_me:2999: \$? = $ac_status" >&5 3000 (exit "$ac_status"); }; }; then 3001 cf_cv_posix_visible=no 3002else 3003 echo "$as_me: failed program was:" >&5 3004cat "conftest.$ac_ext" >&5 3005cf_cv_posix_visible=yes 3006fi 3007rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3008 3009fi 3010echo "$as_me:3010: result: $cf_cv_posix_visible" >&5 3011echo "${ECHO_T}$cf_cv_posix_visible" >&6 3012 3013if test "$cf_cv_posix_visible" = no; then 3014 3015cf_XOPEN_SOURCE=700 3016cf_POSIX_C_SOURCE=199506L 3017cf_xopen_source= 3018 3019case "$host_os" in 3020(aix[4-7]*) 3021 cf_xopen_source="-D_ALL_SOURCE" 3022 ;; 3023(msys) 3024 cf_XOPEN_SOURCE=600 3025 ;; 3026(darwin[0-8].*) 3027 cf_xopen_source="-D_APPLE_C_SOURCE" 3028 ;; 3029(darwin*) 3030 cf_xopen_source="-D_DARWIN_C_SOURCE" 3031 cf_XOPEN_SOURCE= 3032 ;; 3033(freebsd*|dragonfly*|midnightbsd*) 3034 # 5.x headers associate 3035 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L 3036 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L 3037 cf_POSIX_C_SOURCE=200112L 3038 cf_XOPEN_SOURCE=600 3039 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 3040 ;; 3041(hpux11*) 3042 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500" 3043 ;; 3044(hpux*) 3045 cf_xopen_source="-D_HPUX_SOURCE" 3046 ;; 3047(irix[56].*) 3048 cf_xopen_source="-D_SGI_SOURCE" 3049 cf_XOPEN_SOURCE= 3050 ;; 3051(linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin) 3052 3053cf_gnu_xopen_source=$cf_XOPEN_SOURCE 3054 3055echo "$as_me:3055: checking if this is the GNU C library" >&5 3056echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6 3057if test "${cf_cv_gnu_library+set}" = set; then 3058 echo $ECHO_N "(cached) $ECHO_C" >&6 3059else 3060 3061cat >"conftest.$ac_ext" <<_ACEOF 3062#line 3062 "configure" 3063#include "confdefs.h" 3064#include <sys/types.h> 3065int 3066main (void) 3067{ 3068 3069 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0 3070 return 0; 3071 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0 3072 return 0; 3073 #else 3074 # error not GNU C library 3075 #endif 3076 ; 3077 return 0; 3078} 3079_ACEOF 3080rm -f "conftest.$ac_objext" 3081if { (eval echo "$as_me:3081: \"$ac_compile\"") >&5 3082 (eval $ac_compile) 2>&5 3083 ac_status=$? 3084 echo "$as_me:3084: \$? = $ac_status" >&5 3085 (exit "$ac_status"); } && 3086 { ac_try='test -s "conftest.$ac_objext"' 3087 { (eval echo "$as_me:3087: \"$ac_try\"") >&5 3088 (eval $ac_try) 2>&5 3089 ac_status=$? 3090 echo "$as_me:3090: \$? = $ac_status" >&5 3091 (exit "$ac_status"); }; }; then 3092 cf_cv_gnu_library=yes 3093else 3094 echo "$as_me: failed program was:" >&5 3095cat "conftest.$ac_ext" >&5 3096cf_cv_gnu_library=no 3097fi 3098rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3099 3100fi 3101echo "$as_me:3101: result: $cf_cv_gnu_library" >&5 3102echo "${ECHO_T}$cf_cv_gnu_library" >&6 3103 3104if test x$cf_cv_gnu_library = xyes; then 3105 3106 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE 3107 # was changed to help a little. newlib incorporated the change about 4 3108 # years later. 3109 echo "$as_me:3109: checking if _DEFAULT_SOURCE can be used as a basis" >&5 3110echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6 3111if test "${cf_cv_gnu_library_219+set}" = set; then 3112 echo $ECHO_N "(cached) $ECHO_C" >&6 3113else 3114 3115 cf_save="$CPPFLAGS" 3116 3117 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3118 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE" 3119 3120 cat >"conftest.$ac_ext" <<_ACEOF 3121#line 3121 "configure" 3122#include "confdefs.h" 3123#include <sys/types.h> 3124int 3125main (void) 3126{ 3127 3128 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2) 3129 return 0; 3130 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3) 3131 return 0; 3132 #else 3133 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old 3134 #endif 3135 ; 3136 return 0; 3137} 3138_ACEOF 3139rm -f "conftest.$ac_objext" 3140if { (eval echo "$as_me:3140: \"$ac_compile\"") >&5 3141 (eval $ac_compile) 2>&5 3142 ac_status=$? 3143 echo "$as_me:3143: \$? = $ac_status" >&5 3144 (exit "$ac_status"); } && 3145 { ac_try='test -s "conftest.$ac_objext"' 3146 { (eval echo "$as_me:3146: \"$ac_try\"") >&5 3147 (eval $ac_try) 2>&5 3148 ac_status=$? 3149 echo "$as_me:3149: \$? = $ac_status" >&5 3150 (exit "$ac_status"); }; }; then 3151 cf_cv_gnu_library_219=yes 3152else 3153 echo "$as_me: failed program was:" >&5 3154cat "conftest.$ac_ext" >&5 3155cf_cv_gnu_library_219=no 3156fi 3157rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3158 CPPFLAGS="$cf_save" 3159 3160fi 3161echo "$as_me:3161: result: $cf_cv_gnu_library_219" >&5 3162echo "${ECHO_T}$cf_cv_gnu_library_219" >&6 3163 3164 if test "x$cf_cv_gnu_library_219" = xyes; then 3165 cf_save="$CPPFLAGS" 3166 echo "$as_me:3166: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5 3167echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6 3168if test "${cf_cv_gnu_dftsrc_219+set}" = set; then 3169 echo $ECHO_N "(cached) $ECHO_C" >&6 3170else 3171 3172cf_fix_cppflags=no 3173cf_new_cflags= 3174cf_new_cppflags= 3175cf_new_extra_cppflags= 3176 3177for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source 3178do 3179case "$cf_fix_cppflags" in 3180(no) 3181 case "$cf_add_cflags" in 3182 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 3183 case "$cf_add_cflags" in 3184 (-D*) 3185 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3186 3187 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3188 && test -z "${cf_tst_cflags}" \ 3189 && cf_fix_cppflags=yes 3190 3191 if test "$cf_fix_cppflags" = yes ; then 3192 3193 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3194 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3195 3196 continue 3197 elif test "${cf_tst_cflags}" = "\"'" ; then 3198 3199 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3200 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3201 3202 continue 3203 fi 3204 ;; 3205 esac 3206 case "$CPPFLAGS" in 3207 (*$cf_add_cflags) 3208 ;; 3209 (*) 3210 case "$cf_add_cflags" in 3211 (-D*) 3212 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3213 3214CPPFLAGS=`echo "$CPPFLAGS" | \ 3215 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3216 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3217 3218 ;; 3219 esac 3220 3221 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 3222 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 3223 3224 ;; 3225 esac 3226 ;; 3227 (*) 3228 3229 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 3230 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 3231 3232 ;; 3233 esac 3234 ;; 3235(yes) 3236 3237 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3238 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3239 3240 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 3241 3242 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3243 && test -z "${cf_tst_cflags}" \ 3244 && cf_fix_cppflags=no 3245 ;; 3246esac 3247done 3248 3249if test -n "$cf_new_cflags" ; then 3250 3251 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 3252 CFLAGS="${CFLAGS}$cf_new_cflags" 3253 3254fi 3255 3256if test -n "$cf_new_cppflags" ; then 3257 3258 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3259 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 3260 3261fi 3262 3263if test -n "$cf_new_extra_cppflags" ; then 3264 3265 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 3266 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 3267 3268fi 3269 3270 cat >"conftest.$ac_ext" <<_ACEOF 3271#line 3271 "configure" 3272#include "confdefs.h" 3273 3274 #include <limits.h> 3275 #include <sys/types.h> 3276 3277int 3278main (void) 3279{ 3280 3281 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1) 3282 return 0; 3283 #else 3284 # error GNU C library is too old 3285 #endif 3286 ; 3287 return 0; 3288} 3289_ACEOF 3290rm -f "conftest.$ac_objext" 3291if { (eval echo "$as_me:3291: \"$ac_compile\"") >&5 3292 (eval $ac_compile) 2>&5 3293 ac_status=$? 3294 echo "$as_me:3294: \$? = $ac_status" >&5 3295 (exit "$ac_status"); } && 3296 { ac_try='test -s "conftest.$ac_objext"' 3297 { (eval echo "$as_me:3297: \"$ac_try\"") >&5 3298 (eval $ac_try) 2>&5 3299 ac_status=$? 3300 echo "$as_me:3300: \$? = $ac_status" >&5 3301 (exit "$ac_status"); }; }; then 3302 cf_cv_gnu_dftsrc_219=yes 3303else 3304 echo "$as_me: failed program was:" >&5 3305cat "conftest.$ac_ext" >&5 3306cf_cv_gnu_dftsrc_219=no 3307fi 3308rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3309 3310fi 3311echo "$as_me:3311: result: $cf_cv_gnu_dftsrc_219" >&5 3312echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6 3313 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save" 3314 else 3315 cf_cv_gnu_dftsrc_219=maybe 3316 fi 3317 3318 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then 3319 3320 echo "$as_me:3320: checking if we must define _GNU_SOURCE" >&5 3321echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6 3322if test "${cf_cv_gnu_source+set}" = set; then 3323 echo $ECHO_N "(cached) $ECHO_C" >&6 3324else 3325 3326 cat >"conftest.$ac_ext" <<_ACEOF 3327#line 3327 "configure" 3328#include "confdefs.h" 3329#include <sys/types.h> 3330int 3331main (void) 3332{ 3333 3334 #ifndef _XOPEN_SOURCE 3335 #error expected _XOPEN_SOURCE to be defined 3336 #endif 3337 ; 3338 return 0; 3339} 3340_ACEOF 3341rm -f "conftest.$ac_objext" 3342if { (eval echo "$as_me:3342: \"$ac_compile\"") >&5 3343 (eval $ac_compile) 2>&5 3344 ac_status=$? 3345 echo "$as_me:3345: \$? = $ac_status" >&5 3346 (exit "$ac_status"); } && 3347 { ac_try='test -s "conftest.$ac_objext"' 3348 { (eval echo "$as_me:3348: \"$ac_try\"") >&5 3349 (eval $ac_try) 2>&5 3350 ac_status=$? 3351 echo "$as_me:3351: \$? = $ac_status" >&5 3352 (exit "$ac_status"); }; }; then 3353 cf_cv_gnu_source=no 3354else 3355 echo "$as_me: failed program was:" >&5 3356cat "conftest.$ac_ext" >&5 3357cf_save="$CPPFLAGS" 3358 3359cf_fix_cppflags=no 3360cf_new_cflags= 3361cf_new_cppflags= 3362cf_new_extra_cppflags= 3363 3364for cf_add_cflags in -D_GNU_SOURCE 3365do 3366case "$cf_fix_cppflags" in 3367(no) 3368 case "$cf_add_cflags" in 3369 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 3370 case "$cf_add_cflags" in 3371 (-D*) 3372 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3373 3374 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3375 && test -z "${cf_tst_cflags}" \ 3376 && cf_fix_cppflags=yes 3377 3378 if test "$cf_fix_cppflags" = yes ; then 3379 3380 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3381 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3382 3383 continue 3384 elif test "${cf_tst_cflags}" = "\"'" ; then 3385 3386 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3387 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3388 3389 continue 3390 fi 3391 ;; 3392 esac 3393 case "$CPPFLAGS" in 3394 (*$cf_add_cflags) 3395 ;; 3396 (*) 3397 case "$cf_add_cflags" in 3398 (-D*) 3399 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3400 3401CPPFLAGS=`echo "$CPPFLAGS" | \ 3402 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3403 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3404 3405 ;; 3406 esac 3407 3408 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 3409 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 3410 3411 ;; 3412 esac 3413 ;; 3414 (*) 3415 3416 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 3417 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 3418 3419 ;; 3420 esac 3421 ;; 3422(yes) 3423 3424 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3425 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3426 3427 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 3428 3429 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3430 && test -z "${cf_tst_cflags}" \ 3431 && cf_fix_cppflags=no 3432 ;; 3433esac 3434done 3435 3436if test -n "$cf_new_cflags" ; then 3437 3438 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 3439 CFLAGS="${CFLAGS}$cf_new_cflags" 3440 3441fi 3442 3443if test -n "$cf_new_cppflags" ; then 3444 3445 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3446 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 3447 3448fi 3449 3450if test -n "$cf_new_extra_cppflags" ; then 3451 3452 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 3453 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 3454 3455fi 3456 3457 cat >"conftest.$ac_ext" <<_ACEOF 3458#line 3458 "configure" 3459#include "confdefs.h" 3460#include <sys/types.h> 3461int 3462main (void) 3463{ 3464 3465 #ifdef _XOPEN_SOURCE 3466 #error expected _XOPEN_SOURCE to be undefined 3467 #endif 3468 ; 3469 return 0; 3470} 3471_ACEOF 3472rm -f "conftest.$ac_objext" 3473if { (eval echo "$as_me:3473: \"$ac_compile\"") >&5 3474 (eval $ac_compile) 2>&5 3475 ac_status=$? 3476 echo "$as_me:3476: \$? = $ac_status" >&5 3477 (exit "$ac_status"); } && 3478 { ac_try='test -s "conftest.$ac_objext"' 3479 { (eval echo "$as_me:3479: \"$ac_try\"") >&5 3480 (eval $ac_try) 2>&5 3481 ac_status=$? 3482 echo "$as_me:3482: \$? = $ac_status" >&5 3483 (exit "$ac_status"); }; }; then 3484 cf_cv_gnu_source=no 3485else 3486 echo "$as_me: failed program was:" >&5 3487cat "conftest.$ac_ext" >&5 3488cf_cv_gnu_source=yes 3489fi 3490rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3491 CPPFLAGS="$cf_save" 3492 3493fi 3494rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3495 3496fi 3497echo "$as_me:3497: result: $cf_cv_gnu_source" >&5 3498echo "${ECHO_T}$cf_cv_gnu_source" >&6 3499 3500 if test "$cf_cv_gnu_source" = yes 3501 then 3502 echo "$as_me:3502: checking if we should also define _DEFAULT_SOURCE" >&5 3503echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6 3504if test "${cf_cv_default_source+set}" = set; then 3505 echo $ECHO_N "(cached) $ECHO_C" >&6 3506else 3507 3508 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3509 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE" 3510 3511 cat >"conftest.$ac_ext" <<_ACEOF 3512#line 3512 "configure" 3513#include "confdefs.h" 3514#include <sys/types.h> 3515int 3516main (void) 3517{ 3518 3519 #ifdef _DEFAULT_SOURCE 3520 #error expected _DEFAULT_SOURCE to be undefined 3521 #endif 3522 ; 3523 return 0; 3524} 3525_ACEOF 3526rm -f "conftest.$ac_objext" 3527if { (eval echo "$as_me:3527: \"$ac_compile\"") >&5 3528 (eval $ac_compile) 2>&5 3529 ac_status=$? 3530 echo "$as_me:3530: \$? = $ac_status" >&5 3531 (exit "$ac_status"); } && 3532 { ac_try='test -s "conftest.$ac_objext"' 3533 { (eval echo "$as_me:3533: \"$ac_try\"") >&5 3534 (eval $ac_try) 2>&5 3535 ac_status=$? 3536 echo "$as_me:3536: \$? = $ac_status" >&5 3537 (exit "$ac_status"); }; }; then 3538 cf_cv_default_source=no 3539else 3540 echo "$as_me: failed program was:" >&5 3541cat "conftest.$ac_ext" >&5 3542cf_cv_default_source=yes 3543fi 3544rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3545 3546fi 3547echo "$as_me:3547: result: $cf_cv_default_source" >&5 3548echo "${ECHO_T}$cf_cv_default_source" >&6 3549 if test "$cf_cv_default_source" = yes 3550 then 3551 3552 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3553 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE" 3554 3555 fi 3556 fi 3557 fi 3558 3559fi 3560 3561 ;; 3562(minix*) 3563 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this... 3564 ;; 3565(mirbsd*) 3566 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types 3567 cf_XOPEN_SOURCE= 3568 3569if test "$cf_cv_posix_visible" = no; then 3570 3571cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 3572 3573cf_save_CFLAGS="$CFLAGS" 3574cf_save_CPPFLAGS="$CPPFLAGS" 3575 3576cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 3577 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3578 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 3579 3580cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 3581 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3582 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 3583 3584echo "$as_me:3584: checking if we should define _POSIX_C_SOURCE" >&5 3585echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 3586if test "${cf_cv_posix_c_source+set}" = set; then 3587 echo $ECHO_N "(cached) $ECHO_C" >&6 3588else 3589 3590echo "${as_me:-configure}:3590: testing if the symbol is already defined go no further ..." 1>&5 3591 3592 cat >"conftest.$ac_ext" <<_ACEOF 3593#line 3593 "configure" 3594#include "confdefs.h" 3595#include <sys/types.h> 3596int 3597main (void) 3598{ 3599 3600#ifndef _POSIX_C_SOURCE 3601make an error 3602#endif 3603 ; 3604 return 0; 3605} 3606_ACEOF 3607rm -f "conftest.$ac_objext" 3608if { (eval echo "$as_me:3608: \"$ac_compile\"") >&5 3609 (eval $ac_compile) 2>&5 3610 ac_status=$? 3611 echo "$as_me:3611: \$? = $ac_status" >&5 3612 (exit "$ac_status"); } && 3613 { ac_try='test -s "conftest.$ac_objext"' 3614 { (eval echo "$as_me:3614: \"$ac_try\"") >&5 3615 (eval $ac_try) 2>&5 3616 ac_status=$? 3617 echo "$as_me:3617: \$? = $ac_status" >&5 3618 (exit "$ac_status"); }; }; then 3619 cf_cv_posix_c_source=no 3620else 3621 echo "$as_me: failed program was:" >&5 3622cat "conftest.$ac_ext" >&5 3623cf_want_posix_source=no 3624 case .$cf_POSIX_C_SOURCE in 3625 (.[12]??*) 3626 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3627 ;; 3628 (.2) 3629 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3630 cf_want_posix_source=yes 3631 ;; 3632 (.*) 3633 cf_want_posix_source=yes 3634 ;; 3635 esac 3636 if test "$cf_want_posix_source" = yes ; then 3637 cat >"conftest.$ac_ext" <<_ACEOF 3638#line 3638 "configure" 3639#include "confdefs.h" 3640#include <sys/types.h> 3641int 3642main (void) 3643{ 3644 3645#ifdef _POSIX_SOURCE 3646make an error 3647#endif 3648 ; 3649 return 0; 3650} 3651_ACEOF 3652rm -f "conftest.$ac_objext" 3653if { (eval echo "$as_me:3653: \"$ac_compile\"") >&5 3654 (eval $ac_compile) 2>&5 3655 ac_status=$? 3656 echo "$as_me:3656: \$? = $ac_status" >&5 3657 (exit "$ac_status"); } && 3658 { ac_try='test -s "conftest.$ac_objext"' 3659 { (eval echo "$as_me:3659: \"$ac_try\"") >&5 3660 (eval $ac_try) 2>&5 3661 ac_status=$? 3662 echo "$as_me:3662: \$? = $ac_status" >&5 3663 (exit "$ac_status"); }; }; then 3664 : 3665else 3666 echo "$as_me: failed program was:" >&5 3667cat "conftest.$ac_ext" >&5 3668cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 3669fi 3670rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3671 fi 3672 3673echo "${as_me:-configure}:3673: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 3674 3675 CFLAGS="$cf_trim_CFLAGS" 3676 CPPFLAGS="$cf_trim_CPPFLAGS" 3677 3678 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3679 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source" 3680 3681echo "${as_me:-configure}:3681: testing if the second compile does not leave our definition intact error ..." 1>&5 3682 3683 cat >"conftest.$ac_ext" <<_ACEOF 3684#line 3684 "configure" 3685#include "confdefs.h" 3686#include <sys/types.h> 3687int 3688main (void) 3689{ 3690 3691#ifndef _POSIX_C_SOURCE 3692make an error 3693#endif 3694 ; 3695 return 0; 3696} 3697_ACEOF 3698rm -f "conftest.$ac_objext" 3699if { (eval echo "$as_me:3699: \"$ac_compile\"") >&5 3700 (eval $ac_compile) 2>&5 3701 ac_status=$? 3702 echo "$as_me:3702: \$? = $ac_status" >&5 3703 (exit "$ac_status"); } && 3704 { ac_try='test -s "conftest.$ac_objext"' 3705 { (eval echo "$as_me:3705: \"$ac_try\"") >&5 3706 (eval $ac_try) 2>&5 3707 ac_status=$? 3708 echo "$as_me:3708: \$? = $ac_status" >&5 3709 (exit "$ac_status"); }; }; then 3710 : 3711else 3712 echo "$as_me: failed program was:" >&5 3713cat "conftest.$ac_ext" >&5 3714cf_cv_posix_c_source=no 3715fi 3716rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3717 CFLAGS="$cf_save_CFLAGS" 3718 CPPFLAGS="$cf_save_CPPFLAGS" 3719 3720fi 3721rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3722 3723fi 3724echo "$as_me:3724: result: $cf_cv_posix_c_source" >&5 3725echo "${ECHO_T}$cf_cv_posix_c_source" >&6 3726 3727if test "$cf_cv_posix_c_source" != no ; then 3728 CFLAGS="$cf_trim_CFLAGS" 3729 CPPFLAGS="$cf_trim_CPPFLAGS" 3730 3731cf_fix_cppflags=no 3732cf_new_cflags= 3733cf_new_cppflags= 3734cf_new_extra_cppflags= 3735 3736for cf_add_cflags in $cf_cv_posix_c_source 3737do 3738case "$cf_fix_cppflags" in 3739(no) 3740 case "$cf_add_cflags" in 3741 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 3742 case "$cf_add_cflags" in 3743 (-D*) 3744 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3745 3746 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3747 && test -z "${cf_tst_cflags}" \ 3748 && cf_fix_cppflags=yes 3749 3750 if test "$cf_fix_cppflags" = yes ; then 3751 3752 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3753 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3754 3755 continue 3756 elif test "${cf_tst_cflags}" = "\"'" ; then 3757 3758 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3759 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3760 3761 continue 3762 fi 3763 ;; 3764 esac 3765 case "$CPPFLAGS" in 3766 (*$cf_add_cflags) 3767 ;; 3768 (*) 3769 case "$cf_add_cflags" in 3770 (-D*) 3771 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3772 3773CPPFLAGS=`echo "$CPPFLAGS" | \ 3774 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3775 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3776 3777 ;; 3778 esac 3779 3780 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 3781 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 3782 3783 ;; 3784 esac 3785 ;; 3786 (*) 3787 3788 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 3789 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 3790 3791 ;; 3792 esac 3793 ;; 3794(yes) 3795 3796 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3797 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3798 3799 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 3800 3801 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3802 && test -z "${cf_tst_cflags}" \ 3803 && cf_fix_cppflags=no 3804 ;; 3805esac 3806done 3807 3808if test -n "$cf_new_cflags" ; then 3809 3810 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 3811 CFLAGS="${CFLAGS}$cf_new_cflags" 3812 3813fi 3814 3815if test -n "$cf_new_cppflags" ; then 3816 3817 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3818 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 3819 3820fi 3821 3822if test -n "$cf_new_extra_cppflags" ; then 3823 3824 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 3825 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 3826 3827fi 3828 3829fi 3830 3831fi # cf_cv_posix_visible 3832 3833 ;; 3834(netbsd*) 3835 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw 3836 ;; 3837(openbsd[4-9]*) 3838 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw 3839 cf_xopen_source="-D_BSD_SOURCE" 3840 cf_XOPEN_SOURCE=600 3841 ;; 3842(openbsd*) 3843 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw 3844 ;; 3845(osf[45]*) 3846 cf_xopen_source="-D_OSF_SOURCE" 3847 ;; 3848(nto-qnx*) 3849 cf_xopen_source="-D_QNX_SOURCE" 3850 ;; 3851(sco*) 3852 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer 3853 ;; 3854(solaris2.*) 3855 cf_xopen_source="-D__EXTENSIONS__" 3856 cf_cv_xopen_source=broken 3857 ;; 3858(sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2) 3859 cf_XOPEN_SOURCE= 3860 cf_POSIX_C_SOURCE= 3861 ;; 3862(*) 3863 3864echo "$as_me:3864: checking if we should define _XOPEN_SOURCE" >&5 3865echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 3866if test "${cf_cv_xopen_source+set}" = set; then 3867 echo $ECHO_N "(cached) $ECHO_C" >&6 3868else 3869 3870 cat >"conftest.$ac_ext" <<_ACEOF 3871#line 3871 "configure" 3872#include "confdefs.h" 3873 3874#include <stdlib.h> 3875#include <string.h> 3876#include <sys/types.h> 3877 3878int 3879main (void) 3880{ 3881 3882#ifndef _XOPEN_SOURCE 3883make an error 3884#endif 3885 ; 3886 return 0; 3887} 3888_ACEOF 3889rm -f "conftest.$ac_objext" 3890if { (eval echo "$as_me:3890: \"$ac_compile\"") >&5 3891 (eval $ac_compile) 2>&5 3892 ac_status=$? 3893 echo "$as_me:3893: \$? = $ac_status" >&5 3894 (exit "$ac_status"); } && 3895 { ac_try='test -s "conftest.$ac_objext"' 3896 { (eval echo "$as_me:3896: \"$ac_try\"") >&5 3897 (eval $ac_try) 2>&5 3898 ac_status=$? 3899 echo "$as_me:3899: \$? = $ac_status" >&5 3900 (exit "$ac_status"); }; }; then 3901 cf_cv_xopen_source=no 3902else 3903 echo "$as_me: failed program was:" >&5 3904cat "conftest.$ac_ext" >&5 3905cf_save="$CPPFLAGS" 3906 3907 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3908 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 3909 3910 cat >"conftest.$ac_ext" <<_ACEOF 3911#line 3911 "configure" 3912#include "confdefs.h" 3913 3914#include <stdlib.h> 3915#include <string.h> 3916#include <sys/types.h> 3917 3918int 3919main (void) 3920{ 3921 3922#ifdef _XOPEN_SOURCE 3923make an error 3924#endif 3925 ; 3926 return 0; 3927} 3928_ACEOF 3929rm -f "conftest.$ac_objext" 3930if { (eval echo "$as_me:3930: \"$ac_compile\"") >&5 3931 (eval $ac_compile) 2>&5 3932 ac_status=$? 3933 echo "$as_me:3933: \$? = $ac_status" >&5 3934 (exit "$ac_status"); } && 3935 { ac_try='test -s "conftest.$ac_objext"' 3936 { (eval echo "$as_me:3936: \"$ac_try\"") >&5 3937 (eval $ac_try) 2>&5 3938 ac_status=$? 3939 echo "$as_me:3939: \$? = $ac_status" >&5 3940 (exit "$ac_status"); }; }; then 3941 cf_cv_xopen_source=no 3942else 3943 echo "$as_me: failed program was:" >&5 3944cat "conftest.$ac_ext" >&5 3945cf_cv_xopen_source=$cf_XOPEN_SOURCE 3946fi 3947rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3948 CPPFLAGS="$cf_save" 3949 3950fi 3951rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3952 3953fi 3954echo "$as_me:3954: result: $cf_cv_xopen_source" >&5 3955echo "${ECHO_T}$cf_cv_xopen_source" >&6 3956 3957if test "$cf_cv_xopen_source" != no ; then 3958 3959CFLAGS=`echo "$CFLAGS" | \ 3960 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3961 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3962 3963CPPFLAGS=`echo "$CPPFLAGS" | \ 3964 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3965 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3966 3967 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 3968 3969cf_fix_cppflags=no 3970cf_new_cflags= 3971cf_new_cppflags= 3972cf_new_extra_cppflags= 3973 3974for cf_add_cflags in $cf_temp_xopen_source 3975do 3976case "$cf_fix_cppflags" in 3977(no) 3978 case "$cf_add_cflags" in 3979 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 3980 case "$cf_add_cflags" in 3981 (-D*) 3982 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3983 3984 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3985 && test -z "${cf_tst_cflags}" \ 3986 && cf_fix_cppflags=yes 3987 3988 if test "$cf_fix_cppflags" = yes ; then 3989 3990 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3991 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3992 3993 continue 3994 elif test "${cf_tst_cflags}" = "\"'" ; then 3995 3996 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3997 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3998 3999 continue 4000 fi 4001 ;; 4002 esac 4003 case "$CPPFLAGS" in 4004 (*$cf_add_cflags) 4005 ;; 4006 (*) 4007 case "$cf_add_cflags" in 4008 (-D*) 4009 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4010 4011CPPFLAGS=`echo "$CPPFLAGS" | \ 4012 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4013 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4014 4015 ;; 4016 esac 4017 4018 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 4019 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 4020 4021 ;; 4022 esac 4023 ;; 4024 (*) 4025 4026 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 4027 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 4028 4029 ;; 4030 esac 4031 ;; 4032(yes) 4033 4034 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4035 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4036 4037 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 4038 4039 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4040 && test -z "${cf_tst_cflags}" \ 4041 && cf_fix_cppflags=no 4042 ;; 4043esac 4044done 4045 4046if test -n "$cf_new_cflags" ; then 4047 4048 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 4049 CFLAGS="${CFLAGS}$cf_new_cflags" 4050 4051fi 4052 4053if test -n "$cf_new_cppflags" ; then 4054 4055 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4056 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 4057 4058fi 4059 4060if test -n "$cf_new_extra_cppflags" ; then 4061 4062 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 4063 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 4064 4065fi 4066 4067fi 4068 4069if test "$cf_cv_posix_visible" = no; then 4070 4071cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 4072 4073cf_save_CFLAGS="$CFLAGS" 4074cf_save_CPPFLAGS="$CPPFLAGS" 4075 4076cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 4077 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 4078 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 4079 4080cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 4081 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 4082 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 4083 4084echo "$as_me:4084: checking if we should define _POSIX_C_SOURCE" >&5 4085echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 4086if test "${cf_cv_posix_c_source+set}" = set; then 4087 echo $ECHO_N "(cached) $ECHO_C" >&6 4088else 4089 4090echo "${as_me:-configure}:4090: testing if the symbol is already defined go no further ..." 1>&5 4091 4092 cat >"conftest.$ac_ext" <<_ACEOF 4093#line 4093 "configure" 4094#include "confdefs.h" 4095#include <sys/types.h> 4096int 4097main (void) 4098{ 4099 4100#ifndef _POSIX_C_SOURCE 4101make an error 4102#endif 4103 ; 4104 return 0; 4105} 4106_ACEOF 4107rm -f "conftest.$ac_objext" 4108if { (eval echo "$as_me:4108: \"$ac_compile\"") >&5 4109 (eval $ac_compile) 2>&5 4110 ac_status=$? 4111 echo "$as_me:4111: \$? = $ac_status" >&5 4112 (exit "$ac_status"); } && 4113 { ac_try='test -s "conftest.$ac_objext"' 4114 { (eval echo "$as_me:4114: \"$ac_try\"") >&5 4115 (eval $ac_try) 2>&5 4116 ac_status=$? 4117 echo "$as_me:4117: \$? = $ac_status" >&5 4118 (exit "$ac_status"); }; }; then 4119 cf_cv_posix_c_source=no 4120else 4121 echo "$as_me: failed program was:" >&5 4122cat "conftest.$ac_ext" >&5 4123cf_want_posix_source=no 4124 case .$cf_POSIX_C_SOURCE in 4125 (.[12]??*) 4126 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 4127 ;; 4128 (.2) 4129 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 4130 cf_want_posix_source=yes 4131 ;; 4132 (.*) 4133 cf_want_posix_source=yes 4134 ;; 4135 esac 4136 if test "$cf_want_posix_source" = yes ; then 4137 cat >"conftest.$ac_ext" <<_ACEOF 4138#line 4138 "configure" 4139#include "confdefs.h" 4140#include <sys/types.h> 4141int 4142main (void) 4143{ 4144 4145#ifdef _POSIX_SOURCE 4146make an error 4147#endif 4148 ; 4149 return 0; 4150} 4151_ACEOF 4152rm -f "conftest.$ac_objext" 4153if { (eval echo "$as_me:4153: \"$ac_compile\"") >&5 4154 (eval $ac_compile) 2>&5 4155 ac_status=$? 4156 echo "$as_me:4156: \$? = $ac_status" >&5 4157 (exit "$ac_status"); } && 4158 { ac_try='test -s "conftest.$ac_objext"' 4159 { (eval echo "$as_me:4159: \"$ac_try\"") >&5 4160 (eval $ac_try) 2>&5 4161 ac_status=$? 4162 echo "$as_me:4162: \$? = $ac_status" >&5 4163 (exit "$ac_status"); }; }; then 4164 : 4165else 4166 echo "$as_me: failed program was:" >&5 4167cat "conftest.$ac_ext" >&5 4168cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 4169fi 4170rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4171 fi 4172 4173echo "${as_me:-configure}:4173: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 4174 4175 CFLAGS="$cf_trim_CFLAGS" 4176 CPPFLAGS="$cf_trim_CPPFLAGS" 4177 4178 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4179 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source" 4180 4181echo "${as_me:-configure}:4181: testing if the second compile does not leave our definition intact error ..." 1>&5 4182 4183 cat >"conftest.$ac_ext" <<_ACEOF 4184#line 4184 "configure" 4185#include "confdefs.h" 4186#include <sys/types.h> 4187int 4188main (void) 4189{ 4190 4191#ifndef _POSIX_C_SOURCE 4192make an error 4193#endif 4194 ; 4195 return 0; 4196} 4197_ACEOF 4198rm -f "conftest.$ac_objext" 4199if { (eval echo "$as_me:4199: \"$ac_compile\"") >&5 4200 (eval $ac_compile) 2>&5 4201 ac_status=$? 4202 echo "$as_me:4202: \$? = $ac_status" >&5 4203 (exit "$ac_status"); } && 4204 { ac_try='test -s "conftest.$ac_objext"' 4205 { (eval echo "$as_me:4205: \"$ac_try\"") >&5 4206 (eval $ac_try) 2>&5 4207 ac_status=$? 4208 echo "$as_me:4208: \$? = $ac_status" >&5 4209 (exit "$ac_status"); }; }; then 4210 : 4211else 4212 echo "$as_me: failed program was:" >&5 4213cat "conftest.$ac_ext" >&5 4214cf_cv_posix_c_source=no 4215fi 4216rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4217 CFLAGS="$cf_save_CFLAGS" 4218 CPPFLAGS="$cf_save_CPPFLAGS" 4219 4220fi 4221rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4222 4223fi 4224echo "$as_me:4224: result: $cf_cv_posix_c_source" >&5 4225echo "${ECHO_T}$cf_cv_posix_c_source" >&6 4226 4227if test "$cf_cv_posix_c_source" != no ; then 4228 CFLAGS="$cf_trim_CFLAGS" 4229 CPPFLAGS="$cf_trim_CPPFLAGS" 4230 4231cf_fix_cppflags=no 4232cf_new_cflags= 4233cf_new_cppflags= 4234cf_new_extra_cppflags= 4235 4236for cf_add_cflags in $cf_cv_posix_c_source 4237do 4238case "$cf_fix_cppflags" in 4239(no) 4240 case "$cf_add_cflags" in 4241 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 4242 case "$cf_add_cflags" in 4243 (-D*) 4244 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4245 4246 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4247 && test -z "${cf_tst_cflags}" \ 4248 && cf_fix_cppflags=yes 4249 4250 if test "$cf_fix_cppflags" = yes ; then 4251 4252 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4253 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4254 4255 continue 4256 elif test "${cf_tst_cflags}" = "\"'" ; then 4257 4258 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4259 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4260 4261 continue 4262 fi 4263 ;; 4264 esac 4265 case "$CPPFLAGS" in 4266 (*$cf_add_cflags) 4267 ;; 4268 (*) 4269 case "$cf_add_cflags" in 4270 (-D*) 4271 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4272 4273CPPFLAGS=`echo "$CPPFLAGS" | \ 4274 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4275 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4276 4277 ;; 4278 esac 4279 4280 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 4281 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 4282 4283 ;; 4284 esac 4285 ;; 4286 (*) 4287 4288 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 4289 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 4290 4291 ;; 4292 esac 4293 ;; 4294(yes) 4295 4296 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4297 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4298 4299 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 4300 4301 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4302 && test -z "${cf_tst_cflags}" \ 4303 && cf_fix_cppflags=no 4304 ;; 4305esac 4306done 4307 4308if test -n "$cf_new_cflags" ; then 4309 4310 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 4311 CFLAGS="${CFLAGS}$cf_new_cflags" 4312 4313fi 4314 4315if test -n "$cf_new_cppflags" ; then 4316 4317 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4318 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 4319 4320fi 4321 4322if test -n "$cf_new_extra_cppflags" ; then 4323 4324 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 4325 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 4326 4327fi 4328 4329fi 4330 4331fi # cf_cv_posix_visible 4332 4333 ;; 4334esac 4335 4336if test -n "$cf_xopen_source" ; then 4337 4338cf_fix_cppflags=no 4339cf_new_cflags= 4340cf_new_cppflags= 4341cf_new_extra_cppflags= 4342 4343for cf_add_cflags in $cf_xopen_source 4344do 4345case "$cf_fix_cppflags" in 4346(no) 4347 case "$cf_add_cflags" in 4348 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 4349 case "$cf_add_cflags" in 4350 (-D*) 4351 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4352 4353 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4354 && test -z "${cf_tst_cflags}" \ 4355 && cf_fix_cppflags=yes 4356 4357 if test "$cf_fix_cppflags" = yes ; then 4358 4359 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4360 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4361 4362 continue 4363 elif test "${cf_tst_cflags}" = "\"'" ; then 4364 4365 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4366 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4367 4368 continue 4369 fi 4370 ;; 4371 esac 4372 case "$CPPFLAGS" in 4373 (*$cf_add_cflags) 4374 ;; 4375 (*) 4376 case "$cf_add_cflags" in 4377 (-D*) 4378 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4379 4380CPPFLAGS=`echo "$CPPFLAGS" | \ 4381 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4382 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4383 4384 ;; 4385 esac 4386 4387 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 4388 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 4389 4390 ;; 4391 esac 4392 ;; 4393 (*) 4394 4395 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 4396 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 4397 4398 ;; 4399 esac 4400 ;; 4401(yes) 4402 4403 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4404 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4405 4406 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 4407 4408 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4409 && test -z "${cf_tst_cflags}" \ 4410 && cf_fix_cppflags=no 4411 ;; 4412esac 4413done 4414 4415if test -n "$cf_new_cflags" ; then 4416 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 4417 4418echo "${as_me:-configure}:4418: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 4419 4420 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 4421 CFLAGS="${CFLAGS}$cf_new_cflags" 4422 4423fi 4424 4425if test -n "$cf_new_cppflags" ; then 4426 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 4427 4428echo "${as_me:-configure}:4428: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 4429 4430 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4431 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 4432 4433fi 4434 4435if test -n "$cf_new_extra_cppflags" ; then 4436 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6 4437 4438echo "${as_me:-configure}:4438: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5 4439 4440 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 4441 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 4442 4443fi 4444 4445fi 4446 4447if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then 4448 echo "$as_me:4448: checking if _XOPEN_SOURCE really is set" >&5 4449echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6 4450 cat >"conftest.$ac_ext" <<_ACEOF 4451#line 4451 "configure" 4452#include "confdefs.h" 4453#include <stdlib.h> 4454int 4455main (void) 4456{ 4457 4458#ifndef _XOPEN_SOURCE 4459make an error 4460#endif 4461 ; 4462 return 0; 4463} 4464_ACEOF 4465rm -f "conftest.$ac_objext" 4466if { (eval echo "$as_me:4466: \"$ac_compile\"") >&5 4467 (eval $ac_compile) 2>&5 4468 ac_status=$? 4469 echo "$as_me:4469: \$? = $ac_status" >&5 4470 (exit "$ac_status"); } && 4471 { ac_try='test -s "conftest.$ac_objext"' 4472 { (eval echo "$as_me:4472: \"$ac_try\"") >&5 4473 (eval $ac_try) 2>&5 4474 ac_status=$? 4475 echo "$as_me:4475: \$? = $ac_status" >&5 4476 (exit "$ac_status"); }; }; then 4477 cf_XOPEN_SOURCE_set=yes 4478else 4479 echo "$as_me: failed program was:" >&5 4480cat "conftest.$ac_ext" >&5 4481cf_XOPEN_SOURCE_set=no 4482fi 4483rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4484 echo "$as_me:4484: result: $cf_XOPEN_SOURCE_set" >&5 4485echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6 4486 if test "$cf_XOPEN_SOURCE_set" = yes 4487 then 4488 cat >"conftest.$ac_ext" <<_ACEOF 4489#line 4489 "configure" 4490#include "confdefs.h" 4491#include <stdlib.h> 4492int 4493main (void) 4494{ 4495 4496#if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE 4497make an error 4498#endif 4499 ; 4500 return 0; 4501} 4502_ACEOF 4503rm -f "conftest.$ac_objext" 4504if { (eval echo "$as_me:4504: \"$ac_compile\"") >&5 4505 (eval $ac_compile) 2>&5 4506 ac_status=$? 4507 echo "$as_me:4507: \$? = $ac_status" >&5 4508 (exit "$ac_status"); } && 4509 { ac_try='test -s "conftest.$ac_objext"' 4510 { (eval echo "$as_me:4510: \"$ac_try\"") >&5 4511 (eval $ac_try) 2>&5 4512 ac_status=$? 4513 echo "$as_me:4513: \$? = $ac_status" >&5 4514 (exit "$ac_status"); }; }; then 4515 cf_XOPEN_SOURCE_set_ok=yes 4516else 4517 echo "$as_me: failed program was:" >&5 4518cat "conftest.$ac_ext" >&5 4519cf_XOPEN_SOURCE_set_ok=no 4520fi 4521rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4522 if test "$cf_XOPEN_SOURCE_set_ok" = no 4523 then 4524 { echo "$as_me:4524: WARNING: _XOPEN_SOURCE is lower than requested" >&5 4525echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;} 4526 fi 4527 else 4528 4529echo "$as_me:4529: checking if we should define _XOPEN_SOURCE" >&5 4530echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 4531if test "${cf_cv_xopen_source+set}" = set; then 4532 echo $ECHO_N "(cached) $ECHO_C" >&6 4533else 4534 4535 cat >"conftest.$ac_ext" <<_ACEOF 4536#line 4536 "configure" 4537#include "confdefs.h" 4538 4539#include <stdlib.h> 4540#include <string.h> 4541#include <sys/types.h> 4542 4543int 4544main (void) 4545{ 4546 4547#ifndef _XOPEN_SOURCE 4548make an error 4549#endif 4550 ; 4551 return 0; 4552} 4553_ACEOF 4554rm -f "conftest.$ac_objext" 4555if { (eval echo "$as_me:4555: \"$ac_compile\"") >&5 4556 (eval $ac_compile) 2>&5 4557 ac_status=$? 4558 echo "$as_me:4558: \$? = $ac_status" >&5 4559 (exit "$ac_status"); } && 4560 { ac_try='test -s "conftest.$ac_objext"' 4561 { (eval echo "$as_me:4561: \"$ac_try\"") >&5 4562 (eval $ac_try) 2>&5 4563 ac_status=$? 4564 echo "$as_me:4564: \$? = $ac_status" >&5 4565 (exit "$ac_status"); }; }; then 4566 cf_cv_xopen_source=no 4567else 4568 echo "$as_me: failed program was:" >&5 4569cat "conftest.$ac_ext" >&5 4570cf_save="$CPPFLAGS" 4571 4572 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4573 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 4574 4575 cat >"conftest.$ac_ext" <<_ACEOF 4576#line 4576 "configure" 4577#include "confdefs.h" 4578 4579#include <stdlib.h> 4580#include <string.h> 4581#include <sys/types.h> 4582 4583int 4584main (void) 4585{ 4586 4587#ifdef _XOPEN_SOURCE 4588make an error 4589#endif 4590 ; 4591 return 0; 4592} 4593_ACEOF 4594rm -f "conftest.$ac_objext" 4595if { (eval echo "$as_me:4595: \"$ac_compile\"") >&5 4596 (eval $ac_compile) 2>&5 4597 ac_status=$? 4598 echo "$as_me:4598: \$? = $ac_status" >&5 4599 (exit "$ac_status"); } && 4600 { ac_try='test -s "conftest.$ac_objext"' 4601 { (eval echo "$as_me:4601: \"$ac_try\"") >&5 4602 (eval $ac_try) 2>&5 4603 ac_status=$? 4604 echo "$as_me:4604: \$? = $ac_status" >&5 4605 (exit "$ac_status"); }; }; then 4606 cf_cv_xopen_source=no 4607else 4608 echo "$as_me: failed program was:" >&5 4609cat "conftest.$ac_ext" >&5 4610cf_cv_xopen_source=$cf_XOPEN_SOURCE 4611fi 4612rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4613 CPPFLAGS="$cf_save" 4614 4615fi 4616rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4617 4618fi 4619echo "$as_me:4619: result: $cf_cv_xopen_source" >&5 4620echo "${ECHO_T}$cf_cv_xopen_source" >&6 4621 4622if test "$cf_cv_xopen_source" != no ; then 4623 4624CFLAGS=`echo "$CFLAGS" | \ 4625 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 4626 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 4627 4628CPPFLAGS=`echo "$CPPFLAGS" | \ 4629 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 4630 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 4631 4632 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 4633 4634cf_fix_cppflags=no 4635cf_new_cflags= 4636cf_new_cppflags= 4637cf_new_extra_cppflags= 4638 4639for cf_add_cflags in $cf_temp_xopen_source 4640do 4641case "$cf_fix_cppflags" in 4642(no) 4643 case "$cf_add_cflags" in 4644 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 4645 case "$cf_add_cflags" in 4646 (-D*) 4647 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4648 4649 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4650 && test -z "${cf_tst_cflags}" \ 4651 && cf_fix_cppflags=yes 4652 4653 if test "$cf_fix_cppflags" = yes ; then 4654 4655 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4656 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4657 4658 continue 4659 elif test "${cf_tst_cflags}" = "\"'" ; then 4660 4661 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4662 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4663 4664 continue 4665 fi 4666 ;; 4667 esac 4668 case "$CPPFLAGS" in 4669 (*$cf_add_cflags) 4670 ;; 4671 (*) 4672 case "$cf_add_cflags" in 4673 (-D*) 4674 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4675 4676CPPFLAGS=`echo "$CPPFLAGS" | \ 4677 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4678 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4679 4680 ;; 4681 esac 4682 4683 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 4684 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 4685 4686 ;; 4687 esac 4688 ;; 4689 (*) 4690 4691 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 4692 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 4693 4694 ;; 4695 esac 4696 ;; 4697(yes) 4698 4699 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4700 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4701 4702 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 4703 4704 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4705 && test -z "${cf_tst_cflags}" \ 4706 && cf_fix_cppflags=no 4707 ;; 4708esac 4709done 4710 4711if test -n "$cf_new_cflags" ; then 4712 4713 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 4714 CFLAGS="${CFLAGS}$cf_new_cflags" 4715 4716fi 4717 4718if test -n "$cf_new_cppflags" ; then 4719 4720 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4721 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 4722 4723fi 4724 4725if test -n "$cf_new_extra_cppflags" ; then 4726 4727 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 4728 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 4729 4730fi 4731 4732fi 4733 4734 fi 4735fi 4736fi # cf_cv_posix_visible 4737 4738echo "$as_me:4738: checking if SIGWINCH is defined" >&5 4739echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6 4740if test "${cf_cv_define_sigwinch+set}" = set; then 4741 echo $ECHO_N "(cached) $ECHO_C" >&6 4742else 4743 4744 cat >"conftest.$ac_ext" <<_ACEOF 4745#line 4745 "configure" 4746#include "confdefs.h" 4747 4748#include <sys/types.h> 4749#include <sys/signal.h> 4750 4751int 4752main (void) 4753{ 4754int x = SIGWINCH; (void)x 4755 ; 4756 return 0; 4757} 4758_ACEOF 4759rm -f "conftest.$ac_objext" 4760if { (eval echo "$as_me:4760: \"$ac_compile\"") >&5 4761 (eval $ac_compile) 2>&5 4762 ac_status=$? 4763 echo "$as_me:4763: \$? = $ac_status" >&5 4764 (exit "$ac_status"); } && 4765 { ac_try='test -s "conftest.$ac_objext"' 4766 { (eval echo "$as_me:4766: \"$ac_try\"") >&5 4767 (eval $ac_try) 2>&5 4768 ac_status=$? 4769 echo "$as_me:4769: \$? = $ac_status" >&5 4770 (exit "$ac_status"); }; }; then 4771 cf_cv_define_sigwinch=yes 4772else 4773 echo "$as_me: failed program was:" >&5 4774cat "conftest.$ac_ext" >&5 4775cat >"conftest.$ac_ext" <<_ACEOF 4776#line 4776 "configure" 4777#include "confdefs.h" 4778 4779#undef _XOPEN_SOURCE 4780#undef _POSIX_SOURCE 4781#undef _POSIX_C_SOURCE 4782#include <sys/types.h> 4783#include <sys/signal.h> 4784 4785int 4786main (void) 4787{ 4788int x = SIGWINCH; (void)x 4789 ; 4790 return 0; 4791} 4792_ACEOF 4793rm -f "conftest.$ac_objext" 4794if { (eval echo "$as_me:4794: \"$ac_compile\"") >&5 4795 (eval $ac_compile) 2>&5 4796 ac_status=$? 4797 echo "$as_me:4797: \$? = $ac_status" >&5 4798 (exit "$ac_status"); } && 4799 { ac_try='test -s "conftest.$ac_objext"' 4800 { (eval echo "$as_me:4800: \"$ac_try\"") >&5 4801 (eval $ac_try) 2>&5 4802 ac_status=$? 4803 echo "$as_me:4803: \$? = $ac_status" >&5 4804 (exit "$ac_status"); }; }; then 4805 cf_cv_define_sigwinch=maybe 4806else 4807 echo "$as_me: failed program was:" >&5 4808cat "conftest.$ac_ext" >&5 4809cf_cv_define_sigwinch=no 4810fi 4811rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4812 4813fi 4814rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4815 4816fi 4817echo "$as_me:4817: result: $cf_cv_define_sigwinch" >&5 4818echo "${ECHO_T}$cf_cv_define_sigwinch" >&6 4819 4820if test "$cf_cv_define_sigwinch" = maybe ; then 4821echo "$as_me:4821: checking for actual SIGWINCH definition" >&5 4822echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6 4823if test "${cf_cv_fixup_sigwinch+set}" = set; then 4824 echo $ECHO_N "(cached) $ECHO_C" >&6 4825else 4826 4827cf_cv_fixup_sigwinch=unknown 4828cf_sigwinch=32 4829while test "$cf_sigwinch" != 1 4830do 4831 cat >"conftest.$ac_ext" <<_ACEOF 4832#line 4832 "configure" 4833#include "confdefs.h" 4834 4835#undef _XOPEN_SOURCE 4836#undef _POSIX_SOURCE 4837#undef _POSIX_C_SOURCE 4838#include <sys/types.h> 4839#include <sys/signal.h> 4840 4841int 4842main (void) 4843{ 4844 4845#if SIGWINCH != $cf_sigwinch 4846make an error 4847#endif 4848int x = SIGWINCH; (void)x 4849 ; 4850 return 0; 4851} 4852_ACEOF 4853rm -f "conftest.$ac_objext" 4854if { (eval echo "$as_me:4854: \"$ac_compile\"") >&5 4855 (eval $ac_compile) 2>&5 4856 ac_status=$? 4857 echo "$as_me:4857: \$? = $ac_status" >&5 4858 (exit "$ac_status"); } && 4859 { ac_try='test -s "conftest.$ac_objext"' 4860 { (eval echo "$as_me:4860: \"$ac_try\"") >&5 4861 (eval $ac_try) 2>&5 4862 ac_status=$? 4863 echo "$as_me:4863: \$? = $ac_status" >&5 4864 (exit "$ac_status"); }; }; then 4865 cf_cv_fixup_sigwinch=$cf_sigwinch 4866 break 4867else 4868 echo "$as_me: failed program was:" >&5 4869cat "conftest.$ac_ext" >&5 4870fi 4871rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4872 4873cf_sigwinch="`expr "$cf_sigwinch" - 1`" 4874done 4875 4876fi 4877echo "$as_me:4877: result: $cf_cv_fixup_sigwinch" >&5 4878echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6 4879 4880 if test "$cf_cv_fixup_sigwinch" != unknown ; then 4881 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch" 4882 fi 4883fi 4884 4885### checks for header files 4886 4887for ac_header in \ 4888ncurses/curses.h \ 4889ncurses/term.h \ 4890stdlib.h \ 4891sys/ptem.h sys/ttydefaults.h \ 4892term.h \ 4893termios.h \ 4894unistd.h \ 4895wchar.h \ 4896 4897do 4898as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4899echo "$as_me:4899: checking for $ac_header" >&5 4900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4901if eval "test \"\${$as_ac_Header+set}\" = set"; then 4902 echo $ECHO_N "(cached) $ECHO_C" >&6 4903else 4904 cat >"conftest.$ac_ext" <<_ACEOF 4905#line 4905 "configure" 4906#include "confdefs.h" 4907#include <$ac_header> 4908_ACEOF 4909if { (eval echo "$as_me:4909: \"$ac_cpp "conftest.$ac_ext"\"") >&5 4910 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 4911 ac_status=$? 4912 $EGREP -v '^ *\+' conftest.er1 >conftest.err 4913 rm -f conftest.er1 4914 cat conftest.err >&5 4915 echo "$as_me:4915: \$? = $ac_status" >&5 4916 (exit "$ac_status"); } >/dev/null; then 4917 if test -s conftest.err; then 4918 ac_cpp_err=$ac_c_preproc_warn_flag 4919 else 4920 ac_cpp_err= 4921 fi 4922else 4923 ac_cpp_err=yes 4924fi 4925if test -z "$ac_cpp_err"; then 4926 eval "$as_ac_Header=yes" 4927else 4928 echo "$as_me: failed program was:" >&5 4929 cat "conftest.$ac_ext" >&5 4930 eval "$as_ac_Header=no" 4931fi 4932rm -f conftest.err "conftest.$ac_ext" 4933fi 4934echo "$as_me:4934: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 4935echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 4936if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 4937 cat >>confdefs.h <<EOF 4938#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4939EOF 4940 4941fi 4942done 4943 4944echo "$as_me:4944: checking whether time.h and sys/time.h may both be included" >&5 4945echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 4946if test "${ac_cv_header_time+set}" = set; then 4947 echo $ECHO_N "(cached) $ECHO_C" >&6 4948else 4949 cat >"conftest.$ac_ext" <<_ACEOF 4950#line 4950 "configure" 4951#include "confdefs.h" 4952#include <sys/types.h> 4953#include <sys/time.h> 4954#include <time.h> 4955 4956int 4957main (void) 4958{ 4959if ((struct tm *) 0) 4960return 0; 4961 ; 4962 return 0; 4963} 4964_ACEOF 4965rm -f "conftest.$ac_objext" 4966if { (eval echo "$as_me:4966: \"$ac_compile\"") >&5 4967 (eval $ac_compile) 2>&5 4968 ac_status=$? 4969 echo "$as_me:4969: \$? = $ac_status" >&5 4970 (exit "$ac_status"); } && 4971 { ac_try='test -s "conftest.$ac_objext"' 4972 { (eval echo "$as_me:4972: \"$ac_try\"") >&5 4973 (eval $ac_try) 2>&5 4974 ac_status=$? 4975 echo "$as_me:4975: \$? = $ac_status" >&5 4976 (exit "$ac_status"); }; }; then 4977 ac_cv_header_time=yes 4978else 4979 echo "$as_me: failed program was:" >&5 4980cat "conftest.$ac_ext" >&5 4981ac_cv_header_time=no 4982fi 4983rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4984fi 4985echo "$as_me:4985: result: $ac_cv_header_time" >&5 4986echo "${ECHO_T}$ac_cv_header_time" >&6 4987if test $ac_cv_header_time = yes; then 4988 4989cat >>confdefs.h <<\EOF 4990#define TIME_WITH_SYS_TIME 1 4991EOF 4992 4993fi 4994 4995echo "$as_me:4995: checking for nl_langinfo and CODESET" >&5 4996echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 4997if test "${am_cv_langinfo_codeset+set}" = set; then 4998 echo $ECHO_N "(cached) $ECHO_C" >&6 4999else 5000 cat >"conftest.$ac_ext" <<_ACEOF 5001#line 5001 "configure" 5002#include "confdefs.h" 5003#include <langinfo.h> 5004int 5005main (void) 5006{ 5007char* cs = nl_langinfo(CODESET); (void)cs 5008 ; 5009 return 0; 5010} 5011_ACEOF 5012rm -f "conftest.$ac_objext" "conftest$ac_exeext" 5013if { (eval echo "$as_me:5013: \"$ac_link\"") >&5 5014 (eval $ac_link) 2>&5 5015 ac_status=$? 5016 echo "$as_me:5016: \$? = $ac_status" >&5 5017 (exit "$ac_status"); } && 5018 { ac_try='test -s "conftest$ac_exeext"' 5019 { (eval echo "$as_me:5019: \"$ac_try\"") >&5 5020 (eval $ac_try) 2>&5 5021 ac_status=$? 5022 echo "$as_me:5022: \$? = $ac_status" >&5 5023 (exit "$ac_status"); }; }; then 5024 am_cv_langinfo_codeset=yes 5025else 5026 echo "$as_me: failed program was:" >&5 5027cat "conftest.$ac_ext" >&5 5028am_cv_langinfo_codeset=no 5029fi 5030rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 5031 5032fi 5033echo "$as_me:5033: result: $am_cv_langinfo_codeset" >&5 5034echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 5035 if test "$am_cv_langinfo_codeset" = yes; then 5036 5037cat >>confdefs.h <<\EOF 5038#define HAVE_LANGINFO_CODESET 1 5039EOF 5040 5041 fi 5042 5043### checks for typedefs 5044 5045echo "$as_me:5045: checking for signal global datatype" >&5 5046echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6 5047if test "${cf_cv_sig_atomic_t+set}" = set; then 5048 echo $ECHO_N "(cached) $ECHO_C" >&6 5049else 5050 5051 for cf_type in \ 5052 "volatile sig_atomic_t" \ 5053 "sig_atomic_t" \ 5054 "int" 5055 do 5056 cat >"conftest.$ac_ext" <<_ACEOF 5057#line 5057 "configure" 5058#include "confdefs.h" 5059 5060#include <sys/types.h> 5061#include <signal.h> 5062#include <stdio.h> 5063 5064extern $cf_type x; 5065$cf_type x; 5066static void handler(int sig) 5067{ 5068 (void)sig; 5069 x = 5; 5070} 5071int 5072main (void) 5073{ 5074signal(SIGINT, handler); 5075 x = 1 5076 ; 5077 return 0; 5078} 5079_ACEOF 5080rm -f "conftest.$ac_objext" 5081if { (eval echo "$as_me:5081: \"$ac_compile\"") >&5 5082 (eval $ac_compile) 2>&5 5083 ac_status=$? 5084 echo "$as_me:5084: \$? = $ac_status" >&5 5085 (exit "$ac_status"); } && 5086 { ac_try='test -s "conftest.$ac_objext"' 5087 { (eval echo "$as_me:5087: \"$ac_try\"") >&5 5088 (eval $ac_try) 2>&5 5089 ac_status=$? 5090 echo "$as_me:5090: \$? = $ac_status" >&5 5091 (exit "$ac_status"); }; }; then 5092 cf_cv_sig_atomic_t=$cf_type 5093else 5094 echo "$as_me: failed program was:" >&5 5095cat "conftest.$ac_ext" >&5 5096cf_cv_sig_atomic_t=no 5097fi 5098rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5099 test "$cf_cv_sig_atomic_t" != no && break 5100 done 5101 5102fi 5103 5104echo "$as_me:5104: result: $cf_cv_sig_atomic_t" >&5 5105echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6 5106test "$cf_cv_sig_atomic_t" != no && 5107cat >>confdefs.h <<EOF 5108#define SIG_ATOMIC_T $cf_cv_sig_atomic_t 5109EOF 5110 5111echo "$as_me:5111: checking for ANSI C header files" >&5 5112echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 5113if test "${ac_cv_header_stdc+set}" = set; then 5114 echo $ECHO_N "(cached) $ECHO_C" >&6 5115else 5116 cat >"conftest.$ac_ext" <<_ACEOF 5117#line 5117 "configure" 5118#include "confdefs.h" 5119#include <stdlib.h> 5120#include <stdarg.h> 5121#include <string.h> 5122#include <float.h> 5123 5124_ACEOF 5125if { (eval echo "$as_me:5125: \"$ac_cpp "conftest.$ac_ext"\"") >&5 5126 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 5127 ac_status=$? 5128 $EGREP -v '^ *\+' conftest.er1 >conftest.err 5129 rm -f conftest.er1 5130 cat conftest.err >&5 5131 echo "$as_me:5131: \$? = $ac_status" >&5 5132 (exit "$ac_status"); } >/dev/null; then 5133 if test -s conftest.err; then 5134 ac_cpp_err=$ac_c_preproc_warn_flag 5135 else 5136 ac_cpp_err= 5137 fi 5138else 5139 ac_cpp_err=yes 5140fi 5141if test -z "$ac_cpp_err"; then 5142 ac_cv_header_stdc=yes 5143else 5144 echo "$as_me: failed program was:" >&5 5145 cat "conftest.$ac_ext" >&5 5146 ac_cv_header_stdc=no 5147fi 5148rm -f conftest.err "conftest.$ac_ext" 5149 5150if test $ac_cv_header_stdc = yes; then 5151 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5152 cat >"conftest.$ac_ext" <<_ACEOF 5153#line 5153 "configure" 5154#include "confdefs.h" 5155#include <string.h> 5156 5157_ACEOF 5158if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5159 $EGREP "memchr" >/dev/null 2>&1; then 5160 : 5161else 5162 ac_cv_header_stdc=no 5163fi 5164rm -rf conftest* 5165 5166fi 5167 5168if test $ac_cv_header_stdc = yes; then 5169 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5170 cat >"conftest.$ac_ext" <<_ACEOF 5171#line 5171 "configure" 5172#include "confdefs.h" 5173#include <stdlib.h> 5174 5175_ACEOF 5176if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5177 $EGREP "free" >/dev/null 2>&1; then 5178 : 5179else 5180 ac_cv_header_stdc=no 5181fi 5182rm -rf conftest* 5183 5184fi 5185 5186if test $ac_cv_header_stdc = yes; then 5187 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5188 if test "$cross_compiling" = yes; then 5189 : 5190else 5191 cat >"conftest.$ac_ext" <<_ACEOF 5192#line 5192 "configure" 5193#include "confdefs.h" 5194#include <ctype.h> 5195#if ((' ' & 0x0FF) == 0x020) 5196# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5197# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5198#else 5199# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 5200 || ('j' <= (c) && (c) <= 'r') \ 5201 || ('s' <= (c) && (c) <= 'z')) 5202# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5203#endif 5204 5205#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5206int 5207main (void) 5208{ 5209 int i; 5210 for (i = 0; i < 256; i++) 5211 if (XOR (islower (i), ISLOWER (i)) 5212 || toupper (i) != TOUPPER (i)) 5213 $ac_main_return(2); 5214 $ac_main_return (0); 5215} 5216_ACEOF 5217rm -f "conftest$ac_exeext" 5218if { (eval echo "$as_me:5218: \"$ac_link\"") >&5 5219 (eval $ac_link) 2>&5 5220 ac_status=$? 5221 echo "$as_me:5221: \$? = $ac_status" >&5 5222 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 5223 { (eval echo "$as_me:5223: \"$ac_try\"") >&5 5224 (eval $ac_try) 2>&5 5225 ac_status=$? 5226 echo "$as_me:5226: \$? = $ac_status" >&5 5227 (exit "$ac_status"); }; }; then 5228 : 5229else 5230 echo "$as_me: program exited with status $ac_status" >&5 5231echo "$as_me: failed program was:" >&5 5232cat "conftest.$ac_ext" >&5 5233ac_cv_header_stdc=no 5234fi 5235rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 5236fi 5237fi 5238fi 5239echo "$as_me:5239: result: $ac_cv_header_stdc" >&5 5240echo "${ECHO_T}$ac_cv_header_stdc" >&6 5241if test $ac_cv_header_stdc = yes; then 5242 5243cat >>confdefs.h <<\EOF 5244#define STDC_HEADERS 1 5245EOF 5246 5247fi 5248 5249# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5250 5251for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5252 inttypes.h stdint.h unistd.h 5253do 5254as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5255echo "$as_me:5255: checking for $ac_header" >&5 5256echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5257if eval "test \"\${$as_ac_Header+set}\" = set"; then 5258 echo $ECHO_N "(cached) $ECHO_C" >&6 5259else 5260 cat >"conftest.$ac_ext" <<_ACEOF 5261#line 5261 "configure" 5262#include "confdefs.h" 5263$ac_includes_default 5264#include <$ac_header> 5265_ACEOF 5266rm -f "conftest.$ac_objext" 5267if { (eval echo "$as_me:5267: \"$ac_compile\"") >&5 5268 (eval $ac_compile) 2>&5 5269 ac_status=$? 5270 echo "$as_me:5270: \$? = $ac_status" >&5 5271 (exit "$ac_status"); } && 5272 { ac_try='test -s "conftest.$ac_objext"' 5273 { (eval echo "$as_me:5273: \"$ac_try\"") >&5 5274 (eval $ac_try) 2>&5 5275 ac_status=$? 5276 echo "$as_me:5276: \$? = $ac_status" >&5 5277 (exit "$ac_status"); }; }; then 5278 eval "$as_ac_Header=yes" 5279else 5280 echo "$as_me: failed program was:" >&5 5281cat "conftest.$ac_ext" >&5 5282eval "$as_ac_Header=no" 5283fi 5284rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5285fi 5286echo "$as_me:5286: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 5287echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 5288if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 5289 cat >>confdefs.h <<EOF 5290#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5291EOF 5292 5293fi 5294done 5295 5296echo "$as_me:5296: checking for time_t" >&5 5297echo $ECHO_N "checking for time_t... $ECHO_C" >&6 5298if test "${ac_cv_type_time_t+set}" = set; then 5299 echo $ECHO_N "(cached) $ECHO_C" >&6 5300else 5301 cat >"conftest.$ac_ext" <<_ACEOF 5302#line 5302 "configure" 5303#include "confdefs.h" 5304$ac_includes_default 5305int 5306main (void) 5307{ 5308if ((time_t *) 0) 5309 return 0; 5310if (sizeof (time_t)) 5311 return 0; 5312 ; 5313 return 0; 5314} 5315_ACEOF 5316rm -f "conftest.$ac_objext" 5317if { (eval echo "$as_me:5317: \"$ac_compile\"") >&5 5318 (eval $ac_compile) 2>&5 5319 ac_status=$? 5320 echo "$as_me:5320: \$? = $ac_status" >&5 5321 (exit "$ac_status"); } && 5322 { ac_try='test -s "conftest.$ac_objext"' 5323 { (eval echo "$as_me:5323: \"$ac_try\"") >&5 5324 (eval $ac_try) 2>&5 5325 ac_status=$? 5326 echo "$as_me:5326: \$? = $ac_status" >&5 5327 (exit "$ac_status"); }; }; then 5328 ac_cv_type_time_t=yes 5329else 5330 echo "$as_me: failed program was:" >&5 5331cat "conftest.$ac_ext" >&5 5332ac_cv_type_time_t=no 5333fi 5334rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5335fi 5336echo "$as_me:5336: result: $ac_cv_type_time_t" >&5 5337echo "${ECHO_T}$ac_cv_type_time_t" >&6 5338if test "$ac_cv_type_time_t" = yes; then 5339 : 5340else 5341 5342cat >>confdefs.h <<EOF 5343#define time_t long 5344EOF 5345 5346fi 5347 5348echo "$as_me:5348: checking for cc_t in <termios.h> or <termio.h>" >&5 5349echo $ECHO_N "checking for cc_t in <termios.h> or <termio.h>... $ECHO_C" >&6 5350if test "${cf_cv_type_cc_t+set}" = set; then 5351 echo $ECHO_N "(cached) $ECHO_C" >&6 5352else 5353 5354 cat >"conftest.$ac_ext" <<_ACEOF 5355#line 5355 "configure" 5356#include "confdefs.h" 5357 5358#include <sys/types.h> 5359#if defined(HAVE_TERMIOS_H) 5360#include <termios.h> 5361#else 5362#include <termio.h> 5363#include <sys/ioctl.h> 5364#endif 5365 5366int 5367main (void) 5368{ 5369cc_t x; (void)x 5370 ; 5371 return 0; 5372} 5373_ACEOF 5374rm -f "conftest.$ac_objext" 5375if { (eval echo "$as_me:5375: \"$ac_compile\"") >&5 5376 (eval $ac_compile) 2>&5 5377 ac_status=$? 5378 echo "$as_me:5378: \$? = $ac_status" >&5 5379 (exit "$ac_status"); } && 5380 { ac_try='test -s "conftest.$ac_objext"' 5381 { (eval echo "$as_me:5381: \"$ac_try\"") >&5 5382 (eval $ac_try) 2>&5 5383 ac_status=$? 5384 echo "$as_me:5384: \$? = $ac_status" >&5 5385 (exit "$ac_status"); }; }; then 5386 cf_cv_type_cc_t=yes 5387else 5388 echo "$as_me: failed program was:" >&5 5389cat "conftest.$ac_ext" >&5 5390cf_cv_type_cc_t=no 5391fi 5392rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5393 5394fi 5395 5396echo "$as_me:5396: result: $cf_cv_type_cc_t" >&5 5397echo "${ECHO_T}$cf_cv_type_cc_t" >&6 5398test $cf_cv_type_cc_t = no && 5399cat >>confdefs.h <<\EOF 5400#define cc_t unsigned char 5401EOF 5402 5403echo "$as_me:5403: checking for mode_t" >&5 5404echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 5405if test "${ac_cv_type_mode_t+set}" = set; then 5406 echo $ECHO_N "(cached) $ECHO_C" >&6 5407else 5408 cat >"conftest.$ac_ext" <<_ACEOF 5409#line 5409 "configure" 5410#include "confdefs.h" 5411$ac_includes_default 5412int 5413main (void) 5414{ 5415if ((mode_t *) 0) 5416 return 0; 5417if (sizeof (mode_t)) 5418 return 0; 5419 ; 5420 return 0; 5421} 5422_ACEOF 5423rm -f "conftest.$ac_objext" 5424if { (eval echo "$as_me:5424: \"$ac_compile\"") >&5 5425 (eval $ac_compile) 2>&5 5426 ac_status=$? 5427 echo "$as_me:5427: \$? = $ac_status" >&5 5428 (exit "$ac_status"); } && 5429 { ac_try='test -s "conftest.$ac_objext"' 5430 { (eval echo "$as_me:5430: \"$ac_try\"") >&5 5431 (eval $ac_try) 2>&5 5432 ac_status=$? 5433 echo "$as_me:5433: \$? = $ac_status" >&5 5434 (exit "$ac_status"); }; }; then 5435 ac_cv_type_mode_t=yes 5436else 5437 echo "$as_me: failed program was:" >&5 5438cat "conftest.$ac_ext" >&5 5439ac_cv_type_mode_t=no 5440fi 5441rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5442fi 5443echo "$as_me:5443: result: $ac_cv_type_mode_t" >&5 5444echo "${ECHO_T}$ac_cv_type_mode_t" >&6 5445if test "$ac_cv_type_mode_t" = yes; then 5446 : 5447else 5448 5449cat >>confdefs.h <<EOF 5450#define mode_t int 5451EOF 5452 5453fi 5454 5455echo "$as_me:5455: checking for pid_t" >&5 5456echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 5457if test "${ac_cv_type_pid_t+set}" = set; then 5458 echo $ECHO_N "(cached) $ECHO_C" >&6 5459else 5460 cat >"conftest.$ac_ext" <<_ACEOF 5461#line 5461 "configure" 5462#include "confdefs.h" 5463$ac_includes_default 5464int 5465main (void) 5466{ 5467if ((pid_t *) 0) 5468 return 0; 5469if (sizeof (pid_t)) 5470 return 0; 5471 ; 5472 return 0; 5473} 5474_ACEOF 5475rm -f "conftest.$ac_objext" 5476if { (eval echo "$as_me:5476: \"$ac_compile\"") >&5 5477 (eval $ac_compile) 2>&5 5478 ac_status=$? 5479 echo "$as_me:5479: \$? = $ac_status" >&5 5480 (exit "$ac_status"); } && 5481 { ac_try='test -s "conftest.$ac_objext"' 5482 { (eval echo "$as_me:5482: \"$ac_try\"") >&5 5483 (eval $ac_try) 2>&5 5484 ac_status=$? 5485 echo "$as_me:5485: \$? = $ac_status" >&5 5486 (exit "$ac_status"); }; }; then 5487 ac_cv_type_pid_t=yes 5488else 5489 echo "$as_me: failed program was:" >&5 5490cat "conftest.$ac_ext" >&5 5491ac_cv_type_pid_t=no 5492fi 5493rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5494fi 5495echo "$as_me:5495: result: $ac_cv_type_pid_t" >&5 5496echo "${ECHO_T}$ac_cv_type_pid_t" >&6 5497if test "$ac_cv_type_pid_t" = yes; then 5498 : 5499else 5500 5501cat >>confdefs.h <<EOF 5502#define pid_t int 5503EOF 5504 5505fi 5506 5507echo "$as_me:5507: checking for uid_t in sys/types.h" >&5 5508echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 5509if test "${ac_cv_type_uid_t+set}" = set; then 5510 echo $ECHO_N "(cached) $ECHO_C" >&6 5511else 5512 cat >"conftest.$ac_ext" <<_ACEOF 5513#line 5513 "configure" 5514#include "confdefs.h" 5515#include <sys/types.h> 5516 5517_ACEOF 5518if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5519 $EGREP "uid_t" >/dev/null 2>&1; then 5520 ac_cv_type_uid_t=yes 5521else 5522 ac_cv_type_uid_t=no 5523fi 5524rm -rf conftest* 5525 5526fi 5527echo "$as_me:5527: result: $ac_cv_type_uid_t" >&5 5528echo "${ECHO_T}$ac_cv_type_uid_t" >&6 5529if test $ac_cv_type_uid_t = no; then 5530 5531cat >>confdefs.h <<\EOF 5532#define uid_t int 5533EOF 5534 5535cat >>confdefs.h <<\EOF 5536#define gid_t int 5537EOF 5538 5539fi 5540 5541echo "$as_me:5541: checking for off_t" >&5 5542echo $ECHO_N "checking for off_t... $ECHO_C" >&6 5543if test "${ac_cv_type_off_t+set}" = set; then 5544 echo $ECHO_N "(cached) $ECHO_C" >&6 5545else 5546 cat >"conftest.$ac_ext" <<_ACEOF 5547#line 5547 "configure" 5548#include "confdefs.h" 5549$ac_includes_default 5550int 5551main (void) 5552{ 5553if ((off_t *) 0) 5554 return 0; 5555if (sizeof (off_t)) 5556 return 0; 5557 ; 5558 return 0; 5559} 5560_ACEOF 5561rm -f "conftest.$ac_objext" 5562if { (eval echo "$as_me:5562: \"$ac_compile\"") >&5 5563 (eval $ac_compile) 2>&5 5564 ac_status=$? 5565 echo "$as_me:5565: \$? = $ac_status" >&5 5566 (exit "$ac_status"); } && 5567 { ac_try='test -s "conftest.$ac_objext"' 5568 { (eval echo "$as_me:5568: \"$ac_try\"") >&5 5569 (eval $ac_try) 2>&5 5570 ac_status=$? 5571 echo "$as_me:5571: \$? = $ac_status" >&5 5572 (exit "$ac_status"); }; }; then 5573 ac_cv_type_off_t=yes 5574else 5575 echo "$as_me: failed program was:" >&5 5576cat "conftest.$ac_ext" >&5 5577ac_cv_type_off_t=no 5578fi 5579rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5580fi 5581echo "$as_me:5581: result: $ac_cv_type_off_t" >&5 5582echo "${ECHO_T}$ac_cv_type_off_t" >&6 5583if test "$ac_cv_type_off_t" = yes; then 5584 : 5585else 5586 5587cat >>confdefs.h <<EOF 5588#define off_t long 5589EOF 5590 5591fi 5592 5593### checks for library functions 5594 5595for ac_func in \ 5596 gethostname \ 5597 getusershell \ 5598 endusershell \ 5599 getlogin \ 5600 initgroups \ 5601 mkdtemp \ 5602 putenv \ 5603 unsetenv \ 5604 sched_yield \ 5605 setpgid \ 5606 strftime \ 5607 tcgetattr \ 5608 waitpid \ 5609 wcswidth \ 5610 wcwidth 5611do 5612as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5613echo "$as_me:5613: checking for $ac_func" >&5 5614echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5615if eval "test \"\${$as_ac_var+set}\" = set"; then 5616 echo $ECHO_N "(cached) $ECHO_C" >&6 5617else 5618 cat >"conftest.$ac_ext" <<_ACEOF 5619#line 5619 "configure" 5620#include "confdefs.h" 5621#define $ac_func autoconf_temporary 5622#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 5623#undef $ac_func 5624 5625#ifdef __cplusplus 5626extern "C" 5627#endif 5628 5629/* We use char because int might match the return type of a gcc2 5630 builtin and then its argument prototype would still apply. */ 5631char $ac_func (void); 5632 5633int 5634main (void) 5635{ 5636 5637/* The GNU C library defines stubs for functions which it implements 5638 to always fail with ENOSYS. Some functions are actually named 5639 something starting with __ and the normal name is an alias. */ 5640#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5641#error found stub for $ac_func 5642#endif 5643 5644 return $ac_func (); 5645 ; 5646 return 0; 5647} 5648_ACEOF 5649rm -f "conftest.$ac_objext" "conftest$ac_exeext" 5650if { (eval echo "$as_me:5650: \"$ac_link\"") >&5 5651 (eval $ac_link) 2>&5 5652 ac_status=$? 5653 echo "$as_me:5653: \$? = $ac_status" >&5 5654 (exit "$ac_status"); } && 5655 { ac_try='test -s "conftest$ac_exeext"' 5656 { (eval echo "$as_me:5656: \"$ac_try\"") >&5 5657 (eval $ac_try) 2>&5 5658 ac_status=$? 5659 echo "$as_me:5659: \$? = $ac_status" >&5 5660 (exit "$ac_status"); }; }; then 5661 eval "$as_ac_var=yes" 5662else 5663 echo "$as_me: failed program was:" >&5 5664cat "conftest.$ac_ext" >&5 5665eval "$as_ac_var=no" 5666fi 5667rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 5668fi 5669echo "$as_me:5669: result: `eval echo '${'"$as_ac_var"'}'`" >&5 5670echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 5671if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 5672 cat >>confdefs.h <<EOF 5673#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5674EOF 5675 5676fi 5677done 5678 5679for ac_header in lastlog.h paths.h 5680do 5681as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5682echo "$as_me:5682: checking for $ac_header" >&5 5683echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5684if eval "test \"\${$as_ac_Header+set}\" = set"; then 5685 echo $ECHO_N "(cached) $ECHO_C" >&6 5686else 5687 cat >"conftest.$ac_ext" <<_ACEOF 5688#line 5688 "configure" 5689#include "confdefs.h" 5690#include <$ac_header> 5691_ACEOF 5692if { (eval echo "$as_me:5692: \"$ac_cpp "conftest.$ac_ext"\"") >&5 5693 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 5694 ac_status=$? 5695 $EGREP -v '^ *\+' conftest.er1 >conftest.err 5696 rm -f conftest.er1 5697 cat conftest.err >&5 5698 echo "$as_me:5698: \$? = $ac_status" >&5 5699 (exit "$ac_status"); } >/dev/null; then 5700 if test -s conftest.err; then 5701 ac_cpp_err=$ac_c_preproc_warn_flag 5702 else 5703 ac_cpp_err= 5704 fi 5705else 5706 ac_cpp_err=yes 5707fi 5708if test -z "$ac_cpp_err"; then 5709 eval "$as_ac_Header=yes" 5710else 5711 echo "$as_me: failed program was:" >&5 5712 cat "conftest.$ac_ext" >&5 5713 eval "$as_ac_Header=no" 5714fi 5715rm -f conftest.err "conftest.$ac_ext" 5716fi 5717echo "$as_me:5717: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 5718echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 5719if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 5720 cat >>confdefs.h <<EOF 5721#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5722EOF 5723 5724fi 5725done 5726 5727echo "$as_me:5727: checking for lastlog path" >&5 5728echo $ECHO_N "checking for lastlog path... $ECHO_C" >&6 5729if test "${cf_cv_path_lastlog+set}" = set; then 5730 echo $ECHO_N "(cached) $ECHO_C" >&6 5731else 5732 5733cat >"conftest.$ac_ext" <<_ACEOF 5734#line 5734 "configure" 5735#include "confdefs.h" 5736 5737#include <sys/types.h> 5738#ifdef HAVE_LASTLOG_H 5739#include <lastlog.h> 5740#else 5741#ifdef HAVE_PATHS_H 5742#include <paths.h> 5743#endif 5744#endif 5745int 5746main (void) 5747{ 5748char *path = _PATH_LASTLOG; (void)path 5749 ; 5750 return 0; 5751} 5752_ACEOF 5753rm -f "conftest.$ac_objext" 5754if { (eval echo "$as_me:5754: \"$ac_compile\"") >&5 5755 (eval $ac_compile) 2>&5 5756 ac_status=$? 5757 echo "$as_me:5757: \$? = $ac_status" >&5 5758 (exit "$ac_status"); } && 5759 { ac_try='test -s "conftest.$ac_objext"' 5760 { (eval echo "$as_me:5760: \"$ac_try\"") >&5 5761 (eval $ac_try) 2>&5 5762 ac_status=$? 5763 echo "$as_me:5763: \$? = $ac_status" >&5 5764 (exit "$ac_status"); }; }; then 5765 cf_cv_path_lastlog="_PATH_LASTLOG" 5766else 5767 echo "$as_me: failed program was:" >&5 5768cat "conftest.$ac_ext" >&5 5769if test -f /usr/adm/lastlog ; then 5770 cf_cv_path_lastlog=/usr/adm/lastlog 5771 else 5772 cf_cv_path_lastlog=no 5773 fi 5774fi 5775rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5776 5777fi 5778echo "$as_me:5778: result: $cf_cv_path_lastlog" >&5 5779echo "${ECHO_T}$cf_cv_path_lastlog" >&6 5780test "$cf_cv_path_lastlog" != no && 5781cat >>confdefs.h <<\EOF 5782#define USE_LASTLOG 1 5783EOF 5784 5785echo "$as_me:5785: checking for utmp implementation" >&5 5786echo $ECHO_N "checking for utmp implementation... $ECHO_C" >&6 5787if test "${cf_cv_have_utmp+set}" = set; then 5788 echo $ECHO_N "(cached) $ECHO_C" >&6 5789else 5790 5791 cf_cv_have_utmp=no 5792for cf_header in utmpx utmp ; do 5793cf_utmp_includes=" 5794#include <sys/types.h> 5795#include <${cf_header}.h> 5796#define getutent getutxent 5797#ifdef USE_LASTLOG 5798#include <lastlog.h> /* may conflict with utmpx.h on Linux */ 5799#endif 5800" 5801 cat >"conftest.$ac_ext" <<_ACEOF 5802#line 5802 "configure" 5803#include "confdefs.h" 5804$cf_utmp_includes 5805int 5806main (void) 5807{ 5808struct $cf_header x; 5809 char *name = x.ut_name; /* utmp.h and compatible definitions */ 5810 (void)x; 5811 (void)name; 5812 5813 ; 5814 return 0; 5815} 5816_ACEOF 5817rm -f "conftest.$ac_objext" 5818if { (eval echo "$as_me:5818: \"$ac_compile\"") >&5 5819 (eval $ac_compile) 2>&5 5820 ac_status=$? 5821 echo "$as_me:5821: \$? = $ac_status" >&5 5822 (exit "$ac_status"); } && 5823 { ac_try='test -s "conftest.$ac_objext"' 5824 { (eval echo "$as_me:5824: \"$ac_try\"") >&5 5825 (eval $ac_try) 2>&5 5826 ac_status=$? 5827 echo "$as_me:5827: \$? = $ac_status" >&5 5828 (exit "$ac_status"); }; }; then 5829 cf_cv_have_utmp=$cf_header 5830 break 5831else 5832 echo "$as_me: failed program was:" >&5 5833cat "conftest.$ac_ext" >&5 5834 5835 cat >"conftest.$ac_ext" <<_ACEOF 5836#line 5836 "configure" 5837#include "confdefs.h" 5838$cf_utmp_includes 5839int 5840main (void) 5841{ 5842struct $cf_header x; 5843 char *name = x.ut_user; /* utmpx.h must declare this */ 5844 (void)x; 5845 (void)name; 5846 5847 ; 5848 return 0; 5849} 5850_ACEOF 5851rm -f "conftest.$ac_objext" 5852if { (eval echo "$as_me:5852: \"$ac_compile\"") >&5 5853 (eval $ac_compile) 2>&5 5854 ac_status=$? 5855 echo "$as_me:5855: \$? = $ac_status" >&5 5856 (exit "$ac_status"); } && 5857 { ac_try='test -s "conftest.$ac_objext"' 5858 { (eval echo "$as_me:5858: \"$ac_try\"") >&5 5859 (eval $ac_try) 2>&5 5860 ac_status=$? 5861 echo "$as_me:5861: \$? = $ac_status" >&5 5862 (exit "$ac_status"); }; }; then 5863 cf_cv_have_utmp=$cf_header 5864 break 5865 5866else 5867 echo "$as_me: failed program was:" >&5 5868cat "conftest.$ac_ext" >&5 5869fi 5870rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5871fi 5872rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5873done 5874 5875fi 5876echo "$as_me:5876: result: $cf_cv_have_utmp" >&5 5877echo "${ECHO_T}$cf_cv_have_utmp" >&6 5878 5879if test "$cf_cv_have_utmp" != no ; then 5880 5881cat >>confdefs.h <<\EOF 5882#define HAVE_UTMP 1 5883EOF 5884 5885 test "$cf_cv_have_utmp" = utmpx && 5886cat >>confdefs.h <<\EOF 5887#define UTMPX_FOR_UTMP 1 5888EOF 5889 5890if test "$cf_cv_have_utmp" != no ; then 5891echo "$as_me:5891: checking if ${cf_cv_have_utmp}.ut_host is declared" >&5 5892echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_host is declared... $ECHO_C" >&6 5893if test "${cf_cv_have_utmp_ut_host+set}" = set; then 5894 echo $ECHO_N "(cached) $ECHO_C" >&6 5895else 5896 5897 cat >"conftest.$ac_ext" <<_ACEOF 5898#line 5898 "configure" 5899#include "confdefs.h" 5900 5901#include <sys/types.h> 5902#include <${cf_cv_have_utmp}.h> 5903int 5904main (void) 5905{ 5906struct $cf_cv_have_utmp x; 5907 char *y = &x.ut_host[0]; 5908 (void)x; 5909 (void)y 5910 ; 5911 return 0; 5912} 5913_ACEOF 5914rm -f "conftest.$ac_objext" 5915if { (eval echo "$as_me:5915: \"$ac_compile\"") >&5 5916 (eval $ac_compile) 2>&5 5917 ac_status=$? 5918 echo "$as_me:5918: \$? = $ac_status" >&5 5919 (exit "$ac_status"); } && 5920 { ac_try='test -s "conftest.$ac_objext"' 5921 { (eval echo "$as_me:5921: \"$ac_try\"") >&5 5922 (eval $ac_try) 2>&5 5923 ac_status=$? 5924 echo "$as_me:5924: \$? = $ac_status" >&5 5925 (exit "$ac_status"); }; }; then 5926 cf_cv_have_utmp_ut_host=yes 5927else 5928 echo "$as_me: failed program was:" >&5 5929cat "conftest.$ac_ext" >&5 5930cf_cv_have_utmp_ut_host=no 5931fi 5932rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5933 5934fi 5935 5936echo "$as_me:5936: result: $cf_cv_have_utmp_ut_host" >&5 5937echo "${ECHO_T}$cf_cv_have_utmp_ut_host" >&6 5938test "$cf_cv_have_utmp_ut_host" != no && 5939cat >>confdefs.h <<\EOF 5940#define HAVE_UTMP_UT_HOST 1 5941EOF 5942 5943fi 5944 5945if test "$cf_cv_have_utmp" != no ; then 5946echo "$as_me:5946: checking if ${cf_cv_have_utmp}.ut_syslen is declared" >&5 5947echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_syslen is declared... $ECHO_C" >&6 5948if test "${cf_cv_have_utmp_ut_syslen+set}" = set; then 5949 echo $ECHO_N "(cached) $ECHO_C" >&6 5950else 5951 5952 cat >"conftest.$ac_ext" <<_ACEOF 5953#line 5953 "configure" 5954#include "confdefs.h" 5955 5956#include <sys/types.h> 5957#include <${cf_cv_have_utmp}.h> 5958int 5959main (void) 5960{ 5961struct $cf_cv_have_utmp x; 5962 int y = x.ut_syslen; 5963 (void)x; 5964 (void)y 5965 ; 5966 return 0; 5967} 5968_ACEOF 5969rm -f "conftest.$ac_objext" 5970if { (eval echo "$as_me:5970: \"$ac_compile\"") >&5 5971 (eval $ac_compile) 2>&5 5972 ac_status=$? 5973 echo "$as_me:5973: \$? = $ac_status" >&5 5974 (exit "$ac_status"); } && 5975 { ac_try='test -s "conftest.$ac_objext"' 5976 { (eval echo "$as_me:5976: \"$ac_try\"") >&5 5977 (eval $ac_try) 2>&5 5978 ac_status=$? 5979 echo "$as_me:5979: \$? = $ac_status" >&5 5980 (exit "$ac_status"); }; }; then 5981 cf_cv_have_utmp_ut_syslen=yes 5982else 5983 echo "$as_me: failed program was:" >&5 5984cat "conftest.$ac_ext" >&5 5985cf_cv_have_utmp_ut_syslen=no 5986fi 5987rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5988 5989fi 5990 5991echo "$as_me:5991: result: $cf_cv_have_utmp_ut_syslen" >&5 5992echo "${ECHO_T}$cf_cv_have_utmp_ut_syslen" >&6 5993test "$cf_cv_have_utmp_ut_syslen" != no && 5994cat >>confdefs.h <<\EOF 5995#define HAVE_UTMP_UT_SYSLEN 1 5996EOF 5997 5998fi 5999 6000if test "$cf_cv_have_utmp" != no ; then 6001echo "$as_me:6001: checking if ${cf_cv_have_utmp}.ut_name is declared" >&5 6002echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_name is declared... $ECHO_C" >&6 6003if test "${cf_cv_have_utmp_ut_name+set}" = set; then 6004 echo $ECHO_N "(cached) $ECHO_C" >&6 6005else 6006 6007 cf_cv_have_utmp_ut_name=no 6008cf_utmp_includes=" 6009#include <sys/types.h> 6010#include <${cf_cv_have_utmp}.h> 6011#define getutent getutxent 6012#ifdef USE_LASTLOG 6013#include <lastlog.h> /* may conflict with utmpx.h on Linux */ 6014#endif 6015" 6016for cf_header in ut_name ut_user ; do 6017 cat >"conftest.$ac_ext" <<_ACEOF 6018#line 6018 "configure" 6019#include "confdefs.h" 6020$cf_utmp_includes 6021int 6022main (void) 6023{ 6024struct $cf_cv_have_utmp x; 6025 char *name = x.$cf_header; 6026 (void)x; 6027 (void)name; 6028 6029 ; 6030 return 0; 6031} 6032_ACEOF 6033rm -f "conftest.$ac_objext" 6034if { (eval echo "$as_me:6034: \"$ac_compile\"") >&5 6035 (eval $ac_compile) 2>&5 6036 ac_status=$? 6037 echo "$as_me:6037: \$? = $ac_status" >&5 6038 (exit "$ac_status"); } && 6039 { ac_try='test -s "conftest.$ac_objext"' 6040 { (eval echo "$as_me:6040: \"$ac_try\"") >&5 6041 (eval $ac_try) 2>&5 6042 ac_status=$? 6043 echo "$as_me:6043: \$? = $ac_status" >&5 6044 (exit "$ac_status"); }; }; then 6045 cf_cv_have_utmp_ut_name=$cf_header 6046 break 6047else 6048 echo "$as_me: failed program was:" >&5 6049cat "conftest.$ac_ext" >&5 6050fi 6051rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6052done 6053 6054fi 6055echo "$as_me:6055: result: $cf_cv_have_utmp_ut_name" >&5 6056echo "${ECHO_T}$cf_cv_have_utmp_ut_name" >&6 6057 6058case "$cf_cv_have_utmp_ut_name" in 6059(no) 6060 { { echo "$as_me:6060: error: Cannot find declaration for ut.ut_name" >&5 6061echo "$as_me: error: Cannot find declaration for ut.ut_name" >&2;} 6062 { (exit 1); exit 1; }; } 6063 ;; 6064(ut_user) 6065 6066cat >>confdefs.h <<\EOF 6067#define ut_name ut_user 6068EOF 6069 6070 ;; 6071esac 6072fi 6073 6074if test "$cf_cv_have_utmp" != no ; then 6075echo "$as_me:6075: checking for exit-status in $cf_cv_have_utmp" >&5 6076echo $ECHO_N "checking for exit-status in $cf_cv_have_utmp... $ECHO_C" >&6 6077if test "${cf_cv_have_utmp_ut_xstatus+set}" = set; then 6078 echo $ECHO_N "(cached) $ECHO_C" >&6 6079else 6080 6081for cf_result in \ 6082 ut_exit.__e_exit \ 6083 ut_exit.e_exit \ 6084 ut_exit.ut_e_exit \ 6085 ut_exit.ut_exit 6086do 6087cat >"conftest.$ac_ext" <<_ACEOF 6088#line 6088 "configure" 6089#include "confdefs.h" 6090 6091#include <sys/types.h> 6092#include <${cf_cv_have_utmp}.h> 6093int 6094main (void) 6095{ 6096struct $cf_cv_have_utmp x; 6097 long y = x.$cf_result = 0; 6098 (void)x; 6099 (void)y 6100 ; 6101 return 0; 6102} 6103_ACEOF 6104rm -f "conftest.$ac_objext" 6105if { (eval echo "$as_me:6105: \"$ac_compile\"") >&5 6106 (eval $ac_compile) 2>&5 6107 ac_status=$? 6108 echo "$as_me:6108: \$? = $ac_status" >&5 6109 (exit "$ac_status"); } && 6110 { ac_try='test -s "conftest.$ac_objext"' 6111 { (eval echo "$as_me:6111: \"$ac_try\"") >&5 6112 (eval $ac_try) 2>&5 6113 ac_status=$? 6114 echo "$as_me:6114: \$? = $ac_status" >&5 6115 (exit "$ac_status"); }; }; then 6116 cf_cv_have_utmp_ut_xstatus=$cf_result 6117 break 6118else 6119 echo "$as_me: failed program was:" >&5 6120cat "conftest.$ac_ext" >&5 6121cf_cv_have_utmp_ut_xstatus=no 6122fi 6123rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6124done 6125 6126fi 6127echo "$as_me:6127: result: $cf_cv_have_utmp_ut_xstatus" >&5 6128echo "${ECHO_T}$cf_cv_have_utmp_ut_xstatus" >&6 6129if test "$cf_cv_have_utmp_ut_xstatus" != no ; then 6130 6131cat >>confdefs.h <<\EOF 6132#define HAVE_UTMP_UT_XSTATUS 1 6133EOF 6134 6135cat >>confdefs.h <<EOF 6136#define ut_xstatus $cf_cv_have_utmp_ut_xstatus 6137EOF 6138 6139fi 6140fi 6141 6142if test "$cf_cv_have_utmp" != no ; then 6143echo "$as_me:6143: checking if ${cf_cv_have_utmp}.ut_xtime is declared" >&5 6144echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_xtime is declared... $ECHO_C" >&6 6145if test "${cf_cv_have_utmp_ut_xtime+set}" = set; then 6146 echo $ECHO_N "(cached) $ECHO_C" >&6 6147else 6148 6149 cat >"conftest.$ac_ext" <<_ACEOF 6150#line 6150 "configure" 6151#include "confdefs.h" 6152 6153#include <sys/types.h> 6154#include <${cf_cv_have_utmp}.h> 6155int 6156main (void) 6157{ 6158struct $cf_cv_have_utmp x; 6159 long y = x.ut_xtime = 0; 6160 (void)x; 6161 (void)y 6162 ; 6163 return 0; 6164} 6165_ACEOF 6166rm -f "conftest.$ac_objext" 6167if { (eval echo "$as_me:6167: \"$ac_compile\"") >&5 6168 (eval $ac_compile) 2>&5 6169 ac_status=$? 6170 echo "$as_me:6170: \$? = $ac_status" >&5 6171 (exit "$ac_status"); } && 6172 { ac_try='test -s "conftest.$ac_objext"' 6173 { (eval echo "$as_me:6173: \"$ac_try\"") >&5 6174 (eval $ac_try) 2>&5 6175 ac_status=$? 6176 echo "$as_me:6176: \$? = $ac_status" >&5 6177 (exit "$ac_status"); }; }; then 6178 cf_cv_have_utmp_ut_xtime=yes 6179else 6180 echo "$as_me: failed program was:" >&5 6181cat "conftest.$ac_ext" >&5 6182cat >"conftest.$ac_ext" <<_ACEOF 6183#line 6183 "configure" 6184#include "confdefs.h" 6185 6186#include <sys/types.h> 6187#include <${cf_cv_have_utmp}.h> 6188int 6189main (void) 6190{ 6191struct $cf_cv_have_utmp x; 6192 long y = x.ut_tv.tv_sec; 6193 (void)x; 6194 (void)y 6195 ; 6196 return 0; 6197} 6198_ACEOF 6199rm -f "conftest.$ac_objext" 6200if { (eval echo "$as_me:6200: \"$ac_compile\"") >&5 6201 (eval $ac_compile) 2>&5 6202 ac_status=$? 6203 echo "$as_me:6203: \$? = $ac_status" >&5 6204 (exit "$ac_status"); } && 6205 { ac_try='test -s "conftest.$ac_objext"' 6206 { (eval echo "$as_me:6206: \"$ac_try\"") >&5 6207 (eval $ac_try) 2>&5 6208 ac_status=$? 6209 echo "$as_me:6209: \$? = $ac_status" >&5 6210 (exit "$ac_status"); }; }; then 6211 cf_cv_have_utmp_ut_xtime=define 6212else 6213 echo "$as_me: failed program was:" >&5 6214cat "conftest.$ac_ext" >&5 6215cf_cv_have_utmp_ut_xtime=no 6216fi 6217rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6218 6219fi 6220rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6221 6222fi 6223echo "$as_me:6223: result: $cf_cv_have_utmp_ut_xtime" >&5 6224echo "${ECHO_T}$cf_cv_have_utmp_ut_xtime" >&6 6225if test "$cf_cv_have_utmp_ut_xtime" != no ; then 6226 6227cat >>confdefs.h <<\EOF 6228#define HAVE_UTMP_UT_XTIME 1 6229EOF 6230 6231 if test "$cf_cv_have_utmp_ut_xtime" = define ; then 6232 6233cat >>confdefs.h <<\EOF 6234#define ut_xtime ut_tv.tv_sec 6235EOF 6236 6237 fi 6238fi 6239fi 6240 6241if test "$cf_cv_have_utmp" != no ; then 6242echo "$as_me:6242: checking if ${cf_cv_have_utmp}.ut_session is declared" >&5 6243echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_session is declared... $ECHO_C" >&6 6244if test "${cf_cv_have_utmp_ut_session+set}" = set; then 6245 echo $ECHO_N "(cached) $ECHO_C" >&6 6246else 6247 6248 cat >"conftest.$ac_ext" <<_ACEOF 6249#line 6249 "configure" 6250#include "confdefs.h" 6251 6252#include <sys/types.h> 6253#include <${cf_cv_have_utmp}.h> 6254int 6255main (void) 6256{ 6257struct $cf_cv_have_utmp x; 6258 long y = x.ut_session; 6259 (void)x; 6260 (void)y 6261 ; 6262 return 0; 6263} 6264_ACEOF 6265rm -f "conftest.$ac_objext" 6266if { (eval echo "$as_me:6266: \"$ac_compile\"") >&5 6267 (eval $ac_compile) 2>&5 6268 ac_status=$? 6269 echo "$as_me:6269: \$? = $ac_status" >&5 6270 (exit "$ac_status"); } && 6271 { ac_try='test -s "conftest.$ac_objext"' 6272 { (eval echo "$as_me:6272: \"$ac_try\"") >&5 6273 (eval $ac_try) 2>&5 6274 ac_status=$? 6275 echo "$as_me:6275: \$? = $ac_status" >&5 6276 (exit "$ac_status"); }; }; then 6277 cf_cv_have_utmp_ut_session=yes 6278else 6279 echo "$as_me: failed program was:" >&5 6280cat "conftest.$ac_ext" >&5 6281cf_cv_have_utmp_ut_session=no 6282fi 6283rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6284 6285fi 6286echo "$as_me:6286: result: $cf_cv_have_utmp_ut_session" >&5 6287echo "${ECHO_T}$cf_cv_have_utmp_ut_session" >&6 6288if test "$cf_cv_have_utmp_ut_session" != no ; then 6289 6290cat >>confdefs.h <<\EOF 6291#define HAVE_UTMP_UT_SESSION 1 6292EOF 6293 6294fi 6295fi 6296 6297echo "$as_me:6297: checking if $cf_cv_have_utmp is SYSV flavor" >&5 6298echo $ECHO_N "checking if $cf_cv_have_utmp is SYSV flavor... $ECHO_C" >&6 6299if test "${cf_cv_sysv_utmp+set}" = set; then 6300 echo $ECHO_N "(cached) $ECHO_C" >&6 6301else 6302 6303test "$cf_cv_have_utmp" = "utmp" && cf_prefix="ut" || cf_prefix="utx" 6304cat >"conftest.$ac_ext" <<_ACEOF 6305#line 6305 "configure" 6306#include "confdefs.h" 6307 6308#include <sys/types.h> 6309#include <${cf_cv_have_utmp}.h> 6310int 6311main (void) 6312{ 6313 6314struct $cf_cv_have_utmp x; 6315 set${cf_prefix}ent (); 6316 get${cf_prefix}id(&x); 6317 put${cf_prefix}line(&x); 6318 end${cf_prefix}ent(); 6319 ; 6320 return 0; 6321} 6322_ACEOF 6323rm -f "conftest.$ac_objext" "conftest$ac_exeext" 6324if { (eval echo "$as_me:6324: \"$ac_link\"") >&5 6325 (eval $ac_link) 2>&5 6326 ac_status=$? 6327 echo "$as_me:6327: \$? = $ac_status" >&5 6328 (exit "$ac_status"); } && 6329 { ac_try='test -s "conftest$ac_exeext"' 6330 { (eval echo "$as_me:6330: \"$ac_try\"") >&5 6331 (eval $ac_try) 2>&5 6332 ac_status=$? 6333 echo "$as_me:6333: \$? = $ac_status" >&5 6334 (exit "$ac_status"); }; }; then 6335 cf_cv_sysv_utmp=yes 6336else 6337 echo "$as_me: failed program was:" >&5 6338cat "conftest.$ac_ext" >&5 6339cf_cv_sysv_utmp=no 6340fi 6341rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 6342 6343fi 6344echo "$as_me:6344: result: $cf_cv_sysv_utmp" >&5 6345echo "${ECHO_T}$cf_cv_sysv_utmp" >&6 6346test "$cf_cv_sysv_utmp" = yes && 6347cat >>confdefs.h <<\EOF 6348#define USE_SYSV_UTMP 1 6349EOF 6350 6351fi 6352 6353for ac_header in lastlog.h 6354do 6355as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6356echo "$as_me:6356: checking for $ac_header" >&5 6357echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6358if eval "test \"\${$as_ac_Header+set}\" = set"; then 6359 echo $ECHO_N "(cached) $ECHO_C" >&6 6360else 6361 cat >"conftest.$ac_ext" <<_ACEOF 6362#line 6362 "configure" 6363#include "confdefs.h" 6364#include <$ac_header> 6365_ACEOF 6366if { (eval echo "$as_me:6366: \"$ac_cpp "conftest.$ac_ext"\"") >&5 6367 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 6368 ac_status=$? 6369 $EGREP -v '^ *\+' conftest.er1 >conftest.err 6370 rm -f conftest.er1 6371 cat conftest.err >&5 6372 echo "$as_me:6372: \$? = $ac_status" >&5 6373 (exit "$ac_status"); } >/dev/null; then 6374 if test -s conftest.err; then 6375 ac_cpp_err=$ac_c_preproc_warn_flag 6376 else 6377 ac_cpp_err= 6378 fi 6379else 6380 ac_cpp_err=yes 6381fi 6382if test -z "$ac_cpp_err"; then 6383 eval "$as_ac_Header=yes" 6384else 6385 echo "$as_me: failed program was:" >&5 6386 cat "conftest.$ac_ext" >&5 6387 eval "$as_ac_Header=no" 6388fi 6389rm -f conftest.err "conftest.$ac_ext" 6390fi 6391echo "$as_me:6391: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 6392echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 6393if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 6394 cat >>confdefs.h <<EOF 6395#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6396EOF 6397 6398fi 6399done 6400 6401echo "$as_me:6401: checking for struct lastlog" >&5 6402echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 6403if test "${cf_cv_struct_lastlog+set}" = set; then 6404 echo $ECHO_N "(cached) $ECHO_C" >&6 6405else 6406 6407if test "$cross_compiling" = yes; then 6408 6409cf_cv_struct_lastlog=unknown 6410else 6411 cat >"conftest.$ac_ext" <<_ACEOF 6412#line 6412 "configure" 6413#include "confdefs.h" 6414 6415#include <sys/types.h> 6416#include <time.h> 6417#include <lastlog.h> 6418 6419int main(void) 6420{ 6421 struct lastlog data; 6422 return (sizeof(data.ll_time) != sizeof(time_t)); 6423} 6424_ACEOF 6425rm -f "conftest$ac_exeext" 6426if { (eval echo "$as_me:6426: \"$ac_link\"") >&5 6427 (eval $ac_link) 2>&5 6428 ac_status=$? 6429 echo "$as_me:6429: \$? = $ac_status" >&5 6430 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 6431 { (eval echo "$as_me:6431: \"$ac_try\"") >&5 6432 (eval $ac_try) 2>&5 6433 ac_status=$? 6434 echo "$as_me:6434: \$? = $ac_status" >&5 6435 (exit "$ac_status"); }; }; then 6436 6437cf_cv_struct_lastlog=yes 6438else 6439 echo "$as_me: program exited with status $ac_status" >&5 6440echo "$as_me: failed program was:" >&5 6441cat "conftest.$ac_ext" >&5 6442 6443cf_cv_struct_lastlog=no 6444fi 6445rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 6446fi 6447fi 6448echo "$as_me:6448: result: $cf_cv_struct_lastlog" >&5 6449echo "${ECHO_T}$cf_cv_struct_lastlog" >&6 6450 6451test $cf_cv_struct_lastlog != no && 6452cat >>confdefs.h <<\EOF 6453#define USE_STRUCT_LASTLOG 1 6454EOF 6455 6456for ac_header in \ 6457sys/param.h \ 6458 6459do 6460as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6461echo "$as_me:6461: checking for $ac_header" >&5 6462echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6463if eval "test \"\${$as_ac_Header+set}\" = set"; then 6464 echo $ECHO_N "(cached) $ECHO_C" >&6 6465else 6466 cat >"conftest.$ac_ext" <<_ACEOF 6467#line 6467 "configure" 6468#include "confdefs.h" 6469#include <$ac_header> 6470_ACEOF 6471if { (eval echo "$as_me:6471: \"$ac_cpp "conftest.$ac_ext"\"") >&5 6472 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 6473 ac_status=$? 6474 $EGREP -v '^ *\+' conftest.er1 >conftest.err 6475 rm -f conftest.er1 6476 cat conftest.err >&5 6477 echo "$as_me:6477: \$? = $ac_status" >&5 6478 (exit "$ac_status"); } >/dev/null; then 6479 if test -s conftest.err; then 6480 ac_cpp_err=$ac_c_preproc_warn_flag 6481 else 6482 ac_cpp_err= 6483 fi 6484else 6485 ac_cpp_err=yes 6486fi 6487if test -z "$ac_cpp_err"; then 6488 eval "$as_ac_Header=yes" 6489else 6490 echo "$as_me: failed program was:" >&5 6491 cat "conftest.$ac_ext" >&5 6492 eval "$as_ac_Header=no" 6493fi 6494rm -f conftest.err "conftest.$ac_ext" 6495fi 6496echo "$as_me:6496: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 6497echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 6498if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 6499 cat >>confdefs.h <<EOF 6500#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6501EOF 6502 6503fi 6504done 6505 6506echo "$as_me:6506: checking if POSIX saved-ids are supported" >&5 6507echo $ECHO_N "checking if POSIX saved-ids are supported... $ECHO_C" >&6 6508if test "${cf_cv_posix_saved_ids+set}" = set; then 6509 echo $ECHO_N "(cached) $ECHO_C" >&6 6510else 6511 6512cat >"conftest.$ac_ext" <<_ACEOF 6513#line 6513 "configure" 6514#include "confdefs.h" 6515 6516#include <unistd.h> 6517#ifdef HAVE_SYS_PARAM_H 6518#include <sys/param.h> /* this may define "BSD" */ 6519#endif 6520 6521int 6522main (void) 6523{ 6524 6525#if defined(_POSIX_SAVED_IDS) && (_POSIX_SAVED_IDS > 0) 6526 void *p = (void *) seteuid; 6527 int x = seteuid(geteuid()); 6528 (void)p; 6529 (void)x; 6530#elif defined(BSD) && (BSD >= 199103) 6531/* The BSD's may implement the runtime check - and it fails. 6532 * However, saved-ids work almost like POSIX (close enough for most uses). 6533 */ 6534#else 6535make an error 6536#endif 6537 6538 ; 6539 return 0; 6540} 6541_ACEOF 6542rm -f "conftest.$ac_objext" "conftest$ac_exeext" 6543if { (eval echo "$as_me:6543: \"$ac_link\"") >&5 6544 (eval $ac_link) 2>&5 6545 ac_status=$? 6546 echo "$as_me:6546: \$? = $ac_status" >&5 6547 (exit "$ac_status"); } && 6548 { ac_try='test -s "conftest$ac_exeext"' 6549 { (eval echo "$as_me:6549: \"$ac_try\"") >&5 6550 (eval $ac_try) 2>&5 6551 ac_status=$? 6552 echo "$as_me:6552: \$? = $ac_status" >&5 6553 (exit "$ac_status"); }; }; then 6554 cf_cv_posix_saved_ids=yes 6555 6556else 6557 echo "$as_me: failed program was:" >&5 6558cat "conftest.$ac_ext" >&5 6559 6560if test "$cross_compiling" = yes; then 6561 cf_cv_posix_saved_ids=unknown 6562else 6563 cat >"conftest.$ac_ext" <<_ACEOF 6564#line 6564 "configure" 6565#include "confdefs.h" 6566 6567#ifdef HAVE_STDLIB_H 6568#include <stdlib.h> 6569#endif 6570#include <unistd.h> 6571int main(void) 6572{ 6573 void *p = (void *) seteuid; 6574 long code = sysconf(_SC_SAVED_IDS); 6575 (void)p; 6576 ${cf_cv_main_return:-return} ((code > 0) ? 0 : 1); 6577} 6578_ACEOF 6579rm -f "conftest$ac_exeext" 6580if { (eval echo "$as_me:6580: \"$ac_link\"") >&5 6581 (eval $ac_link) 2>&5 6582 ac_status=$? 6583 echo "$as_me:6583: \$? = $ac_status" >&5 6584 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 6585 { (eval echo "$as_me:6585: \"$ac_try\"") >&5 6586 (eval $ac_try) 2>&5 6587 ac_status=$? 6588 echo "$as_me:6588: \$? = $ac_status" >&5 6589 (exit "$ac_status"); }; }; then 6590 cf_cv_posix_saved_ids=yes 6591else 6592 echo "$as_me: program exited with status $ac_status" >&5 6593echo "$as_me: failed program was:" >&5 6594cat "conftest.$ac_ext" >&5 6595cf_cv_posix_saved_ids=no 6596fi 6597rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 6598fi 6599 6600fi 6601rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 6602 6603fi 6604echo "$as_me:6604: result: $cf_cv_posix_saved_ids" >&5 6605echo "${ECHO_T}$cf_cv_posix_saved_ids" >&6 6606 6607test "$cf_cv_posix_saved_ids" = yes && 6608cat >>confdefs.h <<\EOF 6609#define HAVE_POSIX_SAVED_IDS 1 6610EOF 6611 6612# compute a reasonable value for $TERM to give tgetent(), since we may be 6613# running in 'screen', which sets $TERMCAP to a specific entry that is not 6614# necessarily in /etc/termcap - unsetenv is not portable, so we cannot simply 6615# discard $TERMCAP. 6616cf_TERMVAR=vt100 6617if test -n "$TERMCAP" 6618then 6619 cf_TERMCAP=`echo "$TERMCAP" | tr '\n' ' ' | sed -e 's/^..|//' -e 's/|.*//'` 6620 case "$cf_TERMCAP" in 6621 (screen*.*) 6622 ;; 6623 (*) 6624 cf_TERMVAR="$cf_TERMCAP" 6625 ;; 6626 esac 6627fi 6628test -z "$cf_TERMVAR" && cf_TERMVAR=vt100 6629 6630# BSD termcap used no header file 6631# SVr4 provided termcap prototypes as a legacy feature in term.h 6632# GNU termcap provided termcap prototypes in termcap.h 6633# ncurses provides termcap prototypes in both term.h and termcap.h 6634# 6635# The terminfo-based termcap interfaces do not provide a full tgetent (i.e., do 6636# not return the text of the termcap entry in the buffer), but as a special 6637# case, FreeBSD provides ncurses' termcap.h with a modified termcap reader that 6638# returns the termcap text. 6639 6640for ac_header in termcap.h 6641do 6642as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6643echo "$as_me:6643: checking for $ac_header" >&5 6644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6645if eval "test \"\${$as_ac_Header+set}\" = set"; then 6646 echo $ECHO_N "(cached) $ECHO_C" >&6 6647else 6648 cat >"conftest.$ac_ext" <<_ACEOF 6649#line 6649 "configure" 6650#include "confdefs.h" 6651#include <$ac_header> 6652_ACEOF 6653if { (eval echo "$as_me:6653: \"$ac_cpp "conftest.$ac_ext"\"") >&5 6654 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 6655 ac_status=$? 6656 $EGREP -v '^ *\+' conftest.er1 >conftest.err 6657 rm -f conftest.er1 6658 cat conftest.err >&5 6659 echo "$as_me:6659: \$? = $ac_status" >&5 6660 (exit "$ac_status"); } >/dev/null; then 6661 if test -s conftest.err; then 6662 ac_cpp_err=$ac_c_preproc_warn_flag 6663 else 6664 ac_cpp_err= 6665 fi 6666else 6667 ac_cpp_err=yes 6668fi 6669if test -z "$ac_cpp_err"; then 6670 eval "$as_ac_Header=yes" 6671else 6672 echo "$as_me: failed program was:" >&5 6673 cat "conftest.$ac_ext" >&5 6674 eval "$as_ac_Header=no" 6675fi 6676rm -f conftest.err "conftest.$ac_ext" 6677fi 6678echo "$as_me:6678: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 6679echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 6680if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 6681 cat >>confdefs.h <<EOF 6682#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6683EOF 6684 6685fi 6686done 6687 6688echo "$as_me:6688: checking if we want full tgetent function" >&5 6689echo $ECHO_N "checking if we want full tgetent function... $ECHO_C" >&6 6690 6691# Check whether --enable-full-tgetent or --disable-full-tgetent was given. 6692if test "${enable_full_tgetent+set}" = set; then 6693 enableval="$enable_full_tgetent" 6694 test "$enableval" != no && enableval=yes 6695 if test "$enableval" != "yes" ; then 6696 cf_full_tgetent=no 6697 else 6698 cf_full_tgetent=yes 6699 fi 6700else 6701 enableval=yes 6702 cf_full_tgetent=yes 6703 6704fi; 6705echo "$as_me:6705: result: $cf_full_tgetent" >&5 6706echo "${ECHO_T}$cf_full_tgetent" >&6 6707 6708if test "$cf_full_tgetent" = yes ; then 6709 cf_test_message="full tgetent" 6710else 6711 cf_test_message="tgetent" 6712fi 6713 6714echo "$as_me:6714: checking for $cf_test_message function" >&5 6715echo $ECHO_N "checking for $cf_test_message function... $ECHO_C" >&6 6716if test "${cf_cv_lib_tgetent+set}" = set; then 6717 echo $ECHO_N "(cached) $ECHO_C" >&6 6718else 6719 6720cf_save_LIBS="$LIBS" 6721cf_cv_lib_tgetent=no 6722if test "$cf_full_tgetent" = yes ; then 6723 cf_TERMLIB="otermcap termcap termlib ncurses curses" 6724 cf_TERMTST="buffer[0] == 0" 6725else 6726 cf_TERMLIB="termlib ncurses curses" 6727 cf_TERMTST="0" 6728fi 6729for cf_termlib in '' $cf_TERMLIB ; do 6730 LIBS="$cf_save_LIBS" 6731 test -n "$cf_termlib" && { 6732cf_add_libs="$LIBS" 6733# reverse order 6734cf_add_0lib= 6735for cf_add_1lib in -l$cf_termlib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 6736# filter duplicates 6737for cf_add_1lib in $cf_add_0lib; do 6738 for cf_add_2lib in $cf_add_libs; do 6739 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 6740 cf_add_1lib= 6741 break 6742 fi 6743 done 6744 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 6745done 6746LIBS="$cf_add_libs" 6747 } 6748 if test "$cross_compiling" = yes; then 6749 echo "cross-compiling, cannot verify if a termcap/tgetent is present in $cf_termlib" 1>&5 6750else 6751 cat >"conftest.$ac_ext" <<_ACEOF 6752#line 6752 "configure" 6753#include "confdefs.h" 6754 6755#ifdef HAVE_TERMCAP_H 6756#include <termcap.h> 6757#endif 6758/* terminfo implementations ignore the buffer argument, making it useless for 6759 * the xterm application, which uses this information to make a new TERMCAP 6760 * environment variable. 6761 */ 6762int main(void) 6763{ 6764 char buffer[1024]; 6765 buffer[0] = 0; 6766 tgetent(buffer, "$cf_TERMVAR"); 6767 ${cf_cv_main_return:-return} ($cf_TERMTST); } 6768_ACEOF 6769rm -f "conftest$ac_exeext" 6770if { (eval echo "$as_me:6770: \"$ac_link\"") >&5 6771 (eval $ac_link) 2>&5 6772 ac_status=$? 6773 echo "$as_me:6773: \$? = $ac_status" >&5 6774 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 6775 { (eval echo "$as_me:6775: \"$ac_try\"") >&5 6776 (eval $ac_try) 2>&5 6777 ac_status=$? 6778 echo "$as_me:6778: \$? = $ac_status" >&5 6779 (exit "$ac_status"); }; }; then 6780 echo "yes, there is a termcap/tgetent in $cf_termlib" 1>&5 6781 if test -n "$cf_termlib" ; then 6782 cf_cv_lib_tgetent="-l$cf_termlib" 6783 else 6784 cf_cv_lib_tgetent=yes 6785 fi 6786 break 6787else 6788 echo "$as_me: program exited with status $ac_status" >&5 6789echo "$as_me: failed program was:" >&5 6790cat "conftest.$ac_ext" >&5 6791echo "no, there is no termcap/tgetent in $cf_termlib" 1>&5 6792fi 6793rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 6794fi 6795done 6796LIBS="$cf_save_LIBS" 6797 6798fi 6799echo "$as_me:6799: result: $cf_cv_lib_tgetent" >&5 6800echo "${ECHO_T}$cf_cv_lib_tgetent" >&6 6801 6802# If we found a working tgetent(), set LIBS and check for termcap.h. 6803# (LIBS cannot be set inside AC_CACHE_CHECK; the commands there should 6804# not have side effects other than setting the cache variable, because 6805# they are not executed when a cached value exists.) 6806if test "x$cf_cv_lib_tgetent" != xno ; then 6807 test "x$cf_cv_lib_tgetent" != xyes && { 6808cf_add_libs="$LIBS" 6809# reverse order 6810cf_add_0lib= 6811for cf_add_1lib in $cf_cv_lib_tgetent; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 6812# filter duplicates 6813for cf_add_1lib in $cf_add_0lib; do 6814 for cf_add_2lib in $cf_add_libs; do 6815 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 6816 cf_add_1lib= 6817 break 6818 fi 6819 done 6820 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 6821done 6822LIBS="$cf_add_libs" 6823 } 6824 6825cat >>confdefs.h <<\EOF 6826#define USE_TERMCAP 1 6827EOF 6828 6829 if test "$cf_full_tgetent" = no ; then 6830 cat >"conftest.$ac_ext" <<_ACEOF 6831#line 6831 "configure" 6832#include "confdefs.h" 6833 6834#include <termcap.h> 6835int 6836main (void) 6837{ 6838 6839#ifdef NCURSES_VERSION 6840make an error 6841#endif 6842 ; 6843 return 0; 6844} 6845_ACEOF 6846rm -f "conftest.$ac_objext" 6847if { (eval echo "$as_me:6847: \"$ac_compile\"") >&5 6848 (eval $ac_compile) 2>&5 6849 ac_status=$? 6850 echo "$as_me:6850: \$? = $ac_status" >&5 6851 (exit "$ac_status"); } && 6852 { ac_try='test -s "conftest.$ac_objext"' 6853 { (eval echo "$as_me:6853: \"$ac_try\"") >&5 6854 (eval $ac_try) 2>&5 6855 ac_status=$? 6856 echo "$as_me:6856: \$? = $ac_status" >&5 6857 (exit "$ac_status"); }; }; then 6858 cat >>confdefs.h <<\EOF 6859#define HAVE_TERMCAP_H 1 6860EOF 6861 6862else 6863 echo "$as_me: failed program was:" >&5 6864cat "conftest.$ac_ext" >&5 6865fi 6866rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6867 else 6868 6869for ac_header in termcap.h 6870do 6871as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6872echo "$as_me:6872: checking for $ac_header" >&5 6873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6874if eval "test \"\${$as_ac_Header+set}\" = set"; then 6875 echo $ECHO_N "(cached) $ECHO_C" >&6 6876else 6877 cat >"conftest.$ac_ext" <<_ACEOF 6878#line 6878 "configure" 6879#include "confdefs.h" 6880#include <$ac_header> 6881_ACEOF 6882if { (eval echo "$as_me:6882: \"$ac_cpp "conftest.$ac_ext"\"") >&5 6883 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 6884 ac_status=$? 6885 $EGREP -v '^ *\+' conftest.er1 >conftest.err 6886 rm -f conftest.er1 6887 cat conftest.err >&5 6888 echo "$as_me:6888: \$? = $ac_status" >&5 6889 (exit "$ac_status"); } >/dev/null; then 6890 if test -s conftest.err; then 6891 ac_cpp_err=$ac_c_preproc_warn_flag 6892 else 6893 ac_cpp_err= 6894 fi 6895else 6896 ac_cpp_err=yes 6897fi 6898if test -z "$ac_cpp_err"; then 6899 eval "$as_ac_Header=yes" 6900else 6901 echo "$as_me: failed program was:" >&5 6902 cat "conftest.$ac_ext" >&5 6903 eval "$as_ac_Header=no" 6904fi 6905rm -f conftest.err "conftest.$ac_ext" 6906fi 6907echo "$as_me:6907: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 6908echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 6909if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 6910 cat >>confdefs.h <<EOF 6911#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6912EOF 6913 6914fi 6915done 6916 6917 fi 6918else 6919 # If we didn't find a tgetent() that supports the buffer 6920 # argument, look again to see whether we can find even 6921 # a crippled one. A crippled tgetent() is still useful to 6922 # validate values for the TERM environment variable given to 6923 # child processes. 6924 echo "$as_me:6924: checking for partial tgetent function" >&5 6925echo $ECHO_N "checking for partial tgetent function... $ECHO_C" >&6 6926if test "${cf_cv_lib_part_tgetent+set}" = set; then 6927 echo $ECHO_N "(cached) $ECHO_C" >&6 6928else 6929 6930 cf_cv_lib_part_tgetent=no 6931 for cf_termlib in $cf_TERMLIB ; do 6932 LIBS="$cf_save_LIBS -l$cf_termlib" 6933 cat >"conftest.$ac_ext" <<_ACEOF 6934#line 6934 "configure" 6935#include "confdefs.h" 6936 6937int 6938main (void) 6939{ 6940tgetent(0, "$cf_TERMVAR") 6941 ; 6942 return 0; 6943} 6944_ACEOF 6945rm -f "conftest.$ac_objext" "conftest$ac_exeext" 6946if { (eval echo "$as_me:6946: \"$ac_link\"") >&5 6947 (eval $ac_link) 2>&5 6948 ac_status=$? 6949 echo "$as_me:6949: \$? = $ac_status" >&5 6950 (exit "$ac_status"); } && 6951 { ac_try='test -s "conftest$ac_exeext"' 6952 { (eval echo "$as_me:6952: \"$ac_try\"") >&5 6953 (eval $ac_try) 2>&5 6954 ac_status=$? 6955 echo "$as_me:6955: \$? = $ac_status" >&5 6956 (exit "$ac_status"); }; }; then 6957 echo "there is a terminfo/tgetent in $cf_termlib" 1>&5 6958 cf_cv_lib_part_tgetent="-l$cf_termlib" 6959 break 6960else 6961 echo "$as_me: failed program was:" >&5 6962cat "conftest.$ac_ext" >&5 6963fi 6964rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 6965 done 6966 LIBS="$cf_save_LIBS" 6967 6968fi 6969echo "$as_me:6969: result: $cf_cv_lib_part_tgetent" >&5 6970echo "${ECHO_T}$cf_cv_lib_part_tgetent" >&6 6971 6972 if test "$cf_cv_lib_part_tgetent" != no ; then 6973 6974cf_add_libs="$LIBS" 6975# reverse order 6976cf_add_0lib= 6977for cf_add_1lib in $cf_cv_lib_part_tgetent; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 6978# filter duplicates 6979for cf_add_1lib in $cf_add_0lib; do 6980 for cf_add_2lib in $cf_add_libs; do 6981 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 6982 cf_add_1lib= 6983 break 6984 fi 6985 done 6986 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 6987done 6988LIBS="$cf_add_libs" 6989 6990for ac_header in termcap.h 6991do 6992as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6993echo "$as_me:6993: checking for $ac_header" >&5 6994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6995if eval "test \"\${$as_ac_Header+set}\" = set"; then 6996 echo $ECHO_N "(cached) $ECHO_C" >&6 6997else 6998 cat >"conftest.$ac_ext" <<_ACEOF 6999#line 6999 "configure" 7000#include "confdefs.h" 7001#include <$ac_header> 7002_ACEOF 7003if { (eval echo "$as_me:7003: \"$ac_cpp "conftest.$ac_ext"\"") >&5 7004 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 7005 ac_status=$? 7006 $EGREP -v '^ *\+' conftest.er1 >conftest.err 7007 rm -f conftest.er1 7008 cat conftest.err >&5 7009 echo "$as_me:7009: \$? = $ac_status" >&5 7010 (exit "$ac_status"); } >/dev/null; then 7011 if test -s conftest.err; then 7012 ac_cpp_err=$ac_c_preproc_warn_flag 7013 else 7014 ac_cpp_err= 7015 fi 7016else 7017 ac_cpp_err=yes 7018fi 7019if test -z "$ac_cpp_err"; then 7020 eval "$as_ac_Header=yes" 7021else 7022 echo "$as_me: failed program was:" >&5 7023 cat "conftest.$ac_ext" >&5 7024 eval "$as_ac_Header=no" 7025fi 7026rm -f conftest.err "conftest.$ac_ext" 7027fi 7028echo "$as_me:7028: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 7029echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 7030if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 7031 cat >>confdefs.h <<EOF 7032#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7033EOF 7034 7035fi 7036done 7037 7038 # If this is linking against ncurses, we'll trigger the 7039 # ifdef in resize.c that turns the termcap stuff back off. 7040 7041cat >>confdefs.h <<\EOF 7042#define USE_TERMINFO 1 7043EOF 7044 7045 fi 7046fi 7047 7048echo "$as_me:7048: checking for X applications class" >&5 7049echo $ECHO_N "checking for X applications class... $ECHO_C" >&6 7050 7051# Check whether --with-app-class or --without-app-class was given. 7052if test "${with_app_class+set}" = set; then 7053 withval="$with_app_class" 7054 APP_CLASS=$withval 7055else 7056 APP_CLASS=XTerm 7057fi; 7058 7059case x$APP_CLASS in 7060(*[/@,%]*) 7061 { echo "$as_me:7061: WARNING: X applications class cannot contain punctuation" >&5 7062echo "$as_me: WARNING: X applications class cannot contain punctuation" >&2;} 7063 APP_CLASS=XTerm 7064 ;; 7065(x[A-Z]*) 7066 ;; 7067(*) 7068 { echo "$as_me:7068: WARNING: X applications class must start with capital, ignoring $APP_CLASS" >&5 7069echo "$as_me: WARNING: X applications class must start with capital, ignoring $APP_CLASS" >&2;} 7070 APP_CLASS=XTerm 7071 ;; 7072esac 7073 7074echo "$as_me:7074: result: $APP_CLASS" >&5 7075echo "${ECHO_T}$APP_CLASS" >&6 7076 7077echo "$as_me:7077: checking for directory to install resource files" >&5 7078echo $ECHO_N "checking for directory to install resource files... $ECHO_C" >&6 7079 7080# Check whether --with-app-defaults or --without-app-defaults was given. 7081if test "${with_app_defaults+set}" = set; then 7082 withval="$with_app_defaults" 7083 APPSDIR=$withval 7084else 7085 APPSDIR='${exec_prefix}/lib/X11/app-defaults' 7086fi; 7087 7088if test "x$APPSDIR" = xauto 7089then 7090 APPSDIR='${exec_prefix}/lib/X11/app-defaults' 7091 for cf_path in \ 7092 /opt/local/share/X11/app-defaults \ 7093 /opt/X11/share/X11/app-defaults \ 7094 /usr/share/X11/app-defaults \ 7095 /usr/X11/share/X11/app-defaults \ 7096 /usr/X11/lib/X11/app-defaults \ 7097 /usr/lib/X11/app-defaults \ 7098 /etc/X11/app-defaults \ 7099 /usr/pkg/lib/X11/app-defaults \ 7100 /usr/X11R7/lib/X11/app-defaults \ 7101 /usr/X11R6/lib/X11/app-defaults \ 7102 /usr/X11R5/lib/X11/app-defaults \ 7103 /usr/X11R4/lib/X11/app-defaults \ 7104 /usr/local/lib/X11/app-defaults \ 7105 /usr/local/share/X11/app-defaults \ 7106 /usr/lib64/X11/app-defaults 7107 do 7108 if test -d "$cf_path" ; then 7109 APPSDIR="$cf_path" 7110 break 7111 fi 7112 done 7113else 7114 cf_path=$APPSDIR 7115 7116if test "x$prefix" != xNONE; then 7117 cf_path_syntax="$prefix" 7118else 7119 cf_path_syntax="$ac_default_prefix" 7120fi 7121 7122case ".$cf_path" in 7123(.\$\(*\)*|.\'*\'*) 7124 ;; 7125(..|./*|.\\*) 7126 ;; 7127(.[a-zA-Z]:[\\/]*) # OS/2 EMX 7128 ;; 7129(.\$\{*prefix\}*|.\$\{*dir\}*) 7130 eval cf_path="$cf_path" 7131 case ".$cf_path" in 7132 (.NONE/*) 7133 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` 7134 ;; 7135 esac 7136 ;; 7137(.no|.NONE/*) 7138 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` 7139 ;; 7140(*) 7141 { { echo "$as_me:7141: error: expected a pathname, not \"$cf_path\"" >&5 7142echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;} 7143 { (exit 1); exit 1; }; } 7144 ;; 7145esac 7146 7147fi 7148 7149echo "$as_me:7149: result: $APPSDIR" >&5 7150echo "${ECHO_T}$APPSDIR" >&6 7151 7152no_appsdir= 7153if test "$APPSDIR" = no 7154then 7155 no_appsdir="#" 7156else 7157 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(APPSDIR)" 7158fi 7159 7160echo "$as_me:7160: checking for the icon name" >&5 7161echo $ECHO_N "checking for the icon name... $ECHO_C" >&6 7162 7163# Check whether --with-icon-name or --without-icon-name was given. 7164if test "${with_icon_name+set}" = set; then 7165 withval="$with_icon_name" 7166 ICON_NAME="$withval" 7167else 7168 ICON_NAME=mini.xterm 7169fi; 7170case "x$ICON_NAME" in 7171(xyes|xno|x) 7172 ICON_NAME=mini.xterm 7173 ;; 7174esac 7175 7176echo "$as_me:7176: result: $ICON_NAME" >&5 7177echo "${ECHO_T}$ICON_NAME" >&6 7178 7179echo "$as_me:7179: checking for icon symlink to use" >&5 7180echo $ECHO_N "checking for icon symlink to use... $ECHO_C" >&6 7181 7182# Check whether --with-icon-symlink or --without-icon-symlink was given. 7183if test "${with_icon_symlink+set}" = set; then 7184 withval="$with_icon_symlink" 7185 ICON_SYMLINK="$withval" 7186else 7187 ICON_SYMLINK=NONE 7188fi; 7189case "x$ICON_SYMLINK" in 7190(xyes) 7191 ICON_SYMLINK=xterm 7192 ;; 7193(xno|x) 7194 ICON_SYMLINK=NONE 7195 ;; 7196esac 7197 7198echo "$as_me:7198: result: $ICON_SYMLINK" >&5 7199echo "${ECHO_T}$ICON_SYMLINK" >&6 7200 7201# Install all icons except for the overused "terminal". 7202cf_cv_icon_list= 7203for my_item in $srcdir/icons/*.svg 7204do 7205 test -f "$my_item" || continue 7206 cf_icon_name=`echo "$my_item" |sed -e "s,.svg,," -e "s,^$srcdir/,,"` 7207 case $cf_icon_name in 7208 (*_48x48) 7209 continue 7210 ;; 7211 esac 7212 test -n "$verbose" && echo " adding $cf_icon_name to icon-list" 1>&6 7213 7214echo "${as_me:-configure}:7214: testing adding $cf_icon_name to icon-list ..." 1>&5 7215 7216 cf_cv_icon_list="$cf_cv_icon_list $cf_icon_name" 7217 if test -f "${cf_icon_name}_48x48.png" 7218 then 7219 test -n "$verbose" && echo " adding ${cf_icon_name}_48x48 to icon-list" 1>&6 7220 7221echo "${as_me:-configure}:7221: testing adding ${cf_icon_name}_48x48 to icon-list ..." 1>&5 7222 7223 cf_cv_icon_list="$cf_cv_icon_list ${cf_icon_name}_48x48" 7224 fi 7225done 7226 7227echo "$as_me:7227: checking for directory to install pixmaps" >&5 7228echo $ECHO_N "checking for directory to install pixmaps... $ECHO_C" >&6 7229 7230# Check whether --with-pixmapdir or --without-pixmapdir was given. 7231if test "${with_pixmapdir+set}" = set; then 7232 withval="$with_pixmapdir" 7233 PIXMAPDIR=$withval 7234else 7235 test -z "$PIXMAPDIR" && PIXMAPDIR='${datadir}/pixmaps' 7236fi; 7237 7238if test "x$PIXMAPDIR" = xauto 7239then 7240 PIXMAPDIR='${datadir}/pixmaps' 7241 for cf_path in \ 7242 /usr/share/pixmaps \ 7243 /usr/X11R6/share/pixmaps 7244 do 7245 if test -d "$cf_path" ; then 7246 PIXMAPDIR="$cf_path" 7247 break 7248 fi 7249 done 7250else 7251 cf_path=$PIXMAPDIR 7252 7253if test "x$prefix" != xNONE; then 7254 cf_path_syntax="$prefix" 7255else 7256 cf_path_syntax="$ac_default_prefix" 7257fi 7258 7259case ".$cf_path" in 7260(.\$\(*\)*|.\'*\'*) 7261 ;; 7262(..|./*|.\\*) 7263 ;; 7264(.[a-zA-Z]:[\\/]*) # OS/2 EMX 7265 ;; 7266(.\$\{*prefix\}*|.\$\{*dir\}*) 7267 eval cf_path="$cf_path" 7268 case ".$cf_path" in 7269 (.NONE/*) 7270 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` 7271 ;; 7272 esac 7273 ;; 7274(.no|.NONE/*) 7275 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` 7276 ;; 7277(*) 7278 { { echo "$as_me:7278: error: expected a pathname, not \"$cf_path\"" >&5 7279echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;} 7280 { (exit 1); exit 1; }; } 7281 ;; 7282esac 7283 7284fi 7285echo "$as_me:7285: result: $PIXMAPDIR" >&5 7286echo "${ECHO_T}$PIXMAPDIR" >&6 7287 7288no_pixmapdir= 7289if test "$PIXMAPDIR" = no 7290then 7291 no_pixmapdir="#" 7292else 7293 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(PIXMAPDIR)" 7294fi 7295 7296echo "$as_me:7296: checking for directory to install icons" >&5 7297echo $ECHO_N "checking for directory to install icons... $ECHO_C" >&6 7298 7299# Check whether --with-icondir or --without-icondir was given. 7300if test "${with_icondir+set}" = set; then 7301 withval="$with_icondir" 7302 ICONDIR=$withval 7303else 7304 test -z "$ICONDIR" && ICONDIR=no 7305fi; 7306 7307if test "x$ICONDIR" = xauto 7308then 7309 ICONDIR='${datadir}/icons' 7310 for cf_path in \ 7311 /usr/share/icons \ 7312 /usr/X11R6/share/icons 7313 do 7314 if test -d "$cf_path" ; then 7315 ICONDIR="$cf_path" 7316 break 7317 fi 7318 done 7319else 7320 cf_path=$ICONDIR 7321 7322if test "x$prefix" != xNONE; then 7323 cf_path_syntax="$prefix" 7324else 7325 cf_path_syntax="$ac_default_prefix" 7326fi 7327 7328case ".$cf_path" in 7329(.\$\(*\)*|.\'*\'*) 7330 ;; 7331(..|./*|.\\*) 7332 ;; 7333(.[a-zA-Z]:[\\/]*) # OS/2 EMX 7334 ;; 7335(.\$\{*prefix\}*|.\$\{*dir\}*) 7336 eval cf_path="$cf_path" 7337 case ".$cf_path" in 7338 (.NONE/*) 7339 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` 7340 ;; 7341 esac 7342 ;; 7343(.no|.NONE/*) 7344 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` 7345 ;; 7346(*) 7347 { { echo "$as_me:7347: error: expected a pathname, not \"$cf_path\"" >&5 7348echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;} 7349 { (exit 1); exit 1; }; } 7350 ;; 7351esac 7352 7353fi 7354echo "$as_me:7354: result: $ICONDIR" >&5 7355echo "${ECHO_T}$ICONDIR" >&6 7356 7357no_icondir= 7358if test "$ICONDIR" = no 7359then 7360 no_icondir="#" 7361else 7362 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(ICONDIR)" 7363fi 7364 7365echo "$as_me:7365: checking if icon theme should be used" >&5 7366echo $ECHO_N "checking if icon theme should be used... $ECHO_C" >&6 7367 7368# Check whether --with-icon-theme or --without-icon-theme was given. 7369if test "${with_icon_theme+set}" = set; then 7370 withval="$with_icon_theme" 7371 ICON_THEME=$withval 7372else 7373 ICON_THEME=no 7374fi; 7375 7376case "x$ICON_THEME" in 7377(xno) 7378 ;; 7379(x|xyes) 7380 ICON_THEME=hicolor 7381 ;; 7382esac 7383echo "$as_me:7383: result: $ICON_THEME" >&5 7384echo "${ECHO_T}$ICON_THEME" >&6 7385 7386if test "x$ICON_THEME" = xno 7387then 7388 if test "x$ICONDIR" != xno 7389 then 7390 test -n "$verbose" && echo " ignoring icondir without theme" 1>&6 7391 7392echo "${as_me:-configure}:7392: testing ignoring icondir without theme ..." 1>&5 7393 7394 no_icondir="#" 7395 fi 7396else 7397 if test "x$ICONDIR" = xno 7398 then 7399 { { echo "$as_me:7399: error: icondir must be set for icon theme" >&5 7400echo "$as_me: error: icondir must be set for icon theme" >&2;} 7401 { (exit 1); exit 1; }; } 7402 fi 7403fi 7404 7405: ${ICON_FORMAT:=".svg .png .xpm"} 7406 7407ICON_LIST= 7408 7409if test "x$ICON_THEME" != xno 7410then 7411 cf_icon_list="$cf_cv_icon_list" 7412else 7413 cf_icon_list="icons/${ICON_NAME}_48x48" 7414fi 7415 7416echo "$as_me:7416: checking for icon(s) to install" >&5 7417echo $ECHO_N "checking for icon(s) to install... $ECHO_C" >&6 7418for cf_name in $cf_icon_list 7419do 7420 test -n "$verbose" && echo " using $ICON_FORMAT" 1>&6 7421 7422echo "${as_me:-configure}:7422: testing using $ICON_FORMAT ..." 1>&5 7423 7424 for cf_suffix in $ICON_FORMAT 7425 do 7426 cf_icon="${cf_name}${cf_suffix}" 7427 cf_left=`echo "$cf_icon" | sed -e 's/:.*//'` 7428 if test ! -f "${cf_left}" 7429 then 7430 if test "x$srcdir" != "x." 7431 then 7432 cf_icon="${srcdir}/${cf_left}" 7433 cf_left=`echo "$cf_icon" | sed -e 's/:.*//'` 7434 if test ! -f "${cf_left}" 7435 then 7436 continue 7437 fi 7438 else 7439 continue 7440 fi 7441 fi 7442 if test "x$ICON_THEME" != xno 7443 then 7444 cf_base=`basename "$cf_left"` 7445 cf_trim=`echo "$cf_base" | sed -e 's/_[0-9][0-9]x[0-9][0-9]\././'` 7446 case "x${cf_base}" in 7447 (*:*) 7448 cf_next=$cf_base 7449 # user-defined mapping 7450 ;; 7451 (*.png) 7452 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'` 7453 if test -z "$cf_size" 7454 then 7455 { echo "$as_me:7455: WARNING: cannot determine size of $cf_left" >&5 7456echo "$as_me: WARNING: cannot determine size of $cf_left" >&2;} 7457 continue 7458 fi 7459 cf_next="$cf_size/apps/$cf_trim" 7460 ;; 7461 (*.svg) 7462 cf_next="scalable/apps/$cf_trim" 7463 ;; 7464 (*.xpm) 7465 test -n "$verbose" && echo " ignored XPM file in icon theme" 1>&6 7466 7467echo "${as_me:-configure}:7467: testing ignored XPM file in icon theme ..." 1>&5 7468 7469 continue 7470 ;; 7471 (*_[0-9][0-9]*x[0-9][0-9]*.*) 7472 cf_size=`echo "$cf_left"|sed -e 's/^.*_\([0-9][0-9]*x[0-9][0-9]*\)\..*$/\1/'` 7473 cf_left=`echo "$cf_left"|sed -e 's/^\(.*\)_\([0-9][0-9]*x[0-9][0-9]*\)\(\..*\)$/\1\3/'` 7474 cf_next="$cf_size/apps/$cf_base" 7475 ;; 7476 esac 7477 test -n "$verbose" && echo " adding $cf_next" 1>&6 7478 7479echo "${as_me:-configure}:7479: testing adding $cf_next ..." 1>&5 7480 7481 cf_icon="${cf_icon}:${cf_next}" 7482 fi 7483 test -n "$ICON_LIST" && ICON_LIST="$ICON_LIST " 7484 ICON_LIST="$ICON_LIST${cf_icon}" 7485 if test -z "$ICON_NAME" 7486 then 7487 ICON_NAME=`basename "$cf_icon" | sed -e 's/[.:].*//'` 7488 fi 7489 done 7490done 7491 7492if test -n "$verbose" 7493then 7494 echo "$as_me:7494: checking result" >&5 7495echo $ECHO_N "checking result... $ECHO_C" >&6 7496fi 7497echo "$as_me:7497: result: $ICON_LIST" >&5 7498echo "${ECHO_T}$ICON_LIST" >&6 7499 7500if test -z "$ICON_LIST" 7501then 7502 { { echo "$as_me:7502: error: no icons found" >&5 7503echo "$as_me: error: no icons found" >&2;} 7504 { (exit 1); exit 1; }; } 7505fi 7506 7507echo "$as_me:7507: checking for icon name" >&5 7508echo $ECHO_N "checking for icon name... $ECHO_C" >&6 7509echo "$as_me:7509: result: $ICON_NAME" >&5 7510echo "${ECHO_T}$ICON_NAME" >&6 7511 7512# Comment-out the install-desktop rule if the desktop-utils are not found. 7513echo "$as_me:7513: checking if you want to install desktop files" >&5 7514echo $ECHO_N "checking if you want to install desktop files... $ECHO_C" >&6 7515 7516# Check whether --enable-desktop or --disable-desktop was given. 7517if test "${enable_desktop+set}" = set; then 7518 enableval="$enable_desktop" 7519 test "$enableval" != no && enableval=yes 7520 if test "$enableval" != "yes" ; then 7521 enable_desktop=$enableval 7522 else 7523 enable_desktop=$enableval 7524 fi 7525else 7526 enableval=yes 7527 enable_desktop=$enableval 7528 7529fi; 7530echo "$as_me:7530: result: $enable_desktop" >&5 7531echo "${ECHO_T}$enable_desktop" >&6 7532 7533desktop_utils= 7534if test "$enable_desktop" = yes ; then 7535# Extract the first word of "desktop-file-install", so it can be a program name with args. 7536set dummy desktop-file-install; ac_word=$2 7537echo "$as_me:7537: checking for $ac_word" >&5 7538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7539if test "${ac_cv_prog_desktop_utils+set}" = set; then 7540 echo $ECHO_N "(cached) $ECHO_C" >&6 7541else 7542 if test -n "$desktop_utils"; then 7543 ac_cv_prog_desktop_utils="$desktop_utils" # Let the user override the test. 7544else 7545 ac_save_IFS=$IFS; IFS=$ac_path_separator 7546ac_dummy="$PATH" 7547for ac_dir in $ac_dummy; do 7548 IFS=$ac_save_IFS 7549 test -z "$ac_dir" && ac_dir=. 7550 $as_executable_p "$ac_dir/$ac_word" || continue 7551ac_cv_prog_desktop_utils="yes" 7552echo "$as_me:7552: found $ac_dir/$ac_word" >&5 7553break 7554done 7555 7556 test -z "$ac_cv_prog_desktop_utils" && ac_cv_prog_desktop_utils="no" 7557fi 7558fi 7559desktop_utils=$ac_cv_prog_desktop_utils 7560if test -n "$desktop_utils"; then 7561 echo "$as_me:7561: result: $desktop_utils" >&5 7562echo "${ECHO_T}$desktop_utils" >&6 7563else 7564 echo "$as_me:7564: result: no" >&5 7565echo "${ECHO_T}no" >&6 7566fi 7567 7568fi 7569 7570test "$desktop_utils" = yes && desktop_utils= || desktop_utils="#" 7571 7572if test -z "$desktop_utils" 7573then 7574 echo "$as_me:7574: checking for requested desktop-category" >&5 7575echo $ECHO_N "checking for requested desktop-category... $ECHO_C" >&6 7576 7577# Check whether --with-desktop-category or --without-desktop-category was given. 7578if test "${with_desktop_category+set}" = set; then 7579 withval="$with_desktop_category" 7580 cf_desktop_want=$withval 7581else 7582 cf_desktop_want=auto 7583fi; 7584 echo "$as_me:7584: result: $cf_desktop_want" >&5 7585echo "${ECHO_T}$cf_desktop_want" >&6 7586 7587 if test "$cf_desktop_want" = auto 7588 then 7589 rm -rf conftest* 7590 cf_desktop_also= 7591 for cf_desktop_dir in \ 7592 /usr/share/app-install \ 7593 /usr/share/applications 7594 do 7595 if test -d $cf_desktop_dir 7596 then 7597 find $cf_desktop_dir -name '*.desktop' | \ 7598 while true 7599 do 7600 read cf_desktop_path 7601 test -z "$cf_desktop_path" && break 7602 cf_desktop_name=`basename "$cf_desktop_path" .desktop` 7603 case $cf_desktop_name in 7604 (xterm|*-xterm|*rxvt*|*konsole|*[Tt]erminal) 7605 test -n "$verbose" && echo " inspect $cf_desktop_path" 1>&6 7606 7607echo "${as_me:-configure}:7607: testing inspect $cf_desktop_path ..." 1>&5 7608 7609 ${EGREP-egrep} '^Categories=' "$cf_desktop_path" | \ 7610 tr ';' '\n' | \ 7611 sed -e 's%^.*=%%' -e '/^$/d' >>conftest.1 7612 ;; 7613 esac 7614 done 7615 fi 7616 done 7617 if test -s conftest.1 7618 then 7619 cf_desktop_last= 7620 sort conftest.1 | \ 7621 while true 7622 do 7623 read cf_desktop_this 7624 test -z "$cf_desktop_this" && break 7625 if test -s conftest.2 7626 then 7627 grep -w "$cf_desktop_this" conftest.2 >/dev/null && continue 7628 elif test -s conftest.3 7629 then 7630 grep -w "$cf_desktop_this" conftest.3 >/dev/null && continue 7631 fi 7632 case "$cf_desktop_this" in 7633 (-*) 7634 ;; 7635 (Qt*|*Xfce*|*[ABCDEFGHIJKLMNOPQRSTUVWXYZ][ABCDEFGHIJKLMNOPQRSTUVWXYZ]*) 7636 test -n "$verbose" && echo " ignored $cf_desktop_this" 1>&6 7637 7638echo "${as_me:-configure}:7638: testing ignored $cf_desktop_this ..." 1>&5 7639 7640 echo "$cf_desktop_this" >> conftest.3 7641 ;; 7642 (System|TerminalEmulator|*) 7643 test -n "$verbose" && echo " applied $cf_desktop_this" 1>&6 7644 7645echo "${as_me:-configure}:7645: testing applied $cf_desktop_this ..." 1>&5 7646 7647 test "x$cf_desktop_last" != "x$cf_desktop_this" && echo "$cf_desktop_this" >>conftest.2 7648 ;; 7649 esac 7650 cf_desktop_last=$cf_desktop_this 7651 done 7652 cf_desktop_want="`tr '\n' ';' < conftest.2`" 7653 fi 7654 if test -n "$cf_desktop_want" 7655 then 7656 if test "$cf_desktop_want" = auto 7657 then 7658 cf_desktop_want= 7659 else 7660 # do a sanity check on the semicolon-separated list, ignore on failure 7661 cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/[^;]//g'` 7662 test -z "$cf_desktop_test" && cf_desktop_want= 7663 cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/^.*;$/./g'` 7664 test -z "$cf_desktop_test" && cf_desktop_want= 7665 fi 7666 fi 7667 if test -z "$cf_desktop_want" 7668 then 7669 cf_desktop_want="`echo "System|TerminalEmulator|*" | sed -e 's/\*//g' -e 's/|/;/g' -e 's/;*$/;/g'`" 7670 test -n "$verbose" && echo " no usable value found for desktop category" 1>&6 7671 7672echo "${as_me:-configure}:7672: testing no usable value found for desktop category ..." 1>&5 7673 7674 fi 7675 fi 7676 DESKTOP_CATEGORY=`echo "$cf_desktop_want" | sed -e 's/[ ,]/;/g'` 7677 test -n "$verbose" && echo " will use Categories=$DESKTOP_CATEGORY" 1>&6 7678 7679echo "${as_me:-configure}:7679: testing will use Categories=$DESKTOP_CATEGORY ..." 1>&5 7680 7681fi 7682 7683echo "$as_me:7683: checking for install-permissions reference" >&5 7684echo $ECHO_N "checking for install-permissions reference... $ECHO_C" >&6 7685 7686# Check whether --with-reference or --without-reference was given. 7687if test "${with_reference+set}" = set; then 7688 withval="$with_reference" 7689 with_reference=$withval 7690else 7691 with_reference=xterm 7692fi; 7693echo "$as_me:7693: result: $with_reference" >&5 7694echo "${ECHO_T}$with_reference" >&6 7695 7696with_full_paths=yes 7697 7698 echo "$as_me:7698: checking for PATH separator" >&5 7699echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6 7700 case "$cf_cv_system_name" in 7701 (os2*) PATH_SEPARATOR=';' ;; 7702 (*) ${PATH_SEPARATOR:=':'} ;; 7703 esac 7704 7705 echo "$as_me:7705: result: $PATH_SEPARATOR" >&5 7706echo "${ECHO_T}$PATH_SEPARATOR" >&6 7707 7708test -z "$XTERM_PATH" && XTERM_PATH="$with_reference" 7709for ac_prog in $XTERM_PATH $with_reference 7710do 7711 # Extract the first word of "$ac_prog", so it can be a program name with args. 7712set dummy $ac_prog; ac_word=$2 7713echo "$as_me:7713: checking for $ac_word" >&5 7714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7715if test "${ac_cv_path_XTERM_PATH+set}" = set; then 7716 echo $ECHO_N "(cached) $ECHO_C" >&6 7717else 7718 case $XTERM_PATH in 7719 [\\/]* | ?:[\\/]*) 7720 ac_cv_path_XTERM_PATH="$XTERM_PATH" # Let the user override the test with a path. 7721 ;; 7722 *) 7723 ac_save_IFS=$IFS; IFS=$ac_path_separator 7724ac_dummy="$PATH" 7725for ac_dir in $ac_dummy; do 7726 IFS=$ac_save_IFS 7727 test -z "$ac_dir" && ac_dir=. 7728 if $as_executable_p "$ac_dir/$ac_word"; then 7729 ac_cv_path_XTERM_PATH="$ac_dir/$ac_word" 7730 echo "$as_me:7730: found $ac_dir/$ac_word" >&5 7731 break 7732fi 7733done 7734 7735 ;; 7736esac 7737fi 7738XTERM_PATH=$ac_cv_path_XTERM_PATH 7739 7740if test -n "$XTERM_PATH"; then 7741 echo "$as_me:7741: result: $XTERM_PATH" >&5 7742echo "${ECHO_T}$XTERM_PATH" >&6 7743else 7744 echo "$as_me:7744: result: no" >&5 7745echo "${ECHO_T}no" >&6 7746fi 7747 7748 test -n "$XTERM_PATH" && break 7749done 7750test -n "$XTERM_PATH" || XTERM_PATH="$XTERM_PATH" 7751 7752cf_path_prog="" 7753cf_path_args="" 7754IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" 7755for cf_temp in $ac_cv_path_XTERM_PATH 7756do 7757 if test -z "$cf_path_prog" ; then 7758 if test "$with_full_paths" = yes ; then 7759 7760if test "x$prefix" != xNONE; then 7761 cf_path_syntax="$prefix" 7762else 7763 cf_path_syntax="$ac_default_prefix" 7764fi 7765 7766case ".$cf_temp" in 7767(.\$\(*\)*|.\'*\'*) 7768 ;; 7769(..|./*|.\\*) 7770 ;; 7771(.[a-zA-Z]:[\\/]*) # OS/2 EMX 7772 ;; 7773(.\$\{*prefix\}*|.\$\{*dir\}*) 7774 eval cf_temp="$cf_temp" 7775 case ".$cf_temp" in 7776 (.NONE/*) 7777 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` 7778 ;; 7779 esac 7780 ;; 7781(.no|.NONE/*) 7782 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` 7783 ;; 7784(*) 7785 break 7786 ;; 7787esac 7788 7789 cf_path_prog="$cf_temp" 7790 else 7791 cf_path_prog="`basename "$cf_temp"`" 7792 fi 7793 elif test -z "$cf_path_args" ; then 7794 cf_path_args="$cf_temp" 7795 else 7796 cf_path_args="$cf_path_args $cf_temp" 7797 fi 7798done 7799IFS="$cf_save_ifs" 7800 7801if test -n "$cf_path_prog" ; then 7802 7803echo "${as_me:-configure}:7803: testing defining path for ${cf_path_prog} ..." 1>&5 7804 7805cat >>confdefs.h <<EOF 7806#define XTERM_PATH_PATH "$cf_path_prog" 7807EOF 7808 7809 test -n "$cf_path_args" && 7810cat >>confdefs.h <<EOF 7811#define XTERM_PATH_ARGS "$cf_path_args" 7812EOF 7813 7814fi 7815 7816# If any of --program-prefix, --program-suffix or --program-transform-name is 7817# given, accept an option tell the makefile to create a symbolic link, e.g., 7818# to "xterm" on install. 7819XTERM_SYMLINK=NONE 7820 7821if test "$program_transform_name" != "'s,,,'" ; then 7822cf_name=`echo "$program_transform_name" | sed -e 's,\\$\\$,$,g'` 7823cf_name=`echo xterm |sed -e "$cf_name"` 7824echo "$as_me:7824: checking for symbolic link to create to $cf_name" >&5 7825echo $ECHO_N "checking for symbolic link to create to $cf_name... $ECHO_C" >&6 7826 7827# Check whether --with-xterm-symlink or --without-xterm-symlink was given. 7828if test "${with_xterm_symlink+set}" = set; then 7829 withval="$with_xterm_symlink" 7830 with_symlink=$withval 7831else 7832 with_symlink=xterm 7833fi; 7834echo "$as_me:7834: result: $with_symlink" >&5 7835echo "${ECHO_T}$with_symlink" >&6 7836test "$with_symlink" = yes && with_symlink=xterm 7837test -n "$with_symlink" && \ 7838 test "$with_symlink" != no && \ 7839 test "$with_symlink" != "$cf_name" && \ 7840 XTERM_SYMLINK="$with_symlink" 7841fi 7842 7843echo "$as_me:7843: checking if you want to disable openpty" >&5 7844echo $ECHO_N "checking if you want to disable openpty... $ECHO_C" >&6 7845 7846# Check whether --enable-openpty or --disable-openpty was given. 7847if test "${enable_openpty+set}" = set; then 7848 enableval="$enable_openpty" 7849 test "$enableval" != no && enableval=yes 7850 if test "$enableval" != "yes" ; then 7851 disable_openpty=yes 7852 else 7853 disable_openpty=no 7854 fi 7855else 7856 enableval=yes 7857 disable_openpty=no 7858 7859fi; 7860echo "$as_me:7860: result: $disable_openpty" >&5 7861echo "${ECHO_T}$disable_openpty" >&6 7862 7863echo "$as_me:7863: checking if you want to disable setuid" >&5 7864echo $ECHO_N "checking if you want to disable setuid... $ECHO_C" >&6 7865 7866# Check whether --enable-setuid or --disable-setuid was given. 7867if test "${enable_setuid+set}" = set; then 7868 enableval="$enable_setuid" 7869 test "$enableval" != no && enableval=yes 7870 if test "$enableval" != "yes" ; then 7871 disable_setuid=yes 7872 else 7873 disable_setuid=no 7874 fi 7875else 7876 enableval=yes 7877 disable_setuid=no 7878 7879fi; 7880echo "$as_me:7880: result: $disable_setuid" >&5 7881echo "${ECHO_T}$disable_setuid" >&6 7882 7883echo "$as_me:7883: checking if you want to disable setgid" >&5 7884echo $ECHO_N "checking if you want to disable setgid... $ECHO_C" >&6 7885 7886# Check whether --enable-setgid or --disable-setgid was given. 7887if test "${enable_setgid+set}" = set; then 7888 enableval="$enable_setgid" 7889 test "$enableval" != no && enableval=yes 7890 if test "$enableval" != "yes" ; then 7891 disable_setgid=yes 7892 else 7893 disable_setgid=no 7894 fi 7895else 7896 enableval=yes 7897 disable_setgid=no 7898 7899fi; 7900echo "$as_me:7900: result: $disable_setgid" >&5 7901echo "${ECHO_T}$disable_setgid" >&6 7902 7903echo "$as_me:7903: checking if you want to run xterm setuid to a given user" >&5 7904echo $ECHO_N "checking if you want to run xterm setuid to a given user... $ECHO_C" >&6 7905 7906# Check whether --with-setuid or --without-setuid was given. 7907if test "${with_setuid+set}" = set; then 7908 withval="$with_setuid" 7909 use_given_setuid=$withval 7910else 7911 use_given_setuid=no 7912fi; 7913echo "$as_me:7913: result: $use_given_setuid" >&5 7914echo "${ECHO_T}$use_given_setuid" >&6 7915 7916if test "$use_given_setuid" != no ; then 7917 if test "$use_given_setuid" = yes ; then 7918 cf_cv_given_setuid=root 7919 else 7920 cf_cv_given_setuid=$use_given_setuid 7921 fi 7922 # inherit SINSTALL_OPTS from environment to allow packager to customize it. 7923 SINSTALL_OPTS="$SINSTALL_OPTS u+s -u $cf_cv_given_setuid" 7924fi 7925 7926echo "$as_me:7926: checking if you want to run xterm setgid to match utmp/utmpx file" >&5 7927echo $ECHO_N "checking if you want to run xterm setgid to match utmp/utmpx file... $ECHO_C" >&6 7928 7929# Check whether --with-utmp-setgid or --without-utmp-setgid was given. 7930if test "${with_utmp_setgid+set}" = set; then 7931 withval="$with_utmp_setgid" 7932 use_utmp_setgid=$withval 7933else 7934 use_utmp_setgid=no 7935fi; 7936echo "$as_me:7936: result: $use_utmp_setgid" >&5 7937echo "${ECHO_T}$use_utmp_setgid" >&6 7938 7939if test "$use_utmp_setgid" != no ; then 7940 if test "$use_utmp_setgid" = yes ; then 7941 7942if test $cf_cv_have_utmp != no ; then 7943echo "$as_me:7943: checking for utmp/utmpx group" >&5 7944echo $ECHO_N "checking for utmp/utmpx group... $ECHO_C" >&6 7945if test "${cf_cv_utmp_group+set}" = set; then 7946 echo $ECHO_N "(cached) $ECHO_C" >&6 7947else 7948 7949for cf_utmp_path in /var/adm /var/run 7950do 7951 for cf_utmp_file in utmpx utmp 7952 do 7953 if test -f $cf_utmp_path/$cf_utmp_file 7954 then 7955 cf_cv_utmp_group=root 7956 7957 cf_option="-lL" 7958 7959 # Expect listing to have fields like this: 7960 #-r--r--r-- 1 user group 34293 Jul 18 16:29 pathname 7961 ls "$cf_option" "$cf_utmp_path/$cf_utmp_file" >conftest 7962 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest 7963 if test -z "$cf_rest" ; then 7964 cf_option="${cf_option}g" 7965 ls "$cf_option" "$cf_utmp_path/$cf_utmp_file" >conftest 7966 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest 7967 fi 7968 rm -f conftest 7969 7970 # If we have a pathname, and the date fields look right, assume we've 7971 # captured the group as well. 7972 if test -n "$cf_rest" ; then 7973 cf_test=`echo "${cf_date2}${cf_date3}" | sed -e 's/[0-9:]//g'` 7974 if test -z "$cf_test" ; then 7975 cf_cv_utmp_group=$cf_grp; 7976 fi 7977 fi 7978 break 7979 fi 7980 done 7981 test -n "$cf_cv_utmp_group" && break 7982done 7983 7984fi 7985echo "$as_me:7985: result: $cf_cv_utmp_group" >&5 7986echo "${ECHO_T}$cf_cv_utmp_group" >&6 7987else 7988 { { echo "$as_me:7988: error: cannot find utmp group" >&5 7989echo "$as_me: error: cannot find utmp group" >&2;} 7990 { (exit 1); exit 1; }; } 7991fi 7992 7993 else 7994 cf_cv_utmp_group=$use_utmp_setgid 7995 fi 7996 if test "$cf_cv_posix_saved_ids" != yes ; then 7997 { { echo "$as_me:7997: error: Your system does not support POSIX saved-ids" >&5 7998echo "$as_me: error: Your system does not support POSIX saved-ids" >&2;} 7999 { (exit 1); exit 1; }; } 8000 fi 8001 8002cat >>confdefs.h <<\EOF 8003#define USE_UTMP_SETGID 1 8004EOF 8005 8006 SINSTALL_OPTS="$SINSTALL_OPTS g+s -g $cf_cv_utmp_group" 8007fi 8008 8009echo "$as_me:8009: checking if you want to link with utempter" >&5 8010echo $ECHO_N "checking if you want to link with utempter... $ECHO_C" >&6 8011 8012# Check whether --with-utempter or --without-utempter was given. 8013if test "${with_utempter+set}" = set; then 8014 withval="$with_utempter" 8015 use_utempter=$withval 8016else 8017 use_utempter=no 8018fi; 8019echo "$as_me:8019: result: $use_utempter" >&5 8020echo "${ECHO_T}$use_utempter" >&6 8021 8022if test "$use_utempter" = yes ; then 8023 8024echo "$as_me:8024: checking if we can link with utempter library" >&5 8025echo $ECHO_N "checking if we can link with utempter library... $ECHO_C" >&6 8026if test "${cf_cv_have_utempter+set}" = set; then 8027 echo $ECHO_N "(cached) $ECHO_C" >&6 8028else 8029 8030cf_save_LIBS="$LIBS" 8031 8032cf_add_libs="$LIBS" 8033# reverse order 8034cf_add_0lib= 8035for cf_add_1lib in -lutempter; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 8036# filter duplicates 8037for cf_add_1lib in $cf_add_0lib; do 8038 for cf_add_2lib in $cf_add_libs; do 8039 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 8040 cf_add_1lib= 8041 break 8042 fi 8043 done 8044 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 8045done 8046LIBS="$cf_add_libs" 8047 8048cat >"conftest.$ac_ext" <<_ACEOF 8049#line 8049 "configure" 8050#include "confdefs.h" 8051 8052#include <utempter.h> 8053 8054int 8055main (void) 8056{ 8057 8058 addToUtmp("/dev/tty", 0, 1); 8059 removeFromUtmp(); 8060 8061 ; 8062 return 0; 8063} 8064_ACEOF 8065rm -f "conftest.$ac_objext" "conftest$ac_exeext" 8066if { (eval echo "$as_me:8066: \"$ac_link\"") >&5 8067 (eval $ac_link) 2>&5 8068 ac_status=$? 8069 echo "$as_me:8069: \$? = $ac_status" >&5 8070 (exit "$ac_status"); } && 8071 { ac_try='test -s "conftest$ac_exeext"' 8072 { (eval echo "$as_me:8072: \"$ac_try\"") >&5 8073 (eval $ac_try) 2>&5 8074 ac_status=$? 8075 echo "$as_me:8075: \$? = $ac_status" >&5 8076 (exit "$ac_status"); }; }; then 8077 8078 cf_cv_have_utempter=yes 8079else 8080 echo "$as_me: failed program was:" >&5 8081cat "conftest.$ac_ext" >&5 8082 8083 cf_cv_have_utempter=no 8084fi 8085rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 8086LIBS="$cf_save_LIBS" 8087 8088fi 8089echo "$as_me:8089: result: $cf_cv_have_utempter" >&5 8090echo "${ECHO_T}$cf_cv_have_utempter" >&6 8091if test "$cf_cv_have_utempter" = yes ; then 8092 8093cat >>confdefs.h <<\EOF 8094#define USE_UTEMPTER 1 8095EOF 8096 8097cf_add_libs="$LIBS" 8098# reverse order 8099cf_add_0lib= 8100for cf_add_1lib in -lutempter; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 8101# filter duplicates 8102for cf_add_1lib in $cf_add_0lib; do 8103 for cf_add_2lib in $cf_add_libs; do 8104 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 8105 cf_add_1lib= 8106 break 8107 fi 8108 done 8109 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 8110done 8111LIBS="$cf_add_libs" 8112 8113fi 8114 8115 test "$cf_cv_have_utempter" != yes && use_utempter=no 8116else 8117 use_utempter=no 8118fi 8119 8120# Some configurations permit (or require) either setuid or setgid mode. 8121# Let the user decide. 8122if test "$use_utempter" = yes ; then 8123 if test "${enable_setuid+set}" != set ; then 8124 disable_setuid=yes 8125 test -n "$verbose" && echo " No --disable-setuid option given, force to yes" 1>&6 8126 8127echo "${as_me:-configure}:8127: testing No --disable-setuid option given, force to yes ..." 1>&5 8128 8129 fi 8130fi 8131 8132### checks for external data 8133 8134echo "$as_me:8134: checking if external errno is declared" >&5 8135echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6 8136if test "${cf_cv_dcl_errno+set}" = set; then 8137 echo $ECHO_N "(cached) $ECHO_C" >&6 8138else 8139 8140 cat >"conftest.$ac_ext" <<_ACEOF 8141#line 8141 "configure" 8142#include "confdefs.h" 8143 8144#ifdef HAVE_STDLIB_H 8145#include <stdlib.h> 8146#endif 8147#include <stdio.h> 8148#include <sys/types.h> 8149#include <errno.h> 8150int 8151main (void) 8152{ 8153int x = (int) errno; (void)x 8154 ; 8155 return 0; 8156} 8157_ACEOF 8158rm -f "conftest.$ac_objext" 8159if { (eval echo "$as_me:8159: \"$ac_compile\"") >&5 8160 (eval $ac_compile) 2>&5 8161 ac_status=$? 8162 echo "$as_me:8162: \$? = $ac_status" >&5 8163 (exit "$ac_status"); } && 8164 { ac_try='test -s "conftest.$ac_objext"' 8165 { (eval echo "$as_me:8165: \"$ac_try\"") >&5 8166 (eval $ac_try) 2>&5 8167 ac_status=$? 8168 echo "$as_me:8168: \$? = $ac_status" >&5 8169 (exit "$ac_status"); }; }; then 8170 cf_cv_dcl_errno=yes 8171else 8172 echo "$as_me: failed program was:" >&5 8173cat "conftest.$ac_ext" >&5 8174cf_cv_dcl_errno=no 8175fi 8176rm -f "conftest.$ac_objext" "conftest.$ac_ext" 8177 8178fi 8179echo "$as_me:8179: result: $cf_cv_dcl_errno" >&5 8180echo "${ECHO_T}$cf_cv_dcl_errno" >&6 8181 8182if test "$cf_cv_dcl_errno" = no ; then 8183 8184cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 8185 8186 cat >>confdefs.h <<EOF 8187#define $cf_result 1 8188EOF 8189 8190fi 8191 8192# It's possible (for near-UNIX clones) that the data doesn't exist 8193 8194echo "$as_me:8194: checking if external errno exists" >&5 8195echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6 8196if test "${cf_cv_have_errno+set}" = set; then 8197 echo $ECHO_N "(cached) $ECHO_C" >&6 8198else 8199 8200 cat >"conftest.$ac_ext" <<_ACEOF 8201#line 8201 "configure" 8202#include "confdefs.h" 8203 8204#undef errno 8205extern int errno; 8206 8207int 8208main (void) 8209{ 8210errno = 2 8211 ; 8212 return 0; 8213} 8214_ACEOF 8215rm -f "conftest.$ac_objext" "conftest$ac_exeext" 8216if { (eval echo "$as_me:8216: \"$ac_link\"") >&5 8217 (eval $ac_link) 2>&5 8218 ac_status=$? 8219 echo "$as_me:8219: \$? = $ac_status" >&5 8220 (exit "$ac_status"); } && 8221 { ac_try='test -s "conftest$ac_exeext"' 8222 { (eval echo "$as_me:8222: \"$ac_try\"") >&5 8223 (eval $ac_try) 2>&5 8224 ac_status=$? 8225 echo "$as_me:8225: \$? = $ac_status" >&5 8226 (exit "$ac_status"); }; }; then 8227 cf_cv_have_errno=yes 8228else 8229 echo "$as_me: failed program was:" >&5 8230cat "conftest.$ac_ext" >&5 8231cf_cv_have_errno=no 8232fi 8233rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 8234 8235fi 8236echo "$as_me:8236: result: $cf_cv_have_errno" >&5 8237echo "${ECHO_T}$cf_cv_have_errno" >&6 8238 8239if test "$cf_cv_have_errno" = yes ; then 8240 8241cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 8242 8243 cat >>confdefs.h <<EOF 8244#define $cf_result 1 8245EOF 8246 8247fi 8248 8249echo "$as_me:8249: checking for explicit tty group name" >&5 8250echo $ECHO_N "checking for explicit tty group name... $ECHO_C" >&6 8251 8252# Check whether --with-tty-group or --without-tty-group was given. 8253if test "${with_tty_group+set}" = set; then 8254 withval="$with_tty_group" 8255 cf_tty_group=$withval 8256else 8257 cf_tty_group=auto... 8258fi; 8259test -z "$cf_tty_group" && cf_tty_group=auto... 8260test "$cf_tty_group" = yes && cf_tty_group=auto... 8261echo "$as_me:8261: result: $cf_tty_group" >&5 8262echo "${ECHO_T}$cf_tty_group" >&6 8263 8264if test "$cf_tty_group" = "auto..." ; then 8265echo "$as_me:8265: checking for tty group name" >&5 8266echo $ECHO_N "checking for tty group name... $ECHO_C" >&6 8267if test "${cf_cv_tty_group_name+set}" = set; then 8268 echo $ECHO_N "(cached) $ECHO_C" >&6 8269else 8270 8271# If we are configuring as root, it is hard to get a clue about the tty group. 8272# But we'll guess based on how our connection is set up - assuming it is done 8273# properly. 8274 8275cf_uid="`id | sed -e 's/^^=*=//' -e 's/(.*$//'`" 8276# )vi 8277if test "$cf_uid" != 0 ; then 8278cf_cv_tty_group_name= 8279cf_tty_name="`tty`" 8280test "$cf_tty_name" = "not a tty" && cf_tty_name=/dev/tty 8281test -z "$cf_tty_name" && cf_tty_name=/dev/tty 8282if test -c "$cf_tty_name" 8283then 8284 cf_option="-lL" 8285 8286 # Expect listing to have fields like this: 8287 #-rwxrwxrwx 1 user group 34293 Jul 18 16:29 pathname 8288 ls $cf_option "$cf_tty_name" >conftest.out 8289 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out 8290 if test -z "$cf_rest" ; then 8291 cf_option="${cf_option}g" 8292 ls "$cf_option" "$cf_tty_name" >conftest.out 8293 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out 8294 fi 8295 rm -f conftest.out 8296 cf_cv_tty_group_name=$cf_grp 8297fi 8298fi 8299 8300# If we cannot deduce the tty group, fall back on hardcoded cases 8301 8302if test -z "$cf_cv_tty_group_name" 8303then 8304case $host_os in 8305(osf*) 8306 cf_cv_tty_group_name="terminal" 8307 ;; 8308(*) 8309 cf_cv_tty_group_name="unknown" 8310 if ( ${EGREP-egrep} '^tty:' /etc/group 2>/dev/null 1>/dev/null ) then 8311 cf_cv_tty_group_name="tty" 8312 fi 8313 ;; 8314esac 8315fi 8316 8317fi 8318echo "$as_me:8318: result: $cf_cv_tty_group_name" >&5 8319echo "${ECHO_T}$cf_cv_tty_group_name" >&6 8320cf_tty_group="$cf_cv_tty_group_name" 8321else 8322 # if configure option, always do this 8323 8324cat >>confdefs.h <<\EOF 8325#define USE_TTY_GROUP 1 8326EOF 8327 8328fi 8329 8330cat >>confdefs.h <<EOF 8331#define TTY_GROUP_NAME "$cf_tty_group" 8332EOF 8333 8334# This is only a double-check that the group-name we obtained above really 8335# does apply to the device. We cannot perform this test if we are in batch 8336# mode, or if we are cross-compiling. 8337 8338echo "$as_me:8338: checking if we may use the $cf_tty_group group" >&5 8339echo $ECHO_N "checking if we may use the $cf_tty_group group... $ECHO_C" >&6 8340if test "${cf_cv_tty_group+set}" = set; then 8341 echo $ECHO_N "(cached) $ECHO_C" >&6 8342else 8343 8344cf_tty_name="`tty`" 8345if test "$cf_tty_name" != "not a tty" 8346then 8347if test "$cross_compiling" = yes; then 8348 cf_cv_tty_group=unknown 8349else 8350 cat >"conftest.$ac_ext" <<_ACEOF 8351#line 8351 "configure" 8352#include "confdefs.h" 8353 8354#include <unistd.h> 8355#include <sys/types.h> 8356#include <sys/stat.h> 8357#include <grp.h> 8358int main(void) 8359{ 8360 struct stat sb; 8361 struct group *ttygrp; 8362 int fd; 8363 char *name; 8364 8365 for (fd = 0; fd < 3; ++fd) { 8366 if ((name = ttyname(fd)) != 0) 8367 break; 8368 } 8369 if (name == 0) 8370 name = "/dev/tty"; 8371 8372 ttygrp = getgrnam(TTY_GROUP_NAME); 8373 endgrent(); 8374 8375 if (ttygrp != 0 8376 && name != 0 8377 && stat(name, &sb) == 0 8378 && sb.st_gid != getgid() 8379 && sb.st_gid == ttygrp->gr_gid) { 8380 ${cf_cv_main_return:-return} (0); 8381 } 8382 ${cf_cv_main_return:-return} (1); 8383} 8384 8385_ACEOF 8386rm -f "conftest$ac_exeext" 8387if { (eval echo "$as_me:8387: \"$ac_link\"") >&5 8388 (eval $ac_link) 2>&5 8389 ac_status=$? 8390 echo "$as_me:8390: \$? = $ac_status" >&5 8391 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 8392 { (eval echo "$as_me:8392: \"$ac_try\"") >&5 8393 (eval $ac_try) 2>&5 8394 ac_status=$? 8395 echo "$as_me:8395: \$? = $ac_status" >&5 8396 (exit "$ac_status"); }; }; then 8397 cf_cv_tty_group=yes 8398else 8399 echo "$as_me: program exited with status $ac_status" >&5 8400echo "$as_me: failed program was:" >&5 8401cat "conftest.$ac_ext" >&5 8402cf_cv_tty_group=no 8403fi 8404rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 8405fi 8406elif test "$cross_compiling" = yes; then 8407 cf_cv_tty_group=unknown 8408else 8409 cf_cv_tty_group=yes 8410fi 8411 8412fi 8413echo "$as_me:8413: result: $cf_cv_tty_group" >&5 8414echo "${ECHO_T}$cf_cv_tty_group" >&6 8415 8416if test $cf_cv_tty_group = no ; then 8417 { echo "$as_me:8417: WARNING: Cannot use $cf_tty_group group" >&5 8418echo "$as_me: WARNING: Cannot use $cf_tty_group group" >&2;} 8419else 8420 cat >>confdefs.h <<\EOF 8421#define USE_TTY_GROUP 1 8422EOF 8423 8424fi 8425 8426### checks for system services and user specified options 8427 8428echo "$as_me:8428: checking for X" >&5 8429echo $ECHO_N "checking for X... $ECHO_C" >&6 8430 8431# Check whether --with-x or --without-x was given. 8432if test "${with_x+set}" = set; then 8433 withval="$with_x" 8434 8435fi; 8436# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 8437if test "x$with_x" = xno; then 8438 # The user explicitly disabled X. 8439 have_x=disabled 8440else 8441 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 8442 # Both variables are already set. 8443 have_x=yes 8444 else 8445 if test "${ac_cv_have_x+set}" = set; then 8446 echo $ECHO_N "(cached) $ECHO_C" >&6 8447else 8448 # One or both of the vars are not set, and there is no cached value. 8449ac_x_includes=no ac_x_libraries=no 8450rm -fr conftest.dir 8451if mkdir conftest.dir; then 8452 cd conftest.dir 8453 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 8454 cat >Imakefile <<'EOF' 8455acfindx: 8456 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 8457EOF 8458 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 8459 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 8460 eval "`${MAKE-make} acfindx 2>/dev/null | grep -v make`" 8461 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 8462 for ac_extension in a so sl dylib dll; do 8463 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 8464 test -f "$ac_im_libdir/libX11.$ac_extension"; then 8465 ac_im_usrlibdir=$ac_im_libdir; break 8466 fi 8467 done 8468 # Screen out bogus values from the imake configuration. They are 8469 # bogus both because they are the default anyway, and because 8470 # using them would break gcc on systems where it needs fixed includes. 8471 case $ac_im_incroot in 8472 /usr/include) ;; 8473 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 8474 esac 8475 case $ac_im_usrlibdir in 8476 /usr/lib | /lib) ;; 8477 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 8478 esac 8479 fi 8480 cd .. 8481 rm -fr conftest.dir 8482fi 8483 8484# Standard set of common directories for X headers. 8485# Check X11 before X11Rn because it is often a symlink to the current release. 8486ac_x_header_dirs=' 8487/usr/X11/include 8488/usr/X11R7/include 8489/usr/X11R6/include 8490/usr/X11R5/include 8491/usr/X11R4/include 8492 8493/opt/local/include 8494/opt/X11/include 8495 8496/usr/include/X11 8497/usr/include/X11R7 8498/usr/include/X11R6 8499/usr/include/X11R5 8500/usr/include/X11R4 8501 8502/usr/local/X11/include 8503/usr/local/X11R7/include 8504/usr/local/X11R6/include 8505/usr/local/X11R5/include 8506/usr/local/X11R4/include 8507 8508/usr/local/include/X11 8509/usr/local/include/X11R7 8510/usr/local/include/X11R6 8511/usr/local/include/X11R5 8512/usr/local/include/X11R4 8513 8514/usr/X386/include 8515/usr/x386/include 8516/usr/XFree86/include/X11 8517 8518/usr/include 8519/usr/local/include 8520/usr/unsupported/include 8521/usr/athena/include 8522/usr/local/x11r5/include 8523/usr/lpp/Xamples/include 8524 8525/usr/openwin/include 8526/usr/openwin/share/include' 8527 8528if test "$ac_x_includes" = no; then 8529 # Guess where to find include files, by looking for Intrinsic.h. 8530 # First, try using that file with no special directory specified. 8531 cat >"conftest.$ac_ext" <<_ACEOF 8532#line 8532 "configure" 8533#include "confdefs.h" 8534#include <X11/Intrinsic.h> 8535_ACEOF 8536if { (eval echo "$as_me:8536: \"$ac_cpp "conftest.$ac_ext"\"") >&5 8537 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 8538 ac_status=$? 8539 $EGREP -v '^ *\+' conftest.er1 >conftest.err 8540 rm -f conftest.er1 8541 cat conftest.err >&5 8542 echo "$as_me:8542: \$? = $ac_status" >&5 8543 (exit "$ac_status"); } >/dev/null; then 8544 if test -s conftest.err; then 8545 ac_cpp_err=$ac_c_preproc_warn_flag 8546 else 8547 ac_cpp_err= 8548 fi 8549else 8550 ac_cpp_err=yes 8551fi 8552if test -z "$ac_cpp_err"; then 8553 # We can compile using X headers with no special include directory. 8554ac_x_includes= 8555else 8556 echo "$as_me: failed program was:" >&5 8557 cat "conftest.$ac_ext" >&5 8558 for ac_dir in $ac_x_header_dirs; do 8559 if test -r "$ac_dir/X11/Intrinsic.h"; then 8560 ac_x_includes=$ac_dir 8561 break 8562 fi 8563done 8564fi 8565rm -f conftest.err "conftest.$ac_ext" 8566fi # $ac_x_includes = no 8567 8568if test "$ac_x_libraries" = no; then 8569 # Check for the libraries. 8570 # See if we find them without any special options. 8571 # Don't add to $LIBS permanently. 8572 ac_save_LIBS=$LIBS 8573 LIBS="-lXt $LIBS" 8574 cat >"conftest.$ac_ext" <<_ACEOF 8575#line 8575 "configure" 8576#include "confdefs.h" 8577#include <X11/Intrinsic.h> 8578int 8579main (void) 8580{ 8581XtMalloc (0) 8582 ; 8583 return 0; 8584} 8585_ACEOF 8586rm -f "conftest.$ac_objext" "conftest$ac_exeext" 8587if { (eval echo "$as_me:8587: \"$ac_link\"") >&5 8588 (eval $ac_link) 2>&5 8589 ac_status=$? 8590 echo "$as_me:8590: \$? = $ac_status" >&5 8591 (exit "$ac_status"); } && 8592 { ac_try='test -s "conftest$ac_exeext"' 8593 { (eval echo "$as_me:8593: \"$ac_try\"") >&5 8594 (eval $ac_try) 2>&5 8595 ac_status=$? 8596 echo "$as_me:8596: \$? = $ac_status" >&5 8597 (exit "$ac_status"); }; }; then 8598 LIBS=$ac_save_LIBS 8599# We can link X programs with no special library path. 8600ac_x_libraries= 8601else 8602 echo "$as_me: failed program was:" >&5 8603cat "conftest.$ac_ext" >&5 8604LIBS=$ac_save_LIBS 8605for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 8606do 8607 # Don't even attempt the hair of trying to link an X program! 8608 for ac_extension in a so sl dylib dll; do 8609 if test -r "$ac_dir/libXt.$ac_extension"; then 8610 ac_x_libraries=$ac_dir 8611 break 2 8612 fi 8613 done 8614done 8615fi 8616rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 8617fi # $ac_x_libraries = no 8618 8619if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 8620 # Didn't find X anywhere. Cache the known absence of X. 8621 ac_cv_have_x="have_x=no" 8622else 8623 # Record where we found X for the cache. 8624 ac_cv_have_x="have_x=yes \ 8625 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 8626fi 8627fi 8628 8629 fi 8630 eval "$ac_cv_have_x" 8631fi # $with_x != no 8632 8633if test "$have_x" != yes; then 8634 echo "$as_me:8634: result: $have_x" >&5 8635echo "${ECHO_T}$have_x" >&6 8636 no_x=yes 8637else 8638 # If each of the values was on the command line, it overrides each guess. 8639 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 8640 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 8641 # Update the cache value to reflect the command line values. 8642 ac_cv_have_x="have_x=yes \ 8643 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 8644 echo "$as_me:8644: result: libraries $x_libraries, headers $x_includes" >&5 8645echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 8646fi 8647 8648if test "$no_x" = yes; then 8649 # Not all programs may use this symbol, but it does not hurt to define it. 8650 8651cat >>confdefs.h <<\EOF 8652#define X_DISPLAY_MISSING 1 8653EOF 8654 8655 X_CFLAGS= 8656 X_PRE_LIBS= 8657 X_LIBS= 8658 X_EXTRA_LIBS= 8659else 8660 if test -n "$x_includes"; then 8661 X_CFLAGS="$X_CFLAGS -I$x_includes" 8662 fi 8663 8664 # It would also be nice to do this for all -L options, not just this one. 8665 if test -n "$x_libraries"; then 8666 X_LIBS="$X_LIBS -L$x_libraries" 8667 # For Solaris; some versions of Sun CC require a space after -R and 8668 # others require no space. Words are not sufficient . . . . 8669 case `(uname -sr) 2>/dev/null` in 8670 "SunOS 5"*) 8671 echo "$as_me:8671: checking whether -R must be followed by a space" >&5 8672echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 8673 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 8674 cat >"conftest.$ac_ext" <<_ACEOF 8675#line 8675 "configure" 8676#include "confdefs.h" 8677 8678int 8679main (void) 8680{ 8681 8682 ; 8683 return 0; 8684} 8685_ACEOF 8686rm -f "conftest.$ac_objext" "conftest$ac_exeext" 8687if { (eval echo "$as_me:8687: \"$ac_link\"") >&5 8688 (eval $ac_link) 2>&5 8689 ac_status=$? 8690 echo "$as_me:8690: \$? = $ac_status" >&5 8691 (exit "$ac_status"); } && 8692 { ac_try='test -s "conftest$ac_exeext"' 8693 { (eval echo "$as_me:8693: \"$ac_try\"") >&5 8694 (eval $ac_try) 2>&5 8695 ac_status=$? 8696 echo "$as_me:8696: \$? = $ac_status" >&5 8697 (exit "$ac_status"); }; }; then 8698 ac_R_nospace=yes 8699else 8700 echo "$as_me: failed program was:" >&5 8701cat "conftest.$ac_ext" >&5 8702ac_R_nospace=no 8703fi 8704rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 8705 if test $ac_R_nospace = yes; then 8706 echo "$as_me:8706: result: no" >&5 8707echo "${ECHO_T}no" >&6 8708 X_LIBS="$X_LIBS -R$x_libraries" 8709 else 8710 LIBS="$ac_xsave_LIBS -R $x_libraries" 8711 cat >"conftest.$ac_ext" <<_ACEOF 8712#line 8712 "configure" 8713#include "confdefs.h" 8714 8715int 8716main (void) 8717{ 8718 8719 ; 8720 return 0; 8721} 8722_ACEOF 8723rm -f "conftest.$ac_objext" "conftest$ac_exeext" 8724if { (eval echo "$as_me:8724: \"$ac_link\"") >&5 8725 (eval $ac_link) 2>&5 8726 ac_status=$? 8727 echo "$as_me:8727: \$? = $ac_status" >&5 8728 (exit "$ac_status"); } && 8729 { ac_try='test -s "conftest$ac_exeext"' 8730 { (eval echo "$as_me:8730: \"$ac_try\"") >&5 8731 (eval $ac_try) 2>&5 8732 ac_status=$? 8733 echo "$as_me:8733: \$? = $ac_status" >&5 8734 (exit "$ac_status"); }; }; then 8735 ac_R_space=yes 8736else 8737 echo "$as_me: failed program was:" >&5 8738cat "conftest.$ac_ext" >&5 8739ac_R_space=no 8740fi 8741rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 8742 if test $ac_R_space = yes; then 8743 echo "$as_me:8743: result: yes" >&5 8744echo "${ECHO_T}yes" >&6 8745 X_LIBS="$X_LIBS -R $x_libraries" 8746 else 8747 echo "$as_me:8747: result: neither works" >&5 8748echo "${ECHO_T}neither works" >&6 8749 fi 8750 fi 8751 LIBS=$ac_xsave_LIBS 8752 esac 8753 fi 8754 8755 # Check for system-dependent libraries X programs must link with. 8756 # Do this before checking for the system-independent R6 libraries 8757 # (-lICE), since we may need -lsocket or whatever for X linking. 8758 8759 if test "$ISC" = yes; then 8760 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 8761 else 8762 # Martyn Johnson says this is needed for Ultrix, if the X 8763 # libraries were built with DECnet support. And Karl Berry says 8764 # the Alpha needs dnet_stub (dnet does not exist). 8765 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 8766 cat >"conftest.$ac_ext" <<_ACEOF 8767#line 8767 "configure" 8768#include "confdefs.h" 8769 8770/* Override any gcc2 internal prototype to avoid an error. */ 8771#ifdef __cplusplus 8772extern "C" 8773#endif 8774/* We use char because int might match the return type of a gcc2 8775 builtin and then its argument prototype would still apply. */ 8776char XOpenDisplay (); 8777int 8778main (void) 8779{ 8780XOpenDisplay (); 8781 ; 8782 return 0; 8783} 8784_ACEOF 8785rm -f "conftest.$ac_objext" "conftest$ac_exeext" 8786if { (eval echo "$as_me:8786: \"$ac_link\"") >&5 8787 (eval $ac_link) 2>&5 8788 ac_status=$? 8789 echo "$as_me:8789: \$? = $ac_status" >&5 8790 (exit "$ac_status"); } && 8791 { ac_try='test -s "conftest$ac_exeext"' 8792 { (eval echo "$as_me:8792: \"$ac_try\"") >&5 8793 (eval $ac_try) 2>&5 8794 ac_status=$? 8795 echo "$as_me:8795: \$? = $ac_status" >&5 8796 (exit "$ac_status"); }; }; then 8797 : 8798else 8799 echo "$as_me: failed program was:" >&5 8800cat "conftest.$ac_ext" >&5 8801echo "$as_me:8801: checking for dnet_ntoa in -ldnet" >&5 8802echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 8803if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 8804 echo $ECHO_N "(cached) $ECHO_C" >&6 8805else 8806 ac_check_lib_save_LIBS=$LIBS 8807LIBS="-ldnet $LIBS" 8808cat >"conftest.$ac_ext" <<_ACEOF 8809#line 8809 "configure" 8810#include "confdefs.h" 8811 8812/* Override any gcc2 internal prototype to avoid an error. */ 8813#ifdef __cplusplus 8814extern "C" 8815#endif 8816/* We use char because int might match the return type of a gcc2 8817 builtin and then its argument prototype would still apply. */ 8818char dnet_ntoa (); 8819int 8820main (void) 8821{ 8822dnet_ntoa (); 8823 ; 8824 return 0; 8825} 8826_ACEOF 8827rm -f "conftest.$ac_objext" "conftest$ac_exeext" 8828if { (eval echo "$as_me:8828: \"$ac_link\"") >&5 8829 (eval $ac_link) 2>&5 8830 ac_status=$? 8831 echo "$as_me:8831: \$? = $ac_status" >&5 8832 (exit "$ac_status"); } && 8833 { ac_try='test -s "conftest$ac_exeext"' 8834 { (eval echo "$as_me:8834: \"$ac_try\"") >&5 8835 (eval $ac_try) 2>&5 8836 ac_status=$? 8837 echo "$as_me:8837: \$? = $ac_status" >&5 8838 (exit "$ac_status"); }; }; then 8839 ac_cv_lib_dnet_dnet_ntoa=yes 8840else 8841 echo "$as_me: failed program was:" >&5 8842cat "conftest.$ac_ext" >&5 8843ac_cv_lib_dnet_dnet_ntoa=no 8844fi 8845rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 8846LIBS=$ac_check_lib_save_LIBS 8847fi 8848echo "$as_me:8848: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 8849echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 8850if test "$ac_cv_lib_dnet_dnet_ntoa" = yes; then 8851 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 8852fi 8853 8854 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 8855 echo "$as_me:8855: checking for dnet_ntoa in -ldnet_stub" >&5 8856echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 8857if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 8858 echo $ECHO_N "(cached) $ECHO_C" >&6 8859else 8860 ac_check_lib_save_LIBS=$LIBS 8861LIBS="-ldnet_stub $LIBS" 8862cat >"conftest.$ac_ext" <<_ACEOF 8863#line 8863 "configure" 8864#include "confdefs.h" 8865 8866/* Override any gcc2 internal prototype to avoid an error. */ 8867#ifdef __cplusplus 8868extern "C" 8869#endif 8870/* We use char because int might match the return type of a gcc2 8871 builtin and then its argument prototype would still apply. */ 8872char dnet_ntoa (); 8873int 8874main (void) 8875{ 8876dnet_ntoa (); 8877 ; 8878 return 0; 8879} 8880_ACEOF 8881rm -f "conftest.$ac_objext" "conftest$ac_exeext" 8882if { (eval echo "$as_me:8882: \"$ac_link\"") >&5 8883 (eval $ac_link) 2>&5 8884 ac_status=$? 8885 echo "$as_me:8885: \$? = $ac_status" >&5 8886 (exit "$ac_status"); } && 8887 { ac_try='test -s "conftest$ac_exeext"' 8888 { (eval echo "$as_me:8888: \"$ac_try\"") >&5 8889 (eval $ac_try) 2>&5 8890 ac_status=$? 8891 echo "$as_me:8891: \$? = $ac_status" >&5 8892 (exit "$ac_status"); }; }; then 8893 ac_cv_lib_dnet_stub_dnet_ntoa=yes 8894else 8895 echo "$as_me: failed program was:" >&5 8896cat "conftest.$ac_ext" >&5 8897ac_cv_lib_dnet_stub_dnet_ntoa=no 8898fi 8899rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 8900LIBS=$ac_check_lib_save_LIBS 8901fi 8902echo "$as_me:8902: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 8903echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 8904if test "$ac_cv_lib_dnet_stub_dnet_ntoa" = yes; then 8905 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 8906fi 8907 8908 fi 8909fi 8910rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 8911 LIBS="$ac_xsave_LIBS" 8912 8913 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 8914 # to get the SysV transport functions. 8915 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 8916 # needs -lnsl. 8917 # The nsl library prevents programs from opening the X display 8918 # on Irix 5.2, according to T.E. Dickey. 8919 # The functions gethostbyname, getservbyname, and inet_addr are 8920 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 8921 echo "$as_me:8921: checking for gethostbyname" >&5 8922echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 8923if test "${ac_cv_func_gethostbyname+set}" = set; then 8924 echo $ECHO_N "(cached) $ECHO_C" >&6 8925else 8926 cat >"conftest.$ac_ext" <<_ACEOF 8927#line 8927 "configure" 8928#include "confdefs.h" 8929#define gethostbyname autoconf_temporary 8930#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 8931#undef gethostbyname 8932 8933#ifdef __cplusplus 8934extern "C" 8935#endif 8936 8937/* We use char because int might match the return type of a gcc2 8938 builtin and then its argument prototype would still apply. */ 8939char gethostbyname (void); 8940 8941int 8942main (void) 8943{ 8944 8945/* The GNU C library defines stubs for functions which it implements 8946 to always fail with ENOSYS. Some functions are actually named 8947 something starting with __ and the normal name is an alias. */ 8948#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 8949#error found stub for gethostbyname 8950#endif 8951 8952 return gethostbyname (); 8953 ; 8954 return 0; 8955} 8956_ACEOF 8957rm -f "conftest.$ac_objext" "conftest$ac_exeext" 8958if { (eval echo "$as_me:8958: \"$ac_link\"") >&5 8959 (eval $ac_link) 2>&5 8960 ac_status=$? 8961 echo "$as_me:8961: \$? = $ac_status" >&5 8962 (exit "$ac_status"); } && 8963 { ac_try='test -s "conftest$ac_exeext"' 8964 { (eval echo "$as_me:8964: \"$ac_try\"") >&5 8965 (eval $ac_try) 2>&5 8966 ac_status=$? 8967 echo "$as_me:8967: \$? = $ac_status" >&5 8968 (exit "$ac_status"); }; }; then 8969 ac_cv_func_gethostbyname=yes 8970else 8971 echo "$as_me: failed program was:" >&5 8972cat "conftest.$ac_ext" >&5 8973ac_cv_func_gethostbyname=no 8974fi 8975rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 8976fi 8977echo "$as_me:8977: result: $ac_cv_func_gethostbyname" >&5 8978echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 8979 8980 if test $ac_cv_func_gethostbyname = no; then 8981 echo "$as_me:8981: checking for gethostbyname in -lnsl" >&5 8982echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 8983if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 8984 echo $ECHO_N "(cached) $ECHO_C" >&6 8985else 8986 ac_check_lib_save_LIBS=$LIBS 8987LIBS="-lnsl $LIBS" 8988cat >"conftest.$ac_ext" <<_ACEOF 8989#line 8989 "configure" 8990#include "confdefs.h" 8991 8992/* Override any gcc2 internal prototype to avoid an error. */ 8993#ifdef __cplusplus 8994extern "C" 8995#endif 8996/* We use char because int might match the return type of a gcc2 8997 builtin and then its argument prototype would still apply. */ 8998char gethostbyname (); 8999int 9000main (void) 9001{ 9002gethostbyname (); 9003 ; 9004 return 0; 9005} 9006_ACEOF 9007rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9008if { (eval echo "$as_me:9008: \"$ac_link\"") >&5 9009 (eval $ac_link) 2>&5 9010 ac_status=$? 9011 echo "$as_me:9011: \$? = $ac_status" >&5 9012 (exit "$ac_status"); } && 9013 { ac_try='test -s "conftest$ac_exeext"' 9014 { (eval echo "$as_me:9014: \"$ac_try\"") >&5 9015 (eval $ac_try) 2>&5 9016 ac_status=$? 9017 echo "$as_me:9017: \$? = $ac_status" >&5 9018 (exit "$ac_status"); }; }; then 9019 ac_cv_lib_nsl_gethostbyname=yes 9020else 9021 echo "$as_me: failed program was:" >&5 9022cat "conftest.$ac_ext" >&5 9023ac_cv_lib_nsl_gethostbyname=no 9024fi 9025rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9026LIBS=$ac_check_lib_save_LIBS 9027fi 9028echo "$as_me:9028: result: $ac_cv_lib_nsl_gethostbyname" >&5 9029echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 9030if test "$ac_cv_lib_nsl_gethostbyname" = yes; then 9031 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 9032fi 9033 9034 if test $ac_cv_lib_nsl_gethostbyname = no; then 9035 echo "$as_me:9035: checking for gethostbyname in -lbsd" >&5 9036echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 9037if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 9038 echo $ECHO_N "(cached) $ECHO_C" >&6 9039else 9040 ac_check_lib_save_LIBS=$LIBS 9041LIBS="-lbsd $LIBS" 9042cat >"conftest.$ac_ext" <<_ACEOF 9043#line 9043 "configure" 9044#include "confdefs.h" 9045 9046/* Override any gcc2 internal prototype to avoid an error. */ 9047#ifdef __cplusplus 9048extern "C" 9049#endif 9050/* We use char because int might match the return type of a gcc2 9051 builtin and then its argument prototype would still apply. */ 9052char gethostbyname (); 9053int 9054main (void) 9055{ 9056gethostbyname (); 9057 ; 9058 return 0; 9059} 9060_ACEOF 9061rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9062if { (eval echo "$as_me:9062: \"$ac_link\"") >&5 9063 (eval $ac_link) 2>&5 9064 ac_status=$? 9065 echo "$as_me:9065: \$? = $ac_status" >&5 9066 (exit "$ac_status"); } && 9067 { ac_try='test -s "conftest$ac_exeext"' 9068 { (eval echo "$as_me:9068: \"$ac_try\"") >&5 9069 (eval $ac_try) 2>&5 9070 ac_status=$? 9071 echo "$as_me:9071: \$? = $ac_status" >&5 9072 (exit "$ac_status"); }; }; then 9073 ac_cv_lib_bsd_gethostbyname=yes 9074else 9075 echo "$as_me: failed program was:" >&5 9076cat "conftest.$ac_ext" >&5 9077ac_cv_lib_bsd_gethostbyname=no 9078fi 9079rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9080LIBS=$ac_check_lib_save_LIBS 9081fi 9082echo "$as_me:9082: result: $ac_cv_lib_bsd_gethostbyname" >&5 9083echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 9084if test "$ac_cv_lib_bsd_gethostbyname" = yes; then 9085 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 9086fi 9087 9088 fi 9089 fi 9090 9091 # lieder@skyler.mavd.honeywell.com says without -lsocket, 9092 # socket/setsockopt and other routines are undefined under SCO ODT 9093 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 9094 # on later versions), says Simon Leinen: it contains gethostby* 9095 # variants that don't use the nameserver (or something). -lsocket 9096 # must be given before -lnsl if both are needed. We assume that 9097 # if connect needs -lnsl, so does gethostbyname. 9098 echo "$as_me:9098: checking for connect" >&5 9099echo $ECHO_N "checking for connect... $ECHO_C" >&6 9100if test "${ac_cv_func_connect+set}" = set; then 9101 echo $ECHO_N "(cached) $ECHO_C" >&6 9102else 9103 cat >"conftest.$ac_ext" <<_ACEOF 9104#line 9104 "configure" 9105#include "confdefs.h" 9106#define connect autoconf_temporary 9107#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 9108#undef connect 9109 9110#ifdef __cplusplus 9111extern "C" 9112#endif 9113 9114/* We use char because int might match the return type of a gcc2 9115 builtin and then its argument prototype would still apply. */ 9116char connect (void); 9117 9118int 9119main (void) 9120{ 9121 9122/* The GNU C library defines stubs for functions which it implements 9123 to always fail with ENOSYS. Some functions are actually named 9124 something starting with __ and the normal name is an alias. */ 9125#if defined (__stub_connect) || defined (__stub___connect) 9126#error found stub for connect 9127#endif 9128 9129 return connect (); 9130 ; 9131 return 0; 9132} 9133_ACEOF 9134rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9135if { (eval echo "$as_me:9135: \"$ac_link\"") >&5 9136 (eval $ac_link) 2>&5 9137 ac_status=$? 9138 echo "$as_me:9138: \$? = $ac_status" >&5 9139 (exit "$ac_status"); } && 9140 { ac_try='test -s "conftest$ac_exeext"' 9141 { (eval echo "$as_me:9141: \"$ac_try\"") >&5 9142 (eval $ac_try) 2>&5 9143 ac_status=$? 9144 echo "$as_me:9144: \$? = $ac_status" >&5 9145 (exit "$ac_status"); }; }; then 9146 ac_cv_func_connect=yes 9147else 9148 echo "$as_me: failed program was:" >&5 9149cat "conftest.$ac_ext" >&5 9150ac_cv_func_connect=no 9151fi 9152rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9153fi 9154echo "$as_me:9154: result: $ac_cv_func_connect" >&5 9155echo "${ECHO_T}$ac_cv_func_connect" >&6 9156 9157 if test $ac_cv_func_connect = no; then 9158 echo "$as_me:9158: checking for connect in -lsocket" >&5 9159echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 9160if test "${ac_cv_lib_socket_connect+set}" = set; then 9161 echo $ECHO_N "(cached) $ECHO_C" >&6 9162else 9163 ac_check_lib_save_LIBS=$LIBS 9164LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 9165cat >"conftest.$ac_ext" <<_ACEOF 9166#line 9166 "configure" 9167#include "confdefs.h" 9168 9169/* Override any gcc2 internal prototype to avoid an error. */ 9170#ifdef __cplusplus 9171extern "C" 9172#endif 9173/* We use char because int might match the return type of a gcc2 9174 builtin and then its argument prototype would still apply. */ 9175char connect (); 9176int 9177main (void) 9178{ 9179connect (); 9180 ; 9181 return 0; 9182} 9183_ACEOF 9184rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9185if { (eval echo "$as_me:9185: \"$ac_link\"") >&5 9186 (eval $ac_link) 2>&5 9187 ac_status=$? 9188 echo "$as_me:9188: \$? = $ac_status" >&5 9189 (exit "$ac_status"); } && 9190 { ac_try='test -s "conftest$ac_exeext"' 9191 { (eval echo "$as_me:9191: \"$ac_try\"") >&5 9192 (eval $ac_try) 2>&5 9193 ac_status=$? 9194 echo "$as_me:9194: \$? = $ac_status" >&5 9195 (exit "$ac_status"); }; }; then 9196 ac_cv_lib_socket_connect=yes 9197else 9198 echo "$as_me: failed program was:" >&5 9199cat "conftest.$ac_ext" >&5 9200ac_cv_lib_socket_connect=no 9201fi 9202rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9203LIBS=$ac_check_lib_save_LIBS 9204fi 9205echo "$as_me:9205: result: $ac_cv_lib_socket_connect" >&5 9206echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 9207if test "$ac_cv_lib_socket_connect" = yes; then 9208 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 9209fi 9210 9211 fi 9212 9213 # Guillermo Gomez says -lposix is necessary on A/UX. 9214 echo "$as_me:9214: checking for remove" >&5 9215echo $ECHO_N "checking for remove... $ECHO_C" >&6 9216if test "${ac_cv_func_remove+set}" = set; then 9217 echo $ECHO_N "(cached) $ECHO_C" >&6 9218else 9219 cat >"conftest.$ac_ext" <<_ACEOF 9220#line 9220 "configure" 9221#include "confdefs.h" 9222#define remove autoconf_temporary 9223#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 9224#undef remove 9225 9226#ifdef __cplusplus 9227extern "C" 9228#endif 9229 9230/* We use char because int might match the return type of a gcc2 9231 builtin and then its argument prototype would still apply. */ 9232char remove (void); 9233 9234int 9235main (void) 9236{ 9237 9238/* The GNU C library defines stubs for functions which it implements 9239 to always fail with ENOSYS. Some functions are actually named 9240 something starting with __ and the normal name is an alias. */ 9241#if defined (__stub_remove) || defined (__stub___remove) 9242#error found stub for remove 9243#endif 9244 9245 return remove (); 9246 ; 9247 return 0; 9248} 9249_ACEOF 9250rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9251if { (eval echo "$as_me:9251: \"$ac_link\"") >&5 9252 (eval $ac_link) 2>&5 9253 ac_status=$? 9254 echo "$as_me:9254: \$? = $ac_status" >&5 9255 (exit "$ac_status"); } && 9256 { ac_try='test -s "conftest$ac_exeext"' 9257 { (eval echo "$as_me:9257: \"$ac_try\"") >&5 9258 (eval $ac_try) 2>&5 9259 ac_status=$? 9260 echo "$as_me:9260: \$? = $ac_status" >&5 9261 (exit "$ac_status"); }; }; then 9262 ac_cv_func_remove=yes 9263else 9264 echo "$as_me: failed program was:" >&5 9265cat "conftest.$ac_ext" >&5 9266ac_cv_func_remove=no 9267fi 9268rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9269fi 9270echo "$as_me:9270: result: $ac_cv_func_remove" >&5 9271echo "${ECHO_T}$ac_cv_func_remove" >&6 9272 9273 if test $ac_cv_func_remove = no; then 9274 echo "$as_me:9274: checking for remove in -lposix" >&5 9275echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 9276if test "${ac_cv_lib_posix_remove+set}" = set; then 9277 echo $ECHO_N "(cached) $ECHO_C" >&6 9278else 9279 ac_check_lib_save_LIBS=$LIBS 9280LIBS="-lposix $LIBS" 9281cat >"conftest.$ac_ext" <<_ACEOF 9282#line 9282 "configure" 9283#include "confdefs.h" 9284 9285/* Override any gcc2 internal prototype to avoid an error. */ 9286#ifdef __cplusplus 9287extern "C" 9288#endif 9289/* We use char because int might match the return type of a gcc2 9290 builtin and then its argument prototype would still apply. */ 9291char remove (); 9292int 9293main (void) 9294{ 9295remove (); 9296 ; 9297 return 0; 9298} 9299_ACEOF 9300rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9301if { (eval echo "$as_me:9301: \"$ac_link\"") >&5 9302 (eval $ac_link) 2>&5 9303 ac_status=$? 9304 echo "$as_me:9304: \$? = $ac_status" >&5 9305 (exit "$ac_status"); } && 9306 { ac_try='test -s "conftest$ac_exeext"' 9307 { (eval echo "$as_me:9307: \"$ac_try\"") >&5 9308 (eval $ac_try) 2>&5 9309 ac_status=$? 9310 echo "$as_me:9310: \$? = $ac_status" >&5 9311 (exit "$ac_status"); }; }; then 9312 ac_cv_lib_posix_remove=yes 9313else 9314 echo "$as_me: failed program was:" >&5 9315cat "conftest.$ac_ext" >&5 9316ac_cv_lib_posix_remove=no 9317fi 9318rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9319LIBS=$ac_check_lib_save_LIBS 9320fi 9321echo "$as_me:9321: result: $ac_cv_lib_posix_remove" >&5 9322echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 9323if test "$ac_cv_lib_posix_remove" = yes; then 9324 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 9325fi 9326 9327 fi 9328 9329 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 9330 echo "$as_me:9330: checking for shmat" >&5 9331echo $ECHO_N "checking for shmat... $ECHO_C" >&6 9332if test "${ac_cv_func_shmat+set}" = set; then 9333 echo $ECHO_N "(cached) $ECHO_C" >&6 9334else 9335 cat >"conftest.$ac_ext" <<_ACEOF 9336#line 9336 "configure" 9337#include "confdefs.h" 9338#define shmat autoconf_temporary 9339#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 9340#undef shmat 9341 9342#ifdef __cplusplus 9343extern "C" 9344#endif 9345 9346/* We use char because int might match the return type of a gcc2 9347 builtin and then its argument prototype would still apply. */ 9348char shmat (void); 9349 9350int 9351main (void) 9352{ 9353 9354/* The GNU C library defines stubs for functions which it implements 9355 to always fail with ENOSYS. Some functions are actually named 9356 something starting with __ and the normal name is an alias. */ 9357#if defined (__stub_shmat) || defined (__stub___shmat) 9358#error found stub for shmat 9359#endif 9360 9361 return shmat (); 9362 ; 9363 return 0; 9364} 9365_ACEOF 9366rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9367if { (eval echo "$as_me:9367: \"$ac_link\"") >&5 9368 (eval $ac_link) 2>&5 9369 ac_status=$? 9370 echo "$as_me:9370: \$? = $ac_status" >&5 9371 (exit "$ac_status"); } && 9372 { ac_try='test -s "conftest$ac_exeext"' 9373 { (eval echo "$as_me:9373: \"$ac_try\"") >&5 9374 (eval $ac_try) 2>&5 9375 ac_status=$? 9376 echo "$as_me:9376: \$? = $ac_status" >&5 9377 (exit "$ac_status"); }; }; then 9378 ac_cv_func_shmat=yes 9379else 9380 echo "$as_me: failed program was:" >&5 9381cat "conftest.$ac_ext" >&5 9382ac_cv_func_shmat=no 9383fi 9384rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9385fi 9386echo "$as_me:9386: result: $ac_cv_func_shmat" >&5 9387echo "${ECHO_T}$ac_cv_func_shmat" >&6 9388 9389 if test $ac_cv_func_shmat = no; then 9390 echo "$as_me:9390: checking for shmat in -lipc" >&5 9391echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 9392if test "${ac_cv_lib_ipc_shmat+set}" = set; then 9393 echo $ECHO_N "(cached) $ECHO_C" >&6 9394else 9395 ac_check_lib_save_LIBS=$LIBS 9396LIBS="-lipc $LIBS" 9397cat >"conftest.$ac_ext" <<_ACEOF 9398#line 9398 "configure" 9399#include "confdefs.h" 9400 9401/* Override any gcc2 internal prototype to avoid an error. */ 9402#ifdef __cplusplus 9403extern "C" 9404#endif 9405/* We use char because int might match the return type of a gcc2 9406 builtin and then its argument prototype would still apply. */ 9407char shmat (); 9408int 9409main (void) 9410{ 9411shmat (); 9412 ; 9413 return 0; 9414} 9415_ACEOF 9416rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9417if { (eval echo "$as_me:9417: \"$ac_link\"") >&5 9418 (eval $ac_link) 2>&5 9419 ac_status=$? 9420 echo "$as_me:9420: \$? = $ac_status" >&5 9421 (exit "$ac_status"); } && 9422 { ac_try='test -s "conftest$ac_exeext"' 9423 { (eval echo "$as_me:9423: \"$ac_try\"") >&5 9424 (eval $ac_try) 2>&5 9425 ac_status=$? 9426 echo "$as_me:9426: \$? = $ac_status" >&5 9427 (exit "$ac_status"); }; }; then 9428 ac_cv_lib_ipc_shmat=yes 9429else 9430 echo "$as_me: failed program was:" >&5 9431cat "conftest.$ac_ext" >&5 9432ac_cv_lib_ipc_shmat=no 9433fi 9434rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9435LIBS=$ac_check_lib_save_LIBS 9436fi 9437echo "$as_me:9437: result: $ac_cv_lib_ipc_shmat" >&5 9438echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 9439if test "$ac_cv_lib_ipc_shmat" = yes; then 9440 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 9441fi 9442 9443 fi 9444 fi 9445 9446 # Check for libraries that X11R6 Xt/Xaw programs need. 9447 ac_save_LDFLAGS=$LDFLAGS 9448 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 9449 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 9450 # check for ICE first), but we must link in the order -lSM -lICE or 9451 # we get undefined symbols. So assume we have SM if we have ICE. 9452 # These have to be linked with before -lX11, unlike the other 9453 # libraries we check for below, so use a different variable. 9454 # John Interrante, Karl Berry 9455 echo "$as_me:9455: checking for IceConnectionNumber in -lICE" >&5 9456echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 9457if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 9458 echo $ECHO_N "(cached) $ECHO_C" >&6 9459else 9460 ac_check_lib_save_LIBS=$LIBS 9461LIBS="-lICE $X_EXTRA_LIBS $LIBS" 9462cat >"conftest.$ac_ext" <<_ACEOF 9463#line 9463 "configure" 9464#include "confdefs.h" 9465 9466/* Override any gcc2 internal prototype to avoid an error. */ 9467#ifdef __cplusplus 9468extern "C" 9469#endif 9470/* We use char because int might match the return type of a gcc2 9471 builtin and then its argument prototype would still apply. */ 9472char IceConnectionNumber (); 9473int 9474main (void) 9475{ 9476IceConnectionNumber (); 9477 ; 9478 return 0; 9479} 9480_ACEOF 9481rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9482if { (eval echo "$as_me:9482: \"$ac_link\"") >&5 9483 (eval $ac_link) 2>&5 9484 ac_status=$? 9485 echo "$as_me:9485: \$? = $ac_status" >&5 9486 (exit "$ac_status"); } && 9487 { ac_try='test -s "conftest$ac_exeext"' 9488 { (eval echo "$as_me:9488: \"$ac_try\"") >&5 9489 (eval $ac_try) 2>&5 9490 ac_status=$? 9491 echo "$as_me:9491: \$? = $ac_status" >&5 9492 (exit "$ac_status"); }; }; then 9493 ac_cv_lib_ICE_IceConnectionNumber=yes 9494else 9495 echo "$as_me: failed program was:" >&5 9496cat "conftest.$ac_ext" >&5 9497ac_cv_lib_ICE_IceConnectionNumber=no 9498fi 9499rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9500LIBS=$ac_check_lib_save_LIBS 9501fi 9502echo "$as_me:9502: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 9503echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 9504if test "$ac_cv_lib_ICE_IceConnectionNumber" = yes; then 9505 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 9506fi 9507 9508 LDFLAGS=$ac_save_LDFLAGS 9509 9510fi 9511 9512echo "$as_me:9512: checking for sys/wait.h that is POSIX.1 compatible" >&5 9513echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 9514if test "${ac_cv_header_sys_wait_h+set}" = set; then 9515 echo $ECHO_N "(cached) $ECHO_C" >&6 9516else 9517 cat >"conftest.$ac_ext" <<_ACEOF 9518#line 9518 "configure" 9519#include "confdefs.h" 9520#include <sys/types.h> 9521#include <sys/wait.h> 9522#ifndef WEXITSTATUS 9523# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 9524#endif 9525#ifndef WIFEXITED 9526# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 9527#endif 9528 9529int 9530main (void) 9531{ 9532 int s; 9533 wait (&s); 9534 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 9535 ; 9536 return 0; 9537} 9538_ACEOF 9539rm -f "conftest.$ac_objext" 9540if { (eval echo "$as_me:9540: \"$ac_compile\"") >&5 9541 (eval $ac_compile) 2>&5 9542 ac_status=$? 9543 echo "$as_me:9543: \$? = $ac_status" >&5 9544 (exit "$ac_status"); } && 9545 { ac_try='test -s "conftest.$ac_objext"' 9546 { (eval echo "$as_me:9546: \"$ac_try\"") >&5 9547 (eval $ac_try) 2>&5 9548 ac_status=$? 9549 echo "$as_me:9549: \$? = $ac_status" >&5 9550 (exit "$ac_status"); }; }; then 9551 ac_cv_header_sys_wait_h=yes 9552else 9553 echo "$as_me: failed program was:" >&5 9554cat "conftest.$ac_ext" >&5 9555ac_cv_header_sys_wait_h=no 9556fi 9557rm -f "conftest.$ac_objext" "conftest.$ac_ext" 9558fi 9559echo "$as_me:9559: result: $ac_cv_header_sys_wait_h" >&5 9560echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 9561if test $ac_cv_header_sys_wait_h = yes; then 9562 9563cat >>confdefs.h <<\EOF 9564#define HAVE_SYS_WAIT_H 1 9565EOF 9566 9567fi 9568 9569echo "$as_me:9569: checking for POSIX wait functions" >&5 9570echo $ECHO_N "checking for POSIX wait functions... $ECHO_C" >&6 9571if test "${cf_cv_posix_wait+set}" = set; then 9572 echo $ECHO_N "(cached) $ECHO_C" >&6 9573else 9574 9575cat >"conftest.$ac_ext" <<_ACEOF 9576#line 9576 "configure" 9577#include "confdefs.h" 9578 9579#include <stdlib.h> 9580#include <stdio.h> 9581#include <sys/types.h> 9582#ifdef HAVE_SYS_WAIT_H 9583#include <sys/wait.h> 9584#endif 9585 9586int 9587main (void) 9588{ 9589 9590 int stat_loc; 9591 pid_t pid = waitpid(-1, &stat_loc, WNOHANG|WUNTRACED); 9592 pid_t pid2 = wait(&stat_loc); 9593 (void)pid; 9594 (void)pid2; 9595 9596 ; 9597 return 0; 9598} 9599_ACEOF 9600rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9601if { (eval echo "$as_me:9601: \"$ac_link\"") >&5 9602 (eval $ac_link) 2>&5 9603 ac_status=$? 9604 echo "$as_me:9604: \$? = $ac_status" >&5 9605 (exit "$ac_status"); } && 9606 { ac_try='test -s "conftest$ac_exeext"' 9607 { (eval echo "$as_me:9607: \"$ac_try\"") >&5 9608 (eval $ac_try) 2>&5 9609 ac_status=$? 9610 echo "$as_me:9610: \$? = $ac_status" >&5 9611 (exit "$ac_status"); }; }; then 9612 cf_cv_posix_wait=yes 9613else 9614 echo "$as_me: failed program was:" >&5 9615cat "conftest.$ac_ext" >&5 9616cf_cv_posix_wait=no 9617fi 9618rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9619 9620fi 9621echo "$as_me:9621: result: $cf_cv_posix_wait" >&5 9622echo "${ECHO_T}$cf_cv_posix_wait" >&6 9623test "$cf_cv_posix_wait" = yes && 9624cat >>confdefs.h <<\EOF 9625#define USE_POSIX_WAIT 1 9626EOF 9627 9628echo "$as_me:9628: checking if external sys_nerr is declared" >&5 9629echo $ECHO_N "checking if external sys_nerr is declared... $ECHO_C" >&6 9630if test "${cf_cv_dcl_sys_nerr+set}" = set; then 9631 echo $ECHO_N "(cached) $ECHO_C" >&6 9632else 9633 9634 cat >"conftest.$ac_ext" <<_ACEOF 9635#line 9635 "configure" 9636#include "confdefs.h" 9637 9638#ifdef HAVE_STDLIB_H 9639#include <stdlib.h> 9640#endif 9641#include <stdio.h> 9642#include <sys/types.h> 9643#include <errno.h> 9644int 9645main (void) 9646{ 9647int x = (int) sys_nerr; (void)x 9648 ; 9649 return 0; 9650} 9651_ACEOF 9652rm -f "conftest.$ac_objext" 9653if { (eval echo "$as_me:9653: \"$ac_compile\"") >&5 9654 (eval $ac_compile) 2>&5 9655 ac_status=$? 9656 echo "$as_me:9656: \$? = $ac_status" >&5 9657 (exit "$ac_status"); } && 9658 { ac_try='test -s "conftest.$ac_objext"' 9659 { (eval echo "$as_me:9659: \"$ac_try\"") >&5 9660 (eval $ac_try) 2>&5 9661 ac_status=$? 9662 echo "$as_me:9662: \$? = $ac_status" >&5 9663 (exit "$ac_status"); }; }; then 9664 cf_cv_dcl_sys_nerr=yes 9665else 9666 echo "$as_me: failed program was:" >&5 9667cat "conftest.$ac_ext" >&5 9668cf_cv_dcl_sys_nerr=no 9669fi 9670rm -f "conftest.$ac_objext" "conftest.$ac_ext" 9671 9672fi 9673echo "$as_me:9673: result: $cf_cv_dcl_sys_nerr" >&5 9674echo "${ECHO_T}$cf_cv_dcl_sys_nerr" >&6 9675 9676if test "$cf_cv_dcl_sys_nerr" = no ; then 9677 9678cf_result=`echo "decl_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 9679 9680 cat >>confdefs.h <<EOF 9681#define $cf_result 1 9682EOF 9683 9684fi 9685 9686# It's possible (for near-UNIX clones) that the data doesn't exist 9687 9688echo "$as_me:9688: checking if external sys_nerr exists" >&5 9689echo $ECHO_N "checking if external sys_nerr exists... $ECHO_C" >&6 9690if test "${cf_cv_have_sys_nerr+set}" = set; then 9691 echo $ECHO_N "(cached) $ECHO_C" >&6 9692else 9693 9694 cat >"conftest.$ac_ext" <<_ACEOF 9695#line 9695 "configure" 9696#include "confdefs.h" 9697 9698#undef sys_nerr 9699extern int sys_nerr; 9700 9701int 9702main (void) 9703{ 9704sys_nerr = 2 9705 ; 9706 return 0; 9707} 9708_ACEOF 9709rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9710if { (eval echo "$as_me:9710: \"$ac_link\"") >&5 9711 (eval $ac_link) 2>&5 9712 ac_status=$? 9713 echo "$as_me:9713: \$? = $ac_status" >&5 9714 (exit "$ac_status"); } && 9715 { ac_try='test -s "conftest$ac_exeext"' 9716 { (eval echo "$as_me:9716: \"$ac_try\"") >&5 9717 (eval $ac_try) 2>&5 9718 ac_status=$? 9719 echo "$as_me:9719: \$? = $ac_status" >&5 9720 (exit "$ac_status"); }; }; then 9721 cf_cv_have_sys_nerr=yes 9722else 9723 echo "$as_me: failed program was:" >&5 9724cat "conftest.$ac_ext" >&5 9725cf_cv_have_sys_nerr=no 9726fi 9727rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9728 9729fi 9730echo "$as_me:9730: result: $cf_cv_have_sys_nerr" >&5 9731echo "${ECHO_T}$cf_cv_have_sys_nerr" >&6 9732 9733if test "$cf_cv_have_sys_nerr" = yes ; then 9734 9735cf_result=`echo "have_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 9736 9737 cat >>confdefs.h <<EOF 9738#define $cf_result 1 9739EOF 9740 9741fi 9742 9743echo "$as_me:9743: checking if external sys_errlist is declared" >&5 9744echo $ECHO_N "checking if external sys_errlist is declared... $ECHO_C" >&6 9745if test "${cf_cv_dcl_sys_errlist+set}" = set; then 9746 echo $ECHO_N "(cached) $ECHO_C" >&6 9747else 9748 9749 cat >"conftest.$ac_ext" <<_ACEOF 9750#line 9750 "configure" 9751#include "confdefs.h" 9752 9753#ifdef HAVE_STDLIB_H 9754#include <stdlib.h> 9755#endif 9756#include <stdio.h> 9757#include <sys/types.h> 9758#include <errno.h> 9759int 9760main (void) 9761{ 9762int x = (int) sys_errlist; (void)x 9763 ; 9764 return 0; 9765} 9766_ACEOF 9767rm -f "conftest.$ac_objext" 9768if { (eval echo "$as_me:9768: \"$ac_compile\"") >&5 9769 (eval $ac_compile) 2>&5 9770 ac_status=$? 9771 echo "$as_me:9771: \$? = $ac_status" >&5 9772 (exit "$ac_status"); } && 9773 { ac_try='test -s "conftest.$ac_objext"' 9774 { (eval echo "$as_me:9774: \"$ac_try\"") >&5 9775 (eval $ac_try) 2>&5 9776 ac_status=$? 9777 echo "$as_me:9777: \$? = $ac_status" >&5 9778 (exit "$ac_status"); }; }; then 9779 cf_cv_dcl_sys_errlist=yes 9780else 9781 echo "$as_me: failed program was:" >&5 9782cat "conftest.$ac_ext" >&5 9783cf_cv_dcl_sys_errlist=no 9784fi 9785rm -f "conftest.$ac_objext" "conftest.$ac_ext" 9786 9787fi 9788echo "$as_me:9788: result: $cf_cv_dcl_sys_errlist" >&5 9789echo "${ECHO_T}$cf_cv_dcl_sys_errlist" >&6 9790 9791if test "$cf_cv_dcl_sys_errlist" = no ; then 9792 9793cf_result=`echo "decl_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 9794 9795 cat >>confdefs.h <<EOF 9796#define $cf_result 1 9797EOF 9798 9799fi 9800 9801# It's possible (for near-UNIX clones) that the data doesn't exist 9802 9803echo "$as_me:9803: checking if external sys_errlist exists" >&5 9804echo $ECHO_N "checking if external sys_errlist exists... $ECHO_C" >&6 9805if test "${cf_cv_have_sys_errlist+set}" = set; then 9806 echo $ECHO_N "(cached) $ECHO_C" >&6 9807else 9808 9809 cat >"conftest.$ac_ext" <<_ACEOF 9810#line 9810 "configure" 9811#include "confdefs.h" 9812 9813#undef sys_errlist 9814extern int sys_errlist; 9815 9816int 9817main (void) 9818{ 9819sys_errlist = 2 9820 ; 9821 return 0; 9822} 9823_ACEOF 9824rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9825if { (eval echo "$as_me:9825: \"$ac_link\"") >&5 9826 (eval $ac_link) 2>&5 9827 ac_status=$? 9828 echo "$as_me:9828: \$? = $ac_status" >&5 9829 (exit "$ac_status"); } && 9830 { ac_try='test -s "conftest$ac_exeext"' 9831 { (eval echo "$as_me:9831: \"$ac_try\"") >&5 9832 (eval $ac_try) 2>&5 9833 ac_status=$? 9834 echo "$as_me:9834: \$? = $ac_status" >&5 9835 (exit "$ac_status"); }; }; then 9836 cf_cv_have_sys_errlist=yes 9837else 9838 echo "$as_me: failed program was:" >&5 9839cat "conftest.$ac_ext" >&5 9840cf_cv_have_sys_errlist=no 9841fi 9842rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9843 9844fi 9845echo "$as_me:9845: result: $cf_cv_have_sys_errlist" >&5 9846echo "${ECHO_T}$cf_cv_have_sys_errlist" >&6 9847 9848if test "$cf_cv_have_sys_errlist" = yes ; then 9849 9850cf_result=`echo "have_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 9851 9852 cat >>confdefs.h <<EOF 9853#define $cf_result 1 9854EOF 9855 9856fi 9857 9858cf_save_LIBS_CF_SYSV="$LIBS" 9859cf_save_CFLAGS_CF_SYSV="$CFLAGS" 9860cf_save_CPPFLAGS_CF_SYSV="$CPPFLAGS" 9861LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}" 9862for cf_X_CFLAGS in $X_CFLAGS 9863do 9864 case "x$cf_X_CFLAGS" in 9865 x-[IUD]*) 9866 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS" 9867 ;; 9868 *) 9869 CFLAGS="$CFLAGS $cf_X_CFLAGS" 9870 ;; 9871 esac 9872done 9873 9874for ac_header in \ 9875termios.h \ 9876stdlib.h \ 9877X11/Intrinsic.h \ 9878 9879do 9880as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9881echo "$as_me:9881: checking for $ac_header" >&5 9882echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9883if eval "test \"\${$as_ac_Header+set}\" = set"; then 9884 echo $ECHO_N "(cached) $ECHO_C" >&6 9885else 9886 cat >"conftest.$ac_ext" <<_ACEOF 9887#line 9887 "configure" 9888#include "confdefs.h" 9889#include <$ac_header> 9890_ACEOF 9891if { (eval echo "$as_me:9891: \"$ac_cpp "conftest.$ac_ext"\"") >&5 9892 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 9893 ac_status=$? 9894 $EGREP -v '^ *\+' conftest.er1 >conftest.err 9895 rm -f conftest.er1 9896 cat conftest.err >&5 9897 echo "$as_me:9897: \$? = $ac_status" >&5 9898 (exit "$ac_status"); } >/dev/null; then 9899 if test -s conftest.err; then 9900 ac_cpp_err=$ac_c_preproc_warn_flag 9901 else 9902 ac_cpp_err= 9903 fi 9904else 9905 ac_cpp_err=yes 9906fi 9907if test -z "$ac_cpp_err"; then 9908 eval "$as_ac_Header=yes" 9909else 9910 echo "$as_me: failed program was:" >&5 9911 cat "conftest.$ac_ext" >&5 9912 eval "$as_ac_Header=no" 9913fi 9914rm -f conftest.err "conftest.$ac_ext" 9915fi 9916echo "$as_me:9916: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 9917echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 9918if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 9919 cat >>confdefs.h <<EOF 9920#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9921EOF 9922 9923fi 9924done 9925 9926echo "$as_me:9926: checking if we should define SYSV" >&5 9927echo $ECHO_N "checking if we should define SYSV... $ECHO_C" >&6 9928if test "${cf_cv_sysv+set}" = set; then 9929 echo $ECHO_N "(cached) $ECHO_C" >&6 9930else 9931 9932cat >"conftest.$ac_ext" <<_ACEOF 9933#line 9933 "configure" 9934#include "confdefs.h" 9935 9936#undef SYSV 9937#define SYSV 1 /* get Xos.h to declare sys_errlist[] */ 9938#ifdef HAVE_STDLIB_H 9939#include <stdlib.h> /* look for wchar_t */ 9940#endif 9941#ifdef HAVE_X11_INTRINSIC_H 9942#include <X11/Intrinsic.h> /* Intrinsic.h has other traps... */ 9943#endif 9944#ifdef HAVE_TERMIOS_H /* needed for HPUX 10.20 */ 9945#include <termios.h> 9946#define STRUCT_TERMIOS struct termios 9947#else 9948#define STRUCT_TERMIOS struct termio 9949#endif 9950#include <curses.h> 9951#include <term.h> /* eliminate most BSD hacks */ 9952#include <errno.h> /* declare sys_errlist on older systems */ 9953#include <sys/termio.h> /* eliminate most of the remaining ones */ 9954 9955int 9956main (void) 9957{ 9958 9959static STRUCT_TERMIOS d_tio; 9960 d_tio.c_cc[VINTR] = 0; 9961 d_tio.c_cc[VQUIT] = 0; 9962 d_tio.c_cc[VERASE] = 0; 9963 d_tio.c_cc[VKILL] = 0; 9964 d_tio.c_cc[VEOF] = 0; 9965 d_tio.c_cc[VEOL] = 0; 9966 d_tio.c_cc[VMIN] = 0; 9967 d_tio.c_cc[VTIME] = 0; 9968#if defined(HAVE_SYS_ERRLIST) && !defined(DECL_SYS_ERRLIST) 9969sys_errlist[0] = ""; /* Cygwin mis-declares this */ 9970#endif 9971 9972 ; 9973 return 0; 9974} 9975_ACEOF 9976rm -f "conftest.$ac_objext" 9977if { (eval echo "$as_me:9977: \"$ac_compile\"") >&5 9978 (eval $ac_compile) 2>&5 9979 ac_status=$? 9980 echo "$as_me:9980: \$? = $ac_status" >&5 9981 (exit "$ac_status"); } && 9982 { ac_try='test -s "conftest.$ac_objext"' 9983 { (eval echo "$as_me:9983: \"$ac_try\"") >&5 9984 (eval $ac_try) 2>&5 9985 ac_status=$? 9986 echo "$as_me:9986: \$? = $ac_status" >&5 9987 (exit "$ac_status"); }; }; then 9988 cf_cv_sysv=yes 9989else 9990 echo "$as_me: failed program was:" >&5 9991cat "conftest.$ac_ext" >&5 9992cf_cv_sysv=no 9993fi 9994rm -f "conftest.$ac_objext" "conftest.$ac_ext" 9995 9996fi 9997echo "$as_me:9997: result: $cf_cv_sysv" >&5 9998echo "${ECHO_T}$cf_cv_sysv" >&6 9999test "$cf_cv_sysv" = yes && 10000cat >>confdefs.h <<\EOF 10001#define SYSV 1 10002EOF 10003 10004LIBS="$cf_save_LIBS_CF_SYSV" 10005CFLAGS="$cf_save_CFLAGS_CF_SYSV" 10006CPPFLAGS="$cf_save_CPPFLAGS_CF_SYSV" 10007 10008echo "$as_me:10008: checking for elf_begin in -lelf" >&5 10009echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 10010if test "${ac_cv_lib_elf_elf_begin+set}" = set; then 10011 echo $ECHO_N "(cached) $ECHO_C" >&6 10012else 10013 ac_check_lib_save_LIBS=$LIBS 10014LIBS="-lelf $LIBS" 10015cat >"conftest.$ac_ext" <<_ACEOF 10016#line 10016 "configure" 10017#include "confdefs.h" 10018 10019/* Override any gcc2 internal prototype to avoid an error. */ 10020#ifdef __cplusplus 10021extern "C" 10022#endif 10023/* We use char because int might match the return type of a gcc2 10024 builtin and then its argument prototype would still apply. */ 10025char elf_begin (); 10026int 10027main (void) 10028{ 10029elf_begin (); 10030 ; 10031 return 0; 10032} 10033_ACEOF 10034rm -f "conftest.$ac_objext" "conftest$ac_exeext" 10035if { (eval echo "$as_me:10035: \"$ac_link\"") >&5 10036 (eval $ac_link) 2>&5 10037 ac_status=$? 10038 echo "$as_me:10038: \$? = $ac_status" >&5 10039 (exit "$ac_status"); } && 10040 { ac_try='test -s "conftest$ac_exeext"' 10041 { (eval echo "$as_me:10041: \"$ac_try\"") >&5 10042 (eval $ac_try) 2>&5 10043 ac_status=$? 10044 echo "$as_me:10044: \$? = $ac_status" >&5 10045 (exit "$ac_status"); }; }; then 10046 ac_cv_lib_elf_elf_begin=yes 10047else 10048 echo "$as_me: failed program was:" >&5 10049cat "conftest.$ac_ext" >&5 10050ac_cv_lib_elf_elf_begin=no 10051fi 10052rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 10053LIBS=$ac_check_lib_save_LIBS 10054fi 10055echo "$as_me:10055: result: $ac_cv_lib_elf_elf_begin" >&5 10056echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 10057if test "$ac_cv_lib_elf_elf_begin" = yes; then 10058 10059echo "$as_me:10059: checking if this is an SVR4 system" >&5 10060echo $ECHO_N "checking if this is an SVR4 system... $ECHO_C" >&6 10061if test "${cf_cv_svr4+set}" = set; then 10062 echo $ECHO_N "(cached) $ECHO_C" >&6 10063else 10064 10065cat >"conftest.$ac_ext" <<_ACEOF 10066#line 10066 "configure" 10067#include "confdefs.h" 10068 10069#if defined(__CYGWIN__) 10070make an error 10071#endif 10072#include <elf.h> 10073#include <sys/termio.h> 10074 10075int 10076main (void) 10077{ 10078 10079static struct termio d_tio; 10080 d_tio.c_cc[VINTR] = 0; 10081 d_tio.c_cc[VQUIT] = 0; 10082 d_tio.c_cc[VERASE] = 0; 10083 d_tio.c_cc[VKILL] = 0; 10084 d_tio.c_cc[VEOF] = 0; 10085 d_tio.c_cc[VEOL] = 0; 10086 d_tio.c_cc[VMIN] = 0; 10087 d_tio.c_cc[VTIME] = 0; 10088 d_tio.c_cc[VLNEXT] = 0; 10089 10090 ; 10091 return 0; 10092} 10093_ACEOF 10094rm -f "conftest.$ac_objext" 10095if { (eval echo "$as_me:10095: \"$ac_compile\"") >&5 10096 (eval $ac_compile) 2>&5 10097 ac_status=$? 10098 echo "$as_me:10098: \$? = $ac_status" >&5 10099 (exit "$ac_status"); } && 10100 { ac_try='test -s "conftest.$ac_objext"' 10101 { (eval echo "$as_me:10101: \"$ac_try\"") >&5 10102 (eval $ac_try) 2>&5 10103 ac_status=$? 10104 echo "$as_me:10104: \$? = $ac_status" >&5 10105 (exit "$ac_status"); }; }; then 10106 cf_cv_svr4=yes 10107else 10108 echo "$as_me: failed program was:" >&5 10109cat "conftest.$ac_ext" >&5 10110cf_cv_svr4=no 10111fi 10112rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10113 10114fi 10115echo "$as_me:10115: result: $cf_cv_svr4" >&5 10116echo "${ECHO_T}$cf_cv_svr4" >&6 10117 10118fi 10119 10120test "$cf_cv_svr4" = yes && 10121cat >>confdefs.h <<\EOF 10122#define SVR4 1 10123EOF 10124 10125echo "$as_me:10125: checking if you want to use pkg-config" >&5 10126echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6 10127 10128# Check whether --with-pkg-config or --without-pkg-config was given. 10129if test "${with_pkg_config+set}" = set; then 10130 withval="$with_pkg_config" 10131 cf_pkg_config=$withval 10132else 10133 cf_pkg_config=yes 10134fi; 10135echo "$as_me:10135: result: $cf_pkg_config" >&5 10136echo "${ECHO_T}$cf_pkg_config" >&6 10137 10138case "$cf_pkg_config" in 10139(no) 10140 PKG_CONFIG=none 10141 ;; 10142(yes) 10143 10144if test -n "$ac_tool_prefix"; then 10145 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 10146set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 10147echo "$as_me:10147: checking for $ac_word" >&5 10148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10149if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 10150 echo $ECHO_N "(cached) $ECHO_C" >&6 10151else 10152 case $PKG_CONFIG in 10153 [\\/]* | ?:[\\/]*) 10154 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 10155 ;; 10156 *) 10157 ac_save_IFS=$IFS; IFS=$ac_path_separator 10158ac_dummy="$PATH" 10159for ac_dir in $ac_dummy; do 10160 IFS=$ac_save_IFS 10161 test -z "$ac_dir" && ac_dir=. 10162 if $as_executable_p "$ac_dir/$ac_word"; then 10163 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" 10164 echo "$as_me:10164: found $ac_dir/$ac_word" >&5 10165 break 10166fi 10167done 10168 10169 ;; 10170esac 10171fi 10172PKG_CONFIG=$ac_cv_path_PKG_CONFIG 10173 10174if test -n "$PKG_CONFIG"; then 10175 echo "$as_me:10175: result: $PKG_CONFIG" >&5 10176echo "${ECHO_T}$PKG_CONFIG" >&6 10177else 10178 echo "$as_me:10178: result: no" >&5 10179echo "${ECHO_T}no" >&6 10180fi 10181 10182fi 10183if test -z "$ac_cv_path_PKG_CONFIG"; then 10184 ac_pt_PKG_CONFIG=$PKG_CONFIG 10185 # Extract the first word of "pkg-config", so it can be a program name with args. 10186set dummy pkg-config; ac_word=$2 10187echo "$as_me:10187: checking for $ac_word" >&5 10188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10189if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 10190 echo $ECHO_N "(cached) $ECHO_C" >&6 10191else 10192 case $ac_pt_PKG_CONFIG in 10193 [\\/]* | ?:[\\/]*) 10194 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 10195 ;; 10196 *) 10197 ac_save_IFS=$IFS; IFS=$ac_path_separator 10198ac_dummy="$PATH" 10199for ac_dir in $ac_dummy; do 10200 IFS=$ac_save_IFS 10201 test -z "$ac_dir" && ac_dir=. 10202 if $as_executable_p "$ac_dir/$ac_word"; then 10203 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word" 10204 echo "$as_me:10204: found $ac_dir/$ac_word" >&5 10205 break 10206fi 10207done 10208 10209 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none" 10210 ;; 10211esac 10212fi 10213ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 10214 10215if test -n "$ac_pt_PKG_CONFIG"; then 10216 echo "$as_me:10216: result: $ac_pt_PKG_CONFIG" >&5 10217echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 10218else 10219 echo "$as_me:10219: result: no" >&5 10220echo "${ECHO_T}no" >&6 10221fi 10222 10223 PKG_CONFIG=$ac_pt_PKG_CONFIG 10224else 10225 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 10226fi 10227 10228 ;; 10229(*) 10230 PKG_CONFIG=$withval 10231 ;; 10232esac 10233 10234test -z "$PKG_CONFIG" && PKG_CONFIG=none 10235if test "$PKG_CONFIG" != none ; then 10236 10237if test "x$prefix" != xNONE; then 10238 cf_path_syntax="$prefix" 10239else 10240 cf_path_syntax="$ac_default_prefix" 10241fi 10242 10243case ".$PKG_CONFIG" in 10244(.\$\(*\)*|.\'*\'*) 10245 ;; 10246(..|./*|.\\*) 10247 ;; 10248(.[a-zA-Z]:[\\/]*) # OS/2 EMX 10249 ;; 10250(.\$\{*prefix\}*|.\$\{*dir\}*) 10251 eval PKG_CONFIG="$PKG_CONFIG" 10252 case ".$PKG_CONFIG" in 10253 (.NONE/*) 10254 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%` 10255 ;; 10256 esac 10257 ;; 10258(.no|.NONE/*) 10259 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%` 10260 ;; 10261(*) 10262 { { echo "$as_me:10262: error: expected a pathname, not \"$PKG_CONFIG\"" >&5 10263echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;} 10264 { (exit 1); exit 1; }; } 10265 ;; 10266esac 10267 10268elif test "x$cf_pkg_config" != xno ; then 10269 { echo "$as_me:10269: WARNING: pkg-config is not installed" >&5 10270echo "$as_me: WARNING: pkg-config is not installed" >&2;} 10271fi 10272 10273# OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new) (and 10274# in some cases has installed dummy files in the former, other cases replaced 10275# it with a link to the new location). This complicates the configure script. 10276# Check for that pitfall, and recover using pkg-config 10277# 10278# If none of these are set, the configuration is almost certainly broken. 10279if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}" 10280then 10281 10282if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then 10283 test -n "$verbose" && echo " found package x11" 1>&6 10284 10285echo "${as_me:-configure}:10285: testing found package x11 ..." 1>&5 10286 10287 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`" 10288 cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`" 10289 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6 10290 10291echo "${as_me:-configure}:10291: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 10292 10293 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6 10294 10295echo "${as_me:-configure}:10295: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5 10296 10297cf_fix_cppflags=no 10298cf_new_cflags= 10299cf_new_cppflags= 10300cf_new_extra_cppflags= 10301 10302for cf_add_cflags in $cf_pkgconfig_incs 10303do 10304case "$cf_fix_cppflags" in 10305(no) 10306 case "$cf_add_cflags" in 10307 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 10308 case "$cf_add_cflags" in 10309 (-D*) 10310 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 10311 10312 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10313 && test -z "${cf_tst_cflags}" \ 10314 && cf_fix_cppflags=yes 10315 10316 if test "$cf_fix_cppflags" = yes ; then 10317 10318 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10319 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10320 10321 continue 10322 elif test "${cf_tst_cflags}" = "\"'" ; then 10323 10324 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10325 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10326 10327 continue 10328 fi 10329 ;; 10330 esac 10331 case "$CPPFLAGS" in 10332 (*$cf_add_cflags) 10333 ;; 10334 (*) 10335 case "$cf_add_cflags" in 10336 (-D*) 10337 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 10338 10339CPPFLAGS=`echo "$CPPFLAGS" | \ 10340 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 10341 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 10342 10343 ;; 10344 esac 10345 10346 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 10347 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 10348 10349 ;; 10350 esac 10351 ;; 10352 (*) 10353 10354 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 10355 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 10356 10357 ;; 10358 esac 10359 ;; 10360(yes) 10361 10362 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10363 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10364 10365 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 10366 10367 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10368 && test -z "${cf_tst_cflags}" \ 10369 && cf_fix_cppflags=no 10370 ;; 10371esac 10372done 10373 10374if test -n "$cf_new_cflags" ; then 10375 10376 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 10377 CFLAGS="${CFLAGS}$cf_new_cflags" 10378 10379fi 10380 10381if test -n "$cf_new_cppflags" ; then 10382 10383 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 10384 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 10385 10386fi 10387 10388if test -n "$cf_new_extra_cppflags" ; then 10389 10390 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 10391 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 10392 10393fi 10394 10395cf_add_libs="$LIBS" 10396# reverse order 10397cf_add_0lib= 10398for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 10399# filter duplicates 10400for cf_add_1lib in $cf_add_0lib; do 10401 for cf_add_2lib in $cf_add_libs; do 10402 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 10403 cf_add_1lib= 10404 break 10405 fi 10406 done 10407 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 10408done 10409LIBS="$cf_add_libs" 10410 10411 : 10412else 10413 cf_pkgconfig_incs= 10414 cf_pkgconfig_libs= 10415 { echo "$as_me:10415: WARNING: unable to find X11 library" >&5 10416echo "$as_me: WARNING: unable to find X11 library" >&2;} 10417fi 10418 10419if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then 10420 test -n "$verbose" && echo " found package ice" 1>&6 10421 10422echo "${as_me:-configure}:10422: testing found package ice ..." 1>&5 10423 10424 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`" 10425 cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`" 10426 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6 10427 10428echo "${as_me:-configure}:10428: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5 10429 10430 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6 10431 10432echo "${as_me:-configure}:10432: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5 10433 10434cf_fix_cppflags=no 10435cf_new_cflags= 10436cf_new_cppflags= 10437cf_new_extra_cppflags= 10438 10439for cf_add_cflags in $cf_pkgconfig_incs 10440do 10441case "$cf_fix_cppflags" in 10442(no) 10443 case "$cf_add_cflags" in 10444 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 10445 case "$cf_add_cflags" in 10446 (-D*) 10447 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 10448 10449 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10450 && test -z "${cf_tst_cflags}" \ 10451 && cf_fix_cppflags=yes 10452 10453 if test "$cf_fix_cppflags" = yes ; then 10454 10455 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10456 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10457 10458 continue 10459 elif test "${cf_tst_cflags}" = "\"'" ; then 10460 10461 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10462 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10463 10464 continue 10465 fi 10466 ;; 10467 esac 10468 case "$CPPFLAGS" in 10469 (*$cf_add_cflags) 10470 ;; 10471 (*) 10472 case "$cf_add_cflags" in 10473 (-D*) 10474 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 10475 10476CPPFLAGS=`echo "$CPPFLAGS" | \ 10477 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 10478 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 10479 10480 ;; 10481 esac 10482 10483 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 10484 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 10485 10486 ;; 10487 esac 10488 ;; 10489 (*) 10490 10491 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 10492 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 10493 10494 ;; 10495 esac 10496 ;; 10497(yes) 10498 10499 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10500 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10501 10502 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 10503 10504 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10505 && test -z "${cf_tst_cflags}" \ 10506 && cf_fix_cppflags=no 10507 ;; 10508esac 10509done 10510 10511if test -n "$cf_new_cflags" ; then 10512 10513 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 10514 CFLAGS="${CFLAGS}$cf_new_cflags" 10515 10516fi 10517 10518if test -n "$cf_new_cppflags" ; then 10519 10520 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 10521 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 10522 10523fi 10524 10525if test -n "$cf_new_extra_cppflags" ; then 10526 10527 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 10528 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 10529 10530fi 10531 10532cf_add_libs="$LIBS" 10533# reverse order 10534cf_add_0lib= 10535for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 10536# filter duplicates 10537for cf_add_1lib in $cf_add_0lib; do 10538 for cf_add_2lib in $cf_add_libs; do 10539 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 10540 cf_add_1lib= 10541 break 10542 fi 10543 done 10544 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 10545done 10546LIBS="$cf_add_libs" 10547 10548 : 10549else 10550 cf_pkgconfig_incs= 10551 cf_pkgconfig_libs= 10552 { echo "$as_me:10552: WARNING: unable to find ICE library" >&5 10553echo "$as_me: WARNING: unable to find ICE library" >&2;} 10554fi 10555 10556if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then 10557 test -n "$verbose" && echo " found package sm" 1>&6 10558 10559echo "${as_me:-configure}:10559: testing found package sm ..." 1>&5 10560 10561 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`" 10562 cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`" 10563 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6 10564 10565echo "${as_me:-configure}:10565: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5 10566 10567 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6 10568 10569echo "${as_me:-configure}:10569: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5 10570 10571cf_fix_cppflags=no 10572cf_new_cflags= 10573cf_new_cppflags= 10574cf_new_extra_cppflags= 10575 10576for cf_add_cflags in $cf_pkgconfig_incs 10577do 10578case "$cf_fix_cppflags" in 10579(no) 10580 case "$cf_add_cflags" in 10581 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 10582 case "$cf_add_cflags" in 10583 (-D*) 10584 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 10585 10586 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10587 && test -z "${cf_tst_cflags}" \ 10588 && cf_fix_cppflags=yes 10589 10590 if test "$cf_fix_cppflags" = yes ; then 10591 10592 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10593 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10594 10595 continue 10596 elif test "${cf_tst_cflags}" = "\"'" ; then 10597 10598 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10599 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10600 10601 continue 10602 fi 10603 ;; 10604 esac 10605 case "$CPPFLAGS" in 10606 (*$cf_add_cflags) 10607 ;; 10608 (*) 10609 case "$cf_add_cflags" in 10610 (-D*) 10611 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 10612 10613CPPFLAGS=`echo "$CPPFLAGS" | \ 10614 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 10615 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 10616 10617 ;; 10618 esac 10619 10620 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 10621 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 10622 10623 ;; 10624 esac 10625 ;; 10626 (*) 10627 10628 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 10629 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 10630 10631 ;; 10632 esac 10633 ;; 10634(yes) 10635 10636 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10637 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10638 10639 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 10640 10641 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10642 && test -z "${cf_tst_cflags}" \ 10643 && cf_fix_cppflags=no 10644 ;; 10645esac 10646done 10647 10648if test -n "$cf_new_cflags" ; then 10649 10650 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 10651 CFLAGS="${CFLAGS}$cf_new_cflags" 10652 10653fi 10654 10655if test -n "$cf_new_cppflags" ; then 10656 10657 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 10658 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 10659 10660fi 10661 10662if test -n "$cf_new_extra_cppflags" ; then 10663 10664 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 10665 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 10666 10667fi 10668 10669cf_add_libs="$LIBS" 10670# reverse order 10671cf_add_0lib= 10672for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 10673# filter duplicates 10674for cf_add_1lib in $cf_add_0lib; do 10675 for cf_add_2lib in $cf_add_libs; do 10676 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 10677 cf_add_1lib= 10678 break 10679 fi 10680 done 10681 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 10682done 10683LIBS="$cf_add_libs" 10684 10685 : 10686else 10687 cf_pkgconfig_incs= 10688 cf_pkgconfig_libs= 10689 { echo "$as_me:10689: WARNING: unable to find SM library" >&5 10690echo "$as_me: WARNING: unable to find SM library" >&2;} 10691fi 10692 10693if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then 10694 test -n "$verbose" && echo " found package xt" 1>&6 10695 10696echo "${as_me:-configure}:10696: testing found package xt ..." 1>&5 10697 10698 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`" 10699 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`" 10700 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6 10701 10702echo "${as_me:-configure}:10702: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5 10703 10704 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6 10705 10706echo "${as_me:-configure}:10706: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5 10707 10708cf_fix_cppflags=no 10709cf_new_cflags= 10710cf_new_cppflags= 10711cf_new_extra_cppflags= 10712 10713for cf_add_cflags in $cf_pkgconfig_incs 10714do 10715case "$cf_fix_cppflags" in 10716(no) 10717 case "$cf_add_cflags" in 10718 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 10719 case "$cf_add_cflags" in 10720 (-D*) 10721 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 10722 10723 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10724 && test -z "${cf_tst_cflags}" \ 10725 && cf_fix_cppflags=yes 10726 10727 if test "$cf_fix_cppflags" = yes ; then 10728 10729 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10730 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10731 10732 continue 10733 elif test "${cf_tst_cflags}" = "\"'" ; then 10734 10735 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10736 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10737 10738 continue 10739 fi 10740 ;; 10741 esac 10742 case "$CPPFLAGS" in 10743 (*$cf_add_cflags) 10744 ;; 10745 (*) 10746 case "$cf_add_cflags" in 10747 (-D*) 10748 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 10749 10750CPPFLAGS=`echo "$CPPFLAGS" | \ 10751 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 10752 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 10753 10754 ;; 10755 esac 10756 10757 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 10758 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 10759 10760 ;; 10761 esac 10762 ;; 10763 (*) 10764 10765 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 10766 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 10767 10768 ;; 10769 esac 10770 ;; 10771(yes) 10772 10773 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10774 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10775 10776 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 10777 10778 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10779 && test -z "${cf_tst_cflags}" \ 10780 && cf_fix_cppflags=no 10781 ;; 10782esac 10783done 10784 10785if test -n "$cf_new_cflags" ; then 10786 10787 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 10788 CFLAGS="${CFLAGS}$cf_new_cflags" 10789 10790fi 10791 10792if test -n "$cf_new_cppflags" ; then 10793 10794 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 10795 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 10796 10797fi 10798 10799if test -n "$cf_new_extra_cppflags" ; then 10800 10801 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 10802 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 10803 10804fi 10805 10806cf_add_libs="$LIBS" 10807# reverse order 10808cf_add_0lib= 10809for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 10810# filter duplicates 10811for cf_add_1lib in $cf_add_0lib; do 10812 for cf_add_2lib in $cf_add_libs; do 10813 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 10814 cf_add_1lib= 10815 break 10816 fi 10817 done 10818 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 10819done 10820LIBS="$cf_add_libs" 10821 10822 : 10823else 10824 cf_pkgconfig_incs= 10825 cf_pkgconfig_libs= 10826 { echo "$as_me:10826: WARNING: unable to find Xt library" >&5 10827echo "$as_me: WARNING: unable to find Xt library" >&2;} 10828fi 10829 10830else 10831 LIBS="$X_PRE_LIBS $LIBS $X_EXTRA_LIBS" 10832fi 10833 10834cf_have_X_LIBS=no 10835 10836if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then 10837 test -n "$verbose" && echo " found package xt" 1>&6 10838 10839echo "${as_me:-configure}:10839: testing found package xt ..." 1>&5 10840 10841 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`" 10842 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`" 10843 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6 10844 10845echo "${as_me:-configure}:10845: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5 10846 10847 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6 10848 10849echo "${as_me:-configure}:10849: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5 10850 10851cf_fix_cppflags=no 10852cf_new_cflags= 10853cf_new_cppflags= 10854cf_new_extra_cppflags= 10855 10856for cf_add_cflags in $cf_pkgconfig_incs 10857do 10858case "$cf_fix_cppflags" in 10859(no) 10860 case "$cf_add_cflags" in 10861 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 10862 case "$cf_add_cflags" in 10863 (-D*) 10864 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 10865 10866 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10867 && test -z "${cf_tst_cflags}" \ 10868 && cf_fix_cppflags=yes 10869 10870 if test "$cf_fix_cppflags" = yes ; then 10871 10872 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10873 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10874 10875 continue 10876 elif test "${cf_tst_cflags}" = "\"'" ; then 10877 10878 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10879 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10880 10881 continue 10882 fi 10883 ;; 10884 esac 10885 case "$CPPFLAGS" in 10886 (*$cf_add_cflags) 10887 ;; 10888 (*) 10889 case "$cf_add_cflags" in 10890 (-D*) 10891 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 10892 10893CPPFLAGS=`echo "$CPPFLAGS" | \ 10894 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 10895 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 10896 10897 ;; 10898 esac 10899 10900 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 10901 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 10902 10903 ;; 10904 esac 10905 ;; 10906 (*) 10907 10908 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 10909 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 10910 10911 ;; 10912 esac 10913 ;; 10914(yes) 10915 10916 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10917 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10918 10919 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 10920 10921 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10922 && test -z "${cf_tst_cflags}" \ 10923 && cf_fix_cppflags=no 10924 ;; 10925esac 10926done 10927 10928if test -n "$cf_new_cflags" ; then 10929 10930 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 10931 CFLAGS="${CFLAGS}$cf_new_cflags" 10932 10933fi 10934 10935if test -n "$cf_new_cppflags" ; then 10936 10937 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 10938 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 10939 10940fi 10941 10942if test -n "$cf_new_extra_cppflags" ; then 10943 10944 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 10945 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 10946 10947fi 10948 10949cf_add_libs="$LIBS" 10950# reverse order 10951cf_add_0lib= 10952for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 10953# filter duplicates 10954for cf_add_1lib in $cf_add_0lib; do 10955 for cf_add_2lib in $cf_add_libs; do 10956 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 10957 cf_add_1lib= 10958 break 10959 fi 10960 done 10961 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 10962done 10963LIBS="$cf_add_libs" 10964 10965 case "x$LIBS" in 10966 (*-lX11*) 10967 ;; 10968 (*) 10969# we have an "xt" package, but it may omit Xt's dependency on X11 10970echo "$as_me:10970: checking for usable X dependency" >&5 10971echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6 10972if test "${cf_cv_xt_x11_compat+set}" = set; then 10973 echo $ECHO_N "(cached) $ECHO_C" >&6 10974else 10975 10976cat >"conftest.$ac_ext" <<_ACEOF 10977#line 10977 "configure" 10978#include "confdefs.h" 10979 10980#include <X11/Xlib.h> 10981 10982int 10983main (void) 10984{ 10985 10986 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0); 10987 int rc2 = XClearWindow((Display*) 0, (Window) 0); 10988 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0); 10989 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0); 10990 10991 ; 10992 return 0; 10993} 10994_ACEOF 10995rm -f "conftest.$ac_objext" "conftest$ac_exeext" 10996if { (eval echo "$as_me:10996: \"$ac_link\"") >&5 10997 (eval $ac_link) 2>&5 10998 ac_status=$? 10999 echo "$as_me:10999: \$? = $ac_status" >&5 11000 (exit "$ac_status"); } && 11001 { ac_try='test -s "conftest$ac_exeext"' 11002 { (eval echo "$as_me:11002: \"$ac_try\"") >&5 11003 (eval $ac_try) 2>&5 11004 ac_status=$? 11005 echo "$as_me:11005: \$? = $ac_status" >&5 11006 (exit "$ac_status"); }; }; then 11007 cf_cv_xt_x11_compat=yes 11008else 11009 echo "$as_me: failed program was:" >&5 11010cat "conftest.$ac_ext" >&5 11011cf_cv_xt_x11_compat=no 11012fi 11013rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 11014fi 11015echo "$as_me:11015: result: $cf_cv_xt_x11_compat" >&5 11016echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6 11017 if test "$cf_cv_xt_x11_compat" = no 11018 then 11019 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6 11020 11021echo "${as_me:-configure}:11021: testing work around broken X11 dependency ..." 1>&5 11022 11023 # 2010/11/19 - good enough until a working Xt on Xcb is delivered. 11024 11025if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then 11026 test -n "$verbose" && echo " found package x11" 1>&6 11027 11028echo "${as_me:-configure}:11028: testing found package x11 ..." 1>&5 11029 11030 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`" 11031 cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`" 11032 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6 11033 11034echo "${as_me:-configure}:11034: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11035 11036 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6 11037 11038echo "${as_me:-configure}:11038: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5 11039 11040cf_fix_cppflags=no 11041cf_new_cflags= 11042cf_new_cppflags= 11043cf_new_extra_cppflags= 11044 11045for cf_add_cflags in $cf_pkgconfig_incs 11046do 11047case "$cf_fix_cppflags" in 11048(no) 11049 case "$cf_add_cflags" in 11050 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11051 case "$cf_add_cflags" in 11052 (-D*) 11053 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11054 11055 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11056 && test -z "${cf_tst_cflags}" \ 11057 && cf_fix_cppflags=yes 11058 11059 if test "$cf_fix_cppflags" = yes ; then 11060 11061 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11062 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11063 11064 continue 11065 elif test "${cf_tst_cflags}" = "\"'" ; then 11066 11067 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11068 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11069 11070 continue 11071 fi 11072 ;; 11073 esac 11074 case "$CPPFLAGS" in 11075 (*$cf_add_cflags) 11076 ;; 11077 (*) 11078 case "$cf_add_cflags" in 11079 (-D*) 11080 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11081 11082CPPFLAGS=`echo "$CPPFLAGS" | \ 11083 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11084 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11085 11086 ;; 11087 esac 11088 11089 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 11090 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 11091 11092 ;; 11093 esac 11094 ;; 11095 (*) 11096 11097 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 11098 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 11099 11100 ;; 11101 esac 11102 ;; 11103(yes) 11104 11105 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11106 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11107 11108 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 11109 11110 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11111 && test -z "${cf_tst_cflags}" \ 11112 && cf_fix_cppflags=no 11113 ;; 11114esac 11115done 11116 11117if test -n "$cf_new_cflags" ; then 11118 11119 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 11120 CFLAGS="${CFLAGS}$cf_new_cflags" 11121 11122fi 11123 11124if test -n "$cf_new_cppflags" ; then 11125 11126 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11127 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 11128 11129fi 11130 11131if test -n "$cf_new_extra_cppflags" ; then 11132 11133 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 11134 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 11135 11136fi 11137 11138cf_add_libs="$LIBS" 11139# reverse order 11140cf_add_0lib= 11141for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 11142# filter duplicates 11143for cf_add_1lib in $cf_add_0lib; do 11144 for cf_add_2lib in $cf_add_libs; do 11145 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 11146 cf_add_1lib= 11147 break 11148 fi 11149 done 11150 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 11151done 11152LIBS="$cf_add_libs" 11153 11154 : 11155else 11156 cf_pkgconfig_incs= 11157 cf_pkgconfig_libs= 11158 11159test -n "$verbose" && echo " ...before $LIBS" 1>&6 11160 11161echo "${as_me:-configure}:11161: testing ...before $LIBS ..." 1>&5 11162 11163LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'` 11164test -n "$verbose" && echo " ...after $LIBS" 1>&6 11165 11166echo "${as_me:-configure}:11166: testing ...after $LIBS ..." 1>&5 11167 11168fi 11169 11170 fi 11171 ;; 11172 esac 11173 11174echo "$as_me:11174: checking for usable X Toolkit package" >&5 11175echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6 11176if test "${cf_cv_xt_ice_compat+set}" = set; then 11177 echo $ECHO_N "(cached) $ECHO_C" >&6 11178else 11179 11180cat >"conftest.$ac_ext" <<_ACEOF 11181#line 11181 "configure" 11182#include "confdefs.h" 11183 11184#include <X11/Shell.h> 11185 11186int 11187main (void) 11188{ 11189int num = IceConnectionNumber(0); (void) num 11190 11191 ; 11192 return 0; 11193} 11194_ACEOF 11195rm -f "conftest.$ac_objext" "conftest$ac_exeext" 11196if { (eval echo "$as_me:11196: \"$ac_link\"") >&5 11197 (eval $ac_link) 2>&5 11198 ac_status=$? 11199 echo "$as_me:11199: \$? = $ac_status" >&5 11200 (exit "$ac_status"); } && 11201 { ac_try='test -s "conftest$ac_exeext"' 11202 { (eval echo "$as_me:11202: \"$ac_try\"") >&5 11203 (eval $ac_try) 2>&5 11204 ac_status=$? 11205 echo "$as_me:11205: \$? = $ac_status" >&5 11206 (exit "$ac_status"); }; }; then 11207 cf_cv_xt_ice_compat=yes 11208else 11209 echo "$as_me: failed program was:" >&5 11210cat "conftest.$ac_ext" >&5 11211cf_cv_xt_ice_compat=no 11212fi 11213rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 11214fi 11215echo "$as_me:11215: result: $cf_cv_xt_ice_compat" >&5 11216echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6 11217 11218 if test "$cf_cv_xt_ice_compat" = no 11219 then 11220 # workaround for broken ".pc" files used for X Toolkit. 11221 case "x$X_PRE_LIBS" in 11222 (*-lICE*) 11223 case "x$LIBS" in 11224 (*-lICE*) 11225 ;; 11226 (*) 11227 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6 11228 11229echo "${as_me:-configure}:11229: testing work around broken ICE dependency ..." 1>&5 11230 11231if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then 11232 test -n "$verbose" && echo " found package ice" 1>&6 11233 11234echo "${as_me:-configure}:11234: testing found package ice ..." 1>&5 11235 11236 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`" 11237 cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`" 11238 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6 11239 11240echo "${as_me:-configure}:11240: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11241 11242 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6 11243 11244echo "${as_me:-configure}:11244: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5 11245 11246cf_fix_cppflags=no 11247cf_new_cflags= 11248cf_new_cppflags= 11249cf_new_extra_cppflags= 11250 11251for cf_add_cflags in $cf_pkgconfig_incs 11252do 11253case "$cf_fix_cppflags" in 11254(no) 11255 case "$cf_add_cflags" in 11256 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11257 case "$cf_add_cflags" in 11258 (-D*) 11259 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11260 11261 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11262 && test -z "${cf_tst_cflags}" \ 11263 && cf_fix_cppflags=yes 11264 11265 if test "$cf_fix_cppflags" = yes ; then 11266 11267 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11268 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11269 11270 continue 11271 elif test "${cf_tst_cflags}" = "\"'" ; then 11272 11273 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11274 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11275 11276 continue 11277 fi 11278 ;; 11279 esac 11280 case "$CPPFLAGS" in 11281 (*$cf_add_cflags) 11282 ;; 11283 (*) 11284 case "$cf_add_cflags" in 11285 (-D*) 11286 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11287 11288CPPFLAGS=`echo "$CPPFLAGS" | \ 11289 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11290 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11291 11292 ;; 11293 esac 11294 11295 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 11296 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 11297 11298 ;; 11299 esac 11300 ;; 11301 (*) 11302 11303 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 11304 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 11305 11306 ;; 11307 esac 11308 ;; 11309(yes) 11310 11311 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11312 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11313 11314 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 11315 11316 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11317 && test -z "${cf_tst_cflags}" \ 11318 && cf_fix_cppflags=no 11319 ;; 11320esac 11321done 11322 11323if test -n "$cf_new_cflags" ; then 11324 11325 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 11326 CFLAGS="${CFLAGS}$cf_new_cflags" 11327 11328fi 11329 11330if test -n "$cf_new_cppflags" ; then 11331 11332 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11333 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 11334 11335fi 11336 11337if test -n "$cf_new_extra_cppflags" ; then 11338 11339 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 11340 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 11341 11342fi 11343 11344cf_add_libs="$LIBS" 11345# reverse order 11346cf_add_0lib= 11347for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 11348# filter duplicates 11349for cf_add_1lib in $cf_add_0lib; do 11350 for cf_add_2lib in $cf_add_libs; do 11351 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 11352 cf_add_1lib= 11353 break 11354 fi 11355 done 11356 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 11357done 11358LIBS="$cf_add_libs" 11359 11360if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then 11361 test -n "$verbose" && echo " found package sm" 1>&6 11362 11363echo "${as_me:-configure}:11363: testing found package sm ..." 1>&5 11364 11365 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`" 11366 cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`" 11367 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6 11368 11369echo "${as_me:-configure}:11369: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11370 11371 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6 11372 11373echo "${as_me:-configure}:11373: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5 11374 11375cf_fix_cppflags=no 11376cf_new_cflags= 11377cf_new_cppflags= 11378cf_new_extra_cppflags= 11379 11380for cf_add_cflags in $cf_pkgconfig_incs 11381do 11382case "$cf_fix_cppflags" in 11383(no) 11384 case "$cf_add_cflags" in 11385 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11386 case "$cf_add_cflags" in 11387 (-D*) 11388 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11389 11390 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11391 && test -z "${cf_tst_cflags}" \ 11392 && cf_fix_cppflags=yes 11393 11394 if test "$cf_fix_cppflags" = yes ; then 11395 11396 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11397 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11398 11399 continue 11400 elif test "${cf_tst_cflags}" = "\"'" ; then 11401 11402 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11403 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11404 11405 continue 11406 fi 11407 ;; 11408 esac 11409 case "$CPPFLAGS" in 11410 (*$cf_add_cflags) 11411 ;; 11412 (*) 11413 case "$cf_add_cflags" in 11414 (-D*) 11415 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11416 11417CPPFLAGS=`echo "$CPPFLAGS" | \ 11418 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11419 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11420 11421 ;; 11422 esac 11423 11424 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 11425 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 11426 11427 ;; 11428 esac 11429 ;; 11430 (*) 11431 11432 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 11433 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 11434 11435 ;; 11436 esac 11437 ;; 11438(yes) 11439 11440 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11441 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11442 11443 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 11444 11445 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11446 && test -z "${cf_tst_cflags}" \ 11447 && cf_fix_cppflags=no 11448 ;; 11449esac 11450done 11451 11452if test -n "$cf_new_cflags" ; then 11453 11454 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 11455 CFLAGS="${CFLAGS}$cf_new_cflags" 11456 11457fi 11458 11459if test -n "$cf_new_cppflags" ; then 11460 11461 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11462 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 11463 11464fi 11465 11466if test -n "$cf_new_extra_cppflags" ; then 11467 11468 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 11469 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 11470 11471fi 11472 11473cf_add_libs="$LIBS" 11474# reverse order 11475cf_add_0lib= 11476for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 11477# filter duplicates 11478for cf_add_1lib in $cf_add_0lib; do 11479 for cf_add_2lib in $cf_add_libs; do 11480 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 11481 cf_add_1lib= 11482 break 11483 fi 11484 done 11485 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 11486done 11487LIBS="$cf_add_libs" 11488 11489 : 11490else 11491 cf_pkgconfig_incs= 11492 cf_pkgconfig_libs= 11493 : 11494fi 11495 11496else 11497 cf_pkgconfig_incs= 11498 cf_pkgconfig_libs= 11499 11500test -n "$verbose" && echo " ...before $LIBS" 1>&6 11501 11502echo "${as_me:-configure}:11502: testing ...before $LIBS ..." 1>&5 11503 11504LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'` 11505test -n "$verbose" && echo " ...after $LIBS" 1>&6 11506 11507echo "${as_me:-configure}:11507: testing ...after $LIBS ..." 1>&5 11508 11509fi 11510 11511 ;; 11512 esac 11513 ;; 11514 esac 11515 fi 11516 11517 cf_have_X_LIBS=yes 11518 11519else 11520 cf_pkgconfig_incs= 11521 cf_pkgconfig_libs= 11522 11523 LDFLAGS="$X_LIBS $LDFLAGS" 11524 11525test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6 11526 11527echo "${as_me:-configure}:11527: testing checking additions to CFLAGS ..." 1>&5 11528 11529cf_check_cflags="$CFLAGS" 11530cf_check_cppflags="$CPPFLAGS" 11531 11532cf_fix_cppflags=no 11533cf_new_cflags= 11534cf_new_cppflags= 11535cf_new_extra_cppflags= 11536 11537for cf_add_cflags in $X_CFLAGS 11538do 11539case "$cf_fix_cppflags" in 11540(no) 11541 case "$cf_add_cflags" in 11542 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11543 case "$cf_add_cflags" in 11544 (-D*) 11545 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11546 11547 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11548 && test -z "${cf_tst_cflags}" \ 11549 && cf_fix_cppflags=yes 11550 11551 if test "$cf_fix_cppflags" = yes ; then 11552 11553 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11554 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11555 11556 continue 11557 elif test "${cf_tst_cflags}" = "\"'" ; then 11558 11559 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11560 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11561 11562 continue 11563 fi 11564 ;; 11565 esac 11566 case "$CPPFLAGS" in 11567 (*$cf_add_cflags) 11568 ;; 11569 (*) 11570 case "$cf_add_cflags" in 11571 (-D*) 11572 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11573 11574CPPFLAGS=`echo "$CPPFLAGS" | \ 11575 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11576 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11577 11578 ;; 11579 esac 11580 11581 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 11582 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 11583 11584 ;; 11585 esac 11586 ;; 11587 (*) 11588 11589 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 11590 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 11591 11592 ;; 11593 esac 11594 ;; 11595(yes) 11596 11597 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11598 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11599 11600 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 11601 11602 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11603 && test -z "${cf_tst_cflags}" \ 11604 && cf_fix_cppflags=no 11605 ;; 11606esac 11607done 11608 11609if test -n "$cf_new_cflags" ; then 11610 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 11611 11612echo "${as_me:-configure}:11612: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 11613 11614 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 11615 CFLAGS="${CFLAGS}$cf_new_cflags" 11616 11617fi 11618 11619if test -n "$cf_new_cppflags" ; then 11620 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 11621 11622echo "${as_me:-configure}:11622: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 11623 11624 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11625 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 11626 11627fi 11628 11629if test -n "$cf_new_extra_cppflags" ; then 11630 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6 11631 11632echo "${as_me:-configure}:11632: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5 11633 11634 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 11635 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 11636 11637fi 11638 11639if test "x$cf_check_cflags" != "x$CFLAGS" ; then 11640cat >"conftest.$ac_ext" <<_ACEOF 11641#line 11641 "configure" 11642#include "confdefs.h" 11643#include <stdio.h> 11644int 11645main (void) 11646{ 11647printf("Hello world"); 11648 ; 11649 return 0; 11650} 11651_ACEOF 11652rm -f "conftest.$ac_objext" "conftest$ac_exeext" 11653if { (eval echo "$as_me:11653: \"$ac_link\"") >&5 11654 (eval $ac_link) 2>&5 11655 ac_status=$? 11656 echo "$as_me:11656: \$? = $ac_status" >&5 11657 (exit "$ac_status"); } && 11658 { ac_try='test -s "conftest$ac_exeext"' 11659 { (eval echo "$as_me:11659: \"$ac_try\"") >&5 11660 (eval $ac_try) 2>&5 11661 ac_status=$? 11662 echo "$as_me:11662: \$? = $ac_status" >&5 11663 (exit "$ac_status"); }; }; then 11664 : 11665else 11666 echo "$as_me: failed program was:" >&5 11667cat "conftest.$ac_ext" >&5 11668test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6 11669 11670echo "${as_me:-configure}:11670: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5 11671 11672 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then 11673 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6 11674 11675echo "${as_me:-configure}:11675: testing but keeping change to \$CPPFLAGS ..." 1>&5 11676 11677 fi 11678 CFLAGS="$cf_check_cflags" 11679fi 11680rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 11681fi 11682 11683 echo "$as_me:11683: checking for XOpenDisplay" >&5 11684echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6 11685if test "${ac_cv_func_XOpenDisplay+set}" = set; then 11686 echo $ECHO_N "(cached) $ECHO_C" >&6 11687else 11688 cat >"conftest.$ac_ext" <<_ACEOF 11689#line 11689 "configure" 11690#include "confdefs.h" 11691#define XOpenDisplay autoconf_temporary 11692#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 11693#undef XOpenDisplay 11694 11695#ifdef __cplusplus 11696extern "C" 11697#endif 11698 11699/* We use char because int might match the return type of a gcc2 11700 builtin and then its argument prototype would still apply. */ 11701char XOpenDisplay (void); 11702 11703int 11704main (void) 11705{ 11706 11707/* The GNU C library defines stubs for functions which it implements 11708 to always fail with ENOSYS. Some functions are actually named 11709 something starting with __ and the normal name is an alias. */ 11710#if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay) 11711#error found stub for XOpenDisplay 11712#endif 11713 11714 return XOpenDisplay (); 11715 ; 11716 return 0; 11717} 11718_ACEOF 11719rm -f "conftest.$ac_objext" "conftest$ac_exeext" 11720if { (eval echo "$as_me:11720: \"$ac_link\"") >&5 11721 (eval $ac_link) 2>&5 11722 ac_status=$? 11723 echo "$as_me:11723: \$? = $ac_status" >&5 11724 (exit "$ac_status"); } && 11725 { ac_try='test -s "conftest$ac_exeext"' 11726 { (eval echo "$as_me:11726: \"$ac_try\"") >&5 11727 (eval $ac_try) 2>&5 11728 ac_status=$? 11729 echo "$as_me:11729: \$? = $ac_status" >&5 11730 (exit "$ac_status"); }; }; then 11731 ac_cv_func_XOpenDisplay=yes 11732else 11733 echo "$as_me: failed program was:" >&5 11734cat "conftest.$ac_ext" >&5 11735ac_cv_func_XOpenDisplay=no 11736fi 11737rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 11738fi 11739echo "$as_me:11739: result: $ac_cv_func_XOpenDisplay" >&5 11740echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6 11741if test "$ac_cv_func_XOpenDisplay" = yes; then 11742 : 11743else 11744 11745 echo "$as_me:11745: checking for XOpenDisplay in -lX11" >&5 11746echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6 11747if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then 11748 echo $ECHO_N "(cached) $ECHO_C" >&6 11749else 11750 ac_check_lib_save_LIBS=$LIBS 11751LIBS="-lX11 $LIBS" 11752cat >"conftest.$ac_ext" <<_ACEOF 11753#line 11753 "configure" 11754#include "confdefs.h" 11755 11756/* Override any gcc2 internal prototype to avoid an error. */ 11757#ifdef __cplusplus 11758extern "C" 11759#endif 11760/* We use char because int might match the return type of a gcc2 11761 builtin and then its argument prototype would still apply. */ 11762char XOpenDisplay (); 11763int 11764main (void) 11765{ 11766XOpenDisplay (); 11767 ; 11768 return 0; 11769} 11770_ACEOF 11771rm -f "conftest.$ac_objext" "conftest$ac_exeext" 11772if { (eval echo "$as_me:11772: \"$ac_link\"") >&5 11773 (eval $ac_link) 2>&5 11774 ac_status=$? 11775 echo "$as_me:11775: \$? = $ac_status" >&5 11776 (exit "$ac_status"); } && 11777 { ac_try='test -s "conftest$ac_exeext"' 11778 { (eval echo "$as_me:11778: \"$ac_try\"") >&5 11779 (eval $ac_try) 2>&5 11780 ac_status=$? 11781 echo "$as_me:11781: \$? = $ac_status" >&5 11782 (exit "$ac_status"); }; }; then 11783 ac_cv_lib_X11_XOpenDisplay=yes 11784else 11785 echo "$as_me: failed program was:" >&5 11786cat "conftest.$ac_ext" >&5 11787ac_cv_lib_X11_XOpenDisplay=no 11788fi 11789rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 11790LIBS=$ac_check_lib_save_LIBS 11791fi 11792echo "$as_me:11792: result: $ac_cv_lib_X11_XOpenDisplay" >&5 11793echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6 11794if test "$ac_cv_lib_X11_XOpenDisplay" = yes; then 11795 11796cf_add_libs="$LIBS" 11797# reverse order 11798cf_add_0lib= 11799for cf_add_1lib in -lX11; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 11800# filter duplicates 11801for cf_add_1lib in $cf_add_0lib; do 11802 for cf_add_2lib in $cf_add_libs; do 11803 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 11804 cf_add_1lib= 11805 break 11806 fi 11807 done 11808 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 11809done 11810LIBS="$cf_add_libs" 11811 11812fi 11813 11814fi 11815 11816 echo "$as_me:11816: checking for XtAppInitialize" >&5 11817echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6 11818if test "${ac_cv_func_XtAppInitialize+set}" = set; then 11819 echo $ECHO_N "(cached) $ECHO_C" >&6 11820else 11821 cat >"conftest.$ac_ext" <<_ACEOF 11822#line 11822 "configure" 11823#include "confdefs.h" 11824#define XtAppInitialize autoconf_temporary 11825#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 11826#undef XtAppInitialize 11827 11828#ifdef __cplusplus 11829extern "C" 11830#endif 11831 11832/* We use char because int might match the return type of a gcc2 11833 builtin and then its argument prototype would still apply. */ 11834char XtAppInitialize (void); 11835 11836int 11837main (void) 11838{ 11839 11840/* The GNU C library defines stubs for functions which it implements 11841 to always fail with ENOSYS. Some functions are actually named 11842 something starting with __ and the normal name is an alias. */ 11843#if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize) 11844#error found stub for XtAppInitialize 11845#endif 11846 11847 return XtAppInitialize (); 11848 ; 11849 return 0; 11850} 11851_ACEOF 11852rm -f "conftest.$ac_objext" "conftest$ac_exeext" 11853if { (eval echo "$as_me:11853: \"$ac_link\"") >&5 11854 (eval $ac_link) 2>&5 11855 ac_status=$? 11856 echo "$as_me:11856: \$? = $ac_status" >&5 11857 (exit "$ac_status"); } && 11858 { ac_try='test -s "conftest$ac_exeext"' 11859 { (eval echo "$as_me:11859: \"$ac_try\"") >&5 11860 (eval $ac_try) 2>&5 11861 ac_status=$? 11862 echo "$as_me:11862: \$? = $ac_status" >&5 11863 (exit "$ac_status"); }; }; then 11864 ac_cv_func_XtAppInitialize=yes 11865else 11866 echo "$as_me: failed program was:" >&5 11867cat "conftest.$ac_ext" >&5 11868ac_cv_func_XtAppInitialize=no 11869fi 11870rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 11871fi 11872echo "$as_me:11872: result: $ac_cv_func_XtAppInitialize" >&5 11873echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6 11874if test "$ac_cv_func_XtAppInitialize" = yes; then 11875 : 11876else 11877 11878 echo "$as_me:11878: checking for XtAppInitialize in -lXt" >&5 11879echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6 11880if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then 11881 echo $ECHO_N "(cached) $ECHO_C" >&6 11882else 11883 ac_check_lib_save_LIBS=$LIBS 11884LIBS="-lXt $LIBS" 11885cat >"conftest.$ac_ext" <<_ACEOF 11886#line 11886 "configure" 11887#include "confdefs.h" 11888 11889/* Override any gcc2 internal prototype to avoid an error. */ 11890#ifdef __cplusplus 11891extern "C" 11892#endif 11893/* We use char because int might match the return type of a gcc2 11894 builtin and then its argument prototype would still apply. */ 11895char XtAppInitialize (); 11896int 11897main (void) 11898{ 11899XtAppInitialize (); 11900 ; 11901 return 0; 11902} 11903_ACEOF 11904rm -f "conftest.$ac_objext" "conftest$ac_exeext" 11905if { (eval echo "$as_me:11905: \"$ac_link\"") >&5 11906 (eval $ac_link) 2>&5 11907 ac_status=$? 11908 echo "$as_me:11908: \$? = $ac_status" >&5 11909 (exit "$ac_status"); } && 11910 { ac_try='test -s "conftest$ac_exeext"' 11911 { (eval echo "$as_me:11911: \"$ac_try\"") >&5 11912 (eval $ac_try) 2>&5 11913 ac_status=$? 11914 echo "$as_me:11914: \$? = $ac_status" >&5 11915 (exit "$ac_status"); }; }; then 11916 ac_cv_lib_Xt_XtAppInitialize=yes 11917else 11918 echo "$as_me: failed program was:" >&5 11919cat "conftest.$ac_ext" >&5 11920ac_cv_lib_Xt_XtAppInitialize=no 11921fi 11922rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 11923LIBS=$ac_check_lib_save_LIBS 11924fi 11925echo "$as_me:11925: result: $ac_cv_lib_Xt_XtAppInitialize" >&5 11926echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6 11927if test "$ac_cv_lib_Xt_XtAppInitialize" = yes; then 11928 11929cat >>confdefs.h <<\EOF 11930#define HAVE_LIBXT 1 11931EOF 11932 11933 cf_have_X_LIBS=Xt 11934 LIBS="-lXt $LIBS" 11935fi 11936 11937fi 11938 11939fi 11940 11941if test "$cf_have_X_LIBS" = no ; then 11942 { echo "$as_me:11942: WARNING: Unable to successfully link X Toolkit library (-lXt) with 11943test program. You will have to check and add the proper libraries by hand 11944to makefile." >&5 11945echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with 11946test program. You will have to check and add the proper libraries by hand 11947to makefile." >&2;} 11948fi 11949 11950for ac_header in \ 11951 X11/DECkeysym.h \ 11952 X11/Sunkeysym.h \ 11953 X11/XF86keysym.h \ 11954 X11/XKBlib.h \ 11955 X11/TranslateI.h \ 11956 X11/Xpoll.h \ 11957 X11/extensions/XKB.h \ 11958 11959do 11960as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11961echo "$as_me:11961: checking for $ac_header" >&5 11962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11963if eval "test \"\${$as_ac_Header+set}\" = set"; then 11964 echo $ECHO_N "(cached) $ECHO_C" >&6 11965else 11966 cat >"conftest.$ac_ext" <<_ACEOF 11967#line 11967 "configure" 11968#include "confdefs.h" 11969#include <$ac_header> 11970_ACEOF 11971if { (eval echo "$as_me:11971: \"$ac_cpp "conftest.$ac_ext"\"") >&5 11972 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 11973 ac_status=$? 11974 $EGREP -v '^ *\+' conftest.er1 >conftest.err 11975 rm -f conftest.er1 11976 cat conftest.err >&5 11977 echo "$as_me:11977: \$? = $ac_status" >&5 11978 (exit "$ac_status"); } >/dev/null; then 11979 if test -s conftest.err; then 11980 ac_cpp_err=$ac_c_preproc_warn_flag 11981 else 11982 ac_cpp_err= 11983 fi 11984else 11985 ac_cpp_err=yes 11986fi 11987if test -z "$ac_cpp_err"; then 11988 eval "$as_ac_Header=yes" 11989else 11990 echo "$as_me: failed program was:" >&5 11991 cat "conftest.$ac_ext" >&5 11992 eval "$as_ac_Header=no" 11993fi 11994rm -f conftest.err "conftest.$ac_ext" 11995fi 11996echo "$as_me:11996: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 11997echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 11998if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 11999 cat >>confdefs.h <<EOF 12000#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12001EOF 12002 12003fi 12004done 12005 12006ICON_SUFFIX=.xbm 12007 12008cf_save_cppflags="${CPPFLAGS}" 12009cf_save_ldflags="${LDFLAGS}" 12010 12011echo "$as_me:12011: checking if you want to use the Xpm library for colored icon" >&5 12012echo $ECHO_N "checking if you want to use the Xpm library for colored icon... $ECHO_C" >&6 12013 12014# Check whether --with-xpm or --without-xpm was given. 12015if test "${with_xpm+set}" = set; then 12016 withval="$with_xpm" 12017 cf_Xpm_library="$withval" 12018else 12019 cf_Xpm_library=yes 12020fi; 12021echo "$as_me:12021: result: $cf_Xpm_library" >&5 12022echo "${ECHO_T}$cf_Xpm_library" >&6 12023 12024if test "$cf_Xpm_library" != no ; then 12025 if test "$cf_Xpm_library" != yes ; then 12026 CPPFLAGS="$CPPFLAGS -I$withval/include" 12027 LDFLAGS="$LDFLAGS -L$withval/lib" 12028 fi 12029 echo "$as_me:12029: checking for X11/xpm.h" >&5 12030echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 12031if test "${ac_cv_header_X11_xpm_h+set}" = set; then 12032 echo $ECHO_N "(cached) $ECHO_C" >&6 12033else 12034 cat >"conftest.$ac_ext" <<_ACEOF 12035#line 12035 "configure" 12036#include "confdefs.h" 12037#include <X11/xpm.h> 12038_ACEOF 12039if { (eval echo "$as_me:12039: \"$ac_cpp "conftest.$ac_ext"\"") >&5 12040 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 12041 ac_status=$? 12042 $EGREP -v '^ *\+' conftest.er1 >conftest.err 12043 rm -f conftest.er1 12044 cat conftest.err >&5 12045 echo "$as_me:12045: \$? = $ac_status" >&5 12046 (exit "$ac_status"); } >/dev/null; then 12047 if test -s conftest.err; then 12048 ac_cpp_err=$ac_c_preproc_warn_flag 12049 else 12050 ac_cpp_err= 12051 fi 12052else 12053 ac_cpp_err=yes 12054fi 12055if test -z "$ac_cpp_err"; then 12056 ac_cv_header_X11_xpm_h=yes 12057else 12058 echo "$as_me: failed program was:" >&5 12059 cat "conftest.$ac_ext" >&5 12060 ac_cv_header_X11_xpm_h=no 12061fi 12062rm -f conftest.err "conftest.$ac_ext" 12063fi 12064echo "$as_me:12064: result: $ac_cv_header_X11_xpm_h" >&5 12065echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 12066if test "$ac_cv_header_X11_xpm_h" = yes; then 12067 12068 echo "$as_me:12068: checking for XpmCreatePixmapFromData in -lXpm" >&5 12069echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6 12070if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then 12071 echo $ECHO_N "(cached) $ECHO_C" >&6 12072else 12073 ac_check_lib_save_LIBS=$LIBS 12074LIBS="-lXpm -lX11 $X_LIBS $LIBS" 12075cat >"conftest.$ac_ext" <<_ACEOF 12076#line 12076 "configure" 12077#include "confdefs.h" 12078 12079/* Override any gcc2 internal prototype to avoid an error. */ 12080#ifdef __cplusplus 12081extern "C" 12082#endif 12083/* We use char because int might match the return type of a gcc2 12084 builtin and then its argument prototype would still apply. */ 12085char XpmCreatePixmapFromData (); 12086int 12087main (void) 12088{ 12089XpmCreatePixmapFromData (); 12090 ; 12091 return 0; 12092} 12093_ACEOF 12094rm -f "conftest.$ac_objext" "conftest$ac_exeext" 12095if { (eval echo "$as_me:12095: \"$ac_link\"") >&5 12096 (eval $ac_link) 2>&5 12097 ac_status=$? 12098 echo "$as_me:12098: \$? = $ac_status" >&5 12099 (exit "$ac_status"); } && 12100 { ac_try='test -s "conftest$ac_exeext"' 12101 { (eval echo "$as_me:12101: \"$ac_try\"") >&5 12102 (eval $ac_try) 2>&5 12103 ac_status=$? 12104 echo "$as_me:12104: \$? = $ac_status" >&5 12105 (exit "$ac_status"); }; }; then 12106 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes 12107else 12108 echo "$as_me: failed program was:" >&5 12109cat "conftest.$ac_ext" >&5 12110ac_cv_lib_Xpm_XpmCreatePixmapFromData=no 12111fi 12112rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 12113LIBS=$ac_check_lib_save_LIBS 12114fi 12115echo "$as_me:12115: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 12116echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6 12117if test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = yes; then 12118 12119cat >>confdefs.h <<\EOF 12120#define HAVE_LIBXPM 1 12121EOF 12122 12123 ICON_SUFFIX=.xpm 12124 LIBS="-lXpm $LIBS" 12125else 12126 CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}" 12127fi 12128 12129else 12130 CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}" 12131fi 12132 12133fi 12134 12135echo "$as_me:12135: checking if you want to use the Xinerama extension" >&5 12136echo $ECHO_N "checking if you want to use the Xinerama extension... $ECHO_C" >&6 12137 12138# Check whether --with-xinerama or --without-xinerama was given. 12139if test "${with_xinerama+set}" = set; then 12140 withval="$with_xinerama" 12141 cf_with_xinerama="$withval" 12142else 12143 cf_with_xinerama=yes 12144fi; 12145echo "$as_me:12145: result: $cf_with_xinerama" >&5 12146echo "${ECHO_T}$cf_with_xinerama" >&6 12147if test "$cf_with_xinerama" = yes; then 12148 12149if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xinerama"; then 12150 test -n "$verbose" && echo " found package xinerama" 1>&6 12151 12152echo "${as_me:-configure}:12152: testing found package xinerama ..." 1>&5 12153 12154 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xinerama" 2>/dev/null`" 12155 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xinerama" 2>/dev/null`" 12156 test -n "$verbose" && echo " package xinerama CFLAGS: $cf_pkgconfig_incs" 1>&6 12157 12158echo "${as_me:-configure}:12158: testing package xinerama CFLAGS: $cf_pkgconfig_incs ..." 1>&5 12159 12160 test -n "$verbose" && echo " package xinerama LIBS: $cf_pkgconfig_libs" 1>&6 12161 12162echo "${as_me:-configure}:12162: testing package xinerama LIBS: $cf_pkgconfig_libs ..." 1>&5 12163 12164cf_fix_cppflags=no 12165cf_new_cflags= 12166cf_new_cppflags= 12167cf_new_extra_cppflags= 12168 12169for cf_add_cflags in $cf_pkgconfig_incs 12170do 12171case "$cf_fix_cppflags" in 12172(no) 12173 case "$cf_add_cflags" in 12174 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 12175 case "$cf_add_cflags" in 12176 (-D*) 12177 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 12178 12179 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12180 && test -z "${cf_tst_cflags}" \ 12181 && cf_fix_cppflags=yes 12182 12183 if test "$cf_fix_cppflags" = yes ; then 12184 12185 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12186 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12187 12188 continue 12189 elif test "${cf_tst_cflags}" = "\"'" ; then 12190 12191 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12192 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12193 12194 continue 12195 fi 12196 ;; 12197 esac 12198 case "$CPPFLAGS" in 12199 (*$cf_add_cflags) 12200 ;; 12201 (*) 12202 case "$cf_add_cflags" in 12203 (-D*) 12204 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 12205 12206CPPFLAGS=`echo "$CPPFLAGS" | \ 12207 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 12208 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 12209 12210 ;; 12211 esac 12212 12213 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 12214 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 12215 12216 ;; 12217 esac 12218 ;; 12219 (*) 12220 12221 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 12222 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 12223 12224 ;; 12225 esac 12226 ;; 12227(yes) 12228 12229 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12230 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12231 12232 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 12233 12234 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12235 && test -z "${cf_tst_cflags}" \ 12236 && cf_fix_cppflags=no 12237 ;; 12238esac 12239done 12240 12241if test -n "$cf_new_cflags" ; then 12242 12243 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 12244 CFLAGS="${CFLAGS}$cf_new_cflags" 12245 12246fi 12247 12248if test -n "$cf_new_cppflags" ; then 12249 12250 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 12251 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 12252 12253fi 12254 12255if test -n "$cf_new_extra_cppflags" ; then 12256 12257 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 12258 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 12259 12260fi 12261 12262cf_add_libs="$LIBS" 12263# reverse order 12264cf_add_0lib= 12265for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 12266# filter duplicates 12267for cf_add_1lib in $cf_add_0lib; do 12268 for cf_add_2lib in $cf_add_libs; do 12269 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 12270 cf_add_1lib= 12271 break 12272 fi 12273 done 12274 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 12275done 12276LIBS="$cf_add_libs" 12277 12278 cat >>confdefs.h <<\EOF 12279#define HAVE_X11_EXTENSIONS_XINERAMA_H 1 12280EOF 12281 12282else 12283 cf_pkgconfig_incs= 12284 cf_pkgconfig_libs= 12285 12286 echo "$as_me:12286: checking for XineramaQueryScreens in -lXinerama" >&5 12287echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6 12288if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then 12289 echo $ECHO_N "(cached) $ECHO_C" >&6 12290else 12291 ac_check_lib_save_LIBS=$LIBS 12292LIBS="-lXinerama $LIBS" 12293cat >"conftest.$ac_ext" <<_ACEOF 12294#line 12294 "configure" 12295#include "confdefs.h" 12296 12297/* Override any gcc2 internal prototype to avoid an error. */ 12298#ifdef __cplusplus 12299extern "C" 12300#endif 12301/* We use char because int might match the return type of a gcc2 12302 builtin and then its argument prototype would still apply. */ 12303char XineramaQueryScreens (); 12304int 12305main (void) 12306{ 12307XineramaQueryScreens (); 12308 ; 12309 return 0; 12310} 12311_ACEOF 12312rm -f "conftest.$ac_objext" "conftest$ac_exeext" 12313if { (eval echo "$as_me:12313: \"$ac_link\"") >&5 12314 (eval $ac_link) 2>&5 12315 ac_status=$? 12316 echo "$as_me:12316: \$? = $ac_status" >&5 12317 (exit "$ac_status"); } && 12318 { ac_try='test -s "conftest$ac_exeext"' 12319 { (eval echo "$as_me:12319: \"$ac_try\"") >&5 12320 (eval $ac_try) 2>&5 12321 ac_status=$? 12322 echo "$as_me:12322: \$? = $ac_status" >&5 12323 (exit "$ac_status"); }; }; then 12324 ac_cv_lib_Xinerama_XineramaQueryScreens=yes 12325else 12326 echo "$as_me: failed program was:" >&5 12327cat "conftest.$ac_ext" >&5 12328ac_cv_lib_Xinerama_XineramaQueryScreens=no 12329fi 12330rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 12331LIBS=$ac_check_lib_save_LIBS 12332fi 12333echo "$as_me:12333: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5 12334echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6 12335if test "$ac_cv_lib_Xinerama_XineramaQueryScreens" = yes; then 12336 12337cf_add_libs="$LIBS" 12338# reverse order 12339cf_add_0lib= 12340for cf_add_1lib in -lXinerama; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 12341# filter duplicates 12342for cf_add_1lib in $cf_add_0lib; do 12343 for cf_add_2lib in $cf_add_libs; do 12344 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 12345 cf_add_1lib= 12346 break 12347 fi 12348 done 12349 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 12350done 12351LIBS="$cf_add_libs" 12352 12353for ac_header in \ 12354 X11/extensions/Xinerama.h \ 12355 12356do 12357as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12358echo "$as_me:12358: checking for $ac_header" >&5 12359echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12360if eval "test \"\${$as_ac_Header+set}\" = set"; then 12361 echo $ECHO_N "(cached) $ECHO_C" >&6 12362else 12363 cat >"conftest.$ac_ext" <<_ACEOF 12364#line 12364 "configure" 12365#include "confdefs.h" 12366#include <$ac_header> 12367_ACEOF 12368if { (eval echo "$as_me:12368: \"$ac_cpp "conftest.$ac_ext"\"") >&5 12369 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 12370 ac_status=$? 12371 $EGREP -v '^ *\+' conftest.er1 >conftest.err 12372 rm -f conftest.er1 12373 cat conftest.err >&5 12374 echo "$as_me:12374: \$? = $ac_status" >&5 12375 (exit "$ac_status"); } >/dev/null; then 12376 if test -s conftest.err; then 12377 ac_cpp_err=$ac_c_preproc_warn_flag 12378 else 12379 ac_cpp_err= 12380 fi 12381else 12382 ac_cpp_err=yes 12383fi 12384if test -z "$ac_cpp_err"; then 12385 eval "$as_ac_Header=yes" 12386else 12387 echo "$as_me: failed program was:" >&5 12388 cat "conftest.$ac_ext" >&5 12389 eval "$as_ac_Header=no" 12390fi 12391rm -f conftest.err "conftest.$ac_ext" 12392fi 12393echo "$as_me:12393: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 12394echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 12395if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 12396 cat >>confdefs.h <<EOF 12397#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12398EOF 12399 12400fi 12401done 12402 12403fi 12404 12405fi 12406 12407fi 12408 12409cf_x_athena=${cf_x_athena:-Xaw} 12410 12411echo "$as_me:12411: checking if you want to link with Xaw 3d library" >&5 12412echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6 12413withval= 12414 12415# Check whether --with-Xaw3d or --without-Xaw3d was given. 12416if test "${with_Xaw3d+set}" = set; then 12417 withval="$with_Xaw3d" 12418 12419fi; 12420if test "$withval" = yes ; then 12421 cf_x_athena=Xaw3d 12422 echo "$as_me:12422: result: yes" >&5 12423echo "${ECHO_T}yes" >&6 12424else 12425 echo "$as_me:12425: result: no" >&5 12426echo "${ECHO_T}no" >&6 12427fi 12428 12429echo "$as_me:12429: checking if you want to link with Xaw 3d xft library" >&5 12430echo $ECHO_N "checking if you want to link with Xaw 3d xft library... $ECHO_C" >&6 12431withval= 12432 12433# Check whether --with-Xaw3dxft or --without-Xaw3dxft was given. 12434if test "${with_Xaw3dxft+set}" = set; then 12435 withval="$with_Xaw3dxft" 12436 12437fi; 12438if test "$withval" = yes ; then 12439 cf_x_athena=Xaw3dxft 12440 echo "$as_me:12440: result: yes" >&5 12441echo "${ECHO_T}yes" >&6 12442else 12443 echo "$as_me:12443: result: no" >&5 12444echo "${ECHO_T}no" >&6 12445fi 12446 12447echo "$as_me:12447: checking if you want to link with neXT Athena library" >&5 12448echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6 12449withval= 12450 12451# Check whether --with-neXtaw or --without-neXtaw was given. 12452if test "${with_neXtaw+set}" = set; then 12453 withval="$with_neXtaw" 12454 12455fi; 12456if test "$withval" = yes ; then 12457 cf_x_athena=neXtaw 12458 echo "$as_me:12458: result: yes" >&5 12459echo "${ECHO_T}yes" >&6 12460else 12461 echo "$as_me:12461: result: no" >&5 12462echo "${ECHO_T}no" >&6 12463fi 12464 12465echo "$as_me:12465: checking if you want to link with Athena-Plus library" >&5 12466echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6 12467withval= 12468 12469# Check whether --with-XawPlus or --without-XawPlus was given. 12470if test "${with_XawPlus+set}" = set; then 12471 withval="$with_XawPlus" 12472 12473fi; 12474if test "$withval" = yes ; then 12475 cf_x_athena=XawPlus 12476 echo "$as_me:12476: result: yes" >&5 12477echo "${ECHO_T}yes" >&6 12478else 12479 echo "$as_me:12479: result: no" >&5 12480echo "${ECHO_T}no" >&6 12481fi 12482 12483cf_x_athena_lib="" 12484 12485if test "$PKG_CONFIG" != none ; then 12486 cf_athena_list= 12487 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6" 12488 for cf_athena_pkg in \ 12489 $cf_athena_list \ 12490 ${cf_x_athena} \ 12491 ${cf_x_athena}-devel \ 12492 lib${cf_x_athena} \ 12493 lib${cf_x_athena}-devel 12494 do 12495 12496if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_athena_pkg"; then 12497 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6 12498 12499echo "${as_me:-configure}:12499: testing found package $cf_athena_pkg ..." 1>&5 12500 12501 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_athena_pkg" 2>/dev/null`" 12502 cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_athena_pkg" 2>/dev/null`" 12503 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6 12504 12505echo "${as_me:-configure}:12505: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5 12506 12507 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6 12508 12509echo "${as_me:-configure}:12509: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5 12510 12511cf_fix_cppflags=no 12512cf_new_cflags= 12513cf_new_cppflags= 12514cf_new_extra_cppflags= 12515 12516for cf_add_cflags in $cf_pkgconfig_incs 12517do 12518case "$cf_fix_cppflags" in 12519(no) 12520 case "$cf_add_cflags" in 12521 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 12522 case "$cf_add_cflags" in 12523 (-D*) 12524 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 12525 12526 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12527 && test -z "${cf_tst_cflags}" \ 12528 && cf_fix_cppflags=yes 12529 12530 if test "$cf_fix_cppflags" = yes ; then 12531 12532 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12533 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12534 12535 continue 12536 elif test "${cf_tst_cflags}" = "\"'" ; then 12537 12538 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12539 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12540 12541 continue 12542 fi 12543 ;; 12544 esac 12545 case "$CPPFLAGS" in 12546 (*$cf_add_cflags) 12547 ;; 12548 (*) 12549 case "$cf_add_cflags" in 12550 (-D*) 12551 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 12552 12553CPPFLAGS=`echo "$CPPFLAGS" | \ 12554 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 12555 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 12556 12557 ;; 12558 esac 12559 12560 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 12561 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 12562 12563 ;; 12564 esac 12565 ;; 12566 (*) 12567 12568 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 12569 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 12570 12571 ;; 12572 esac 12573 ;; 12574(yes) 12575 12576 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12577 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12578 12579 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 12580 12581 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12582 && test -z "${cf_tst_cflags}" \ 12583 && cf_fix_cppflags=no 12584 ;; 12585esac 12586done 12587 12588if test -n "$cf_new_cflags" ; then 12589 12590 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 12591 CFLAGS="${CFLAGS}$cf_new_cflags" 12592 12593fi 12594 12595if test -n "$cf_new_cppflags" ; then 12596 12597 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 12598 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 12599 12600fi 12601 12602if test -n "$cf_new_extra_cppflags" ; then 12603 12604 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 12605 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 12606 12607fi 12608 12609cf_add_libs="$LIBS" 12610# reverse order 12611cf_add_0lib= 12612for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 12613# filter duplicates 12614for cf_add_1lib in $cf_add_0lib; do 12615 for cf_add_2lib in $cf_add_libs; do 12616 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 12617 cf_add_1lib= 12618 break 12619 fi 12620 done 12621 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 12622done 12623LIBS="$cf_add_libs" 12624 12625 cf_x_athena_lib="$cf_pkgconfig_libs" 12626 12627cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 12628 12629 cat >>confdefs.h <<EOF 12630#define $cf_x_athena_LIBS 1 12631EOF 12632 12633 for cf_trim_lib in Xmu Xt X11 12634 do 12635 case "$LIBS" in 12636 (*-l$cf_trim_lib\ *-l$cf_trim_lib*) 12637 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'` 12638 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6 12639 12640echo "${as_me:-configure}:12640: testing ..trimmed $LIBS ..." 1>&5 12641 12642 ;; 12643 esac 12644 done 12645 12646echo "$as_me:12646: checking for usable $cf_x_athena/Xmu package" >&5 12647echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6 12648if test "${cf_cv_xaw_compat+set}" = set; then 12649 echo $ECHO_N "(cached) $ECHO_C" >&6 12650else 12651 12652cat >"conftest.$ac_ext" <<_ACEOF 12653#line 12653 "configure" 12654#include "confdefs.h" 12655 12656#include <X11/Xmu/CharSet.h> 12657 12658int 12659main (void) 12660{ 12661 12662int check = XmuCompareISOLatin1("big", "small"); 12663(void)check; 12664 12665 ; 12666 return 0; 12667} 12668_ACEOF 12669rm -f "conftest.$ac_objext" "conftest$ac_exeext" 12670if { (eval echo "$as_me:12670: \"$ac_link\"") >&5 12671 (eval $ac_link) 2>&5 12672 ac_status=$? 12673 echo "$as_me:12673: \$? = $ac_status" >&5 12674 (exit "$ac_status"); } && 12675 { ac_try='test -s "conftest$ac_exeext"' 12676 { (eval echo "$as_me:12676: \"$ac_try\"") >&5 12677 (eval $ac_try) 2>&5 12678 ac_status=$? 12679 echo "$as_me:12679: \$? = $ac_status" >&5 12680 (exit "$ac_status"); }; }; then 12681 cf_cv_xaw_compat=yes 12682else 12683 echo "$as_me: failed program was:" >&5 12684cat "conftest.$ac_ext" >&5 12685cf_cv_xaw_compat=no 12686fi 12687rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 12688fi 12689echo "$as_me:12689: result: $cf_cv_xaw_compat" >&5 12690echo "${ECHO_T}$cf_cv_xaw_compat" >&6 12691 12692 if test "$cf_cv_xaw_compat" = no 12693 then 12694 # workaround for broken ".pc" files... 12695 case "$cf_x_athena_lib" in 12696 (*-lXmu*) 12697 ;; 12698 (*) 12699 test -n "$verbose" && echo " work around broken package" 1>&6 12700 12701echo "${as_me:-configure}:12701: testing work around broken package ..." 1>&5 12702 12703 cf_save_xmu="$LIBS" 12704 cf_first_lib=`echo "$cf_save_xmu" | sed -e 's/^ *//' -e 's/ .*//'` 12705 12706if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xmu"; then 12707 test -n "$verbose" && echo " found package xmu" 1>&6 12708 12709echo "${as_me:-configure}:12709: testing found package xmu ..." 1>&5 12710 12711 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xmu" 2>/dev/null`" 12712 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xmu" 2>/dev/null`" 12713 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6 12714 12715echo "${as_me:-configure}:12715: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5 12716 12717 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6 12718 12719echo "${as_me:-configure}:12719: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5 12720 12721cf_fix_cppflags=no 12722cf_new_cflags= 12723cf_new_cppflags= 12724cf_new_extra_cppflags= 12725 12726for cf_add_cflags in $cf_pkgconfig_incs 12727do 12728case "$cf_fix_cppflags" in 12729(no) 12730 case "$cf_add_cflags" in 12731 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 12732 case "$cf_add_cflags" in 12733 (-D*) 12734 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 12735 12736 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12737 && test -z "${cf_tst_cflags}" \ 12738 && cf_fix_cppflags=yes 12739 12740 if test "$cf_fix_cppflags" = yes ; then 12741 12742 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12743 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12744 12745 continue 12746 elif test "${cf_tst_cflags}" = "\"'" ; then 12747 12748 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12749 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12750 12751 continue 12752 fi 12753 ;; 12754 esac 12755 case "$CPPFLAGS" in 12756 (*$cf_add_cflags) 12757 ;; 12758 (*) 12759 case "$cf_add_cflags" in 12760 (-D*) 12761 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 12762 12763CPPFLAGS=`echo "$CPPFLAGS" | \ 12764 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 12765 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 12766 12767 ;; 12768 esac 12769 12770 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 12771 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 12772 12773 ;; 12774 esac 12775 ;; 12776 (*) 12777 12778 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 12779 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 12780 12781 ;; 12782 esac 12783 ;; 12784(yes) 12785 12786 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12787 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12788 12789 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 12790 12791 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12792 && test -z "${cf_tst_cflags}" \ 12793 && cf_fix_cppflags=no 12794 ;; 12795esac 12796done 12797 12798if test -n "$cf_new_cflags" ; then 12799 12800 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 12801 CFLAGS="${CFLAGS}$cf_new_cflags" 12802 12803fi 12804 12805if test -n "$cf_new_cppflags" ; then 12806 12807 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 12808 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 12809 12810fi 12811 12812if test -n "$cf_new_extra_cppflags" ; then 12813 12814 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 12815 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 12816 12817fi 12818 12819cf_add_libs="$LIBS" 12820# reverse order 12821cf_add_0lib= 12822for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 12823# filter duplicates 12824for cf_add_1lib in $cf_add_0lib; do 12825 for cf_add_2lib in $cf_add_libs; do 12826 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 12827 cf_add_1lib= 12828 break 12829 fi 12830 done 12831 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 12832done 12833LIBS="$cf_add_libs" 12834 12835 LIBS="$cf_save_xmu" 12836 12837test -n "$verbose" && echo " ...before $LIBS" 1>&6 12838 12839echo "${as_me:-configure}:12839: testing ...before $LIBS ..." 1>&5 12840 12841LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib $cf_pkgconfig_libs %" -e 's% % %g'` 12842test -n "$verbose" && echo " ...after $LIBS" 1>&6 12843 12844echo "${as_me:-configure}:12844: testing ...after $LIBS ..." 1>&5 12845 12846else 12847 cf_pkgconfig_incs= 12848 cf_pkgconfig_libs= 12849 12850test -n "$verbose" && echo " ...before $LIBS" 1>&6 12851 12852echo "${as_me:-configure}:12852: testing ...before $LIBS ..." 1>&5 12853 12854LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib -lXmu %" -e 's% % %g'` 12855test -n "$verbose" && echo " ...after $LIBS" 1>&6 12856 12857echo "${as_me:-configure}:12857: testing ...after $LIBS ..." 1>&5 12858 12859fi 12860 12861 for cf_trim_lib in Xmu Xt X11 12862 do 12863 case "$LIBS" in 12864 (*-l$cf_trim_lib\ *-l$cf_trim_lib*) 12865 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'` 12866 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6 12867 12868echo "${as_me:-configure}:12868: testing ..trimmed $LIBS ..." 1>&5 12869 12870 ;; 12871 esac 12872 done 12873 12874 ;; 12875 esac 12876 fi 12877 12878 break 12879else 12880 cf_pkgconfig_incs= 12881 cf_pkgconfig_libs= 12882 : 12883fi 12884 12885 done 12886fi 12887 12888if test -z "$cf_x_athena_lib" ; then 12889 12890if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "Xext"; then 12891 test -n "$verbose" && echo " found package Xext" 1>&6 12892 12893echo "${as_me:-configure}:12893: testing found package Xext ..." 1>&5 12894 12895 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "Xext" 2>/dev/null`" 12896 cf_pkgconfig_libs="`$PKG_CONFIG --libs "Xext" 2>/dev/null`" 12897 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6 12898 12899echo "${as_me:-configure}:12899: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5 12900 12901 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6 12902 12903echo "${as_me:-configure}:12903: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5 12904 12905cf_fix_cppflags=no 12906cf_new_cflags= 12907cf_new_cppflags= 12908cf_new_extra_cppflags= 12909 12910for cf_add_cflags in $cf_pkgconfig_incs 12911do 12912case "$cf_fix_cppflags" in 12913(no) 12914 case "$cf_add_cflags" in 12915 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 12916 case "$cf_add_cflags" in 12917 (-D*) 12918 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 12919 12920 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12921 && test -z "${cf_tst_cflags}" \ 12922 && cf_fix_cppflags=yes 12923 12924 if test "$cf_fix_cppflags" = yes ; then 12925 12926 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12927 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12928 12929 continue 12930 elif test "${cf_tst_cflags}" = "\"'" ; then 12931 12932 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12933 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12934 12935 continue 12936 fi 12937 ;; 12938 esac 12939 case "$CPPFLAGS" in 12940 (*$cf_add_cflags) 12941 ;; 12942 (*) 12943 case "$cf_add_cflags" in 12944 (-D*) 12945 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 12946 12947CPPFLAGS=`echo "$CPPFLAGS" | \ 12948 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 12949 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 12950 12951 ;; 12952 esac 12953 12954 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 12955 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 12956 12957 ;; 12958 esac 12959 ;; 12960 (*) 12961 12962 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 12963 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 12964 12965 ;; 12966 esac 12967 ;; 12968(yes) 12969 12970 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12971 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12972 12973 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 12974 12975 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12976 && test -z "${cf_tst_cflags}" \ 12977 && cf_fix_cppflags=no 12978 ;; 12979esac 12980done 12981 12982if test -n "$cf_new_cflags" ; then 12983 12984 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 12985 CFLAGS="${CFLAGS}$cf_new_cflags" 12986 12987fi 12988 12989if test -n "$cf_new_cppflags" ; then 12990 12991 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 12992 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 12993 12994fi 12995 12996if test -n "$cf_new_extra_cppflags" ; then 12997 12998 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 12999 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 13000 13001fi 13002 13003cf_add_libs="$LIBS" 13004# reverse order 13005cf_add_0lib= 13006for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 13007# filter duplicates 13008for cf_add_1lib in $cf_add_0lib; do 13009 for cf_add_2lib in $cf_add_libs; do 13010 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 13011 cf_add_1lib= 13012 break 13013 fi 13014 done 13015 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 13016done 13017LIBS="$cf_add_libs" 13018 13019 : 13020else 13021 cf_pkgconfig_incs= 13022 cf_pkgconfig_libs= 13023 13024 echo "$as_me:13024: checking for XextCreateExtension in -lXext" >&5 13025echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6 13026if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then 13027 echo $ECHO_N "(cached) $ECHO_C" >&6 13028else 13029 ac_check_lib_save_LIBS=$LIBS 13030LIBS="-lXext $LIBS" 13031cat >"conftest.$ac_ext" <<_ACEOF 13032#line 13032 "configure" 13033#include "confdefs.h" 13034 13035/* Override any gcc2 internal prototype to avoid an error. */ 13036#ifdef __cplusplus 13037extern "C" 13038#endif 13039/* We use char because int might match the return type of a gcc2 13040 builtin and then its argument prototype would still apply. */ 13041char XextCreateExtension (); 13042int 13043main (void) 13044{ 13045XextCreateExtension (); 13046 ; 13047 return 0; 13048} 13049_ACEOF 13050rm -f "conftest.$ac_objext" "conftest$ac_exeext" 13051if { (eval echo "$as_me:13051: \"$ac_link\"") >&5 13052 (eval $ac_link) 2>&5 13053 ac_status=$? 13054 echo "$as_me:13054: \$? = $ac_status" >&5 13055 (exit "$ac_status"); } && 13056 { ac_try='test -s "conftest$ac_exeext"' 13057 { (eval echo "$as_me:13057: \"$ac_try\"") >&5 13058 (eval $ac_try) 2>&5 13059 ac_status=$? 13060 echo "$as_me:13060: \$? = $ac_status" >&5 13061 (exit "$ac_status"); }; }; then 13062 ac_cv_lib_Xext_XextCreateExtension=yes 13063else 13064 echo "$as_me: failed program was:" >&5 13065cat "conftest.$ac_ext" >&5 13066ac_cv_lib_Xext_XextCreateExtension=no 13067fi 13068rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 13069LIBS=$ac_check_lib_save_LIBS 13070fi 13071echo "$as_me:13071: result: $ac_cv_lib_Xext_XextCreateExtension" >&5 13072echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6 13073if test "$ac_cv_lib_Xext_XextCreateExtension" = yes; then 13074 13075cf_add_libs="$LIBS" 13076# reverse order 13077cf_add_0lib= 13078for cf_add_1lib in -lXext; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 13079# filter duplicates 13080for cf_add_1lib in $cf_add_0lib; do 13081 for cf_add_2lib in $cf_add_libs; do 13082 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 13083 cf_add_1lib= 13084 break 13085 fi 13086 done 13087 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 13088done 13089LIBS="$cf_add_libs" 13090 13091fi 13092 13093fi 13094 13095# OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new) (and 13096# in some cases has installed dummy files in the former, other cases replaced 13097# it with a link to the new location). This complicates the configure script. 13098# Check for that pitfall, and recover using pkg-config 13099# 13100# If none of these are set, the configuration is almost certainly broken. 13101if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}" 13102then 13103 13104if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then 13105 test -n "$verbose" && echo " found package x11" 1>&6 13106 13107echo "${as_me:-configure}:13107: testing found package x11 ..." 1>&5 13108 13109 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`" 13110 cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`" 13111 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6 13112 13113echo "${as_me:-configure}:13113: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 13114 13115 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6 13116 13117echo "${as_me:-configure}:13117: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5 13118 13119cf_fix_cppflags=no 13120cf_new_cflags= 13121cf_new_cppflags= 13122cf_new_extra_cppflags= 13123 13124for cf_add_cflags in $cf_pkgconfig_incs 13125do 13126case "$cf_fix_cppflags" in 13127(no) 13128 case "$cf_add_cflags" in 13129 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 13130 case "$cf_add_cflags" in 13131 (-D*) 13132 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 13133 13134 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13135 && test -z "${cf_tst_cflags}" \ 13136 && cf_fix_cppflags=yes 13137 13138 if test "$cf_fix_cppflags" = yes ; then 13139 13140 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13141 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13142 13143 continue 13144 elif test "${cf_tst_cflags}" = "\"'" ; then 13145 13146 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13147 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13148 13149 continue 13150 fi 13151 ;; 13152 esac 13153 case "$CPPFLAGS" in 13154 (*$cf_add_cflags) 13155 ;; 13156 (*) 13157 case "$cf_add_cflags" in 13158 (-D*) 13159 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 13160 13161CPPFLAGS=`echo "$CPPFLAGS" | \ 13162 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 13163 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 13164 13165 ;; 13166 esac 13167 13168 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 13169 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 13170 13171 ;; 13172 esac 13173 ;; 13174 (*) 13175 13176 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 13177 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 13178 13179 ;; 13180 esac 13181 ;; 13182(yes) 13183 13184 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13185 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13186 13187 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 13188 13189 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13190 && test -z "${cf_tst_cflags}" \ 13191 && cf_fix_cppflags=no 13192 ;; 13193esac 13194done 13195 13196if test -n "$cf_new_cflags" ; then 13197 13198 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 13199 CFLAGS="${CFLAGS}$cf_new_cflags" 13200 13201fi 13202 13203if test -n "$cf_new_cppflags" ; then 13204 13205 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 13206 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 13207 13208fi 13209 13210if test -n "$cf_new_extra_cppflags" ; then 13211 13212 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 13213 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 13214 13215fi 13216 13217cf_add_libs="$LIBS" 13218# reverse order 13219cf_add_0lib= 13220for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 13221# filter duplicates 13222for cf_add_1lib in $cf_add_0lib; do 13223 for cf_add_2lib in $cf_add_libs; do 13224 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 13225 cf_add_1lib= 13226 break 13227 fi 13228 done 13229 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 13230done 13231LIBS="$cf_add_libs" 13232 13233 : 13234else 13235 cf_pkgconfig_incs= 13236 cf_pkgconfig_libs= 13237 { echo "$as_me:13237: WARNING: unable to find X11 library" >&5 13238echo "$as_me: WARNING: unable to find X11 library" >&2;} 13239fi 13240 13241if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then 13242 test -n "$verbose" && echo " found package ice" 1>&6 13243 13244echo "${as_me:-configure}:13244: testing found package ice ..." 1>&5 13245 13246 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`" 13247 cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`" 13248 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6 13249 13250echo "${as_me:-configure}:13250: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5 13251 13252 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6 13253 13254echo "${as_me:-configure}:13254: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5 13255 13256cf_fix_cppflags=no 13257cf_new_cflags= 13258cf_new_cppflags= 13259cf_new_extra_cppflags= 13260 13261for cf_add_cflags in $cf_pkgconfig_incs 13262do 13263case "$cf_fix_cppflags" in 13264(no) 13265 case "$cf_add_cflags" in 13266 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 13267 case "$cf_add_cflags" in 13268 (-D*) 13269 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 13270 13271 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13272 && test -z "${cf_tst_cflags}" \ 13273 && cf_fix_cppflags=yes 13274 13275 if test "$cf_fix_cppflags" = yes ; then 13276 13277 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13278 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13279 13280 continue 13281 elif test "${cf_tst_cflags}" = "\"'" ; then 13282 13283 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13284 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13285 13286 continue 13287 fi 13288 ;; 13289 esac 13290 case "$CPPFLAGS" in 13291 (*$cf_add_cflags) 13292 ;; 13293 (*) 13294 case "$cf_add_cflags" in 13295 (-D*) 13296 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 13297 13298CPPFLAGS=`echo "$CPPFLAGS" | \ 13299 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 13300 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 13301 13302 ;; 13303 esac 13304 13305 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 13306 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 13307 13308 ;; 13309 esac 13310 ;; 13311 (*) 13312 13313 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 13314 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 13315 13316 ;; 13317 esac 13318 ;; 13319(yes) 13320 13321 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13322 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13323 13324 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 13325 13326 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13327 && test -z "${cf_tst_cflags}" \ 13328 && cf_fix_cppflags=no 13329 ;; 13330esac 13331done 13332 13333if test -n "$cf_new_cflags" ; then 13334 13335 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 13336 CFLAGS="${CFLAGS}$cf_new_cflags" 13337 13338fi 13339 13340if test -n "$cf_new_cppflags" ; then 13341 13342 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 13343 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 13344 13345fi 13346 13347if test -n "$cf_new_extra_cppflags" ; then 13348 13349 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 13350 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 13351 13352fi 13353 13354cf_add_libs="$LIBS" 13355# reverse order 13356cf_add_0lib= 13357for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 13358# filter duplicates 13359for cf_add_1lib in $cf_add_0lib; do 13360 for cf_add_2lib in $cf_add_libs; do 13361 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 13362 cf_add_1lib= 13363 break 13364 fi 13365 done 13366 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 13367done 13368LIBS="$cf_add_libs" 13369 13370 : 13371else 13372 cf_pkgconfig_incs= 13373 cf_pkgconfig_libs= 13374 { echo "$as_me:13374: WARNING: unable to find ICE library" >&5 13375echo "$as_me: WARNING: unable to find ICE library" >&2;} 13376fi 13377 13378if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then 13379 test -n "$verbose" && echo " found package sm" 1>&6 13380 13381echo "${as_me:-configure}:13381: testing found package sm ..." 1>&5 13382 13383 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`" 13384 cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`" 13385 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6 13386 13387echo "${as_me:-configure}:13387: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5 13388 13389 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6 13390 13391echo "${as_me:-configure}:13391: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5 13392 13393cf_fix_cppflags=no 13394cf_new_cflags= 13395cf_new_cppflags= 13396cf_new_extra_cppflags= 13397 13398for cf_add_cflags in $cf_pkgconfig_incs 13399do 13400case "$cf_fix_cppflags" in 13401(no) 13402 case "$cf_add_cflags" in 13403 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 13404 case "$cf_add_cflags" in 13405 (-D*) 13406 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 13407 13408 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13409 && test -z "${cf_tst_cflags}" \ 13410 && cf_fix_cppflags=yes 13411 13412 if test "$cf_fix_cppflags" = yes ; then 13413 13414 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13415 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13416 13417 continue 13418 elif test "${cf_tst_cflags}" = "\"'" ; then 13419 13420 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13421 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13422 13423 continue 13424 fi 13425 ;; 13426 esac 13427 case "$CPPFLAGS" in 13428 (*$cf_add_cflags) 13429 ;; 13430 (*) 13431 case "$cf_add_cflags" in 13432 (-D*) 13433 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 13434 13435CPPFLAGS=`echo "$CPPFLAGS" | \ 13436 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 13437 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 13438 13439 ;; 13440 esac 13441 13442 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 13443 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 13444 13445 ;; 13446 esac 13447 ;; 13448 (*) 13449 13450 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 13451 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 13452 13453 ;; 13454 esac 13455 ;; 13456(yes) 13457 13458 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13459 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13460 13461 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 13462 13463 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13464 && test -z "${cf_tst_cflags}" \ 13465 && cf_fix_cppflags=no 13466 ;; 13467esac 13468done 13469 13470if test -n "$cf_new_cflags" ; then 13471 13472 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 13473 CFLAGS="${CFLAGS}$cf_new_cflags" 13474 13475fi 13476 13477if test -n "$cf_new_cppflags" ; then 13478 13479 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 13480 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 13481 13482fi 13483 13484if test -n "$cf_new_extra_cppflags" ; then 13485 13486 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 13487 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 13488 13489fi 13490 13491cf_add_libs="$LIBS" 13492# reverse order 13493cf_add_0lib= 13494for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 13495# filter duplicates 13496for cf_add_1lib in $cf_add_0lib; do 13497 for cf_add_2lib in $cf_add_libs; do 13498 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 13499 cf_add_1lib= 13500 break 13501 fi 13502 done 13503 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 13504done 13505LIBS="$cf_add_libs" 13506 13507 : 13508else 13509 cf_pkgconfig_incs= 13510 cf_pkgconfig_libs= 13511 { echo "$as_me:13511: WARNING: unable to find SM library" >&5 13512echo "$as_me: WARNING: unable to find SM library" >&2;} 13513fi 13514 13515if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then 13516 test -n "$verbose" && echo " found package xt" 1>&6 13517 13518echo "${as_me:-configure}:13518: testing found package xt ..." 1>&5 13519 13520 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`" 13521 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`" 13522 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6 13523 13524echo "${as_me:-configure}:13524: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5 13525 13526 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6 13527 13528echo "${as_me:-configure}:13528: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5 13529 13530cf_fix_cppflags=no 13531cf_new_cflags= 13532cf_new_cppflags= 13533cf_new_extra_cppflags= 13534 13535for cf_add_cflags in $cf_pkgconfig_incs 13536do 13537case "$cf_fix_cppflags" in 13538(no) 13539 case "$cf_add_cflags" in 13540 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 13541 case "$cf_add_cflags" in 13542 (-D*) 13543 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 13544 13545 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13546 && test -z "${cf_tst_cflags}" \ 13547 && cf_fix_cppflags=yes 13548 13549 if test "$cf_fix_cppflags" = yes ; then 13550 13551 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13552 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13553 13554 continue 13555 elif test "${cf_tst_cflags}" = "\"'" ; then 13556 13557 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13558 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13559 13560 continue 13561 fi 13562 ;; 13563 esac 13564 case "$CPPFLAGS" in 13565 (*$cf_add_cflags) 13566 ;; 13567 (*) 13568 case "$cf_add_cflags" in 13569 (-D*) 13570 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 13571 13572CPPFLAGS=`echo "$CPPFLAGS" | \ 13573 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 13574 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 13575 13576 ;; 13577 esac 13578 13579 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 13580 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 13581 13582 ;; 13583 esac 13584 ;; 13585 (*) 13586 13587 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 13588 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 13589 13590 ;; 13591 esac 13592 ;; 13593(yes) 13594 13595 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13596 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13597 13598 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 13599 13600 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13601 && test -z "${cf_tst_cflags}" \ 13602 && cf_fix_cppflags=no 13603 ;; 13604esac 13605done 13606 13607if test -n "$cf_new_cflags" ; then 13608 13609 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 13610 CFLAGS="${CFLAGS}$cf_new_cflags" 13611 13612fi 13613 13614if test -n "$cf_new_cppflags" ; then 13615 13616 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 13617 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 13618 13619fi 13620 13621if test -n "$cf_new_extra_cppflags" ; then 13622 13623 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 13624 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 13625 13626fi 13627 13628cf_add_libs="$LIBS" 13629# reverse order 13630cf_add_0lib= 13631for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 13632# filter duplicates 13633for cf_add_1lib in $cf_add_0lib; do 13634 for cf_add_2lib in $cf_add_libs; do 13635 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 13636 cf_add_1lib= 13637 break 13638 fi 13639 done 13640 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 13641done 13642LIBS="$cf_add_libs" 13643 13644 : 13645else 13646 cf_pkgconfig_incs= 13647 cf_pkgconfig_libs= 13648 { echo "$as_me:13648: WARNING: unable to find Xt library" >&5 13649echo "$as_me: WARNING: unable to find Xt library" >&2;} 13650fi 13651 13652else 13653 LIBS="$X_PRE_LIBS $LIBS $X_EXTRA_LIBS" 13654fi 13655 13656cf_have_X_LIBS=no 13657 13658if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then 13659 test -n "$verbose" && echo " found package xt" 1>&6 13660 13661echo "${as_me:-configure}:13661: testing found package xt ..." 1>&5 13662 13663 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`" 13664 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`" 13665 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6 13666 13667echo "${as_me:-configure}:13667: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5 13668 13669 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6 13670 13671echo "${as_me:-configure}:13671: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5 13672 13673cf_fix_cppflags=no 13674cf_new_cflags= 13675cf_new_cppflags= 13676cf_new_extra_cppflags= 13677 13678for cf_add_cflags in $cf_pkgconfig_incs 13679do 13680case "$cf_fix_cppflags" in 13681(no) 13682 case "$cf_add_cflags" in 13683 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 13684 case "$cf_add_cflags" in 13685 (-D*) 13686 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 13687 13688 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13689 && test -z "${cf_tst_cflags}" \ 13690 && cf_fix_cppflags=yes 13691 13692 if test "$cf_fix_cppflags" = yes ; then 13693 13694 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13695 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13696 13697 continue 13698 elif test "${cf_tst_cflags}" = "\"'" ; then 13699 13700 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13701 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13702 13703 continue 13704 fi 13705 ;; 13706 esac 13707 case "$CPPFLAGS" in 13708 (*$cf_add_cflags) 13709 ;; 13710 (*) 13711 case "$cf_add_cflags" in 13712 (-D*) 13713 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 13714 13715CPPFLAGS=`echo "$CPPFLAGS" | \ 13716 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 13717 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 13718 13719 ;; 13720 esac 13721 13722 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 13723 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 13724 13725 ;; 13726 esac 13727 ;; 13728 (*) 13729 13730 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 13731 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 13732 13733 ;; 13734 esac 13735 ;; 13736(yes) 13737 13738 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13739 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13740 13741 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 13742 13743 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13744 && test -z "${cf_tst_cflags}" \ 13745 && cf_fix_cppflags=no 13746 ;; 13747esac 13748done 13749 13750if test -n "$cf_new_cflags" ; then 13751 13752 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 13753 CFLAGS="${CFLAGS}$cf_new_cflags" 13754 13755fi 13756 13757if test -n "$cf_new_cppflags" ; then 13758 13759 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 13760 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 13761 13762fi 13763 13764if test -n "$cf_new_extra_cppflags" ; then 13765 13766 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 13767 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 13768 13769fi 13770 13771cf_add_libs="$LIBS" 13772# reverse order 13773cf_add_0lib= 13774for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 13775# filter duplicates 13776for cf_add_1lib in $cf_add_0lib; do 13777 for cf_add_2lib in $cf_add_libs; do 13778 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 13779 cf_add_1lib= 13780 break 13781 fi 13782 done 13783 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 13784done 13785LIBS="$cf_add_libs" 13786 13787 case "x$LIBS" in 13788 (*-lX11*) 13789 ;; 13790 (*) 13791# we have an "xt" package, but it may omit Xt's dependency on X11 13792echo "$as_me:13792: checking for usable X dependency" >&5 13793echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6 13794if test "${cf_cv_xt_x11_compat+set}" = set; then 13795 echo $ECHO_N "(cached) $ECHO_C" >&6 13796else 13797 13798cat >"conftest.$ac_ext" <<_ACEOF 13799#line 13799 "configure" 13800#include "confdefs.h" 13801 13802#include <X11/Xlib.h> 13803 13804int 13805main (void) 13806{ 13807 13808 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0); 13809 int rc2 = XClearWindow((Display*) 0, (Window) 0); 13810 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0); 13811 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0); 13812 13813 ; 13814 return 0; 13815} 13816_ACEOF 13817rm -f "conftest.$ac_objext" "conftest$ac_exeext" 13818if { (eval echo "$as_me:13818: \"$ac_link\"") >&5 13819 (eval $ac_link) 2>&5 13820 ac_status=$? 13821 echo "$as_me:13821: \$? = $ac_status" >&5 13822 (exit "$ac_status"); } && 13823 { ac_try='test -s "conftest$ac_exeext"' 13824 { (eval echo "$as_me:13824: \"$ac_try\"") >&5 13825 (eval $ac_try) 2>&5 13826 ac_status=$? 13827 echo "$as_me:13827: \$? = $ac_status" >&5 13828 (exit "$ac_status"); }; }; then 13829 cf_cv_xt_x11_compat=yes 13830else 13831 echo "$as_me: failed program was:" >&5 13832cat "conftest.$ac_ext" >&5 13833cf_cv_xt_x11_compat=no 13834fi 13835rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 13836fi 13837echo "$as_me:13837: result: $cf_cv_xt_x11_compat" >&5 13838echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6 13839 if test "$cf_cv_xt_x11_compat" = no 13840 then 13841 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6 13842 13843echo "${as_me:-configure}:13843: testing work around broken X11 dependency ..." 1>&5 13844 13845 # 2010/11/19 - good enough until a working Xt on Xcb is delivered. 13846 13847if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then 13848 test -n "$verbose" && echo " found package x11" 1>&6 13849 13850echo "${as_me:-configure}:13850: testing found package x11 ..." 1>&5 13851 13852 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`" 13853 cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`" 13854 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6 13855 13856echo "${as_me:-configure}:13856: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 13857 13858 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6 13859 13860echo "${as_me:-configure}:13860: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5 13861 13862cf_fix_cppflags=no 13863cf_new_cflags= 13864cf_new_cppflags= 13865cf_new_extra_cppflags= 13866 13867for cf_add_cflags in $cf_pkgconfig_incs 13868do 13869case "$cf_fix_cppflags" in 13870(no) 13871 case "$cf_add_cflags" in 13872 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 13873 case "$cf_add_cflags" in 13874 (-D*) 13875 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 13876 13877 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13878 && test -z "${cf_tst_cflags}" \ 13879 && cf_fix_cppflags=yes 13880 13881 if test "$cf_fix_cppflags" = yes ; then 13882 13883 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13884 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13885 13886 continue 13887 elif test "${cf_tst_cflags}" = "\"'" ; then 13888 13889 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13890 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13891 13892 continue 13893 fi 13894 ;; 13895 esac 13896 case "$CPPFLAGS" in 13897 (*$cf_add_cflags) 13898 ;; 13899 (*) 13900 case "$cf_add_cflags" in 13901 (-D*) 13902 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 13903 13904CPPFLAGS=`echo "$CPPFLAGS" | \ 13905 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 13906 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 13907 13908 ;; 13909 esac 13910 13911 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 13912 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 13913 13914 ;; 13915 esac 13916 ;; 13917 (*) 13918 13919 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 13920 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 13921 13922 ;; 13923 esac 13924 ;; 13925(yes) 13926 13927 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13928 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13929 13930 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 13931 13932 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13933 && test -z "${cf_tst_cflags}" \ 13934 && cf_fix_cppflags=no 13935 ;; 13936esac 13937done 13938 13939if test -n "$cf_new_cflags" ; then 13940 13941 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 13942 CFLAGS="${CFLAGS}$cf_new_cflags" 13943 13944fi 13945 13946if test -n "$cf_new_cppflags" ; then 13947 13948 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 13949 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 13950 13951fi 13952 13953if test -n "$cf_new_extra_cppflags" ; then 13954 13955 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 13956 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 13957 13958fi 13959 13960cf_add_libs="$LIBS" 13961# reverse order 13962cf_add_0lib= 13963for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 13964# filter duplicates 13965for cf_add_1lib in $cf_add_0lib; do 13966 for cf_add_2lib in $cf_add_libs; do 13967 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 13968 cf_add_1lib= 13969 break 13970 fi 13971 done 13972 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 13973done 13974LIBS="$cf_add_libs" 13975 13976 : 13977else 13978 cf_pkgconfig_incs= 13979 cf_pkgconfig_libs= 13980 13981test -n "$verbose" && echo " ...before $LIBS" 1>&6 13982 13983echo "${as_me:-configure}:13983: testing ...before $LIBS ..." 1>&5 13984 13985LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'` 13986test -n "$verbose" && echo " ...after $LIBS" 1>&6 13987 13988echo "${as_me:-configure}:13988: testing ...after $LIBS ..." 1>&5 13989 13990fi 13991 13992 fi 13993 ;; 13994 esac 13995 13996echo "$as_me:13996: checking for usable X Toolkit package" >&5 13997echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6 13998if test "${cf_cv_xt_ice_compat+set}" = set; then 13999 echo $ECHO_N "(cached) $ECHO_C" >&6 14000else 14001 14002cat >"conftest.$ac_ext" <<_ACEOF 14003#line 14003 "configure" 14004#include "confdefs.h" 14005 14006#include <X11/Shell.h> 14007 14008int 14009main (void) 14010{ 14011int num = IceConnectionNumber(0); (void) num 14012 14013 ; 14014 return 0; 14015} 14016_ACEOF 14017rm -f "conftest.$ac_objext" "conftest$ac_exeext" 14018if { (eval echo "$as_me:14018: \"$ac_link\"") >&5 14019 (eval $ac_link) 2>&5 14020 ac_status=$? 14021 echo "$as_me:14021: \$? = $ac_status" >&5 14022 (exit "$ac_status"); } && 14023 { ac_try='test -s "conftest$ac_exeext"' 14024 { (eval echo "$as_me:14024: \"$ac_try\"") >&5 14025 (eval $ac_try) 2>&5 14026 ac_status=$? 14027 echo "$as_me:14027: \$? = $ac_status" >&5 14028 (exit "$ac_status"); }; }; then 14029 cf_cv_xt_ice_compat=yes 14030else 14031 echo "$as_me: failed program was:" >&5 14032cat "conftest.$ac_ext" >&5 14033cf_cv_xt_ice_compat=no 14034fi 14035rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 14036fi 14037echo "$as_me:14037: result: $cf_cv_xt_ice_compat" >&5 14038echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6 14039 14040 if test "$cf_cv_xt_ice_compat" = no 14041 then 14042 # workaround for broken ".pc" files used for X Toolkit. 14043 case "x$X_PRE_LIBS" in 14044 (*-lICE*) 14045 case "x$LIBS" in 14046 (*-lICE*) 14047 ;; 14048 (*) 14049 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6 14050 14051echo "${as_me:-configure}:14051: testing work around broken ICE dependency ..." 1>&5 14052 14053if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then 14054 test -n "$verbose" && echo " found package ice" 1>&6 14055 14056echo "${as_me:-configure}:14056: testing found package ice ..." 1>&5 14057 14058 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`" 14059 cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`" 14060 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6 14061 14062echo "${as_me:-configure}:14062: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5 14063 14064 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6 14065 14066echo "${as_me:-configure}:14066: testing package ice 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 14182if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then 14183 test -n "$verbose" && echo " found package sm" 1>&6 14184 14185echo "${as_me:-configure}:14185: testing found package sm ..." 1>&5 14186 14187 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`" 14188 cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`" 14189 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6 14190 14191echo "${as_me:-configure}:14191: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5 14192 14193 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6 14194 14195echo "${as_me:-configure}:14195: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5 14196 14197cf_fix_cppflags=no 14198cf_new_cflags= 14199cf_new_cppflags= 14200cf_new_extra_cppflags= 14201 14202for cf_add_cflags in $cf_pkgconfig_incs 14203do 14204case "$cf_fix_cppflags" in 14205(no) 14206 case "$cf_add_cflags" in 14207 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 14208 case "$cf_add_cflags" in 14209 (-D*) 14210 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 14211 14212 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14213 && test -z "${cf_tst_cflags}" \ 14214 && cf_fix_cppflags=yes 14215 14216 if test "$cf_fix_cppflags" = yes ; then 14217 14218 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14219 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14220 14221 continue 14222 elif test "${cf_tst_cflags}" = "\"'" ; then 14223 14224 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14225 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14226 14227 continue 14228 fi 14229 ;; 14230 esac 14231 case "$CPPFLAGS" in 14232 (*$cf_add_cflags) 14233 ;; 14234 (*) 14235 case "$cf_add_cflags" in 14236 (-D*) 14237 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 14238 14239CPPFLAGS=`echo "$CPPFLAGS" | \ 14240 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 14241 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 14242 14243 ;; 14244 esac 14245 14246 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 14247 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 14248 14249 ;; 14250 esac 14251 ;; 14252 (*) 14253 14254 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 14255 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 14256 14257 ;; 14258 esac 14259 ;; 14260(yes) 14261 14262 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14263 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14264 14265 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 14266 14267 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14268 && test -z "${cf_tst_cflags}" \ 14269 && cf_fix_cppflags=no 14270 ;; 14271esac 14272done 14273 14274if test -n "$cf_new_cflags" ; then 14275 14276 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 14277 CFLAGS="${CFLAGS}$cf_new_cflags" 14278 14279fi 14280 14281if test -n "$cf_new_cppflags" ; then 14282 14283 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 14284 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 14285 14286fi 14287 14288if test -n "$cf_new_extra_cppflags" ; then 14289 14290 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 14291 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 14292 14293fi 14294 14295cf_add_libs="$LIBS" 14296# reverse order 14297cf_add_0lib= 14298for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 14299# filter duplicates 14300for cf_add_1lib in $cf_add_0lib; do 14301 for cf_add_2lib in $cf_add_libs; do 14302 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 14303 cf_add_1lib= 14304 break 14305 fi 14306 done 14307 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 14308done 14309LIBS="$cf_add_libs" 14310 14311 : 14312else 14313 cf_pkgconfig_incs= 14314 cf_pkgconfig_libs= 14315 : 14316fi 14317 14318else 14319 cf_pkgconfig_incs= 14320 cf_pkgconfig_libs= 14321 14322test -n "$verbose" && echo " ...before $LIBS" 1>&6 14323 14324echo "${as_me:-configure}:14324: testing ...before $LIBS ..." 1>&5 14325 14326LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'` 14327test -n "$verbose" && echo " ...after $LIBS" 1>&6 14328 14329echo "${as_me:-configure}:14329: testing ...after $LIBS ..." 1>&5 14330 14331fi 14332 14333 ;; 14334 esac 14335 ;; 14336 esac 14337 fi 14338 14339 cf_have_X_LIBS=yes 14340 14341else 14342 cf_pkgconfig_incs= 14343 cf_pkgconfig_libs= 14344 14345 LDFLAGS="$X_LIBS $LDFLAGS" 14346 14347test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6 14348 14349echo "${as_me:-configure}:14349: testing checking additions to CFLAGS ..." 1>&5 14350 14351cf_check_cflags="$CFLAGS" 14352cf_check_cppflags="$CPPFLAGS" 14353 14354cf_fix_cppflags=no 14355cf_new_cflags= 14356cf_new_cppflags= 14357cf_new_extra_cppflags= 14358 14359for cf_add_cflags in $X_CFLAGS 14360do 14361case "$cf_fix_cppflags" in 14362(no) 14363 case "$cf_add_cflags" in 14364 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 14365 case "$cf_add_cflags" in 14366 (-D*) 14367 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 14368 14369 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14370 && test -z "${cf_tst_cflags}" \ 14371 && cf_fix_cppflags=yes 14372 14373 if test "$cf_fix_cppflags" = yes ; then 14374 14375 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14376 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14377 14378 continue 14379 elif test "${cf_tst_cflags}" = "\"'" ; then 14380 14381 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14382 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14383 14384 continue 14385 fi 14386 ;; 14387 esac 14388 case "$CPPFLAGS" in 14389 (*$cf_add_cflags) 14390 ;; 14391 (*) 14392 case "$cf_add_cflags" in 14393 (-D*) 14394 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 14395 14396CPPFLAGS=`echo "$CPPFLAGS" | \ 14397 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 14398 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 14399 14400 ;; 14401 esac 14402 14403 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 14404 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 14405 14406 ;; 14407 esac 14408 ;; 14409 (*) 14410 14411 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 14412 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 14413 14414 ;; 14415 esac 14416 ;; 14417(yes) 14418 14419 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14420 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14421 14422 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 14423 14424 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14425 && test -z "${cf_tst_cflags}" \ 14426 && cf_fix_cppflags=no 14427 ;; 14428esac 14429done 14430 14431if test -n "$cf_new_cflags" ; then 14432 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 14433 14434echo "${as_me:-configure}:14434: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 14435 14436 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 14437 CFLAGS="${CFLAGS}$cf_new_cflags" 14438 14439fi 14440 14441if test -n "$cf_new_cppflags" ; then 14442 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 14443 14444echo "${as_me:-configure}:14444: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 14445 14446 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 14447 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 14448 14449fi 14450 14451if test -n "$cf_new_extra_cppflags" ; then 14452 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6 14453 14454echo "${as_me:-configure}:14454: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5 14455 14456 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 14457 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 14458 14459fi 14460 14461if test "x$cf_check_cflags" != "x$CFLAGS" ; then 14462cat >"conftest.$ac_ext" <<_ACEOF 14463#line 14463 "configure" 14464#include "confdefs.h" 14465#include <stdio.h> 14466int 14467main (void) 14468{ 14469printf("Hello world"); 14470 ; 14471 return 0; 14472} 14473_ACEOF 14474rm -f "conftest.$ac_objext" "conftest$ac_exeext" 14475if { (eval echo "$as_me:14475: \"$ac_link\"") >&5 14476 (eval $ac_link) 2>&5 14477 ac_status=$? 14478 echo "$as_me:14478: \$? = $ac_status" >&5 14479 (exit "$ac_status"); } && 14480 { ac_try='test -s "conftest$ac_exeext"' 14481 { (eval echo "$as_me:14481: \"$ac_try\"") >&5 14482 (eval $ac_try) 2>&5 14483 ac_status=$? 14484 echo "$as_me:14484: \$? = $ac_status" >&5 14485 (exit "$ac_status"); }; }; then 14486 : 14487else 14488 echo "$as_me: failed program was:" >&5 14489cat "conftest.$ac_ext" >&5 14490test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6 14491 14492echo "${as_me:-configure}:14492: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5 14493 14494 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then 14495 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6 14496 14497echo "${as_me:-configure}:14497: testing but keeping change to \$CPPFLAGS ..." 1>&5 14498 14499 fi 14500 CFLAGS="$cf_check_cflags" 14501fi 14502rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 14503fi 14504 14505 echo "$as_me:14505: checking for XOpenDisplay" >&5 14506echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6 14507if test "${ac_cv_func_XOpenDisplay+set}" = set; then 14508 echo $ECHO_N "(cached) $ECHO_C" >&6 14509else 14510 cat >"conftest.$ac_ext" <<_ACEOF 14511#line 14511 "configure" 14512#include "confdefs.h" 14513#define XOpenDisplay autoconf_temporary 14514#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 14515#undef XOpenDisplay 14516 14517#ifdef __cplusplus 14518extern "C" 14519#endif 14520 14521/* We use char because int might match the return type of a gcc2 14522 builtin and then its argument prototype would still apply. */ 14523char XOpenDisplay (void); 14524 14525int 14526main (void) 14527{ 14528 14529/* The GNU C library defines stubs for functions which it implements 14530 to always fail with ENOSYS. Some functions are actually named 14531 something starting with __ and the normal name is an alias. */ 14532#if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay) 14533#error found stub for XOpenDisplay 14534#endif 14535 14536 return XOpenDisplay (); 14537 ; 14538 return 0; 14539} 14540_ACEOF 14541rm -f "conftest.$ac_objext" "conftest$ac_exeext" 14542if { (eval echo "$as_me:14542: \"$ac_link\"") >&5 14543 (eval $ac_link) 2>&5 14544 ac_status=$? 14545 echo "$as_me:14545: \$? = $ac_status" >&5 14546 (exit "$ac_status"); } && 14547 { ac_try='test -s "conftest$ac_exeext"' 14548 { (eval echo "$as_me:14548: \"$ac_try\"") >&5 14549 (eval $ac_try) 2>&5 14550 ac_status=$? 14551 echo "$as_me:14551: \$? = $ac_status" >&5 14552 (exit "$ac_status"); }; }; then 14553 ac_cv_func_XOpenDisplay=yes 14554else 14555 echo "$as_me: failed program was:" >&5 14556cat "conftest.$ac_ext" >&5 14557ac_cv_func_XOpenDisplay=no 14558fi 14559rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 14560fi 14561echo "$as_me:14561: result: $ac_cv_func_XOpenDisplay" >&5 14562echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6 14563if test "$ac_cv_func_XOpenDisplay" = yes; then 14564 : 14565else 14566 14567 echo "$as_me:14567: checking for XOpenDisplay in -lX11" >&5 14568echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6 14569if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then 14570 echo $ECHO_N "(cached) $ECHO_C" >&6 14571else 14572 ac_check_lib_save_LIBS=$LIBS 14573LIBS="-lX11 $LIBS" 14574cat >"conftest.$ac_ext" <<_ACEOF 14575#line 14575 "configure" 14576#include "confdefs.h" 14577 14578/* Override any gcc2 internal prototype to avoid an error. */ 14579#ifdef __cplusplus 14580extern "C" 14581#endif 14582/* We use char because int might match the return type of a gcc2 14583 builtin and then its argument prototype would still apply. */ 14584char XOpenDisplay (); 14585int 14586main (void) 14587{ 14588XOpenDisplay (); 14589 ; 14590 return 0; 14591} 14592_ACEOF 14593rm -f "conftest.$ac_objext" "conftest$ac_exeext" 14594if { (eval echo "$as_me:14594: \"$ac_link\"") >&5 14595 (eval $ac_link) 2>&5 14596 ac_status=$? 14597 echo "$as_me:14597: \$? = $ac_status" >&5 14598 (exit "$ac_status"); } && 14599 { ac_try='test -s "conftest$ac_exeext"' 14600 { (eval echo "$as_me:14600: \"$ac_try\"") >&5 14601 (eval $ac_try) 2>&5 14602 ac_status=$? 14603 echo "$as_me:14603: \$? = $ac_status" >&5 14604 (exit "$ac_status"); }; }; then 14605 ac_cv_lib_X11_XOpenDisplay=yes 14606else 14607 echo "$as_me: failed program was:" >&5 14608cat "conftest.$ac_ext" >&5 14609ac_cv_lib_X11_XOpenDisplay=no 14610fi 14611rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 14612LIBS=$ac_check_lib_save_LIBS 14613fi 14614echo "$as_me:14614: result: $ac_cv_lib_X11_XOpenDisplay" >&5 14615echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6 14616if test "$ac_cv_lib_X11_XOpenDisplay" = yes; then 14617 14618cf_add_libs="$LIBS" 14619# reverse order 14620cf_add_0lib= 14621for cf_add_1lib in -lX11; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 14622# filter duplicates 14623for cf_add_1lib in $cf_add_0lib; do 14624 for cf_add_2lib in $cf_add_libs; do 14625 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 14626 cf_add_1lib= 14627 break 14628 fi 14629 done 14630 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 14631done 14632LIBS="$cf_add_libs" 14633 14634fi 14635 14636fi 14637 14638 echo "$as_me:14638: checking for XtAppInitialize" >&5 14639echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6 14640if test "${ac_cv_func_XtAppInitialize+set}" = set; then 14641 echo $ECHO_N "(cached) $ECHO_C" >&6 14642else 14643 cat >"conftest.$ac_ext" <<_ACEOF 14644#line 14644 "configure" 14645#include "confdefs.h" 14646#define XtAppInitialize autoconf_temporary 14647#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 14648#undef XtAppInitialize 14649 14650#ifdef __cplusplus 14651extern "C" 14652#endif 14653 14654/* We use char because int might match the return type of a gcc2 14655 builtin and then its argument prototype would still apply. */ 14656char XtAppInitialize (void); 14657 14658int 14659main (void) 14660{ 14661 14662/* The GNU C library defines stubs for functions which it implements 14663 to always fail with ENOSYS. Some functions are actually named 14664 something starting with __ and the normal name is an alias. */ 14665#if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize) 14666#error found stub for XtAppInitialize 14667#endif 14668 14669 return XtAppInitialize (); 14670 ; 14671 return 0; 14672} 14673_ACEOF 14674rm -f "conftest.$ac_objext" "conftest$ac_exeext" 14675if { (eval echo "$as_me:14675: \"$ac_link\"") >&5 14676 (eval $ac_link) 2>&5 14677 ac_status=$? 14678 echo "$as_me:14678: \$? = $ac_status" >&5 14679 (exit "$ac_status"); } && 14680 { ac_try='test -s "conftest$ac_exeext"' 14681 { (eval echo "$as_me:14681: \"$ac_try\"") >&5 14682 (eval $ac_try) 2>&5 14683 ac_status=$? 14684 echo "$as_me:14684: \$? = $ac_status" >&5 14685 (exit "$ac_status"); }; }; then 14686 ac_cv_func_XtAppInitialize=yes 14687else 14688 echo "$as_me: failed program was:" >&5 14689cat "conftest.$ac_ext" >&5 14690ac_cv_func_XtAppInitialize=no 14691fi 14692rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 14693fi 14694echo "$as_me:14694: result: $ac_cv_func_XtAppInitialize" >&5 14695echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6 14696if test "$ac_cv_func_XtAppInitialize" = yes; then 14697 : 14698else 14699 14700 echo "$as_me:14700: checking for XtAppInitialize in -lXt" >&5 14701echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6 14702if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then 14703 echo $ECHO_N "(cached) $ECHO_C" >&6 14704else 14705 ac_check_lib_save_LIBS=$LIBS 14706LIBS="-lXt $LIBS" 14707cat >"conftest.$ac_ext" <<_ACEOF 14708#line 14708 "configure" 14709#include "confdefs.h" 14710 14711/* Override any gcc2 internal prototype to avoid an error. */ 14712#ifdef __cplusplus 14713extern "C" 14714#endif 14715/* We use char because int might match the return type of a gcc2 14716 builtin and then its argument prototype would still apply. */ 14717char XtAppInitialize (); 14718int 14719main (void) 14720{ 14721XtAppInitialize (); 14722 ; 14723 return 0; 14724} 14725_ACEOF 14726rm -f "conftest.$ac_objext" "conftest$ac_exeext" 14727if { (eval echo "$as_me:14727: \"$ac_link\"") >&5 14728 (eval $ac_link) 2>&5 14729 ac_status=$? 14730 echo "$as_me:14730: \$? = $ac_status" >&5 14731 (exit "$ac_status"); } && 14732 { ac_try='test -s "conftest$ac_exeext"' 14733 { (eval echo "$as_me:14733: \"$ac_try\"") >&5 14734 (eval $ac_try) 2>&5 14735 ac_status=$? 14736 echo "$as_me:14736: \$? = $ac_status" >&5 14737 (exit "$ac_status"); }; }; then 14738 ac_cv_lib_Xt_XtAppInitialize=yes 14739else 14740 echo "$as_me: failed program was:" >&5 14741cat "conftest.$ac_ext" >&5 14742ac_cv_lib_Xt_XtAppInitialize=no 14743fi 14744rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 14745LIBS=$ac_check_lib_save_LIBS 14746fi 14747echo "$as_me:14747: result: $ac_cv_lib_Xt_XtAppInitialize" >&5 14748echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6 14749if test "$ac_cv_lib_Xt_XtAppInitialize" = yes; then 14750 14751cat >>confdefs.h <<\EOF 14752#define HAVE_LIBXT 1 14753EOF 14754 14755 cf_have_X_LIBS=Xt 14756 LIBS="-lXt $LIBS" 14757fi 14758 14759fi 14760 14761fi 14762 14763if test "$cf_have_X_LIBS" = no ; then 14764 { echo "$as_me:14764: WARNING: Unable to successfully link X Toolkit library (-lXt) with 14765test program. You will have to check and add the proper libraries by hand 14766to makefile." >&5 14767echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with 14768test program. You will have to check and add the proper libraries by hand 14769to makefile." >&2;} 14770fi 14771 14772cf_x_athena_root=$cf_x_athena 14773cf_x_athena_inc="" 14774 14775for cf_path in default \ 14776 /usr/contrib/X11R6 \ 14777 /usr/contrib/X11R5 \ 14778 /usr/lib/X11R5 \ 14779 /usr/local 14780do 14781 if test -z "$cf_x_athena_inc" ; then 14782 14783cf_save_LIBS_CF_X_ATHENA_CPPFLAGS="$LIBS" 14784cf_save_CFLAGS_CF_X_ATHENA_CPPFLAGS="$CFLAGS" 14785cf_save_CPPFLAGS_CF_X_ATHENA_CPPFLAGS="$CPPFLAGS" 14786LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}" 14787for cf_X_CFLAGS in $X_CFLAGS 14788do 14789 case "x$cf_X_CFLAGS" in 14790 x-[IUD]*) 14791 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS" 14792 ;; 14793 *) 14794 CFLAGS="$CFLAGS $cf_X_CFLAGS" 14795 ;; 14796 esac 14797done 14798 14799 cf_test=X11/$cf_x_athena_root/SimpleMenu.h 14800 if test "$cf_path" != default ; then 14801 14802 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 14803 CPPFLAGS="${CPPFLAGS}-I$cf_path/include" 14804 14805 echo "$as_me:14805: checking for $cf_test in $cf_path" >&5 14806echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6 14807 else 14808 echo "$as_me:14808: checking for $cf_test" >&5 14809echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6 14810 fi 14811 cat >"conftest.$ac_ext" <<_ACEOF 14812#line 14812 "configure" 14813#include "confdefs.h" 14814 14815#include <X11/Intrinsic.h> 14816#include <$cf_test> 14817int 14818main (void) 14819{ 14820 14821 ; 14822 return 0; 14823} 14824_ACEOF 14825rm -f "conftest.$ac_objext" 14826if { (eval echo "$as_me:14826: \"$ac_compile\"") >&5 14827 (eval $ac_compile) 2>&5 14828 ac_status=$? 14829 echo "$as_me:14829: \$? = $ac_status" >&5 14830 (exit "$ac_status"); } && 14831 { ac_try='test -s "conftest.$ac_objext"' 14832 { (eval echo "$as_me:14832: \"$ac_try\"") >&5 14833 (eval $ac_try) 2>&5 14834 ac_status=$? 14835 echo "$as_me:14835: \$? = $ac_status" >&5 14836 (exit "$ac_status"); }; }; then 14837 cf_result=yes 14838else 14839 echo "$as_me: failed program was:" >&5 14840cat "conftest.$ac_ext" >&5 14841cf_result=no 14842fi 14843rm -f "conftest.$ac_objext" "conftest.$ac_ext" 14844 echo "$as_me:14844: result: $cf_result" >&5 14845echo "${ECHO_T}$cf_result" >&6 14846 14847LIBS="$cf_save_LIBS_CF_X_ATHENA_CPPFLAGS" 14848CFLAGS="$cf_save_CFLAGS_CF_X_ATHENA_CPPFLAGS" 14849CPPFLAGS="$cf_save_CPPFLAGS_CF_X_ATHENA_CPPFLAGS" 14850 14851 if test "$cf_result" = yes ; then 14852 test "$cf_path" = default && cf_x_athena_inc=default 14853 test "$cf_path" != default && cf_x_athena_inc="$cf_path/include" 14854 break 14855 fi 14856 fi 14857done 14858 14859if test -z "$cf_x_athena_inc" ; then 14860 { echo "$as_me:14860: WARNING: Unable to find Athena header files" >&5 14861echo "$as_me: WARNING: Unable to find Athena header files" >&2;} 14862elif test "$cf_x_athena_inc" != default ; then 14863 14864 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 14865 CPPFLAGS="${CPPFLAGS}-I$cf_x_athena_inc" 14866 14867fi 14868 14869cf_x_athena_root=$cf_x_athena 14870cf_x_athena_lib="" 14871 14872for cf_path in default \ 14873 /usr/contrib/X11R6 \ 14874 /usr/contrib/X11R5 \ 14875 /usr/lib/X11R5 \ 14876 /usr/local 14877do 14878 for cf_lib in \ 14879 ${cf_x_athena_root} \ 14880 ${cf_x_athena_root}7 \ 14881 ${cf_x_athena_root}6 14882 do 14883 for cf_libs in \ 14884 "-l$cf_lib -lXmu" \ 14885 "-l$cf_lib -lXpm -lXmu" \ 14886 "-l${cf_lib}_s -lXmu_s" 14887 do 14888 test -n "$cf_x_athena_lib" && break 14889 14890cf_save_LIBS_CF_X_ATHENA_LIBS="$LIBS" 14891cf_save_CFLAGS_CF_X_ATHENA_LIBS="$CFLAGS" 14892cf_save_CPPFLAGS_CF_X_ATHENA_LIBS="$CPPFLAGS" 14893LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}" 14894for cf_X_CFLAGS in $X_CFLAGS 14895do 14896 case "x$cf_X_CFLAGS" in 14897 x-[IUD]*) 14898 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS" 14899 ;; 14900 *) 14901 CFLAGS="$CFLAGS $cf_X_CFLAGS" 14902 ;; 14903 esac 14904done 14905 14906 cf_test=XawSimpleMenuAddGlobalActions 14907 test "$cf_path" != default && cf_libs="-L$cf_path/lib $cf_libs" 14908 14909cf_add_libs="$LIBS" 14910# reverse order 14911cf_add_0lib= 14912for cf_add_1lib in $cf_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 14913# filter duplicates 14914for cf_add_1lib in $cf_add_0lib; do 14915 for cf_add_2lib in $cf_add_libs; do 14916 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 14917 cf_add_1lib= 14918 break 14919 fi 14920 done 14921 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 14922done 14923LIBS="$cf_add_libs" 14924 14925 echo "$as_me:14925: checking for $cf_test in $cf_libs" >&5 14926echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6 14927 cat >"conftest.$ac_ext" <<_ACEOF 14928#line 14928 "configure" 14929#include "confdefs.h" 14930 14931#include <X11/Intrinsic.h> 14932#include <X11/$cf_x_athena_root/SimpleMenu.h> 14933 14934int 14935main (void) 14936{ 14937 14938$cf_test((XtAppContext) 0) 14939 ; 14940 return 0; 14941} 14942_ACEOF 14943rm -f "conftest.$ac_objext" "conftest$ac_exeext" 14944if { (eval echo "$as_me:14944: \"$ac_link\"") >&5 14945 (eval $ac_link) 2>&5 14946 ac_status=$? 14947 echo "$as_me:14947: \$? = $ac_status" >&5 14948 (exit "$ac_status"); } && 14949 { ac_try='test -s "conftest$ac_exeext"' 14950 { (eval echo "$as_me:14950: \"$ac_try\"") >&5 14951 (eval $ac_try) 2>&5 14952 ac_status=$? 14953 echo "$as_me:14953: \$? = $ac_status" >&5 14954 (exit "$ac_status"); }; }; then 14955 cf_result=yes 14956else 14957 echo "$as_me: failed program was:" >&5 14958cat "conftest.$ac_ext" >&5 14959cf_result=no 14960fi 14961rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 14962 echo "$as_me:14962: result: $cf_result" >&5 14963echo "${ECHO_T}$cf_result" >&6 14964 14965LIBS="$cf_save_LIBS_CF_X_ATHENA_LIBS" 14966CFLAGS="$cf_save_CFLAGS_CF_X_ATHENA_LIBS" 14967CPPFLAGS="$cf_save_CPPFLAGS_CF_X_ATHENA_LIBS" 14968 14969 if test "$cf_result" = yes ; then 14970 cf_x_athena_lib="$cf_libs" 14971 break 14972 fi 14973 done # cf_libs 14974 test -n "$cf_x_athena_lib" && break 14975 done # cf_lib 14976done 14977 14978if test -z "$cf_x_athena_lib" ; then 14979 { { echo "$as_me:14979: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5 14980echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;} 14981 { (exit 1); exit 1; }; } 14982fi 14983 14984cf_add_libs="$LIBS" 14985# reverse order 14986cf_add_0lib= 14987for cf_add_1lib in $cf_x_athena_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 14988# filter duplicates 14989for cf_add_1lib in $cf_add_0lib; do 14990 for cf_add_2lib in $cf_add_libs; do 14991 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 14992 cf_add_1lib= 14993 break 14994 fi 14995 done 14996 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 14997done 14998LIBS="$cf_add_libs" 14999 15000cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 15001 15002cat >>confdefs.h <<EOF 15003#define $cf_x_athena_LIBS 1 15004EOF 15005 15006fi 15007 15008for ac_header in X11/Xpoll.h 15009do 15010as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15011echo "$as_me:15011: checking for $ac_header" >&5 15012echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 15013if eval "test \"\${$as_ac_Header+set}\" = set"; then 15014 echo $ECHO_N "(cached) $ECHO_C" >&6 15015else 15016 cat >"conftest.$ac_ext" <<_ACEOF 15017#line 15017 "configure" 15018#include "confdefs.h" 15019#include <$ac_header> 15020_ACEOF 15021if { (eval echo "$as_me:15021: \"$ac_cpp "conftest.$ac_ext"\"") >&5 15022 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 15023 ac_status=$? 15024 $EGREP -v '^ *\+' conftest.er1 >conftest.err 15025 rm -f conftest.er1 15026 cat conftest.err >&5 15027 echo "$as_me:15027: \$? = $ac_status" >&5 15028 (exit "$ac_status"); } >/dev/null; then 15029 if test -s conftest.err; then 15030 ac_cpp_err=$ac_c_preproc_warn_flag 15031 else 15032 ac_cpp_err= 15033 fi 15034else 15035 ac_cpp_err=yes 15036fi 15037if test -z "$ac_cpp_err"; then 15038 eval "$as_ac_Header=yes" 15039else 15040 echo "$as_me: failed program was:" >&5 15041 cat "conftest.$ac_ext" >&5 15042 eval "$as_ac_Header=no" 15043fi 15044rm -f conftest.err "conftest.$ac_ext" 15045fi 15046echo "$as_me:15046: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 15047echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 15048if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 15049 cat >>confdefs.h <<EOF 15050#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15051EOF 15052 15053fi 15054done 15055 15056echo "$as_me:15056: checking for declaration of fd_set" >&5 15057echo $ECHO_N "checking for declaration of fd_set... $ECHO_C" >&6 15058if test "${cf_cv_type_fd_set+set}" = set; then 15059 echo $ECHO_N "(cached) $ECHO_C" >&6 15060else 15061 15062echo "${as_me:-configure}:15062: testing sys/types alone ..." 1>&5 15063 15064cat >"conftest.$ac_ext" <<_ACEOF 15065#line 15065 "configure" 15066#include "confdefs.h" 15067 15068#include <sys/types.h> 15069int 15070main (void) 15071{ 15072fd_set x; (void)x 15073 ; 15074 return 0; 15075} 15076_ACEOF 15077rm -f "conftest.$ac_objext" 15078if { (eval echo "$as_me:15078: \"$ac_compile\"") >&5 15079 (eval $ac_compile) 2>&5 15080 ac_status=$? 15081 echo "$as_me:15081: \$? = $ac_status" >&5 15082 (exit "$ac_status"); } && 15083 { ac_try='test -s "conftest.$ac_objext"' 15084 { (eval echo "$as_me:15084: \"$ac_try\"") >&5 15085 (eval $ac_try) 2>&5 15086 ac_status=$? 15087 echo "$as_me:15087: \$? = $ac_status" >&5 15088 (exit "$ac_status"); }; }; then 15089 cf_cv_type_fd_set=sys/types.h 15090else 15091 echo "$as_me: failed program was:" >&5 15092cat "conftest.$ac_ext" >&5 15093 15094echo "${as_me:-configure}:15094: testing X11/Xpoll.h ..." 1>&5 15095 15096cat >"conftest.$ac_ext" <<_ACEOF 15097#line 15097 "configure" 15098#include "confdefs.h" 15099 15100#ifdef HAVE_X11_XPOLL_H 15101#include <X11/Xpoll.h> 15102#endif 15103int 15104main (void) 15105{ 15106fd_set x; (void)x 15107 ; 15108 return 0; 15109} 15110_ACEOF 15111rm -f "conftest.$ac_objext" 15112if { (eval echo "$as_me:15112: \"$ac_compile\"") >&5 15113 (eval $ac_compile) 2>&5 15114 ac_status=$? 15115 echo "$as_me:15115: \$? = $ac_status" >&5 15116 (exit "$ac_status"); } && 15117 { ac_try='test -s "conftest.$ac_objext"' 15118 { (eval echo "$as_me:15118: \"$ac_try\"") >&5 15119 (eval $ac_try) 2>&5 15120 ac_status=$? 15121 echo "$as_me:15121: \$? = $ac_status" >&5 15122 (exit "$ac_status"); }; }; then 15123 cf_cv_type_fd_set=X11/Xpoll.h 15124else 15125 echo "$as_me: failed program was:" >&5 15126cat "conftest.$ac_ext" >&5 15127 15128echo "${as_me:-configure}:15128: testing sys/select.h ..." 1>&5 15129 15130cat >"conftest.$ac_ext" <<_ACEOF 15131#line 15131 "configure" 15132#include "confdefs.h" 15133 15134#include <sys/types.h> 15135#include <sys/select.h> 15136int 15137main (void) 15138{ 15139fd_set x; (void)x 15140 ; 15141 return 0; 15142} 15143_ACEOF 15144rm -f "conftest.$ac_objext" 15145if { (eval echo "$as_me:15145: \"$ac_compile\"") >&5 15146 (eval $ac_compile) 2>&5 15147 ac_status=$? 15148 echo "$as_me:15148: \$? = $ac_status" >&5 15149 (exit "$ac_status"); } && 15150 { ac_try='test -s "conftest.$ac_objext"' 15151 { (eval echo "$as_me:15151: \"$ac_try\"") >&5 15152 (eval $ac_try) 2>&5 15153 ac_status=$? 15154 echo "$as_me:15154: \$? = $ac_status" >&5 15155 (exit "$ac_status"); }; }; then 15156 cf_cv_type_fd_set=sys/select.h 15157else 15158 echo "$as_me: failed program was:" >&5 15159cat "conftest.$ac_ext" >&5 15160cf_cv_type_fd_set=unknown 15161fi 15162rm -f "conftest.$ac_objext" "conftest.$ac_ext" 15163fi 15164rm -f "conftest.$ac_objext" "conftest.$ac_ext" 15165fi 15166rm -f "conftest.$ac_objext" "conftest.$ac_ext" 15167fi 15168echo "$as_me:15168: result: $cf_cv_type_fd_set" >&5 15169echo "${ECHO_T}$cf_cv_type_fd_set" >&6 15170if test $cf_cv_type_fd_set = sys/select.h ; then 15171 15172cat >>confdefs.h <<\EOF 15173#define USE_SYS_SELECT_H 1 15174EOF 15175 15176fi 15177 15178echo "$as_me:15178: checking for declaration of fd_mask" >&5 15179echo $ECHO_N "checking for declaration of fd_mask... $ECHO_C" >&6 15180if test "${cf_cv_type_fd_mask+set}" = set; then 15181 echo $ECHO_N "(cached) $ECHO_C" >&6 15182else 15183 15184 if test x$cf_cv_type_fd_set = xX11/Xpoll.h ; then 15185 cat >"conftest.$ac_ext" <<_ACEOF 15186#line 15186 "configure" 15187#include "confdefs.h" 15188 15189#include <X11/Xpoll.h> 15190int 15191main (void) 15192{ 15193fd_mask x 15194 ; 15195 return 0; 15196} 15197_ACEOF 15198rm -f "conftest.$ac_objext" 15199if { (eval echo "$as_me:15199: \"$ac_compile\"") >&5 15200 (eval $ac_compile) 2>&5 15201 ac_status=$? 15202 echo "$as_me:15202: \$? = $ac_status" >&5 15203 (exit "$ac_status"); } && 15204 { ac_try='test -s "conftest.$ac_objext"' 15205 { (eval echo "$as_me:15205: \"$ac_try\"") >&5 15206 (eval $ac_try) 2>&5 15207 ac_status=$? 15208 echo "$as_me:15208: \$? = $ac_status" >&5 15209 (exit "$ac_status"); }; }; then 15210 : 15211else 15212 echo "$as_me: failed program was:" >&5 15213cat "conftest.$ac_ext" >&5 15214 15215echo "${as_me:-configure}:15215: testing if we must define CSRG_BASED ..." 1>&5 15216 15217# Xosdefs.h on Mac OS X may not define this (but it should). 15218 cat >"conftest.$ac_ext" <<_ACEOF 15219#line 15219 "configure" 15220#include "confdefs.h" 15221 15222#define CSRG_BASED 15223#include <X11/Xpoll.h> 15224int 15225main (void) 15226{ 15227fd_mask x 15228 ; 15229 return 0; 15230} 15231_ACEOF 15232rm -f "conftest.$ac_objext" 15233if { (eval echo "$as_me:15233: \"$ac_compile\"") >&5 15234 (eval $ac_compile) 2>&5 15235 ac_status=$? 15236 echo "$as_me:15236: \$? = $ac_status" >&5 15237 (exit "$ac_status"); } && 15238 { ac_try='test -s "conftest.$ac_objext"' 15239 { (eval echo "$as_me:15239: \"$ac_try\"") >&5 15240 (eval $ac_try) 2>&5 15241 ac_status=$? 15242 echo "$as_me:15242: \$? = $ac_status" >&5 15243 (exit "$ac_status"); }; }; then 15244 cf_cv_type_fd_mask=CSRG_BASED 15245else 15246 echo "$as_me: failed program was:" >&5 15247cat "conftest.$ac_ext" >&5 15248fi 15249rm -f "conftest.$ac_objext" "conftest.$ac_ext" 15250fi 15251rm -f "conftest.$ac_objext" "conftest.$ac_ext" 15252 else 15253 cf_cv_type_fd_mask=$cf_cv_type_fd_set 15254 fi 15255 15256fi 15257echo "$as_me:15257: result: $cf_cv_type_fd_mask" >&5 15258echo "${ECHO_T}$cf_cv_type_fd_mask" >&6 15259if test x$cf_cv_type_fd_mask = xCSRG_BASED ; then 15260 15261cat >>confdefs.h <<\EOF 15262#define CSRG_BASED 1 15263EOF 15264 15265fi 15266 15267echo "$as_me:15267: checking for IRIX 6.5 baud-rate redefinitions" >&5 15268echo $ECHO_N "checking for IRIX 6.5 baud-rate redefinitions... $ECHO_C" >&6 15269if test "${cf_cv_termio_c_ispeed+set}" = set; then 15270 echo $ECHO_N "(cached) $ECHO_C" >&6 15271else 15272 15273cat >"conftest.$ac_ext" <<_ACEOF 15274#line 15274 "configure" 15275#include "confdefs.h" 15276 15277#include <sys/types.h> 15278#include <sys/termio.h> 15279int 15280main (void) 15281{ 15282 15283struct termio foo; 15284foo.c_ispeed = B38400; 15285foo.c_ospeed = B9600; 15286(void)foo; 15287 15288 ; 15289 return 0; 15290} 15291_ACEOF 15292rm -f "conftest.$ac_objext" 15293if { (eval echo "$as_me:15293: \"$ac_compile\"") >&5 15294 (eval $ac_compile) 2>&5 15295 ac_status=$? 15296 echo "$as_me:15296: \$? = $ac_status" >&5 15297 (exit "$ac_status"); } && 15298 { ac_try='test -s "conftest.$ac_objext"' 15299 { (eval echo "$as_me:15299: \"$ac_try\"") >&5 15300 (eval $ac_try) 2>&5 15301 ac_status=$? 15302 echo "$as_me:15302: \$? = $ac_status" >&5 15303 (exit "$ac_status"); }; }; then 15304 cf_cv_termio_c_ispeed=yes 15305 15306else 15307 echo "$as_me: failed program was:" >&5 15308cat "conftest.$ac_ext" >&5 15309cf_cv_termio_c_ispeed=no 15310fi 15311rm -f "conftest.$ac_objext" "conftest.$ac_ext" 15312 15313fi 15314echo "$as_me:15314: result: $cf_cv_termio_c_ispeed" >&5 15315echo "${ECHO_T}$cf_cv_termio_c_ispeed" >&6 15316test "$cf_cv_termio_c_ispeed" = yes && 15317cat >>confdefs.h <<\EOF 15318#define HAVE_TERMIO_C_ISPEED 1 15319EOF 15320 15321echo "$as_me:15321: checking for termios type tcflag_t" >&5 15322echo $ECHO_N "checking for termios type tcflag_t... $ECHO_C" >&6 15323if test "${cf_cv_havetype_tcflag_t+set}" = set; then 15324 echo $ECHO_N "(cached) $ECHO_C" >&6 15325else 15326 15327 cat >"conftest.$ac_ext" <<_ACEOF 15328#line 15328 "configure" 15329#include "confdefs.h" 15330#include <termios.h> 15331int 15332main (void) 15333{ 15334 15335 tcflag_t x = 0; (void)x 15336 ; 15337 return 0; 15338} 15339_ACEOF 15340rm -f "conftest.$ac_objext" 15341if { (eval echo "$as_me:15341: \"$ac_compile\"") >&5 15342 (eval $ac_compile) 2>&5 15343 ac_status=$? 15344 echo "$as_me:15344: \$? = $ac_status" >&5 15345 (exit "$ac_status"); } && 15346 { ac_try='test -s "conftest.$ac_objext"' 15347 { (eval echo "$as_me:15347: \"$ac_try\"") >&5 15348 (eval $ac_try) 2>&5 15349 ac_status=$? 15350 echo "$as_me:15350: \$? = $ac_status" >&5 15351 (exit "$ac_status"); }; }; then 15352 cf_cv_havetype_tcflag_t=yes 15353else 15354 echo "$as_me: failed program was:" >&5 15355cat "conftest.$ac_ext" >&5 15356cf_cv_havetype_tcflag_t=no 15357fi 15358rm -f "conftest.$ac_objext" "conftest.$ac_ext" 15359 15360fi 15361echo "$as_me:15361: result: $cf_cv_havetype_tcflag_t" >&5 15362echo "${ECHO_T}$cf_cv_havetype_tcflag_t" >&6 15363test "$cf_cv_havetype_tcflag_t" = no && 15364cat >>confdefs.h <<\EOF 15365#define tcflag_t unsigned long 15366EOF 15367 15368echo "$as_me:15368: checking for termios type speed_t" >&5 15369echo $ECHO_N "checking for termios type speed_t... $ECHO_C" >&6 15370if test "${cf_cv_havetype_speed_t+set}" = set; then 15371 echo $ECHO_N "(cached) $ECHO_C" >&6 15372else 15373 15374 cat >"conftest.$ac_ext" <<_ACEOF 15375#line 15375 "configure" 15376#include "confdefs.h" 15377#include <termios.h> 15378int 15379main (void) 15380{ 15381 15382 speed_t x = 0; (void)x 15383 ; 15384 return 0; 15385} 15386_ACEOF 15387rm -f "conftest.$ac_objext" 15388if { (eval echo "$as_me:15388: \"$ac_compile\"") >&5 15389 (eval $ac_compile) 2>&5 15390 ac_status=$? 15391 echo "$as_me:15391: \$? = $ac_status" >&5 15392 (exit "$ac_status"); } && 15393 { ac_try='test -s "conftest.$ac_objext"' 15394 { (eval echo "$as_me:15394: \"$ac_try\"") >&5 15395 (eval $ac_try) 2>&5 15396 ac_status=$? 15397 echo "$as_me:15397: \$? = $ac_status" >&5 15398 (exit "$ac_status"); }; }; then 15399 cf_cv_havetype_speed_t=yes 15400else 15401 echo "$as_me: failed program was:" >&5 15402cat "conftest.$ac_ext" >&5 15403cf_cv_havetype_speed_t=no 15404fi 15405rm -f "conftest.$ac_objext" "conftest.$ac_ext" 15406 15407fi 15408echo "$as_me:15408: result: $cf_cv_havetype_speed_t" >&5 15409echo "${ECHO_T}$cf_cv_havetype_speed_t" >&6 15410test "$cf_cv_havetype_speed_t" = no && 15411cat >>confdefs.h <<\EOF 15412#define speed_t unsigned short 15413EOF 15414 15415echo "$as_me:15415: checking for termios type cc_t" >&5 15416echo $ECHO_N "checking for termios type cc_t... $ECHO_C" >&6 15417if test "${cf_cv_havetype_cc_t+set}" = set; then 15418 echo $ECHO_N "(cached) $ECHO_C" >&6 15419else 15420 15421 cat >"conftest.$ac_ext" <<_ACEOF 15422#line 15422 "configure" 15423#include "confdefs.h" 15424#include <termios.h> 15425int 15426main (void) 15427{ 15428 15429 cc_t x = 0; (void)x 15430 ; 15431 return 0; 15432} 15433_ACEOF 15434rm -f "conftest.$ac_objext" 15435if { (eval echo "$as_me:15435: \"$ac_compile\"") >&5 15436 (eval $ac_compile) 2>&5 15437 ac_status=$? 15438 echo "$as_me:15438: \$? = $ac_status" >&5 15439 (exit "$ac_status"); } && 15440 { ac_try='test -s "conftest.$ac_objext"' 15441 { (eval echo "$as_me:15441: \"$ac_try\"") >&5 15442 (eval $ac_try) 2>&5 15443 ac_status=$? 15444 echo "$as_me:15444: \$? = $ac_status" >&5 15445 (exit "$ac_status"); }; }; then 15446 cf_cv_havetype_cc_t=yes 15447else 15448 echo "$as_me: failed program was:" >&5 15449cat "conftest.$ac_ext" >&5 15450cf_cv_havetype_cc_t=no 15451fi 15452rm -f "conftest.$ac_objext" "conftest.$ac_ext" 15453 15454fi 15455echo "$as_me:15455: result: $cf_cv_havetype_cc_t" >&5 15456echo "${ECHO_T}$cf_cv_havetype_cc_t" >&6 15457test "$cf_cv_havetype_cc_t" = no && 15458cat >>confdefs.h <<\EOF 15459#define cc_t unsigned char 15460EOF 15461 15462# If we notice Xcursor, there is a workaround needed. 15463echo "$as_me:15463: checking for XcursorGetTheme in -lXcursor" >&5 15464echo $ECHO_N "checking for XcursorGetTheme in -lXcursor... $ECHO_C" >&6 15465if test "${ac_cv_lib_Xcursor_XcursorGetTheme+set}" = set; then 15466 echo $ECHO_N "(cached) $ECHO_C" >&6 15467else 15468 ac_check_lib_save_LIBS=$LIBS 15469LIBS="-lXcursor $LIBS" 15470cat >"conftest.$ac_ext" <<_ACEOF 15471#line 15471 "configure" 15472#include "confdefs.h" 15473 15474/* Override any gcc2 internal prototype to avoid an error. */ 15475#ifdef __cplusplus 15476extern "C" 15477#endif 15478/* We use char because int might match the return type of a gcc2 15479 builtin and then its argument prototype would still apply. */ 15480char XcursorGetTheme (); 15481int 15482main (void) 15483{ 15484XcursorGetTheme (); 15485 ; 15486 return 0; 15487} 15488_ACEOF 15489rm -f "conftest.$ac_objext" "conftest$ac_exeext" 15490if { (eval echo "$as_me:15490: \"$ac_link\"") >&5 15491 (eval $ac_link) 2>&5 15492 ac_status=$? 15493 echo "$as_me:15493: \$? = $ac_status" >&5 15494 (exit "$ac_status"); } && 15495 { ac_try='test -s "conftest$ac_exeext"' 15496 { (eval echo "$as_me:15496: \"$ac_try\"") >&5 15497 (eval $ac_try) 2>&5 15498 ac_status=$? 15499 echo "$as_me:15499: \$? = $ac_status" >&5 15500 (exit "$ac_status"); }; }; then 15501 ac_cv_lib_Xcursor_XcursorGetTheme=yes 15502else 15503 echo "$as_me: failed program was:" >&5 15504cat "conftest.$ac_ext" >&5 15505ac_cv_lib_Xcursor_XcursorGetTheme=no 15506fi 15507rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 15508LIBS=$ac_check_lib_save_LIBS 15509fi 15510echo "$as_me:15510: result: $ac_cv_lib_Xcursor_XcursorGetTheme" >&5 15511echo "${ECHO_T}$ac_cv_lib_Xcursor_XcursorGetTheme" >&6 15512if test "$ac_cv_lib_Xcursor_XcursorGetTheme" = yes; then 15513 15514cat >>confdefs.h <<\EOF 15515#define HAVE_LIB_XCURSOR 1 15516EOF 15517 15518fi 15519 15520LIBS="$LIBS $X_EXTRA_LIBS" 15521 15522for ac_header in \ 15523stropts.h \ 15524 15525do 15526as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15527echo "$as_me:15527: checking for $ac_header" >&5 15528echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 15529if eval "test \"\${$as_ac_Header+set}\" = set"; then 15530 echo $ECHO_N "(cached) $ECHO_C" >&6 15531else 15532 cat >"conftest.$ac_ext" <<_ACEOF 15533#line 15533 "configure" 15534#include "confdefs.h" 15535#include <$ac_header> 15536_ACEOF 15537if { (eval echo "$as_me:15537: \"$ac_cpp "conftest.$ac_ext"\"") >&5 15538 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 15539 ac_status=$? 15540 $EGREP -v '^ *\+' conftest.er1 >conftest.err 15541 rm -f conftest.er1 15542 cat conftest.err >&5 15543 echo "$as_me:15543: \$? = $ac_status" >&5 15544 (exit "$ac_status"); } >/dev/null; then 15545 if test -s conftest.err; then 15546 ac_cpp_err=$ac_c_preproc_warn_flag 15547 else 15548 ac_cpp_err= 15549 fi 15550else 15551 ac_cpp_err=yes 15552fi 15553if test -z "$ac_cpp_err"; then 15554 eval "$as_ac_Header=yes" 15555else 15556 echo "$as_me: failed program was:" >&5 15557 cat "conftest.$ac_ext" >&5 15558 eval "$as_ac_Header=no" 15559fi 15560rm -f conftest.err "conftest.$ac_ext" 15561fi 15562echo "$as_me:15562: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 15563echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 15564if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 15565 cat >>confdefs.h <<EOF 15566#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15567EOF 15568 15569fi 15570done 15571 15572cf_func_grantpt="grantpt ptsname" 15573cf_prefer_openpt=no 15574case $host_os in 15575(darwin[0-9].*) 15576 ;; 15577(openbsd[0-9].*) 15578 # The POSIX entrypoints exist, but have never worked. 15579 ;; 15580(linux*) 15581 cf_func_grantpt="$cf_func_grantpt posix_openpt" 15582 cf_prefer_openpt=yes 15583 ;; 15584(*) 15585 cf_func_grantpt="$cf_func_grantpt posix_openpt" 15586 ;; 15587esac 15588 15589for ac_func in $cf_func_grantpt 15590do 15591as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 15592echo "$as_me:15592: checking for $ac_func" >&5 15593echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 15594if eval "test \"\${$as_ac_var+set}\" = set"; then 15595 echo $ECHO_N "(cached) $ECHO_C" >&6 15596else 15597 cat >"conftest.$ac_ext" <<_ACEOF 15598#line 15598 "configure" 15599#include "confdefs.h" 15600#define $ac_func autoconf_temporary 15601#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 15602#undef $ac_func 15603 15604#ifdef __cplusplus 15605extern "C" 15606#endif 15607 15608/* We use char because int might match the return type of a gcc2 15609 builtin and then its argument prototype would still apply. */ 15610char $ac_func (void); 15611 15612int 15613main (void) 15614{ 15615 15616/* The GNU C library defines stubs for functions which it implements 15617 to always fail with ENOSYS. Some functions are actually named 15618 something starting with __ and the normal name is an alias. */ 15619#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15620#error found stub for $ac_func 15621#endif 15622 15623 return $ac_func (); 15624 ; 15625 return 0; 15626} 15627_ACEOF 15628rm -f "conftest.$ac_objext" "conftest$ac_exeext" 15629if { (eval echo "$as_me:15629: \"$ac_link\"") >&5 15630 (eval $ac_link) 2>&5 15631 ac_status=$? 15632 echo "$as_me:15632: \$? = $ac_status" >&5 15633 (exit "$ac_status"); } && 15634 { ac_try='test -s "conftest$ac_exeext"' 15635 { (eval echo "$as_me:15635: \"$ac_try\"") >&5 15636 (eval $ac_try) 2>&5 15637 ac_status=$? 15638 echo "$as_me:15638: \$? = $ac_status" >&5 15639 (exit "$ac_status"); }; }; then 15640 eval "$as_ac_var=yes" 15641else 15642 echo "$as_me: failed program was:" >&5 15643cat "conftest.$ac_ext" >&5 15644eval "$as_ac_var=no" 15645fi 15646rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 15647fi 15648echo "$as_me:15648: result: `eval echo '${'"$as_ac_var"'}'`" >&5 15649echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 15650if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 15651 cat >>confdefs.h <<EOF 15652#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 15653EOF 15654 15655fi 15656done 15657 15658cf_grantpt_opts= 15659if test "x$ac_cv_func_grantpt" = "xyes" ; then 15660 echo "$as_me:15660: checking if grantpt really works" >&5 15661echo $ECHO_N "checking if grantpt really works... $ECHO_C" >&6 15662 cat >"conftest.$ac_ext" <<_ACEOF 15663#line 15663 "configure" 15664#include "confdefs.h" 15665 15666#include <stdlib.h> 15667#include <stdio.h> 15668#include <termios.h> 15669#include <unistd.h> 15670#include <signal.h> 15671#include <fcntl.h> 15672#include <errno.h> 15673 15674#ifndef HAVE_POSIX_OPENPT 15675#undef posix_openpt 15676#define posix_openpt(mode) open("/dev/ptmx", mode) 15677#endif 15678 15679#ifdef HAVE_STROPTS_H 15680#include <stropts.h> 15681#endif 15682 15683static void failed(int code) 15684{ 15685 perror("conftest"); 15686 exit(code); 15687} 15688 15689static void my_timeout(int sig) 15690{ 15691 (void)sig; 15692 exit(99); 15693} 15694 15695int 15696main (void) 15697{ 15698 15699 int code = 0; 15700 int rc; 15701 int pty; 15702 int tty; 15703 char *slave; 15704 struct termios tio; 15705 15706 (void)tio; 15707 signal(SIGALRM, my_timeout); 15708 15709 if (alarm(2) == 9) 15710 failed(9); 15711 else if ((pty = posix_openpt(O_RDWR)) < 0) 15712 failed(1); 15713 else if ((rc = grantpt(pty)) < 0) 15714 failed(2); 15715 else if ((rc = unlockpt(pty)) < 0) 15716 failed(3); 15717 else if ((slave = ptsname(pty)) == 0) 15718 failed(4); 15719#if (CONFTEST == 3) || defined(CONFTEST_isatty) 15720 else if (!isatty(pty)) 15721 failed(4); 15722#endif 15723#if CONFTEST >= 4 15724 else if ((rc = tcgetattr(pty, &tio)) < 0) 15725 failed(20); 15726 else if ((rc = tcsetattr(pty, TCSAFLUSH, &tio)) < 0) 15727 failed(21); 15728#endif 15729 /* BSD posix_openpt does not treat pty as a terminal until slave is opened. 15730 * Linux does treat it that way. 15731 */ 15732 else if ((tty = open(slave, O_RDWR)) < 0) 15733 failed(5); 15734#ifdef CONFTEST 15735#ifdef I_PUSH 15736#if (CONFTEST == 0) || defined(CONFTEST_ptem) 15737 else if ((rc = ioctl(tty, I_PUSH, "ptem")) < 0) 15738 failed(10); 15739#endif 15740#if (CONFTEST == 1) || defined(CONFTEST_ldterm) 15741 else if ((rc = ioctl(tty, I_PUSH, "ldterm")) < 0) 15742 failed(11); 15743#endif 15744#if (CONFTEST == 2) || defined(CONFTEST_ttcompat) 15745 else if ((rc = ioctl(tty, I_PUSH, "ttcompat")) < 0) 15746 failed(12); 15747#endif 15748#endif /* I_PUSH */ 15749#if CONFTEST >= 5 15750 else if ((rc = tcgetattr(tty, &tio)) < 0) 15751 failed(30); 15752 else if ((rc = tcsetattr(tty, TCSAFLUSH, &tio)) < 0) 15753 failed(31); 15754#endif 15755#endif /* CONFTEST */ 15756 15757 ${cf_cv_main_return:-return}(code); 15758 15759 ; 15760 return 0; 15761} 15762_ACEOF 15763rm -f "conftest.$ac_objext" "conftest$ac_exeext" 15764if { (eval echo "$as_me:15764: \"$ac_link\"") >&5 15765 (eval $ac_link) 2>&5 15766 ac_status=$? 15767 echo "$as_me:15767: \$? = $ac_status" >&5 15768 (exit "$ac_status"); } && 15769 { ac_try='test -s "conftest$ac_exeext"' 15770 { (eval echo "$as_me:15770: \"$ac_try\"") >&5 15771 (eval $ac_try) 2>&5 15772 ac_status=$? 15773 echo "$as_me:15773: \$? = $ac_status" >&5 15774 (exit "$ac_status"); }; }; then 15775 15776 if test "$cross_compiling" = yes; then 15777 ac_cv_func_grantpt=maybe 15778else 15779 cat >"conftest.$ac_ext" <<_ACEOF 15780#line 15780 "configure" 15781#include "confdefs.h" 15782 15783#include <stdlib.h> 15784#include <stdio.h> 15785#include <termios.h> 15786#include <unistd.h> 15787#include <signal.h> 15788#include <fcntl.h> 15789#include <errno.h> 15790 15791#ifndef HAVE_POSIX_OPENPT 15792#undef posix_openpt 15793#define posix_openpt(mode) open("/dev/ptmx", mode) 15794#endif 15795 15796#ifdef HAVE_STROPTS_H 15797#include <stropts.h> 15798#endif 15799 15800static void failed(int code) 15801{ 15802 perror("conftest"); 15803 exit(code); 15804} 15805 15806static void my_timeout(int sig) 15807{ 15808 (void)sig; 15809 exit(99); 15810} 15811 15812int main(void) 15813{ 15814 15815 int code = 0; 15816 int rc; 15817 int pty; 15818 int tty; 15819 char *slave; 15820 struct termios tio; 15821 15822 (void)tio; 15823 signal(SIGALRM, my_timeout); 15824 15825 if (alarm(2) == 9) 15826 failed(9); 15827 else if ((pty = posix_openpt(O_RDWR)) < 0) 15828 failed(1); 15829 else if ((rc = grantpt(pty)) < 0) 15830 failed(2); 15831 else if ((rc = unlockpt(pty)) < 0) 15832 failed(3); 15833 else if ((slave = ptsname(pty)) == 0) 15834 failed(4); 15835#if (CONFTEST == 3) || defined(CONFTEST_isatty) 15836 else if (!isatty(pty)) 15837 failed(4); 15838#endif 15839#if CONFTEST >= 4 15840 else if ((rc = tcgetattr(pty, &tio)) < 0) 15841 failed(20); 15842 else if ((rc = tcsetattr(pty, TCSAFLUSH, &tio)) < 0) 15843 failed(21); 15844#endif 15845 /* BSD posix_openpt does not treat pty as a terminal until slave is opened. 15846 * Linux does treat it that way. 15847 */ 15848 else if ((tty = open(slave, O_RDWR)) < 0) 15849 failed(5); 15850#ifdef CONFTEST 15851#ifdef I_PUSH 15852#if (CONFTEST == 0) || defined(CONFTEST_ptem) 15853 else if ((rc = ioctl(tty, I_PUSH, "ptem")) < 0) 15854 failed(10); 15855#endif 15856#if (CONFTEST == 1) || defined(CONFTEST_ldterm) 15857 else if ((rc = ioctl(tty, I_PUSH, "ldterm")) < 0) 15858 failed(11); 15859#endif 15860#if (CONFTEST == 2) || defined(CONFTEST_ttcompat) 15861 else if ((rc = ioctl(tty, I_PUSH, "ttcompat")) < 0) 15862 failed(12); 15863#endif 15864#endif /* I_PUSH */ 15865#if CONFTEST >= 5 15866 else if ((rc = tcgetattr(tty, &tio)) < 0) 15867 failed(30); 15868 else if ((rc = tcsetattr(tty, TCSAFLUSH, &tio)) < 0) 15869 failed(31); 15870#endif 15871#endif /* CONFTEST */ 15872 15873 ${cf_cv_main_return:-return}(code); 15874 15875} 15876 15877_ACEOF 15878rm -f "conftest$ac_exeext" 15879if { (eval echo "$as_me:15879: \"$ac_link\"") >&5 15880 (eval $ac_link) 2>&5 15881 ac_status=$? 15882 echo "$as_me:15882: \$? = $ac_status" >&5 15883 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 15884 { (eval echo "$as_me:15884: \"$ac_try\"") >&5 15885 (eval $ac_try) 2>&5 15886 ac_status=$? 15887 echo "$as_me:15887: \$? = $ac_status" >&5 15888 (exit "$ac_status"); }; }; then 15889 : 15890else 15891 echo "$as_me: program exited with status $ac_status" >&5 15892echo "$as_me: failed program was:" >&5 15893cat "conftest.$ac_ext" >&5 15894ac_cv_func_grantpt=no 15895 15896fi 15897rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 15898fi 15899 15900else 15901 echo "$as_me: failed program was:" >&5 15902cat "conftest.$ac_ext" >&5 15903ac_cv_func_grantpt=no 15904fi 15905rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 15906 echo "$as_me:15906: result: $ac_cv_func_grantpt" >&5 15907echo "${ECHO_T}$ac_cv_func_grantpt" >&6 15908 15909 if test "x$ac_cv_func_grantpt" != "xno" ; then 15910 15911 if test "x$ac_cv_func_grantpt" = "xyes" ; then 15912 echo "$as_me:15912: checking for pty features" >&5 15913echo $ECHO_N "checking for pty features... $ECHO_C" >&6 15914 if test "x$ac_cv_header_stropts_h" = xyes 15915 then 15916 cf_pty_this=0 15917 else 15918 cf_pty_this=3 15919 fi 15920 15921 cf_pty_defines= 15922 while test $cf_pty_this != 6 15923 do 15924 15925 cf_pty_feature= 15926 cf_pty_next="`expr $cf_pty_this + 1`" 15927 15928echo "${as_me:-configure}:15928: testing pty feature test $cf_pty_next:5 ..." 1>&5 15929 15930 if test "$cross_compiling" = yes; then 15931 { { echo "$as_me:15931: error: cannot run test program while cross compiling" >&5 15932echo "$as_me: error: cannot run test program while cross compiling" >&2;} 15933 { (exit 1); exit 1; }; } 15934else 15935 cat >"conftest.$ac_ext" <<_ACEOF 15936#line 15936 "configure" 15937#include "confdefs.h" 15938#define CONFTEST $cf_pty_this 15939$cf_pty_defines 15940 15941#include <stdlib.h> 15942#include <stdio.h> 15943#include <termios.h> 15944#include <unistd.h> 15945#include <signal.h> 15946#include <fcntl.h> 15947#include <errno.h> 15948 15949#ifndef HAVE_POSIX_OPENPT 15950#undef posix_openpt 15951#define posix_openpt(mode) open("/dev/ptmx", mode) 15952#endif 15953 15954#ifdef HAVE_STROPTS_H 15955#include <stropts.h> 15956#endif 15957 15958static void failed(int code) 15959{ 15960 perror("conftest"); 15961 exit(code); 15962} 15963 15964static void my_timeout(int sig) 15965{ 15966 (void)sig; 15967 exit(99); 15968} 15969 15970int main(void) 15971{ 15972 15973 int code = 0; 15974 int rc; 15975 int pty; 15976 int tty; 15977 char *slave; 15978 struct termios tio; 15979 15980 (void)tio; 15981 signal(SIGALRM, my_timeout); 15982 15983 if (alarm(2) == 9) 15984 failed(9); 15985 else if ((pty = posix_openpt(O_RDWR)) < 0) 15986 failed(1); 15987 else if ((rc = grantpt(pty)) < 0) 15988 failed(2); 15989 else if ((rc = unlockpt(pty)) < 0) 15990 failed(3); 15991 else if ((slave = ptsname(pty)) == 0) 15992 failed(4); 15993#if (CONFTEST == 3) || defined(CONFTEST_isatty) 15994 else if (!isatty(pty)) 15995 failed(4); 15996#endif 15997#if CONFTEST >= 4 15998 else if ((rc = tcgetattr(pty, &tio)) < 0) 15999 failed(20); 16000 else if ((rc = tcsetattr(pty, TCSAFLUSH, &tio)) < 0) 16001 failed(21); 16002#endif 16003 /* BSD posix_openpt does not treat pty as a terminal until slave is opened. 16004 * Linux does treat it that way. 16005 */ 16006 else if ((tty = open(slave, O_RDWR)) < 0) 16007 failed(5); 16008#ifdef CONFTEST 16009#ifdef I_PUSH 16010#if (CONFTEST == 0) || defined(CONFTEST_ptem) 16011 else if ((rc = ioctl(tty, I_PUSH, "ptem")) < 0) 16012 failed(10); 16013#endif 16014#if (CONFTEST == 1) || defined(CONFTEST_ldterm) 16015 else if ((rc = ioctl(tty, I_PUSH, "ldterm")) < 0) 16016 failed(11); 16017#endif 16018#if (CONFTEST == 2) || defined(CONFTEST_ttcompat) 16019 else if ((rc = ioctl(tty, I_PUSH, "ttcompat")) < 0) 16020 failed(12); 16021#endif 16022#endif /* I_PUSH */ 16023#if CONFTEST >= 5 16024 else if ((rc = tcgetattr(tty, &tio)) < 0) 16025 failed(30); 16026 else if ((rc = tcsetattr(tty, TCSAFLUSH, &tio)) < 0) 16027 failed(31); 16028#endif 16029#endif /* CONFTEST */ 16030 16031 ${cf_cv_main_return:-return}(code); 16032 16033} 16034 16035_ACEOF 16036rm -f "conftest$ac_exeext" 16037if { (eval echo "$as_me:16037: \"$ac_link\"") >&5 16038 (eval $ac_link) 2>&5 16039 ac_status=$? 16040 echo "$as_me:16040: \$? = $ac_status" >&5 16041 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 16042 { (eval echo "$as_me:16042: \"$ac_try\"") >&5 16043 (eval $ac_try) 2>&5 16044 ac_status=$? 16045 echo "$as_me:16045: \$? = $ac_status" >&5 16046 (exit "$ac_status"); }; }; then 16047 16048 case $cf_pty_next in 16049 (1) # - streams 16050 cf_pty_feature=ptem 16051 ;; 16052 (2) # - streams 16053 cf_pty_feature=ldterm 16054 ;; 16055 (3) # - streams 16056 cf_pty_feature=ttcompat 16057 ;; 16058 (4) 16059 cf_pty_feature=pty_isatty 16060 ;; 16061 (5) 16062 cf_pty_feature=pty_tcsetattr 16063 ;; 16064 (6) 16065 cf_pty_feature=tty_tcsetattr 16066 ;; 16067 esac 16068 16069else 16070 echo "$as_me: program exited with status $ac_status" >&5 16071echo "$as_me: failed program was:" >&5 16072cat "conftest.$ac_ext" >&5 16073 16074 case $cf_pty_next in 16075 (1|2|3) 16076 16077echo "${as_me:-configure}:16077: testing skipping remaining streams features $cf_pty_this..2 ..." 1>&5 16078 16079 cf_pty_next=3 16080 ;; 16081 esac 16082 16083fi 16084rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 16085fi 16086 if test -n "$cf_pty_feature" 16087 then 16088 cf_pty_defines="$cf_pty_defines 16089#define CONFTEST_$cf_pty_feature 1 16090" 16091 cf_grantpt_opts="$cf_grantpt_opts $cf_pty_feature" 16092 fi 16093 16094 cf_pty_this=$cf_pty_next 16095 done 16096 echo "$as_me:16096: result: $cf_grantpt_opts" >&5 16097echo "${ECHO_T}$cf_grantpt_opts" >&6 16098 cf_grantpt_opts=`echo "$cf_grantpt_opts" | sed -e 's/ isatty//'` 16099 fi 16100 fi 16101fi 16102 16103if test "x$cf_prefer_posix_openpt" = "xyes" && test "x$ac_cv_func_posix_openpt" = "xyes" ; then 16104 test -n "$verbose" && echo " prefer posix_openpt over openpty" 1>&6 16105 16106echo "${as_me:-configure}:16106: testing prefer posix_openpt over openpty ..." 1>&5 16107 16108elif test "x$disable_openpty" != "xyes" || test -z "$cf_grantpt_opts" ; then 16109 echo "$as_me:16109: checking for openpty in -lutil" >&5 16110echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 16111if test "${ac_cv_lib_util_openpty+set}" = set; then 16112 echo $ECHO_N "(cached) $ECHO_C" >&6 16113else 16114 ac_check_lib_save_LIBS=$LIBS 16115LIBS="-lutil $LIBS" 16116cat >"conftest.$ac_ext" <<_ACEOF 16117#line 16117 "configure" 16118#include "confdefs.h" 16119 16120/* Override any gcc2 internal prototype to avoid an error. */ 16121#ifdef __cplusplus 16122extern "C" 16123#endif 16124/* We use char because int might match the return type of a gcc2 16125 builtin and then its argument prototype would still apply. */ 16126char openpty (); 16127int 16128main (void) 16129{ 16130openpty (); 16131 ; 16132 return 0; 16133} 16134_ACEOF 16135rm -f "conftest.$ac_objext" "conftest$ac_exeext" 16136if { (eval echo "$as_me:16136: \"$ac_link\"") >&5 16137 (eval $ac_link) 2>&5 16138 ac_status=$? 16139 echo "$as_me:16139: \$? = $ac_status" >&5 16140 (exit "$ac_status"); } && 16141 { ac_try='test -s "conftest$ac_exeext"' 16142 { (eval echo "$as_me:16142: \"$ac_try\"") >&5 16143 (eval $ac_try) 2>&5 16144 ac_status=$? 16145 echo "$as_me:16145: \$? = $ac_status" >&5 16146 (exit "$ac_status"); }; }; then 16147 ac_cv_lib_util_openpty=yes 16148else 16149 echo "$as_me: failed program was:" >&5 16150cat "conftest.$ac_ext" >&5 16151ac_cv_lib_util_openpty=no 16152fi 16153rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 16154LIBS=$ac_check_lib_save_LIBS 16155fi 16156echo "$as_me:16156: result: $ac_cv_lib_util_openpty" >&5 16157echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 16158if test "$ac_cv_lib_util_openpty" = yes; then 16159 cf_have_openpty=yes 16160else 16161 cf_have_openpty=no 16162fi 16163 16164 if test "$cf_have_openpty" = yes ; then 16165 ac_cv_func_grantpt=no 16166 LIBS="-lutil $LIBS" 16167 16168cat >>confdefs.h <<\EOF 16169#define HAVE_OPENPTY 1 16170EOF 16171 16172for ac_header in \ 16173 util.h \ 16174 libutil.h \ 16175 pty.h \ 16176 16177do 16178as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16179echo "$as_me:16179: checking for $ac_header" >&5 16180echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 16181if eval "test \"\${$as_ac_Header+set}\" = set"; then 16182 echo $ECHO_N "(cached) $ECHO_C" >&6 16183else 16184 cat >"conftest.$ac_ext" <<_ACEOF 16185#line 16185 "configure" 16186#include "confdefs.h" 16187#include <$ac_header> 16188_ACEOF 16189if { (eval echo "$as_me:16189: \"$ac_cpp "conftest.$ac_ext"\"") >&5 16190 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 16191 ac_status=$? 16192 $EGREP -v '^ *\+' conftest.er1 >conftest.err 16193 rm -f conftest.er1 16194 cat conftest.err >&5 16195 echo "$as_me:16195: \$? = $ac_status" >&5 16196 (exit "$ac_status"); } >/dev/null; then 16197 if test -s conftest.err; then 16198 ac_cpp_err=$ac_c_preproc_warn_flag 16199 else 16200 ac_cpp_err= 16201 fi 16202else 16203 ac_cpp_err=yes 16204fi 16205if test -z "$ac_cpp_err"; then 16206 eval "$as_ac_Header=yes" 16207else 16208 echo "$as_me: failed program was:" >&5 16209 cat "conftest.$ac_ext" >&5 16210 eval "$as_ac_Header=no" 16211fi 16212rm -f conftest.err "conftest.$ac_ext" 16213fi 16214echo "$as_me:16214: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 16215echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 16216if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 16217 cat >>confdefs.h <<EOF 16218#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16219EOF 16220 16221fi 16222done 16223 16224 fi 16225fi 16226 16227if test "x$ac_cv_func_grantpt" != xno 16228then 16229 test -n "$verbose" && echo " will rely upon grantpt" 1>&6 16230 16231echo "${as_me:-configure}:16231: testing will rely upon grantpt ..." 1>&5 16232 16233cat >>confdefs.h <<\EOF 16234#define HAVE_WORKING_GRANTPT 1 16235EOF 16236 16237 for cf_feature in $cf_grantpt_opts 16238 do 16239 cf_feature=`echo "$cf_feature" | sed -e 's/ //g'` 16240 16241cf_FEATURE=`echo "$cf_feature" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 16242 16243 cat >>confdefs.h <<EOF 16244#define HAVE_GRANTPT_$cf_FEATURE 1 16245EOF 16246 16247 done 16248elif test "x$cf_have_openpty" = xno 16249then 16250 test -n "$verbose" && echo " will rely upon BSD-pseudoterminals" 1>&6 16251 16252echo "${as_me:-configure}:16252: testing will rely upon BSD-pseudoterminals ..." 1>&5 16253 16254else 16255 test -n "$verbose" && echo " will rely upon openpty" 1>&6 16256 16257echo "${as_me:-configure}:16257: testing will rely upon openpty ..." 1>&5 16258 16259fi 16260 16261echo "$as_me:16261: checking if we can use XkbQueryExtension" >&5 16262echo $ECHO_N "checking if we can use XkbQueryExtension... $ECHO_C" >&6 16263if test "${cf_cv_xkb_query_extension+set}" = set; then 16264 echo $ECHO_N "(cached) $ECHO_C" >&6 16265else 16266 16267cat >"conftest.$ac_ext" <<_ACEOF 16268#line 16268 "configure" 16269#include "confdefs.h" 16270 16271#include <X11/Xlib.h> 16272#include <X11/extensions/XKB.h> 16273#include <X11/XKBlib.h> 16274 16275int 16276main (void) 16277{ 16278 16279 int xkbmajor = XkbMajorVersion; 16280 int xkbminor = XkbMinorVersion; 16281 int xkbopcode, xkbevent, xkberror; 16282 16283 if (XkbLibraryVersion(&xkbmajor, &xkbminor) 16284 && XkbQueryExtension((Display *)0, 16285 &xkbopcode, 16286 &xkbevent, 16287 &xkberror, 16288 &xkbmajor, 16289 &xkbminor)) 16290 return 0; 16291 16292 ; 16293 return 0; 16294} 16295_ACEOF 16296rm -f "conftest.$ac_objext" 16297if { (eval echo "$as_me:16297: \"$ac_compile\"") >&5 16298 (eval $ac_compile) 2>&5 16299 ac_status=$? 16300 echo "$as_me:16300: \$? = $ac_status" >&5 16301 (exit "$ac_status"); } && 16302 { ac_try='test -s "conftest.$ac_objext"' 16303 { (eval echo "$as_me:16303: \"$ac_try\"") >&5 16304 (eval $ac_try) 2>&5 16305 ac_status=$? 16306 echo "$as_me:16306: \$? = $ac_status" >&5 16307 (exit "$ac_status"); }; }; then 16308 16309cf_cv_xkb_query_extension=yes 16310 16311else 16312 echo "$as_me: failed program was:" >&5 16313cat "conftest.$ac_ext" >&5 16314 16315cf_cv_xkb_query_extension=no 16316 16317fi 16318rm -f "conftest.$ac_objext" "conftest.$ac_ext" 16319 16320fi 16321echo "$as_me:16321: result: $cf_cv_xkb_query_extension" >&5 16322echo "${ECHO_T}$cf_cv_xkb_query_extension" >&6 16323 16324if test $cf_cv_xkb_query_extension = yes 16325then 16326 16327for ac_func in XkbQueryExtension 16328do 16329as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16330echo "$as_me:16330: checking for $ac_func" >&5 16331echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16332if eval "test \"\${$as_ac_var+set}\" = set"; then 16333 echo $ECHO_N "(cached) $ECHO_C" >&6 16334else 16335 cat >"conftest.$ac_ext" <<_ACEOF 16336#line 16336 "configure" 16337#include "confdefs.h" 16338#define $ac_func autoconf_temporary 16339#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 16340#undef $ac_func 16341 16342#ifdef __cplusplus 16343extern "C" 16344#endif 16345 16346/* We use char because int might match the return type of a gcc2 16347 builtin and then its argument prototype would still apply. */ 16348char $ac_func (void); 16349 16350int 16351main (void) 16352{ 16353 16354/* The GNU C library defines stubs for functions which it implements 16355 to always fail with ENOSYS. Some functions are actually named 16356 something starting with __ and the normal name is an alias. */ 16357#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16358#error found stub for $ac_func 16359#endif 16360 16361 return $ac_func (); 16362 ; 16363 return 0; 16364} 16365_ACEOF 16366rm -f "conftest.$ac_objext" "conftest$ac_exeext" 16367if { (eval echo "$as_me:16367: \"$ac_link\"") >&5 16368 (eval $ac_link) 2>&5 16369 ac_status=$? 16370 echo "$as_me:16370: \$? = $ac_status" >&5 16371 (exit "$ac_status"); } && 16372 { ac_try='test -s "conftest$ac_exeext"' 16373 { (eval echo "$as_me:16373: \"$ac_try\"") >&5 16374 (eval $ac_try) 2>&5 16375 ac_status=$? 16376 echo "$as_me:16376: \$? = $ac_status" >&5 16377 (exit "$ac_status"); }; }; then 16378 eval "$as_ac_var=yes" 16379else 16380 echo "$as_me: failed program was:" >&5 16381cat "conftest.$ac_ext" >&5 16382eval "$as_ac_var=no" 16383fi 16384rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 16385fi 16386echo "$as_me:16386: result: `eval echo '${'"$as_ac_var"'}'`" >&5 16387echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 16388if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 16389 cat >>confdefs.h <<EOF 16390#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16391EOF 16392 16393fi 16394done 16395 16396fi 16397 16398echo "$as_me:16398: checking if we can use XkbKeycodeToKeysym" >&5 16399echo $ECHO_N "checking if we can use XkbKeycodeToKeysym... $ECHO_C" >&6 16400if test "${cf_cv_xkb_keycode_to_keysym+set}" = set; then 16401 echo $ECHO_N "(cached) $ECHO_C" >&6 16402else 16403 16404cat >"conftest.$ac_ext" <<_ACEOF 16405#line 16405 "configure" 16406#include "confdefs.h" 16407 16408#include <X11/Xlib.h> 16409#include <X11/XKBlib.h> 16410 16411int 16412main (void) 16413{ 16414 16415 KeySym keysym = XkbKeycodeToKeysym((Display *)0, 0, 0, 0); 16416 (void)keysym; 16417 16418 ; 16419 return 0; 16420} 16421_ACEOF 16422rm -f "conftest.$ac_objext" 16423if { (eval echo "$as_me:16423: \"$ac_compile\"") >&5 16424 (eval $ac_compile) 2>&5 16425 ac_status=$? 16426 echo "$as_me:16426: \$? = $ac_status" >&5 16427 (exit "$ac_status"); } && 16428 { ac_try='test -s "conftest.$ac_objext"' 16429 { (eval echo "$as_me:16429: \"$ac_try\"") >&5 16430 (eval $ac_try) 2>&5 16431 ac_status=$? 16432 echo "$as_me:16432: \$? = $ac_status" >&5 16433 (exit "$ac_status"); }; }; then 16434 16435cf_cv_xkb_keycode_to_keysym=yes 16436 16437else 16438 echo "$as_me: failed program was:" >&5 16439cat "conftest.$ac_ext" >&5 16440 16441cf_cv_xkb_keycode_to_keysym=no 16442 16443fi 16444rm -f "conftest.$ac_objext" "conftest.$ac_ext" 16445 16446fi 16447echo "$as_me:16447: result: $cf_cv_xkb_keycode_to_keysym" >&5 16448echo "${ECHO_T}$cf_cv_xkb_keycode_to_keysym" >&6 16449 16450if test $cf_cv_xkb_keycode_to_keysym = yes 16451then 16452 16453for ac_func in XkbKeycodeToKeysym 16454do 16455as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16456echo "$as_me:16456: checking for $ac_func" >&5 16457echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16458if eval "test \"\${$as_ac_var+set}\" = set"; then 16459 echo $ECHO_N "(cached) $ECHO_C" >&6 16460else 16461 cat >"conftest.$ac_ext" <<_ACEOF 16462#line 16462 "configure" 16463#include "confdefs.h" 16464#define $ac_func autoconf_temporary 16465#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 16466#undef $ac_func 16467 16468#ifdef __cplusplus 16469extern "C" 16470#endif 16471 16472/* We use char because int might match the return type of a gcc2 16473 builtin and then its argument prototype would still apply. */ 16474char $ac_func (void); 16475 16476int 16477main (void) 16478{ 16479 16480/* The GNU C library defines stubs for functions which it implements 16481 to always fail with ENOSYS. Some functions are actually named 16482 something starting with __ and the normal name is an alias. */ 16483#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16484#error found stub for $ac_func 16485#endif 16486 16487 return $ac_func (); 16488 ; 16489 return 0; 16490} 16491_ACEOF 16492rm -f "conftest.$ac_objext" "conftest$ac_exeext" 16493if { (eval echo "$as_me:16493: \"$ac_link\"") >&5 16494 (eval $ac_link) 2>&5 16495 ac_status=$? 16496 echo "$as_me:16496: \$? = $ac_status" >&5 16497 (exit "$ac_status"); } && 16498 { ac_try='test -s "conftest$ac_exeext"' 16499 { (eval echo "$as_me:16499: \"$ac_try\"") >&5 16500 (eval $ac_try) 2>&5 16501 ac_status=$? 16502 echo "$as_me:16502: \$? = $ac_status" >&5 16503 (exit "$ac_status"); }; }; then 16504 eval "$as_ac_var=yes" 16505else 16506 echo "$as_me: failed program was:" >&5 16507cat "conftest.$ac_ext" >&5 16508eval "$as_ac_var=no" 16509fi 16510rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 16511fi 16512echo "$as_me:16512: result: `eval echo '${'"$as_ac_var"'}'`" >&5 16513echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 16514if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 16515 cat >>confdefs.h <<EOF 16516#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16517EOF 16518 16519fi 16520done 16521 16522fi 16523 16524cf_save_LIBS_CF_XKB_BELL_EXT="$LIBS" 16525cf_save_CFLAGS_CF_XKB_BELL_EXT="$CFLAGS" 16526cf_save_CPPFLAGS_CF_XKB_BELL_EXT="$CPPFLAGS" 16527LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}" 16528for cf_X_CFLAGS in $X_CFLAGS 16529do 16530 case "x$cf_X_CFLAGS" in 16531 x-[IUD]*) 16532 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS" 16533 ;; 16534 *) 16535 CFLAGS="$CFLAGS $cf_X_CFLAGS" 16536 ;; 16537 esac 16538done 16539 16540echo "$as_me:16540: checking for XKB Bell extension" >&5 16541echo $ECHO_N "checking for XKB Bell extension... $ECHO_C" >&6 16542if test "${cf_cv_xkb_bell_ext+set}" = set; then 16543 echo $ECHO_N "(cached) $ECHO_C" >&6 16544else 16545 16546cat >"conftest.$ac_ext" <<_ACEOF 16547#line 16547 "configure" 16548#include "confdefs.h" 16549 16550#include <X11/Intrinsic.h> 16551#include <X11/XKBlib.h> /* has the prototype */ 16552#include <X11/extensions/XKBbells.h> /* has the XkbBI_xxx definitions */ 16553 16554int 16555main (void) 16556{ 16557 16558 int x = (XkbBI_Info |XkbBI_MinorError |XkbBI_MajorError |XkbBI_TerminalBell |XkbBI_MarginBell); 16559 Atom y = 0; 16560 (void)x; 16561 XkbBell((Display *)0, (Widget)0, 0, y); 16562 16563 ; 16564 return 0; 16565} 16566_ACEOF 16567rm -f "conftest.$ac_objext" "conftest$ac_exeext" 16568if { (eval echo "$as_me:16568: \"$ac_link\"") >&5 16569 (eval $ac_link) 2>&5 16570 ac_status=$? 16571 echo "$as_me:16571: \$? = $ac_status" >&5 16572 (exit "$ac_status"); } && 16573 { ac_try='test -s "conftest$ac_exeext"' 16574 { (eval echo "$as_me:16574: \"$ac_try\"") >&5 16575 (eval $ac_try) 2>&5 16576 ac_status=$? 16577 echo "$as_me:16577: \$? = $ac_status" >&5 16578 (exit "$ac_status"); }; }; then 16579 cf_cv_xkb_bell_ext=yes 16580else 16581 echo "$as_me: failed program was:" >&5 16582cat "conftest.$ac_ext" >&5 16583cf_cv_xkb_bell_ext=no 16584fi 16585rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 16586 16587fi 16588echo "$as_me:16588: result: $cf_cv_xkb_bell_ext" >&5 16589echo "${ECHO_T}$cf_cv_xkb_bell_ext" >&6 16590test "$cf_cv_xkb_bell_ext" = yes && 16591cat >>confdefs.h <<\EOF 16592#define HAVE_XKB_BELL_EXT 1 16593EOF 16594 16595LIBS="$cf_save_LIBS_CF_XKB_BELL_EXT" 16596CFLAGS="$cf_save_CFLAGS_CF_XKB_BELL_EXT" 16597CPPFLAGS="$cf_save_CPPFLAGS_CF_XKB_BELL_EXT" 16598 16599for ac_func in Xutf8LookupString 16600do 16601as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16602echo "$as_me:16602: checking for $ac_func" >&5 16603echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16604if eval "test \"\${$as_ac_var+set}\" = set"; then 16605 echo $ECHO_N "(cached) $ECHO_C" >&6 16606else 16607 cat >"conftest.$ac_ext" <<_ACEOF 16608#line 16608 "configure" 16609#include "confdefs.h" 16610#define $ac_func autoconf_temporary 16611#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 16612#undef $ac_func 16613 16614#ifdef __cplusplus 16615extern "C" 16616#endif 16617 16618/* We use char because int might match the return type of a gcc2 16619 builtin and then its argument prototype would still apply. */ 16620char $ac_func (void); 16621 16622int 16623main (void) 16624{ 16625 16626/* The GNU C library defines stubs for functions which it implements 16627 to always fail with ENOSYS. Some functions are actually named 16628 something starting with __ and the normal name is an alias. */ 16629#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16630#error found stub for $ac_func 16631#endif 16632 16633 return $ac_func (); 16634 ; 16635 return 0; 16636} 16637_ACEOF 16638rm -f "conftest.$ac_objext" "conftest$ac_exeext" 16639if { (eval echo "$as_me:16639: \"$ac_link\"") >&5 16640 (eval $ac_link) 2>&5 16641 ac_status=$? 16642 echo "$as_me:16642: \$? = $ac_status" >&5 16643 (exit "$ac_status"); } && 16644 { ac_try='test -s "conftest$ac_exeext"' 16645 { (eval echo "$as_me:16645: \"$ac_try\"") >&5 16646 (eval $ac_try) 2>&5 16647 ac_status=$? 16648 echo "$as_me:16648: \$? = $ac_status" >&5 16649 (exit "$ac_status"); }; }; then 16650 eval "$as_ac_var=yes" 16651else 16652 echo "$as_me: failed program was:" >&5 16653cat "conftest.$ac_ext" >&5 16654eval "$as_ac_var=no" 16655fi 16656rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 16657fi 16658echo "$as_me:16658: result: `eval echo '${'"$as_ac_var"'}'`" >&5 16659echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 16660if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 16661 cat >>confdefs.h <<EOF 16662#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16663EOF 16664 16665else 16666 16667 EXTRAHDRS="$EXTRAHDRS xutf8.h" 16668 EXTRASRCS="$EXTRASRCS xutf8.c" 16669 EXTRAOBJS="$EXTRAOBJS xutf8.o" 16670 16671fi 16672done 16673 16674echo "$as_me:16674: checking if you want narrow prototypes for X libraries" >&5 16675echo $ECHO_N "checking if you want narrow prototypes for X libraries... $ECHO_C" >&6 16676 16677case `$ac_config_guess` in 16678(*freebsd*|*gnu*|*irix5*|*irix6*|*netbsd*|*openbsd*|*qnx*|*sco*|*sgi*) 16679 cf_default_narrowproto=yes 16680 ;; 16681(*) 16682 cf_default_narrowproto=no 16683 ;; 16684esac 16685 16686# Check whether --enable-narrowproto or --disable-narrowproto was given. 16687if test "${enable_narrowproto+set}" = set; then 16688 enableval="$enable_narrowproto" 16689 test "$enableval" != no && enableval=yes 16690 if test "$enableval" != "$cf_default_narrowproto" ; then 16691 enable_narrowproto=$enableval 16692 else 16693 enable_narrowproto=$cf_default_narrowproto 16694 fi 16695else 16696 enableval=$cf_default_narrowproto 16697 enable_narrowproto=$cf_default_narrowproto 16698 16699fi; 16700echo "$as_me:16700: result: $enable_narrowproto" >&5 16701echo "${ECHO_T}$enable_narrowproto" >&6 16702 16703echo "$as_me:16703: checking if we should use imake to help" >&5 16704echo $ECHO_N "checking if we should use imake to help... $ECHO_C" >&6 16705 16706# Check whether --enable-imake or --disable-imake was given. 16707if test "${enable_imake+set}" = set; then 16708 enableval="$enable_imake" 16709 test "$enableval" != no && enableval=yes 16710 if test "$enableval" != "yes" ; then 16711 enable_imake=no 16712 else 16713 enable_imake=yes 16714 fi 16715else 16716 enableval=yes 16717 enable_imake=yes 16718 16719fi; 16720echo "$as_me:16720: result: $enable_imake" >&5 16721echo "${ECHO_T}$enable_imake" >&6 16722 16723if test "$enable_imake" = yes ; then 16724 16725for ac_prog in xmkmf imake 16726do 16727 # Extract the first word of "$ac_prog", so it can be a program name with args. 16728set dummy $ac_prog; ac_word=$2 16729echo "$as_me:16729: checking for $ac_word" >&5 16730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 16731if test "${ac_cv_path_IMAKE+set}" = set; then 16732 echo $ECHO_N "(cached) $ECHO_C" >&6 16733else 16734 case $IMAKE in 16735 [\\/]* | ?:[\\/]*) 16736 ac_cv_path_IMAKE="$IMAKE" # Let the user override the test with a path. 16737 ;; 16738 *) 16739 ac_save_IFS=$IFS; IFS=$ac_path_separator 16740ac_dummy="$PATH" 16741for ac_dir in $ac_dummy; do 16742 IFS=$ac_save_IFS 16743 test -z "$ac_dir" && ac_dir=. 16744 if $as_executable_p "$ac_dir/$ac_word"; then 16745 ac_cv_path_IMAKE="$ac_dir/$ac_word" 16746 echo "$as_me:16746: found $ac_dir/$ac_word" >&5 16747 break 16748fi 16749done 16750 16751 ;; 16752esac 16753fi 16754IMAKE=$ac_cv_path_IMAKE 16755 16756if test -n "$IMAKE"; then 16757 echo "$as_me:16757: result: $IMAKE" >&5 16758echo "${ECHO_T}$IMAKE" >&6 16759else 16760 echo "$as_me:16760: result: no" >&5 16761echo "${ECHO_T}no" >&6 16762fi 16763 16764 test -n "$IMAKE" && break 16765done 16766 16767if test -n "$IMAKE" ; then 16768 16769case $IMAKE in 16770(*/imake) 16771 cf_imake_opts="-DUseInstalled=YES" 16772 ;; 16773(*/util/xmkmf) 16774 # A single parameter tells xmkmf where the config-files are: 16775 cf_imake_opts="`echo "$IMAKE"|sed -e s,/config/util/xmkmf,,`" 16776 ;; 16777(*) 16778 cf_imake_opts= 16779 ;; 16780esac 16781 16782# If it's installed properly, imake (or its wrapper, xmkmf) will point to the 16783# config directory. 16784if mkdir conftestdir; then 16785 CDPATH=; export CDPATH 16786 cf_makefile=`cd "$srcdir" || exit;pwd`/Imakefile 16787 cd conftestdir 16788 16789 cat >fix_cflags.sed <<'CF_EOF' 16790s/\\//g 16791s/[ ][ ]*/ /g 16792s/"//g 16793:pack 16794s/\(=[^ ][^ ]*\) \([^-]\)/\1 \2/g 16795t pack 16796s/\(-D[a-zA-Z0-9_][a-zA-Z0-9_]*\)=\([^\'0-9 ][^ ]*\)/\1='\\"\2\\"'/g 16797s/^IMAKE[ ]/IMAKE_CFLAGS="/ 16798s/ / /g 16799s/$/"/ 16800CF_EOF 16801 16802 cat >fix_lflags.sed <<'CF_EOF' 16803s/^IMAKE[ ]*/IMAKE_LOADFLAGS="/ 16804s/$/"/ 16805CF_EOF 16806 16807 echo >./Imakefile 16808 test -f "$cf_makefile" && cat "$cf_makefile" >>./Imakefile 16809 16810 cat >> ./Imakefile <<'CF_EOF' 16811findstddefs: 16812 @echo IMAKE ${ALLDEFINES} $(MAIN_DEFINES) $(VENDORMANDEFS) | sed -f fix_cflags.sed 16813 @echo IMAKE ${EXTRA_LOAD_FLAGS} | sed -f fix_lflags.sed 16814CF_EOF 16815 16816 if ( $IMAKE "$cf_imake_opts" 1>/dev/null 2>&5 && test -f Makefile) 16817 then 16818 test -n "$verbose" && echo " Using $IMAKE $cf_imake_opts" 1>&6 16819 16820echo "${as_me:-configure}:16820: testing Using $IMAKE $cf_imake_opts ..." 1>&5 16821 16822 else 16823 # sometimes imake doesn't have the config path compiled in. Find it. 16824 cf_config= 16825 for cf_libpath in $X_LIBS $LIBS ; do 16826 case "$cf_libpath" in 16827 (-L*) 16828 cf_libpath=`echo ".$cf_libpath" | sed -e 's/^...//'` 16829 cf_libpath="$cf_libpath/X11/config" 16830 if test -d "$cf_libpath" ; then 16831 cf_config="$cf_libpath" 16832 break 16833 fi 16834 ;; 16835 esac 16836 done 16837 if test -z "$cf_config" ; then 16838 { echo "$as_me:16838: WARNING: Could not find imake config-directory" >&5 16839echo "$as_me: WARNING: Could not find imake config-directory" >&2;} 16840 else 16841 cf_imake_opts="$cf_imake_opts -I$cf_config" 16842 if ( "$IMAKE" -v "$cf_imake_opts" 2>&5) 16843 then 16844 test -n "$verbose" && echo " Using $IMAKE $cf_config" 1>&6 16845 16846echo "${as_me:-configure}:16846: testing Using $IMAKE $cf_config ..." 1>&5 16847 16848 else 16849 { echo "$as_me:16849: WARNING: Cannot run $IMAKE" >&5 16850echo "$as_me: WARNING: Cannot run $IMAKE" >&2;} 16851 fi 16852 fi 16853 fi 16854 16855 # GNU make sometimes prints "make[1]: Entering...", which 16856 # would confuse us. 16857 eval "`make findstddefs 2>/dev/null | grep -v make`" 16858 16859 cd .. 16860 rm -rf conftestdir 16861 16862 # We use ${ALLDEFINES} rather than ${STD_DEFINES} because the former 16863 # declares XTFUNCPROTO there. However, some vendors (e.g., SGI) have 16864 # modified it to support site.cf, adding a kludge for the /usr/include 16865 # directory. Try to filter that out, otherwise gcc won't find its 16866 # headers. 16867 if test -n "$GCC" ; then 16868 if test -n "$IMAKE_CFLAGS" ; then 16869 cf_nostdinc="" 16870 cf_std_incl="" 16871 cf_cpp_opts="" 16872 for cf_opt in $IMAKE_CFLAGS 16873 do 16874 case "$cf_opt" in 16875 (-nostdinc) 16876 cf_nostdinc="$cf_opt" 16877 ;; 16878 (-I/usr/include) 16879 cf_std_incl="$cf_opt" 16880 ;; 16881 (*) 16882 cf_cpp_opts="$cf_cpp_opts $cf_opt" 16883 ;; 16884 esac 16885 done 16886 if test -z "$cf_nostdinc" ; then 16887 IMAKE_CFLAGS="$cf_cpp_opts $cf_std_incl" 16888 elif test -z "$cf_std_incl" ; then 16889 IMAKE_CFLAGS="$cf_cpp_opts $cf_nostdinc" 16890 else 16891 test -n "$verbose" && echo " suppressed \"$cf_nostdinc\" and \"$cf_std_incl\"" 1>&6 16892 16893echo "${as_me:-configure}:16893: testing suppressed \"$cf_nostdinc\" and \"$cf_std_incl\" ..." 1>&5 16894 16895 IMAKE_CFLAGS="$cf_cpp_opts" 16896 fi 16897 fi 16898 fi 16899fi 16900 16901# Some imake configurations define PROJECTROOT with an empty value. Remove 16902# the empty definition. 16903case $IMAKE_CFLAGS in 16904(*-DPROJECTROOT=/*) 16905 ;; 16906(*) 16907 IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" |sed -e "s,-DPROJECTROOT=[ ], ,"` 16908 ;; 16909esac 16910 16911fi 16912 16913test -n "$verbose" && echo " IMAKE_CFLAGS $IMAKE_CFLAGS" 1>&6 16914 16915echo "${as_me:-configure}:16915: testing IMAKE_CFLAGS $IMAKE_CFLAGS ..." 1>&5 16916 16917test -n "$verbose" && echo " IMAKE_LOADFLAGS $IMAKE_LOADFLAGS" 1>&6 16918 16919echo "${as_me:-configure}:16919: testing IMAKE_LOADFLAGS $IMAKE_LOADFLAGS ..." 1>&5 16920 16921fi 16922 16923if test -n "$IMAKE" && test -n "$IMAKE_CFLAGS" ; then 16924 16925cf_fix_cppflags=no 16926cf_new_cflags= 16927cf_new_cppflags= 16928cf_new_extra_cppflags= 16929 16930for cf_add_cflags in $IMAKE_CFLAGS 16931do 16932case "$cf_fix_cppflags" in 16933(no) 16934 case "$cf_add_cflags" in 16935 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 16936 case "$cf_add_cflags" in 16937 (-D*) 16938 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 16939 16940 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 16941 && test -z "${cf_tst_cflags}" \ 16942 && cf_fix_cppflags=yes 16943 16944 if test "$cf_fix_cppflags" = yes ; then 16945 16946 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 16947 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 16948 16949 continue 16950 elif test "${cf_tst_cflags}" = "\"'" ; then 16951 16952 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 16953 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 16954 16955 continue 16956 fi 16957 ;; 16958 esac 16959 case "$CPPFLAGS" in 16960 (*$cf_add_cflags) 16961 ;; 16962 (*) 16963 case "$cf_add_cflags" in 16964 (-D*) 16965 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 16966 16967CPPFLAGS=`echo "$CPPFLAGS" | \ 16968 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 16969 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 16970 16971 ;; 16972 esac 16973 16974 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 16975 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 16976 16977 ;; 16978 esac 16979 ;; 16980 (*) 16981 16982 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 16983 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 16984 16985 ;; 16986 esac 16987 ;; 16988(yes) 16989 16990 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 16991 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 16992 16993 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 16994 16995 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 16996 && test -z "${cf_tst_cflags}" \ 16997 && cf_fix_cppflags=no 16998 ;; 16999esac 17000done 17001 17002if test -n "$cf_new_cflags" ; then 17003 17004 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 17005 CFLAGS="${CFLAGS}$cf_new_cflags" 17006 17007fi 17008 17009if test -n "$cf_new_cppflags" ; then 17010 17011 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 17012 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 17013 17014fi 17015 17016if test -n "$cf_new_extra_cppflags" ; then 17017 17018 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 17019 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 17020 17021fi 17022 17023else 17024 IMAKE_CFLAGS= 17025 IMAKE_LOADFLAGS= 17026 test -n "$verbose" && echo " make fallback definitions" 1>&6 17027 17028echo "${as_me:-configure}:17028: testing make fallback definitions ..." 1>&5 17029 17030 # We prefer config.guess' values when we can get them, to avoid 17031 # inconsistent results with uname (AIX for instance). However, 17032 # config.guess is not always consistent either. 17033 case $host_os in 17034 (*[0-9].[0-9]*) 17035 UNAME_RELEASE="$host_os" 17036 ;; 17037 (*) 17038 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown 17039 ;; 17040 esac 17041 17042 case .$UNAME_RELEASE in 17043 (*[0-9].[0-9]*) 17044 OSMAJORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/\..*//'` 17045 OSMINORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/^[^.]*\.//' -e 's/\..*//' -e 's/[^0-9].*//' ` 17046 test -z "$OSMAJORVERSION" && OSMAJORVERSION=1 17047 test -z "$OSMINORVERSION" && OSMINORVERSION=0 17048 IMAKE_CFLAGS="-DOSMAJORVERSION=$OSMAJORVERSION -DOSMINORVERSION=$OSMINORVERSION $IMAKE_CFLAGS" 17049 ;; 17050 esac 17051 17052 # FUNCPROTO is standard with X11R6, but XFree86 drops it, leaving some 17053 # fallback/fragments for NeedPrototypes, etc. 17054 IMAKE_CFLAGS="-DFUNCPROTO=15 $IMAKE_CFLAGS" 17055 17056 # If this is not set properly, Xaw's scrollbars will not work 17057 if test "$enable_narrowproto" = yes ; then 17058 IMAKE_CFLAGS="-DNARROWPROTO=1 $IMAKE_CFLAGS" 17059 fi 17060 17061 # Other special definitions: 17062 case $host_os in 17063 (aix*) 17064 # imake on AIX 5.1 defines AIXV3. really. 17065 IMAKE_CFLAGS="-DAIXV3 -DAIXV4 $IMAKE_CFLAGS" 17066 ;; 17067 (irix[56].*) 17068 # these are needed to make SIGWINCH work in xterm 17069 IMAKE_CFLAGS="-DSYSV -DSVR4 $IMAKE_CFLAGS" 17070 ;; 17071 esac 17072 17073cf_fix_cppflags=no 17074cf_new_cflags= 17075cf_new_cppflags= 17076cf_new_extra_cppflags= 17077 17078for cf_add_cflags in $IMAKE_CFLAGS 17079do 17080case "$cf_fix_cppflags" in 17081(no) 17082 case "$cf_add_cflags" in 17083 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 17084 case "$cf_add_cflags" in 17085 (-D*) 17086 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 17087 17088 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 17089 && test -z "${cf_tst_cflags}" \ 17090 && cf_fix_cppflags=yes 17091 17092 if test "$cf_fix_cppflags" = yes ; then 17093 17094 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 17095 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 17096 17097 continue 17098 elif test "${cf_tst_cflags}" = "\"'" ; then 17099 17100 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 17101 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 17102 17103 continue 17104 fi 17105 ;; 17106 esac 17107 case "$CPPFLAGS" in 17108 (*$cf_add_cflags) 17109 ;; 17110 (*) 17111 case "$cf_add_cflags" in 17112 (-D*) 17113 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 17114 17115CPPFLAGS=`echo "$CPPFLAGS" | \ 17116 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 17117 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 17118 17119 ;; 17120 esac 17121 17122 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 17123 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 17124 17125 ;; 17126 esac 17127 ;; 17128 (*) 17129 17130 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 17131 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 17132 17133 ;; 17134 esac 17135 ;; 17136(yes) 17137 17138 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 17139 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 17140 17141 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 17142 17143 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 17144 && test -z "${cf_tst_cflags}" \ 17145 && cf_fix_cppflags=no 17146 ;; 17147esac 17148done 17149 17150if test -n "$cf_new_cflags" ; then 17151 17152 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 17153 CFLAGS="${CFLAGS}$cf_new_cflags" 17154 17155fi 17156 17157if test -n "$cf_new_cppflags" ; then 17158 17159 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 17160 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 17161 17162fi 17163 17164if test -n "$cf_new_extra_cppflags" ; then 17165 17166 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 17167 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 17168 17169fi 17170 17171fi 17172 17173# Extract the first word of "groff", so it can be a program name with args. 17174set dummy groff; ac_word=$2 17175echo "$as_me:17175: checking for $ac_word" >&5 17176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 17177if test "${ac_cv_path_GROFF_PATH+set}" = set; then 17178 echo $ECHO_N "(cached) $ECHO_C" >&6 17179else 17180 case $GROFF_PATH in 17181 [\\/]* | ?:[\\/]*) 17182 ac_cv_path_GROFF_PATH="$GROFF_PATH" # Let the user override the test with a path. 17183 ;; 17184 *) 17185 ac_save_IFS=$IFS; IFS=$ac_path_separator 17186ac_dummy="$PATH" 17187for ac_dir in $ac_dummy; do 17188 IFS=$ac_save_IFS 17189 test -z "$ac_dir" && ac_dir=. 17190 if $as_executable_p "$ac_dir/$ac_word"; then 17191 ac_cv_path_GROFF_PATH="$ac_dir/$ac_word" 17192 echo "$as_me:17192: found $ac_dir/$ac_word" >&5 17193 break 17194fi 17195done 17196 17197 test -z "$ac_cv_path_GROFF_PATH" && ac_cv_path_GROFF_PATH="no" 17198 ;; 17199esac 17200fi 17201GROFF_PATH=$ac_cv_path_GROFF_PATH 17202 17203if test -n "$GROFF_PATH"; then 17204 echo "$as_me:17204: result: $GROFF_PATH" >&5 17205echo "${ECHO_T}$GROFF_PATH" >&6 17206else 17207 echo "$as_me:17207: result: no" >&5 17208echo "${ECHO_T}no" >&6 17209fi 17210 17211for ac_prog in nroff mandoc 17212do 17213 # Extract the first word of "$ac_prog", so it can be a program name with args. 17214set dummy $ac_prog; ac_word=$2 17215echo "$as_me:17215: checking for $ac_word" >&5 17216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 17217if test "${ac_cv_path_NROFF_PATH+set}" = set; then 17218 echo $ECHO_N "(cached) $ECHO_C" >&6 17219else 17220 case $NROFF_PATH in 17221 [\\/]* | ?:[\\/]*) 17222 ac_cv_path_NROFF_PATH="$NROFF_PATH" # Let the user override the test with a path. 17223 ;; 17224 *) 17225 ac_save_IFS=$IFS; IFS=$ac_path_separator 17226ac_dummy="$PATH" 17227for ac_dir in $ac_dummy; do 17228 IFS=$ac_save_IFS 17229 test -z "$ac_dir" && ac_dir=. 17230 if $as_executable_p "$ac_dir/$ac_word"; then 17231 ac_cv_path_NROFF_PATH="$ac_dir/$ac_word" 17232 echo "$as_me:17232: found $ac_dir/$ac_word" >&5 17233 break 17234fi 17235done 17236 17237 ;; 17238esac 17239fi 17240NROFF_PATH=$ac_cv_path_NROFF_PATH 17241 17242if test -n "$NROFF_PATH"; then 17243 echo "$as_me:17243: result: $NROFF_PATH" >&5 17244echo "${ECHO_T}$NROFF_PATH" >&6 17245else 17246 echo "$as_me:17246: result: no" >&5 17247echo "${ECHO_T}no" >&6 17248fi 17249 17250 test -n "$NROFF_PATH" && break 17251done 17252test -n "$NROFF_PATH" || NROFF_PATH="no" 17253 17254# Extract the first word of "tbl", so it can be a program name with args. 17255set dummy tbl; ac_word=$2 17256echo "$as_me:17256: checking for $ac_word" >&5 17257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 17258if test "${ac_cv_path_TBL_PATH+set}" = set; then 17259 echo $ECHO_N "(cached) $ECHO_C" >&6 17260else 17261 case $TBL_PATH in 17262 [\\/]* | ?:[\\/]*) 17263 ac_cv_path_TBL_PATH="$TBL_PATH" # Let the user override the test with a path. 17264 ;; 17265 *) 17266 ac_save_IFS=$IFS; IFS=$ac_path_separator 17267ac_dummy="$PATH" 17268for ac_dir in $ac_dummy; do 17269 IFS=$ac_save_IFS 17270 test -z "$ac_dir" && ac_dir=. 17271 if $as_executable_p "$ac_dir/$ac_word"; then 17272 ac_cv_path_TBL_PATH="$ac_dir/$ac_word" 17273 echo "$as_me:17273: found $ac_dir/$ac_word" >&5 17274 break 17275fi 17276done 17277 17278 test -z "$ac_cv_path_TBL_PATH" && ac_cv_path_TBL_PATH="cat" 17279 ;; 17280esac 17281fi 17282TBL_PATH=$ac_cv_path_TBL_PATH 17283 17284if test -n "$TBL_PATH"; then 17285 echo "$as_me:17285: result: $TBL_PATH" >&5 17286echo "${ECHO_T}$TBL_PATH" >&6 17287else 17288 echo "$as_me:17288: result: no" >&5 17289echo "${ECHO_T}no" >&6 17290fi 17291 17292if test "x$GROFF_PATH" = xno 17293then 17294 NROFF_NOTE= 17295 GROFF_NOTE="#" 17296else 17297 NROFF_NOTE="#" 17298 GROFF_NOTE= 17299fi 17300 17301echo "$as_me:17301: checking for fgrep" >&5 17302echo $ECHO_N "checking for fgrep... $ECHO_C" >&6 17303if test "${ac_cv_path_FGREP+set}" = set; then 17304 echo $ECHO_N "(cached) $ECHO_C" >&6 17305else 17306 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 17307 then ac_cv_path_FGREP="$GREP -F" 17308 else 17309 for ac_prog in gfgrep fgrep 17310do 17311 # Extract the first word of "$ac_prog", so it can be a program name with args. 17312set dummy $ac_prog; ac_word=$2 17313echo "$as_me:17313: checking for $ac_word" >&5 17314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 17315if test "${ac_cv_path_FGREP+set}" = set; then 17316 echo $ECHO_N "(cached) $ECHO_C" >&6 17317else 17318 case $FGREP in 17319 [\\/]* | ?:[\\/]*) 17320 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 17321 ;; 17322 *) 17323 ac_save_IFS=$IFS; IFS=$ac_path_separator 17324ac_dummy="$PATH" 17325for ac_dir in $ac_dummy; do 17326 IFS=$ac_save_IFS 17327 test -z "$ac_dir" && ac_dir=. 17328 if $as_executable_p "$ac_dir/$ac_word"; then 17329 ac_cv_path_FGREP="$ac_dir/$ac_word" 17330 echo "$as_me:17330: found $ac_dir/$ac_word" >&5 17331 break 17332fi 17333done 17334 17335 ;; 17336esac 17337fi 17338FGREP=$ac_cv_path_FGREP 17339 17340if test -n "$FGREP"; then 17341 echo "$as_me:17341: result: $FGREP" >&5 17342echo "${ECHO_T}$FGREP" >&6 17343else 17344 echo "$as_me:17344: result: no" >&5 17345echo "${ECHO_T}no" >&6 17346fi 17347 17348 test -n "$FGREP" && break 17349done 17350test -n "$FGREP" || FGREP=": " 17351 17352 test "x$ac_cv_path_FGREP" = "x:" && { { echo "$as_me:17352: error: cannot find workable fgrep" >&5 17353echo "$as_me: error: cannot find workable fgrep" >&2;} 17354 { (exit 1); exit 1; }; } 17355 fi 17356fi 17357echo "$as_me:17357: result: $ac_cv_path_FGREP" >&5 17358echo "${ECHO_T}$ac_cv_path_FGREP" >&6 17359 FGREP="$ac_cv_path_FGREP" 17360 17361case "x${with_man2html}" in 17362(xno) 17363 cf_man2html=no 17364 ;; 17365(x|xyes) 17366 # Extract the first word of "man2html", so it can be a program name with args. 17367set dummy man2html; ac_word=$2 17368echo "$as_me:17368: checking for $ac_word" >&5 17369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 17370if test "${ac_cv_path_cf_man2html+set}" = set; then 17371 echo $ECHO_N "(cached) $ECHO_C" >&6 17372else 17373 case $cf_man2html in 17374 [\\/]* | ?:[\\/]*) 17375 ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path. 17376 ;; 17377 *) 17378 ac_save_IFS=$IFS; IFS=$ac_path_separator 17379ac_dummy="$PATH" 17380for ac_dir in $ac_dummy; do 17381 IFS=$ac_save_IFS 17382 test -z "$ac_dir" && ac_dir=. 17383 if $as_executable_p "$ac_dir/$ac_word"; then 17384 ac_cv_path_cf_man2html="$ac_dir/$ac_word" 17385 echo "$as_me:17385: found $ac_dir/$ac_word" >&5 17386 break 17387fi 17388done 17389 17390 test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no" 17391 ;; 17392esac 17393fi 17394cf_man2html=$ac_cv_path_cf_man2html 17395 17396if test -n "$cf_man2html"; then 17397 echo "$as_me:17397: result: $cf_man2html" >&5 17398echo "${ECHO_T}$cf_man2html" >&6 17399else 17400 echo "$as_me:17400: result: no" >&5 17401echo "${ECHO_T}no" >&6 17402fi 17403 17404 case "x$cf_man2html" in 17405 (x/*) 17406 echo "$as_me:17406: checking for the modified Earl Hood script" >&5 17407echo $ECHO_N "checking for the modified Earl Hood script... $ECHO_C" >&6 17408 if ( $cf_man2html -help 2>&1 | grep 'Make an index of headers at the end' >/dev/null ) 17409 then 17410 cf_man2html_ok=yes 17411 else 17412 cf_man2html=no 17413 cf_man2html_ok=no 17414 fi 17415 echo "$as_me:17415: result: $cf_man2html_ok" >&5 17416echo "${ECHO_T}$cf_man2html_ok" >&6 17417 ;; 17418 (*) 17419 cf_man2html=no 17420 ;; 17421 esac 17422esac 17423 17424echo "$as_me:17424: checking for program to convert manpage to html" >&5 17425echo $ECHO_N "checking for program to convert manpage to html... $ECHO_C" >&6 17426 17427# Check whether --with-man2html or --without-man2html was given. 17428if test "${with_man2html+set}" = set; then 17429 withval="$with_man2html" 17430 cf_man2html=$withval 17431else 17432 cf_man2html=$cf_man2html 17433fi; 17434 17435cf_with_groff=no 17436 17437case $cf_man2html in 17438(yes) 17439 echo "$as_me:17439: result: man2html" >&5 17440echo "${ECHO_T}man2html" >&6 17441 # Extract the first word of "man2html", so it can be a program name with args. 17442set dummy man2html; ac_word=$2 17443echo "$as_me:17443: checking for $ac_word" >&5 17444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 17445if test "${ac_cv_path_cf_man2html+set}" = set; then 17446 echo $ECHO_N "(cached) $ECHO_C" >&6 17447else 17448 case $cf_man2html in 17449 [\\/]* | ?:[\\/]*) 17450 ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path. 17451 ;; 17452 *) 17453 ac_save_IFS=$IFS; IFS=$ac_path_separator 17454ac_dummy="$PATH" 17455for ac_dir in $ac_dummy; do 17456 IFS=$ac_save_IFS 17457 test -z "$ac_dir" && ac_dir=. 17458 if $as_executable_p "$ac_dir/$ac_word"; then 17459 ac_cv_path_cf_man2html="$ac_dir/$ac_word" 17460 echo "$as_me:17460: found $ac_dir/$ac_word" >&5 17461 break 17462fi 17463done 17464 17465 test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no" 17466 ;; 17467esac 17468fi 17469cf_man2html=$ac_cv_path_cf_man2html 17470 17471if test -n "$cf_man2html"; then 17472 echo "$as_me:17472: result: $cf_man2html" >&5 17473echo "${ECHO_T}$cf_man2html" >&6 17474else 17475 echo "$as_me:17475: result: no" >&5 17476echo "${ECHO_T}no" >&6 17477fi 17478 17479 ;; 17480(no|groff|*/groff*) 17481 cf_with_groff=yes 17482 cf_man2html=$GROFF_PATH 17483 echo "$as_me:17483: result: $cf_man2html" >&5 17484echo "${ECHO_T}$cf_man2html" >&6 17485 ;; 17486(*) 17487 echo "$as_me:17487: result: $cf_man2html" >&5 17488echo "${ECHO_T}$cf_man2html" >&6 17489 ;; 17490esac 17491 17492MAN2HTML_TEMP="man2html.tmp" 17493 cat >$MAN2HTML_TEMP <<CF_EOF 17494#!$SHELL 17495# Temporary script generated by CF_WITH_MAN2HTML 17496# Convert inputs to html, sending result to standard output. 17497# 17498# Parameters: 17499# \${1} = rootname of file to convert 17500# \${2} = suffix of file to convert, e.g., "1" 17501# \${3} = macros to use, e.g., "man" 17502# 17503ROOT=\$1 17504TYPE=\$2 17505MACS=\$3 17506 17507unset LANG 17508unset LC_ALL 17509unset LC_CTYPE 17510unset LANGUAGE 17511GROFF_NO_SGR=stupid 17512export GROFF_NO_SGR 17513 17514CF_EOF 17515 17516NROFF_OPTS= 17517if test "x$cf_with_groff" = xyes 17518then 17519 MAN2HTML_NOTE="$GROFF_NOTE" 17520 MAN2HTML_PATH="$GROFF_PATH" 17521 cat >>$MAN2HTML_TEMP <<CF_EOF 17522$SHELL -c "$TBL_PATH \${ROOT}.\${TYPE} | $GROFF_PATH -P -o0 -I\${ROOT}_ -Thtml -\${MACS}" 17523CF_EOF 17524else 17525 # disable hyphenation if this is groff 17526 if test "x$GROFF_PATH" != xno 17527 then 17528 echo "$as_me:17528: checking if nroff is really groff" >&5 17529echo $ECHO_N "checking if nroff is really groff... $ECHO_C" >&6 17530 cf_check_groff="`$NROFF_PATH --version 2>/dev/null | grep groff`" 17531 test -n "$cf_check_groff" && cf_check_groff=yes 17532 test -n "$cf_check_groff" || cf_check_groff=no 17533 echo "$as_me:17533: result: $cf_check_groff" >&5 17534echo "${ECHO_T}$cf_check_groff" >&6 17535 test "x$cf_check_groff" = xyes && NROFF_OPTS="-rHY=0" 17536 fi 17537 MAN2HTML_NOTE="" 17538 17539if test "x$prefix" != xNONE; then 17540 cf_path_syntax="$prefix" 17541else 17542 cf_path_syntax="$ac_default_prefix" 17543fi 17544 17545case ".$cf_man2html" in 17546(.\$\(*\)*|.\'*\'*) 17547 ;; 17548(..|./*|.\\*) 17549 ;; 17550(.[a-zA-Z]:[\\/]*) # OS/2 EMX 17551 ;; 17552(.\$\{*prefix\}*|.\$\{*dir\}*) 17553 eval cf_man2html="$cf_man2html" 17554 case ".$cf_man2html" in 17555 (.NONE/*) 17556 cf_man2html=`echo "$cf_man2html" | sed -e s%NONE%$cf_path_syntax%` 17557 ;; 17558 esac 17559 ;; 17560(.no|.NONE/*) 17561 cf_man2html=`echo "$cf_man2html" | sed -e s%NONE%$cf_path_syntax%` 17562 ;; 17563(*) 17564 { { echo "$as_me:17564: error: expected a pathname, not \"$cf_man2html\"" >&5 17565echo "$as_me: error: expected a pathname, not \"$cf_man2html\"" >&2;} 17566 { (exit 1); exit 1; }; } 17567 ;; 17568esac 17569 17570 MAN2HTML_PATH="$cf_man2html" 17571 echo "$as_me:17571: checking for $cf_man2html top/bottom margins" >&5 17572echo $ECHO_N "checking for $cf_man2html top/bottom margins... $ECHO_C" >&6 17573 17574 # for this example, expect 3 lines of content, the remainder is head/foot 17575 cat >conftest.in <<CF_EOF 17576.TH HEAD1 HEAD2 HEAD3 HEAD4 HEAD5 17577.SH SECTION 17578MARKER 17579CF_EOF 17580 17581 LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out 17582 17583 cf_man2html_1st="`${FGREP-fgrep} -n MARKER conftest.out |sed -e 's/^[^0-9]*://' -e 's/:.*//'`" 17584 cf_man2html_top=`expr "$cf_man2html_1st" - 2` 17585 cf_man2html_bot="`wc -l conftest.out |sed -e 's/[^0-9]//g'`" 17586 cf_man2html_bot=`expr "$cf_man2html_bot" - 2 - "$cf_man2html_top"` 17587 cf_man2html_top_bot="-topm=$cf_man2html_top -botm=$cf_man2html_bot" 17588 17589 echo "$as_me:17589: result: $cf_man2html_top_bot" >&5 17590echo "${ECHO_T}$cf_man2html_top_bot" >&6 17591 17592 echo "$as_me:17592: checking for pagesize to use" >&5 17593echo $ECHO_N "checking for pagesize to use... $ECHO_C" >&6 17594 for cf_block in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 17595 do 17596 cat >>conftest.in <<CF_EOF 17597.nf 175980 175991 176002 176013 176024 176035 176046 176057 176068 176079 17608CF_EOF 17609 done 17610 17611 LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out 17612 cf_man2html_page="`${FGREP-fgrep} -n HEAD1 conftest.out |sed -n '$p' |sed -e 's/^[^0-9]*://' -e 's/:.*//'`" 17613 test -z "$cf_man2html_page" && cf_man2html_page=99999 17614 test "$cf_man2html_page" -gt 100 && cf_man2html_page=99999 17615 17616 rm -rf conftest* 17617 echo "$as_me:17617: result: $cf_man2html_page" >&5 17618echo "${ECHO_T}$cf_man2html_page" >&6 17619 17620 cat >>$MAN2HTML_TEMP <<CF_EOF 17621: \${MAN2HTML_PATH=$MAN2HTML_PATH} 17622MAN2HTML_OPTS="\$MAN2HTML_OPTS -index -title=\"\$ROOT(\$TYPE)\" -compress -pgsize $cf_man2html_page" 17623case \${TYPE} in 17624(ms) 17625 $TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH $NROFF_OPTS -\${MACS} | \$MAN2HTML_PATH -topm=0 -botm=0 \$MAN2HTML_OPTS 17626 ;; 17627(*) 17628 $TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH $NROFF_OPTS -\${MACS} | \$MAN2HTML_PATH $cf_man2html_top_bot \$MAN2HTML_OPTS 17629 ;; 17630esac 17631CF_EOF 17632fi 17633 17634chmod 700 $MAN2HTML_TEMP 17635 17636# If we have already established that there is a full termcap implementation, 17637# suppress the definitions for terminfo that we make have imported from the 17638# imake-file. 17639if test "x$cf_cv_lib_tgetent" != xno || test "x$cf_cv_lib_part_tgetent" != xno ; then 17640 case "$IMAKE_CFLAGS" in 17641 (*-DUSE_TERMINFO\ -DHAVE_TIGETSTR*) 17642 17643 test -n "$verbose" && echo " removing terminfo flags from IMAKE_CFLAGS" 1>&6 17644 17645echo "${as_me:-configure}:17645: testing removing terminfo flags from IMAKE_CFLAGS ..." 1>&5 17646 17647 IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" | sed -e 's/-DUSE_TERMINFO[ ]*-DHAVE_TIGETSTR[ ]*//'` 17648 test -n "$verbose" && echo " ...result $IMAKE_CFLAGS" 1>&6 17649 17650echo "${as_me:-configure}:17650: testing ...result $IMAKE_CFLAGS ..." 1>&5 17651 17652 test -n "$verbose" && echo " removing terminfo flags from CPPFLAGS" 1>&6 17653 17654echo "${as_me:-configure}:17654: testing removing terminfo flags from CPPFLAGS ..." 1>&5 17655 17656 CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/-DUSE_TERMINFO[ ]*-DHAVE_TIGETSTR[ ]*//'` 17657 test -n "$verbose" && echo " ...result $CPPFLAGS" 1>&6 17658 17659echo "${as_me:-configure}:17659: testing ...result $CPPFLAGS ..." 1>&5 17660 17661 ;; 17662 esac 17663fi 17664 17665echo "$as_me:17665: checking for default terminal-id" >&5 17666echo $ECHO_N "checking for default terminal-id... $ECHO_C" >&6 17667 17668# Check whether --with-terminal-id or --without-terminal-id was given. 17669if test "${with_terminal_id+set}" = set; then 17670 withval="$with_terminal_id" 17671 default_termid=$withval 17672else 17673 default_termid=vt420 17674fi; 17675echo "$as_me:17675: result: $default_termid" >&5 17676echo "${ECHO_T}$default_termid" >&6 17677case $default_termid in 17678(vt*) default_termid=`echo $default_termid | sed -e 's/^..//'` 17679 ;; 17680esac 17681 17682cat >>confdefs.h <<EOF 17683#define DFT_DECID "$default_termid" 17684EOF 17685 17686echo "$as_me:17686: checking for default terminal-type" >&5 17687echo $ECHO_N "checking for default terminal-type... $ECHO_C" >&6 17688 17689# Check whether --with-terminal-type or --without-terminal-type was given. 17690if test "${with_terminal_type+set}" = set; then 17691 withval="$with_terminal_type" 17692 default_TERM=$withval 17693else 17694 default_TERM=xterm 17695fi; 17696echo "$as_me:17696: result: $default_TERM" >&5 17697echo "${ECHO_T}$default_TERM" >&6 17698 17699cat >>confdefs.h <<EOF 17700#define DFT_TERMTYPE "$default_TERM" 17701EOF 17702 17703############################################################################### 17704echo "$as_me:17704: checking if backarrow-key should be BS" >&5 17705echo $ECHO_N "checking if backarrow-key should be BS... $ECHO_C" >&6 17706 17707# Check whether --enable-backarrow-key or --disable-backarrow-key was given. 17708if test "${enable_backarrow_key+set}" = set; then 17709 enableval="$enable_backarrow_key" 17710 test "$enableval" != no && enableval=yes 17711 if test "$enableval" != "yes" ; then 17712 backarrow_is_bs=$enableval 17713 else 17714 backarrow_is_bs=yes 17715 fi 17716else 17717 enableval=yes 17718 backarrow_is_bs=yes 17719 17720fi; 17721 17722echo "$as_me:17722: result: $backarrow_is_bs" >&5 17723echo "${ECHO_T}$backarrow_is_bs" >&6 17724case $backarrow_is_bs in 17725(yes) 17726 backarrow_is_bs=true 17727 ;; 17728(no) 17729 backarrow_is_bs=false 17730 ;; 17731esac 17732cf_xbool1=`echo "$backarrow_is_bs"|sed -e 's/^\(.\).*/\1/'` 17733 17734cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 17735 17736cf_xbool2=`echo "$backarrow_is_bs"|sed -e 's/^.//'` 17737backarrow_is_bs=${cf_xbool1}${cf_xbool2} 17738 17739cat >>confdefs.h <<EOF 17740#define DEF_BACKARO_BS $backarrow_is_bs 17741EOF 17742 17743echo "$as_me:17743: checking if backarrow-key should be treated as erase" >&5 17744echo $ECHO_N "checking if backarrow-key should be treated as erase... $ECHO_C" >&6 17745 17746# Check whether --enable-backarrow-is-erase or --disable-backarrow-is-erase was given. 17747if test "${enable_backarrow_is_erase+set}" = set; then 17748 enableval="$enable_backarrow_is_erase" 17749 test "$enableval" != yes && enableval=no 17750 if test "$enableval" != "no" ; then 17751 backarrow_is_erase=$enableval 17752 else 17753 backarrow_is_erase=no 17754 fi 17755else 17756 enableval=no 17757 backarrow_is_erase=no 17758 17759fi; 17760 17761echo "$as_me:17761: result: $backarrow_is_erase" >&5 17762echo "${ECHO_T}$backarrow_is_erase" >&6 17763case $backarrow_is_erase in 17764(yes) 17765 backarrow_is_erase=true 17766 ;; 17767(no) 17768 backarrow_is_erase=false 17769 ;; 17770esac 17771cf_xbool1=`echo "$backarrow_is_erase"|sed -e 's/^\(.\).*/\1/'` 17772 17773cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 17774 17775cf_xbool2=`echo "$backarrow_is_erase"|sed -e 's/^.//'` 17776backarrow_is_erase=${cf_xbool1}${cf_xbool2} 17777 17778cat >>confdefs.h <<EOF 17779#define DEF_BACKARO_ERASE $backarrow_is_erase 17780EOF 17781 17782echo "$as_me:17782: checking for default backspace/DEL setting" >&5 17783echo $ECHO_N "checking for default backspace/DEL setting... $ECHO_C" >&6 17784 17785# Check whether --enable-delete-is-del or --disable-delete-is-del was given. 17786if test "${enable_delete_is_del+set}" = set; then 17787 enableval="$enable_delete_is_del" 17788 delete_is_del=$enableval 17789else 17790 delete_is_del=maybe 17791fi; 17792 17793echo "$as_me:17793: result: $delete_is_del" >&5 17794echo "${ECHO_T}$delete_is_del" >&6 17795case $delete_is_del in 17796(yes) 17797 delete_is_del=true 17798 ;; 17799(no) 17800 delete_is_del=false 17801 ;; 17802esac 17803cf_xbool1=`echo "$delete_is_del"|sed -e 's/^\(.\).*/\1/'` 17804 17805cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 17806 17807cf_xbool2=`echo "$delete_is_del"|sed -e 's/^.//'` 17808delete_is_del=${cf_xbool1}${cf_xbool2} 17809 17810cat >>confdefs.h <<EOF 17811#define DEFDELETE_DEL $delete_is_del 17812EOF 17813 17814echo "$as_me:17814: checking for default pty initial erase setting" >&5 17815echo $ECHO_N "checking for default pty initial erase setting... $ECHO_C" >&6 17816 17817# Check whether --enable-pty-erase or --disable-pty-erase was given. 17818if test "${enable_pty_erase+set}" = set; then 17819 enableval="$enable_pty_erase" 17820 initial_erase=$enableval 17821else 17822 initial_erase=False 17823fi; 17824 17825echo "$as_me:17825: result: $initial_erase" >&5 17826echo "${ECHO_T}$initial_erase" >&6 17827case $initial_erase in 17828(yes) 17829 initial_erase=true 17830 ;; 17831(no) 17832 initial_erase=false 17833 ;; 17834esac 17835cf_xbool1=`echo "$initial_erase"|sed -e 's/^\(.\).*/\1/'` 17836 17837cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 17838 17839cf_xbool2=`echo "$initial_erase"|sed -e 's/^.//'` 17840initial_erase=${cf_xbool1}${cf_xbool2} 17841 17842cat >>confdefs.h <<EOF 17843#define DEF_INITIAL_ERASE $initial_erase 17844EOF 17845 17846echo "$as_me:17846: checking if alt should send ESC" >&5 17847echo $ECHO_N "checking if alt should send ESC... $ECHO_C" >&6 17848 17849# Check whether --enable-alt-sends-esc or --disable-alt-sends-esc was given. 17850if test "${enable_alt_sends_esc+set}" = set; then 17851 enableval="$enable_alt_sends_esc" 17852 test "$enableval" != yes && enableval=no 17853 if test "$enableval" != "no" ; then 17854 alt_sends_esc=$enableval 17855 else 17856 alt_sends_esc=no 17857 fi 17858else 17859 enableval=no 17860 alt_sends_esc=no 17861 17862fi; 17863 17864echo "$as_me:17864: result: $alt_sends_esc" >&5 17865echo "${ECHO_T}$alt_sends_esc" >&6 17866case $alt_sends_esc in 17867(yes) 17868 alt_sends_esc=true 17869 ;; 17870(no) 17871 alt_sends_esc=false 17872 ;; 17873esac 17874cf_xbool1=`echo "$alt_sends_esc"|sed -e 's/^\(.\).*/\1/'` 17875 17876cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 17877 17878cf_xbool2=`echo "$alt_sends_esc"|sed -e 's/^.//'` 17879alt_sends_esc=${cf_xbool1}${cf_xbool2} 17880 17881cat >>confdefs.h <<EOF 17882#define DEF_ALT_SENDS_ESC $alt_sends_esc 17883EOF 17884 17885echo "$as_me:17885: checking if meta should send ESC" >&5 17886echo $ECHO_N "checking if meta should send ESC... $ECHO_C" >&6 17887 17888# Check whether --enable-meta-sends-esc or --disable-meta-sends-esc was given. 17889if test "${enable_meta_sends_esc+set}" = set; then 17890 enableval="$enable_meta_sends_esc" 17891 test "$enableval" != yes && enableval=no 17892 if test "$enableval" != "no" ; then 17893 meta_sends_esc=$enableval 17894 else 17895 meta_sends_esc=no 17896 fi 17897else 17898 enableval=no 17899 meta_sends_esc=no 17900 17901fi; 17902 17903echo "$as_me:17903: result: $meta_sends_esc" >&5 17904echo "${ECHO_T}$meta_sends_esc" >&6 17905case $meta_sends_esc in 17906(yes) 17907 meta_sends_esc=true 17908 ;; 17909(no) 17910 meta_sends_esc=false 17911 ;; 17912esac 17913cf_xbool1=`echo "$meta_sends_esc"|sed -e 's/^\(.\).*/\1/'` 17914 17915cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 17916 17917cf_xbool2=`echo "$meta_sends_esc"|sed -e 's/^.//'` 17918meta_sends_esc=${cf_xbool1}${cf_xbool2} 17919 17920cat >>confdefs.h <<EOF 17921#define DEF_META_SENDS_ESC $meta_sends_esc 17922EOF 17923 17924############################################################################### 17925# Extract the first word of "tic", so it can be a program name with args. 17926set dummy tic; ac_word=$2 17927echo "$as_me:17927: checking for $ac_word" >&5 17928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 17929if test "${ac_cv_prog_cf_tic_prog+set}" = set; then 17930 echo $ECHO_N "(cached) $ECHO_C" >&6 17931else 17932 if test -n "$cf_tic_prog"; then 17933 ac_cv_prog_cf_tic_prog="$cf_tic_prog" # Let the user override the test. 17934else 17935 ac_save_IFS=$IFS; IFS=$ac_path_separator 17936ac_dummy="$PATH" 17937for ac_dir in $ac_dummy; do 17938 IFS=$ac_save_IFS 17939 test -z "$ac_dir" && ac_dir=. 17940 $as_executable_p "$ac_dir/$ac_word" || continue 17941ac_cv_prog_cf_tic_prog="yes" 17942echo "$as_me:17942: found $ac_dir/$ac_word" >&5 17943break 17944done 17945 17946 test -z "$ac_cv_prog_cf_tic_prog" && ac_cv_prog_cf_tic_prog="no" 17947fi 17948fi 17949cf_tic_prog=$ac_cv_prog_cf_tic_prog 17950if test -n "$cf_tic_prog"; then 17951 echo "$as_me:17951: result: $cf_tic_prog" >&5 17952echo "${ECHO_T}$cf_tic_prog" >&6 17953else 17954 echo "$as_me:17954: result: no" >&5 17955echo "${ECHO_T}no" >&6 17956fi 17957 17958if test "$cf_tic_prog" = yes ; then 17959 if test -n "$TERMINFO" 17960 then 17961 case "$TERMINFO" in 17962 (/*) 17963 test -d "$TERMINFO" || unset TERMINFO 17964 ;; 17965 (*) 17966 unset TERMINFO 17967 ;; 17968 esac 17969 fi 17970 echo "$as_me:17970: checking for private terminfo-directory" >&5 17971echo $ECHO_N "checking for private terminfo-directory... $ECHO_C" >&6 17972 17973# Check whether --with-own-terminfo or --without-own-terminfo was given. 17974if test "${with_own_terminfo+set}" = set; then 17975 withval="$with_own_terminfo" 17976 TERMINFO_DIR=$withval 17977else 17978 TERMINFO_DIR=${TERMINFO-none} 17979fi; 17980 echo "$as_me:17980: result: $TERMINFO_DIR" >&5 17981echo "${ECHO_T}$TERMINFO_DIR" >&6 17982 if test "$TERMINFO_DIR" = yes ; then 17983 { echo "$as_me:17983: WARNING: no value given" >&5 17984echo "$as_me: WARNING: no value given" >&2;} 17985 elif test "$TERMINFO_DIR" != none ; then 17986 if test -d "$TERMINFO_DIR" ; then 17987 17988cat >>confdefs.h <<EOF 17989#define OWN_TERMINFO_DIR "$TERMINFO_DIR" 17990EOF 17991 17992 echo "$as_me:17992: checking if \$TERMINFO should also be set" >&5 17993echo $ECHO_N "checking if \$TERMINFO should also be set... $ECHO_C" >&6 17994 17995# Check whether --enable-env-terminfo or --disable-env-terminfo was given. 17996if test "${enable_env_terminfo+set}" = set; then 17997 enableval="$enable_env_terminfo" 17998 cf_env_terminfo=yes 17999else 18000 cf_env_terminfo=no 18001fi; 18002 echo "$as_me:18002: result: $cf_env_terminfo" >&5 18003echo "${ECHO_T}$cf_env_terminfo" >&6 18004 test $cf_env_terminfo = yes && 18005 18006cat >>confdefs.h <<\EOF 18007#define OWN_TERMINFO_ENV 1 18008EOF 18009 18010 else 18011 { echo "$as_me:18011: WARNING: not a directory" >&5 18012echo "$as_me: WARNING: not a directory" >&2;} 18013 fi 18014 elif test "$prefix" != NONE ; then 18015 TERMINFO_DIR='${prefix}/lib/terminfo' 18016 elif test -d /usr/lib/terminfo ; then 18017 TERMINFO_DIR=/usr/lib/terminfo 18018 else 18019 TERMINFO_DIR= 18020 fi 18021 SET_TERMINFO= 18022 if test -n "$TERMINFO_DIR" ; then 18023 TERMINFO_DIR='$(DESTDIR)'$TERMINFO_DIR 18024 SET_TERMINFO='TERMINFO=$(TERMINFO_DIR)' 18025 fi 18026 no_ticprog= 18027else 18028 no_ticprog="#" 18029 TERMINFO_DIR= 18030 SET_TERMINFO= 18031fi 18032 18033############################################################################### 18034 18035echo "$as_me:18035: checking if you want active-icons" >&5 18036echo $ECHO_N "checking if you want active-icons... $ECHO_C" >&6 18037 18038# Check whether --enable-active-icon or --disable-active-icon was given. 18039if test "${enable_active_icon+set}" = set; then 18040 enableval="$enable_active_icon" 18041 test "$enableval" != no && enableval=yes 18042 if test "$enableval" != "yes" ; then 18043 enable_active_icon=no 18044 else 18045 enable_active_icon=yes 18046 fi 18047else 18048 enableval=yes 18049 enable_active_icon=yes 18050 18051fi; 18052echo "$as_me:18052: result: $enable_active_icon" >&5 18053echo "${ECHO_T}$enable_active_icon" >&6 18054if test "$enable_active_icon" = no ; then 18055 18056cat >>confdefs.h <<\EOF 18057#define NO_ACTIVE_ICON 1 18058EOF 18059 18060fi 18061 18062echo "$as_me:18062: checking if you want ANSI color" >&5 18063echo $ECHO_N "checking if you want ANSI color... $ECHO_C" >&6 18064 18065# Check whether --enable-ansi-color or --disable-ansi-color was given. 18066if test "${enable_ansi_color+set}" = set; then 18067 enableval="$enable_ansi_color" 18068 test "$enableval" != no && enableval=yes 18069 if test "$enableval" != "yes" ; then 18070 enable_ansi_color=no 18071 else 18072 enable_ansi_color=yes 18073 fi 18074else 18075 enableval=yes 18076 enable_ansi_color=yes 18077 18078fi; 18079echo "$as_me:18079: result: $enable_ansi_color" >&5 18080echo "${ECHO_T}$enable_ansi_color" >&6 18081test "$enable_ansi_color" = no && 18082cat >>confdefs.h <<\EOF 18083#define OPT_ISO_COLORS 0 18084EOF 18085 18086if test "$enable_ansi_color" = yes ; then 18087 18088 echo "$as_me:18088: checking if you want 16 colors like aixterm" >&5 18089echo $ECHO_N "checking if you want 16 colors like aixterm... $ECHO_C" >&6 18090 18091# Check whether --enable-16-color or --disable-16-color was given. 18092if test "${enable_16_color+set}" = set; then 18093 enableval="$enable_16_color" 18094 test "$enableval" != no && enableval=yes 18095 if test "$enableval" != "yes" ; then 18096 enable_16_color=no 18097 else 18098 enable_16_color=yes 18099 fi 18100else 18101 enableval=yes 18102 enable_16_color=yes 18103 18104fi; 18105 echo "$as_me:18105: result: $enable_16_color" >&5 18106echo "${ECHO_T}$enable_16_color" >&6 18107 test "$enable_16_color" = no && 18108cat >>confdefs.h <<\EOF 18109#define OPT_AIX_COLORS 0 18110EOF 18111 18112 echo "$as_me:18112: checking if you want 256 colors" >&5 18113echo $ECHO_N "checking if you want 256 colors... $ECHO_C" >&6 18114 18115# Check whether --enable-256-color or --disable-256-color was given. 18116if test "${enable_256_color+set}" = set; then 18117 enableval="$enable_256_color" 18118 test "$enableval" != no && enableval=yes 18119 if test "$enableval" != "yes" ; then 18120 enable_256_color=no 18121 else 18122 enable_256_color=yes 18123 fi 18124else 18125 enableval=yes 18126 enable_256_color=yes 18127 18128fi; 18129 echo "$as_me:18129: result: $enable_256_color" >&5 18130echo "${ECHO_T}$enable_256_color" >&6 18131 18132 if test "$enable_256_color" = yes ; then 18133 18134 CHARPROC_DEPS="$CHARPROC_DEPS 256colres.h" 18135 EXTRAHDRS="$EXTRAHDRS 256colres.h" 18136 18137cat >>confdefs.h <<\EOF 18138#define OPT_256_COLORS 1 18139EOF 18140 18141 echo "$as_me:18141: checking if you want direct-color support" >&5 18142echo $ECHO_N "checking if you want direct-color support... $ECHO_C" >&6 18143 18144# Check whether --enable-direct-color or --disable-direct-color was given. 18145if test "${enable_direct_color+set}" = set; then 18146 enableval="$enable_direct_color" 18147 test "$enableval" != no && enableval=yes 18148 if test "$enableval" != "yes" ; then 18149 enable_direct_color=no 18150 else 18151 enable_direct_color=yes 18152 fi 18153else 18154 enableval=yes 18155 enable_direct_color=yes 18156 18157fi; 18158 echo "$as_me:18158: result: $enable_direct_color" >&5 18159echo "${ECHO_T}$enable_direct_color" >&6 18160 if test "$enable_direct_color" = yes ; then 18161 18162cat >>confdefs.h <<\EOF 18163#define OPT_DIRECT_COLOR 1 18164EOF 18165 18166 fi 18167 18168 else 18169 18170 echo "$as_me:18170: checking if you want 88 colors" >&5 18171echo $ECHO_N "checking if you want 88 colors... $ECHO_C" >&6 18172 18173# Check whether --enable-88-color or --disable-88-color was given. 18174if test "${enable_88_color+set}" = set; then 18175 enableval="$enable_88_color" 18176 test "$enableval" != no && enableval=yes 18177 if test "$enableval" != "yes" ; then 18178 enable_88_color=no 18179 else 18180 enable_88_color=yes 18181 fi 18182else 18183 enableval=yes 18184 enable_88_color=yes 18185 18186fi; 18187 echo "$as_me:18187: result: $enable_88_color" >&5 18188echo "${ECHO_T}$enable_88_color" >&6 18189 if test "$enable_88_color" = yes ; then 18190 CHARPROC_DEPS="$CHARPROC_DEPS 88colres.h" 18191 EXTRAHDRS="$EXTRAHDRS 88colres.h" 18192 18193cat >>confdefs.h <<\EOF 18194#define OPT_88_COLORS 1 18195EOF 18196 18197 fi 18198 18199 fi 18200 18201fi 18202 18203echo "$as_me:18203: checking if you want blinking cursor" >&5 18204echo $ECHO_N "checking if you want blinking cursor... $ECHO_C" >&6 18205 18206# Check whether --enable-blink-cursor or --disable-blink-cursor was given. 18207if test "${enable_blink_cursor+set}" = set; then 18208 enableval="$enable_blink_cursor" 18209 test "$enableval" != no && enableval=yes 18210 if test "$enableval" != "yes" ; then 18211 enable_blink_curs=no 18212 else 18213 enable_blink_curs=yes 18214 fi 18215else 18216 enableval=yes 18217 enable_blink_curs=yes 18218 18219fi; 18220echo "$as_me:18220: result: $enable_blink_curs" >&5 18221echo "${ECHO_T}$enable_blink_curs" >&6 18222test "$enable_blink_curs" = no && 18223cat >>confdefs.h <<\EOF 18224#define OPT_BLINK_CURS 0 18225EOF 18226 18227echo "$as_me:18227: checking if you want to ignore Linux's broken palette-strings" >&5 18228echo $ECHO_N "checking if you want to ignore Linux's broken palette-strings... $ECHO_C" >&6 18229 18230case $host_os in 18231(linux*) 18232 assume_broken_osc=yes ;; 18233(*) 18234 assume_broken_osc=no ;; 18235esac 18236 18237# Check whether --enable-broken-osc or --disable-broken-osc was given. 18238if test "${enable_broken_osc+set}" = set; then 18239 enableval="$enable_broken_osc" 18240 test "$enableval" != no && enableval=yes 18241 if test "$enableval" != "$assume_broken_osc" ; then 18242 enable_broken_osc=$enableval 18243 else 18244 enable_broken_osc=$enableval 18245 fi 18246else 18247 enableval=$assume_broken_osc 18248 enable_broken_osc=$enableval 18249 18250fi; 18251echo "$as_me:18251: result: $enable_broken_osc" >&5 18252echo "${ECHO_T}$enable_broken_osc" >&6 18253if test "$enable_broken_osc" = yes ; then 18254 18255cat >>confdefs.h <<\EOF 18256#define OPT_BROKEN_OSC 1 18257EOF 18258 18259else 18260 18261cat >>confdefs.h <<\EOF 18262#define OPT_BROKEN_OSC 0 18263EOF 18264 18265fi 18266 18267echo "$as_me:18267: checking if you want to allow broken string-terminators" >&5 18268echo $ECHO_N "checking if you want to allow broken string-terminators... $ECHO_C" >&6 18269 18270# Check whether --enable-broken-st or --disable-broken-st was given. 18271if test "${enable_broken_st+set}" = set; then 18272 enableval="$enable_broken_st" 18273 test "$enableval" != yes && enableval=no 18274 if test "$enableval" != "no" ; then 18275 enable_broken_st=no 18276 else 18277 enable_broken_st=yes 18278 fi 18279else 18280 enableval=no 18281 enable_broken_st=yes 18282 18283fi; 18284echo "$as_me:18284: result: $enable_broken_st" >&5 18285echo "${ECHO_T}$enable_broken_st" >&6 18286test "$enable_broken_st" = no && 18287cat >>confdefs.h <<\EOF 18288#define OPT_BROKEN_ST 0 18289EOF 18290 18291echo "$as_me:18291: checking if you want to compile-in icon data" >&5 18292echo $ECHO_N "checking if you want to compile-in icon data... $ECHO_C" >&6 18293 18294# Check whether --enable-builtin-xpms or --disable-builtin-xpms was given. 18295if test "${enable_builtin_xpms+set}" = set; then 18296 enableval="$enable_builtin_xpms" 18297 test "$enableval" != yes && enableval=no 18298 if test "$enableval" != "no" ; then 18299 enable_builtin_xpms=yes 18300 else 18301 enable_builtin_xpms=no 18302 fi 18303else 18304 enableval=no 18305 enable_builtin_xpms=no 18306 18307fi; 18308echo "$as_me:18308: result: $enable_builtin_xpms" >&5 18309echo "${ECHO_T}$enable_builtin_xpms" >&6 18310test "$enable_builtin_xpms" = yes && 18311cat >>confdefs.h <<\EOF 18312#define OPT_BUILTIN_XPMS 1 18313EOF 18314 18315echo "$as_me:18315: checking if you want printable 128-159" >&5 18316echo $ECHO_N "checking if you want printable 128-159... $ECHO_C" >&6 18317 18318# Check whether --enable-c1-print or --disable-c1-print was given. 18319if test "${enable_c1_print+set}" = set; then 18320 enableval="$enable_c1_print" 18321 test "$enableval" != no && enableval=yes 18322 if test "$enableval" != "yes" ; then 18323 enable_c1_print=no 18324 else 18325 enable_c1_print=yes 18326 fi 18327else 18328 enableval=yes 18329 enable_c1_print=yes 18330 18331fi; 18332echo "$as_me:18332: result: $enable_c1_print" >&5 18333echo "${ECHO_T}$enable_c1_print" >&6 18334test "$enable_c1_print" = no && 18335cat >>confdefs.h <<\EOF 18336#define OPT_C1_PRINT 0 18337EOF 18338 18339if test "$enable_ansi_color" = yes ; then 18340 18341 echo "$as_me:18341: checking if you want bold colors mapped like IBM PC" >&5 18342echo $ECHO_N "checking if you want bold colors mapped like IBM PC... $ECHO_C" >&6 18343 18344# Check whether --enable-bold-color or --disable-bold-color was given. 18345if test "${enable_bold_color+set}" = set; then 18346 enableval="$enable_bold_color" 18347 test "$enableval" != no && enableval=yes 18348 if test "$enableval" != "yes" ; then 18349 enable_pc_color=no 18350 else 18351 enable_pc_color=yes 18352 fi 18353else 18354 enableval=yes 18355 enable_pc_color=yes 18356 18357fi; 18358 echo "$as_me:18358: result: $enable_pc_color" >&5 18359echo "${ECHO_T}$enable_pc_color" >&6 18360 test "$enable_pc_color" = no && 18361cat >>confdefs.h <<\EOF 18362#define OPT_PC_COLORS 0 18363EOF 18364 18365 echo "$as_me:18365: checking if you want separate color-classes" >&5 18366echo $ECHO_N "checking if you want separate color-classes... $ECHO_C" >&6 18367 18368# Check whether --enable-color-class or --disable-color-class was given. 18369if test "${enable_color_class+set}" = set; then 18370 enableval="$enable_color_class" 18371 test "$enableval" != no && enableval=yes 18372 if test "$enableval" != "yes" ; then 18373 enable_color_class=no 18374 else 18375 enable_color_class=yes 18376 fi 18377else 18378 enableval=yes 18379 enable_color_class=yes 18380 18381fi; 18382 echo "$as_me:18382: result: $enable_color_class" >&5 18383echo "${ECHO_T}$enable_color_class" >&6 18384 test "$enable_color_class" = no && 18385cat >>confdefs.h <<\EOF 18386#define OPT_COLOR_CLASS 0 18387EOF 18388 18389 echo "$as_me:18389: checking if you want color-mode enabled by default" >&5 18390echo $ECHO_N "checking if you want color-mode enabled by default... $ECHO_C" >&6 18391 18392# Check whether --enable-color-mode or --disable-color-mode was given. 18393if test "${enable_color_mode+set}" = set; then 18394 enableval="$enable_color_mode" 18395 test "$enableval" != no && enableval=yes 18396 if test "$enableval" != "yes" ; then 18397 default_colormode=no 18398 else 18399 default_colormode=yes 18400 fi 18401else 18402 enableval=yes 18403 default_colormode=yes 18404 18405fi; 18406 echo "$as_me:18406: result: $default_colormode" >&5 18407echo "${ECHO_T}$default_colormode" >&6 18408 test "$default_colormode" = no && 18409cat >>confdefs.h <<\EOF 18410#define DFT_COLORMODE 0 18411EOF 18412 18413fi 18414 18415echo "$as_me:18415: checking if you want support for color highlighting" >&5 18416echo $ECHO_N "checking if you want support for color highlighting... $ECHO_C" >&6 18417 18418# Check whether --enable-highlighting or --disable-highlighting was given. 18419if test "${enable_highlighting+set}" = set; then 18420 enableval="$enable_highlighting" 18421 test "$enableval" != no && enableval=yes 18422 if test "$enableval" != "yes" ; then 18423 default_highlight=no 18424 else 18425 default_highlight=yes 18426 fi 18427else 18428 enableval=yes 18429 default_highlight=yes 18430 18431fi; 18432echo "$as_me:18432: result: $default_highlight" >&5 18433echo "${ECHO_T}$default_highlight" >&6 18434test "$default_highlight" = no && 18435cat >>confdefs.h <<\EOF 18436#define OPT_HIGHLIGHT_COLOR 0 18437EOF 18438 18439echo "$as_me:18439: checking if you want support for doublesize characters" >&5 18440echo $ECHO_N "checking if you want support for doublesize characters... $ECHO_C" >&6 18441 18442# Check whether --enable-doublechars or --disable-doublechars was given. 18443if test "${enable_doublechars+set}" = set; then 18444 enableval="$enable_doublechars" 18445 test "$enableval" != no && enableval=yes 18446 if test "$enableval" != "yes" ; then 18447 enable_doublechars=no 18448 else 18449 enable_doublechars=yes 18450 fi 18451else 18452 enableval=yes 18453 enable_doublechars=yes 18454 18455fi; 18456echo "$as_me:18456: result: $enable_doublechars" >&5 18457echo "${ECHO_T}$enable_doublechars" >&6 18458test "$enable_doublechars" = no && 18459cat >>confdefs.h <<\EOF 18460#define OPT_DEC_CHRSET 0 18461EOF 18462 18463echo "$as_me:18463: checking if you want fallback-support for box characters" >&5 18464echo $ECHO_N "checking if you want fallback-support for box characters... $ECHO_C" >&6 18465 18466# Check whether --enable-boxchars or --disable-boxchars was given. 18467if test "${enable_boxchars+set}" = set; then 18468 enableval="$enable_boxchars" 18469 test "$enableval" != no && enableval=yes 18470 if test "$enableval" != "yes" ; then 18471 enable_boxchars=no 18472 else 18473 enable_boxchars=yes 18474 fi 18475else 18476 enableval=yes 18477 enable_boxchars=yes 18478 18479fi; 18480echo "$as_me:18480: result: $enable_boxchars" >&5 18481echo "${ECHO_T}$enable_boxchars" >&6 18482test "$enable_boxchars" = no && 18483cat >>confdefs.h <<\EOF 18484#define OPT_BOX_CHARS 0 18485EOF 18486 18487echo "$as_me:18487: checking if you want to allow spawning new xterms" >&5 18488echo $ECHO_N "checking if you want to allow spawning new xterms... $ECHO_C" >&6 18489 18490# Check whether --enable-exec-xterm or --disable-exec-xterm was given. 18491if test "${enable_exec_xterm+set}" = set; then 18492 enableval="$enable_exec_xterm" 18493 test "$enableval" != yes && enableval=no 18494 if test "$enableval" != "no" ; then 18495 enable_exec_xterm=yes 18496 else 18497 enable_exec_xterm=no 18498 fi 18499else 18500 enableval=no 18501 enable_exec_xterm=no 18502 18503fi; 18504echo "$as_me:18504: result: $enable_exec_xterm" >&5 18505echo "${ECHO_T}$enable_exec_xterm" >&6 18506if test "$enable_exec_xterm" = yes ; then 18507 18508echo "$as_me:18508: checking for proc tree with cwd-support" >&5 18509echo $ECHO_N "checking for proc tree with cwd-support... $ECHO_C" >&6 18510if test "${cf_cv_procfs_cwd+set}" = set; then 18511 echo $ECHO_N "(cached) $ECHO_C" >&6 18512else 18513 18514cf_cv_procfs_cwd=no 18515for cf_path in /proc /compat/linux/proc /usr/compat/linux/proc 18516do 18517 if test -d "$cf_path" && \ 18518 test -d "$cf_path"/$$ && \ 18519 { test -d "$cf_path"/$$/cwd || \ 18520 test -L "$cf_path"/$$/cwd; }; then 18521 cf_cv_procfs_cwd="$cf_path" 18522 break 18523 fi 18524done 18525 18526fi 18527echo "$as_me:18527: result: $cf_cv_procfs_cwd" >&5 18528echo "${ECHO_T}$cf_cv_procfs_cwd" >&6 18529 18530 if test "$cf_cv_procfs_cwd" = no ; then 18531 { echo "$as_me:18531: WARNING: no suitable proc filesystem found" >&5 18532echo "$as_me: WARNING: no suitable proc filesystem found" >&2;} 18533 else 18534 18535cat >>confdefs.h <<EOF 18536#define PROCFS_ROOT "$cf_cv_procfs_cwd" 18537EOF 18538 18539cat >>confdefs.h <<\EOF 18540#define OPT_EXEC_XTERM 1 18541EOF 18542 18543 fi 18544fi 18545 18546if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "Xext"; then 18547 test -n "$verbose" && echo " found package Xext" 1>&6 18548 18549echo "${as_me:-configure}:18549: testing found package Xext ..." 1>&5 18550 18551 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "Xext" 2>/dev/null`" 18552 cf_pkgconfig_libs="`$PKG_CONFIG --libs "Xext" 2>/dev/null`" 18553 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6 18554 18555echo "${as_me:-configure}:18555: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5 18556 18557 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6 18558 18559echo "${as_me:-configure}:18559: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5 18560 18561cf_fix_cppflags=no 18562cf_new_cflags= 18563cf_new_cppflags= 18564cf_new_extra_cppflags= 18565 18566for cf_add_cflags in $cf_pkgconfig_incs 18567do 18568case "$cf_fix_cppflags" in 18569(no) 18570 case "$cf_add_cflags" in 18571 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 18572 case "$cf_add_cflags" in 18573 (-D*) 18574 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 18575 18576 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 18577 && test -z "${cf_tst_cflags}" \ 18578 && cf_fix_cppflags=yes 18579 18580 if test "$cf_fix_cppflags" = yes ; then 18581 18582 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 18583 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 18584 18585 continue 18586 elif test "${cf_tst_cflags}" = "\"'" ; then 18587 18588 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 18589 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 18590 18591 continue 18592 fi 18593 ;; 18594 esac 18595 case "$CPPFLAGS" in 18596 (*$cf_add_cflags) 18597 ;; 18598 (*) 18599 case "$cf_add_cflags" in 18600 (-D*) 18601 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 18602 18603CPPFLAGS=`echo "$CPPFLAGS" | \ 18604 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 18605 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 18606 18607 ;; 18608 esac 18609 18610 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 18611 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 18612 18613 ;; 18614 esac 18615 ;; 18616 (*) 18617 18618 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 18619 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 18620 18621 ;; 18622 esac 18623 ;; 18624(yes) 18625 18626 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 18627 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 18628 18629 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 18630 18631 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 18632 && test -z "${cf_tst_cflags}" \ 18633 && cf_fix_cppflags=no 18634 ;; 18635esac 18636done 18637 18638if test -n "$cf_new_cflags" ; then 18639 18640 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 18641 CFLAGS="${CFLAGS}$cf_new_cflags" 18642 18643fi 18644 18645if test -n "$cf_new_cppflags" ; then 18646 18647 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 18648 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 18649 18650fi 18651 18652if test -n "$cf_new_extra_cppflags" ; then 18653 18654 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 18655 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 18656 18657fi 18658 18659cf_add_libs="$LIBS" 18660# reverse order 18661cf_add_0lib= 18662for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 18663# filter duplicates 18664for cf_add_1lib in $cf_add_0lib; do 18665 for cf_add_2lib in $cf_add_libs; do 18666 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 18667 cf_add_1lib= 18668 break 18669 fi 18670 done 18671 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 18672done 18673LIBS="$cf_add_libs" 18674 18675 : 18676else 18677 cf_pkgconfig_incs= 18678 cf_pkgconfig_libs= 18679 18680 echo "$as_me:18680: checking for XextCreateExtension in -lXext" >&5 18681echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6 18682if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then 18683 echo $ECHO_N "(cached) $ECHO_C" >&6 18684else 18685 ac_check_lib_save_LIBS=$LIBS 18686LIBS="-lXext $LIBS" 18687cat >"conftest.$ac_ext" <<_ACEOF 18688#line 18688 "configure" 18689#include "confdefs.h" 18690 18691/* Override any gcc2 internal prototype to avoid an error. */ 18692#ifdef __cplusplus 18693extern "C" 18694#endif 18695/* We use char because int might match the return type of a gcc2 18696 builtin and then its argument prototype would still apply. */ 18697char XextCreateExtension (); 18698int 18699main (void) 18700{ 18701XextCreateExtension (); 18702 ; 18703 return 0; 18704} 18705_ACEOF 18706rm -f "conftest.$ac_objext" "conftest$ac_exeext" 18707if { (eval echo "$as_me:18707: \"$ac_link\"") >&5 18708 (eval $ac_link) 2>&5 18709 ac_status=$? 18710 echo "$as_me:18710: \$? = $ac_status" >&5 18711 (exit "$ac_status"); } && 18712 { ac_try='test -s "conftest$ac_exeext"' 18713 { (eval echo "$as_me:18713: \"$ac_try\"") >&5 18714 (eval $ac_try) 2>&5 18715 ac_status=$? 18716 echo "$as_me:18716: \$? = $ac_status" >&5 18717 (exit "$ac_status"); }; }; then 18718 ac_cv_lib_Xext_XextCreateExtension=yes 18719else 18720 echo "$as_me: failed program was:" >&5 18721cat "conftest.$ac_ext" >&5 18722ac_cv_lib_Xext_XextCreateExtension=no 18723fi 18724rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 18725LIBS=$ac_check_lib_save_LIBS 18726fi 18727echo "$as_me:18727: result: $ac_cv_lib_Xext_XextCreateExtension" >&5 18728echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6 18729if test "$ac_cv_lib_Xext_XextCreateExtension" = yes; then 18730 18731cf_add_libs="$LIBS" 18732# reverse order 18733cf_add_0lib= 18734for cf_add_1lib in -lXext; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 18735# filter duplicates 18736for cf_add_1lib in $cf_add_0lib; do 18737 for cf_add_2lib in $cf_add_libs; do 18738 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 18739 cf_add_1lib= 18740 break 18741 fi 18742 done 18743 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 18744done 18745LIBS="$cf_add_libs" 18746 18747fi 18748 18749fi 18750 18751echo "$as_me:18751: checking for X11/extensions/Xdbe.h" >&5 18752echo $ECHO_N "checking for X11/extensions/Xdbe.h... $ECHO_C" >&6 18753if test "${ac_cv_header_X11_extensions_Xdbe_h+set}" = set; then 18754 echo $ECHO_N "(cached) $ECHO_C" >&6 18755else 18756 cat >"conftest.$ac_ext" <<_ACEOF 18757#line 18757 "configure" 18758#include "confdefs.h" 18759#include <X11/extensions/Xdbe.h> 18760_ACEOF 18761if { (eval echo "$as_me:18761: \"$ac_cpp "conftest.$ac_ext"\"") >&5 18762 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 18763 ac_status=$? 18764 $EGREP -v '^ *\+' conftest.er1 >conftest.err 18765 rm -f conftest.er1 18766 cat conftest.err >&5 18767 echo "$as_me:18767: \$? = $ac_status" >&5 18768 (exit "$ac_status"); } >/dev/null; then 18769 if test -s conftest.err; then 18770 ac_cpp_err=$ac_c_preproc_warn_flag 18771 else 18772 ac_cpp_err= 18773 fi 18774else 18775 ac_cpp_err=yes 18776fi 18777if test -z "$ac_cpp_err"; then 18778 ac_cv_header_X11_extensions_Xdbe_h=yes 18779else 18780 echo "$as_me: failed program was:" >&5 18781 cat "conftest.$ac_ext" >&5 18782 ac_cv_header_X11_extensions_Xdbe_h=no 18783fi 18784rm -f conftest.err "conftest.$ac_ext" 18785fi 18786echo "$as_me:18786: result: $ac_cv_header_X11_extensions_Xdbe_h" >&5 18787echo "${ECHO_T}$ac_cv_header_X11_extensions_Xdbe_h" >&6 18788if test "$ac_cv_header_X11_extensions_Xdbe_h" = yes; then 18789 18790cat >>confdefs.h <<\EOF 18791#define HAVE_X11_EXTENSIONS_XDBE_H 1 18792EOF 18793 18794 echo "$as_me:18794: checking for XdbeSwapBuffers" >&5 18795echo $ECHO_N "checking for XdbeSwapBuffers... $ECHO_C" >&6 18796if test "${ac_cv_func_XdbeSwapBuffers+set}" = set; then 18797 echo $ECHO_N "(cached) $ECHO_C" >&6 18798else 18799 cat >"conftest.$ac_ext" <<_ACEOF 18800#line 18800 "configure" 18801#include "confdefs.h" 18802#define XdbeSwapBuffers autoconf_temporary 18803#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 18804#undef XdbeSwapBuffers 18805 18806#ifdef __cplusplus 18807extern "C" 18808#endif 18809 18810/* We use char because int might match the return type of a gcc2 18811 builtin and then its argument prototype would still apply. */ 18812char XdbeSwapBuffers (void); 18813 18814int 18815main (void) 18816{ 18817 18818/* The GNU C library defines stubs for functions which it implements 18819 to always fail with ENOSYS. Some functions are actually named 18820 something starting with __ and the normal name is an alias. */ 18821#if defined (__stub_XdbeSwapBuffers) || defined (__stub___XdbeSwapBuffers) 18822#error found stub for XdbeSwapBuffers 18823#endif 18824 18825 return XdbeSwapBuffers (); 18826 ; 18827 return 0; 18828} 18829_ACEOF 18830rm -f "conftest.$ac_objext" "conftest$ac_exeext" 18831if { (eval echo "$as_me:18831: \"$ac_link\"") >&5 18832 (eval $ac_link) 2>&5 18833 ac_status=$? 18834 echo "$as_me:18834: \$? = $ac_status" >&5 18835 (exit "$ac_status"); } && 18836 { ac_try='test -s "conftest$ac_exeext"' 18837 { (eval echo "$as_me:18837: \"$ac_try\"") >&5 18838 (eval $ac_try) 2>&5 18839 ac_status=$? 18840 echo "$as_me:18840: \$? = $ac_status" >&5 18841 (exit "$ac_status"); }; }; then 18842 ac_cv_func_XdbeSwapBuffers=yes 18843else 18844 echo "$as_me: failed program was:" >&5 18845cat "conftest.$ac_ext" >&5 18846ac_cv_func_XdbeSwapBuffers=no 18847fi 18848rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 18849fi 18850echo "$as_me:18850: result: $ac_cv_func_XdbeSwapBuffers" >&5 18851echo "${ECHO_T}$ac_cv_func_XdbeSwapBuffers" >&6 18852if test "$ac_cv_func_XdbeSwapBuffers" = yes; then 18853 18854cat >>confdefs.h <<\EOF 18855#define HAVE_XDBESWAPBUFFERS 1 18856EOF 18857 18858 cf_x_ext_double_buffer=yes 18859fi 18860 18861fi 18862 18863double_buffer=False 18864if test "$cf_x_ext_double_buffer" = yes ; then 18865 echo "$as_me:18865: checking if you want to enable double-buffering in default resources" >&5 18866echo $ECHO_N "checking if you want to enable double-buffering in default resources... $ECHO_C" >&6 18867 18868# Check whether --enable-double-buffer or --disable-double-buffer was given. 18869if test "${enable_double_buffer+set}" = set; then 18870 enableval="$enable_double_buffer" 18871 test "$enableval" != yes && enableval=no 18872 if test "$enableval" != "no" ; then 18873 enable_double_bfr=yes 18874 else 18875 enable_double_bfr=no 18876 fi 18877else 18878 enableval=no 18879 enable_double_bfr=no 18880 18881fi; 18882 echo "$as_me:18882: result: $enable_double_bfr" >&5 18883echo "${ECHO_T}$enable_double_bfr" >&6 18884 if test "$enable_double_bfr" = yes ; then 18885 18886cat >>confdefs.h <<\EOF 18887#define OPT_DOUBLE_BUFFER 1 18888EOF 18889 18890 double_buffer=True 18891 fi 18892fi 18893 18894echo "$as_me:18894: checking if you want to use FreeType library" >&5 18895echo $ECHO_N "checking if you want to use FreeType library... $ECHO_C" >&6 18896 18897# Check whether --enable-freetype or --disable-freetype was given. 18898if test "${enable_freetype+set}" = set; then 18899 enableval="$enable_freetype" 18900 test "$enableval" != no && enableval=yes 18901 if test "$enableval" != "yes" ; then 18902 enable_freetype=no 18903 else 18904 enable_freetype=yes 18905 fi 18906else 18907 enableval=yes 18908 enable_freetype=yes 18909 18910fi; 18911echo "$as_me:18911: result: $enable_freetype" >&5 18912echo "${ECHO_T}$enable_freetype" >&6 18913if test "$enable_freetype" = yes ; then 18914 18915cf_cv_x_freetype_incs=no 18916cf_cv_x_freetype_libs=no 18917cf_extra_freetype_libs= 18918FREETYPE_CONFIG=none 18919FREETYPE_PARAMS= 18920 18921echo "$as_me:18921: checking for FreeType configuration script" >&5 18922echo $ECHO_N "checking for FreeType configuration script... $ECHO_C" >&6 18923 18924# Check whether --with-freetype-config or --without-freetype-config was given. 18925if test "${with_freetype_config+set}" = set; then 18926 withval="$with_freetype_config" 18927 cf_cv_x_freetype_cfgs="$withval" 18928else 18929 cf_cv_x_freetype_cfgs=auto 18930fi; 18931test -z $cf_cv_x_freetype_cfgs && cf_cv_x_freetype_cfgs=auto 18932test $cf_cv_x_freetype_cfgs = no && cf_cv_x_freetype_cfgs=none 18933echo "$as_me:18933: result: $cf_cv_x_freetype_cfgs" >&5 18934echo "${ECHO_T}$cf_cv_x_freetype_cfgs" >&6 18935 18936case $cf_cv_x_freetype_cfgs in 18937(none) 18938 echo "$as_me:18938: checking if you specified -D/-I options for FreeType" >&5 18939echo $ECHO_N "checking if you specified -D/-I options for FreeType... $ECHO_C" >&6 18940 18941# Check whether --with-freetype-cflags or --without-freetype-cflags was given. 18942if test "${with_freetype_cflags+set}" = set; then 18943 withval="$with_freetype_cflags" 18944 cf_cv_x_freetype_incs="$with_freetype_cflags" 18945else 18946 cf_cv_x_freetype_incs=no 18947fi; 18948 echo "$as_me:18948: result: $cf_cv_x_freetype_incs" >&5 18949echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6 18950 18951 echo "$as_me:18951: checking if you specified -L/-l options for FreeType" >&5 18952echo $ECHO_N "checking if you specified -L/-l options for FreeType... $ECHO_C" >&6 18953 18954# Check whether --with-freetype-libs or --without-freetype-libs was given. 18955if test "${with_freetype_libs+set}" = set; then 18956 withval="$with_freetype_libs" 18957 cf_cv_x_freetype_libs="$with_freetype_libs" 18958else 18959 cf_cv_x_freetype_libs=no 18960fi; 18961 echo "$as_me:18961: result: $cf_cv_x_freetype_libs" >&5 18962echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6 18963 ;; 18964(auto) 18965 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then 18966 FREETYPE_CONFIG=$PKG_CONFIG 18967 FREETYPE_PARAMS=xft 18968 else 18969 # Extract the first word of "freetype-config", so it can be a program name with args. 18970set dummy freetype-config; ac_word=$2 18971echo "$as_me:18971: checking for $ac_word" >&5 18972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18973if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then 18974 echo $ECHO_N "(cached) $ECHO_C" >&6 18975else 18976 case $FREETYPE_CONFIG in 18977 [\\/]* | ?:[\\/]*) 18978 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path. 18979 ;; 18980 *) 18981 ac_save_IFS=$IFS; IFS=$ac_path_separator 18982ac_dummy="$PATH" 18983for ac_dir in $ac_dummy; do 18984 IFS=$ac_save_IFS 18985 test -z "$ac_dir" && ac_dir=. 18986 if $as_executable_p "$ac_dir/$ac_word"; then 18987 ac_cv_path_FREETYPE_CONFIG="$ac_dir/$ac_word" 18988 echo "$as_me:18988: found $ac_dir/$ac_word" >&5 18989 break 18990fi 18991done 18992 18993 test -z "$ac_cv_path_FREETYPE_CONFIG" && ac_cv_path_FREETYPE_CONFIG="none" 18994 ;; 18995esac 18996fi 18997FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG 18998 18999if test -n "$FREETYPE_CONFIG"; then 19000 echo "$as_me:19000: result: $FREETYPE_CONFIG" >&5 19001echo "${ECHO_T}$FREETYPE_CONFIG" >&6 19002else 19003 echo "$as_me:19003: result: no" >&5 19004echo "${ECHO_T}no" >&6 19005fi 19006 19007 if test "$FREETYPE_CONFIG" != none; then 19008 FREETYPE_CONFIG=$FREETYPE_CONFIG 19009 cf_extra_freetype_libs="-lXft" 19010 else 19011 # Extract the first word of "xft-config", so it can be a program name with args. 19012set dummy xft-config; ac_word=$2 19013echo "$as_me:19013: checking for $ac_word" >&5 19014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19015if test "${ac_cv_path_FREETYPE_OLD_CONFIG+set}" = set; then 19016 echo $ECHO_N "(cached) $ECHO_C" >&6 19017else 19018 case $FREETYPE_OLD_CONFIG in 19019 [\\/]* | ?:[\\/]*) 19020 ac_cv_path_FREETYPE_OLD_CONFIG="$FREETYPE_OLD_CONFIG" # Let the user override the test with a path. 19021 ;; 19022 *) 19023 ac_save_IFS=$IFS; IFS=$ac_path_separator 19024ac_dummy="$PATH" 19025for ac_dir in $ac_dummy; do 19026 IFS=$ac_save_IFS 19027 test -z "$ac_dir" && ac_dir=. 19028 if $as_executable_p "$ac_dir/$ac_word"; then 19029 ac_cv_path_FREETYPE_OLD_CONFIG="$ac_dir/$ac_word" 19030 echo "$as_me:19030: found $ac_dir/$ac_word" >&5 19031 break 19032fi 19033done 19034 19035 test -z "$ac_cv_path_FREETYPE_OLD_CONFIG" && ac_cv_path_FREETYPE_OLD_CONFIG="none" 19036 ;; 19037esac 19038fi 19039FREETYPE_OLD_CONFIG=$ac_cv_path_FREETYPE_OLD_CONFIG 19040 19041if test -n "$FREETYPE_OLD_CONFIG"; then 19042 echo "$as_me:19042: result: $FREETYPE_OLD_CONFIG" >&5 19043echo "${ECHO_T}$FREETYPE_OLD_CONFIG" >&6 19044else 19045 echo "$as_me:19045: result: no" >&5 19046echo "${ECHO_T}no" >&6 19047fi 19048 19049 if test "$FREETYPE_OLD_CONFIG" != none; then 19050 FREETYPE_CONFIG=$FREETYPE_OLD_CONFIG 19051 fi 19052 fi 19053 fi 19054 ;; 19055(pkg*) 19056 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then 19057 FREETYPE_CONFIG=$cf_cv_x_freetype_cfgs 19058 FREETYPE_PARAMS=xft 19059 else 19060 { echo "$as_me:19060: WARNING: cannot find pkg-config for Xft" >&5 19061echo "$as_me: WARNING: cannot find pkg-config for Xft" >&2;} 19062 fi 19063 ;; 19064(*) 19065 # Extract the first word of "$cf_cv_x_freetype_cfgs", so it can be a program name with args. 19066set dummy $cf_cv_x_freetype_cfgs; ac_word=$2 19067echo "$as_me:19067: checking for $ac_word" >&5 19068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19069if test "${ac_cv_path_FREETYPE_XFT_CONFIG+set}" = set; then 19070 echo $ECHO_N "(cached) $ECHO_C" >&6 19071else 19072 case $FREETYPE_XFT_CONFIG in 19073 [\\/]* | ?:[\\/]*) 19074 ac_cv_path_FREETYPE_XFT_CONFIG="$FREETYPE_XFT_CONFIG" # Let the user override the test with a path. 19075 ;; 19076 *) 19077 ac_save_IFS=$IFS; IFS=$ac_path_separator 19078ac_dummy="$PATH" 19079for ac_dir in $ac_dummy; do 19080 IFS=$ac_save_IFS 19081 test -z "$ac_dir" && ac_dir=. 19082 if $as_executable_p "$ac_dir/$ac_word"; then 19083 ac_cv_path_FREETYPE_XFT_CONFIG="$ac_dir/$ac_word" 19084 echo "$as_me:19084: found $ac_dir/$ac_word" >&5 19085 break 19086fi 19087done 19088 19089 test -z "$ac_cv_path_FREETYPE_XFT_CONFIG" && ac_cv_path_FREETYPE_XFT_CONFIG="none" 19090 ;; 19091esac 19092fi 19093FREETYPE_XFT_CONFIG=$ac_cv_path_FREETYPE_XFT_CONFIG 19094 19095if test -n "$FREETYPE_XFT_CONFIG"; then 19096 echo "$as_me:19096: result: $FREETYPE_XFT_CONFIG" >&5 19097echo "${ECHO_T}$FREETYPE_XFT_CONFIG" >&6 19098else 19099 echo "$as_me:19099: result: no" >&5 19100echo "${ECHO_T}no" >&6 19101fi 19102 19103 if test "$FREETYPE_XFT_CONFIG" != none; then 19104 FREETYPE_CONFIG=$FREETYPE_XFT_CONFIG 19105 else 19106 { echo "$as_me:19106: WARNING: cannot find config script for Xft" >&5 19107echo "$as_me: WARNING: cannot find config script for Xft" >&2;} 19108 fi 19109 ;; 19110esac 19111 19112if test "$FREETYPE_CONFIG" != none ; then 19113 echo "$as_me:19113: checking for FreeType config" >&5 19114echo $ECHO_N "checking for FreeType config... $ECHO_C" >&6 19115 echo "$as_me:19115: result: $FREETYPE_CONFIG $FREETYPE_PARAMS" >&5 19116echo "${ECHO_T}$FREETYPE_CONFIG $FREETYPE_PARAMS" >&6 19117 19118 if test "$cf_cv_x_freetype_incs" = no ; then 19119 echo "$as_me:19119: checking for $FREETYPE_CONFIG cflags" >&5 19120echo $ECHO_N "checking for $FREETYPE_CONFIG cflags... $ECHO_C" >&6 19121 cf_cv_x_freetype_incs="`$FREETYPE_CONFIG $FREETYPE_PARAMS --cflags 2>/dev/null`" 19122 echo "$as_me:19122: result: $cf_cv_x_freetype_incs" >&5 19123echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6 19124 fi 19125 19126 if test "$cf_cv_x_freetype_libs" = no ; then 19127 echo "$as_me:19127: checking for $FREETYPE_CONFIG libs" >&5 19128echo $ECHO_N "checking for $FREETYPE_CONFIG libs... $ECHO_C" >&6 19129 cf_cv_x_freetype_libs="$cf_extra_freetype_libs `$FREETYPE_CONFIG $FREETYPE_PARAMS --libs 2>/dev/null`" 19130 echo "$as_me:19130: result: $cf_cv_x_freetype_libs" >&5 19131echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6 19132 fi 19133fi 19134 19135if test "$cf_cv_x_freetype_incs" = no ; then 19136 cf_cv_x_freetype_incs= 19137fi 19138 19139if test "$cf_cv_x_freetype_libs" = no ; then 19140 cf_cv_x_freetype_libs=-lXft 19141fi 19142 19143echo "$as_me:19143: checking if we can link with FreeType libraries" >&5 19144echo $ECHO_N "checking if we can link with FreeType libraries... $ECHO_C" >&6 19145 19146cf_save_LIBS="$LIBS" 19147cf_save_INCS="$CPPFLAGS" 19148 19149cf_add_libs="$LIBS" 19150# reverse order 19151cf_add_0lib= 19152for cf_add_1lib in $cf_cv_x_freetype_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 19153# filter duplicates 19154for cf_add_1lib in $cf_add_0lib; do 19155 for cf_add_2lib in $cf_add_libs; do 19156 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 19157 cf_add_1lib= 19158 break 19159 fi 19160 done 19161 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 19162done 19163LIBS="$cf_add_libs" 19164 19165CPPFLAGS="$CPPFLAGS $cf_cv_x_freetype_incs" 19166 19167cat >"conftest.$ac_ext" <<_ACEOF 19168#line 19168 "configure" 19169#include "confdefs.h" 19170 19171#include <X11/Xlib.h> 19172#include <X11/extensions/Xrender.h> 19173#include <X11/Xft/Xft.h> 19174int 19175main (void) 19176{ 19177 19178 XftPattern *pat = XftNameParse ("name"); (void)pat 19179 ; 19180 return 0; 19181} 19182_ACEOF 19183rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19184if { (eval echo "$as_me:19184: \"$ac_link\"") >&5 19185 (eval $ac_link) 2>&5 19186 ac_status=$? 19187 echo "$as_me:19187: \$? = $ac_status" >&5 19188 (exit "$ac_status"); } && 19189 { ac_try='test -s "conftest$ac_exeext"' 19190 { (eval echo "$as_me:19190: \"$ac_try\"") >&5 19191 (eval $ac_try) 2>&5 19192 ac_status=$? 19193 echo "$as_me:19193: \$? = $ac_status" >&5 19194 (exit "$ac_status"); }; }; then 19195 cf_cv_found_freetype=yes 19196else 19197 echo "$as_me: failed program was:" >&5 19198cat "conftest.$ac_ext" >&5 19199cf_cv_found_freetype=no 19200fi 19201rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19202echo "$as_me:19202: result: $cf_cv_found_freetype" >&5 19203echo "${ECHO_T}$cf_cv_found_freetype" >&6 19204 19205LIBS="$cf_save_LIBS" 19206CPPFLAGS="$cf_save_INCS" 19207 19208if test "$cf_cv_found_freetype" = yes ; then 19209 19210cf_add_libs="$LIBS" 19211# reverse order 19212cf_add_0lib= 19213for cf_add_1lib in $cf_cv_x_freetype_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 19214# filter duplicates 19215for cf_add_1lib in $cf_add_0lib; do 19216 for cf_add_2lib in $cf_add_libs; do 19217 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 19218 cf_add_1lib= 19219 break 19220 fi 19221 done 19222 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 19223done 19224LIBS="$cf_add_libs" 19225 19226cf_fix_cppflags=no 19227cf_new_cflags= 19228cf_new_cppflags= 19229cf_new_extra_cppflags= 19230 19231for cf_add_cflags in $cf_cv_x_freetype_incs 19232do 19233case "$cf_fix_cppflags" in 19234(no) 19235 case "$cf_add_cflags" in 19236 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 19237 case "$cf_add_cflags" in 19238 (-D*) 19239 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 19240 19241 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 19242 && test -z "${cf_tst_cflags}" \ 19243 && cf_fix_cppflags=yes 19244 19245 if test "$cf_fix_cppflags" = yes ; then 19246 19247 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 19248 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 19249 19250 continue 19251 elif test "${cf_tst_cflags}" = "\"'" ; then 19252 19253 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 19254 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 19255 19256 continue 19257 fi 19258 ;; 19259 esac 19260 case "$CPPFLAGS" in 19261 (*$cf_add_cflags) 19262 ;; 19263 (*) 19264 case "$cf_add_cflags" in 19265 (-D*) 19266 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 19267 19268CPPFLAGS=`echo "$CPPFLAGS" | \ 19269 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 19270 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 19271 19272 ;; 19273 esac 19274 19275 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 19276 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 19277 19278 ;; 19279 esac 19280 ;; 19281 (*) 19282 19283 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 19284 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 19285 19286 ;; 19287 esac 19288 ;; 19289(yes) 19290 19291 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 19292 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 19293 19294 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 19295 19296 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 19297 && test -z "${cf_tst_cflags}" \ 19298 && cf_fix_cppflags=no 19299 ;; 19300esac 19301done 19302 19303if test -n "$cf_new_cflags" ; then 19304 19305 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 19306 CFLAGS="${CFLAGS}$cf_new_cflags" 19307 19308fi 19309 19310if test -n "$cf_new_cppflags" ; then 19311 19312 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 19313 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 19314 19315fi 19316 19317if test -n "$cf_new_extra_cppflags" ; then 19318 19319 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 19320 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 19321 19322fi 19323 19324cat >>confdefs.h <<\EOF 19325#define XRENDERFONT 1 19326EOF 19327 19328for ac_func in \ 19329 XftDrawCharSpec \ 19330 XftDrawSetClip \ 19331 XftDrawSetClipRectangles \ 19332 19333do 19334as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 19335echo "$as_me:19335: checking for $ac_func" >&5 19336echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 19337if eval "test \"\${$as_ac_var+set}\" = set"; then 19338 echo $ECHO_N "(cached) $ECHO_C" >&6 19339else 19340 cat >"conftest.$ac_ext" <<_ACEOF 19341#line 19341 "configure" 19342#include "confdefs.h" 19343#define $ac_func autoconf_temporary 19344#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 19345#undef $ac_func 19346 19347#ifdef __cplusplus 19348extern "C" 19349#endif 19350 19351/* We use char because int might match the return type of a gcc2 19352 builtin and then its argument prototype would still apply. */ 19353char $ac_func (void); 19354 19355int 19356main (void) 19357{ 19358 19359/* The GNU C library defines stubs for functions which it implements 19360 to always fail with ENOSYS. Some functions are actually named 19361 something starting with __ and the normal name is an alias. */ 19362#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19363#error found stub for $ac_func 19364#endif 19365 19366 return $ac_func (); 19367 ; 19368 return 0; 19369} 19370_ACEOF 19371rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19372if { (eval echo "$as_me:19372: \"$ac_link\"") >&5 19373 (eval $ac_link) 2>&5 19374 ac_status=$? 19375 echo "$as_me:19375: \$? = $ac_status" >&5 19376 (exit "$ac_status"); } && 19377 { ac_try='test -s "conftest$ac_exeext"' 19378 { (eval echo "$as_me:19378: \"$ac_try\"") >&5 19379 (eval $ac_try) 2>&5 19380 ac_status=$? 19381 echo "$as_me:19381: \$? = $ac_status" >&5 19382 (exit "$ac_status"); }; }; then 19383 eval "$as_ac_var=yes" 19384else 19385 echo "$as_me: failed program was:" >&5 19386cat "conftest.$ac_ext" >&5 19387eval "$as_ac_var=no" 19388fi 19389rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19390fi 19391echo "$as_me:19391: result: `eval echo '${'"$as_ac_var"'}'`" >&5 19392echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 19393if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 19394 cat >>confdefs.h <<EOF 19395#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 19396EOF 19397 19398fi 19399done 19400 19401else 19402 { echo "$as_me:19402: WARNING: No libraries found for FreeType" >&5 19403echo "$as_me: WARNING: No libraries found for FreeType" >&2;} 19404 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//` 19405fi 19406 19407# FIXME: revisit this if needed 19408 19409if test "$cf_cv_found_freetype" = yes ; then 19410echo "$as_me:19410: checking for usable Xft/fontconfig package" >&5 19411echo $ECHO_N "checking for usable Xft/fontconfig package... $ECHO_C" >&6 19412if test "${cf_cv_xft_compat+set}" = set; then 19413 echo $ECHO_N "(cached) $ECHO_C" >&6 19414else 19415 19416cat >"conftest.$ac_ext" <<_ACEOF 19417#line 19417 "configure" 19418#include "confdefs.h" 19419 19420#include <X11/Xft/Xft.h> 19421 19422int 19423main (void) 19424{ 19425 19426 XftPattern *pat = 0; 19427 XftPatternBuild(pat, 19428 XFT_FAMILY, XftTypeString, "mono", 19429 (void *) 0); 19430 19431 ; 19432 return 0; 19433} 19434_ACEOF 19435rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19436if { (eval echo "$as_me:19436: \"$ac_link\"") >&5 19437 (eval $ac_link) 2>&5 19438 ac_status=$? 19439 echo "$as_me:19439: \$? = $ac_status" >&5 19440 (exit "$ac_status"); } && 19441 { ac_try='test -s "conftest$ac_exeext"' 19442 { (eval echo "$as_me:19442: \"$ac_try\"") >&5 19443 (eval $ac_try) 2>&5 19444 ac_status=$? 19445 echo "$as_me:19445: \$? = $ac_status" >&5 19446 (exit "$ac_status"); }; }; then 19447 cf_cv_xft_compat=yes 19448else 19449 echo "$as_me: failed program was:" >&5 19450cat "conftest.$ac_ext" >&5 19451cf_cv_xft_compat=no 19452fi 19453rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19454 19455fi 19456echo "$as_me:19456: result: $cf_cv_xft_compat" >&5 19457echo "${ECHO_T}$cf_cv_xft_compat" >&6 19458 19459if test "$cf_cv_xft_compat" = no 19460then 19461 # workaround for broken ".pc" files used for Xft. 19462 case "$cf_cv_x_freetype_libs" in 19463 (*-lfontconfig*) 19464 ;; 19465 (*) 19466 test -n "$verbose" && echo " work around broken package" 1>&6 19467 19468echo "${as_me:-configure}:19468: testing work around broken package ..." 1>&5 19469 19470 cf_save_fontconfig="$LIBS" 19471 19472if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "fontconfig"; then 19473 test -n "$verbose" && echo " found package fontconfig" 1>&6 19474 19475echo "${as_me:-configure}:19475: testing found package fontconfig ..." 1>&5 19476 19477 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`" 19478 cf_pkgconfig_libs="`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`" 19479 test -n "$verbose" && echo " package fontconfig CFLAGS: $cf_pkgconfig_incs" 1>&6 19480 19481echo "${as_me:-configure}:19481: testing package fontconfig CFLAGS: $cf_pkgconfig_incs ..." 1>&5 19482 19483 test -n "$verbose" && echo " package fontconfig LIBS: $cf_pkgconfig_libs" 1>&6 19484 19485echo "${as_me:-configure}:19485: testing package fontconfig LIBS: $cf_pkgconfig_libs ..." 1>&5 19486 19487cf_fix_cppflags=no 19488cf_new_cflags= 19489cf_new_cppflags= 19490cf_new_extra_cppflags= 19491 19492for cf_add_cflags in $cf_pkgconfig_incs 19493do 19494case "$cf_fix_cppflags" in 19495(no) 19496 case "$cf_add_cflags" in 19497 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 19498 case "$cf_add_cflags" in 19499 (-D*) 19500 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 19501 19502 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 19503 && test -z "${cf_tst_cflags}" \ 19504 && cf_fix_cppflags=yes 19505 19506 if test "$cf_fix_cppflags" = yes ; then 19507 19508 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 19509 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 19510 19511 continue 19512 elif test "${cf_tst_cflags}" = "\"'" ; then 19513 19514 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 19515 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 19516 19517 continue 19518 fi 19519 ;; 19520 esac 19521 case "$CPPFLAGS" in 19522 (*$cf_add_cflags) 19523 ;; 19524 (*) 19525 case "$cf_add_cflags" in 19526 (-D*) 19527 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 19528 19529CPPFLAGS=`echo "$CPPFLAGS" | \ 19530 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 19531 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 19532 19533 ;; 19534 esac 19535 19536 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 19537 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 19538 19539 ;; 19540 esac 19541 ;; 19542 (*) 19543 19544 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 19545 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 19546 19547 ;; 19548 esac 19549 ;; 19550(yes) 19551 19552 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 19553 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 19554 19555 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 19556 19557 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 19558 && test -z "${cf_tst_cflags}" \ 19559 && cf_fix_cppflags=no 19560 ;; 19561esac 19562done 19563 19564if test -n "$cf_new_cflags" ; then 19565 19566 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 19567 CFLAGS="${CFLAGS}$cf_new_cflags" 19568 19569fi 19570 19571if test -n "$cf_new_cppflags" ; then 19572 19573 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 19574 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 19575 19576fi 19577 19578if test -n "$cf_new_extra_cppflags" ; then 19579 19580 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 19581 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 19582 19583fi 19584 19585cf_add_libs="$LIBS" 19586# reverse order 19587cf_add_0lib= 19588for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 19589# filter duplicates 19590for cf_add_1lib in $cf_add_0lib; do 19591 for cf_add_2lib in $cf_add_libs; do 19592 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 19593 cf_add_1lib= 19594 break 19595 fi 19596 done 19597 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 19598done 19599LIBS="$cf_add_libs" 19600 19601cf_fix_cppflags=no 19602cf_new_cflags= 19603cf_new_cppflags= 19604cf_new_extra_cppflags= 19605 19606for cf_add_cflags in $cf_pkgconfig_incs 19607do 19608case "$cf_fix_cppflags" in 19609(no) 19610 case "$cf_add_cflags" in 19611 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 19612 case "$cf_add_cflags" in 19613 (-D*) 19614 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 19615 19616 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 19617 && test -z "${cf_tst_cflags}" \ 19618 && cf_fix_cppflags=yes 19619 19620 if test "$cf_fix_cppflags" = yes ; then 19621 19622 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 19623 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 19624 19625 continue 19626 elif test "${cf_tst_cflags}" = "\"'" ; then 19627 19628 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 19629 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 19630 19631 continue 19632 fi 19633 ;; 19634 esac 19635 case "$CPPFLAGS" in 19636 (*$cf_add_cflags) 19637 ;; 19638 (*) 19639 case "$cf_add_cflags" in 19640 (-D*) 19641 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 19642 19643CPPFLAGS=`echo "$CPPFLAGS" | \ 19644 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 19645 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 19646 19647 ;; 19648 esac 19649 19650 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 19651 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 19652 19653 ;; 19654 esac 19655 ;; 19656 (*) 19657 19658 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 19659 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 19660 19661 ;; 19662 esac 19663 ;; 19664(yes) 19665 19666 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 19667 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 19668 19669 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 19670 19671 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 19672 && test -z "${cf_tst_cflags}" \ 19673 && cf_fix_cppflags=no 19674 ;; 19675esac 19676done 19677 19678if test -n "$cf_new_cflags" ; then 19679 19680 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 19681 CFLAGS="${CFLAGS}$cf_new_cflags" 19682 19683fi 19684 19685if test -n "$cf_new_cppflags" ; then 19686 19687 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 19688 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 19689 19690fi 19691 19692if test -n "$cf_new_extra_cppflags" ; then 19693 19694 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 19695 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 19696 19697fi 19698 19699 LIBS="$cf_save_fontconfig" 19700 19701test -n "$verbose" && echo " ...before $LIBS" 1>&6 19702 19703echo "${as_me:-configure}:19703: testing ...before $LIBS ..." 1>&5 19704 19705LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXft %-lXft $cf_pkgconfig_libs %" -e 's% % %g'` 19706test -n "$verbose" && echo " ...after $LIBS" 1>&6 19707 19708echo "${as_me:-configure}:19708: testing ...after $LIBS ..." 1>&5 19709 19710else 19711 cf_pkgconfig_incs= 19712 cf_pkgconfig_libs= 19713 19714test -n "$verbose" && echo " ...before $LIBS" 1>&6 19715 19716echo "${as_me:-configure}:19716: testing ...before $LIBS ..." 1>&5 19717 19718LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXft %-lXft -lfontconfig %" -e 's% % %g'` 19719test -n "$verbose" && echo " ...after $LIBS" 1>&6 19720 19721echo "${as_me:-configure}:19721: testing ...after $LIBS ..." 1>&5 19722 19723fi 19724 19725 ;; 19726 esac 19727fi 19728fi 19729 19730else 19731 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//` 19732fi 19733 19734echo "$as_me:19734: checking if you want support for HP-style function keys" >&5 19735echo $ECHO_N "checking if you want support for HP-style function keys... $ECHO_C" >&6 19736 19737# Check whether --enable-hp-fkeys or --disable-hp-fkeys was given. 19738if test "${enable_hp_fkeys+set}" = set; then 19739 enableval="$enable_hp_fkeys" 19740 test "$enableval" != yes && enableval=no 19741 if test "$enableval" != "no" ; then 19742 enable_hp_fkeys=yes 19743 else 19744 enable_hp_fkeys=no 19745 fi 19746else 19747 enableval=no 19748 enable_hp_fkeys=no 19749 19750fi; 19751echo "$as_me:19751: result: $enable_hp_fkeys" >&5 19752echo "${ECHO_T}$enable_hp_fkeys" >&6 19753if test "$enable_hp_fkeys" = yes ; then 19754 19755cat >>confdefs.h <<\EOF 19756#define OPT_HP_FUNC_KEYS 1 19757EOF 19758 19759fi 19760 19761echo "$as_me:19761: checking if you want support for SCO-style function keys" >&5 19762echo $ECHO_N "checking if you want support for SCO-style function keys... $ECHO_C" >&6 19763 19764# Check whether --enable-sco-fkeys or --disable-sco-fkeys was given. 19765if test "${enable_sco_fkeys+set}" = set; then 19766 enableval="$enable_sco_fkeys" 19767 test "$enableval" != yes && enableval=no 19768 if test "$enableval" != "no" ; then 19769 enable_sco_fkeys=yes 19770 else 19771 enable_sco_fkeys=no 19772 fi 19773else 19774 enableval=no 19775 enable_sco_fkeys=no 19776 19777fi; 19778echo "$as_me:19778: result: $enable_sco_fkeys" >&5 19779echo "${ECHO_T}$enable_sco_fkeys" >&6 19780if test "$enable_sco_fkeys" = yes ; then 19781 19782cat >>confdefs.h <<\EOF 19783#define OPT_SCO_FUNC_KEYS 1 19784EOF 19785 19786fi 19787 19788echo "$as_me:19788: checking if you want support for Sun-style function keys" >&5 19789echo $ECHO_N "checking if you want support for Sun-style function keys... $ECHO_C" >&6 19790 19791# Check whether --enable-sun-fkeys or --disable-sun-fkeys was given. 19792if test "${enable_sun_fkeys+set}" = set; then 19793 enableval="$enable_sun_fkeys" 19794 test "$enableval" != no && enableval=yes 19795 if test "$enableval" != "yes" ; then 19796 enable_sun_fkeys=no 19797 else 19798 enable_sun_fkeys=yes 19799 fi 19800else 19801 enableval=yes 19802 enable_sun_fkeys=yes 19803 19804fi; 19805echo "$as_me:19805: result: $enable_sun_fkeys" >&5 19806echo "${ECHO_T}$enable_sun_fkeys" >&6 19807if test "$enable_sun_fkeys" = no ; then 19808 19809cat >>confdefs.h <<\EOF 19810#define OPT_SUN_FUNC_KEYS 0 19811EOF 19812 19813fi 19814 19815echo "$as_me:19815: checking if you want saved-lines stored as a FIFO" >&5 19816echo $ECHO_N "checking if you want saved-lines stored as a FIFO... $ECHO_C" >&6 19817 19818# Check whether --enable-fifo-lines or --disable-fifo-lines was given. 19819if test "${enable_fifo_lines+set}" = set; then 19820 enableval="$enable_fifo_lines" 19821 test "$enableval" != no && enableval=yes 19822 if test "$enableval" != "yes" ; then 19823 enable_fifo_lines=no 19824 else 19825 enable_fifo_lines=yes 19826 fi 19827else 19828 enableval=yes 19829 enable_fifo_lines=yes 19830 19831fi; 19832echo "$as_me:19832: result: $enable_fifo_lines" >&5 19833echo "${ECHO_T}$enable_fifo_lines" >&6 19834if test "$enable_fifo_lines" = yes ; then 19835 19836cat >>confdefs.h <<\EOF 19837#define OPT_FIFO_LINES 1 19838EOF 19839 19840fi 19841 19842echo "$as_me:19842: checking if you want support for internationalization" >&5 19843echo $ECHO_N "checking if you want support for internationalization... $ECHO_C" >&6 19844 19845# Check whether --enable-i18n or --disable-i18n was given. 19846if test "${enable_i18n+set}" = set; then 19847 enableval="$enable_i18n" 19848 test "$enableval" != no && enableval=yes 19849 if test "$enableval" != "yes" ; then 19850 enable_i18n=no 19851 else 19852 enable_i18n=yes 19853 fi 19854else 19855 enableval=yes 19856 enable_i18n=yes 19857 19858fi; 19859echo "$as_me:19859: result: $enable_i18n" >&5 19860echo "${ECHO_T}$enable_i18n" >&6 19861if test "$enable_i18n" = no ; then 19862 19863cat >>confdefs.h <<\EOF 19864#define OPT_I18N_SUPPORT 0 19865EOF 19866 19867fi 19868 19869echo "$as_me:19869: checking if you want support for initial-erase setup" >&5 19870echo $ECHO_N "checking if you want support for initial-erase setup... $ECHO_C" >&6 19871 19872# Check whether --enable-initial-erase or --disable-initial-erase was given. 19873if test "${enable_initial_erase+set}" = set; then 19874 enableval="$enable_initial_erase" 19875 test "$enableval" != no && enableval=yes 19876 if test "$enableval" != "yes" ; then 19877 enable_ie=no 19878 else 19879 enable_ie=yes 19880 fi 19881else 19882 enableval=yes 19883 enable_ie=yes 19884 19885fi; 19886echo "$as_me:19886: result: $enable_ie" >&5 19887echo "${ECHO_T}$enable_ie" >&6 19888if test "$enable_ie" = no ; then 19889 19890cat >>confdefs.h <<\EOF 19891#define OPT_INITIAL_ERASE 0 19892EOF 19893 19894fi 19895 19896echo "$as_me:19896: checking if you want support for input-method" >&5 19897echo $ECHO_N "checking if you want support for input-method... $ECHO_C" >&6 19898 19899# Check whether --enable-input-method or --disable-input-method was given. 19900if test "${enable_input_method+set}" = set; then 19901 enableval="$enable_input_method" 19902 test "$enableval" != no && enableval=yes 19903 if test "$enableval" != "yes" ; then 19904 enable_ximp=no 19905 else 19906 enable_ximp=$enable_i18n 19907 fi 19908else 19909 enableval=yes 19910 enable_ximp=$enable_i18n 19911 19912fi; 19913echo "$as_me:19913: result: $enable_ximp" >&5 19914echo "${ECHO_T}$enable_ximp" >&6 19915 19916echo "$as_me:19916: checking if X libraries support input-method" >&5 19917echo $ECHO_N "checking if X libraries support input-method... $ECHO_C" >&6 19918if test "${cf_cv_input_method+set}" = set; then 19919 echo $ECHO_N "(cached) $ECHO_C" >&6 19920else 19921 19922cat >"conftest.$ac_ext" <<_ACEOF 19923#line 19923 "configure" 19924#include "confdefs.h" 19925 19926#include <X11/IntrinsicP.h> 19927#include <X11/Xatom.h> 19928#include <X11/Xutil.h> 19929#include <X11/Xmu/Atoms.h> 19930#include <X11/Xmu/Converters.h> 19931#include <X11/Xaw/XawImP.h> 19932 19933int 19934main (void) 19935{ 19936 19937{ 19938 XIM xim; 19939 XIMStyles *xim_styles = 0; 19940 XIMStyle input_style; 19941 Widget w = 0; 19942 19943 XSetLocaleModifiers("@im=none"); 19944 xim = XOpenIM(XtDisplay(w), NULL, NULL, NULL); 19945 XGetIMValues(xim, XNQueryInputStyle, &xim_styles, NULL); 19946 XCloseIM(xim); 19947 input_style = (XIMPreeditNothing | XIMStatusNothing); 19948 (void)xim_styles; 19949 (void)input_style; 19950} 19951 19952 ; 19953 return 0; 19954} 19955_ACEOF 19956rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19957if { (eval echo "$as_me:19957: \"$ac_link\"") >&5 19958 (eval $ac_link) 2>&5 19959 ac_status=$? 19960 echo "$as_me:19960: \$? = $ac_status" >&5 19961 (exit "$ac_status"); } && 19962 { ac_try='test -s "conftest$ac_exeext"' 19963 { (eval echo "$as_me:19963: \"$ac_try\"") >&5 19964 (eval $ac_try) 2>&5 19965 ac_status=$? 19966 echo "$as_me:19966: \$? = $ac_status" >&5 19967 (exit "$ac_status"); }; }; then 19968 cf_cv_input_method=yes 19969else 19970 echo "$as_me: failed program was:" >&5 19971cat "conftest.$ac_ext" >&5 19972cf_cv_input_method=no 19973fi 19974rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19975fi 19976echo "$as_me:19976: result: $cf_cv_input_method" >&5 19977echo "${ECHO_T}$cf_cv_input_method" >&6 19978 19979test "$cf_cv_input_method" = no && enable_ximp=no 19980if test "$enable_ximp" != no ; then 19981 if test "$enable_i18n" = no ; then 19982 { echo "$as_me:19982: WARNING: input-methor relies upon internationalization" >&5 19983echo "$as_me: WARNING: input-methor relies upon internationalization" >&2;} 19984 enable_ximp=no 19985 fi 19986fi 19987if test "$enable_ximp" = no ; then 19988 19989cat >>confdefs.h <<\EOF 19990#define OPT_INPUT_METHOD 0 19991EOF 19992 19993fi 19994 19995echo "$as_me:19995: checking if you want support for load-vt-fonts" >&5 19996echo $ECHO_N "checking if you want support for load-vt-fonts... $ECHO_C" >&6 19997 19998# Check whether --enable-load-vt-fonts or --disable-load-vt-fonts was given. 19999if test "${enable_load_vt_fonts+set}" = set; then 20000 enableval="$enable_load_vt_fonts" 20001 test "$enableval" != yes && enableval=no 20002 if test "$enableval" != "no" ; then 20003 enable_load_vt_fonts=yes 20004 else 20005 enable_load_vt_fonts=no 20006 fi 20007else 20008 enableval=no 20009 enable_load_vt_fonts=no 20010 20011fi; 20012echo "$as_me:20012: result: $enable_load_vt_fonts" >&5 20013echo "${ECHO_T}$enable_load_vt_fonts" >&6 20014if test "$enable_load_vt_fonts" = yes ; then 20015 20016cat >>confdefs.h <<\EOF 20017#define OPT_LOAD_VTFONTS 1 20018EOF 20019 20020fi 20021 20022echo "$as_me:20022: checking if you want support for logging" >&5 20023echo $ECHO_N "checking if you want support for logging... $ECHO_C" >&6 20024 20025# Check whether --enable-logging or --disable-logging was given. 20026if test "${enable_logging+set}" = set; then 20027 enableval="$enable_logging" 20028 test "$enableval" != yes && enableval=no 20029 if test "$enableval" != "no" ; then 20030 enable_logging=yes 20031 else 20032 enable_logging=no 20033 fi 20034else 20035 enableval=no 20036 enable_logging=no 20037 20038fi; 20039echo "$as_me:20039: result: $enable_logging" >&5 20040echo "${ECHO_T}$enable_logging" >&6 20041if test "$enable_logging" = yes ; then 20042 20043cat >>confdefs.h <<\EOF 20044#define ALLOWLOGGING 1 20045EOF 20046 20047 echo "$as_me:20047: checking if you want to allow logging via a pipe" >&5 20048echo $ECHO_N "checking if you want to allow logging via a pipe... $ECHO_C" >&6 20049 20050# Check whether --enable-logfile-exec or --disable-logfile-exec was given. 20051if test "${enable_logfile_exec+set}" = set; then 20052 enableval="$enable_logfile_exec" 20053 test "$enableval" != yes && enableval=no 20054 if test "$enableval" != "no" ; then 20055 enable_log_exec=yes 20056 else 20057 enable_log_exec=no 20058 fi 20059else 20060 enableval=no 20061 enable_log_exec=no 20062 20063fi; 20064 echo "$as_me:20064: result: $enable_log_exec" >&5 20065echo "${ECHO_T}$enable_log_exec" >&6 20066 if test "$enable_log_exec" = yes ; then 20067 20068cat >>confdefs.h <<\EOF 20069#define ALLOWLOGFILEEXEC 1 20070EOF 20071 20072 fi 20073fi 20074 20075echo "$as_me:20075: checking if you want support for iconify/maximize translations" >&5 20076echo $ECHO_N "checking if you want support for iconify/maximize translations... $ECHO_C" >&6 20077 20078# Check whether --enable-maximize or --disable-maximize was given. 20079if test "${enable_maximize+set}" = set; then 20080 enableval="$enable_maximize" 20081 test "$enableval" != no && enableval=yes 20082 if test "$enableval" != "yes" ; then 20083 enable_maximize=no 20084 else 20085 enable_maximize=yes 20086 fi 20087else 20088 enableval=yes 20089 enable_maximize=yes 20090 20091fi; 20092echo "$as_me:20092: result: $enable_maximize" >&5 20093echo "${ECHO_T}$enable_maximize" >&6 20094test "$enable_maximize" = no && 20095cat >>confdefs.h <<\EOF 20096#define OPT_MAXIMIZE 0 20097EOF 20098 20099echo "$as_me:20099: checking if you want NumLock to override keyboard tables" >&5 20100echo $ECHO_N "checking if you want NumLock to override keyboard tables... $ECHO_C" >&6 20101 20102# Check whether --enable-num-lock or --disable-num-lock was given. 20103if test "${enable_num_lock+set}" = set; then 20104 enableval="$enable_num_lock" 20105 test "$enableval" != no && enableval=yes 20106 if test "$enableval" != "yes" ; then 20107 enable_numlock=no 20108 else 20109 enable_numlock=yes 20110 fi 20111else 20112 enableval=yes 20113 enable_numlock=yes 20114 20115fi; 20116echo "$as_me:20116: result: $enable_numlock" >&5 20117echo "${ECHO_T}$enable_numlock" >&6 20118test "$enable_numlock" = no && 20119cat >>confdefs.h <<\EOF 20120#define OPT_NUM_LOCK 0 20121EOF 20122 20123echo "$as_me:20123: checking if you want support for get/set of base64 selection data" >&5 20124echo $ECHO_N "checking if you want support for get/set of base64 selection data... $ECHO_C" >&6 20125 20126# Check whether --enable-paste64 or --disable-paste64 was given. 20127if test "${enable_paste64+set}" = set; then 20128 enableval="$enable_paste64" 20129 test "$enableval" != no && enableval=yes 20130 if test "$enableval" != "yes" ; then 20131 enable_paste64=no 20132 else 20133 enable_paste64=yes 20134 fi 20135else 20136 enableval=yes 20137 enable_paste64=yes 20138 20139fi; 20140echo "$as_me:20140: result: $enable_paste64" >&5 20141echo "${ECHO_T}$enable_paste64" >&6 20142if test "$enable_paste64" = yes ; then 20143 20144cat >>confdefs.h <<\EOF 20145#define OPT_PASTE64 1 20146EOF 20147 20148else 20149 20150cat >>confdefs.h <<\EOF 20151#define OPT_PASTE64 0 20152EOF 20153 20154fi 20155 20156echo "$as_me:20156: checking if you want support for pty-handshaking" >&5 20157echo $ECHO_N "checking if you want support for pty-handshaking... $ECHO_C" >&6 20158 20159# Check whether --enable-pty-handshake or --disable-pty-handshake was given. 20160if test "${enable_pty_handshake+set}" = set; then 20161 enableval="$enable_pty_handshake" 20162 test "$enableval" != no && enableval=yes 20163 if test "$enableval" != "yes" ; then 20164 enable_pty_handshake=no 20165 else 20166 enable_pty_handshake=yes 20167 fi 20168else 20169 enableval=yes 20170 enable_pty_handshake=yes 20171 20172fi; 20173echo "$as_me:20173: result: $enable_pty_handshake" >&5 20174echo "${ECHO_T}$enable_pty_handshake" >&6 20175if test "$enable_pty_handshake" = yes ; then 20176 20177cat >>confdefs.h <<\EOF 20178#define OPT_PTY_HANDSHAKE 1 20179EOF 20180 20181else 20182 20183cat >>confdefs.h <<\EOF 20184#define OPT_PTY_HANDSHAKE 0 20185EOF 20186 20187fi 20188 20189echo "$as_me:20189: checking if you want support for mouse in readline applications" >&5 20190echo $ECHO_N "checking if you want support for mouse in readline applications... $ECHO_C" >&6 20191 20192# Check whether --enable-readline-mouse or --disable-readline-mouse was given. 20193if test "${enable_readline_mouse+set}" = set; then 20194 enableval="$enable_readline_mouse" 20195 test "$enableval" != yes && enableval=no 20196 if test "$enableval" != "no" ; then 20197 enable_readline_mouse=yes 20198 else 20199 enable_readline_mouse=no 20200 fi 20201else 20202 enableval=no 20203 enable_readline_mouse=no 20204 20205fi; 20206echo "$as_me:20206: result: $enable_readline_mouse" >&5 20207echo "${ECHO_T}$enable_readline_mouse" >&6 20208if test "$enable_readline_mouse" = yes ; then 20209 20210cat >>confdefs.h <<\EOF 20211#define OPT_READLINE 1 20212EOF 20213 20214fi 20215 20216echo "$as_me:20216: checking if you want support for regular-expression selections" >&5 20217echo $ECHO_N "checking if you want support for regular-expression selections... $ECHO_C" >&6 20218 20219# Check whether --enable-regex or --disable-regex was given. 20220if test "${enable_regex+set}" = set; then 20221 enableval="$enable_regex" 20222 test "$enableval" != no && enableval=yes 20223 if test "$enableval" != "yes" ; then 20224 enable_regex=no 20225 else 20226 enable_regex=yes 20227 fi 20228else 20229 enableval=yes 20230 enable_regex=yes 20231 20232fi; 20233echo "$as_me:20233: result: $enable_regex" >&5 20234echo "${ECHO_T}$enable_regex" >&6 20235if test "$enable_regex" = yes ; then 20236 20237echo "$as_me:20237: checking if you want to use PCRE2 for regular-expressions" >&5 20238echo $ECHO_N "checking if you want to use PCRE2 for regular-expressions... $ECHO_C" >&6 20239 20240# Check whether --with-pcre2 or --without-pcre2 was given. 20241if test "${with_pcre2+set}" = set; then 20242 withval="$with_pcre2" 20243 20244fi; 20245test -z "$with_pcre2" && with_pcre2=no 20246echo "$as_me:20246: result: $with_pcre2" >&5 20247echo "${ECHO_T}$with_pcre2" >&6 20248 20249if test "x$with_pcre2" != xno ; then 20250 cf_with_pcre2_ok=no 20251 for cf_with_pcre2 in libpcre2 libpcre2-posix libpcre 20252 do 20253 20254if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_with_pcre2"; then 20255 test -n "$verbose" && echo " found package $cf_with_pcre2" 1>&6 20256 20257echo "${as_me:-configure}:20257: testing found package $cf_with_pcre2 ..." 1>&5 20258 20259 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_with_pcre2" 2>/dev/null`" 20260 cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_with_pcre2" 2>/dev/null`" 20261 test -n "$verbose" && echo " package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs" 1>&6 20262 20263echo "${as_me:-configure}:20263: testing package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 20264 20265 test -n "$verbose" && echo " package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs" 1>&6 20266 20267echo "${as_me:-configure}:20267: testing package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs ..." 1>&5 20268 20269cf_fix_cppflags=no 20270cf_new_cflags= 20271cf_new_cppflags= 20272cf_new_extra_cppflags= 20273 20274for cf_add_cflags in $cf_pkgconfig_incs 20275do 20276case "$cf_fix_cppflags" in 20277(no) 20278 case "$cf_add_cflags" in 20279 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 20280 case "$cf_add_cflags" in 20281 (-D*) 20282 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 20283 20284 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 20285 && test -z "${cf_tst_cflags}" \ 20286 && cf_fix_cppflags=yes 20287 20288 if test "$cf_fix_cppflags" = yes ; then 20289 20290 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20291 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20292 20293 continue 20294 elif test "${cf_tst_cflags}" = "\"'" ; then 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 continue 20300 fi 20301 ;; 20302 esac 20303 case "$CPPFLAGS" in 20304 (*$cf_add_cflags) 20305 ;; 20306 (*) 20307 case "$cf_add_cflags" in 20308 (-D*) 20309 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 20310 20311CPPFLAGS=`echo "$CPPFLAGS" | \ 20312 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 20313 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 20314 20315 ;; 20316 esac 20317 20318 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 20319 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 20320 20321 ;; 20322 esac 20323 ;; 20324 (*) 20325 20326 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 20327 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 20328 20329 ;; 20330 esac 20331 ;; 20332(yes) 20333 20334 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20335 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20336 20337 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 20338 20339 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 20340 && test -z "${cf_tst_cflags}" \ 20341 && cf_fix_cppflags=no 20342 ;; 20343esac 20344done 20345 20346if test -n "$cf_new_cflags" ; then 20347 20348 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 20349 CFLAGS="${CFLAGS}$cf_new_cflags" 20350 20351fi 20352 20353if test -n "$cf_new_cppflags" ; then 20354 20355 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 20356 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 20357 20358fi 20359 20360if test -n "$cf_new_extra_cppflags" ; then 20361 20362 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 20363 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 20364 20365fi 20366 20367cf_add_libs="$LIBS" 20368# reverse order 20369cf_add_0lib= 20370for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 20371# filter duplicates 20372for cf_add_1lib in $cf_add_0lib; do 20373 for cf_add_2lib in $cf_add_libs; do 20374 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 20375 cf_add_1lib= 20376 break 20377 fi 20378 done 20379 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 20380done 20381LIBS="$cf_add_libs" 20382 20383 cf_with_pcre2_ok=yes; break 20384else 20385 cf_pkgconfig_incs= 20386 cf_pkgconfig_libs= 20387 : 20388fi 20389 20390 done 20391 cf_with_pcre2_ok=yes || { { echo "$as_me:20391: error: Cannot find PCRE2 library" >&5 20392echo "$as_me: error: Cannot find PCRE2 library" >&2;} 20393 { (exit 1); exit 1; }; } 20394 20395cat >>confdefs.h <<\EOF 20396#define HAVE_LIB_PCRE2 1 20397EOF 20398 20399 # if pkgconfig gave no results, look for the libraries directly 20400 case "$LIBS" in 20401 (*pcre2-posix*|*pcreposix*) 20402 ;; 20403 (*) 20404 echo "$as_me:20404: checking for regcomp in -lpcre2-posix" >&5 20405echo $ECHO_N "checking for regcomp in -lpcre2-posix... $ECHO_C" >&6 20406if test "${ac_cv_lib_pcre2_posix_regcomp+set}" = set; then 20407 echo $ECHO_N "(cached) $ECHO_C" >&6 20408else 20409 ac_check_lib_save_LIBS=$LIBS 20410LIBS="-lpcre2-posix $LIBS" 20411cat >"conftest.$ac_ext" <<_ACEOF 20412#line 20412 "configure" 20413#include "confdefs.h" 20414 20415/* Override any gcc2 internal prototype to avoid an error. */ 20416#ifdef __cplusplus 20417extern "C" 20418#endif 20419/* We use char because int might match the return type of a gcc2 20420 builtin and then its argument prototype would still apply. */ 20421char regcomp (); 20422int 20423main (void) 20424{ 20425regcomp (); 20426 ; 20427 return 0; 20428} 20429_ACEOF 20430rm -f "conftest.$ac_objext" "conftest$ac_exeext" 20431if { (eval echo "$as_me:20431: \"$ac_link\"") >&5 20432 (eval $ac_link) 2>&5 20433 ac_status=$? 20434 echo "$as_me:20434: \$? = $ac_status" >&5 20435 (exit "$ac_status"); } && 20436 { ac_try='test -s "conftest$ac_exeext"' 20437 { (eval echo "$as_me:20437: \"$ac_try\"") >&5 20438 (eval $ac_try) 2>&5 20439 ac_status=$? 20440 echo "$as_me:20440: \$? = $ac_status" >&5 20441 (exit "$ac_status"); }; }; then 20442 ac_cv_lib_pcre2_posix_regcomp=yes 20443else 20444 echo "$as_me: failed program was:" >&5 20445cat "conftest.$ac_ext" >&5 20446ac_cv_lib_pcre2_posix_regcomp=no 20447fi 20448rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 20449LIBS=$ac_check_lib_save_LIBS 20450fi 20451echo "$as_me:20451: result: $ac_cv_lib_pcre2_posix_regcomp" >&5 20452echo "${ECHO_T}$ac_cv_lib_pcre2_posix_regcomp" >&6 20453if test "$ac_cv_lib_pcre2_posix_regcomp" = yes; then 20454 20455cf_add_libs="$LIBS" 20456# reverse order 20457cf_add_0lib= 20458for cf_add_1lib in -lpcre2-posix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 20459# filter duplicates 20460for cf_add_1lib in $cf_add_0lib; do 20461 for cf_add_2lib in $cf_add_libs; do 20462 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 20463 cf_add_1lib= 20464 break 20465 fi 20466 done 20467 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 20468done 20469LIBS="$cf_add_libs" 20470 20471else 20472 echo "$as_me:20472: checking for regcomp in -lpcreposix" >&5 20473echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6 20474if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then 20475 echo $ECHO_N "(cached) $ECHO_C" >&6 20476else 20477 ac_check_lib_save_LIBS=$LIBS 20478LIBS="-lpcreposix $LIBS" 20479cat >"conftest.$ac_ext" <<_ACEOF 20480#line 20480 "configure" 20481#include "confdefs.h" 20482 20483/* Override any gcc2 internal prototype to avoid an error. */ 20484#ifdef __cplusplus 20485extern "C" 20486#endif 20487/* We use char because int might match the return type of a gcc2 20488 builtin and then its argument prototype would still apply. */ 20489char regcomp (); 20490int 20491main (void) 20492{ 20493regcomp (); 20494 ; 20495 return 0; 20496} 20497_ACEOF 20498rm -f "conftest.$ac_objext" "conftest$ac_exeext" 20499if { (eval echo "$as_me:20499: \"$ac_link\"") >&5 20500 (eval $ac_link) 2>&5 20501 ac_status=$? 20502 echo "$as_me:20502: \$? = $ac_status" >&5 20503 (exit "$ac_status"); } && 20504 { ac_try='test -s "conftest$ac_exeext"' 20505 { (eval echo "$as_me:20505: \"$ac_try\"") >&5 20506 (eval $ac_try) 2>&5 20507 ac_status=$? 20508 echo "$as_me:20508: \$? = $ac_status" >&5 20509 (exit "$ac_status"); }; }; then 20510 ac_cv_lib_pcreposix_regcomp=yes 20511else 20512 echo "$as_me: failed program was:" >&5 20513cat "conftest.$ac_ext" >&5 20514ac_cv_lib_pcreposix_regcomp=no 20515fi 20516rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 20517LIBS=$ac_check_lib_save_LIBS 20518fi 20519echo "$as_me:20519: result: $ac_cv_lib_pcreposix_regcomp" >&5 20520echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6 20521if test "$ac_cv_lib_pcreposix_regcomp" = yes; then 20522 20523cf_add_libs="$LIBS" 20524# reverse order 20525cf_add_0lib= 20526for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 20527# filter duplicates 20528for cf_add_1lib in $cf_add_0lib; do 20529 for cf_add_2lib in $cf_add_libs; do 20530 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 20531 cf_add_1lib= 20532 break 20533 fi 20534 done 20535 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 20536done 20537LIBS="$cf_add_libs" 20538 20539else 20540 { { echo "$as_me:20540: error: Cannot find PCRE2 POSIX library" >&5 20541echo "$as_me: error: Cannot find PCRE2 POSIX library" >&2;} 20542 { (exit 1); exit 1; }; } 20543fi 20544 20545fi 20546 20547 ;; 20548 esac 20549 20550 # either way, check for the library header files 20551 20552for ac_header in pcre2posix.h pcreposix.h 20553do 20554as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20555echo "$as_me:20555: checking for $ac_header" >&5 20556echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 20557if eval "test \"\${$as_ac_Header+set}\" = set"; then 20558 echo $ECHO_N "(cached) $ECHO_C" >&6 20559else 20560 cat >"conftest.$ac_ext" <<_ACEOF 20561#line 20561 "configure" 20562#include "confdefs.h" 20563#include <$ac_header> 20564_ACEOF 20565if { (eval echo "$as_me:20565: \"$ac_cpp "conftest.$ac_ext"\"") >&5 20566 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 20567 ac_status=$? 20568 $EGREP -v '^ *\+' conftest.er1 >conftest.err 20569 rm -f conftest.er1 20570 cat conftest.err >&5 20571 echo "$as_me:20571: \$? = $ac_status" >&5 20572 (exit "$ac_status"); } >/dev/null; then 20573 if test -s conftest.err; then 20574 ac_cpp_err=$ac_c_preproc_warn_flag 20575 else 20576 ac_cpp_err= 20577 fi 20578else 20579 ac_cpp_err=yes 20580fi 20581if test -z "$ac_cpp_err"; then 20582 eval "$as_ac_Header=yes" 20583else 20584 echo "$as_me: failed program was:" >&5 20585 cat "conftest.$ac_ext" >&5 20586 eval "$as_ac_Header=no" 20587fi 20588rm -f conftest.err "conftest.$ac_ext" 20589fi 20590echo "$as_me:20590: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 20591echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 20592if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 20593 cat >>confdefs.h <<EOF 20594#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20595EOF 20596 20597fi 20598done 20599 20600fi 20601 20602 if test "$with_pcre2" = no ; then 20603 20604echo "$as_me:20604: checking if you want to use PCRE for regular-expressions" >&5 20605echo $ECHO_N "checking if you want to use PCRE for regular-expressions... $ECHO_C" >&6 20606 20607# Check whether --with-pcre or --without-pcre was given. 20608if test "${with_pcre+set}" = set; then 20609 withval="$with_pcre" 20610 20611fi; 20612test -z "$with_pcre" && with_pcre=no 20613echo "$as_me:20613: result: $with_pcre" >&5 20614echo "${ECHO_T}$with_pcre" >&6 20615 20616if test "$with_pcre" != no ; then 20617 20618if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "libpcre"; then 20619 test -n "$verbose" && echo " found package libpcre" 1>&6 20620 20621echo "${as_me:-configure}:20621: testing found package libpcre ..." 1>&5 20622 20623 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "libpcre" 2>/dev/null`" 20624 cf_pkgconfig_libs="`$PKG_CONFIG --libs "libpcre" 2>/dev/null`" 20625 test -n "$verbose" && echo " package libpcre CFLAGS: $cf_pkgconfig_incs" 1>&6 20626 20627echo "${as_me:-configure}:20627: testing package libpcre CFLAGS: $cf_pkgconfig_incs ..." 1>&5 20628 20629 test -n "$verbose" && echo " package libpcre LIBS: $cf_pkgconfig_libs" 1>&6 20630 20631echo "${as_me:-configure}:20631: testing package libpcre LIBS: $cf_pkgconfig_libs ..." 1>&5 20632 20633cf_fix_cppflags=no 20634cf_new_cflags= 20635cf_new_cppflags= 20636cf_new_extra_cppflags= 20637 20638for cf_add_cflags in $cf_pkgconfig_incs 20639do 20640case "$cf_fix_cppflags" in 20641(no) 20642 case "$cf_add_cflags" in 20643 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 20644 case "$cf_add_cflags" in 20645 (-D*) 20646 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 20647 20648 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 20649 && test -z "${cf_tst_cflags}" \ 20650 && cf_fix_cppflags=yes 20651 20652 if test "$cf_fix_cppflags" = yes ; then 20653 20654 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20655 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20656 20657 continue 20658 elif test "${cf_tst_cflags}" = "\"'" ; then 20659 20660 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20661 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20662 20663 continue 20664 fi 20665 ;; 20666 esac 20667 case "$CPPFLAGS" in 20668 (*$cf_add_cflags) 20669 ;; 20670 (*) 20671 case "$cf_add_cflags" in 20672 (-D*) 20673 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 20674 20675CPPFLAGS=`echo "$CPPFLAGS" | \ 20676 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 20677 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 20678 20679 ;; 20680 esac 20681 20682 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 20683 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 20684 20685 ;; 20686 esac 20687 ;; 20688 (*) 20689 20690 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 20691 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 20692 20693 ;; 20694 esac 20695 ;; 20696(yes) 20697 20698 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20699 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20700 20701 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 20702 20703 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 20704 && test -z "${cf_tst_cflags}" \ 20705 && cf_fix_cppflags=no 20706 ;; 20707esac 20708done 20709 20710if test -n "$cf_new_cflags" ; then 20711 20712 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 20713 CFLAGS="${CFLAGS}$cf_new_cflags" 20714 20715fi 20716 20717if test -n "$cf_new_cppflags" ; then 20718 20719 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 20720 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 20721 20722fi 20723 20724if test -n "$cf_new_extra_cppflags" ; then 20725 20726 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 20727 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 20728 20729fi 20730 20731cf_add_libs="$LIBS" 20732# reverse order 20733cf_add_0lib= 20734for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 20735# filter duplicates 20736for cf_add_1lib in $cf_add_0lib; do 20737 for cf_add_2lib in $cf_add_libs; do 20738 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 20739 cf_add_1lib= 20740 break 20741 fi 20742 done 20743 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 20744done 20745LIBS="$cf_add_libs" 20746 20747 : 20748else 20749 cf_pkgconfig_incs= 20750 cf_pkgconfig_libs= 20751 20752echo "$as_me:20752: checking for pcre_compile in -lpcre" >&5 20753echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6 20754if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then 20755 echo $ECHO_N "(cached) $ECHO_C" >&6 20756else 20757 ac_check_lib_save_LIBS=$LIBS 20758LIBS="-lpcre $LIBS" 20759cat >"conftest.$ac_ext" <<_ACEOF 20760#line 20760 "configure" 20761#include "confdefs.h" 20762 20763/* Override any gcc2 internal prototype to avoid an error. */ 20764#ifdef __cplusplus 20765extern "C" 20766#endif 20767/* We use char because int might match the return type of a gcc2 20768 builtin and then its argument prototype would still apply. */ 20769char pcre_compile (); 20770int 20771main (void) 20772{ 20773pcre_compile (); 20774 ; 20775 return 0; 20776} 20777_ACEOF 20778rm -f "conftest.$ac_objext" "conftest$ac_exeext" 20779if { (eval echo "$as_me:20779: \"$ac_link\"") >&5 20780 (eval $ac_link) 2>&5 20781 ac_status=$? 20782 echo "$as_me:20782: \$? = $ac_status" >&5 20783 (exit "$ac_status"); } && 20784 { ac_try='test -s "conftest$ac_exeext"' 20785 { (eval echo "$as_me:20785: \"$ac_try\"") >&5 20786 (eval $ac_try) 2>&5 20787 ac_status=$? 20788 echo "$as_me:20788: \$? = $ac_status" >&5 20789 (exit "$ac_status"); }; }; then 20790 ac_cv_lib_pcre_pcre_compile=yes 20791else 20792 echo "$as_me: failed program was:" >&5 20793cat "conftest.$ac_ext" >&5 20794ac_cv_lib_pcre_pcre_compile=no 20795fi 20796rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 20797LIBS=$ac_check_lib_save_LIBS 20798fi 20799echo "$as_me:20799: result: $ac_cv_lib_pcre_pcre_compile" >&5 20800echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6 20801if test "$ac_cv_lib_pcre_pcre_compile" = yes; then 20802 cat >>confdefs.h <<EOF 20803#define HAVE_LIBPCRE 1 20804EOF 20805 20806 LIBS="-lpcre $LIBS" 20807 20808else 20809 { { echo "$as_me:20809: error: Cannot find PCRE library" >&5 20810echo "$as_me: error: Cannot find PCRE library" >&2;} 20811 { (exit 1); exit 1; }; } 20812fi 20813 20814fi 20815 20816cat >>confdefs.h <<\EOF 20817#define HAVE_LIB_PCRE 1 20818EOF 20819 20820 case $LIBS in 20821 (*pcreposix*) 20822 ;; 20823 (*) 20824 echo "$as_me:20824: checking for pcreposix_regcomp in -lpcreposix" >&5 20825echo $ECHO_N "checking for pcreposix_regcomp in -lpcreposix... $ECHO_C" >&6 20826if test "${ac_cv_lib_pcreposix_pcreposix_regcomp+set}" = set; then 20827 echo $ECHO_N "(cached) $ECHO_C" >&6 20828else 20829 ac_check_lib_save_LIBS=$LIBS 20830LIBS="-lpcreposix $LIBS" 20831cat >"conftest.$ac_ext" <<_ACEOF 20832#line 20832 "configure" 20833#include "confdefs.h" 20834 20835/* Override any gcc2 internal prototype to avoid an error. */ 20836#ifdef __cplusplus 20837extern "C" 20838#endif 20839/* We use char because int might match the return type of a gcc2 20840 builtin and then its argument prototype would still apply. */ 20841char pcreposix_regcomp (); 20842int 20843main (void) 20844{ 20845pcreposix_regcomp (); 20846 ; 20847 return 0; 20848} 20849_ACEOF 20850rm -f "conftest.$ac_objext" "conftest$ac_exeext" 20851if { (eval echo "$as_me:20851: \"$ac_link\"") >&5 20852 (eval $ac_link) 2>&5 20853 ac_status=$? 20854 echo "$as_me:20854: \$? = $ac_status" >&5 20855 (exit "$ac_status"); } && 20856 { ac_try='test -s "conftest$ac_exeext"' 20857 { (eval echo "$as_me:20857: \"$ac_try\"") >&5 20858 (eval $ac_try) 2>&5 20859 ac_status=$? 20860 echo "$as_me:20860: \$? = $ac_status" >&5 20861 (exit "$ac_status"); }; }; then 20862 ac_cv_lib_pcreposix_pcreposix_regcomp=yes 20863else 20864 echo "$as_me: failed program was:" >&5 20865cat "conftest.$ac_ext" >&5 20866ac_cv_lib_pcreposix_pcreposix_regcomp=no 20867fi 20868rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 20869LIBS=$ac_check_lib_save_LIBS 20870fi 20871echo "$as_me:20871: result: $ac_cv_lib_pcreposix_pcreposix_regcomp" >&5 20872echo "${ECHO_T}$ac_cv_lib_pcreposix_pcreposix_regcomp" >&6 20873if test "$ac_cv_lib_pcreposix_pcreposix_regcomp" = yes; then 20874 20875cat >>confdefs.h <<\EOF 20876#define HAVE_PCREPOSIX_H 1 20877EOF 20878 20879cf_add_libs="$LIBS" 20880# reverse order 20881cf_add_0lib= 20882for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 20883# filter duplicates 20884for cf_add_1lib in $cf_add_0lib; do 20885 for cf_add_2lib in $cf_add_libs; do 20886 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 20887 cf_add_1lib= 20888 break 20889 fi 20890 done 20891 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 20892done 20893LIBS="$cf_add_libs" 20894 20895else 20896 echo "$as_me:20896: checking for regcomp in -lpcreposix" >&5 20897echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6 20898if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then 20899 echo $ECHO_N "(cached) $ECHO_C" >&6 20900else 20901 ac_check_lib_save_LIBS=$LIBS 20902LIBS="-lpcreposix $LIBS" 20903cat >"conftest.$ac_ext" <<_ACEOF 20904#line 20904 "configure" 20905#include "confdefs.h" 20906 20907/* Override any gcc2 internal prototype to avoid an error. */ 20908#ifdef __cplusplus 20909extern "C" 20910#endif 20911/* We use char because int might match the return type of a gcc2 20912 builtin and then its argument prototype would still apply. */ 20913char regcomp (); 20914int 20915main (void) 20916{ 20917regcomp (); 20918 ; 20919 return 0; 20920} 20921_ACEOF 20922rm -f "conftest.$ac_objext" "conftest$ac_exeext" 20923if { (eval echo "$as_me:20923: \"$ac_link\"") >&5 20924 (eval $ac_link) 2>&5 20925 ac_status=$? 20926 echo "$as_me:20926: \$? = $ac_status" >&5 20927 (exit "$ac_status"); } && 20928 { ac_try='test -s "conftest$ac_exeext"' 20929 { (eval echo "$as_me:20929: \"$ac_try\"") >&5 20930 (eval $ac_try) 2>&5 20931 ac_status=$? 20932 echo "$as_me:20932: \$? = $ac_status" >&5 20933 (exit "$ac_status"); }; }; then 20934 ac_cv_lib_pcreposix_regcomp=yes 20935else 20936 echo "$as_me: failed program was:" >&5 20937cat "conftest.$ac_ext" >&5 20938ac_cv_lib_pcreposix_regcomp=no 20939fi 20940rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 20941LIBS=$ac_check_lib_save_LIBS 20942fi 20943echo "$as_me:20943: result: $ac_cv_lib_pcreposix_regcomp" >&5 20944echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6 20945if test "$ac_cv_lib_pcreposix_regcomp" = yes; then 20946 20947cat >>confdefs.h <<\EOF 20948#define HAVE_PCREPOSIX_H 1 20949EOF 20950 20951cf_add_libs="$LIBS" 20952# reverse order 20953cf_add_0lib= 20954for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 20955# filter duplicates 20956for cf_add_1lib in $cf_add_0lib; do 20957 for cf_add_2lib in $cf_add_libs; do 20958 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 20959 cf_add_1lib= 20960 break 20961 fi 20962 done 20963 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 20964done 20965LIBS="$cf_add_libs" 20966 20967else 20968 { { echo "$as_me:20968: error: Cannot find PCRE POSIX library" >&5 20969echo "$as_me: error: Cannot find PCRE POSIX library" >&2;} 20970 { (exit 1); exit 1; }; } 20971fi 20972 20973fi 20974 20975 ;; 20976 esac 20977fi 20978 20979 if test "$with_pcre" = no ; then 20980 20981cf_regex_func=no 20982cf_regex_libs= 20983case "$host_os" in 20984(mingw*) 20985 # -lsystre -ltre -lintl -liconv 20986 echo "$as_me:20986: checking for regcomp in -lsystre" >&5 20987echo $ECHO_N "checking for regcomp in -lsystre... $ECHO_C" >&6 20988if test "${ac_cv_lib_systre_regcomp+set}" = set; then 20989 echo $ECHO_N "(cached) $ECHO_C" >&6 20990else 20991 ac_check_lib_save_LIBS=$LIBS 20992LIBS="-lsystre $LIBS" 20993cat >"conftest.$ac_ext" <<_ACEOF 20994#line 20994 "configure" 20995#include "confdefs.h" 20996 20997/* Override any gcc2 internal prototype to avoid an error. */ 20998#ifdef __cplusplus 20999extern "C" 21000#endif 21001/* We use char because int might match the return type of a gcc2 21002 builtin and then its argument prototype would still apply. */ 21003char regcomp (); 21004int 21005main (void) 21006{ 21007regcomp (); 21008 ; 21009 return 0; 21010} 21011_ACEOF 21012rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21013if { (eval echo "$as_me:21013: \"$ac_link\"") >&5 21014 (eval $ac_link) 2>&5 21015 ac_status=$? 21016 echo "$as_me:21016: \$? = $ac_status" >&5 21017 (exit "$ac_status"); } && 21018 { ac_try='test -s "conftest$ac_exeext"' 21019 { (eval echo "$as_me:21019: \"$ac_try\"") >&5 21020 (eval $ac_try) 2>&5 21021 ac_status=$? 21022 echo "$as_me:21022: \$? = $ac_status" >&5 21023 (exit "$ac_status"); }; }; then 21024 ac_cv_lib_systre_regcomp=yes 21025else 21026 echo "$as_me: failed program was:" >&5 21027cat "conftest.$ac_ext" >&5 21028ac_cv_lib_systre_regcomp=no 21029fi 21030rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21031LIBS=$ac_check_lib_save_LIBS 21032fi 21033echo "$as_me:21033: result: $ac_cv_lib_systre_regcomp" >&5 21034echo "${ECHO_T}$ac_cv_lib_systre_regcomp" >&6 21035if test "$ac_cv_lib_systre_regcomp" = yes; then 21036 21037 echo "$as_me:21037: checking for libiconv_open in -liconv" >&5 21038echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6 21039if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then 21040 echo $ECHO_N "(cached) $ECHO_C" >&6 21041else 21042 ac_check_lib_save_LIBS=$LIBS 21043LIBS="-liconv $LIBS" 21044cat >"conftest.$ac_ext" <<_ACEOF 21045#line 21045 "configure" 21046#include "confdefs.h" 21047 21048/* Override any gcc2 internal prototype to avoid an error. */ 21049#ifdef __cplusplus 21050extern "C" 21051#endif 21052/* We use char because int might match the return type of a gcc2 21053 builtin and then its argument prototype would still apply. */ 21054char libiconv_open (); 21055int 21056main (void) 21057{ 21058libiconv_open (); 21059 ; 21060 return 0; 21061} 21062_ACEOF 21063rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21064if { (eval echo "$as_me:21064: \"$ac_link\"") >&5 21065 (eval $ac_link) 2>&5 21066 ac_status=$? 21067 echo "$as_me:21067: \$? = $ac_status" >&5 21068 (exit "$ac_status"); } && 21069 { ac_try='test -s "conftest$ac_exeext"' 21070 { (eval echo "$as_me:21070: \"$ac_try\"") >&5 21071 (eval $ac_try) 2>&5 21072 ac_status=$? 21073 echo "$as_me:21073: \$? = $ac_status" >&5 21074 (exit "$ac_status"); }; }; then 21075 ac_cv_lib_iconv_libiconv_open=yes 21076else 21077 echo "$as_me: failed program was:" >&5 21078cat "conftest.$ac_ext" >&5 21079ac_cv_lib_iconv_libiconv_open=no 21080fi 21081rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21082LIBS=$ac_check_lib_save_LIBS 21083fi 21084echo "$as_me:21084: result: $ac_cv_lib_iconv_libiconv_open" >&5 21085echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6 21086if test "$ac_cv_lib_iconv_libiconv_open" = yes; then 21087 21088cf_add_libs="$LIBS" 21089# reverse order 21090cf_add_0lib= 21091for cf_add_1lib in -liconv; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 21092# filter duplicates 21093for cf_add_1lib in $cf_add_0lib; do 21094 for cf_add_2lib in $cf_add_libs; do 21095 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 21096 cf_add_1lib= 21097 break 21098 fi 21099 done 21100 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 21101done 21102LIBS="$cf_add_libs" 21103 21104fi 21105 21106 echo "$as_me:21106: checking for libintl_gettext in -lintl" >&5 21107echo $ECHO_N "checking for libintl_gettext in -lintl... $ECHO_C" >&6 21108if test "${ac_cv_lib_intl_libintl_gettext+set}" = set; then 21109 echo $ECHO_N "(cached) $ECHO_C" >&6 21110else 21111 ac_check_lib_save_LIBS=$LIBS 21112LIBS="-lintl $LIBS" 21113cat >"conftest.$ac_ext" <<_ACEOF 21114#line 21114 "configure" 21115#include "confdefs.h" 21116 21117/* Override any gcc2 internal prototype to avoid an error. */ 21118#ifdef __cplusplus 21119extern "C" 21120#endif 21121/* We use char because int might match the return type of a gcc2 21122 builtin and then its argument prototype would still apply. */ 21123char libintl_gettext (); 21124int 21125main (void) 21126{ 21127libintl_gettext (); 21128 ; 21129 return 0; 21130} 21131_ACEOF 21132rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21133if { (eval echo "$as_me:21133: \"$ac_link\"") >&5 21134 (eval $ac_link) 2>&5 21135 ac_status=$? 21136 echo "$as_me:21136: \$? = $ac_status" >&5 21137 (exit "$ac_status"); } && 21138 { ac_try='test -s "conftest$ac_exeext"' 21139 { (eval echo "$as_me:21139: \"$ac_try\"") >&5 21140 (eval $ac_try) 2>&5 21141 ac_status=$? 21142 echo "$as_me:21142: \$? = $ac_status" >&5 21143 (exit "$ac_status"); }; }; then 21144 ac_cv_lib_intl_libintl_gettext=yes 21145else 21146 echo "$as_me: failed program was:" >&5 21147cat "conftest.$ac_ext" >&5 21148ac_cv_lib_intl_libintl_gettext=no 21149fi 21150rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21151LIBS=$ac_check_lib_save_LIBS 21152fi 21153echo "$as_me:21153: result: $ac_cv_lib_intl_libintl_gettext" >&5 21154echo "${ECHO_T}$ac_cv_lib_intl_libintl_gettext" >&6 21155if test "$ac_cv_lib_intl_libintl_gettext" = yes; then 21156 21157cf_add_libs="$LIBS" 21158# reverse order 21159cf_add_0lib= 21160for cf_add_1lib in -lintl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 21161# filter duplicates 21162for cf_add_1lib in $cf_add_0lib; do 21163 for cf_add_2lib in $cf_add_libs; do 21164 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 21165 cf_add_1lib= 21166 break 21167 fi 21168 done 21169 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 21170done 21171LIBS="$cf_add_libs" 21172 21173fi 21174 21175 echo "$as_me:21175: checking for tre_regcomp in -ltre" >&5 21176echo $ECHO_N "checking for tre_regcomp in -ltre... $ECHO_C" >&6 21177if test "${ac_cv_lib_tre_tre_regcomp+set}" = set; then 21178 echo $ECHO_N "(cached) $ECHO_C" >&6 21179else 21180 ac_check_lib_save_LIBS=$LIBS 21181LIBS="-ltre $LIBS" 21182cat >"conftest.$ac_ext" <<_ACEOF 21183#line 21183 "configure" 21184#include "confdefs.h" 21185 21186/* Override any gcc2 internal prototype to avoid an error. */ 21187#ifdef __cplusplus 21188extern "C" 21189#endif 21190/* We use char because int might match the return type of a gcc2 21191 builtin and then its argument prototype would still apply. */ 21192char tre_regcomp (); 21193int 21194main (void) 21195{ 21196tre_regcomp (); 21197 ; 21198 return 0; 21199} 21200_ACEOF 21201rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21202if { (eval echo "$as_me:21202: \"$ac_link\"") >&5 21203 (eval $ac_link) 2>&5 21204 ac_status=$? 21205 echo "$as_me:21205: \$? = $ac_status" >&5 21206 (exit "$ac_status"); } && 21207 { ac_try='test -s "conftest$ac_exeext"' 21208 { (eval echo "$as_me:21208: \"$ac_try\"") >&5 21209 (eval $ac_try) 2>&5 21210 ac_status=$? 21211 echo "$as_me:21211: \$? = $ac_status" >&5 21212 (exit "$ac_status"); }; }; then 21213 ac_cv_lib_tre_tre_regcomp=yes 21214else 21215 echo "$as_me: failed program was:" >&5 21216cat "conftest.$ac_ext" >&5 21217ac_cv_lib_tre_tre_regcomp=no 21218fi 21219rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21220LIBS=$ac_check_lib_save_LIBS 21221fi 21222echo "$as_me:21222: result: $ac_cv_lib_tre_tre_regcomp" >&5 21223echo "${ECHO_T}$ac_cv_lib_tre_tre_regcomp" >&6 21224if test "$ac_cv_lib_tre_tre_regcomp" = yes; then 21225 21226cf_add_libs="$LIBS" 21227# reverse order 21228cf_add_0lib= 21229for cf_add_1lib in -ltre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 21230# filter duplicates 21231for cf_add_1lib in $cf_add_0lib; do 21232 for cf_add_2lib in $cf_add_libs; do 21233 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 21234 cf_add_1lib= 21235 break 21236 fi 21237 done 21238 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 21239done 21240LIBS="$cf_add_libs" 21241 21242fi 21243 21244cf_add_libs="$LIBS" 21245# reverse order 21246cf_add_0lib= 21247for cf_add_1lib in -lsystre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 21248# filter duplicates 21249for cf_add_1lib in $cf_add_0lib; do 21250 for cf_add_2lib in $cf_add_libs; do 21251 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 21252 cf_add_1lib= 21253 break 21254 fi 21255 done 21256 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 21257done 21258LIBS="$cf_add_libs" 21259 21260 cf_regex_func=regcomp 21261 21262else 21263 21264 echo "$as_me:21264: checking for regcomp in -lgnurx" >&5 21265echo $ECHO_N "checking for regcomp in -lgnurx... $ECHO_C" >&6 21266if test "${ac_cv_lib_gnurx_regcomp+set}" = set; then 21267 echo $ECHO_N "(cached) $ECHO_C" >&6 21268else 21269 ac_check_lib_save_LIBS=$LIBS 21270LIBS="-lgnurx $LIBS" 21271cat >"conftest.$ac_ext" <<_ACEOF 21272#line 21272 "configure" 21273#include "confdefs.h" 21274 21275/* Override any gcc2 internal prototype to avoid an error. */ 21276#ifdef __cplusplus 21277extern "C" 21278#endif 21279/* We use char because int might match the return type of a gcc2 21280 builtin and then its argument prototype would still apply. */ 21281char regcomp (); 21282int 21283main (void) 21284{ 21285regcomp (); 21286 ; 21287 return 0; 21288} 21289_ACEOF 21290rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21291if { (eval echo "$as_me:21291: \"$ac_link\"") >&5 21292 (eval $ac_link) 2>&5 21293 ac_status=$? 21294 echo "$as_me:21294: \$? = $ac_status" >&5 21295 (exit "$ac_status"); } && 21296 { ac_try='test -s "conftest$ac_exeext"' 21297 { (eval echo "$as_me:21297: \"$ac_try\"") >&5 21298 (eval $ac_try) 2>&5 21299 ac_status=$? 21300 echo "$as_me:21300: \$? = $ac_status" >&5 21301 (exit "$ac_status"); }; }; then 21302 ac_cv_lib_gnurx_regcomp=yes 21303else 21304 echo "$as_me: failed program was:" >&5 21305cat "conftest.$ac_ext" >&5 21306ac_cv_lib_gnurx_regcomp=no 21307fi 21308rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21309LIBS=$ac_check_lib_save_LIBS 21310fi 21311echo "$as_me:21311: result: $ac_cv_lib_gnurx_regcomp" >&5 21312echo "${ECHO_T}$ac_cv_lib_gnurx_regcomp" >&6 21313if test "$ac_cv_lib_gnurx_regcomp" = yes; then 21314 21315cf_add_libs="$LIBS" 21316# reverse order 21317cf_add_0lib= 21318for cf_add_1lib in -lgnurx; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 21319# filter duplicates 21320for cf_add_1lib in $cf_add_0lib; do 21321 for cf_add_2lib in $cf_add_libs; do 21322 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 21323 cf_add_1lib= 21324 break 21325 fi 21326 done 21327 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 21328done 21329LIBS="$cf_add_libs" 21330 21331 cf_regex_func=regcomp 21332fi 21333 21334fi 21335 21336 ;; 21337(*) 21338 cf_regex_libs="regex re" 21339 echo "$as_me:21339: checking for regcomp" >&5 21340echo $ECHO_N "checking for regcomp... $ECHO_C" >&6 21341if test "${ac_cv_func_regcomp+set}" = set; then 21342 echo $ECHO_N "(cached) $ECHO_C" >&6 21343else 21344 cat >"conftest.$ac_ext" <<_ACEOF 21345#line 21345 "configure" 21346#include "confdefs.h" 21347#define regcomp autoconf_temporary 21348#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 21349#undef regcomp 21350 21351#ifdef __cplusplus 21352extern "C" 21353#endif 21354 21355/* We use char because int might match the return type of a gcc2 21356 builtin and then its argument prototype would still apply. */ 21357char regcomp (void); 21358 21359int 21360main (void) 21361{ 21362 21363/* The GNU C library defines stubs for functions which it implements 21364 to always fail with ENOSYS. Some functions are actually named 21365 something starting with __ and the normal name is an alias. */ 21366#if defined (__stub_regcomp) || defined (__stub___regcomp) 21367#error found stub for regcomp 21368#endif 21369 21370 return regcomp (); 21371 ; 21372 return 0; 21373} 21374_ACEOF 21375rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21376if { (eval echo "$as_me:21376: \"$ac_link\"") >&5 21377 (eval $ac_link) 2>&5 21378 ac_status=$? 21379 echo "$as_me:21379: \$? = $ac_status" >&5 21380 (exit "$ac_status"); } && 21381 { ac_try='test -s "conftest$ac_exeext"' 21382 { (eval echo "$as_me:21382: \"$ac_try\"") >&5 21383 (eval $ac_try) 2>&5 21384 ac_status=$? 21385 echo "$as_me:21385: \$? = $ac_status" >&5 21386 (exit "$ac_status"); }; }; then 21387 ac_cv_func_regcomp=yes 21388else 21389 echo "$as_me: failed program was:" >&5 21390cat "conftest.$ac_ext" >&5 21391ac_cv_func_regcomp=no 21392fi 21393rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21394fi 21395echo "$as_me:21395: result: $ac_cv_func_regcomp" >&5 21396echo "${ECHO_T}$ac_cv_func_regcomp" >&6 21397if test "$ac_cv_func_regcomp" = yes; then 21398 cf_regex_func=regcomp 21399else 21400 21401 for cf_regex_lib in $cf_regex_libs 21402 do 21403 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh` 21404echo "$as_me:21404: checking for regcomp in -l$cf_regex_lib" >&5 21405echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6 21406if eval "test \"\${$as_ac_Lib+set}\" = set"; then 21407 echo $ECHO_N "(cached) $ECHO_C" >&6 21408else 21409 ac_check_lib_save_LIBS=$LIBS 21410LIBS="-l$cf_regex_lib $LIBS" 21411cat >"conftest.$ac_ext" <<_ACEOF 21412#line 21412 "configure" 21413#include "confdefs.h" 21414 21415/* Override any gcc2 internal prototype to avoid an error. */ 21416#ifdef __cplusplus 21417extern "C" 21418#endif 21419/* We use char because int might match the return type of a gcc2 21420 builtin and then its argument prototype would still apply. */ 21421char regcomp (); 21422int 21423main (void) 21424{ 21425regcomp (); 21426 ; 21427 return 0; 21428} 21429_ACEOF 21430rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21431if { (eval echo "$as_me:21431: \"$ac_link\"") >&5 21432 (eval $ac_link) 2>&5 21433 ac_status=$? 21434 echo "$as_me:21434: \$? = $ac_status" >&5 21435 (exit "$ac_status"); } && 21436 { ac_try='test -s "conftest$ac_exeext"' 21437 { (eval echo "$as_me:21437: \"$ac_try\"") >&5 21438 (eval $ac_try) 2>&5 21439 ac_status=$? 21440 echo "$as_me:21440: \$? = $ac_status" >&5 21441 (exit "$ac_status"); }; }; then 21442 eval "$as_ac_Lib=yes" 21443else 21444 echo "$as_me: failed program was:" >&5 21445cat "conftest.$ac_ext" >&5 21446eval "$as_ac_Lib=no" 21447fi 21448rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21449LIBS=$ac_check_lib_save_LIBS 21450fi 21451echo "$as_me:21451: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5 21452echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6 21453if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then 21454 21455cf_add_libs="$LIBS" 21456# reverse order 21457cf_add_0lib= 21458for cf_add_1lib in -l$cf_regex_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 21459# filter duplicates 21460for cf_add_1lib in $cf_add_0lib; do 21461 for cf_add_2lib in $cf_add_libs; do 21462 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 21463 cf_add_1lib= 21464 break 21465 fi 21466 done 21467 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 21468done 21469LIBS="$cf_add_libs" 21470 21471 cf_regex_func=regcomp 21472 break 21473fi 21474 21475 done 21476 21477fi 21478 21479 ;; 21480esac 21481 21482if test "$cf_regex_func" = no ; then 21483 echo "$as_me:21483: checking for compile" >&5 21484echo $ECHO_N "checking for compile... $ECHO_C" >&6 21485if test "${ac_cv_func_compile+set}" = set; then 21486 echo $ECHO_N "(cached) $ECHO_C" >&6 21487else 21488 cat >"conftest.$ac_ext" <<_ACEOF 21489#line 21489 "configure" 21490#include "confdefs.h" 21491#define compile autoconf_temporary 21492#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 21493#undef compile 21494 21495#ifdef __cplusplus 21496extern "C" 21497#endif 21498 21499/* We use char because int might match the return type of a gcc2 21500 builtin and then its argument prototype would still apply. */ 21501char compile (void); 21502 21503int 21504main (void) 21505{ 21506 21507/* The GNU C library defines stubs for functions which it implements 21508 to always fail with ENOSYS. Some functions are actually named 21509 something starting with __ and the normal name is an alias. */ 21510#if defined (__stub_compile) || defined (__stub___compile) 21511#error found stub for compile 21512#endif 21513 21514 return compile (); 21515 ; 21516 return 0; 21517} 21518_ACEOF 21519rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21520if { (eval echo "$as_me:21520: \"$ac_link\"") >&5 21521 (eval $ac_link) 2>&5 21522 ac_status=$? 21523 echo "$as_me:21523: \$? = $ac_status" >&5 21524 (exit "$ac_status"); } && 21525 { ac_try='test -s "conftest$ac_exeext"' 21526 { (eval echo "$as_me:21526: \"$ac_try\"") >&5 21527 (eval $ac_try) 2>&5 21528 ac_status=$? 21529 echo "$as_me:21529: \$? = $ac_status" >&5 21530 (exit "$ac_status"); }; }; then 21531 ac_cv_func_compile=yes 21532else 21533 echo "$as_me: failed program was:" >&5 21534cat "conftest.$ac_ext" >&5 21535ac_cv_func_compile=no 21536fi 21537rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21538fi 21539echo "$as_me:21539: result: $ac_cv_func_compile" >&5 21540echo "${ECHO_T}$ac_cv_func_compile" >&6 21541if test "$ac_cv_func_compile" = yes; then 21542 cf_regex_func=compile 21543else 21544 21545 echo "$as_me:21545: checking for compile in -lgen" >&5 21546echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6 21547if test "${ac_cv_lib_gen_compile+set}" = set; then 21548 echo $ECHO_N "(cached) $ECHO_C" >&6 21549else 21550 ac_check_lib_save_LIBS=$LIBS 21551LIBS="-lgen $LIBS" 21552cat >"conftest.$ac_ext" <<_ACEOF 21553#line 21553 "configure" 21554#include "confdefs.h" 21555 21556/* Override any gcc2 internal prototype to avoid an error. */ 21557#ifdef __cplusplus 21558extern "C" 21559#endif 21560/* We use char because int might match the return type of a gcc2 21561 builtin and then its argument prototype would still apply. */ 21562char compile (); 21563int 21564main (void) 21565{ 21566compile (); 21567 ; 21568 return 0; 21569} 21570_ACEOF 21571rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21572if { (eval echo "$as_me:21572: \"$ac_link\"") >&5 21573 (eval $ac_link) 2>&5 21574 ac_status=$? 21575 echo "$as_me:21575: \$? = $ac_status" >&5 21576 (exit "$ac_status"); } && 21577 { ac_try='test -s "conftest$ac_exeext"' 21578 { (eval echo "$as_me:21578: \"$ac_try\"") >&5 21579 (eval $ac_try) 2>&5 21580 ac_status=$? 21581 echo "$as_me:21581: \$? = $ac_status" >&5 21582 (exit "$ac_status"); }; }; then 21583 ac_cv_lib_gen_compile=yes 21584else 21585 echo "$as_me: failed program was:" >&5 21586cat "conftest.$ac_ext" >&5 21587ac_cv_lib_gen_compile=no 21588fi 21589rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21590LIBS=$ac_check_lib_save_LIBS 21591fi 21592echo "$as_me:21592: result: $ac_cv_lib_gen_compile" >&5 21593echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6 21594if test "$ac_cv_lib_gen_compile" = yes; then 21595 21596cf_add_libs="$LIBS" 21597# reverse order 21598cf_add_0lib= 21599for cf_add_1lib in -lgen; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 21600# filter duplicates 21601for cf_add_1lib in $cf_add_0lib; do 21602 for cf_add_2lib in $cf_add_libs; do 21603 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 21604 cf_add_1lib= 21605 break 21606 fi 21607 done 21608 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 21609done 21610LIBS="$cf_add_libs" 21611 21612 cf_regex_func=compile 21613fi 21614 21615fi 21616 21617fi 21618 21619if test "$cf_regex_func" = no ; then 21620 { echo "$as_me:21620: WARNING: cannot find regular expression library" >&5 21621echo "$as_me: WARNING: cannot find regular expression library" >&2;} 21622fi 21623 21624echo "$as_me:21624: checking for regular-expression headers" >&5 21625echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6 21626if test "${cf_cv_regex_hdrs+set}" = set; then 21627 echo $ECHO_N "(cached) $ECHO_C" >&6 21628else 21629 21630cf_cv_regex_hdrs=no 21631case "$cf_regex_func" in 21632(compile) 21633 for cf_regex_hdr in regexp.h regexpr.h 21634 do 21635 cat >"conftest.$ac_ext" <<_ACEOF 21636#line 21636 "configure" 21637#include "confdefs.h" 21638#include <$cf_regex_hdr> 21639int 21640main (void) 21641{ 21642 21643 char *p = compile("", "", "", 0); 21644 int x = step("", ""); 21645 (void)p; 21646 (void)x; 21647 21648 ; 21649 return 0; 21650} 21651_ACEOF 21652rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21653if { (eval echo "$as_me:21653: \"$ac_link\"") >&5 21654 (eval $ac_link) 2>&5 21655 ac_status=$? 21656 echo "$as_me:21656: \$? = $ac_status" >&5 21657 (exit "$ac_status"); } && 21658 { ac_try='test -s "conftest$ac_exeext"' 21659 { (eval echo "$as_me:21659: \"$ac_try\"") >&5 21660 (eval $ac_try) 2>&5 21661 ac_status=$? 21662 echo "$as_me:21662: \$? = $ac_status" >&5 21663 (exit "$ac_status"); }; }; then 21664 21665 cf_cv_regex_hdrs=$cf_regex_hdr 21666 break 21667 21668else 21669 echo "$as_me: failed program was:" >&5 21670cat "conftest.$ac_ext" >&5 21671fi 21672rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21673 done 21674 ;; 21675(*) 21676 for cf_regex_hdr in regex.h 21677 do 21678 cat >"conftest.$ac_ext" <<_ACEOF 21679#line 21679 "configure" 21680#include "confdefs.h" 21681#include <sys/types.h> 21682#include <$cf_regex_hdr> 21683int 21684main (void) 21685{ 21686 21687 regex_t *p = 0; 21688 int x = regcomp(p, "", 0); 21689 int y = regexec(p, "", 0, 0, 0); 21690 (void)x; 21691 (void)y; 21692 regfree(p); 21693 21694 ; 21695 return 0; 21696} 21697_ACEOF 21698rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21699if { (eval echo "$as_me:21699: \"$ac_link\"") >&5 21700 (eval $ac_link) 2>&5 21701 ac_status=$? 21702 echo "$as_me:21702: \$? = $ac_status" >&5 21703 (exit "$ac_status"); } && 21704 { ac_try='test -s "conftest$ac_exeext"' 21705 { (eval echo "$as_me:21705: \"$ac_try\"") >&5 21706 (eval $ac_try) 2>&5 21707 ac_status=$? 21708 echo "$as_me:21708: \$? = $ac_status" >&5 21709 (exit "$ac_status"); }; }; then 21710 21711 cf_cv_regex_hdrs=$cf_regex_hdr 21712 break 21713 21714else 21715 echo "$as_me: failed program was:" >&5 21716cat "conftest.$ac_ext" >&5 21717fi 21718rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21719 done 21720 ;; 21721esac 21722 21723fi 21724echo "$as_me:21724: result: $cf_cv_regex_hdrs" >&5 21725echo "${ECHO_T}$cf_cv_regex_hdrs" >&6 21726 21727case "$cf_cv_regex_hdrs" in 21728 (no) { echo "$as_me:21728: WARNING: no regular expression header found" >&5 21729echo "$as_me: WARNING: no regular expression header found" >&2;} ;; 21730 (regex.h) 21731cat >>confdefs.h <<\EOF 21732#define HAVE_REGEX_H_FUNCS 1 21733EOF 21734 ;; 21735 (regexp.h) 21736cat >>confdefs.h <<\EOF 21737#define HAVE_REGEXP_H_FUNCS 1 21738EOF 21739 ;; 21740 (regexpr.h) 21741cat >>confdefs.h <<\EOF 21742#define HAVE_REGEXPR_H_FUNCS 1 21743EOF 21744 ;; 21745esac 21746 21747 if test "X$cf_cv_regex_hdrs" != "Xregex.h" ; then 21748 { { echo "$as_me:21748: error: Only POSIX, PCRE, or PCRE2 regular expressions are supported" >&5 21749echo "$as_me: error: Only POSIX, PCRE, or PCRE2 regular expressions are supported" >&2;} 21750 { (exit 1); exit 1; }; } 21751 fi 21752 fi 21753 fi 21754 21755cat >>confdefs.h <<\EOF 21756#define OPT_SELECT_REGEX 1 21757EOF 21758 21759fi 21760 21761echo "$as_me:21761: checking if you want support for right-scrollbar" >&5 21762echo $ECHO_N "checking if you want support for right-scrollbar... $ECHO_C" >&6 21763 21764# Check whether --enable-rightbar or --disable-rightbar was given. 21765if test "${enable_rightbar+set}" = set; then 21766 enableval="$enable_rightbar" 21767 test "$enableval" != no && enableval=yes 21768 if test "$enableval" != "yes" ; then 21769 enable_rightbar=no 21770 else 21771 enable_rightbar=yes 21772 fi 21773else 21774 enableval=yes 21775 enable_rightbar=yes 21776 21777fi; 21778echo "$as_me:21778: result: $enable_rightbar" >&5 21779echo "${ECHO_T}$enable_rightbar" >&6 21780if test "$enable_rightbar" = yes ; then 21781 21782cat >>confdefs.h <<\EOF 21783#define SCROLLBAR_RIGHT 1 21784EOF 21785 21786fi 21787 21788echo "$as_me:21788: checking if you want check for redundant name-change" >&5 21789echo $ECHO_N "checking if you want check for redundant name-change... $ECHO_C" >&6 21790 21791# Check whether --enable-samename or --disable-samename was given. 21792if test "${enable_samename+set}" = set; then 21793 enableval="$enable_samename" 21794 test "$enableval" != no && enableval=yes 21795 if test "$enableval" != "yes" ; then 21796 enable_samename=no 21797 else 21798 enable_samename=yes 21799 fi 21800else 21801 enableval=yes 21802 enable_samename=yes 21803 21804fi; 21805echo "$as_me:21805: result: $enable_samename" >&5 21806echo "${ECHO_T}$enable_samename" >&6 21807test "$enable_samename" = no && 21808cat >>confdefs.h <<\EOF 21809#define OPT_SAME_NAME 0 21810EOF 21811 21812echo "$as_me:21812: checking if you want support for selection-actions" >&5 21813echo $ECHO_N "checking if you want support for selection-actions... $ECHO_C" >&6 21814 21815# Check whether --enable-selection-ops or --disable-selection-ops was given. 21816if test "${enable_selection_ops+set}" = set; then 21817 enableval="$enable_selection_ops" 21818 test "$enableval" != no && enableval=yes 21819 if test "$enableval" != "yes" ; then 21820 enable_selection_ops=no 21821 else 21822 enable_selection_ops=yes 21823 fi 21824else 21825 enableval=yes 21826 enable_selection_ops=yes 21827 21828fi; 21829echo "$as_me:21829: result: $enable_selection_ops" >&5 21830echo "${ECHO_T}$enable_selection_ops" >&6 21831test "$enable_selection_ops" = no && 21832cat >>confdefs.h <<\EOF 21833#define OPT_SELECTION_OPS 0 21834EOF 21835 21836echo "$as_me:21836: checking if you want support for session management" >&5 21837echo $ECHO_N "checking if you want support for session management... $ECHO_C" >&6 21838 21839# Check whether --enable-session-mgt or --disable-session-mgt was given. 21840if test "${enable_session_mgt+set}" = set; then 21841 enableval="$enable_session_mgt" 21842 test "$enableval" != no && enableval=yes 21843 if test "$enableval" != "yes" ; then 21844 enable_session_mgt=no 21845 else 21846 enable_session_mgt=yes 21847 fi 21848else 21849 enableval=yes 21850 enable_session_mgt=yes 21851 21852fi; 21853echo "$as_me:21853: result: $enable_session_mgt" >&5 21854echo "${ECHO_T}$enable_session_mgt" >&6 21855test "$enable_session_mgt" = no && 21856cat >>confdefs.h <<\EOF 21857#define OPT_SESSION_MGT 0 21858EOF 21859 21860echo "$as_me:21860: checking if you want to use termcap function-keys" >&5 21861echo $ECHO_N "checking if you want to use termcap function-keys... $ECHO_C" >&6 21862 21863# Check whether --enable-tcap-fkeys or --disable-tcap-fkeys was given. 21864if test "${enable_tcap_fkeys+set}" = set; then 21865 enableval="$enable_tcap_fkeys" 21866 test "$enableval" != no && enableval=yes 21867 if test "$enableval" != "yes" ; then 21868 enable_tcap_fkeys=no 21869 else 21870 enable_tcap_fkeys=yes 21871 fi 21872else 21873 enableval=yes 21874 enable_tcap_fkeys=yes 21875 21876fi; 21877echo "$as_me:21877: result: $enable_tcap_fkeys" >&5 21878echo "${ECHO_T}$enable_tcap_fkeys" >&6 21879test "$enable_tcap_fkeys" = yes && 21880cat >>confdefs.h <<\EOF 21881#define OPT_TCAP_FKEYS 1 21882EOF 21883 21884echo "$as_me:21884: checking if you want to use termcap-query/report" >&5 21885echo $ECHO_N "checking if you want to use termcap-query/report... $ECHO_C" >&6 21886 21887# Check whether --enable-tcap-query or --disable-tcap-query was given. 21888if test "${enable_tcap_query+set}" = set; then 21889 enableval="$enable_tcap_query" 21890 test "$enableval" != no && enableval=yes 21891 if test "$enableval" != "yes" ; then 21892 enable_tcap_query=no 21893 else 21894 enable_tcap_query=yes 21895 fi 21896else 21897 enableval=yes 21898 enable_tcap_query=yes 21899 21900fi; 21901echo "$as_me:21901: result: $enable_tcap_query" >&5 21902echo "${ECHO_T}$enable_tcap_query" >&6 21903test "$enable_tcap_query" = yes && 21904cat >>confdefs.h <<\EOF 21905#define OPT_TCAP_QUERY 1 21906EOF 21907 21908echo "$as_me:21908: checking if you want support for tek4014" >&5 21909echo $ECHO_N "checking if you want support for tek4014... $ECHO_C" >&6 21910 21911# Check whether --enable-tek4014 or --disable-tek4014 was given. 21912if test "${enable_tek4014+set}" = set; then 21913 enableval="$enable_tek4014" 21914 test "$enableval" != no && enableval=yes 21915 if test "$enableval" != "yes" ; then 21916 enable_tek4014=no 21917 else 21918 enable_tek4014=yes 21919 fi 21920else 21921 enableval=yes 21922 enable_tek4014=yes 21923 21924fi; 21925echo "$as_me:21925: result: $enable_tek4014" >&5 21926echo "${ECHO_T}$enable_tek4014" >&6 21927if test "$enable_tek4014" = no ; then 21928 21929cat >>confdefs.h <<\EOF 21930#define OPT_TEK4014 0 21931EOF 21932 21933else 21934 EXTRAHDRS="$EXTRAHDRS Tekparse.h" 21935 EXTRASRCS="$EXTRASRCS TekPrsTbl.c Tekproc.c" 21936 EXTRAOBJS="$EXTRAOBJS TekPrsTbl.o Tekproc.o" 21937fi 21938 21939echo "$as_me:21939: checking if you want pulldown menus with a toolbar" >&5 21940echo $ECHO_N "checking if you want pulldown menus with a toolbar... $ECHO_C" >&6 21941 21942# Check whether --enable-toolbar or --disable-toolbar was given. 21943if test "${enable_toolbar+set}" = set; then 21944 enableval="$enable_toolbar" 21945 test "$enableval" != yes && enableval=no 21946 if test "$enableval" != "no" ; then 21947 enable_toolbar=yes 21948 else 21949 enable_toolbar=no 21950 fi 21951else 21952 enableval=no 21953 enable_toolbar=no 21954 21955fi; 21956echo "$as_me:21956: result: $enable_toolbar" >&5 21957echo "${ECHO_T}$enable_toolbar" >&6 21958if test "$enable_toolbar" = yes ; then 21959 21960cat >>confdefs.h <<\EOF 21961#define OPT_TOOLBAR 1 21962EOF 21963 21964fi 21965 21966echo "$as_me:21966: checking if you want VT52 emulation" >&5 21967echo $ECHO_N "checking if you want VT52 emulation... $ECHO_C" >&6 21968 21969# Check whether --enable-vt52 or --disable-vt52 was given. 21970if test "${enable_vt52+set}" = set; then 21971 enableval="$enable_vt52" 21972 test "$enableval" != no && enableval=yes 21973 if test "$enableval" != "yes" ; then 21974 enable_vt52=no 21975 else 21976 enable_vt52=yes 21977 fi 21978else 21979 enableval=yes 21980 enable_vt52=yes 21981 21982fi; 21983echo "$as_me:21983: result: $enable_vt52" >&5 21984echo "${ECHO_T}$enable_vt52" >&6 21985test "$enable_vt52" = no && 21986cat >>confdefs.h <<\EOF 21987#define OPT_VT52_MODE 0 21988EOF 21989 21990echo "$as_me:21990: checking if you want wide-attribute support" >&5 21991echo $ECHO_N "checking if you want wide-attribute support... $ECHO_C" >&6 21992 21993# Check whether --enable-wide-attrs or --disable-wide-attrs was given. 21994if test "${enable_wide_attrs+set}" = set; then 21995 enableval="$enable_wide_attrs" 21996 test "$enableval" != no && enableval=yes 21997 if test "$enableval" != "yes" ; then 21998 enable_wattr=no 21999 else 22000 enable_wattr=yes 22001 fi 22002else 22003 enableval=yes 22004 enable_wattr=yes 22005 22006fi; 22007echo "$as_me:22007: result: $enable_wattr" >&5 22008echo "${ECHO_T}$enable_wattr" >&6 22009 22010if test x$enable_wattr = xno && test x$enable_direct_color = xyes ; then 22011 { echo "$as_me:22011: WARNING: overriding wide-attributes to support direct color" >&5 22012echo "$as_me: WARNING: overriding wide-attributes to support direct color" >&2;} 22013 enable_wattr=yes 22014fi 22015 22016echo "$as_me:22016: checking if you want wide-character support" >&5 22017echo $ECHO_N "checking if you want wide-character support... $ECHO_C" >&6 22018 22019# Check whether --enable-wide-chars or --disable-wide-chars was given. 22020if test "${enable_wide_chars+set}" = set; then 22021 enableval="$enable_wide_chars" 22022 test "$enableval" != no && enableval=yes 22023 if test "$enableval" != "yes" ; then 22024 enable_wchar=no 22025 else 22026 enable_wchar=yes 22027 fi 22028else 22029 enableval=yes 22030 enable_wchar=yes 22031 22032fi; 22033echo "$as_me:22033: result: $enable_wchar" >&5 22034echo "${ECHO_T}$enable_wchar" >&6 22035test "x$enable_wattr" = xno && 22036cat >>confdefs.h <<\EOF 22037#define OPT_WIDE_ATTRS 0 22038EOF 22039 22040echo "$as_me:22040: checking if you want only 16-bit character support" >&5 22041echo $ECHO_N "checking if you want only 16-bit character support... $ECHO_C" >&6 22042 22043# Check whether --enable-16bit-chars or --disable-16bit-chars was given. 22044if test "${enable_16bit_chars+set}" = set; then 22045 enableval="$enable_16bit_chars" 22046 test "$enableval" != yes && enableval=no 22047 if test "$enableval" != "no" ; then 22048 enable_16bit_chars=yes 22049 else 22050 enable_16bit_chars=no 22051 fi 22052else 22053 enableval=no 22054 enable_16bit_chars=no 22055 22056fi; 22057echo "$as_me:22057: result: $enable_16bit_chars" >&5 22058echo "${ECHO_T}$enable_16bit_chars" >&6 22059 22060if test "$enable_16bit_chars" = yes ; then 22061 22062cat >>confdefs.h <<\EOF 22063#define OPT_WIDER_ICHAR 0 22064EOF 22065 22066 enable_wchar=yes 22067fi 22068 22069if test "$enable_wchar" = yes ; then 22070 22071echo "$as_me:22071: checking if you want to use mini-luit/Latin9 built-in support" >&5 22072echo $ECHO_N "checking if you want to use mini-luit/Latin9 built-in support... $ECHO_C" >&6 22073 22074# Check whether --enable-mini-luit or --disable-mini-luit was given. 22075if test "${enable_mini_luit+set}" = set; then 22076 enableval="$enable_mini_luit" 22077 test "$enableval" != yes && enableval=no 22078 if test "$enableval" != "no" ; then 22079 enable_mini_luit=yes 22080 else 22081 enable_mini_luit=no 22082 fi 22083else 22084 enableval=no 22085 enable_mini_luit=no 22086 22087fi; 22088echo "$as_me:22088: result: $enable_mini_luit" >&5 22089echo "${ECHO_T}$enable_mini_luit" >&6 22090if test "$enable_mini_luit" = yes ; then 22091 22092cat >>confdefs.h <<\EOF 22093#define OPT_MINI_LUIT 1 22094EOF 22095 22096fi 22097 22098echo "$as_me:22098: checking if you want to use luit" >&5 22099echo $ECHO_N "checking if you want to use luit... $ECHO_C" >&6 22100 22101# Check whether --enable-luit or --disable-luit was given. 22102if test "${enable_luit+set}" = set; then 22103 enableval="$enable_luit" 22104 test "$enableval" != no && enableval=yes 22105 if test "$enableval" != "yes" ; then 22106 enable_luit=no 22107 else 22108 enable_luit=yes 22109 fi 22110else 22111 enableval=yes 22112 enable_luit=yes 22113 22114fi; 22115echo "$as_me:22115: result: $enable_luit" >&5 22116echo "${ECHO_T}$enable_luit" >&6 22117if test "$enable_luit" = yes ; then 22118 22119cat >>confdefs.h <<\EOF 22120#define OPT_LUIT_PROG 1 22121EOF 22122 22123test -z "$LUIT" && LUIT="xterm-filter" 22124for ac_prog in $LUIT xterm-filter bluit luit 22125do 22126 # Extract the first word of "$ac_prog", so it can be a program name with args. 22127set dummy $ac_prog; ac_word=$2 22128echo "$as_me:22128: checking for $ac_word" >&5 22129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 22130if test "${ac_cv_path_LUIT+set}" = set; then 22131 echo $ECHO_N "(cached) $ECHO_C" >&6 22132else 22133 case $LUIT in 22134 [\\/]* | ?:[\\/]*) 22135 ac_cv_path_LUIT="$LUIT" # Let the user override the test with a path. 22136 ;; 22137 *) 22138 ac_save_IFS=$IFS; IFS=$ac_path_separator 22139ac_dummy="$PATH" 22140for ac_dir in $ac_dummy; do 22141 IFS=$ac_save_IFS 22142 test -z "$ac_dir" && ac_dir=. 22143 if $as_executable_p "$ac_dir/$ac_word"; then 22144 ac_cv_path_LUIT="$ac_dir/$ac_word" 22145 echo "$as_me:22145: found $ac_dir/$ac_word" >&5 22146 break 22147fi 22148done 22149 22150 ;; 22151esac 22152fi 22153LUIT=$ac_cv_path_LUIT 22154 22155if test -n "$LUIT"; then 22156 echo "$as_me:22156: result: $LUIT" >&5 22157echo "${ECHO_T}$LUIT" >&6 22158else 22159 echo "$as_me:22159: result: no" >&5 22160echo "${ECHO_T}no" >&6 22161fi 22162 22163 test -n "$LUIT" && break 22164done 22165test -n "$LUIT" || LUIT="$LUIT" 22166 22167cf_path_prog="" 22168cf_path_args="" 22169IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" 22170for cf_temp in $ac_cv_path_LUIT 22171do 22172 if test -z "$cf_path_prog" ; then 22173 if test "$with_full_paths" = yes ; then 22174 22175if test "x$prefix" != xNONE; then 22176 cf_path_syntax="$prefix" 22177else 22178 cf_path_syntax="$ac_default_prefix" 22179fi 22180 22181case ".$cf_temp" in 22182(.\$\(*\)*|.\'*\'*) 22183 ;; 22184(..|./*|.\\*) 22185 ;; 22186(.[a-zA-Z]:[\\/]*) # OS/2 EMX 22187 ;; 22188(.\$\{*prefix\}*|.\$\{*dir\}*) 22189 eval cf_temp="$cf_temp" 22190 case ".$cf_temp" in 22191 (.NONE/*) 22192 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` 22193 ;; 22194 esac 22195 ;; 22196(.no|.NONE/*) 22197 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` 22198 ;; 22199(*) 22200 break 22201 ;; 22202esac 22203 22204 cf_path_prog="$cf_temp" 22205 else 22206 cf_path_prog="`basename "$cf_temp"`" 22207 fi 22208 elif test -z "$cf_path_args" ; then 22209 cf_path_args="$cf_temp" 22210 else 22211 cf_path_args="$cf_path_args $cf_temp" 22212 fi 22213done 22214IFS="$cf_save_ifs" 22215 22216if test -n "$cf_path_prog" ; then 22217 22218echo "${as_me:-configure}:22218: testing defining path for ${cf_path_prog} ..." 1>&5 22219 22220cat >>confdefs.h <<EOF 22221#define LUIT_PATH "$cf_path_prog" 22222EOF 22223 22224 test -n "$cf_path_args" && 22225cat >>confdefs.h <<EOF 22226#define LUIT_ARGS "$cf_path_args" 22227EOF 22228 22229fi 22230 22231fi 22232 22233cat >>confdefs.h <<\EOF 22234#define OPT_WIDE_CHARS 1 22235EOF 22236 22237 EXTRAHDRS="$EXTRAHDRS charclass.h precompose.h wcwidth.h" 22238 EXTRASRCS="$EXTRASRCS charclass.c precompose.c wcwidth.c" 22239 EXTRAOBJS="$EXTRAOBJS charclass.o precompose.o wcwidth.o" 22240fi 22241 22242echo "$as_me:22242: checking if you want dynamic-abbreviation support" >&5 22243echo $ECHO_N "checking if you want dynamic-abbreviation support... $ECHO_C" >&6 22244 22245# Check whether --enable-dabbrev or --disable-dabbrev was given. 22246if test "${enable_dabbrev+set}" = set; then 22247 enableval="$enable_dabbrev" 22248 test "$enableval" != yes && enableval=no 22249 if test "$enableval" != "no" ; then 22250 enable_dabbrev=yes 22251 else 22252 enable_dabbrev=no 22253 fi 22254else 22255 enableval=no 22256 enable_dabbrev=no 22257 22258fi; 22259echo "$as_me:22259: result: $enable_dabbrev" >&5 22260echo "${ECHO_T}$enable_dabbrev" >&6 22261if test "$enable_dabbrev" = yes ; then 22262 22263cat >>confdefs.h <<\EOF 22264#define OPT_DABBREV 1 22265EOF 22266 22267fi 22268 22269echo "$as_me:22269: checking if you want DECterm Locator support" >&5 22270echo $ECHO_N "checking if you want DECterm Locator support... $ECHO_C" >&6 22271 22272# Check whether --enable-dec-locator or --disable-dec-locator was given. 22273if test "${enable_dec_locator+set}" = set; then 22274 enableval="$enable_dec_locator" 22275 test "$enableval" != yes && enableval=no 22276 if test "$enableval" != "no" ; then 22277 enable_dec_locator=yes 22278 else 22279 enable_dec_locator=no 22280 fi 22281else 22282 enableval=no 22283 enable_dec_locator=no 22284 22285fi; 22286echo "$as_me:22286: result: $enable_dec_locator" >&5 22287echo "${ECHO_T}$enable_dec_locator" >&6 22288if test "$enable_dec_locator" = yes ; then 22289 22290cat >>confdefs.h <<\EOF 22291#define OPT_DEC_LOCATOR 1 22292EOF 22293 22294fi 22295 22296echo "$as_me:22296: checking if you want XHTML and SVG screen dump support" >&5 22297echo $ECHO_N "checking if you want XHTML and SVG screen dump support... $ECHO_C" >&6 22298 22299# Check whether --enable-screen-dumps or --disable-screen-dumps was given. 22300if test "${enable_screen_dumps+set}" = set; then 22301 enableval="$enable_screen_dumps" 22302 test "$enableval" != no && enableval=yes 22303 if test "$enableval" != "yes" ; then 22304 enable_screen_dumps=no 22305 else 22306 enable_screen_dumps=yes 22307 fi 22308else 22309 enableval=yes 22310 enable_screen_dumps=yes 22311 22312fi; 22313echo "$as_me:22313: result: $enable_screen_dumps" >&5 22314echo "${ECHO_T}$enable_screen_dumps" >&6 22315if test "$enable_screen_dumps" = yes ; then 22316 EXTRASRCS="$EXTRASRCS html.c svg.c" 22317 EXTRAOBJS="$EXTRAOBJS html.o svg.o" 22318else 22319 22320cat >>confdefs.h <<\EOF 22321#define OPT_SCREEN_DUMPS 0 22322EOF 22323 22324fi 22325 22326echo "$as_me:22326: checking if you want ReGIS graphics support" >&5 22327echo $ECHO_N "checking if you want ReGIS graphics support... $ECHO_C" >&6 22328 22329# Check whether --enable-regis-graphics or --disable-regis-graphics was given. 22330if test "${enable_regis_graphics+set}" = set; then 22331 enableval="$enable_regis_graphics" 22332 test "$enableval" != yes && enableval=no 22333 if test "$enableval" != "no" ; then 22334 enable_regis_graphics=yes 22335 else 22336 enable_regis_graphics=no 22337 fi 22338else 22339 enableval=no 22340 enable_regis_graphics=no 22341 22342fi; 22343echo "$as_me:22343: result: $enable_regis_graphics" >&5 22344echo "${ECHO_T}$enable_regis_graphics" >&6 22345if test "$enable_regis_graphics" = yes ; then 22346 22347cat >>confdefs.h <<\EOF 22348#define OPT_REGIS_GRAPHICS 1 22349EOF 22350 22351 EXTRAHDRS="$EXTRAHDRS graphics_regis.h" 22352 EXTRASRCS="$EXTRASRCS graphics_regis.c" 22353 EXTRAOBJS="$EXTRAOBJS graphics_regis.o" 22354 22355echo "$as_me:22355: checking if -lm needed for math functions" >&5 22356echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6 22357if test "${cf_cv_need_libm+set}" = set; then 22358 echo $ECHO_N "(cached) $ECHO_C" >&6 22359else 22360 22361 cat >"conftest.$ac_ext" <<_ACEOF 22362#line 22362 "configure" 22363#include "confdefs.h" 22364 22365 #include <stdio.h> 22366 #include <stdlib.h> 22367 #include <math.h> 22368 22369int 22370main (void) 22371{ 22372double x = rand(); printf("result = %g\\n", sin(x)) 22373 ; 22374 return 0; 22375} 22376_ACEOF 22377rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22378if { (eval echo "$as_me:22378: \"$ac_link\"") >&5 22379 (eval $ac_link) 2>&5 22380 ac_status=$? 22381 echo "$as_me:22381: \$? = $ac_status" >&5 22382 (exit "$ac_status"); } && 22383 { ac_try='test -s "conftest$ac_exeext"' 22384 { (eval echo "$as_me:22384: \"$ac_try\"") >&5 22385 (eval $ac_try) 2>&5 22386 ac_status=$? 22387 echo "$as_me:22387: \$? = $ac_status" >&5 22388 (exit "$ac_status"); }; }; then 22389 cf_cv_need_libm=no 22390else 22391 echo "$as_me: failed program was:" >&5 22392cat "conftest.$ac_ext" >&5 22393cf_cv_need_libm=yes 22394fi 22395rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22396fi 22397echo "$as_me:22397: result: $cf_cv_need_libm" >&5 22398echo "${ECHO_T}$cf_cv_need_libm" >&6 22399if test "$cf_cv_need_libm" = yes 22400then 22401 22402cf_add_libs="$LIBS" 22403# reverse order 22404cf_add_0lib= 22405for cf_add_1lib in -lm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 22406# filter duplicates 22407for cf_add_1lib in $cf_add_0lib; do 22408 for cf_add_2lib in $cf_add_libs; do 22409 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 22410 cf_add_1lib= 22411 break 22412 fi 22413 done 22414 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 22415done 22416LIBS="$cf_add_libs" 22417 22418fi 22419 22420fi 22421 22422echo "$as_me:22422: checking if you want sixel graphics support" >&5 22423echo $ECHO_N "checking if you want sixel graphics support... $ECHO_C" >&6 22424 22425# Check whether --enable-sixel-graphics or --disable-sixel-graphics was given. 22426if test "${enable_sixel_graphics+set}" = set; then 22427 enableval="$enable_sixel_graphics" 22428 test "$enableval" != no && enableval=yes 22429 if test "$enableval" != "yes" ; then 22430 enable_sixel_graphics=no 22431 else 22432 enable_sixel_graphics=yes 22433 fi 22434else 22435 enableval=yes 22436 enable_sixel_graphics=yes 22437 22438fi; 22439echo "$as_me:22439: result: $enable_sixel_graphics" >&5 22440echo "${ECHO_T}$enable_sixel_graphics" >&6 22441if test "$enable_sixel_graphics" = yes ; then 22442 22443cat >>confdefs.h <<\EOF 22444#define OPT_SIXEL_GRAPHICS 1 22445EOF 22446 22447 EXTRAHDRS="$EXTRAHDRS graphics_sixel.h" 22448 EXTRASRCS="$EXTRASRCS graphics_sixel.c" 22449 EXTRAOBJS="$EXTRAOBJS graphics_sixel.o" 22450fi 22451 22452if test "$enable_regis_graphics" = yes || test "$enable_sixel_graphics" = yes ; then 22453 22454cat >>confdefs.h <<\EOF 22455#define OPT_GRAPHICS 1 22456EOF 22457 22458 EXTRAHDRS="$EXTRAHDRS graphics.h" 22459 EXTRASRCS="$EXTRASRCS graphics.c" 22460 EXTRAOBJS="$EXTRAOBJS graphics.o" 22461fi 22462 22463echo "$as_me:22463: checking if you want sixel screen dump support" >&5 22464echo $ECHO_N "checking if you want sixel screen dump support... $ECHO_C" >&6 22465 22466# Check whether --enable-print-graphics or --disable-print-graphics was given. 22467if test "${enable_print_graphics+set}" = set; then 22468 enableval="$enable_print_graphics" 22469 test "$enableval" != no && enableval=yes 22470 if test "$enableval" != "yes" ; then 22471 enable_print_graphics=no 22472 else 22473 enable_print_graphics=$enable_regis_graphics 22474 fi 22475else 22476 enableval=yes 22477 enable_print_graphics=$enable_regis_graphics 22478 22479fi; 22480echo "$as_me:22480: result: $enable_print_graphics" >&5 22481echo "${ECHO_T}$enable_print_graphics" >&6 22482if test "$enable_print_graphics" = yes ; then 22483 22484cat >>confdefs.h <<\EOF 22485#define OPT_PRINT_GRAPHICS 1 22486EOF 22487 22488fi 22489 22490echo "$as_me:22490: checking if you want VT420 rectangle support" >&5 22491echo $ECHO_N "checking if you want VT420 rectangle support... $ECHO_C" >&6 22492 22493# Check whether --enable-rectangles or --disable-rectangles was given. 22494if test "${enable_rectangles+set}" = set; then 22495 enableval="$enable_rectangles" 22496 test "$enableval" != no && enableval=yes 22497 if test "$enableval" != "yes" ; then 22498 enable_rectangles=no 22499 else 22500 enable_rectangles=yes 22501 fi 22502else 22503 enableval=yes 22504 enable_rectangles=yes 22505 22506fi; 22507echo "$as_me:22507: result: $enable_rectangles" >&5 22508echo "${ECHO_T}$enable_rectangles" >&6 22509if test "$enable_rectangles" = yes ; then 22510 22511cat >>confdefs.h <<\EOF 22512#define OPT_DEC_RECTOPS 1 22513EOF 22514 22515fi 22516 22517echo "$as_me:22517: checking if you want -ziconbeep option" >&5 22518echo $ECHO_N "checking if you want -ziconbeep option... $ECHO_C" >&6 22519 22520# Check whether --enable-ziconbeep or --disable-ziconbeep was given. 22521if test "${enable_ziconbeep+set}" = set; then 22522 enableval="$enable_ziconbeep" 22523 test "$enableval" != no && enableval=yes 22524 if test "$enableval" != "yes" ; then 22525 enable_ziconbeep=no 22526 else 22527 enable_ziconbeep=yes 22528 fi 22529else 22530 enableval=yes 22531 enable_ziconbeep=yes 22532 22533fi; 22534echo "$as_me:22534: result: $enable_ziconbeep" >&5 22535echo "${ECHO_T}$enable_ziconbeep" >&6 22536test "$enable_ziconbeep" = no && 22537cat >>confdefs.h <<\EOF 22538#define OPT_ZICONBEEP 0 22539EOF 22540 22541############################################################################### 22542 22543echo "$as_me:22543: checking if you want debugging traces" >&5 22544echo $ECHO_N "checking if you want debugging traces... $ECHO_C" >&6 22545 22546# Check whether --enable-trace or --disable-trace was given. 22547if test "${enable_trace+set}" = set; then 22548 enableval="$enable_trace" 22549 test "$enableval" != yes && enableval=no 22550 if test "$enableval" != "no" ; then 22551 enable_trace=yes 22552 else 22553 enable_trace=no 22554 fi 22555else 22556 enableval=no 22557 enable_trace=no 22558 22559fi; 22560echo "$as_me:22560: result: $enable_trace" >&5 22561echo "${ECHO_T}$enable_trace" >&6 22562if test "$enable_trace" = yes ; then 22563 22564cat >>confdefs.h <<\EOF 22565#define OPT_TRACE 1 22566EOF 22567 22568 EXTRASRCS="$EXTRASRCS trace.c" 22569 EXTRAOBJS="$EXTRAOBJS trace.o" 22570fi 22571 22572echo "$as_me:22572: checking if you want to use dmalloc for testing" >&5 22573echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6 22574 22575# Check whether --with-dmalloc or --without-dmalloc was given. 22576if test "${with_dmalloc+set}" = set; then 22577 withval="$with_dmalloc" 22578 22579cat >>confdefs.h <<EOF 22580#define USE_DMALLOC 1 22581EOF 22582 22583 : "${with_cflags:=-g}" 22584 : "${enable_leaks:=no}" 22585 with_dmalloc=yes 22586else 22587 with_dmalloc= 22588fi; 22589echo "$as_me:22589: result: ${with_dmalloc:-no}" >&5 22590echo "${ECHO_T}${with_dmalloc:-no}" >&6 22591 22592case ".$with_cflags" in 22593(.*-g*) 22594 case .$CFLAGS in 22595 (.*-g*) 22596 ;; 22597 (*) 22598 22599cf_fix_cppflags=no 22600cf_new_cflags= 22601cf_new_cppflags= 22602cf_new_extra_cppflags= 22603 22604for cf_add_cflags in -g 22605do 22606case "$cf_fix_cppflags" in 22607(no) 22608 case "$cf_add_cflags" in 22609 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 22610 case "$cf_add_cflags" in 22611 (-D*) 22612 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 22613 22614 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 22615 && test -z "${cf_tst_cflags}" \ 22616 && cf_fix_cppflags=yes 22617 22618 if test "$cf_fix_cppflags" = yes ; then 22619 22620 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 22621 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 22622 22623 continue 22624 elif test "${cf_tst_cflags}" = "\"'" ; then 22625 22626 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 22627 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 22628 22629 continue 22630 fi 22631 ;; 22632 esac 22633 case "$CPPFLAGS" in 22634 (*$cf_add_cflags) 22635 ;; 22636 (*) 22637 case "$cf_add_cflags" in 22638 (-D*) 22639 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 22640 22641CPPFLAGS=`echo "$CPPFLAGS" | \ 22642 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 22643 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 22644 22645 ;; 22646 esac 22647 22648 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 22649 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 22650 22651 ;; 22652 esac 22653 ;; 22654 (*) 22655 22656 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 22657 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 22658 22659 ;; 22660 esac 22661 ;; 22662(yes) 22663 22664 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 22665 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 22666 22667 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 22668 22669 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 22670 && test -z "${cf_tst_cflags}" \ 22671 && cf_fix_cppflags=no 22672 ;; 22673esac 22674done 22675 22676if test -n "$cf_new_cflags" ; then 22677 22678 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 22679 CFLAGS="${CFLAGS}$cf_new_cflags" 22680 22681fi 22682 22683if test -n "$cf_new_cppflags" ; then 22684 22685 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 22686 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 22687 22688fi 22689 22690if test -n "$cf_new_extra_cppflags" ; then 22691 22692 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 22693 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 22694 22695fi 22696 22697 ;; 22698 esac 22699 ;; 22700esac 22701 22702if test "$with_dmalloc" = yes ; then 22703 echo "$as_me:22703: checking for dmalloc.h" >&5 22704echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6 22705if test "${ac_cv_header_dmalloc_h+set}" = set; then 22706 echo $ECHO_N "(cached) $ECHO_C" >&6 22707else 22708 cat >"conftest.$ac_ext" <<_ACEOF 22709#line 22709 "configure" 22710#include "confdefs.h" 22711#include <dmalloc.h> 22712_ACEOF 22713if { (eval echo "$as_me:22713: \"$ac_cpp "conftest.$ac_ext"\"") >&5 22714 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 22715 ac_status=$? 22716 $EGREP -v '^ *\+' conftest.er1 >conftest.err 22717 rm -f conftest.er1 22718 cat conftest.err >&5 22719 echo "$as_me:22719: \$? = $ac_status" >&5 22720 (exit "$ac_status"); } >/dev/null; then 22721 if test -s conftest.err; then 22722 ac_cpp_err=$ac_c_preproc_warn_flag 22723 else 22724 ac_cpp_err= 22725 fi 22726else 22727 ac_cpp_err=yes 22728fi 22729if test -z "$ac_cpp_err"; then 22730 ac_cv_header_dmalloc_h=yes 22731else 22732 echo "$as_me: failed program was:" >&5 22733 cat "conftest.$ac_ext" >&5 22734 ac_cv_header_dmalloc_h=no 22735fi 22736rm -f conftest.err "conftest.$ac_ext" 22737fi 22738echo "$as_me:22738: result: $ac_cv_header_dmalloc_h" >&5 22739echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6 22740if test "$ac_cv_header_dmalloc_h" = yes; then 22741 22742echo "$as_me:22742: checking for dmalloc_debug in -ldmalloc" >&5 22743echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6 22744if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then 22745 echo $ECHO_N "(cached) $ECHO_C" >&6 22746else 22747 ac_check_lib_save_LIBS=$LIBS 22748LIBS="-ldmalloc $LIBS" 22749cat >"conftest.$ac_ext" <<_ACEOF 22750#line 22750 "configure" 22751#include "confdefs.h" 22752 22753/* Override any gcc2 internal prototype to avoid an error. */ 22754#ifdef __cplusplus 22755extern "C" 22756#endif 22757/* We use char because int might match the return type of a gcc2 22758 builtin and then its argument prototype would still apply. */ 22759char dmalloc_debug (); 22760int 22761main (void) 22762{ 22763dmalloc_debug (); 22764 ; 22765 return 0; 22766} 22767_ACEOF 22768rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22769if { (eval echo "$as_me:22769: \"$ac_link\"") >&5 22770 (eval $ac_link) 2>&5 22771 ac_status=$? 22772 echo "$as_me:22772: \$? = $ac_status" >&5 22773 (exit "$ac_status"); } && 22774 { ac_try='test -s "conftest$ac_exeext"' 22775 { (eval echo "$as_me:22775: \"$ac_try\"") >&5 22776 (eval $ac_try) 2>&5 22777 ac_status=$? 22778 echo "$as_me:22778: \$? = $ac_status" >&5 22779 (exit "$ac_status"); }; }; then 22780 ac_cv_lib_dmalloc_dmalloc_debug=yes 22781else 22782 echo "$as_me: failed program was:" >&5 22783cat "conftest.$ac_ext" >&5 22784ac_cv_lib_dmalloc_dmalloc_debug=no 22785fi 22786rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22787LIBS=$ac_check_lib_save_LIBS 22788fi 22789echo "$as_me:22789: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5 22790echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6 22791if test "$ac_cv_lib_dmalloc_dmalloc_debug" = yes; then 22792 cat >>confdefs.h <<EOF 22793#define HAVE_LIBDMALLOC 1 22794EOF 22795 22796 LIBS="-ldmalloc $LIBS" 22797 22798fi 22799 22800fi 22801 22802fi 22803 22804echo "$as_me:22804: checking if you want to use dbmalloc for testing" >&5 22805echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6 22806 22807# Check whether --with-dbmalloc or --without-dbmalloc was given. 22808if test "${with_dbmalloc+set}" = set; then 22809 withval="$with_dbmalloc" 22810 22811cat >>confdefs.h <<EOF 22812#define USE_DBMALLOC 1 22813EOF 22814 22815 : "${with_cflags:=-g}" 22816 : "${enable_leaks:=no}" 22817 with_dbmalloc=yes 22818else 22819 with_dbmalloc= 22820fi; 22821echo "$as_me:22821: result: ${with_dbmalloc:-no}" >&5 22822echo "${ECHO_T}${with_dbmalloc:-no}" >&6 22823 22824case ".$with_cflags" in 22825(.*-g*) 22826 case .$CFLAGS in 22827 (.*-g*) 22828 ;; 22829 (*) 22830 22831cf_fix_cppflags=no 22832cf_new_cflags= 22833cf_new_cppflags= 22834cf_new_extra_cppflags= 22835 22836for cf_add_cflags in -g 22837do 22838case "$cf_fix_cppflags" in 22839(no) 22840 case "$cf_add_cflags" in 22841 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 22842 case "$cf_add_cflags" in 22843 (-D*) 22844 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 22845 22846 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 22847 && test -z "${cf_tst_cflags}" \ 22848 && cf_fix_cppflags=yes 22849 22850 if test "$cf_fix_cppflags" = yes ; then 22851 22852 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 22853 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 22854 22855 continue 22856 elif test "${cf_tst_cflags}" = "\"'" ; then 22857 22858 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 22859 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 22860 22861 continue 22862 fi 22863 ;; 22864 esac 22865 case "$CPPFLAGS" in 22866 (*$cf_add_cflags) 22867 ;; 22868 (*) 22869 case "$cf_add_cflags" in 22870 (-D*) 22871 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 22872 22873CPPFLAGS=`echo "$CPPFLAGS" | \ 22874 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 22875 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 22876 22877 ;; 22878 esac 22879 22880 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 22881 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 22882 22883 ;; 22884 esac 22885 ;; 22886 (*) 22887 22888 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 22889 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 22890 22891 ;; 22892 esac 22893 ;; 22894(yes) 22895 22896 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 22897 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 22898 22899 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 22900 22901 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 22902 && test -z "${cf_tst_cflags}" \ 22903 && cf_fix_cppflags=no 22904 ;; 22905esac 22906done 22907 22908if test -n "$cf_new_cflags" ; then 22909 22910 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 22911 CFLAGS="${CFLAGS}$cf_new_cflags" 22912 22913fi 22914 22915if test -n "$cf_new_cppflags" ; then 22916 22917 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 22918 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 22919 22920fi 22921 22922if test -n "$cf_new_extra_cppflags" ; then 22923 22924 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 22925 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 22926 22927fi 22928 22929 ;; 22930 esac 22931 ;; 22932esac 22933 22934if test "$with_dbmalloc" = yes ; then 22935 echo "$as_me:22935: checking for dbmalloc.h" >&5 22936echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6 22937if test "${ac_cv_header_dbmalloc_h+set}" = set; then 22938 echo $ECHO_N "(cached) $ECHO_C" >&6 22939else 22940 cat >"conftest.$ac_ext" <<_ACEOF 22941#line 22941 "configure" 22942#include "confdefs.h" 22943#include <dbmalloc.h> 22944_ACEOF 22945if { (eval echo "$as_me:22945: \"$ac_cpp "conftest.$ac_ext"\"") >&5 22946 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 22947 ac_status=$? 22948 $EGREP -v '^ *\+' conftest.er1 >conftest.err 22949 rm -f conftest.er1 22950 cat conftest.err >&5 22951 echo "$as_me:22951: \$? = $ac_status" >&5 22952 (exit "$ac_status"); } >/dev/null; then 22953 if test -s conftest.err; then 22954 ac_cpp_err=$ac_c_preproc_warn_flag 22955 else 22956 ac_cpp_err= 22957 fi 22958else 22959 ac_cpp_err=yes 22960fi 22961if test -z "$ac_cpp_err"; then 22962 ac_cv_header_dbmalloc_h=yes 22963else 22964 echo "$as_me: failed program was:" >&5 22965 cat "conftest.$ac_ext" >&5 22966 ac_cv_header_dbmalloc_h=no 22967fi 22968rm -f conftest.err "conftest.$ac_ext" 22969fi 22970echo "$as_me:22970: result: $ac_cv_header_dbmalloc_h" >&5 22971echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6 22972if test "$ac_cv_header_dbmalloc_h" = yes; then 22973 22974echo "$as_me:22974: checking for debug_malloc in -ldbmalloc" >&5 22975echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6 22976if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then 22977 echo $ECHO_N "(cached) $ECHO_C" >&6 22978else 22979 ac_check_lib_save_LIBS=$LIBS 22980LIBS="-ldbmalloc $LIBS" 22981cat >"conftest.$ac_ext" <<_ACEOF 22982#line 22982 "configure" 22983#include "confdefs.h" 22984 22985/* Override any gcc2 internal prototype to avoid an error. */ 22986#ifdef __cplusplus 22987extern "C" 22988#endif 22989/* We use char because int might match the return type of a gcc2 22990 builtin and then its argument prototype would still apply. */ 22991char debug_malloc (); 22992int 22993main (void) 22994{ 22995debug_malloc (); 22996 ; 22997 return 0; 22998} 22999_ACEOF 23000rm -f "conftest.$ac_objext" "conftest$ac_exeext" 23001if { (eval echo "$as_me:23001: \"$ac_link\"") >&5 23002 (eval $ac_link) 2>&5 23003 ac_status=$? 23004 echo "$as_me:23004: \$? = $ac_status" >&5 23005 (exit "$ac_status"); } && 23006 { ac_try='test -s "conftest$ac_exeext"' 23007 { (eval echo "$as_me:23007: \"$ac_try\"") >&5 23008 (eval $ac_try) 2>&5 23009 ac_status=$? 23010 echo "$as_me:23010: \$? = $ac_status" >&5 23011 (exit "$ac_status"); }; }; then 23012 ac_cv_lib_dbmalloc_debug_malloc=yes 23013else 23014 echo "$as_me: failed program was:" >&5 23015cat "conftest.$ac_ext" >&5 23016ac_cv_lib_dbmalloc_debug_malloc=no 23017fi 23018rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 23019LIBS=$ac_check_lib_save_LIBS 23020fi 23021echo "$as_me:23021: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5 23022echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6 23023if test "$ac_cv_lib_dbmalloc_debug_malloc" = yes; then 23024 cat >>confdefs.h <<EOF 23025#define HAVE_LIBDBMALLOC 1 23026EOF 23027 23028 LIBS="-ldbmalloc $LIBS" 23029 23030fi 23031 23032fi 23033 23034fi 23035 23036echo "$as_me:23036: checking if you want to use valgrind for testing" >&5 23037echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6 23038 23039# Check whether --with-valgrind or --without-valgrind was given. 23040if test "${with_valgrind+set}" = set; then 23041 withval="$with_valgrind" 23042 23043cat >>confdefs.h <<EOF 23044#define USE_VALGRIND 1 23045EOF 23046 23047 : "${with_cflags:=-g}" 23048 : "${enable_leaks:=no}" 23049 with_valgrind=yes 23050else 23051 with_valgrind= 23052fi; 23053echo "$as_me:23053: result: ${with_valgrind:-no}" >&5 23054echo "${ECHO_T}${with_valgrind:-no}" >&6 23055 23056case ".$with_cflags" in 23057(.*-g*) 23058 case .$CFLAGS in 23059 (.*-g*) 23060 ;; 23061 (*) 23062 23063cf_fix_cppflags=no 23064cf_new_cflags= 23065cf_new_cppflags= 23066cf_new_extra_cppflags= 23067 23068for cf_add_cflags in -g 23069do 23070case "$cf_fix_cppflags" in 23071(no) 23072 case "$cf_add_cflags" in 23073 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 23074 case "$cf_add_cflags" in 23075 (-D*) 23076 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 23077 23078 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 23079 && test -z "${cf_tst_cflags}" \ 23080 && cf_fix_cppflags=yes 23081 23082 if test "$cf_fix_cppflags" = yes ; then 23083 23084 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 23085 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 23086 23087 continue 23088 elif test "${cf_tst_cflags}" = "\"'" ; then 23089 23090 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 23091 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 23092 23093 continue 23094 fi 23095 ;; 23096 esac 23097 case "$CPPFLAGS" in 23098 (*$cf_add_cflags) 23099 ;; 23100 (*) 23101 case "$cf_add_cflags" in 23102 (-D*) 23103 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 23104 23105CPPFLAGS=`echo "$CPPFLAGS" | \ 23106 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 23107 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 23108 23109 ;; 23110 esac 23111 23112 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 23113 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 23114 23115 ;; 23116 esac 23117 ;; 23118 (*) 23119 23120 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 23121 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 23122 23123 ;; 23124 esac 23125 ;; 23126(yes) 23127 23128 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 23129 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 23130 23131 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 23132 23133 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 23134 && test -z "${cf_tst_cflags}" \ 23135 && cf_fix_cppflags=no 23136 ;; 23137esac 23138done 23139 23140if test -n "$cf_new_cflags" ; then 23141 23142 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 23143 CFLAGS="${CFLAGS}$cf_new_cflags" 23144 23145fi 23146 23147if test -n "$cf_new_cppflags" ; then 23148 23149 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 23150 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 23151 23152fi 23153 23154if test -n "$cf_new_extra_cppflags" ; then 23155 23156 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 23157 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 23158 23159fi 23160 23161 ;; 23162 esac 23163 ;; 23164esac 23165 23166echo "$as_me:23166: checking if you want to perform memory-leak testing" >&5 23167echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6 23168 23169# Check whether --enable-leaks or --disable-leaks was given. 23170if test "${enable_leaks+set}" = set; then 23171 enableval="$enable_leaks" 23172 enable_leaks=no 23173else 23174 enable_leaks=yes 23175fi; 23176if test "x$enable_leaks" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi 23177echo "$as_me:23177: result: $with_no_leaks" >&5 23178echo "${ECHO_T}$with_no_leaks" >&6 23179 23180if test "$enable_leaks" = no ; then 23181 23182cat >>confdefs.h <<\EOF 23183#define NO_LEAKS 1 23184EOF 23185 23186cat >>confdefs.h <<\EOF 23187#define YY_NO_LEAKS 1 23188EOF 23189 23190fi 23191 23192echo "$as_me:23192: checking if you want to see long compiling messages" >&5 23193echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6 23194 23195# Check whether --enable-echo or --disable-echo was given. 23196if test "${enable_echo+set}" = set; then 23197 enableval="$enable_echo" 23198 test "$enableval" != no && enableval=yes 23199 if test "$enableval" != "yes" ; then 23200 23201 ECHO_LT='--silent' 23202 ECHO_LD='@echo linking $@;' 23203 RULE_CC='@echo compiling $<' 23204 SHOW_CC='@echo compiling $@' 23205 ECHO_CC='@' 23206 23207 else 23208 23209 ECHO_LT='' 23210 ECHO_LD='' 23211 RULE_CC='' 23212 SHOW_CC='' 23213 ECHO_CC='' 23214 23215 fi 23216else 23217 enableval=yes 23218 23219 ECHO_LT='' 23220 ECHO_LD='' 23221 RULE_CC='' 23222 SHOW_CC='' 23223 ECHO_CC='' 23224 23225fi; 23226echo "$as_me:23226: result: $enableval" >&5 23227echo "${ECHO_T}$enableval" >&6 23228 23229echo "$as_me:23229: checking if you want magic cookie emulation" >&5 23230echo $ECHO_N "checking if you want magic cookie emulation... $ECHO_C" >&6 23231 23232# Check whether --enable-xmc-glitch or --disable-xmc-glitch was given. 23233if test "${enable_xmc_glitch+set}" = set; then 23234 enableval="$enable_xmc_glitch" 23235 test "$enableval" != yes && enableval=no 23236 if test "$enableval" != "no" ; then 23237 enable_xmc=yes 23238 else 23239 enable_xmc=no 23240 fi 23241else 23242 enableval=no 23243 enable_xmc=no 23244 23245fi; 23246echo "$as_me:23246: result: $enable_xmc" >&5 23247echo "${ECHO_T}$enable_xmc" >&6 23248if test "$enable_xmc" = yes ; then 23249 23250cat >>confdefs.h <<\EOF 23251#define OPT_XMC_GLITCH 1 23252EOF 23253 23254 EXTRASRCS="$EXTRASRCS testxmc.c" 23255 EXTRAOBJS="$EXTRAOBJS testxmc.o" 23256fi 23257 23258for ac_func in tigetstr 23259do 23260as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 23261echo "$as_me:23261: checking for $ac_func" >&5 23262echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 23263if eval "test \"\${$as_ac_var+set}\" = set"; then 23264 echo $ECHO_N "(cached) $ECHO_C" >&6 23265else 23266 cat >"conftest.$ac_ext" <<_ACEOF 23267#line 23267 "configure" 23268#include "confdefs.h" 23269#define $ac_func autoconf_temporary 23270#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 23271#undef $ac_func 23272 23273#ifdef __cplusplus 23274extern "C" 23275#endif 23276 23277/* We use char because int might match the return type of a gcc2 23278 builtin and then its argument prototype would still apply. */ 23279char $ac_func (void); 23280 23281int 23282main (void) 23283{ 23284 23285/* The GNU C library defines stubs for functions which it implements 23286 to always fail with ENOSYS. Some functions are actually named 23287 something starting with __ and the normal name is an alias. */ 23288#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 23289#error found stub for $ac_func 23290#endif 23291 23292 return $ac_func (); 23293 ; 23294 return 0; 23295} 23296_ACEOF 23297rm -f "conftest.$ac_objext" "conftest$ac_exeext" 23298if { (eval echo "$as_me:23298: \"$ac_link\"") >&5 23299 (eval $ac_link) 2>&5 23300 ac_status=$? 23301 echo "$as_me:23301: \$? = $ac_status" >&5 23302 (exit "$ac_status"); } && 23303 { ac_try='test -s "conftest$ac_exeext"' 23304 { (eval echo "$as_me:23304: \"$ac_try\"") >&5 23305 (eval $ac_try) 2>&5 23306 ac_status=$? 23307 echo "$as_me:23307: \$? = $ac_status" >&5 23308 (exit "$ac_status"); }; }; then 23309 eval "$as_ac_var=yes" 23310else 23311 echo "$as_me: failed program was:" >&5 23312cat "conftest.$ac_ext" >&5 23313eval "$as_ac_var=no" 23314fi 23315rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 23316fi 23317echo "$as_me:23317: result: `eval echo '${'"$as_ac_var"'}'`" >&5 23318echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 23319if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 23320 cat >>confdefs.h <<EOF 23321#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 23322EOF 23323 23324fi 23325done 23326 23327if test -n "$cf_cv_lib_part_tgetent"; then 23328 23329for ac_func in use_extended_names 23330do 23331as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 23332echo "$as_me:23332: checking for $ac_func" >&5 23333echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 23334if eval "test \"\${$as_ac_var+set}\" = set"; then 23335 echo $ECHO_N "(cached) $ECHO_C" >&6 23336else 23337 cat >"conftest.$ac_ext" <<_ACEOF 23338#line 23338 "configure" 23339#include "confdefs.h" 23340#define $ac_func autoconf_temporary 23341#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 23342#undef $ac_func 23343 23344#ifdef __cplusplus 23345extern "C" 23346#endif 23347 23348/* We use char because int might match the return type of a gcc2 23349 builtin and then its argument prototype would still apply. */ 23350char $ac_func (void); 23351 23352int 23353main (void) 23354{ 23355 23356/* The GNU C library defines stubs for functions which it implements 23357 to always fail with ENOSYS. Some functions are actually named 23358 something starting with __ and the normal name is an alias. */ 23359#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 23360#error found stub for $ac_func 23361#endif 23362 23363 return $ac_func (); 23364 ; 23365 return 0; 23366} 23367_ACEOF 23368rm -f "conftest.$ac_objext" "conftest$ac_exeext" 23369if { (eval echo "$as_me:23369: \"$ac_link\"") >&5 23370 (eval $ac_link) 2>&5 23371 ac_status=$? 23372 echo "$as_me:23372: \$? = $ac_status" >&5 23373 (exit "$ac_status"); } && 23374 { ac_try='test -s "conftest$ac_exeext"' 23375 { (eval echo "$as_me:23375: \"$ac_try\"") >&5 23376 (eval $ac_try) 2>&5 23377 ac_status=$? 23378 echo "$as_me:23378: \$? = $ac_status" >&5 23379 (exit "$ac_status"); }; }; then 23380 eval "$as_ac_var=yes" 23381else 23382 echo "$as_me: failed program was:" >&5 23383cat "conftest.$ac_ext" >&5 23384eval "$as_ac_var=no" 23385fi 23386rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 23387fi 23388echo "$as_me:23388: result: `eval echo '${'"$as_ac_var"'}'`" >&5 23389echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 23390if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 23391 cat >>confdefs.h <<EOF 23392#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 23393EOF 23394 23395fi 23396done 23397 23398fi 23399 23400if test "$GCC" = yes || test "$GXX" = yes 23401then 23402 23403if test "$GCC" = yes || test "$GXX" = yes 23404then 23405 case $CFLAGS in 23406 (*-Werror=*) 23407 test -n "$verbose" && echo " repairing CFLAGS: $CFLAGS" 1>&6 23408 23409echo "${as_me:-configure}:23409: testing repairing CFLAGS: $CFLAGS ..." 1>&5 23410 23411 cf_temp_flags= 23412 for cf_temp_scan in $CFLAGS 23413 do 23414 case "x$cf_temp_scan" in 23415 (x-Werror=*) 23416 23417 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS " 23418 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan" 23419 23420 ;; 23421 (*) 23422 23423 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags " 23424 cf_temp_flags="${cf_temp_flags}$cf_temp_scan" 23425 23426 ;; 23427 esac 23428 done 23429 CFLAGS="$cf_temp_flags" 23430 test -n "$verbose" && echo " ... fixed $CFLAGS" 1>&6 23431 23432echo "${as_me:-configure}:23432: testing ... fixed $CFLAGS ..." 1>&5 23433 23434 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6 23435 23436echo "${as_me:-configure}:23436: testing ... extra $EXTRA_CFLAGS ..." 1>&5 23437 23438 ;; 23439 esac 23440fi 23441 23442if test "$GCC" = yes || test "$GXX" = yes 23443then 23444 case $CPPFLAGS in 23445 (*-Werror=*) 23446 test -n "$verbose" && echo " repairing CPPFLAGS: $CPPFLAGS" 1>&6 23447 23448echo "${as_me:-configure}:23448: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5 23449 23450 cf_temp_flags= 23451 for cf_temp_scan in $CPPFLAGS 23452 do 23453 case "x$cf_temp_scan" in 23454 (x-Werror=*) 23455 23456 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS " 23457 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan" 23458 23459 ;; 23460 (*) 23461 23462 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags " 23463 cf_temp_flags="${cf_temp_flags}$cf_temp_scan" 23464 23465 ;; 23466 esac 23467 done 23468 CPPFLAGS="$cf_temp_flags" 23469 test -n "$verbose" && echo " ... fixed $CPPFLAGS" 1>&6 23470 23471echo "${as_me:-configure}:23471: testing ... fixed $CPPFLAGS ..." 1>&5 23472 23473 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6 23474 23475echo "${as_me:-configure}:23475: testing ... extra $EXTRA_CFLAGS ..." 1>&5 23476 23477 ;; 23478 esac 23479fi 23480 23481if test "$GCC" = yes || test "$GXX" = yes 23482then 23483 case $LDFLAGS in 23484 (*-Werror=*) 23485 test -n "$verbose" && echo " repairing LDFLAGS: $LDFLAGS" 1>&6 23486 23487echo "${as_me:-configure}:23487: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5 23488 23489 cf_temp_flags= 23490 for cf_temp_scan in $LDFLAGS 23491 do 23492 case "x$cf_temp_scan" in 23493 (x-Werror=*) 23494 23495 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS " 23496 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan" 23497 23498 ;; 23499 (*) 23500 23501 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags " 23502 cf_temp_flags="${cf_temp_flags}$cf_temp_scan" 23503 23504 ;; 23505 esac 23506 done 23507 LDFLAGS="$cf_temp_flags" 23508 test -n "$verbose" && echo " ... fixed $LDFLAGS" 1>&6 23509 23510echo "${as_me:-configure}:23510: testing ... fixed $LDFLAGS ..." 1>&5 23511 23512 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6 23513 23514echo "${as_me:-configure}:23514: testing ... extra $EXTRA_CFLAGS ..." 1>&5 23515 23516 ;; 23517 esac 23518fi 23519 23520echo "$as_me:23520: checking if you want to turn on gcc warnings" >&5 23521echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6 23522 23523# Check whether --enable-warnings or --disable-warnings was given. 23524if test "${enable_warnings+set}" = set; then 23525 enableval="$enable_warnings" 23526 test "$enableval" != yes && enableval=no 23527 if test "$enableval" != "no" ; then 23528 enable_warnings=yes 23529 else 23530 enable_warnings=no 23531 fi 23532else 23533 enableval=no 23534 enable_warnings=no 23535 23536fi; 23537echo "$as_me:23537: result: $enable_warnings" >&5 23538echo "${ECHO_T}$enable_warnings" >&6 23539if test "$enable_warnings" = "yes" 23540then 23541 23542if test "$GCC" = yes || test "$GXX" = yes 23543then 23544cat > conftest.i <<EOF 23545#ifndef GCC_PRINTF 23546#define GCC_PRINTF 0 23547#endif 23548#ifndef GCC_SCANF 23549#define GCC_SCANF 0 23550#endif 23551#ifndef GCC_NORETURN 23552#define GCC_NORETURN /* nothing */ 23553#endif 23554#ifndef GCC_UNUSED 23555#define GCC_UNUSED /* nothing */ 23556#endif 23557EOF 23558if test "$GCC" = yes 23559then 23560 { echo "$as_me:23560: checking for $CC __attribute__ directives..." >&5 23561echo "$as_me: checking for $CC __attribute__ directives..." >&6;} 23562cat > "conftest.$ac_ext" <<EOF 23563#line 23563 "${as_me:-configure}" 23564#include "confdefs.h" 23565#include "conftest.h" 23566#include "conftest.i" 23567#if GCC_PRINTF 23568#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) 23569#else 23570#define GCC_PRINTFLIKE(fmt,var) /*nothing*/ 23571#endif 23572#if GCC_SCANF 23573#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) 23574#else 23575#define GCC_SCANFLIKE(fmt,var) /*nothing*/ 23576#endif 23577extern void wow(char *,...) GCC_SCANFLIKE(1,2); 23578extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN; 23579extern void foo(void) GCC_NORETURN; 23580int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; } 23581EOF 23582 cf_printf_attribute=no 23583 cf_scanf_attribute=no 23584 for cf_attribute in scanf printf unused noreturn 23585 do 23586 23587cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 23588 23589 cf_directive="__attribute__(($cf_attribute))" 23590 echo "checking for $CC $cf_directive" 1>&5 23591 23592 case "$cf_attribute" in 23593 (printf) 23594 cf_printf_attribute=yes 23595 cat >conftest.h <<EOF 23596#define GCC_$cf_ATTRIBUTE 1 23597EOF 23598 ;; 23599 (scanf) 23600 cf_scanf_attribute=yes 23601 cat >conftest.h <<EOF 23602#define GCC_$cf_ATTRIBUTE 1 23603EOF 23604 ;; 23605 (*) 23606 cat >conftest.h <<EOF 23607#define GCC_$cf_ATTRIBUTE $cf_directive 23608EOF 23609 ;; 23610 esac 23611 23612 if { (eval echo "$as_me:23612: \"$ac_compile\"") >&5 23613 (eval $ac_compile) 2>&5 23614 ac_status=$? 23615 echo "$as_me:23615: \$? = $ac_status" >&5 23616 (exit "$ac_status"); }; then 23617 test -n "$verbose" && echo "$as_me:23617: result: ... $cf_attribute" >&5 23618echo "${ECHO_T}... $cf_attribute" >&6 23619 cat conftest.h >>confdefs.h 23620 case "$cf_attribute" in 23621 (noreturn) 23622 23623cat >>confdefs.h <<EOF 23624#define GCC_NORETURN $cf_directive 23625EOF 23626 23627 ;; 23628 (printf) 23629 cf_value='/* nothing */' 23630 if test "$cf_printf_attribute" != no ; then 23631 cf_value='__attribute__((format(printf,fmt,var)))' 23632 23633cat >>confdefs.h <<\EOF 23634#define GCC_PRINTF 1 23635EOF 23636 23637 fi 23638 23639cat >>confdefs.h <<EOF 23640#define GCC_PRINTFLIKE(fmt,var) $cf_value 23641EOF 23642 23643 ;; 23644 (scanf) 23645 cf_value='/* nothing */' 23646 if test "$cf_scanf_attribute" != no ; then 23647 cf_value='__attribute__((format(scanf,fmt,var)))' 23648 23649cat >>confdefs.h <<\EOF 23650#define GCC_SCANF 1 23651EOF 23652 23653 fi 23654 23655cat >>confdefs.h <<EOF 23656#define GCC_SCANFLIKE(fmt,var) $cf_value 23657EOF 23658 23659 ;; 23660 (unused) 23661 23662cat >>confdefs.h <<EOF 23663#define GCC_UNUSED $cf_directive 23664EOF 23665 23666 ;; 23667 esac 23668 fi 23669 done 23670else 23671 ${FGREP-fgrep} define conftest.i >>confdefs.h 23672fi 23673rm -rf ./conftest* 23674fi 23675 23676if test "x$have_x" = xyes; then 23677 23678cf_save_LIBS_CF_CONST_X_STRING="$LIBS" 23679cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS" 23680cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS" 23681LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}" 23682for cf_X_CFLAGS in $X_CFLAGS 23683do 23684 case "x$cf_X_CFLAGS" in 23685 x-[IUD]*) 23686 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS" 23687 ;; 23688 *) 23689 CFLAGS="$CFLAGS $cf_X_CFLAGS" 23690 ;; 23691 esac 23692done 23693 23694cat >"conftest.$ac_ext" <<_ACEOF 23695#line 23695 "configure" 23696#include "confdefs.h" 23697 23698#include <stdlib.h> 23699#include <X11/Intrinsic.h> 23700 23701int 23702main (void) 23703{ 23704String foo = malloc(1); (void)foo 23705 ; 23706 return 0; 23707} 23708_ACEOF 23709rm -f "conftest.$ac_objext" 23710if { (eval echo "$as_me:23710: \"$ac_compile\"") >&5 23711 (eval $ac_compile) 2>&5 23712 ac_status=$? 23713 echo "$as_me:23713: \$? = $ac_status" >&5 23714 (exit "$ac_status"); } && 23715 { ac_try='test -s "conftest.$ac_objext"' 23716 { (eval echo "$as_me:23716: \"$ac_try\"") >&5 23717 (eval $ac_try) 2>&5 23718 ac_status=$? 23719 echo "$as_me:23719: \$? = $ac_status" >&5 23720 (exit "$ac_status"); }; }; then 23721 23722echo "$as_me:23722: checking for X11/Xt const-feature" >&5 23723echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6 23724if test "${cf_cv_const_x_string+set}" = set; then 23725 echo $ECHO_N "(cached) $ECHO_C" >&6 23726else 23727 23728 cat >"conftest.$ac_ext" <<_ACEOF 23729#line 23729 "configure" 23730#include "confdefs.h" 23731 23732#define _CONST_X_STRING /* X11R7.8 (perhaps) */ 23733#undef XTSTRINGDEFINES /* X11R5 and later */ 23734#include <stdlib.h> 23735#include <X11/Intrinsic.h> 23736 23737int 23738main (void) 23739{ 23740String foo = malloc(1); *foo = 0 23741 ; 23742 return 0; 23743} 23744_ACEOF 23745rm -f "conftest.$ac_objext" 23746if { (eval echo "$as_me:23746: \"$ac_compile\"") >&5 23747 (eval $ac_compile) 2>&5 23748 ac_status=$? 23749 echo "$as_me:23749: \$? = $ac_status" >&5 23750 (exit "$ac_status"); } && 23751 { ac_try='test -s "conftest.$ac_objext"' 23752 { (eval echo "$as_me:23752: \"$ac_try\"") >&5 23753 (eval $ac_try) 2>&5 23754 ac_status=$? 23755 echo "$as_me:23755: \$? = $ac_status" >&5 23756 (exit "$ac_status"); }; }; then 23757 23758 cf_cv_const_x_string=no 23759 23760else 23761 echo "$as_me: failed program was:" >&5 23762cat "conftest.$ac_ext" >&5 23763 23764 cf_cv_const_x_string=yes 23765 23766fi 23767rm -f "conftest.$ac_objext" "conftest.$ac_ext" 23768 23769fi 23770echo "$as_me:23770: result: $cf_cv_const_x_string" >&5 23771echo "${ECHO_T}$cf_cv_const_x_string" >&6 23772 23773LIBS="$cf_save_LIBS_CF_CONST_X_STRING" 23774CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING" 23775CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING" 23776 23777case "$cf_cv_const_x_string" in 23778(no) 23779 23780 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 23781 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES" 23782 23783 ;; 23784(*) 23785 23786 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 23787 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING" 23788 23789 ;; 23790esac 23791 23792else 23793 echo "$as_me: failed program was:" >&5 23794cat "conftest.$ac_ext" >&5 23795fi 23796rm -f "conftest.$ac_objext" "conftest.$ac_ext" 23797 fi 23798cat > "conftest.$ac_ext" <<EOF 23799#line 23799 "${as_me:-configure}" 23800int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; } 23801EOF 23802if test "$INTEL_COMPILER" = yes 23803then 23804# The "-wdXXX" options suppress warnings: 23805# remark #1419: external declaration in primary source file 23806# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem) 23807# remark #1684: conversion from pointer to same-sized integral type (potential portability problem) 23808# remark #193: zero used for undefined preprocessing identifier 23809# remark #593: variable "curs_sb_left_arrow" was set but never used 23810# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits 23811# remark #869: parameter "tw" was never referenced 23812# remark #981: operands are evaluated in unspecified order 23813# warning #279: controlling expression is constant 23814 23815 { echo "$as_me:23815: checking for $CC warning options..." >&5 23816echo "$as_me: checking for $CC warning options..." >&6;} 23817 cf_save_CFLAGS="$CFLAGS" 23818 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall" 23819 for cf_opt in \ 23820 wd1419 \ 23821 wd1683 \ 23822 wd1684 \ 23823 wd193 \ 23824 wd593 \ 23825 wd279 \ 23826 wd810 \ 23827 wd869 \ 23828 wd981 23829 do 23830 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 23831 if { (eval echo "$as_me:23831: \"$ac_compile\"") >&5 23832 (eval $ac_compile) 2>&5 23833 ac_status=$? 23834 echo "$as_me:23834: \$? = $ac_status" >&5 23835 (exit "$ac_status"); }; then 23836 test -n "$verbose" && echo "$as_me:23836: result: ... -$cf_opt" >&5 23837echo "${ECHO_T}... -$cf_opt" >&6 23838 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 23839 fi 23840 done 23841 CFLAGS="$cf_save_CFLAGS" 23842elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown" 23843then 23844 { echo "$as_me:23844: checking for $CC warning options..." >&5 23845echo "$as_me: checking for $CC warning options..." >&6;} 23846 cf_save_CFLAGS="$CFLAGS" 23847 cf_warn_CONST="" 23848 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings" 23849 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs" 23850 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings= 23851 for cf_opt in W Wall \ 23852 Wbad-function-cast \ 23853 Wcast-align \ 23854 Wcast-qual \ 23855 Wdeclaration-after-statement \ 23856 Wextra \ 23857 Winline \ 23858 Wmissing-declarations \ 23859 Wmissing-prototypes \ 23860 Wnested-externs \ 23861 Wpointer-arith \ 23862 Wshadow \ 23863 Wstrict-prototypes \ 23864 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum Wno-cast-qual 23865 do 23866 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 23867 if { (eval echo "$as_me:23867: \"$ac_compile\"") >&5 23868 (eval $ac_compile) 2>&5 23869 ac_status=$? 23870 echo "$as_me:23870: \$? = $ac_status" >&5 23871 (exit "$ac_status"); }; then 23872 test -n "$verbose" && echo "$as_me:23872: result: ... -$cf_opt" >&5 23873echo "${ECHO_T}... -$cf_opt" >&6 23874 case "$cf_opt" in 23875 (Winline) 23876 case "$GCC_VERSION" in 23877 ([34].*) 23878 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 23879 23880echo "${as_me:-configure}:23880: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 23881 23882 continue;; 23883 esac 23884 ;; 23885 (Wpointer-arith) 23886 case "$GCC_VERSION" in 23887 ([12].*) 23888 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 23889 23890echo "${as_me:-configure}:23890: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 23891 23892 continue;; 23893 esac 23894 ;; 23895 esac 23896 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 23897 fi 23898 done 23899 CFLAGS="$cf_save_CFLAGS" 23900fi 23901rm -rf ./conftest* 23902 23903fi 23904 23905fi 23906 23907test "$disable_setuid" = yes && 23908cat >>confdefs.h <<\EOF 23909#define DISABLE_SETUID 1 23910EOF 23911 23912test "$disable_setgid" = yes && 23913cat >>confdefs.h <<\EOF 23914#define DISABLE_SETGID 1 23915EOF 23916 23917if test $disable_setuid = yes ; then 23918 MAY_SETUID="#" 23919 NOT_SETUID= 23920elif test $disable_setgid = yes ; then 23921 MAY_SETUID="#" 23922 NOT_SETUID= 23923else 23924 MAY_SETUID= 23925 NOT_SETUID="#" 23926fi 23927 23928### remove from CPPFLAGS the optional features we define in xtermcfg.h 23929### or other conflicting symbols that may be defined via imake: 23930for cf_def in \ 23931 __STDC__ \ 23932 ALLOWLOGGING \ 23933 ALLOWLOGFILEEXEC \ 23934 OPT_LUIT_PROG \ 23935 OPT_WIDE_CHARS \ 23936 SCROLLBAR_RIGHT \ 23937 USE_TTY_GROUP \ 23938 USE_UTEMPTER \ 23939 XRENDERFONT 23940do 23941 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-D$cf_def//` 23942done 23943 23944echo "$as_me:23944: checking if filesystem supports mixed-case filenames" >&5 23945echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6 23946if test "${cf_cv_mixedcase+set}" = set; then 23947 echo $ECHO_N "(cached) $ECHO_C" >&6 23948else 23949 23950if test "$cross_compiling" = yes ; then 23951 case "$target_alias" in 23952 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*) 23953 cf_cv_mixedcase=no 23954 ;; 23955 (*) 23956 cf_cv_mixedcase=yes 23957 ;; 23958 esac 23959else 23960 rm -f conftest CONFTEST 23961 echo test >conftest 23962 if test -f CONFTEST ; then 23963 cf_cv_mixedcase=no 23964 else 23965 cf_cv_mixedcase=yes 23966 fi 23967 rm -f conftest CONFTEST 23968fi 23969 23970fi 23971echo "$as_me:23971: result: $cf_cv_mixedcase" >&5 23972echo "${ECHO_T}$cf_cv_mixedcase" >&6 23973test "$cf_cv_mixedcase" = yes && 23974cat >>confdefs.h <<\EOF 23975#define MIXEDCASE_FILENAMES 1 23976EOF 23977 23978for ac_prog in exctags ctags 23979do 23980 # Extract the first word of "$ac_prog", so it can be a program name with args. 23981set dummy $ac_prog; ac_word=$2 23982echo "$as_me:23982: checking for $ac_word" >&5 23983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 23984if test "${ac_cv_prog_CTAGS+set}" = set; then 23985 echo $ECHO_N "(cached) $ECHO_C" >&6 23986else 23987 if test -n "$CTAGS"; then 23988 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test. 23989else 23990 ac_save_IFS=$IFS; IFS=$ac_path_separator 23991ac_dummy="$PATH" 23992for ac_dir in $ac_dummy; do 23993 IFS=$ac_save_IFS 23994 test -z "$ac_dir" && ac_dir=. 23995 $as_executable_p "$ac_dir/$ac_word" || continue 23996ac_cv_prog_CTAGS="$ac_prog" 23997echo "$as_me:23997: found $ac_dir/$ac_word" >&5 23998break 23999done 24000 24001fi 24002fi 24003CTAGS=$ac_cv_prog_CTAGS 24004if test -n "$CTAGS"; then 24005 echo "$as_me:24005: result: $CTAGS" >&5 24006echo "${ECHO_T}$CTAGS" >&6 24007else 24008 echo "$as_me:24008: result: no" >&5 24009echo "${ECHO_T}no" >&6 24010fi 24011 24012 test -n "$CTAGS" && break 24013done 24014 24015for ac_prog in exetags etags 24016do 24017 # Extract the first word of "$ac_prog", so it can be a program name with args. 24018set dummy $ac_prog; ac_word=$2 24019echo "$as_me:24019: checking for $ac_word" >&5 24020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 24021if test "${ac_cv_prog_ETAGS+set}" = set; then 24022 echo $ECHO_N "(cached) $ECHO_C" >&6 24023else 24024 if test -n "$ETAGS"; then 24025 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test. 24026else 24027 ac_save_IFS=$IFS; IFS=$ac_path_separator 24028ac_dummy="$PATH" 24029for ac_dir in $ac_dummy; do 24030 IFS=$ac_save_IFS 24031 test -z "$ac_dir" && ac_dir=. 24032 $as_executable_p "$ac_dir/$ac_word" || continue 24033ac_cv_prog_ETAGS="$ac_prog" 24034echo "$as_me:24034: found $ac_dir/$ac_word" >&5 24035break 24036done 24037 24038fi 24039fi 24040ETAGS=$ac_cv_prog_ETAGS 24041if test -n "$ETAGS"; then 24042 echo "$as_me:24042: result: $ETAGS" >&5 24043echo "${ECHO_T}$ETAGS" >&6 24044else 24045 echo "$as_me:24045: result: no" >&5 24046echo "${ECHO_T}no" >&6 24047fi 24048 24049 test -n "$ETAGS" && break 24050done 24051 24052# Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args. 24053set dummy ${CTAGS:-ctags}; ac_word=$2 24054echo "$as_me:24054: checking for $ac_word" >&5 24055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 24056if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then 24057 echo $ECHO_N "(cached) $ECHO_C" >&6 24058else 24059 if test -n "$MAKE_LOWER_TAGS"; then 24060 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test. 24061else 24062 ac_save_IFS=$IFS; IFS=$ac_path_separator 24063ac_dummy="$PATH" 24064for ac_dir in $ac_dummy; do 24065 IFS=$ac_save_IFS 24066 test -z "$ac_dir" && ac_dir=. 24067 $as_executable_p "$ac_dir/$ac_word" || continue 24068ac_cv_prog_MAKE_LOWER_TAGS="yes" 24069echo "$as_me:24069: found $ac_dir/$ac_word" >&5 24070break 24071done 24072 24073 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no" 24074fi 24075fi 24076MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS 24077if test -n "$MAKE_LOWER_TAGS"; then 24078 echo "$as_me:24078: result: $MAKE_LOWER_TAGS" >&5 24079echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6 24080else 24081 echo "$as_me:24081: result: no" >&5 24082echo "${ECHO_T}no" >&6 24083fi 24084 24085if test "$cf_cv_mixedcase" = yes ; then 24086 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args. 24087set dummy ${ETAGS:-etags}; ac_word=$2 24088echo "$as_me:24088: checking for $ac_word" >&5 24089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 24090if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then 24091 echo $ECHO_N "(cached) $ECHO_C" >&6 24092else 24093 if test -n "$MAKE_UPPER_TAGS"; then 24094 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test. 24095else 24096 ac_save_IFS=$IFS; IFS=$ac_path_separator 24097ac_dummy="$PATH" 24098for ac_dir in $ac_dummy; do 24099 IFS=$ac_save_IFS 24100 test -z "$ac_dir" && ac_dir=. 24101 $as_executable_p "$ac_dir/$ac_word" || continue 24102ac_cv_prog_MAKE_UPPER_TAGS="yes" 24103echo "$as_me:24103: found $ac_dir/$ac_word" >&5 24104break 24105done 24106 24107 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no" 24108fi 24109fi 24110MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS 24111if test -n "$MAKE_UPPER_TAGS"; then 24112 echo "$as_me:24112: result: $MAKE_UPPER_TAGS" >&5 24113echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6 24114else 24115 echo "$as_me:24115: result: no" >&5 24116echo "${ECHO_T}no" >&6 24117fi 24118 24119else 24120 MAKE_UPPER_TAGS=no 24121fi 24122 24123if test "$MAKE_UPPER_TAGS" = yes ; then 24124 MAKE_UPPER_TAGS= 24125else 24126 MAKE_UPPER_TAGS="#" 24127fi 24128 24129if test "$MAKE_LOWER_TAGS" = yes ; then 24130 MAKE_LOWER_TAGS= 24131else 24132 MAKE_LOWER_TAGS="#" 24133fi 24134 24135LD_RPATH_OPT= 24136if test "x$cf_cv_enable_rpath" != xno 24137then 24138 echo "$as_me:24138: checking for an rpath option" >&5 24139echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6 24140 case "$cf_cv_system_name" in 24141 (irix*) 24142 if test "$GCC" = yes; then 24143 LD_RPATH_OPT="-Wl,-rpath," 24144 else 24145 LD_RPATH_OPT="-rpath " 24146 fi 24147 ;; 24148 (linux*|gnu*|k*bsd*-gnu|freebsd*) 24149 LD_RPATH_OPT="-Wl,-rpath," 24150 ;; 24151 (openbsd[2-9].*|mirbsd*) 24152 LD_RPATH_OPT="-Wl,-rpath," 24153 ;; 24154 (dragonfly*) 24155 LD_RPATH_OPT="-rpath " 24156 ;; 24157 (netbsd*) 24158 LD_RPATH_OPT="-Wl,-rpath," 24159 ;; 24160 (osf*|mls+*) 24161 LD_RPATH_OPT="-rpath " 24162 ;; 24163 (solaris2*) 24164 LD_RPATH_OPT="-R" 24165 ;; 24166 (*) 24167 ;; 24168 esac 24169 echo "$as_me:24169: result: $LD_RPATH_OPT" >&5 24170echo "${ECHO_T}$LD_RPATH_OPT" >&6 24171 24172 case "x$LD_RPATH_OPT" in 24173 (x-R*) 24174 echo "$as_me:24174: checking if we need a space after rpath option" >&5 24175echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6 24176 cf_save_LIBS="$LIBS" 24177 24178cf_add_libs="$LIBS" 24179# reverse order 24180cf_add_0lib= 24181for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 24182# filter duplicates 24183for cf_add_1lib in $cf_add_0lib; do 24184 for cf_add_2lib in $cf_add_libs; do 24185 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 24186 cf_add_1lib= 24187 break 24188 fi 24189 done 24190 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 24191done 24192LIBS="$cf_add_libs" 24193 24194 cat >"conftest.$ac_ext" <<_ACEOF 24195#line 24195 "configure" 24196#include "confdefs.h" 24197 24198int 24199main (void) 24200{ 24201 24202 ; 24203 return 0; 24204} 24205_ACEOF 24206rm -f "conftest.$ac_objext" "conftest$ac_exeext" 24207if { (eval echo "$as_me:24207: \"$ac_link\"") >&5 24208 (eval $ac_link) 2>&5 24209 ac_status=$? 24210 echo "$as_me:24210: \$? = $ac_status" >&5 24211 (exit "$ac_status"); } && 24212 { ac_try='test -s "conftest$ac_exeext"' 24213 { (eval echo "$as_me:24213: \"$ac_try\"") >&5 24214 (eval $ac_try) 2>&5 24215 ac_status=$? 24216 echo "$as_me:24216: \$? = $ac_status" >&5 24217 (exit "$ac_status"); }; }; then 24218 cf_rpath_space=no 24219else 24220 echo "$as_me: failed program was:" >&5 24221cat "conftest.$ac_ext" >&5 24222cf_rpath_space=yes 24223fi 24224rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 24225 LIBS="$cf_save_LIBS" 24226 echo "$as_me:24226: result: $cf_rpath_space" >&5 24227echo "${ECHO_T}$cf_rpath_space" >&6 24228 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT " 24229 ;; 24230 esac 24231fi 24232 24233echo "$as_me:24233: checking if rpath-hack should be disabled" >&5 24234echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6 24235 24236# Check whether --enable-rpath-hack or --disable-rpath-hack was given. 24237if test "${enable_rpath_hack+set}" = set; then 24238 enableval="$enable_rpath_hack" 24239 test "$enableval" != no && enableval=yes 24240 if test "$enableval" != "yes" ; then 24241 enable_rpath_hack=no 24242 else 24243 enable_rpath_hack=yes 24244 fi 24245else 24246 enableval=yes 24247 enable_rpath_hack=yes 24248 24249fi; 24250if test "x$enable_rpath_hack" = xno; then cf_disable_rpath_hack=yes; else cf_disable_rpath_hack=no; fi 24251echo "$as_me:24251: result: $cf_disable_rpath_hack" >&5 24252echo "${ECHO_T}$cf_disable_rpath_hack" >&6 24253 24254if test "$enable_rpath_hack" = yes ; then 24255 24256echo "$as_me:24256: checking for updated LDFLAGS" >&5 24257echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6 24258if test -n "$LD_RPATH_OPT" ; then 24259 echo "$as_me:24259: result: maybe" >&5 24260echo "${ECHO_T}maybe" >&6 24261 24262 for ac_prog in ldd 24263do 24264 # Extract the first word of "$ac_prog", so it can be a program name with args. 24265set dummy $ac_prog; ac_word=$2 24266echo "$as_me:24266: checking for $ac_word" >&5 24267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 24268if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then 24269 echo $ECHO_N "(cached) $ECHO_C" >&6 24270else 24271 if test -n "$cf_ldd_prog"; then 24272 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test. 24273else 24274 ac_save_IFS=$IFS; IFS=$ac_path_separator 24275ac_dummy="$PATH" 24276for ac_dir in $ac_dummy; do 24277 IFS=$ac_save_IFS 24278 test -z "$ac_dir" && ac_dir=. 24279 $as_executable_p "$ac_dir/$ac_word" || continue 24280ac_cv_prog_cf_ldd_prog="$ac_prog" 24281echo "$as_me:24281: found $ac_dir/$ac_word" >&5 24282break 24283done 24284 24285fi 24286fi 24287cf_ldd_prog=$ac_cv_prog_cf_ldd_prog 24288if test -n "$cf_ldd_prog"; then 24289 echo "$as_me:24289: result: $cf_ldd_prog" >&5 24290echo "${ECHO_T}$cf_ldd_prog" >&6 24291else 24292 echo "$as_me:24292: result: no" >&5 24293echo "${ECHO_T}no" >&6 24294fi 24295 24296 test -n "$cf_ldd_prog" && break 24297done 24298test -n "$cf_ldd_prog" || cf_ldd_prog="no" 24299 24300 cf_rpath_list="/usr/lib /lib" 24301 if test "$cf_ldd_prog" != no 24302 then 24303 cf_rpath_oops= 24304 24305cat >"conftest.$ac_ext" <<_ACEOF 24306#line 24306 "configure" 24307#include "confdefs.h" 24308#include <stdio.h> 24309int 24310main (void) 24311{ 24312printf("Hello"); 24313 ; 24314 return 0; 24315} 24316_ACEOF 24317rm -f "conftest.$ac_objext" "conftest$ac_exeext" 24318if { (eval echo "$as_me:24318: \"$ac_link\"") >&5 24319 (eval $ac_link) 2>&5 24320 ac_status=$? 24321 echo "$as_me:24321: \$? = $ac_status" >&5 24322 (exit "$ac_status"); } && 24323 { ac_try='test -s "conftest$ac_exeext"' 24324 { (eval echo "$as_me:24324: \"$ac_try\"") >&5 24325 (eval $ac_try) 2>&5 24326 ac_status=$? 24327 echo "$as_me:24327: \$? = $ac_status" >&5 24328 (exit "$ac_status"); }; }; then 24329 cf_rpath_oops=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} ' not found' | sed -e 's% =>.*$%%' |sort | uniq` 24330 cf_rpath_list=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq` 24331else 24332 echo "$as_me: failed program was:" >&5 24333cat "conftest.$ac_ext" >&5 24334fi 24335rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 24336 24337 # If we passed the link-test, but get a "not found" on a given library, 24338 # this could be due to inept reconfiguration of gcc to make it only 24339 # partly honor /usr/local/lib (or whatever). Sometimes this behavior 24340 # is intentional, e.g., installing gcc in /usr/bin and suppressing the 24341 # /usr/local libraries. 24342 if test -n "$cf_rpath_oops" 24343 then 24344 for cf_rpath_src in $cf_rpath_oops 24345 do 24346 for cf_rpath_dir in \ 24347 /usr/local \ 24348 /usr/pkg \ 24349 /opt/sfw 24350 do 24351 if test -f "$cf_rpath_dir/lib/$cf_rpath_src" 24352 then 24353 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6 24354 24355echo "${as_me:-configure}:24355: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5 24356 24357 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib" 24358 break 24359 fi 24360 done 24361 done 24362 fi 24363 fi 24364 24365 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6 24366 24367echo "${as_me:-configure}:24367: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5 24368 24369test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6 24370 24371echo "${as_me:-configure}:24371: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5 24372 24373cf_rpath_dst= 24374for cf_rpath_src in $LDFLAGS 24375do 24376 case "$cf_rpath_src" in 24377 (-L*) 24378 24379 # check if this refers to a directory which we will ignore 24380 cf_rpath_skip=no 24381 if test -n "$cf_rpath_list" 24382 then 24383 for cf_rpath_item in $cf_rpath_list 24384 do 24385 if test "x$cf_rpath_src" = "x-L$cf_rpath_item" 24386 then 24387 cf_rpath_skip=yes 24388 break 24389 fi 24390 done 24391 fi 24392 24393 if test "$cf_rpath_skip" = no 24394 then 24395 # transform the option 24396 if test "$LD_RPATH_OPT" = "-R " ; then 24397 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"` 24398 else 24399 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"` 24400 fi 24401 24402 # if we have not already added this, add it now 24403 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"` 24404 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS" 24405 then 24406 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6 24407 24408echo "${as_me:-configure}:24408: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5 24409 24410 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS" 24411 fi 24412 fi 24413 ;; 24414 esac 24415 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src" 24416done 24417LDFLAGS=$cf_rpath_dst 24418 24419test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6 24420 24421echo "${as_me:-configure}:24421: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5 24422 24423test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6 24424 24425echo "${as_me:-configure}:24425: testing ...checking LIBS $LIBS ..." 1>&5 24426 24427cf_rpath_dst= 24428for cf_rpath_src in $LIBS 24429do 24430 case "$cf_rpath_src" in 24431 (-L*) 24432 24433 # check if this refers to a directory which we will ignore 24434 cf_rpath_skip=no 24435 if test -n "$cf_rpath_list" 24436 then 24437 for cf_rpath_item in $cf_rpath_list 24438 do 24439 if test "x$cf_rpath_src" = "x-L$cf_rpath_item" 24440 then 24441 cf_rpath_skip=yes 24442 break 24443 fi 24444 done 24445 fi 24446 24447 if test "$cf_rpath_skip" = no 24448 then 24449 # transform the option 24450 if test "$LD_RPATH_OPT" = "-R " ; then 24451 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"` 24452 else 24453 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"` 24454 fi 24455 24456 # if we have not already added this, add it now 24457 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"` 24458 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS" 24459 then 24460 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6 24461 24462echo "${as_me:-configure}:24462: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5 24463 24464 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS" 24465 fi 24466 fi 24467 ;; 24468 esac 24469 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src" 24470done 24471LIBS=$cf_rpath_dst 24472 24473test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6 24474 24475echo "${as_me:-configure}:24475: testing ...checked LIBS $LIBS ..." 1>&5 24476 24477 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6 24478 24479echo "${as_me:-configure}:24479: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5 24480 24481else 24482 echo "$as_me:24482: result: no" >&5 24483echo "${ECHO_T}no" >&6 24484fi 24485 24486fi 24487 24488# Force plink.sh to not trim pcre's libraries, which have the same symbol 24489# names as the system regexp. 24490if test "$with_pcre" != no 24491then 24492 LIBS=`echo "$LIBS" | sed -e 's/-lpcre/-kpcre/g'` 24493fi 24494 24495### output xtermcfg.h, etc 24496ac_config_files="$ac_config_files Makefile df-install minstall:minstall.in" 24497 24498cat >confcache <<\_ACEOF 24499# This file is a shell script that caches the results of configure 24500# tests run on this system so they can be shared between configure 24501# scripts and configure runs, see configure's option --config-cache. 24502# It is not useful on other systems. If it contains results you don't 24503# want to keep, you may remove or edit it. 24504# 24505# config.status only pays attention to the cache file if you give it 24506# the --recheck option to rerun configure. 24507# 24508# `ac_cv_env_foo' variables (set or unset) will be overriden when 24509# loading this file, other *unset* `ac_cv_foo' will be assigned the 24510# following values. 24511 24512_ACEOF 24513 24514# The following way of writing the cache mishandles newlines in values, 24515# but we know of no workaround that is simple, portable, and efficient. 24516# So, don't put newlines in cache variables' values. 24517# Ultrix sh set writes to stderr and can't be redirected directly, 24518# and sets the high bit in the cache file unless we assign to the vars. 24519{ 24520 (set) 2>&1 | 24521 case `(ac_space=' '; set | grep ac_space) 2>&1` in 24522 *ac_space=\ *) 24523 # `set' does not quote correctly, so add quotes (double-quote 24524 # substitution turns \\\\ into \\, and sed turns \\ into \). 24525 sed -n \ 24526 "s/'/'\\\\''/g; 24527 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 24528 ;; 24529 *) 24530 # `set' quotes correctly as required by POSIX, so do not add quotes. 24531 sed -n \ 24532 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 24533 ;; 24534 esac; 24535} | 24536 sed ' 24537 t clear 24538 : clear 24539 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 24540 t end 24541 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 24542 : end' >>confcache 24543if cmp -s $cache_file confcache; then :; else 24544 if test -w $cache_file; then 24545 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 24546 cat confcache >$cache_file 24547 else 24548 echo "not updating unwritable cache $cache_file" 24549 fi 24550fi 24551rm -f confcache 24552 24553test "x$prefix" = xNONE && prefix=$ac_default_prefix 24554# Let make expand exec_prefix. 24555test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 24556 24557# VPATH may cause trouble with some makes, so we remove $(srcdir), 24558# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 24559# trailing colons and then remove the whole line if VPATH becomes empty 24560# (actually we leave an empty line to preserve line numbers). 24561if test "x$srcdir" = x.; then 24562 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 24563s/:*\$(srcdir):*/:/; 24564s/:*\${srcdir}:*/:/; 24565s/:*@srcdir@:*/:/; 24566s/^\([^=]*=[ ]*\):*/\1/; 24567s/:*$//; 24568s/^[^=]*=[ ]*$//; 24569}' 24570fi 24571 24572DEFS=-DHAVE_CONFIG_H 24573 24574: "${CONFIG_STATUS=./config.status}" 24575ac_clean_files_save=$ac_clean_files 24576ac_clean_files="$ac_clean_files $CONFIG_STATUS" 24577{ echo "$as_me:24577: creating $CONFIG_STATUS" >&5 24578echo "$as_me: creating $CONFIG_STATUS" >&6;} 24579cat >"$CONFIG_STATUS" <<_ACEOF 24580#! $SHELL 24581# Generated automatically by configure. 24582# Run this file to recreate the current configuration. 24583# Compiler output produced by configure, useful for debugging 24584# configure, is in config.log if it exists. 24585 24586debug=false 24587SHELL=\${CONFIG_SHELL-$SHELL} 24588ac_cs_invocation="\$0 \$@" 24589 24590CLICOLOR_FORCE= GREP_OPTIONS= 24591unset CLICOLOR_FORCE GREP_OPTIONS 24592_ACEOF 24593 24594cat >>"$CONFIG_STATUS" <<\_ACEOF 24595# Be Bourne compatible 24596if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 24597 emulate sh 24598 NULLCMD=: 24599elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 24600 set -o posix 24601fi 24602 24603# Name of the executable. 24604as_me=`echo "$0" |sed 's,.*[\\/],,'` 24605 24606if expr a : '\(a\)' >/dev/null 2>&1; then 24607 as_expr=expr 24608else 24609 as_expr=false 24610fi 24611 24612rm -f conf$$ conf$$.exe conf$$.file 24613echo >conf$$.file 24614if ln -s conf$$.file conf$$ 2>/dev/null; then 24615 # We could just check for DJGPP; but this test a) works b) is more generic 24616 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 24617 if test -f conf$$.exe; then 24618 # Don't use ln at all; we don't have any links 24619 as_ln_s='cp -p' 24620 else 24621 as_ln_s='ln -s' 24622 fi 24623elif ln conf$$.file conf$$ 2>/dev/null; then 24624 as_ln_s=ln 24625else 24626 as_ln_s='cp -p' 24627fi 24628rm -f conf$$ conf$$.exe conf$$.file 24629 24630as_executable_p="test -f" 24631 24632# Support unset when possible. 24633if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 24634 as_unset="unset" 24635else 24636 as_unset="false" 24637fi 24638 24639# NLS nuisances. 24640$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 24641$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 24642$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 24643$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 24644$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 24645$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 24646$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 24647$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 24648 24649# IFS 24650# We need space, tab and new line, in precisely that order. 24651as_nl=' 24652' 24653IFS=" $as_nl" 24654 24655# CDPATH. 24656$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 24657 24658exec 6>&1 24659 24660_ACEOF 24661 24662# Files that config.status was made for. 24663if test -n "$ac_config_files"; then 24664 echo "config_files=\"$ac_config_files\"" >>"$CONFIG_STATUS" 24665fi 24666 24667if test -n "$ac_config_headers"; then 24668 echo "config_headers=\"$ac_config_headers\"" >>"$CONFIG_STATUS" 24669fi 24670 24671if test -n "$ac_config_links"; then 24672 echo "config_links=\"$ac_config_links\"" >>"$CONFIG_STATUS" 24673fi 24674 24675if test -n "$ac_config_commands"; then 24676 echo "config_commands=\"$ac_config_commands\"" >>"$CONFIG_STATUS" 24677fi 24678 24679cat >>"$CONFIG_STATUS" <<\EOF 24680 24681ac_cs_usage="\ 24682\`$as_me' instantiates files from templates according to the 24683current configuration. 24684 24685Usage: $0 [OPTIONS] [FILE]... 24686 24687 -h, --help print this help, then exit 24688 -V, --version print version number, then exit 24689 -d, --debug don't remove temporary files 24690 --recheck update $as_me by reconfiguring in the same conditions 24691 --file=FILE[:TEMPLATE] 24692 instantiate the configuration file FILE 24693 --header=FILE[:TEMPLATE] 24694 instantiate the configuration header FILE 24695 24696Configuration files: 24697$config_files 24698 24699Configuration headers: 24700$config_headers 24701 24702Report bugs to <dickey@invisible-island.net>." 24703EOF 24704 24705cat >>"$CONFIG_STATUS" <<EOF 24706ac_cs_version="\\ 24707config.status 24708configured by $0, generated by GNU Autoconf 2.52.20210105, 24709 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 24710 24711Copyright 2003-2020,2021 Thomas E. Dickey 24712Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 24713Free Software Foundation, Inc. 24714This config.status script is free software; the Free Software Foundation 24715gives unlimited permission to copy, distribute and modify it." 24716srcdir="$srcdir" 24717INSTALL="$INSTALL" 24718EOF 24719 24720cat >>"$CONFIG_STATUS" <<\EOF 24721# If no file are specified by the user, then we need to provide default 24722# value. By we need to know if files were specified by the user. 24723ac_need_defaults=: 24724while test $# != 0 24725do 24726 case $1 in 24727 --*=*) 24728 ac_option=`expr "x$1" : 'x\([^=]*\)='` 24729 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 24730 shift 24731 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 24732 shift 24733 ;; 24734 -*);; 24735 *) # This is not an option, so the user has probably given explicit 24736 # arguments. 24737 ac_need_defaults=false;; 24738 esac 24739 24740 case $1 in 24741 # Handling of the options. 24742EOF 24743cat >>"$CONFIG_STATUS" <<EOF 24744 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 24745 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 24746 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 24747EOF 24748cat >>"$CONFIG_STATUS" <<\EOF 24749 --version | --vers* | -V ) 24750 echo "$ac_cs_version"; exit 0 ;; 24751 --he | --h) 24752 # Conflict between --help and --header 24753 { { echo "$as_me:24753: error: ambiguous option: $1 24754Try \`$0 --help' for more information." >&5 24755echo "$as_me: error: ambiguous option: $1 24756Try \`$0 --help' for more information." >&2;} 24757 { (exit 1); exit 1; }; };; 24758 --help | --hel | -h ) 24759 echo "$ac_cs_usage"; exit 0 ;; 24760 --debug | --d* | -d ) 24761 debug=: ;; 24762 --file | --fil | --fi | --f ) 24763 shift 24764 CONFIG_FILES="$CONFIG_FILES $1" 24765 ac_need_defaults=false;; 24766 --header | --heade | --head | --hea ) 24767 shift 24768 CONFIG_HEADERS="$CONFIG_HEADERS $1" 24769 ac_need_defaults=false;; 24770 24771 # This is an error. 24772 -*) { { echo "$as_me:24772: error: unrecognized option: $1 24773Try \`$0 --help' for more information." >&5 24774echo "$as_me: error: unrecognized option: $1 24775Try \`$0 --help' for more information." >&2;} 24776 { (exit 1); exit 1; }; } ;; 24777 24778 *) ac_config_targets="$ac_config_targets $1" ;; 24779 24780 esac 24781 shift 24782done 24783 24784exec 5>>config.log 24785cat >&5 << _ACEOF 24786 24787## ----------------------- ## 24788## Running config.status. ## 24789## ----------------------- ## 24790 24791This file was extended by $as_me 2.52.20210105, executed with 24792 CONFIG_FILES = $CONFIG_FILES 24793 CONFIG_HEADERS = $CONFIG_HEADERS 24794 CONFIG_LINKS = $CONFIG_LINKS 24795 CONFIG_COMMANDS = $CONFIG_COMMANDS 24796 > "$ac_cs_invocation" 24797on `(hostname || uname -n) 2>/dev/null | sed 1q` 24798 24799_ACEOF 24800EOF 24801 24802cat >>"$CONFIG_STATUS" <<\EOF 24803for ac_config_target in $ac_config_targets 24804do 24805 case "$ac_config_target" in 24806 # Handling of arguments. 24807 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 24808 "df-install" ) CONFIG_FILES="$CONFIG_FILES df-install" ;; 24809 "minstall" ) CONFIG_FILES="$CONFIG_FILES minstall:minstall.in" ;; 24810 "xtermcfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS xtermcfg.h:xtermcfg.hin" ;; 24811 *) { { echo "$as_me:24811: error: invalid argument: $ac_config_target" >&5 24812echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 24813 { (exit 1); exit 1; }; };; 24814 esac 24815done 24816 24817# If the user did not use the arguments to specify the items to instantiate, 24818# then the envvar interface is used. Set only those that are not. 24819# We use the long form for the default assignment because of an extremely 24820# bizarre bug on SunOS 4.1.3. 24821if "$ac_need_defaults"; then 24822 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 24823 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 24824fi 24825 24826# Create a temporary directory, and hook for its removal unless debugging. 24827$debug || 24828{ 24829 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 24830 trap '{ (exit 1); exit 1; }' 1 2 13 15 24831} 24832 24833# Create a (secure) tmp directory for tmp files. 24834: ${TMPDIR=/tmp} 24835{ 24836 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 24837 test -n "$tmp" && test -d "$tmp" 24838} || 24839{ 24840 tmp=$TMPDIR/cs$$-$RANDOM 24841 (umask 077 && mkdir $tmp) 24842} || 24843{ 24844 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 24845 { (exit 1); exit 1; } 24846} 24847 24848EOF 24849 24850cat >>"$CONFIG_STATUS" <<EOF 24851 24852# 24853# CONFIG_FILES section. 24854# 24855 24856# No need to generate the scripts if there are no CONFIG_FILES. 24857# This happens for instance when ./config.status config.h 24858if test -n "\$CONFIG_FILES"; then 24859 # Protect against being on the right side of a sed subst in config.status. 24860 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 24861 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 24862s,@SHELL@,$SHELL,;t t 24863s,@exec_prefix@,$exec_prefix,;t t 24864s,@prefix@,$prefix,;t t 24865s,@program_transform_name@,$program_transform_name,;t t 24866s,@bindir@,$bindir,;t t 24867s,@sbindir@,$sbindir,;t t 24868s,@libexecdir@,$libexecdir,;t t 24869s,@datarootdir@,$datarootdir,;t t 24870s,@datadir@,$datadir,;t t 24871s,@sysconfdir@,$sysconfdir,;t t 24872s,@sharedstatedir@,$sharedstatedir,;t t 24873s,@localstatedir@,$localstatedir,;t t 24874s,@runstatedir@,$runstatedir,;t t 24875s,@libdir@,$libdir,;t t 24876s,@includedir@,$includedir,;t t 24877s,@oldincludedir@,$oldincludedir,;t t 24878s,@infodir@,$infodir,;t t 24879s,@mandir@,$mandir,;t t 24880s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 24881s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 24882s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 24883s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 24884s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 24885s,@build_alias@,$build_alias,;t t 24886s,@host_alias@,$host_alias,;t t 24887s,@target_alias@,$target_alias,;t t 24888s,@ECHO_C@,$ECHO_C,;t t 24889s,@ECHO_N@,$ECHO_N,;t t 24890s,@ECHO_T@,$ECHO_T,;t t 24891s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 24892s,@DEFS@,$DEFS,;t t 24893s,@LIBS@,$LIBS,;t t 24894s,@build@,$build,;t t 24895s,@build_cpu@,$build_cpu,;t t 24896s,@build_vendor@,$build_vendor,;t t 24897s,@build_os@,$build_os,;t t 24898s,@host@,$host,;t t 24899s,@host_cpu@,$host_cpu,;t t 24900s,@host_vendor@,$host_vendor,;t t 24901s,@host_os@,$host_os,;t t 24902s,@CC@,$CC,;t t 24903s,@CFLAGS@,$CFLAGS,;t t 24904s,@LDFLAGS@,$LDFLAGS,;t t 24905s,@CPPFLAGS@,$CPPFLAGS,;t t 24906s,@ac_ct_CC@,$ac_ct_CC,;t t 24907s,@EXEEXT@,$EXEEXT,;t t 24908s,@OBJEXT@,$OBJEXT,;t t 24909s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t 24910s,@CPP@,$CPP,;t t 24911s,@GREP@,$GREP,;t t 24912s,@EGREP@,$EGREP,;t t 24913s,@AWK@,$AWK,;t t 24914s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 24915s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 24916s,@INSTALL_DATA@,$INSTALL_DATA,;t t 24917s,@LN_S@,$LN_S,;t t 24918s,@LINT@,$LINT,;t t 24919s,@LINT_OPTS@,$LINT_OPTS,;t t 24920s,@APP_CLASS@,$APP_CLASS,;t t 24921s,@APPSDIR@,$APPSDIR,;t t 24922s,@no_appsdir@,$no_appsdir,;t t 24923s,@ICON_NAME@,$ICON_NAME,;t t 24924s,@ICON_SYMLINK@,$ICON_SYMLINK,;t t 24925s,@PIXMAPDIR@,$PIXMAPDIR,;t t 24926s,@no_pixmapdir@,$no_pixmapdir,;t t 24927s,@ICONDIR@,$ICONDIR,;t t 24928s,@no_icondir@,$no_icondir,;t t 24929s,@ICON_FORMAT@,$ICON_FORMAT,;t t 24930s,@ICON_THEME@,$ICON_THEME,;t t 24931s,@ICON_LIST@,$ICON_LIST,;t t 24932s,@desktop_utils@,$desktop_utils,;t t 24933s,@DESKTOP_FLAGS@,$DESKTOP_FLAGS,;t t 24934s,@DESKTOP_CATEGORY@,$DESKTOP_CATEGORY,;t t 24935s,@XTERM_PATH@,$XTERM_PATH,;t t 24936s,@XTERM_SYMLINK@,$XTERM_SYMLINK,;t t 24937s,@SINSTALL_OPTS@,$SINSTALL_OPTS,;t t 24938s,@X_CFLAGS@,$X_CFLAGS,;t t 24939s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 24940s,@X_LIBS@,$X_LIBS,;t t 24941s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 24942s,@PKG_CONFIG@,$PKG_CONFIG,;t t 24943s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t 24944s,@ICON_SUFFIX@,$ICON_SUFFIX,;t t 24945s,@IMAKE@,$IMAKE,;t t 24946s,@IMAKE_CFLAGS@,$IMAKE_CFLAGS,;t t 24947s,@IMAKE_LOADFLAGS@,$IMAKE_LOADFLAGS,;t t 24948s,@GROFF_PATH@,$GROFF_PATH,;t t 24949s,@NROFF_PATH@,$NROFF_PATH,;t t 24950s,@TBL_PATH@,$TBL_PATH,;t t 24951s,@GROFF_NOTE@,$GROFF_NOTE,;t t 24952s,@NROFF_NOTE@,$NROFF_NOTE,;t t 24953s,@FGREP@,$FGREP,;t t 24954s,@cf_man2html@,$cf_man2html,;t t 24955s,@MAN2HTML_NOTE@,$MAN2HTML_NOTE,;t t 24956s,@MAN2HTML_PATH@,$MAN2HTML_PATH,;t t 24957s,@MAN2HTML_TEMP@,$MAN2HTML_TEMP,;t t 24958s,@default_termid@,$default_termid,;t t 24959s,@default_TERM@,$default_TERM,;t t 24960s,@backarrow_is_bs@,$backarrow_is_bs,;t t 24961s,@backarrow_is_erase@,$backarrow_is_erase,;t t 24962s,@delete_is_del@,$delete_is_del,;t t 24963s,@initial_erase@,$initial_erase,;t t 24964s,@alt_sends_esc@,$alt_sends_esc,;t t 24965s,@meta_sends_esc@,$meta_sends_esc,;t t 24966s,@cf_tic_prog@,$cf_tic_prog,;t t 24967s,@no_ticprog@,$no_ticprog,;t t 24968s,@TERMINFO_DIR@,$TERMINFO_DIR,;t t 24969s,@SET_TERMINFO@,$SET_TERMINFO,;t t 24970s,@double_buffer@,$double_buffer,;t t 24971s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t 24972s,@FREETYPE_OLD_CONFIG@,$FREETYPE_OLD_CONFIG,;t t 24973s,@FREETYPE_XFT_CONFIG@,$FREETYPE_XFT_CONFIG,;t t 24974s,@HAVE_TYPE_FCCHAR32@,$HAVE_TYPE_FCCHAR32,;t t 24975s,@HAVE_TYPE_XFTCHARSPEC@,$HAVE_TYPE_XFTCHARSPEC,;t t 24976s,@LUIT@,$LUIT,;t t 24977s,@ECHO_LT@,$ECHO_LT,;t t 24978s,@ECHO_LD@,$ECHO_LD,;t t 24979s,@RULE_CC@,$RULE_CC,;t t 24980s,@SHOW_CC@,$SHOW_CC,;t t 24981s,@ECHO_CC@,$ECHO_CC,;t t 24982s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t 24983s,@CHARPROC_DEPS@,$CHARPROC_DEPS,;t t 24984s,@EXTRAHDRS@,$EXTRAHDRS,;t t 24985s,@EXTRASRCS@,$EXTRASRCS,;t t 24986s,@EXTRAOBJS@,$EXTRAOBJS,;t t 24987s,@MAY_SETUID@,$MAY_SETUID,;t t 24988s,@NOT_SETUID@,$NOT_SETUID,;t t 24989s,@CTAGS@,$CTAGS,;t t 24990s,@ETAGS@,$ETAGS,;t t 24991s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t 24992s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t 24993s,@cf_ldd_prog@,$cf_ldd_prog,;t t 24994s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t 24995CEOF 24996 24997EOF 24998 24999 cat >>"$CONFIG_STATUS" <<\EOF 25000 # Split the substitutions into bite-sized pieces for seds with 25001 # small command number limits, like on Digital OSF/1 and HP-UX. 25002 ac_max_sed_lines=48 25003 ac_sed_frag=1 # Number of current file. 25004 ac_beg=1 # First line for current file. 25005 ac_end=$ac_max_sed_lines # Line after last line for current file. 25006 ac_more_lines=: 25007 ac_sed_cmds= 25008 while "$ac_more_lines"; do 25009 if test "$ac_beg" -gt 1; then 25010 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 25011 else 25012 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 25013 fi 25014 if test ! -s $tmp/subs.frag; then 25015 ac_more_lines=false 25016 else 25017 # The purpose of the label and of the branching condition is to 25018 # speed up the sed processing (if there are no `@' at all, there 25019 # is no need to browse any of the substitutions). 25020 # These are the two extra sed commands mentioned above. 25021 (echo ':t 25022 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 25023 # It is possible to make a multiline substitution using escaped newlines. 25024 # Ensure that we do not split the substitution between script fragments. 25025 ac_BEG=$ac_end 25026 ac_END=`expr "$ac_end" + "$ac_max_sed_lines"` 25027 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next 25028 if test -s $tmp/subs.next; then 25029 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit 25030 if test ! -s $tmp/subs.edit; then 25031 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit 25032 if test ! -s $tmp/subs.edit; then 25033 if test "$ac_beg" -gt 1; then 25034 ac_end=`expr "$ac_end" - 1` 25035 continue 25036 fi 25037 fi 25038 fi 25039 fi 25040 25041 if test -z "$ac_sed_cmds"; then 25042 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 25043 else 25044 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 25045 fi 25046 ac_sed_frag=`expr "$ac_sed_frag" + 1` 25047 ac_beg=$ac_end 25048 ac_end=`expr "$ac_end" + "$ac_max_sed_lines"` 25049 fi 25050 done 25051 if test -z "$ac_sed_cmds"; then 25052 ac_sed_cmds=cat 25053 fi 25054fi # test -n "$CONFIG_FILES" 25055 25056EOF 25057cat >>"$CONFIG_STATUS" <<\EOF 25058for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 25059 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 25060 case "$ac_file" in 25061 - | *:- | *:-:* ) # input from stdin 25062 cat >$tmp/stdin 25063 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 25064 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 25065 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 25066 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 25067 * ) ac_file_in=$ac_file.in ;; 25068 esac 25069 25070 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 25071 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25072 X"$ac_file" : 'X\(//\)[^/]' \| \ 25073 X"$ac_file" : 'X\(//\)$' \| \ 25074 X"$ac_file" : 'X\(/\)' \| \ 25075 . : '\(.\)' 2>/dev/null || 25076echo X"$ac_file" | 25077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 25078 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 25079 /^X\(\/\/\)$/{ s//\1/; q; } 25080 /^X\(\/\).*/{ s//\1/; q; } 25081 s/.*/./; q'` 25082 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 25083 { case "$ac_dir" in 25084 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 25085 *) as_incr_dir=.;; 25086esac 25087as_dummy="$ac_dir" 25088for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 25089 case $as_mkdir_dir in 25090 # Skip DOS drivespec 25091 ?:) as_incr_dir=$as_mkdir_dir ;; 25092 *) 25093 as_incr_dir=$as_incr_dir/$as_mkdir_dir 25094 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 25095 ;; 25096 esac 25097done; } 25098 25099 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 25100 # A "../" for each directory in $ac_dir_suffix. 25101 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 25102 else 25103 ac_dir_suffix= ac_dots= 25104 fi 25105 25106 case "$srcdir" in 25107 .) ac_srcdir=. 25108 if test -z "$ac_dots"; then 25109 ac_top_srcdir=. 25110 else 25111 ac_top_srcdir=`echo "$ac_dots" | sed 's,/$,,'` 25112 fi ;; 25113 [\\/]* | ?:[\\/]* ) 25114 ac_srcdir="$srcdir$ac_dir_suffix"; 25115 ac_top_srcdir="$srcdir" ;; 25116 *) # Relative path. 25117 ac_srcdir="$ac_dots$srcdir$ac_dir_suffix" 25118 ac_top_srcdir="$ac_dots$srcdir" ;; 25119 esac 25120 25121 case $INSTALL in 25122 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 25123 *) ac_INSTALL=$ac_dots$INSTALL ;; 25124 esac 25125 25126 if test x"$ac_file" != x-; then 25127 { echo "$as_me:25127: creating $ac_file" >&5 25128echo "$as_me: creating $ac_file" >&6;} 25129 rm -f "$ac_file" 25130 fi 25131 # Let's still pretend it is `configure' which instantiates (i.e., don't 25132 # use $as_me), people would be surprised to read: 25133 # /* config.h. Generated automatically by config.status. */ 25134 configure_input="Generated automatically from `echo $ac_file_in | 25135 sed 's,.*/,,'` by configure." 25136 25137 # First look for the input files in the build tree, otherwise in the 25138 # src tree. 25139 ac_file_inputs=`IFS=: 25140 for f in $ac_file_in; do 25141 case $f in 25142 -) echo $tmp/stdin ;; 25143 [\\/$]*) 25144 # Absolute (can't be DOS-style, as IFS=:) 25145 test -f "$f" || { { echo "$as_me:25145: error: cannot find input file: $f" >&5 25146echo "$as_me: error: cannot find input file: $f" >&2;} 25147 { (exit 1); exit 1; }; } 25148 echo $f;; 25149 *) # Relative 25150 if test -f "$f"; then 25151 # Build tree 25152 echo $f 25153 elif test -f "$srcdir/$f"; then 25154 # Source tree 25155 echo "$srcdir/$f" 25156 else 25157 # /dev/null tree 25158 { { echo "$as_me:25158: error: cannot find input file: $f" >&5 25159echo "$as_me: error: cannot find input file: $f" >&2;} 25160 { (exit 1); exit 1; }; } 25161 fi;; 25162 esac 25163 done` || { (exit 1); exit 1; } 25164EOF 25165cat >>"$CONFIG_STATUS" <<\EOF 25166 ac_warn_datarootdir=no 25167 if test x"$ac_file" != x-; then 25168 for ac_item in $ac_file_inputs 25169 do 25170 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' "$ac_item"` 25171 if test -n "$ac_seen"; then 25172 ac_used=`grep '@datarootdir@' "$ac_item"` 25173 if test -z "$ac_used"; then 25174 { echo "$as_me:25174: WARNING: datarootdir was used implicitly but not set: 25175$ac_seen" >&5 25176echo "$as_me: WARNING: datarootdir was used implicitly but not set: 25177$ac_seen" >&2;} 25178 ac_warn_datarootdir=yes 25179 fi 25180 fi 25181 ac_seen=`grep '${datarootdir}' "$ac_item"` 25182 if test -n "$ac_seen"; then 25183 { echo "$as_me:25183: WARNING: datarootdir was used explicitly but not set: 25184$ac_seen" >&5 25185echo "$as_me: WARNING: datarootdir was used explicitly but not set: 25186$ac_seen" >&2;} 25187 ac_warn_datarootdir=yes 25188 fi 25189 done 25190 fi 25191 25192if test "x$ac_warn_datarootdir" = xyes; then 25193 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'" 25194fi 25195 25196EOF 25197cat >>"$CONFIG_STATUS" <<EOF 25198 sed "$ac_vpsub 25199$extrasub 25200EOF 25201cat >>"$CONFIG_STATUS" <<\EOF 25202:t 25203/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 25204s,@configure_input@,$configure_input,;t t 25205s,@srcdir@,$ac_srcdir,;t t 25206s,@top_srcdir@,$ac_top_srcdir,;t t 25207s,@INSTALL@,$ac_INSTALL,;t t 25208" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 25209 rm -f $tmp/stdin 25210 if test x"$ac_file" != x-; then 25211 cp "$tmp/out" "$ac_file" 25212 25213 for ac_name in prefix exec_prefix datarootdir 25214 do 25215 ac_seen=`${FGREP-fgrep} -n '${'$ac_name'[:=].*}' "$ac_file"` 25216 if test -n "$ac_seen"; then 25217 ac_init=`${EGREP-egrep} '[ ]*'$ac_name'[ ]*=' "$ac_file"` 25218 if test -z "$ac_init"; then 25219 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'` 25220 { echo "$as_me:25220: WARNING: Variable $ac_name is used but was not set: 25221$ac_seen" >&5 25222echo "$as_me: WARNING: Variable $ac_name is used but was not set: 25223$ac_seen" >&2;} 25224 fi 25225 fi 25226 done 25227 ${EGREP-egrep} -n '@[a-z_][a-z_0-9]+@' "$ac_file" >$tmp/out 25228 ${EGREP-egrep} -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>$tmp/out 25229 if test -s $tmp/out; then 25230 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out` 25231 { echo "$as_me:25231: WARNING: Some variables may not be substituted: 25232$ac_seen" >&5 25233echo "$as_me: WARNING: Some variables may not be substituted: 25234$ac_seen" >&2;} 25235 fi 25236 else 25237 cat $tmp/out 25238 fi 25239 rm -f $tmp/out 25240 25241done 25242EOF 25243cat >>"$CONFIG_STATUS" <<\EOF 25244 25245# 25246# CONFIG_HEADER section. 25247# 25248 25249# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 25250# NAME is the cpp macro being defined and VALUE is the value it is being given. 25251# 25252# ac_d sets the value in "#define NAME VALUE" lines. 25253ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 25254ac_dB='[ ].*$,\1#\2' 25255ac_dC=' ' 25256ac_dD=',;t' 25257# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 25258ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 25259ac_iB='\([ ]\),\1#\2define\3' 25260ac_iC=' ' 25261ac_iD='\4,;t' 25262# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 25263ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 25264ac_uB='$,\1#\2define\3' 25265ac_uC=' ' 25266ac_uD=',;t' 25267 25268for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 25269 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 25270 case "$ac_file" in 25271 - | *:- | *:-:* ) # input from stdin 25272 cat >$tmp/stdin 25273 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 25274 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 25275 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 25276 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 25277 * ) ac_file_in=$ac_file.in ;; 25278 esac 25279 25280 test x"$ac_file" != x- && { echo "$as_me:25280: creating $ac_file" >&5 25281echo "$as_me: creating $ac_file" >&6;} 25282 25283 # First look for the input files in the build tree, otherwise in the 25284 # src tree. 25285 ac_file_inputs=`IFS=: 25286 for f in $ac_file_in; do 25287 case $f in 25288 -) echo $tmp/stdin ;; 25289 [\\/$]*) 25290 # Absolute (can't be DOS-style, as IFS=:) 25291 test -f "$f" || { { echo "$as_me:25291: error: cannot find input file: $f" >&5 25292echo "$as_me: error: cannot find input file: $f" >&2;} 25293 { (exit 1); exit 1; }; } 25294 echo $f;; 25295 *) # Relative 25296 if test -f "$f"; then 25297 # Build tree 25298 echo $f 25299 elif test -f "$srcdir/$f"; then 25300 # Source tree 25301 echo "$srcdir/$f" 25302 else 25303 # /dev/null tree 25304 { { echo "$as_me:25304: error: cannot find input file: $f" >&5 25305echo "$as_me: error: cannot find input file: $f" >&2;} 25306 { (exit 1); exit 1; }; } 25307 fi;; 25308 esac 25309 done` || { (exit 1); exit 1; } 25310 # Remove the trailing spaces. 25311 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 25312 25313EOF 25314 25315# Transform confdefs.h into two sed scripts, `conftest.defines' and 25316# `conftest.undefs', that substitutes the proper values into 25317# config.h.in to produce config.h. The first handles `#define' 25318# templates, and the second `#undef' templates. 25319# And first: Protect against being on the right side of a sed subst in 25320# config.status. Protect against being in an unquoted here document 25321# in config.status. 25322rm -f conftest.defines conftest.undefs 25323# Using a here document instead of a string reduces the quoting nightmare. 25324# Putting comments in sed scripts is not portable. 25325# 25326# `end' is used to avoid that the second main sed command (meant for 25327# 0-ary CPP macros) applies to n-ary macro definitions. 25328# See the Autoconf documentation for `clear'. 25329cat >confdef2sed.sed <<\EOF 25330s/[\\&,]/\\&/g 25331s,[\\$`],\\&,g 25332t clear 25333: clear 25334s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp 25335t end 25336s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 25337: end 25338EOF 25339# If some macros were called several times there might be several times 25340# the same #defines, which is useless. Nevertheless, we may not want to 25341# sort them, since we want the *last* AC-DEFINE to be honored. 25342uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 25343sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 25344sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs 25345rm -f confdef2sed.sed 25346 25347# This sed command replaces #undef with comments. This is necessary, for 25348# example, in the case of _POSIX_SOURCE, which is predefined and required 25349# on some systems where configure will not decide to define it. 25350cat >>conftest.undefs <<\EOF 25351s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 25352EOF 25353 25354# Break up conftest.defines because some shells have a limit on the size 25355# of here documents, and old seds have small limits too (100 cmds). 25356echo ' # Handle all the #define templates only if necessary.' >>"$CONFIG_STATUS" 25357echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>"$CONFIG_STATUS" 25358echo ' # If there are no defines, we may have an empty if/fi' >>"$CONFIG_STATUS" 25359echo ' :' >>"$CONFIG_STATUS" 25360rm -f conftest.tail 25361while grep . conftest.defines >/dev/null 25362do 25363 # Write a limited-size here document to $tmp/defines.sed. 25364 echo ' cat >$tmp/defines.sed <<CEOF' >>"$CONFIG_STATUS" 25365 # Speed up: don't consider the non `#define' lines. 25366 echo '/^[ ]*#[ ]*define/!b' >>"$CONFIG_STATUS" 25367 # Work around the forget-to-reset-the-flag bug. 25368 echo 't clr' >>"$CONFIG_STATUS" 25369 echo ': clr' >>"$CONFIG_STATUS" 25370 sed "${ac_max_here_lines}q" conftest.defines >>"$CONFIG_STATUS" 25371 echo 'CEOF 25372 sed -f $tmp/defines.sed $tmp/in >$tmp/out 25373 rm -f $tmp/in 25374 mv $tmp/out $tmp/in 25375' >>"$CONFIG_STATUS" 25376 sed "1,${ac_max_here_lines}d" conftest.defines >conftest.tail 25377 rm -f conftest.defines 25378 mv conftest.tail conftest.defines 25379done 25380rm -f conftest.defines 25381echo ' fi # egrep' >>"$CONFIG_STATUS" 25382echo >>"$CONFIG_STATUS" 25383 25384# Break up conftest.undefs because some shells have a limit on the size 25385# of here documents, and old seds have small limits too (100 cmds). 25386echo ' # Handle all the #undef templates' >>"$CONFIG_STATUS" 25387rm -f conftest.tail 25388while grep . conftest.undefs >/dev/null 25389do 25390 # Write a limited-size here document to $tmp/undefs.sed. 25391 echo ' cat >$tmp/undefs.sed <<CEOF' >>"$CONFIG_STATUS" 25392 # Speed up: don't consider the non `#undef' 25393 echo '/^[ ]*#[ ]*undef/!b' >>"$CONFIG_STATUS" 25394 # Work around the forget-to-reset-the-flag bug. 25395 echo 't clr' >>"$CONFIG_STATUS" 25396 echo ': clr' >>"$CONFIG_STATUS" 25397 sed "${ac_max_here_lines}q" conftest.undefs >>"$CONFIG_STATUS" 25398 echo 'CEOF 25399 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 25400 rm -f $tmp/in 25401 mv $tmp/out $tmp/in 25402' >>"$CONFIG_STATUS" 25403 sed "1,${ac_max_here_lines}d" conftest.undefs >conftest.tail 25404 rm -f conftest.undefs 25405 mv conftest.tail conftest.undefs 25406done 25407rm -f conftest.undefs 25408 25409cat >>"$CONFIG_STATUS" <<\EOF 25410 # Let's still pretend it is `configure' which instantiates (i.e., don't 25411 # use $as_me), people would be surprised to read: 25412 # /* config.h. Generated automatically by config.status. */ 25413 if test x"$ac_file" = x-; then 25414 echo "/* Generated automatically by configure. */" >$tmp/config.h 25415 else 25416 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 25417 fi 25418 cat $tmp/in >>$tmp/config.h 25419 rm -f $tmp/in 25420 if test x"$ac_file" != x-; then 25421 if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then 25422 { echo "$as_me:25422: $ac_file is unchanged" >&5 25423echo "$as_me: $ac_file is unchanged" >&6;} 25424 else 25425 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25426 X"$ac_file" : 'X\(//\)[^/]' \| \ 25427 X"$ac_file" : 'X\(//\)$' \| \ 25428 X"$ac_file" : 'X\(/\)' \| \ 25429 . : '\(.\)' 2>/dev/null || 25430echo X"$ac_file" | 25431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 25432 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 25433 /^X\(\/\/\)$/{ s//\1/; q; } 25434 /^X\(\/\).*/{ s//\1/; q; } 25435 s/.*/./; q'` 25436 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 25437 { case "$ac_dir" in 25438 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 25439 *) as_incr_dir=.;; 25440esac 25441as_dummy="$ac_dir" 25442for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 25443 case $as_mkdir_dir in 25444 # Skip DOS drivespec 25445 ?:) as_incr_dir=$as_mkdir_dir ;; 25446 *) 25447 as_incr_dir=$as_incr_dir/$as_mkdir_dir 25448 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 25449 ;; 25450 esac 25451done; } 25452 25453 fi 25454 rm -f "$ac_file" 25455 mv "$tmp/config.h" "$ac_file" 25456 fi 25457 else 25458 cat $tmp/config.h 25459 rm -f $tmp/config.h 25460 fi 25461done 25462EOF 25463 25464cat >>"$CONFIG_STATUS" <<\EOF 25465 25466{ (exit 0); exit 0; } 25467EOF 25468chmod +x "$CONFIG_STATUS" 25469ac_clean_files=$ac_clean_files_save 25470 25471# configure is writing to config.log, and then calls config.status. 25472# config.status does its own redirection, appending to config.log. 25473# Unfortunately, on DOS this fails, as config.log is still kept open 25474# by configure, so config.status won't be able to write to it; its 25475# output is simply discarded. So we exec the FD to /dev/null, 25476# effectively closing config.log, so it can be properly (re)opened and 25477# appended to by config.status. When coming back to configure, we 25478# need to make the FD available again. 25479if test "$no_create" != yes; then 25480 ac_cs_success=: 25481 exec 5>/dev/null 25482 $SHELL "$CONFIG_STATUS" || ac_cs_success=false 25483 exec 5>>config.log 25484 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 25485 # would make configure fail if this is the last instruction. 25486 "$ac_cs_success" || { (exit 1); exit 1; } 25487fi 25488 25489