configure revision 2e4f8982
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by Autoconf 2.52.20150926. 4# 5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 6# Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10# Avoid depending upon Character Ranges. 11as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14as_cr_digits='0123456789' 15as_cr_alnum=$as_cr_Letters$as_cr_digits 16 17# Sed expression to map a string onto a valid variable name. 18as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 19 20# Sed expression to map a string onto a valid CPP name. 21as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 22 23# Be Bourne compatible 24if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 25 emulate sh 26 NULLCMD=: 27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 28 set -o posix 29fi 30 31# Name of the executable. 32as_me=`echo "$0" |sed 's,.*[\\/],,'` 33 34if expr a : '\(a\)' >/dev/null 2>&1; then 35 as_expr=expr 36else 37 as_expr=false 38fi 39 40rm -f conf$$ conf$$.exe conf$$.file 41echo >conf$$.file 42if ln -s conf$$.file conf$$ 2>/dev/null; then 43 # We could just check for DJGPP; but this test a) works b) is more generic 44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 45 if test -f conf$$.exe; then 46 # Don't use ln at all; we don't have any links 47 as_ln_s='cp -p' 48 else 49 as_ln_s='ln -s' 50 fi 51elif ln conf$$.file conf$$ 2>/dev/null; then 52 as_ln_s=ln 53else 54 as_ln_s='cp -p' 55fi 56rm -f conf$$ conf$$.exe conf$$.file 57 58as_executable_p="test -f" 59 60# Support unset when possible. 61if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 62 as_unset=unset 63else 64 as_unset=false 65fi 66 67# NLS nuisances. 68$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 69$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 70$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 71$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 72$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 73$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 74$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 75$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 76 77# IFS 78# We need space, tab and new line, in precisely that order. 79as_nl=' 80' 81IFS=" $as_nl" 82 83# CDPATH. 84$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 85 86# Name of the host. 87# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 88# so uname gets run too. 89ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 90 91exec 6>&1 92 93# 94# Initializations. 95# 96ac_default_prefix=/usr/local 97cross_compiling=no 98subdirs= 99MFLAGS= MAKEFLAGS= 100SHELL=${CONFIG_SHELL-/bin/sh} 101 102# Maximum number of lines to put in a shell here document. 103# This variable seems obsolete. It should probably be removed, and 104# only ac_max_sed_lines should be used. 105: ${ac_max_here_lines=38} 106 107ac_unique_file="charproc.c" 108# Factoring default headers for most tests. 109ac_includes_default="\ 110#include <stdio.h> 111#if HAVE_SYS_TYPES_H 112# include <sys/types.h> 113#endif 114#if HAVE_SYS_STAT_H 115# include <sys/stat.h> 116#endif 117#if STDC_HEADERS 118# include <stdlib.h> 119# include <stddef.h> 120#else 121# if HAVE_STDLIB_H 122# include <stdlib.h> 123# endif 124#endif 125#if HAVE_STRING_H 126# if !STDC_HEADERS && HAVE_MEMORY_H 127# include <memory.h> 128# endif 129# include <string.h> 130#endif 131#if HAVE_STRINGS_H 132# include <strings.h> 133#endif 134#if HAVE_INTTYPES_H 135# include <inttypes.h> 136#else 137# if HAVE_STDINT_H 138# include <stdint.h> 139# endif 140#endif 141#if HAVE_UNISTD_H 142# include <unistd.h> 143#endif" 144 145# Initialize some variables set by options. 146ac_init_help= 147ac_init_version=false 148# The variables have the same names as the options, with 149# dashes changed to underlines. 150cache_file=/dev/null 151exec_prefix=NONE 152no_create= 153no_recursion= 154prefix=NONE 155program_prefix=NONE 156program_suffix=NONE 157program_transform_name=s,x,x, 158silent= 159site= 160srcdir= 161verbose= 162x_includes=NONE 163x_libraries=NONE 164 165# Installation directory options. 166# These are left unexpanded so users can "make install exec_prefix=/foo" 167# and all the variables that are supposed to be based on exec_prefix 168# by default will actually change. 169# Use braces instead of parens because sh, perl, etc. also accept them. 170bindir='${exec_prefix}/bin' 171sbindir='${exec_prefix}/sbin' 172libexecdir='${exec_prefix}/libexec' 173datarootdir='${prefix}/share' 174datadir='${datarootdir}' 175sysconfdir='${prefix}/etc' 176sharedstatedir='${prefix}/com' 177localstatedir='${prefix}/var' 178libdir='${exec_prefix}/lib' 179includedir='${prefix}/include' 180oldincludedir='/usr/include' 181infodir='${datarootdir}/info' 182mandir='${datarootdir}/man' 183 184# Identity of this package. 185PACKAGE_NAME= 186PACKAGE_TARNAME= 187PACKAGE_VERSION= 188PACKAGE_STRING= 189PACKAGE_BUGREPORT= 190 191ac_prev= 192for ac_option 193do 194 # If the previous option needs an argument, assign it. 195 if test -n "$ac_prev"; then 196 eval "$ac_prev=\$ac_option" 197 ac_prev= 198 continue 199 fi 200 201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 202 203 # Accept the important Cygnus configure options, so we can diagnose typos. 204 205 case $ac_option in 206 207 -bindir | --bindir | --bindi | --bind | --bin | --bi) 208 ac_prev=bindir ;; 209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 210 bindir=$ac_optarg ;; 211 212 -build | --build | --buil | --bui | --bu) 213 ac_prev=build_alias ;; 214 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 215 build_alias=$ac_optarg ;; 216 217 -cache-file | --cache-file | --cache-fil | --cache-fi \ 218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 219 ac_prev=cache_file ;; 220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 222 cache_file=$ac_optarg ;; 223 224 --config-cache | -C) 225 cache_file=config.cache ;; 226 227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 228 ac_prev=datadir ;; 229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 230 | --da=*) 231 datadir=$ac_optarg ;; 232 233 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 234 | --dataroo | --dataro | --datar) 235 ac_prev=datarootdir ;; 236 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 237 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 238 datarootdir=$ac_optarg ;; 239 240 -disable-* | --disable-*) 241 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 242 # Reject names that are not valid shell variable names. 243 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 244 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 245 { (exit 1); exit 1; }; } 246 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 247 eval "enable_$ac_feature=no" ;; 248 249 -enable-* | --enable-*) 250 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 251 # Reject names that are not valid shell variable names. 252 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 253 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 254 { (exit 1); exit 1; }; } 255 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 256 case $ac_option in 257 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 258 *) ac_optarg=yes ;; 259 esac 260 eval "enable_$ac_feature='$ac_optarg'" ;; 261 262 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 263 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 264 | --exec | --exe | --ex) 265 ac_prev=exec_prefix ;; 266 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 267 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 268 | --exec=* | --exe=* | --ex=*) 269 exec_prefix=$ac_optarg ;; 270 271 -gas | --gas | --ga | --g) 272 # Obsolete; use --with-gas. 273 with_gas=yes ;; 274 275 -help | --help | --hel | --he | -h) 276 ac_init_help=long ;; 277 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 278 ac_init_help=recursive ;; 279 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 280 ac_init_help=short ;; 281 282 -host | --host | --hos | --ho) 283 ac_prev=host_alias ;; 284 -host=* | --host=* | --hos=* | --ho=*) 285 host_alias=$ac_optarg ;; 286 287 -includedir | --includedir | --includedi | --included | --include \ 288 | --includ | --inclu | --incl | --inc) 289 ac_prev=includedir ;; 290 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 291 | --includ=* | --inclu=* | --incl=* | --inc=*) 292 includedir=$ac_optarg ;; 293 294 -infodir | --infodir | --infodi | --infod | --info | --inf) 295 ac_prev=infodir ;; 296 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 297 infodir=$ac_optarg ;; 298 299 -libdir | --libdir | --libdi | --libd) 300 ac_prev=libdir ;; 301 -libdir=* | --libdir=* | --libdi=* | --libd=*) 302 libdir=$ac_optarg ;; 303 304 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 305 | --libexe | --libex | --libe) 306 ac_prev=libexecdir ;; 307 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 308 | --libexe=* | --libex=* | --libe=*) 309 libexecdir=$ac_optarg ;; 310 311 -localstatedir | --localstatedir | --localstatedi | --localstated \ 312 | --localstate | --localstat | --localsta | --localst \ 313 | --locals | --local | --loca | --loc | --lo) 314 ac_prev=localstatedir ;; 315 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 316 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 317 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 318 localstatedir=$ac_optarg ;; 319 320 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 321 ac_prev=mandir ;; 322 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 323 mandir=$ac_optarg ;; 324 325 -nfp | --nfp | --nf) 326 # Obsolete; use --without-fp. 327 with_fp=no ;; 328 329 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 330 | --no-cr | --no-c) 331 no_create=yes ;; 332 333 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 334 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 335 no_recursion=yes ;; 336 337 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 338 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 339 | --oldin | --oldi | --old | --ol | --o) 340 ac_prev=oldincludedir ;; 341 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 342 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 343 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 344 oldincludedir=$ac_optarg ;; 345 346 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 347 ac_prev=prefix ;; 348 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 349 prefix=$ac_optarg ;; 350 351 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 352 | --program-pre | --program-pr | --program-p) 353 ac_prev=program_prefix ;; 354 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 355 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 356 program_prefix=$ac_optarg ;; 357 358 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 359 | --program-suf | --program-su | --program-s) 360 ac_prev=program_suffix ;; 361 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 362 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 363 program_suffix=$ac_optarg ;; 364 365 -program-transform-name | --program-transform-name \ 366 | --program-transform-nam | --program-transform-na \ 367 | --program-transform-n | --program-transform- \ 368 | --program-transform | --program-transfor \ 369 | --program-transfo | --program-transf \ 370 | --program-trans | --program-tran \ 371 | --progr-tra | --program-tr | --program-t) 372 ac_prev=program_transform_name ;; 373 -program-transform-name=* | --program-transform-name=* \ 374 | --program-transform-nam=* | --program-transform-na=* \ 375 | --program-transform-n=* | --program-transform-=* \ 376 | --program-transform=* | --program-transfor=* \ 377 | --program-transfo=* | --program-transf=* \ 378 | --program-trans=* | --program-tran=* \ 379 | --progr-tra=* | --program-tr=* | --program-t=*) 380 program_transform_name=$ac_optarg ;; 381 382 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 383 | -silent | --silent | --silen | --sile | --sil) 384 silent=yes ;; 385 386 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 387 ac_prev=sbindir ;; 388 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 389 | --sbi=* | --sb=*) 390 sbindir=$ac_optarg ;; 391 392 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 393 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 394 | --sharedst | --shareds | --shared | --share | --shar \ 395 | --sha | --sh) 396 ac_prev=sharedstatedir ;; 397 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 398 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 399 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 400 | --sha=* | --sh=*) 401 sharedstatedir=$ac_optarg ;; 402 403 -site | --site | --sit) 404 ac_prev=site ;; 405 -site=* | --site=* | --sit=*) 406 site=$ac_optarg ;; 407 408 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 409 ac_prev=srcdir ;; 410 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 411 srcdir=$ac_optarg ;; 412 413 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 414 | --syscon | --sysco | --sysc | --sys | --sy) 415 ac_prev=sysconfdir ;; 416 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 417 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 418 sysconfdir=$ac_optarg ;; 419 420 -target | --target | --targe | --targ | --tar | --ta | --t) 421 ac_prev=target_alias ;; 422 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 423 target_alias=$ac_optarg ;; 424 425 -v | -verbose | --verbose | --verbos | --verbo | --verb) 426 verbose=yes ;; 427 428 -version | --version | --versio | --versi | --vers | -V) 429 ac_init_version=: ;; 430 431 -with-* | --with-*) 432 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 433 # Reject names that are not valid shell variable names. 434 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 435 { echo "$as_me: error: invalid package name: $ac_package" >&2 436 { (exit 1); exit 1; }; } 437 ac_package=`echo $ac_package| sed 's/-/_/g'` 438 case $ac_option in 439 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 440 *) ac_optarg=yes ;; 441 esac 442 eval "with_$ac_package='$ac_optarg'" ;; 443 444 -without-* | --without-*) 445 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 446 # Reject names that are not valid shell variable names. 447 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 448 { echo "$as_me: error: invalid package name: $ac_package" >&2 449 { (exit 1); exit 1; }; } 450 ac_package=`echo $ac_package | sed 's/-/_/g'` 451 eval "with_$ac_package=no" ;; 452 453 --x) 454 # Obsolete; use --with-x. 455 with_x=yes ;; 456 457 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 458 | --x-incl | --x-inc | --x-in | --x-i) 459 ac_prev=x_includes ;; 460 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 461 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 462 x_includes=$ac_optarg ;; 463 464 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 465 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 466 ac_prev=x_libraries ;; 467 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 468 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 469 x_libraries=$ac_optarg ;; 470 471 -*) { echo "$as_me: error: unrecognized option: $ac_option 472Try \`$0 --help' for more information." >&2 473 { (exit 1); exit 1; }; } 474 ;; 475 476 *=*) 477 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 478 # Reject names that are not valid shell variable names. 479 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 480 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 481 { (exit 1); exit 1; }; } 482 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 483 eval "$ac_envvar='$ac_optarg'" 484 export $ac_envvar ;; 485 486 *) 487 # FIXME: should be removed in autoconf 3.0. 488 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 489 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 490 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 491 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 492 ;; 493 494 esac 495done 496 497if test -n "$ac_prev"; then 498 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 499 { echo "$as_me: error: missing argument to $ac_option" >&2 500 { (exit 1); exit 1; }; } 501fi 502 503# Be sure to have absolute paths. 504for ac_var in exec_prefix prefix 505do 506 eval ac_val=$`echo $ac_var` 507 case $ac_val in 508 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 509 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 510 { (exit 1); exit 1; }; };; 511 esac 512done 513 514# Be sure to have absolute paths. 515for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \ 516 localstatedir libdir includedir oldincludedir infodir mandir 517do 518 eval ac_val=$`echo $ac_var` 519 case $ac_val in 520 [\\/$]* | ?:[\\/]* ) ;; 521 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 522 { (exit 1); exit 1; }; };; 523 esac 524done 525 526# There might be people who depend on the old broken behavior: `$host' 527# used to hold the argument of --host etc. 528build=$build_alias 529host=$host_alias 530target=$target_alias 531 532# FIXME: should be removed in autoconf 3.0. 533if test "x$host_alias" != x; then 534 if test "x$build_alias" = x; then 535 cross_compiling=maybe 536 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 537 If a cross compiler is detected then cross compile mode will be used." >&2 538 elif test "x$build_alias" != "x$host_alias"; then 539 cross_compiling=yes 540 fi 541fi 542 543ac_tool_prefix= 544test -n "$host_alias" && ac_tool_prefix=$host_alias- 545 546test "$silent" = yes && exec 6>/dev/null 547 548# Find the source files, if location was not specified. 549if test -z "$srcdir"; then 550 ac_srcdir_defaulted=yes 551 # Try the directory containing this script, then its parent. 552 ac_prog=$0 553 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` 554 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 555 srcdir=$ac_confdir 556 if test ! -r $srcdir/$ac_unique_file; then 557 srcdir=.. 558 fi 559else 560 ac_srcdir_defaulted=no 561fi 562if test ! -r $srcdir/$ac_unique_file; then 563 if test "$ac_srcdir_defaulted" = yes; then 564 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 565 { (exit 1); exit 1; }; } 566 else 567 { echo "$as_me: error: cannot find sources in $srcdir" >&2 568 { (exit 1); exit 1; }; } 569 fi 570fi 571srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 572ac_env_build_alias_set=${build_alias+set} 573ac_env_build_alias_value=$build_alias 574ac_cv_env_build_alias_set=${build_alias+set} 575ac_cv_env_build_alias_value=$build_alias 576ac_env_host_alias_set=${host_alias+set} 577ac_env_host_alias_value=$host_alias 578ac_cv_env_host_alias_set=${host_alias+set} 579ac_cv_env_host_alias_value=$host_alias 580ac_env_target_alias_set=${target_alias+set} 581ac_env_target_alias_value=$target_alias 582ac_cv_env_target_alias_set=${target_alias+set} 583ac_cv_env_target_alias_value=$target_alias 584ac_env_CC_set=${CC+set} 585ac_env_CC_value=$CC 586ac_cv_env_CC_set=${CC+set} 587ac_cv_env_CC_value=$CC 588ac_env_CFLAGS_set=${CFLAGS+set} 589ac_env_CFLAGS_value=$CFLAGS 590ac_cv_env_CFLAGS_set=${CFLAGS+set} 591ac_cv_env_CFLAGS_value=$CFLAGS 592ac_env_LDFLAGS_set=${LDFLAGS+set} 593ac_env_LDFLAGS_value=$LDFLAGS 594ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 595ac_cv_env_LDFLAGS_value=$LDFLAGS 596ac_env_CPPFLAGS_set=${CPPFLAGS+set} 597ac_env_CPPFLAGS_value=$CPPFLAGS 598ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 599ac_cv_env_CPPFLAGS_value=$CPPFLAGS 600ac_env_CPP_set=${CPP+set} 601ac_env_CPP_value=$CPP 602ac_cv_env_CPP_set=${CPP+set} 603ac_cv_env_CPP_value=$CPP 604 605# 606# Report the --help message. 607# 608if test "$ac_init_help" = "long"; then 609 # Omit some internal or obsolete options to make the list less imposing. 610 # This message is too long to be a string in the A/UX 3.1 sh. 611 cat <<EOF 612\`configure' configures this package to adapt to many kinds of systems. 613 614Usage: $0 [OPTION]... [VAR=VALUE]... 615 616To assign environment variables (e.g., CC, CFLAGS...), specify them as 617VAR=VALUE. See below for descriptions of some of the useful variables. 618 619Defaults for the options are specified in brackets. 620 621Configuration: 622 -h, --help display this help and exit 623 --help=short display options specific to this package 624 --help=recursive display the short help of all the included packages 625 -V, --version display version information and exit 626 -q, --quiet, --silent do not print \`checking...' messages 627 --cache-file=FILE cache test results in FILE [disabled] 628 -C, --config-cache alias for \`--cache-file=config.cache' 629 -n, --no-create do not create output files 630 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 631 632EOF 633 634 cat <<EOF 635Installation directories: 636 --prefix=PREFIX install architecture-independent files in PREFIX 637 [$ac_default_prefix] 638 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 639 [PREFIX] 640 641By default, \`make install' will install all the files in 642\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 643an installation prefix other than \`$ac_default_prefix' using \`--prefix', 644for instance \`--prefix=\$HOME'. 645 646For better control, use the options below. 647 648Fine tuning of the installation directories: 649 --bindir=DIR user executables [EPREFIX/bin] 650 --sbindir=DIR system admin executables [EPREFIX/sbin] 651 --libexecdir=DIR program executables [EPREFIX/libexec] 652 --datarootdir=DIR read-only architecture-independent data [PREFIX/share] 653 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 654 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 655 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 656 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 657 --libdir=DIR object code libraries [EPREFIX/lib] 658 --includedir=DIR C header files [PREFIX/include] 659 --oldincludedir=DIR C header files for non-gcc [/usr/include] 660 --infodir=DIR info documentation [DATAROOTDIR/info] 661 --mandir=DIR man documentation [DATAROOTDIR/man] 662EOF 663 664 cat <<\EOF 665 666Program names: 667 --program-prefix=PREFIX prepend PREFIX to installed program names 668 --program-suffix=SUFFIX append SUFFIX to installed program names 669 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 670 671X features: 672 --x-includes=DIR X include files are in DIR 673 --x-libraries=DIR X library files are in DIR 674 675System types: 676 --build=BUILD configure for building on BUILD [guessed] 677 --host=HOST build programs to run on HOST [BUILD] 678EOF 679fi 680 681if test -n "$ac_init_help"; then 682 683 cat <<\EOF 684 685Optional Features: 686 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 687 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 688 689Optional Packages: 690 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 691 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 692 693Compile/Install Options: 694 --disable-full-tgetent disable check for full tgetent function 695 --with-app-class=XXX override X applications class (default XTerm) 696 --with-app-defaults=DIR directory in which to install resource files (EPREFIX/lib/X11/app-defaults) 697 --with-icon-name=XXXX override icon name (default: xterm-color) 698 --with-icon-symlink=XXX make symbolic link for icon name (default: xterm) 699 --with-pixmapdir=DIR directory in which to install pixmaps (DATADIR/pixmaps) 700 --with-icondir=DIR directory in which to install icons for desktop 701 --with-icon-theme=XXX install icons into desktop theme (hicolor) 702 --disable-desktop disable install of xterm desktop files 703 --with-desktop-category=XXX one or more desktop catgories or auto 704 --with-reference=XXX program to use as permissions-reference 705 --with-xterm-symlink=XXX make symbolic link to installed xterm 706 --disable-openpty disable openpty, prefer other interfaces 707 --disable-setuid disable setuid in xterm, do not install setuid/setgid 708 --disable-setgid disable setgid in xterm, do not install setuid/setgid 709 --with-setuid=XXX use the given setuid user 710 --with-utmp-setgid=XXX use setgid to match utmp/utmpx file 711 --with-utempter use utempter library for access to utmp 712 --with-tty-group=XXX use XXX for the tty-group 713 --with-x use the X Window System 714 --with-pkg-config{=path} enable/disable use of pkg-config 715 --with-xpm=DIR use Xpm library for colored icon, may specify path 716 --without-xinerama do not use Xinerama extension for multiscreen support 717 --with-Xaw3d link with Xaw 3d library 718 --with-Xaw3dxft link with Xaw 3d xft library 719 --with-neXtaw link with neXT Athena library 720 --with-XawPlus link with Athena-Plus library 721 --enable-narrowproto enable narrow prototypes for X libraries 722 --disable-imake disable use of imake for definitions 723 --with-man2html=XXX use XXX rather than groff 724Terminal Configuration: 725 --with-terminal-id=V set default decTerminalID (default: vt420) 726 --with-terminal-type=T set default $TERM (default: xterm) 727 --enable-backarrow-key set default backarrowKey resource (default: true) 728 --enable-backarrow-is-erase set default backarrowKeyIsErase resource (default: false) 729 --enable-delete-is-del set default deleteIsDEL resource (default: maybe) 730 --enable-pty-erase set default ptyInitialErase resource (default: maybe) 731 --enable-alt-sends-esc set default altSendsEscape resource (default: no) 732 --enable-meta-sends-esc set default metaSendsEscape resource (default: no) 733 --with-own-terminfo=P set default $TERMINFO (default: from environment) 734Optional Features: 735 --disable-active-icon disable X11R6.3 active-icon feature 736 --disable-ansi-color disable ANSI color 737 --disable-16-color disable 16-color support 738 --enable-256-color enable 256-color support 739 --enable-88-color enable 88-color support 740 --disable-blink-cursor disable support for blinking cursor 741 --enable-broken-osc allow broken Linux OSC-strings 742 --disable-broken-st disallow broken string-terminators 743 --enable-builtin-xpms compile-in icon data 744 --disable-c1-print disallow -k8 option for printable 128-159 745 --disable-bold-color disable PC-style mapping of bold colors 746 --disable-color-class disable separate color class resources 747 --disable-color-mode disable default colorMode resource 748 --disable-highlighting disable support for color highlighting 749 --disable-doublechars disable support for double-size chars 750 --disable-boxchars disable fallback-support for box chars 751 --enable-exec-xterm enable "spawn-new-terminal" action 752 --enable-double-buffer enable double-buffering 753 --disable-freetype disable freetype library-support 754 --with-freetype-config configure script to use for FreeType 755 --with-freetype-cflags -D/-I options for compiling with FreeType 756 --with-freetype-libs -L/-l options to link FreeType 757 --enable-hp-fkeys enable support for HP-style function keys 758 --enable-sco-fkeys enable support for SCO-style function keys 759 --disable-sun-fkeys disable support for Sun-style function keys 760 --disable-fifo-lines disable FIFO-storage for saved-lines 761 --disable-i18n disable internationalization 762 --disable-initial-erase disable setup for stty erase 763 --disable-input-method disable input-method 764 --enable-load-vt-fonts enable load-vt-fonts() action 765 --enable-logging enable logging 766 --enable-logfile-exec enable exec'd logfile filter 767 --disable-maximize disable actions for iconify/deiconify/maximize/restore 768 --disable-num-lock disable NumLock keypad support 769 --disable-paste64 disable get/set base64 selection data 770 --disable-pty-handshake disable pty-handshake support 771 --enable-readline-mouse enable support for mouse in readline applications 772 --disable-regex disable regular-expression selections 773 --with-pcre use PCRE for regular-expressions 774 --disable-rightbar disable right-scrollbar support 775 --disable-samename disable check for redundant name-change 776 --disable-selection-ops disable selection-action operations 777 --disable-session-mgt disable support for session management 778 --disable-tcap-fkeys disable termcap function-keys support 779 --disable-tcap-query disable compiled-in termcap-query support 780 --disable-tek4014 disable tek4014 emulation 781 --enable-toolbar compile-in toolbar for pulldown menus 782 --disable-vt52 disable VT52 emulation 783 --disable-wide-attrs disable wide-attribute support 784 --disable-wide-chars disable wide-character support 785 --enable-16bit-chars enable 16-bit character support 786 --enable-mini-luit enable mini-luit (built-in Latin9 support) 787 --disable-luit enable luit filter (Unicode translation) 788 --enable-dabbrev enable dynamic-abbreviation support 789 --enable-dec-locator enable DECterm Locator support 790 --enable-screen-dumps enable XHTML and SVG screen dumps 791 --enable-regis-graphics enable ReGIS graphics support 792 --enable-sixel-graphics enable sixel graphics support 793 --disable-rectangles disable VT420 rectangle support 794 --disable-ziconbeep disable -ziconbeep option 795Testing/development Options: 796 --enable-trace test: set to enable debugging traces 797 --with-dmalloc test: use Gray Watson's dmalloc library 798 --with-dbmalloc test: use Conor Cahill's dbmalloc library 799 --with-valgrind test: use valgrind 800 --disable-leaks test: free permanent memory, analyze leaks 801 --disable-echo do not display "compiling" commands 802 --enable-xmc-glitch test: enable xmc magic-cookie emulation 803 --enable-warnings test: turn on GCC compiler warnings 804 --disable-rpath-hack don't add rpath options for additional libraries 805 806Some influential environment variables: 807 CC C compiler command 808 CFLAGS C compiler flags 809 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 810 nonstandard directory <lib dir> 811 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 812 headers in a nonstandard directory <include dir> 813 CPP C preprocessor 814 815Use these variables to override the choices made by `configure' or to help 816it to find libraries and programs with nonstandard names/locations. 817 818EOF 819fi 820 821if test "$ac_init_help" = "recursive"; then 822 # If there are subdirs, report their specific --help. 823 ac_popdir=`pwd` 824 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 825 cd $ac_subdir 826 # A "../" for each directory in /$ac_subdir. 827 ac_dots=`echo $ac_subdir | 828 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 829 830 case $srcdir in 831 .) # No --srcdir option. We are building in place. 832 ac_sub_srcdir=$srcdir ;; 833 [\\/]* | ?:[\\/]* ) # Absolute path. 834 ac_sub_srcdir=$srcdir/$ac_subdir ;; 835 *) # Relative path. 836 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; 837 esac 838 839 # Check for guested configure; otherwise get Cygnus style configure. 840 if test -f $ac_sub_srcdir/configure.gnu; then 841 echo 842 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive 843 elif test -f $ac_sub_srcdir/configure; then 844 echo 845 $SHELL $ac_sub_srcdir/configure --help=recursive 846 elif test -f $ac_sub_srcdir/configure.ac || 847 test -f $ac_sub_srcdir/configure.in; then 848 echo 849 $ac_configure --help 850 else 851 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 852 fi 853 cd $ac_popdir 854 done 855fi 856 857test -n "$ac_init_help" && exit 0 858if $ac_init_version; then 859 cat <<\EOF 860 861Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 862Free Software Foundation, Inc. 863This configure script is free software; the Free Software Foundation 864gives unlimited permission to copy, distribute and modify it. 865EOF 866 exit 0 867fi 868exec 5>config.log 869cat >&5 <<EOF 870This file contains any messages produced by compilers while 871running configure, to aid debugging if configure makes a mistake. 872 873It was created by $as_me, which was 874generated by GNU Autoconf 2.52.20150926. Invocation command line was 875 876 $ $0 $@ 877 878EOF 879{ 880cat <<_ASUNAME 881## ---------- ## 882## Platform. ## 883## ---------- ## 884 885hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 886uname -m = `(uname -m) 2>/dev/null || echo unknown` 887uname -r = `(uname -r) 2>/dev/null || echo unknown` 888uname -s = `(uname -s) 2>/dev/null || echo unknown` 889uname -v = `(uname -v) 2>/dev/null || echo unknown` 890 891/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 892/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 893 894/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 895/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 896/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 897hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 898/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 899/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 900/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 901 902PATH = $PATH 903 904_ASUNAME 905} >&5 906 907cat >&5 <<EOF 908## ------------ ## 909## Core tests. ## 910## ------------ ## 911 912EOF 913 914# Keep a trace of the command line. 915# Strip out --no-create and --no-recursion so they do not pile up. 916# Also quote any args containing shell meta-characters. 917ac_configure_args= 918ac_sep= 919for ac_arg 920do 921 case $ac_arg in 922 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 923 | --no-cr | --no-c) ;; 924 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 925 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 926 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 927 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 928 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 929 ac_sep=" " ;; 930 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 931 ac_sep=" " ;; 932 esac 933 # Get rid of the leading space. 934done 935 936# When interrupted or exit'd, cleanup temporary files, and complete 937# config.log. We remove comments because anyway the quotes in there 938# would cause problems or look ugly. 939trap 'exit_status=$? 940 # Save into config.log some information that might help in debugging. 941 echo >&5 942 echo "## ----------------- ##" >&5 943 echo "## Cache variables. ##" >&5 944 echo "## ----------------- ##" >&5 945 echo >&5 946 # The following way of writing the cache mishandles newlines in values, 947{ 948 (set) 2>&1 | 949 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 950 *ac_space=\ *) 951 sed -n \ 952 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 953 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 954 ;; 955 *) 956 sed -n \ 957 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 958 ;; 959 esac; 960} >&5 961 sed "/^$/d" confdefs.h >conftest.log 962 if test -s conftest.log; then 963 echo >&5 964 echo "## ------------ ##" >&5 965 echo "## confdefs.h. ##" >&5 966 echo "## ------------ ##" >&5 967 echo >&5 968 cat conftest.log >&5 969 fi 970 (echo; echo) >&5 971 test "$ac_signal" != 0 && 972 echo "$as_me: caught signal $ac_signal" >&5 973 echo "$as_me: exit $exit_status" >&5 974 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 975 exit $exit_status 976 ' 0 977for ac_signal in 1 2 13 15; do 978 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 979done 980ac_signal=0 981 982# confdefs.h avoids OS command line length limits that DEFS can exceed. 983rm -rf conftest* confdefs.h 984# AIX cpp loses on an empty file, so make sure it contains at least a newline. 985echo >confdefs.h 986 987# Let the site file select an alternate cache file if it wants to. 988# Prefer explicitly selected file to automatically selected ones. 989if test -z "$CONFIG_SITE"; then 990 if test "x$prefix" != xNONE; then 991 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 992 else 993 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 994 fi 995fi 996for ac_site_file in $CONFIG_SITE; do 997 if test -r "$ac_site_file"; then 998 { echo "$as_me:998: loading site script $ac_site_file" >&5 999echo "$as_me: loading site script $ac_site_file" >&6;} 1000 cat "$ac_site_file" >&5 1001 . "$ac_site_file" 1002 fi 1003done 1004 1005if test -r "$cache_file"; then 1006 # Some versions of bash will fail to source /dev/null (special 1007 # files actually), so we avoid doing that. 1008 if test -f "$cache_file"; then 1009 { echo "$as_me:1009: loading cache $cache_file" >&5 1010echo "$as_me: loading cache $cache_file" >&6;} 1011 case $cache_file in 1012 [\\/]* | ?:[\\/]* ) . $cache_file;; 1013 *) . ./$cache_file;; 1014 esac 1015 fi 1016else 1017 { echo "$as_me:1017: creating cache $cache_file" >&5 1018echo "$as_me: creating cache $cache_file" >&6;} 1019 >$cache_file 1020fi 1021 1022# Check that the precious variables saved in the cache have kept the same 1023# value. 1024ac_cache_corrupted=false 1025for ac_var in `(set) 2>&1 | 1026 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1027 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1028 eval ac_new_set=\$ac_env_${ac_var}_set 1029 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1030 eval ac_new_val="\$ac_env_${ac_var}_value" 1031 case $ac_old_set,$ac_new_set in 1032 set,) 1033 { echo "$as_me:1033: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1034echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1035 ac_cache_corrupted=: ;; 1036 ,set) 1037 { echo "$as_me:1037: error: \`$ac_var' was not set in the previous run" >&5 1038echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1039 ac_cache_corrupted=: ;; 1040 ,);; 1041 *) 1042 if test "x$ac_old_val" != "x$ac_new_val"; then 1043 { echo "$as_me:1043: error: \`$ac_var' has changed since the previous run:" >&5 1044echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1045 { echo "$as_me:1045: former value: $ac_old_val" >&5 1046echo "$as_me: former value: $ac_old_val" >&2;} 1047 { echo "$as_me:1047: current value: $ac_new_val" >&5 1048echo "$as_me: current value: $ac_new_val" >&2;} 1049 ac_cache_corrupted=: 1050 fi;; 1051 esac 1052 # Pass precious variables to config.status. It doesn't matter if 1053 # we pass some twice (in addition to the command line arguments). 1054 if test "$ac_new_set" = set; then 1055 case $ac_new_val in 1056 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1057 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` 1058 ac_configure_args="$ac_configure_args '$ac_arg'" 1059 ;; 1060 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" 1061 ;; 1062 esac 1063 fi 1064done 1065if $ac_cache_corrupted; then 1066 { echo "$as_me:1066: error: changes in the environment can compromise the build" >&5 1067echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1068 { { echo "$as_me:1068: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1069echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1070 { (exit 1); exit 1; }; } 1071fi 1072 1073ac_ext=c 1074ac_cpp='$CPP $CPPFLAGS' 1075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1077ac_compiler_gnu=$ac_cv_c_compiler_gnu 1078ac_main_return=return 1079 1080case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in 1081 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway 1082 ECHO_T=' ' ;; 1083 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 1084 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 1085esac 1086echo "#! $SHELL" >conftest.sh 1087echo "exit 0" >>conftest.sh 1088chmod +x conftest.sh 1089if { (echo "$as_me:1089: PATH=\".;.\"; conftest.sh") >&5 1090 (PATH=".;."; conftest.sh) 2>&5 1091 ac_status=$? 1092 echo "$as_me:1092: \$? = $ac_status" >&5 1093 (exit $ac_status); }; then 1094 ac_path_separator=';' 1095else 1096 ac_path_separator=: 1097fi 1098PATH_SEPARATOR="$ac_path_separator" 1099rm -f conftest.sh 1100 1101ac_config_headers="$ac_config_headers xtermcfg.h:xtermcfg.hin" 1102 1103ac_aux_dir= 1104for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1105 if test -f $ac_dir/install-sh; then 1106 ac_aux_dir=$ac_dir 1107 ac_install_sh="$ac_aux_dir/install-sh -c" 1108 break 1109 elif test -f $ac_dir/install.sh; then 1110 ac_aux_dir=$ac_dir 1111 ac_install_sh="$ac_aux_dir/install.sh -c" 1112 break 1113 elif test -f $ac_dir/shtool; then 1114 ac_aux_dir=$ac_dir 1115 ac_install_sh="$ac_aux_dir/shtool install -c" 1116 break 1117 fi 1118done 1119if test -z "$ac_aux_dir"; then 1120 { { echo "$as_me:1120: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1121echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1122 { (exit 1); exit 1; }; } 1123fi 1124ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1125ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1126ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1127 1128# Make sure we can run config.sub. 1129$ac_config_sub sun4 >/dev/null 2>&1 || 1130 { { echo "$as_me:1130: error: cannot run $ac_config_sub" >&5 1131echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1132 { (exit 1); exit 1; }; } 1133 1134echo "$as_me:1134: checking build system type" >&5 1135echo $ECHO_N "checking build system type... $ECHO_C" >&6 1136if test "${ac_cv_build+set}" = set; then 1137 echo $ECHO_N "(cached) $ECHO_C" >&6 1138else 1139 ac_cv_build_alias=$build_alias 1140test -z "$ac_cv_build_alias" && 1141 ac_cv_build_alias=`$ac_config_guess` 1142test -z "$ac_cv_build_alias" && 1143 { { echo "$as_me:1143: error: cannot guess build type; you must specify one" >&5 1144echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1145 { (exit 1); exit 1; }; } 1146ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1147 { { echo "$as_me:1147: error: $ac_config_sub $ac_cv_build_alias failed." >&5 1148echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} 1149 { (exit 1); exit 1; }; } 1150 1151fi 1152echo "$as_me:1152: result: $ac_cv_build" >&5 1153echo "${ECHO_T}$ac_cv_build" >&6 1154build=$ac_cv_build 1155build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1156build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1157build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1158 1159if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then 1160 echo "$as_me:1160: checking host system type" >&5 1161echo $ECHO_N "checking host system type... $ECHO_C" >&6 1162if test "${ac_cv_host+set}" = set; then 1163 echo $ECHO_N "(cached) $ECHO_C" >&6 1164else 1165 ac_cv_host_alias=$host_alias 1166test -z "$ac_cv_host_alias" && 1167 ac_cv_host_alias=$ac_cv_build_alias 1168ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1169 { { echo "$as_me:1169: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1170echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1171 { (exit 1); exit 1; }; } 1172 1173fi 1174echo "$as_me:1174: result: $ac_cv_host" >&5 1175echo "${ECHO_T}$ac_cv_host" >&6 1176host=$ac_cv_host 1177host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1178host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1179host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1180 1181 system_name="$host_os" 1182else 1183 system_name="`(uname -s -r) 2>/dev/null`" 1184 if test -z "$system_name" ; then 1185 system_name="`(hostname) 2>/dev/null`" 1186 fi 1187fi 1188test -n "$system_name" && 1189cat >>confdefs.h <<EOF 1190#define SYSTEM_NAME "$system_name" 1191EOF 1192 1193if test "${cf_cv_system_name+set}" = set; then 1194 echo $ECHO_N "(cached) $ECHO_C" >&6 1195else 1196 cf_cv_system_name="$system_name" 1197fi 1198 1199test -z "$system_name" && system_name="$cf_cv_system_name" 1200test -n "$cf_cv_system_name" && echo "$as_me:1200: result: Configuring for $cf_cv_system_name" >&5 1201echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6 1202 1203if test ".$system_name" != ".$cf_cv_system_name" ; then 1204 echo "$as_me:1204: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5 1205echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6 1206 { { echo "$as_me:1206: error: \"Please remove config.cache and try again.\"" >&5 1207echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;} 1208 { (exit 1); exit 1; }; } 1209fi 1210 1211### checks for alternative programs 1212 1213case "$host_os" in 1214(openedition) : ${CFLAGS="-O2 -Wc,dll -Wl,EDIT=NO"} 1215 : ${CPPFLAGS="-D_ALL_SOURCE"} 1216 : ${LIBS="/usr/lib/Xaw.x /usr/lib/SM.x /usr/lib/ICE.x /usr/lib/X11.x"} 1217 : ${CC=c89};; 1218(darwin*) 1219 : ${LDFLAGS}="${LDFLAGS} -Wl,-bind_at_load";; 1220esac 1221 1222ac_ext=c 1223ac_cpp='$CPP $CPPFLAGS' 1224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1226ac_compiler_gnu=$ac_cv_c_compiler_gnu 1227ac_main_return=return 1228if test -n "$ac_tool_prefix"; then 1229 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1230set dummy ${ac_tool_prefix}gcc; ac_word=$2 1231echo "$as_me:1231: checking for $ac_word" >&5 1232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1233if test "${ac_cv_prog_CC+set}" = set; then 1234 echo $ECHO_N "(cached) $ECHO_C" >&6 1235else 1236 if test -n "$CC"; then 1237 ac_cv_prog_CC="$CC" # Let the user override the test. 1238else 1239 ac_save_IFS=$IFS; IFS=$ac_path_separator 1240ac_dummy="$PATH" 1241for ac_dir in $ac_dummy; do 1242 IFS=$ac_save_IFS 1243 test -z "$ac_dir" && ac_dir=. 1244 $as_executable_p "$ac_dir/$ac_word" || continue 1245ac_cv_prog_CC="${ac_tool_prefix}gcc" 1246echo "$as_me:1246: found $ac_dir/$ac_word" >&5 1247break 1248done 1249 1250fi 1251fi 1252CC=$ac_cv_prog_CC 1253if test -n "$CC"; then 1254 echo "$as_me:1254: result: $CC" >&5 1255echo "${ECHO_T}$CC" >&6 1256else 1257 echo "$as_me:1257: result: no" >&5 1258echo "${ECHO_T}no" >&6 1259fi 1260 1261fi 1262if test -z "$ac_cv_prog_CC"; then 1263 ac_ct_CC=$CC 1264 # Extract the first word of "gcc", so it can be a program name with args. 1265set dummy gcc; ac_word=$2 1266echo "$as_me:1266: checking for $ac_word" >&5 1267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1268if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1269 echo $ECHO_N "(cached) $ECHO_C" >&6 1270else 1271 if test -n "$ac_ct_CC"; then 1272 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1273else 1274 ac_save_IFS=$IFS; IFS=$ac_path_separator 1275ac_dummy="$PATH" 1276for ac_dir in $ac_dummy; do 1277 IFS=$ac_save_IFS 1278 test -z "$ac_dir" && ac_dir=. 1279 $as_executable_p "$ac_dir/$ac_word" || continue 1280ac_cv_prog_ac_ct_CC="gcc" 1281echo "$as_me:1281: found $ac_dir/$ac_word" >&5 1282break 1283done 1284 1285fi 1286fi 1287ac_ct_CC=$ac_cv_prog_ac_ct_CC 1288if test -n "$ac_ct_CC"; then 1289 echo "$as_me:1289: result: $ac_ct_CC" >&5 1290echo "${ECHO_T}$ac_ct_CC" >&6 1291else 1292 echo "$as_me:1292: result: no" >&5 1293echo "${ECHO_T}no" >&6 1294fi 1295 1296 CC=$ac_ct_CC 1297else 1298 CC="$ac_cv_prog_CC" 1299fi 1300 1301if test -z "$CC"; then 1302 if test -n "$ac_tool_prefix"; then 1303 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1304set dummy ${ac_tool_prefix}cc; ac_word=$2 1305echo "$as_me:1305: checking for $ac_word" >&5 1306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1307if test "${ac_cv_prog_CC+set}" = set; then 1308 echo $ECHO_N "(cached) $ECHO_C" >&6 1309else 1310 if test -n "$CC"; then 1311 ac_cv_prog_CC="$CC" # Let the user override the test. 1312else 1313 ac_save_IFS=$IFS; IFS=$ac_path_separator 1314ac_dummy="$PATH" 1315for ac_dir in $ac_dummy; do 1316 IFS=$ac_save_IFS 1317 test -z "$ac_dir" && ac_dir=. 1318 $as_executable_p "$ac_dir/$ac_word" || continue 1319ac_cv_prog_CC="${ac_tool_prefix}cc" 1320echo "$as_me:1320: found $ac_dir/$ac_word" >&5 1321break 1322done 1323 1324fi 1325fi 1326CC=$ac_cv_prog_CC 1327if test -n "$CC"; then 1328 echo "$as_me:1328: result: $CC" >&5 1329echo "${ECHO_T}$CC" >&6 1330else 1331 echo "$as_me:1331: result: no" >&5 1332echo "${ECHO_T}no" >&6 1333fi 1334 1335fi 1336if test -z "$ac_cv_prog_CC"; then 1337 ac_ct_CC=$CC 1338 # Extract the first word of "cc", so it can be a program name with args. 1339set dummy cc; ac_word=$2 1340echo "$as_me:1340: checking for $ac_word" >&5 1341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1342if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1343 echo $ECHO_N "(cached) $ECHO_C" >&6 1344else 1345 if test -n "$ac_ct_CC"; then 1346 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1347else 1348 ac_save_IFS=$IFS; IFS=$ac_path_separator 1349ac_dummy="$PATH" 1350for ac_dir in $ac_dummy; do 1351 IFS=$ac_save_IFS 1352 test -z "$ac_dir" && ac_dir=. 1353 $as_executable_p "$ac_dir/$ac_word" || continue 1354ac_cv_prog_ac_ct_CC="cc" 1355echo "$as_me:1355: found $ac_dir/$ac_word" >&5 1356break 1357done 1358 1359fi 1360fi 1361ac_ct_CC=$ac_cv_prog_ac_ct_CC 1362if test -n "$ac_ct_CC"; then 1363 echo "$as_me:1363: result: $ac_ct_CC" >&5 1364echo "${ECHO_T}$ac_ct_CC" >&6 1365else 1366 echo "$as_me:1366: result: no" >&5 1367echo "${ECHO_T}no" >&6 1368fi 1369 1370 CC=$ac_ct_CC 1371else 1372 CC="$ac_cv_prog_CC" 1373fi 1374 1375fi 1376if test -z "$CC"; then 1377 # Extract the first word of "cc", so it can be a program name with args. 1378set dummy cc; ac_word=$2 1379echo "$as_me:1379: checking for $ac_word" >&5 1380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1381if test "${ac_cv_prog_CC+set}" = set; then 1382 echo $ECHO_N "(cached) $ECHO_C" >&6 1383else 1384 if test -n "$CC"; then 1385 ac_cv_prog_CC="$CC" # Let the user override the test. 1386else 1387 ac_prog_rejected=no 1388 ac_save_IFS=$IFS; IFS=$ac_path_separator 1389ac_dummy="$PATH" 1390for ac_dir in $ac_dummy; do 1391 IFS=$ac_save_IFS 1392 test -z "$ac_dir" && ac_dir=. 1393 $as_executable_p "$ac_dir/$ac_word" || continue 1394if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1395 ac_prog_rejected=yes 1396 continue 1397fi 1398ac_cv_prog_CC="cc" 1399echo "$as_me:1399: found $ac_dir/$ac_word" >&5 1400break 1401done 1402 1403if test $ac_prog_rejected = yes; then 1404 # We found a bogon in the path, so make sure we never use it. 1405 set dummy $ac_cv_prog_CC 1406 shift 1407 if test $# != 0; then 1408 # We chose a different compiler from the bogus one. 1409 # However, it has the same basename, so the bogon will be chosen 1410 # first if we set CC to just the basename; use the full file name. 1411 shift 1412 set dummy "$ac_dir/$ac_word" ${1+"$@"} 1413 shift 1414 ac_cv_prog_CC="$@" 1415 fi 1416fi 1417fi 1418fi 1419CC=$ac_cv_prog_CC 1420if test -n "$CC"; then 1421 echo "$as_me:1421: result: $CC" >&5 1422echo "${ECHO_T}$CC" >&6 1423else 1424 echo "$as_me:1424: result: no" >&5 1425echo "${ECHO_T}no" >&6 1426fi 1427 1428fi 1429if test -z "$CC"; then 1430 if test -n "$ac_tool_prefix"; then 1431 for ac_prog in cl 1432 do 1433 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1434set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1435echo "$as_me:1435: checking for $ac_word" >&5 1436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1437if test "${ac_cv_prog_CC+set}" = set; then 1438 echo $ECHO_N "(cached) $ECHO_C" >&6 1439else 1440 if test -n "$CC"; then 1441 ac_cv_prog_CC="$CC" # Let the user override the test. 1442else 1443 ac_save_IFS=$IFS; IFS=$ac_path_separator 1444ac_dummy="$PATH" 1445for ac_dir in $ac_dummy; do 1446 IFS=$ac_save_IFS 1447 test -z "$ac_dir" && ac_dir=. 1448 $as_executable_p "$ac_dir/$ac_word" || continue 1449ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1450echo "$as_me:1450: found $ac_dir/$ac_word" >&5 1451break 1452done 1453 1454fi 1455fi 1456CC=$ac_cv_prog_CC 1457if test -n "$CC"; then 1458 echo "$as_me:1458: result: $CC" >&5 1459echo "${ECHO_T}$CC" >&6 1460else 1461 echo "$as_me:1461: result: no" >&5 1462echo "${ECHO_T}no" >&6 1463fi 1464 1465 test -n "$CC" && break 1466 done 1467fi 1468if test -z "$CC"; then 1469 ac_ct_CC=$CC 1470 for ac_prog in cl 1471do 1472 # Extract the first word of "$ac_prog", so it can be a program name with args. 1473set dummy $ac_prog; ac_word=$2 1474echo "$as_me:1474: checking for $ac_word" >&5 1475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1476if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1477 echo $ECHO_N "(cached) $ECHO_C" >&6 1478else 1479 if test -n "$ac_ct_CC"; then 1480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1481else 1482 ac_save_IFS=$IFS; IFS=$ac_path_separator 1483ac_dummy="$PATH" 1484for ac_dir in $ac_dummy; do 1485 IFS=$ac_save_IFS 1486 test -z "$ac_dir" && ac_dir=. 1487 $as_executable_p "$ac_dir/$ac_word" || continue 1488ac_cv_prog_ac_ct_CC="$ac_prog" 1489echo "$as_me:1489: found $ac_dir/$ac_word" >&5 1490break 1491done 1492 1493fi 1494fi 1495ac_ct_CC=$ac_cv_prog_ac_ct_CC 1496if test -n "$ac_ct_CC"; then 1497 echo "$as_me:1497: result: $ac_ct_CC" >&5 1498echo "${ECHO_T}$ac_ct_CC" >&6 1499else 1500 echo "$as_me:1500: result: no" >&5 1501echo "${ECHO_T}no" >&6 1502fi 1503 1504 test -n "$ac_ct_CC" && break 1505done 1506 1507 CC=$ac_ct_CC 1508fi 1509 1510fi 1511 1512test -z "$CC" && { { echo "$as_me:1512: error: no acceptable cc found in \$PATH" >&5 1513echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1514 { (exit 1); exit 1; }; } 1515 1516# Provide some information about the compiler. 1517echo "$as_me:1517:" \ 1518 "checking for C compiler version" >&5 1519ac_compiler=`set X $ac_compile; echo $2` 1520{ (eval echo "$as_me:1520: \"$ac_compiler --version </dev/null >&5\"") >&5 1521 (eval $ac_compiler --version </dev/null >&5) 2>&5 1522 ac_status=$? 1523 echo "$as_me:1523: \$? = $ac_status" >&5 1524 (exit $ac_status); } 1525{ (eval echo "$as_me:1525: \"$ac_compiler -v </dev/null >&5\"") >&5 1526 (eval $ac_compiler -v </dev/null >&5) 2>&5 1527 ac_status=$? 1528 echo "$as_me:1528: \$? = $ac_status" >&5 1529 (exit $ac_status); } 1530{ (eval echo "$as_me:1530: \"$ac_compiler -V </dev/null >&5\"") >&5 1531 (eval $ac_compiler -V </dev/null >&5) 2>&5 1532 ac_status=$? 1533 echo "$as_me:1533: \$? = $ac_status" >&5 1534 (exit $ac_status); } 1535 1536cat >conftest.$ac_ext <<_ACEOF 1537#line 1537 "configure" 1538#include "confdefs.h" 1539 1540int 1541main () 1542{ 1543 1544 ; 1545 return 0; 1546} 1547_ACEOF 1548ac_clean_files_save=$ac_clean_files 1549ac_clean_files="$ac_clean_files a.out a.exe" 1550# Try to create an executable without -o first, disregard a.out. 1551# It will help us diagnose broken compilers, and finding out an intuition 1552# of exeext. 1553echo "$as_me:1553: checking for C compiler default output" >&5 1554echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1555ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1556if { (eval echo "$as_me:1556: \"$ac_link_default\"") >&5 1557 (eval $ac_link_default) 2>&5 1558 ac_status=$? 1559 echo "$as_me:1559: \$? = $ac_status" >&5 1560 (exit $ac_status); }; then 1561 # Find the output, starting from the most likely. This scheme is 1562# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1563# resort. 1564for ac_file in `ls a.exe conftest.exe 2>/dev/null; 1565 ls a.out conftest 2>/dev/null; 1566 ls a.* conftest.* 2>/dev/null`; do 1567 case $ac_file in 1568 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1569 a.out ) # We found the default executable, but exeext='' is most 1570 # certainly right. 1571 break;; 1572 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1573 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 1574 export ac_cv_exeext 1575 break;; 1576 * ) break;; 1577 esac 1578done 1579else 1580 echo "$as_me: failed program was:" >&5 1581cat conftest.$ac_ext >&5 1582{ { echo "$as_me:1582: error: C compiler cannot create executables" >&5 1583echo "$as_me: error: C compiler cannot create executables" >&2;} 1584 { (exit 77); exit 77; }; } 1585fi 1586 1587ac_exeext=$ac_cv_exeext 1588echo "$as_me:1588: result: $ac_file" >&5 1589echo "${ECHO_T}$ac_file" >&6 1590 1591# Check the compiler produces executables we can run. If not, either 1592# the compiler is broken, or we cross compile. 1593echo "$as_me:1593: checking whether the C compiler works" >&5 1594echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1595# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1596# If not cross compiling, check that we can run a simple program. 1597if test "$cross_compiling" != yes; then 1598 if { ac_try='./$ac_file' 1599 { (eval echo "$as_me:1599: \"$ac_try\"") >&5 1600 (eval $ac_try) 2>&5 1601 ac_status=$? 1602 echo "$as_me:1602: \$? = $ac_status" >&5 1603 (exit $ac_status); }; }; then 1604 cross_compiling=no 1605 else 1606 if test "$cross_compiling" = maybe; then 1607 cross_compiling=yes 1608 else 1609 { { echo "$as_me:1609: error: cannot run C compiled programs. 1610If you meant to cross compile, use \`--host'." >&5 1611echo "$as_me: error: cannot run C compiled programs. 1612If you meant to cross compile, use \`--host'." >&2;} 1613 { (exit 1); exit 1; }; } 1614 fi 1615 fi 1616fi 1617echo "$as_me:1617: result: yes" >&5 1618echo "${ECHO_T}yes" >&6 1619 1620rm -f a.out a.exe conftest$ac_cv_exeext 1621ac_clean_files=$ac_clean_files_save 1622# Check the compiler produces executables we can run. If not, either 1623# the compiler is broken, or we cross compile. 1624echo "$as_me:1624: checking whether we are cross compiling" >&5 1625echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1626echo "$as_me:1626: result: $cross_compiling" >&5 1627echo "${ECHO_T}$cross_compiling" >&6 1628 1629echo "$as_me:1629: checking for executable suffix" >&5 1630echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1631if { (eval echo "$as_me:1631: \"$ac_link\"") >&5 1632 (eval $ac_link) 2>&5 1633 ac_status=$? 1634 echo "$as_me:1634: \$? = $ac_status" >&5 1635 (exit $ac_status); }; then 1636 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1637# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1638# work properly (i.e., refer to `conftest.exe'), while it won't with 1639# `rm'. 1640for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1641 case $ac_file in 1642 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1643 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1644 export ac_cv_exeext 1645 break;; 1646 * ) break;; 1647 esac 1648done 1649else 1650 { { echo "$as_me:1650: error: cannot compute EXEEXT: cannot compile and link" >&5 1651echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1652 { (exit 1); exit 1; }; } 1653fi 1654 1655rm -f conftest$ac_cv_exeext 1656echo "$as_me:1656: result: $ac_cv_exeext" >&5 1657echo "${ECHO_T}$ac_cv_exeext" >&6 1658 1659rm -f conftest.$ac_ext 1660EXEEXT=$ac_cv_exeext 1661ac_exeext=$EXEEXT 1662echo "$as_me:1662: checking for object suffix" >&5 1663echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 1664if test "${ac_cv_objext+set}" = set; then 1665 echo $ECHO_N "(cached) $ECHO_C" >&6 1666else 1667 cat >conftest.$ac_ext <<_ACEOF 1668#line 1668 "configure" 1669#include "confdefs.h" 1670 1671int 1672main () 1673{ 1674 1675 ; 1676 return 0; 1677} 1678_ACEOF 1679rm -f conftest.o conftest.obj 1680if { (eval echo "$as_me:1680: \"$ac_compile\"") >&5 1681 (eval $ac_compile) 2>&5 1682 ac_status=$? 1683 echo "$as_me:1683: \$? = $ac_status" >&5 1684 (exit $ac_status); }; then 1685 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1686 case $ac_file in 1687 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;; 1688 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1689 break;; 1690 esac 1691done 1692else 1693 echo "$as_me: failed program was:" >&5 1694cat conftest.$ac_ext >&5 1695{ { echo "$as_me:1695: error: cannot compute OBJEXT: cannot compile" >&5 1696echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1697 { (exit 1); exit 1; }; } 1698fi 1699 1700rm -f conftest.$ac_cv_objext conftest.$ac_ext 1701fi 1702echo "$as_me:1702: result: $ac_cv_objext" >&5 1703echo "${ECHO_T}$ac_cv_objext" >&6 1704OBJEXT=$ac_cv_objext 1705ac_objext=$OBJEXT 1706echo "$as_me:1706: checking whether we are using the GNU C compiler" >&5 1707echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1708if test "${ac_cv_c_compiler_gnu+set}" = set; then 1709 echo $ECHO_N "(cached) $ECHO_C" >&6 1710else 1711 cat >conftest.$ac_ext <<_ACEOF 1712#line 1712 "configure" 1713#include "confdefs.h" 1714 1715int 1716main () 1717{ 1718#ifndef __GNUC__ 1719 choke me 1720#endif 1721 1722 ; 1723 return 0; 1724} 1725_ACEOF 1726rm -f conftest.$ac_objext 1727if { (eval echo "$as_me:1727: \"$ac_compile\"") >&5 1728 (eval $ac_compile) 2>&5 1729 ac_status=$? 1730 echo "$as_me:1730: \$? = $ac_status" >&5 1731 (exit $ac_status); } && 1732 { ac_try='test -s conftest.$ac_objext' 1733 { (eval echo "$as_me:1733: \"$ac_try\"") >&5 1734 (eval $ac_try) 2>&5 1735 ac_status=$? 1736 echo "$as_me:1736: \$? = $ac_status" >&5 1737 (exit $ac_status); }; }; then 1738 ac_compiler_gnu=yes 1739else 1740 echo "$as_me: failed program was:" >&5 1741cat conftest.$ac_ext >&5 1742ac_compiler_gnu=no 1743fi 1744rm -f conftest.$ac_objext conftest.$ac_ext 1745ac_cv_c_compiler_gnu=$ac_compiler_gnu 1746 1747fi 1748echo "$as_me:1748: result: $ac_cv_c_compiler_gnu" >&5 1749echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1750GCC=`test $ac_compiler_gnu = yes && echo yes` 1751ac_test_CFLAGS=${CFLAGS+set} 1752ac_save_CFLAGS=$CFLAGS 1753CFLAGS="-g" 1754echo "$as_me:1754: checking whether $CC accepts -g" >&5 1755echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1756if test "${ac_cv_prog_cc_g+set}" = set; then 1757 echo $ECHO_N "(cached) $ECHO_C" >&6 1758else 1759 cat >conftest.$ac_ext <<_ACEOF 1760#line 1760 "configure" 1761#include "confdefs.h" 1762 1763int 1764main () 1765{ 1766 1767 ; 1768 return 0; 1769} 1770_ACEOF 1771rm -f conftest.$ac_objext 1772if { (eval echo "$as_me:1772: \"$ac_compile\"") >&5 1773 (eval $ac_compile) 2>&5 1774 ac_status=$? 1775 echo "$as_me:1775: \$? = $ac_status" >&5 1776 (exit $ac_status); } && 1777 { ac_try='test -s conftest.$ac_objext' 1778 { (eval echo "$as_me:1778: \"$ac_try\"") >&5 1779 (eval $ac_try) 2>&5 1780 ac_status=$? 1781 echo "$as_me:1781: \$? = $ac_status" >&5 1782 (exit $ac_status); }; }; then 1783 ac_cv_prog_cc_g=yes 1784else 1785 echo "$as_me: failed program was:" >&5 1786cat conftest.$ac_ext >&5 1787ac_cv_prog_cc_g=no 1788fi 1789rm -f conftest.$ac_objext conftest.$ac_ext 1790fi 1791echo "$as_me:1791: result: $ac_cv_prog_cc_g" >&5 1792echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1793if test "$ac_test_CFLAGS" = set; then 1794 CFLAGS=$ac_save_CFLAGS 1795elif test $ac_cv_prog_cc_g = yes; then 1796 if test "$GCC" = yes; then 1797 CFLAGS="-g -O2" 1798 else 1799 CFLAGS="-g" 1800 fi 1801else 1802 if test "$GCC" = yes; then 1803 CFLAGS="-O2" 1804 else 1805 CFLAGS= 1806 fi 1807fi 1808# Some people use a C++ compiler to compile C. Since we use `exit', 1809# in C++ we need to declare it. In case someone uses the same compiler 1810# for both compiling C and C++ we need to have the C++ compiler decide 1811# the declaration of exit, since it's the most demanding environment. 1812cat >conftest.$ac_ext <<_ACEOF 1813#ifndef __cplusplus 1814 choke me 1815#endif 1816_ACEOF 1817rm -f conftest.$ac_objext 1818if { (eval echo "$as_me:1818: \"$ac_compile\"") >&5 1819 (eval $ac_compile) 2>&5 1820 ac_status=$? 1821 echo "$as_me:1821: \$? = $ac_status" >&5 1822 (exit $ac_status); } && 1823 { ac_try='test -s conftest.$ac_objext' 1824 { (eval echo "$as_me:1824: \"$ac_try\"") >&5 1825 (eval $ac_try) 2>&5 1826 ac_status=$? 1827 echo "$as_me:1827: \$? = $ac_status" >&5 1828 (exit $ac_status); }; }; then 1829 for ac_declaration in \ 1830 ''\ 1831 '#include <stdlib.h>' \ 1832 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1833 'extern "C" void std::exit (int); using std::exit;' \ 1834 'extern "C" void exit (int) throw ();' \ 1835 'extern "C" void exit (int);' \ 1836 'void exit (int);' 1837do 1838 cat >conftest.$ac_ext <<_ACEOF 1839#line 1839 "configure" 1840#include "confdefs.h" 1841#include <stdlib.h> 1842$ac_declaration 1843int 1844main () 1845{ 1846exit (42); 1847 ; 1848 return 0; 1849} 1850_ACEOF 1851rm -f conftest.$ac_objext 1852if { (eval echo "$as_me:1852: \"$ac_compile\"") >&5 1853 (eval $ac_compile) 2>&5 1854 ac_status=$? 1855 echo "$as_me:1855: \$? = $ac_status" >&5 1856 (exit $ac_status); } && 1857 { ac_try='test -s conftest.$ac_objext' 1858 { (eval echo "$as_me:1858: \"$ac_try\"") >&5 1859 (eval $ac_try) 2>&5 1860 ac_status=$? 1861 echo "$as_me:1861: \$? = $ac_status" >&5 1862 (exit $ac_status); }; }; then 1863 : 1864else 1865 echo "$as_me: failed program was:" >&5 1866cat conftest.$ac_ext >&5 1867continue 1868fi 1869rm -f conftest.$ac_objext conftest.$ac_ext 1870 cat >conftest.$ac_ext <<_ACEOF 1871#line 1871 "configure" 1872#include "confdefs.h" 1873$ac_declaration 1874int 1875main () 1876{ 1877exit (42); 1878 ; 1879 return 0; 1880} 1881_ACEOF 1882rm -f conftest.$ac_objext 1883if { (eval echo "$as_me:1883: \"$ac_compile\"") >&5 1884 (eval $ac_compile) 2>&5 1885 ac_status=$? 1886 echo "$as_me:1886: \$? = $ac_status" >&5 1887 (exit $ac_status); } && 1888 { ac_try='test -s conftest.$ac_objext' 1889 { (eval echo "$as_me:1889: \"$ac_try\"") >&5 1890 (eval $ac_try) 2>&5 1891 ac_status=$? 1892 echo "$as_me:1892: \$? = $ac_status" >&5 1893 (exit $ac_status); }; }; then 1894 break 1895else 1896 echo "$as_me: failed program was:" >&5 1897cat conftest.$ac_ext >&5 1898fi 1899rm -f conftest.$ac_objext conftest.$ac_ext 1900done 1901rm -rf conftest* 1902if test -n "$ac_declaration"; then 1903 echo '#ifdef __cplusplus' >>confdefs.h 1904 echo $ac_declaration >>confdefs.h 1905 echo '#endif' >>confdefs.h 1906fi 1907 1908else 1909 echo "$as_me: failed program was:" >&5 1910cat conftest.$ac_ext >&5 1911fi 1912rm -f conftest.$ac_objext conftest.$ac_ext 1913ac_ext=c 1914ac_cpp='$CPP $CPPFLAGS' 1915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1917ac_compiler_gnu=$ac_cv_c_compiler_gnu 1918ac_main_return=return 1919 1920GCC_VERSION=none 1921if test "$GCC" = yes ; then 1922 echo "$as_me:1922: checking version of $CC" >&5 1923echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 1924 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.].*//'`" 1925 test -z "$GCC_VERSION" && GCC_VERSION=unknown 1926 echo "$as_me:1926: result: $GCC_VERSION" >&5 1927echo "${ECHO_T}$GCC_VERSION" >&6 1928fi 1929 1930echo "$as_me:1930: checking for $CC option to accept ANSI C" >&5 1931echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 1932if test "${ac_cv_prog_cc_stdc+set}" = set; then 1933 echo $ECHO_N "(cached) $ECHO_C" >&6 1934else 1935 ac_cv_prog_cc_stdc=no 1936ac_save_CC=$CC 1937cat >conftest.$ac_ext <<_ACEOF 1938#line 1938 "configure" 1939#include "confdefs.h" 1940#include <stdarg.h> 1941#include <stdio.h> 1942#include <sys/types.h> 1943#include <sys/stat.h> 1944/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 1945struct buf { int x; }; 1946FILE * (*rcsopen) (struct buf *, struct stat *, int); 1947static char *e (p, i) 1948 char **p; 1949 int i; 1950{ 1951 return p[i]; 1952} 1953static char *f (char * (*g) (char **, int), char **p, ...) 1954{ 1955 char *s; 1956 va_list v; 1957 va_start (v,p); 1958 s = g (p, va_arg (v,int)); 1959 va_end (v); 1960 return s; 1961} 1962int test (int i, double x); 1963struct s1 {int (*f) (int a);}; 1964struct s2 {int (*f) (double a);}; 1965int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 1966int argc; 1967char **argv; 1968int 1969main () 1970{ 1971return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 1972 ; 1973 return 0; 1974} 1975_ACEOF 1976# Don't try gcc -ansi; that turns off useful extensions and 1977# breaks some systems' header files. 1978# AIX -qlanglvl=ansi 1979# Ultrix and OSF/1 -std1 1980# HP-UX 10.20 and later -Ae 1981# HP-UX older versions -Aa -D_HPUX_SOURCE 1982# SVR4 -Xc -D__EXTENSIONS__ 1983for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 1984do 1985 CC="$ac_save_CC $ac_arg" 1986 rm -f conftest.$ac_objext 1987if { (eval echo "$as_me:1987: \"$ac_compile\"") >&5 1988 (eval $ac_compile) 2>&5 1989 ac_status=$? 1990 echo "$as_me:1990: \$? = $ac_status" >&5 1991 (exit $ac_status); } && 1992 { ac_try='test -s conftest.$ac_objext' 1993 { (eval echo "$as_me:1993: \"$ac_try\"") >&5 1994 (eval $ac_try) 2>&5 1995 ac_status=$? 1996 echo "$as_me:1996: \$? = $ac_status" >&5 1997 (exit $ac_status); }; }; then 1998 ac_cv_prog_cc_stdc=$ac_arg 1999break 2000else 2001 echo "$as_me: failed program was:" >&5 2002cat conftest.$ac_ext >&5 2003fi 2004rm -f conftest.$ac_objext 2005done 2006rm -f conftest.$ac_ext conftest.$ac_objext 2007CC=$ac_save_CC 2008 2009fi 2010 2011case "x$ac_cv_prog_cc_stdc" in 2012 x|xno) 2013 echo "$as_me:2013: result: none needed" >&5 2014echo "${ECHO_T}none needed" >&6 ;; 2015 *) 2016 echo "$as_me:2016: result: $ac_cv_prog_cc_stdc" >&5 2017echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2018 CC="$CC $ac_cv_prog_cc_stdc" ;; 2019esac 2020 2021# This should have been defined by AC_PROG_CC 2022: ${CC:=cc} 2023 2024echo "$as_me:2024: checking \$CC variable" >&5 2025echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6 2026case "$CC" in 2027(*[\ \ ]-*) 2028 echo "$as_me:2028: result: broken" >&5 2029echo "${ECHO_T}broken" >&6 2030 { echo "$as_me:2030: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5 2031echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;} 2032 # humor him... 2033 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ][ ]*//'` 2034 CC=`echo "$CC" | sed -e 's/[ ].*//'` 2035 2036cf_fix_cppflags=no 2037cf_new_cflags= 2038cf_new_cppflags= 2039cf_new_extra_cppflags= 2040 2041for cf_add_cflags in $cf_flags 2042do 2043case $cf_fix_cppflags in 2044(no) 2045 case $cf_add_cflags in 2046 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 2047 case $cf_add_cflags in 2048 (-D*) 2049 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2050 2051 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2052 && test -z "${cf_tst_cflags}" \ 2053 && cf_fix_cppflags=yes 2054 2055 if test $cf_fix_cppflags = yes ; then 2056 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2057 continue 2058 elif test "${cf_tst_cflags}" = "\"'" ; then 2059 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2060 continue 2061 fi 2062 ;; 2063 esac 2064 case "$CPPFLAGS" in 2065 (*$cf_add_cflags) 2066 ;; 2067 (*) 2068 case $cf_add_cflags in 2069 (-D*) 2070 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2071 2072CPPFLAGS=`echo "$CPPFLAGS" | \ 2073 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2074 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2075 2076 ;; 2077 esac 2078 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 2079 ;; 2080 esac 2081 ;; 2082 (*) 2083 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 2084 ;; 2085 esac 2086 ;; 2087(yes) 2088 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2089 2090 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 2091 2092 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2093 && test -z "${cf_tst_cflags}" \ 2094 && cf_fix_cppflags=no 2095 ;; 2096esac 2097done 2098 2099if test -n "$cf_new_cflags" ; then 2100 2101 CFLAGS="$CFLAGS $cf_new_cflags" 2102fi 2103 2104if test -n "$cf_new_cppflags" ; then 2105 2106 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 2107fi 2108 2109if test -n "$cf_new_extra_cppflags" ; then 2110 2111 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 2112fi 2113 2114 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6 2115 2116echo "${as_me:-configure}:2116: testing resulting CC: '$CC' ..." 1>&5 2117 2118 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6 2119 2120echo "${as_me:-configure}:2120: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5 2121 2122 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6 2123 2124echo "${as_me:-configure}:2124: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5 2125 2126 ;; 2127(*) 2128 echo "$as_me:2128: result: ok" >&5 2129echo "${ECHO_T}ok" >&6 2130 ;; 2131esac 2132 2133ac_ext=c 2134ac_cpp='$CPP $CPPFLAGS' 2135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2137ac_compiler_gnu=$ac_cv_c_compiler_gnu 2138ac_main_return=return 2139echo "$as_me:2139: checking how to run the C preprocessor" >&5 2140echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2141# On Suns, sometimes $CPP names a directory. 2142if test -n "$CPP" && test -d "$CPP"; then 2143 CPP= 2144fi 2145if test -z "$CPP"; then 2146 if test "${ac_cv_prog_CPP+set}" = set; then 2147 echo $ECHO_N "(cached) $ECHO_C" >&6 2148else 2149 # Double quotes because CPP needs to be expanded 2150 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2151 do 2152 ac_preproc_ok=false 2153for ac_c_preproc_warn_flag in '' yes 2154do 2155 # Use a header file that comes with gcc, so configuring glibc 2156 # with a fresh cross-compiler works. 2157 # On the NeXT, cc -E runs the code through the compiler's parser, 2158 # not just through cpp. "Syntax error" is here to catch this case. 2159 cat >conftest.$ac_ext <<_ACEOF 2160#line 2160 "configure" 2161#include "confdefs.h" 2162#include <assert.h> 2163 Syntax error 2164_ACEOF 2165if { (eval echo "$as_me:2165: \"$ac_cpp conftest.$ac_ext\"") >&5 2166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2167 ac_status=$? 2168 egrep -v '^ *\+' conftest.er1 >conftest.err 2169 rm -f conftest.er1 2170 cat conftest.err >&5 2171 echo "$as_me:2171: \$? = $ac_status" >&5 2172 (exit $ac_status); } >/dev/null; then 2173 if test -s conftest.err; then 2174 ac_cpp_err=$ac_c_preproc_warn_flag 2175 else 2176 ac_cpp_err= 2177 fi 2178else 2179 ac_cpp_err=yes 2180fi 2181if test -z "$ac_cpp_err"; then 2182 : 2183else 2184 echo "$as_me: failed program was:" >&5 2185 cat conftest.$ac_ext >&5 2186 # Broken: fails on valid input. 2187continue 2188fi 2189rm -f conftest.err conftest.$ac_ext 2190 2191 # OK, works on sane cases. Now check whether non-existent headers 2192 # can be detected and how. 2193 cat >conftest.$ac_ext <<_ACEOF 2194#line 2194 "configure" 2195#include "confdefs.h" 2196#include <ac_nonexistent.h> 2197_ACEOF 2198if { (eval echo "$as_me:2198: \"$ac_cpp conftest.$ac_ext\"") >&5 2199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2200 ac_status=$? 2201 egrep -v '^ *\+' conftest.er1 >conftest.err 2202 rm -f conftest.er1 2203 cat conftest.err >&5 2204 echo "$as_me:2204: \$? = $ac_status" >&5 2205 (exit $ac_status); } >/dev/null; then 2206 if test -s conftest.err; then 2207 ac_cpp_err=$ac_c_preproc_warn_flag 2208 else 2209 ac_cpp_err= 2210 fi 2211else 2212 ac_cpp_err=yes 2213fi 2214if test -z "$ac_cpp_err"; then 2215 # Broken: success on invalid input. 2216continue 2217else 2218 echo "$as_me: failed program was:" >&5 2219 cat conftest.$ac_ext >&5 2220 # Passes both tests. 2221ac_preproc_ok=: 2222break 2223fi 2224rm -f conftest.err conftest.$ac_ext 2225 2226done 2227# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2228rm -f conftest.err conftest.$ac_ext 2229if $ac_preproc_ok; then 2230 break 2231fi 2232 2233 done 2234 ac_cv_prog_CPP=$CPP 2235 2236fi 2237 CPP=$ac_cv_prog_CPP 2238else 2239 ac_cv_prog_CPP=$CPP 2240fi 2241echo "$as_me:2241: result: $CPP" >&5 2242echo "${ECHO_T}$CPP" >&6 2243ac_preproc_ok=false 2244for ac_c_preproc_warn_flag in '' yes 2245do 2246 # Use a header file that comes with gcc, so configuring glibc 2247 # with a fresh cross-compiler works. 2248 # On the NeXT, cc -E runs the code through the compiler's parser, 2249 # not just through cpp. "Syntax error" is here to catch this case. 2250 cat >conftest.$ac_ext <<_ACEOF 2251#line 2251 "configure" 2252#include "confdefs.h" 2253#include <assert.h> 2254 Syntax error 2255_ACEOF 2256if { (eval echo "$as_me:2256: \"$ac_cpp conftest.$ac_ext\"") >&5 2257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2258 ac_status=$? 2259 egrep -v '^ *\+' conftest.er1 >conftest.err 2260 rm -f conftest.er1 2261 cat conftest.err >&5 2262 echo "$as_me:2262: \$? = $ac_status" >&5 2263 (exit $ac_status); } >/dev/null; then 2264 if test -s conftest.err; then 2265 ac_cpp_err=$ac_c_preproc_warn_flag 2266 else 2267 ac_cpp_err= 2268 fi 2269else 2270 ac_cpp_err=yes 2271fi 2272if test -z "$ac_cpp_err"; then 2273 : 2274else 2275 echo "$as_me: failed program was:" >&5 2276 cat conftest.$ac_ext >&5 2277 # Broken: fails on valid input. 2278continue 2279fi 2280rm -f conftest.err conftest.$ac_ext 2281 2282 # OK, works on sane cases. Now check whether non-existent headers 2283 # can be detected and how. 2284 cat >conftest.$ac_ext <<_ACEOF 2285#line 2285 "configure" 2286#include "confdefs.h" 2287#include <ac_nonexistent.h> 2288_ACEOF 2289if { (eval echo "$as_me:2289: \"$ac_cpp conftest.$ac_ext\"") >&5 2290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2291 ac_status=$? 2292 egrep -v '^ *\+' conftest.er1 >conftest.err 2293 rm -f conftest.er1 2294 cat conftest.err >&5 2295 echo "$as_me:2295: \$? = $ac_status" >&5 2296 (exit $ac_status); } >/dev/null; then 2297 if test -s conftest.err; then 2298 ac_cpp_err=$ac_c_preproc_warn_flag 2299 else 2300 ac_cpp_err= 2301 fi 2302else 2303 ac_cpp_err=yes 2304fi 2305if test -z "$ac_cpp_err"; then 2306 # Broken: success on invalid input. 2307continue 2308else 2309 echo "$as_me: failed program was:" >&5 2310 cat conftest.$ac_ext >&5 2311 # Passes both tests. 2312ac_preproc_ok=: 2313break 2314fi 2315rm -f conftest.err conftest.$ac_ext 2316 2317done 2318# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2319rm -f conftest.err conftest.$ac_ext 2320if $ac_preproc_ok; then 2321 : 2322else 2323 { { echo "$as_me:2323: error: C preprocessor \"$CPP\" fails sanity check" >&5 2324echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 2325 { (exit 1); exit 1; }; } 2326fi 2327 2328ac_ext=c 2329ac_cpp='$CPP $CPPFLAGS' 2330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2332ac_compiler_gnu=$ac_cv_c_compiler_gnu 2333ac_main_return=return 2334 2335for ac_prog in mawk gawk nawk awk 2336do 2337 # Extract the first word of "$ac_prog", so it can be a program name with args. 2338set dummy $ac_prog; ac_word=$2 2339echo "$as_me:2339: checking for $ac_word" >&5 2340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2341if test "${ac_cv_prog_AWK+set}" = set; then 2342 echo $ECHO_N "(cached) $ECHO_C" >&6 2343else 2344 if test -n "$AWK"; then 2345 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2346else 2347 ac_save_IFS=$IFS; IFS=$ac_path_separator 2348ac_dummy="$PATH" 2349for ac_dir in $ac_dummy; do 2350 IFS=$ac_save_IFS 2351 test -z "$ac_dir" && ac_dir=. 2352 $as_executable_p "$ac_dir/$ac_word" || continue 2353ac_cv_prog_AWK="$ac_prog" 2354echo "$as_me:2354: found $ac_dir/$ac_word" >&5 2355break 2356done 2357 2358fi 2359fi 2360AWK=$ac_cv_prog_AWK 2361if test -n "$AWK"; then 2362 echo "$as_me:2362: result: $AWK" >&5 2363echo "${ECHO_T}$AWK" >&6 2364else 2365 echo "$as_me:2365: result: no" >&5 2366echo "${ECHO_T}no" >&6 2367fi 2368 2369 test -n "$AWK" && break 2370done 2371 2372# Find a good install program. We prefer a C program (faster), 2373# so one script is as good as another. But avoid the broken or 2374# incompatible versions: 2375# SysV /etc/install, /usr/sbin/install 2376# SunOS /usr/etc/install 2377# IRIX /sbin/install 2378# AIX /bin/install 2379# AmigaOS /C/install, which installs bootblocks on floppy discs 2380# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2381# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2382# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2383# ./install, which can be erroneously created by make from ./install.sh. 2384echo "$as_me:2384: checking for a BSD compatible install" >&5 2385echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 2386if test -z "$INSTALL"; then 2387if test "${ac_cv_path_install+set}" = set; then 2388 echo $ECHO_N "(cached) $ECHO_C" >&6 2389else 2390 ac_save_IFS=$IFS; IFS=$ac_path_separator 2391 for ac_dir in $PATH; do 2392 IFS=$ac_save_IFS 2393 # Account for people who put trailing slashes in PATH elements. 2394 case $ac_dir/ in 2395 / | ./ | .// | /cC/* \ 2396 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 2397 | /usr/ucb/* ) ;; 2398 *) 2399 # OSF1 and SCO ODT 3.0 have their own names for install. 2400 # Don't use installbsd from OSF since it installs stuff as root 2401 # by default. 2402 for ac_prog in ginstall scoinst install; do 2403 if $as_executable_p "$ac_dir/$ac_prog"; then 2404 if test $ac_prog = install && 2405 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2406 # AIX install. It has an incompatible calling convention. 2407 : 2408 elif test $ac_prog = install && 2409 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2410 # program-specific install script used by HP pwplus--don't use. 2411 : 2412 else 2413 ac_cv_path_install="$ac_dir/$ac_prog -c" 2414 break 2 2415 fi 2416 fi 2417 done 2418 ;; 2419 esac 2420 done 2421 2422fi 2423 if test "${ac_cv_path_install+set}" = set; then 2424 INSTALL=$ac_cv_path_install 2425 else 2426 # As a last resort, use the slow shell script. We don't cache a 2427 # path for INSTALL within a source directory, because that will 2428 # break other packages using the cache if that directory is 2429 # removed, or if the path is relative. 2430 INSTALL=$ac_install_sh 2431 fi 2432fi 2433echo "$as_me:2433: result: $INSTALL" >&5 2434echo "${ECHO_T}$INSTALL" >&6 2435 2436# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2437# It thinks the first close brace ends the variable substitution. 2438test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2439 2440test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2441 2442test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2443 2444echo "$as_me:2444: checking whether ln -s works" >&5 2445echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2446LN_S=$as_ln_s 2447if test "$LN_S" = "ln -s"; then 2448 echo "$as_me:2448: result: yes" >&5 2449echo "${ECHO_T}yes" >&6 2450else 2451 echo "$as_me:2451: result: no, using $LN_S" >&5 2452echo "${ECHO_T}no, using $LN_S" >&6 2453fi 2454 2455test "$program_prefix" != NONE && 2456 program_transform_name="s,^,$program_prefix,;$program_transform_name" 2457# Use a double $ so make ignores it. 2458test "$program_suffix" != NONE && 2459 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 2460# Double any \ or $. echo might interpret backslashes. 2461# By default was `s,x,x', remove it if useless. 2462cat <<\_ACEOF >conftest.sed 2463s/[\\$]/&&/g;s/;s,x,x,$// 2464_ACEOF 2465program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2466rm conftest.sed 2467 2468for ac_prog in lint cppcheck splint 2469do 2470 # Extract the first word of "$ac_prog", so it can be a program name with args. 2471set dummy $ac_prog; ac_word=$2 2472echo "$as_me:2472: checking for $ac_word" >&5 2473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2474if test "${ac_cv_prog_LINT+set}" = set; then 2475 echo $ECHO_N "(cached) $ECHO_C" >&6 2476else 2477 if test -n "$LINT"; then 2478 ac_cv_prog_LINT="$LINT" # Let the user override the test. 2479else 2480 ac_save_IFS=$IFS; IFS=$ac_path_separator 2481ac_dummy="$PATH" 2482for ac_dir in $ac_dummy; do 2483 IFS=$ac_save_IFS 2484 test -z "$ac_dir" && ac_dir=. 2485 $as_executable_p "$ac_dir/$ac_word" || continue 2486ac_cv_prog_LINT="$ac_prog" 2487echo "$as_me:2487: found $ac_dir/$ac_word" >&5 2488break 2489done 2490 2491fi 2492fi 2493LINT=$ac_cv_prog_LINT 2494if test -n "$LINT"; then 2495 echo "$as_me:2495: result: $LINT" >&5 2496echo "${ECHO_T}$LINT" >&6 2497else 2498 echo "$as_me:2498: result: no" >&5 2499echo "${ECHO_T}no" >&6 2500fi 2501 2502 test -n "$LINT" && break 2503done 2504 2505### checks for compiler characteristics 2506 2507cf_XOPEN_SOURCE=500 2508cf_POSIX_C_SOURCE=199506L 2509cf_xopen_source= 2510 2511case $host_os in 2512(aix[4-7]*) 2513 cf_xopen_source="-D_ALL_SOURCE" 2514 ;; 2515(cygwin|msys) 2516 cf_XOPEN_SOURCE=600 2517 ;; 2518(darwin[0-8].*) 2519 cf_xopen_source="-D_APPLE_C_SOURCE" 2520 ;; 2521(darwin*) 2522 cf_xopen_source="-D_DARWIN_C_SOURCE" 2523 cf_XOPEN_SOURCE= 2524 ;; 2525(freebsd*|dragonfly*) 2526 # 5.x headers associate 2527 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L 2528 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L 2529 cf_POSIX_C_SOURCE=200112L 2530 cf_XOPEN_SOURCE=600 2531 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 2532 ;; 2533(hpux11*) 2534 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500" 2535 ;; 2536(hpux*) 2537 cf_xopen_source="-D_HPUX_SOURCE" 2538 ;; 2539(irix[56].*) 2540 cf_xopen_source="-D_SGI_SOURCE" 2541 cf_XOPEN_SOURCE= 2542 ;; 2543(linux*|gnu*|mint*|k*bsd*-gnu) 2544 2545echo "$as_me:2545: checking if we must define _GNU_SOURCE" >&5 2546echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6 2547if test "${cf_cv_gnu_source+set}" = set; then 2548 echo $ECHO_N "(cached) $ECHO_C" >&6 2549else 2550 2551cat >conftest.$ac_ext <<_ACEOF 2552#line 2552 "configure" 2553#include "confdefs.h" 2554#include <sys/types.h> 2555int 2556main () 2557{ 2558 2559#ifndef _XOPEN_SOURCE 2560make an error 2561#endif 2562 ; 2563 return 0; 2564} 2565_ACEOF 2566rm -f conftest.$ac_objext 2567if { (eval echo "$as_me:2567: \"$ac_compile\"") >&5 2568 (eval $ac_compile) 2>&5 2569 ac_status=$? 2570 echo "$as_me:2570: \$? = $ac_status" >&5 2571 (exit $ac_status); } && 2572 { ac_try='test -s conftest.$ac_objext' 2573 { (eval echo "$as_me:2573: \"$ac_try\"") >&5 2574 (eval $ac_try) 2>&5 2575 ac_status=$? 2576 echo "$as_me:2576: \$? = $ac_status" >&5 2577 (exit $ac_status); }; }; then 2578 cf_cv_gnu_source=no 2579else 2580 echo "$as_me: failed program was:" >&5 2581cat conftest.$ac_ext >&5 2582cf_save="$CPPFLAGS" 2583 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 2584 cat >conftest.$ac_ext <<_ACEOF 2585#line 2585 "configure" 2586#include "confdefs.h" 2587#include <sys/types.h> 2588int 2589main () 2590{ 2591 2592#ifdef _XOPEN_SOURCE 2593make an error 2594#endif 2595 ; 2596 return 0; 2597} 2598_ACEOF 2599rm -f conftest.$ac_objext 2600if { (eval echo "$as_me:2600: \"$ac_compile\"") >&5 2601 (eval $ac_compile) 2>&5 2602 ac_status=$? 2603 echo "$as_me:2603: \$? = $ac_status" >&5 2604 (exit $ac_status); } && 2605 { ac_try='test -s conftest.$ac_objext' 2606 { (eval echo "$as_me:2606: \"$ac_try\"") >&5 2607 (eval $ac_try) 2>&5 2608 ac_status=$? 2609 echo "$as_me:2609: \$? = $ac_status" >&5 2610 (exit $ac_status); }; }; then 2611 cf_cv_gnu_source=no 2612else 2613 echo "$as_me: failed program was:" >&5 2614cat conftest.$ac_ext >&5 2615cf_cv_gnu_source=yes 2616fi 2617rm -f conftest.$ac_objext conftest.$ac_ext 2618 CPPFLAGS="$cf_save" 2619 2620fi 2621rm -f conftest.$ac_objext conftest.$ac_ext 2622 2623fi 2624echo "$as_me:2624: result: $cf_cv_gnu_source" >&5 2625echo "${ECHO_T}$cf_cv_gnu_source" >&6 2626test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 2627 2628 ;; 2629(minix*) 2630 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this... 2631 ;; 2632(mirbsd*) 2633 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types 2634 cf_XOPEN_SOURCE= 2635 2636cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 2637 2638cf_save_CFLAGS="$CFLAGS" 2639cf_save_CPPFLAGS="$CPPFLAGS" 2640 2641cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 2642 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 2643 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 2644 2645cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 2646 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 2647 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 2648 2649echo "$as_me:2649: checking if we should define _POSIX_C_SOURCE" >&5 2650echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 2651if test "${cf_cv_posix_c_source+set}" = set; then 2652 echo $ECHO_N "(cached) $ECHO_C" >&6 2653else 2654 2655echo "${as_me:-configure}:2655: testing if the symbol is already defined go no further ..." 1>&5 2656 2657 cat >conftest.$ac_ext <<_ACEOF 2658#line 2658 "configure" 2659#include "confdefs.h" 2660#include <sys/types.h> 2661int 2662main () 2663{ 2664 2665#ifndef _POSIX_C_SOURCE 2666make an error 2667#endif 2668 ; 2669 return 0; 2670} 2671_ACEOF 2672rm -f conftest.$ac_objext 2673if { (eval echo "$as_me:2673: \"$ac_compile\"") >&5 2674 (eval $ac_compile) 2>&5 2675 ac_status=$? 2676 echo "$as_me:2676: \$? = $ac_status" >&5 2677 (exit $ac_status); } && 2678 { ac_try='test -s conftest.$ac_objext' 2679 { (eval echo "$as_me:2679: \"$ac_try\"") >&5 2680 (eval $ac_try) 2>&5 2681 ac_status=$? 2682 echo "$as_me:2682: \$? = $ac_status" >&5 2683 (exit $ac_status); }; }; then 2684 cf_cv_posix_c_source=no 2685else 2686 echo "$as_me: failed program was:" >&5 2687cat conftest.$ac_ext >&5 2688cf_want_posix_source=no 2689 case .$cf_POSIX_C_SOURCE in 2690 (.[12]??*) 2691 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 2692 ;; 2693 (.2) 2694 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 2695 cf_want_posix_source=yes 2696 ;; 2697 (.*) 2698 cf_want_posix_source=yes 2699 ;; 2700 esac 2701 if test "$cf_want_posix_source" = yes ; then 2702 cat >conftest.$ac_ext <<_ACEOF 2703#line 2703 "configure" 2704#include "confdefs.h" 2705#include <sys/types.h> 2706int 2707main () 2708{ 2709 2710#ifdef _POSIX_SOURCE 2711make an error 2712#endif 2713 ; 2714 return 0; 2715} 2716_ACEOF 2717rm -f conftest.$ac_objext 2718if { (eval echo "$as_me:2718: \"$ac_compile\"") >&5 2719 (eval $ac_compile) 2>&5 2720 ac_status=$? 2721 echo "$as_me:2721: \$? = $ac_status" >&5 2722 (exit $ac_status); } && 2723 { ac_try='test -s conftest.$ac_objext' 2724 { (eval echo "$as_me:2724: \"$ac_try\"") >&5 2725 (eval $ac_try) 2>&5 2726 ac_status=$? 2727 echo "$as_me:2727: \$? = $ac_status" >&5 2728 (exit $ac_status); }; }; then 2729 : 2730else 2731 echo "$as_me: failed program was:" >&5 2732cat conftest.$ac_ext >&5 2733cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 2734fi 2735rm -f conftest.$ac_objext conftest.$ac_ext 2736 fi 2737 2738echo "${as_me:-configure}:2738: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 2739 2740 CFLAGS="$cf_trim_CFLAGS" 2741 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source" 2742 2743echo "${as_me:-configure}:2743: testing if the second compile does not leave our definition intact error ..." 1>&5 2744 2745 cat >conftest.$ac_ext <<_ACEOF 2746#line 2746 "configure" 2747#include "confdefs.h" 2748#include <sys/types.h> 2749int 2750main () 2751{ 2752 2753#ifndef _POSIX_C_SOURCE 2754make an error 2755#endif 2756 ; 2757 return 0; 2758} 2759_ACEOF 2760rm -f conftest.$ac_objext 2761if { (eval echo "$as_me:2761: \"$ac_compile\"") >&5 2762 (eval $ac_compile) 2>&5 2763 ac_status=$? 2764 echo "$as_me:2764: \$? = $ac_status" >&5 2765 (exit $ac_status); } && 2766 { ac_try='test -s conftest.$ac_objext' 2767 { (eval echo "$as_me:2767: \"$ac_try\"") >&5 2768 (eval $ac_try) 2>&5 2769 ac_status=$? 2770 echo "$as_me:2770: \$? = $ac_status" >&5 2771 (exit $ac_status); }; }; then 2772 : 2773else 2774 echo "$as_me: failed program was:" >&5 2775cat conftest.$ac_ext >&5 2776cf_cv_posix_c_source=no 2777fi 2778rm -f conftest.$ac_objext conftest.$ac_ext 2779 CFLAGS="$cf_save_CFLAGS" 2780 CPPFLAGS="$cf_save_CPPFLAGS" 2781 2782fi 2783rm -f conftest.$ac_objext conftest.$ac_ext 2784 2785fi 2786echo "$as_me:2786: result: $cf_cv_posix_c_source" >&5 2787echo "${ECHO_T}$cf_cv_posix_c_source" >&6 2788 2789if test "$cf_cv_posix_c_source" != no ; then 2790 CFLAGS="$cf_trim_CFLAGS" 2791 CPPFLAGS="$cf_trim_CPPFLAGS" 2792 2793cf_fix_cppflags=no 2794cf_new_cflags= 2795cf_new_cppflags= 2796cf_new_extra_cppflags= 2797 2798for cf_add_cflags in $cf_cv_posix_c_source 2799do 2800case $cf_fix_cppflags in 2801(no) 2802 case $cf_add_cflags in 2803 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 2804 case $cf_add_cflags in 2805 (-D*) 2806 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2807 2808 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2809 && test -z "${cf_tst_cflags}" \ 2810 && cf_fix_cppflags=yes 2811 2812 if test $cf_fix_cppflags = yes ; then 2813 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2814 continue 2815 elif test "${cf_tst_cflags}" = "\"'" ; then 2816 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2817 continue 2818 fi 2819 ;; 2820 esac 2821 case "$CPPFLAGS" in 2822 (*$cf_add_cflags) 2823 ;; 2824 (*) 2825 case $cf_add_cflags in 2826 (-D*) 2827 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2828 2829CPPFLAGS=`echo "$CPPFLAGS" | \ 2830 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2831 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2832 2833 ;; 2834 esac 2835 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 2836 ;; 2837 esac 2838 ;; 2839 (*) 2840 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 2841 ;; 2842 esac 2843 ;; 2844(yes) 2845 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2846 2847 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 2848 2849 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2850 && test -z "${cf_tst_cflags}" \ 2851 && cf_fix_cppflags=no 2852 ;; 2853esac 2854done 2855 2856if test -n "$cf_new_cflags" ; then 2857 2858 CFLAGS="$CFLAGS $cf_new_cflags" 2859fi 2860 2861if test -n "$cf_new_cppflags" ; then 2862 2863 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 2864fi 2865 2866if test -n "$cf_new_extra_cppflags" ; then 2867 2868 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 2869fi 2870 2871fi 2872 2873 ;; 2874(netbsd*) 2875 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw 2876 ;; 2877(openbsd[4-9]*) 2878 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw 2879 cf_xopen_source="-D_BSD_SOURCE" 2880 cf_XOPEN_SOURCE=600 2881 ;; 2882(openbsd*) 2883 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw 2884 ;; 2885(os2*) 2886 cf_XOPEN_SOURCE= 2887 ;; 2888(osf[45]*) 2889 cf_xopen_source="-D_OSF_SOURCE" 2890 ;; 2891(nto-qnx*) 2892 cf_xopen_source="-D_QNX_SOURCE" 2893 ;; 2894(sco*) 2895 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer 2896 ;; 2897(solaris2.*) 2898 cf_xopen_source="-D__EXTENSIONS__" 2899 cf_cv_xopen_source=broken 2900 ;; 2901(sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2) 2902 cf_XOPEN_SOURCE= 2903 cf_POSIX_C_SOURCE= 2904 ;; 2905(*) 2906 2907echo "$as_me:2907: checking if we should define _XOPEN_SOURCE" >&5 2908echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 2909if test "${cf_cv_xopen_source+set}" = set; then 2910 echo $ECHO_N "(cached) $ECHO_C" >&6 2911else 2912 2913 cat >conftest.$ac_ext <<_ACEOF 2914#line 2914 "configure" 2915#include "confdefs.h" 2916 2917#include <stdlib.h> 2918#include <string.h> 2919#include <sys/types.h> 2920 2921int 2922main () 2923{ 2924 2925#ifndef _XOPEN_SOURCE 2926make an error 2927#endif 2928 ; 2929 return 0; 2930} 2931_ACEOF 2932rm -f conftest.$ac_objext 2933if { (eval echo "$as_me:2933: \"$ac_compile\"") >&5 2934 (eval $ac_compile) 2>&5 2935 ac_status=$? 2936 echo "$as_me:2936: \$? = $ac_status" >&5 2937 (exit $ac_status); } && 2938 { ac_try='test -s conftest.$ac_objext' 2939 { (eval echo "$as_me:2939: \"$ac_try\"") >&5 2940 (eval $ac_try) 2>&5 2941 ac_status=$? 2942 echo "$as_me:2942: \$? = $ac_status" >&5 2943 (exit $ac_status); }; }; then 2944 cf_cv_xopen_source=no 2945else 2946 echo "$as_me: failed program was:" >&5 2947cat conftest.$ac_ext >&5 2948cf_save="$CPPFLAGS" 2949 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 2950 cat >conftest.$ac_ext <<_ACEOF 2951#line 2951 "configure" 2952#include "confdefs.h" 2953 2954#include <stdlib.h> 2955#include <string.h> 2956#include <sys/types.h> 2957 2958int 2959main () 2960{ 2961 2962#ifdef _XOPEN_SOURCE 2963make an error 2964#endif 2965 ; 2966 return 0; 2967} 2968_ACEOF 2969rm -f conftest.$ac_objext 2970if { (eval echo "$as_me:2970: \"$ac_compile\"") >&5 2971 (eval $ac_compile) 2>&5 2972 ac_status=$? 2973 echo "$as_me:2973: \$? = $ac_status" >&5 2974 (exit $ac_status); } && 2975 { ac_try='test -s conftest.$ac_objext' 2976 { (eval echo "$as_me:2976: \"$ac_try\"") >&5 2977 (eval $ac_try) 2>&5 2978 ac_status=$? 2979 echo "$as_me:2979: \$? = $ac_status" >&5 2980 (exit $ac_status); }; }; then 2981 cf_cv_xopen_source=no 2982else 2983 echo "$as_me: failed program was:" >&5 2984cat conftest.$ac_ext >&5 2985cf_cv_xopen_source=$cf_XOPEN_SOURCE 2986fi 2987rm -f conftest.$ac_objext conftest.$ac_ext 2988 CPPFLAGS="$cf_save" 2989 2990fi 2991rm -f conftest.$ac_objext conftest.$ac_ext 2992 2993fi 2994echo "$as_me:2994: result: $cf_cv_xopen_source" >&5 2995echo "${ECHO_T}$cf_cv_xopen_source" >&6 2996 2997if test "$cf_cv_xopen_source" != no ; then 2998 2999CFLAGS=`echo "$CFLAGS" | \ 3000 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3001 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3002 3003CPPFLAGS=`echo "$CPPFLAGS" | \ 3004 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3005 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3006 3007 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 3008 3009cf_fix_cppflags=no 3010cf_new_cflags= 3011cf_new_cppflags= 3012cf_new_extra_cppflags= 3013 3014for cf_add_cflags in $cf_temp_xopen_source 3015do 3016case $cf_fix_cppflags in 3017(no) 3018 case $cf_add_cflags in 3019 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 3020 case $cf_add_cflags in 3021 (-D*) 3022 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3023 3024 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3025 && test -z "${cf_tst_cflags}" \ 3026 && cf_fix_cppflags=yes 3027 3028 if test $cf_fix_cppflags = yes ; then 3029 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3030 continue 3031 elif test "${cf_tst_cflags}" = "\"'" ; then 3032 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3033 continue 3034 fi 3035 ;; 3036 esac 3037 case "$CPPFLAGS" in 3038 (*$cf_add_cflags) 3039 ;; 3040 (*) 3041 case $cf_add_cflags in 3042 (-D*) 3043 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3044 3045CPPFLAGS=`echo "$CPPFLAGS" | \ 3046 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3047 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3048 3049 ;; 3050 esac 3051 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3052 ;; 3053 esac 3054 ;; 3055 (*) 3056 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3057 ;; 3058 esac 3059 ;; 3060(yes) 3061 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3062 3063 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3064 3065 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3066 && test -z "${cf_tst_cflags}" \ 3067 && cf_fix_cppflags=no 3068 ;; 3069esac 3070done 3071 3072if test -n "$cf_new_cflags" ; then 3073 3074 CFLAGS="$CFLAGS $cf_new_cflags" 3075fi 3076 3077if test -n "$cf_new_cppflags" ; then 3078 3079 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3080fi 3081 3082if test -n "$cf_new_extra_cppflags" ; then 3083 3084 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3085fi 3086 3087fi 3088 3089cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 3090 3091cf_save_CFLAGS="$CFLAGS" 3092cf_save_CPPFLAGS="$CPPFLAGS" 3093 3094cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 3095 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3096 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 3097 3098cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 3099 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3100 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 3101 3102echo "$as_me:3102: checking if we should define _POSIX_C_SOURCE" >&5 3103echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 3104if test "${cf_cv_posix_c_source+set}" = set; then 3105 echo $ECHO_N "(cached) $ECHO_C" >&6 3106else 3107 3108echo "${as_me:-configure}:3108: testing if the symbol is already defined go no further ..." 1>&5 3109 3110 cat >conftest.$ac_ext <<_ACEOF 3111#line 3111 "configure" 3112#include "confdefs.h" 3113#include <sys/types.h> 3114int 3115main () 3116{ 3117 3118#ifndef _POSIX_C_SOURCE 3119make an error 3120#endif 3121 ; 3122 return 0; 3123} 3124_ACEOF 3125rm -f conftest.$ac_objext 3126if { (eval echo "$as_me:3126: \"$ac_compile\"") >&5 3127 (eval $ac_compile) 2>&5 3128 ac_status=$? 3129 echo "$as_me:3129: \$? = $ac_status" >&5 3130 (exit $ac_status); } && 3131 { ac_try='test -s conftest.$ac_objext' 3132 { (eval echo "$as_me:3132: \"$ac_try\"") >&5 3133 (eval $ac_try) 2>&5 3134 ac_status=$? 3135 echo "$as_me:3135: \$? = $ac_status" >&5 3136 (exit $ac_status); }; }; then 3137 cf_cv_posix_c_source=no 3138else 3139 echo "$as_me: failed program was:" >&5 3140cat conftest.$ac_ext >&5 3141cf_want_posix_source=no 3142 case .$cf_POSIX_C_SOURCE in 3143 (.[12]??*) 3144 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3145 ;; 3146 (.2) 3147 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3148 cf_want_posix_source=yes 3149 ;; 3150 (.*) 3151 cf_want_posix_source=yes 3152 ;; 3153 esac 3154 if test "$cf_want_posix_source" = yes ; then 3155 cat >conftest.$ac_ext <<_ACEOF 3156#line 3156 "configure" 3157#include "confdefs.h" 3158#include <sys/types.h> 3159int 3160main () 3161{ 3162 3163#ifdef _POSIX_SOURCE 3164make an error 3165#endif 3166 ; 3167 return 0; 3168} 3169_ACEOF 3170rm -f conftest.$ac_objext 3171if { (eval echo "$as_me:3171: \"$ac_compile\"") >&5 3172 (eval $ac_compile) 2>&5 3173 ac_status=$? 3174 echo "$as_me:3174: \$? = $ac_status" >&5 3175 (exit $ac_status); } && 3176 { ac_try='test -s conftest.$ac_objext' 3177 { (eval echo "$as_me:3177: \"$ac_try\"") >&5 3178 (eval $ac_try) 2>&5 3179 ac_status=$? 3180 echo "$as_me:3180: \$? = $ac_status" >&5 3181 (exit $ac_status); }; }; then 3182 : 3183else 3184 echo "$as_me: failed program was:" >&5 3185cat conftest.$ac_ext >&5 3186cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 3187fi 3188rm -f conftest.$ac_objext conftest.$ac_ext 3189 fi 3190 3191echo "${as_me:-configure}:3191: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 3192 3193 CFLAGS="$cf_trim_CFLAGS" 3194 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source" 3195 3196echo "${as_me:-configure}:3196: testing if the second compile does not leave our definition intact error ..." 1>&5 3197 3198 cat >conftest.$ac_ext <<_ACEOF 3199#line 3199 "configure" 3200#include "confdefs.h" 3201#include <sys/types.h> 3202int 3203main () 3204{ 3205 3206#ifndef _POSIX_C_SOURCE 3207make an error 3208#endif 3209 ; 3210 return 0; 3211} 3212_ACEOF 3213rm -f conftest.$ac_objext 3214if { (eval echo "$as_me:3214: \"$ac_compile\"") >&5 3215 (eval $ac_compile) 2>&5 3216 ac_status=$? 3217 echo "$as_me:3217: \$? = $ac_status" >&5 3218 (exit $ac_status); } && 3219 { ac_try='test -s conftest.$ac_objext' 3220 { (eval echo "$as_me:3220: \"$ac_try\"") >&5 3221 (eval $ac_try) 2>&5 3222 ac_status=$? 3223 echo "$as_me:3223: \$? = $ac_status" >&5 3224 (exit $ac_status); }; }; then 3225 : 3226else 3227 echo "$as_me: failed program was:" >&5 3228cat conftest.$ac_ext >&5 3229cf_cv_posix_c_source=no 3230fi 3231rm -f conftest.$ac_objext conftest.$ac_ext 3232 CFLAGS="$cf_save_CFLAGS" 3233 CPPFLAGS="$cf_save_CPPFLAGS" 3234 3235fi 3236rm -f conftest.$ac_objext conftest.$ac_ext 3237 3238fi 3239echo "$as_me:3239: result: $cf_cv_posix_c_source" >&5 3240echo "${ECHO_T}$cf_cv_posix_c_source" >&6 3241 3242if test "$cf_cv_posix_c_source" != no ; then 3243 CFLAGS="$cf_trim_CFLAGS" 3244 CPPFLAGS="$cf_trim_CPPFLAGS" 3245 3246cf_fix_cppflags=no 3247cf_new_cflags= 3248cf_new_cppflags= 3249cf_new_extra_cppflags= 3250 3251for cf_add_cflags in $cf_cv_posix_c_source 3252do 3253case $cf_fix_cppflags in 3254(no) 3255 case $cf_add_cflags in 3256 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 3257 case $cf_add_cflags in 3258 (-D*) 3259 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3260 3261 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3262 && test -z "${cf_tst_cflags}" \ 3263 && cf_fix_cppflags=yes 3264 3265 if test $cf_fix_cppflags = yes ; then 3266 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3267 continue 3268 elif test "${cf_tst_cflags}" = "\"'" ; then 3269 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3270 continue 3271 fi 3272 ;; 3273 esac 3274 case "$CPPFLAGS" in 3275 (*$cf_add_cflags) 3276 ;; 3277 (*) 3278 case $cf_add_cflags in 3279 (-D*) 3280 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3281 3282CPPFLAGS=`echo "$CPPFLAGS" | \ 3283 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3284 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3285 3286 ;; 3287 esac 3288 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3289 ;; 3290 esac 3291 ;; 3292 (*) 3293 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3294 ;; 3295 esac 3296 ;; 3297(yes) 3298 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3299 3300 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3301 3302 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3303 && test -z "${cf_tst_cflags}" \ 3304 && cf_fix_cppflags=no 3305 ;; 3306esac 3307done 3308 3309if test -n "$cf_new_cflags" ; then 3310 3311 CFLAGS="$CFLAGS $cf_new_cflags" 3312fi 3313 3314if test -n "$cf_new_cppflags" ; then 3315 3316 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3317fi 3318 3319if test -n "$cf_new_extra_cppflags" ; then 3320 3321 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3322fi 3323 3324fi 3325 3326 ;; 3327esac 3328 3329if test -n "$cf_xopen_source" ; then 3330 3331cf_fix_cppflags=no 3332cf_new_cflags= 3333cf_new_cppflags= 3334cf_new_extra_cppflags= 3335 3336for cf_add_cflags in $cf_xopen_source 3337do 3338case $cf_fix_cppflags in 3339(no) 3340 case $cf_add_cflags in 3341 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 3342 case $cf_add_cflags in 3343 (-D*) 3344 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3345 3346 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3347 && test -z "${cf_tst_cflags}" \ 3348 && cf_fix_cppflags=yes 3349 3350 if test $cf_fix_cppflags = yes ; then 3351 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3352 continue 3353 elif test "${cf_tst_cflags}" = "\"'" ; then 3354 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3355 continue 3356 fi 3357 ;; 3358 esac 3359 case "$CPPFLAGS" in 3360 (*$cf_add_cflags) 3361 ;; 3362 (*) 3363 case $cf_add_cflags in 3364 (-D*) 3365 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3366 3367CPPFLAGS=`echo "$CPPFLAGS" | \ 3368 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3369 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3370 3371 ;; 3372 esac 3373 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3374 ;; 3375 esac 3376 ;; 3377 (*) 3378 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3379 ;; 3380 esac 3381 ;; 3382(yes) 3383 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3384 3385 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3386 3387 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3388 && test -z "${cf_tst_cflags}" \ 3389 && cf_fix_cppflags=no 3390 ;; 3391esac 3392done 3393 3394if test -n "$cf_new_cflags" ; then 3395 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 3396 3397echo "${as_me:-configure}:3397: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 3398 3399 CFLAGS="$CFLAGS $cf_new_cflags" 3400fi 3401 3402if test -n "$cf_new_cppflags" ; then 3403 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 3404 3405echo "${as_me:-configure}:3405: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 3406 3407 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3408fi 3409 3410if test -n "$cf_new_extra_cppflags" ; then 3411 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6 3412 3413echo "${as_me:-configure}:3413: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5 3414 3415 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3416fi 3417 3418fi 3419 3420if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then 3421 echo "$as_me:3421: checking if _XOPEN_SOURCE really is set" >&5 3422echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6 3423 cat >conftest.$ac_ext <<_ACEOF 3424#line 3424 "configure" 3425#include "confdefs.h" 3426#include <stdlib.h> 3427int 3428main () 3429{ 3430 3431#ifndef _XOPEN_SOURCE 3432make an error 3433#endif 3434 ; 3435 return 0; 3436} 3437_ACEOF 3438rm -f conftest.$ac_objext 3439if { (eval echo "$as_me:3439: \"$ac_compile\"") >&5 3440 (eval $ac_compile) 2>&5 3441 ac_status=$? 3442 echo "$as_me:3442: \$? = $ac_status" >&5 3443 (exit $ac_status); } && 3444 { ac_try='test -s conftest.$ac_objext' 3445 { (eval echo "$as_me:3445: \"$ac_try\"") >&5 3446 (eval $ac_try) 2>&5 3447 ac_status=$? 3448 echo "$as_me:3448: \$? = $ac_status" >&5 3449 (exit $ac_status); }; }; then 3450 cf_XOPEN_SOURCE_set=yes 3451else 3452 echo "$as_me: failed program was:" >&5 3453cat conftest.$ac_ext >&5 3454cf_XOPEN_SOURCE_set=no 3455fi 3456rm -f conftest.$ac_objext conftest.$ac_ext 3457 echo "$as_me:3457: result: $cf_XOPEN_SOURCE_set" >&5 3458echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6 3459 if test $cf_XOPEN_SOURCE_set = yes 3460 then 3461 cat >conftest.$ac_ext <<_ACEOF 3462#line 3462 "configure" 3463#include "confdefs.h" 3464#include <stdlib.h> 3465int 3466main () 3467{ 3468 3469#if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE 3470make an error 3471#endif 3472 ; 3473 return 0; 3474} 3475_ACEOF 3476rm -f conftest.$ac_objext 3477if { (eval echo "$as_me:3477: \"$ac_compile\"") >&5 3478 (eval $ac_compile) 2>&5 3479 ac_status=$? 3480 echo "$as_me:3480: \$? = $ac_status" >&5 3481 (exit $ac_status); } && 3482 { ac_try='test -s conftest.$ac_objext' 3483 { (eval echo "$as_me:3483: \"$ac_try\"") >&5 3484 (eval $ac_try) 2>&5 3485 ac_status=$? 3486 echo "$as_me:3486: \$? = $ac_status" >&5 3487 (exit $ac_status); }; }; then 3488 cf_XOPEN_SOURCE_set_ok=yes 3489else 3490 echo "$as_me: failed program was:" >&5 3491cat conftest.$ac_ext >&5 3492cf_XOPEN_SOURCE_set_ok=no 3493fi 3494rm -f conftest.$ac_objext conftest.$ac_ext 3495 if test $cf_XOPEN_SOURCE_set_ok = no 3496 then 3497 { echo "$as_me:3497: WARNING: _XOPEN_SOURCE is lower than requested" >&5 3498echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;} 3499 fi 3500 else 3501 3502echo "$as_me:3502: checking if we should define _XOPEN_SOURCE" >&5 3503echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 3504if test "${cf_cv_xopen_source+set}" = set; then 3505 echo $ECHO_N "(cached) $ECHO_C" >&6 3506else 3507 3508 cat >conftest.$ac_ext <<_ACEOF 3509#line 3509 "configure" 3510#include "confdefs.h" 3511 3512#include <stdlib.h> 3513#include <string.h> 3514#include <sys/types.h> 3515 3516int 3517main () 3518{ 3519 3520#ifndef _XOPEN_SOURCE 3521make an error 3522#endif 3523 ; 3524 return 0; 3525} 3526_ACEOF 3527rm -f conftest.$ac_objext 3528if { (eval echo "$as_me:3528: \"$ac_compile\"") >&5 3529 (eval $ac_compile) 2>&5 3530 ac_status=$? 3531 echo "$as_me:3531: \$? = $ac_status" >&5 3532 (exit $ac_status); } && 3533 { ac_try='test -s conftest.$ac_objext' 3534 { (eval echo "$as_me:3534: \"$ac_try\"") >&5 3535 (eval $ac_try) 2>&5 3536 ac_status=$? 3537 echo "$as_me:3537: \$? = $ac_status" >&5 3538 (exit $ac_status); }; }; then 3539 cf_cv_xopen_source=no 3540else 3541 echo "$as_me: failed program was:" >&5 3542cat conftest.$ac_ext >&5 3543cf_save="$CPPFLAGS" 3544 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 3545 cat >conftest.$ac_ext <<_ACEOF 3546#line 3546 "configure" 3547#include "confdefs.h" 3548 3549#include <stdlib.h> 3550#include <string.h> 3551#include <sys/types.h> 3552 3553int 3554main () 3555{ 3556 3557#ifdef _XOPEN_SOURCE 3558make an error 3559#endif 3560 ; 3561 return 0; 3562} 3563_ACEOF 3564rm -f conftest.$ac_objext 3565if { (eval echo "$as_me:3565: \"$ac_compile\"") >&5 3566 (eval $ac_compile) 2>&5 3567 ac_status=$? 3568 echo "$as_me:3568: \$? = $ac_status" >&5 3569 (exit $ac_status); } && 3570 { ac_try='test -s conftest.$ac_objext' 3571 { (eval echo "$as_me:3571: \"$ac_try\"") >&5 3572 (eval $ac_try) 2>&5 3573 ac_status=$? 3574 echo "$as_me:3574: \$? = $ac_status" >&5 3575 (exit $ac_status); }; }; then 3576 cf_cv_xopen_source=no 3577else 3578 echo "$as_me: failed program was:" >&5 3579cat conftest.$ac_ext >&5 3580cf_cv_xopen_source=$cf_XOPEN_SOURCE 3581fi 3582rm -f conftest.$ac_objext conftest.$ac_ext 3583 CPPFLAGS="$cf_save" 3584 3585fi 3586rm -f conftest.$ac_objext conftest.$ac_ext 3587 3588fi 3589echo "$as_me:3589: result: $cf_cv_xopen_source" >&5 3590echo "${ECHO_T}$cf_cv_xopen_source" >&6 3591 3592if test "$cf_cv_xopen_source" != no ; then 3593 3594CFLAGS=`echo "$CFLAGS" | \ 3595 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3596 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3597 3598CPPFLAGS=`echo "$CPPFLAGS" | \ 3599 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3600 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3601 3602 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 3603 3604cf_fix_cppflags=no 3605cf_new_cflags= 3606cf_new_cppflags= 3607cf_new_extra_cppflags= 3608 3609for cf_add_cflags in $cf_temp_xopen_source 3610do 3611case $cf_fix_cppflags in 3612(no) 3613 case $cf_add_cflags in 3614 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 3615 case $cf_add_cflags in 3616 (-D*) 3617 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3618 3619 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3620 && test -z "${cf_tst_cflags}" \ 3621 && cf_fix_cppflags=yes 3622 3623 if test $cf_fix_cppflags = yes ; then 3624 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3625 continue 3626 elif test "${cf_tst_cflags}" = "\"'" ; then 3627 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3628 continue 3629 fi 3630 ;; 3631 esac 3632 case "$CPPFLAGS" in 3633 (*$cf_add_cflags) 3634 ;; 3635 (*) 3636 case $cf_add_cflags in 3637 (-D*) 3638 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3639 3640CPPFLAGS=`echo "$CPPFLAGS" | \ 3641 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3642 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3643 3644 ;; 3645 esac 3646 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3647 ;; 3648 esac 3649 ;; 3650 (*) 3651 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3652 ;; 3653 esac 3654 ;; 3655(yes) 3656 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3657 3658 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3659 3660 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3661 && test -z "${cf_tst_cflags}" \ 3662 && cf_fix_cppflags=no 3663 ;; 3664esac 3665done 3666 3667if test -n "$cf_new_cflags" ; then 3668 3669 CFLAGS="$CFLAGS $cf_new_cflags" 3670fi 3671 3672if test -n "$cf_new_cppflags" ; then 3673 3674 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3675fi 3676 3677if test -n "$cf_new_extra_cppflags" ; then 3678 3679 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3680fi 3681 3682fi 3683 3684 fi 3685fi 3686 3687echo "$as_me:3687: checking if SIGWINCH is defined" >&5 3688echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6 3689if test "${cf_cv_define_sigwinch+set}" = set; then 3690 echo $ECHO_N "(cached) $ECHO_C" >&6 3691else 3692 3693 cat >conftest.$ac_ext <<_ACEOF 3694#line 3694 "configure" 3695#include "confdefs.h" 3696 3697#include <sys/types.h> 3698#include <sys/signal.h> 3699 3700int 3701main () 3702{ 3703int x = SIGWINCH 3704 ; 3705 return 0; 3706} 3707_ACEOF 3708rm -f conftest.$ac_objext 3709if { (eval echo "$as_me:3709: \"$ac_compile\"") >&5 3710 (eval $ac_compile) 2>&5 3711 ac_status=$? 3712 echo "$as_me:3712: \$? = $ac_status" >&5 3713 (exit $ac_status); } && 3714 { ac_try='test -s conftest.$ac_objext' 3715 { (eval echo "$as_me:3715: \"$ac_try\"") >&5 3716 (eval $ac_try) 2>&5 3717 ac_status=$? 3718 echo "$as_me:3718: \$? = $ac_status" >&5 3719 (exit $ac_status); }; }; then 3720 cf_cv_define_sigwinch=yes 3721else 3722 echo "$as_me: failed program was:" >&5 3723cat conftest.$ac_ext >&5 3724cat >conftest.$ac_ext <<_ACEOF 3725#line 3725 "configure" 3726#include "confdefs.h" 3727 3728#undef _XOPEN_SOURCE 3729#undef _POSIX_SOURCE 3730#undef _POSIX_C_SOURCE 3731#include <sys/types.h> 3732#include <sys/signal.h> 3733 3734int 3735main () 3736{ 3737int x = SIGWINCH 3738 ; 3739 return 0; 3740} 3741_ACEOF 3742rm -f conftest.$ac_objext 3743if { (eval echo "$as_me:3743: \"$ac_compile\"") >&5 3744 (eval $ac_compile) 2>&5 3745 ac_status=$? 3746 echo "$as_me:3746: \$? = $ac_status" >&5 3747 (exit $ac_status); } && 3748 { ac_try='test -s conftest.$ac_objext' 3749 { (eval echo "$as_me:3749: \"$ac_try\"") >&5 3750 (eval $ac_try) 2>&5 3751 ac_status=$? 3752 echo "$as_me:3752: \$? = $ac_status" >&5 3753 (exit $ac_status); }; }; then 3754 cf_cv_define_sigwinch=maybe 3755else 3756 echo "$as_me: failed program was:" >&5 3757cat conftest.$ac_ext >&5 3758cf_cv_define_sigwinch=no 3759fi 3760rm -f conftest.$ac_objext conftest.$ac_ext 3761 3762fi 3763rm -f conftest.$ac_objext conftest.$ac_ext 3764 3765fi 3766echo "$as_me:3766: result: $cf_cv_define_sigwinch" >&5 3767echo "${ECHO_T}$cf_cv_define_sigwinch" >&6 3768 3769if test "$cf_cv_define_sigwinch" = maybe ; then 3770echo "$as_me:3770: checking for actual SIGWINCH definition" >&5 3771echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6 3772if test "${cf_cv_fixup_sigwinch+set}" = set; then 3773 echo $ECHO_N "(cached) $ECHO_C" >&6 3774else 3775 3776cf_cv_fixup_sigwinch=unknown 3777cf_sigwinch=32 3778while test $cf_sigwinch != 1 3779do 3780 cat >conftest.$ac_ext <<_ACEOF 3781#line 3781 "configure" 3782#include "confdefs.h" 3783 3784#undef _XOPEN_SOURCE 3785#undef _POSIX_SOURCE 3786#undef _POSIX_C_SOURCE 3787#include <sys/types.h> 3788#include <sys/signal.h> 3789 3790int 3791main () 3792{ 3793 3794#if SIGWINCH != $cf_sigwinch 3795make an error 3796#endif 3797int x = SIGWINCH 3798 ; 3799 return 0; 3800} 3801_ACEOF 3802rm -f conftest.$ac_objext 3803if { (eval echo "$as_me:3803: \"$ac_compile\"") >&5 3804 (eval $ac_compile) 2>&5 3805 ac_status=$? 3806 echo "$as_me:3806: \$? = $ac_status" >&5 3807 (exit $ac_status); } && 3808 { ac_try='test -s conftest.$ac_objext' 3809 { (eval echo "$as_me:3809: \"$ac_try\"") >&5 3810 (eval $ac_try) 2>&5 3811 ac_status=$? 3812 echo "$as_me:3812: \$? = $ac_status" >&5 3813 (exit $ac_status); }; }; then 3814 cf_cv_fixup_sigwinch=$cf_sigwinch 3815 break 3816else 3817 echo "$as_me: failed program was:" >&5 3818cat conftest.$ac_ext >&5 3819fi 3820rm -f conftest.$ac_objext conftest.$ac_ext 3821 3822cf_sigwinch=`expr $cf_sigwinch - 1` 3823done 3824 3825fi 3826echo "$as_me:3826: result: $cf_cv_fixup_sigwinch" >&5 3827echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6 3828 3829 if test "$cf_cv_fixup_sigwinch" != unknown ; then 3830 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch" 3831 fi 3832fi 3833 3834### checks for header files 3835 3836for ac_header in \ 3837ncurses/curses.h \ 3838ncurses/term.h \ 3839stdlib.h \ 3840sys/ptem.h sys/ttydefaults.h \ 3841term.h \ 3842termios.h \ 3843unistd.h \ 3844wchar.h \ 3845 3846do 3847as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3848echo "$as_me:3848: checking for $ac_header" >&5 3849echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3850if eval "test \"\${$as_ac_Header+set}\" = set"; then 3851 echo $ECHO_N "(cached) $ECHO_C" >&6 3852else 3853 cat >conftest.$ac_ext <<_ACEOF 3854#line 3854 "configure" 3855#include "confdefs.h" 3856#include <$ac_header> 3857_ACEOF 3858if { (eval echo "$as_me:3858: \"$ac_cpp conftest.$ac_ext\"") >&5 3859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3860 ac_status=$? 3861 egrep -v '^ *\+' conftest.er1 >conftest.err 3862 rm -f conftest.er1 3863 cat conftest.err >&5 3864 echo "$as_me:3864: \$? = $ac_status" >&5 3865 (exit $ac_status); } >/dev/null; then 3866 if test -s conftest.err; then 3867 ac_cpp_err=$ac_c_preproc_warn_flag 3868 else 3869 ac_cpp_err= 3870 fi 3871else 3872 ac_cpp_err=yes 3873fi 3874if test -z "$ac_cpp_err"; then 3875 eval "$as_ac_Header=yes" 3876else 3877 echo "$as_me: failed program was:" >&5 3878 cat conftest.$ac_ext >&5 3879 eval "$as_ac_Header=no" 3880fi 3881rm -f conftest.err conftest.$ac_ext 3882fi 3883echo "$as_me:3883: result: `eval echo '${'$as_ac_Header'}'`" >&5 3884echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3885if test `eval echo '${'$as_ac_Header'}'` = yes; then 3886 cat >>confdefs.h <<EOF 3887#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3888EOF 3889 3890fi 3891done 3892 3893echo "$as_me:3893: checking whether time.h and sys/time.h may both be included" >&5 3894echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 3895if test "${ac_cv_header_time+set}" = set; then 3896 echo $ECHO_N "(cached) $ECHO_C" >&6 3897else 3898 cat >conftest.$ac_ext <<_ACEOF 3899#line 3899 "configure" 3900#include "confdefs.h" 3901#include <sys/types.h> 3902#include <sys/time.h> 3903#include <time.h> 3904 3905int 3906main () 3907{ 3908if ((struct tm *) 0) 3909return 0; 3910 ; 3911 return 0; 3912} 3913_ACEOF 3914rm -f conftest.$ac_objext 3915if { (eval echo "$as_me:3915: \"$ac_compile\"") >&5 3916 (eval $ac_compile) 2>&5 3917 ac_status=$? 3918 echo "$as_me:3918: \$? = $ac_status" >&5 3919 (exit $ac_status); } && 3920 { ac_try='test -s conftest.$ac_objext' 3921 { (eval echo "$as_me:3921: \"$ac_try\"") >&5 3922 (eval $ac_try) 2>&5 3923 ac_status=$? 3924 echo "$as_me:3924: \$? = $ac_status" >&5 3925 (exit $ac_status); }; }; then 3926 ac_cv_header_time=yes 3927else 3928 echo "$as_me: failed program was:" >&5 3929cat conftest.$ac_ext >&5 3930ac_cv_header_time=no 3931fi 3932rm -f conftest.$ac_objext conftest.$ac_ext 3933fi 3934echo "$as_me:3934: result: $ac_cv_header_time" >&5 3935echo "${ECHO_T}$ac_cv_header_time" >&6 3936if test $ac_cv_header_time = yes; then 3937 3938cat >>confdefs.h <<\EOF 3939#define TIME_WITH_SYS_TIME 1 3940EOF 3941 3942fi 3943 3944echo "$as_me:3944: checking for nl_langinfo and CODESET" >&5 3945echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 3946if test "${am_cv_langinfo_codeset+set}" = set; then 3947 echo $ECHO_N "(cached) $ECHO_C" >&6 3948else 3949 cat >conftest.$ac_ext <<_ACEOF 3950#line 3950 "configure" 3951#include "confdefs.h" 3952#include <langinfo.h> 3953int 3954main () 3955{ 3956char* cs = nl_langinfo(CODESET); 3957 ; 3958 return 0; 3959} 3960_ACEOF 3961rm -f conftest.$ac_objext conftest$ac_exeext 3962if { (eval echo "$as_me:3962: \"$ac_link\"") >&5 3963 (eval $ac_link) 2>&5 3964 ac_status=$? 3965 echo "$as_me:3965: \$? = $ac_status" >&5 3966 (exit $ac_status); } && 3967 { ac_try='test -s conftest$ac_exeext' 3968 { (eval echo "$as_me:3968: \"$ac_try\"") >&5 3969 (eval $ac_try) 2>&5 3970 ac_status=$? 3971 echo "$as_me:3971: \$? = $ac_status" >&5 3972 (exit $ac_status); }; }; then 3973 am_cv_langinfo_codeset=yes 3974else 3975 echo "$as_me: failed program was:" >&5 3976cat conftest.$ac_ext >&5 3977am_cv_langinfo_codeset=no 3978fi 3979rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3980 3981fi 3982echo "$as_me:3982: result: $am_cv_langinfo_codeset" >&5 3983echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 3984 if test $am_cv_langinfo_codeset = yes; then 3985 3986cat >>confdefs.h <<\EOF 3987#define HAVE_LANGINFO_CODESET 1 3988EOF 3989 3990 fi 3991 3992### checks for typedefs 3993 3994echo "$as_me:3994: checking for signal global datatype" >&5 3995echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6 3996if test "${cf_cv_sig_atomic_t+set}" = set; then 3997 echo $ECHO_N "(cached) $ECHO_C" >&6 3998else 3999 4000 for cf_type in \ 4001 "volatile sig_atomic_t" \ 4002 "sig_atomic_t" \ 4003 "int" 4004 do 4005 cat >conftest.$ac_ext <<_ACEOF 4006#line 4006 "configure" 4007#include "confdefs.h" 4008 4009#include <sys/types.h> 4010#include <signal.h> 4011#include <stdio.h> 4012 4013extern $cf_type x; 4014$cf_type x; 4015static void handler(int sig) 4016{ 4017 x = 5; 4018} 4019int 4020main () 4021{ 4022signal(SIGINT, handler); 4023 x = 1 4024 ; 4025 return 0; 4026} 4027_ACEOF 4028rm -f conftest.$ac_objext 4029if { (eval echo "$as_me:4029: \"$ac_compile\"") >&5 4030 (eval $ac_compile) 2>&5 4031 ac_status=$? 4032 echo "$as_me:4032: \$? = $ac_status" >&5 4033 (exit $ac_status); } && 4034 { ac_try='test -s conftest.$ac_objext' 4035 { (eval echo "$as_me:4035: \"$ac_try\"") >&5 4036 (eval $ac_try) 2>&5 4037 ac_status=$? 4038 echo "$as_me:4038: \$? = $ac_status" >&5 4039 (exit $ac_status); }; }; then 4040 cf_cv_sig_atomic_t=$cf_type 4041else 4042 echo "$as_me: failed program was:" >&5 4043cat conftest.$ac_ext >&5 4044cf_cv_sig_atomic_t=no 4045fi 4046rm -f conftest.$ac_objext conftest.$ac_ext 4047 test "$cf_cv_sig_atomic_t" != no && break 4048 done 4049 4050fi 4051 4052echo "$as_me:4052: result: $cf_cv_sig_atomic_t" >&5 4053echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6 4054test "$cf_cv_sig_atomic_t" != no && 4055cat >>confdefs.h <<EOF 4056#define SIG_ATOMIC_T $cf_cv_sig_atomic_t 4057EOF 4058 4059echo "$as_me:4059: checking for ANSI C header files" >&5 4060echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4061if test "${ac_cv_header_stdc+set}" = set; then 4062 echo $ECHO_N "(cached) $ECHO_C" >&6 4063else 4064 cat >conftest.$ac_ext <<_ACEOF 4065#line 4065 "configure" 4066#include "confdefs.h" 4067#include <stdlib.h> 4068#include <stdarg.h> 4069#include <string.h> 4070#include <float.h> 4071 4072_ACEOF 4073if { (eval echo "$as_me:4073: \"$ac_cpp conftest.$ac_ext\"") >&5 4074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4075 ac_status=$? 4076 egrep -v '^ *\+' conftest.er1 >conftest.err 4077 rm -f conftest.er1 4078 cat conftest.err >&5 4079 echo "$as_me:4079: \$? = $ac_status" >&5 4080 (exit $ac_status); } >/dev/null; then 4081 if test -s conftest.err; then 4082 ac_cpp_err=$ac_c_preproc_warn_flag 4083 else 4084 ac_cpp_err= 4085 fi 4086else 4087 ac_cpp_err=yes 4088fi 4089if test -z "$ac_cpp_err"; then 4090 ac_cv_header_stdc=yes 4091else 4092 echo "$as_me: failed program was:" >&5 4093 cat conftest.$ac_ext >&5 4094 ac_cv_header_stdc=no 4095fi 4096rm -f conftest.err conftest.$ac_ext 4097 4098if test $ac_cv_header_stdc = yes; then 4099 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4100 cat >conftest.$ac_ext <<_ACEOF 4101#line 4101 "configure" 4102#include "confdefs.h" 4103#include <string.h> 4104 4105_ACEOF 4106if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4107 egrep "memchr" >/dev/null 2>&1; then 4108 : 4109else 4110 ac_cv_header_stdc=no 4111fi 4112rm -rf conftest* 4113 4114fi 4115 4116if test $ac_cv_header_stdc = yes; then 4117 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4118 cat >conftest.$ac_ext <<_ACEOF 4119#line 4119 "configure" 4120#include "confdefs.h" 4121#include <stdlib.h> 4122 4123_ACEOF 4124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4125 egrep "free" >/dev/null 2>&1; then 4126 : 4127else 4128 ac_cv_header_stdc=no 4129fi 4130rm -rf conftest* 4131 4132fi 4133 4134if test $ac_cv_header_stdc = yes; then 4135 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4136 if test "$cross_compiling" = yes; then 4137 : 4138else 4139 cat >conftest.$ac_ext <<_ACEOF 4140#line 4140 "configure" 4141#include "confdefs.h" 4142#include <ctype.h> 4143#if ((' ' & 0x0FF) == 0x020) 4144# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4145# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4146#else 4147# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 4148 || ('j' <= (c) && (c) <= 'r') \ 4149 || ('s' <= (c) && (c) <= 'z')) 4150# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4151#endif 4152 4153#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4154int 4155main () 4156{ 4157 int i; 4158 for (i = 0; i < 256; i++) 4159 if (XOR (islower (i), ISLOWER (i)) 4160 || toupper (i) != TOUPPER (i)) 4161 $ac_main_return(2); 4162 $ac_main_return (0); 4163} 4164_ACEOF 4165rm -f conftest$ac_exeext 4166if { (eval echo "$as_me:4166: \"$ac_link\"") >&5 4167 (eval $ac_link) 2>&5 4168 ac_status=$? 4169 echo "$as_me:4169: \$? = $ac_status" >&5 4170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4171 { (eval echo "$as_me:4171: \"$ac_try\"") >&5 4172 (eval $ac_try) 2>&5 4173 ac_status=$? 4174 echo "$as_me:4174: \$? = $ac_status" >&5 4175 (exit $ac_status); }; }; then 4176 : 4177else 4178 echo "$as_me: program exited with status $ac_status" >&5 4179echo "$as_me: failed program was:" >&5 4180cat conftest.$ac_ext >&5 4181ac_cv_header_stdc=no 4182fi 4183rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4184fi 4185fi 4186fi 4187echo "$as_me:4187: result: $ac_cv_header_stdc" >&5 4188echo "${ECHO_T}$ac_cv_header_stdc" >&6 4189if test $ac_cv_header_stdc = yes; then 4190 4191cat >>confdefs.h <<\EOF 4192#define STDC_HEADERS 1 4193EOF 4194 4195fi 4196 4197# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4198 4199for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4200 inttypes.h stdint.h unistd.h 4201do 4202as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4203echo "$as_me:4203: checking for $ac_header" >&5 4204echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4205if eval "test \"\${$as_ac_Header+set}\" = set"; then 4206 echo $ECHO_N "(cached) $ECHO_C" >&6 4207else 4208 cat >conftest.$ac_ext <<_ACEOF 4209#line 4209 "configure" 4210#include "confdefs.h" 4211$ac_includes_default 4212#include <$ac_header> 4213_ACEOF 4214rm -f conftest.$ac_objext 4215if { (eval echo "$as_me:4215: \"$ac_compile\"") >&5 4216 (eval $ac_compile) 2>&5 4217 ac_status=$? 4218 echo "$as_me:4218: \$? = $ac_status" >&5 4219 (exit $ac_status); } && 4220 { ac_try='test -s conftest.$ac_objext' 4221 { (eval echo "$as_me:4221: \"$ac_try\"") >&5 4222 (eval $ac_try) 2>&5 4223 ac_status=$? 4224 echo "$as_me:4224: \$? = $ac_status" >&5 4225 (exit $ac_status); }; }; then 4226 eval "$as_ac_Header=yes" 4227else 4228 echo "$as_me: failed program was:" >&5 4229cat conftest.$ac_ext >&5 4230eval "$as_ac_Header=no" 4231fi 4232rm -f conftest.$ac_objext conftest.$ac_ext 4233fi 4234echo "$as_me:4234: result: `eval echo '${'$as_ac_Header'}'`" >&5 4235echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4236if test `eval echo '${'$as_ac_Header'}'` = yes; then 4237 cat >>confdefs.h <<EOF 4238#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4239EOF 4240 4241fi 4242done 4243 4244echo "$as_me:4244: checking for time_t" >&5 4245echo $ECHO_N "checking for time_t... $ECHO_C" >&6 4246if test "${ac_cv_type_time_t+set}" = set; then 4247 echo $ECHO_N "(cached) $ECHO_C" >&6 4248else 4249 cat >conftest.$ac_ext <<_ACEOF 4250#line 4250 "configure" 4251#include "confdefs.h" 4252$ac_includes_default 4253int 4254main () 4255{ 4256if ((time_t *) 0) 4257 return 0; 4258if (sizeof (time_t)) 4259 return 0; 4260 ; 4261 return 0; 4262} 4263_ACEOF 4264rm -f conftest.$ac_objext 4265if { (eval echo "$as_me:4265: \"$ac_compile\"") >&5 4266 (eval $ac_compile) 2>&5 4267 ac_status=$? 4268 echo "$as_me:4268: \$? = $ac_status" >&5 4269 (exit $ac_status); } && 4270 { ac_try='test -s conftest.$ac_objext' 4271 { (eval echo "$as_me:4271: \"$ac_try\"") >&5 4272 (eval $ac_try) 2>&5 4273 ac_status=$? 4274 echo "$as_me:4274: \$? = $ac_status" >&5 4275 (exit $ac_status); }; }; then 4276 ac_cv_type_time_t=yes 4277else 4278 echo "$as_me: failed program was:" >&5 4279cat conftest.$ac_ext >&5 4280ac_cv_type_time_t=no 4281fi 4282rm -f conftest.$ac_objext conftest.$ac_ext 4283fi 4284echo "$as_me:4284: result: $ac_cv_type_time_t" >&5 4285echo "${ECHO_T}$ac_cv_type_time_t" >&6 4286if test $ac_cv_type_time_t = yes; then 4287 : 4288else 4289 4290cat >>confdefs.h <<EOF 4291#define time_t long 4292EOF 4293 4294fi 4295 4296echo "$as_me:4296: checking for cc_t in <termios.h> or <termio.h>" >&5 4297echo $ECHO_N "checking for cc_t in <termios.h> or <termio.h>... $ECHO_C" >&6 4298if test "${cf_cv_type_cc_t+set}" = set; then 4299 echo $ECHO_N "(cached) $ECHO_C" >&6 4300else 4301 4302 cat >conftest.$ac_ext <<_ACEOF 4303#line 4303 "configure" 4304#include "confdefs.h" 4305 4306#include <sys/types.h> 4307#if defined(HAVE_TERMIOS_H) 4308#include <termios.h> 4309#else 4310#include <termio.h> 4311#include <sys/ioctl.h> 4312#endif 4313 4314int 4315main () 4316{ 4317cc_t x 4318 ; 4319 return 0; 4320} 4321_ACEOF 4322rm -f conftest.$ac_objext 4323if { (eval echo "$as_me:4323: \"$ac_compile\"") >&5 4324 (eval $ac_compile) 2>&5 4325 ac_status=$? 4326 echo "$as_me:4326: \$? = $ac_status" >&5 4327 (exit $ac_status); } && 4328 { ac_try='test -s conftest.$ac_objext' 4329 { (eval echo "$as_me:4329: \"$ac_try\"") >&5 4330 (eval $ac_try) 2>&5 4331 ac_status=$? 4332 echo "$as_me:4332: \$? = $ac_status" >&5 4333 (exit $ac_status); }; }; then 4334 cf_cv_type_cc_t=yes 4335else 4336 echo "$as_me: failed program was:" >&5 4337cat conftest.$ac_ext >&5 4338cf_cv_type_cc_t=no 4339fi 4340rm -f conftest.$ac_objext conftest.$ac_ext 4341 4342fi 4343 4344echo "$as_me:4344: result: $cf_cv_type_cc_t" >&5 4345echo "${ECHO_T}$cf_cv_type_cc_t" >&6 4346test $cf_cv_type_cc_t = no && 4347cat >>confdefs.h <<\EOF 4348#define cc_t unsigned char 4349EOF 4350 4351echo "$as_me:4351: checking for mode_t" >&5 4352echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 4353if test "${ac_cv_type_mode_t+set}" = set; then 4354 echo $ECHO_N "(cached) $ECHO_C" >&6 4355else 4356 cat >conftest.$ac_ext <<_ACEOF 4357#line 4357 "configure" 4358#include "confdefs.h" 4359$ac_includes_default 4360int 4361main () 4362{ 4363if ((mode_t *) 0) 4364 return 0; 4365if (sizeof (mode_t)) 4366 return 0; 4367 ; 4368 return 0; 4369} 4370_ACEOF 4371rm -f conftest.$ac_objext 4372if { (eval echo "$as_me:4372: \"$ac_compile\"") >&5 4373 (eval $ac_compile) 2>&5 4374 ac_status=$? 4375 echo "$as_me:4375: \$? = $ac_status" >&5 4376 (exit $ac_status); } && 4377 { ac_try='test -s conftest.$ac_objext' 4378 { (eval echo "$as_me:4378: \"$ac_try\"") >&5 4379 (eval $ac_try) 2>&5 4380 ac_status=$? 4381 echo "$as_me:4381: \$? = $ac_status" >&5 4382 (exit $ac_status); }; }; then 4383 ac_cv_type_mode_t=yes 4384else 4385 echo "$as_me: failed program was:" >&5 4386cat conftest.$ac_ext >&5 4387ac_cv_type_mode_t=no 4388fi 4389rm -f conftest.$ac_objext conftest.$ac_ext 4390fi 4391echo "$as_me:4391: result: $ac_cv_type_mode_t" >&5 4392echo "${ECHO_T}$ac_cv_type_mode_t" >&6 4393if test $ac_cv_type_mode_t = yes; then 4394 : 4395else 4396 4397cat >>confdefs.h <<EOF 4398#define mode_t int 4399EOF 4400 4401fi 4402 4403echo "$as_me:4403: checking for pid_t" >&5 4404echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 4405if test "${ac_cv_type_pid_t+set}" = set; then 4406 echo $ECHO_N "(cached) $ECHO_C" >&6 4407else 4408 cat >conftest.$ac_ext <<_ACEOF 4409#line 4409 "configure" 4410#include "confdefs.h" 4411$ac_includes_default 4412int 4413main () 4414{ 4415if ((pid_t *) 0) 4416 return 0; 4417if (sizeof (pid_t)) 4418 return 0; 4419 ; 4420 return 0; 4421} 4422_ACEOF 4423rm -f conftest.$ac_objext 4424if { (eval echo "$as_me:4424: \"$ac_compile\"") >&5 4425 (eval $ac_compile) 2>&5 4426 ac_status=$? 4427 echo "$as_me:4427: \$? = $ac_status" >&5 4428 (exit $ac_status); } && 4429 { ac_try='test -s conftest.$ac_objext' 4430 { (eval echo "$as_me:4430: \"$ac_try\"") >&5 4431 (eval $ac_try) 2>&5 4432 ac_status=$? 4433 echo "$as_me:4433: \$? = $ac_status" >&5 4434 (exit $ac_status); }; }; then 4435 ac_cv_type_pid_t=yes 4436else 4437 echo "$as_me: failed program was:" >&5 4438cat conftest.$ac_ext >&5 4439ac_cv_type_pid_t=no 4440fi 4441rm -f conftest.$ac_objext conftest.$ac_ext 4442fi 4443echo "$as_me:4443: result: $ac_cv_type_pid_t" >&5 4444echo "${ECHO_T}$ac_cv_type_pid_t" >&6 4445if test $ac_cv_type_pid_t = yes; then 4446 : 4447else 4448 4449cat >>confdefs.h <<EOF 4450#define pid_t int 4451EOF 4452 4453fi 4454 4455echo "$as_me:4455: checking for uid_t in sys/types.h" >&5 4456echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 4457if test "${ac_cv_type_uid_t+set}" = set; then 4458 echo $ECHO_N "(cached) $ECHO_C" >&6 4459else 4460 cat >conftest.$ac_ext <<_ACEOF 4461#line 4461 "configure" 4462#include "confdefs.h" 4463#include <sys/types.h> 4464 4465_ACEOF 4466if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4467 egrep "uid_t" >/dev/null 2>&1; then 4468 ac_cv_type_uid_t=yes 4469else 4470 ac_cv_type_uid_t=no 4471fi 4472rm -rf conftest* 4473 4474fi 4475echo "$as_me:4475: result: $ac_cv_type_uid_t" >&5 4476echo "${ECHO_T}$ac_cv_type_uid_t" >&6 4477if test $ac_cv_type_uid_t = no; then 4478 4479cat >>confdefs.h <<\EOF 4480#define uid_t int 4481EOF 4482 4483cat >>confdefs.h <<\EOF 4484#define gid_t int 4485EOF 4486 4487fi 4488 4489echo "$as_me:4489: checking for off_t" >&5 4490echo $ECHO_N "checking for off_t... $ECHO_C" >&6 4491if test "${ac_cv_type_off_t+set}" = set; then 4492 echo $ECHO_N "(cached) $ECHO_C" >&6 4493else 4494 cat >conftest.$ac_ext <<_ACEOF 4495#line 4495 "configure" 4496#include "confdefs.h" 4497$ac_includes_default 4498int 4499main () 4500{ 4501if ((off_t *) 0) 4502 return 0; 4503if (sizeof (off_t)) 4504 return 0; 4505 ; 4506 return 0; 4507} 4508_ACEOF 4509rm -f conftest.$ac_objext 4510if { (eval echo "$as_me:4510: \"$ac_compile\"") >&5 4511 (eval $ac_compile) 2>&5 4512 ac_status=$? 4513 echo "$as_me:4513: \$? = $ac_status" >&5 4514 (exit $ac_status); } && 4515 { ac_try='test -s conftest.$ac_objext' 4516 { (eval echo "$as_me:4516: \"$ac_try\"") >&5 4517 (eval $ac_try) 2>&5 4518 ac_status=$? 4519 echo "$as_me:4519: \$? = $ac_status" >&5 4520 (exit $ac_status); }; }; then 4521 ac_cv_type_off_t=yes 4522else 4523 echo "$as_me: failed program was:" >&5 4524cat conftest.$ac_ext >&5 4525ac_cv_type_off_t=no 4526fi 4527rm -f conftest.$ac_objext conftest.$ac_ext 4528fi 4529echo "$as_me:4529: result: $ac_cv_type_off_t" >&5 4530echo "${ECHO_T}$ac_cv_type_off_t" >&6 4531if test $ac_cv_type_off_t = yes; then 4532 : 4533else 4534 4535cat >>confdefs.h <<EOF 4536#define off_t long 4537EOF 4538 4539fi 4540 4541### checks for library functions 4542 4543for ac_func in \ 4544 gethostname \ 4545 getlogin \ 4546 initgroups \ 4547 mkdtemp \ 4548 putenv \ 4549 unsetenv \ 4550 sched_yield \ 4551 setpgid \ 4552 strftime \ 4553 tcgetattr \ 4554 waitpid \ 4555 wcswidth \ 4556 wcwidth 4557do 4558as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4559echo "$as_me:4559: checking for $ac_func" >&5 4560echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4561if eval "test \"\${$as_ac_var+set}\" = set"; then 4562 echo $ECHO_N "(cached) $ECHO_C" >&6 4563else 4564 cat >conftest.$ac_ext <<_ACEOF 4565#line 4565 "configure" 4566#include "confdefs.h" 4567/* System header to define __stub macros and hopefully few prototypes, 4568 which can conflict with char $ac_func (); below. */ 4569#include <assert.h> 4570/* Override any gcc2 internal prototype to avoid an error. */ 4571#ifdef __cplusplus 4572extern "C" 4573#endif 4574/* We use char because int might match the return type of a gcc2 4575 builtin and then its argument prototype would still apply. */ 4576char $ac_func (); 4577char (*f) (); 4578 4579int 4580main () 4581{ 4582/* The GNU C library defines this for functions which it implements 4583 to always fail with ENOSYS. Some functions are actually named 4584 something starting with __ and the normal name is an alias. */ 4585#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4586choke me 4587#else 4588f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 4589#endif 4590 4591 ; 4592 return 0; 4593} 4594_ACEOF 4595rm -f conftest.$ac_objext conftest$ac_exeext 4596if { (eval echo "$as_me:4596: \"$ac_link\"") >&5 4597 (eval $ac_link) 2>&5 4598 ac_status=$? 4599 echo "$as_me:4599: \$? = $ac_status" >&5 4600 (exit $ac_status); } && 4601 { ac_try='test -s conftest$ac_exeext' 4602 { (eval echo "$as_me:4602: \"$ac_try\"") >&5 4603 (eval $ac_try) 2>&5 4604 ac_status=$? 4605 echo "$as_me:4605: \$? = $ac_status" >&5 4606 (exit $ac_status); }; }; then 4607 eval "$as_ac_var=yes" 4608else 4609 echo "$as_me: failed program was:" >&5 4610cat conftest.$ac_ext >&5 4611eval "$as_ac_var=no" 4612fi 4613rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4614fi 4615echo "$as_me:4615: result: `eval echo '${'$as_ac_var'}'`" >&5 4616echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4617if test `eval echo '${'$as_ac_var'}'` = yes; then 4618 cat >>confdefs.h <<EOF 4619#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4620EOF 4621 4622fi 4623done 4624 4625for ac_header in lastlog.h paths.h 4626do 4627as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4628echo "$as_me:4628: checking for $ac_header" >&5 4629echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4630if eval "test \"\${$as_ac_Header+set}\" = set"; then 4631 echo $ECHO_N "(cached) $ECHO_C" >&6 4632else 4633 cat >conftest.$ac_ext <<_ACEOF 4634#line 4634 "configure" 4635#include "confdefs.h" 4636#include <$ac_header> 4637_ACEOF 4638if { (eval echo "$as_me:4638: \"$ac_cpp conftest.$ac_ext\"") >&5 4639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4640 ac_status=$? 4641 egrep -v '^ *\+' conftest.er1 >conftest.err 4642 rm -f conftest.er1 4643 cat conftest.err >&5 4644 echo "$as_me:4644: \$? = $ac_status" >&5 4645 (exit $ac_status); } >/dev/null; then 4646 if test -s conftest.err; then 4647 ac_cpp_err=$ac_c_preproc_warn_flag 4648 else 4649 ac_cpp_err= 4650 fi 4651else 4652 ac_cpp_err=yes 4653fi 4654if test -z "$ac_cpp_err"; then 4655 eval "$as_ac_Header=yes" 4656else 4657 echo "$as_me: failed program was:" >&5 4658 cat conftest.$ac_ext >&5 4659 eval "$as_ac_Header=no" 4660fi 4661rm -f conftest.err conftest.$ac_ext 4662fi 4663echo "$as_me:4663: result: `eval echo '${'$as_ac_Header'}'`" >&5 4664echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4665if test `eval echo '${'$as_ac_Header'}'` = yes; then 4666 cat >>confdefs.h <<EOF 4667#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4668EOF 4669 4670fi 4671done 4672 4673echo "$as_me:4673: checking for lastlog path" >&5 4674echo $ECHO_N "checking for lastlog path... $ECHO_C" >&6 4675if test "${cf_cv_path_lastlog+set}" = set; then 4676 echo $ECHO_N "(cached) $ECHO_C" >&6 4677else 4678 4679cat >conftest.$ac_ext <<_ACEOF 4680#line 4680 "configure" 4681#include "confdefs.h" 4682 4683#include <sys/types.h> 4684#ifdef HAVE_LASTLOG_H 4685#include <lastlog.h> 4686#else 4687#ifdef HAVE_PATHS_H 4688#include <paths.h> 4689#endif 4690#endif 4691int 4692main () 4693{ 4694char *path = _PATH_LASTLOG 4695 ; 4696 return 0; 4697} 4698_ACEOF 4699rm -f conftest.$ac_objext 4700if { (eval echo "$as_me:4700: \"$ac_compile\"") >&5 4701 (eval $ac_compile) 2>&5 4702 ac_status=$? 4703 echo "$as_me:4703: \$? = $ac_status" >&5 4704 (exit $ac_status); } && 4705 { ac_try='test -s conftest.$ac_objext' 4706 { (eval echo "$as_me:4706: \"$ac_try\"") >&5 4707 (eval $ac_try) 2>&5 4708 ac_status=$? 4709 echo "$as_me:4709: \$? = $ac_status" >&5 4710 (exit $ac_status); }; }; then 4711 cf_cv_path_lastlog="_PATH_LASTLOG" 4712else 4713 echo "$as_me: failed program was:" >&5 4714cat conftest.$ac_ext >&5 4715if test -f /usr/adm/lastlog ; then 4716 cf_cv_path_lastlog=/usr/adm/lastlog 4717 else 4718 cf_cv_path_lastlog=no 4719 fi 4720fi 4721rm -f conftest.$ac_objext conftest.$ac_ext 4722 4723fi 4724echo "$as_me:4724: result: $cf_cv_path_lastlog" >&5 4725echo "${ECHO_T}$cf_cv_path_lastlog" >&6 4726test $cf_cv_path_lastlog != no && 4727cat >>confdefs.h <<\EOF 4728#define USE_LASTLOG 1 4729EOF 4730 4731echo "$as_me:4731: checking for utmp implementation" >&5 4732echo $ECHO_N "checking for utmp implementation... $ECHO_C" >&6 4733if test "${cf_cv_have_utmp+set}" = set; then 4734 echo $ECHO_N "(cached) $ECHO_C" >&6 4735else 4736 4737 cf_cv_have_utmp=no 4738for cf_header in utmpx utmp ; do 4739cf_utmp_includes=" 4740#include <sys/types.h> 4741#include <${cf_header}.h> 4742#define getutent getutxent 4743#ifdef USE_LASTLOG 4744#include <lastlog.h> /* may conflict with utmpx.h on Linux */ 4745#endif 4746" 4747 cat >conftest.$ac_ext <<_ACEOF 4748#line 4748 "configure" 4749#include "confdefs.h" 4750$cf_utmp_includes 4751int 4752main () 4753{ 4754struct $cf_header x; 4755 char *name = x.ut_name; /* utmp.h and compatible definitions */ 4756 4757 ; 4758 return 0; 4759} 4760_ACEOF 4761rm -f conftest.$ac_objext 4762if { (eval echo "$as_me:4762: \"$ac_compile\"") >&5 4763 (eval $ac_compile) 2>&5 4764 ac_status=$? 4765 echo "$as_me:4765: \$? = $ac_status" >&5 4766 (exit $ac_status); } && 4767 { ac_try='test -s conftest.$ac_objext' 4768 { (eval echo "$as_me:4768: \"$ac_try\"") >&5 4769 (eval $ac_try) 2>&5 4770 ac_status=$? 4771 echo "$as_me:4771: \$? = $ac_status" >&5 4772 (exit $ac_status); }; }; then 4773 cf_cv_have_utmp=$cf_header 4774 break 4775else 4776 echo "$as_me: failed program was:" >&5 4777cat conftest.$ac_ext >&5 4778 4779 cat >conftest.$ac_ext <<_ACEOF 4780#line 4780 "configure" 4781#include "confdefs.h" 4782$cf_utmp_includes 4783int 4784main () 4785{ 4786struct $cf_header x; 4787 char *name = x.ut_user; /* utmpx.h must declare this */ 4788 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_have_utmp=$cf_header 4806 break 4807 4808else 4809 echo "$as_me: failed program was:" >&5 4810cat conftest.$ac_ext >&5 4811fi 4812rm -f conftest.$ac_objext conftest.$ac_ext 4813fi 4814rm -f conftest.$ac_objext conftest.$ac_ext 4815done 4816 4817fi 4818echo "$as_me:4818: result: $cf_cv_have_utmp" >&5 4819echo "${ECHO_T}$cf_cv_have_utmp" >&6 4820 4821if test $cf_cv_have_utmp != no ; then 4822 4823cat >>confdefs.h <<\EOF 4824#define HAVE_UTMP 1 4825EOF 4826 4827 test $cf_cv_have_utmp = utmpx && 4828cat >>confdefs.h <<\EOF 4829#define UTMPX_FOR_UTMP 1 4830EOF 4831 4832if test $cf_cv_have_utmp != no ; then 4833echo "$as_me:4833: checking if ${cf_cv_have_utmp}.ut_host is declared" >&5 4834echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_host is declared... $ECHO_C" >&6 4835if test "${cf_cv_have_utmp_ut_host+set}" = set; then 4836 echo $ECHO_N "(cached) $ECHO_C" >&6 4837else 4838 4839 cat >conftest.$ac_ext <<_ACEOF 4840#line 4840 "configure" 4841#include "confdefs.h" 4842 4843#include <sys/types.h> 4844#include <${cf_cv_have_utmp}.h> 4845int 4846main () 4847{ 4848struct $cf_cv_have_utmp x; char *y = &x.ut_host[0] 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_have_utmp_ut_host=yes 4866else 4867 echo "$as_me: failed program was:" >&5 4868cat conftest.$ac_ext >&5 4869cf_cv_have_utmp_ut_host=no 4870fi 4871rm -f conftest.$ac_objext conftest.$ac_ext 4872 4873fi 4874 4875echo "$as_me:4875: result: $cf_cv_have_utmp_ut_host" >&5 4876echo "${ECHO_T}$cf_cv_have_utmp_ut_host" >&6 4877test $cf_cv_have_utmp_ut_host != no && 4878cat >>confdefs.h <<\EOF 4879#define HAVE_UTMP_UT_HOST 1 4880EOF 4881 4882fi 4883 4884if test $cf_cv_have_utmp != no ; then 4885echo "$as_me:4885: checking if ${cf_cv_have_utmp}.ut_syslen is declared" >&5 4886echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_syslen is declared... $ECHO_C" >&6 4887if test "${cf_cv_have_utmp_ut_syslen+set}" = set; then 4888 echo $ECHO_N "(cached) $ECHO_C" >&6 4889else 4890 4891 cat >conftest.$ac_ext <<_ACEOF 4892#line 4892 "configure" 4893#include "confdefs.h" 4894 4895#include <sys/types.h> 4896#include <${cf_cv_have_utmp}.h> 4897int 4898main () 4899{ 4900struct $cf_cv_have_utmp x; int y = x.ut_syslen 4901 ; 4902 return 0; 4903} 4904_ACEOF 4905rm -f conftest.$ac_objext 4906if { (eval echo "$as_me:4906: \"$ac_compile\"") >&5 4907 (eval $ac_compile) 2>&5 4908 ac_status=$? 4909 echo "$as_me:4909: \$? = $ac_status" >&5 4910 (exit $ac_status); } && 4911 { ac_try='test -s conftest.$ac_objext' 4912 { (eval echo "$as_me:4912: \"$ac_try\"") >&5 4913 (eval $ac_try) 2>&5 4914 ac_status=$? 4915 echo "$as_me:4915: \$? = $ac_status" >&5 4916 (exit $ac_status); }; }; then 4917 cf_cv_have_utmp_ut_syslen=yes 4918else 4919 echo "$as_me: failed program was:" >&5 4920cat conftest.$ac_ext >&5 4921cf_cv_have_utmp_ut_syslen=no 4922fi 4923rm -f conftest.$ac_objext conftest.$ac_ext 4924 4925fi 4926 4927echo "$as_me:4927: result: $cf_cv_have_utmp_ut_syslen" >&5 4928echo "${ECHO_T}$cf_cv_have_utmp_ut_syslen" >&6 4929test $cf_cv_have_utmp_ut_syslen != no && 4930cat >>confdefs.h <<\EOF 4931#define HAVE_UTMP_UT_SYSLEN 1 4932EOF 4933 4934fi 4935 4936if test $cf_cv_have_utmp != no ; then 4937echo "$as_me:4937: checking if ${cf_cv_have_utmp}.ut_name is declared" >&5 4938echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_name is declared... $ECHO_C" >&6 4939if test "${cf_cv_have_utmp_ut_name+set}" = set; then 4940 echo $ECHO_N "(cached) $ECHO_C" >&6 4941else 4942 4943 cf_cv_have_utmp_ut_name=no 4944cf_utmp_includes=" 4945#include <sys/types.h> 4946#include <${cf_cv_have_utmp}.h> 4947#define getutent getutxent 4948#ifdef USE_LASTLOG 4949#include <lastlog.h> /* may conflict with utmpx.h on Linux */ 4950#endif 4951" 4952for cf_header in ut_name ut_user ; do 4953 cat >conftest.$ac_ext <<_ACEOF 4954#line 4954 "configure" 4955#include "confdefs.h" 4956$cf_utmp_includes 4957int 4958main () 4959{ 4960struct $cf_cv_have_utmp x; 4961 char *name = x.$cf_header; 4962 4963 ; 4964 return 0; 4965} 4966_ACEOF 4967rm -f conftest.$ac_objext 4968if { (eval echo "$as_me:4968: \"$ac_compile\"") >&5 4969 (eval $ac_compile) 2>&5 4970 ac_status=$? 4971 echo "$as_me:4971: \$? = $ac_status" >&5 4972 (exit $ac_status); } && 4973 { ac_try='test -s conftest.$ac_objext' 4974 { (eval echo "$as_me:4974: \"$ac_try\"") >&5 4975 (eval $ac_try) 2>&5 4976 ac_status=$? 4977 echo "$as_me:4977: \$? = $ac_status" >&5 4978 (exit $ac_status); }; }; then 4979 cf_cv_have_utmp_ut_name=$cf_header 4980 break 4981else 4982 echo "$as_me: failed program was:" >&5 4983cat conftest.$ac_ext >&5 4984fi 4985rm -f conftest.$ac_objext conftest.$ac_ext 4986done 4987 4988fi 4989echo "$as_me:4989: result: $cf_cv_have_utmp_ut_name" >&5 4990echo "${ECHO_T}$cf_cv_have_utmp_ut_name" >&6 4991 4992case $cf_cv_have_utmp_ut_name in 4993(no) 4994 { { echo "$as_me:4994: error: Cannot find declaration for ut.ut_name" >&5 4995echo "$as_me: error: Cannot find declaration for ut.ut_name" >&2;} 4996 { (exit 1); exit 1; }; } 4997 ;; 4998(ut_user) 4999 5000cat >>confdefs.h <<\EOF 5001#define ut_name ut_user 5002EOF 5003 5004 ;; 5005esac 5006fi 5007 5008if test $cf_cv_have_utmp != no ; then 5009echo "$as_me:5009: checking for exit-status in $cf_cv_have_utmp" >&5 5010echo $ECHO_N "checking for exit-status in $cf_cv_have_utmp... $ECHO_C" >&6 5011if test "${cf_cv_have_utmp_ut_xstatus+set}" = set; then 5012 echo $ECHO_N "(cached) $ECHO_C" >&6 5013else 5014 5015for cf_result in \ 5016 ut_exit.__e_exit \ 5017 ut_exit.e_exit \ 5018 ut_exit.ut_e_exit \ 5019 ut_exit.ut_exit 5020do 5021cat >conftest.$ac_ext <<_ACEOF 5022#line 5022 "configure" 5023#include "confdefs.h" 5024 5025#include <sys/types.h> 5026#include <${cf_cv_have_utmp}.h> 5027int 5028main () 5029{ 5030struct $cf_cv_have_utmp x; long y = x.$cf_result = 0 5031 ; 5032 return 0; 5033} 5034_ACEOF 5035rm -f conftest.$ac_objext 5036if { (eval echo "$as_me:5036: \"$ac_compile\"") >&5 5037 (eval $ac_compile) 2>&5 5038 ac_status=$? 5039 echo "$as_me:5039: \$? = $ac_status" >&5 5040 (exit $ac_status); } && 5041 { ac_try='test -s conftest.$ac_objext' 5042 { (eval echo "$as_me:5042: \"$ac_try\"") >&5 5043 (eval $ac_try) 2>&5 5044 ac_status=$? 5045 echo "$as_me:5045: \$? = $ac_status" >&5 5046 (exit $ac_status); }; }; then 5047 cf_cv_have_utmp_ut_xstatus=$cf_result 5048 break 5049else 5050 echo "$as_me: failed program was:" >&5 5051cat conftest.$ac_ext >&5 5052cf_cv_have_utmp_ut_xstatus=no 5053fi 5054rm -f conftest.$ac_objext conftest.$ac_ext 5055done 5056 5057fi 5058echo "$as_me:5058: result: $cf_cv_have_utmp_ut_xstatus" >&5 5059echo "${ECHO_T}$cf_cv_have_utmp_ut_xstatus" >&6 5060if test $cf_cv_have_utmp_ut_xstatus != no ; then 5061 5062cat >>confdefs.h <<\EOF 5063#define HAVE_UTMP_UT_XSTATUS 1 5064EOF 5065 5066cat >>confdefs.h <<EOF 5067#define ut_xstatus $cf_cv_have_utmp_ut_xstatus 5068EOF 5069 5070fi 5071fi 5072 5073if test $cf_cv_have_utmp != no ; then 5074echo "$as_me:5074: checking if ${cf_cv_have_utmp}.ut_xtime is declared" >&5 5075echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_xtime is declared... $ECHO_C" >&6 5076if test "${cf_cv_have_utmp_ut_xtime+set}" = set; then 5077 echo $ECHO_N "(cached) $ECHO_C" >&6 5078else 5079 5080 cat >conftest.$ac_ext <<_ACEOF 5081#line 5081 "configure" 5082#include "confdefs.h" 5083 5084#include <sys/types.h> 5085#include <${cf_cv_have_utmp}.h> 5086int 5087main () 5088{ 5089struct $cf_cv_have_utmp x; long y = x.ut_xtime = 0 5090 ; 5091 return 0; 5092} 5093_ACEOF 5094rm -f conftest.$ac_objext 5095if { (eval echo "$as_me:5095: \"$ac_compile\"") >&5 5096 (eval $ac_compile) 2>&5 5097 ac_status=$? 5098 echo "$as_me:5098: \$? = $ac_status" >&5 5099 (exit $ac_status); } && 5100 { ac_try='test -s conftest.$ac_objext' 5101 { (eval echo "$as_me:5101: \"$ac_try\"") >&5 5102 (eval $ac_try) 2>&5 5103 ac_status=$? 5104 echo "$as_me:5104: \$? = $ac_status" >&5 5105 (exit $ac_status); }; }; then 5106 cf_cv_have_utmp_ut_xtime=yes 5107else 5108 echo "$as_me: failed program was:" >&5 5109cat conftest.$ac_ext >&5 5110cat >conftest.$ac_ext <<_ACEOF 5111#line 5111 "configure" 5112#include "confdefs.h" 5113 5114#include <sys/types.h> 5115#include <${cf_cv_have_utmp}.h> 5116int 5117main () 5118{ 5119struct $cf_cv_have_utmp x; long y = x.ut_tv.tv_sec 5120 ; 5121 return 0; 5122} 5123_ACEOF 5124rm -f conftest.$ac_objext 5125if { (eval echo "$as_me:5125: \"$ac_compile\"") >&5 5126 (eval $ac_compile) 2>&5 5127 ac_status=$? 5128 echo "$as_me:5128: \$? = $ac_status" >&5 5129 (exit $ac_status); } && 5130 { ac_try='test -s conftest.$ac_objext' 5131 { (eval echo "$as_me:5131: \"$ac_try\"") >&5 5132 (eval $ac_try) 2>&5 5133 ac_status=$? 5134 echo "$as_me:5134: \$? = $ac_status" >&5 5135 (exit $ac_status); }; }; then 5136 cf_cv_have_utmp_ut_xtime=define 5137else 5138 echo "$as_me: failed program was:" >&5 5139cat conftest.$ac_ext >&5 5140cf_cv_have_utmp_ut_xtime=no 5141fi 5142rm -f conftest.$ac_objext conftest.$ac_ext 5143 5144fi 5145rm -f conftest.$ac_objext conftest.$ac_ext 5146 5147fi 5148echo "$as_me:5148: result: $cf_cv_have_utmp_ut_xtime" >&5 5149echo "${ECHO_T}$cf_cv_have_utmp_ut_xtime" >&6 5150if test $cf_cv_have_utmp_ut_xtime != no ; then 5151 5152cat >>confdefs.h <<\EOF 5153#define HAVE_UTMP_UT_XTIME 1 5154EOF 5155 5156 if test $cf_cv_have_utmp_ut_xtime = define ; then 5157 5158cat >>confdefs.h <<\EOF 5159#define ut_xtime ut_tv.tv_sec 5160EOF 5161 5162 fi 5163fi 5164fi 5165 5166if test $cf_cv_have_utmp != no ; then 5167echo "$as_me:5167: checking if ${cf_cv_have_utmp}.ut_session is declared" >&5 5168echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_session is declared... $ECHO_C" >&6 5169if test "${cf_cv_have_utmp_ut_session+set}" = set; then 5170 echo $ECHO_N "(cached) $ECHO_C" >&6 5171else 5172 5173 cat >conftest.$ac_ext <<_ACEOF 5174#line 5174 "configure" 5175#include "confdefs.h" 5176 5177#include <sys/types.h> 5178#include <${cf_cv_have_utmp}.h> 5179int 5180main () 5181{ 5182struct $cf_cv_have_utmp x; long y = x.ut_session 5183 ; 5184 return 0; 5185} 5186_ACEOF 5187rm -f conftest.$ac_objext 5188if { (eval echo "$as_me:5188: \"$ac_compile\"") >&5 5189 (eval $ac_compile) 2>&5 5190 ac_status=$? 5191 echo "$as_me:5191: \$? = $ac_status" >&5 5192 (exit $ac_status); } && 5193 { ac_try='test -s conftest.$ac_objext' 5194 { (eval echo "$as_me:5194: \"$ac_try\"") >&5 5195 (eval $ac_try) 2>&5 5196 ac_status=$? 5197 echo "$as_me:5197: \$? = $ac_status" >&5 5198 (exit $ac_status); }; }; then 5199 cf_cv_have_utmp_ut_session=yes 5200else 5201 echo "$as_me: failed program was:" >&5 5202cat conftest.$ac_ext >&5 5203cf_cv_have_utmp_ut_session=no 5204fi 5205rm -f conftest.$ac_objext conftest.$ac_ext 5206 5207fi 5208echo "$as_me:5208: result: $cf_cv_have_utmp_ut_session" >&5 5209echo "${ECHO_T}$cf_cv_have_utmp_ut_session" >&6 5210if test $cf_cv_have_utmp_ut_session != no ; then 5211 5212cat >>confdefs.h <<\EOF 5213#define HAVE_UTMP_UT_SESSION 1 5214EOF 5215 5216fi 5217fi 5218 5219echo "$as_me:5219: checking if $cf_cv_have_utmp is SYSV flavor" >&5 5220echo $ECHO_N "checking if $cf_cv_have_utmp is SYSV flavor... $ECHO_C" >&6 5221if test "${cf_cv_sysv_utmp+set}" = set; then 5222 echo $ECHO_N "(cached) $ECHO_C" >&6 5223else 5224 5225test "$cf_cv_have_utmp" = "utmp" && cf_prefix="ut" || cf_prefix="utx" 5226cat >conftest.$ac_ext <<_ACEOF 5227#line 5227 "configure" 5228#include "confdefs.h" 5229 5230#include <sys/types.h> 5231#include <${cf_cv_have_utmp}.h> 5232int 5233main () 5234{ 5235 5236struct $cf_cv_have_utmp x; 5237 set${cf_prefix}ent (); 5238 get${cf_prefix}id(&x); 5239 put${cf_prefix}line(&x); 5240 end${cf_prefix}ent(); 5241 ; 5242 return 0; 5243} 5244_ACEOF 5245rm -f conftest.$ac_objext conftest$ac_exeext 5246if { (eval echo "$as_me:5246: \"$ac_link\"") >&5 5247 (eval $ac_link) 2>&5 5248 ac_status=$? 5249 echo "$as_me:5249: \$? = $ac_status" >&5 5250 (exit $ac_status); } && 5251 { ac_try='test -s conftest$ac_exeext' 5252 { (eval echo "$as_me:5252: \"$ac_try\"") >&5 5253 (eval $ac_try) 2>&5 5254 ac_status=$? 5255 echo "$as_me:5255: \$? = $ac_status" >&5 5256 (exit $ac_status); }; }; then 5257 cf_cv_sysv_utmp=yes 5258else 5259 echo "$as_me: failed program was:" >&5 5260cat conftest.$ac_ext >&5 5261cf_cv_sysv_utmp=no 5262fi 5263rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5264 5265fi 5266echo "$as_me:5266: result: $cf_cv_sysv_utmp" >&5 5267echo "${ECHO_T}$cf_cv_sysv_utmp" >&6 5268test $cf_cv_sysv_utmp = yes && 5269cat >>confdefs.h <<\EOF 5270#define USE_SYSV_UTMP 1 5271EOF 5272 5273fi 5274 5275for ac_header in lastlog.h 5276do 5277as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5278echo "$as_me:5278: checking for $ac_header" >&5 5279echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5280if eval "test \"\${$as_ac_Header+set}\" = set"; then 5281 echo $ECHO_N "(cached) $ECHO_C" >&6 5282else 5283 cat >conftest.$ac_ext <<_ACEOF 5284#line 5284 "configure" 5285#include "confdefs.h" 5286#include <$ac_header> 5287_ACEOF 5288if { (eval echo "$as_me:5288: \"$ac_cpp conftest.$ac_ext\"") >&5 5289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5290 ac_status=$? 5291 egrep -v '^ *\+' conftest.er1 >conftest.err 5292 rm -f conftest.er1 5293 cat conftest.err >&5 5294 echo "$as_me:5294: \$? = $ac_status" >&5 5295 (exit $ac_status); } >/dev/null; then 5296 if test -s conftest.err; then 5297 ac_cpp_err=$ac_c_preproc_warn_flag 5298 else 5299 ac_cpp_err= 5300 fi 5301else 5302 ac_cpp_err=yes 5303fi 5304if test -z "$ac_cpp_err"; then 5305 eval "$as_ac_Header=yes" 5306else 5307 echo "$as_me: failed program was:" >&5 5308 cat conftest.$ac_ext >&5 5309 eval "$as_ac_Header=no" 5310fi 5311rm -f conftest.err conftest.$ac_ext 5312fi 5313echo "$as_me:5313: result: `eval echo '${'$as_ac_Header'}'`" >&5 5314echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5315if test `eval echo '${'$as_ac_Header'}'` = yes; then 5316 cat >>confdefs.h <<EOF 5317#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5318EOF 5319 5320fi 5321done 5322 5323echo "$as_me:5323: checking for struct lastlog" >&5 5324echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 5325if test "${cf_cv_struct_lastlog+set}" = set; then 5326 echo $ECHO_N "(cached) $ECHO_C" >&6 5327else 5328 5329if test "$cross_compiling" = yes; then 5330 5331cf_cv_struct_lastlog=unknown 5332else 5333 cat >conftest.$ac_ext <<_ACEOF 5334#line 5334 "configure" 5335#include "confdefs.h" 5336 5337#include <sys/types.h> 5338#include <time.h> 5339#include <lastlog.h> 5340 5341int main() 5342{ 5343 struct lastlog data; 5344 return (sizeof(data.ll_time) != sizeof(time_t)); 5345} 5346_ACEOF 5347rm -f conftest$ac_exeext 5348if { (eval echo "$as_me:5348: \"$ac_link\"") >&5 5349 (eval $ac_link) 2>&5 5350 ac_status=$? 5351 echo "$as_me:5351: \$? = $ac_status" >&5 5352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5353 { (eval echo "$as_me:5353: \"$ac_try\"") >&5 5354 (eval $ac_try) 2>&5 5355 ac_status=$? 5356 echo "$as_me:5356: \$? = $ac_status" >&5 5357 (exit $ac_status); }; }; then 5358 5359cf_cv_struct_lastlog=yes 5360else 5361 echo "$as_me: program exited with status $ac_status" >&5 5362echo "$as_me: failed program was:" >&5 5363cat conftest.$ac_ext >&5 5364 5365cf_cv_struct_lastlog=no 5366fi 5367rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5368fi 5369fi 5370echo "$as_me:5370: result: $cf_cv_struct_lastlog" >&5 5371echo "${ECHO_T}$cf_cv_struct_lastlog" >&6 5372 5373test $cf_cv_struct_lastlog != no && 5374cat >>confdefs.h <<\EOF 5375#define USE_STRUCT_LASTLOG 1 5376EOF 5377 5378for ac_header in \ 5379sys/param.h \ 5380 5381do 5382as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5383echo "$as_me:5383: checking for $ac_header" >&5 5384echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5385if eval "test \"\${$as_ac_Header+set}\" = set"; then 5386 echo $ECHO_N "(cached) $ECHO_C" >&6 5387else 5388 cat >conftest.$ac_ext <<_ACEOF 5389#line 5389 "configure" 5390#include "confdefs.h" 5391#include <$ac_header> 5392_ACEOF 5393if { (eval echo "$as_me:5393: \"$ac_cpp conftest.$ac_ext\"") >&5 5394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5395 ac_status=$? 5396 egrep -v '^ *\+' conftest.er1 >conftest.err 5397 rm -f conftest.er1 5398 cat conftest.err >&5 5399 echo "$as_me:5399: \$? = $ac_status" >&5 5400 (exit $ac_status); } >/dev/null; then 5401 if test -s conftest.err; then 5402 ac_cpp_err=$ac_c_preproc_warn_flag 5403 else 5404 ac_cpp_err= 5405 fi 5406else 5407 ac_cpp_err=yes 5408fi 5409if test -z "$ac_cpp_err"; then 5410 eval "$as_ac_Header=yes" 5411else 5412 echo "$as_me: failed program was:" >&5 5413 cat conftest.$ac_ext >&5 5414 eval "$as_ac_Header=no" 5415fi 5416rm -f conftest.err conftest.$ac_ext 5417fi 5418echo "$as_me:5418: result: `eval echo '${'$as_ac_Header'}'`" >&5 5419echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5420if test `eval echo '${'$as_ac_Header'}'` = yes; then 5421 cat >>confdefs.h <<EOF 5422#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5423EOF 5424 5425fi 5426done 5427 5428echo "$as_me:5428: checking if POSIX saved-ids are supported" >&5 5429echo $ECHO_N "checking if POSIX saved-ids are supported... $ECHO_C" >&6 5430if test "${cf_cv_posix_saved_ids+set}" = set; then 5431 echo $ECHO_N "(cached) $ECHO_C" >&6 5432else 5433 5434cat >conftest.$ac_ext <<_ACEOF 5435#line 5435 "configure" 5436#include "confdefs.h" 5437 5438#include <unistd.h> 5439#ifdef HAVE_SYS_PARAM_H 5440#include <sys/param.h> /* this may define "BSD" */ 5441#endif 5442 5443int 5444main () 5445{ 5446 5447#if defined(_POSIX_SAVED_IDS) && (_POSIX_SAVED_IDS > 0) 5448 void *p = (void *) seteuid; 5449 int x = seteuid(geteuid()); 5450#elif defined(BSD) && (BSD >= 199103) 5451/* The BSD's may implement the runtime check - and it fails. 5452 * However, saved-ids work almost like POSIX (close enough for most uses). 5453 */ 5454#else 5455make an error 5456#endif 5457 5458 ; 5459 return 0; 5460} 5461_ACEOF 5462rm -f conftest.$ac_objext conftest$ac_exeext 5463if { (eval echo "$as_me:5463: \"$ac_link\"") >&5 5464 (eval $ac_link) 2>&5 5465 ac_status=$? 5466 echo "$as_me:5466: \$? = $ac_status" >&5 5467 (exit $ac_status); } && 5468 { ac_try='test -s conftest$ac_exeext' 5469 { (eval echo "$as_me:5469: \"$ac_try\"") >&5 5470 (eval $ac_try) 2>&5 5471 ac_status=$? 5472 echo "$as_me:5472: \$? = $ac_status" >&5 5473 (exit $ac_status); }; }; then 5474 cf_cv_posix_saved_ids=yes 5475 5476else 5477 echo "$as_me: failed program was:" >&5 5478cat conftest.$ac_ext >&5 5479 5480if test "$cross_compiling" = yes; then 5481 cf_cv_posix_saved_ids=unknown 5482else 5483 cat >conftest.$ac_ext <<_ACEOF 5484#line 5484 "configure" 5485#include "confdefs.h" 5486 5487#ifdef HAVE_STDLIB_H 5488#include <stdlib.h> 5489#endif 5490#include <unistd.h> 5491int main() 5492{ 5493 void *p = (void *) seteuid; 5494 long code = sysconf(_SC_SAVED_IDS); 5495 ${cf_cv_main_return:-return} ((code > 0) ? 0 : 1); 5496} 5497_ACEOF 5498rm -f conftest$ac_exeext 5499if { (eval echo "$as_me:5499: \"$ac_link\"") >&5 5500 (eval $ac_link) 2>&5 5501 ac_status=$? 5502 echo "$as_me:5502: \$? = $ac_status" >&5 5503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5504 { (eval echo "$as_me:5504: \"$ac_try\"") >&5 5505 (eval $ac_try) 2>&5 5506 ac_status=$? 5507 echo "$as_me:5507: \$? = $ac_status" >&5 5508 (exit $ac_status); }; }; then 5509 cf_cv_posix_saved_ids=yes 5510else 5511 echo "$as_me: program exited with status $ac_status" >&5 5512echo "$as_me: failed program was:" >&5 5513cat conftest.$ac_ext >&5 5514cf_cv_posix_saved_ids=no 5515fi 5516rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5517fi 5518 5519fi 5520rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5521 5522fi 5523echo "$as_me:5523: result: $cf_cv_posix_saved_ids" >&5 5524echo "${ECHO_T}$cf_cv_posix_saved_ids" >&6 5525 5526test "$cf_cv_posix_saved_ids" = yes && 5527cat >>confdefs.h <<\EOF 5528#define HAVE_POSIX_SAVED_IDS 1 5529EOF 5530 5531# compute a reasonable value for $TERM to give tgetent(), since we may be 5532# running in 'screen', which sets $TERMCAP to a specific entry that is not 5533# necessarily in /etc/termcap - unsetenv is not portable, so we cannot simply 5534# discard $TERMCAP. 5535cf_TERMVAR=vt100 5536if test -n "$TERMCAP" 5537then 5538 cf_TERMCAP=`echo "$TERMCAP" | tr '\n' ' ' | sed -e 's/^..|//' -e 's/|.*//'` 5539 case "$cf_TERMCAP" in 5540 (screen*.*) 5541 ;; 5542 (*) 5543 cf_TERMVAR="$cf_TERMCAP" 5544 ;; 5545 esac 5546fi 5547test -z "$cf_TERMVAR" && cf_TERMVAR=vt100 5548 5549echo "$as_me:5549: checking if we want full tgetent function" >&5 5550echo $ECHO_N "checking if we want full tgetent function... $ECHO_C" >&6 5551 5552# Check whether --enable-full-tgetent or --disable-full-tgetent was given. 5553if test "${enable_full_tgetent+set}" = set; then 5554 enableval="$enable_full_tgetent" 5555 test "$enableval" != no && enableval=yes 5556 if test "$enableval" != "yes" ; then 5557 cf_full_tgetent=no 5558 else 5559 cf_full_tgetent=yes 5560 fi 5561else 5562 enableval=yes 5563 cf_full_tgetent=yes 5564 5565fi; 5566echo "$as_me:5566: result: $cf_full_tgetent" >&5 5567echo "${ECHO_T}$cf_full_tgetent" >&6 5568 5569if test "$cf_full_tgetent" = yes ; then 5570 cf_test_message="full tgetent" 5571else 5572 cf_test_message="tgetent" 5573fi 5574 5575echo "$as_me:5575: checking for $cf_test_message function" >&5 5576echo $ECHO_N "checking for $cf_test_message function... $ECHO_C" >&6 5577if test "${cf_cv_lib_tgetent+set}" = set; then 5578 echo $ECHO_N "(cached) $ECHO_C" >&6 5579else 5580 5581cf_save_LIBS="$LIBS" 5582cf_cv_lib_tgetent=no 5583if test "$cf_full_tgetent" = yes ; then 5584 cf_TERMLIB="otermcap termcap termlib ncurses curses" 5585 cf_TERMTST="buffer[0] == 0" 5586else 5587 cf_TERMLIB="termlib ncurses curses" 5588 cf_TERMTST="0" 5589fi 5590for cf_termlib in '' $cf_TERMLIB ; do 5591 LIBS="$cf_save_LIBS" 5592 test -n "$cf_termlib" && { 5593cf_add_libs="-l$cf_termlib" 5594# Filter out duplicates - this happens with badly-designed ".pc" files... 5595for cf_add_1lib in $LIBS 5596do 5597 for cf_add_2lib in $cf_add_libs 5598 do 5599 if test "x$cf_add_1lib" = "x$cf_add_2lib" 5600 then 5601 cf_add_1lib= 5602 break 5603 fi 5604 done 5605 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 5606done 5607LIBS="$cf_add_libs" 5608 } 5609 if test "$cross_compiling" = yes; then 5610 echo "cross-compiling, cannot verify if a termcap/tgetent is present in $cf_termlib" 1>&5 5611else 5612 cat >conftest.$ac_ext <<_ACEOF 5613#line 5613 "configure" 5614#include "confdefs.h" 5615 5616/* terminfo implementations ignore the buffer argument, making it useless for 5617 * the xterm application, which uses this information to make a new TERMCAP 5618 * environment variable. 5619 */ 5620int main() 5621{ 5622 char buffer[1024]; 5623 buffer[0] = 0; 5624 tgetent(buffer, "$cf_TERMVAR"); 5625 ${cf_cv_main_return:-return} ($cf_TERMTST); } 5626_ACEOF 5627rm -f conftest$ac_exeext 5628if { (eval echo "$as_me:5628: \"$ac_link\"") >&5 5629 (eval $ac_link) 2>&5 5630 ac_status=$? 5631 echo "$as_me:5631: \$? = $ac_status" >&5 5632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5633 { (eval echo "$as_me:5633: \"$ac_try\"") >&5 5634 (eval $ac_try) 2>&5 5635 ac_status=$? 5636 echo "$as_me:5636: \$? = $ac_status" >&5 5637 (exit $ac_status); }; }; then 5638 echo "yes, there is a termcap/tgetent in $cf_termlib" 1>&5 5639 if test -n "$cf_termlib" ; then 5640 cf_cv_lib_tgetent="-l$cf_termlib" 5641 else 5642 cf_cv_lib_tgetent=yes 5643 fi 5644 break 5645else 5646 echo "$as_me: program exited with status $ac_status" >&5 5647echo "$as_me: failed program was:" >&5 5648cat conftest.$ac_ext >&5 5649echo "no, there is no termcap/tgetent in $cf_termlib" 1>&5 5650fi 5651rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5652fi 5653done 5654LIBS="$cf_save_LIBS" 5655 5656fi 5657echo "$as_me:5657: result: $cf_cv_lib_tgetent" >&5 5658echo "${ECHO_T}$cf_cv_lib_tgetent" >&6 5659 5660# If we found a working tgetent(), set LIBS and check for termcap.h. 5661# (LIBS cannot be set inside AC_CACHE_CHECK; the commands there should 5662# not have side effects other than setting the cache variable, because 5663# they are not executed when a cached value exists.) 5664if test "x$cf_cv_lib_tgetent" != xno ; then 5665 test "x$cf_cv_lib_tgetent" != xyes && { 5666cf_add_libs="$cf_cv_lib_tgetent" 5667# Filter out duplicates - this happens with badly-designed ".pc" files... 5668for cf_add_1lib in $LIBS 5669do 5670 for cf_add_2lib in $cf_add_libs 5671 do 5672 if test "x$cf_add_1lib" = "x$cf_add_2lib" 5673 then 5674 cf_add_1lib= 5675 break 5676 fi 5677 done 5678 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 5679done 5680LIBS="$cf_add_libs" 5681 } 5682 5683cat >>confdefs.h <<\EOF 5684#define USE_TERMCAP 1 5685EOF 5686 5687 if test "$cf_full_tgetent" = no ; then 5688 cat >conftest.$ac_ext <<_ACEOF 5689#line 5689 "configure" 5690#include "confdefs.h" 5691 5692#include <termcap.h> 5693int 5694main () 5695{ 5696 5697#ifdef NCURSES_VERSION 5698make an error 5699#endif 5700 ; 5701 return 0; 5702} 5703_ACEOF 5704rm -f conftest.$ac_objext 5705if { (eval echo "$as_me:5705: \"$ac_compile\"") >&5 5706 (eval $ac_compile) 2>&5 5707 ac_status=$? 5708 echo "$as_me:5708: \$? = $ac_status" >&5 5709 (exit $ac_status); } && 5710 { ac_try='test -s conftest.$ac_objext' 5711 { (eval echo "$as_me:5711: \"$ac_try\"") >&5 5712 (eval $ac_try) 2>&5 5713 ac_status=$? 5714 echo "$as_me:5714: \$? = $ac_status" >&5 5715 (exit $ac_status); }; }; then 5716 cat >>confdefs.h <<\EOF 5717#define HAVE_TERMCAP_H 1 5718EOF 5719 5720else 5721 echo "$as_me: failed program was:" >&5 5722cat conftest.$ac_ext >&5 5723fi 5724rm -f conftest.$ac_objext conftest.$ac_ext 5725 else 5726 5727for ac_header in termcap.h 5728do 5729as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5730echo "$as_me:5730: checking for $ac_header" >&5 5731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5732if eval "test \"\${$as_ac_Header+set}\" = set"; then 5733 echo $ECHO_N "(cached) $ECHO_C" >&6 5734else 5735 cat >conftest.$ac_ext <<_ACEOF 5736#line 5736 "configure" 5737#include "confdefs.h" 5738#include <$ac_header> 5739_ACEOF 5740if { (eval echo "$as_me:5740: \"$ac_cpp conftest.$ac_ext\"") >&5 5741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5742 ac_status=$? 5743 egrep -v '^ *\+' conftest.er1 >conftest.err 5744 rm -f conftest.er1 5745 cat conftest.err >&5 5746 echo "$as_me:5746: \$? = $ac_status" >&5 5747 (exit $ac_status); } >/dev/null; then 5748 if test -s conftest.err; then 5749 ac_cpp_err=$ac_c_preproc_warn_flag 5750 else 5751 ac_cpp_err= 5752 fi 5753else 5754 ac_cpp_err=yes 5755fi 5756if test -z "$ac_cpp_err"; then 5757 eval "$as_ac_Header=yes" 5758else 5759 echo "$as_me: failed program was:" >&5 5760 cat conftest.$ac_ext >&5 5761 eval "$as_ac_Header=no" 5762fi 5763rm -f conftest.err conftest.$ac_ext 5764fi 5765echo "$as_me:5765: result: `eval echo '${'$as_ac_Header'}'`" >&5 5766echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5767if test `eval echo '${'$as_ac_Header'}'` = yes; then 5768 cat >>confdefs.h <<EOF 5769#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5770EOF 5771 5772fi 5773done 5774 5775 fi 5776else 5777 # If we didn't find a tgetent() that supports the buffer 5778 # argument, look again to see whether we can find even 5779 # a crippled one. A crippled tgetent() is still useful to 5780 # validate values for the TERM environment variable given to 5781 # child processes. 5782 echo "$as_me:5782: checking for partial tgetent function" >&5 5783echo $ECHO_N "checking for partial tgetent function... $ECHO_C" >&6 5784if test "${cf_cv_lib_part_tgetent+set}" = set; then 5785 echo $ECHO_N "(cached) $ECHO_C" >&6 5786else 5787 5788 cf_cv_lib_part_tgetent=no 5789 for cf_termlib in $cf_TERMLIB ; do 5790 LIBS="$cf_save_LIBS -l$cf_termlib" 5791 cat >conftest.$ac_ext <<_ACEOF 5792#line 5792 "configure" 5793#include "confdefs.h" 5794 5795int 5796main () 5797{ 5798tgetent(0, "$cf_TERMVAR") 5799 ; 5800 return 0; 5801} 5802_ACEOF 5803rm -f conftest.$ac_objext conftest$ac_exeext 5804if { (eval echo "$as_me:5804: \"$ac_link\"") >&5 5805 (eval $ac_link) 2>&5 5806 ac_status=$? 5807 echo "$as_me:5807: \$? = $ac_status" >&5 5808 (exit $ac_status); } && 5809 { ac_try='test -s conftest$ac_exeext' 5810 { (eval echo "$as_me:5810: \"$ac_try\"") >&5 5811 (eval $ac_try) 2>&5 5812 ac_status=$? 5813 echo "$as_me:5813: \$? = $ac_status" >&5 5814 (exit $ac_status); }; }; then 5815 echo "there is a terminfo/tgetent in $cf_termlib" 1>&5 5816 cf_cv_lib_part_tgetent="-l$cf_termlib" 5817 break 5818else 5819 echo "$as_me: failed program was:" >&5 5820cat conftest.$ac_ext >&5 5821fi 5822rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5823 done 5824 LIBS="$cf_save_LIBS" 5825 5826fi 5827echo "$as_me:5827: result: $cf_cv_lib_part_tgetent" >&5 5828echo "${ECHO_T}$cf_cv_lib_part_tgetent" >&6 5829 5830 if test "$cf_cv_lib_part_tgetent" != no ; then 5831 5832cf_add_libs="$cf_cv_lib_part_tgetent" 5833# Filter out duplicates - this happens with badly-designed ".pc" files... 5834for cf_add_1lib in $LIBS 5835do 5836 for cf_add_2lib in $cf_add_libs 5837 do 5838 if test "x$cf_add_1lib" = "x$cf_add_2lib" 5839 then 5840 cf_add_1lib= 5841 break 5842 fi 5843 done 5844 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 5845done 5846LIBS="$cf_add_libs" 5847 5848for ac_header in termcap.h 5849do 5850as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5851echo "$as_me:5851: checking for $ac_header" >&5 5852echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5853if eval "test \"\${$as_ac_Header+set}\" = set"; then 5854 echo $ECHO_N "(cached) $ECHO_C" >&6 5855else 5856 cat >conftest.$ac_ext <<_ACEOF 5857#line 5857 "configure" 5858#include "confdefs.h" 5859#include <$ac_header> 5860_ACEOF 5861if { (eval echo "$as_me:5861: \"$ac_cpp conftest.$ac_ext\"") >&5 5862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5863 ac_status=$? 5864 egrep -v '^ *\+' conftest.er1 >conftest.err 5865 rm -f conftest.er1 5866 cat conftest.err >&5 5867 echo "$as_me:5867: \$? = $ac_status" >&5 5868 (exit $ac_status); } >/dev/null; then 5869 if test -s conftest.err; then 5870 ac_cpp_err=$ac_c_preproc_warn_flag 5871 else 5872 ac_cpp_err= 5873 fi 5874else 5875 ac_cpp_err=yes 5876fi 5877if test -z "$ac_cpp_err"; then 5878 eval "$as_ac_Header=yes" 5879else 5880 echo "$as_me: failed program was:" >&5 5881 cat conftest.$ac_ext >&5 5882 eval "$as_ac_Header=no" 5883fi 5884rm -f conftest.err conftest.$ac_ext 5885fi 5886echo "$as_me:5886: result: `eval echo '${'$as_ac_Header'}'`" >&5 5887echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5888if test `eval echo '${'$as_ac_Header'}'` = yes; then 5889 cat >>confdefs.h <<EOF 5890#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5891EOF 5892 5893fi 5894done 5895 5896 # If this is linking against ncurses, we'll trigger the 5897 # ifdef in resize.c that turns the termcap stuff back off. 5898 5899cat >>confdefs.h <<\EOF 5900#define USE_TERMINFO 1 5901EOF 5902 5903 fi 5904fi 5905 5906echo "$as_me:5906: checking for X applications class" >&5 5907echo $ECHO_N "checking for X applications class... $ECHO_C" >&6 5908 5909# Check whether --with-app-class or --without-app-class was given. 5910if test "${with_app_class+set}" = set; then 5911 withval="$with_app_class" 5912 APP_CLASS=$withval 5913else 5914 APP_CLASS=XTerm 5915fi; 5916 5917case x$APP_CLASS in 5918(*[/@,%]*) 5919 { echo "$as_me:5919: WARNING: X applications class cannot contain punctuation" >&5 5920echo "$as_me: WARNING: X applications class cannot contain punctuation" >&2;} 5921 APP_CLASS=XTerm 5922 ;; 5923(x[A-Z]*) 5924 ;; 5925(*) 5926 { echo "$as_me:5926: WARNING: X applications class must start with capital, ignoring $APP_CLASS" >&5 5927echo "$as_me: WARNING: X applications class must start with capital, ignoring $APP_CLASS" >&2;} 5928 APP_CLASS=XTerm 5929 ;; 5930esac 5931 5932echo "$as_me:5932: result: $APP_CLASS" >&5 5933echo "${ECHO_T}$APP_CLASS" >&6 5934 5935echo "$as_me:5935: checking for directory to install resource files" >&5 5936echo $ECHO_N "checking for directory to install resource files... $ECHO_C" >&6 5937 5938# Check whether --with-app-defaults or --without-app-defaults was given. 5939if test "${with_app_defaults+set}" = set; then 5940 withval="$with_app_defaults" 5941 APPSDIR=$withval 5942else 5943 APPSDIR='${exec_prefix}/lib/X11/app-defaults' 5944fi; 5945 5946if test "x$APPSDIR" = xauto 5947then 5948 APPSDIR='${exec_prefix}/lib/X11/app-defaults' 5949 for cf_path in \ 5950 /opt/local/share/X11/app-defaults \ 5951 /opt/X11/share/X11/app-defaults \ 5952 /usr/share/X11/app-defaults \ 5953 /usr/X11/share/X11/app-defaults \ 5954 /usr/X11/lib/X11/app-defaults \ 5955 /usr/lib/X11/app-defaults \ 5956 /etc/X11/app-defaults \ 5957 /usr/pkg/lib/X11/app-defaults \ 5958 /usr/X11R7/lib/X11/app-defaults \ 5959 /usr/X11R6/lib/X11/app-defaults \ 5960 /usr/X11R5/lib/X11/app-defaults \ 5961 /usr/X11R4/lib/X11/app-defaults \ 5962 /usr/local/lib/X11/app-defaults \ 5963 /usr/local/share/X11/app-defaults \ 5964 /usr/lib64/X11/app-defaults 5965 do 5966 if test -d "$cf_path" ; then 5967 APPSDIR="$cf_path" 5968 break 5969 fi 5970 done 5971else 5972 cf_path=$APPSDIR 5973 5974if test "x$prefix" != xNONE; then 5975 cf_path_syntax="$prefix" 5976else 5977 cf_path_syntax="$ac_default_prefix" 5978fi 5979 5980case ".$cf_path" in 5981(.\$\(*\)*|.\'*\'*) 5982 ;; 5983(..|./*|.\\*) 5984 ;; 5985(.[a-zA-Z]:[\\/]*) # OS/2 EMX 5986 ;; 5987(.\${*prefix}*|.\${*dir}*) 5988 eval cf_path="$cf_path" 5989 case ".$cf_path" in 5990 (.NONE/*) 5991 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%` 5992 ;; 5993 esac 5994 ;; 5995(.no|.NONE/*) 5996 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%` 5997 ;; 5998(*) 5999 { { echo "$as_me:5999: error: expected a pathname, not \"$cf_path\"" >&5 6000echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;} 6001 { (exit 1); exit 1; }; } 6002 ;; 6003esac 6004 6005fi 6006 6007echo "$as_me:6007: result: $APPSDIR" >&5 6008echo "${ECHO_T}$APPSDIR" >&6 6009 6010no_appsdir= 6011if test "$APPSDIR" = no 6012then 6013 no_appsdir="#" 6014else 6015 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(APPSDIR)" 6016fi 6017 6018echo "$as_me:6018: checking for the icon name" >&5 6019echo $ECHO_N "checking for the icon name... $ECHO_C" >&6 6020 6021# Check whether --with-icon-name or --without-icon-name was given. 6022if test "${with_icon_name+set}" = set; then 6023 withval="$with_icon_name" 6024 ICON_NAME="$withval" 6025else 6026 ICON_NAME=xterm-color 6027fi; 6028case "x$ICON_NAME" in 6029(xyes|xno|x) 6030 ICON_NAME=xterm-color 6031 ;; 6032esac 6033 6034echo "$as_me:6034: result: $ICON_NAME" >&5 6035echo "${ECHO_T}$ICON_NAME" >&6 6036 6037echo "$as_me:6037: checking for icon symlink to use" >&5 6038echo $ECHO_N "checking for icon symlink to use... $ECHO_C" >&6 6039 6040# Check whether --with-icon-symlink or --without-icon-symlink was given. 6041if test "${with_icon_symlink+set}" = set; then 6042 withval="$with_icon_symlink" 6043 ICON_SYMLINK="$withval" 6044else 6045 ICON_SYMLINK=NONE 6046fi; 6047case "x$ICON_SYMLINK" in 6048(xyes) 6049 ICON_SYMLINK=xterm 6050 ;; 6051(xno|x) 6052 ICON_SYMLINK=NONE 6053 ;; 6054esac 6055 6056echo "$as_me:6056: result: $ICON_SYMLINK" >&5 6057echo "${ECHO_T}$ICON_SYMLINK" >&6 6058 6059echo "$as_me:6059: checking for directory to install pixmaps" >&5 6060echo $ECHO_N "checking for directory to install pixmaps... $ECHO_C" >&6 6061 6062# Check whether --with-pixmapdir or --without-pixmapdir was given. 6063if test "${with_pixmapdir+set}" = set; then 6064 withval="$with_pixmapdir" 6065 PIXMAPDIR=$withval 6066else 6067 test -z "$PIXMAPDIR" && PIXMAPDIR='${datadir}/pixmaps' 6068fi; 6069 6070if test "x$PIXMAPDIR" = xauto 6071then 6072 PIXMAPDIR='${datadir}/pixmaps' 6073 for cf_path in \ 6074 /usr/share/pixmaps \ 6075 /usr/X11R6/share/pixmaps 6076 do 6077 if test -d "$cf_path" ; then 6078 PIXMAPDIR="$cf_path" 6079 break 6080 fi 6081 done 6082else 6083 cf_path=$PIXMAPDIR 6084 6085if test "x$prefix" != xNONE; then 6086 cf_path_syntax="$prefix" 6087else 6088 cf_path_syntax="$ac_default_prefix" 6089fi 6090 6091case ".$cf_path" in 6092(.\$\(*\)*|.\'*\'*) 6093 ;; 6094(..|./*|.\\*) 6095 ;; 6096(.[a-zA-Z]:[\\/]*) # OS/2 EMX 6097 ;; 6098(.\${*prefix}*|.\${*dir}*) 6099 eval cf_path="$cf_path" 6100 case ".$cf_path" in 6101 (.NONE/*) 6102 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%` 6103 ;; 6104 esac 6105 ;; 6106(.no|.NONE/*) 6107 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%` 6108 ;; 6109(*) 6110 { { echo "$as_me:6110: error: expected a pathname, not \"$cf_path\"" >&5 6111echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;} 6112 { (exit 1); exit 1; }; } 6113 ;; 6114esac 6115 6116fi 6117echo "$as_me:6117: result: $PIXMAPDIR" >&5 6118echo "${ECHO_T}$PIXMAPDIR" >&6 6119 6120no_pixmapdir= 6121if test "$PIXMAPDIR" = no 6122then 6123 no_pixmapdir="#" 6124else 6125 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(PIXMAPDIR)" 6126fi 6127 6128echo "$as_me:6128: checking for directory to install icons" >&5 6129echo $ECHO_N "checking for directory to install icons... $ECHO_C" >&6 6130 6131# Check whether --with-icondir or --without-icondir was given. 6132if test "${with_icondir+set}" = set; then 6133 withval="$with_icondir" 6134 ICONDIR=$withval 6135else 6136 test -z "$ICONDIR" && ICONDIR=no 6137fi; 6138 6139if test "x$ICONDIR" = xauto 6140then 6141 ICONDIR='${datadir}/icons' 6142 for cf_path in \ 6143 /usr/share/icons \ 6144 /usr/X11R6/share/icons 6145 do 6146 if test -d "$cf_path" ; then 6147 ICONDIR="$cf_path" 6148 break 6149 fi 6150 done 6151else 6152 cf_path=$ICONDIR 6153 6154if test "x$prefix" != xNONE; then 6155 cf_path_syntax="$prefix" 6156else 6157 cf_path_syntax="$ac_default_prefix" 6158fi 6159 6160case ".$cf_path" in 6161(.\$\(*\)*|.\'*\'*) 6162 ;; 6163(..|./*|.\\*) 6164 ;; 6165(.[a-zA-Z]:[\\/]*) # OS/2 EMX 6166 ;; 6167(.\${*prefix}*|.\${*dir}*) 6168 eval cf_path="$cf_path" 6169 case ".$cf_path" in 6170 (.NONE/*) 6171 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%` 6172 ;; 6173 esac 6174 ;; 6175(.no|.NONE/*) 6176 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%` 6177 ;; 6178(*) 6179 { { echo "$as_me:6179: error: expected a pathname, not \"$cf_path\"" >&5 6180echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;} 6181 { (exit 1); exit 1; }; } 6182 ;; 6183esac 6184 6185fi 6186echo "$as_me:6186: result: $ICONDIR" >&5 6187echo "${ECHO_T}$ICONDIR" >&6 6188 6189no_icondir= 6190if test "$ICONDIR" = no 6191then 6192 no_icondir="#" 6193else 6194 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(ICONDIR)" 6195fi 6196 6197echo "$as_me:6197: checking if icon theme should be used" >&5 6198echo $ECHO_N "checking if icon theme should be used... $ECHO_C" >&6 6199 6200# Check whether --with-icon-theme or --without-icon-theme was given. 6201if test "${with_icon_theme+set}" = set; then 6202 withval="$with_icon_theme" 6203 ICON_THEME=$withval 6204else 6205 ICON_THEME=no 6206fi; 6207 6208case "x$ICON_THEME" in 6209(xno) 6210 ;; 6211(x|xyes) 6212 ICON_THEME=hicolor 6213 ;; 6214esac 6215echo "$as_me:6215: result: $ICON_THEME" >&5 6216echo "${ECHO_T}$ICON_THEME" >&6 6217 6218if test "x$ICON_THEME" = xno 6219then 6220 if test "x$ICONDIR" != xno 6221 then 6222 test -n "$verbose" && echo " ignoring icondir without theme" 1>&6 6223 6224echo "${as_me:-configure}:6224: testing ignoring icondir without theme ..." 1>&5 6225 6226 no_icondir="#" 6227 fi 6228else 6229 if test "x$ICONDIR" = xno 6230 then 6231 { { echo "$as_me:6231: error: icondir must be set for icon theme" >&5 6232echo "$as_me: error: icondir must be set for icon theme" >&2;} 6233 { (exit 1); exit 1; }; } 6234 fi 6235fi 6236 6237: ${ICON_FORMAT:=".svg .png .xpm"} 6238 6239# ICON_NAME= 6240ICON_LIST= 6241 6242if test "x$ICON_THEME" != xno 6243then 6244 cf_icon_list="icons/$ICON_NAME icons/${ICON_NAME}_48x48" 6245else 6246 cf_icon_list="icons/${ICON_NAME}_48x48" 6247fi 6248 6249echo "$as_me:6249: checking for icon(s) to install" >&5 6250echo $ECHO_N "checking for icon(s) to install... $ECHO_C" >&6 6251for cf_name in $cf_icon_list 6252do 6253 test -n "$verbose" && echo " using $ICON_FORMAT" 1>&6 6254 6255echo "${as_me:-configure}:6255: testing using $ICON_FORMAT ..." 1>&5 6256 6257 for cf_suffix in $ICON_FORMAT 6258 do 6259 cf_icon="${cf_name}${cf_suffix}" 6260 cf_left=`echo "$cf_icon" | sed -e 's/:.*//'` 6261 if test ! -f "${cf_left}" 6262 then 6263 if test "x$srcdir" != "x." 6264 then 6265 cf_icon="${srcdir}/${cf_left}" 6266 cf_left=`echo "$cf_icon" | sed -e 's/:.*//'` 6267 if test ! -f "${cf_left}" 6268 then 6269 continue 6270 fi 6271 else 6272 continue 6273 fi 6274 fi 6275 if test "x$ICON_THEME" != xno 6276 then 6277 cf_base=`basename $cf_left` 6278 cf_trim=`echo "$cf_base" | sed -e 's/_[0-9][0-9]x[0-9][0-9]\././'` 6279 case "x${cf_base}" in 6280 (*:*) 6281 cf_next=$cf_base 6282 # user-defined mapping 6283 ;; 6284 (*.png) 6285 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'` 6286 if test -z "$cf_size" 6287 then 6288 { echo "$as_me:6288: WARNING: cannot determine size of $cf_left" >&5 6289echo "$as_me: WARNING: cannot determine size of $cf_left" >&2;} 6290 continue 6291 fi 6292 cf_next="$cf_size/apps/$cf_trim" 6293 ;; 6294 (*.svg) 6295 cf_next="scalable/apps/$cf_trim" 6296 ;; 6297 (*.xpm) 6298 test -n "$verbose" && echo " ignored XPM file in icon theme" 1>&6 6299 6300echo "${as_me:-configure}:6300: testing ignored XPM file in icon theme ..." 1>&5 6301 6302 continue 6303 ;; 6304 (*_[0-9][0-9]*x[0-9][0-9]*.*) 6305 cf_size=`echo "$cf_left"|sed -e 's/^.*_\([0-9][0-9]*x[0-9][0-9]*\)\..*$/\1/'` 6306 cf_left=`echo "$cf_left"|sed -e 's/^\(.*\)_\([0-9][0-9]*x[0-9][0-9]*\)\(\..*\)$/\1\3/'` 6307 cf_next="$cf_size/apps/$cf_base" 6308 ;; 6309 esac 6310 test -n "$verbose" && echo " adding $cf_next" 1>&6 6311 6312echo "${as_me:-configure}:6312: testing adding $cf_next ..." 1>&5 6313 6314 cf_icon="${cf_icon}:${cf_next}" 6315 fi 6316 test -n "$ICON_LIST" && ICON_LIST="$ICON_LIST " 6317 ICON_LIST="$ICON_LIST${cf_icon}" 6318 if test -z "$ICON_NAME" 6319 then 6320 ICON_NAME=`basename $cf_icon | sed -e 's/[.:].*//'` 6321 fi 6322 done 6323done 6324 6325if test -n "$verbose" 6326then 6327 echo "$as_me:6327: checking result" >&5 6328echo $ECHO_N "checking result... $ECHO_C" >&6 6329fi 6330echo "$as_me:6330: result: $ICON_LIST" >&5 6331echo "${ECHO_T}$ICON_LIST" >&6 6332 6333if test -z "$ICON_LIST" 6334then 6335 { { echo "$as_me:6335: error: no icons found" >&5 6336echo "$as_me: error: no icons found" >&2;} 6337 { (exit 1); exit 1; }; } 6338fi 6339 6340echo "$as_me:6340: checking for icon name" >&5 6341echo $ECHO_N "checking for icon name... $ECHO_C" >&6 6342echo "$as_me:6342: result: $ICON_NAME" >&5 6343echo "${ECHO_T}$ICON_NAME" >&6 6344 6345# Comment-out the install-desktop rule if the desktop-utils are not found. 6346echo "$as_me:6346: checking if you want to install desktop files" >&5 6347echo $ECHO_N "checking if you want to install desktop files... $ECHO_C" >&6 6348 6349# Check whether --enable-desktop or --disable-desktop was given. 6350if test "${enable_desktop+set}" = set; then 6351 enableval="$enable_desktop" 6352 test "$enableval" != no && enableval=yes 6353 if test "$enableval" != "yes" ; then 6354 enable_desktop=$enableval 6355 else 6356 enable_desktop=$enableval 6357 fi 6358else 6359 enableval=yes 6360 enable_desktop=$enableval 6361 6362fi; 6363echo "$as_me:6363: result: $enable_desktop" >&5 6364echo "${ECHO_T}$enable_desktop" >&6 6365 6366desktop_utils= 6367if test "$enable_desktop" = yes ; then 6368# Extract the first word of "desktop-file-install", so it can be a program name with args. 6369set dummy desktop-file-install; ac_word=$2 6370echo "$as_me:6370: checking for $ac_word" >&5 6371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6372if test "${ac_cv_prog_desktop_utils+set}" = set; then 6373 echo $ECHO_N "(cached) $ECHO_C" >&6 6374else 6375 if test -n "$desktop_utils"; then 6376 ac_cv_prog_desktop_utils="$desktop_utils" # Let the user override the test. 6377else 6378 ac_save_IFS=$IFS; IFS=$ac_path_separator 6379ac_dummy="$PATH" 6380for ac_dir in $ac_dummy; do 6381 IFS=$ac_save_IFS 6382 test -z "$ac_dir" && ac_dir=. 6383 $as_executable_p "$ac_dir/$ac_word" || continue 6384ac_cv_prog_desktop_utils="yes" 6385echo "$as_me:6385: found $ac_dir/$ac_word" >&5 6386break 6387done 6388 6389 test -z "$ac_cv_prog_desktop_utils" && ac_cv_prog_desktop_utils="no" 6390fi 6391fi 6392desktop_utils=$ac_cv_prog_desktop_utils 6393if test -n "$desktop_utils"; then 6394 echo "$as_me:6394: result: $desktop_utils" >&5 6395echo "${ECHO_T}$desktop_utils" >&6 6396else 6397 echo "$as_me:6397: result: no" >&5 6398echo "${ECHO_T}no" >&6 6399fi 6400 6401fi 6402 6403test "$desktop_utils" = yes && desktop_utils= || desktop_utils="#" 6404 6405if test -z "$desktop_utils" 6406then 6407 echo "$as_me:6407: checking for requested desktop-category" >&5 6408echo $ECHO_N "checking for requested desktop-category... $ECHO_C" >&6 6409 6410# Check whether --with-desktop-category or --without-desktop-category was given. 6411if test "${with_desktop_category+set}" = set; then 6412 withval="$with_desktop_category" 6413 cf_desktop_want=$withval 6414else 6415 cf_desktop_want=auto 6416fi; 6417 echo "$as_me:6417: result: $cf_desktop_want" >&5 6418echo "${ECHO_T}$cf_desktop_want" >&6 6419 6420 if test "$cf_desktop_want" = auto 6421 then 6422 rm -rf conftest* 6423 cf_desktop_also= 6424 for cf_desktop_dir in \ 6425 /usr/share/app-install \ 6426 /usr/share/applications 6427 do 6428 if test -d $cf_desktop_dir 6429 then 6430 find $cf_desktop_dir -name '*.desktop' | \ 6431 while true 6432 do 6433 read cf_desktop_path 6434 test -z "$cf_desktop_path" && break 6435 cf_desktop_name=`basename $cf_desktop_path .desktop` 6436 case $cf_desktop_name in 6437 (xterm|*-xterm|*rxvt*|konsole|*-terminal) 6438 test -n "$verbose" && echo " inspect $cf_desktop_path" 1>&6 6439 6440echo "${as_me:-configure}:6440: testing inspect $cf_desktop_path ..." 1>&5 6441 6442 egrep '^Categories=' $cf_desktop_path | \ 6443 tr ';' '\n' | \ 6444 sed -e 's%^.*=%%' -e '/^$/d' >>conftest.1 6445 ;; 6446 esac 6447 done 6448 fi 6449 done 6450 if test -s conftest.1 6451 then 6452 cf_desktop_last= 6453 sort conftest.1 | \ 6454 while true 6455 do 6456 read cf_desktop_this 6457 test -z "$cf_desktop_this" && break 6458 case $cf_desktop_this in 6459 (Qt*|GTK*|KDE*|GNOME*|*XFCE*|*Xfce*) 6460 ;; 6461 (System|TerminalEmulator|Utility|*) 6462 test "x$cf_desktop_last" != "x$cf_desktop_this" && echo $cf_desktop_this >>conftest.2 6463 ;; 6464 esac 6465 cf_desktop_last=$cf_desktop_this 6466 done 6467 cf_desktop_want=`cat conftest.2 | tr '\n' ';'` 6468 fi 6469 if test -n "$cf_desktop_want" 6470 then 6471 if test "$cf_desktop_want" = auto 6472 then 6473 cf_desktop_want= 6474 else 6475 # do a sanity check on the semicolon-separated list, ignore on failure 6476 cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/[^;]//g'` 6477 test -z "$cf_desktop_test" && cf_desktop_want= 6478 cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/^.*;$/./g'` 6479 test -z "$cf_desktop_test" && cf_desktop_want= 6480 fi 6481 fi 6482 if test -z "$cf_desktop_want" 6483 then 6484 cf_desktop_want="`echo "System|TerminalEmulator|Utility|*" | sed -e 's/\*//g' -e 's/|/;/g' -e 's/;*$/;/g'`" 6485 test -n "$verbose" && echo " no usable value found for desktop category" 1>&6 6486 6487echo "${as_me:-configure}:6487: testing no usable value found for desktop category ..." 1>&5 6488 6489 fi 6490 fi 6491 DESKTOP_CATEGORY=`echo "$cf_desktop_want" | sed -e 's/[ ,]/;/g'` 6492 test -n "$verbose" && echo " will use Categories=$DESKTOP_CATEGORY" 1>&6 6493 6494echo "${as_me:-configure}:6494: testing will use Categories=$DESKTOP_CATEGORY ..." 1>&5 6495 6496fi 6497 6498echo "$as_me:6498: checking for install-permissions reference" >&5 6499echo $ECHO_N "checking for install-permissions reference... $ECHO_C" >&6 6500 6501# Check whether --with-reference or --without-reference was given. 6502if test "${with_reference+set}" = set; then 6503 withval="$with_reference" 6504 with_reference=$withval 6505else 6506 with_reference=xterm 6507fi; 6508echo "$as_me:6508: result: $with_reference" >&5 6509echo "${ECHO_T}$with_reference" >&6 6510 6511with_full_paths=yes 6512 6513 echo "$as_me:6513: checking for PATH separator" >&5 6514echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6 6515 case $cf_cv_system_name in 6516 (os2*) PATH_SEPARATOR=';' ;; 6517 (*) ${PATH_SEPARATOR:=':'} ;; 6518 esac 6519 6520 echo "$as_me:6520: result: $PATH_SEPARATOR" >&5 6521echo "${ECHO_T}$PATH_SEPARATOR" >&6 6522 6523test -z "$XTERM_PATH" && XTERM_PATH=$with_reference 6524for ac_prog in $XTERM_PATH $with_reference 6525do 6526 # Extract the first word of "$ac_prog", so it can be a program name with args. 6527set dummy $ac_prog; ac_word=$2 6528echo "$as_me:6528: checking for $ac_word" >&5 6529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6530if test "${ac_cv_path_XTERM_PATH+set}" = set; then 6531 echo $ECHO_N "(cached) $ECHO_C" >&6 6532else 6533 case $XTERM_PATH in 6534 [\\/]* | ?:[\\/]*) 6535 ac_cv_path_XTERM_PATH="$XTERM_PATH" # Let the user override the test with a path. 6536 ;; 6537 *) 6538 ac_save_IFS=$IFS; IFS=$ac_path_separator 6539ac_dummy="$PATH" 6540for ac_dir in $ac_dummy; do 6541 IFS=$ac_save_IFS 6542 test -z "$ac_dir" && ac_dir=. 6543 if $as_executable_p "$ac_dir/$ac_word"; then 6544 ac_cv_path_XTERM_PATH="$ac_dir/$ac_word" 6545 echo "$as_me:6545: found $ac_dir/$ac_word" >&5 6546 break 6547fi 6548done 6549 6550 ;; 6551esac 6552fi 6553XTERM_PATH=$ac_cv_path_XTERM_PATH 6554 6555if test -n "$XTERM_PATH"; then 6556 echo "$as_me:6556: result: $XTERM_PATH" >&5 6557echo "${ECHO_T}$XTERM_PATH" >&6 6558else 6559 echo "$as_me:6559: result: no" >&5 6560echo "${ECHO_T}no" >&6 6561fi 6562 6563 test -n "$XTERM_PATH" && break 6564done 6565test -n "$XTERM_PATH" || XTERM_PATH="$XTERM_PATH" 6566 6567cf_path_prog="" 6568cf_path_args="" 6569IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" 6570for cf_temp in $ac_cv_path_XTERM_PATH 6571do 6572 if test -z "$cf_path_prog" ; then 6573 if test "$with_full_paths" = yes ; then 6574 6575if test "x$prefix" != xNONE; then 6576 cf_path_syntax="$prefix" 6577else 6578 cf_path_syntax="$ac_default_prefix" 6579fi 6580 6581case ".$cf_temp" in 6582(.\$\(*\)*|.\'*\'*) 6583 ;; 6584(..|./*|.\\*) 6585 ;; 6586(.[a-zA-Z]:[\\/]*) # OS/2 EMX 6587 ;; 6588(.\${*prefix}*|.\${*dir}*) 6589 eval cf_temp="$cf_temp" 6590 case ".$cf_temp" in 6591 (.NONE/*) 6592 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%` 6593 ;; 6594 esac 6595 ;; 6596(.no|.NONE/*) 6597 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%` 6598 ;; 6599(*) 6600 break 6601 ;; 6602esac 6603 6604 cf_path_prog="$cf_temp" 6605 else 6606 cf_path_prog="`basename $cf_temp`" 6607 fi 6608 elif test -z "$cf_path_args" ; then 6609 cf_path_args="$cf_temp" 6610 else 6611 cf_path_args="$cf_path_args $cf_temp" 6612 fi 6613done 6614IFS="$cf_save_ifs" 6615 6616if test -n "$cf_path_prog" ; then 6617 6618echo "${as_me:-configure}:6618: testing defining path for ${cf_path_prog} ..." 1>&5 6619 6620cat >>confdefs.h <<EOF 6621#define XTERM_PATH_PATH "$cf_path_prog" 6622EOF 6623 6624 test -n "$cf_path_args" && 6625cat >>confdefs.h <<EOF 6626#define XTERM_PATH_ARGS "$cf_path_args" 6627EOF 6628 6629fi 6630 6631# If any of --program-prefix, --program-suffix or --program-transform-name is 6632# given, accept an option tell the makefile to create a symbolic link, e.g., 6633# to "xterm" on install. 6634XTERM_SYMLINK=NONE 6635 6636if test "$program_transform_name" != "'s,,,'" ; then 6637cf_name=`echo "$program_transform_name" | sed -e 's,\\$\\$,$,g'` 6638cf_name=`echo xterm |sed -e "$cf_name"` 6639echo "$as_me:6639: checking for symbolic link to create to $cf_name" >&5 6640echo $ECHO_N "checking for symbolic link to create to $cf_name... $ECHO_C" >&6 6641 6642# Check whether --with-xterm-symlink or --without-xterm-symlink was given. 6643if test "${with_xterm_symlink+set}" = set; then 6644 withval="$with_xterm_symlink" 6645 with_symlink=$withval 6646else 6647 with_symlink=xterm 6648fi; 6649echo "$as_me:6649: result: $with_symlink" >&5 6650echo "${ECHO_T}$with_symlink" >&6 6651test "$with_symlink" = yes && with_symlink=xterm 6652test -n "$with_symlink" && \ 6653 test "$with_symlink" != no && \ 6654 test "$with_symlink" != $cf_name && \ 6655 XTERM_SYMLINK="$with_symlink" 6656fi 6657 6658echo "$as_me:6658: checking if you want to disable openpty" >&5 6659echo $ECHO_N "checking if you want to disable openpty... $ECHO_C" >&6 6660 6661# Check whether --enable-openpty or --disable-openpty was given. 6662if test "${enable_openpty+set}" = set; then 6663 enableval="$enable_openpty" 6664 test "$enableval" != no && enableval=yes 6665 if test "$enableval" != "yes" ; then 6666 disable_openpty=yes 6667 else 6668 disable_openpty=no 6669 fi 6670else 6671 enableval=yes 6672 disable_openpty=no 6673 6674fi; 6675echo "$as_me:6675: result: $disable_openpty" >&5 6676echo "${ECHO_T}$disable_openpty" >&6 6677 6678echo "$as_me:6678: checking if you want to disable setuid" >&5 6679echo $ECHO_N "checking if you want to disable setuid... $ECHO_C" >&6 6680 6681# Check whether --enable-setuid or --disable-setuid was given. 6682if test "${enable_setuid+set}" = set; then 6683 enableval="$enable_setuid" 6684 test "$enableval" != no && enableval=yes 6685 if test "$enableval" != "yes" ; then 6686 disable_setuid=yes 6687 else 6688 disable_setuid=no 6689 fi 6690else 6691 enableval=yes 6692 disable_setuid=no 6693 6694fi; 6695echo "$as_me:6695: result: $disable_setuid" >&5 6696echo "${ECHO_T}$disable_setuid" >&6 6697 6698echo "$as_me:6698: checking if you want to disable setgid" >&5 6699echo $ECHO_N "checking if you want to disable setgid... $ECHO_C" >&6 6700 6701# Check whether --enable-setgid or --disable-setgid was given. 6702if test "${enable_setgid+set}" = set; then 6703 enableval="$enable_setgid" 6704 test "$enableval" != no && enableval=yes 6705 if test "$enableval" != "yes" ; then 6706 disable_setgid=yes 6707 else 6708 disable_setgid=no 6709 fi 6710else 6711 enableval=yes 6712 disable_setgid=no 6713 6714fi; 6715echo "$as_me:6715: result: $disable_setgid" >&5 6716echo "${ECHO_T}$disable_setgid" >&6 6717 6718echo "$as_me:6718: checking if you want to run xterm setuid to a given user" >&5 6719echo $ECHO_N "checking if you want to run xterm setuid to a given user... $ECHO_C" >&6 6720 6721# Check whether --with-setuid or --without-setuid was given. 6722if test "${with_setuid+set}" = set; then 6723 withval="$with_setuid" 6724 use_given_setuid=$withval 6725else 6726 use_given_setuid=no 6727fi; 6728echo "$as_me:6728: result: $use_given_setuid" >&5 6729echo "${ECHO_T}$use_given_setuid" >&6 6730 6731if test "$use_given_setuid" != no ; then 6732 if test "$use_given_setuid" = yes ; then 6733 cf_cv_given_setuid=root 6734 else 6735 cf_cv_given_setuid=$use_given_setuid 6736 fi 6737 # inherit SINSTALL_OPTS from environment to allow packager to customize it. 6738 SINSTALL_OPTS="$SINSTALL_OPTS u+s -u $cf_cv_given_setuid" 6739fi 6740 6741echo "$as_me:6741: checking if you want to run xterm setgid to match utmp/utmpx file" >&5 6742echo $ECHO_N "checking if you want to run xterm setgid to match utmp/utmpx file... $ECHO_C" >&6 6743 6744# Check whether --with-utmp-setgid or --without-utmp-setgid was given. 6745if test "${with_utmp_setgid+set}" = set; then 6746 withval="$with_utmp_setgid" 6747 use_utmp_setgid=$withval 6748else 6749 use_utmp_setgid=no 6750fi; 6751echo "$as_me:6751: result: $use_utmp_setgid" >&5 6752echo "${ECHO_T}$use_utmp_setgid" >&6 6753 6754if test "$use_utmp_setgid" != no ; then 6755 if test "$use_utmp_setgid" = yes ; then 6756 6757if test $cf_cv_have_utmp != no ; then 6758echo "$as_me:6758: checking for utmp/utmpx group" >&5 6759echo $ECHO_N "checking for utmp/utmpx group... $ECHO_C" >&6 6760if test "${cf_cv_utmp_group+set}" = set; then 6761 echo $ECHO_N "(cached) $ECHO_C" >&6 6762else 6763 6764for cf_utmp_path in /var/adm /var/run 6765do 6766 for cf_utmp_file in utmpx utmp 6767 do 6768 if test -f $cf_utmp_path/$cf_utmp_file 6769 then 6770 cf_cv_utmp_group=root 6771 6772 cf_option="-l -L" 6773 6774 # Expect listing to have fields like this: 6775 #-r--r--r-- 1 user group 34293 Jul 18 16:29 pathname 6776 ls $cf_option $cf_utmp_path/$cf_utmp_file >conftest 6777 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest 6778 if test -z "$cf_rest" ; then 6779 cf_option="$cf_option -g" 6780 ls $cf_option $cf_utmp_path/$cf_utmp_file >conftest 6781 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest 6782 fi 6783 rm -f conftest 6784 6785 # If we have a pathname, and the date fields look right, assume we've 6786 # captured the group as well. 6787 if test -n "$cf_rest" ; then 6788 cf_test=`echo "${cf_date2}${cf_date3}" | sed -e 's/[0-9:]//g'` 6789 if test -z "$cf_test" ; then 6790 cf_cv_utmp_group=$cf_grp; 6791 fi 6792 fi 6793 break 6794 fi 6795 done 6796 test -n "$cf_cv_utmp_group" && break 6797done 6798 6799fi 6800echo "$as_me:6800: result: $cf_cv_utmp_group" >&5 6801echo "${ECHO_T}$cf_cv_utmp_group" >&6 6802else 6803 { { echo "$as_me:6803: error: cannot find utmp group" >&5 6804echo "$as_me: error: cannot find utmp group" >&2;} 6805 { (exit 1); exit 1; }; } 6806fi 6807 6808 else 6809 cf_cv_utmp_group=$use_utmp_setgid 6810 fi 6811 if test "$cf_cv_posix_saved_ids" != yes ; then 6812 { { echo "$as_me:6812: error: Your system does not support POSIX saved-ids" >&5 6813echo "$as_me: error: Your system does not support POSIX saved-ids" >&2;} 6814 { (exit 1); exit 1; }; } 6815 fi 6816 6817cat >>confdefs.h <<\EOF 6818#define USE_UTMP_SETGID 1 6819EOF 6820 6821 SINSTALL_OPTS="$SINSTALL_OPTS g+s -g $cf_cv_utmp_group" 6822fi 6823 6824echo "$as_me:6824: checking if you want to link with utempter" >&5 6825echo $ECHO_N "checking if you want to link with utempter... $ECHO_C" >&6 6826 6827# Check whether --with-utempter or --without-utempter was given. 6828if test "${with_utempter+set}" = set; then 6829 withval="$with_utempter" 6830 use_utempter=$withval 6831else 6832 use_utempter=no 6833fi; 6834echo "$as_me:6834: result: $use_utempter" >&5 6835echo "${ECHO_T}$use_utempter" >&6 6836 6837if test "$use_utempter" = yes ; then 6838 6839echo "$as_me:6839: checking if we can link with utempter library" >&5 6840echo $ECHO_N "checking if we can link with utempter library... $ECHO_C" >&6 6841if test "${cf_cv_have_utempter+set}" = set; then 6842 echo $ECHO_N "(cached) $ECHO_C" >&6 6843else 6844 6845cf_save_LIBS="$LIBS" 6846 6847cf_add_libs="-lutempter" 6848# Filter out duplicates - this happens with badly-designed ".pc" files... 6849for cf_add_1lib in $LIBS 6850do 6851 for cf_add_2lib in $cf_add_libs 6852 do 6853 if test "x$cf_add_1lib" = "x$cf_add_2lib" 6854 then 6855 cf_add_1lib= 6856 break 6857 fi 6858 done 6859 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 6860done 6861LIBS="$cf_add_libs" 6862 6863cat >conftest.$ac_ext <<_ACEOF 6864#line 6864 "configure" 6865#include "confdefs.h" 6866 6867#include <utempter.h> 6868 6869int 6870main () 6871{ 6872 6873 addToUtmp("/dev/tty", 0, 1); 6874 removeFromUtmp(); 6875 6876 ; 6877 return 0; 6878} 6879_ACEOF 6880rm -f conftest.$ac_objext conftest$ac_exeext 6881if { (eval echo "$as_me:6881: \"$ac_link\"") >&5 6882 (eval $ac_link) 2>&5 6883 ac_status=$? 6884 echo "$as_me:6884: \$? = $ac_status" >&5 6885 (exit $ac_status); } && 6886 { ac_try='test -s conftest$ac_exeext' 6887 { (eval echo "$as_me:6887: \"$ac_try\"") >&5 6888 (eval $ac_try) 2>&5 6889 ac_status=$? 6890 echo "$as_me:6890: \$? = $ac_status" >&5 6891 (exit $ac_status); }; }; then 6892 6893 cf_cv_have_utempter=yes 6894else 6895 echo "$as_me: failed program was:" >&5 6896cat conftest.$ac_ext >&5 6897 6898 cf_cv_have_utempter=no 6899fi 6900rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6901LIBS="$cf_save_LIBS" 6902 6903fi 6904echo "$as_me:6904: result: $cf_cv_have_utempter" >&5 6905echo "${ECHO_T}$cf_cv_have_utempter" >&6 6906if test "$cf_cv_have_utempter" = yes ; then 6907 6908cat >>confdefs.h <<\EOF 6909#define USE_UTEMPTER 1 6910EOF 6911 6912cf_add_libs="-lutempter" 6913# Filter out duplicates - this happens with badly-designed ".pc" files... 6914for cf_add_1lib in $LIBS 6915do 6916 for cf_add_2lib in $cf_add_libs 6917 do 6918 if test "x$cf_add_1lib" = "x$cf_add_2lib" 6919 then 6920 cf_add_1lib= 6921 break 6922 fi 6923 done 6924 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 6925done 6926LIBS="$cf_add_libs" 6927 6928fi 6929 6930 test "$cf_cv_have_utempter" != yes && use_utempter=no 6931else 6932 use_utempter=no 6933fi 6934 6935# Some configurations permit (or require) either setuid or setgid mode. 6936# Let the user decide. 6937if test "$use_utempter" = yes ; then 6938 if test "${enable_setuid+set}" != set ; then 6939 disable_setuid=yes 6940 test -n "$verbose" && echo " No --disable-setuid option given, force to yes" 1>&6 6941 6942echo "${as_me:-configure}:6942: testing No --disable-setuid option given, force to yes ..." 1>&5 6943 6944 fi 6945fi 6946 6947### checks for external data 6948 6949echo "$as_me:6949: checking if external errno is declared" >&5 6950echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6 6951if test "${cf_cv_dcl_errno+set}" = set; then 6952 echo $ECHO_N "(cached) $ECHO_C" >&6 6953else 6954 6955 cat >conftest.$ac_ext <<_ACEOF 6956#line 6956 "configure" 6957#include "confdefs.h" 6958 6959#ifdef HAVE_STDLIB_H 6960#include <stdlib.h> 6961#endif 6962#include <stdio.h> 6963#include <sys/types.h> 6964#include <errno.h> 6965int 6966main () 6967{ 6968int x = (int) errno 6969 ; 6970 return 0; 6971} 6972_ACEOF 6973rm -f conftest.$ac_objext 6974if { (eval echo "$as_me:6974: \"$ac_compile\"") >&5 6975 (eval $ac_compile) 2>&5 6976 ac_status=$? 6977 echo "$as_me:6977: \$? = $ac_status" >&5 6978 (exit $ac_status); } && 6979 { ac_try='test -s conftest.$ac_objext' 6980 { (eval echo "$as_me:6980: \"$ac_try\"") >&5 6981 (eval $ac_try) 2>&5 6982 ac_status=$? 6983 echo "$as_me:6983: \$? = $ac_status" >&5 6984 (exit $ac_status); }; }; then 6985 cf_cv_dcl_errno=yes 6986else 6987 echo "$as_me: failed program was:" >&5 6988cat conftest.$ac_ext >&5 6989cf_cv_dcl_errno=no 6990fi 6991rm -f conftest.$ac_objext conftest.$ac_ext 6992 6993fi 6994echo "$as_me:6994: result: $cf_cv_dcl_errno" >&5 6995echo "${ECHO_T}$cf_cv_dcl_errno" >&6 6996 6997if test "$cf_cv_dcl_errno" = no ; then 6998 6999cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 7000 7001 cat >>confdefs.h <<EOF 7002#define $cf_result 1 7003EOF 7004 7005fi 7006 7007# It's possible (for near-UNIX clones) that the data doesn't exist 7008 7009echo "$as_me:7009: checking if external errno exists" >&5 7010echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6 7011if test "${cf_cv_have_errno+set}" = set; then 7012 echo $ECHO_N "(cached) $ECHO_C" >&6 7013else 7014 7015 cat >conftest.$ac_ext <<_ACEOF 7016#line 7016 "configure" 7017#include "confdefs.h" 7018 7019#undef errno 7020extern int errno; 7021 7022int 7023main () 7024{ 7025errno = 2 7026 ; 7027 return 0; 7028} 7029_ACEOF 7030rm -f conftest.$ac_objext conftest$ac_exeext 7031if { (eval echo "$as_me:7031: \"$ac_link\"") >&5 7032 (eval $ac_link) 2>&5 7033 ac_status=$? 7034 echo "$as_me:7034: \$? = $ac_status" >&5 7035 (exit $ac_status); } && 7036 { ac_try='test -s conftest$ac_exeext' 7037 { (eval echo "$as_me:7037: \"$ac_try\"") >&5 7038 (eval $ac_try) 2>&5 7039 ac_status=$? 7040 echo "$as_me:7040: \$? = $ac_status" >&5 7041 (exit $ac_status); }; }; then 7042 cf_cv_have_errno=yes 7043else 7044 echo "$as_me: failed program was:" >&5 7045cat conftest.$ac_ext >&5 7046cf_cv_have_errno=no 7047fi 7048rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7049 7050fi 7051echo "$as_me:7051: result: $cf_cv_have_errno" >&5 7052echo "${ECHO_T}$cf_cv_have_errno" >&6 7053 7054if test "$cf_cv_have_errno" = yes ; then 7055 7056cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 7057 7058 cat >>confdefs.h <<EOF 7059#define $cf_result 1 7060EOF 7061 7062fi 7063 7064echo "$as_me:7064: checking for explicit tty group name" >&5 7065echo $ECHO_N "checking for explicit tty group name... $ECHO_C" >&6 7066 7067# Check whether --with-tty-group or --without-tty-group was given. 7068if test "${with_tty_group+set}" = set; then 7069 withval="$with_tty_group" 7070 cf_tty_group=$withval 7071else 7072 cf_tty_group=auto... 7073fi; 7074test -z "$cf_tty_group" && cf_tty_group=auto... 7075test "$cf_tty_group" = yes && cf_tty_group=auto... 7076echo "$as_me:7076: result: $cf_tty_group" >&5 7077echo "${ECHO_T}$cf_tty_group" >&6 7078 7079if test "$cf_tty_group" = "auto..." ; then 7080echo "$as_me:7080: checking for tty group name" >&5 7081echo $ECHO_N "checking for tty group name... $ECHO_C" >&6 7082if test "${cf_cv_tty_group_name+set}" = set; then 7083 echo $ECHO_N "(cached) $ECHO_C" >&6 7084else 7085 7086# If we are configuring as root, it is hard to get a clue about the tty group. 7087# But we'll guess based on how our connection is set up - assuming it is done 7088# properly. 7089 7090cf_uid=`id | sed -e 's/^^=*=//' -e 's/(.*$//'` 7091# )vi 7092if test "$cf_uid" != 0 ; then 7093cf_cv_tty_group_name= 7094cf_tty_name=`tty` 7095test "$cf_tty_name" = "not a tty" && cf_tty_name=/dev/tty 7096test -z "$cf_tty_name" && cf_tty_name=/dev/tty 7097if test -c "$cf_tty_name" 7098then 7099 cf_option="-l -L" 7100 7101 # Expect listing to have fields like this: 7102 #-rwxrwxrwx 1 user group 34293 Jul 18 16:29 pathname 7103 ls $cf_option $cf_tty_name >conftest.out 7104 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out 7105 if test -z "$cf_rest" ; then 7106 cf_option="$cf_option -g" 7107 ls $cf_option $cf_tty_name >conftest.out 7108 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out 7109 fi 7110 rm -f conftest.out 7111 cf_cv_tty_group_name=$cf_grp 7112fi 7113fi 7114 7115# If we cannot deduce the tty group, fall back on hardcoded cases 7116 7117if test -z "$cf_cv_tty_group_name" 7118then 7119case $host_os in 7120(osf*) 7121 cf_cv_tty_group_name="terminal" 7122 ;; 7123(*) 7124 cf_cv_tty_group_name="unknown" 7125 if ( egrep '^tty:' /etc/group 2>/dev/null 1>/dev/null ) then 7126 cf_cv_tty_group_name="tty" 7127 fi 7128 ;; 7129esac 7130fi 7131 7132fi 7133echo "$as_me:7133: result: $cf_cv_tty_group_name" >&5 7134echo "${ECHO_T}$cf_cv_tty_group_name" >&6 7135cf_tty_group="$cf_cv_tty_group_name" 7136else 7137 # if configure option, always do this 7138 7139cat >>confdefs.h <<\EOF 7140#define USE_TTY_GROUP 1 7141EOF 7142 7143fi 7144 7145cat >>confdefs.h <<EOF 7146#define TTY_GROUP_NAME "$cf_tty_group" 7147EOF 7148 7149# This is only a double-check that the group-name we obtained above really 7150# does apply to the device. We cannot perform this test if we are in batch 7151# mode, or if we are cross-compiling. 7152 7153echo "$as_me:7153: checking if we may use the $cf_tty_group group" >&5 7154echo $ECHO_N "checking if we may use the $cf_tty_group group... $ECHO_C" >&6 7155if test "${cf_cv_tty_group+set}" = set; then 7156 echo $ECHO_N "(cached) $ECHO_C" >&6 7157else 7158 7159cf_tty_name=`tty` 7160if test "$cf_tty_name" != "not a tty" 7161then 7162if test "$cross_compiling" = yes; then 7163 cf_cv_tty_group=unknown 7164else 7165 cat >conftest.$ac_ext <<_ACEOF 7166#line 7166 "configure" 7167#include "confdefs.h" 7168 7169#include <unistd.h> 7170#include <sys/types.h> 7171#include <sys/stat.h> 7172#include <grp.h> 7173int main() 7174{ 7175 struct stat sb; 7176 struct group *ttygrp = getgrnam(TTY_GROUP_NAME); 7177 char *name = ttyname(0); 7178 7179 endgrent(); 7180 if (ttygrp != 0 7181 && name != 0 7182 && stat(name, &sb) == 0 7183 && sb.st_gid != getgid() 7184 && sb.st_gid == ttygrp->gr_gid) { 7185 ${cf_cv_main_return:-return} (0); 7186 } 7187 ${cf_cv_main_return:-return} (1); 7188} 7189 7190_ACEOF 7191rm -f conftest$ac_exeext 7192if { (eval echo "$as_me:7192: \"$ac_link\"") >&5 7193 (eval $ac_link) 2>&5 7194 ac_status=$? 7195 echo "$as_me:7195: \$? = $ac_status" >&5 7196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7197 { (eval echo "$as_me:7197: \"$ac_try\"") >&5 7198 (eval $ac_try) 2>&5 7199 ac_status=$? 7200 echo "$as_me:7200: \$? = $ac_status" >&5 7201 (exit $ac_status); }; }; then 7202 cf_cv_tty_group=yes 7203else 7204 echo "$as_me: program exited with status $ac_status" >&5 7205echo "$as_me: failed program was:" >&5 7206cat conftest.$ac_ext >&5 7207cf_cv_tty_group=no 7208fi 7209rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7210fi 7211elif test "$cross_compiling" = yes; then 7212 cf_cv_tty_group=unknown 7213else 7214 cf_cv_tty_group=yes 7215fi 7216 7217fi 7218echo "$as_me:7218: result: $cf_cv_tty_group" >&5 7219echo "${ECHO_T}$cf_cv_tty_group" >&6 7220 7221if test $cf_cv_tty_group = no ; then 7222 { echo "$as_me:7222: WARNING: Cannot use $cf_tty_group group" >&5 7223echo "$as_me: WARNING: Cannot use $cf_tty_group group" >&2;} 7224else 7225 cat >>confdefs.h <<\EOF 7226#define USE_TTY_GROUP 1 7227EOF 7228 7229fi 7230 7231### checks for system services and user specified options 7232 7233echo "$as_me:7233: checking for sys/wait.h that is POSIX.1 compatible" >&5 7234echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 7235if test "${ac_cv_header_sys_wait_h+set}" = set; then 7236 echo $ECHO_N "(cached) $ECHO_C" >&6 7237else 7238 cat >conftest.$ac_ext <<_ACEOF 7239#line 7239 "configure" 7240#include "confdefs.h" 7241#include <sys/types.h> 7242#include <sys/wait.h> 7243#ifndef WEXITSTATUS 7244# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 7245#endif 7246#ifndef WIFEXITED 7247# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 7248#endif 7249 7250int 7251main () 7252{ 7253 int s; 7254 wait (&s); 7255 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 7256 ; 7257 return 0; 7258} 7259_ACEOF 7260rm -f conftest.$ac_objext 7261if { (eval echo "$as_me:7261: \"$ac_compile\"") >&5 7262 (eval $ac_compile) 2>&5 7263 ac_status=$? 7264 echo "$as_me:7264: \$? = $ac_status" >&5 7265 (exit $ac_status); } && 7266 { ac_try='test -s conftest.$ac_objext' 7267 { (eval echo "$as_me:7267: \"$ac_try\"") >&5 7268 (eval $ac_try) 2>&5 7269 ac_status=$? 7270 echo "$as_me:7270: \$? = $ac_status" >&5 7271 (exit $ac_status); }; }; then 7272 ac_cv_header_sys_wait_h=yes 7273else 7274 echo "$as_me: failed program was:" >&5 7275cat conftest.$ac_ext >&5 7276ac_cv_header_sys_wait_h=no 7277fi 7278rm -f conftest.$ac_objext conftest.$ac_ext 7279fi 7280echo "$as_me:7280: result: $ac_cv_header_sys_wait_h" >&5 7281echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 7282if test $ac_cv_header_sys_wait_h = yes; then 7283 7284cat >>confdefs.h <<\EOF 7285#define HAVE_SYS_WAIT_H 1 7286EOF 7287 7288fi 7289 7290echo "$as_me:7290: checking for POSIX wait functions" >&5 7291echo $ECHO_N "checking for POSIX wait functions... $ECHO_C" >&6 7292if test "${cf_cv_posix_wait+set}" = set; then 7293 echo $ECHO_N "(cached) $ECHO_C" >&6 7294else 7295 7296cat >conftest.$ac_ext <<_ACEOF 7297#line 7297 "configure" 7298#include "confdefs.h" 7299 7300#include <stdlib.h> 7301#include <stdio.h> 7302#include <sys/types.h> 7303#ifdef HAVE_SYS_WAIT_H 7304#include <sys/wait.h> 7305#endif 7306 7307int 7308main () 7309{ 7310 7311 int stat_loc; 7312 pid_t pid = waitpid(-1, &stat_loc, WNOHANG|WUNTRACED); 7313 pid_t pid2 = wait(&stat_loc); 7314 7315 ; 7316 return 0; 7317} 7318_ACEOF 7319rm -f conftest.$ac_objext conftest$ac_exeext 7320if { (eval echo "$as_me:7320: \"$ac_link\"") >&5 7321 (eval $ac_link) 2>&5 7322 ac_status=$? 7323 echo "$as_me:7323: \$? = $ac_status" >&5 7324 (exit $ac_status); } && 7325 { ac_try='test -s conftest$ac_exeext' 7326 { (eval echo "$as_me:7326: \"$ac_try\"") >&5 7327 (eval $ac_try) 2>&5 7328 ac_status=$? 7329 echo "$as_me:7329: \$? = $ac_status" >&5 7330 (exit $ac_status); }; }; then 7331 cf_cv_posix_wait=yes 7332else 7333 echo "$as_me: failed program was:" >&5 7334cat conftest.$ac_ext >&5 7335cf_cv_posix_wait=no 7336fi 7337rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7338 7339fi 7340echo "$as_me:7340: result: $cf_cv_posix_wait" >&5 7341echo "${ECHO_T}$cf_cv_posix_wait" >&6 7342test "$cf_cv_posix_wait" = yes && 7343cat >>confdefs.h <<\EOF 7344#define USE_POSIX_WAIT 1 7345EOF 7346 7347echo "$as_me:7347: checking if external sys_nerr is declared" >&5 7348echo $ECHO_N "checking if external sys_nerr is declared... $ECHO_C" >&6 7349if test "${cf_cv_dcl_sys_nerr+set}" = set; then 7350 echo $ECHO_N "(cached) $ECHO_C" >&6 7351else 7352 7353 cat >conftest.$ac_ext <<_ACEOF 7354#line 7354 "configure" 7355#include "confdefs.h" 7356 7357#ifdef HAVE_STDLIB_H 7358#include <stdlib.h> 7359#endif 7360#include <stdio.h> 7361#include <sys/types.h> 7362#include <errno.h> 7363int 7364main () 7365{ 7366int x = (int) sys_nerr 7367 ; 7368 return 0; 7369} 7370_ACEOF 7371rm -f conftest.$ac_objext 7372if { (eval echo "$as_me:7372: \"$ac_compile\"") >&5 7373 (eval $ac_compile) 2>&5 7374 ac_status=$? 7375 echo "$as_me:7375: \$? = $ac_status" >&5 7376 (exit $ac_status); } && 7377 { ac_try='test -s conftest.$ac_objext' 7378 { (eval echo "$as_me:7378: \"$ac_try\"") >&5 7379 (eval $ac_try) 2>&5 7380 ac_status=$? 7381 echo "$as_me:7381: \$? = $ac_status" >&5 7382 (exit $ac_status); }; }; then 7383 cf_cv_dcl_sys_nerr=yes 7384else 7385 echo "$as_me: failed program was:" >&5 7386cat conftest.$ac_ext >&5 7387cf_cv_dcl_sys_nerr=no 7388fi 7389rm -f conftest.$ac_objext conftest.$ac_ext 7390 7391fi 7392echo "$as_me:7392: result: $cf_cv_dcl_sys_nerr" >&5 7393echo "${ECHO_T}$cf_cv_dcl_sys_nerr" >&6 7394 7395if test "$cf_cv_dcl_sys_nerr" = no ; then 7396 7397cf_result=`echo "decl_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 7398 7399 cat >>confdefs.h <<EOF 7400#define $cf_result 1 7401EOF 7402 7403fi 7404 7405# It's possible (for near-UNIX clones) that the data doesn't exist 7406 7407echo "$as_me:7407: checking if external sys_nerr exists" >&5 7408echo $ECHO_N "checking if external sys_nerr exists... $ECHO_C" >&6 7409if test "${cf_cv_have_sys_nerr+set}" = set; then 7410 echo $ECHO_N "(cached) $ECHO_C" >&6 7411else 7412 7413 cat >conftest.$ac_ext <<_ACEOF 7414#line 7414 "configure" 7415#include "confdefs.h" 7416 7417#undef sys_nerr 7418extern int sys_nerr; 7419 7420int 7421main () 7422{ 7423sys_nerr = 2 7424 ; 7425 return 0; 7426} 7427_ACEOF 7428rm -f conftest.$ac_objext conftest$ac_exeext 7429if { (eval echo "$as_me:7429: \"$ac_link\"") >&5 7430 (eval $ac_link) 2>&5 7431 ac_status=$? 7432 echo "$as_me:7432: \$? = $ac_status" >&5 7433 (exit $ac_status); } && 7434 { ac_try='test -s conftest$ac_exeext' 7435 { (eval echo "$as_me:7435: \"$ac_try\"") >&5 7436 (eval $ac_try) 2>&5 7437 ac_status=$? 7438 echo "$as_me:7438: \$? = $ac_status" >&5 7439 (exit $ac_status); }; }; then 7440 cf_cv_have_sys_nerr=yes 7441else 7442 echo "$as_me: failed program was:" >&5 7443cat conftest.$ac_ext >&5 7444cf_cv_have_sys_nerr=no 7445fi 7446rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7447 7448fi 7449echo "$as_me:7449: result: $cf_cv_have_sys_nerr" >&5 7450echo "${ECHO_T}$cf_cv_have_sys_nerr" >&6 7451 7452if test "$cf_cv_have_sys_nerr" = yes ; then 7453 7454cf_result=`echo "have_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 7455 7456 cat >>confdefs.h <<EOF 7457#define $cf_result 1 7458EOF 7459 7460fi 7461 7462echo "$as_me:7462: checking if external sys_errlist is declared" >&5 7463echo $ECHO_N "checking if external sys_errlist is declared... $ECHO_C" >&6 7464if test "${cf_cv_dcl_sys_errlist+set}" = set; then 7465 echo $ECHO_N "(cached) $ECHO_C" >&6 7466else 7467 7468 cat >conftest.$ac_ext <<_ACEOF 7469#line 7469 "configure" 7470#include "confdefs.h" 7471 7472#ifdef HAVE_STDLIB_H 7473#include <stdlib.h> 7474#endif 7475#include <stdio.h> 7476#include <sys/types.h> 7477#include <errno.h> 7478int 7479main () 7480{ 7481int x = (int) sys_errlist 7482 ; 7483 return 0; 7484} 7485_ACEOF 7486rm -f conftest.$ac_objext 7487if { (eval echo "$as_me:7487: \"$ac_compile\"") >&5 7488 (eval $ac_compile) 2>&5 7489 ac_status=$? 7490 echo "$as_me:7490: \$? = $ac_status" >&5 7491 (exit $ac_status); } && 7492 { ac_try='test -s conftest.$ac_objext' 7493 { (eval echo "$as_me:7493: \"$ac_try\"") >&5 7494 (eval $ac_try) 2>&5 7495 ac_status=$? 7496 echo "$as_me:7496: \$? = $ac_status" >&5 7497 (exit $ac_status); }; }; then 7498 cf_cv_dcl_sys_errlist=yes 7499else 7500 echo "$as_me: failed program was:" >&5 7501cat conftest.$ac_ext >&5 7502cf_cv_dcl_sys_errlist=no 7503fi 7504rm -f conftest.$ac_objext conftest.$ac_ext 7505 7506fi 7507echo "$as_me:7507: result: $cf_cv_dcl_sys_errlist" >&5 7508echo "${ECHO_T}$cf_cv_dcl_sys_errlist" >&6 7509 7510if test "$cf_cv_dcl_sys_errlist" = no ; then 7511 7512cf_result=`echo "decl_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 7513 7514 cat >>confdefs.h <<EOF 7515#define $cf_result 1 7516EOF 7517 7518fi 7519 7520# It's possible (for near-UNIX clones) that the data doesn't exist 7521 7522echo "$as_me:7522: checking if external sys_errlist exists" >&5 7523echo $ECHO_N "checking if external sys_errlist exists... $ECHO_C" >&6 7524if test "${cf_cv_have_sys_errlist+set}" = set; then 7525 echo $ECHO_N "(cached) $ECHO_C" >&6 7526else 7527 7528 cat >conftest.$ac_ext <<_ACEOF 7529#line 7529 "configure" 7530#include "confdefs.h" 7531 7532#undef sys_errlist 7533extern int sys_errlist; 7534 7535int 7536main () 7537{ 7538sys_errlist = 2 7539 ; 7540 return 0; 7541} 7542_ACEOF 7543rm -f conftest.$ac_objext conftest$ac_exeext 7544if { (eval echo "$as_me:7544: \"$ac_link\"") >&5 7545 (eval $ac_link) 2>&5 7546 ac_status=$? 7547 echo "$as_me:7547: \$? = $ac_status" >&5 7548 (exit $ac_status); } && 7549 { ac_try='test -s conftest$ac_exeext' 7550 { (eval echo "$as_me:7550: \"$ac_try\"") >&5 7551 (eval $ac_try) 2>&5 7552 ac_status=$? 7553 echo "$as_me:7553: \$? = $ac_status" >&5 7554 (exit $ac_status); }; }; then 7555 cf_cv_have_sys_errlist=yes 7556else 7557 echo "$as_me: failed program was:" >&5 7558cat conftest.$ac_ext >&5 7559cf_cv_have_sys_errlist=no 7560fi 7561rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7562 7563fi 7564echo "$as_me:7564: result: $cf_cv_have_sys_errlist" >&5 7565echo "${ECHO_T}$cf_cv_have_sys_errlist" >&6 7566 7567if test "$cf_cv_have_sys_errlist" = yes ; then 7568 7569cf_result=`echo "have_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 7570 7571 cat >>confdefs.h <<EOF 7572#define $cf_result 1 7573EOF 7574 7575fi 7576 7577for ac_header in \ 7578termios.h \ 7579stdlib.h \ 7580X11/Intrinsic.h \ 7581 7582do 7583as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7584echo "$as_me:7584: checking for $ac_header" >&5 7585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7586if eval "test \"\${$as_ac_Header+set}\" = set"; then 7587 echo $ECHO_N "(cached) $ECHO_C" >&6 7588else 7589 cat >conftest.$ac_ext <<_ACEOF 7590#line 7590 "configure" 7591#include "confdefs.h" 7592#include <$ac_header> 7593_ACEOF 7594if { (eval echo "$as_me:7594: \"$ac_cpp conftest.$ac_ext\"") >&5 7595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7596 ac_status=$? 7597 egrep -v '^ *\+' conftest.er1 >conftest.err 7598 rm -f conftest.er1 7599 cat conftest.err >&5 7600 echo "$as_me:7600: \$? = $ac_status" >&5 7601 (exit $ac_status); } >/dev/null; then 7602 if test -s conftest.err; then 7603 ac_cpp_err=$ac_c_preproc_warn_flag 7604 else 7605 ac_cpp_err= 7606 fi 7607else 7608 ac_cpp_err=yes 7609fi 7610if test -z "$ac_cpp_err"; then 7611 eval "$as_ac_Header=yes" 7612else 7613 echo "$as_me: failed program was:" >&5 7614 cat conftest.$ac_ext >&5 7615 eval "$as_ac_Header=no" 7616fi 7617rm -f conftest.err conftest.$ac_ext 7618fi 7619echo "$as_me:7619: result: `eval echo '${'$as_ac_Header'}'`" >&5 7620echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7621if test `eval echo '${'$as_ac_Header'}'` = yes; then 7622 cat >>confdefs.h <<EOF 7623#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7624EOF 7625 7626fi 7627done 7628 7629echo "$as_me:7629: checking if we should define SYSV" >&5 7630echo $ECHO_N "checking if we should define SYSV... $ECHO_C" >&6 7631if test "${cf_cv_sysv+set}" = set; then 7632 echo $ECHO_N "(cached) $ECHO_C" >&6 7633else 7634 7635cat >conftest.$ac_ext <<_ACEOF 7636#line 7636 "configure" 7637#include "confdefs.h" 7638 7639#undef SYSV 7640#define SYSV 1 /* get Xos.h to declare sys_errlist[] */ 7641#ifdef HAVE_STDLIB_H 7642#include <stdlib.h> /* look for wchar_t */ 7643#endif 7644#ifdef HAVE_X11_INTRINSIC_H 7645#include <X11/Intrinsic.h> /* Intrinsic.h has other traps... */ 7646#endif 7647#ifdef HAVE_TERMIOS_H /* needed for HPUX 10.20 */ 7648#include <termios.h> 7649#define STRUCT_TERMIOS struct termios 7650#else 7651#define STRUCT_TERMIOS struct termio 7652#endif 7653#include <curses.h> 7654#include <term.h> /* eliminate most BSD hacks */ 7655#include <errno.h> /* declare sys_errlist on older systems */ 7656#include <sys/termio.h> /* eliminate most of the remaining ones */ 7657 7658int 7659main () 7660{ 7661 7662static STRUCT_TERMIOS d_tio; 7663 d_tio.c_cc[VINTR] = 0; 7664 d_tio.c_cc[VQUIT] = 0; 7665 d_tio.c_cc[VERASE] = 0; 7666 d_tio.c_cc[VKILL] = 0; 7667 d_tio.c_cc[VEOF] = 0; 7668 d_tio.c_cc[VEOL] = 0; 7669 d_tio.c_cc[VMIN] = 0; 7670 d_tio.c_cc[VTIME] = 0; 7671#if defined(HAVE_SYS_ERRLIST) && !defined(DECL_SYS_ERRLIST) 7672sys_errlist[0] = ""; /* Cygwin mis-declares this */ 7673#endif 7674 7675 ; 7676 return 0; 7677} 7678_ACEOF 7679rm -f conftest.$ac_objext 7680if { (eval echo "$as_me:7680: \"$ac_compile\"") >&5 7681 (eval $ac_compile) 2>&5 7682 ac_status=$? 7683 echo "$as_me:7683: \$? = $ac_status" >&5 7684 (exit $ac_status); } && 7685 { ac_try='test -s conftest.$ac_objext' 7686 { (eval echo "$as_me:7686: \"$ac_try\"") >&5 7687 (eval $ac_try) 2>&5 7688 ac_status=$? 7689 echo "$as_me:7689: \$? = $ac_status" >&5 7690 (exit $ac_status); }; }; then 7691 cf_cv_sysv=yes 7692else 7693 echo "$as_me: failed program was:" >&5 7694cat conftest.$ac_ext >&5 7695cf_cv_sysv=no 7696fi 7697rm -f conftest.$ac_objext conftest.$ac_ext 7698 7699fi 7700echo "$as_me:7700: result: $cf_cv_sysv" >&5 7701echo "${ECHO_T}$cf_cv_sysv" >&6 7702test "$cf_cv_sysv" = yes && 7703cat >>confdefs.h <<\EOF 7704#define SYSV 1 7705EOF 7706 7707echo "$as_me:7707: checking for elf_begin in -lelf" >&5 7708echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 7709if test "${ac_cv_lib_elf_elf_begin+set}" = set; then 7710 echo $ECHO_N "(cached) $ECHO_C" >&6 7711else 7712 ac_check_lib_save_LIBS=$LIBS 7713LIBS="-lelf $LIBS" 7714cat >conftest.$ac_ext <<_ACEOF 7715#line 7715 "configure" 7716#include "confdefs.h" 7717 7718/* Override any gcc2 internal prototype to avoid an error. */ 7719#ifdef __cplusplus 7720extern "C" 7721#endif 7722/* We use char because int might match the return type of a gcc2 7723 builtin and then its argument prototype would still apply. */ 7724char elf_begin (); 7725int 7726main () 7727{ 7728elf_begin (); 7729 ; 7730 return 0; 7731} 7732_ACEOF 7733rm -f conftest.$ac_objext conftest$ac_exeext 7734if { (eval echo "$as_me:7734: \"$ac_link\"") >&5 7735 (eval $ac_link) 2>&5 7736 ac_status=$? 7737 echo "$as_me:7737: \$? = $ac_status" >&5 7738 (exit $ac_status); } && 7739 { ac_try='test -s conftest$ac_exeext' 7740 { (eval echo "$as_me:7740: \"$ac_try\"") >&5 7741 (eval $ac_try) 2>&5 7742 ac_status=$? 7743 echo "$as_me:7743: \$? = $ac_status" >&5 7744 (exit $ac_status); }; }; then 7745 ac_cv_lib_elf_elf_begin=yes 7746else 7747 echo "$as_me: failed program was:" >&5 7748cat conftest.$ac_ext >&5 7749ac_cv_lib_elf_elf_begin=no 7750fi 7751rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7752LIBS=$ac_check_lib_save_LIBS 7753fi 7754echo "$as_me:7754: result: $ac_cv_lib_elf_elf_begin" >&5 7755echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 7756if test $ac_cv_lib_elf_elf_begin = yes; then 7757 7758echo "$as_me:7758: checking if this is an SVR4 system" >&5 7759echo $ECHO_N "checking if this is an SVR4 system... $ECHO_C" >&6 7760if test "${cf_cv_svr4+set}" = set; then 7761 echo $ECHO_N "(cached) $ECHO_C" >&6 7762else 7763 7764cat >conftest.$ac_ext <<_ACEOF 7765#line 7765 "configure" 7766#include "confdefs.h" 7767 7768#if defined(__CYGWIN__) 7769make an error 7770#endif 7771#include <elf.h> 7772#include <sys/termio.h> 7773 7774int 7775main () 7776{ 7777 7778static struct termio d_tio; 7779 d_tio.c_cc[VINTR] = 0; 7780 d_tio.c_cc[VQUIT] = 0; 7781 d_tio.c_cc[VERASE] = 0; 7782 d_tio.c_cc[VKILL] = 0; 7783 d_tio.c_cc[VEOF] = 0; 7784 d_tio.c_cc[VEOL] = 0; 7785 d_tio.c_cc[VMIN] = 0; 7786 d_tio.c_cc[VTIME] = 0; 7787 d_tio.c_cc[VLNEXT] = 0; 7788 7789 ; 7790 return 0; 7791} 7792_ACEOF 7793rm -f conftest.$ac_objext 7794if { (eval echo "$as_me:7794: \"$ac_compile\"") >&5 7795 (eval $ac_compile) 2>&5 7796 ac_status=$? 7797 echo "$as_me:7797: \$? = $ac_status" >&5 7798 (exit $ac_status); } && 7799 { ac_try='test -s conftest.$ac_objext' 7800 { (eval echo "$as_me:7800: \"$ac_try\"") >&5 7801 (eval $ac_try) 2>&5 7802 ac_status=$? 7803 echo "$as_me:7803: \$? = $ac_status" >&5 7804 (exit $ac_status); }; }; then 7805 cf_cv_svr4=yes 7806else 7807 echo "$as_me: failed program was:" >&5 7808cat conftest.$ac_ext >&5 7809cf_cv_svr4=no 7810fi 7811rm -f conftest.$ac_objext conftest.$ac_ext 7812 7813fi 7814echo "$as_me:7814: result: $cf_cv_svr4" >&5 7815echo "${ECHO_T}$cf_cv_svr4" >&6 7816 7817fi 7818 7819test "$cf_cv_svr4" = yes && 7820cat >>confdefs.h <<\EOF 7821#define SVR4 1 7822EOF 7823 7824echo "$as_me:7824: checking for X" >&5 7825echo $ECHO_N "checking for X... $ECHO_C" >&6 7826 7827# Check whether --with-x or --without-x was given. 7828if test "${with_x+set}" = set; then 7829 withval="$with_x" 7830 7831fi; 7832# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 7833if test "x$with_x" = xno; then 7834 # The user explicitly disabled X. 7835 have_x=disabled 7836else 7837 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 7838 # Both variables are already set. 7839 have_x=yes 7840 else 7841 if test "${ac_cv_have_x+set}" = set; then 7842 echo $ECHO_N "(cached) $ECHO_C" >&6 7843else 7844 # One or both of the vars are not set, and there is no cached value. 7845ac_x_includes=no ac_x_libraries=no 7846rm -fr conftest.dir 7847if mkdir conftest.dir; then 7848 cd conftest.dir 7849 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 7850 cat >Imakefile <<'EOF' 7851acfindx: 7852 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 7853EOF 7854 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 7855 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 7856 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 7857 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 7858 for ac_extension in a so sl dylib dll; do 7859 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 7860 test -f $ac_im_libdir/libX11.$ac_extension; then 7861 ac_im_usrlibdir=$ac_im_libdir; break 7862 fi 7863 done 7864 # Screen out bogus values from the imake configuration. They are 7865 # bogus both because they are the default anyway, and because 7866 # using them would break gcc on systems where it needs fixed includes. 7867 case $ac_im_incroot in 7868 /usr/include) ;; 7869 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 7870 esac 7871 case $ac_im_usrlibdir in 7872 /usr/lib | /lib) ;; 7873 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 7874 esac 7875 fi 7876 cd .. 7877 rm -fr conftest.dir 7878fi 7879 7880# Standard set of common directories for X headers. 7881# Check X11 before X11Rn because it is often a symlink to the current release. 7882ac_x_header_dirs=' 7883/usr/X11/include 7884/usr/X11R6/include 7885/usr/X11R5/include 7886/usr/X11R4/include 7887 7888/usr/include/X11 7889/usr/include/X11R6 7890/usr/include/X11R5 7891/usr/include/X11R4 7892 7893/usr/local/X11/include 7894/usr/local/X11R6/include 7895/usr/local/X11R5/include 7896/usr/local/X11R4/include 7897 7898/usr/local/include/X11 7899/usr/local/include/X11R6 7900/usr/local/include/X11R5 7901/usr/local/include/X11R4 7902 7903/usr/X386/include 7904/usr/x386/include 7905/usr/XFree86/include/X11 7906 7907/usr/include 7908/usr/local/include 7909/usr/unsupported/include 7910/usr/athena/include 7911/usr/local/x11r5/include 7912/usr/lpp/Xamples/include 7913 7914/usr/openwin/include 7915/usr/openwin/share/include' 7916 7917if test "$ac_x_includes" = no; then 7918 # Guess where to find include files, by looking for Intrinsic.h. 7919 # First, try using that file with no special directory specified. 7920 cat >conftest.$ac_ext <<_ACEOF 7921#line 7921 "configure" 7922#include "confdefs.h" 7923#include <X11/Intrinsic.h> 7924_ACEOF 7925if { (eval echo "$as_me:7925: \"$ac_cpp conftest.$ac_ext\"") >&5 7926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7927 ac_status=$? 7928 egrep -v '^ *\+' conftest.er1 >conftest.err 7929 rm -f conftest.er1 7930 cat conftest.err >&5 7931 echo "$as_me:7931: \$? = $ac_status" >&5 7932 (exit $ac_status); } >/dev/null; then 7933 if test -s conftest.err; then 7934 ac_cpp_err=$ac_c_preproc_warn_flag 7935 else 7936 ac_cpp_err= 7937 fi 7938else 7939 ac_cpp_err=yes 7940fi 7941if test -z "$ac_cpp_err"; then 7942 # We can compile using X headers with no special include directory. 7943ac_x_includes= 7944else 7945 echo "$as_me: failed program was:" >&5 7946 cat conftest.$ac_ext >&5 7947 for ac_dir in $ac_x_header_dirs; do 7948 if test -r "$ac_dir/X11/Intrinsic.h"; then 7949 ac_x_includes=$ac_dir 7950 break 7951 fi 7952done 7953fi 7954rm -f conftest.err conftest.$ac_ext 7955fi # $ac_x_includes = no 7956 7957if test "$ac_x_libraries" = no; then 7958 # Check for the libraries. 7959 # See if we find them without any special options. 7960 # Don't add to $LIBS permanently. 7961 ac_save_LIBS=$LIBS 7962 LIBS="-lXt $LIBS" 7963 cat >conftest.$ac_ext <<_ACEOF 7964#line 7964 "configure" 7965#include "confdefs.h" 7966#include <X11/Intrinsic.h> 7967int 7968main () 7969{ 7970XtMalloc (0) 7971 ; 7972 return 0; 7973} 7974_ACEOF 7975rm -f conftest.$ac_objext conftest$ac_exeext 7976if { (eval echo "$as_me:7976: \"$ac_link\"") >&5 7977 (eval $ac_link) 2>&5 7978 ac_status=$? 7979 echo "$as_me:7979: \$? = $ac_status" >&5 7980 (exit $ac_status); } && 7981 { ac_try='test -s conftest$ac_exeext' 7982 { (eval echo "$as_me:7982: \"$ac_try\"") >&5 7983 (eval $ac_try) 2>&5 7984 ac_status=$? 7985 echo "$as_me:7985: \$? = $ac_status" >&5 7986 (exit $ac_status); }; }; then 7987 LIBS=$ac_save_LIBS 7988# We can link X programs with no special library path. 7989ac_x_libraries= 7990else 7991 echo "$as_me: failed program was:" >&5 7992cat conftest.$ac_ext >&5 7993LIBS=$ac_save_LIBS 7994for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 7995do 7996 # Don't even attempt the hair of trying to link an X program! 7997 for ac_extension in a so sl dylib dll; do 7998 if test -r $ac_dir/libXt.$ac_extension; then 7999 ac_x_libraries=$ac_dir 8000 break 2 8001 fi 8002 done 8003done 8004fi 8005rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8006fi # $ac_x_libraries = no 8007 8008if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 8009 # Didn't find X anywhere. Cache the known absence of X. 8010 ac_cv_have_x="have_x=no" 8011else 8012 # Record where we found X for the cache. 8013 ac_cv_have_x="have_x=yes \ 8014 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 8015fi 8016fi 8017 8018 fi 8019 eval "$ac_cv_have_x" 8020fi # $with_x != no 8021 8022if test "$have_x" != yes; then 8023 echo "$as_me:8023: result: $have_x" >&5 8024echo "${ECHO_T}$have_x" >&6 8025 no_x=yes 8026else 8027 # If each of the values was on the command line, it overrides each guess. 8028 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 8029 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 8030 # Update the cache value to reflect the command line values. 8031 ac_cv_have_x="have_x=yes \ 8032 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 8033 echo "$as_me:8033: result: libraries $x_libraries, headers $x_includes" >&5 8034echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 8035fi 8036 8037if test "$no_x" = yes; then 8038 # Not all programs may use this symbol, but it does not hurt to define it. 8039 8040cat >>confdefs.h <<\EOF 8041#define X_DISPLAY_MISSING 1 8042EOF 8043 8044 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 8045else 8046 if test -n "$x_includes"; then 8047 X_CFLAGS="$X_CFLAGS -I$x_includes" 8048 fi 8049 8050 # It would also be nice to do this for all -L options, not just this one. 8051 if test -n "$x_libraries"; then 8052 X_LIBS="$X_LIBS -L$x_libraries" 8053 # For Solaris; some versions of Sun CC require a space after -R and 8054 # others require no space. Words are not sufficient . . . . 8055 case `(uname -sr) 2>/dev/null` in 8056 "SunOS 5"*) 8057 echo "$as_me:8057: checking whether -R must be followed by a space" >&5 8058echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 8059 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 8060 cat >conftest.$ac_ext <<_ACEOF 8061#line 8061 "configure" 8062#include "confdefs.h" 8063 8064int 8065main () 8066{ 8067 8068 ; 8069 return 0; 8070} 8071_ACEOF 8072rm -f conftest.$ac_objext conftest$ac_exeext 8073if { (eval echo "$as_me:8073: \"$ac_link\"") >&5 8074 (eval $ac_link) 2>&5 8075 ac_status=$? 8076 echo "$as_me:8076: \$? = $ac_status" >&5 8077 (exit $ac_status); } && 8078 { ac_try='test -s conftest$ac_exeext' 8079 { (eval echo "$as_me:8079: \"$ac_try\"") >&5 8080 (eval $ac_try) 2>&5 8081 ac_status=$? 8082 echo "$as_me:8082: \$? = $ac_status" >&5 8083 (exit $ac_status); }; }; then 8084 ac_R_nospace=yes 8085else 8086 echo "$as_me: failed program was:" >&5 8087cat conftest.$ac_ext >&5 8088ac_R_nospace=no 8089fi 8090rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8091 if test $ac_R_nospace = yes; then 8092 echo "$as_me:8092: result: no" >&5 8093echo "${ECHO_T}no" >&6 8094 X_LIBS="$X_LIBS -R$x_libraries" 8095 else 8096 LIBS="$ac_xsave_LIBS -R $x_libraries" 8097 cat >conftest.$ac_ext <<_ACEOF 8098#line 8098 "configure" 8099#include "confdefs.h" 8100 8101int 8102main () 8103{ 8104 8105 ; 8106 return 0; 8107} 8108_ACEOF 8109rm -f conftest.$ac_objext conftest$ac_exeext 8110if { (eval echo "$as_me:8110: \"$ac_link\"") >&5 8111 (eval $ac_link) 2>&5 8112 ac_status=$? 8113 echo "$as_me:8113: \$? = $ac_status" >&5 8114 (exit $ac_status); } && 8115 { ac_try='test -s conftest$ac_exeext' 8116 { (eval echo "$as_me:8116: \"$ac_try\"") >&5 8117 (eval $ac_try) 2>&5 8118 ac_status=$? 8119 echo "$as_me:8119: \$? = $ac_status" >&5 8120 (exit $ac_status); }; }; then 8121 ac_R_space=yes 8122else 8123 echo "$as_me: failed program was:" >&5 8124cat conftest.$ac_ext >&5 8125ac_R_space=no 8126fi 8127rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8128 if test $ac_R_space = yes; then 8129 echo "$as_me:8129: result: yes" >&5 8130echo "${ECHO_T}yes" >&6 8131 X_LIBS="$X_LIBS -R $x_libraries" 8132 else 8133 echo "$as_me:8133: result: neither works" >&5 8134echo "${ECHO_T}neither works" >&6 8135 fi 8136 fi 8137 LIBS=$ac_xsave_LIBS 8138 esac 8139 fi 8140 8141 # Check for system-dependent libraries X programs must link with. 8142 # Do this before checking for the system-independent R6 libraries 8143 # (-lICE), since we may need -lsocket or whatever for X linking. 8144 8145 if test "$ISC" = yes; then 8146 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 8147 else 8148 # Martyn Johnson says this is needed for Ultrix, if the X 8149 # libraries were built with DECnet support. And Karl Berry says 8150 # the Alpha needs dnet_stub (dnet does not exist). 8151 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 8152 cat >conftest.$ac_ext <<_ACEOF 8153#line 8153 "configure" 8154#include "confdefs.h" 8155 8156/* Override any gcc2 internal prototype to avoid an error. */ 8157#ifdef __cplusplus 8158extern "C" 8159#endif 8160/* We use char because int might match the return type of a gcc2 8161 builtin and then its argument prototype would still apply. */ 8162char XOpenDisplay (); 8163int 8164main () 8165{ 8166XOpenDisplay (); 8167 ; 8168 return 0; 8169} 8170_ACEOF 8171rm -f conftest.$ac_objext conftest$ac_exeext 8172if { (eval echo "$as_me:8172: \"$ac_link\"") >&5 8173 (eval $ac_link) 2>&5 8174 ac_status=$? 8175 echo "$as_me:8175: \$? = $ac_status" >&5 8176 (exit $ac_status); } && 8177 { ac_try='test -s conftest$ac_exeext' 8178 { (eval echo "$as_me:8178: \"$ac_try\"") >&5 8179 (eval $ac_try) 2>&5 8180 ac_status=$? 8181 echo "$as_me:8181: \$? = $ac_status" >&5 8182 (exit $ac_status); }; }; then 8183 : 8184else 8185 echo "$as_me: failed program was:" >&5 8186cat conftest.$ac_ext >&5 8187echo "$as_me:8187: checking for dnet_ntoa in -ldnet" >&5 8188echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 8189if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 8190 echo $ECHO_N "(cached) $ECHO_C" >&6 8191else 8192 ac_check_lib_save_LIBS=$LIBS 8193LIBS="-ldnet $LIBS" 8194cat >conftest.$ac_ext <<_ACEOF 8195#line 8195 "configure" 8196#include "confdefs.h" 8197 8198/* Override any gcc2 internal prototype to avoid an error. */ 8199#ifdef __cplusplus 8200extern "C" 8201#endif 8202/* We use char because int might match the return type of a gcc2 8203 builtin and then its argument prototype would still apply. */ 8204char dnet_ntoa (); 8205int 8206main () 8207{ 8208dnet_ntoa (); 8209 ; 8210 return 0; 8211} 8212_ACEOF 8213rm -f conftest.$ac_objext conftest$ac_exeext 8214if { (eval echo "$as_me:8214: \"$ac_link\"") >&5 8215 (eval $ac_link) 2>&5 8216 ac_status=$? 8217 echo "$as_me:8217: \$? = $ac_status" >&5 8218 (exit $ac_status); } && 8219 { ac_try='test -s conftest$ac_exeext' 8220 { (eval echo "$as_me:8220: \"$ac_try\"") >&5 8221 (eval $ac_try) 2>&5 8222 ac_status=$? 8223 echo "$as_me:8223: \$? = $ac_status" >&5 8224 (exit $ac_status); }; }; then 8225 ac_cv_lib_dnet_dnet_ntoa=yes 8226else 8227 echo "$as_me: failed program was:" >&5 8228cat conftest.$ac_ext >&5 8229ac_cv_lib_dnet_dnet_ntoa=no 8230fi 8231rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8232LIBS=$ac_check_lib_save_LIBS 8233fi 8234echo "$as_me:8234: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 8235echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 8236if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 8237 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 8238fi 8239 8240 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 8241 echo "$as_me:8241: checking for dnet_ntoa in -ldnet_stub" >&5 8242echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 8243if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 8244 echo $ECHO_N "(cached) $ECHO_C" >&6 8245else 8246 ac_check_lib_save_LIBS=$LIBS 8247LIBS="-ldnet_stub $LIBS" 8248cat >conftest.$ac_ext <<_ACEOF 8249#line 8249 "configure" 8250#include "confdefs.h" 8251 8252/* Override any gcc2 internal prototype to avoid an error. */ 8253#ifdef __cplusplus 8254extern "C" 8255#endif 8256/* We use char because int might match the return type of a gcc2 8257 builtin and then its argument prototype would still apply. */ 8258char dnet_ntoa (); 8259int 8260main () 8261{ 8262dnet_ntoa (); 8263 ; 8264 return 0; 8265} 8266_ACEOF 8267rm -f conftest.$ac_objext conftest$ac_exeext 8268if { (eval echo "$as_me:8268: \"$ac_link\"") >&5 8269 (eval $ac_link) 2>&5 8270 ac_status=$? 8271 echo "$as_me:8271: \$? = $ac_status" >&5 8272 (exit $ac_status); } && 8273 { ac_try='test -s conftest$ac_exeext' 8274 { (eval echo "$as_me:8274: \"$ac_try\"") >&5 8275 (eval $ac_try) 2>&5 8276 ac_status=$? 8277 echo "$as_me:8277: \$? = $ac_status" >&5 8278 (exit $ac_status); }; }; then 8279 ac_cv_lib_dnet_stub_dnet_ntoa=yes 8280else 8281 echo "$as_me: failed program was:" >&5 8282cat conftest.$ac_ext >&5 8283ac_cv_lib_dnet_stub_dnet_ntoa=no 8284fi 8285rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8286LIBS=$ac_check_lib_save_LIBS 8287fi 8288echo "$as_me:8288: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 8289echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 8290if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 8291 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 8292fi 8293 8294 fi 8295fi 8296rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8297 LIBS="$ac_xsave_LIBS" 8298 8299 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 8300 # to get the SysV transport functions. 8301 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 8302 # needs -lnsl. 8303 # The nsl library prevents programs from opening the X display 8304 # on Irix 5.2, according to T.E. Dickey. 8305 # The functions gethostbyname, getservbyname, and inet_addr are 8306 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 8307 echo "$as_me:8307: checking for gethostbyname" >&5 8308echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 8309if test "${ac_cv_func_gethostbyname+set}" = set; then 8310 echo $ECHO_N "(cached) $ECHO_C" >&6 8311else 8312 cat >conftest.$ac_ext <<_ACEOF 8313#line 8313 "configure" 8314#include "confdefs.h" 8315/* System header to define __stub macros and hopefully few prototypes, 8316 which can conflict with char gethostbyname (); below. */ 8317#include <assert.h> 8318/* Override any gcc2 internal prototype to avoid an error. */ 8319#ifdef __cplusplus 8320extern "C" 8321#endif 8322/* We use char because int might match the return type of a gcc2 8323 builtin and then its argument prototype would still apply. */ 8324char gethostbyname (); 8325char (*f) (); 8326 8327int 8328main () 8329{ 8330/* The GNU C library defines this for functions which it implements 8331 to always fail with ENOSYS. Some functions are actually named 8332 something starting with __ and the normal name is an alias. */ 8333#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 8334choke me 8335#else 8336f = gethostbyname; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 8337#endif 8338 8339 ; 8340 return 0; 8341} 8342_ACEOF 8343rm -f conftest.$ac_objext conftest$ac_exeext 8344if { (eval echo "$as_me:8344: \"$ac_link\"") >&5 8345 (eval $ac_link) 2>&5 8346 ac_status=$? 8347 echo "$as_me:8347: \$? = $ac_status" >&5 8348 (exit $ac_status); } && 8349 { ac_try='test -s conftest$ac_exeext' 8350 { (eval echo "$as_me:8350: \"$ac_try\"") >&5 8351 (eval $ac_try) 2>&5 8352 ac_status=$? 8353 echo "$as_me:8353: \$? = $ac_status" >&5 8354 (exit $ac_status); }; }; then 8355 ac_cv_func_gethostbyname=yes 8356else 8357 echo "$as_me: failed program was:" >&5 8358cat conftest.$ac_ext >&5 8359ac_cv_func_gethostbyname=no 8360fi 8361rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8362fi 8363echo "$as_me:8363: result: $ac_cv_func_gethostbyname" >&5 8364echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 8365 8366 if test $ac_cv_func_gethostbyname = no; then 8367 echo "$as_me:8367: checking for gethostbyname in -lnsl" >&5 8368echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 8369if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 8370 echo $ECHO_N "(cached) $ECHO_C" >&6 8371else 8372 ac_check_lib_save_LIBS=$LIBS 8373LIBS="-lnsl $LIBS" 8374cat >conftest.$ac_ext <<_ACEOF 8375#line 8375 "configure" 8376#include "confdefs.h" 8377 8378/* Override any gcc2 internal prototype to avoid an error. */ 8379#ifdef __cplusplus 8380extern "C" 8381#endif 8382/* We use char because int might match the return type of a gcc2 8383 builtin and then its argument prototype would still apply. */ 8384char gethostbyname (); 8385int 8386main () 8387{ 8388gethostbyname (); 8389 ; 8390 return 0; 8391} 8392_ACEOF 8393rm -f conftest.$ac_objext conftest$ac_exeext 8394if { (eval echo "$as_me:8394: \"$ac_link\"") >&5 8395 (eval $ac_link) 2>&5 8396 ac_status=$? 8397 echo "$as_me:8397: \$? = $ac_status" >&5 8398 (exit $ac_status); } && 8399 { ac_try='test -s conftest$ac_exeext' 8400 { (eval echo "$as_me:8400: \"$ac_try\"") >&5 8401 (eval $ac_try) 2>&5 8402 ac_status=$? 8403 echo "$as_me:8403: \$? = $ac_status" >&5 8404 (exit $ac_status); }; }; then 8405 ac_cv_lib_nsl_gethostbyname=yes 8406else 8407 echo "$as_me: failed program was:" >&5 8408cat conftest.$ac_ext >&5 8409ac_cv_lib_nsl_gethostbyname=no 8410fi 8411rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8412LIBS=$ac_check_lib_save_LIBS 8413fi 8414echo "$as_me:8414: result: $ac_cv_lib_nsl_gethostbyname" >&5 8415echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 8416if test $ac_cv_lib_nsl_gethostbyname = yes; then 8417 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 8418fi 8419 8420 if test $ac_cv_lib_nsl_gethostbyname = no; then 8421 echo "$as_me:8421: checking for gethostbyname in -lbsd" >&5 8422echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 8423if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 8424 echo $ECHO_N "(cached) $ECHO_C" >&6 8425else 8426 ac_check_lib_save_LIBS=$LIBS 8427LIBS="-lbsd $LIBS" 8428cat >conftest.$ac_ext <<_ACEOF 8429#line 8429 "configure" 8430#include "confdefs.h" 8431 8432/* Override any gcc2 internal prototype to avoid an error. */ 8433#ifdef __cplusplus 8434extern "C" 8435#endif 8436/* We use char because int might match the return type of a gcc2 8437 builtin and then its argument prototype would still apply. */ 8438char gethostbyname (); 8439int 8440main () 8441{ 8442gethostbyname (); 8443 ; 8444 return 0; 8445} 8446_ACEOF 8447rm -f conftest.$ac_objext conftest$ac_exeext 8448if { (eval echo "$as_me:8448: \"$ac_link\"") >&5 8449 (eval $ac_link) 2>&5 8450 ac_status=$? 8451 echo "$as_me:8451: \$? = $ac_status" >&5 8452 (exit $ac_status); } && 8453 { ac_try='test -s conftest$ac_exeext' 8454 { (eval echo "$as_me:8454: \"$ac_try\"") >&5 8455 (eval $ac_try) 2>&5 8456 ac_status=$? 8457 echo "$as_me:8457: \$? = $ac_status" >&5 8458 (exit $ac_status); }; }; then 8459 ac_cv_lib_bsd_gethostbyname=yes 8460else 8461 echo "$as_me: failed program was:" >&5 8462cat conftest.$ac_ext >&5 8463ac_cv_lib_bsd_gethostbyname=no 8464fi 8465rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8466LIBS=$ac_check_lib_save_LIBS 8467fi 8468echo "$as_me:8468: result: $ac_cv_lib_bsd_gethostbyname" >&5 8469echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 8470if test $ac_cv_lib_bsd_gethostbyname = yes; then 8471 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 8472fi 8473 8474 fi 8475 fi 8476 8477 # lieder@skyler.mavd.honeywell.com says without -lsocket, 8478 # socket/setsockopt and other routines are undefined under SCO ODT 8479 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 8480 # on later versions), says Simon Leinen: it contains gethostby* 8481 # variants that don't use the nameserver (or something). -lsocket 8482 # must be given before -lnsl if both are needed. We assume that 8483 # if connect needs -lnsl, so does gethostbyname. 8484 echo "$as_me:8484: checking for connect" >&5 8485echo $ECHO_N "checking for connect... $ECHO_C" >&6 8486if test "${ac_cv_func_connect+set}" = set; then 8487 echo $ECHO_N "(cached) $ECHO_C" >&6 8488else 8489 cat >conftest.$ac_ext <<_ACEOF 8490#line 8490 "configure" 8491#include "confdefs.h" 8492/* System header to define __stub macros and hopefully few prototypes, 8493 which can conflict with char connect (); below. */ 8494#include <assert.h> 8495/* Override any gcc2 internal prototype to avoid an error. */ 8496#ifdef __cplusplus 8497extern "C" 8498#endif 8499/* We use char because int might match the return type of a gcc2 8500 builtin and then its argument prototype would still apply. */ 8501char connect (); 8502char (*f) (); 8503 8504int 8505main () 8506{ 8507/* The GNU C library defines this for functions which it implements 8508 to always fail with ENOSYS. Some functions are actually named 8509 something starting with __ and the normal name is an alias. */ 8510#if defined (__stub_connect) || defined (__stub___connect) 8511choke me 8512#else 8513f = connect; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 8514#endif 8515 8516 ; 8517 return 0; 8518} 8519_ACEOF 8520rm -f conftest.$ac_objext conftest$ac_exeext 8521if { (eval echo "$as_me:8521: \"$ac_link\"") >&5 8522 (eval $ac_link) 2>&5 8523 ac_status=$? 8524 echo "$as_me:8524: \$? = $ac_status" >&5 8525 (exit $ac_status); } && 8526 { ac_try='test -s conftest$ac_exeext' 8527 { (eval echo "$as_me:8527: \"$ac_try\"") >&5 8528 (eval $ac_try) 2>&5 8529 ac_status=$? 8530 echo "$as_me:8530: \$? = $ac_status" >&5 8531 (exit $ac_status); }; }; then 8532 ac_cv_func_connect=yes 8533else 8534 echo "$as_me: failed program was:" >&5 8535cat conftest.$ac_ext >&5 8536ac_cv_func_connect=no 8537fi 8538rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8539fi 8540echo "$as_me:8540: result: $ac_cv_func_connect" >&5 8541echo "${ECHO_T}$ac_cv_func_connect" >&6 8542 8543 if test $ac_cv_func_connect = no; then 8544 echo "$as_me:8544: checking for connect in -lsocket" >&5 8545echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 8546if test "${ac_cv_lib_socket_connect+set}" = set; then 8547 echo $ECHO_N "(cached) $ECHO_C" >&6 8548else 8549 ac_check_lib_save_LIBS=$LIBS 8550LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 8551cat >conftest.$ac_ext <<_ACEOF 8552#line 8552 "configure" 8553#include "confdefs.h" 8554 8555/* Override any gcc2 internal prototype to avoid an error. */ 8556#ifdef __cplusplus 8557extern "C" 8558#endif 8559/* We use char because int might match the return type of a gcc2 8560 builtin and then its argument prototype would still apply. */ 8561char connect (); 8562int 8563main () 8564{ 8565connect (); 8566 ; 8567 return 0; 8568} 8569_ACEOF 8570rm -f conftest.$ac_objext conftest$ac_exeext 8571if { (eval echo "$as_me:8571: \"$ac_link\"") >&5 8572 (eval $ac_link) 2>&5 8573 ac_status=$? 8574 echo "$as_me:8574: \$? = $ac_status" >&5 8575 (exit $ac_status); } && 8576 { ac_try='test -s conftest$ac_exeext' 8577 { (eval echo "$as_me:8577: \"$ac_try\"") >&5 8578 (eval $ac_try) 2>&5 8579 ac_status=$? 8580 echo "$as_me:8580: \$? = $ac_status" >&5 8581 (exit $ac_status); }; }; then 8582 ac_cv_lib_socket_connect=yes 8583else 8584 echo "$as_me: failed program was:" >&5 8585cat conftest.$ac_ext >&5 8586ac_cv_lib_socket_connect=no 8587fi 8588rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8589LIBS=$ac_check_lib_save_LIBS 8590fi 8591echo "$as_me:8591: result: $ac_cv_lib_socket_connect" >&5 8592echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 8593if test $ac_cv_lib_socket_connect = yes; then 8594 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 8595fi 8596 8597 fi 8598 8599 # Guillermo Gomez says -lposix is necessary on A/UX. 8600 echo "$as_me:8600: checking for remove" >&5 8601echo $ECHO_N "checking for remove... $ECHO_C" >&6 8602if test "${ac_cv_func_remove+set}" = set; then 8603 echo $ECHO_N "(cached) $ECHO_C" >&6 8604else 8605 cat >conftest.$ac_ext <<_ACEOF 8606#line 8606 "configure" 8607#include "confdefs.h" 8608/* System header to define __stub macros and hopefully few prototypes, 8609 which can conflict with char remove (); below. */ 8610#include <assert.h> 8611/* Override any gcc2 internal prototype to avoid an error. */ 8612#ifdef __cplusplus 8613extern "C" 8614#endif 8615/* We use char because int might match the return type of a gcc2 8616 builtin and then its argument prototype would still apply. */ 8617char remove (); 8618char (*f) (); 8619 8620int 8621main () 8622{ 8623/* The GNU C library defines this for functions which it implements 8624 to always fail with ENOSYS. Some functions are actually named 8625 something starting with __ and the normal name is an alias. */ 8626#if defined (__stub_remove) || defined (__stub___remove) 8627choke me 8628#else 8629f = remove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 8630#endif 8631 8632 ; 8633 return 0; 8634} 8635_ACEOF 8636rm -f conftest.$ac_objext conftest$ac_exeext 8637if { (eval echo "$as_me:8637: \"$ac_link\"") >&5 8638 (eval $ac_link) 2>&5 8639 ac_status=$? 8640 echo "$as_me:8640: \$? = $ac_status" >&5 8641 (exit $ac_status); } && 8642 { ac_try='test -s conftest$ac_exeext' 8643 { (eval echo "$as_me:8643: \"$ac_try\"") >&5 8644 (eval $ac_try) 2>&5 8645 ac_status=$? 8646 echo "$as_me:8646: \$? = $ac_status" >&5 8647 (exit $ac_status); }; }; then 8648 ac_cv_func_remove=yes 8649else 8650 echo "$as_me: failed program was:" >&5 8651cat conftest.$ac_ext >&5 8652ac_cv_func_remove=no 8653fi 8654rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8655fi 8656echo "$as_me:8656: result: $ac_cv_func_remove" >&5 8657echo "${ECHO_T}$ac_cv_func_remove" >&6 8658 8659 if test $ac_cv_func_remove = no; then 8660 echo "$as_me:8660: checking for remove in -lposix" >&5 8661echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 8662if test "${ac_cv_lib_posix_remove+set}" = set; then 8663 echo $ECHO_N "(cached) $ECHO_C" >&6 8664else 8665 ac_check_lib_save_LIBS=$LIBS 8666LIBS="-lposix $LIBS" 8667cat >conftest.$ac_ext <<_ACEOF 8668#line 8668 "configure" 8669#include "confdefs.h" 8670 8671/* Override any gcc2 internal prototype to avoid an error. */ 8672#ifdef __cplusplus 8673extern "C" 8674#endif 8675/* We use char because int might match the return type of a gcc2 8676 builtin and then its argument prototype would still apply. */ 8677char remove (); 8678int 8679main () 8680{ 8681remove (); 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_cv_lib_posix_remove=yes 8699else 8700 echo "$as_me: failed program was:" >&5 8701cat conftest.$ac_ext >&5 8702ac_cv_lib_posix_remove=no 8703fi 8704rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8705LIBS=$ac_check_lib_save_LIBS 8706fi 8707echo "$as_me:8707: result: $ac_cv_lib_posix_remove" >&5 8708echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 8709if test $ac_cv_lib_posix_remove = yes; then 8710 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 8711fi 8712 8713 fi 8714 8715 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 8716 echo "$as_me:8716: checking for shmat" >&5 8717echo $ECHO_N "checking for shmat... $ECHO_C" >&6 8718if test "${ac_cv_func_shmat+set}" = set; then 8719 echo $ECHO_N "(cached) $ECHO_C" >&6 8720else 8721 cat >conftest.$ac_ext <<_ACEOF 8722#line 8722 "configure" 8723#include "confdefs.h" 8724/* System header to define __stub macros and hopefully few prototypes, 8725 which can conflict with char shmat (); below. */ 8726#include <assert.h> 8727/* Override any gcc2 internal prototype to avoid an error. */ 8728#ifdef __cplusplus 8729extern "C" 8730#endif 8731/* We use char because int might match the return type of a gcc2 8732 builtin and then its argument prototype would still apply. */ 8733char shmat (); 8734char (*f) (); 8735 8736int 8737main () 8738{ 8739/* The GNU C library defines this for functions which it implements 8740 to always fail with ENOSYS. Some functions are actually named 8741 something starting with __ and the normal name is an alias. */ 8742#if defined (__stub_shmat) || defined (__stub___shmat) 8743choke me 8744#else 8745f = shmat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 8746#endif 8747 8748 ; 8749 return 0; 8750} 8751_ACEOF 8752rm -f conftest.$ac_objext conftest$ac_exeext 8753if { (eval echo "$as_me:8753: \"$ac_link\"") >&5 8754 (eval $ac_link) 2>&5 8755 ac_status=$? 8756 echo "$as_me:8756: \$? = $ac_status" >&5 8757 (exit $ac_status); } && 8758 { ac_try='test -s conftest$ac_exeext' 8759 { (eval echo "$as_me:8759: \"$ac_try\"") >&5 8760 (eval $ac_try) 2>&5 8761 ac_status=$? 8762 echo "$as_me:8762: \$? = $ac_status" >&5 8763 (exit $ac_status); }; }; then 8764 ac_cv_func_shmat=yes 8765else 8766 echo "$as_me: failed program was:" >&5 8767cat conftest.$ac_ext >&5 8768ac_cv_func_shmat=no 8769fi 8770rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8771fi 8772echo "$as_me:8772: result: $ac_cv_func_shmat" >&5 8773echo "${ECHO_T}$ac_cv_func_shmat" >&6 8774 8775 if test $ac_cv_func_shmat = no; then 8776 echo "$as_me:8776: checking for shmat in -lipc" >&5 8777echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 8778if test "${ac_cv_lib_ipc_shmat+set}" = set; then 8779 echo $ECHO_N "(cached) $ECHO_C" >&6 8780else 8781 ac_check_lib_save_LIBS=$LIBS 8782LIBS="-lipc $LIBS" 8783cat >conftest.$ac_ext <<_ACEOF 8784#line 8784 "configure" 8785#include "confdefs.h" 8786 8787/* Override any gcc2 internal prototype to avoid an error. */ 8788#ifdef __cplusplus 8789extern "C" 8790#endif 8791/* We use char because int might match the return type of a gcc2 8792 builtin and then its argument prototype would still apply. */ 8793char shmat (); 8794int 8795main () 8796{ 8797shmat (); 8798 ; 8799 return 0; 8800} 8801_ACEOF 8802rm -f conftest.$ac_objext conftest$ac_exeext 8803if { (eval echo "$as_me:8803: \"$ac_link\"") >&5 8804 (eval $ac_link) 2>&5 8805 ac_status=$? 8806 echo "$as_me:8806: \$? = $ac_status" >&5 8807 (exit $ac_status); } && 8808 { ac_try='test -s conftest$ac_exeext' 8809 { (eval echo "$as_me:8809: \"$ac_try\"") >&5 8810 (eval $ac_try) 2>&5 8811 ac_status=$? 8812 echo "$as_me:8812: \$? = $ac_status" >&5 8813 (exit $ac_status); }; }; then 8814 ac_cv_lib_ipc_shmat=yes 8815else 8816 echo "$as_me: failed program was:" >&5 8817cat conftest.$ac_ext >&5 8818ac_cv_lib_ipc_shmat=no 8819fi 8820rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8821LIBS=$ac_check_lib_save_LIBS 8822fi 8823echo "$as_me:8823: result: $ac_cv_lib_ipc_shmat" >&5 8824echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 8825if test $ac_cv_lib_ipc_shmat = yes; then 8826 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 8827fi 8828 8829 fi 8830 fi 8831 8832 # Check for libraries that X11R6 Xt/Xaw programs need. 8833 ac_save_LDFLAGS=$LDFLAGS 8834 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 8835 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 8836 # check for ICE first), but we must link in the order -lSM -lICE or 8837 # we get undefined symbols. So assume we have SM if we have ICE. 8838 # These have to be linked with before -lX11, unlike the other 8839 # libraries we check for below, so use a different variable. 8840 # John Interrante, Karl Berry 8841 echo "$as_me:8841: checking for IceConnectionNumber in -lICE" >&5 8842echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 8843if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 8844 echo $ECHO_N "(cached) $ECHO_C" >&6 8845else 8846 ac_check_lib_save_LIBS=$LIBS 8847LIBS="-lICE $X_EXTRA_LIBS $LIBS" 8848cat >conftest.$ac_ext <<_ACEOF 8849#line 8849 "configure" 8850#include "confdefs.h" 8851 8852/* Override any gcc2 internal prototype to avoid an error. */ 8853#ifdef __cplusplus 8854extern "C" 8855#endif 8856/* We use char because int might match the return type of a gcc2 8857 builtin and then its argument prototype would still apply. */ 8858char IceConnectionNumber (); 8859int 8860main () 8861{ 8862IceConnectionNumber (); 8863 ; 8864 return 0; 8865} 8866_ACEOF 8867rm -f conftest.$ac_objext conftest$ac_exeext 8868if { (eval echo "$as_me:8868: \"$ac_link\"") >&5 8869 (eval $ac_link) 2>&5 8870 ac_status=$? 8871 echo "$as_me:8871: \$? = $ac_status" >&5 8872 (exit $ac_status); } && 8873 { ac_try='test -s conftest$ac_exeext' 8874 { (eval echo "$as_me:8874: \"$ac_try\"") >&5 8875 (eval $ac_try) 2>&5 8876 ac_status=$? 8877 echo "$as_me:8877: \$? = $ac_status" >&5 8878 (exit $ac_status); }; }; then 8879 ac_cv_lib_ICE_IceConnectionNumber=yes 8880else 8881 echo "$as_me: failed program was:" >&5 8882cat conftest.$ac_ext >&5 8883ac_cv_lib_ICE_IceConnectionNumber=no 8884fi 8885rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8886LIBS=$ac_check_lib_save_LIBS 8887fi 8888echo "$as_me:8888: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 8889echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 8890if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 8891 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 8892fi 8893 8894 LDFLAGS=$ac_save_LDFLAGS 8895 8896fi 8897 8898echo "$as_me:8898: checking if you want to use pkg-config" >&5 8899echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6 8900 8901# Check whether --with-pkg-config or --without-pkg-config was given. 8902if test "${with_pkg_config+set}" = set; then 8903 withval="$with_pkg_config" 8904 cf_pkg_config=$withval 8905else 8906 cf_pkg_config=yes 8907fi; 8908echo "$as_me:8908: result: $cf_pkg_config" >&5 8909echo "${ECHO_T}$cf_pkg_config" >&6 8910 8911case $cf_pkg_config in 8912(no) 8913 PKG_CONFIG=none 8914 ;; 8915(yes) 8916 8917if test -n "$ac_tool_prefix"; then 8918 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 8919set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 8920echo "$as_me:8920: checking for $ac_word" >&5 8921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8922if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 8923 echo $ECHO_N "(cached) $ECHO_C" >&6 8924else 8925 case $PKG_CONFIG in 8926 [\\/]* | ?:[\\/]*) 8927 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 8928 ;; 8929 *) 8930 ac_save_IFS=$IFS; IFS=$ac_path_separator 8931ac_dummy="$PATH" 8932for ac_dir in $ac_dummy; do 8933 IFS=$ac_save_IFS 8934 test -z "$ac_dir" && ac_dir=. 8935 if $as_executable_p "$ac_dir/$ac_word"; then 8936 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" 8937 echo "$as_me:8937: found $ac_dir/$ac_word" >&5 8938 break 8939fi 8940done 8941 8942 ;; 8943esac 8944fi 8945PKG_CONFIG=$ac_cv_path_PKG_CONFIG 8946 8947if test -n "$PKG_CONFIG"; then 8948 echo "$as_me:8948: result: $PKG_CONFIG" >&5 8949echo "${ECHO_T}$PKG_CONFIG" >&6 8950else 8951 echo "$as_me:8951: result: no" >&5 8952echo "${ECHO_T}no" >&6 8953fi 8954 8955fi 8956if test -z "$ac_cv_path_PKG_CONFIG"; then 8957 ac_pt_PKG_CONFIG=$PKG_CONFIG 8958 # Extract the first word of "pkg-config", so it can be a program name with args. 8959set dummy pkg-config; ac_word=$2 8960echo "$as_me:8960: checking for $ac_word" >&5 8961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8962if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 8963 echo $ECHO_N "(cached) $ECHO_C" >&6 8964else 8965 case $ac_pt_PKG_CONFIG in 8966 [\\/]* | ?:[\\/]*) 8967 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 8968 ;; 8969 *) 8970 ac_save_IFS=$IFS; IFS=$ac_path_separator 8971ac_dummy="$PATH" 8972for ac_dir in $ac_dummy; do 8973 IFS=$ac_save_IFS 8974 test -z "$ac_dir" && ac_dir=. 8975 if $as_executable_p "$ac_dir/$ac_word"; then 8976 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word" 8977 echo "$as_me:8977: found $ac_dir/$ac_word" >&5 8978 break 8979fi 8980done 8981 8982 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none" 8983 ;; 8984esac 8985fi 8986ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 8987 8988if test -n "$ac_pt_PKG_CONFIG"; then 8989 echo "$as_me:8989: result: $ac_pt_PKG_CONFIG" >&5 8990echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 8991else 8992 echo "$as_me:8992: result: no" >&5 8993echo "${ECHO_T}no" >&6 8994fi 8995 8996 PKG_CONFIG=$ac_pt_PKG_CONFIG 8997else 8998 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 8999fi 9000 9001 ;; 9002(*) 9003 PKG_CONFIG=$withval 9004 ;; 9005esac 9006 9007test -z "$PKG_CONFIG" && PKG_CONFIG=none 9008if test "$PKG_CONFIG" != none ; then 9009 9010if test "x$prefix" != xNONE; then 9011 cf_path_syntax="$prefix" 9012else 9013 cf_path_syntax="$ac_default_prefix" 9014fi 9015 9016case ".$PKG_CONFIG" in 9017(.\$\(*\)*|.\'*\'*) 9018 ;; 9019(..|./*|.\\*) 9020 ;; 9021(.[a-zA-Z]:[\\/]*) # OS/2 EMX 9022 ;; 9023(.\${*prefix}*|.\${*dir}*) 9024 eval PKG_CONFIG="$PKG_CONFIG" 9025 case ".$PKG_CONFIG" in 9026 (.NONE/*) 9027 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%` 9028 ;; 9029 esac 9030 ;; 9031(.no|.NONE/*) 9032 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%` 9033 ;; 9034(*) 9035 { { echo "$as_me:9035: error: expected a pathname, not \"$PKG_CONFIG\"" >&5 9036echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;} 9037 { (exit 1); exit 1; }; } 9038 ;; 9039esac 9040 9041elif test "x$cf_pkg_config" != xno ; then 9042 { echo "$as_me:9042: WARNING: pkg-config is not installed" >&5 9043echo "$as_me: WARNING: pkg-config is not installed" >&2;} 9044fi 9045 9046# OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new), and (and 9047# in some cases has installed dummy files in the former, other cases replaced 9048# it with a link to the new location). This complicates the configure script. 9049# Check for that pitfall, and recover using pkg-config 9050# 9051# If none of these are set, the configuration is almost certainly broken. 9052if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}" 9053then 9054 9055if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then 9056 test -n "$verbose" && echo " found package x11" 1>&6 9057 9058echo "${as_me:-configure}:9058: testing found package x11 ..." 1>&5 9059 9060 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`" 9061 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`" 9062 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6 9063 9064echo "${as_me:-configure}:9064: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 9065 9066 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6 9067 9068echo "${as_me:-configure}:9068: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5 9069 9070cf_fix_cppflags=no 9071cf_new_cflags= 9072cf_new_cppflags= 9073cf_new_extra_cppflags= 9074 9075for cf_add_cflags in $cf_pkgconfig_incs 9076do 9077case $cf_fix_cppflags in 9078(no) 9079 case $cf_add_cflags in 9080 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 9081 case $cf_add_cflags in 9082 (-D*) 9083 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 9084 9085 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 9086 && test -z "${cf_tst_cflags}" \ 9087 && cf_fix_cppflags=yes 9088 9089 if test $cf_fix_cppflags = yes ; then 9090 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9091 continue 9092 elif test "${cf_tst_cflags}" = "\"'" ; then 9093 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9094 continue 9095 fi 9096 ;; 9097 esac 9098 case "$CPPFLAGS" in 9099 (*$cf_add_cflags) 9100 ;; 9101 (*) 9102 case $cf_add_cflags in 9103 (-D*) 9104 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 9105 9106CPPFLAGS=`echo "$CPPFLAGS" | \ 9107 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 9108 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 9109 9110 ;; 9111 esac 9112 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 9113 ;; 9114 esac 9115 ;; 9116 (*) 9117 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 9118 ;; 9119 esac 9120 ;; 9121(yes) 9122 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9123 9124 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 9125 9126 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 9127 && test -z "${cf_tst_cflags}" \ 9128 && cf_fix_cppflags=no 9129 ;; 9130esac 9131done 9132 9133if test -n "$cf_new_cflags" ; then 9134 9135 CFLAGS="$CFLAGS $cf_new_cflags" 9136fi 9137 9138if test -n "$cf_new_cppflags" ; then 9139 9140 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 9141fi 9142 9143if test -n "$cf_new_extra_cppflags" ; then 9144 9145 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 9146fi 9147 9148cf_add_libs="$cf_pkgconfig_libs" 9149# Filter out duplicates - this happens with badly-designed ".pc" files... 9150for cf_add_1lib in $LIBS 9151do 9152 for cf_add_2lib in $cf_add_libs 9153 do 9154 if test "x$cf_add_1lib" = "x$cf_add_2lib" 9155 then 9156 cf_add_1lib= 9157 break 9158 fi 9159 done 9160 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 9161done 9162LIBS="$cf_add_libs" 9163 9164 : 9165else 9166 cf_pkgconfig_incs= 9167 cf_pkgconfig_libs= 9168 { echo "$as_me:9168: WARNING: unable to find X11 library" >&5 9169echo "$as_me: WARNING: unable to find X11 library" >&2;} 9170fi 9171 9172if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then 9173 test -n "$verbose" && echo " found package ice" 1>&6 9174 9175echo "${as_me:-configure}:9175: testing found package ice ..." 1>&5 9176 9177 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`" 9178 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`" 9179 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6 9180 9181echo "${as_me:-configure}:9181: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5 9182 9183 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6 9184 9185echo "${as_me:-configure}:9185: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5 9186 9187cf_fix_cppflags=no 9188cf_new_cflags= 9189cf_new_cppflags= 9190cf_new_extra_cppflags= 9191 9192for cf_add_cflags in $cf_pkgconfig_incs 9193do 9194case $cf_fix_cppflags in 9195(no) 9196 case $cf_add_cflags in 9197 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 9198 case $cf_add_cflags in 9199 (-D*) 9200 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 9201 9202 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 9203 && test -z "${cf_tst_cflags}" \ 9204 && cf_fix_cppflags=yes 9205 9206 if test $cf_fix_cppflags = yes ; then 9207 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9208 continue 9209 elif test "${cf_tst_cflags}" = "\"'" ; then 9210 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9211 continue 9212 fi 9213 ;; 9214 esac 9215 case "$CPPFLAGS" in 9216 (*$cf_add_cflags) 9217 ;; 9218 (*) 9219 case $cf_add_cflags in 9220 (-D*) 9221 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 9222 9223CPPFLAGS=`echo "$CPPFLAGS" | \ 9224 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 9225 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 9226 9227 ;; 9228 esac 9229 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 9230 ;; 9231 esac 9232 ;; 9233 (*) 9234 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 9235 ;; 9236 esac 9237 ;; 9238(yes) 9239 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9240 9241 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 9242 9243 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 9244 && test -z "${cf_tst_cflags}" \ 9245 && cf_fix_cppflags=no 9246 ;; 9247esac 9248done 9249 9250if test -n "$cf_new_cflags" ; then 9251 9252 CFLAGS="$CFLAGS $cf_new_cflags" 9253fi 9254 9255if test -n "$cf_new_cppflags" ; then 9256 9257 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 9258fi 9259 9260if test -n "$cf_new_extra_cppflags" ; then 9261 9262 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 9263fi 9264 9265cf_add_libs="$cf_pkgconfig_libs" 9266# Filter out duplicates - this happens with badly-designed ".pc" files... 9267for cf_add_1lib in $LIBS 9268do 9269 for cf_add_2lib in $cf_add_libs 9270 do 9271 if test "x$cf_add_1lib" = "x$cf_add_2lib" 9272 then 9273 cf_add_1lib= 9274 break 9275 fi 9276 done 9277 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 9278done 9279LIBS="$cf_add_libs" 9280 9281 : 9282else 9283 cf_pkgconfig_incs= 9284 cf_pkgconfig_libs= 9285 { echo "$as_me:9285: WARNING: unable to find ICE library" >&5 9286echo "$as_me: WARNING: unable to find ICE library" >&2;} 9287fi 9288 9289if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then 9290 test -n "$verbose" && echo " found package sm" 1>&6 9291 9292echo "${as_me:-configure}:9292: testing found package sm ..." 1>&5 9293 9294 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`" 9295 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`" 9296 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6 9297 9298echo "${as_me:-configure}:9298: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5 9299 9300 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6 9301 9302echo "${as_me:-configure}:9302: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5 9303 9304cf_fix_cppflags=no 9305cf_new_cflags= 9306cf_new_cppflags= 9307cf_new_extra_cppflags= 9308 9309for cf_add_cflags in $cf_pkgconfig_incs 9310do 9311case $cf_fix_cppflags in 9312(no) 9313 case $cf_add_cflags in 9314 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 9315 case $cf_add_cflags in 9316 (-D*) 9317 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 9318 9319 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 9320 && test -z "${cf_tst_cflags}" \ 9321 && cf_fix_cppflags=yes 9322 9323 if test $cf_fix_cppflags = yes ; then 9324 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9325 continue 9326 elif test "${cf_tst_cflags}" = "\"'" ; then 9327 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9328 continue 9329 fi 9330 ;; 9331 esac 9332 case "$CPPFLAGS" in 9333 (*$cf_add_cflags) 9334 ;; 9335 (*) 9336 case $cf_add_cflags in 9337 (-D*) 9338 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 9339 9340CPPFLAGS=`echo "$CPPFLAGS" | \ 9341 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 9342 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 9343 9344 ;; 9345 esac 9346 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 9347 ;; 9348 esac 9349 ;; 9350 (*) 9351 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 9352 ;; 9353 esac 9354 ;; 9355(yes) 9356 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9357 9358 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 9359 9360 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 9361 && test -z "${cf_tst_cflags}" \ 9362 && cf_fix_cppflags=no 9363 ;; 9364esac 9365done 9366 9367if test -n "$cf_new_cflags" ; then 9368 9369 CFLAGS="$CFLAGS $cf_new_cflags" 9370fi 9371 9372if test -n "$cf_new_cppflags" ; then 9373 9374 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 9375fi 9376 9377if test -n "$cf_new_extra_cppflags" ; then 9378 9379 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 9380fi 9381 9382cf_add_libs="$cf_pkgconfig_libs" 9383# Filter out duplicates - this happens with badly-designed ".pc" files... 9384for cf_add_1lib in $LIBS 9385do 9386 for cf_add_2lib in $cf_add_libs 9387 do 9388 if test "x$cf_add_1lib" = "x$cf_add_2lib" 9389 then 9390 cf_add_1lib= 9391 break 9392 fi 9393 done 9394 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 9395done 9396LIBS="$cf_add_libs" 9397 9398 : 9399else 9400 cf_pkgconfig_incs= 9401 cf_pkgconfig_libs= 9402 { echo "$as_me:9402: WARNING: unable to find SM library" >&5 9403echo "$as_me: WARNING: unable to find SM library" >&2;} 9404fi 9405 9406if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then 9407 test -n "$verbose" && echo " found package xt" 1>&6 9408 9409echo "${as_me:-configure}:9409: testing found package xt ..." 1>&5 9410 9411 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`" 9412 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`" 9413 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6 9414 9415echo "${as_me:-configure}:9415: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5 9416 9417 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6 9418 9419echo "${as_me:-configure}:9419: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5 9420 9421cf_fix_cppflags=no 9422cf_new_cflags= 9423cf_new_cppflags= 9424cf_new_extra_cppflags= 9425 9426for cf_add_cflags in $cf_pkgconfig_incs 9427do 9428case $cf_fix_cppflags in 9429(no) 9430 case $cf_add_cflags in 9431 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 9432 case $cf_add_cflags in 9433 (-D*) 9434 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 9435 9436 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 9437 && test -z "${cf_tst_cflags}" \ 9438 && cf_fix_cppflags=yes 9439 9440 if test $cf_fix_cppflags = yes ; then 9441 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9442 continue 9443 elif test "${cf_tst_cflags}" = "\"'" ; then 9444 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9445 continue 9446 fi 9447 ;; 9448 esac 9449 case "$CPPFLAGS" in 9450 (*$cf_add_cflags) 9451 ;; 9452 (*) 9453 case $cf_add_cflags in 9454 (-D*) 9455 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 9456 9457CPPFLAGS=`echo "$CPPFLAGS" | \ 9458 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 9459 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 9460 9461 ;; 9462 esac 9463 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 9464 ;; 9465 esac 9466 ;; 9467 (*) 9468 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 9469 ;; 9470 esac 9471 ;; 9472(yes) 9473 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9474 9475 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 9476 9477 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 9478 && test -z "${cf_tst_cflags}" \ 9479 && cf_fix_cppflags=no 9480 ;; 9481esac 9482done 9483 9484if test -n "$cf_new_cflags" ; then 9485 9486 CFLAGS="$CFLAGS $cf_new_cflags" 9487fi 9488 9489if test -n "$cf_new_cppflags" ; then 9490 9491 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 9492fi 9493 9494if test -n "$cf_new_extra_cppflags" ; then 9495 9496 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 9497fi 9498 9499cf_add_libs="$cf_pkgconfig_libs" 9500# Filter out duplicates - this happens with badly-designed ".pc" files... 9501for cf_add_1lib in $LIBS 9502do 9503 for cf_add_2lib in $cf_add_libs 9504 do 9505 if test "x$cf_add_1lib" = "x$cf_add_2lib" 9506 then 9507 cf_add_1lib= 9508 break 9509 fi 9510 done 9511 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 9512done 9513LIBS="$cf_add_libs" 9514 9515 : 9516else 9517 cf_pkgconfig_incs= 9518 cf_pkgconfig_libs= 9519 { echo "$as_me:9519: WARNING: unable to find Xt library" >&5 9520echo "$as_me: WARNING: unable to find Xt library" >&2;} 9521fi 9522 9523fi 9524 9525cf_have_X_LIBS=no 9526 9527if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then 9528 test -n "$verbose" && echo " found package xt" 1>&6 9529 9530echo "${as_me:-configure}:9530: testing found package xt ..." 1>&5 9531 9532 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`" 9533 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`" 9534 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6 9535 9536echo "${as_me:-configure}:9536: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5 9537 9538 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6 9539 9540echo "${as_me:-configure}:9540: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5 9541 9542cf_fix_cppflags=no 9543cf_new_cflags= 9544cf_new_cppflags= 9545cf_new_extra_cppflags= 9546 9547for cf_add_cflags in $cf_pkgconfig_incs 9548do 9549case $cf_fix_cppflags in 9550(no) 9551 case $cf_add_cflags in 9552 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 9553 case $cf_add_cflags in 9554 (-D*) 9555 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 9556 9557 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 9558 && test -z "${cf_tst_cflags}" \ 9559 && cf_fix_cppflags=yes 9560 9561 if test $cf_fix_cppflags = yes ; then 9562 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9563 continue 9564 elif test "${cf_tst_cflags}" = "\"'" ; then 9565 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9566 continue 9567 fi 9568 ;; 9569 esac 9570 case "$CPPFLAGS" in 9571 (*$cf_add_cflags) 9572 ;; 9573 (*) 9574 case $cf_add_cflags in 9575 (-D*) 9576 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 9577 9578CPPFLAGS=`echo "$CPPFLAGS" | \ 9579 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 9580 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 9581 9582 ;; 9583 esac 9584 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 9585 ;; 9586 esac 9587 ;; 9588 (*) 9589 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 9590 ;; 9591 esac 9592 ;; 9593(yes) 9594 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9595 9596 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 9597 9598 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 9599 && test -z "${cf_tst_cflags}" \ 9600 && cf_fix_cppflags=no 9601 ;; 9602esac 9603done 9604 9605if test -n "$cf_new_cflags" ; then 9606 9607 CFLAGS="$CFLAGS $cf_new_cflags" 9608fi 9609 9610if test -n "$cf_new_cppflags" ; then 9611 9612 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 9613fi 9614 9615if test -n "$cf_new_extra_cppflags" ; then 9616 9617 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 9618fi 9619 9620cf_add_libs="$cf_pkgconfig_libs" 9621# Filter out duplicates - this happens with badly-designed ".pc" files... 9622for cf_add_1lib in $LIBS 9623do 9624 for cf_add_2lib in $cf_add_libs 9625 do 9626 if test "x$cf_add_1lib" = "x$cf_add_2lib" 9627 then 9628 cf_add_1lib= 9629 break 9630 fi 9631 done 9632 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 9633done 9634LIBS="$cf_add_libs" 9635 9636 case "x$LIBS" in 9637 (*-lX11*) 9638 ;; 9639 (*) 9640# we have an "xt" package, but it may omit Xt's dependency on X11 9641echo "$as_me:9641: checking for usable X dependency" >&5 9642echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6 9643if test "${cf_cv_xt_x11_compat+set}" = set; then 9644 echo $ECHO_N "(cached) $ECHO_C" >&6 9645else 9646 9647cat >conftest.$ac_ext <<_ACEOF 9648#line 9648 "configure" 9649#include "confdefs.h" 9650 9651#include <X11/Xlib.h> 9652 9653int 9654main () 9655{ 9656 9657 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0); 9658 int rc2 = XClearWindow((Display*) 0, (Window) 0); 9659 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0); 9660 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0); 9661 9662 ; 9663 return 0; 9664} 9665_ACEOF 9666rm -f conftest.$ac_objext conftest$ac_exeext 9667if { (eval echo "$as_me:9667: \"$ac_link\"") >&5 9668 (eval $ac_link) 2>&5 9669 ac_status=$? 9670 echo "$as_me:9670: \$? = $ac_status" >&5 9671 (exit $ac_status); } && 9672 { ac_try='test -s conftest$ac_exeext' 9673 { (eval echo "$as_me:9673: \"$ac_try\"") >&5 9674 (eval $ac_try) 2>&5 9675 ac_status=$? 9676 echo "$as_me:9676: \$? = $ac_status" >&5 9677 (exit $ac_status); }; }; then 9678 cf_cv_xt_x11_compat=yes 9679else 9680 echo "$as_me: failed program was:" >&5 9681cat conftest.$ac_ext >&5 9682cf_cv_xt_x11_compat=no 9683fi 9684rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9685fi 9686echo "$as_me:9686: result: $cf_cv_xt_x11_compat" >&5 9687echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6 9688 if test "$cf_cv_xt_x11_compat" = no 9689 then 9690 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6 9691 9692echo "${as_me:-configure}:9692: testing work around broken X11 dependency ..." 1>&5 9693 9694 # 2010/11/19 - good enough until a working Xt on Xcb is delivered. 9695 9696if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then 9697 test -n "$verbose" && echo " found package x11" 1>&6 9698 9699echo "${as_me:-configure}:9699: testing found package x11 ..." 1>&5 9700 9701 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`" 9702 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`" 9703 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6 9704 9705echo "${as_me:-configure}:9705: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 9706 9707 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6 9708 9709echo "${as_me:-configure}:9709: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5 9710 9711cf_fix_cppflags=no 9712cf_new_cflags= 9713cf_new_cppflags= 9714cf_new_extra_cppflags= 9715 9716for cf_add_cflags in $cf_pkgconfig_incs 9717do 9718case $cf_fix_cppflags in 9719(no) 9720 case $cf_add_cflags in 9721 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 9722 case $cf_add_cflags in 9723 (-D*) 9724 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 9725 9726 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 9727 && test -z "${cf_tst_cflags}" \ 9728 && cf_fix_cppflags=yes 9729 9730 if test $cf_fix_cppflags = yes ; then 9731 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9732 continue 9733 elif test "${cf_tst_cflags}" = "\"'" ; then 9734 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9735 continue 9736 fi 9737 ;; 9738 esac 9739 case "$CPPFLAGS" in 9740 (*$cf_add_cflags) 9741 ;; 9742 (*) 9743 case $cf_add_cflags in 9744 (-D*) 9745 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 9746 9747CPPFLAGS=`echo "$CPPFLAGS" | \ 9748 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 9749 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 9750 9751 ;; 9752 esac 9753 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 9754 ;; 9755 esac 9756 ;; 9757 (*) 9758 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 9759 ;; 9760 esac 9761 ;; 9762(yes) 9763 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9764 9765 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 9766 9767 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 9768 && test -z "${cf_tst_cflags}" \ 9769 && cf_fix_cppflags=no 9770 ;; 9771esac 9772done 9773 9774if test -n "$cf_new_cflags" ; then 9775 9776 CFLAGS="$CFLAGS $cf_new_cflags" 9777fi 9778 9779if test -n "$cf_new_cppflags" ; then 9780 9781 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 9782fi 9783 9784if test -n "$cf_new_extra_cppflags" ; then 9785 9786 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 9787fi 9788 9789cf_add_libs="$cf_pkgconfig_libs" 9790# Filter out duplicates - this happens with badly-designed ".pc" files... 9791for cf_add_1lib in $LIBS 9792do 9793 for cf_add_2lib in $cf_add_libs 9794 do 9795 if test "x$cf_add_1lib" = "x$cf_add_2lib" 9796 then 9797 cf_add_1lib= 9798 break 9799 fi 9800 done 9801 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 9802done 9803LIBS="$cf_add_libs" 9804 9805 : 9806else 9807 cf_pkgconfig_incs= 9808 cf_pkgconfig_libs= 9809 9810test -n "$verbose" && echo " ...before $LIBS" 1>&6 9811 9812echo "${as_me:-configure}:9812: testing ...before $LIBS ..." 1>&5 9813 9814LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'` 9815test -n "$verbose" && echo " ...after $LIBS" 1>&6 9816 9817echo "${as_me:-configure}:9817: testing ...after $LIBS ..." 1>&5 9818 9819fi 9820 9821 fi 9822 ;; 9823 esac 9824 9825echo "$as_me:9825: checking for usable X Toolkit package" >&5 9826echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6 9827if test "${cf_cv_xt_ice_compat+set}" = set; then 9828 echo $ECHO_N "(cached) $ECHO_C" >&6 9829else 9830 9831cat >conftest.$ac_ext <<_ACEOF 9832#line 9832 "configure" 9833#include "confdefs.h" 9834 9835#include <X11/Shell.h> 9836 9837int 9838main () 9839{ 9840int num = IceConnectionNumber(0) 9841 9842 ; 9843 return 0; 9844} 9845_ACEOF 9846rm -f conftest.$ac_objext conftest$ac_exeext 9847if { (eval echo "$as_me:9847: \"$ac_link\"") >&5 9848 (eval $ac_link) 2>&5 9849 ac_status=$? 9850 echo "$as_me:9850: \$? = $ac_status" >&5 9851 (exit $ac_status); } && 9852 { ac_try='test -s conftest$ac_exeext' 9853 { (eval echo "$as_me:9853: \"$ac_try\"") >&5 9854 (eval $ac_try) 2>&5 9855 ac_status=$? 9856 echo "$as_me:9856: \$? = $ac_status" >&5 9857 (exit $ac_status); }; }; then 9858 cf_cv_xt_ice_compat=yes 9859else 9860 echo "$as_me: failed program was:" >&5 9861cat conftest.$ac_ext >&5 9862cf_cv_xt_ice_compat=no 9863fi 9864rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9865fi 9866echo "$as_me:9866: result: $cf_cv_xt_ice_compat" >&5 9867echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6 9868 9869 if test "$cf_cv_xt_ice_compat" = no 9870 then 9871 # workaround for broken ".pc" files used for X Toolkit. 9872 case "x$X_PRE_LIBS" in 9873 (*-lICE*) 9874 case "x$LIBS" in 9875 (*-lICE*) 9876 ;; 9877 (*) 9878 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6 9879 9880echo "${as_me:-configure}:9880: testing work around broken ICE dependency ..." 1>&5 9881 9882if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then 9883 test -n "$verbose" && echo " found package ice" 1>&6 9884 9885echo "${as_me:-configure}:9885: testing found package ice ..." 1>&5 9886 9887 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`" 9888 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`" 9889 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6 9890 9891echo "${as_me:-configure}:9891: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5 9892 9893 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6 9894 9895echo "${as_me:-configure}:9895: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5 9896 9897cf_fix_cppflags=no 9898cf_new_cflags= 9899cf_new_cppflags= 9900cf_new_extra_cppflags= 9901 9902for cf_add_cflags in $cf_pkgconfig_incs 9903do 9904case $cf_fix_cppflags in 9905(no) 9906 case $cf_add_cflags in 9907 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 9908 case $cf_add_cflags in 9909 (-D*) 9910 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 9911 9912 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 9913 && test -z "${cf_tst_cflags}" \ 9914 && cf_fix_cppflags=yes 9915 9916 if test $cf_fix_cppflags = yes ; then 9917 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9918 continue 9919 elif test "${cf_tst_cflags}" = "\"'" ; then 9920 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9921 continue 9922 fi 9923 ;; 9924 esac 9925 case "$CPPFLAGS" in 9926 (*$cf_add_cflags) 9927 ;; 9928 (*) 9929 case $cf_add_cflags in 9930 (-D*) 9931 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 9932 9933CPPFLAGS=`echo "$CPPFLAGS" | \ 9934 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 9935 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 9936 9937 ;; 9938 esac 9939 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 9940 ;; 9941 esac 9942 ;; 9943 (*) 9944 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 9945 ;; 9946 esac 9947 ;; 9948(yes) 9949 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 9950 9951 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 9952 9953 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 9954 && test -z "${cf_tst_cflags}" \ 9955 && cf_fix_cppflags=no 9956 ;; 9957esac 9958done 9959 9960if test -n "$cf_new_cflags" ; then 9961 9962 CFLAGS="$CFLAGS $cf_new_cflags" 9963fi 9964 9965if test -n "$cf_new_cppflags" ; then 9966 9967 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 9968fi 9969 9970if test -n "$cf_new_extra_cppflags" ; then 9971 9972 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 9973fi 9974 9975cf_add_libs="$cf_pkgconfig_libs" 9976# Filter out duplicates - this happens with badly-designed ".pc" files... 9977for cf_add_1lib in $LIBS 9978do 9979 for cf_add_2lib in $cf_add_libs 9980 do 9981 if test "x$cf_add_1lib" = "x$cf_add_2lib" 9982 then 9983 cf_add_1lib= 9984 break 9985 fi 9986 done 9987 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 9988done 9989LIBS="$cf_add_libs" 9990 9991if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then 9992 test -n "$verbose" && echo " found package sm" 1>&6 9993 9994echo "${as_me:-configure}:9994: testing found package sm ..." 1>&5 9995 9996 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`" 9997 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`" 9998 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6 9999 10000echo "${as_me:-configure}:10000: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5 10001 10002 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6 10003 10004echo "${as_me:-configure}:10004: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5 10005 10006cf_fix_cppflags=no 10007cf_new_cflags= 10008cf_new_cppflags= 10009cf_new_extra_cppflags= 10010 10011for cf_add_cflags in $cf_pkgconfig_incs 10012do 10013case $cf_fix_cppflags in 10014(no) 10015 case $cf_add_cflags in 10016 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 10017 case $cf_add_cflags in 10018 (-D*) 10019 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 10020 10021 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10022 && test -z "${cf_tst_cflags}" \ 10023 && cf_fix_cppflags=yes 10024 10025 if test $cf_fix_cppflags = yes ; then 10026 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10027 continue 10028 elif test "${cf_tst_cflags}" = "\"'" ; then 10029 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10030 continue 10031 fi 10032 ;; 10033 esac 10034 case "$CPPFLAGS" in 10035 (*$cf_add_cflags) 10036 ;; 10037 (*) 10038 case $cf_add_cflags in 10039 (-D*) 10040 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 10041 10042CPPFLAGS=`echo "$CPPFLAGS" | \ 10043 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 10044 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 10045 10046 ;; 10047 esac 10048 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 10049 ;; 10050 esac 10051 ;; 10052 (*) 10053 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 10054 ;; 10055 esac 10056 ;; 10057(yes) 10058 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10059 10060 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 10061 10062 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10063 && test -z "${cf_tst_cflags}" \ 10064 && cf_fix_cppflags=no 10065 ;; 10066esac 10067done 10068 10069if test -n "$cf_new_cflags" ; then 10070 10071 CFLAGS="$CFLAGS $cf_new_cflags" 10072fi 10073 10074if test -n "$cf_new_cppflags" ; then 10075 10076 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 10077fi 10078 10079if test -n "$cf_new_extra_cppflags" ; then 10080 10081 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 10082fi 10083 10084cf_add_libs="$cf_pkgconfig_libs" 10085# Filter out duplicates - this happens with badly-designed ".pc" files... 10086for cf_add_1lib in $LIBS 10087do 10088 for cf_add_2lib in $cf_add_libs 10089 do 10090 if test "x$cf_add_1lib" = "x$cf_add_2lib" 10091 then 10092 cf_add_1lib= 10093 break 10094 fi 10095 done 10096 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 10097done 10098LIBS="$cf_add_libs" 10099 10100 : 10101else 10102 cf_pkgconfig_incs= 10103 cf_pkgconfig_libs= 10104 : 10105fi 10106 10107else 10108 cf_pkgconfig_incs= 10109 cf_pkgconfig_libs= 10110 10111test -n "$verbose" && echo " ...before $LIBS" 1>&6 10112 10113echo "${as_me:-configure}:10113: testing ...before $LIBS ..." 1>&5 10114 10115LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'` 10116test -n "$verbose" && echo " ...after $LIBS" 1>&6 10117 10118echo "${as_me:-configure}:10118: testing ...after $LIBS ..." 1>&5 10119 10120fi 10121 10122 ;; 10123 esac 10124 ;; 10125 esac 10126 fi 10127 10128 cf_have_X_LIBS=yes 10129 10130else 10131 cf_pkgconfig_incs= 10132 cf_pkgconfig_libs= 10133 10134 LDFLAGS="$X_LIBS $LDFLAGS" 10135 10136test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6 10137 10138echo "${as_me:-configure}:10138: testing checking additions to CFLAGS ..." 1>&5 10139 10140cf_check_cflags="$CFLAGS" 10141cf_check_cppflags="$CPPFLAGS" 10142 10143cf_fix_cppflags=no 10144cf_new_cflags= 10145cf_new_cppflags= 10146cf_new_extra_cppflags= 10147 10148for cf_add_cflags in $X_CFLAGS 10149do 10150case $cf_fix_cppflags in 10151(no) 10152 case $cf_add_cflags in 10153 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 10154 case $cf_add_cflags in 10155 (-D*) 10156 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 10157 10158 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10159 && test -z "${cf_tst_cflags}" \ 10160 && cf_fix_cppflags=yes 10161 10162 if test $cf_fix_cppflags = yes ; then 10163 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10164 continue 10165 elif test "${cf_tst_cflags}" = "\"'" ; then 10166 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10167 continue 10168 fi 10169 ;; 10170 esac 10171 case "$CPPFLAGS" in 10172 (*$cf_add_cflags) 10173 ;; 10174 (*) 10175 case $cf_add_cflags in 10176 (-D*) 10177 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 10178 10179CPPFLAGS=`echo "$CPPFLAGS" | \ 10180 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 10181 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 10182 10183 ;; 10184 esac 10185 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 10186 ;; 10187 esac 10188 ;; 10189 (*) 10190 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 10191 ;; 10192 esac 10193 ;; 10194(yes) 10195 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10196 10197 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 10198 10199 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10200 && test -z "${cf_tst_cflags}" \ 10201 && cf_fix_cppflags=no 10202 ;; 10203esac 10204done 10205 10206if test -n "$cf_new_cflags" ; then 10207 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 10208 10209echo "${as_me:-configure}:10209: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 10210 10211 CFLAGS="$CFLAGS $cf_new_cflags" 10212fi 10213 10214if test -n "$cf_new_cppflags" ; then 10215 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 10216 10217echo "${as_me:-configure}:10217: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 10218 10219 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 10220fi 10221 10222if test -n "$cf_new_extra_cppflags" ; then 10223 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6 10224 10225echo "${as_me:-configure}:10225: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5 10226 10227 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 10228fi 10229 10230if test "x$cf_check_cflags" != "x$CFLAGS" ; then 10231cat >conftest.$ac_ext <<_ACEOF 10232#line 10232 "configure" 10233#include "confdefs.h" 10234#include <stdio.h> 10235int 10236main () 10237{ 10238printf("Hello world"); 10239 ; 10240 return 0; 10241} 10242_ACEOF 10243rm -f conftest.$ac_objext conftest$ac_exeext 10244if { (eval echo "$as_me:10244: \"$ac_link\"") >&5 10245 (eval $ac_link) 2>&5 10246 ac_status=$? 10247 echo "$as_me:10247: \$? = $ac_status" >&5 10248 (exit $ac_status); } && 10249 { ac_try='test -s conftest$ac_exeext' 10250 { (eval echo "$as_me:10250: \"$ac_try\"") >&5 10251 (eval $ac_try) 2>&5 10252 ac_status=$? 10253 echo "$as_me:10253: \$? = $ac_status" >&5 10254 (exit $ac_status); }; }; then 10255 : 10256else 10257 echo "$as_me: failed program was:" >&5 10258cat conftest.$ac_ext >&5 10259test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6 10260 10261echo "${as_me:-configure}:10261: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5 10262 10263 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then 10264 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6 10265 10266echo "${as_me:-configure}:10266: testing but keeping change to \$CPPFLAGS ..." 1>&5 10267 10268 fi 10269 CFLAGS="$cf_check_flags" 10270fi 10271rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10272fi 10273 10274 echo "$as_me:10274: checking for XOpenDisplay" >&5 10275echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6 10276if test "${ac_cv_func_XOpenDisplay+set}" = set; then 10277 echo $ECHO_N "(cached) $ECHO_C" >&6 10278else 10279 cat >conftest.$ac_ext <<_ACEOF 10280#line 10280 "configure" 10281#include "confdefs.h" 10282/* System header to define __stub macros and hopefully few prototypes, 10283 which can conflict with char XOpenDisplay (); below. */ 10284#include <assert.h> 10285/* Override any gcc2 internal prototype to avoid an error. */ 10286#ifdef __cplusplus 10287extern "C" 10288#endif 10289/* We use char because int might match the return type of a gcc2 10290 builtin and then its argument prototype would still apply. */ 10291char XOpenDisplay (); 10292char (*f) (); 10293 10294int 10295main () 10296{ 10297/* The GNU C library defines this for functions which it implements 10298 to always fail with ENOSYS. Some functions are actually named 10299 something starting with __ and the normal name is an alias. */ 10300#if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay) 10301choke me 10302#else 10303f = XOpenDisplay; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 10304#endif 10305 10306 ; 10307 return 0; 10308} 10309_ACEOF 10310rm -f conftest.$ac_objext conftest$ac_exeext 10311if { (eval echo "$as_me:10311: \"$ac_link\"") >&5 10312 (eval $ac_link) 2>&5 10313 ac_status=$? 10314 echo "$as_me:10314: \$? = $ac_status" >&5 10315 (exit $ac_status); } && 10316 { ac_try='test -s conftest$ac_exeext' 10317 { (eval echo "$as_me:10317: \"$ac_try\"") >&5 10318 (eval $ac_try) 2>&5 10319 ac_status=$? 10320 echo "$as_me:10320: \$? = $ac_status" >&5 10321 (exit $ac_status); }; }; then 10322 ac_cv_func_XOpenDisplay=yes 10323else 10324 echo "$as_me: failed program was:" >&5 10325cat conftest.$ac_ext >&5 10326ac_cv_func_XOpenDisplay=no 10327fi 10328rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10329fi 10330echo "$as_me:10330: result: $ac_cv_func_XOpenDisplay" >&5 10331echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6 10332if test $ac_cv_func_XOpenDisplay = yes; then 10333 : 10334else 10335 10336 echo "$as_me:10336: checking for XOpenDisplay in -lX11" >&5 10337echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6 10338if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then 10339 echo $ECHO_N "(cached) $ECHO_C" >&6 10340else 10341 ac_check_lib_save_LIBS=$LIBS 10342LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS" 10343cat >conftest.$ac_ext <<_ACEOF 10344#line 10344 "configure" 10345#include "confdefs.h" 10346 10347/* Override any gcc2 internal prototype to avoid an error. */ 10348#ifdef __cplusplus 10349extern "C" 10350#endif 10351/* We use char because int might match the return type of a gcc2 10352 builtin and then its argument prototype would still apply. */ 10353char XOpenDisplay (); 10354int 10355main () 10356{ 10357XOpenDisplay (); 10358 ; 10359 return 0; 10360} 10361_ACEOF 10362rm -f conftest.$ac_objext conftest$ac_exeext 10363if { (eval echo "$as_me:10363: \"$ac_link\"") >&5 10364 (eval $ac_link) 2>&5 10365 ac_status=$? 10366 echo "$as_me:10366: \$? = $ac_status" >&5 10367 (exit $ac_status); } && 10368 { ac_try='test -s conftest$ac_exeext' 10369 { (eval echo "$as_me:10369: \"$ac_try\"") >&5 10370 (eval $ac_try) 2>&5 10371 ac_status=$? 10372 echo "$as_me:10372: \$? = $ac_status" >&5 10373 (exit $ac_status); }; }; then 10374 ac_cv_lib_X11_XOpenDisplay=yes 10375else 10376 echo "$as_me: failed program was:" >&5 10377cat conftest.$ac_ext >&5 10378ac_cv_lib_X11_XOpenDisplay=no 10379fi 10380rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10381LIBS=$ac_check_lib_save_LIBS 10382fi 10383echo "$as_me:10383: result: $ac_cv_lib_X11_XOpenDisplay" >&5 10384echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6 10385if test $ac_cv_lib_X11_XOpenDisplay = yes; then 10386 10387cf_add_libs="-lX11" 10388# Filter out duplicates - this happens with badly-designed ".pc" files... 10389for cf_add_1lib in $LIBS 10390do 10391 for cf_add_2lib in $cf_add_libs 10392 do 10393 if test "x$cf_add_1lib" = "x$cf_add_2lib" 10394 then 10395 cf_add_1lib= 10396 break 10397 fi 10398 done 10399 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 10400done 10401LIBS="$cf_add_libs" 10402 10403fi 10404 10405fi 10406 10407 echo "$as_me:10407: checking for XtAppInitialize" >&5 10408echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6 10409if test "${ac_cv_func_XtAppInitialize+set}" = set; then 10410 echo $ECHO_N "(cached) $ECHO_C" >&6 10411else 10412 cat >conftest.$ac_ext <<_ACEOF 10413#line 10413 "configure" 10414#include "confdefs.h" 10415/* System header to define __stub macros and hopefully few prototypes, 10416 which can conflict with char XtAppInitialize (); below. */ 10417#include <assert.h> 10418/* Override any gcc2 internal prototype to avoid an error. */ 10419#ifdef __cplusplus 10420extern "C" 10421#endif 10422/* We use char because int might match the return type of a gcc2 10423 builtin and then its argument prototype would still apply. */ 10424char XtAppInitialize (); 10425char (*f) (); 10426 10427int 10428main () 10429{ 10430/* The GNU C library defines this for functions which it implements 10431 to always fail with ENOSYS. Some functions are actually named 10432 something starting with __ and the normal name is an alias. */ 10433#if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize) 10434choke me 10435#else 10436f = XtAppInitialize; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 10437#endif 10438 10439 ; 10440 return 0; 10441} 10442_ACEOF 10443rm -f conftest.$ac_objext conftest$ac_exeext 10444if { (eval echo "$as_me:10444: \"$ac_link\"") >&5 10445 (eval $ac_link) 2>&5 10446 ac_status=$? 10447 echo "$as_me:10447: \$? = $ac_status" >&5 10448 (exit $ac_status); } && 10449 { ac_try='test -s conftest$ac_exeext' 10450 { (eval echo "$as_me:10450: \"$ac_try\"") >&5 10451 (eval $ac_try) 2>&5 10452 ac_status=$? 10453 echo "$as_me:10453: \$? = $ac_status" >&5 10454 (exit $ac_status); }; }; then 10455 ac_cv_func_XtAppInitialize=yes 10456else 10457 echo "$as_me: failed program was:" >&5 10458cat conftest.$ac_ext >&5 10459ac_cv_func_XtAppInitialize=no 10460fi 10461rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10462fi 10463echo "$as_me:10463: result: $ac_cv_func_XtAppInitialize" >&5 10464echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6 10465if test $ac_cv_func_XtAppInitialize = yes; then 10466 : 10467else 10468 10469 echo "$as_me:10469: checking for XtAppInitialize in -lXt" >&5 10470echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6 10471if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then 10472 echo $ECHO_N "(cached) $ECHO_C" >&6 10473else 10474 ac_check_lib_save_LIBS=$LIBS 10475LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS" 10476cat >conftest.$ac_ext <<_ACEOF 10477#line 10477 "configure" 10478#include "confdefs.h" 10479 10480/* Override any gcc2 internal prototype to avoid an error. */ 10481#ifdef __cplusplus 10482extern "C" 10483#endif 10484/* We use char because int might match the return type of a gcc2 10485 builtin and then its argument prototype would still apply. */ 10486char XtAppInitialize (); 10487int 10488main () 10489{ 10490XtAppInitialize (); 10491 ; 10492 return 0; 10493} 10494_ACEOF 10495rm -f conftest.$ac_objext conftest$ac_exeext 10496if { (eval echo "$as_me:10496: \"$ac_link\"") >&5 10497 (eval $ac_link) 2>&5 10498 ac_status=$? 10499 echo "$as_me:10499: \$? = $ac_status" >&5 10500 (exit $ac_status); } && 10501 { ac_try='test -s conftest$ac_exeext' 10502 { (eval echo "$as_me:10502: \"$ac_try\"") >&5 10503 (eval $ac_try) 2>&5 10504 ac_status=$? 10505 echo "$as_me:10505: \$? = $ac_status" >&5 10506 (exit $ac_status); }; }; then 10507 ac_cv_lib_Xt_XtAppInitialize=yes 10508else 10509 echo "$as_me: failed program was:" >&5 10510cat conftest.$ac_ext >&5 10511ac_cv_lib_Xt_XtAppInitialize=no 10512fi 10513rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10514LIBS=$ac_check_lib_save_LIBS 10515fi 10516echo "$as_me:10516: result: $ac_cv_lib_Xt_XtAppInitialize" >&5 10517echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6 10518if test $ac_cv_lib_Xt_XtAppInitialize = yes; then 10519 10520cat >>confdefs.h <<\EOF 10521#define HAVE_LIBXT 1 10522EOF 10523 10524 cf_have_X_LIBS=Xt 10525 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS" 10526fi 10527 10528fi 10529 10530fi 10531 10532if test $cf_have_X_LIBS = no ; then 10533 { echo "$as_me:10533: WARNING: Unable to successfully link X Toolkit library (-lXt) with 10534test program. You will have to check and add the proper libraries by hand 10535to makefile." >&5 10536echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with 10537test program. You will have to check and add the proper libraries by hand 10538to makefile." >&2;} 10539fi 10540 10541for ac_header in \ 10542 X11/DECkeysym.h \ 10543 X11/Sunkeysym.h \ 10544 X11/XF86keysym.h \ 10545 X11/XKBlib.h \ 10546 X11/Xpoll.h \ 10547 X11/extensions/XKB.h \ 10548 10549do 10550as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10551echo "$as_me:10551: checking for $ac_header" >&5 10552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10553if eval "test \"\${$as_ac_Header+set}\" = set"; then 10554 echo $ECHO_N "(cached) $ECHO_C" >&6 10555else 10556 cat >conftest.$ac_ext <<_ACEOF 10557#line 10557 "configure" 10558#include "confdefs.h" 10559#include <$ac_header> 10560_ACEOF 10561if { (eval echo "$as_me:10561: \"$ac_cpp conftest.$ac_ext\"") >&5 10562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10563 ac_status=$? 10564 egrep -v '^ *\+' conftest.er1 >conftest.err 10565 rm -f conftest.er1 10566 cat conftest.err >&5 10567 echo "$as_me:10567: \$? = $ac_status" >&5 10568 (exit $ac_status); } >/dev/null; then 10569 if test -s conftest.err; then 10570 ac_cpp_err=$ac_c_preproc_warn_flag 10571 else 10572 ac_cpp_err= 10573 fi 10574else 10575 ac_cpp_err=yes 10576fi 10577if test -z "$ac_cpp_err"; then 10578 eval "$as_ac_Header=yes" 10579else 10580 echo "$as_me: failed program was:" >&5 10581 cat conftest.$ac_ext >&5 10582 eval "$as_ac_Header=no" 10583fi 10584rm -f conftest.err conftest.$ac_ext 10585fi 10586echo "$as_me:10586: result: `eval echo '${'$as_ac_Header'}'`" >&5 10587echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10588if test `eval echo '${'$as_ac_Header'}'` = yes; then 10589 cat >>confdefs.h <<EOF 10590#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10591EOF 10592 10593fi 10594done 10595 10596ICON_SUFFIX=.xbm 10597 10598cf_save_cppflags="${CPPFLAGS}" 10599cf_save_ldflags="${LDFLAGS}" 10600 10601echo "$as_me:10601: checking if you want to use the Xpm library for colored icon" >&5 10602echo $ECHO_N "checking if you want to use the Xpm library for colored icon... $ECHO_C" >&6 10603 10604# Check whether --with-xpm or --without-xpm was given. 10605if test "${with_xpm+set}" = set; then 10606 withval="$with_xpm" 10607 cf_Xpm_library="$withval" 10608else 10609 cf_Xpm_library=yes 10610fi; 10611echo "$as_me:10611: result: $cf_Xpm_library" >&5 10612echo "${ECHO_T}$cf_Xpm_library" >&6 10613 10614if test "$cf_Xpm_library" != no ; then 10615 if test "$cf_Xpm_library" != yes ; then 10616 CPPFLAGS="$CPPFLAGS -I$withval/include" 10617 LDFLAGS="$LDFLAGS -L$withval/lib" 10618 fi 10619 echo "$as_me:10619: checking for X11/xpm.h" >&5 10620echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 10621if test "${ac_cv_header_X11_xpm_h+set}" = set; then 10622 echo $ECHO_N "(cached) $ECHO_C" >&6 10623else 10624 cat >conftest.$ac_ext <<_ACEOF 10625#line 10625 "configure" 10626#include "confdefs.h" 10627#include <X11/xpm.h> 10628_ACEOF 10629if { (eval echo "$as_me:10629: \"$ac_cpp conftest.$ac_ext\"") >&5 10630 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10631 ac_status=$? 10632 egrep -v '^ *\+' conftest.er1 >conftest.err 10633 rm -f conftest.er1 10634 cat conftest.err >&5 10635 echo "$as_me:10635: \$? = $ac_status" >&5 10636 (exit $ac_status); } >/dev/null; then 10637 if test -s conftest.err; then 10638 ac_cpp_err=$ac_c_preproc_warn_flag 10639 else 10640 ac_cpp_err= 10641 fi 10642else 10643 ac_cpp_err=yes 10644fi 10645if test -z "$ac_cpp_err"; then 10646 ac_cv_header_X11_xpm_h=yes 10647else 10648 echo "$as_me: failed program was:" >&5 10649 cat conftest.$ac_ext >&5 10650 ac_cv_header_X11_xpm_h=no 10651fi 10652rm -f conftest.err conftest.$ac_ext 10653fi 10654echo "$as_me:10654: result: $ac_cv_header_X11_xpm_h" >&5 10655echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 10656if test $ac_cv_header_X11_xpm_h = yes; then 10657 10658 echo "$as_me:10658: checking for XpmCreatePixmapFromData in -lXpm" >&5 10659echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6 10660if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then 10661 echo $ECHO_N "(cached) $ECHO_C" >&6 10662else 10663 ac_check_lib_save_LIBS=$LIBS 10664LIBS="-lXpm -lX11 $X_LIBS $LIBS" 10665cat >conftest.$ac_ext <<_ACEOF 10666#line 10666 "configure" 10667#include "confdefs.h" 10668 10669/* Override any gcc2 internal prototype to avoid an error. */ 10670#ifdef __cplusplus 10671extern "C" 10672#endif 10673/* We use char because int might match the return type of a gcc2 10674 builtin and then its argument prototype would still apply. */ 10675char XpmCreatePixmapFromData (); 10676int 10677main () 10678{ 10679XpmCreatePixmapFromData (); 10680 ; 10681 return 0; 10682} 10683_ACEOF 10684rm -f conftest.$ac_objext conftest$ac_exeext 10685if { (eval echo "$as_me:10685: \"$ac_link\"") >&5 10686 (eval $ac_link) 2>&5 10687 ac_status=$? 10688 echo "$as_me:10688: \$? = $ac_status" >&5 10689 (exit $ac_status); } && 10690 { ac_try='test -s conftest$ac_exeext' 10691 { (eval echo "$as_me:10691: \"$ac_try\"") >&5 10692 (eval $ac_try) 2>&5 10693 ac_status=$? 10694 echo "$as_me:10694: \$? = $ac_status" >&5 10695 (exit $ac_status); }; }; then 10696 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes 10697else 10698 echo "$as_me: failed program was:" >&5 10699cat conftest.$ac_ext >&5 10700ac_cv_lib_Xpm_XpmCreatePixmapFromData=no 10701fi 10702rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10703LIBS=$ac_check_lib_save_LIBS 10704fi 10705echo "$as_me:10705: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 10706echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6 10707if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then 10708 10709cat >>confdefs.h <<\EOF 10710#define HAVE_LIBXPM 1 10711EOF 10712 10713 ICON_SUFFIX=.xpm 10714 LIBS="-lXpm $LIBS" 10715else 10716 CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}" 10717fi 10718 10719else 10720 CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}" 10721fi 10722 10723fi 10724 10725echo "$as_me:10725: checking if you want to use the Xinerama extension" >&5 10726echo $ECHO_N "checking if you want to use the Xinerama extension... $ECHO_C" >&6 10727 10728# Check whether --with-xinerama or --without-xinerama was given. 10729if test "${with_xinerama+set}" = set; then 10730 withval="$with_xinerama" 10731 cf_with_xinerama="$withval" 10732else 10733 cf_with_xinerama=yes 10734fi; 10735echo "$as_me:10735: result: $cf_with_xinerama" >&5 10736echo "${ECHO_T}$cf_with_xinerama" >&6 10737if test "$cf_with_xinerama" = yes; then 10738 10739if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xinerama; then 10740 test -n "$verbose" && echo " found package xinerama" 1>&6 10741 10742echo "${as_me:-configure}:10742: testing found package xinerama ..." 1>&5 10743 10744 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xinerama 2>/dev/null`" 10745 cf_pkgconfig_libs="`$PKG_CONFIG --libs xinerama 2>/dev/null`" 10746 test -n "$verbose" && echo " package xinerama CFLAGS: $cf_pkgconfig_incs" 1>&6 10747 10748echo "${as_me:-configure}:10748: testing package xinerama CFLAGS: $cf_pkgconfig_incs ..." 1>&5 10749 10750 test -n "$verbose" && echo " package xinerama LIBS: $cf_pkgconfig_libs" 1>&6 10751 10752echo "${as_me:-configure}:10752: testing package xinerama LIBS: $cf_pkgconfig_libs ..." 1>&5 10753 10754cf_fix_cppflags=no 10755cf_new_cflags= 10756cf_new_cppflags= 10757cf_new_extra_cppflags= 10758 10759for cf_add_cflags in $cf_pkgconfig_incs 10760do 10761case $cf_fix_cppflags in 10762(no) 10763 case $cf_add_cflags in 10764 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 10765 case $cf_add_cflags in 10766 (-D*) 10767 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 10768 10769 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10770 && test -z "${cf_tst_cflags}" \ 10771 && cf_fix_cppflags=yes 10772 10773 if test $cf_fix_cppflags = yes ; then 10774 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10775 continue 10776 elif test "${cf_tst_cflags}" = "\"'" ; then 10777 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10778 continue 10779 fi 10780 ;; 10781 esac 10782 case "$CPPFLAGS" in 10783 (*$cf_add_cflags) 10784 ;; 10785 (*) 10786 case $cf_add_cflags in 10787 (-D*) 10788 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 10789 10790CPPFLAGS=`echo "$CPPFLAGS" | \ 10791 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 10792 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 10793 10794 ;; 10795 esac 10796 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 10797 ;; 10798 esac 10799 ;; 10800 (*) 10801 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 10802 ;; 10803 esac 10804 ;; 10805(yes) 10806 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 10807 10808 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 10809 10810 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10811 && test -z "${cf_tst_cflags}" \ 10812 && cf_fix_cppflags=no 10813 ;; 10814esac 10815done 10816 10817if test -n "$cf_new_cflags" ; then 10818 10819 CFLAGS="$CFLAGS $cf_new_cflags" 10820fi 10821 10822if test -n "$cf_new_cppflags" ; then 10823 10824 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 10825fi 10826 10827if test -n "$cf_new_extra_cppflags" ; then 10828 10829 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 10830fi 10831 10832cf_add_libs="$cf_pkgconfig_libs" 10833# Filter out duplicates - this happens with badly-designed ".pc" files... 10834for cf_add_1lib in $LIBS 10835do 10836 for cf_add_2lib in $cf_add_libs 10837 do 10838 if test "x$cf_add_1lib" = "x$cf_add_2lib" 10839 then 10840 cf_add_1lib= 10841 break 10842 fi 10843 done 10844 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 10845done 10846LIBS="$cf_add_libs" 10847 10848 cat >>confdefs.h <<\EOF 10849#define HAVE_X11_EXTENSIONS_XINERAMA_H 1 10850EOF 10851 10852else 10853 cf_pkgconfig_incs= 10854 cf_pkgconfig_libs= 10855 10856 echo "$as_me:10856: checking for XineramaQueryScreens in -lXinerama" >&5 10857echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6 10858if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then 10859 echo $ECHO_N "(cached) $ECHO_C" >&6 10860else 10861 ac_check_lib_save_LIBS=$LIBS 10862LIBS="-lXinerama $LIBS" 10863cat >conftest.$ac_ext <<_ACEOF 10864#line 10864 "configure" 10865#include "confdefs.h" 10866 10867/* Override any gcc2 internal prototype to avoid an error. */ 10868#ifdef __cplusplus 10869extern "C" 10870#endif 10871/* We use char because int might match the return type of a gcc2 10872 builtin and then its argument prototype would still apply. */ 10873char XineramaQueryScreens (); 10874int 10875main () 10876{ 10877XineramaQueryScreens (); 10878 ; 10879 return 0; 10880} 10881_ACEOF 10882rm -f conftest.$ac_objext conftest$ac_exeext 10883if { (eval echo "$as_me:10883: \"$ac_link\"") >&5 10884 (eval $ac_link) 2>&5 10885 ac_status=$? 10886 echo "$as_me:10886: \$? = $ac_status" >&5 10887 (exit $ac_status); } && 10888 { ac_try='test -s conftest$ac_exeext' 10889 { (eval echo "$as_me:10889: \"$ac_try\"") >&5 10890 (eval $ac_try) 2>&5 10891 ac_status=$? 10892 echo "$as_me:10892: \$? = $ac_status" >&5 10893 (exit $ac_status); }; }; then 10894 ac_cv_lib_Xinerama_XineramaQueryScreens=yes 10895else 10896 echo "$as_me: failed program was:" >&5 10897cat conftest.$ac_ext >&5 10898ac_cv_lib_Xinerama_XineramaQueryScreens=no 10899fi 10900rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10901LIBS=$ac_check_lib_save_LIBS 10902fi 10903echo "$as_me:10903: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5 10904echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6 10905if test $ac_cv_lib_Xinerama_XineramaQueryScreens = yes; then 10906 10907cf_add_libs="-lXinerama" 10908# Filter out duplicates - this happens with badly-designed ".pc" files... 10909for cf_add_1lib in $LIBS 10910do 10911 for cf_add_2lib in $cf_add_libs 10912 do 10913 if test "x$cf_add_1lib" = "x$cf_add_2lib" 10914 then 10915 cf_add_1lib= 10916 break 10917 fi 10918 done 10919 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 10920done 10921LIBS="$cf_add_libs" 10922 10923for ac_header in \ 10924 X11/extensions/Xinerama.h \ 10925 10926do 10927as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10928echo "$as_me:10928: checking for $ac_header" >&5 10929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10930if eval "test \"\${$as_ac_Header+set}\" = set"; then 10931 echo $ECHO_N "(cached) $ECHO_C" >&6 10932else 10933 cat >conftest.$ac_ext <<_ACEOF 10934#line 10934 "configure" 10935#include "confdefs.h" 10936#include <$ac_header> 10937_ACEOF 10938if { (eval echo "$as_me:10938: \"$ac_cpp conftest.$ac_ext\"") >&5 10939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10940 ac_status=$? 10941 egrep -v '^ *\+' conftest.er1 >conftest.err 10942 rm -f conftest.er1 10943 cat conftest.err >&5 10944 echo "$as_me:10944: \$? = $ac_status" >&5 10945 (exit $ac_status); } >/dev/null; then 10946 if test -s conftest.err; then 10947 ac_cpp_err=$ac_c_preproc_warn_flag 10948 else 10949 ac_cpp_err= 10950 fi 10951else 10952 ac_cpp_err=yes 10953fi 10954if test -z "$ac_cpp_err"; then 10955 eval "$as_ac_Header=yes" 10956else 10957 echo "$as_me: failed program was:" >&5 10958 cat conftest.$ac_ext >&5 10959 eval "$as_ac_Header=no" 10960fi 10961rm -f conftest.err conftest.$ac_ext 10962fi 10963echo "$as_me:10963: result: `eval echo '${'$as_ac_Header'}'`" >&5 10964echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10965if test `eval echo '${'$as_ac_Header'}'` = yes; then 10966 cat >>confdefs.h <<EOF 10967#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10968EOF 10969 10970fi 10971done 10972 10973fi 10974 10975fi 10976 10977fi 10978 10979cf_x_athena=${cf_x_athena:-Xaw} 10980 10981echo "$as_me:10981: checking if you want to link with Xaw 3d library" >&5 10982echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6 10983withval= 10984 10985# Check whether --with-Xaw3d or --without-Xaw3d was given. 10986if test "${with_Xaw3d+set}" = set; then 10987 withval="$with_Xaw3d" 10988 10989fi; 10990if test "$withval" = yes ; then 10991 cf_x_athena=Xaw3d 10992 echo "$as_me:10992: result: yes" >&5 10993echo "${ECHO_T}yes" >&6 10994else 10995 echo "$as_me:10995: result: no" >&5 10996echo "${ECHO_T}no" >&6 10997fi 10998 10999echo "$as_me:10999: checking if you want to link with Xaw 3d xft library" >&5 11000echo $ECHO_N "checking if you want to link with Xaw 3d xft library... $ECHO_C" >&6 11001withval= 11002 11003# Check whether --with-Xaw3dxft or --without-Xaw3dxft was given. 11004if test "${with_Xaw3dxft+set}" = set; then 11005 withval="$with_Xaw3dxft" 11006 11007fi; 11008if test "$withval" = yes ; then 11009 cf_x_athena=Xaw3dxft 11010 echo "$as_me:11010: result: yes" >&5 11011echo "${ECHO_T}yes" >&6 11012else 11013 echo "$as_me:11013: result: no" >&5 11014echo "${ECHO_T}no" >&6 11015fi 11016 11017echo "$as_me:11017: checking if you want to link with neXT Athena library" >&5 11018echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6 11019withval= 11020 11021# Check whether --with-neXtaw or --without-neXtaw was given. 11022if test "${with_neXtaw+set}" = set; then 11023 withval="$with_neXtaw" 11024 11025fi; 11026if test "$withval" = yes ; then 11027 cf_x_athena=neXtaw 11028 echo "$as_me:11028: result: yes" >&5 11029echo "${ECHO_T}yes" >&6 11030else 11031 echo "$as_me:11031: result: no" >&5 11032echo "${ECHO_T}no" >&6 11033fi 11034 11035echo "$as_me:11035: checking if you want to link with Athena-Plus library" >&5 11036echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6 11037withval= 11038 11039# Check whether --with-XawPlus or --without-XawPlus was given. 11040if test "${with_XawPlus+set}" = set; then 11041 withval="$with_XawPlus" 11042 11043fi; 11044if test "$withval" = yes ; then 11045 cf_x_athena=XawPlus 11046 echo "$as_me:11046: result: yes" >&5 11047echo "${ECHO_T}yes" >&6 11048else 11049 echo "$as_me:11049: result: no" >&5 11050echo "${ECHO_T}no" >&6 11051fi 11052 11053cf_x_athena_lib="" 11054 11055if test "$PKG_CONFIG" != none ; then 11056 cf_athena_list= 11057 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6" 11058 for cf_athena_pkg in \ 11059 $cf_athena_list \ 11060 ${cf_x_athena} \ 11061 ${cf_x_athena}-devel \ 11062 lib${cf_x_athena} \ 11063 lib${cf_x_athena}-devel 11064 do 11065 11066if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists $cf_athena_pkg; then 11067 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6 11068 11069echo "${as_me:-configure}:11069: testing found package $cf_athena_pkg ..." 1>&5 11070 11071 cf_pkgconfig_incs="`$PKG_CONFIG --cflags $cf_athena_pkg 2>/dev/null`" 11072 cf_pkgconfig_libs="`$PKG_CONFIG --libs $cf_athena_pkg 2>/dev/null`" 11073 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6 11074 11075echo "${as_me:-configure}:11075: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11076 11077 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6 11078 11079echo "${as_me:-configure}:11079: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5 11080 11081cf_fix_cppflags=no 11082cf_new_cflags= 11083cf_new_cppflags= 11084cf_new_extra_cppflags= 11085 11086for cf_add_cflags in $cf_pkgconfig_incs 11087do 11088case $cf_fix_cppflags in 11089(no) 11090 case $cf_add_cflags in 11091 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11092 case $cf_add_cflags in 11093 (-D*) 11094 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11095 11096 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11097 && test -z "${cf_tst_cflags}" \ 11098 && cf_fix_cppflags=yes 11099 11100 if test $cf_fix_cppflags = yes ; then 11101 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11102 continue 11103 elif test "${cf_tst_cflags}" = "\"'" ; then 11104 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11105 continue 11106 fi 11107 ;; 11108 esac 11109 case "$CPPFLAGS" in 11110 (*$cf_add_cflags) 11111 ;; 11112 (*) 11113 case $cf_add_cflags in 11114 (-D*) 11115 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11116 11117CPPFLAGS=`echo "$CPPFLAGS" | \ 11118 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11119 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11120 11121 ;; 11122 esac 11123 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 11124 ;; 11125 esac 11126 ;; 11127 (*) 11128 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 11129 ;; 11130 esac 11131 ;; 11132(yes) 11133 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11134 11135 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 11136 11137 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11138 && test -z "${cf_tst_cflags}" \ 11139 && cf_fix_cppflags=no 11140 ;; 11141esac 11142done 11143 11144if test -n "$cf_new_cflags" ; then 11145 11146 CFLAGS="$CFLAGS $cf_new_cflags" 11147fi 11148 11149if test -n "$cf_new_cppflags" ; then 11150 11151 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 11152fi 11153 11154if test -n "$cf_new_extra_cppflags" ; then 11155 11156 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 11157fi 11158 11159cf_add_libs="$cf_pkgconfig_libs" 11160# Filter out duplicates - this happens with badly-designed ".pc" files... 11161for cf_add_1lib in $LIBS 11162do 11163 for cf_add_2lib in $cf_add_libs 11164 do 11165 if test "x$cf_add_1lib" = "x$cf_add_2lib" 11166 then 11167 cf_add_1lib= 11168 break 11169 fi 11170 done 11171 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 11172done 11173LIBS="$cf_add_libs" 11174 11175 cf_x_athena_lib="$cf_pkgconfig_libs" 11176 11177cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 11178 11179 cat >>confdefs.h <<EOF 11180#define $cf_x_athena_LIBS 1 11181EOF 11182 11183 for cf_trim_lib in Xmu Xt X11 11184 do 11185 case "$LIBS" in 11186 (*-l$cf_trim_lib\ *-l$cf_trim_lib*) 11187 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'` 11188 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6 11189 11190echo "${as_me:-configure}:11190: testing ..trimmed $LIBS ..." 1>&5 11191 11192 ;; 11193 esac 11194 done 11195 11196echo "$as_me:11196: checking for usable $cf_x_athena/Xmu package" >&5 11197echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6 11198if test "${cf_cv_xaw_compat+set}" = set; then 11199 echo $ECHO_N "(cached) $ECHO_C" >&6 11200else 11201 11202cat >conftest.$ac_ext <<_ACEOF 11203#line 11203 "configure" 11204#include "confdefs.h" 11205 11206#include <X11/Xmu/CharSet.h> 11207 11208int 11209main () 11210{ 11211 11212int check = XmuCompareISOLatin1("big", "small") 11213 11214 ; 11215 return 0; 11216} 11217_ACEOF 11218rm -f conftest.$ac_objext conftest$ac_exeext 11219if { (eval echo "$as_me:11219: \"$ac_link\"") >&5 11220 (eval $ac_link) 2>&5 11221 ac_status=$? 11222 echo "$as_me:11222: \$? = $ac_status" >&5 11223 (exit $ac_status); } && 11224 { ac_try='test -s conftest$ac_exeext' 11225 { (eval echo "$as_me:11225: \"$ac_try\"") >&5 11226 (eval $ac_try) 2>&5 11227 ac_status=$? 11228 echo "$as_me:11228: \$? = $ac_status" >&5 11229 (exit $ac_status); }; }; then 11230 cf_cv_xaw_compat=yes 11231else 11232 echo "$as_me: failed program was:" >&5 11233cat conftest.$ac_ext >&5 11234cf_cv_xaw_compat=no 11235fi 11236rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11237fi 11238echo "$as_me:11238: result: $cf_cv_xaw_compat" >&5 11239echo "${ECHO_T}$cf_cv_xaw_compat" >&6 11240 11241 if test "$cf_cv_xaw_compat" = no 11242 then 11243 # workaround for broken ".pc" files... 11244 case "$cf_x_athena_lib" in 11245 (*-lXmu*) 11246 ;; 11247 (*) 11248 test -n "$verbose" && echo " work around broken package" 1>&6 11249 11250echo "${as_me:-configure}:11250: testing work around broken package ..." 1>&5 11251 11252 cf_save_xmu="$LIBS" 11253 cf_first_lib=`echo "$cf_save_xmu" | sed -e 's/^ *//' -e 's/ .*//'` 11254 11255if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xmu; then 11256 test -n "$verbose" && echo " found package xmu" 1>&6 11257 11258echo "${as_me:-configure}:11258: testing found package xmu ..." 1>&5 11259 11260 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xmu 2>/dev/null`" 11261 cf_pkgconfig_libs="`$PKG_CONFIG --libs xmu 2>/dev/null`" 11262 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6 11263 11264echo "${as_me:-configure}:11264: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11265 11266 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6 11267 11268echo "${as_me:-configure}:11268: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5 11269 11270cf_fix_cppflags=no 11271cf_new_cflags= 11272cf_new_cppflags= 11273cf_new_extra_cppflags= 11274 11275for cf_add_cflags in $cf_pkgconfig_incs 11276do 11277case $cf_fix_cppflags in 11278(no) 11279 case $cf_add_cflags in 11280 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11281 case $cf_add_cflags in 11282 (-D*) 11283 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11284 11285 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11286 && test -z "${cf_tst_cflags}" \ 11287 && cf_fix_cppflags=yes 11288 11289 if test $cf_fix_cppflags = yes ; then 11290 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11291 continue 11292 elif test "${cf_tst_cflags}" = "\"'" ; then 11293 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11294 continue 11295 fi 11296 ;; 11297 esac 11298 case "$CPPFLAGS" in 11299 (*$cf_add_cflags) 11300 ;; 11301 (*) 11302 case $cf_add_cflags in 11303 (-D*) 11304 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11305 11306CPPFLAGS=`echo "$CPPFLAGS" | \ 11307 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11308 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11309 11310 ;; 11311 esac 11312 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 11313 ;; 11314 esac 11315 ;; 11316 (*) 11317 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 11318 ;; 11319 esac 11320 ;; 11321(yes) 11322 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11323 11324 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 11325 11326 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11327 && test -z "${cf_tst_cflags}" \ 11328 && cf_fix_cppflags=no 11329 ;; 11330esac 11331done 11332 11333if test -n "$cf_new_cflags" ; then 11334 11335 CFLAGS="$CFLAGS $cf_new_cflags" 11336fi 11337 11338if test -n "$cf_new_cppflags" ; then 11339 11340 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 11341fi 11342 11343if test -n "$cf_new_extra_cppflags" ; then 11344 11345 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 11346fi 11347 11348cf_add_libs="$cf_pkgconfig_libs" 11349# Filter out duplicates - this happens with badly-designed ".pc" files... 11350for cf_add_1lib in $LIBS 11351do 11352 for cf_add_2lib in $cf_add_libs 11353 do 11354 if test "x$cf_add_1lib" = "x$cf_add_2lib" 11355 then 11356 cf_add_1lib= 11357 break 11358 fi 11359 done 11360 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 11361done 11362LIBS="$cf_add_libs" 11363 11364 LIBS="$cf_save_xmu" 11365 11366test -n "$verbose" && echo " ...before $LIBS" 1>&6 11367 11368echo "${as_me:-configure}:11368: testing ...before $LIBS ..." 1>&5 11369 11370LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib $cf_pkgconfig_libs %" -e 's% % %g'` 11371test -n "$verbose" && echo " ...after $LIBS" 1>&6 11372 11373echo "${as_me:-configure}:11373: testing ...after $LIBS ..." 1>&5 11374 11375else 11376 cf_pkgconfig_incs= 11377 cf_pkgconfig_libs= 11378 11379test -n "$verbose" && echo " ...before $LIBS" 1>&6 11380 11381echo "${as_me:-configure}:11381: testing ...before $LIBS ..." 1>&5 11382 11383LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib -lXmu %" -e 's% % %g'` 11384test -n "$verbose" && echo " ...after $LIBS" 1>&6 11385 11386echo "${as_me:-configure}:11386: testing ...after $LIBS ..." 1>&5 11387 11388fi 11389 11390 for cf_trim_lib in Xmu Xt X11 11391 do 11392 case "$LIBS" in 11393 (*-l$cf_trim_lib\ *-l$cf_trim_lib*) 11394 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'` 11395 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6 11396 11397echo "${as_me:-configure}:11397: testing ..trimmed $LIBS ..." 1>&5 11398 11399 ;; 11400 esac 11401 done 11402 11403 ;; 11404 esac 11405 fi 11406 11407 break 11408else 11409 cf_pkgconfig_incs= 11410 cf_pkgconfig_libs= 11411 : 11412fi 11413 11414 done 11415fi 11416 11417if test -z "$cf_x_athena_lib" ; then 11418 11419if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then 11420 test -n "$verbose" && echo " found package Xext" 1>&6 11421 11422echo "${as_me:-configure}:11422: testing found package Xext ..." 1>&5 11423 11424 cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`" 11425 cf_pkgconfig_libs="`$PKG_CONFIG --libs Xext 2>/dev/null`" 11426 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6 11427 11428echo "${as_me:-configure}:11428: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11429 11430 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6 11431 11432echo "${as_me:-configure}:11432: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5 11433 11434cf_fix_cppflags=no 11435cf_new_cflags= 11436cf_new_cppflags= 11437cf_new_extra_cppflags= 11438 11439for cf_add_cflags in $cf_pkgconfig_incs 11440do 11441case $cf_fix_cppflags in 11442(no) 11443 case $cf_add_cflags in 11444 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11445 case $cf_add_cflags in 11446 (-D*) 11447 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11448 11449 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11450 && test -z "${cf_tst_cflags}" \ 11451 && cf_fix_cppflags=yes 11452 11453 if test $cf_fix_cppflags = yes ; then 11454 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11455 continue 11456 elif test "${cf_tst_cflags}" = "\"'" ; then 11457 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11458 continue 11459 fi 11460 ;; 11461 esac 11462 case "$CPPFLAGS" in 11463 (*$cf_add_cflags) 11464 ;; 11465 (*) 11466 case $cf_add_cflags in 11467 (-D*) 11468 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11469 11470CPPFLAGS=`echo "$CPPFLAGS" | \ 11471 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11472 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11473 11474 ;; 11475 esac 11476 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 11477 ;; 11478 esac 11479 ;; 11480 (*) 11481 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 11482 ;; 11483 esac 11484 ;; 11485(yes) 11486 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11487 11488 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 11489 11490 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11491 && test -z "${cf_tst_cflags}" \ 11492 && cf_fix_cppflags=no 11493 ;; 11494esac 11495done 11496 11497if test -n "$cf_new_cflags" ; then 11498 11499 CFLAGS="$CFLAGS $cf_new_cflags" 11500fi 11501 11502if test -n "$cf_new_cppflags" ; then 11503 11504 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 11505fi 11506 11507if test -n "$cf_new_extra_cppflags" ; then 11508 11509 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 11510fi 11511 11512cf_add_libs="$cf_pkgconfig_libs" 11513# Filter out duplicates - this happens with badly-designed ".pc" files... 11514for cf_add_1lib in $LIBS 11515do 11516 for cf_add_2lib in $cf_add_libs 11517 do 11518 if test "x$cf_add_1lib" = "x$cf_add_2lib" 11519 then 11520 cf_add_1lib= 11521 break 11522 fi 11523 done 11524 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 11525done 11526LIBS="$cf_add_libs" 11527 11528 : 11529else 11530 cf_pkgconfig_incs= 11531 cf_pkgconfig_libs= 11532 11533 echo "$as_me:11533: checking for XextCreateExtension in -lXext" >&5 11534echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6 11535if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then 11536 echo $ECHO_N "(cached) $ECHO_C" >&6 11537else 11538 ac_check_lib_save_LIBS=$LIBS 11539LIBS="-lXext $LIBS" 11540cat >conftest.$ac_ext <<_ACEOF 11541#line 11541 "configure" 11542#include "confdefs.h" 11543 11544/* Override any gcc2 internal prototype to avoid an error. */ 11545#ifdef __cplusplus 11546extern "C" 11547#endif 11548/* We use char because int might match the return type of a gcc2 11549 builtin and then its argument prototype would still apply. */ 11550char XextCreateExtension (); 11551int 11552main () 11553{ 11554XextCreateExtension (); 11555 ; 11556 return 0; 11557} 11558_ACEOF 11559rm -f conftest.$ac_objext conftest$ac_exeext 11560if { (eval echo "$as_me:11560: \"$ac_link\"") >&5 11561 (eval $ac_link) 2>&5 11562 ac_status=$? 11563 echo "$as_me:11563: \$? = $ac_status" >&5 11564 (exit $ac_status); } && 11565 { ac_try='test -s conftest$ac_exeext' 11566 { (eval echo "$as_me:11566: \"$ac_try\"") >&5 11567 (eval $ac_try) 2>&5 11568 ac_status=$? 11569 echo "$as_me:11569: \$? = $ac_status" >&5 11570 (exit $ac_status); }; }; then 11571 ac_cv_lib_Xext_XextCreateExtension=yes 11572else 11573 echo "$as_me: failed program was:" >&5 11574cat conftest.$ac_ext >&5 11575ac_cv_lib_Xext_XextCreateExtension=no 11576fi 11577rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11578LIBS=$ac_check_lib_save_LIBS 11579fi 11580echo "$as_me:11580: result: $ac_cv_lib_Xext_XextCreateExtension" >&5 11581echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6 11582if test $ac_cv_lib_Xext_XextCreateExtension = yes; then 11583 11584cf_add_libs="-lXext" 11585# Filter out duplicates - this happens with badly-designed ".pc" files... 11586for cf_add_1lib in $LIBS 11587do 11588 for cf_add_2lib in $cf_add_libs 11589 do 11590 if test "x$cf_add_1lib" = "x$cf_add_2lib" 11591 then 11592 cf_add_1lib= 11593 break 11594 fi 11595 done 11596 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 11597done 11598LIBS="$cf_add_libs" 11599 11600fi 11601 11602fi 11603 11604# OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new), and (and 11605# in some cases has installed dummy files in the former, other cases replaced 11606# it with a link to the new location). This complicates the configure script. 11607# Check for that pitfall, and recover using pkg-config 11608# 11609# If none of these are set, the configuration is almost certainly broken. 11610if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}" 11611then 11612 11613if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then 11614 test -n "$verbose" && echo " found package x11" 1>&6 11615 11616echo "${as_me:-configure}:11616: testing found package x11 ..." 1>&5 11617 11618 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`" 11619 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`" 11620 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6 11621 11622echo "${as_me:-configure}:11622: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11623 11624 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6 11625 11626echo "${as_me:-configure}:11626: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5 11627 11628cf_fix_cppflags=no 11629cf_new_cflags= 11630cf_new_cppflags= 11631cf_new_extra_cppflags= 11632 11633for cf_add_cflags in $cf_pkgconfig_incs 11634do 11635case $cf_fix_cppflags in 11636(no) 11637 case $cf_add_cflags in 11638 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11639 case $cf_add_cflags in 11640 (-D*) 11641 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11642 11643 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11644 && test -z "${cf_tst_cflags}" \ 11645 && cf_fix_cppflags=yes 11646 11647 if test $cf_fix_cppflags = yes ; then 11648 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11649 continue 11650 elif test "${cf_tst_cflags}" = "\"'" ; then 11651 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11652 continue 11653 fi 11654 ;; 11655 esac 11656 case "$CPPFLAGS" in 11657 (*$cf_add_cflags) 11658 ;; 11659 (*) 11660 case $cf_add_cflags in 11661 (-D*) 11662 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11663 11664CPPFLAGS=`echo "$CPPFLAGS" | \ 11665 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11666 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11667 11668 ;; 11669 esac 11670 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 11671 ;; 11672 esac 11673 ;; 11674 (*) 11675 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 11676 ;; 11677 esac 11678 ;; 11679(yes) 11680 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11681 11682 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 11683 11684 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11685 && test -z "${cf_tst_cflags}" \ 11686 && cf_fix_cppflags=no 11687 ;; 11688esac 11689done 11690 11691if test -n "$cf_new_cflags" ; then 11692 11693 CFLAGS="$CFLAGS $cf_new_cflags" 11694fi 11695 11696if test -n "$cf_new_cppflags" ; then 11697 11698 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 11699fi 11700 11701if test -n "$cf_new_extra_cppflags" ; then 11702 11703 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 11704fi 11705 11706cf_add_libs="$cf_pkgconfig_libs" 11707# Filter out duplicates - this happens with badly-designed ".pc" files... 11708for cf_add_1lib in $LIBS 11709do 11710 for cf_add_2lib in $cf_add_libs 11711 do 11712 if test "x$cf_add_1lib" = "x$cf_add_2lib" 11713 then 11714 cf_add_1lib= 11715 break 11716 fi 11717 done 11718 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 11719done 11720LIBS="$cf_add_libs" 11721 11722 : 11723else 11724 cf_pkgconfig_incs= 11725 cf_pkgconfig_libs= 11726 { echo "$as_me:11726: WARNING: unable to find X11 library" >&5 11727echo "$as_me: WARNING: unable to find X11 library" >&2;} 11728fi 11729 11730if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then 11731 test -n "$verbose" && echo " found package ice" 1>&6 11732 11733echo "${as_me:-configure}:11733: testing found package ice ..." 1>&5 11734 11735 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`" 11736 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`" 11737 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6 11738 11739echo "${as_me:-configure}:11739: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11740 11741 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6 11742 11743echo "${as_me:-configure}:11743: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5 11744 11745cf_fix_cppflags=no 11746cf_new_cflags= 11747cf_new_cppflags= 11748cf_new_extra_cppflags= 11749 11750for cf_add_cflags in $cf_pkgconfig_incs 11751do 11752case $cf_fix_cppflags in 11753(no) 11754 case $cf_add_cflags in 11755 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11756 case $cf_add_cflags in 11757 (-D*) 11758 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11759 11760 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11761 && test -z "${cf_tst_cflags}" \ 11762 && cf_fix_cppflags=yes 11763 11764 if test $cf_fix_cppflags = yes ; then 11765 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11766 continue 11767 elif test "${cf_tst_cflags}" = "\"'" ; then 11768 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11769 continue 11770 fi 11771 ;; 11772 esac 11773 case "$CPPFLAGS" in 11774 (*$cf_add_cflags) 11775 ;; 11776 (*) 11777 case $cf_add_cflags in 11778 (-D*) 11779 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11780 11781CPPFLAGS=`echo "$CPPFLAGS" | \ 11782 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11783 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11784 11785 ;; 11786 esac 11787 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 11788 ;; 11789 esac 11790 ;; 11791 (*) 11792 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 11793 ;; 11794 esac 11795 ;; 11796(yes) 11797 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11798 11799 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 11800 11801 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11802 && test -z "${cf_tst_cflags}" \ 11803 && cf_fix_cppflags=no 11804 ;; 11805esac 11806done 11807 11808if test -n "$cf_new_cflags" ; then 11809 11810 CFLAGS="$CFLAGS $cf_new_cflags" 11811fi 11812 11813if test -n "$cf_new_cppflags" ; then 11814 11815 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 11816fi 11817 11818if test -n "$cf_new_extra_cppflags" ; then 11819 11820 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 11821fi 11822 11823cf_add_libs="$cf_pkgconfig_libs" 11824# Filter out duplicates - this happens with badly-designed ".pc" files... 11825for cf_add_1lib in $LIBS 11826do 11827 for cf_add_2lib in $cf_add_libs 11828 do 11829 if test "x$cf_add_1lib" = "x$cf_add_2lib" 11830 then 11831 cf_add_1lib= 11832 break 11833 fi 11834 done 11835 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 11836done 11837LIBS="$cf_add_libs" 11838 11839 : 11840else 11841 cf_pkgconfig_incs= 11842 cf_pkgconfig_libs= 11843 { echo "$as_me:11843: WARNING: unable to find ICE library" >&5 11844echo "$as_me: WARNING: unable to find ICE library" >&2;} 11845fi 11846 11847if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then 11848 test -n "$verbose" && echo " found package sm" 1>&6 11849 11850echo "${as_me:-configure}:11850: testing found package sm ..." 1>&5 11851 11852 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`" 11853 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`" 11854 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6 11855 11856echo "${as_me:-configure}:11856: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11857 11858 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6 11859 11860echo "${as_me:-configure}:11860: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5 11861 11862cf_fix_cppflags=no 11863cf_new_cflags= 11864cf_new_cppflags= 11865cf_new_extra_cppflags= 11866 11867for cf_add_cflags in $cf_pkgconfig_incs 11868do 11869case $cf_fix_cppflags in 11870(no) 11871 case $cf_add_cflags in 11872 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11873 case $cf_add_cflags in 11874 (-D*) 11875 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11876 11877 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11878 && test -z "${cf_tst_cflags}" \ 11879 && cf_fix_cppflags=yes 11880 11881 if test $cf_fix_cppflags = yes ; then 11882 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11883 continue 11884 elif test "${cf_tst_cflags}" = "\"'" ; then 11885 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11886 continue 11887 fi 11888 ;; 11889 esac 11890 case "$CPPFLAGS" in 11891 (*$cf_add_cflags) 11892 ;; 11893 (*) 11894 case $cf_add_cflags in 11895 (-D*) 11896 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11897 11898CPPFLAGS=`echo "$CPPFLAGS" | \ 11899 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11900 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11901 11902 ;; 11903 esac 11904 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 11905 ;; 11906 esac 11907 ;; 11908 (*) 11909 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 11910 ;; 11911 esac 11912 ;; 11913(yes) 11914 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 11915 11916 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 11917 11918 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11919 && test -z "${cf_tst_cflags}" \ 11920 && cf_fix_cppflags=no 11921 ;; 11922esac 11923done 11924 11925if test -n "$cf_new_cflags" ; then 11926 11927 CFLAGS="$CFLAGS $cf_new_cflags" 11928fi 11929 11930if test -n "$cf_new_cppflags" ; then 11931 11932 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 11933fi 11934 11935if test -n "$cf_new_extra_cppflags" ; then 11936 11937 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 11938fi 11939 11940cf_add_libs="$cf_pkgconfig_libs" 11941# Filter out duplicates - this happens with badly-designed ".pc" files... 11942for cf_add_1lib in $LIBS 11943do 11944 for cf_add_2lib in $cf_add_libs 11945 do 11946 if test "x$cf_add_1lib" = "x$cf_add_2lib" 11947 then 11948 cf_add_1lib= 11949 break 11950 fi 11951 done 11952 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 11953done 11954LIBS="$cf_add_libs" 11955 11956 : 11957else 11958 cf_pkgconfig_incs= 11959 cf_pkgconfig_libs= 11960 { echo "$as_me:11960: WARNING: unable to find SM library" >&5 11961echo "$as_me: WARNING: unable to find SM library" >&2;} 11962fi 11963 11964if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then 11965 test -n "$verbose" && echo " found package xt" 1>&6 11966 11967echo "${as_me:-configure}:11967: testing found package xt ..." 1>&5 11968 11969 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`" 11970 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`" 11971 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6 11972 11973echo "${as_me:-configure}:11973: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11974 11975 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6 11976 11977echo "${as_me:-configure}:11977: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5 11978 11979cf_fix_cppflags=no 11980cf_new_cflags= 11981cf_new_cppflags= 11982cf_new_extra_cppflags= 11983 11984for cf_add_cflags in $cf_pkgconfig_incs 11985do 11986case $cf_fix_cppflags in 11987(no) 11988 case $cf_add_cflags in 11989 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11990 case $cf_add_cflags in 11991 (-D*) 11992 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11993 11994 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11995 && test -z "${cf_tst_cflags}" \ 11996 && cf_fix_cppflags=yes 11997 11998 if test $cf_fix_cppflags = yes ; then 11999 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 12000 continue 12001 elif test "${cf_tst_cflags}" = "\"'" ; then 12002 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 12003 continue 12004 fi 12005 ;; 12006 esac 12007 case "$CPPFLAGS" in 12008 (*$cf_add_cflags) 12009 ;; 12010 (*) 12011 case $cf_add_cflags in 12012 (-D*) 12013 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 12014 12015CPPFLAGS=`echo "$CPPFLAGS" | \ 12016 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 12017 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 12018 12019 ;; 12020 esac 12021 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 12022 ;; 12023 esac 12024 ;; 12025 (*) 12026 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 12027 ;; 12028 esac 12029 ;; 12030(yes) 12031 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 12032 12033 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 12034 12035 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12036 && test -z "${cf_tst_cflags}" \ 12037 && cf_fix_cppflags=no 12038 ;; 12039esac 12040done 12041 12042if test -n "$cf_new_cflags" ; then 12043 12044 CFLAGS="$CFLAGS $cf_new_cflags" 12045fi 12046 12047if test -n "$cf_new_cppflags" ; then 12048 12049 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 12050fi 12051 12052if test -n "$cf_new_extra_cppflags" ; then 12053 12054 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 12055fi 12056 12057cf_add_libs="$cf_pkgconfig_libs" 12058# Filter out duplicates - this happens with badly-designed ".pc" files... 12059for cf_add_1lib in $LIBS 12060do 12061 for cf_add_2lib in $cf_add_libs 12062 do 12063 if test "x$cf_add_1lib" = "x$cf_add_2lib" 12064 then 12065 cf_add_1lib= 12066 break 12067 fi 12068 done 12069 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 12070done 12071LIBS="$cf_add_libs" 12072 12073 : 12074else 12075 cf_pkgconfig_incs= 12076 cf_pkgconfig_libs= 12077 { echo "$as_me:12077: WARNING: unable to find Xt library" >&5 12078echo "$as_me: WARNING: unable to find Xt library" >&2;} 12079fi 12080 12081fi 12082 12083cf_have_X_LIBS=no 12084 12085if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then 12086 test -n "$verbose" && echo " found package xt" 1>&6 12087 12088echo "${as_me:-configure}:12088: testing found package xt ..." 1>&5 12089 12090 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`" 12091 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`" 12092 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6 12093 12094echo "${as_me:-configure}:12094: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5 12095 12096 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6 12097 12098echo "${as_me:-configure}:12098: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5 12099 12100cf_fix_cppflags=no 12101cf_new_cflags= 12102cf_new_cppflags= 12103cf_new_extra_cppflags= 12104 12105for cf_add_cflags in $cf_pkgconfig_incs 12106do 12107case $cf_fix_cppflags in 12108(no) 12109 case $cf_add_cflags in 12110 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 12111 case $cf_add_cflags in 12112 (-D*) 12113 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 12114 12115 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12116 && test -z "${cf_tst_cflags}" \ 12117 && cf_fix_cppflags=yes 12118 12119 if test $cf_fix_cppflags = yes ; then 12120 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 12121 continue 12122 elif test "${cf_tst_cflags}" = "\"'" ; then 12123 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 12124 continue 12125 fi 12126 ;; 12127 esac 12128 case "$CPPFLAGS" in 12129 (*$cf_add_cflags) 12130 ;; 12131 (*) 12132 case $cf_add_cflags in 12133 (-D*) 12134 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 12135 12136CPPFLAGS=`echo "$CPPFLAGS" | \ 12137 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 12138 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 12139 12140 ;; 12141 esac 12142 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 12143 ;; 12144 esac 12145 ;; 12146 (*) 12147 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 12148 ;; 12149 esac 12150 ;; 12151(yes) 12152 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 12153 12154 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 12155 12156 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12157 && test -z "${cf_tst_cflags}" \ 12158 && cf_fix_cppflags=no 12159 ;; 12160esac 12161done 12162 12163if test -n "$cf_new_cflags" ; then 12164 12165 CFLAGS="$CFLAGS $cf_new_cflags" 12166fi 12167 12168if test -n "$cf_new_cppflags" ; then 12169 12170 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 12171fi 12172 12173if test -n "$cf_new_extra_cppflags" ; then 12174 12175 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 12176fi 12177 12178cf_add_libs="$cf_pkgconfig_libs" 12179# Filter out duplicates - this happens with badly-designed ".pc" files... 12180for cf_add_1lib in $LIBS 12181do 12182 for cf_add_2lib in $cf_add_libs 12183 do 12184 if test "x$cf_add_1lib" = "x$cf_add_2lib" 12185 then 12186 cf_add_1lib= 12187 break 12188 fi 12189 done 12190 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 12191done 12192LIBS="$cf_add_libs" 12193 12194 case "x$LIBS" in 12195 (*-lX11*) 12196 ;; 12197 (*) 12198# we have an "xt" package, but it may omit Xt's dependency on X11 12199echo "$as_me:12199: checking for usable X dependency" >&5 12200echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6 12201if test "${cf_cv_xt_x11_compat+set}" = set; then 12202 echo $ECHO_N "(cached) $ECHO_C" >&6 12203else 12204 12205cat >conftest.$ac_ext <<_ACEOF 12206#line 12206 "configure" 12207#include "confdefs.h" 12208 12209#include <X11/Xlib.h> 12210 12211int 12212main () 12213{ 12214 12215 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0); 12216 int rc2 = XClearWindow((Display*) 0, (Window) 0); 12217 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0); 12218 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0); 12219 12220 ; 12221 return 0; 12222} 12223_ACEOF 12224rm -f conftest.$ac_objext conftest$ac_exeext 12225if { (eval echo "$as_me:12225: \"$ac_link\"") >&5 12226 (eval $ac_link) 2>&5 12227 ac_status=$? 12228 echo "$as_me:12228: \$? = $ac_status" >&5 12229 (exit $ac_status); } && 12230 { ac_try='test -s conftest$ac_exeext' 12231 { (eval echo "$as_me:12231: \"$ac_try\"") >&5 12232 (eval $ac_try) 2>&5 12233 ac_status=$? 12234 echo "$as_me:12234: \$? = $ac_status" >&5 12235 (exit $ac_status); }; }; then 12236 cf_cv_xt_x11_compat=yes 12237else 12238 echo "$as_me: failed program was:" >&5 12239cat conftest.$ac_ext >&5 12240cf_cv_xt_x11_compat=no 12241fi 12242rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12243fi 12244echo "$as_me:12244: result: $cf_cv_xt_x11_compat" >&5 12245echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6 12246 if test "$cf_cv_xt_x11_compat" = no 12247 then 12248 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6 12249 12250echo "${as_me:-configure}:12250: testing work around broken X11 dependency ..." 1>&5 12251 12252 # 2010/11/19 - good enough until a working Xt on Xcb is delivered. 12253 12254if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then 12255 test -n "$verbose" && echo " found package x11" 1>&6 12256 12257echo "${as_me:-configure}:12257: testing found package x11 ..." 1>&5 12258 12259 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`" 12260 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`" 12261 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6 12262 12263echo "${as_me:-configure}:12263: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 12264 12265 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6 12266 12267echo "${as_me:-configure}:12267: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5 12268 12269cf_fix_cppflags=no 12270cf_new_cflags= 12271cf_new_cppflags= 12272cf_new_extra_cppflags= 12273 12274for cf_add_cflags in $cf_pkgconfig_incs 12275do 12276case $cf_fix_cppflags in 12277(no) 12278 case $cf_add_cflags in 12279 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 12280 case $cf_add_cflags in 12281 (-D*) 12282 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 12283 12284 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12285 && test -z "${cf_tst_cflags}" \ 12286 && cf_fix_cppflags=yes 12287 12288 if test $cf_fix_cppflags = yes ; then 12289 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 12290 continue 12291 elif test "${cf_tst_cflags}" = "\"'" ; then 12292 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 12293 continue 12294 fi 12295 ;; 12296 esac 12297 case "$CPPFLAGS" in 12298 (*$cf_add_cflags) 12299 ;; 12300 (*) 12301 case $cf_add_cflags in 12302 (-D*) 12303 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 12304 12305CPPFLAGS=`echo "$CPPFLAGS" | \ 12306 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 12307 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 12308 12309 ;; 12310 esac 12311 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 12312 ;; 12313 esac 12314 ;; 12315 (*) 12316 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 12317 ;; 12318 esac 12319 ;; 12320(yes) 12321 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 12322 12323 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 12324 12325 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12326 && test -z "${cf_tst_cflags}" \ 12327 && cf_fix_cppflags=no 12328 ;; 12329esac 12330done 12331 12332if test -n "$cf_new_cflags" ; then 12333 12334 CFLAGS="$CFLAGS $cf_new_cflags" 12335fi 12336 12337if test -n "$cf_new_cppflags" ; then 12338 12339 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 12340fi 12341 12342if test -n "$cf_new_extra_cppflags" ; then 12343 12344 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 12345fi 12346 12347cf_add_libs="$cf_pkgconfig_libs" 12348# Filter out duplicates - this happens with badly-designed ".pc" files... 12349for cf_add_1lib in $LIBS 12350do 12351 for cf_add_2lib in $cf_add_libs 12352 do 12353 if test "x$cf_add_1lib" = "x$cf_add_2lib" 12354 then 12355 cf_add_1lib= 12356 break 12357 fi 12358 done 12359 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 12360done 12361LIBS="$cf_add_libs" 12362 12363 : 12364else 12365 cf_pkgconfig_incs= 12366 cf_pkgconfig_libs= 12367 12368test -n "$verbose" && echo " ...before $LIBS" 1>&6 12369 12370echo "${as_me:-configure}:12370: testing ...before $LIBS ..." 1>&5 12371 12372LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'` 12373test -n "$verbose" && echo " ...after $LIBS" 1>&6 12374 12375echo "${as_me:-configure}:12375: testing ...after $LIBS ..." 1>&5 12376 12377fi 12378 12379 fi 12380 ;; 12381 esac 12382 12383echo "$as_me:12383: checking for usable X Toolkit package" >&5 12384echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6 12385if test "${cf_cv_xt_ice_compat+set}" = set; then 12386 echo $ECHO_N "(cached) $ECHO_C" >&6 12387else 12388 12389cat >conftest.$ac_ext <<_ACEOF 12390#line 12390 "configure" 12391#include "confdefs.h" 12392 12393#include <X11/Shell.h> 12394 12395int 12396main () 12397{ 12398int num = IceConnectionNumber(0) 12399 12400 ; 12401 return 0; 12402} 12403_ACEOF 12404rm -f conftest.$ac_objext conftest$ac_exeext 12405if { (eval echo "$as_me:12405: \"$ac_link\"") >&5 12406 (eval $ac_link) 2>&5 12407 ac_status=$? 12408 echo "$as_me:12408: \$? = $ac_status" >&5 12409 (exit $ac_status); } && 12410 { ac_try='test -s conftest$ac_exeext' 12411 { (eval echo "$as_me:12411: \"$ac_try\"") >&5 12412 (eval $ac_try) 2>&5 12413 ac_status=$? 12414 echo "$as_me:12414: \$? = $ac_status" >&5 12415 (exit $ac_status); }; }; then 12416 cf_cv_xt_ice_compat=yes 12417else 12418 echo "$as_me: failed program was:" >&5 12419cat conftest.$ac_ext >&5 12420cf_cv_xt_ice_compat=no 12421fi 12422rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12423fi 12424echo "$as_me:12424: result: $cf_cv_xt_ice_compat" >&5 12425echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6 12426 12427 if test "$cf_cv_xt_ice_compat" = no 12428 then 12429 # workaround for broken ".pc" files used for X Toolkit. 12430 case "x$X_PRE_LIBS" in 12431 (*-lICE*) 12432 case "x$LIBS" in 12433 (*-lICE*) 12434 ;; 12435 (*) 12436 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6 12437 12438echo "${as_me:-configure}:12438: testing work around broken ICE dependency ..." 1>&5 12439 12440if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then 12441 test -n "$verbose" && echo " found package ice" 1>&6 12442 12443echo "${as_me:-configure}:12443: testing found package ice ..." 1>&5 12444 12445 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`" 12446 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`" 12447 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6 12448 12449echo "${as_me:-configure}:12449: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5 12450 12451 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6 12452 12453echo "${as_me:-configure}:12453: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5 12454 12455cf_fix_cppflags=no 12456cf_new_cflags= 12457cf_new_cppflags= 12458cf_new_extra_cppflags= 12459 12460for cf_add_cflags in $cf_pkgconfig_incs 12461do 12462case $cf_fix_cppflags in 12463(no) 12464 case $cf_add_cflags in 12465 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 12466 case $cf_add_cflags in 12467 (-D*) 12468 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 12469 12470 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12471 && test -z "${cf_tst_cflags}" \ 12472 && cf_fix_cppflags=yes 12473 12474 if test $cf_fix_cppflags = yes ; then 12475 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 12476 continue 12477 elif test "${cf_tst_cflags}" = "\"'" ; then 12478 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 12479 continue 12480 fi 12481 ;; 12482 esac 12483 case "$CPPFLAGS" in 12484 (*$cf_add_cflags) 12485 ;; 12486 (*) 12487 case $cf_add_cflags in 12488 (-D*) 12489 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 12490 12491CPPFLAGS=`echo "$CPPFLAGS" | \ 12492 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 12493 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 12494 12495 ;; 12496 esac 12497 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 12498 ;; 12499 esac 12500 ;; 12501 (*) 12502 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 12503 ;; 12504 esac 12505 ;; 12506(yes) 12507 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 12508 12509 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 12510 12511 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12512 && test -z "${cf_tst_cflags}" \ 12513 && cf_fix_cppflags=no 12514 ;; 12515esac 12516done 12517 12518if test -n "$cf_new_cflags" ; then 12519 12520 CFLAGS="$CFLAGS $cf_new_cflags" 12521fi 12522 12523if test -n "$cf_new_cppflags" ; then 12524 12525 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 12526fi 12527 12528if test -n "$cf_new_extra_cppflags" ; then 12529 12530 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 12531fi 12532 12533cf_add_libs="$cf_pkgconfig_libs" 12534# Filter out duplicates - this happens with badly-designed ".pc" files... 12535for cf_add_1lib in $LIBS 12536do 12537 for cf_add_2lib in $cf_add_libs 12538 do 12539 if test "x$cf_add_1lib" = "x$cf_add_2lib" 12540 then 12541 cf_add_1lib= 12542 break 12543 fi 12544 done 12545 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 12546done 12547LIBS="$cf_add_libs" 12548 12549if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then 12550 test -n "$verbose" && echo " found package sm" 1>&6 12551 12552echo "${as_me:-configure}:12552: testing found package sm ..." 1>&5 12553 12554 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`" 12555 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`" 12556 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6 12557 12558echo "${as_me:-configure}:12558: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5 12559 12560 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6 12561 12562echo "${as_me:-configure}:12562: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5 12563 12564cf_fix_cppflags=no 12565cf_new_cflags= 12566cf_new_cppflags= 12567cf_new_extra_cppflags= 12568 12569for cf_add_cflags in $cf_pkgconfig_incs 12570do 12571case $cf_fix_cppflags in 12572(no) 12573 case $cf_add_cflags in 12574 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 12575 case $cf_add_cflags in 12576 (-D*) 12577 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 12578 12579 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12580 && test -z "${cf_tst_cflags}" \ 12581 && cf_fix_cppflags=yes 12582 12583 if test $cf_fix_cppflags = yes ; then 12584 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 12585 continue 12586 elif test "${cf_tst_cflags}" = "\"'" ; then 12587 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 12588 continue 12589 fi 12590 ;; 12591 esac 12592 case "$CPPFLAGS" in 12593 (*$cf_add_cflags) 12594 ;; 12595 (*) 12596 case $cf_add_cflags in 12597 (-D*) 12598 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 12599 12600CPPFLAGS=`echo "$CPPFLAGS" | \ 12601 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 12602 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 12603 12604 ;; 12605 esac 12606 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 12607 ;; 12608 esac 12609 ;; 12610 (*) 12611 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 12612 ;; 12613 esac 12614 ;; 12615(yes) 12616 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 12617 12618 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 12619 12620 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12621 && test -z "${cf_tst_cflags}" \ 12622 && cf_fix_cppflags=no 12623 ;; 12624esac 12625done 12626 12627if test -n "$cf_new_cflags" ; then 12628 12629 CFLAGS="$CFLAGS $cf_new_cflags" 12630fi 12631 12632if test -n "$cf_new_cppflags" ; then 12633 12634 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 12635fi 12636 12637if test -n "$cf_new_extra_cppflags" ; then 12638 12639 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 12640fi 12641 12642cf_add_libs="$cf_pkgconfig_libs" 12643# Filter out duplicates - this happens with badly-designed ".pc" files... 12644for cf_add_1lib in $LIBS 12645do 12646 for cf_add_2lib in $cf_add_libs 12647 do 12648 if test "x$cf_add_1lib" = "x$cf_add_2lib" 12649 then 12650 cf_add_1lib= 12651 break 12652 fi 12653 done 12654 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 12655done 12656LIBS="$cf_add_libs" 12657 12658 : 12659else 12660 cf_pkgconfig_incs= 12661 cf_pkgconfig_libs= 12662 : 12663fi 12664 12665else 12666 cf_pkgconfig_incs= 12667 cf_pkgconfig_libs= 12668 12669test -n "$verbose" && echo " ...before $LIBS" 1>&6 12670 12671echo "${as_me:-configure}:12671: testing ...before $LIBS ..." 1>&5 12672 12673LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'` 12674test -n "$verbose" && echo " ...after $LIBS" 1>&6 12675 12676echo "${as_me:-configure}:12676: testing ...after $LIBS ..." 1>&5 12677 12678fi 12679 12680 ;; 12681 esac 12682 ;; 12683 esac 12684 fi 12685 12686 cf_have_X_LIBS=yes 12687 12688else 12689 cf_pkgconfig_incs= 12690 cf_pkgconfig_libs= 12691 12692 LDFLAGS="$X_LIBS $LDFLAGS" 12693 12694test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6 12695 12696echo "${as_me:-configure}:12696: testing checking additions to CFLAGS ..." 1>&5 12697 12698cf_check_cflags="$CFLAGS" 12699cf_check_cppflags="$CPPFLAGS" 12700 12701cf_fix_cppflags=no 12702cf_new_cflags= 12703cf_new_cppflags= 12704cf_new_extra_cppflags= 12705 12706for cf_add_cflags in $X_CFLAGS 12707do 12708case $cf_fix_cppflags in 12709(no) 12710 case $cf_add_cflags in 12711 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 12712 case $cf_add_cflags in 12713 (-D*) 12714 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 12715 12716 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12717 && test -z "${cf_tst_cflags}" \ 12718 && cf_fix_cppflags=yes 12719 12720 if test $cf_fix_cppflags = yes ; then 12721 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 12722 continue 12723 elif test "${cf_tst_cflags}" = "\"'" ; then 12724 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 12725 continue 12726 fi 12727 ;; 12728 esac 12729 case "$CPPFLAGS" in 12730 (*$cf_add_cflags) 12731 ;; 12732 (*) 12733 case $cf_add_cflags in 12734 (-D*) 12735 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 12736 12737CPPFLAGS=`echo "$CPPFLAGS" | \ 12738 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 12739 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 12740 12741 ;; 12742 esac 12743 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 12744 ;; 12745 esac 12746 ;; 12747 (*) 12748 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 12749 ;; 12750 esac 12751 ;; 12752(yes) 12753 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 12754 12755 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 12756 12757 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12758 && test -z "${cf_tst_cflags}" \ 12759 && cf_fix_cppflags=no 12760 ;; 12761esac 12762done 12763 12764if test -n "$cf_new_cflags" ; then 12765 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 12766 12767echo "${as_me:-configure}:12767: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 12768 12769 CFLAGS="$CFLAGS $cf_new_cflags" 12770fi 12771 12772if test -n "$cf_new_cppflags" ; then 12773 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 12774 12775echo "${as_me:-configure}:12775: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 12776 12777 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 12778fi 12779 12780if test -n "$cf_new_extra_cppflags" ; then 12781 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6 12782 12783echo "${as_me:-configure}:12783: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5 12784 12785 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 12786fi 12787 12788if test "x$cf_check_cflags" != "x$CFLAGS" ; then 12789cat >conftest.$ac_ext <<_ACEOF 12790#line 12790 "configure" 12791#include "confdefs.h" 12792#include <stdio.h> 12793int 12794main () 12795{ 12796printf("Hello world"); 12797 ; 12798 return 0; 12799} 12800_ACEOF 12801rm -f conftest.$ac_objext conftest$ac_exeext 12802if { (eval echo "$as_me:12802: \"$ac_link\"") >&5 12803 (eval $ac_link) 2>&5 12804 ac_status=$? 12805 echo "$as_me:12805: \$? = $ac_status" >&5 12806 (exit $ac_status); } && 12807 { ac_try='test -s conftest$ac_exeext' 12808 { (eval echo "$as_me:12808: \"$ac_try\"") >&5 12809 (eval $ac_try) 2>&5 12810 ac_status=$? 12811 echo "$as_me:12811: \$? = $ac_status" >&5 12812 (exit $ac_status); }; }; then 12813 : 12814else 12815 echo "$as_me: failed program was:" >&5 12816cat conftest.$ac_ext >&5 12817test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6 12818 12819echo "${as_me:-configure}:12819: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5 12820 12821 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then 12822 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6 12823 12824echo "${as_me:-configure}:12824: testing but keeping change to \$CPPFLAGS ..." 1>&5 12825 12826 fi 12827 CFLAGS="$cf_check_flags" 12828fi 12829rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12830fi 12831 12832 echo "$as_me:12832: checking for XOpenDisplay" >&5 12833echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6 12834if test "${ac_cv_func_XOpenDisplay+set}" = set; then 12835 echo $ECHO_N "(cached) $ECHO_C" >&6 12836else 12837 cat >conftest.$ac_ext <<_ACEOF 12838#line 12838 "configure" 12839#include "confdefs.h" 12840/* System header to define __stub macros and hopefully few prototypes, 12841 which can conflict with char XOpenDisplay (); below. */ 12842#include <assert.h> 12843/* Override any gcc2 internal prototype to avoid an error. */ 12844#ifdef __cplusplus 12845extern "C" 12846#endif 12847/* We use char because int might match the return type of a gcc2 12848 builtin and then its argument prototype would still apply. */ 12849char XOpenDisplay (); 12850char (*f) (); 12851 12852int 12853main () 12854{ 12855/* The GNU C library defines this for functions which it implements 12856 to always fail with ENOSYS. Some functions are actually named 12857 something starting with __ and the normal name is an alias. */ 12858#if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay) 12859choke me 12860#else 12861f = XOpenDisplay; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 12862#endif 12863 12864 ; 12865 return 0; 12866} 12867_ACEOF 12868rm -f conftest.$ac_objext conftest$ac_exeext 12869if { (eval echo "$as_me:12869: \"$ac_link\"") >&5 12870 (eval $ac_link) 2>&5 12871 ac_status=$? 12872 echo "$as_me:12872: \$? = $ac_status" >&5 12873 (exit $ac_status); } && 12874 { ac_try='test -s conftest$ac_exeext' 12875 { (eval echo "$as_me:12875: \"$ac_try\"") >&5 12876 (eval $ac_try) 2>&5 12877 ac_status=$? 12878 echo "$as_me:12878: \$? = $ac_status" >&5 12879 (exit $ac_status); }; }; then 12880 ac_cv_func_XOpenDisplay=yes 12881else 12882 echo "$as_me: failed program was:" >&5 12883cat conftest.$ac_ext >&5 12884ac_cv_func_XOpenDisplay=no 12885fi 12886rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12887fi 12888echo "$as_me:12888: result: $ac_cv_func_XOpenDisplay" >&5 12889echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6 12890if test $ac_cv_func_XOpenDisplay = yes; then 12891 : 12892else 12893 12894 echo "$as_me:12894: checking for XOpenDisplay in -lX11" >&5 12895echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6 12896if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then 12897 echo $ECHO_N "(cached) $ECHO_C" >&6 12898else 12899 ac_check_lib_save_LIBS=$LIBS 12900LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS" 12901cat >conftest.$ac_ext <<_ACEOF 12902#line 12902 "configure" 12903#include "confdefs.h" 12904 12905/* Override any gcc2 internal prototype to avoid an error. */ 12906#ifdef __cplusplus 12907extern "C" 12908#endif 12909/* We use char because int might match the return type of a gcc2 12910 builtin and then its argument prototype would still apply. */ 12911char XOpenDisplay (); 12912int 12913main () 12914{ 12915XOpenDisplay (); 12916 ; 12917 return 0; 12918} 12919_ACEOF 12920rm -f conftest.$ac_objext conftest$ac_exeext 12921if { (eval echo "$as_me:12921: \"$ac_link\"") >&5 12922 (eval $ac_link) 2>&5 12923 ac_status=$? 12924 echo "$as_me:12924: \$? = $ac_status" >&5 12925 (exit $ac_status); } && 12926 { ac_try='test -s conftest$ac_exeext' 12927 { (eval echo "$as_me:12927: \"$ac_try\"") >&5 12928 (eval $ac_try) 2>&5 12929 ac_status=$? 12930 echo "$as_me:12930: \$? = $ac_status" >&5 12931 (exit $ac_status); }; }; then 12932 ac_cv_lib_X11_XOpenDisplay=yes 12933else 12934 echo "$as_me: failed program was:" >&5 12935cat conftest.$ac_ext >&5 12936ac_cv_lib_X11_XOpenDisplay=no 12937fi 12938rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12939LIBS=$ac_check_lib_save_LIBS 12940fi 12941echo "$as_me:12941: result: $ac_cv_lib_X11_XOpenDisplay" >&5 12942echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6 12943if test $ac_cv_lib_X11_XOpenDisplay = yes; then 12944 12945cf_add_libs="-lX11" 12946# Filter out duplicates - this happens with badly-designed ".pc" files... 12947for cf_add_1lib in $LIBS 12948do 12949 for cf_add_2lib in $cf_add_libs 12950 do 12951 if test "x$cf_add_1lib" = "x$cf_add_2lib" 12952 then 12953 cf_add_1lib= 12954 break 12955 fi 12956 done 12957 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 12958done 12959LIBS="$cf_add_libs" 12960 12961fi 12962 12963fi 12964 12965 echo "$as_me:12965: checking for XtAppInitialize" >&5 12966echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6 12967if test "${ac_cv_func_XtAppInitialize+set}" = set; then 12968 echo $ECHO_N "(cached) $ECHO_C" >&6 12969else 12970 cat >conftest.$ac_ext <<_ACEOF 12971#line 12971 "configure" 12972#include "confdefs.h" 12973/* System header to define __stub macros and hopefully few prototypes, 12974 which can conflict with char XtAppInitialize (); below. */ 12975#include <assert.h> 12976/* Override any gcc2 internal prototype to avoid an error. */ 12977#ifdef __cplusplus 12978extern "C" 12979#endif 12980/* We use char because int might match the return type of a gcc2 12981 builtin and then its argument prototype would still apply. */ 12982char XtAppInitialize (); 12983char (*f) (); 12984 12985int 12986main () 12987{ 12988/* The GNU C library defines this for functions which it implements 12989 to always fail with ENOSYS. Some functions are actually named 12990 something starting with __ and the normal name is an alias. */ 12991#if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize) 12992choke me 12993#else 12994f = XtAppInitialize; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 12995#endif 12996 12997 ; 12998 return 0; 12999} 13000_ACEOF 13001rm -f conftest.$ac_objext conftest$ac_exeext 13002if { (eval echo "$as_me:13002: \"$ac_link\"") >&5 13003 (eval $ac_link) 2>&5 13004 ac_status=$? 13005 echo "$as_me:13005: \$? = $ac_status" >&5 13006 (exit $ac_status); } && 13007 { ac_try='test -s conftest$ac_exeext' 13008 { (eval echo "$as_me:13008: \"$ac_try\"") >&5 13009 (eval $ac_try) 2>&5 13010 ac_status=$? 13011 echo "$as_me:13011: \$? = $ac_status" >&5 13012 (exit $ac_status); }; }; then 13013 ac_cv_func_XtAppInitialize=yes 13014else 13015 echo "$as_me: failed program was:" >&5 13016cat conftest.$ac_ext >&5 13017ac_cv_func_XtAppInitialize=no 13018fi 13019rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13020fi 13021echo "$as_me:13021: result: $ac_cv_func_XtAppInitialize" >&5 13022echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6 13023if test $ac_cv_func_XtAppInitialize = yes; then 13024 : 13025else 13026 13027 echo "$as_me:13027: checking for XtAppInitialize in -lXt" >&5 13028echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6 13029if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then 13030 echo $ECHO_N "(cached) $ECHO_C" >&6 13031else 13032 ac_check_lib_save_LIBS=$LIBS 13033LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS" 13034cat >conftest.$ac_ext <<_ACEOF 13035#line 13035 "configure" 13036#include "confdefs.h" 13037 13038/* Override any gcc2 internal prototype to avoid an error. */ 13039#ifdef __cplusplus 13040extern "C" 13041#endif 13042/* We use char because int might match the return type of a gcc2 13043 builtin and then its argument prototype would still apply. */ 13044char XtAppInitialize (); 13045int 13046main () 13047{ 13048XtAppInitialize (); 13049 ; 13050 return 0; 13051} 13052_ACEOF 13053rm -f conftest.$ac_objext conftest$ac_exeext 13054if { (eval echo "$as_me:13054: \"$ac_link\"") >&5 13055 (eval $ac_link) 2>&5 13056 ac_status=$? 13057 echo "$as_me:13057: \$? = $ac_status" >&5 13058 (exit $ac_status); } && 13059 { ac_try='test -s conftest$ac_exeext' 13060 { (eval echo "$as_me:13060: \"$ac_try\"") >&5 13061 (eval $ac_try) 2>&5 13062 ac_status=$? 13063 echo "$as_me:13063: \$? = $ac_status" >&5 13064 (exit $ac_status); }; }; then 13065 ac_cv_lib_Xt_XtAppInitialize=yes 13066else 13067 echo "$as_me: failed program was:" >&5 13068cat conftest.$ac_ext >&5 13069ac_cv_lib_Xt_XtAppInitialize=no 13070fi 13071rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13072LIBS=$ac_check_lib_save_LIBS 13073fi 13074echo "$as_me:13074: result: $ac_cv_lib_Xt_XtAppInitialize" >&5 13075echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6 13076if test $ac_cv_lib_Xt_XtAppInitialize = yes; then 13077 13078cat >>confdefs.h <<\EOF 13079#define HAVE_LIBXT 1 13080EOF 13081 13082 cf_have_X_LIBS=Xt 13083 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS" 13084fi 13085 13086fi 13087 13088fi 13089 13090if test $cf_have_X_LIBS = no ; then 13091 { echo "$as_me:13091: WARNING: Unable to successfully link X Toolkit library (-lXt) with 13092test program. You will have to check and add the proper libraries by hand 13093to makefile." >&5 13094echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with 13095test program. You will have to check and add the proper libraries by hand 13096to makefile." >&2;} 13097fi 13098 13099cf_x_athena_root=$cf_x_athena 13100cf_x_athena_inc="" 13101 13102for cf_path in default \ 13103 /usr/contrib/X11R6 \ 13104 /usr/contrib/X11R5 \ 13105 /usr/lib/X11R5 \ 13106 /usr/local 13107do 13108 if test -z "$cf_x_athena_inc" ; then 13109 cf_save="$CPPFLAGS" 13110 cf_test=X11/$cf_x_athena_root/SimpleMenu.h 13111 if test $cf_path != default ; then 13112 CPPFLAGS="$cf_save -I$cf_path/include" 13113 echo "$as_me:13113: checking for $cf_test in $cf_path" >&5 13114echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6 13115 else 13116 echo "$as_me:13116: checking for $cf_test" >&5 13117echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6 13118 fi 13119 cat >conftest.$ac_ext <<_ACEOF 13120#line 13120 "configure" 13121#include "confdefs.h" 13122 13123#include <X11/Intrinsic.h> 13124#include <$cf_test> 13125int 13126main () 13127{ 13128 13129 ; 13130 return 0; 13131} 13132_ACEOF 13133rm -f conftest.$ac_objext 13134if { (eval echo "$as_me:13134: \"$ac_compile\"") >&5 13135 (eval $ac_compile) 2>&5 13136 ac_status=$? 13137 echo "$as_me:13137: \$? = $ac_status" >&5 13138 (exit $ac_status); } && 13139 { ac_try='test -s conftest.$ac_objext' 13140 { (eval echo "$as_me:13140: \"$ac_try\"") >&5 13141 (eval $ac_try) 2>&5 13142 ac_status=$? 13143 echo "$as_me:13143: \$? = $ac_status" >&5 13144 (exit $ac_status); }; }; then 13145 cf_result=yes 13146else 13147 echo "$as_me: failed program was:" >&5 13148cat conftest.$ac_ext >&5 13149cf_result=no 13150fi 13151rm -f conftest.$ac_objext conftest.$ac_ext 13152 echo "$as_me:13152: result: $cf_result" >&5 13153echo "${ECHO_T}$cf_result" >&6 13154 if test "$cf_result" = yes ; then 13155 cf_x_athena_inc=$cf_path 13156 break 13157 else 13158 CPPFLAGS="$cf_save" 13159 fi 13160 fi 13161done 13162 13163if test -z "$cf_x_athena_inc" ; then 13164 { echo "$as_me:13164: WARNING: Unable to successfully find Athena header files with test program" >&5 13165echo "$as_me: WARNING: Unable to successfully find Athena header files with test program" >&2;} 13166elif test "$cf_x_athena_inc" != default ; then 13167 CPPFLAGS="$CPPFLAGS -I$cf_x_athena_inc" 13168fi 13169 13170cf_x_athena_root=$cf_x_athena 13171cf_x_athena_lib="" 13172 13173for cf_path in default \ 13174 /usr/contrib/X11R6 \ 13175 /usr/contrib/X11R5 \ 13176 /usr/lib/X11R5 \ 13177 /usr/local 13178do 13179 for cf_lib in \ 13180 ${cf_x_athena_root} \ 13181 ${cf_x_athena_root}7 \ 13182 ${cf_x_athena_root}6 13183 do 13184 for cf_libs in \ 13185 "-l$cf_lib -lXmu" \ 13186 "-l$cf_lib -lXpm -lXmu" \ 13187 "-l${cf_lib}_s -lXmu_s" 13188 do 13189 if test -z "$cf_x_athena_lib" ; then 13190 cf_save="$LIBS" 13191 cf_test=XawSimpleMenuAddGlobalActions 13192 if test $cf_path != default ; then 13193 13194cf_add_libs="-L$cf_path/lib $cf_libs" 13195# Filter out duplicates - this happens with badly-designed ".pc" files... 13196for cf_add_1lib in $LIBS 13197do 13198 for cf_add_2lib in $cf_add_libs 13199 do 13200 if test "x$cf_add_1lib" = "x$cf_add_2lib" 13201 then 13202 cf_add_1lib= 13203 break 13204 fi 13205 done 13206 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 13207done 13208LIBS="$cf_add_libs" 13209 13210 echo "$as_me:13210: checking for $cf_libs in $cf_path" >&5 13211echo $ECHO_N "checking for $cf_libs in $cf_path... $ECHO_C" >&6 13212 else 13213 13214cf_add_libs="$cf_libs" 13215# Filter out duplicates - this happens with badly-designed ".pc" files... 13216for cf_add_1lib in $LIBS 13217do 13218 for cf_add_2lib in $cf_add_libs 13219 do 13220 if test "x$cf_add_1lib" = "x$cf_add_2lib" 13221 then 13222 cf_add_1lib= 13223 break 13224 fi 13225 done 13226 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 13227done 13228LIBS="$cf_add_libs" 13229 13230 echo "$as_me:13230: checking for $cf_test in $cf_libs" >&5 13231echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6 13232 fi 13233 cat >conftest.$ac_ext <<_ACEOF 13234#line 13234 "configure" 13235#include "confdefs.h" 13236 13237#include <X11/Intrinsic.h> 13238#include <X11/$cf_x_athena_root/SimpleMenu.h> 13239 13240int 13241main () 13242{ 13243 13244$cf_test((XtAppContext) 0) 13245 ; 13246 return 0; 13247} 13248_ACEOF 13249rm -f conftest.$ac_objext conftest$ac_exeext 13250if { (eval echo "$as_me:13250: \"$ac_link\"") >&5 13251 (eval $ac_link) 2>&5 13252 ac_status=$? 13253 echo "$as_me:13253: \$? = $ac_status" >&5 13254 (exit $ac_status); } && 13255 { ac_try='test -s conftest$ac_exeext' 13256 { (eval echo "$as_me:13256: \"$ac_try\"") >&5 13257 (eval $ac_try) 2>&5 13258 ac_status=$? 13259 echo "$as_me:13259: \$? = $ac_status" >&5 13260 (exit $ac_status); }; }; then 13261 cf_result=yes 13262else 13263 echo "$as_me: failed program was:" >&5 13264cat conftest.$ac_ext >&5 13265cf_result=no 13266fi 13267rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13268 echo "$as_me:13268: result: $cf_result" >&5 13269echo "${ECHO_T}$cf_result" >&6 13270 if test "$cf_result" = yes ; then 13271 cf_x_athena_lib="$cf_libs" 13272 break 13273 fi 13274 LIBS="$cf_save" 13275 fi 13276 done # cf_libs 13277 test -n "$cf_x_athena_lib" && break 13278 done # cf_lib 13279done 13280 13281if test -z "$cf_x_athena_lib" ; then 13282 { { echo "$as_me:13282: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5 13283echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;} 13284 { (exit 1); exit 1; }; } 13285fi 13286 13287cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 13288 13289cat >>confdefs.h <<EOF 13290#define $cf_x_athena_LIBS 1 13291EOF 13292 13293fi 13294 13295for ac_header in X11/Xpoll.h 13296do 13297as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13298echo "$as_me:13298: checking for $ac_header" >&5 13299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13300if eval "test \"\${$as_ac_Header+set}\" = set"; then 13301 echo $ECHO_N "(cached) $ECHO_C" >&6 13302else 13303 cat >conftest.$ac_ext <<_ACEOF 13304#line 13304 "configure" 13305#include "confdefs.h" 13306#include <$ac_header> 13307_ACEOF 13308if { (eval echo "$as_me:13308: \"$ac_cpp conftest.$ac_ext\"") >&5 13309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 13310 ac_status=$? 13311 egrep -v '^ *\+' conftest.er1 >conftest.err 13312 rm -f conftest.er1 13313 cat conftest.err >&5 13314 echo "$as_me:13314: \$? = $ac_status" >&5 13315 (exit $ac_status); } >/dev/null; then 13316 if test -s conftest.err; then 13317 ac_cpp_err=$ac_c_preproc_warn_flag 13318 else 13319 ac_cpp_err= 13320 fi 13321else 13322 ac_cpp_err=yes 13323fi 13324if test -z "$ac_cpp_err"; then 13325 eval "$as_ac_Header=yes" 13326else 13327 echo "$as_me: failed program was:" >&5 13328 cat conftest.$ac_ext >&5 13329 eval "$as_ac_Header=no" 13330fi 13331rm -f conftest.err conftest.$ac_ext 13332fi 13333echo "$as_me:13333: result: `eval echo '${'$as_ac_Header'}'`" >&5 13334echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13335if test `eval echo '${'$as_ac_Header'}'` = yes; then 13336 cat >>confdefs.h <<EOF 13337#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13338EOF 13339 13340fi 13341done 13342 13343echo "$as_me:13343: checking for declaration of fd_set" >&5 13344echo $ECHO_N "checking for declaration of fd_set... $ECHO_C" >&6 13345if test "${cf_cv_type_fd_set+set}" = set; then 13346 echo $ECHO_N "(cached) $ECHO_C" >&6 13347else 13348 13349echo "${as_me:-configure}:13349: testing sys/types alone ..." 1>&5 13350 13351cat >conftest.$ac_ext <<_ACEOF 13352#line 13352 "configure" 13353#include "confdefs.h" 13354 13355#include <sys/types.h> 13356int 13357main () 13358{ 13359fd_set x 13360 ; 13361 return 0; 13362} 13363_ACEOF 13364rm -f conftest.$ac_objext 13365if { (eval echo "$as_me:13365: \"$ac_compile\"") >&5 13366 (eval $ac_compile) 2>&5 13367 ac_status=$? 13368 echo "$as_me:13368: \$? = $ac_status" >&5 13369 (exit $ac_status); } && 13370 { ac_try='test -s conftest.$ac_objext' 13371 { (eval echo "$as_me:13371: \"$ac_try\"") >&5 13372 (eval $ac_try) 2>&5 13373 ac_status=$? 13374 echo "$as_me:13374: \$? = $ac_status" >&5 13375 (exit $ac_status); }; }; then 13376 cf_cv_type_fd_set=sys/types.h 13377else 13378 echo "$as_me: failed program was:" >&5 13379cat conftest.$ac_ext >&5 13380 13381echo "${as_me:-configure}:13381: testing X11/Xpoll.h ..." 1>&5 13382 13383cat >conftest.$ac_ext <<_ACEOF 13384#line 13384 "configure" 13385#include "confdefs.h" 13386 13387#ifdef HAVE_X11_XPOLL_H 13388#include <X11/Xpoll.h> 13389#endif 13390int 13391main () 13392{ 13393fd_set x 13394 ; 13395 return 0; 13396} 13397_ACEOF 13398rm -f conftest.$ac_objext 13399if { (eval echo "$as_me:13399: \"$ac_compile\"") >&5 13400 (eval $ac_compile) 2>&5 13401 ac_status=$? 13402 echo "$as_me:13402: \$? = $ac_status" >&5 13403 (exit $ac_status); } && 13404 { ac_try='test -s conftest.$ac_objext' 13405 { (eval echo "$as_me:13405: \"$ac_try\"") >&5 13406 (eval $ac_try) 2>&5 13407 ac_status=$? 13408 echo "$as_me:13408: \$? = $ac_status" >&5 13409 (exit $ac_status); }; }; then 13410 cf_cv_type_fd_set=X11/Xpoll.h 13411else 13412 echo "$as_me: failed program was:" >&5 13413cat conftest.$ac_ext >&5 13414 13415echo "${as_me:-configure}:13415: testing sys/select.h ..." 1>&5 13416 13417cat >conftest.$ac_ext <<_ACEOF 13418#line 13418 "configure" 13419#include "confdefs.h" 13420 13421#include <sys/types.h> 13422#include <sys/select.h> 13423int 13424main () 13425{ 13426fd_set x 13427 ; 13428 return 0; 13429} 13430_ACEOF 13431rm -f conftest.$ac_objext 13432if { (eval echo "$as_me:13432: \"$ac_compile\"") >&5 13433 (eval $ac_compile) 2>&5 13434 ac_status=$? 13435 echo "$as_me:13435: \$? = $ac_status" >&5 13436 (exit $ac_status); } && 13437 { ac_try='test -s conftest.$ac_objext' 13438 { (eval echo "$as_me:13438: \"$ac_try\"") >&5 13439 (eval $ac_try) 2>&5 13440 ac_status=$? 13441 echo "$as_me:13441: \$? = $ac_status" >&5 13442 (exit $ac_status); }; }; then 13443 cf_cv_type_fd_set=sys/select.h 13444else 13445 echo "$as_me: failed program was:" >&5 13446cat conftest.$ac_ext >&5 13447cf_cv_type_fd_set=unknown 13448fi 13449rm -f conftest.$ac_objext conftest.$ac_ext 13450fi 13451rm -f conftest.$ac_objext conftest.$ac_ext 13452fi 13453rm -f conftest.$ac_objext conftest.$ac_ext 13454fi 13455echo "$as_me:13455: result: $cf_cv_type_fd_set" >&5 13456echo "${ECHO_T}$cf_cv_type_fd_set" >&6 13457if test $cf_cv_type_fd_set = sys/select.h ; then 13458 13459cat >>confdefs.h <<\EOF 13460#define USE_SYS_SELECT_H 1 13461EOF 13462 13463fi 13464 13465echo "$as_me:13465: checking for declaration of fd_mask" >&5 13466echo $ECHO_N "checking for declaration of fd_mask... $ECHO_C" >&6 13467if test "${cf_cv_type_fd_mask+set}" = set; then 13468 echo $ECHO_N "(cached) $ECHO_C" >&6 13469else 13470 13471 if test x$cf_cv_type_fd_set = xX11/Xpoll.h ; then 13472 cat >conftest.$ac_ext <<_ACEOF 13473#line 13473 "configure" 13474#include "confdefs.h" 13475 13476#include <X11/Xpoll.h> 13477int 13478main () 13479{ 13480fd_mask x 13481 ; 13482 return 0; 13483} 13484_ACEOF 13485rm -f conftest.$ac_objext 13486if { (eval echo "$as_me:13486: \"$ac_compile\"") >&5 13487 (eval $ac_compile) 2>&5 13488 ac_status=$? 13489 echo "$as_me:13489: \$? = $ac_status" >&5 13490 (exit $ac_status); } && 13491 { ac_try='test -s conftest.$ac_objext' 13492 { (eval echo "$as_me:13492: \"$ac_try\"") >&5 13493 (eval $ac_try) 2>&5 13494 ac_status=$? 13495 echo "$as_me:13495: \$? = $ac_status" >&5 13496 (exit $ac_status); }; }; then 13497 : 13498else 13499 echo "$as_me: failed program was:" >&5 13500cat conftest.$ac_ext >&5 13501 13502echo "${as_me:-configure}:13502: testing if we must define CSRG_BASED ..." 1>&5 13503 13504# Xosdefs.h on Mac OS X may not define this (but it should). 13505 cat >conftest.$ac_ext <<_ACEOF 13506#line 13506 "configure" 13507#include "confdefs.h" 13508 13509#define CSRG_BASED 13510#include <X11/Xpoll.h> 13511int 13512main () 13513{ 13514fd_mask x 13515 ; 13516 return 0; 13517} 13518_ACEOF 13519rm -f conftest.$ac_objext 13520if { (eval echo "$as_me:13520: \"$ac_compile\"") >&5 13521 (eval $ac_compile) 2>&5 13522 ac_status=$? 13523 echo "$as_me:13523: \$? = $ac_status" >&5 13524 (exit $ac_status); } && 13525 { ac_try='test -s conftest.$ac_objext' 13526 { (eval echo "$as_me:13526: \"$ac_try\"") >&5 13527 (eval $ac_try) 2>&5 13528 ac_status=$? 13529 echo "$as_me:13529: \$? = $ac_status" >&5 13530 (exit $ac_status); }; }; then 13531 cf_cv_type_fd_mask=CSRG_BASED 13532else 13533 echo "$as_me: failed program was:" >&5 13534cat conftest.$ac_ext >&5 13535fi 13536rm -f conftest.$ac_objext conftest.$ac_ext 13537fi 13538rm -f conftest.$ac_objext conftest.$ac_ext 13539 else 13540 cf_cv_type_fd_mask=$cf_cv_type_fd_set 13541 fi 13542 13543fi 13544echo "$as_me:13544: result: $cf_cv_type_fd_mask" >&5 13545echo "${ECHO_T}$cf_cv_type_fd_mask" >&6 13546if test x$cf_cv_type_fd_mask = xCSRG_BASED ; then 13547 13548cat >>confdefs.h <<\EOF 13549#define CSRG_BASED 1 13550EOF 13551 13552fi 13553 13554echo "$as_me:13554: checking for IRIX 6.5 baud-rate redefinitions" >&5 13555echo $ECHO_N "checking for IRIX 6.5 baud-rate redefinitions... $ECHO_C" >&6 13556if test "${cf_cv_termio_c_ispeed+set}" = set; then 13557 echo $ECHO_N "(cached) $ECHO_C" >&6 13558else 13559 13560cat >conftest.$ac_ext <<_ACEOF 13561#line 13561 "configure" 13562#include "confdefs.h" 13563 13564#include <sys/types.h> 13565#include <sys/termio.h> 13566int 13567main () 13568{ 13569 13570struct termio foo; 13571foo.c_ispeed = B38400; 13572foo.c_ospeed = B9600; 13573 13574 ; 13575 return 0; 13576} 13577_ACEOF 13578rm -f conftest.$ac_objext 13579if { (eval echo "$as_me:13579: \"$ac_compile\"") >&5 13580 (eval $ac_compile) 2>&5 13581 ac_status=$? 13582 echo "$as_me:13582: \$? = $ac_status" >&5 13583 (exit $ac_status); } && 13584 { ac_try='test -s conftest.$ac_objext' 13585 { (eval echo "$as_me:13585: \"$ac_try\"") >&5 13586 (eval $ac_try) 2>&5 13587 ac_status=$? 13588 echo "$as_me:13588: \$? = $ac_status" >&5 13589 (exit $ac_status); }; }; then 13590 cf_cv_termio_c_ispeed=yes 13591 13592else 13593 echo "$as_me: failed program was:" >&5 13594cat conftest.$ac_ext >&5 13595cf_cv_termio_c_ispeed=no 13596fi 13597rm -f conftest.$ac_objext conftest.$ac_ext 13598 13599fi 13600echo "$as_me:13600: result: $cf_cv_termio_c_ispeed" >&5 13601echo "${ECHO_T}$cf_cv_termio_c_ispeed" >&6 13602test "$cf_cv_termio_c_ispeed" = yes && 13603cat >>confdefs.h <<\EOF 13604#define HAVE_TERMIO_C_ISPEED 1 13605EOF 13606 13607# If we notice Xcursor, there is a workaround needed. 13608echo "$as_me:13608: checking for XcursorGetTheme in -lXcursor" >&5 13609echo $ECHO_N "checking for XcursorGetTheme in -lXcursor... $ECHO_C" >&6 13610if test "${ac_cv_lib_Xcursor_XcursorGetTheme+set}" = set; then 13611 echo $ECHO_N "(cached) $ECHO_C" >&6 13612else 13613 ac_check_lib_save_LIBS=$LIBS 13614LIBS="-lXcursor $LIBS" 13615cat >conftest.$ac_ext <<_ACEOF 13616#line 13616 "configure" 13617#include "confdefs.h" 13618 13619/* Override any gcc2 internal prototype to avoid an error. */ 13620#ifdef __cplusplus 13621extern "C" 13622#endif 13623/* We use char because int might match the return type of a gcc2 13624 builtin and then its argument prototype would still apply. */ 13625char XcursorGetTheme (); 13626int 13627main () 13628{ 13629XcursorGetTheme (); 13630 ; 13631 return 0; 13632} 13633_ACEOF 13634rm -f conftest.$ac_objext conftest$ac_exeext 13635if { (eval echo "$as_me:13635: \"$ac_link\"") >&5 13636 (eval $ac_link) 2>&5 13637 ac_status=$? 13638 echo "$as_me:13638: \$? = $ac_status" >&5 13639 (exit $ac_status); } && 13640 { ac_try='test -s conftest$ac_exeext' 13641 { (eval echo "$as_me:13641: \"$ac_try\"") >&5 13642 (eval $ac_try) 2>&5 13643 ac_status=$? 13644 echo "$as_me:13644: \$? = $ac_status" >&5 13645 (exit $ac_status); }; }; then 13646 ac_cv_lib_Xcursor_XcursorGetTheme=yes 13647else 13648 echo "$as_me: failed program was:" >&5 13649cat conftest.$ac_ext >&5 13650ac_cv_lib_Xcursor_XcursorGetTheme=no 13651fi 13652rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13653LIBS=$ac_check_lib_save_LIBS 13654fi 13655echo "$as_me:13655: result: $ac_cv_lib_Xcursor_XcursorGetTheme" >&5 13656echo "${ECHO_T}$ac_cv_lib_Xcursor_XcursorGetTheme" >&6 13657if test $ac_cv_lib_Xcursor_XcursorGetTheme = yes; then 13658 cat >>confdefs.h <<\EOF 13659#define HAVE_LIB_XCURSOR 1 13660EOF 13661 13662fi 13663 13664LIBS="$LIBS $X_EXTRA_LIBS" 13665 13666for ac_header in \ 13667stropts.h \ 13668 13669do 13670as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13671echo "$as_me:13671: checking for $ac_header" >&5 13672echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13673if eval "test \"\${$as_ac_Header+set}\" = set"; then 13674 echo $ECHO_N "(cached) $ECHO_C" >&6 13675else 13676 cat >conftest.$ac_ext <<_ACEOF 13677#line 13677 "configure" 13678#include "confdefs.h" 13679#include <$ac_header> 13680_ACEOF 13681if { (eval echo "$as_me:13681: \"$ac_cpp conftest.$ac_ext\"") >&5 13682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 13683 ac_status=$? 13684 egrep -v '^ *\+' conftest.er1 >conftest.err 13685 rm -f conftest.er1 13686 cat conftest.err >&5 13687 echo "$as_me:13687: \$? = $ac_status" >&5 13688 (exit $ac_status); } >/dev/null; then 13689 if test -s conftest.err; then 13690 ac_cpp_err=$ac_c_preproc_warn_flag 13691 else 13692 ac_cpp_err= 13693 fi 13694else 13695 ac_cpp_err=yes 13696fi 13697if test -z "$ac_cpp_err"; then 13698 eval "$as_ac_Header=yes" 13699else 13700 echo "$as_me: failed program was:" >&5 13701 cat conftest.$ac_ext >&5 13702 eval "$as_ac_Header=no" 13703fi 13704rm -f conftest.err conftest.$ac_ext 13705fi 13706echo "$as_me:13706: result: `eval echo '${'$as_ac_Header'}'`" >&5 13707echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13708if test `eval echo '${'$as_ac_Header'}'` = yes; then 13709 cat >>confdefs.h <<EOF 13710#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13711EOF 13712 13713fi 13714done 13715 13716cf_func_grantpt="grantpt ptsname" 13717case $host_os in 13718(darwin[0-9].*) 13719 ;; 13720(*) 13721 cf_func_grantpt="$cf_func_grantpt posix_openpt" 13722 ;; 13723esac 13724 13725for ac_func in $cf_func_grantpt 13726do 13727as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13728echo "$as_me:13728: checking for $ac_func" >&5 13729echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 13730if eval "test \"\${$as_ac_var+set}\" = set"; then 13731 echo $ECHO_N "(cached) $ECHO_C" >&6 13732else 13733 cat >conftest.$ac_ext <<_ACEOF 13734#line 13734 "configure" 13735#include "confdefs.h" 13736/* System header to define __stub macros and hopefully few prototypes, 13737 which can conflict with char $ac_func (); below. */ 13738#include <assert.h> 13739/* Override any gcc2 internal prototype to avoid an error. */ 13740#ifdef __cplusplus 13741extern "C" 13742#endif 13743/* We use char because int might match the return type of a gcc2 13744 builtin and then its argument prototype would still apply. */ 13745char $ac_func (); 13746char (*f) (); 13747 13748int 13749main () 13750{ 13751/* The GNU C library defines this for functions which it implements 13752 to always fail with ENOSYS. Some functions are actually named 13753 something starting with __ and the normal name is an alias. */ 13754#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 13755choke me 13756#else 13757f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 13758#endif 13759 13760 ; 13761 return 0; 13762} 13763_ACEOF 13764rm -f conftest.$ac_objext conftest$ac_exeext 13765if { (eval echo "$as_me:13765: \"$ac_link\"") >&5 13766 (eval $ac_link) 2>&5 13767 ac_status=$? 13768 echo "$as_me:13768: \$? = $ac_status" >&5 13769 (exit $ac_status); } && 13770 { ac_try='test -s conftest$ac_exeext' 13771 { (eval echo "$as_me:13771: \"$ac_try\"") >&5 13772 (eval $ac_try) 2>&5 13773 ac_status=$? 13774 echo "$as_me:13774: \$? = $ac_status" >&5 13775 (exit $ac_status); }; }; then 13776 eval "$as_ac_var=yes" 13777else 13778 echo "$as_me: failed program was:" >&5 13779cat conftest.$ac_ext >&5 13780eval "$as_ac_var=no" 13781fi 13782rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13783fi 13784echo "$as_me:13784: result: `eval echo '${'$as_ac_var'}'`" >&5 13785echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 13786if test `eval echo '${'$as_ac_var'}'` = yes; then 13787 cat >>confdefs.h <<EOF 13788#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13789EOF 13790 13791fi 13792done 13793 13794cf_grantpt_opts= 13795if test "x$ac_cv_func_grantpt" = "xyes" ; then 13796 echo "$as_me:13796: checking if grantpt really works" >&5 13797echo $ECHO_N "checking if grantpt really works... $ECHO_C" >&6 13798 cat >conftest.$ac_ext <<_ACEOF 13799#line 13799 "configure" 13800#include "confdefs.h" 13801 13802#include <stdlib.h> 13803#include <termios.h> 13804#include <unistd.h> 13805#include <signal.h> 13806#include <fcntl.h> 13807#include <errno.h> 13808 13809#ifndef HAVE_POSIX_OPENPT 13810#undef posix_openpt 13811#define posix_openpt(mode) open("/dev/ptmx", mode) 13812#endif 13813 13814#ifdef HAVE_STROPTS_H 13815#include <stropts.h> 13816#endif 13817 13818static void failed(int code) 13819{ 13820 perror("conftest"); 13821 exit(code); 13822} 13823 13824static void my_timeout(int sig) 13825{ 13826 exit(99); 13827} 13828 13829int 13830main () 13831{ 13832 13833 int code = 0; 13834 int rc; 13835 int pty; 13836 int tty; 13837 char *slave; 13838 struct termios tio; 13839 13840 signal(SIGALRM, my_timeout); 13841 13842 if (alarm(2) == 9) 13843 failed(9); 13844 else if ((pty = posix_openpt(O_RDWR)) < 0) 13845 failed(1); 13846 else if ((rc = grantpt(pty)) < 0) 13847 failed(2); 13848 else if ((rc = unlockpt(pty)) < 0) 13849 failed(3); 13850 else if ((slave = ptsname(pty)) == 0) 13851 failed(4); 13852#if (CONFTEST == 3) || defined(CONFTEST_isatty) 13853 else if (!isatty(pty)) 13854 failed(4); 13855#endif 13856#if CONFTEST >= 4 13857 else if ((rc = tcgetattr(pty, &tio)) < 0) 13858 failed(20); 13859 else if ((rc = tcsetattr(pty, TCSAFLUSH, &tio)) < 0) 13860 failed(21); 13861#endif 13862 /* BSD posix_openpt does not treat pty as a terminal until slave is opened. 13863 * Linux does treat it that way. 13864 */ 13865 else if ((tty = open(slave, O_RDWR)) < 0) 13866 failed(5); 13867#ifdef CONFTEST 13868#ifdef I_PUSH 13869#if (CONFTEST == 0) || defined(CONFTEST_ptem) 13870 else if ((rc = ioctl(tty, I_PUSH, "ptem")) < 0) 13871 failed(10); 13872#endif 13873#if (CONFTEST == 1) || defined(CONFTEST_ldterm) 13874 else if ((rc = ioctl(tty, I_PUSH, "ldterm")) < 0) 13875 failed(11); 13876#endif 13877#if (CONFTEST == 2) || defined(CONFTEST_ttcompat) 13878 else if ((rc = ioctl(tty, I_PUSH, "ttcompat")) < 0) 13879 failed(12); 13880#endif 13881#endif /* I_PUSH */ 13882#if CONFTEST >= 5 13883 else if ((rc = tcgetattr(tty, &tio)) < 0) 13884 failed(30); 13885 else if ((rc = tcsetattr(tty, TCSAFLUSH, &tio)) < 0) 13886 failed(31); 13887#endif 13888#endif /* CONFTEST */ 13889 13890 ${cf_cv_main_return:-return}(code); 13891 13892 ; 13893 return 0; 13894} 13895_ACEOF 13896rm -f conftest.$ac_objext conftest$ac_exeext 13897if { (eval echo "$as_me:13897: \"$ac_link\"") >&5 13898 (eval $ac_link) 2>&5 13899 ac_status=$? 13900 echo "$as_me:13900: \$? = $ac_status" >&5 13901 (exit $ac_status); } && 13902 { ac_try='test -s conftest$ac_exeext' 13903 { (eval echo "$as_me:13903: \"$ac_try\"") >&5 13904 (eval $ac_try) 2>&5 13905 ac_status=$? 13906 echo "$as_me:13906: \$? = $ac_status" >&5 13907 (exit $ac_status); }; }; then 13908 13909 if test "$cross_compiling" = yes; then 13910 ac_cv_func_grantpt=maybe 13911else 13912 cat >conftest.$ac_ext <<_ACEOF 13913#line 13913 "configure" 13914#include "confdefs.h" 13915 13916#include <stdlib.h> 13917#include <termios.h> 13918#include <unistd.h> 13919#include <signal.h> 13920#include <fcntl.h> 13921#include <errno.h> 13922 13923#ifndef HAVE_POSIX_OPENPT 13924#undef posix_openpt 13925#define posix_openpt(mode) open("/dev/ptmx", mode) 13926#endif 13927 13928#ifdef HAVE_STROPTS_H 13929#include <stropts.h> 13930#endif 13931 13932static void failed(int code) 13933{ 13934 perror("conftest"); 13935 exit(code); 13936} 13937 13938static void my_timeout(int sig) 13939{ 13940 exit(99); 13941} 13942 13943int main(void) 13944{ 13945 13946 int code = 0; 13947 int rc; 13948 int pty; 13949 int tty; 13950 char *slave; 13951 struct termios tio; 13952 13953 signal(SIGALRM, my_timeout); 13954 13955 if (alarm(2) == 9) 13956 failed(9); 13957 else if ((pty = posix_openpt(O_RDWR)) < 0) 13958 failed(1); 13959 else if ((rc = grantpt(pty)) < 0) 13960 failed(2); 13961 else if ((rc = unlockpt(pty)) < 0) 13962 failed(3); 13963 else if ((slave = ptsname(pty)) == 0) 13964 failed(4); 13965#if (CONFTEST == 3) || defined(CONFTEST_isatty) 13966 else if (!isatty(pty)) 13967 failed(4); 13968#endif 13969#if CONFTEST >= 4 13970 else if ((rc = tcgetattr(pty, &tio)) < 0) 13971 failed(20); 13972 else if ((rc = tcsetattr(pty, TCSAFLUSH, &tio)) < 0) 13973 failed(21); 13974#endif 13975 /* BSD posix_openpt does not treat pty as a terminal until slave is opened. 13976 * Linux does treat it that way. 13977 */ 13978 else if ((tty = open(slave, O_RDWR)) < 0) 13979 failed(5); 13980#ifdef CONFTEST 13981#ifdef I_PUSH 13982#if (CONFTEST == 0) || defined(CONFTEST_ptem) 13983 else if ((rc = ioctl(tty, I_PUSH, "ptem")) < 0) 13984 failed(10); 13985#endif 13986#if (CONFTEST == 1) || defined(CONFTEST_ldterm) 13987 else if ((rc = ioctl(tty, I_PUSH, "ldterm")) < 0) 13988 failed(11); 13989#endif 13990#if (CONFTEST == 2) || defined(CONFTEST_ttcompat) 13991 else if ((rc = ioctl(tty, I_PUSH, "ttcompat")) < 0) 13992 failed(12); 13993#endif 13994#endif /* I_PUSH */ 13995#if CONFTEST >= 5 13996 else if ((rc = tcgetattr(tty, &tio)) < 0) 13997 failed(30); 13998 else if ((rc = tcsetattr(tty, TCSAFLUSH, &tio)) < 0) 13999 failed(31); 14000#endif 14001#endif /* CONFTEST */ 14002 14003 ${cf_cv_main_return:-return}(code); 14004 14005} 14006 14007_ACEOF 14008rm -f conftest$ac_exeext 14009if { (eval echo "$as_me:14009: \"$ac_link\"") >&5 14010 (eval $ac_link) 2>&5 14011 ac_status=$? 14012 echo "$as_me:14012: \$? = $ac_status" >&5 14013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14014 { (eval echo "$as_me:14014: \"$ac_try\"") >&5 14015 (eval $ac_try) 2>&5 14016 ac_status=$? 14017 echo "$as_me:14017: \$? = $ac_status" >&5 14018 (exit $ac_status); }; }; then 14019 : 14020else 14021 echo "$as_me: program exited with status $ac_status" >&5 14022echo "$as_me: failed program was:" >&5 14023cat conftest.$ac_ext >&5 14024ac_cv_func_grantpt=no 14025 14026fi 14027rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14028fi 14029 14030else 14031 echo "$as_me: failed program was:" >&5 14032cat conftest.$ac_ext >&5 14033ac_cv_func_grantpt=no 14034fi 14035rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14036 echo "$as_me:14036: result: $ac_cv_func_grantpt" >&5 14037echo "${ECHO_T}$ac_cv_func_grantpt" >&6 14038 14039 if test "x$ac_cv_func_grantpt" != "xno" ; then 14040 14041 if test "x$ac_cv_func_grantpt" = "xyes" ; then 14042 echo "$as_me:14042: checking for pty features" >&5 14043echo $ECHO_N "checking for pty features... $ECHO_C" >&6 14044 if test "x$ac_cv_header_stropts_h" = xyes 14045 then 14046 cf_pty_this=0 14047 else 14048 cf_pty_this=3 14049 fi 14050 14051 cf_pty_defines= 14052 while test $cf_pty_this != 6 14053 do 14054 14055 cf_pty_feature= 14056 cf_pty_next=`expr $cf_pty_this + 1` 14057 14058echo "${as_me:-configure}:14058: testing pty feature test $cf_pty_next:5 ..." 1>&5 14059 14060 if test "$cross_compiling" = yes; then 14061 { { echo "$as_me:14061: error: cannot run test program while cross compiling" >&5 14062echo "$as_me: error: cannot run test program while cross compiling" >&2;} 14063 { (exit 1); exit 1; }; } 14064else 14065 cat >conftest.$ac_ext <<_ACEOF 14066#line 14066 "configure" 14067#include "confdefs.h" 14068#define CONFTEST $cf_pty_this 14069$cf_pty_defines 14070 14071#include <stdlib.h> 14072#include <termios.h> 14073#include <unistd.h> 14074#include <signal.h> 14075#include <fcntl.h> 14076#include <errno.h> 14077 14078#ifndef HAVE_POSIX_OPENPT 14079#undef posix_openpt 14080#define posix_openpt(mode) open("/dev/ptmx", mode) 14081#endif 14082 14083#ifdef HAVE_STROPTS_H 14084#include <stropts.h> 14085#endif 14086 14087static void failed(int code) 14088{ 14089 perror("conftest"); 14090 exit(code); 14091} 14092 14093static void my_timeout(int sig) 14094{ 14095 exit(99); 14096} 14097 14098int main(void) 14099{ 14100 14101 int code = 0; 14102 int rc; 14103 int pty; 14104 int tty; 14105 char *slave; 14106 struct termios tio; 14107 14108 signal(SIGALRM, my_timeout); 14109 14110 if (alarm(2) == 9) 14111 failed(9); 14112 else if ((pty = posix_openpt(O_RDWR)) < 0) 14113 failed(1); 14114 else if ((rc = grantpt(pty)) < 0) 14115 failed(2); 14116 else if ((rc = unlockpt(pty)) < 0) 14117 failed(3); 14118 else if ((slave = ptsname(pty)) == 0) 14119 failed(4); 14120#if (CONFTEST == 3) || defined(CONFTEST_isatty) 14121 else if (!isatty(pty)) 14122 failed(4); 14123#endif 14124#if CONFTEST >= 4 14125 else if ((rc = tcgetattr(pty, &tio)) < 0) 14126 failed(20); 14127 else if ((rc = tcsetattr(pty, TCSAFLUSH, &tio)) < 0) 14128 failed(21); 14129#endif 14130 /* BSD posix_openpt does not treat pty as a terminal until slave is opened. 14131 * Linux does treat it that way. 14132 */ 14133 else if ((tty = open(slave, O_RDWR)) < 0) 14134 failed(5); 14135#ifdef CONFTEST 14136#ifdef I_PUSH 14137#if (CONFTEST == 0) || defined(CONFTEST_ptem) 14138 else if ((rc = ioctl(tty, I_PUSH, "ptem")) < 0) 14139 failed(10); 14140#endif 14141#if (CONFTEST == 1) || defined(CONFTEST_ldterm) 14142 else if ((rc = ioctl(tty, I_PUSH, "ldterm")) < 0) 14143 failed(11); 14144#endif 14145#if (CONFTEST == 2) || defined(CONFTEST_ttcompat) 14146 else if ((rc = ioctl(tty, I_PUSH, "ttcompat")) < 0) 14147 failed(12); 14148#endif 14149#endif /* I_PUSH */ 14150#if CONFTEST >= 5 14151 else if ((rc = tcgetattr(tty, &tio)) < 0) 14152 failed(30); 14153 else if ((rc = tcsetattr(tty, TCSAFLUSH, &tio)) < 0) 14154 failed(31); 14155#endif 14156#endif /* CONFTEST */ 14157 14158 ${cf_cv_main_return:-return}(code); 14159 14160} 14161 14162_ACEOF 14163rm -f conftest$ac_exeext 14164if { (eval echo "$as_me:14164: \"$ac_link\"") >&5 14165 (eval $ac_link) 2>&5 14166 ac_status=$? 14167 echo "$as_me:14167: \$? = $ac_status" >&5 14168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14169 { (eval echo "$as_me:14169: \"$ac_try\"") >&5 14170 (eval $ac_try) 2>&5 14171 ac_status=$? 14172 echo "$as_me:14172: \$? = $ac_status" >&5 14173 (exit $ac_status); }; }; then 14174 14175 case $cf_pty_next in 14176 (1) # - streams 14177 cf_pty_feature=ptem 14178 ;; 14179 (2) # - streams 14180 cf_pty_feature=ldterm 14181 ;; 14182 (3) # - streams 14183 cf_pty_feature=ttcompat 14184 ;; 14185 (4) 14186 cf_pty_feature=pty_isatty 14187 ;; 14188 (5) 14189 cf_pty_feature=pty_tcsetattr 14190 ;; 14191 (6) 14192 cf_pty_feature=tty_tcsetattr 14193 ;; 14194 esac 14195 14196else 14197 echo "$as_me: program exited with status $ac_status" >&5 14198echo "$as_me: failed program was:" >&5 14199cat conftest.$ac_ext >&5 14200 14201 case $cf_pty_next in 14202 (1|2|3) 14203 14204echo "${as_me:-configure}:14204: testing skipping remaining streams features $cf_pty_this..2 ..." 1>&5 14205 14206 cf_pty_next=3 14207 ;; 14208 esac 14209 14210fi 14211rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14212fi 14213 if test -n "$cf_pty_feature" 14214 then 14215 cf_pty_defines="$cf_pty_defines 14216#define CONFTEST_$cf_pty_feature 1 14217" 14218 cf_grantpt_opts="$cf_grantpt_opts $cf_pty_feature" 14219 fi 14220 14221 cf_pty_this=$cf_pty_next 14222 done 14223 echo "$as_me:14223: result: $cf_grantpt_opts" >&5 14224echo "${ECHO_T}$cf_grantpt_opts" >&6 14225 cf_grantpt_opts=`echo "$cf_grantpt_opts" | sed -e 's/ isatty//'` 14226 fi 14227 fi 14228fi 14229 14230if test "x$disable_openpty" != "xyes" || test -z "$cf_grantpt_opts" ; then 14231 echo "$as_me:14231: checking for openpty in -lutil" >&5 14232echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 14233if test "${ac_cv_lib_util_openpty+set}" = set; then 14234 echo $ECHO_N "(cached) $ECHO_C" >&6 14235else 14236 ac_check_lib_save_LIBS=$LIBS 14237LIBS="-lutil $LIBS" 14238cat >conftest.$ac_ext <<_ACEOF 14239#line 14239 "configure" 14240#include "confdefs.h" 14241 14242/* Override any gcc2 internal prototype to avoid an error. */ 14243#ifdef __cplusplus 14244extern "C" 14245#endif 14246/* We use char because int might match the return type of a gcc2 14247 builtin and then its argument prototype would still apply. */ 14248char openpty (); 14249int 14250main () 14251{ 14252openpty (); 14253 ; 14254 return 0; 14255} 14256_ACEOF 14257rm -f conftest.$ac_objext conftest$ac_exeext 14258if { (eval echo "$as_me:14258: \"$ac_link\"") >&5 14259 (eval $ac_link) 2>&5 14260 ac_status=$? 14261 echo "$as_me:14261: \$? = $ac_status" >&5 14262 (exit $ac_status); } && 14263 { ac_try='test -s conftest$ac_exeext' 14264 { (eval echo "$as_me:14264: \"$ac_try\"") >&5 14265 (eval $ac_try) 2>&5 14266 ac_status=$? 14267 echo "$as_me:14267: \$? = $ac_status" >&5 14268 (exit $ac_status); }; }; then 14269 ac_cv_lib_util_openpty=yes 14270else 14271 echo "$as_me: failed program was:" >&5 14272cat conftest.$ac_ext >&5 14273ac_cv_lib_util_openpty=no 14274fi 14275rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14276LIBS=$ac_check_lib_save_LIBS 14277fi 14278echo "$as_me:14278: result: $ac_cv_lib_util_openpty" >&5 14279echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 14280if test $ac_cv_lib_util_openpty = yes; then 14281 cf_have_openpty=yes 14282else 14283 cf_have_openpty=no 14284fi 14285 14286 if test "$cf_have_openpty" = yes ; then 14287 ac_cv_func_grantpt=no 14288 LIBS="-lutil $LIBS" 14289 14290cat >>confdefs.h <<\EOF 14291#define HAVE_OPENPTY 1 14292EOF 14293 14294for ac_header in \ 14295 util.h \ 14296 libutil.h \ 14297 pty.h \ 14298 14299do 14300as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14301echo "$as_me:14301: checking for $ac_header" >&5 14302echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 14303if eval "test \"\${$as_ac_Header+set}\" = set"; then 14304 echo $ECHO_N "(cached) $ECHO_C" >&6 14305else 14306 cat >conftest.$ac_ext <<_ACEOF 14307#line 14307 "configure" 14308#include "confdefs.h" 14309#include <$ac_header> 14310_ACEOF 14311if { (eval echo "$as_me:14311: \"$ac_cpp conftest.$ac_ext\"") >&5 14312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 14313 ac_status=$? 14314 egrep -v '^ *\+' conftest.er1 >conftest.err 14315 rm -f conftest.er1 14316 cat conftest.err >&5 14317 echo "$as_me:14317: \$? = $ac_status" >&5 14318 (exit $ac_status); } >/dev/null; then 14319 if test -s conftest.err; then 14320 ac_cpp_err=$ac_c_preproc_warn_flag 14321 else 14322 ac_cpp_err= 14323 fi 14324else 14325 ac_cpp_err=yes 14326fi 14327if test -z "$ac_cpp_err"; then 14328 eval "$as_ac_Header=yes" 14329else 14330 echo "$as_me: failed program was:" >&5 14331 cat conftest.$ac_ext >&5 14332 eval "$as_ac_Header=no" 14333fi 14334rm -f conftest.err conftest.$ac_ext 14335fi 14336echo "$as_me:14336: result: `eval echo '${'$as_ac_Header'}'`" >&5 14337echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 14338if test `eval echo '${'$as_ac_Header'}'` = yes; then 14339 cat >>confdefs.h <<EOF 14340#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14341EOF 14342 14343fi 14344done 14345 14346 fi 14347fi 14348 14349if test "x$ac_cv_func_grantpt" != xno 14350then 14351 test -n "$verbose" && echo " will rely upon grantpt" 1>&6 14352 14353echo "${as_me:-configure}:14353: testing will rely upon grantpt ..." 1>&5 14354 14355cat >>confdefs.h <<\EOF 14356#define HAVE_WORKING_GRANTPT 1 14357EOF 14358 14359 for cf_feature in $cf_grantpt_opts 14360 do 14361 cf_feature=`echo "$cf_feature" | sed -e 's/ //g'` 14362 14363cf_FEATURE=`echo "$cf_feature" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 14364 14365 cat >>confdefs.h <<EOF 14366#define HAVE_GRANTPT_$cf_FEATURE 1 14367EOF 14368 14369 done 14370elif test "x$cf_have_openpty" = xno 14371then 14372 test -n "$verbose" && echo " will rely upon BSD-pseudoterminals" 1>&6 14373 14374echo "${as_me:-configure}:14374: testing will rely upon BSD-pseudoterminals ..." 1>&5 14375 14376else 14377 test -n "$verbose" && echo " will rely upon openpty" 1>&6 14378 14379echo "${as_me:-configure}:14379: testing will rely upon openpty ..." 1>&5 14380 14381fi 14382 14383echo "$as_me:14383: checking if we can use XkbQueryExtension" >&5 14384echo $ECHO_N "checking if we can use XkbQueryExtension... $ECHO_C" >&6 14385if test "${cf_cv_xkb_query_extension+set}" = set; then 14386 echo $ECHO_N "(cached) $ECHO_C" >&6 14387else 14388 14389cat >conftest.$ac_ext <<_ACEOF 14390#line 14390 "configure" 14391#include "confdefs.h" 14392 14393#include <X11/Xlib.h> 14394#include <X11/extensions/XKB.h> 14395#include <X11/XKBlib.h> 14396 14397int 14398main () 14399{ 14400 14401 int xkbmajor = XkbMajorVersion; 14402 int xkbminor = XkbMinorVersion; 14403 int xkbopcode, xkbevent, xkberror; 14404 14405 if (XkbLibraryVersion(&xkbmajor, &xkbminor) 14406 && XkbQueryExtension((Display *)0, 14407 &xkbopcode, 14408 &xkbevent, 14409 &xkberror, 14410 &xkbmajor, 14411 &xkbminor)) 14412 return 0; 14413 14414 ; 14415 return 0; 14416} 14417_ACEOF 14418rm -f conftest.$ac_objext 14419if { (eval echo "$as_me:14419: \"$ac_compile\"") >&5 14420 (eval $ac_compile) 2>&5 14421 ac_status=$? 14422 echo "$as_me:14422: \$? = $ac_status" >&5 14423 (exit $ac_status); } && 14424 { ac_try='test -s conftest.$ac_objext' 14425 { (eval echo "$as_me:14425: \"$ac_try\"") >&5 14426 (eval $ac_try) 2>&5 14427 ac_status=$? 14428 echo "$as_me:14428: \$? = $ac_status" >&5 14429 (exit $ac_status); }; }; then 14430 14431cf_cv_xkb_query_extension=yes 14432 14433else 14434 echo "$as_me: failed program was:" >&5 14435cat conftest.$ac_ext >&5 14436 14437cf_cv_xkb_query_extension=no 14438 14439fi 14440rm -f conftest.$ac_objext conftest.$ac_ext 14441 14442fi 14443echo "$as_me:14443: result: $cf_cv_xkb_query_extension" >&5 14444echo "${ECHO_T}$cf_cv_xkb_query_extension" >&6 14445 14446if test $cf_cv_xkb_query_extension = yes 14447then 14448 14449for ac_func in XkbQueryExtension 14450do 14451as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14452echo "$as_me:14452: checking for $ac_func" >&5 14453echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 14454if eval "test \"\${$as_ac_var+set}\" = set"; then 14455 echo $ECHO_N "(cached) $ECHO_C" >&6 14456else 14457 cat >conftest.$ac_ext <<_ACEOF 14458#line 14458 "configure" 14459#include "confdefs.h" 14460/* System header to define __stub macros and hopefully few prototypes, 14461 which can conflict with char $ac_func (); below. */ 14462#include <assert.h> 14463/* Override any gcc2 internal prototype to avoid an error. */ 14464#ifdef __cplusplus 14465extern "C" 14466#endif 14467/* We use char because int might match the return type of a gcc2 14468 builtin and then its argument prototype would still apply. */ 14469char $ac_func (); 14470char (*f) (); 14471 14472int 14473main () 14474{ 14475/* The GNU C library defines this for functions which it implements 14476 to always fail with ENOSYS. Some functions are actually named 14477 something starting with __ and the normal name is an alias. */ 14478#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14479choke me 14480#else 14481f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 14482#endif 14483 14484 ; 14485 return 0; 14486} 14487_ACEOF 14488rm -f conftest.$ac_objext conftest$ac_exeext 14489if { (eval echo "$as_me:14489: \"$ac_link\"") >&5 14490 (eval $ac_link) 2>&5 14491 ac_status=$? 14492 echo "$as_me:14492: \$? = $ac_status" >&5 14493 (exit $ac_status); } && 14494 { ac_try='test -s conftest$ac_exeext' 14495 { (eval echo "$as_me:14495: \"$ac_try\"") >&5 14496 (eval $ac_try) 2>&5 14497 ac_status=$? 14498 echo "$as_me:14498: \$? = $ac_status" >&5 14499 (exit $ac_status); }; }; then 14500 eval "$as_ac_var=yes" 14501else 14502 echo "$as_me: failed program was:" >&5 14503cat conftest.$ac_ext >&5 14504eval "$as_ac_var=no" 14505fi 14506rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14507fi 14508echo "$as_me:14508: result: `eval echo '${'$as_ac_var'}'`" >&5 14509echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 14510if test `eval echo '${'$as_ac_var'}'` = yes; then 14511 cat >>confdefs.h <<EOF 14512#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14513EOF 14514 14515fi 14516done 14517 14518fi 14519 14520echo "$as_me:14520: checking if we can use XkbKeycodeToKeysym" >&5 14521echo $ECHO_N "checking if we can use XkbKeycodeToKeysym... $ECHO_C" >&6 14522if test "${cf_cv_xkb_keycode_to_keysym+set}" = set; then 14523 echo $ECHO_N "(cached) $ECHO_C" >&6 14524else 14525 14526cat >conftest.$ac_ext <<_ACEOF 14527#line 14527 "configure" 14528#include "confdefs.h" 14529 14530#include <X11/Xlib.h> 14531#include <X11/XKBlib.h> 14532 14533int 14534main () 14535{ 14536 14537 KeySym keysym = XkbKeycodeToKeysym((Display *)0, 0, 0, 0); 14538 14539 ; 14540 return 0; 14541} 14542_ACEOF 14543rm -f conftest.$ac_objext 14544if { (eval echo "$as_me:14544: \"$ac_compile\"") >&5 14545 (eval $ac_compile) 2>&5 14546 ac_status=$? 14547 echo "$as_me:14547: \$? = $ac_status" >&5 14548 (exit $ac_status); } && 14549 { ac_try='test -s conftest.$ac_objext' 14550 { (eval echo "$as_me:14550: \"$ac_try\"") >&5 14551 (eval $ac_try) 2>&5 14552 ac_status=$? 14553 echo "$as_me:14553: \$? = $ac_status" >&5 14554 (exit $ac_status); }; }; then 14555 14556cf_cv_xkb_keycode_to_keysym=yes 14557 14558else 14559 echo "$as_me: failed program was:" >&5 14560cat conftest.$ac_ext >&5 14561 14562cf_cv_xkb_keycode_to_keysym=no 14563 14564fi 14565rm -f conftest.$ac_objext conftest.$ac_ext 14566 14567fi 14568echo "$as_me:14568: result: $cf_cv_xkb_keycode_to_keysym" >&5 14569echo "${ECHO_T}$cf_cv_xkb_keycode_to_keysym" >&6 14570 14571if test $cf_cv_xkb_keycode_to_keysym = yes 14572then 14573 14574for ac_func in XkbKeycodeToKeysym 14575do 14576as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14577echo "$as_me:14577: checking for $ac_func" >&5 14578echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 14579if eval "test \"\${$as_ac_var+set}\" = set"; then 14580 echo $ECHO_N "(cached) $ECHO_C" >&6 14581else 14582 cat >conftest.$ac_ext <<_ACEOF 14583#line 14583 "configure" 14584#include "confdefs.h" 14585/* System header to define __stub macros and hopefully few prototypes, 14586 which can conflict with char $ac_func (); below. */ 14587#include <assert.h> 14588/* Override any gcc2 internal prototype to avoid an error. */ 14589#ifdef __cplusplus 14590extern "C" 14591#endif 14592/* We use char because int might match the return type of a gcc2 14593 builtin and then its argument prototype would still apply. */ 14594char $ac_func (); 14595char (*f) (); 14596 14597int 14598main () 14599{ 14600/* The GNU C library defines this for functions which it implements 14601 to always fail with ENOSYS. Some functions are actually named 14602 something starting with __ and the normal name is an alias. */ 14603#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14604choke me 14605#else 14606f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 14607#endif 14608 14609 ; 14610 return 0; 14611} 14612_ACEOF 14613rm -f conftest.$ac_objext conftest$ac_exeext 14614if { (eval echo "$as_me:14614: \"$ac_link\"") >&5 14615 (eval $ac_link) 2>&5 14616 ac_status=$? 14617 echo "$as_me:14617: \$? = $ac_status" >&5 14618 (exit $ac_status); } && 14619 { ac_try='test -s conftest$ac_exeext' 14620 { (eval echo "$as_me:14620: \"$ac_try\"") >&5 14621 (eval $ac_try) 2>&5 14622 ac_status=$? 14623 echo "$as_me:14623: \$? = $ac_status" >&5 14624 (exit $ac_status); }; }; then 14625 eval "$as_ac_var=yes" 14626else 14627 echo "$as_me: failed program was:" >&5 14628cat conftest.$ac_ext >&5 14629eval "$as_ac_var=no" 14630fi 14631rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14632fi 14633echo "$as_me:14633: result: `eval echo '${'$as_ac_var'}'`" >&5 14634echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 14635if test `eval echo '${'$as_ac_var'}'` = yes; then 14636 cat >>confdefs.h <<EOF 14637#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14638EOF 14639 14640fi 14641done 14642 14643fi 14644 14645echo "$as_me:14645: checking for XKB Bell extension" >&5 14646echo $ECHO_N "checking for XKB Bell extension... $ECHO_C" >&6 14647if test "${cf_cv_xkb_bell_ext+set}" = set; then 14648 echo $ECHO_N "(cached) $ECHO_C" >&6 14649else 14650 14651cat >conftest.$ac_ext <<_ACEOF 14652#line 14652 "configure" 14653#include "confdefs.h" 14654 14655#include <X11/Intrinsic.h> 14656#include <X11/XKBlib.h> /* has the prototype */ 14657#include <X11/extensions/XKBbells.h> /* has the XkbBI_xxx definitions */ 14658 14659int 14660main () 14661{ 14662 14663 int x = (XkbBI_Info |XkbBI_MinorError |XkbBI_MajorError |XkbBI_TerminalBell |XkbBI_MarginBell); 14664 Atom y; 14665 XkbBell((Display *)0, (Widget)0, 0, y); 14666 14667 ; 14668 return 0; 14669} 14670_ACEOF 14671rm -f conftest.$ac_objext conftest$ac_exeext 14672if { (eval echo "$as_me:14672: \"$ac_link\"") >&5 14673 (eval $ac_link) 2>&5 14674 ac_status=$? 14675 echo "$as_me:14675: \$? = $ac_status" >&5 14676 (exit $ac_status); } && 14677 { ac_try='test -s conftest$ac_exeext' 14678 { (eval echo "$as_me:14678: \"$ac_try\"") >&5 14679 (eval $ac_try) 2>&5 14680 ac_status=$? 14681 echo "$as_me:14681: \$? = $ac_status" >&5 14682 (exit $ac_status); }; }; then 14683 cf_cv_xkb_bell_ext=yes 14684else 14685 echo "$as_me: failed program was:" >&5 14686cat conftest.$ac_ext >&5 14687cf_cv_xkb_bell_ext=no 14688fi 14689rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14690 14691fi 14692echo "$as_me:14692: result: $cf_cv_xkb_bell_ext" >&5 14693echo "${ECHO_T}$cf_cv_xkb_bell_ext" >&6 14694test "$cf_cv_xkb_bell_ext" = yes && 14695cat >>confdefs.h <<\EOF 14696#define HAVE_XKB_BELL_EXT 1 14697EOF 14698 14699for ac_func in Xutf8LookupString 14700do 14701as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14702echo "$as_me:14702: checking for $ac_func" >&5 14703echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 14704if eval "test \"\${$as_ac_var+set}\" = set"; then 14705 echo $ECHO_N "(cached) $ECHO_C" >&6 14706else 14707 cat >conftest.$ac_ext <<_ACEOF 14708#line 14708 "configure" 14709#include "confdefs.h" 14710/* System header to define __stub macros and hopefully few prototypes, 14711 which can conflict with char $ac_func (); below. */ 14712#include <assert.h> 14713/* Override any gcc2 internal prototype to avoid an error. */ 14714#ifdef __cplusplus 14715extern "C" 14716#endif 14717/* We use char because int might match the return type of a gcc2 14718 builtin and then its argument prototype would still apply. */ 14719char $ac_func (); 14720char (*f) (); 14721 14722int 14723main () 14724{ 14725/* The GNU C library defines this for functions which it implements 14726 to always fail with ENOSYS. Some functions are actually named 14727 something starting with __ and the normal name is an alias. */ 14728#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14729choke me 14730#else 14731f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 14732#endif 14733 14734 ; 14735 return 0; 14736} 14737_ACEOF 14738rm -f conftest.$ac_objext conftest$ac_exeext 14739if { (eval echo "$as_me:14739: \"$ac_link\"") >&5 14740 (eval $ac_link) 2>&5 14741 ac_status=$? 14742 echo "$as_me:14742: \$? = $ac_status" >&5 14743 (exit $ac_status); } && 14744 { ac_try='test -s conftest$ac_exeext' 14745 { (eval echo "$as_me:14745: \"$ac_try\"") >&5 14746 (eval $ac_try) 2>&5 14747 ac_status=$? 14748 echo "$as_me:14748: \$? = $ac_status" >&5 14749 (exit $ac_status); }; }; then 14750 eval "$as_ac_var=yes" 14751else 14752 echo "$as_me: failed program was:" >&5 14753cat conftest.$ac_ext >&5 14754eval "$as_ac_var=no" 14755fi 14756rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14757fi 14758echo "$as_me:14758: result: `eval echo '${'$as_ac_var'}'`" >&5 14759echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 14760if test `eval echo '${'$as_ac_var'}'` = yes; then 14761 cat >>confdefs.h <<EOF 14762#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14763EOF 14764 14765else 14766 14767 EXTRAHDRS="$EXTRAHDRS xutf8.h" 14768 EXTRASRCS="$EXTRASRCS xutf8.c" 14769 EXTRAOBJS="$EXTRAOBJS xutf8.o" 14770 14771fi 14772done 14773 14774echo "$as_me:14774: checking if you want narrow prototypes for X libraries" >&5 14775echo $ECHO_N "checking if you want narrow prototypes for X libraries... $ECHO_C" >&6 14776 14777case `$ac_config_guess` in 14778(*freebsd*|*gnu*|*irix5*|*irix6*|*linux-gnu*|*netbsd*|*openbsd*|*qnx*|*sco*|*sgi*) 14779 cf_default_narrowproto=yes 14780 ;; 14781(*) 14782 cf_default_narrowproto=no 14783 ;; 14784esac 14785 14786# Check whether --enable-narrowproto or --disable-narrowproto was given. 14787if test "${enable_narrowproto+set}" = set; then 14788 enableval="$enable_narrowproto" 14789 test "$enableval" != no && enableval=yes 14790 if test "$enableval" != "$cf_default_narrowproto" ; then 14791 enable_narrowproto=$enableval 14792 else 14793 enable_narrowproto=$cf_default_narrowproto 14794 fi 14795else 14796 enableval=$cf_default_narrowproto 14797 enable_narrowproto=$cf_default_narrowproto 14798 14799fi; 14800echo "$as_me:14800: result: $enable_narrowproto" >&5 14801echo "${ECHO_T}$enable_narrowproto" >&6 14802 14803echo "$as_me:14803: checking if we should use imake to help" >&5 14804echo $ECHO_N "checking if we should use imake to help... $ECHO_C" >&6 14805 14806# Check whether --enable-imake or --disable-imake was given. 14807if test "${enable_imake+set}" = set; then 14808 enableval="$enable_imake" 14809 test "$enableval" != no && enableval=yes 14810 if test "$enableval" != "yes" ; then 14811 enable_imake=no 14812 else 14813 enable_imake=yes 14814 fi 14815else 14816 enableval=yes 14817 enable_imake=yes 14818 14819fi; 14820echo "$as_me:14820: result: $enable_imake" >&5 14821echo "${ECHO_T}$enable_imake" >&6 14822 14823if test "$enable_imake" = yes ; then 14824 14825for ac_prog in xmkmf imake 14826do 14827 # Extract the first word of "$ac_prog", so it can be a program name with args. 14828set dummy $ac_prog; ac_word=$2 14829echo "$as_me:14829: checking for $ac_word" >&5 14830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 14831if test "${ac_cv_path_IMAKE+set}" = set; then 14832 echo $ECHO_N "(cached) $ECHO_C" >&6 14833else 14834 case $IMAKE in 14835 [\\/]* | ?:[\\/]*) 14836 ac_cv_path_IMAKE="$IMAKE" # Let the user override the test with a path. 14837 ;; 14838 *) 14839 ac_save_IFS=$IFS; IFS=$ac_path_separator 14840ac_dummy="$PATH" 14841for ac_dir in $ac_dummy; do 14842 IFS=$ac_save_IFS 14843 test -z "$ac_dir" && ac_dir=. 14844 if $as_executable_p "$ac_dir/$ac_word"; then 14845 ac_cv_path_IMAKE="$ac_dir/$ac_word" 14846 echo "$as_me:14846: found $ac_dir/$ac_word" >&5 14847 break 14848fi 14849done 14850 14851 ;; 14852esac 14853fi 14854IMAKE=$ac_cv_path_IMAKE 14855 14856if test -n "$IMAKE"; then 14857 echo "$as_me:14857: result: $IMAKE" >&5 14858echo "${ECHO_T}$IMAKE" >&6 14859else 14860 echo "$as_me:14860: result: no" >&5 14861echo "${ECHO_T}no" >&6 14862fi 14863 14864 test -n "$IMAKE" && break 14865done 14866 14867if test -n "$IMAKE" ; then 14868 14869case $IMAKE in 14870(*/imake) 14871 cf_imake_opts="-DUseInstalled=YES" 14872 ;; 14873(*/util/xmkmf) 14874 # A single parameter tells xmkmf where the config-files are: 14875 cf_imake_opts="`echo $IMAKE|sed -e s,/config/util/xmkmf,,`" 14876 ;; 14877(*) 14878 cf_imake_opts= 14879 ;; 14880esac 14881 14882# If it's installed properly, imake (or its wrapper, xmkmf) will point to the 14883# config directory. 14884if mkdir conftestdir; then 14885 CDPATH=; export CDPATH 14886 cf_makefile=`cd $srcdir;pwd`/Imakefile 14887 cd conftestdir 14888 14889 cat >fix_cflags.sed <<'CF_EOF' 14890s/\\//g 14891s/[ ][ ]*/ /g 14892s/"//g 14893:pack 14894s/\(=[^ ][^ ]*\) \([^-]\)/\1 \2/g 14895t pack 14896s/\(-D[a-zA-Z0-9_][a-zA-Z0-9_]*\)=\([^\'0-9 ][^ ]*\)/\1='\\"\2\\"'/g 14897s/^IMAKE[ ]/IMAKE_CFLAGS="/ 14898s/ / /g 14899s/$/"/ 14900CF_EOF 14901 14902 cat >fix_lflags.sed <<'CF_EOF' 14903s/^IMAKE[ ]*/IMAKE_LOADFLAGS="/ 14904s/$/"/ 14905CF_EOF 14906 14907 echo >./Imakefile 14908 test -f $cf_makefile && cat $cf_makefile >>./Imakefile 14909 14910 cat >> ./Imakefile <<'CF_EOF' 14911findstddefs: 14912 @echo IMAKE ${ALLDEFINES} $(MAIN_DEFINES) $(VENDORMANDEFS) | sed -f fix_cflags.sed 14913 @echo IMAKE ${EXTRA_LOAD_FLAGS} | sed -f fix_lflags.sed 14914CF_EOF 14915 14916 if ( $IMAKE $cf_imake_opts 1>/dev/null 2>&5 && test -f Makefile) 14917 then 14918 test -n "$verbose" && echo " Using $IMAKE $cf_imake_opts" 1>&6 14919 14920echo "${as_me:-configure}:14920: testing Using $IMAKE $cf_imake_opts ..." 1>&5 14921 14922 else 14923 # sometimes imake doesn't have the config path compiled in. Find it. 14924 cf_config= 14925 for cf_libpath in $X_LIBS $LIBS ; do 14926 case $cf_libpath in 14927 (-L*) 14928 cf_libpath=`echo .$cf_libpath | sed -e 's/^...//'` 14929 cf_libpath=$cf_libpath/X11/config 14930 if test -d $cf_libpath ; then 14931 cf_config=$cf_libpath 14932 break 14933 fi 14934 ;; 14935 esac 14936 done 14937 if test -z "$cf_config" ; then 14938 { echo "$as_me:14938: WARNING: Could not find imake config-directory" >&5 14939echo "$as_me: WARNING: Could not find imake config-directory" >&2;} 14940 else 14941 cf_imake_opts="$cf_imake_opts -I$cf_config" 14942 if ( $IMAKE -v $cf_imake_opts 2>&5) 14943 then 14944 test -n "$verbose" && echo " Using $IMAKE $cf_config" 1>&6 14945 14946echo "${as_me:-configure}:14946: testing Using $IMAKE $cf_config ..." 1>&5 14947 14948 else 14949 { echo "$as_me:14949: WARNING: Cannot run $IMAKE" >&5 14950echo "$as_me: WARNING: Cannot run $IMAKE" >&2;} 14951 fi 14952 fi 14953 fi 14954 14955 # GNU make sometimes prints "make[1]: Entering...", which 14956 # would confuse us. 14957 eval `make findstddefs 2>/dev/null | grep -v make` 14958 14959 cd .. 14960 rm -rf conftestdir 14961 14962 # We use ${ALLDEFINES} rather than ${STD_DEFINES} because the former 14963 # declares XTFUNCPROTO there. However, some vendors (e.g., SGI) have 14964 # modified it to support site.cf, adding a kludge for the /usr/include 14965 # directory. Try to filter that out, otherwise gcc won't find its 14966 # headers. 14967 if test -n "$GCC" ; then 14968 if test -n "$IMAKE_CFLAGS" ; then 14969 cf_nostdinc="" 14970 cf_std_incl="" 14971 cf_cpp_opts="" 14972 for cf_opt in $IMAKE_CFLAGS 14973 do 14974 case "$cf_opt" in 14975 (-nostdinc) 14976 cf_nostdinc="$cf_opt" 14977 ;; 14978 (-I/usr/include) 14979 cf_std_incl="$cf_opt" 14980 ;; 14981 (*) 14982 cf_cpp_opts="$cf_cpp_opts $cf_opt" 14983 ;; 14984 esac 14985 done 14986 if test -z "$cf_nostdinc" ; then 14987 IMAKE_CFLAGS="$cf_cpp_opts $cf_std_incl" 14988 elif test -z "$cf_std_incl" ; then 14989 IMAKE_CFLAGS="$cf_cpp_opts $cf_nostdinc" 14990 else 14991 test -n "$verbose" && echo " suppressed \"$cf_nostdinc\" and \"$cf_std_incl\"" 1>&6 14992 14993echo "${as_me:-configure}:14993: testing suppressed \"$cf_nostdinc\" and \"$cf_std_incl\" ..." 1>&5 14994 14995 IMAKE_CFLAGS="$cf_cpp_opts" 14996 fi 14997 fi 14998 fi 14999fi 15000 15001# Some imake configurations define PROJECTROOT with an empty value. Remove 15002# the empty definition. 15003case $IMAKE_CFLAGS in 15004(*-DPROJECTROOT=/*) 15005 ;; 15006(*) 15007 IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" |sed -e "s,-DPROJECTROOT=[ ], ,"` 15008 ;; 15009esac 15010 15011fi 15012 15013test -n "$verbose" && echo " IMAKE_CFLAGS $IMAKE_CFLAGS" 1>&6 15014 15015echo "${as_me:-configure}:15015: testing IMAKE_CFLAGS $IMAKE_CFLAGS ..." 1>&5 15016 15017test -n "$verbose" && echo " IMAKE_LOADFLAGS $IMAKE_LOADFLAGS" 1>&6 15018 15019echo "${as_me:-configure}:15019: testing IMAKE_LOADFLAGS $IMAKE_LOADFLAGS ..." 1>&5 15020 15021fi 15022 15023if test -n "$IMAKE" && test -n "$IMAKE_CFLAGS" ; then 15024 15025cf_fix_cppflags=no 15026cf_new_cflags= 15027cf_new_cppflags= 15028cf_new_extra_cppflags= 15029 15030for cf_add_cflags in $IMAKE_CFLAGS 15031do 15032case $cf_fix_cppflags in 15033(no) 15034 case $cf_add_cflags in 15035 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 15036 case $cf_add_cflags in 15037 (-D*) 15038 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 15039 15040 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 15041 && test -z "${cf_tst_cflags}" \ 15042 && cf_fix_cppflags=yes 15043 15044 if test $cf_fix_cppflags = yes ; then 15045 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 15046 continue 15047 elif test "${cf_tst_cflags}" = "\"'" ; then 15048 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 15049 continue 15050 fi 15051 ;; 15052 esac 15053 case "$CPPFLAGS" in 15054 (*$cf_add_cflags) 15055 ;; 15056 (*) 15057 case $cf_add_cflags in 15058 (-D*) 15059 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 15060 15061CPPFLAGS=`echo "$CPPFLAGS" | \ 15062 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 15063 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 15064 15065 ;; 15066 esac 15067 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 15068 ;; 15069 esac 15070 ;; 15071 (*) 15072 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 15073 ;; 15074 esac 15075 ;; 15076(yes) 15077 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 15078 15079 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 15080 15081 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 15082 && test -z "${cf_tst_cflags}" \ 15083 && cf_fix_cppflags=no 15084 ;; 15085esac 15086done 15087 15088if test -n "$cf_new_cflags" ; then 15089 15090 CFLAGS="$CFLAGS $cf_new_cflags" 15091fi 15092 15093if test -n "$cf_new_cppflags" ; then 15094 15095 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 15096fi 15097 15098if test -n "$cf_new_extra_cppflags" ; then 15099 15100 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 15101fi 15102 15103else 15104 IMAKE_CFLAGS= 15105 IMAKE_LOADFLAGS= 15106 test -n "$verbose" && echo " make fallback definitions" 1>&6 15107 15108echo "${as_me:-configure}:15108: testing make fallback definitions ..." 1>&5 15109 15110 # We prefer config.guess' values when we can get them, to avoid 15111 # inconsistent results with uname (AIX for instance). However, 15112 # config.guess is not always consistent either. 15113 case $host_os in 15114 (*[0-9].[0-9]*) 15115 UNAME_RELEASE="$host_os" 15116 ;; 15117 (*) 15118 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown 15119 ;; 15120 esac 15121 15122 case .$UNAME_RELEASE in 15123 (*[0-9].[0-9]*) 15124 OSMAJORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/\..*//'` 15125 OSMINORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/^[^.]*\.//' -e 's/\..*//' -e 's/[^0-9].*//' ` 15126 test -z "$OSMAJORVERSION" && OSMAJORVERSION=1 15127 test -z "$OSMINORVERSION" && OSMINORVERSION=0 15128 IMAKE_CFLAGS="-DOSMAJORVERSION=$OSMAJORVERSION -DOSMINORVERSION=$OSMINORVERSION $IMAKE_CFLAGS" 15129 ;; 15130 esac 15131 15132 # FUNCPROTO is standard with X11R6, but XFree86 drops it, leaving some 15133 # fallback/fragments for NeedPrototypes, etc. 15134 IMAKE_CFLAGS="-DFUNCPROTO=15 $IMAKE_CFLAGS" 15135 15136 # If this is not set properly, Xaw's scrollbars will not work 15137 if test "$enable_narrowproto" = yes ; then 15138 IMAKE_CFLAGS="-DNARROWPROTO=1 $IMAKE_CFLAGS" 15139 fi 15140 15141 # Other special definitions: 15142 case $host_os in 15143 (aix*) 15144 # imake on AIX 5.1 defines AIXV3. really. 15145 IMAKE_CFLAGS="-DAIXV3 -DAIXV4 $IMAKE_CFLAGS" 15146 ;; 15147 (irix[56].*) 15148 # these are needed to make SIGWINCH work in xterm 15149 IMAKE_CFLAGS="-DSYSV -DSVR4 $IMAKE_CFLAGS" 15150 ;; 15151 esac 15152 15153cf_fix_cppflags=no 15154cf_new_cflags= 15155cf_new_cppflags= 15156cf_new_extra_cppflags= 15157 15158for cf_add_cflags in $IMAKE_CFLAGS 15159do 15160case $cf_fix_cppflags in 15161(no) 15162 case $cf_add_cflags in 15163 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 15164 case $cf_add_cflags in 15165 (-D*) 15166 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 15167 15168 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 15169 && test -z "${cf_tst_cflags}" \ 15170 && cf_fix_cppflags=yes 15171 15172 if test $cf_fix_cppflags = yes ; then 15173 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 15174 continue 15175 elif test "${cf_tst_cflags}" = "\"'" ; then 15176 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 15177 continue 15178 fi 15179 ;; 15180 esac 15181 case "$CPPFLAGS" in 15182 (*$cf_add_cflags) 15183 ;; 15184 (*) 15185 case $cf_add_cflags in 15186 (-D*) 15187 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 15188 15189CPPFLAGS=`echo "$CPPFLAGS" | \ 15190 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 15191 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 15192 15193 ;; 15194 esac 15195 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 15196 ;; 15197 esac 15198 ;; 15199 (*) 15200 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 15201 ;; 15202 esac 15203 ;; 15204(yes) 15205 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 15206 15207 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 15208 15209 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 15210 && test -z "${cf_tst_cflags}" \ 15211 && cf_fix_cppflags=no 15212 ;; 15213esac 15214done 15215 15216if test -n "$cf_new_cflags" ; then 15217 15218 CFLAGS="$CFLAGS $cf_new_cflags" 15219fi 15220 15221if test -n "$cf_new_cppflags" ; then 15222 15223 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 15224fi 15225 15226if test -n "$cf_new_extra_cppflags" ; then 15227 15228 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 15229fi 15230 15231fi 15232 15233# Extract the first word of "groff", so it can be a program name with args. 15234set dummy groff; ac_word=$2 15235echo "$as_me:15235: checking for $ac_word" >&5 15236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 15237if test "${ac_cv_path_GROFF_PATH+set}" = set; then 15238 echo $ECHO_N "(cached) $ECHO_C" >&6 15239else 15240 case $GROFF_PATH in 15241 [\\/]* | ?:[\\/]*) 15242 ac_cv_path_GROFF_PATH="$GROFF_PATH" # Let the user override the test with a path. 15243 ;; 15244 *) 15245 ac_save_IFS=$IFS; IFS=$ac_path_separator 15246ac_dummy="$PATH" 15247for ac_dir in $ac_dummy; do 15248 IFS=$ac_save_IFS 15249 test -z "$ac_dir" && ac_dir=. 15250 if $as_executable_p "$ac_dir/$ac_word"; then 15251 ac_cv_path_GROFF_PATH="$ac_dir/$ac_word" 15252 echo "$as_me:15252: found $ac_dir/$ac_word" >&5 15253 break 15254fi 15255done 15256 15257 test -z "$ac_cv_path_GROFF_PATH" && ac_cv_path_GROFF_PATH="no" 15258 ;; 15259esac 15260fi 15261GROFF_PATH=$ac_cv_path_GROFF_PATH 15262 15263if test -n "$GROFF_PATH"; then 15264 echo "$as_me:15264: result: $GROFF_PATH" >&5 15265echo "${ECHO_T}$GROFF_PATH" >&6 15266else 15267 echo "$as_me:15267: result: no" >&5 15268echo "${ECHO_T}no" >&6 15269fi 15270 15271# Extract the first word of "nroff", so it can be a program name with args. 15272set dummy nroff; ac_word=$2 15273echo "$as_me:15273: checking for $ac_word" >&5 15274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 15275if test "${ac_cv_path_NROFF_PATH+set}" = set; then 15276 echo $ECHO_N "(cached) $ECHO_C" >&6 15277else 15278 case $NROFF_PATH in 15279 [\\/]* | ?:[\\/]*) 15280 ac_cv_path_NROFF_PATH="$NROFF_PATH" # Let the user override the test with a path. 15281 ;; 15282 *) 15283 ac_save_IFS=$IFS; IFS=$ac_path_separator 15284ac_dummy="$PATH" 15285for ac_dir in $ac_dummy; do 15286 IFS=$ac_save_IFS 15287 test -z "$ac_dir" && ac_dir=. 15288 if $as_executable_p "$ac_dir/$ac_word"; then 15289 ac_cv_path_NROFF_PATH="$ac_dir/$ac_word" 15290 echo "$as_me:15290: found $ac_dir/$ac_word" >&5 15291 break 15292fi 15293done 15294 15295 test -z "$ac_cv_path_NROFF_PATH" && ac_cv_path_NROFF_PATH="no" 15296 ;; 15297esac 15298fi 15299NROFF_PATH=$ac_cv_path_NROFF_PATH 15300 15301if test -n "$NROFF_PATH"; then 15302 echo "$as_me:15302: result: $NROFF_PATH" >&5 15303echo "${ECHO_T}$NROFF_PATH" >&6 15304else 15305 echo "$as_me:15305: result: no" >&5 15306echo "${ECHO_T}no" >&6 15307fi 15308 15309if test "x$GROFF_PATH" = xno 15310then 15311 NROFF_NOTE= 15312 GROFF_NOTE="#" 15313else 15314 NROFF_NOTE="#" 15315 GROFF_NOTE= 15316fi 15317 15318echo "$as_me:15318: checking for program to convert manpage to html" >&5 15319echo $ECHO_N "checking for program to convert manpage to html... $ECHO_C" >&6 15320 15321# Check whether --with-man2html or --without-man2html was given. 15322if test "${with_man2html+set}" = set; then 15323 withval="$with_man2html" 15324 cf_man2html=$withval 15325else 15326 cf_man2html=$GROFF_PATH 15327fi; 15328 15329cf_with_groff=no 15330 15331case $cf_man2html in 15332(yes) 15333 echo "$as_me:15333: result: man2html" >&5 15334echo "${ECHO_T}man2html" >&6 15335 # Extract the first word of "man2html", so it can be a program name with args. 15336set dummy man2html; ac_word=$2 15337echo "$as_me:15337: checking for $ac_word" >&5 15338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 15339if test "${ac_cv_path_cf_man2html+set}" = set; then 15340 echo $ECHO_N "(cached) $ECHO_C" >&6 15341else 15342 case $cf_man2html in 15343 [\\/]* | ?:[\\/]*) 15344 ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path. 15345 ;; 15346 *) 15347 ac_save_IFS=$IFS; IFS=$ac_path_separator 15348ac_dummy="$PATH" 15349for ac_dir in $ac_dummy; do 15350 IFS=$ac_save_IFS 15351 test -z "$ac_dir" && ac_dir=. 15352 if $as_executable_p "$ac_dir/$ac_word"; then 15353 ac_cv_path_cf_man2html="$ac_dir/$ac_word" 15354 echo "$as_me:15354: found $ac_dir/$ac_word" >&5 15355 break 15356fi 15357done 15358 15359 test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no" 15360 ;; 15361esac 15362fi 15363cf_man2html=$ac_cv_path_cf_man2html 15364 15365if test -n "$cf_man2html"; then 15366 echo "$as_me:15366: result: $cf_man2html" >&5 15367echo "${ECHO_T}$cf_man2html" >&6 15368else 15369 echo "$as_me:15369: result: no" >&5 15370echo "${ECHO_T}no" >&6 15371fi 15372 15373 ;; 15374(no|groff|*/groff*) 15375 cf_with_groff=yes 15376 cf_man2html=$GROFF_PATH 15377 echo "$as_me:15377: result: $cf_man2html" >&5 15378echo "${ECHO_T}$cf_man2html" >&6 15379 ;; 15380(*) 15381 echo "$as_me:15381: result: $cf_man2html" >&5 15382echo "${ECHO_T}$cf_man2html" >&6 15383 ;; 15384esac 15385 15386MAN2HTML_TEMP="man2html.tmp" 15387 cat >$MAN2HTML_TEMP <<CF_EOF 15388#!$SHELL 15389# Temporary script generated by CF_WITH_MAN2HTML 15390# Convert inputs to html, sending result to standard output. 15391# 15392# Parameters: 15393# \${1} = rootname of file to convert 15394# \${2} = suffix of file to convert, e.g., "1" 15395# \${3} = macros to use, e.g., "man" 15396# 15397ROOT=\$1 15398TYPE=\$2 15399MACS=\$3 15400 15401unset LANG 15402unset LC_ALL 15403unset LC_CTYPE 15404unset LANGUAGE 15405GROFF_NO_SGR=stupid 15406export GROFF_NO_SGR 15407 15408CF_EOF 15409 15410if test "x$cf_with_groff" = xyes 15411then 15412 MAN2HTML_NOTE="$GROFF_NOTE" 15413 MAN2HTML_PATH="$GROFF_PATH" 15414 cat >>$MAN2HTML_TEMP <<CF_EOF 15415$SHELL -c "tbl \${ROOT}.\${TYPE} | $GROFF_PATH -P -o0 -I\${ROOT}_ -Thtml -\${MACS}" 15416CF_EOF 15417else 15418 MAN2HTML_NOTE="" 15419 15420if test "x$prefix" != xNONE; then 15421 cf_path_syntax="$prefix" 15422else 15423 cf_path_syntax="$ac_default_prefix" 15424fi 15425 15426case ".$cf_man2html" in 15427(.\$\(*\)*|.\'*\'*) 15428 ;; 15429(..|./*|.\\*) 15430 ;; 15431(.[a-zA-Z]:[\\/]*) # OS/2 EMX 15432 ;; 15433(.\${*prefix}*|.\${*dir}*) 15434 eval cf_man2html="$cf_man2html" 15435 case ".$cf_man2html" in 15436 (.NONE/*) 15437 cf_man2html=`echo $cf_man2html | sed -e s%NONE%$cf_path_syntax%` 15438 ;; 15439 esac 15440 ;; 15441(.no|.NONE/*) 15442 cf_man2html=`echo $cf_man2html | sed -e s%NONE%$cf_path_syntax%` 15443 ;; 15444(*) 15445 { { echo "$as_me:15445: error: expected a pathname, not \"$cf_man2html\"" >&5 15446echo "$as_me: error: expected a pathname, not \"$cf_man2html\"" >&2;} 15447 { (exit 1); exit 1; }; } 15448 ;; 15449esac 15450 15451 MAN2HTML_PATH="$cf_man2html" 15452 echo "$as_me:15452: checking for $cf_man2html top/bottom margins" >&5 15453echo $ECHO_N "checking for $cf_man2html top/bottom margins... $ECHO_C" >&6 15454 15455 # for this example, expect 3 lines of content, the remainder is head/foot 15456 cat >conftest.in <<CF_EOF 15457.TH HEAD1 HEAD2 HEAD3 HEAD4 HEAD5 15458.SH SECTION 15459MARKER 15460CF_EOF 15461 15462 LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C nroff -man conftest.in >conftest.out 15463 15464 cf_man2html_1st=`fgrep -n MARKER conftest.out |sed -e 's/^[^0-9]*://' -e 's/:.*//'` 15465 cf_man2html_top=`expr $cf_man2html_1st - 2` 15466 cf_man2html_bot=`wc -l conftest.out |sed -e 's/[^0-9]//g'` 15467 cf_man2html_bot=`expr $cf_man2html_bot - 2 - $cf_man2html_top` 15468 cf_man2html_top_bot="-topm=$cf_man2html_top -botm=$cf_man2html_bot" 15469 15470 echo "$as_me:15470: result: $cf_man2html_top_bot" >&5 15471echo "${ECHO_T}$cf_man2html_top_bot" >&6 15472 15473 echo "$as_me:15473: checking for pagesize to use" >&5 15474echo $ECHO_N "checking for pagesize to use... $ECHO_C" >&6 15475 for cf_block in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 15476 do 15477 cat >>conftest.in <<CF_EOF 15478.nf 154790 154801 154812 154823 154834 154845 154856 154867 154878 154889 15489CF_EOF 15490 done 15491 15492 LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C nroff -man conftest.in >conftest.out 15493 cf_man2html_page=`fgrep -n HEAD1 conftest.out |tail -n 1 |sed -e 's/^[^0-9]*://' -e 's/:.*//'` 15494 test -z "$cf_man2html_page" && cf_man2html_page=99999 15495 test "$cf_man2html_page" -gt 100 && cf_man2html_page=99999 15496 15497 rm -rf conftest* 15498 echo "$as_me:15498: result: $cf_man2html_page" >&5 15499echo "${ECHO_T}$cf_man2html_page" >&6 15500 15501 cat >>$MAN2HTML_TEMP <<CF_EOF 15502: \${MAN2HTML_PATH=$MAN2HTML_PATH} 15503MAN2HTML_OPTS="\$MAN2HTML_OPTS -index -title="\$ROOT\(\$TYPE\)" -compress -pgsize $cf_man2html_page" 15504case \${TYPE} in 15505(ms) 15506 tbl \${ROOT}.\${TYPE} | nroff -\${MACS} | \$MAN2HTML_PATH -topm=0 -botm=0 \$MAN2HTML_OPTS 15507 ;; 15508(*) 15509 tbl \${ROOT}.\${TYPE} | nroff -\${MACS} | \$MAN2HTML_PATH $cf_man2html_top_bot \$MAN2HTML_OPTS 15510 ;; 15511esac 15512CF_EOF 15513fi 15514 15515chmod 700 $MAN2HTML_TEMP 15516 15517# If we have already established that there is a full termcap implementation, 15518# suppress the definitions for terminfo that we make have imported from the 15519# imake-file. 15520if test "x$cf_cv_lib_tgetent" != xno || test "x$cf_cv_lib_part_tgetent" != xno ; then 15521 case "$IMAKE_CFLAGS" in 15522 (*-DUSE_TERMINFO\ -DHAVE_TIGETSTR*) 15523 15524 test -n "$verbose" && echo " removing terminfo flags from IMAKE_CFLAGS" 1>&6 15525 15526echo "${as_me:-configure}:15526: testing removing terminfo flags from IMAKE_CFLAGS ..." 1>&5 15527 15528 IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" | sed -e 's/-DUSE_TERMINFO[ ]*-DHAVE_TIGETSTR[ ]*//'` 15529 test -n "$verbose" && echo " ...result $IMAKE_CFLAGS" 1>&6 15530 15531echo "${as_me:-configure}:15531: testing ...result $IMAKE_CFLAGS ..." 1>&5 15532 15533 test -n "$verbose" && echo " removing terminfo flags from CPPFLAGS" 1>&6 15534 15535echo "${as_me:-configure}:15535: testing removing terminfo flags from CPPFLAGS ..." 1>&5 15536 15537 CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/-DUSE_TERMINFO[ ]*-DHAVE_TIGETSTR[ ]*//'` 15538 test -n "$verbose" && echo " ...result $CPPFLAGS" 1>&6 15539 15540echo "${as_me:-configure}:15540: testing ...result $CPPFLAGS ..." 1>&5 15541 15542 ;; 15543 esac 15544fi 15545 15546echo "$as_me:15546: checking for default terminal-id" >&5 15547echo $ECHO_N "checking for default terminal-id... $ECHO_C" >&6 15548 15549# Check whether --with-terminal-id or --without-terminal-id was given. 15550if test "${with_terminal_id+set}" = set; then 15551 withval="$with_terminal_id" 15552 default_termid=$withval 15553else 15554 default_termid=vt420 15555fi; 15556echo "$as_me:15556: result: $default_termid" >&5 15557echo "${ECHO_T}$default_termid" >&6 15558case $default_termid in 15559(vt*) default_termid=`echo $default_termid | sed -e 's/^..//'` 15560 ;; 15561esac 15562 15563cat >>confdefs.h <<EOF 15564#define DFT_DECID "$default_termid" 15565EOF 15566 15567echo "$as_me:15567: checking for default terminal-type" >&5 15568echo $ECHO_N "checking for default terminal-type... $ECHO_C" >&6 15569 15570# Check whether --with-terminal-type or --without-terminal-type was given. 15571if test "${with_terminal_type+set}" = set; then 15572 withval="$with_terminal_type" 15573 default_TERM=$withval 15574else 15575 default_TERM=xterm 15576fi; 15577echo "$as_me:15577: result: $default_TERM" >&5 15578echo "${ECHO_T}$default_TERM" >&6 15579 15580cat >>confdefs.h <<EOF 15581#define DFT_TERMTYPE "$default_TERM" 15582EOF 15583 15584############################################################################### 15585echo "$as_me:15585: checking if backarrow-key should be BS" >&5 15586echo $ECHO_N "checking if backarrow-key should be BS... $ECHO_C" >&6 15587 15588# Check whether --enable-backarrow-key or --disable-backarrow-key was given. 15589if test "${enable_backarrow_key+set}" = set; then 15590 enableval="$enable_backarrow_key" 15591 test "$enableval" != no && enableval=yes 15592 if test "$enableval" != "yes" ; then 15593 backarrow_is_bs=$enableval 15594 else 15595 backarrow_is_bs=yes 15596 fi 15597else 15598 enableval=yes 15599 backarrow_is_bs=yes 15600 15601fi; 15602 15603echo "$as_me:15603: result: $backarrow_is_bs" >&5 15604echo "${ECHO_T}$backarrow_is_bs" >&6 15605case $backarrow_is_bs in 15606(yes) 15607 backarrow_is_bs=true 15608 ;; 15609(no) 15610 backarrow_is_bs=false 15611 ;; 15612esac 15613cf_xbool1=`echo "$backarrow_is_bs"|sed -e 's/^\(.\).*/\1/'` 15614 15615cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 15616 15617cf_xbool2=`echo "$backarrow_is_bs"|sed -e 's/^.//'` 15618backarrow_is_bs=${cf_xbool1}${cf_xbool2} 15619 15620cat >>confdefs.h <<EOF 15621#define DEF_BACKARO_BS $backarrow_is_bs 15622EOF 15623 15624echo "$as_me:15624: checking if backarrow-key should be treated as erase" >&5 15625echo $ECHO_N "checking if backarrow-key should be treated as erase... $ECHO_C" >&6 15626 15627# Check whether --enable-backarrow-is-erase or --disable-backarrow-is-erase was given. 15628if test "${enable_backarrow_is_erase+set}" = set; then 15629 enableval="$enable_backarrow_is_erase" 15630 test "$enableval" != yes && enableval=no 15631 if test "$enableval" != "no" ; then 15632 backarrow_is_erase=$enableval 15633 else 15634 backarrow_is_erase=no 15635 fi 15636else 15637 enableval=no 15638 backarrow_is_erase=no 15639 15640fi; 15641 15642echo "$as_me:15642: result: $backarrow_is_erase" >&5 15643echo "${ECHO_T}$backarrow_is_erase" >&6 15644case $backarrow_is_erase in 15645(yes) 15646 backarrow_is_erase=true 15647 ;; 15648(no) 15649 backarrow_is_erase=false 15650 ;; 15651esac 15652cf_xbool1=`echo "$backarrow_is_erase"|sed -e 's/^\(.\).*/\1/'` 15653 15654cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 15655 15656cf_xbool2=`echo "$backarrow_is_erase"|sed -e 's/^.//'` 15657backarrow_is_erase=${cf_xbool1}${cf_xbool2} 15658 15659cat >>confdefs.h <<EOF 15660#define DEF_BACKARO_ERASE $backarrow_is_erase 15661EOF 15662 15663echo "$as_me:15663: checking for default backspace/DEL setting" >&5 15664echo $ECHO_N "checking for default backspace/DEL setting... $ECHO_C" >&6 15665 15666# Check whether --enable-delete-is-del or --disable-delete-is-del was given. 15667if test "${enable_delete_is_del+set}" = set; then 15668 enableval="$enable_delete_is_del" 15669 delete_is_del=$enableval 15670else 15671 delete_is_del=maybe 15672fi; 15673 15674echo "$as_me:15674: result: $delete_is_del" >&5 15675echo "${ECHO_T}$delete_is_del" >&6 15676case $delete_is_del in 15677(yes) 15678 delete_is_del=true 15679 ;; 15680(no) 15681 delete_is_del=false 15682 ;; 15683esac 15684cf_xbool1=`echo "$delete_is_del"|sed -e 's/^\(.\).*/\1/'` 15685 15686cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 15687 15688cf_xbool2=`echo "$delete_is_del"|sed -e 's/^.//'` 15689delete_is_del=${cf_xbool1}${cf_xbool2} 15690 15691cat >>confdefs.h <<EOF 15692#define DEFDELETE_DEL $delete_is_del 15693EOF 15694 15695echo "$as_me:15695: checking for default pty initial erase setting" >&5 15696echo $ECHO_N "checking for default pty initial erase setting... $ECHO_C" >&6 15697 15698# Check whether --enable-pty-erase or --disable-pty-erase was given. 15699if test "${enable_pty_erase+set}" = set; then 15700 enableval="$enable_pty_erase" 15701 initial_erase=$enableval 15702else 15703 initial_erase=False 15704fi; 15705 15706echo "$as_me:15706: result: $initial_erase" >&5 15707echo "${ECHO_T}$initial_erase" >&6 15708case $initial_erase in 15709(yes) 15710 initial_erase=true 15711 ;; 15712(no) 15713 initial_erase=false 15714 ;; 15715esac 15716cf_xbool1=`echo "$initial_erase"|sed -e 's/^\(.\).*/\1/'` 15717 15718cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 15719 15720cf_xbool2=`echo "$initial_erase"|sed -e 's/^.//'` 15721initial_erase=${cf_xbool1}${cf_xbool2} 15722 15723cat >>confdefs.h <<EOF 15724#define DEF_INITIAL_ERASE $initial_erase 15725EOF 15726 15727echo "$as_me:15727: checking if alt should send ESC" >&5 15728echo $ECHO_N "checking if alt should send ESC... $ECHO_C" >&6 15729 15730# Check whether --enable-alt-sends-esc or --disable-alt-sends-esc was given. 15731if test "${enable_alt_sends_esc+set}" = set; then 15732 enableval="$enable_alt_sends_esc" 15733 test "$enableval" != yes && enableval=no 15734 if test "$enableval" != "no" ; then 15735 alt_sends_esc=$enableval 15736 else 15737 alt_sends_esc=no 15738 fi 15739else 15740 enableval=no 15741 alt_sends_esc=no 15742 15743fi; 15744 15745echo "$as_me:15745: result: $alt_sends_esc" >&5 15746echo "${ECHO_T}$alt_sends_esc" >&6 15747case $alt_sends_esc in 15748(yes) 15749 alt_sends_esc=true 15750 ;; 15751(no) 15752 alt_sends_esc=false 15753 ;; 15754esac 15755cf_xbool1=`echo "$alt_sends_esc"|sed -e 's/^\(.\).*/\1/'` 15756 15757cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 15758 15759cf_xbool2=`echo "$alt_sends_esc"|sed -e 's/^.//'` 15760alt_sends_esc=${cf_xbool1}${cf_xbool2} 15761 15762cat >>confdefs.h <<EOF 15763#define DEF_ALT_SENDS_ESC $alt_sends_esc 15764EOF 15765 15766echo "$as_me:15766: checking if meta should send ESC" >&5 15767echo $ECHO_N "checking if meta should send ESC... $ECHO_C" >&6 15768 15769# Check whether --enable-meta-sends-esc or --disable-meta-sends-esc was given. 15770if test "${enable_meta_sends_esc+set}" = set; then 15771 enableval="$enable_meta_sends_esc" 15772 test "$enableval" != yes && enableval=no 15773 if test "$enableval" != "no" ; then 15774 meta_sends_esc=$enableval 15775 else 15776 meta_sends_esc=no 15777 fi 15778else 15779 enableval=no 15780 meta_sends_esc=no 15781 15782fi; 15783 15784echo "$as_me:15784: result: $meta_sends_esc" >&5 15785echo "${ECHO_T}$meta_sends_esc" >&6 15786case $meta_sends_esc in 15787(yes) 15788 meta_sends_esc=true 15789 ;; 15790(no) 15791 meta_sends_esc=false 15792 ;; 15793esac 15794cf_xbool1=`echo "$meta_sends_esc"|sed -e 's/^\(.\).*/\1/'` 15795 15796cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 15797 15798cf_xbool2=`echo "$meta_sends_esc"|sed -e 's/^.//'` 15799meta_sends_esc=${cf_xbool1}${cf_xbool2} 15800 15801cat >>confdefs.h <<EOF 15802#define DEF_META_SENDS_ESC $meta_sends_esc 15803EOF 15804 15805############################################################################### 15806# Extract the first word of "tic", so it can be a program name with args. 15807set dummy tic; ac_word=$2 15808echo "$as_me:15808: checking for $ac_word" >&5 15809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 15810if test "${ac_cv_prog_cf_tic_prog+set}" = set; then 15811 echo $ECHO_N "(cached) $ECHO_C" >&6 15812else 15813 if test -n "$cf_tic_prog"; then 15814 ac_cv_prog_cf_tic_prog="$cf_tic_prog" # Let the user override the test. 15815else 15816 ac_save_IFS=$IFS; IFS=$ac_path_separator 15817ac_dummy="$PATH" 15818for ac_dir in $ac_dummy; do 15819 IFS=$ac_save_IFS 15820 test -z "$ac_dir" && ac_dir=. 15821 $as_executable_p "$ac_dir/$ac_word" || continue 15822ac_cv_prog_cf_tic_prog="yes" 15823echo "$as_me:15823: found $ac_dir/$ac_word" >&5 15824break 15825done 15826 15827 test -z "$ac_cv_prog_cf_tic_prog" && ac_cv_prog_cf_tic_prog="no" 15828fi 15829fi 15830cf_tic_prog=$ac_cv_prog_cf_tic_prog 15831if test -n "$cf_tic_prog"; then 15832 echo "$as_me:15832: result: $cf_tic_prog" >&5 15833echo "${ECHO_T}$cf_tic_prog" >&6 15834else 15835 echo "$as_me:15835: result: no" >&5 15836echo "${ECHO_T}no" >&6 15837fi 15838 15839if test "$cf_tic_prog" = yes ; then 15840 echo "$as_me:15840: checking for private terminfo-directory" >&5 15841echo $ECHO_N "checking for private terminfo-directory... $ECHO_C" >&6 15842 15843# Check whether --with-own-terminfo or --without-own-terminfo was given. 15844if test "${with_own_terminfo+set}" = set; then 15845 withval="$with_own_terminfo" 15846 TERMINFO_DIR=$withval 15847else 15848 TERMINFO_DIR=${TERMINFO-none} 15849fi; 15850 echo "$as_me:15850: result: $TERMINFO_DIR" >&5 15851echo "${ECHO_T}$TERMINFO_DIR" >&6 15852 if test "$TERMINFO_DIR" = yes ; then 15853 { echo "$as_me:15853: WARNING: no value given" >&5 15854echo "$as_me: WARNING: no value given" >&2;} 15855 elif test "$TERMINFO_DIR" != none ; then 15856 if test -d $TERMINFO_DIR ; then 15857 15858cat >>confdefs.h <<EOF 15859#define OWN_TERMINFO_DIR "$TERMINFO_DIR" 15860EOF 15861 15862 else 15863 { echo "$as_me:15863: WARNING: not a directory" >&5 15864echo "$as_me: WARNING: not a directory" >&2;} 15865 fi 15866 elif test "$prefix" != NONE ; then 15867 TERMINFO_DIR='${prefix}/lib/terminfo' 15868 elif test -d /usr/lib/terminfo ; then 15869 TERMINFO_DIR=/usr/lib/terminfo 15870 else 15871 TERMINFO_DIR= 15872 fi 15873 SET_TERMINFO= 15874 if test -n "$TERMINFO_DIR" ; then 15875 TERMINFO_DIR='$(DESTDIR)'$TERMINFO_DIR 15876 SET_TERMINFO='TERMINFO=$(TERMINFO_DIR)' 15877 fi 15878 no_ticprog= 15879else 15880 no_ticprog="#" 15881 TERMINFO_DIR= 15882 SET_TERMINFO= 15883fi 15884 15885############################################################################### 15886 15887echo "$as_me:15887: checking if you want active-icons" >&5 15888echo $ECHO_N "checking if you want active-icons... $ECHO_C" >&6 15889 15890# Check whether --enable-active-icon or --disable-active-icon was given. 15891if test "${enable_active_icon+set}" = set; then 15892 enableval="$enable_active_icon" 15893 test "$enableval" != no && enableval=yes 15894 if test "$enableval" != "yes" ; then 15895 enable_active_icon=no 15896 else 15897 enable_active_icon=yes 15898 fi 15899else 15900 enableval=yes 15901 enable_active_icon=yes 15902 15903fi; 15904echo "$as_me:15904: result: $enable_active_icon" >&5 15905echo "${ECHO_T}$enable_active_icon" >&6 15906if test "$enable_active_icon" = no ; then 15907 15908cat >>confdefs.h <<\EOF 15909#define NO_ACTIVE_ICON 1 15910EOF 15911 15912fi 15913 15914echo "$as_me:15914: checking if you want ANSI color" >&5 15915echo $ECHO_N "checking if you want ANSI color... $ECHO_C" >&6 15916 15917# Check whether --enable-ansi-color or --disable-ansi-color was given. 15918if test "${enable_ansi_color+set}" = set; then 15919 enableval="$enable_ansi_color" 15920 test "$enableval" != no && enableval=yes 15921 if test "$enableval" != "yes" ; then 15922 enable_ansi_color=no 15923 else 15924 enable_ansi_color=yes 15925 fi 15926else 15927 enableval=yes 15928 enable_ansi_color=yes 15929 15930fi; 15931echo "$as_me:15931: result: $enable_ansi_color" >&5 15932echo "${ECHO_T}$enable_ansi_color" >&6 15933test "$enable_ansi_color" = no && 15934cat >>confdefs.h <<\EOF 15935#define OPT_ISO_COLORS 0 15936EOF 15937 15938if test "$enable_ansi_color" = yes ; then 15939 15940 echo "$as_me:15940: checking if you want 16 colors like aixterm" >&5 15941echo $ECHO_N "checking if you want 16 colors like aixterm... $ECHO_C" >&6 15942 15943# Check whether --enable-16-color or --disable-16-color was given. 15944if test "${enable_16_color+set}" = set; then 15945 enableval="$enable_16_color" 15946 test "$enableval" != no && enableval=yes 15947 if test "$enableval" != "yes" ; then 15948 enable_16_color=no 15949 else 15950 enable_16_color=yes 15951 fi 15952else 15953 enableval=yes 15954 enable_16_color=yes 15955 15956fi; 15957 echo "$as_me:15957: result: $enable_16_color" >&5 15958echo "${ECHO_T}$enable_16_color" >&6 15959 test "$enable_16_color" = no && 15960cat >>confdefs.h <<\EOF 15961#define OPT_AIX_COLORS 0 15962EOF 15963 15964 echo "$as_me:15964: checking if you want 256 colors" >&5 15965echo $ECHO_N "checking if you want 256 colors... $ECHO_C" >&6 15966 15967# Check whether --enable-256-color or --disable-256-color was given. 15968if test "${enable_256_color+set}" = set; then 15969 enableval="$enable_256_color" 15970 test "$enableval" != yes && enableval=no 15971 if test "$enableval" != "no" ; then 15972 enable_256_color=yes 15973 else 15974 enable_256_color=no 15975 fi 15976else 15977 enableval=no 15978 enable_256_color=no 15979 15980fi; 15981 echo "$as_me:15981: result: $enable_256_color" >&5 15982echo "${ECHO_T}$enable_256_color" >&6 15983 if test "$enable_256_color" = yes ; then 15984 CHARPROC_DEPS="$CHARPROC_DEPS 256colres.h" 15985 EXTRAHDRS="$EXTRAHDRS 256colres.h" 15986 15987cat >>confdefs.h <<\EOF 15988#define OPT_256_COLORS 1 15989EOF 15990 15991 else 15992 echo "$as_me:15992: checking if you want 88 colors" >&5 15993echo $ECHO_N "checking if you want 88 colors... $ECHO_C" >&6 15994 15995# Check whether --enable-88-color or --disable-88-color was given. 15996if test "${enable_88_color+set}" = set; then 15997 enableval="$enable_88_color" 15998 test "$enableval" != yes && enableval=no 15999 if test "$enableval" != "no" ; then 16000 enable_88_color=yes 16001 else 16002 enable_88_color=no 16003 fi 16004else 16005 enableval=no 16006 enable_88_color=no 16007 16008fi; 16009 echo "$as_me:16009: result: $enable_88_color" >&5 16010echo "${ECHO_T}$enable_88_color" >&6 16011 if test "$enable_88_color" = yes ; then 16012 CHARPROC_DEPS="$CHARPROC_DEPS 88colres.h" 16013 EXTRAHDRS="$EXTRAHDRS 88colres.h" 16014 16015cat >>confdefs.h <<\EOF 16016#define OPT_88_COLORS 1 16017EOF 16018 16019 fi 16020 fi 16021 16022fi 16023 16024echo "$as_me:16024: checking if you want blinking cursor" >&5 16025echo $ECHO_N "checking if you want blinking cursor... $ECHO_C" >&6 16026 16027# Check whether --enable-blink-cursor or --disable-blink-cursor was given. 16028if test "${enable_blink_cursor+set}" = set; then 16029 enableval="$enable_blink_cursor" 16030 test "$enableval" != no && enableval=yes 16031 if test "$enableval" != "yes" ; then 16032 enable_blink_curs=no 16033 else 16034 enable_blink_curs=yes 16035 fi 16036else 16037 enableval=yes 16038 enable_blink_curs=yes 16039 16040fi; 16041echo "$as_me:16041: result: $enable_blink_curs" >&5 16042echo "${ECHO_T}$enable_blink_curs" >&6 16043test "$enable_blink_curs" = no && 16044cat >>confdefs.h <<\EOF 16045#define OPT_BLINK_CURS 0 16046EOF 16047 16048echo "$as_me:16048: checking if you want to ignore Linux's broken palette-strings" >&5 16049echo $ECHO_N "checking if you want to ignore Linux's broken palette-strings... $ECHO_C" >&6 16050 16051case $host_os in 16052(linux*) 16053 assume_broken_osc=yes ;; 16054(*) 16055 assume_broken_osc=no ;; 16056esac 16057 16058# Check whether --enable-broken-osc or --disable-broken-osc was given. 16059if test "${enable_broken_osc+set}" = set; then 16060 enableval="$enable_broken_osc" 16061 test "$enableval" != no && enableval=yes 16062 if test "$enableval" != "$assume_broken_osc" ; then 16063 enable_broken_osc=$enableval 16064 else 16065 enable_broken_osc=$enableval 16066 fi 16067else 16068 enableval=$assume_broken_osc 16069 enable_broken_osc=$enableval 16070 16071fi; 16072echo "$as_me:16072: result: $enable_broken_osc" >&5 16073echo "${ECHO_T}$enable_broken_osc" >&6 16074if test "$enable_broken_osc" = yes ; then 16075 16076cat >>confdefs.h <<\EOF 16077#define OPT_BROKEN_OSC 1 16078EOF 16079 16080else 16081 16082cat >>confdefs.h <<\EOF 16083#define OPT_BROKEN_OSC 0 16084EOF 16085 16086fi 16087 16088echo "$as_me:16088: checking if you want to allow broken string-terminators" >&5 16089echo $ECHO_N "checking if you want to allow broken string-terminators... $ECHO_C" >&6 16090 16091# Check whether --enable-broken-st or --disable-broken-st was given. 16092if test "${enable_broken_st+set}" = set; then 16093 enableval="$enable_broken_st" 16094 test "$enableval" != yes && enableval=no 16095 if test "$enableval" != "no" ; then 16096 enable_broken_st=no 16097 else 16098 enable_broken_st=yes 16099 fi 16100else 16101 enableval=no 16102 enable_broken_st=yes 16103 16104fi; 16105echo "$as_me:16105: result: $enable_broken_st" >&5 16106echo "${ECHO_T}$enable_broken_st" >&6 16107test "$enable_broken_st" = no && 16108cat >>confdefs.h <<\EOF 16109#define OPT_BROKEN_ST 0 16110EOF 16111 16112echo "$as_me:16112: checking if you want to compile-in icon data" >&5 16113echo $ECHO_N "checking if you want to compile-in icon data... $ECHO_C" >&6 16114 16115# Check whether --enable-builtin-xpms or --disable-builtin-xpms was given. 16116if test "${enable_builtin_xpms+set}" = set; then 16117 enableval="$enable_builtin_xpms" 16118 test "$enableval" != yes && enableval=no 16119 if test "$enableval" != "no" ; then 16120 enable_builtin_xpms=yes 16121 else 16122 enable_builtin_xpms=no 16123 fi 16124else 16125 enableval=no 16126 enable_builtin_xpms=no 16127 16128fi; 16129echo "$as_me:16129: result: $enable_builtin_xpms" >&5 16130echo "${ECHO_T}$enable_builtin_xpms" >&6 16131test "$enable_builtin_xpms" = yes && 16132cat >>confdefs.h <<\EOF 16133#define OPT_BUILTIN_XPMS 1 16134EOF 16135 16136echo "$as_me:16136: checking if you want printable 128-159" >&5 16137echo $ECHO_N "checking if you want printable 128-159... $ECHO_C" >&6 16138 16139# Check whether --enable-c1-print or --disable-c1-print was given. 16140if test "${enable_c1_print+set}" = set; then 16141 enableval="$enable_c1_print" 16142 test "$enableval" != no && enableval=yes 16143 if test "$enableval" != "yes" ; then 16144 enable_c1_print=no 16145 else 16146 enable_c1_print=yes 16147 fi 16148else 16149 enableval=yes 16150 enable_c1_print=yes 16151 16152fi; 16153echo "$as_me:16153: result: $enable_c1_print" >&5 16154echo "${ECHO_T}$enable_c1_print" >&6 16155test "$enable_c1_print" = no && 16156cat >>confdefs.h <<\EOF 16157#define OPT_C1_PRINT 0 16158EOF 16159 16160if test "$enable_ansi_color" = yes ; then 16161 16162 echo "$as_me:16162: checking if you want bold colors mapped like IBM PC" >&5 16163echo $ECHO_N "checking if you want bold colors mapped like IBM PC... $ECHO_C" >&6 16164 16165# Check whether --enable-bold-color or --disable-bold-color was given. 16166if test "${enable_bold_color+set}" = set; then 16167 enableval="$enable_bold_color" 16168 test "$enableval" != no && enableval=yes 16169 if test "$enableval" != "yes" ; then 16170 enable_pc_color=no 16171 else 16172 enable_pc_color=yes 16173 fi 16174else 16175 enableval=yes 16176 enable_pc_color=yes 16177 16178fi; 16179 echo "$as_me:16179: result: $enable_pc_color" >&5 16180echo "${ECHO_T}$enable_pc_color" >&6 16181 test "$enable_pc_color" = no && 16182cat >>confdefs.h <<\EOF 16183#define OPT_PC_COLORS 0 16184EOF 16185 16186 echo "$as_me:16186: checking if you want separate color-classes" >&5 16187echo $ECHO_N "checking if you want separate color-classes... $ECHO_C" >&6 16188 16189# Check whether --enable-color-class or --disable-color-class was given. 16190if test "${enable_color_class+set}" = set; then 16191 enableval="$enable_color_class" 16192 test "$enableval" != no && enableval=yes 16193 if test "$enableval" != "yes" ; then 16194 enable_color_class=no 16195 else 16196 enable_color_class=yes 16197 fi 16198else 16199 enableval=yes 16200 enable_color_class=yes 16201 16202fi; 16203 echo "$as_me:16203: result: $enable_color_class" >&5 16204echo "${ECHO_T}$enable_color_class" >&6 16205 test "$enable_color_class" = no && 16206cat >>confdefs.h <<\EOF 16207#define OPT_COLOR_CLASS 0 16208EOF 16209 16210 echo "$as_me:16210: checking if you want color-mode enabled by default" >&5 16211echo $ECHO_N "checking if you want color-mode enabled by default... $ECHO_C" >&6 16212 16213# Check whether --enable-color-mode or --disable-color-mode was given. 16214if test "${enable_color_mode+set}" = set; then 16215 enableval="$enable_color_mode" 16216 test "$enableval" != no && enableval=yes 16217 if test "$enableval" != "yes" ; then 16218 default_colormode=no 16219 else 16220 default_colormode=yes 16221 fi 16222else 16223 enableval=yes 16224 default_colormode=yes 16225 16226fi; 16227 echo "$as_me:16227: result: $default_colormode" >&5 16228echo "${ECHO_T}$default_colormode" >&6 16229 test "$default_colormode" = no && 16230cat >>confdefs.h <<\EOF 16231#define DFT_COLORMODE 0 16232EOF 16233 16234fi 16235 16236echo "$as_me:16236: checking if you want support for color highlighting" >&5 16237echo $ECHO_N "checking if you want support for color highlighting... $ECHO_C" >&6 16238 16239# Check whether --enable-highlighting or --disable-highlighting was given. 16240if test "${enable_highlighting+set}" = set; then 16241 enableval="$enable_highlighting" 16242 test "$enableval" != no && enableval=yes 16243 if test "$enableval" != "yes" ; then 16244 default_highlight=no 16245 else 16246 default_highlight=yes 16247 fi 16248else 16249 enableval=yes 16250 default_highlight=yes 16251 16252fi; 16253echo "$as_me:16253: result: $default_highlight" >&5 16254echo "${ECHO_T}$default_highlight" >&6 16255test "$default_highlight" = no && 16256cat >>confdefs.h <<\EOF 16257#define OPT_HIGHLIGHT_COLOR 0 16258EOF 16259 16260echo "$as_me:16260: checking if you want support for doublesize characters" >&5 16261echo $ECHO_N "checking if you want support for doublesize characters... $ECHO_C" >&6 16262 16263# Check whether --enable-doublechars or --disable-doublechars was given. 16264if test "${enable_doublechars+set}" = set; then 16265 enableval="$enable_doublechars" 16266 test "$enableval" != no && enableval=yes 16267 if test "$enableval" != "yes" ; then 16268 enable_doublechars=no 16269 else 16270 enable_doublechars=yes 16271 fi 16272else 16273 enableval=yes 16274 enable_doublechars=yes 16275 16276fi; 16277echo "$as_me:16277: result: $enable_doublechars" >&5 16278echo "${ECHO_T}$enable_doublechars" >&6 16279test "$enable_doublechars" = no && 16280cat >>confdefs.h <<\EOF 16281#define OPT_DEC_CHRSET 0 16282EOF 16283 16284echo "$as_me:16284: checking if you want fallback-support for box characters" >&5 16285echo $ECHO_N "checking if you want fallback-support for box characters... $ECHO_C" >&6 16286 16287# Check whether --enable-boxchars or --disable-boxchars was given. 16288if test "${enable_boxchars+set}" = set; then 16289 enableval="$enable_boxchars" 16290 test "$enableval" != no && enableval=yes 16291 if test "$enableval" != "yes" ; then 16292 enable_boxchars=no 16293 else 16294 enable_boxchars=yes 16295 fi 16296else 16297 enableval=yes 16298 enable_boxchars=yes 16299 16300fi; 16301echo "$as_me:16301: result: $enable_boxchars" >&5 16302echo "${ECHO_T}$enable_boxchars" >&6 16303test "$enable_boxchars" = no && 16304cat >>confdefs.h <<\EOF 16305#define OPT_BOX_CHARS 0 16306EOF 16307 16308echo "$as_me:16308: checking if you want to allow spawning new xterms" >&5 16309echo $ECHO_N "checking if you want to allow spawning new xterms... $ECHO_C" >&6 16310 16311# Check whether --enable-exec-xterm or --disable-exec-xterm was given. 16312if test "${enable_exec_xterm+set}" = set; then 16313 enableval="$enable_exec_xterm" 16314 test "$enableval" != yes && enableval=no 16315 if test "$enableval" != "no" ; then 16316 enable_exec_xterm=yes 16317 else 16318 enable_exec_xterm=no 16319 fi 16320else 16321 enableval=no 16322 enable_exec_xterm=no 16323 16324fi; 16325echo "$as_me:16325: result: $enable_exec_xterm" >&5 16326echo "${ECHO_T}$enable_exec_xterm" >&6 16327if test "$enable_exec_xterm" = yes ; then 16328 16329echo "$as_me:16329: checking for proc tree with cwd-support" >&5 16330echo $ECHO_N "checking for proc tree with cwd-support... $ECHO_C" >&6 16331if test "${cf_cv_procfs_cwd+set}" = set; then 16332 echo $ECHO_N "(cached) $ECHO_C" >&6 16333else 16334 16335cf_cv_procfs_cwd=no 16336for cf_path in /proc /compat/linux/proc /usr/compat/linux/proc 16337do 16338 if test -d $cf_path && \ 16339 test -d $cf_path/$$ && \ 16340 ( test -d $cf_path/$$/cwd || \ 16341 test -L $cf_path/$$/cwd ); then 16342 cf_cv_procfs_cwd=$cf_path 16343 break 16344 fi 16345done 16346 16347fi 16348echo "$as_me:16348: result: $cf_cv_procfs_cwd" >&5 16349echo "${ECHO_T}$cf_cv_procfs_cwd" >&6 16350 16351 if test "$cf_cv_procfs_cwd" = no ; then 16352 { echo "$as_me:16352: WARNING: no suitable proc filesystem found" >&5 16353echo "$as_me: WARNING: no suitable proc filesystem found" >&2;} 16354 else 16355 16356cat >>confdefs.h <<EOF 16357#define PROCFS_ROOT "$cf_cv_procfs_cwd" 16358EOF 16359 16360cat >>confdefs.h <<\EOF 16361#define OPT_EXEC_XTERM 1 16362EOF 16363 16364 fi 16365fi 16366 16367echo "$as_me:16367: checking if you want to use double-buffering" >&5 16368echo $ECHO_N "checking if you want to use double-buffering... $ECHO_C" >&6 16369 16370# Check whether --enable-double-buffer or --disable-double-buffer was given. 16371if test "${enable_double_buffer+set}" = set; then 16372 enableval="$enable_double_buffer" 16373 test "$enableval" != yes && enableval=no 16374 if test "$enableval" != "no" ; then 16375 enable_double_bfr=yes 16376 else 16377 enable_double_bfr=no 16378 fi 16379else 16380 enableval=no 16381 enable_double_bfr=no 16382 16383fi; 16384echo "$as_me:16384: result: $enable_double_bfr" >&5 16385echo "${ECHO_T}$enable_double_bfr" >&6 16386if test "$enable_double_bfr" = yes ; then 16387 case "x$LIBS" in 16388 (*Xext*) 16389 ;; 16390 (*) 16391 16392if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then 16393 test -n "$verbose" && echo " found package Xext" 1>&6 16394 16395echo "${as_me:-configure}:16395: testing found package Xext ..." 1>&5 16396 16397 cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`" 16398 cf_pkgconfig_libs="`$PKG_CONFIG --libs Xext 2>/dev/null`" 16399 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6 16400 16401echo "${as_me:-configure}:16401: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5 16402 16403 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6 16404 16405echo "${as_me:-configure}:16405: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5 16406 16407cf_fix_cppflags=no 16408cf_new_cflags= 16409cf_new_cppflags= 16410cf_new_extra_cppflags= 16411 16412for cf_add_cflags in $cf_pkgconfig_incs 16413do 16414case $cf_fix_cppflags in 16415(no) 16416 case $cf_add_cflags in 16417 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 16418 case $cf_add_cflags in 16419 (-D*) 16420 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 16421 16422 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 16423 && test -z "${cf_tst_cflags}" \ 16424 && cf_fix_cppflags=yes 16425 16426 if test $cf_fix_cppflags = yes ; then 16427 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 16428 continue 16429 elif test "${cf_tst_cflags}" = "\"'" ; then 16430 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 16431 continue 16432 fi 16433 ;; 16434 esac 16435 case "$CPPFLAGS" in 16436 (*$cf_add_cflags) 16437 ;; 16438 (*) 16439 case $cf_add_cflags in 16440 (-D*) 16441 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 16442 16443CPPFLAGS=`echo "$CPPFLAGS" | \ 16444 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 16445 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 16446 16447 ;; 16448 esac 16449 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 16450 ;; 16451 esac 16452 ;; 16453 (*) 16454 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 16455 ;; 16456 esac 16457 ;; 16458(yes) 16459 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 16460 16461 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 16462 16463 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 16464 && test -z "${cf_tst_cflags}" \ 16465 && cf_fix_cppflags=no 16466 ;; 16467esac 16468done 16469 16470if test -n "$cf_new_cflags" ; then 16471 16472 CFLAGS="$CFLAGS $cf_new_cflags" 16473fi 16474 16475if test -n "$cf_new_cppflags" ; then 16476 16477 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 16478fi 16479 16480if test -n "$cf_new_extra_cppflags" ; then 16481 16482 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 16483fi 16484 16485cf_add_libs="$cf_pkgconfig_libs" 16486# Filter out duplicates - this happens with badly-designed ".pc" files... 16487for cf_add_1lib in $LIBS 16488do 16489 for cf_add_2lib in $cf_add_libs 16490 do 16491 if test "x$cf_add_1lib" = "x$cf_add_2lib" 16492 then 16493 cf_add_1lib= 16494 break 16495 fi 16496 done 16497 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 16498done 16499LIBS="$cf_add_libs" 16500 16501 : 16502else 16503 cf_pkgconfig_incs= 16504 cf_pkgconfig_libs= 16505 16506 echo "$as_me:16506: checking for XextCreateExtension in -lXext" >&5 16507echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6 16508if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then 16509 echo $ECHO_N "(cached) $ECHO_C" >&6 16510else 16511 ac_check_lib_save_LIBS=$LIBS 16512LIBS="-lXext $LIBS" 16513cat >conftest.$ac_ext <<_ACEOF 16514#line 16514 "configure" 16515#include "confdefs.h" 16516 16517/* Override any gcc2 internal prototype to avoid an error. */ 16518#ifdef __cplusplus 16519extern "C" 16520#endif 16521/* We use char because int might match the return type of a gcc2 16522 builtin and then its argument prototype would still apply. */ 16523char XextCreateExtension (); 16524int 16525main () 16526{ 16527XextCreateExtension (); 16528 ; 16529 return 0; 16530} 16531_ACEOF 16532rm -f conftest.$ac_objext conftest$ac_exeext 16533if { (eval echo "$as_me:16533: \"$ac_link\"") >&5 16534 (eval $ac_link) 2>&5 16535 ac_status=$? 16536 echo "$as_me:16536: \$? = $ac_status" >&5 16537 (exit $ac_status); } && 16538 { ac_try='test -s conftest$ac_exeext' 16539 { (eval echo "$as_me:16539: \"$ac_try\"") >&5 16540 (eval $ac_try) 2>&5 16541 ac_status=$? 16542 echo "$as_me:16542: \$? = $ac_status" >&5 16543 (exit $ac_status); }; }; then 16544 ac_cv_lib_Xext_XextCreateExtension=yes 16545else 16546 echo "$as_me: failed program was:" >&5 16547cat conftest.$ac_ext >&5 16548ac_cv_lib_Xext_XextCreateExtension=no 16549fi 16550rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16551LIBS=$ac_check_lib_save_LIBS 16552fi 16553echo "$as_me:16553: result: $ac_cv_lib_Xext_XextCreateExtension" >&5 16554echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6 16555if test $ac_cv_lib_Xext_XextCreateExtension = yes; then 16556 16557cf_add_libs="-lXext" 16558# Filter out duplicates - this happens with badly-designed ".pc" files... 16559for cf_add_1lib in $LIBS 16560do 16561 for cf_add_2lib in $cf_add_libs 16562 do 16563 if test "x$cf_add_1lib" = "x$cf_add_2lib" 16564 then 16565 cf_add_1lib= 16566 break 16567 fi 16568 done 16569 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 16570done 16571LIBS="$cf_add_libs" 16572 16573fi 16574 16575fi 16576 16577 ;; 16578 esac 16579 16580cat >>confdefs.h <<\EOF 16581#define OPT_DOUBLE_BUFFER 1 16582EOF 16583 16584fi 16585 16586echo "$as_me:16586: checking if you want to use FreeType library" >&5 16587echo $ECHO_N "checking if you want to use FreeType library... $ECHO_C" >&6 16588 16589# Check whether --enable-freetype or --disable-freetype was given. 16590if test "${enable_freetype+set}" = set; then 16591 enableval="$enable_freetype" 16592 test "$enableval" != no && enableval=yes 16593 if test "$enableval" != "yes" ; then 16594 enable_freetype=no 16595 else 16596 enable_freetype=yes 16597 fi 16598else 16599 enableval=yes 16600 enable_freetype=yes 16601 16602fi; 16603echo "$as_me:16603: result: $enable_freetype" >&5 16604echo "${ECHO_T}$enable_freetype" >&6 16605if test "$enable_freetype" = yes ; then 16606 16607cf_cv_x_freetype_incs=no 16608cf_cv_x_freetype_libs=no 16609cf_extra_freetype_libs= 16610FREETYPE_CONFIG=none 16611FREETYPE_PARAMS= 16612 16613echo "$as_me:16613: checking for FreeType configuration script" >&5 16614echo $ECHO_N "checking for FreeType configuration script... $ECHO_C" >&6 16615 16616# Check whether --with-freetype-config or --without-freetype-config was given. 16617if test "${with_freetype_config+set}" = set; then 16618 withval="$with_freetype_config" 16619 cf_cv_x_freetype_cfgs="$withval" 16620else 16621 cf_cv_x_freetype_cfgs=auto 16622fi; 16623test -z $cf_cv_x_freetype_cfgs && cf_cv_x_freetype_cfgs=auto 16624test $cf_cv_x_freetype_cfgs = no && cf_cv_x_freetype_cfgs=none 16625echo "$as_me:16625: result: $cf_cv_x_freetype_cfgs" >&5 16626echo "${ECHO_T}$cf_cv_x_freetype_cfgs" >&6 16627 16628case $cf_cv_x_freetype_cfgs in 16629(none) 16630 echo "$as_me:16630: checking if you specified -D/-I options for FreeType" >&5 16631echo $ECHO_N "checking if you specified -D/-I options for FreeType... $ECHO_C" >&6 16632 16633# Check whether --with-freetype-cflags or --without-freetype-cflags was given. 16634if test "${with_freetype_cflags+set}" = set; then 16635 withval="$with_freetype_cflags" 16636 cf_cv_x_freetype_incs="$with_freetype_cflags" 16637else 16638 cf_cv_x_freetype_incs=no 16639fi; 16640 echo "$as_me:16640: result: $cf_cv_x_freetype_incs" >&5 16641echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6 16642 16643 echo "$as_me:16643: checking if you specified -L/-l options for FreeType" >&5 16644echo $ECHO_N "checking if you specified -L/-l options for FreeType... $ECHO_C" >&6 16645 16646# Check whether --with-freetype-libs or --without-freetype-libs was given. 16647if test "${with_freetype_libs+set}" = set; then 16648 withval="$with_freetype_libs" 16649 cf_cv_x_freetype_libs="$with_freetype_libs" 16650else 16651 cf_cv_x_freetype_libs=no 16652fi; 16653 echo "$as_me:16653: result: $cf_cv_x_freetype_libs" >&5 16654echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6 16655 ;; 16656(auto) 16657 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then 16658 FREETYPE_CONFIG=$PKG_CONFIG 16659 FREETYPE_PARAMS=xft 16660 else 16661 # Extract the first word of "freetype-config", so it can be a program name with args. 16662set dummy freetype-config; ac_word=$2 16663echo "$as_me:16663: checking for $ac_word" >&5 16664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 16665if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then 16666 echo $ECHO_N "(cached) $ECHO_C" >&6 16667else 16668 case $FREETYPE_CONFIG in 16669 [\\/]* | ?:[\\/]*) 16670 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path. 16671 ;; 16672 *) 16673 ac_save_IFS=$IFS; IFS=$ac_path_separator 16674ac_dummy="$PATH" 16675for ac_dir in $ac_dummy; do 16676 IFS=$ac_save_IFS 16677 test -z "$ac_dir" && ac_dir=. 16678 if $as_executable_p "$ac_dir/$ac_word"; then 16679 ac_cv_path_FREETYPE_CONFIG="$ac_dir/$ac_word" 16680 echo "$as_me:16680: found $ac_dir/$ac_word" >&5 16681 break 16682fi 16683done 16684 16685 test -z "$ac_cv_path_FREETYPE_CONFIG" && ac_cv_path_FREETYPE_CONFIG="none" 16686 ;; 16687esac 16688fi 16689FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG 16690 16691if test -n "$FREETYPE_CONFIG"; then 16692 echo "$as_me:16692: result: $FREETYPE_CONFIG" >&5 16693echo "${ECHO_T}$FREETYPE_CONFIG" >&6 16694else 16695 echo "$as_me:16695: result: no" >&5 16696echo "${ECHO_T}no" >&6 16697fi 16698 16699 if test "$FREETYPE_CONFIG" != none; then 16700 FREETYPE_CONFIG=$FREETYPE_CONFIG 16701 cf_extra_freetype_libs="-lXft" 16702 else 16703 # Extract the first word of "xft-config", so it can be a program name with args. 16704set dummy xft-config; ac_word=$2 16705echo "$as_me:16705: checking for $ac_word" >&5 16706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 16707if test "${ac_cv_path_FREETYPE_OLD_CONFIG+set}" = set; then 16708 echo $ECHO_N "(cached) $ECHO_C" >&6 16709else 16710 case $FREETYPE_OLD_CONFIG in 16711 [\\/]* | ?:[\\/]*) 16712 ac_cv_path_FREETYPE_OLD_CONFIG="$FREETYPE_OLD_CONFIG" # Let the user override the test with a path. 16713 ;; 16714 *) 16715 ac_save_IFS=$IFS; IFS=$ac_path_separator 16716ac_dummy="$PATH" 16717for ac_dir in $ac_dummy; do 16718 IFS=$ac_save_IFS 16719 test -z "$ac_dir" && ac_dir=. 16720 if $as_executable_p "$ac_dir/$ac_word"; then 16721 ac_cv_path_FREETYPE_OLD_CONFIG="$ac_dir/$ac_word" 16722 echo "$as_me:16722: found $ac_dir/$ac_word" >&5 16723 break 16724fi 16725done 16726 16727 test -z "$ac_cv_path_FREETYPE_OLD_CONFIG" && ac_cv_path_FREETYPE_OLD_CONFIG="none" 16728 ;; 16729esac 16730fi 16731FREETYPE_OLD_CONFIG=$ac_cv_path_FREETYPE_OLD_CONFIG 16732 16733if test -n "$FREETYPE_OLD_CONFIG"; then 16734 echo "$as_me:16734: result: $FREETYPE_OLD_CONFIG" >&5 16735echo "${ECHO_T}$FREETYPE_OLD_CONFIG" >&6 16736else 16737 echo "$as_me:16737: result: no" >&5 16738echo "${ECHO_T}no" >&6 16739fi 16740 16741 if test "$FREETYPE_OLD_CONFIG" != none; then 16742 FREETYPE_CONFIG=$FREETYPE_OLD_CONFIG 16743 fi 16744 fi 16745 fi 16746 ;; 16747(pkg*) 16748 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then 16749 FREETYPE_CONFIG=$cf_cv_x_freetype_cfgs 16750 FREETYPE_PARAMS=xft 16751 else 16752 { echo "$as_me:16752: WARNING: cannot find pkg-config for Xft" >&5 16753echo "$as_me: WARNING: cannot find pkg-config for Xft" >&2;} 16754 fi 16755 ;; 16756(*) 16757 # Extract the first word of "$cf_cv_x_freetype_cfgs", so it can be a program name with args. 16758set dummy $cf_cv_x_freetype_cfgs; ac_word=$2 16759echo "$as_me:16759: checking for $ac_word" >&5 16760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 16761if test "${ac_cv_path_FREETYPE_XFT_CONFIG+set}" = set; then 16762 echo $ECHO_N "(cached) $ECHO_C" >&6 16763else 16764 case $FREETYPE_XFT_CONFIG in 16765 [\\/]* | ?:[\\/]*) 16766 ac_cv_path_FREETYPE_XFT_CONFIG="$FREETYPE_XFT_CONFIG" # Let the user override the test with a path. 16767 ;; 16768 *) 16769 ac_save_IFS=$IFS; IFS=$ac_path_separator 16770ac_dummy="$PATH" 16771for ac_dir in $ac_dummy; do 16772 IFS=$ac_save_IFS 16773 test -z "$ac_dir" && ac_dir=. 16774 if $as_executable_p "$ac_dir/$ac_word"; then 16775 ac_cv_path_FREETYPE_XFT_CONFIG="$ac_dir/$ac_word" 16776 echo "$as_me:16776: found $ac_dir/$ac_word" >&5 16777 break 16778fi 16779done 16780 16781 test -z "$ac_cv_path_FREETYPE_XFT_CONFIG" && ac_cv_path_FREETYPE_XFT_CONFIG="none" 16782 ;; 16783esac 16784fi 16785FREETYPE_XFT_CONFIG=$ac_cv_path_FREETYPE_XFT_CONFIG 16786 16787if test -n "$FREETYPE_XFT_CONFIG"; then 16788 echo "$as_me:16788: result: $FREETYPE_XFT_CONFIG" >&5 16789echo "${ECHO_T}$FREETYPE_XFT_CONFIG" >&6 16790else 16791 echo "$as_me:16791: result: no" >&5 16792echo "${ECHO_T}no" >&6 16793fi 16794 16795 if test "$FREETYPE_XFT_CONFIG" != none; then 16796 FREETYPE_CONFIG=$FREETYPE_XFT_CONFIG 16797 else 16798 { echo "$as_me:16798: WARNING: cannot find config script for Xft" >&5 16799echo "$as_me: WARNING: cannot find config script for Xft" >&2;} 16800 fi 16801 ;; 16802esac 16803 16804if test "$FREETYPE_CONFIG" != none ; then 16805 echo "$as_me:16805: checking for FreeType config" >&5 16806echo $ECHO_N "checking for FreeType config... $ECHO_C" >&6 16807 echo "$as_me:16807: result: $FREETYPE_CONFIG $FREETYPE_PARAMS" >&5 16808echo "${ECHO_T}$FREETYPE_CONFIG $FREETYPE_PARAMS" >&6 16809 16810 if test "$cf_cv_x_freetype_incs" = no ; then 16811 echo "$as_me:16811: checking for $FREETYPE_CONFIG cflags" >&5 16812echo $ECHO_N "checking for $FREETYPE_CONFIG cflags... $ECHO_C" >&6 16813 cf_cv_x_freetype_incs="`$FREETYPE_CONFIG $FREETYPE_PARAMS --cflags 2>/dev/null`" 16814 echo "$as_me:16814: result: $cf_cv_x_freetype_incs" >&5 16815echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6 16816 fi 16817 16818 if test "$cf_cv_x_freetype_libs" = no ; then 16819 echo "$as_me:16819: checking for $FREETYPE_CONFIG libs" >&5 16820echo $ECHO_N "checking for $FREETYPE_CONFIG libs... $ECHO_C" >&6 16821 cf_cv_x_freetype_libs="$cf_extra_freetype_libs `$FREETYPE_CONFIG $FREETYPE_PARAMS --libs 2>/dev/null`" 16822 echo "$as_me:16822: result: $cf_cv_x_freetype_libs" >&5 16823echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6 16824 fi 16825fi 16826 16827if test "$cf_cv_x_freetype_incs" = no ; then 16828 cf_cv_x_freetype_incs= 16829fi 16830 16831if test "$cf_cv_x_freetype_libs" = no ; then 16832 cf_cv_x_freetype_libs=-lXft 16833fi 16834 16835echo "$as_me:16835: checking if we can link with FreeType libraries" >&5 16836echo $ECHO_N "checking if we can link with FreeType libraries... $ECHO_C" >&6 16837 16838cf_save_LIBS="$LIBS" 16839cf_save_INCS="$CPPFLAGS" 16840 16841cf_add_libs="$cf_cv_x_freetype_libs" 16842# Filter out duplicates - this happens with badly-designed ".pc" files... 16843for cf_add_1lib in $LIBS 16844do 16845 for cf_add_2lib in $cf_add_libs 16846 do 16847 if test "x$cf_add_1lib" = "x$cf_add_2lib" 16848 then 16849 cf_add_1lib= 16850 break 16851 fi 16852 done 16853 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 16854done 16855LIBS="$cf_add_libs" 16856 16857CPPFLAGS="$CPPFLAGS $cf_cv_x_freetype_incs" 16858 16859cat >conftest.$ac_ext <<_ACEOF 16860#line 16860 "configure" 16861#include "confdefs.h" 16862 16863#include <X11/Xlib.h> 16864#include <X11/extensions/Xrender.h> 16865#include <X11/Xft/Xft.h> 16866int 16867main () 16868{ 16869 16870 XftPattern *pat = XftNameParse ("name"); 16871 ; 16872 return 0; 16873} 16874_ACEOF 16875rm -f conftest.$ac_objext conftest$ac_exeext 16876if { (eval echo "$as_me:16876: \"$ac_link\"") >&5 16877 (eval $ac_link) 2>&5 16878 ac_status=$? 16879 echo "$as_me:16879: \$? = $ac_status" >&5 16880 (exit $ac_status); } && 16881 { ac_try='test -s conftest$ac_exeext' 16882 { (eval echo "$as_me:16882: \"$ac_try\"") >&5 16883 (eval $ac_try) 2>&5 16884 ac_status=$? 16885 echo "$as_me:16885: \$? = $ac_status" >&5 16886 (exit $ac_status); }; }; then 16887 cf_cv_found_freetype=yes 16888else 16889 echo "$as_me: failed program was:" >&5 16890cat conftest.$ac_ext >&5 16891cf_cv_found_freetype=no 16892fi 16893rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16894echo "$as_me:16894: result: $cf_cv_found_freetype" >&5 16895echo "${ECHO_T}$cf_cv_found_freetype" >&6 16896 16897LIBS="$cf_save_LIBS" 16898CPPFLAGS="$cf_save_INCS" 16899 16900if test "$cf_cv_found_freetype" = yes ; then 16901 16902cf_add_libs="$cf_cv_x_freetype_libs" 16903# Filter out duplicates - this happens with badly-designed ".pc" files... 16904for cf_add_1lib in $LIBS 16905do 16906 for cf_add_2lib in $cf_add_libs 16907 do 16908 if test "x$cf_add_1lib" = "x$cf_add_2lib" 16909 then 16910 cf_add_1lib= 16911 break 16912 fi 16913 done 16914 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 16915done 16916LIBS="$cf_add_libs" 16917 16918cf_fix_cppflags=no 16919cf_new_cflags= 16920cf_new_cppflags= 16921cf_new_extra_cppflags= 16922 16923for cf_add_cflags in $cf_cv_x_freetype_incs 16924do 16925case $cf_fix_cppflags in 16926(no) 16927 case $cf_add_cflags in 16928 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 16929 case $cf_add_cflags in 16930 (-D*) 16931 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 16932 16933 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 16934 && test -z "${cf_tst_cflags}" \ 16935 && cf_fix_cppflags=yes 16936 16937 if test $cf_fix_cppflags = yes ; then 16938 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 16939 continue 16940 elif test "${cf_tst_cflags}" = "\"'" ; then 16941 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 16942 continue 16943 fi 16944 ;; 16945 esac 16946 case "$CPPFLAGS" in 16947 (*$cf_add_cflags) 16948 ;; 16949 (*) 16950 case $cf_add_cflags in 16951 (-D*) 16952 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 16953 16954CPPFLAGS=`echo "$CPPFLAGS" | \ 16955 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 16956 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 16957 16958 ;; 16959 esac 16960 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 16961 ;; 16962 esac 16963 ;; 16964 (*) 16965 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 16966 ;; 16967 esac 16968 ;; 16969(yes) 16970 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 16971 16972 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 16973 16974 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 16975 && test -z "${cf_tst_cflags}" \ 16976 && cf_fix_cppflags=no 16977 ;; 16978esac 16979done 16980 16981if test -n "$cf_new_cflags" ; then 16982 16983 CFLAGS="$CFLAGS $cf_new_cflags" 16984fi 16985 16986if test -n "$cf_new_cppflags" ; then 16987 16988 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 16989fi 16990 16991if test -n "$cf_new_extra_cppflags" ; then 16992 16993 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 16994fi 16995 16996cat >>confdefs.h <<\EOF 16997#define XRENDERFONT 1 16998EOF 16999 17000for ac_func in \ 17001 XftDrawCharSpec \ 17002 XftDrawSetClip \ 17003 XftDrawSetClipRectangles \ 17004 17005do 17006as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17007echo "$as_me:17007: checking for $ac_func" >&5 17008echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 17009if eval "test \"\${$as_ac_var+set}\" = set"; then 17010 echo $ECHO_N "(cached) $ECHO_C" >&6 17011else 17012 cat >conftest.$ac_ext <<_ACEOF 17013#line 17013 "configure" 17014#include "confdefs.h" 17015/* System header to define __stub macros and hopefully few prototypes, 17016 which can conflict with char $ac_func (); below. */ 17017#include <assert.h> 17018/* Override any gcc2 internal prototype to avoid an error. */ 17019#ifdef __cplusplus 17020extern "C" 17021#endif 17022/* We use char because int might match the return type of a gcc2 17023 builtin and then its argument prototype would still apply. */ 17024char $ac_func (); 17025char (*f) (); 17026 17027int 17028main () 17029{ 17030/* The GNU C library defines this for functions which it implements 17031 to always fail with ENOSYS. Some functions are actually named 17032 something starting with __ and the normal name is an alias. */ 17033#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17034choke me 17035#else 17036f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 17037#endif 17038 17039 ; 17040 return 0; 17041} 17042_ACEOF 17043rm -f conftest.$ac_objext conftest$ac_exeext 17044if { (eval echo "$as_me:17044: \"$ac_link\"") >&5 17045 (eval $ac_link) 2>&5 17046 ac_status=$? 17047 echo "$as_me:17047: \$? = $ac_status" >&5 17048 (exit $ac_status); } && 17049 { ac_try='test -s conftest$ac_exeext' 17050 { (eval echo "$as_me:17050: \"$ac_try\"") >&5 17051 (eval $ac_try) 2>&5 17052 ac_status=$? 17053 echo "$as_me:17053: \$? = $ac_status" >&5 17054 (exit $ac_status); }; }; then 17055 eval "$as_ac_var=yes" 17056else 17057 echo "$as_me: failed program was:" >&5 17058cat conftest.$ac_ext >&5 17059eval "$as_ac_var=no" 17060fi 17061rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17062fi 17063echo "$as_me:17063: result: `eval echo '${'$as_ac_var'}'`" >&5 17064echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 17065if test `eval echo '${'$as_ac_var'}'` = yes; then 17066 cat >>confdefs.h <<EOF 17067#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17068EOF 17069 17070fi 17071done 17072 17073else 17074 { echo "$as_me:17074: WARNING: No libraries found for FreeType" >&5 17075echo "$as_me: WARNING: No libraries found for FreeType" >&2;} 17076 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//` 17077fi 17078 17079# FIXME: revisit this if needed 17080 17081if test "$cf_cv_found_freetype" = yes ; then 17082echo "$as_me:17082: checking for usable Xft/fontconfig package" >&5 17083echo $ECHO_N "checking for usable Xft/fontconfig package... $ECHO_C" >&6 17084if test "${cf_cv_xft_compat+set}" = set; then 17085 echo $ECHO_N "(cached) $ECHO_C" >&6 17086else 17087 17088cat >conftest.$ac_ext <<_ACEOF 17089#line 17089 "configure" 17090#include "confdefs.h" 17091 17092#include <X11/Xft/Xft.h> 17093 17094int 17095main () 17096{ 17097 17098 XftPattern *pat; 17099 XftPatternBuild(pat, 17100 XFT_FAMILY, XftTypeString, "mono", 17101 (void *) 0); 17102 17103 ; 17104 return 0; 17105} 17106_ACEOF 17107rm -f conftest.$ac_objext conftest$ac_exeext 17108if { (eval echo "$as_me:17108: \"$ac_link\"") >&5 17109 (eval $ac_link) 2>&5 17110 ac_status=$? 17111 echo "$as_me:17111: \$? = $ac_status" >&5 17112 (exit $ac_status); } && 17113 { ac_try='test -s conftest$ac_exeext' 17114 { (eval echo "$as_me:17114: \"$ac_try\"") >&5 17115 (eval $ac_try) 2>&5 17116 ac_status=$? 17117 echo "$as_me:17117: \$? = $ac_status" >&5 17118 (exit $ac_status); }; }; then 17119 cf_cv_xft_compat=yes 17120else 17121 echo "$as_me: failed program was:" >&5 17122cat conftest.$ac_ext >&5 17123cf_cv_xft_compat=no 17124fi 17125rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17126 17127fi 17128echo "$as_me:17128: result: $cf_cv_xft_compat" >&5 17129echo "${ECHO_T}$cf_cv_xft_compat" >&6 17130 17131if test "$cf_cv_xft_compat" = no 17132then 17133 # workaround for broken ".pc" files used for Xft. 17134 case "$cf_cv_x_freetype_libs" in 17135 (*-lfontconfig*) 17136 ;; 17137 (*) 17138 test -n "$verbose" && echo " work around broken package" 1>&6 17139 17140echo "${as_me:-configure}:17140: testing work around broken package ..." 1>&5 17141 17142 cf_save_fontconfig="$LIBS" 17143 17144if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists fontconfig; then 17145 test -n "$verbose" && echo " found package fontconfig" 1>&6 17146 17147echo "${as_me:-configure}:17147: testing found package fontconfig ..." 1>&5 17148 17149 cf_pkgconfig_incs="`$PKG_CONFIG --cflags fontconfig 2>/dev/null`" 17150 cf_pkgconfig_libs="`$PKG_CONFIG --libs fontconfig 2>/dev/null`" 17151 test -n "$verbose" && echo " package fontconfig CFLAGS: $cf_pkgconfig_incs" 1>&6 17152 17153echo "${as_me:-configure}:17153: testing package fontconfig CFLAGS: $cf_pkgconfig_incs ..." 1>&5 17154 17155 test -n "$verbose" && echo " package fontconfig LIBS: $cf_pkgconfig_libs" 1>&6 17156 17157echo "${as_me:-configure}:17157: testing package fontconfig LIBS: $cf_pkgconfig_libs ..." 1>&5 17158 17159cf_fix_cppflags=no 17160cf_new_cflags= 17161cf_new_cppflags= 17162cf_new_extra_cppflags= 17163 17164for cf_add_cflags in $cf_pkgconfig_incs 17165do 17166case $cf_fix_cppflags in 17167(no) 17168 case $cf_add_cflags in 17169 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 17170 case $cf_add_cflags in 17171 (-D*) 17172 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 17173 17174 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 17175 && test -z "${cf_tst_cflags}" \ 17176 && cf_fix_cppflags=yes 17177 17178 if test $cf_fix_cppflags = yes ; then 17179 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 17180 continue 17181 elif test "${cf_tst_cflags}" = "\"'" ; then 17182 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 17183 continue 17184 fi 17185 ;; 17186 esac 17187 case "$CPPFLAGS" in 17188 (*$cf_add_cflags) 17189 ;; 17190 (*) 17191 case $cf_add_cflags in 17192 (-D*) 17193 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 17194 17195CPPFLAGS=`echo "$CPPFLAGS" | \ 17196 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 17197 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 17198 17199 ;; 17200 esac 17201 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 17202 ;; 17203 esac 17204 ;; 17205 (*) 17206 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 17207 ;; 17208 esac 17209 ;; 17210(yes) 17211 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 17212 17213 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 17214 17215 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 17216 && test -z "${cf_tst_cflags}" \ 17217 && cf_fix_cppflags=no 17218 ;; 17219esac 17220done 17221 17222if test -n "$cf_new_cflags" ; then 17223 17224 CFLAGS="$CFLAGS $cf_new_cflags" 17225fi 17226 17227if test -n "$cf_new_cppflags" ; then 17228 17229 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 17230fi 17231 17232if test -n "$cf_new_extra_cppflags" ; then 17233 17234 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 17235fi 17236 17237cf_add_libs="$cf_pkgconfig_libs" 17238# Filter out duplicates - this happens with badly-designed ".pc" files... 17239for cf_add_1lib in $LIBS 17240do 17241 for cf_add_2lib in $cf_add_libs 17242 do 17243 if test "x$cf_add_1lib" = "x$cf_add_2lib" 17244 then 17245 cf_add_1lib= 17246 break 17247 fi 17248 done 17249 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 17250done 17251LIBS="$cf_add_libs" 17252 17253cf_fix_cppflags=no 17254cf_new_cflags= 17255cf_new_cppflags= 17256cf_new_extra_cppflags= 17257 17258for cf_add_cflags in $cf_pkgconfig_incs 17259do 17260case $cf_fix_cppflags in 17261(no) 17262 case $cf_add_cflags in 17263 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 17264 case $cf_add_cflags in 17265 (-D*) 17266 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 17267 17268 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 17269 && test -z "${cf_tst_cflags}" \ 17270 && cf_fix_cppflags=yes 17271 17272 if test $cf_fix_cppflags = yes ; then 17273 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 17274 continue 17275 elif test "${cf_tst_cflags}" = "\"'" ; then 17276 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 17277 continue 17278 fi 17279 ;; 17280 esac 17281 case "$CPPFLAGS" in 17282 (*$cf_add_cflags) 17283 ;; 17284 (*) 17285 case $cf_add_cflags in 17286 (-D*) 17287 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 17288 17289CPPFLAGS=`echo "$CPPFLAGS" | \ 17290 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 17291 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 17292 17293 ;; 17294 esac 17295 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 17296 ;; 17297 esac 17298 ;; 17299 (*) 17300 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 17301 ;; 17302 esac 17303 ;; 17304(yes) 17305 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 17306 17307 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 17308 17309 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 17310 && test -z "${cf_tst_cflags}" \ 17311 && cf_fix_cppflags=no 17312 ;; 17313esac 17314done 17315 17316if test -n "$cf_new_cflags" ; then 17317 17318 CFLAGS="$CFLAGS $cf_new_cflags" 17319fi 17320 17321if test -n "$cf_new_cppflags" ; then 17322 17323 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 17324fi 17325 17326if test -n "$cf_new_extra_cppflags" ; then 17327 17328 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 17329fi 17330 17331 LIBS="$cf_save_fontconfig" 17332 17333test -n "$verbose" && echo " ...before $LIBS" 1>&6 17334 17335echo "${as_me:-configure}:17335: testing ...before $LIBS ..." 1>&5 17336 17337LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXft %-lXft $cf_pkgconfig_libs %" -e 's% % %g'` 17338test -n "$verbose" && echo " ...after $LIBS" 1>&6 17339 17340echo "${as_me:-configure}:17340: testing ...after $LIBS ..." 1>&5 17341 17342else 17343 cf_pkgconfig_incs= 17344 cf_pkgconfig_libs= 17345 17346test -n "$verbose" && echo " ...before $LIBS" 1>&6 17347 17348echo "${as_me:-configure}:17348: testing ...before $LIBS ..." 1>&5 17349 17350LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXft %-lXft -lfontconfig %" -e 's% % %g'` 17351test -n "$verbose" && echo " ...after $LIBS" 1>&6 17352 17353echo "${as_me:-configure}:17353: testing ...after $LIBS ..." 1>&5 17354 17355fi 17356 17357 ;; 17358 esac 17359fi 17360fi 17361 17362else 17363 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//` 17364fi 17365 17366echo "$as_me:17366: checking if you want support for HP-style function keys" >&5 17367echo $ECHO_N "checking if you want support for HP-style function keys... $ECHO_C" >&6 17368 17369# Check whether --enable-hp-fkeys or --disable-hp-fkeys was given. 17370if test "${enable_hp_fkeys+set}" = set; then 17371 enableval="$enable_hp_fkeys" 17372 test "$enableval" != yes && enableval=no 17373 if test "$enableval" != "no" ; then 17374 enable_hp_fkeys=yes 17375 else 17376 enable_hp_fkeys=no 17377 fi 17378else 17379 enableval=no 17380 enable_hp_fkeys=no 17381 17382fi; 17383echo "$as_me:17383: result: $enable_hp_fkeys" >&5 17384echo "${ECHO_T}$enable_hp_fkeys" >&6 17385if test "$enable_hp_fkeys" = yes ; then 17386 17387cat >>confdefs.h <<\EOF 17388#define OPT_HP_FUNC_KEYS 1 17389EOF 17390 17391fi 17392 17393echo "$as_me:17393: checking if you want support for SCO-style function keys" >&5 17394echo $ECHO_N "checking if you want support for SCO-style function keys... $ECHO_C" >&6 17395 17396# Check whether --enable-sco-fkeys or --disable-sco-fkeys was given. 17397if test "${enable_sco_fkeys+set}" = set; then 17398 enableval="$enable_sco_fkeys" 17399 test "$enableval" != yes && enableval=no 17400 if test "$enableval" != "no" ; then 17401 enable_sco_fkeys=yes 17402 else 17403 enable_sco_fkeys=no 17404 fi 17405else 17406 enableval=no 17407 enable_sco_fkeys=no 17408 17409fi; 17410echo "$as_me:17410: result: $enable_sco_fkeys" >&5 17411echo "${ECHO_T}$enable_sco_fkeys" >&6 17412if test "$enable_sco_fkeys" = yes ; then 17413 17414cat >>confdefs.h <<\EOF 17415#define OPT_SCO_FUNC_KEYS 1 17416EOF 17417 17418fi 17419 17420echo "$as_me:17420: checking if you want support for Sun-style function keys" >&5 17421echo $ECHO_N "checking if you want support for Sun-style function keys... $ECHO_C" >&6 17422 17423# Check whether --enable-sun-fkeys or --disable-sun-fkeys was given. 17424if test "${enable_sun_fkeys+set}" = set; then 17425 enableval="$enable_sun_fkeys" 17426 test "$enableval" != no && enableval=yes 17427 if test "$enableval" != "yes" ; then 17428 enable_sun_fkeys=no 17429 else 17430 enable_sun_fkeys=yes 17431 fi 17432else 17433 enableval=yes 17434 enable_sun_fkeys=yes 17435 17436fi; 17437echo "$as_me:17437: result: $enable_sun_fkeys" >&5 17438echo "${ECHO_T}$enable_sun_fkeys" >&6 17439if test "$enable_sun_fkeys" = no ; then 17440 17441cat >>confdefs.h <<\EOF 17442#define OPT_SUN_FUNC_KEYS 0 17443EOF 17444 17445fi 17446 17447echo "$as_me:17447: checking if you want saved-lines stored as a FIFO" >&5 17448echo $ECHO_N "checking if you want saved-lines stored as a FIFO... $ECHO_C" >&6 17449 17450# Check whether --enable-fifo-lines or --disable-fifo-lines was given. 17451if test "${enable_fifo_lines+set}" = set; then 17452 enableval="$enable_fifo_lines" 17453 test "$enableval" != no && enableval=yes 17454 if test "$enableval" != "yes" ; then 17455 enable_fifo_lines=no 17456 else 17457 enable_fifo_lines=yes 17458 fi 17459else 17460 enableval=yes 17461 enable_fifo_lines=yes 17462 17463fi; 17464echo "$as_me:17464: result: $enable_fifo_lines" >&5 17465echo "${ECHO_T}$enable_fifo_lines" >&6 17466if test "$enable_fifo_lines" = yes ; then 17467 17468cat >>confdefs.h <<\EOF 17469#define OPT_FIFO_LINES 1 17470EOF 17471 17472fi 17473 17474echo "$as_me:17474: checking if you want support for internationalization" >&5 17475echo $ECHO_N "checking if you want support for internationalization... $ECHO_C" >&6 17476 17477# Check whether --enable-i18n or --disable-i18n was given. 17478if test "${enable_i18n+set}" = set; then 17479 enableval="$enable_i18n" 17480 test "$enableval" != no && enableval=yes 17481 if test "$enableval" != "yes" ; then 17482 enable_i18n=no 17483 else 17484 enable_i18n=yes 17485 fi 17486else 17487 enableval=yes 17488 enable_i18n=yes 17489 17490fi; 17491echo "$as_me:17491: result: $enable_i18n" >&5 17492echo "${ECHO_T}$enable_i18n" >&6 17493if test "$enable_i18n" = no ; then 17494 17495cat >>confdefs.h <<\EOF 17496#define OPT_I18N_SUPPORT 0 17497EOF 17498 17499fi 17500 17501echo "$as_me:17501: checking if you want support for initial-erase setup" >&5 17502echo $ECHO_N "checking if you want support for initial-erase setup... $ECHO_C" >&6 17503 17504# Check whether --enable-initial-erase or --disable-initial-erase was given. 17505if test "${enable_initial_erase+set}" = set; then 17506 enableval="$enable_initial_erase" 17507 test "$enableval" != no && enableval=yes 17508 if test "$enableval" != "yes" ; then 17509 enable_ie=no 17510 else 17511 enable_ie=yes 17512 fi 17513else 17514 enableval=yes 17515 enable_ie=yes 17516 17517fi; 17518echo "$as_me:17518: result: $enable_ie" >&5 17519echo "${ECHO_T}$enable_ie" >&6 17520if test "$enable_ie" = no ; then 17521 17522cat >>confdefs.h <<\EOF 17523#define OPT_INITIAL_ERASE 0 17524EOF 17525 17526fi 17527 17528echo "$as_me:17528: checking if you want support for input-method" >&5 17529echo $ECHO_N "checking if you want support for input-method... $ECHO_C" >&6 17530 17531# Check whether --enable-input-method or --disable-input-method was given. 17532if test "${enable_input_method+set}" = set; then 17533 enableval="$enable_input_method" 17534 test "$enableval" != no && enableval=yes 17535 if test "$enableval" != "yes" ; then 17536 enable_ximp=no 17537 else 17538 enable_ximp=yes 17539 fi 17540else 17541 enableval=yes 17542 enable_ximp=yes 17543 17544fi; 17545echo "$as_me:17545: result: $enable_ximp" >&5 17546echo "${ECHO_T}$enable_ximp" >&6 17547 17548echo "$as_me:17548: checking if X libraries support input-method" >&5 17549echo $ECHO_N "checking if X libraries support input-method... $ECHO_C" >&6 17550if test "${cf_cv_input_method+set}" = set; then 17551 echo $ECHO_N "(cached) $ECHO_C" >&6 17552else 17553 17554cat >conftest.$ac_ext <<_ACEOF 17555#line 17555 "configure" 17556#include "confdefs.h" 17557 17558#include <X11/IntrinsicP.h> 17559#include <X11/Xatom.h> 17560#include <X11/Xutil.h> 17561#include <X11/Xmu/Atoms.h> 17562#include <X11/Xmu/Converters.h> 17563#include <X11/Xaw/XawImP.h> 17564 17565int 17566main () 17567{ 17568 17569{ 17570 XIM xim; 17571 XIMStyles *xim_styles = 0; 17572 XIMStyle input_style; 17573 Widget w = 0; 17574 17575 XSetLocaleModifiers("@im=none"); 17576 xim = XOpenIM(XtDisplay(w), NULL, NULL, NULL); 17577 XGetIMValues(xim, XNQueryInputStyle, &xim_styles, NULL); 17578 XCloseIM(xim); 17579 input_style = (XIMPreeditNothing | XIMStatusNothing); 17580} 17581 17582 ; 17583 return 0; 17584} 17585_ACEOF 17586rm -f conftest.$ac_objext conftest$ac_exeext 17587if { (eval echo "$as_me:17587: \"$ac_link\"") >&5 17588 (eval $ac_link) 2>&5 17589 ac_status=$? 17590 echo "$as_me:17590: \$? = $ac_status" >&5 17591 (exit $ac_status); } && 17592 { ac_try='test -s conftest$ac_exeext' 17593 { (eval echo "$as_me:17593: \"$ac_try\"") >&5 17594 (eval $ac_try) 2>&5 17595 ac_status=$? 17596 echo "$as_me:17596: \$? = $ac_status" >&5 17597 (exit $ac_status); }; }; then 17598 cf_cv_input_method=yes 17599else 17600 echo "$as_me: failed program was:" >&5 17601cat conftest.$ac_ext >&5 17602cf_cv_input_method=no 17603fi 17604rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17605fi 17606echo "$as_me:17606: result: $cf_cv_input_method" >&5 17607echo "${ECHO_T}$cf_cv_input_method" >&6 17608 17609test "$cf_cv_input_method" = no && enable_ximp=no 17610if test "$enable_ximp" = no ; then 17611 17612cat >>confdefs.h <<\EOF 17613#define OPT_INPUT_METHOD 0 17614EOF 17615 17616fi 17617 17618echo "$as_me:17618: checking if you want support for load-vt-fonts" >&5 17619echo $ECHO_N "checking if you want support for load-vt-fonts... $ECHO_C" >&6 17620 17621# Check whether --enable-load-vt-fonts or --disable-load-vt-fonts was given. 17622if test "${enable_load_vt_fonts+set}" = set; then 17623 enableval="$enable_load_vt_fonts" 17624 test "$enableval" != yes && enableval=no 17625 if test "$enableval" != "no" ; then 17626 enable_load_vt_fonts=yes 17627 else 17628 enable_load_vt_fonts=no 17629 fi 17630else 17631 enableval=no 17632 enable_load_vt_fonts=no 17633 17634fi; 17635echo "$as_me:17635: result: $enable_load_vt_fonts" >&5 17636echo "${ECHO_T}$enable_load_vt_fonts" >&6 17637if test "$enable_load_vt_fonts" = yes ; then 17638 17639cat >>confdefs.h <<\EOF 17640#define OPT_LOAD_VTFONTS 1 17641EOF 17642 17643fi 17644 17645echo "$as_me:17645: checking if you want support for logging" >&5 17646echo $ECHO_N "checking if you want support for logging... $ECHO_C" >&6 17647 17648# Check whether --enable-logging or --disable-logging was given. 17649if test "${enable_logging+set}" = set; then 17650 enableval="$enable_logging" 17651 test "$enableval" != yes && enableval=no 17652 if test "$enableval" != "no" ; then 17653 enable_logging=yes 17654 else 17655 enable_logging=no 17656 fi 17657else 17658 enableval=no 17659 enable_logging=no 17660 17661fi; 17662echo "$as_me:17662: result: $enable_logging" >&5 17663echo "${ECHO_T}$enable_logging" >&6 17664if test "$enable_logging" = yes ; then 17665 17666cat >>confdefs.h <<\EOF 17667#define ALLOWLOGGING 1 17668EOF 17669 17670 echo "$as_me:17670: checking if you want to allow logging via a pipe" >&5 17671echo $ECHO_N "checking if you want to allow logging via a pipe... $ECHO_C" >&6 17672 17673# Check whether --enable-logfile-exec or --disable-logfile-exec was given. 17674if test "${enable_logfile_exec+set}" = set; then 17675 enableval="$enable_logfile_exec" 17676 test "$enableval" != yes && enableval=no 17677 if test "$enableval" != "no" ; then 17678 enable_log_exec=yes 17679 else 17680 enable_log_exec=no 17681 fi 17682else 17683 enableval=no 17684 enable_log_exec=no 17685 17686fi; 17687 echo "$as_me:17687: result: $enable_log_exec" >&5 17688echo "${ECHO_T}$enable_log_exec" >&6 17689 if test "$enable_log_exec" = yes ; then 17690 17691cat >>confdefs.h <<\EOF 17692#define ALLOWLOGFILEEXEC 1 17693EOF 17694 17695 fi 17696fi 17697 17698echo "$as_me:17698: checking if you want support for iconify/maximize translations" >&5 17699echo $ECHO_N "checking if you want support for iconify/maximize translations... $ECHO_C" >&6 17700 17701# Check whether --enable-maximize or --disable-maximize was given. 17702if test "${enable_maximize+set}" = set; then 17703 enableval="$enable_maximize" 17704 test "$enableval" != no && enableval=yes 17705 if test "$enableval" != "yes" ; then 17706 enable_maximize=no 17707 else 17708 enable_maximize=yes 17709 fi 17710else 17711 enableval=yes 17712 enable_maximize=yes 17713 17714fi; 17715echo "$as_me:17715: result: $enable_maximize" >&5 17716echo "${ECHO_T}$enable_maximize" >&6 17717test "$enable_maximize" = no && 17718cat >>confdefs.h <<\EOF 17719#define OPT_MAXIMIZE 0 17720EOF 17721 17722echo "$as_me:17722: checking if you want NumLock to override keyboard tables" >&5 17723echo $ECHO_N "checking if you want NumLock to override keyboard tables... $ECHO_C" >&6 17724 17725# Check whether --enable-num-lock or --disable-num-lock was given. 17726if test "${enable_num_lock+set}" = set; then 17727 enableval="$enable_num_lock" 17728 test "$enableval" != no && enableval=yes 17729 if test "$enableval" != "yes" ; then 17730 enable_numlock=no 17731 else 17732 enable_numlock=yes 17733 fi 17734else 17735 enableval=yes 17736 enable_numlock=yes 17737 17738fi; 17739echo "$as_me:17739: result: $enable_numlock" >&5 17740echo "${ECHO_T}$enable_numlock" >&6 17741test "$enable_numlock" = no && 17742cat >>confdefs.h <<\EOF 17743#define OPT_NUM_LOCK 0 17744EOF 17745 17746echo "$as_me:17746: checking if you want support for get/set of base64 selection data" >&5 17747echo $ECHO_N "checking if you want support for get/set of base64 selection data... $ECHO_C" >&6 17748 17749# Check whether --enable-paste64 or --disable-paste64 was given. 17750if test "${enable_paste64+set}" = set; then 17751 enableval="$enable_paste64" 17752 test "$enableval" != no && enableval=yes 17753 if test "$enableval" != "yes" ; then 17754 enable_paste64=no 17755 else 17756 enable_paste64=yes 17757 fi 17758else 17759 enableval=yes 17760 enable_paste64=yes 17761 17762fi; 17763echo "$as_me:17763: result: $enable_paste64" >&5 17764echo "${ECHO_T}$enable_paste64" >&6 17765if test "$enable_paste64" = yes ; then 17766 17767cat >>confdefs.h <<\EOF 17768#define OPT_PASTE64 1 17769EOF 17770 17771else 17772 17773cat >>confdefs.h <<\EOF 17774#define OPT_PASTE64 0 17775EOF 17776 17777fi 17778 17779echo "$as_me:17779: checking if you want support for pty-handshaking" >&5 17780echo $ECHO_N "checking if you want support for pty-handshaking... $ECHO_C" >&6 17781 17782# Check whether --enable-pty-handshake or --disable-pty-handshake was given. 17783if test "${enable_pty_handshake+set}" = set; then 17784 enableval="$enable_pty_handshake" 17785 test "$enableval" != no && enableval=yes 17786 if test "$enableval" != "yes" ; then 17787 enable_pty_handshake=no 17788 else 17789 enable_pty_handshake=yes 17790 fi 17791else 17792 enableval=yes 17793 enable_pty_handshake=yes 17794 17795fi; 17796echo "$as_me:17796: result: $enable_pty_handshake" >&5 17797echo "${ECHO_T}$enable_pty_handshake" >&6 17798if test "$enable_pty_handshake" = yes ; then 17799 17800cat >>confdefs.h <<\EOF 17801#define OPT_PTY_HANDSHAKE 1 17802EOF 17803 17804else 17805 17806cat >>confdefs.h <<\EOF 17807#define OPT_PTY_HANDSHAKE 0 17808EOF 17809 17810fi 17811 17812echo "$as_me:17812: checking if you want support for mouse in readline applications" >&5 17813echo $ECHO_N "checking if you want support for mouse in readline applications... $ECHO_C" >&6 17814 17815# Check whether --enable-readline-mouse or --disable-readline-mouse was given. 17816if test "${enable_readline_mouse+set}" = set; then 17817 enableval="$enable_readline_mouse" 17818 test "$enableval" != yes && enableval=no 17819 if test "$enableval" != "no" ; then 17820 enable_readline_mouse=yes 17821 else 17822 enable_readline_mouse=no 17823 fi 17824else 17825 enableval=no 17826 enable_readline_mouse=no 17827 17828fi; 17829echo "$as_me:17829: result: $enable_readline_mouse" >&5 17830echo "${ECHO_T}$enable_readline_mouse" >&6 17831if test "$enable_readline_mouse" = yes ; then 17832 17833cat >>confdefs.h <<\EOF 17834#define OPT_READLINE 1 17835EOF 17836 17837fi 17838 17839echo "$as_me:17839: checking if you want support for regular-expression selections" >&5 17840echo $ECHO_N "checking if you want support for regular-expression selections... $ECHO_C" >&6 17841 17842# Check whether --enable-regex or --disable-regex was given. 17843if test "${enable_regex+set}" = set; then 17844 enableval="$enable_regex" 17845 test "$enableval" != no && enableval=yes 17846 if test "$enableval" != "yes" ; then 17847 enable_regex=no 17848 else 17849 enable_regex=yes 17850 fi 17851else 17852 enableval=yes 17853 enable_regex=yes 17854 17855fi; 17856echo "$as_me:17856: result: $enable_regex" >&5 17857echo "${ECHO_T}$enable_regex" >&6 17858if test "$enable_regex" = yes ; then 17859 17860echo "$as_me:17860: checking if you want to use PCRE for regular-expressions" >&5 17861echo $ECHO_N "checking if you want to use PCRE for regular-expressions... $ECHO_C" >&6 17862 17863# Check whether --with-pcre or --without-pcre was given. 17864if test "${with_pcre+set}" = set; then 17865 withval="$with_pcre" 17866 17867fi; 17868test -z "$with_pcre" && with_pcre=no 17869echo "$as_me:17869: result: $with_pcre" >&5 17870echo "${ECHO_T}$with_pcre" >&6 17871 17872if test "$with_pcre" != no ; then 17873 17874if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists libpcre; then 17875 test -n "$verbose" && echo " found package libpcre" 1>&6 17876 17877echo "${as_me:-configure}:17877: testing found package libpcre ..." 1>&5 17878 17879 cf_pkgconfig_incs="`$PKG_CONFIG --cflags libpcre 2>/dev/null`" 17880 cf_pkgconfig_libs="`$PKG_CONFIG --libs libpcre 2>/dev/null`" 17881 test -n "$verbose" && echo " package libpcre CFLAGS: $cf_pkgconfig_incs" 1>&6 17882 17883echo "${as_me:-configure}:17883: testing package libpcre CFLAGS: $cf_pkgconfig_incs ..." 1>&5 17884 17885 test -n "$verbose" && echo " package libpcre LIBS: $cf_pkgconfig_libs" 1>&6 17886 17887echo "${as_me:-configure}:17887: testing package libpcre LIBS: $cf_pkgconfig_libs ..." 1>&5 17888 17889cf_fix_cppflags=no 17890cf_new_cflags= 17891cf_new_cppflags= 17892cf_new_extra_cppflags= 17893 17894for cf_add_cflags in $cf_pkgconfig_incs 17895do 17896case $cf_fix_cppflags in 17897(no) 17898 case $cf_add_cflags in 17899 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 17900 case $cf_add_cflags in 17901 (-D*) 17902 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 17903 17904 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 17905 && test -z "${cf_tst_cflags}" \ 17906 && cf_fix_cppflags=yes 17907 17908 if test $cf_fix_cppflags = yes ; then 17909 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 17910 continue 17911 elif test "${cf_tst_cflags}" = "\"'" ; then 17912 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 17913 continue 17914 fi 17915 ;; 17916 esac 17917 case "$CPPFLAGS" in 17918 (*$cf_add_cflags) 17919 ;; 17920 (*) 17921 case $cf_add_cflags in 17922 (-D*) 17923 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 17924 17925CPPFLAGS=`echo "$CPPFLAGS" | \ 17926 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 17927 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 17928 17929 ;; 17930 esac 17931 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 17932 ;; 17933 esac 17934 ;; 17935 (*) 17936 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 17937 ;; 17938 esac 17939 ;; 17940(yes) 17941 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 17942 17943 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 17944 17945 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 17946 && test -z "${cf_tst_cflags}" \ 17947 && cf_fix_cppflags=no 17948 ;; 17949esac 17950done 17951 17952if test -n "$cf_new_cflags" ; then 17953 17954 CFLAGS="$CFLAGS $cf_new_cflags" 17955fi 17956 17957if test -n "$cf_new_cppflags" ; then 17958 17959 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 17960fi 17961 17962if test -n "$cf_new_extra_cppflags" ; then 17963 17964 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 17965fi 17966 17967cf_add_libs="$cf_pkgconfig_libs" 17968# Filter out duplicates - this happens with badly-designed ".pc" files... 17969for cf_add_1lib in $LIBS 17970do 17971 for cf_add_2lib in $cf_add_libs 17972 do 17973 if test "x$cf_add_1lib" = "x$cf_add_2lib" 17974 then 17975 cf_add_1lib= 17976 break 17977 fi 17978 done 17979 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 17980done 17981LIBS="$cf_add_libs" 17982 17983 : 17984else 17985 cf_pkgconfig_incs= 17986 cf_pkgconfig_libs= 17987 17988echo "$as_me:17988: checking for pcre_compile in -lpcre" >&5 17989echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6 17990if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then 17991 echo $ECHO_N "(cached) $ECHO_C" >&6 17992else 17993 ac_check_lib_save_LIBS=$LIBS 17994LIBS="-lpcre $LIBS" 17995cat >conftest.$ac_ext <<_ACEOF 17996#line 17996 "configure" 17997#include "confdefs.h" 17998 17999/* Override any gcc2 internal prototype to avoid an error. */ 18000#ifdef __cplusplus 18001extern "C" 18002#endif 18003/* We use char because int might match the return type of a gcc2 18004 builtin and then its argument prototype would still apply. */ 18005char pcre_compile (); 18006int 18007main () 18008{ 18009pcre_compile (); 18010 ; 18011 return 0; 18012} 18013_ACEOF 18014rm -f conftest.$ac_objext conftest$ac_exeext 18015if { (eval echo "$as_me:18015: \"$ac_link\"") >&5 18016 (eval $ac_link) 2>&5 18017 ac_status=$? 18018 echo "$as_me:18018: \$? = $ac_status" >&5 18019 (exit $ac_status); } && 18020 { ac_try='test -s conftest$ac_exeext' 18021 { (eval echo "$as_me:18021: \"$ac_try\"") >&5 18022 (eval $ac_try) 2>&5 18023 ac_status=$? 18024 echo "$as_me:18024: \$? = $ac_status" >&5 18025 (exit $ac_status); }; }; then 18026 ac_cv_lib_pcre_pcre_compile=yes 18027else 18028 echo "$as_me: failed program was:" >&5 18029cat conftest.$ac_ext >&5 18030ac_cv_lib_pcre_pcre_compile=no 18031fi 18032rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18033LIBS=$ac_check_lib_save_LIBS 18034fi 18035echo "$as_me:18035: result: $ac_cv_lib_pcre_pcre_compile" >&5 18036echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6 18037if test $ac_cv_lib_pcre_pcre_compile = yes; then 18038 cat >>confdefs.h <<EOF 18039#define HAVE_LIBPCRE 1 18040EOF 18041 18042 LIBS="-lpcre $LIBS" 18043 18044else 18045 { { echo "$as_me:18045: error: Cannot find PCRE library" >&5 18046echo "$as_me: error: Cannot find PCRE library" >&2;} 18047 { (exit 1); exit 1; }; } 18048fi 18049 18050fi 18051 18052cat >>confdefs.h <<\EOF 18053#define HAVE_LIB_PCRE 1 18054EOF 18055 18056 case $LIBS in 18057 (*pcreposix*) 18058 ;; 18059 (*) 18060 echo "$as_me:18060: checking for pcreposix_regcomp in -lpcreposix" >&5 18061echo $ECHO_N "checking for pcreposix_regcomp in -lpcreposix... $ECHO_C" >&6 18062if test "${ac_cv_lib_pcreposix_pcreposix_regcomp+set}" = set; then 18063 echo $ECHO_N "(cached) $ECHO_C" >&6 18064else 18065 ac_check_lib_save_LIBS=$LIBS 18066LIBS="-lpcreposix $LIBS" 18067cat >conftest.$ac_ext <<_ACEOF 18068#line 18068 "configure" 18069#include "confdefs.h" 18070 18071/* Override any gcc2 internal prototype to avoid an error. */ 18072#ifdef __cplusplus 18073extern "C" 18074#endif 18075/* We use char because int might match the return type of a gcc2 18076 builtin and then its argument prototype would still apply. */ 18077char pcreposix_regcomp (); 18078int 18079main () 18080{ 18081pcreposix_regcomp (); 18082 ; 18083 return 0; 18084} 18085_ACEOF 18086rm -f conftest.$ac_objext conftest$ac_exeext 18087if { (eval echo "$as_me:18087: \"$ac_link\"") >&5 18088 (eval $ac_link) 2>&5 18089 ac_status=$? 18090 echo "$as_me:18090: \$? = $ac_status" >&5 18091 (exit $ac_status); } && 18092 { ac_try='test -s conftest$ac_exeext' 18093 { (eval echo "$as_me:18093: \"$ac_try\"") >&5 18094 (eval $ac_try) 2>&5 18095 ac_status=$? 18096 echo "$as_me:18096: \$? = $ac_status" >&5 18097 (exit $ac_status); }; }; then 18098 ac_cv_lib_pcreposix_pcreposix_regcomp=yes 18099else 18100 echo "$as_me: failed program was:" >&5 18101cat conftest.$ac_ext >&5 18102ac_cv_lib_pcreposix_pcreposix_regcomp=no 18103fi 18104rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18105LIBS=$ac_check_lib_save_LIBS 18106fi 18107echo "$as_me:18107: result: $ac_cv_lib_pcreposix_pcreposix_regcomp" >&5 18108echo "${ECHO_T}$ac_cv_lib_pcreposix_pcreposix_regcomp" >&6 18109if test $ac_cv_lib_pcreposix_pcreposix_regcomp = yes; then 18110 18111cat >>confdefs.h <<\EOF 18112#define HAVE_PCREPOSIX_H 1 18113EOF 18114 18115cf_add_libs="-lpcreposix" 18116# Filter out duplicates - this happens with badly-designed ".pc" files... 18117for cf_add_1lib in $LIBS 18118do 18119 for cf_add_2lib in $cf_add_libs 18120 do 18121 if test "x$cf_add_1lib" = "x$cf_add_2lib" 18122 then 18123 cf_add_1lib= 18124 break 18125 fi 18126 done 18127 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 18128done 18129LIBS="$cf_add_libs" 18130 18131else 18132 echo "$as_me:18132: checking for regcomp in -lpcreposix" >&5 18133echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6 18134if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then 18135 echo $ECHO_N "(cached) $ECHO_C" >&6 18136else 18137 ac_check_lib_save_LIBS=$LIBS 18138LIBS="-lpcreposix $LIBS" 18139cat >conftest.$ac_ext <<_ACEOF 18140#line 18140 "configure" 18141#include "confdefs.h" 18142 18143/* Override any gcc2 internal prototype to avoid an error. */ 18144#ifdef __cplusplus 18145extern "C" 18146#endif 18147/* We use char because int might match the return type of a gcc2 18148 builtin and then its argument prototype would still apply. */ 18149char regcomp (); 18150int 18151main () 18152{ 18153regcomp (); 18154 ; 18155 return 0; 18156} 18157_ACEOF 18158rm -f conftest.$ac_objext conftest$ac_exeext 18159if { (eval echo "$as_me:18159: \"$ac_link\"") >&5 18160 (eval $ac_link) 2>&5 18161 ac_status=$? 18162 echo "$as_me:18162: \$? = $ac_status" >&5 18163 (exit $ac_status); } && 18164 { ac_try='test -s conftest$ac_exeext' 18165 { (eval echo "$as_me:18165: \"$ac_try\"") >&5 18166 (eval $ac_try) 2>&5 18167 ac_status=$? 18168 echo "$as_me:18168: \$? = $ac_status" >&5 18169 (exit $ac_status); }; }; then 18170 ac_cv_lib_pcreposix_regcomp=yes 18171else 18172 echo "$as_me: failed program was:" >&5 18173cat conftest.$ac_ext >&5 18174ac_cv_lib_pcreposix_regcomp=no 18175fi 18176rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18177LIBS=$ac_check_lib_save_LIBS 18178fi 18179echo "$as_me:18179: result: $ac_cv_lib_pcreposix_regcomp" >&5 18180echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6 18181if test $ac_cv_lib_pcreposix_regcomp = yes; then 18182 18183cat >>confdefs.h <<\EOF 18184#define HAVE_PCREPOSIX_H 1 18185EOF 18186 18187cf_add_libs="-lpcreposix" 18188# Filter out duplicates - this happens with badly-designed ".pc" files... 18189for cf_add_1lib in $LIBS 18190do 18191 for cf_add_2lib in $cf_add_libs 18192 do 18193 if test "x$cf_add_1lib" = "x$cf_add_2lib" 18194 then 18195 cf_add_1lib= 18196 break 18197 fi 18198 done 18199 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 18200done 18201LIBS="$cf_add_libs" 18202 18203else 18204 { { echo "$as_me:18204: error: Cannot find PCRE POSIX library" >&5 18205echo "$as_me: error: Cannot find PCRE POSIX library" >&2;} 18206 { (exit 1); exit 1; }; } 18207fi 18208 18209fi 18210 18211 ;; 18212 esac 18213fi 18214 18215 if test "$with_pcre" = no ; then 18216 18217cf_regex_func=no 18218 18219cf_regex_libs="regex re" 18220case $host_os in 18221(mingw*) 18222 cf_regex_libs="gnurx $cf_regex_libs" 18223 ;; 18224esac 18225 18226echo "$as_me:18226: checking for regcomp" >&5 18227echo $ECHO_N "checking for regcomp... $ECHO_C" >&6 18228if test "${ac_cv_func_regcomp+set}" = set; then 18229 echo $ECHO_N "(cached) $ECHO_C" >&6 18230else 18231 cat >conftest.$ac_ext <<_ACEOF 18232#line 18232 "configure" 18233#include "confdefs.h" 18234/* System header to define __stub macros and hopefully few prototypes, 18235 which can conflict with char regcomp (); below. */ 18236#include <assert.h> 18237/* Override any gcc2 internal prototype to avoid an error. */ 18238#ifdef __cplusplus 18239extern "C" 18240#endif 18241/* We use char because int might match the return type of a gcc2 18242 builtin and then its argument prototype would still apply. */ 18243char regcomp (); 18244char (*f) (); 18245 18246int 18247main () 18248{ 18249/* The GNU C library defines this for functions which it implements 18250 to always fail with ENOSYS. Some functions are actually named 18251 something starting with __ and the normal name is an alias. */ 18252#if defined (__stub_regcomp) || defined (__stub___regcomp) 18253choke me 18254#else 18255f = regcomp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 18256#endif 18257 18258 ; 18259 return 0; 18260} 18261_ACEOF 18262rm -f conftest.$ac_objext conftest$ac_exeext 18263if { (eval echo "$as_me:18263: \"$ac_link\"") >&5 18264 (eval $ac_link) 2>&5 18265 ac_status=$? 18266 echo "$as_me:18266: \$? = $ac_status" >&5 18267 (exit $ac_status); } && 18268 { ac_try='test -s conftest$ac_exeext' 18269 { (eval echo "$as_me:18269: \"$ac_try\"") >&5 18270 (eval $ac_try) 2>&5 18271 ac_status=$? 18272 echo "$as_me:18272: \$? = $ac_status" >&5 18273 (exit $ac_status); }; }; then 18274 ac_cv_func_regcomp=yes 18275else 18276 echo "$as_me: failed program was:" >&5 18277cat conftest.$ac_ext >&5 18278ac_cv_func_regcomp=no 18279fi 18280rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18281fi 18282echo "$as_me:18282: result: $ac_cv_func_regcomp" >&5 18283echo "${ECHO_T}$ac_cv_func_regcomp" >&6 18284if test $ac_cv_func_regcomp = yes; then 18285 cf_regex_func=regcomp 18286else 18287 18288 for cf_regex_lib in $cf_regex_libs 18289 do 18290 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh` 18291echo "$as_me:18291: checking for regcomp in -l$cf_regex_lib" >&5 18292echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6 18293if eval "test \"\${$as_ac_Lib+set}\" = set"; then 18294 echo $ECHO_N "(cached) $ECHO_C" >&6 18295else 18296 ac_check_lib_save_LIBS=$LIBS 18297LIBS="-l$cf_regex_lib $LIBS" 18298cat >conftest.$ac_ext <<_ACEOF 18299#line 18299 "configure" 18300#include "confdefs.h" 18301 18302/* Override any gcc2 internal prototype to avoid an error. */ 18303#ifdef __cplusplus 18304extern "C" 18305#endif 18306/* We use char because int might match the return type of a gcc2 18307 builtin and then its argument prototype would still apply. */ 18308char regcomp (); 18309int 18310main () 18311{ 18312regcomp (); 18313 ; 18314 return 0; 18315} 18316_ACEOF 18317rm -f conftest.$ac_objext conftest$ac_exeext 18318if { (eval echo "$as_me:18318: \"$ac_link\"") >&5 18319 (eval $ac_link) 2>&5 18320 ac_status=$? 18321 echo "$as_me:18321: \$? = $ac_status" >&5 18322 (exit $ac_status); } && 18323 { ac_try='test -s conftest$ac_exeext' 18324 { (eval echo "$as_me:18324: \"$ac_try\"") >&5 18325 (eval $ac_try) 2>&5 18326 ac_status=$? 18327 echo "$as_me:18327: \$? = $ac_status" >&5 18328 (exit $ac_status); }; }; then 18329 eval "$as_ac_Lib=yes" 18330else 18331 echo "$as_me: failed program was:" >&5 18332cat conftest.$ac_ext >&5 18333eval "$as_ac_Lib=no" 18334fi 18335rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18336LIBS=$ac_check_lib_save_LIBS 18337fi 18338echo "$as_me:18338: result: `eval echo '${'$as_ac_Lib'}'`" >&5 18339echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 18340if test `eval echo '${'$as_ac_Lib'}'` = yes; then 18341 18342cf_add_libs="-l$cf_regex_lib" 18343# Filter out duplicates - this happens with badly-designed ".pc" files... 18344for cf_add_1lib in $LIBS 18345do 18346 for cf_add_2lib in $cf_add_libs 18347 do 18348 if test "x$cf_add_1lib" = "x$cf_add_2lib" 18349 then 18350 cf_add_1lib= 18351 break 18352 fi 18353 done 18354 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 18355done 18356LIBS="$cf_add_libs" 18357 18358 cf_regex_func=regcomp 18359 break 18360fi 18361 18362 done 18363 18364fi 18365 18366if test "$cf_regex_func" = no ; then 18367 echo "$as_me:18367: checking for compile" >&5 18368echo $ECHO_N "checking for compile... $ECHO_C" >&6 18369if test "${ac_cv_func_compile+set}" = set; then 18370 echo $ECHO_N "(cached) $ECHO_C" >&6 18371else 18372 cat >conftest.$ac_ext <<_ACEOF 18373#line 18373 "configure" 18374#include "confdefs.h" 18375/* System header to define __stub macros and hopefully few prototypes, 18376 which can conflict with char compile (); below. */ 18377#include <assert.h> 18378/* Override any gcc2 internal prototype to avoid an error. */ 18379#ifdef __cplusplus 18380extern "C" 18381#endif 18382/* We use char because int might match the return type of a gcc2 18383 builtin and then its argument prototype would still apply. */ 18384char compile (); 18385char (*f) (); 18386 18387int 18388main () 18389{ 18390/* The GNU C library defines this for functions which it implements 18391 to always fail with ENOSYS. Some functions are actually named 18392 something starting with __ and the normal name is an alias. */ 18393#if defined (__stub_compile) || defined (__stub___compile) 18394choke me 18395#else 18396f = compile; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 18397#endif 18398 18399 ; 18400 return 0; 18401} 18402_ACEOF 18403rm -f conftest.$ac_objext conftest$ac_exeext 18404if { (eval echo "$as_me:18404: \"$ac_link\"") >&5 18405 (eval $ac_link) 2>&5 18406 ac_status=$? 18407 echo "$as_me:18407: \$? = $ac_status" >&5 18408 (exit $ac_status); } && 18409 { ac_try='test -s conftest$ac_exeext' 18410 { (eval echo "$as_me:18410: \"$ac_try\"") >&5 18411 (eval $ac_try) 2>&5 18412 ac_status=$? 18413 echo "$as_me:18413: \$? = $ac_status" >&5 18414 (exit $ac_status); }; }; then 18415 ac_cv_func_compile=yes 18416else 18417 echo "$as_me: failed program was:" >&5 18418cat conftest.$ac_ext >&5 18419ac_cv_func_compile=no 18420fi 18421rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18422fi 18423echo "$as_me:18423: result: $ac_cv_func_compile" >&5 18424echo "${ECHO_T}$ac_cv_func_compile" >&6 18425if test $ac_cv_func_compile = yes; then 18426 cf_regex_func=compile 18427else 18428 18429 echo "$as_me:18429: checking for compile in -lgen" >&5 18430echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6 18431if test "${ac_cv_lib_gen_compile+set}" = set; then 18432 echo $ECHO_N "(cached) $ECHO_C" >&6 18433else 18434 ac_check_lib_save_LIBS=$LIBS 18435LIBS="-lgen $LIBS" 18436cat >conftest.$ac_ext <<_ACEOF 18437#line 18437 "configure" 18438#include "confdefs.h" 18439 18440/* Override any gcc2 internal prototype to avoid an error. */ 18441#ifdef __cplusplus 18442extern "C" 18443#endif 18444/* We use char because int might match the return type of a gcc2 18445 builtin and then its argument prototype would still apply. */ 18446char compile (); 18447int 18448main () 18449{ 18450compile (); 18451 ; 18452 return 0; 18453} 18454_ACEOF 18455rm -f conftest.$ac_objext conftest$ac_exeext 18456if { (eval echo "$as_me:18456: \"$ac_link\"") >&5 18457 (eval $ac_link) 2>&5 18458 ac_status=$? 18459 echo "$as_me:18459: \$? = $ac_status" >&5 18460 (exit $ac_status); } && 18461 { ac_try='test -s conftest$ac_exeext' 18462 { (eval echo "$as_me:18462: \"$ac_try\"") >&5 18463 (eval $ac_try) 2>&5 18464 ac_status=$? 18465 echo "$as_me:18465: \$? = $ac_status" >&5 18466 (exit $ac_status); }; }; then 18467 ac_cv_lib_gen_compile=yes 18468else 18469 echo "$as_me: failed program was:" >&5 18470cat conftest.$ac_ext >&5 18471ac_cv_lib_gen_compile=no 18472fi 18473rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18474LIBS=$ac_check_lib_save_LIBS 18475fi 18476echo "$as_me:18476: result: $ac_cv_lib_gen_compile" >&5 18477echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6 18478if test $ac_cv_lib_gen_compile = yes; then 18479 18480cf_add_libs="-lgen" 18481# Filter out duplicates - this happens with badly-designed ".pc" files... 18482for cf_add_1lib in $LIBS 18483do 18484 for cf_add_2lib in $cf_add_libs 18485 do 18486 if test "x$cf_add_1lib" = "x$cf_add_2lib" 18487 then 18488 cf_add_1lib= 18489 break 18490 fi 18491 done 18492 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 18493done 18494LIBS="$cf_add_libs" 18495 18496 cf_regex_func=compile 18497fi 18498 18499fi 18500 18501fi 18502 18503if test "$cf_regex_func" = no ; then 18504 { echo "$as_me:18504: WARNING: cannot find regular expression library" >&5 18505echo "$as_me: WARNING: cannot find regular expression library" >&2;} 18506fi 18507 18508echo "$as_me:18508: checking for regular-expression headers" >&5 18509echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6 18510if test "${cf_cv_regex_hdrs+set}" = set; then 18511 echo $ECHO_N "(cached) $ECHO_C" >&6 18512else 18513 18514cf_cv_regex_hdrs=no 18515case $cf_regex_func in 18516(compile) 18517 for cf_regex_hdr in regexp.h regexpr.h 18518 do 18519 cat >conftest.$ac_ext <<_ACEOF 18520#line 18520 "configure" 18521#include "confdefs.h" 18522#include <$cf_regex_hdr> 18523int 18524main () 18525{ 18526 18527 char *p = compile("", "", "", 0); 18528 int x = step("", ""); 18529 18530 ; 18531 return 0; 18532} 18533_ACEOF 18534rm -f conftest.$ac_objext conftest$ac_exeext 18535if { (eval echo "$as_me:18535: \"$ac_link\"") >&5 18536 (eval $ac_link) 2>&5 18537 ac_status=$? 18538 echo "$as_me:18538: \$? = $ac_status" >&5 18539 (exit $ac_status); } && 18540 { ac_try='test -s conftest$ac_exeext' 18541 { (eval echo "$as_me:18541: \"$ac_try\"") >&5 18542 (eval $ac_try) 2>&5 18543 ac_status=$? 18544 echo "$as_me:18544: \$? = $ac_status" >&5 18545 (exit $ac_status); }; }; then 18546 18547 cf_cv_regex_hdrs=$cf_regex_hdr 18548 break 18549 18550else 18551 echo "$as_me: failed program was:" >&5 18552cat conftest.$ac_ext >&5 18553fi 18554rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18555 done 18556 ;; 18557(*) 18558 for cf_regex_hdr in regex.h 18559 do 18560 cat >conftest.$ac_ext <<_ACEOF 18561#line 18561 "configure" 18562#include "confdefs.h" 18563#include <sys/types.h> 18564#include <$cf_regex_hdr> 18565int 18566main () 18567{ 18568 18569 regex_t *p; 18570 int x = regcomp(p, "", 0); 18571 int y = regexec(p, "", 0, 0, 0); 18572 regfree(p); 18573 18574 ; 18575 return 0; 18576} 18577_ACEOF 18578rm -f conftest.$ac_objext conftest$ac_exeext 18579if { (eval echo "$as_me:18579: \"$ac_link\"") >&5 18580 (eval $ac_link) 2>&5 18581 ac_status=$? 18582 echo "$as_me:18582: \$? = $ac_status" >&5 18583 (exit $ac_status); } && 18584 { ac_try='test -s conftest$ac_exeext' 18585 { (eval echo "$as_me:18585: \"$ac_try\"") >&5 18586 (eval $ac_try) 2>&5 18587 ac_status=$? 18588 echo "$as_me:18588: \$? = $ac_status" >&5 18589 (exit $ac_status); }; }; then 18590 18591 cf_cv_regex_hdrs=$cf_regex_hdr 18592 break 18593 18594else 18595 echo "$as_me: failed program was:" >&5 18596cat conftest.$ac_ext >&5 18597fi 18598rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18599 done 18600 ;; 18601esac 18602 18603fi 18604echo "$as_me:18604: result: $cf_cv_regex_hdrs" >&5 18605echo "${ECHO_T}$cf_cv_regex_hdrs" >&6 18606 18607case $cf_cv_regex_hdrs in 18608 (no) { echo "$as_me:18608: WARNING: no regular expression header found" >&5 18609echo "$as_me: WARNING: no regular expression header found" >&2;} ;; 18610 (regex.h) 18611cat >>confdefs.h <<\EOF 18612#define HAVE_REGEX_H_FUNCS 1 18613EOF 18614 ;; 18615 (regexp.h) 18616cat >>confdefs.h <<\EOF 18617#define HAVE_REGEXP_H_FUNCS 1 18618EOF 18619 ;; 18620 (regexpr.h) 18621cat >>confdefs.h <<\EOF 18622#define HAVE_REGEXPR_H_FUNCS 1 18623EOF 18624 ;; 18625esac 18626 18627 if test "X$cf_cv_regex_hdrs" != "Xregex.h" ; then 18628 { { echo "$as_me:18628: error: Only POSIX or PCRE regular expressions are supported" >&5 18629echo "$as_me: error: Only POSIX or PCRE regular expressions are supported" >&2;} 18630 { (exit 1); exit 1; }; } 18631 fi 18632 fi 18633 18634cat >>confdefs.h <<\EOF 18635#define OPT_SELECT_REGEX 1 18636EOF 18637 18638fi 18639 18640echo "$as_me:18640: checking if you want support for right-scrollbar" >&5 18641echo $ECHO_N "checking if you want support for right-scrollbar... $ECHO_C" >&6 18642 18643# Check whether --enable-rightbar or --disable-rightbar was given. 18644if test "${enable_rightbar+set}" = set; then 18645 enableval="$enable_rightbar" 18646 test "$enableval" != no && enableval=yes 18647 if test "$enableval" != "yes" ; then 18648 enable_rightbar=no 18649 else 18650 enable_rightbar=yes 18651 fi 18652else 18653 enableval=yes 18654 enable_rightbar=yes 18655 18656fi; 18657echo "$as_me:18657: result: $enable_rightbar" >&5 18658echo "${ECHO_T}$enable_rightbar" >&6 18659if test "$enable_rightbar" = yes ; then 18660 18661cat >>confdefs.h <<\EOF 18662#define SCROLLBAR_RIGHT 1 18663EOF 18664 18665fi 18666 18667echo "$as_me:18667: checking if you want check for redundant name-change" >&5 18668echo $ECHO_N "checking if you want check for redundant name-change... $ECHO_C" >&6 18669 18670# Check whether --enable-samename or --disable-samename was given. 18671if test "${enable_samename+set}" = set; then 18672 enableval="$enable_samename" 18673 test "$enableval" != no && enableval=yes 18674 if test "$enableval" != "yes" ; then 18675 enable_samename=no 18676 else 18677 enable_samename=yes 18678 fi 18679else 18680 enableval=yes 18681 enable_samename=yes 18682 18683fi; 18684echo "$as_me:18684: result: $enable_samename" >&5 18685echo "${ECHO_T}$enable_samename" >&6 18686test "$enable_samename" = no && 18687cat >>confdefs.h <<\EOF 18688#define OPT_SAME_NAME 0 18689EOF 18690 18691echo "$as_me:18691: checking if you want support for selection-actions" >&5 18692echo $ECHO_N "checking if you want support for selection-actions... $ECHO_C" >&6 18693 18694# Check whether --enable-selection-ops or --disable-selection-ops was given. 18695if test "${enable_selection_ops+set}" = set; then 18696 enableval="$enable_selection_ops" 18697 test "$enableval" != no && enableval=yes 18698 if test "$enableval" != "yes" ; then 18699 enable_selection_ops=no 18700 else 18701 enable_selection_ops=yes 18702 fi 18703else 18704 enableval=yes 18705 enable_selection_ops=yes 18706 18707fi; 18708echo "$as_me:18708: result: $enable_selection_ops" >&5 18709echo "${ECHO_T}$enable_selection_ops" >&6 18710test "$enable_selection_ops" = no && 18711cat >>confdefs.h <<\EOF 18712#define OPT_SELECTION_OPS 0 18713EOF 18714 18715echo "$as_me:18715: checking if you want support for session management" >&5 18716echo $ECHO_N "checking if you want support for session management... $ECHO_C" >&6 18717 18718# Check whether --enable-session-mgt or --disable-session-mgt was given. 18719if test "${enable_session_mgt+set}" = set; then 18720 enableval="$enable_session_mgt" 18721 test "$enableval" != no && enableval=yes 18722 if test "$enableval" != "yes" ; then 18723 enable_session_mgt=no 18724 else 18725 enable_session_mgt=yes 18726 fi 18727else 18728 enableval=yes 18729 enable_session_mgt=yes 18730 18731fi; 18732echo "$as_me:18732: result: $enable_session_mgt" >&5 18733echo "${ECHO_T}$enable_session_mgt" >&6 18734test "$enable_session_mgt" = no && 18735cat >>confdefs.h <<\EOF 18736#define OPT_SESSION_MGT 0 18737EOF 18738 18739echo "$as_me:18739: checking if you want to use termcap function-keys" >&5 18740echo $ECHO_N "checking if you want to use termcap function-keys... $ECHO_C" >&6 18741 18742# Check whether --enable-tcap-fkeys or --disable-tcap-fkeys was given. 18743if test "${enable_tcap_fkeys+set}" = set; then 18744 enableval="$enable_tcap_fkeys" 18745 test "$enableval" != no && enableval=yes 18746 if test "$enableval" != "yes" ; then 18747 enable_tcap_fkeys=no 18748 else 18749 enable_tcap_fkeys=yes 18750 fi 18751else 18752 enableval=yes 18753 enable_tcap_fkeys=yes 18754 18755fi; 18756echo "$as_me:18756: result: $enable_tcap_fkeys" >&5 18757echo "${ECHO_T}$enable_tcap_fkeys" >&6 18758test "$enable_tcap_fkeys" = yes && 18759cat >>confdefs.h <<\EOF 18760#define OPT_TCAP_FKEYS 1 18761EOF 18762 18763echo "$as_me:18763: checking if you want to use termcap-query/report" >&5 18764echo $ECHO_N "checking if you want to use termcap-query/report... $ECHO_C" >&6 18765 18766# Check whether --enable-tcap-query or --disable-tcap-query was given. 18767if test "${enable_tcap_query+set}" = set; then 18768 enableval="$enable_tcap_query" 18769 test "$enableval" != no && enableval=yes 18770 if test "$enableval" != "yes" ; then 18771 enable_tcap_query=no 18772 else 18773 enable_tcap_query=yes 18774 fi 18775else 18776 enableval=yes 18777 enable_tcap_query=yes 18778 18779fi; 18780echo "$as_me:18780: result: $enable_tcap_query" >&5 18781echo "${ECHO_T}$enable_tcap_query" >&6 18782test "$enable_tcap_query" = yes && 18783cat >>confdefs.h <<\EOF 18784#define OPT_TCAP_QUERY 1 18785EOF 18786 18787echo "$as_me:18787: checking if you want support for tek4014" >&5 18788echo $ECHO_N "checking if you want support for tek4014... $ECHO_C" >&6 18789 18790# Check whether --enable-tek4014 or --disable-tek4014 was given. 18791if test "${enable_tek4014+set}" = set; then 18792 enableval="$enable_tek4014" 18793 test "$enableval" != no && enableval=yes 18794 if test "$enableval" != "yes" ; then 18795 enable_tek4014=no 18796 else 18797 enable_tek4014=yes 18798 fi 18799else 18800 enableval=yes 18801 enable_tek4014=yes 18802 18803fi; 18804echo "$as_me:18804: result: $enable_tek4014" >&5 18805echo "${ECHO_T}$enable_tek4014" >&6 18806if test "$enable_tek4014" = no ; then 18807 18808cat >>confdefs.h <<\EOF 18809#define OPT_TEK4014 0 18810EOF 18811 18812else 18813 EXTRAHDRS="$EXTRAHDRS Tekparse.h" 18814 EXTRASRCS="$EXTRASRCS TekPrsTbl.c Tekproc.c" 18815 EXTRAOBJS="$EXTRAOBJS TekPrsTbl.o Tekproc.o" 18816fi 18817 18818echo "$as_me:18818: checking if you want pulldown menus with a toolbar" >&5 18819echo $ECHO_N "checking if you want pulldown menus with a toolbar... $ECHO_C" >&6 18820 18821# Check whether --enable-toolbar or --disable-toolbar was given. 18822if test "${enable_toolbar+set}" = set; then 18823 enableval="$enable_toolbar" 18824 test "$enableval" != yes && enableval=no 18825 if test "$enableval" != "no" ; then 18826 enable_toolbar=yes 18827 else 18828 enable_toolbar=no 18829 fi 18830else 18831 enableval=no 18832 enable_toolbar=no 18833 18834fi; 18835echo "$as_me:18835: result: $enable_toolbar" >&5 18836echo "${ECHO_T}$enable_toolbar" >&6 18837if test "$enable_toolbar" = yes ; then 18838 18839cat >>confdefs.h <<\EOF 18840#define OPT_TOOLBAR 1 18841EOF 18842 18843fi 18844 18845echo "$as_me:18845: checking if you want VT52 emulation" >&5 18846echo $ECHO_N "checking if you want VT52 emulation... $ECHO_C" >&6 18847 18848# Check whether --enable-vt52 or --disable-vt52 was given. 18849if test "${enable_vt52+set}" = set; then 18850 enableval="$enable_vt52" 18851 test "$enableval" != no && enableval=yes 18852 if test "$enableval" != "yes" ; then 18853 enable_vt52=no 18854 else 18855 enable_vt52=yes 18856 fi 18857else 18858 enableval=yes 18859 enable_vt52=yes 18860 18861fi; 18862echo "$as_me:18862: result: $enable_vt52" >&5 18863echo "${ECHO_T}$enable_vt52" >&6 18864test "$enable_vt52" = no && 18865cat >>confdefs.h <<\EOF 18866#define OPT_VT52_MODE 0 18867EOF 18868 18869echo "$as_me:18869: checking if you want wide-attribute support" >&5 18870echo $ECHO_N "checking if you want wide-attribute support... $ECHO_C" >&6 18871 18872# Check whether --enable-wide-attrs or --disable-wide-attrs was given. 18873if test "${enable_wide_attrs+set}" = set; then 18874 enableval="$enable_wide_attrs" 18875 test "$enableval" != no && enableval=yes 18876 if test "$enableval" != "yes" ; then 18877 enable_wattr=no 18878 else 18879 enable_wattr=yes 18880 fi 18881else 18882 enableval=yes 18883 enable_wattr=yes 18884 18885fi; 18886echo "$as_me:18886: result: $enable_wattr" >&5 18887echo "${ECHO_T}$enable_wattr" >&6 18888 18889echo "$as_me:18889: checking if you want wide-character support" >&5 18890echo $ECHO_N "checking if you want wide-character support... $ECHO_C" >&6 18891 18892# Check whether --enable-wide-chars or --disable-wide-chars was given. 18893if test "${enable_wide_chars+set}" = set; then 18894 enableval="$enable_wide_chars" 18895 test "$enableval" != no && enableval=yes 18896 if test "$enableval" != "yes" ; then 18897 enable_wchar=no 18898 else 18899 enable_wchar=yes 18900 fi 18901else 18902 enableval=yes 18903 enable_wchar=yes 18904 18905fi; 18906echo "$as_me:18906: result: $enable_wchar" >&5 18907echo "${ECHO_T}$enable_wchar" >&6 18908test "$enable_wattr" = no && 18909cat >>confdefs.h <<\EOF 18910#define OPT_WIDE_ATTRS 0 18911EOF 18912 18913echo "$as_me:18913: checking if you want only 16-bit character support" >&5 18914echo $ECHO_N "checking if you want only 16-bit character support... $ECHO_C" >&6 18915 18916# Check whether --enable-16bit-chars or --disable-16bit-chars was given. 18917if test "${enable_16bit_chars+set}" = set; then 18918 enableval="$enable_16bit_chars" 18919 test "$enableval" != yes && enableval=no 18920 if test "$enableval" != "no" ; then 18921 enable_16bit_chars=yes 18922 else 18923 enable_16bit_chars=no 18924 fi 18925else 18926 enableval=no 18927 enable_16bit_chars=no 18928 18929fi; 18930echo "$as_me:18930: result: $enable_16bit_chars" >&5 18931echo "${ECHO_T}$enable_16bit_chars" >&6 18932 18933if test "$enable_16bit_chars" = yes ; then 18934 18935cat >>confdefs.h <<\EOF 18936#define OPT_WIDER_ICHAR 0 18937EOF 18938 18939 enable_wchar=yes 18940fi 18941 18942if test "$enable_wchar" = yes ; then 18943 18944echo "$as_me:18944: checking if you want to use mini-luit/Latin9 built-in support" >&5 18945echo $ECHO_N "checking if you want to use mini-luit/Latin9 built-in support... $ECHO_C" >&6 18946 18947# Check whether --enable-mini-luit or --disable-mini-luit was given. 18948if test "${enable_mini_luit+set}" = set; then 18949 enableval="$enable_mini_luit" 18950 test "$enableval" != yes && enableval=no 18951 if test "$enableval" != "no" ; then 18952 enable_mini_luit=yes 18953 else 18954 enable_mini_luit=no 18955 fi 18956else 18957 enableval=no 18958 enable_mini_luit=no 18959 18960fi; 18961echo "$as_me:18961: result: $enable_mini_luit" >&5 18962echo "${ECHO_T}$enable_mini_luit" >&6 18963if test "$enable_mini_luit" = yes ; then 18964 18965cat >>confdefs.h <<\EOF 18966#define OPT_MINI_LUIT 1 18967EOF 18968 18969fi 18970 18971echo "$as_me:18971: checking if you want to use luit" >&5 18972echo $ECHO_N "checking if you want to use luit... $ECHO_C" >&6 18973 18974# Check whether --enable-luit or --disable-luit was given. 18975if test "${enable_luit+set}" = set; then 18976 enableval="$enable_luit" 18977 test "$enableval" != no && enableval=yes 18978 if test "$enableval" != "yes" ; then 18979 enable_luit=no 18980 else 18981 enable_luit=yes 18982 fi 18983else 18984 enableval=yes 18985 enable_luit=yes 18986 18987fi; 18988echo "$as_me:18988: result: $enable_luit" >&5 18989echo "${ECHO_T}$enable_luit" >&6 18990if test "$enable_luit" = yes ; then 18991 18992cat >>confdefs.h <<\EOF 18993#define OPT_LUIT_PROG 1 18994EOF 18995 18996test -z "$LUIT" && LUIT=xterm-filter 18997for ac_prog in $LUIT xterm-filter bluit luit 18998do 18999 # Extract the first word of "$ac_prog", so it can be a program name with args. 19000set dummy $ac_prog; ac_word=$2 19001echo "$as_me:19001: checking for $ac_word" >&5 19002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19003if test "${ac_cv_path_LUIT+set}" = set; then 19004 echo $ECHO_N "(cached) $ECHO_C" >&6 19005else 19006 case $LUIT in 19007 [\\/]* | ?:[\\/]*) 19008 ac_cv_path_LUIT="$LUIT" # Let the user override the test with a path. 19009 ;; 19010 *) 19011 ac_save_IFS=$IFS; IFS=$ac_path_separator 19012ac_dummy="$PATH" 19013for ac_dir in $ac_dummy; do 19014 IFS=$ac_save_IFS 19015 test -z "$ac_dir" && ac_dir=. 19016 if $as_executable_p "$ac_dir/$ac_word"; then 19017 ac_cv_path_LUIT="$ac_dir/$ac_word" 19018 echo "$as_me:19018: found $ac_dir/$ac_word" >&5 19019 break 19020fi 19021done 19022 19023 ;; 19024esac 19025fi 19026LUIT=$ac_cv_path_LUIT 19027 19028if test -n "$LUIT"; then 19029 echo "$as_me:19029: result: $LUIT" >&5 19030echo "${ECHO_T}$LUIT" >&6 19031else 19032 echo "$as_me:19032: result: no" >&5 19033echo "${ECHO_T}no" >&6 19034fi 19035 19036 test -n "$LUIT" && break 19037done 19038test -n "$LUIT" || LUIT="$LUIT" 19039 19040cf_path_prog="" 19041cf_path_args="" 19042IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" 19043for cf_temp in $ac_cv_path_LUIT 19044do 19045 if test -z "$cf_path_prog" ; then 19046 if test "$with_full_paths" = yes ; then 19047 19048if test "x$prefix" != xNONE; then 19049 cf_path_syntax="$prefix" 19050else 19051 cf_path_syntax="$ac_default_prefix" 19052fi 19053 19054case ".$cf_temp" in 19055(.\$\(*\)*|.\'*\'*) 19056 ;; 19057(..|./*|.\\*) 19058 ;; 19059(.[a-zA-Z]:[\\/]*) # OS/2 EMX 19060 ;; 19061(.\${*prefix}*|.\${*dir}*) 19062 eval cf_temp="$cf_temp" 19063 case ".$cf_temp" in 19064 (.NONE/*) 19065 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%` 19066 ;; 19067 esac 19068 ;; 19069(.no|.NONE/*) 19070 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%` 19071 ;; 19072(*) 19073 break 19074 ;; 19075esac 19076 19077 cf_path_prog="$cf_temp" 19078 else 19079 cf_path_prog="`basename $cf_temp`" 19080 fi 19081 elif test -z "$cf_path_args" ; then 19082 cf_path_args="$cf_temp" 19083 else 19084 cf_path_args="$cf_path_args $cf_temp" 19085 fi 19086done 19087IFS="$cf_save_ifs" 19088 19089if test -n "$cf_path_prog" ; then 19090 19091echo "${as_me:-configure}:19091: testing defining path for ${cf_path_prog} ..." 1>&5 19092 19093cat >>confdefs.h <<EOF 19094#define LUIT_PATH "$cf_path_prog" 19095EOF 19096 19097 test -n "$cf_path_args" && 19098cat >>confdefs.h <<EOF 19099#define LUIT_ARGS "$cf_path_args" 19100EOF 19101 19102fi 19103 19104fi 19105 19106cat >>confdefs.h <<\EOF 19107#define OPT_WIDE_CHARS 1 19108EOF 19109 19110 EXTRAHDRS="$EXTRAHDRS charclass.h precompose.h wcwidth.h" 19111 EXTRASRCS="$EXTRASRCS charclass.c precompose.c wcwidth.c" 19112 EXTRAOBJS="$EXTRAOBJS charclass.o precompose.o wcwidth.o" 19113fi 19114 19115echo "$as_me:19115: checking if you want dynamic-abbreviation support" >&5 19116echo $ECHO_N "checking if you want dynamic-abbreviation support... $ECHO_C" >&6 19117 19118# Check whether --enable-dabbrev or --disable-dabbrev was given. 19119if test "${enable_dabbrev+set}" = set; then 19120 enableval="$enable_dabbrev" 19121 test "$enableval" != yes && enableval=no 19122 if test "$enableval" != "no" ; then 19123 enable_dabbrev=yes 19124 else 19125 enable_dabbrev=no 19126 fi 19127else 19128 enableval=no 19129 enable_dabbrev=no 19130 19131fi; 19132echo "$as_me:19132: result: $enable_dabbrev" >&5 19133echo "${ECHO_T}$enable_dabbrev" >&6 19134if test "$enable_dabbrev" = yes ; then 19135 19136cat >>confdefs.h <<\EOF 19137#define OPT_DABBREV 1 19138EOF 19139 19140fi 19141 19142echo "$as_me:19142: checking if you want DECterm Locator support" >&5 19143echo $ECHO_N "checking if you want DECterm Locator support... $ECHO_C" >&6 19144 19145# Check whether --enable-dec-locator or --disable-dec-locator was given. 19146if test "${enable_dec_locator+set}" = set; then 19147 enableval="$enable_dec_locator" 19148 test "$enableval" != yes && enableval=no 19149 if test "$enableval" != "no" ; then 19150 enable_dec_locator=yes 19151 else 19152 enable_dec_locator=no 19153 fi 19154else 19155 enableval=no 19156 enable_dec_locator=no 19157 19158fi; 19159echo "$as_me:19159: result: $enable_dec_locator" >&5 19160echo "${ECHO_T}$enable_dec_locator" >&6 19161if test "$enable_dec_locator" = yes ; then 19162 19163cat >>confdefs.h <<\EOF 19164#define OPT_DEC_LOCATOR 1 19165EOF 19166 19167fi 19168 19169echo "$as_me:19169: checking if you want XHTML and SVG screen dump support" >&5 19170echo $ECHO_N "checking if you want XHTML and SVG screen dump support... $ECHO_C" >&6 19171 19172# Check whether --enable-screen-dumps or --disable-screen-dumps was given. 19173if test "${enable_screen_dumps+set}" = set; then 19174 enableval="$enable_screen_dumps" 19175 test "$enableval" != yes && enableval=no 19176 if test "$enableval" != "no" ; then 19177 enable_screen_dumps=yes 19178 else 19179 enable_screen_dumps=no 19180 fi 19181else 19182 enableval=no 19183 enable_screen_dumps=no 19184 19185fi; 19186echo "$as_me:19186: result: $enable_screen_dumps" >&5 19187echo "${ECHO_T}$enable_screen_dumps" >&6 19188if test "$enable_screen_dumps" = yes ; then 19189 19190cat >>confdefs.h <<\EOF 19191#define OPT_SCREEN_DUMPS 1 19192EOF 19193 19194 EXTRASRCS="$EXTRASRCS html.c svg.c" 19195 EXTRAOBJS="$EXTRAOBJS html.o svg.o" 19196fi 19197 19198echo "$as_me:19198: checking if you want ReGIS graphics support" >&5 19199echo $ECHO_N "checking if you want ReGIS graphics support... $ECHO_C" >&6 19200 19201# Check whether --enable-regis-graphics or --disable-regis-graphics was given. 19202if test "${enable_regis_graphics+set}" = set; then 19203 enableval="$enable_regis_graphics" 19204 test "$enableval" != yes && enableval=no 19205 if test "$enableval" != "no" ; then 19206 enable_regis_graphics=yes 19207 else 19208 enable_regis_graphics=no 19209 fi 19210else 19211 enableval=no 19212 enable_regis_graphics=no 19213 19214fi; 19215echo "$as_me:19215: result: $enable_regis_graphics" >&5 19216echo "${ECHO_T}$enable_regis_graphics" >&6 19217if test "$enable_regis_graphics" = yes ; then 19218 19219cat >>confdefs.h <<\EOF 19220#define OPT_REGIS_GRAPHICS 1 19221EOF 19222 19223 EXTRAHDRS="$EXTRAHDRS graphics_regis.h" 19224 EXTRASRCS="$EXTRASRCS graphics_regis.c" 19225 EXTRAOBJS="$EXTRAOBJS graphics_regis.o" 19226 19227echo "$as_me:19227: checking if -lm needed for math functions" >&5 19228echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6 19229if test "${cf_cv_need_libm+set}" = set; then 19230 echo $ECHO_N "(cached) $ECHO_C" >&6 19231else 19232 19233 cat >conftest.$ac_ext <<_ACEOF 19234#line 19234 "configure" 19235#include "confdefs.h" 19236 19237 #include <stdio.h> 19238 #include <math.h> 19239 19240int 19241main () 19242{ 19243double x = rand(); printf("result = %g\n", sin(x)) 19244 ; 19245 return 0; 19246} 19247_ACEOF 19248rm -f conftest.$ac_objext conftest$ac_exeext 19249if { (eval echo "$as_me:19249: \"$ac_link\"") >&5 19250 (eval $ac_link) 2>&5 19251 ac_status=$? 19252 echo "$as_me:19252: \$? = $ac_status" >&5 19253 (exit $ac_status); } && 19254 { ac_try='test -s conftest$ac_exeext' 19255 { (eval echo "$as_me:19255: \"$ac_try\"") >&5 19256 (eval $ac_try) 2>&5 19257 ac_status=$? 19258 echo "$as_me:19258: \$? = $ac_status" >&5 19259 (exit $ac_status); }; }; then 19260 cf_cv_need_libm=no 19261else 19262 echo "$as_me: failed program was:" >&5 19263cat conftest.$ac_ext >&5 19264cf_cv_need_libm=yes 19265fi 19266rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19267fi 19268echo "$as_me:19268: result: $cf_cv_need_libm" >&5 19269echo "${ECHO_T}$cf_cv_need_libm" >&6 19270if test "$cf_cv_need_libm" = yes 19271then 19272 19273cf_add_libs="-lm" 19274# Filter out duplicates - this happens with badly-designed ".pc" files... 19275for cf_add_1lib in $LIBS 19276do 19277 for cf_add_2lib in $cf_add_libs 19278 do 19279 if test "x$cf_add_1lib" = "x$cf_add_2lib" 19280 then 19281 cf_add_1lib= 19282 break 19283 fi 19284 done 19285 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 19286done 19287LIBS="$cf_add_libs" 19288 19289fi 19290 19291fi 19292 19293echo "$as_me:19293: checking if you want sixel graphics support" >&5 19294echo $ECHO_N "checking if you want sixel graphics support... $ECHO_C" >&6 19295 19296# Check whether --enable-sixel-graphics or --disable-sixel-graphics was given. 19297if test "${enable_sixel_graphics+set}" = set; then 19298 enableval="$enable_sixel_graphics" 19299 test "$enableval" != yes && enableval=no 19300 if test "$enableval" != "no" ; then 19301 enable_sixel_graphics=yes 19302 else 19303 enable_sixel_graphics=no 19304 fi 19305else 19306 enableval=no 19307 enable_sixel_graphics=no 19308 19309fi; 19310echo "$as_me:19310: result: $enable_sixel_graphics" >&5 19311echo "${ECHO_T}$enable_sixel_graphics" >&6 19312if test "$enable_sixel_graphics" = yes ; then 19313 19314cat >>confdefs.h <<\EOF 19315#define OPT_SIXEL_GRAPHICS 1 19316EOF 19317 19318 EXTRAHDRS="$EXTRAHDRS graphics_sixel.h" 19319 EXTRASRCS="$EXTRASRCS graphics_sixel.c" 19320 EXTRAOBJS="$EXTRAOBJS graphics_sixel.o" 19321fi 19322 19323if test "$enable_regis_graphics" = yes || test "$enable_sixel_graphics" = yes ; then 19324 19325cat >>confdefs.h <<\EOF 19326#define OPT_GRAPHICS 1 19327EOF 19328 19329 EXTRAHDRS="$EXTRAHDRS graphics.h" 19330 EXTRASRCS="$EXTRASRCS graphics.c" 19331 EXTRAOBJS="$EXTRAOBJS graphics.o" 19332fi 19333 19334echo "$as_me:19334: checking if you want VT420 rectangle support" >&5 19335echo $ECHO_N "checking if you want VT420 rectangle support... $ECHO_C" >&6 19336 19337# Check whether --enable-rectangles or --disable-rectangles was given. 19338if test "${enable_rectangles+set}" = set; then 19339 enableval="$enable_rectangles" 19340 test "$enableval" != no && enableval=yes 19341 if test "$enableval" != "yes" ; then 19342 enable_rectangles=no 19343 else 19344 enable_rectangles=yes 19345 fi 19346else 19347 enableval=yes 19348 enable_rectangles=yes 19349 19350fi; 19351echo "$as_me:19351: result: $enable_rectangles" >&5 19352echo "${ECHO_T}$enable_rectangles" >&6 19353if test "$enable_rectangles" = yes ; then 19354 19355cat >>confdefs.h <<\EOF 19356#define OPT_DEC_RECTOPS 1 19357EOF 19358 19359fi 19360 19361echo "$as_me:19361: checking if you want -ziconbeep option" >&5 19362echo $ECHO_N "checking if you want -ziconbeep option... $ECHO_C" >&6 19363 19364# Check whether --enable-ziconbeep or --disable-ziconbeep was given. 19365if test "${enable_ziconbeep+set}" = set; then 19366 enableval="$enable_ziconbeep" 19367 test "$enableval" != no && enableval=yes 19368 if test "$enableval" != "yes" ; then 19369 enable_ziconbeep=no 19370 else 19371 enable_ziconbeep=yes 19372 fi 19373else 19374 enableval=yes 19375 enable_ziconbeep=yes 19376 19377fi; 19378echo "$as_me:19378: result: $enable_ziconbeep" >&5 19379echo "${ECHO_T}$enable_ziconbeep" >&6 19380test "$enable_ziconbeep" = no && 19381cat >>confdefs.h <<\EOF 19382#define OPT_ZICONBEEP 0 19383EOF 19384 19385############################################################################### 19386 19387echo "$as_me:19387: checking if you want debugging traces" >&5 19388echo $ECHO_N "checking if you want debugging traces... $ECHO_C" >&6 19389 19390# Check whether --enable-trace or --disable-trace was given. 19391if test "${enable_trace+set}" = set; then 19392 enableval="$enable_trace" 19393 test "$enableval" != yes && enableval=no 19394 if test "$enableval" != "no" ; then 19395 enable_trace=yes 19396 else 19397 enable_trace=no 19398 fi 19399else 19400 enableval=no 19401 enable_trace=no 19402 19403fi; 19404echo "$as_me:19404: result: $enable_trace" >&5 19405echo "${ECHO_T}$enable_trace" >&6 19406if test "$enable_trace" = yes ; then 19407 19408cat >>confdefs.h <<\EOF 19409#define OPT_TRACE 1 19410EOF 19411 19412 EXTRASRCS="$EXTRASRCS trace.c" 19413 EXTRAOBJS="$EXTRAOBJS trace.o" 19414fi 19415 19416echo "$as_me:19416: checking if you want to use dmalloc for testing" >&5 19417echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6 19418 19419# Check whether --with-dmalloc or --without-dmalloc was given. 19420if test "${with_dmalloc+set}" = set; then 19421 withval="$with_dmalloc" 19422 19423cat >>confdefs.h <<EOF 19424#define USE_DMALLOC 1 19425EOF 19426 19427 : ${with_cflags:=-g} 19428 : ${with_no_leaks:=yes} 19429 with_dmalloc=yes 19430else 19431 with_dmalloc= 19432fi; 19433echo "$as_me:19433: result: ${with_dmalloc:-no}" >&5 19434echo "${ECHO_T}${with_dmalloc:-no}" >&6 19435 19436case .$with_cflags in 19437(.*-g*) 19438 case .$CFLAGS in 19439 (.*-g*) 19440 ;; 19441 (*) 19442 19443cf_fix_cppflags=no 19444cf_new_cflags= 19445cf_new_cppflags= 19446cf_new_extra_cppflags= 19447 19448for cf_add_cflags in -g 19449do 19450case $cf_fix_cppflags in 19451(no) 19452 case $cf_add_cflags in 19453 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 19454 case $cf_add_cflags in 19455 (-D*) 19456 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 19457 19458 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 19459 && test -z "${cf_tst_cflags}" \ 19460 && cf_fix_cppflags=yes 19461 19462 if test $cf_fix_cppflags = yes ; then 19463 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 19464 continue 19465 elif test "${cf_tst_cflags}" = "\"'" ; then 19466 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 19467 continue 19468 fi 19469 ;; 19470 esac 19471 case "$CPPFLAGS" in 19472 (*$cf_add_cflags) 19473 ;; 19474 (*) 19475 case $cf_add_cflags in 19476 (-D*) 19477 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 19478 19479CPPFLAGS=`echo "$CPPFLAGS" | \ 19480 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 19481 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 19482 19483 ;; 19484 esac 19485 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 19486 ;; 19487 esac 19488 ;; 19489 (*) 19490 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 19491 ;; 19492 esac 19493 ;; 19494(yes) 19495 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 19496 19497 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 19498 19499 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 19500 && test -z "${cf_tst_cflags}" \ 19501 && cf_fix_cppflags=no 19502 ;; 19503esac 19504done 19505 19506if test -n "$cf_new_cflags" ; then 19507 19508 CFLAGS="$CFLAGS $cf_new_cflags" 19509fi 19510 19511if test -n "$cf_new_cppflags" ; then 19512 19513 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 19514fi 19515 19516if test -n "$cf_new_extra_cppflags" ; then 19517 19518 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 19519fi 19520 19521 ;; 19522 esac 19523 ;; 19524esac 19525 19526if test "$with_dmalloc" = yes ; then 19527 echo "$as_me:19527: checking for dmalloc.h" >&5 19528echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6 19529if test "${ac_cv_header_dmalloc_h+set}" = set; then 19530 echo $ECHO_N "(cached) $ECHO_C" >&6 19531else 19532 cat >conftest.$ac_ext <<_ACEOF 19533#line 19533 "configure" 19534#include "confdefs.h" 19535#include <dmalloc.h> 19536_ACEOF 19537if { (eval echo "$as_me:19537: \"$ac_cpp conftest.$ac_ext\"") >&5 19538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 19539 ac_status=$? 19540 egrep -v '^ *\+' conftest.er1 >conftest.err 19541 rm -f conftest.er1 19542 cat conftest.err >&5 19543 echo "$as_me:19543: \$? = $ac_status" >&5 19544 (exit $ac_status); } >/dev/null; then 19545 if test -s conftest.err; then 19546 ac_cpp_err=$ac_c_preproc_warn_flag 19547 else 19548 ac_cpp_err= 19549 fi 19550else 19551 ac_cpp_err=yes 19552fi 19553if test -z "$ac_cpp_err"; then 19554 ac_cv_header_dmalloc_h=yes 19555else 19556 echo "$as_me: failed program was:" >&5 19557 cat conftest.$ac_ext >&5 19558 ac_cv_header_dmalloc_h=no 19559fi 19560rm -f conftest.err conftest.$ac_ext 19561fi 19562echo "$as_me:19562: result: $ac_cv_header_dmalloc_h" >&5 19563echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6 19564if test $ac_cv_header_dmalloc_h = yes; then 19565 19566echo "$as_me:19566: checking for dmalloc_debug in -ldmalloc" >&5 19567echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6 19568if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then 19569 echo $ECHO_N "(cached) $ECHO_C" >&6 19570else 19571 ac_check_lib_save_LIBS=$LIBS 19572LIBS="-ldmalloc $LIBS" 19573cat >conftest.$ac_ext <<_ACEOF 19574#line 19574 "configure" 19575#include "confdefs.h" 19576 19577/* Override any gcc2 internal prototype to avoid an error. */ 19578#ifdef __cplusplus 19579extern "C" 19580#endif 19581/* We use char because int might match the return type of a gcc2 19582 builtin and then its argument prototype would still apply. */ 19583char dmalloc_debug (); 19584int 19585main () 19586{ 19587dmalloc_debug (); 19588 ; 19589 return 0; 19590} 19591_ACEOF 19592rm -f conftest.$ac_objext conftest$ac_exeext 19593if { (eval echo "$as_me:19593: \"$ac_link\"") >&5 19594 (eval $ac_link) 2>&5 19595 ac_status=$? 19596 echo "$as_me:19596: \$? = $ac_status" >&5 19597 (exit $ac_status); } && 19598 { ac_try='test -s conftest$ac_exeext' 19599 { (eval echo "$as_me:19599: \"$ac_try\"") >&5 19600 (eval $ac_try) 2>&5 19601 ac_status=$? 19602 echo "$as_me:19602: \$? = $ac_status" >&5 19603 (exit $ac_status); }; }; then 19604 ac_cv_lib_dmalloc_dmalloc_debug=yes 19605else 19606 echo "$as_me: failed program was:" >&5 19607cat conftest.$ac_ext >&5 19608ac_cv_lib_dmalloc_dmalloc_debug=no 19609fi 19610rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19611LIBS=$ac_check_lib_save_LIBS 19612fi 19613echo "$as_me:19613: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5 19614echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6 19615if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then 19616 cat >>confdefs.h <<EOF 19617#define HAVE_LIBDMALLOC 1 19618EOF 19619 19620 LIBS="-ldmalloc $LIBS" 19621 19622fi 19623 19624fi 19625 19626fi 19627 19628echo "$as_me:19628: checking if you want to use dbmalloc for testing" >&5 19629echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6 19630 19631# Check whether --with-dbmalloc or --without-dbmalloc was given. 19632if test "${with_dbmalloc+set}" = set; then 19633 withval="$with_dbmalloc" 19634 19635cat >>confdefs.h <<EOF 19636#define USE_DBMALLOC 1 19637EOF 19638 19639 : ${with_cflags:=-g} 19640 : ${with_no_leaks:=yes} 19641 with_dbmalloc=yes 19642else 19643 with_dbmalloc= 19644fi; 19645echo "$as_me:19645: result: ${with_dbmalloc:-no}" >&5 19646echo "${ECHO_T}${with_dbmalloc:-no}" >&6 19647 19648case .$with_cflags in 19649(.*-g*) 19650 case .$CFLAGS in 19651 (.*-g*) 19652 ;; 19653 (*) 19654 19655cf_fix_cppflags=no 19656cf_new_cflags= 19657cf_new_cppflags= 19658cf_new_extra_cppflags= 19659 19660for cf_add_cflags in -g 19661do 19662case $cf_fix_cppflags in 19663(no) 19664 case $cf_add_cflags in 19665 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 19666 case $cf_add_cflags in 19667 (-D*) 19668 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 19669 19670 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 19671 && test -z "${cf_tst_cflags}" \ 19672 && cf_fix_cppflags=yes 19673 19674 if test $cf_fix_cppflags = yes ; then 19675 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 19676 continue 19677 elif test "${cf_tst_cflags}" = "\"'" ; then 19678 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 19679 continue 19680 fi 19681 ;; 19682 esac 19683 case "$CPPFLAGS" in 19684 (*$cf_add_cflags) 19685 ;; 19686 (*) 19687 case $cf_add_cflags in 19688 (-D*) 19689 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 19690 19691CPPFLAGS=`echo "$CPPFLAGS" | \ 19692 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 19693 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 19694 19695 ;; 19696 esac 19697 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 19698 ;; 19699 esac 19700 ;; 19701 (*) 19702 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 19703 ;; 19704 esac 19705 ;; 19706(yes) 19707 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 19708 19709 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 19710 19711 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 19712 && test -z "${cf_tst_cflags}" \ 19713 && cf_fix_cppflags=no 19714 ;; 19715esac 19716done 19717 19718if test -n "$cf_new_cflags" ; then 19719 19720 CFLAGS="$CFLAGS $cf_new_cflags" 19721fi 19722 19723if test -n "$cf_new_cppflags" ; then 19724 19725 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 19726fi 19727 19728if test -n "$cf_new_extra_cppflags" ; then 19729 19730 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 19731fi 19732 19733 ;; 19734 esac 19735 ;; 19736esac 19737 19738if test "$with_dbmalloc" = yes ; then 19739 echo "$as_me:19739: checking for dbmalloc.h" >&5 19740echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6 19741if test "${ac_cv_header_dbmalloc_h+set}" = set; then 19742 echo $ECHO_N "(cached) $ECHO_C" >&6 19743else 19744 cat >conftest.$ac_ext <<_ACEOF 19745#line 19745 "configure" 19746#include "confdefs.h" 19747#include <dbmalloc.h> 19748_ACEOF 19749if { (eval echo "$as_me:19749: \"$ac_cpp conftest.$ac_ext\"") >&5 19750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 19751 ac_status=$? 19752 egrep -v '^ *\+' conftest.er1 >conftest.err 19753 rm -f conftest.er1 19754 cat conftest.err >&5 19755 echo "$as_me:19755: \$? = $ac_status" >&5 19756 (exit $ac_status); } >/dev/null; then 19757 if test -s conftest.err; then 19758 ac_cpp_err=$ac_c_preproc_warn_flag 19759 else 19760 ac_cpp_err= 19761 fi 19762else 19763 ac_cpp_err=yes 19764fi 19765if test -z "$ac_cpp_err"; then 19766 ac_cv_header_dbmalloc_h=yes 19767else 19768 echo "$as_me: failed program was:" >&5 19769 cat conftest.$ac_ext >&5 19770 ac_cv_header_dbmalloc_h=no 19771fi 19772rm -f conftest.err conftest.$ac_ext 19773fi 19774echo "$as_me:19774: result: $ac_cv_header_dbmalloc_h" >&5 19775echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6 19776if test $ac_cv_header_dbmalloc_h = yes; then 19777 19778echo "$as_me:19778: checking for debug_malloc in -ldbmalloc" >&5 19779echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6 19780if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then 19781 echo $ECHO_N "(cached) $ECHO_C" >&6 19782else 19783 ac_check_lib_save_LIBS=$LIBS 19784LIBS="-ldbmalloc $LIBS" 19785cat >conftest.$ac_ext <<_ACEOF 19786#line 19786 "configure" 19787#include "confdefs.h" 19788 19789/* Override any gcc2 internal prototype to avoid an error. */ 19790#ifdef __cplusplus 19791extern "C" 19792#endif 19793/* We use char because int might match the return type of a gcc2 19794 builtin and then its argument prototype would still apply. */ 19795char debug_malloc (); 19796int 19797main () 19798{ 19799debug_malloc (); 19800 ; 19801 return 0; 19802} 19803_ACEOF 19804rm -f conftest.$ac_objext conftest$ac_exeext 19805if { (eval echo "$as_me:19805: \"$ac_link\"") >&5 19806 (eval $ac_link) 2>&5 19807 ac_status=$? 19808 echo "$as_me:19808: \$? = $ac_status" >&5 19809 (exit $ac_status); } && 19810 { ac_try='test -s conftest$ac_exeext' 19811 { (eval echo "$as_me:19811: \"$ac_try\"") >&5 19812 (eval $ac_try) 2>&5 19813 ac_status=$? 19814 echo "$as_me:19814: \$? = $ac_status" >&5 19815 (exit $ac_status); }; }; then 19816 ac_cv_lib_dbmalloc_debug_malloc=yes 19817else 19818 echo "$as_me: failed program was:" >&5 19819cat conftest.$ac_ext >&5 19820ac_cv_lib_dbmalloc_debug_malloc=no 19821fi 19822rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19823LIBS=$ac_check_lib_save_LIBS 19824fi 19825echo "$as_me:19825: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5 19826echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6 19827if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then 19828 cat >>confdefs.h <<EOF 19829#define HAVE_LIBDBMALLOC 1 19830EOF 19831 19832 LIBS="-ldbmalloc $LIBS" 19833 19834fi 19835 19836fi 19837 19838fi 19839 19840echo "$as_me:19840: checking if you want to use valgrind for testing" >&5 19841echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6 19842 19843# Check whether --with-valgrind or --without-valgrind was given. 19844if test "${with_valgrind+set}" = set; then 19845 withval="$with_valgrind" 19846 19847cat >>confdefs.h <<EOF 19848#define USE_VALGRIND 1 19849EOF 19850 19851 : ${with_cflags:=-g} 19852 : ${with_no_leaks:=yes} 19853 with_valgrind=yes 19854else 19855 with_valgrind= 19856fi; 19857echo "$as_me:19857: result: ${with_valgrind:-no}" >&5 19858echo "${ECHO_T}${with_valgrind:-no}" >&6 19859 19860case .$with_cflags in 19861(.*-g*) 19862 case .$CFLAGS in 19863 (.*-g*) 19864 ;; 19865 (*) 19866 19867cf_fix_cppflags=no 19868cf_new_cflags= 19869cf_new_cppflags= 19870cf_new_extra_cppflags= 19871 19872for cf_add_cflags in -g 19873do 19874case $cf_fix_cppflags in 19875(no) 19876 case $cf_add_cflags in 19877 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 19878 case $cf_add_cflags in 19879 (-D*) 19880 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 19881 19882 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 19883 && test -z "${cf_tst_cflags}" \ 19884 && cf_fix_cppflags=yes 19885 19886 if test $cf_fix_cppflags = yes ; then 19887 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 19888 continue 19889 elif test "${cf_tst_cflags}" = "\"'" ; then 19890 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 19891 continue 19892 fi 19893 ;; 19894 esac 19895 case "$CPPFLAGS" in 19896 (*$cf_add_cflags) 19897 ;; 19898 (*) 19899 case $cf_add_cflags in 19900 (-D*) 19901 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 19902 19903CPPFLAGS=`echo "$CPPFLAGS" | \ 19904 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 19905 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 19906 19907 ;; 19908 esac 19909 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 19910 ;; 19911 esac 19912 ;; 19913 (*) 19914 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 19915 ;; 19916 esac 19917 ;; 19918(yes) 19919 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 19920 19921 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 19922 19923 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 19924 && test -z "${cf_tst_cflags}" \ 19925 && cf_fix_cppflags=no 19926 ;; 19927esac 19928done 19929 19930if test -n "$cf_new_cflags" ; then 19931 19932 CFLAGS="$CFLAGS $cf_new_cflags" 19933fi 19934 19935if test -n "$cf_new_cppflags" ; then 19936 19937 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 19938fi 19939 19940if test -n "$cf_new_extra_cppflags" ; then 19941 19942 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 19943fi 19944 19945 ;; 19946 esac 19947 ;; 19948esac 19949 19950echo "$as_me:19950: checking if you want to perform memory-leak testing" >&5 19951echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6 19952 19953# Check whether --enable-leaks or --disable-leaks was given. 19954if test "${enable_leaks+set}" = set; then 19955 enableval="$enable_leaks" 19956 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi 19957else 19958 : ${with_no_leaks:=no} 19959fi; 19960echo "$as_me:19960: result: $with_no_leaks" >&5 19961echo "${ECHO_T}$with_no_leaks" >&6 19962 19963if test "$with_no_leaks" = yes ; then 19964 19965cat >>confdefs.h <<\EOF 19966#define NO_LEAKS 1 19967EOF 19968 19969cat >>confdefs.h <<\EOF 19970#define YY_NO_LEAKS 1 19971EOF 19972 19973fi 19974 19975echo "$as_me:19975: checking if you want to see long compiling messages" >&5 19976echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6 19977 19978# Check whether --enable-echo or --disable-echo was given. 19979if test "${enable_echo+set}" = set; then 19980 enableval="$enable_echo" 19981 test "$enableval" != no && enableval=yes 19982 if test "$enableval" != "yes" ; then 19983 19984 ECHO_LT='--silent' 19985 ECHO_LD='@echo linking $@;' 19986 RULE_CC='@echo compiling $<' 19987 SHOW_CC='@echo compiling $@' 19988 ECHO_CC='@' 19989 19990 else 19991 19992 ECHO_LT='' 19993 ECHO_LD='' 19994 RULE_CC='' 19995 SHOW_CC='' 19996 ECHO_CC='' 19997 19998 fi 19999else 20000 enableval=yes 20001 20002 ECHO_LT='' 20003 ECHO_LD='' 20004 RULE_CC='' 20005 SHOW_CC='' 20006 ECHO_CC='' 20007 20008fi; 20009echo "$as_me:20009: result: $enableval" >&5 20010echo "${ECHO_T}$enableval" >&6 20011 20012echo "$as_me:20012: checking if you want magic cookie emulation" >&5 20013echo $ECHO_N "checking if you want magic cookie emulation... $ECHO_C" >&6 20014 20015# Check whether --enable-xmc-glitch or --disable-xmc-glitch was given. 20016if test "${enable_xmc_glitch+set}" = set; then 20017 enableval="$enable_xmc_glitch" 20018 test "$enableval" != yes && enableval=no 20019 if test "$enableval" != "no" ; then 20020 enable_xmc=yes 20021 else 20022 enable_xmc=no 20023 fi 20024else 20025 enableval=no 20026 enable_xmc=no 20027 20028fi; 20029echo "$as_me:20029: result: $enable_xmc" >&5 20030echo "${ECHO_T}$enable_xmc" >&6 20031if test "$enable_xmc" = yes ; then 20032 20033cat >>confdefs.h <<\EOF 20034#define OPT_XMC_GLITCH 1 20035EOF 20036 20037 EXTRASRCS="$EXTRASRCS testxmc.c" 20038 EXTRAOBJS="$EXTRAOBJS testxmc.o" 20039fi 20040 20041for ac_func in tigetstr 20042do 20043as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20044echo "$as_me:20044: checking for $ac_func" >&5 20045echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 20046if eval "test \"\${$as_ac_var+set}\" = set"; then 20047 echo $ECHO_N "(cached) $ECHO_C" >&6 20048else 20049 cat >conftest.$ac_ext <<_ACEOF 20050#line 20050 "configure" 20051#include "confdefs.h" 20052/* System header to define __stub macros and hopefully few prototypes, 20053 which can conflict with char $ac_func (); below. */ 20054#include <assert.h> 20055/* Override any gcc2 internal prototype to avoid an error. */ 20056#ifdef __cplusplus 20057extern "C" 20058#endif 20059/* We use char because int might match the return type of a gcc2 20060 builtin and then its argument prototype would still apply. */ 20061char $ac_func (); 20062char (*f) (); 20063 20064int 20065main () 20066{ 20067/* The GNU C library defines this for functions which it implements 20068 to always fail with ENOSYS. Some functions are actually named 20069 something starting with __ and the normal name is an alias. */ 20070#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 20071choke me 20072#else 20073f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 20074#endif 20075 20076 ; 20077 return 0; 20078} 20079_ACEOF 20080rm -f conftest.$ac_objext conftest$ac_exeext 20081if { (eval echo "$as_me:20081: \"$ac_link\"") >&5 20082 (eval $ac_link) 2>&5 20083 ac_status=$? 20084 echo "$as_me:20084: \$? = $ac_status" >&5 20085 (exit $ac_status); } && 20086 { ac_try='test -s conftest$ac_exeext' 20087 { (eval echo "$as_me:20087: \"$ac_try\"") >&5 20088 (eval $ac_try) 2>&5 20089 ac_status=$? 20090 echo "$as_me:20090: \$? = $ac_status" >&5 20091 (exit $ac_status); }; }; then 20092 eval "$as_ac_var=yes" 20093else 20094 echo "$as_me: failed program was:" >&5 20095cat conftest.$ac_ext >&5 20096eval "$as_ac_var=no" 20097fi 20098rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20099fi 20100echo "$as_me:20100: result: `eval echo '${'$as_ac_var'}'`" >&5 20101echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 20102if test `eval echo '${'$as_ac_var'}'` = yes; then 20103 cat >>confdefs.h <<EOF 20104#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20105EOF 20106 20107fi 20108done 20109 20110if test -n "$cf_cv_lib_part_tgetent"; then 20111 20112for ac_func in use_extended_names 20113do 20114as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20115echo "$as_me:20115: checking for $ac_func" >&5 20116echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 20117if eval "test \"\${$as_ac_var+set}\" = set"; then 20118 echo $ECHO_N "(cached) $ECHO_C" >&6 20119else 20120 cat >conftest.$ac_ext <<_ACEOF 20121#line 20121 "configure" 20122#include "confdefs.h" 20123/* System header to define __stub macros and hopefully few prototypes, 20124 which can conflict with char $ac_func (); below. */ 20125#include <assert.h> 20126/* Override any gcc2 internal prototype to avoid an error. */ 20127#ifdef __cplusplus 20128extern "C" 20129#endif 20130/* We use char because int might match the return type of a gcc2 20131 builtin and then its argument prototype would still apply. */ 20132char $ac_func (); 20133char (*f) (); 20134 20135int 20136main () 20137{ 20138/* The GNU C library defines this for functions which it implements 20139 to always fail with ENOSYS. Some functions are actually named 20140 something starting with __ and the normal name is an alias. */ 20141#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 20142choke me 20143#else 20144f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 20145#endif 20146 20147 ; 20148 return 0; 20149} 20150_ACEOF 20151rm -f conftest.$ac_objext conftest$ac_exeext 20152if { (eval echo "$as_me:20152: \"$ac_link\"") >&5 20153 (eval $ac_link) 2>&5 20154 ac_status=$? 20155 echo "$as_me:20155: \$? = $ac_status" >&5 20156 (exit $ac_status); } && 20157 { ac_try='test -s conftest$ac_exeext' 20158 { (eval echo "$as_me:20158: \"$ac_try\"") >&5 20159 (eval $ac_try) 2>&5 20160 ac_status=$? 20161 echo "$as_me:20161: \$? = $ac_status" >&5 20162 (exit $ac_status); }; }; then 20163 eval "$as_ac_var=yes" 20164else 20165 echo "$as_me: failed program was:" >&5 20166cat conftest.$ac_ext >&5 20167eval "$as_ac_var=no" 20168fi 20169rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20170fi 20171echo "$as_me:20171: result: `eval echo '${'$as_ac_var'}'`" >&5 20172echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 20173if test `eval echo '${'$as_ac_var'}'` = yes; then 20174 cat >>confdefs.h <<EOF 20175#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20176EOF 20177 20178fi 20179done 20180 20181fi 20182 20183if test -n "$GCC" ; then 20184echo "$as_me:20184: checking if you want to turn on gcc warnings" >&5 20185echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6 20186 20187# Check whether --enable-warnings or --disable-warnings was given. 20188if test "${enable_warnings+set}" = set; then 20189 enableval="$enable_warnings" 20190 test "$enableval" != yes && enableval=no 20191 if test "$enableval" != "no" ; then 20192 with_warnings=yes 20193 else 20194 with_warnings=no 20195 fi 20196else 20197 enableval=no 20198 with_warnings=no 20199 20200fi; 20201echo "$as_me:20201: result: $with_warnings" >&5 20202echo "${ECHO_T}$with_warnings" >&6 20203if test "$with_warnings" = yes 20204then 20205 20206if test "$GCC" = yes 20207then 20208cat > conftest.i <<EOF 20209#ifndef GCC_PRINTF 20210#define GCC_PRINTF 0 20211#endif 20212#ifndef GCC_SCANF 20213#define GCC_SCANF 0 20214#endif 20215#ifndef GCC_NORETURN 20216#define GCC_NORETURN /* nothing */ 20217#endif 20218#ifndef GCC_UNUSED 20219#define GCC_UNUSED /* nothing */ 20220#endif 20221EOF 20222if test "$GCC" = yes 20223then 20224 { echo "$as_me:20224: checking for $CC __attribute__ directives..." >&5 20225echo "$as_me: checking for $CC __attribute__ directives..." >&6;} 20226cat > conftest.$ac_ext <<EOF 20227#line 20227 "${as_me:-configure}" 20228#include "confdefs.h" 20229#include "conftest.h" 20230#include "conftest.i" 20231#if GCC_PRINTF 20232#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) 20233#else 20234#define GCC_PRINTFLIKE(fmt,var) /*nothing*/ 20235#endif 20236#if GCC_SCANF 20237#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) 20238#else 20239#define GCC_SCANFLIKE(fmt,var) /*nothing*/ 20240#endif 20241extern void wow(char *,...) GCC_SCANFLIKE(1,2); 20242extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN; 20243extern void foo(void) GCC_NORETURN; 20244int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; } 20245EOF 20246 cf_printf_attribute=no 20247 cf_scanf_attribute=no 20248 for cf_attribute in scanf printf unused noreturn 20249 do 20250 20251cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 20252 20253 cf_directive="__attribute__(($cf_attribute))" 20254 echo "checking for $CC $cf_directive" 1>&5 20255 20256 case $cf_attribute in 20257 (printf) 20258 cf_printf_attribute=yes 20259 cat >conftest.h <<EOF 20260#define GCC_$cf_ATTRIBUTE 1 20261EOF 20262 ;; 20263 (scanf) 20264 cf_scanf_attribute=yes 20265 cat >conftest.h <<EOF 20266#define GCC_$cf_ATTRIBUTE 1 20267EOF 20268 ;; 20269 (*) 20270 cat >conftest.h <<EOF 20271#define GCC_$cf_ATTRIBUTE $cf_directive 20272EOF 20273 ;; 20274 esac 20275 20276 if { (eval echo "$as_me:20276: \"$ac_compile\"") >&5 20277 (eval $ac_compile) 2>&5 20278 ac_status=$? 20279 echo "$as_me:20279: \$? = $ac_status" >&5 20280 (exit $ac_status); }; then 20281 test -n "$verbose" && echo "$as_me:20281: result: ... $cf_attribute" >&5 20282echo "${ECHO_T}... $cf_attribute" >&6 20283 cat conftest.h >>confdefs.h 20284 case $cf_attribute in 20285 (noreturn) 20286 20287cat >>confdefs.h <<EOF 20288#define GCC_NORETURN $cf_directive 20289EOF 20290 20291 ;; 20292 (printf) 20293 cf_value='/* nothing */' 20294 if test "$cf_printf_attribute" != no ; then 20295 cf_value='__attribute__((format(printf,fmt,var)))' 20296 20297cat >>confdefs.h <<\EOF 20298#define GCC_PRINTF 1 20299EOF 20300 20301 fi 20302 20303cat >>confdefs.h <<EOF 20304#define GCC_PRINTFLIKE(fmt,var) $cf_value 20305EOF 20306 20307 ;; 20308 (scanf) 20309 cf_value='/* nothing */' 20310 if test "$cf_scanf_attribute" != no ; then 20311 cf_value='__attribute__((format(scanf,fmt,var)))' 20312 20313cat >>confdefs.h <<\EOF 20314#define GCC_SCANF 1 20315EOF 20316 20317 fi 20318 20319cat >>confdefs.h <<EOF 20320#define GCC_SCANFLIKE(fmt,var) $cf_value 20321EOF 20322 20323 ;; 20324 (unused) 20325 20326cat >>confdefs.h <<EOF 20327#define GCC_UNUSED $cf_directive 20328EOF 20329 20330 ;; 20331 esac 20332 fi 20333 done 20334else 20335 fgrep define conftest.i >>confdefs.h 20336fi 20337rm -rf conftest* 20338fi 20339 20340INTEL_COMPILER=no 20341 20342if test "$GCC" = yes ; then 20343 case $host_os in 20344 (linux*|gnu*) 20345 echo "$as_me:20345: checking if this is really Intel C compiler" >&5 20346echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6 20347 cf_save_CFLAGS="$CFLAGS" 20348 CFLAGS="$CFLAGS -no-gcc" 20349 cat >conftest.$ac_ext <<_ACEOF 20350#line 20350 "configure" 20351#include "confdefs.h" 20352 20353int 20354main () 20355{ 20356 20357#ifdef __INTEL_COMPILER 20358#else 20359make an error 20360#endif 20361 20362 ; 20363 return 0; 20364} 20365_ACEOF 20366rm -f conftest.$ac_objext 20367if { (eval echo "$as_me:20367: \"$ac_compile\"") >&5 20368 (eval $ac_compile) 2>&5 20369 ac_status=$? 20370 echo "$as_me:20370: \$? = $ac_status" >&5 20371 (exit $ac_status); } && 20372 { ac_try='test -s conftest.$ac_objext' 20373 { (eval echo "$as_me:20373: \"$ac_try\"") >&5 20374 (eval $ac_try) 2>&5 20375 ac_status=$? 20376 echo "$as_me:20376: \$? = $ac_status" >&5 20377 (exit $ac_status); }; }; then 20378 INTEL_COMPILER=yes 20379cf_save_CFLAGS="$cf_save_CFLAGS -we147" 20380 20381else 20382 echo "$as_me: failed program was:" >&5 20383cat conftest.$ac_ext >&5 20384fi 20385rm -f conftest.$ac_objext conftest.$ac_ext 20386 CFLAGS="$cf_save_CFLAGS" 20387 echo "$as_me:20387: result: $INTEL_COMPILER" >&5 20388echo "${ECHO_T}$INTEL_COMPILER" >&6 20389 ;; 20390 esac 20391fi 20392 20393CLANG_COMPILER=no 20394 20395if test "$GCC" = yes ; then 20396 echo "$as_me:20396: checking if this is really Clang C compiler" >&5 20397echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6 20398 cf_save_CFLAGS="$CFLAGS" 20399 CFLAGS="$CFLAGS -Qunused-arguments" 20400 cat >conftest.$ac_ext <<_ACEOF 20401#line 20401 "configure" 20402#include "confdefs.h" 20403 20404int 20405main () 20406{ 20407 20408#ifdef __clang__ 20409#else 20410make an error 20411#endif 20412 20413 ; 20414 return 0; 20415} 20416_ACEOF 20417rm -f conftest.$ac_objext 20418if { (eval echo "$as_me:20418: \"$ac_compile\"") >&5 20419 (eval $ac_compile) 2>&5 20420 ac_status=$? 20421 echo "$as_me:20421: \$? = $ac_status" >&5 20422 (exit $ac_status); } && 20423 { ac_try='test -s conftest.$ac_objext' 20424 { (eval echo "$as_me:20424: \"$ac_try\"") >&5 20425 (eval $ac_try) 2>&5 20426 ac_status=$? 20427 echo "$as_me:20427: \$? = $ac_status" >&5 20428 (exit $ac_status); }; }; then 20429 CLANG_COMPILER=yes 20430cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments" 20431 20432else 20433 echo "$as_me: failed program was:" >&5 20434cat conftest.$ac_ext >&5 20435fi 20436rm -f conftest.$ac_objext conftest.$ac_ext 20437 CFLAGS="$cf_save_CFLAGS" 20438 echo "$as_me:20438: result: $CLANG_COMPILER" >&5 20439echo "${ECHO_T}$CLANG_COMPILER" >&6 20440fi 20441 20442cat > conftest.$ac_ext <<EOF 20443#line 20443 "${as_me:-configure}" 20444int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; } 20445EOF 20446 20447if test "$INTEL_COMPILER" = yes 20448then 20449# The "-wdXXX" options suppress warnings: 20450# remark #1419: external declaration in primary source file 20451# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem) 20452# remark #1684: conversion from pointer to same-sized integral type (potential portability problem) 20453# remark #193: zero used for undefined preprocessing identifier 20454# remark #593: variable "curs_sb_left_arrow" was set but never used 20455# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits 20456# remark #869: parameter "tw" was never referenced 20457# remark #981: operands are evaluated in unspecified order 20458# warning #279: controlling expression is constant 20459 20460 { echo "$as_me:20460: checking for $CC warning options..." >&5 20461echo "$as_me: checking for $CC warning options..." >&6;} 20462 cf_save_CFLAGS="$CFLAGS" 20463 EXTRA_CFLAGS="-Wall" 20464 for cf_opt in \ 20465 wd1419 \ 20466 wd1683 \ 20467 wd1684 \ 20468 wd193 \ 20469 wd593 \ 20470 wd279 \ 20471 wd810 \ 20472 wd869 \ 20473 wd981 20474 do 20475 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 20476 if { (eval echo "$as_me:20476: \"$ac_compile\"") >&5 20477 (eval $ac_compile) 2>&5 20478 ac_status=$? 20479 echo "$as_me:20479: \$? = $ac_status" >&5 20480 (exit $ac_status); }; then 20481 test -n "$verbose" && echo "$as_me:20481: result: ... -$cf_opt" >&5 20482echo "${ECHO_T}... -$cf_opt" >&6 20483 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 20484 fi 20485 done 20486 CFLAGS="$cf_save_CFLAGS" 20487 20488elif test "$GCC" = yes 20489then 20490 { echo "$as_me:20490: checking for $CC warning options..." >&5 20491echo "$as_me: checking for $CC warning options..." >&6;} 20492 cf_save_CFLAGS="$CFLAGS" 20493 EXTRA_CFLAGS= 20494 cf_warn_CONST="" 20495 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings" 20496 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs" 20497 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings= 20498 for cf_opt in W Wall \ 20499 Wbad-function-cast \ 20500 Wcast-align \ 20501 Wcast-qual \ 20502 Wdeclaration-after-statement \ 20503 Wextra \ 20504 Winline \ 20505 Wmissing-declarations \ 20506 Wmissing-prototypes \ 20507 Wnested-externs \ 20508 Wpointer-arith \ 20509 Wshadow \ 20510 Wstrict-prototypes \ 20511 Wundef $cf_gcc_warnings $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum 20512 do 20513 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 20514 if { (eval echo "$as_me:20514: \"$ac_compile\"") >&5 20515 (eval $ac_compile) 2>&5 20516 ac_status=$? 20517 echo "$as_me:20517: \$? = $ac_status" >&5 20518 (exit $ac_status); }; then 20519 test -n "$verbose" && echo "$as_me:20519: result: ... -$cf_opt" >&5 20520echo "${ECHO_T}... -$cf_opt" >&6 20521 case $cf_opt in 20522 (Wcast-qual) 20523 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES" 20524 ;; 20525 (Winline) 20526 case $GCC_VERSION in 20527 ([34].*) 20528 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 20529 20530echo "${as_me:-configure}:20530: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 20531 20532 continue;; 20533 esac 20534 ;; 20535 (Wpointer-arith) 20536 case $GCC_VERSION in 20537 ([12].*) 20538 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 20539 20540echo "${as_me:-configure}:20540: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 20541 20542 continue;; 20543 esac 20544 ;; 20545 esac 20546 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 20547 fi 20548 done 20549 CFLAGS="$cf_save_CFLAGS" 20550fi 20551rm -rf conftest* 20552 20553fi 20554fi 20555 20556test "$disable_setuid" = yes && 20557cat >>confdefs.h <<\EOF 20558#define DISABLE_SETUID 1 20559EOF 20560 20561test "$disable_setgid" = yes && 20562cat >>confdefs.h <<\EOF 20563#define DISABLE_SETGID 1 20564EOF 20565 20566if test $disable_setuid = yes ; then 20567 MAY_SETUID="#" 20568 NOT_SETUID= 20569elif test $disable_setgid = yes ; then 20570 MAY_SETUID="#" 20571 NOT_SETUID= 20572else 20573 MAY_SETUID= 20574 NOT_SETUID="#" 20575fi 20576 20577### remove from CPPFLAGS the optional features we define in xtermcfg.h 20578### or other conflicting symbols that may be defined via imake: 20579for cf_def in \ 20580 __STDC__ \ 20581 ALLOWLOGGING \ 20582 ALLOWLOGFILEEXEC \ 20583 OPT_LUIT_PROG \ 20584 OPT_WIDE_CHARS \ 20585 SCROLLBAR_RIGHT \ 20586 USE_TTY_GROUP \ 20587 USE_UTEMPTER \ 20588 XRENDERFONT 20589do 20590 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-D$cf_def//` 20591done 20592 20593echo "$as_me:20593: checking if filesystem supports mixed-case filenames" >&5 20594echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6 20595if test "${cf_cv_mixedcase+set}" = set; then 20596 echo $ECHO_N "(cached) $ECHO_C" >&6 20597else 20598 20599if test "$cross_compiling" = yes ; then 20600 case $target_alias in 20601 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*) 20602 cf_cv_mixedcase=no 20603 ;; 20604 (*) 20605 cf_cv_mixedcase=yes 20606 ;; 20607 esac 20608else 20609 rm -f conftest CONFTEST 20610 echo test >conftest 20611 if test -f CONFTEST ; then 20612 cf_cv_mixedcase=no 20613 else 20614 cf_cv_mixedcase=yes 20615 fi 20616 rm -f conftest CONFTEST 20617fi 20618 20619fi 20620echo "$as_me:20620: result: $cf_cv_mixedcase" >&5 20621echo "${ECHO_T}$cf_cv_mixedcase" >&6 20622test "$cf_cv_mixedcase" = yes && 20623cat >>confdefs.h <<\EOF 20624#define MIXEDCASE_FILENAMES 1 20625EOF 20626 20627for ac_prog in exctags ctags 20628do 20629 # Extract the first word of "$ac_prog", so it can be a program name with args. 20630set dummy $ac_prog; ac_word=$2 20631echo "$as_me:20631: checking for $ac_word" >&5 20632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20633if test "${ac_cv_prog_CTAGS+set}" = set; then 20634 echo $ECHO_N "(cached) $ECHO_C" >&6 20635else 20636 if test -n "$CTAGS"; then 20637 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test. 20638else 20639 ac_save_IFS=$IFS; IFS=$ac_path_separator 20640ac_dummy="$PATH" 20641for ac_dir in $ac_dummy; do 20642 IFS=$ac_save_IFS 20643 test -z "$ac_dir" && ac_dir=. 20644 $as_executable_p "$ac_dir/$ac_word" || continue 20645ac_cv_prog_CTAGS="$ac_prog" 20646echo "$as_me:20646: found $ac_dir/$ac_word" >&5 20647break 20648done 20649 20650fi 20651fi 20652CTAGS=$ac_cv_prog_CTAGS 20653if test -n "$CTAGS"; then 20654 echo "$as_me:20654: result: $CTAGS" >&5 20655echo "${ECHO_T}$CTAGS" >&6 20656else 20657 echo "$as_me:20657: result: no" >&5 20658echo "${ECHO_T}no" >&6 20659fi 20660 20661 test -n "$CTAGS" && break 20662done 20663 20664for ac_prog in exetags etags 20665do 20666 # Extract the first word of "$ac_prog", so it can be a program name with args. 20667set dummy $ac_prog; ac_word=$2 20668echo "$as_me:20668: checking for $ac_word" >&5 20669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20670if test "${ac_cv_prog_ETAGS+set}" = set; then 20671 echo $ECHO_N "(cached) $ECHO_C" >&6 20672else 20673 if test -n "$ETAGS"; then 20674 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test. 20675else 20676 ac_save_IFS=$IFS; IFS=$ac_path_separator 20677ac_dummy="$PATH" 20678for ac_dir in $ac_dummy; do 20679 IFS=$ac_save_IFS 20680 test -z "$ac_dir" && ac_dir=. 20681 $as_executable_p "$ac_dir/$ac_word" || continue 20682ac_cv_prog_ETAGS="$ac_prog" 20683echo "$as_me:20683: found $ac_dir/$ac_word" >&5 20684break 20685done 20686 20687fi 20688fi 20689ETAGS=$ac_cv_prog_ETAGS 20690if test -n "$ETAGS"; then 20691 echo "$as_me:20691: result: $ETAGS" >&5 20692echo "${ECHO_T}$ETAGS" >&6 20693else 20694 echo "$as_me:20694: result: no" >&5 20695echo "${ECHO_T}no" >&6 20696fi 20697 20698 test -n "$ETAGS" && break 20699done 20700 20701# Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args. 20702set dummy ${CTAGS:-ctags}; ac_word=$2 20703echo "$as_me:20703: checking for $ac_word" >&5 20704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20705if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then 20706 echo $ECHO_N "(cached) $ECHO_C" >&6 20707else 20708 if test -n "$MAKE_LOWER_TAGS"; then 20709 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test. 20710else 20711 ac_save_IFS=$IFS; IFS=$ac_path_separator 20712ac_dummy="$PATH" 20713for ac_dir in $ac_dummy; do 20714 IFS=$ac_save_IFS 20715 test -z "$ac_dir" && ac_dir=. 20716 $as_executable_p "$ac_dir/$ac_word" || continue 20717ac_cv_prog_MAKE_LOWER_TAGS="yes" 20718echo "$as_me:20718: found $ac_dir/$ac_word" >&5 20719break 20720done 20721 20722 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no" 20723fi 20724fi 20725MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS 20726if test -n "$MAKE_LOWER_TAGS"; then 20727 echo "$as_me:20727: result: $MAKE_LOWER_TAGS" >&5 20728echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6 20729else 20730 echo "$as_me:20730: result: no" >&5 20731echo "${ECHO_T}no" >&6 20732fi 20733 20734if test "$cf_cv_mixedcase" = yes ; then 20735 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args. 20736set dummy ${ETAGS:-etags}; ac_word=$2 20737echo "$as_me:20737: checking for $ac_word" >&5 20738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20739if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then 20740 echo $ECHO_N "(cached) $ECHO_C" >&6 20741else 20742 if test -n "$MAKE_UPPER_TAGS"; then 20743 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test. 20744else 20745 ac_save_IFS=$IFS; IFS=$ac_path_separator 20746ac_dummy="$PATH" 20747for ac_dir in $ac_dummy; do 20748 IFS=$ac_save_IFS 20749 test -z "$ac_dir" && ac_dir=. 20750 $as_executable_p "$ac_dir/$ac_word" || continue 20751ac_cv_prog_MAKE_UPPER_TAGS="yes" 20752echo "$as_me:20752: found $ac_dir/$ac_word" >&5 20753break 20754done 20755 20756 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no" 20757fi 20758fi 20759MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS 20760if test -n "$MAKE_UPPER_TAGS"; then 20761 echo "$as_me:20761: result: $MAKE_UPPER_TAGS" >&5 20762echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6 20763else 20764 echo "$as_me:20764: result: no" >&5 20765echo "${ECHO_T}no" >&6 20766fi 20767 20768else 20769 MAKE_UPPER_TAGS=no 20770fi 20771 20772if test "$MAKE_UPPER_TAGS" = yes ; then 20773 MAKE_UPPER_TAGS= 20774else 20775 MAKE_UPPER_TAGS="#" 20776fi 20777 20778if test "$MAKE_LOWER_TAGS" = yes ; then 20779 MAKE_LOWER_TAGS= 20780else 20781 MAKE_LOWER_TAGS="#" 20782fi 20783 20784LD_RPATH_OPT= 20785echo "$as_me:20785: checking for an rpath option" >&5 20786echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6 20787case $cf_cv_system_name in 20788(irix*) 20789 if test "$GCC" = yes; then 20790 LD_RPATH_OPT="-Wl,-rpath," 20791 else 20792 LD_RPATH_OPT="-rpath " 20793 fi 20794 ;; 20795(linux*|gnu*|k*bsd*-gnu|freebsd*) 20796 LD_RPATH_OPT="-Wl,-rpath," 20797 ;; 20798(openbsd[2-9].*|mirbsd*) 20799 LD_RPATH_OPT="-Wl,-rpath," 20800 ;; 20801(dragonfly*) 20802 LD_RPATH_OPT="-rpath " 20803 ;; 20804(netbsd*) 20805 LD_RPATH_OPT="-Wl,-rpath," 20806 ;; 20807(osf*|mls+*) 20808 LD_RPATH_OPT="-rpath " 20809 ;; 20810(solaris2*) 20811 LD_RPATH_OPT="-R" 20812 ;; 20813(*) 20814 ;; 20815esac 20816echo "$as_me:20816: result: $LD_RPATH_OPT" >&5 20817echo "${ECHO_T}$LD_RPATH_OPT" >&6 20818 20819case "x$LD_RPATH_OPT" in 20820(x-R*) 20821 echo "$as_me:20821: checking if we need a space after rpath option" >&5 20822echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6 20823 cf_save_LIBS="$LIBS" 20824 20825cf_add_libs="${LD_RPATH_OPT}$libdir" 20826# Filter out duplicates - this happens with badly-designed ".pc" files... 20827for cf_add_1lib in $LIBS 20828do 20829 for cf_add_2lib in $cf_add_libs 20830 do 20831 if test "x$cf_add_1lib" = "x$cf_add_2lib" 20832 then 20833 cf_add_1lib= 20834 break 20835 fi 20836 done 20837 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 20838done 20839LIBS="$cf_add_libs" 20840 20841 cat >conftest.$ac_ext <<_ACEOF 20842#line 20842 "configure" 20843#include "confdefs.h" 20844 20845int 20846main () 20847{ 20848 20849 ; 20850 return 0; 20851} 20852_ACEOF 20853rm -f conftest.$ac_objext conftest$ac_exeext 20854if { (eval echo "$as_me:20854: \"$ac_link\"") >&5 20855 (eval $ac_link) 2>&5 20856 ac_status=$? 20857 echo "$as_me:20857: \$? = $ac_status" >&5 20858 (exit $ac_status); } && 20859 { ac_try='test -s conftest$ac_exeext' 20860 { (eval echo "$as_me:20860: \"$ac_try\"") >&5 20861 (eval $ac_try) 2>&5 20862 ac_status=$? 20863 echo "$as_me:20863: \$? = $ac_status" >&5 20864 (exit $ac_status); }; }; then 20865 cf_rpath_space=no 20866else 20867 echo "$as_me: failed program was:" >&5 20868cat conftest.$ac_ext >&5 20869cf_rpath_space=yes 20870fi 20871rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20872 LIBS="$cf_save_LIBS" 20873 echo "$as_me:20873: result: $cf_rpath_space" >&5 20874echo "${ECHO_T}$cf_rpath_space" >&6 20875 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT " 20876 ;; 20877esac 20878 20879echo "$as_me:20879: checking if rpath-hack should be disabled" >&5 20880echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6 20881 20882# Check whether --enable-rpath-hack or --disable-rpath-hack was given. 20883if test "${enable_rpath_hack+set}" = set; then 20884 enableval="$enable_rpath_hack" 20885 test "$enableval" != no && enableval=yes 20886 if test "$enableval" != "yes" ; then 20887 cf_disable_rpath_hack=yes 20888 else 20889 cf_disable_rpath_hack=no 20890 fi 20891else 20892 enableval=yes 20893 cf_disable_rpath_hack=no 20894 20895fi; 20896echo "$as_me:20896: result: $cf_disable_rpath_hack" >&5 20897echo "${ECHO_T}$cf_disable_rpath_hack" >&6 20898if test "$cf_disable_rpath_hack" = no ; then 20899 20900echo "$as_me:20900: checking for updated LDFLAGS" >&5 20901echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6 20902if test -n "$LD_RPATH_OPT" ; then 20903 echo "$as_me:20903: result: maybe" >&5 20904echo "${ECHO_T}maybe" >&6 20905 20906 for ac_prog in ldd 20907do 20908 # Extract the first word of "$ac_prog", so it can be a program name with args. 20909set dummy $ac_prog; ac_word=$2 20910echo "$as_me:20910: checking for $ac_word" >&5 20911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20912if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then 20913 echo $ECHO_N "(cached) $ECHO_C" >&6 20914else 20915 if test -n "$cf_ldd_prog"; then 20916 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test. 20917else 20918 ac_save_IFS=$IFS; IFS=$ac_path_separator 20919ac_dummy="$PATH" 20920for ac_dir in $ac_dummy; do 20921 IFS=$ac_save_IFS 20922 test -z "$ac_dir" && ac_dir=. 20923 $as_executable_p "$ac_dir/$ac_word" || continue 20924ac_cv_prog_cf_ldd_prog="$ac_prog" 20925echo "$as_me:20925: found $ac_dir/$ac_word" >&5 20926break 20927done 20928 20929fi 20930fi 20931cf_ldd_prog=$ac_cv_prog_cf_ldd_prog 20932if test -n "$cf_ldd_prog"; then 20933 echo "$as_me:20933: result: $cf_ldd_prog" >&5 20934echo "${ECHO_T}$cf_ldd_prog" >&6 20935else 20936 echo "$as_me:20936: result: no" >&5 20937echo "${ECHO_T}no" >&6 20938fi 20939 20940 test -n "$cf_ldd_prog" && break 20941done 20942test -n "$cf_ldd_prog" || cf_ldd_prog="no" 20943 20944 cf_rpath_list="/usr/lib /lib" 20945 if test "$cf_ldd_prog" != no 20946 then 20947 cf_rpath_oops= 20948 20949cat >conftest.$ac_ext <<_ACEOF 20950#line 20950 "configure" 20951#include "confdefs.h" 20952#include <stdio.h> 20953int 20954main () 20955{ 20956printf("Hello"); 20957 ; 20958 return 0; 20959} 20960_ACEOF 20961rm -f conftest.$ac_objext conftest$ac_exeext 20962if { (eval echo "$as_me:20962: \"$ac_link\"") >&5 20963 (eval $ac_link) 2>&5 20964 ac_status=$? 20965 echo "$as_me:20965: \$? = $ac_status" >&5 20966 (exit $ac_status); } && 20967 { ac_try='test -s conftest$ac_exeext' 20968 { (eval echo "$as_me:20968: \"$ac_try\"") >&5 20969 (eval $ac_try) 2>&5 20970 ac_status=$? 20971 echo "$as_me:20971: \$? = $ac_status" >&5 20972 (exit $ac_status); }; }; then 20973 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq` 20974 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq` 20975else 20976 echo "$as_me: failed program was:" >&5 20977cat conftest.$ac_ext >&5 20978fi 20979rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20980 20981 # If we passed the link-test, but get a "not found" on a given library, 20982 # this could be due to inept reconfiguration of gcc to make it only 20983 # partly honor /usr/local/lib (or whatever). Sometimes this behavior 20984 # is intentional, e.g., installing gcc in /usr/bin and suppressing the 20985 # /usr/local libraries. 20986 if test -n "$cf_rpath_oops" 20987 then 20988 for cf_rpath_src in $cf_rpath_oops 20989 do 20990 for cf_rpath_dir in \ 20991 /usr/local \ 20992 /usr/pkg \ 20993 /opt/sfw 20994 do 20995 if test -f $cf_rpath_dir/lib/$cf_rpath_src 20996 then 20997 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6 20998 20999echo "${as_me:-configure}:20999: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5 21000 21001 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib" 21002 break 21003 fi 21004 done 21005 done 21006 fi 21007 fi 21008 21009 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6 21010 21011echo "${as_me:-configure}:21011: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5 21012 21013test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6 21014 21015echo "${as_me:-configure}:21015: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5 21016 21017cf_rpath_dst= 21018for cf_rpath_src in $LDFLAGS 21019do 21020 case $cf_rpath_src in 21021 (-L*) 21022 21023 # check if this refers to a directory which we will ignore 21024 cf_rpath_skip=no 21025 if test -n "$cf_rpath_list" 21026 then 21027 for cf_rpath_item in $cf_rpath_list 21028 do 21029 if test "x$cf_rpath_src" = "x-L$cf_rpath_item" 21030 then 21031 cf_rpath_skip=yes 21032 break 21033 fi 21034 done 21035 fi 21036 21037 if test "$cf_rpath_skip" = no 21038 then 21039 # transform the option 21040 if test "$LD_RPATH_OPT" = "-R " ; then 21041 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"` 21042 else 21043 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"` 21044 fi 21045 21046 # if we have not already added this, add it now 21047 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"` 21048 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS" 21049 then 21050 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6 21051 21052echo "${as_me:-configure}:21052: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5 21053 21054 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS" 21055 fi 21056 fi 21057 ;; 21058 esac 21059 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src" 21060done 21061LDFLAGS=$cf_rpath_dst 21062 21063test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6 21064 21065echo "${as_me:-configure}:21065: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5 21066 21067test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6 21068 21069echo "${as_me:-configure}:21069: testing ...checking LIBS $LIBS ..." 1>&5 21070 21071cf_rpath_dst= 21072for cf_rpath_src in $LIBS 21073do 21074 case $cf_rpath_src in 21075 (-L*) 21076 21077 # check if this refers to a directory which we will ignore 21078 cf_rpath_skip=no 21079 if test -n "$cf_rpath_list" 21080 then 21081 for cf_rpath_item in $cf_rpath_list 21082 do 21083 if test "x$cf_rpath_src" = "x-L$cf_rpath_item" 21084 then 21085 cf_rpath_skip=yes 21086 break 21087 fi 21088 done 21089 fi 21090 21091 if test "$cf_rpath_skip" = no 21092 then 21093 # transform the option 21094 if test "$LD_RPATH_OPT" = "-R " ; then 21095 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"` 21096 else 21097 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"` 21098 fi 21099 21100 # if we have not already added this, add it now 21101 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"` 21102 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS" 21103 then 21104 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6 21105 21106echo "${as_me:-configure}:21106: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5 21107 21108 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS" 21109 fi 21110 fi 21111 ;; 21112 esac 21113 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src" 21114done 21115LIBS=$cf_rpath_dst 21116 21117test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6 21118 21119echo "${as_me:-configure}:21119: testing ...checked LIBS $LIBS ..." 1>&5 21120 21121 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6 21122 21123echo "${as_me:-configure}:21123: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5 21124 21125else 21126 echo "$as_me:21126: result: no" >&5 21127echo "${ECHO_T}no" >&6 21128fi 21129 21130fi 21131 21132# Force plink.sh to not trim pcre's libraries, which have the same symbol 21133# names as the system regexp. 21134if test "$with_pcre" != no 21135then 21136 LIBS=`echo "$LIBS" | sed -e 's/-lpcre/-kpcre/g'` 21137fi 21138 21139### output xtermcfg.h, etc 21140ac_config_files="$ac_config_files Makefile df-install minstall:minstall.in" 21141 21142cat >confcache <<\_ACEOF 21143# This file is a shell script that caches the results of configure 21144# tests run on this system so they can be shared between configure 21145# scripts and configure runs, see configure's option --config-cache. 21146# It is not useful on other systems. If it contains results you don't 21147# want to keep, you may remove or edit it. 21148# 21149# config.status only pays attention to the cache file if you give it 21150# the --recheck option to rerun configure. 21151# 21152# `ac_cv_env_foo' variables (set or unset) will be overriden when 21153# loading this file, other *unset* `ac_cv_foo' will be assigned the 21154# following values. 21155 21156_ACEOF 21157 21158# The following way of writing the cache mishandles newlines in values, 21159# but we know of no workaround that is simple, portable, and efficient. 21160# So, don't put newlines in cache variables' values. 21161# Ultrix sh set writes to stderr and can't be redirected directly, 21162# and sets the high bit in the cache file unless we assign to the vars. 21163{ 21164 (set) 2>&1 | 21165 case `(ac_space=' '; set | grep ac_space) 2>&1` in 21166 *ac_space=\ *) 21167 # `set' does not quote correctly, so add quotes (double-quote 21168 # substitution turns \\\\ into \\, and sed turns \\ into \). 21169 sed -n \ 21170 "s/'/'\\\\''/g; 21171 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21172 ;; 21173 *) 21174 # `set' quotes correctly as required by POSIX, so do not add quotes. 21175 sed -n \ 21176 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 21177 ;; 21178 esac; 21179} | 21180 sed ' 21181 t clear 21182 : clear 21183 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21184 t end 21185 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21186 : end' >>confcache 21187if cmp -s $cache_file confcache; then :; else 21188 if test -w $cache_file; then 21189 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 21190 cat confcache >$cache_file 21191 else 21192 echo "not updating unwritable cache $cache_file" 21193 fi 21194fi 21195rm -f confcache 21196 21197test "x$prefix" = xNONE && prefix=$ac_default_prefix 21198# Let make expand exec_prefix. 21199test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21200 21201# VPATH may cause trouble with some makes, so we remove $(srcdir), 21202# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 21203# trailing colons and then remove the whole line if VPATH becomes empty 21204# (actually we leave an empty line to preserve line numbers). 21205if test "x$srcdir" = x.; then 21206 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21207s/:*\$(srcdir):*/:/; 21208s/:*\${srcdir}:*/:/; 21209s/:*@srcdir@:*/:/; 21210s/^\([^=]*=[ ]*\):*/\1/; 21211s/:*$//; 21212s/^[^=]*=[ ]*$//; 21213}' 21214fi 21215 21216DEFS=-DHAVE_CONFIG_H 21217 21218: ${CONFIG_STATUS=./config.status} 21219ac_clean_files_save=$ac_clean_files 21220ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21221{ echo "$as_me:21221: creating $CONFIG_STATUS" >&5 21222echo "$as_me: creating $CONFIG_STATUS" >&6;} 21223cat >$CONFIG_STATUS <<_ACEOF 21224#! $SHELL 21225# Generated automatically by configure. 21226# Run this file to recreate the current configuration. 21227# Compiler output produced by configure, useful for debugging 21228# configure, is in config.log if it exists. 21229 21230debug=false 21231SHELL=\${CONFIG_SHELL-$SHELL} 21232ac_cs_invocation="\$0 \$@" 21233 21234_ACEOF 21235 21236cat >>$CONFIG_STATUS <<\_ACEOF 21237# Be Bourne compatible 21238if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21239 emulate sh 21240 NULLCMD=: 21241elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 21242 set -o posix 21243fi 21244 21245# Name of the executable. 21246as_me=`echo "$0" |sed 's,.*[\\/],,'` 21247 21248if expr a : '\(a\)' >/dev/null 2>&1; then 21249 as_expr=expr 21250else 21251 as_expr=false 21252fi 21253 21254rm -f conf$$ conf$$.exe conf$$.file 21255echo >conf$$.file 21256if ln -s conf$$.file conf$$ 2>/dev/null; then 21257 # We could just check for DJGPP; but this test a) works b) is more generic 21258 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 21259 if test -f conf$$.exe; then 21260 # Don't use ln at all; we don't have any links 21261 as_ln_s='cp -p' 21262 else 21263 as_ln_s='ln -s' 21264 fi 21265elif ln conf$$.file conf$$ 2>/dev/null; then 21266 as_ln_s=ln 21267else 21268 as_ln_s='cp -p' 21269fi 21270rm -f conf$$ conf$$.exe conf$$.file 21271 21272as_executable_p="test -f" 21273 21274# Support unset when possible. 21275if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 21276 as_unset=unset 21277else 21278 as_unset=false 21279fi 21280 21281# NLS nuisances. 21282$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 21283$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 21284$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 21285$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 21286$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 21287$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 21288$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 21289$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 21290 21291# IFS 21292# We need space, tab and new line, in precisely that order. 21293as_nl=' 21294' 21295IFS=" $as_nl" 21296 21297# CDPATH. 21298$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 21299 21300exec 6>&1 21301 21302_ACEOF 21303 21304# Files that config.status was made for. 21305if test -n "$ac_config_files"; then 21306 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 21307fi 21308 21309if test -n "$ac_config_headers"; then 21310 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 21311fi 21312 21313if test -n "$ac_config_links"; then 21314 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 21315fi 21316 21317if test -n "$ac_config_commands"; then 21318 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 21319fi 21320 21321cat >>$CONFIG_STATUS <<\EOF 21322 21323ac_cs_usage="\ 21324\`$as_me' instantiates files from templates according to the 21325current configuration. 21326 21327Usage: $0 [OPTIONS] [FILE]... 21328 21329 -h, --help print this help, then exit 21330 -V, --version print version number, then exit 21331 -d, --debug don't remove temporary files 21332 --recheck update $as_me by reconfiguring in the same conditions 21333 --file=FILE[:TEMPLATE] 21334 instantiate the configuration file FILE 21335 --header=FILE[:TEMPLATE] 21336 instantiate the configuration header FILE 21337 21338Configuration files: 21339$config_files 21340 21341Configuration headers: 21342$config_headers 21343 21344Report bugs to <dickey@invisible-island.net>." 21345EOF 21346 21347cat >>$CONFIG_STATUS <<EOF 21348ac_cs_version="\\ 21349config.status 21350configured by $0, generated by GNU Autoconf 2.52.20150926, 21351 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 21352 21353Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 21354Free Software Foundation, Inc. 21355This config.status script is free software; the Free Software Foundation 21356gives unlimited permission to copy, distribute and modify it." 21357srcdir=$srcdir 21358INSTALL="$INSTALL" 21359EOF 21360 21361cat >>$CONFIG_STATUS <<\EOF 21362# If no file are specified by the user, then we need to provide default 21363# value. By we need to know if files were specified by the user. 21364ac_need_defaults=: 21365while test $# != 0 21366do 21367 case $1 in 21368 --*=*) 21369 ac_option=`expr "x$1" : 'x\([^=]*\)='` 21370 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 21371 shift 21372 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 21373 shift 21374 ;; 21375 -*);; 21376 *) # This is not an option, so the user has probably given explicit 21377 # arguments. 21378 ac_need_defaults=false;; 21379 esac 21380 21381 case $1 in 21382 # Handling of the options. 21383EOF 21384cat >>$CONFIG_STATUS <<EOF 21385 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21386 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 21387 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 21388EOF 21389cat >>$CONFIG_STATUS <<\EOF 21390 --version | --vers* | -V ) 21391 echo "$ac_cs_version"; exit 0 ;; 21392 --he | --h) 21393 # Conflict between --help and --header 21394 { { echo "$as_me:21394: error: ambiguous option: $1 21395Try \`$0 --help' for more information." >&5 21396echo "$as_me: error: ambiguous option: $1 21397Try \`$0 --help' for more information." >&2;} 21398 { (exit 1); exit 1; }; };; 21399 --help | --hel | -h ) 21400 echo "$ac_cs_usage"; exit 0 ;; 21401 --debug | --d* | -d ) 21402 debug=: ;; 21403 --file | --fil | --fi | --f ) 21404 shift 21405 CONFIG_FILES="$CONFIG_FILES $1" 21406 ac_need_defaults=false;; 21407 --header | --heade | --head | --hea ) 21408 shift 21409 CONFIG_HEADERS="$CONFIG_HEADERS $1" 21410 ac_need_defaults=false;; 21411 21412 # This is an error. 21413 -*) { { echo "$as_me:21413: error: unrecognized option: $1 21414Try \`$0 --help' for more information." >&5 21415echo "$as_me: error: unrecognized option: $1 21416Try \`$0 --help' for more information." >&2;} 21417 { (exit 1); exit 1; }; } ;; 21418 21419 *) ac_config_targets="$ac_config_targets $1" ;; 21420 21421 esac 21422 shift 21423done 21424 21425exec 5>>config.log 21426cat >&5 << _ACEOF 21427 21428## ----------------------- ## 21429## Running config.status. ## 21430## ----------------------- ## 21431 21432This file was extended by $as_me 2.52.20150926, executed with 21433 CONFIG_FILES = $CONFIG_FILES 21434 CONFIG_HEADERS = $CONFIG_HEADERS 21435 CONFIG_LINKS = $CONFIG_LINKS 21436 CONFIG_COMMANDS = $CONFIG_COMMANDS 21437 > $ac_cs_invocation 21438on `(hostname || uname -n) 2>/dev/null | sed 1q` 21439 21440_ACEOF 21441EOF 21442 21443cat >>$CONFIG_STATUS <<\EOF 21444for ac_config_target in $ac_config_targets 21445do 21446 case "$ac_config_target" in 21447 # Handling of arguments. 21448 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21449 "df-install" ) CONFIG_FILES="$CONFIG_FILES df-install" ;; 21450 "minstall" ) CONFIG_FILES="$CONFIG_FILES minstall:minstall.in" ;; 21451 "xtermcfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS xtermcfg.h:xtermcfg.hin" ;; 21452 *) { { echo "$as_me:21452: error: invalid argument: $ac_config_target" >&5 21453echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21454 { (exit 1); exit 1; }; };; 21455 esac 21456done 21457 21458# If the user did not use the arguments to specify the items to instantiate, 21459# then the envvar interface is used. Set only those that are not. 21460# We use the long form for the default assignment because of an extremely 21461# bizarre bug on SunOS 4.1.3. 21462if $ac_need_defaults; then 21463 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21464 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21465fi 21466 21467# Create a temporary directory, and hook for its removal unless debugging. 21468$debug || 21469{ 21470 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 21471 trap '{ (exit 1); exit 1; }' 1 2 13 15 21472} 21473 21474# Create a (secure) tmp directory for tmp files. 21475: ${TMPDIR=/tmp} 21476{ 21477 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 21478 test -n "$tmp" && test -d "$tmp" 21479} || 21480{ 21481 tmp=$TMPDIR/cs$$-$RANDOM 21482 (umask 077 && mkdir $tmp) 21483} || 21484{ 21485 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 21486 { (exit 1); exit 1; } 21487} 21488 21489EOF 21490 21491cat >>$CONFIG_STATUS <<EOF 21492 21493# 21494# CONFIG_FILES section. 21495# 21496 21497# No need to generate the scripts if there are no CONFIG_FILES. 21498# This happens for instance when ./config.status config.h 21499if test -n "\$CONFIG_FILES"; then 21500 # Protect against being on the right side of a sed subst in config.status. 21501 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 21502 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 21503s,@SHELL@,$SHELL,;t t 21504s,@exec_prefix@,$exec_prefix,;t t 21505s,@prefix@,$prefix,;t t 21506s,@program_transform_name@,$program_transform_name,;t t 21507s,@bindir@,$bindir,;t t 21508s,@sbindir@,$sbindir,;t t 21509s,@libexecdir@,$libexecdir,;t t 21510s,@datarootdir@,$datarootdir,;t t 21511s,@datadir@,$datadir,;t t 21512s,@sysconfdir@,$sysconfdir,;t t 21513s,@sharedstatedir@,$sharedstatedir,;t t 21514s,@localstatedir@,$localstatedir,;t t 21515s,@libdir@,$libdir,;t t 21516s,@includedir@,$includedir,;t t 21517s,@oldincludedir@,$oldincludedir,;t t 21518s,@infodir@,$infodir,;t t 21519s,@mandir@,$mandir,;t t 21520s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 21521s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 21522s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 21523s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 21524s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 21525s,@build_alias@,$build_alias,;t t 21526s,@host_alias@,$host_alias,;t t 21527s,@target_alias@,$target_alias,;t t 21528s,@ECHO_C@,$ECHO_C,;t t 21529s,@ECHO_N@,$ECHO_N,;t t 21530s,@ECHO_T@,$ECHO_T,;t t 21531s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 21532s,@DEFS@,$DEFS,;t t 21533s,@LIBS@,$LIBS,;t t 21534s,@build@,$build,;t t 21535s,@build_cpu@,$build_cpu,;t t 21536s,@build_vendor@,$build_vendor,;t t 21537s,@build_os@,$build_os,;t t 21538s,@host@,$host,;t t 21539s,@host_cpu@,$host_cpu,;t t 21540s,@host_vendor@,$host_vendor,;t t 21541s,@host_os@,$host_os,;t t 21542s,@CC@,$CC,;t t 21543s,@CFLAGS@,$CFLAGS,;t t 21544s,@LDFLAGS@,$LDFLAGS,;t t 21545s,@CPPFLAGS@,$CPPFLAGS,;t t 21546s,@ac_ct_CC@,$ac_ct_CC,;t t 21547s,@EXEEXT@,$EXEEXT,;t t 21548s,@OBJEXT@,$OBJEXT,;t t 21549s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t 21550s,@CPP@,$CPP,;t t 21551s,@AWK@,$AWK,;t t 21552s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 21553s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 21554s,@INSTALL_DATA@,$INSTALL_DATA,;t t 21555s,@LN_S@,$LN_S,;t t 21556s,@LINT@,$LINT,;t t 21557s,@LINT_OPTS@,$LINT_OPTS,;t t 21558s,@APP_CLASS@,$APP_CLASS,;t t 21559s,@APPSDIR@,$APPSDIR,;t t 21560s,@no_appsdir@,$no_appsdir,;t t 21561s,@ICON_NAME@,$ICON_NAME,;t t 21562s,@ICON_SYMLINK@,$ICON_SYMLINK,;t t 21563s,@PIXMAPDIR@,$PIXMAPDIR,;t t 21564s,@no_pixmapdir@,$no_pixmapdir,;t t 21565s,@ICONDIR@,$ICONDIR,;t t 21566s,@no_icondir@,$no_icondir,;t t 21567s,@ICON_FORMAT@,$ICON_FORMAT,;t t 21568s,@ICON_THEME@,$ICON_THEME,;t t 21569s,@ICON_LIST@,$ICON_LIST,;t t 21570s,@desktop_utils@,$desktop_utils,;t t 21571s,@DESKTOP_FLAGS@,$DESKTOP_FLAGS,;t t 21572s,@DESKTOP_CATEGORY@,$DESKTOP_CATEGORY,;t t 21573s,@XTERM_PATH@,$XTERM_PATH,;t t 21574s,@XTERM_SYMLINK@,$XTERM_SYMLINK,;t t 21575s,@SINSTALL_OPTS@,$SINSTALL_OPTS,;t t 21576s,@X_CFLAGS@,$X_CFLAGS,;t t 21577s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 21578s,@X_LIBS@,$X_LIBS,;t t 21579s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 21580s,@PKG_CONFIG@,$PKG_CONFIG,;t t 21581s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t 21582s,@ICON_SUFFIX@,$ICON_SUFFIX,;t t 21583s,@IMAKE@,$IMAKE,;t t 21584s,@IMAKE_CFLAGS@,$IMAKE_CFLAGS,;t t 21585s,@IMAKE_LOADFLAGS@,$IMAKE_LOADFLAGS,;t t 21586s,@GROFF_PATH@,$GROFF_PATH,;t t 21587s,@NROFF_PATH@,$NROFF_PATH,;t t 21588s,@GROFF_NOTE@,$GROFF_NOTE,;t t 21589s,@NROFF_NOTE@,$NROFF_NOTE,;t t 21590s,@cf_man2html@,$cf_man2html,;t t 21591s,@MAN2HTML_NOTE@,$MAN2HTML_NOTE,;t t 21592s,@MAN2HTML_PATH@,$MAN2HTML_PATH,;t t 21593s,@MAN2HTML_TEMP@,$MAN2HTML_TEMP,;t t 21594s,@default_termid@,$default_termid,;t t 21595s,@default_TERM@,$default_TERM,;t t 21596s,@backarrow_is_bs@,$backarrow_is_bs,;t t 21597s,@backarrow_is_erase@,$backarrow_is_erase,;t t 21598s,@delete_is_del@,$delete_is_del,;t t 21599s,@initial_erase@,$initial_erase,;t t 21600s,@alt_sends_esc@,$alt_sends_esc,;t t 21601s,@meta_sends_esc@,$meta_sends_esc,;t t 21602s,@cf_tic_prog@,$cf_tic_prog,;t t 21603s,@no_ticprog@,$no_ticprog,;t t 21604s,@TERMINFO_DIR@,$TERMINFO_DIR,;t t 21605s,@SET_TERMINFO@,$SET_TERMINFO,;t t 21606s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t 21607s,@FREETYPE_OLD_CONFIG@,$FREETYPE_OLD_CONFIG,;t t 21608s,@FREETYPE_XFT_CONFIG@,$FREETYPE_XFT_CONFIG,;t t 21609s,@HAVE_TYPE_FCCHAR32@,$HAVE_TYPE_FCCHAR32,;t t 21610s,@HAVE_TYPE_XFTCHARSPEC@,$HAVE_TYPE_XFTCHARSPEC,;t t 21611s,@LUIT@,$LUIT,;t t 21612s,@ECHO_LT@,$ECHO_LT,;t t 21613s,@ECHO_LD@,$ECHO_LD,;t t 21614s,@RULE_CC@,$RULE_CC,;t t 21615s,@SHOW_CC@,$SHOW_CC,;t t 21616s,@ECHO_CC@,$ECHO_CC,;t t 21617s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t 21618s,@CHARPROC_DEPS@,$CHARPROC_DEPS,;t t 21619s,@EXTRAHDRS@,$EXTRAHDRS,;t t 21620s,@EXTRASRCS@,$EXTRASRCS,;t t 21621s,@EXTRAOBJS@,$EXTRAOBJS,;t t 21622s,@MAY_SETUID@,$MAY_SETUID,;t t 21623s,@NOT_SETUID@,$NOT_SETUID,;t t 21624s,@CTAGS@,$CTAGS,;t t 21625s,@ETAGS@,$ETAGS,;t t 21626s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t 21627s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t 21628s,@cf_ldd_prog@,$cf_ldd_prog,;t t 21629s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t 21630CEOF 21631 21632EOF 21633 21634 cat >>$CONFIG_STATUS <<\EOF 21635 # Split the substitutions into bite-sized pieces for seds with 21636 # small command number limits, like on Digital OSF/1 and HP-UX. 21637 ac_max_sed_lines=48 21638 ac_sed_frag=1 # Number of current file. 21639 ac_beg=1 # First line for current file. 21640 ac_end=$ac_max_sed_lines # Line after last line for current file. 21641 ac_more_lines=: 21642 ac_sed_cmds= 21643 while $ac_more_lines; do 21644 if test $ac_beg -gt 1; then 21645 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 21646 else 21647 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 21648 fi 21649 if test ! -s $tmp/subs.frag; then 21650 ac_more_lines=false 21651 else 21652 # The purpose of the label and of the branching condition is to 21653 # speed up the sed processing (if there are no `@' at all, there 21654 # is no need to browse any of the substitutions). 21655 # These are the two extra sed commands mentioned above. 21656 (echo ':t 21657 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 21658 # It is possible to make a multiline substitution using escaped newlines. 21659 # Ensure that we do not split the substitution between script fragments. 21660 ac_BEG=$ac_end 21661 ac_END=`expr $ac_end + $ac_max_sed_lines` 21662 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next 21663 if test -s $tmp/subs.next; then 21664 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit 21665 if test ! -s $tmp/subs.edit; then 21666 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit 21667 if test ! -s $tmp/subs.edit; then 21668 if test $ac_beg -gt 1; then 21669 ac_end=`expr $ac_end - 1` 21670 continue 21671 fi 21672 fi 21673 fi 21674 fi 21675 21676 if test -z "$ac_sed_cmds"; then 21677 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 21678 else 21679 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 21680 fi 21681 ac_sed_frag=`expr $ac_sed_frag + 1` 21682 ac_beg=$ac_end 21683 ac_end=`expr $ac_end + $ac_max_sed_lines` 21684 fi 21685 done 21686 if test -z "$ac_sed_cmds"; then 21687 ac_sed_cmds=cat 21688 fi 21689fi # test -n "$CONFIG_FILES" 21690 21691EOF 21692cat >>$CONFIG_STATUS <<\EOF 21693for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 21694 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 21695 case $ac_file in 21696 - | *:- | *:-:* ) # input from stdin 21697 cat >$tmp/stdin 21698 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21699 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21700 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21701 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21702 * ) ac_file_in=$ac_file.in ;; 21703 esac 21704 21705 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 21706 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21707 X"$ac_file" : 'X\(//\)[^/]' \| \ 21708 X"$ac_file" : 'X\(//\)$' \| \ 21709 X"$ac_file" : 'X\(/\)' \| \ 21710 . : '\(.\)' 2>/dev/null || 21711echo X"$ac_file" | 21712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21713 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21714 /^X\(\/\/\)$/{ s//\1/; q; } 21715 /^X\(\/\).*/{ s//\1/; q; } 21716 s/.*/./; q'` 21717 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 21718 { case "$ac_dir" in 21719 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 21720 *) as_incr_dir=.;; 21721esac 21722as_dummy="$ac_dir" 21723for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 21724 case $as_mkdir_dir in 21725 # Skip DOS drivespec 21726 ?:) as_incr_dir=$as_mkdir_dir ;; 21727 *) 21728 as_incr_dir=$as_incr_dir/$as_mkdir_dir 21729 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 21730 ;; 21731 esac 21732done; } 21733 21734 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 21735 # A "../" for each directory in $ac_dir_suffix. 21736 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 21737 else 21738 ac_dir_suffix= ac_dots= 21739 fi 21740 21741 case $srcdir in 21742 .) ac_srcdir=. 21743 if test -z "$ac_dots"; then 21744 ac_top_srcdir=. 21745 else 21746 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` 21747 fi ;; 21748 [\\/]* | ?:[\\/]* ) 21749 ac_srcdir=$srcdir$ac_dir_suffix; 21750 ac_top_srcdir=$srcdir ;; 21751 *) # Relative path. 21752 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix 21753 ac_top_srcdir=$ac_dots$srcdir ;; 21754 esac 21755 21756 case $INSTALL in 21757 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21758 *) ac_INSTALL=$ac_dots$INSTALL ;; 21759 esac 21760 21761 if test x"$ac_file" != x-; then 21762 { echo "$as_me:21762: creating $ac_file" >&5 21763echo "$as_me: creating $ac_file" >&6;} 21764 rm -f "$ac_file" 21765 fi 21766 # Let's still pretend it is `configure' which instantiates (i.e., don't 21767 # use $as_me), people would be surprised to read: 21768 # /* config.h. Generated automatically by config.status. */ 21769 configure_input="Generated automatically from `echo $ac_file_in | 21770 sed 's,.*/,,'` by configure." 21771 21772 # First look for the input files in the build tree, otherwise in the 21773 # src tree. 21774 ac_file_inputs=`IFS=: 21775 for f in $ac_file_in; do 21776 case $f in 21777 -) echo $tmp/stdin ;; 21778 [\\/$]*) 21779 # Absolute (can't be DOS-style, as IFS=:) 21780 test -f "$f" || { { echo "$as_me:21780: error: cannot find input file: $f" >&5 21781echo "$as_me: error: cannot find input file: $f" >&2;} 21782 { (exit 1); exit 1; }; } 21783 echo $f;; 21784 *) # Relative 21785 if test -f "$f"; then 21786 # Build tree 21787 echo $f 21788 elif test -f "$srcdir/$f"; then 21789 # Source tree 21790 echo $srcdir/$f 21791 else 21792 # /dev/null tree 21793 { { echo "$as_me:21793: error: cannot find input file: $f" >&5 21794echo "$as_me: error: cannot find input file: $f" >&2;} 21795 { (exit 1); exit 1; }; } 21796 fi;; 21797 esac 21798 done` || { (exit 1); exit 1; } 21799EOF 21800cat >>$CONFIG_STATUS <<\EOF 21801 ac_warn_datarootdir=no 21802 if test x"$ac_file" != x-; then 21803 for ac_item in $ac_file_inputs 21804 do 21805 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item` 21806 if test -n "$ac_seen"; then 21807 ac_used=`grep '@datarootdir@' $ac_item` 21808 if test -z "$ac_used"; then 21809 { echo "$as_me:21809: WARNING: datarootdir was used implicitly but not set: 21810$ac_seen" >&5 21811echo "$as_me: WARNING: datarootdir was used implicitly but not set: 21812$ac_seen" >&2;} 21813 ac_warn_datarootdir=yes 21814 fi 21815 fi 21816 ac_seen=`grep '${datarootdir}' $ac_item` 21817 if test -n "$ac_seen"; then 21818 { echo "$as_me:21818: WARNING: datarootdir was used explicitly but not set: 21819$ac_seen" >&5 21820echo "$as_me: WARNING: datarootdir was used explicitly but not set: 21821$ac_seen" >&2;} 21822 ac_warn_datarootdir=yes 21823 fi 21824 done 21825 fi 21826 21827if test "x$ac_warn_datarootdir" = xyes; then 21828 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'" 21829fi 21830 21831EOF 21832cat >>$CONFIG_STATUS <<EOF 21833 sed "$ac_vpsub 21834$extrasub 21835EOF 21836cat >>$CONFIG_STATUS <<\EOF 21837:t 21838/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21839s,@configure_input@,$configure_input,;t t 21840s,@srcdir@,$ac_srcdir,;t t 21841s,@top_srcdir@,$ac_top_srcdir,;t t 21842s,@INSTALL@,$ac_INSTALL,;t t 21843" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 21844 rm -f $tmp/stdin 21845 if test x"$ac_file" != x-; then 21846 cp $tmp/out $ac_file 21847 21848 for ac_name in prefix exec_prefix datarootdir 21849 do 21850 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file` 21851 if test -n "$ac_seen"; then 21852 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file` 21853 if test -z "$ac_init"; then 21854 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'` 21855 { echo "$as_me:21855: WARNING: Variable $ac_name is used but was not set: 21856$ac_seen" >&5 21857echo "$as_me: WARNING: Variable $ac_name is used but was not set: 21858$ac_seen" >&2;} 21859 fi 21860 fi 21861 done 21862 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out 21863 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out 21864 if test -s $tmp/out; then 21865 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out` 21866 { echo "$as_me:21866: WARNING: Some variables may not be substituted: 21867$ac_seen" >&5 21868echo "$as_me: WARNING: Some variables may not be substituted: 21869$ac_seen" >&2;} 21870 fi 21871 else 21872 cat $tmp/out 21873 fi 21874 rm -f $tmp/out 21875 21876done 21877EOF 21878cat >>$CONFIG_STATUS <<\EOF 21879 21880# 21881# CONFIG_HEADER section. 21882# 21883 21884# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 21885# NAME is the cpp macro being defined and VALUE is the value it is being given. 21886# 21887# ac_d sets the value in "#define NAME VALUE" lines. 21888ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 21889ac_dB='[ ].*$,\1#\2' 21890ac_dC=' ' 21891ac_dD=',;t' 21892# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 21893ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 21894ac_iB='\([ ]\),\1#\2define\3' 21895ac_iC=' ' 21896ac_iD='\4,;t' 21897# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 21898ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 21899ac_uB='$,\1#\2define\3' 21900ac_uC=' ' 21901ac_uD=',;t' 21902 21903for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 21904 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 21905 case $ac_file in 21906 - | *:- | *:-:* ) # input from stdin 21907 cat >$tmp/stdin 21908 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21909 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21910 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21911 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21912 * ) ac_file_in=$ac_file.in ;; 21913 esac 21914 21915 test x"$ac_file" != x- && { echo "$as_me:21915: creating $ac_file" >&5 21916echo "$as_me: creating $ac_file" >&6;} 21917 21918 # First look for the input files in the build tree, otherwise in the 21919 # src tree. 21920 ac_file_inputs=`IFS=: 21921 for f in $ac_file_in; do 21922 case $f in 21923 -) echo $tmp/stdin ;; 21924 [\\/$]*) 21925 # Absolute (can't be DOS-style, as IFS=:) 21926 test -f "$f" || { { echo "$as_me:21926: error: cannot find input file: $f" >&5 21927echo "$as_me: error: cannot find input file: $f" >&2;} 21928 { (exit 1); exit 1; }; } 21929 echo $f;; 21930 *) # Relative 21931 if test -f "$f"; then 21932 # Build tree 21933 echo $f 21934 elif test -f "$srcdir/$f"; then 21935 # Source tree 21936 echo $srcdir/$f 21937 else 21938 # /dev/null tree 21939 { { echo "$as_me:21939: error: cannot find input file: $f" >&5 21940echo "$as_me: error: cannot find input file: $f" >&2;} 21941 { (exit 1); exit 1; }; } 21942 fi;; 21943 esac 21944 done` || { (exit 1); exit 1; } 21945 # Remove the trailing spaces. 21946 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 21947 21948EOF 21949 21950# Transform confdefs.h into two sed scripts, `conftest.defines' and 21951# `conftest.undefs', that substitutes the proper values into 21952# config.h.in to produce config.h. The first handles `#define' 21953# templates, and the second `#undef' templates. 21954# And first: Protect against being on the right side of a sed subst in 21955# config.status. Protect against being in an unquoted here document 21956# in config.status. 21957rm -f conftest.defines conftest.undefs 21958# Using a here document instead of a string reduces the quoting nightmare. 21959# Putting comments in sed scripts is not portable. 21960# 21961# `end' is used to avoid that the second main sed command (meant for 21962# 0-ary CPP macros) applies to n-ary macro definitions. 21963# See the Autoconf documentation for `clear'. 21964cat >confdef2sed.sed <<\EOF 21965s/[\\&,]/\\&/g 21966s,[\\$`],\\&,g 21967t clear 21968: clear 21969s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp 21970t end 21971s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 21972: end 21973EOF 21974# If some macros were called several times there might be several times 21975# the same #defines, which is useless. Nevertheless, we may not want to 21976# sort them, since we want the *last* AC-DEFINE to be honored. 21977uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 21978sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 21979sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs 21980rm -f confdef2sed.sed 21981 21982# This sed command replaces #undef with comments. This is necessary, for 21983# example, in the case of _POSIX_SOURCE, which is predefined and required 21984# on some systems where configure will not decide to define it. 21985cat >>conftest.undefs <<\EOF 21986s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 21987EOF 21988 21989# Break up conftest.defines because some shells have a limit on the size 21990# of here documents, and old seds have small limits too (100 cmds). 21991echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 21992echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 21993echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 21994echo ' :' >>$CONFIG_STATUS 21995rm -f conftest.tail 21996while grep . conftest.defines >/dev/null 21997do 21998 # Write a limited-size here document to $tmp/defines.sed. 21999 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 22000 # Speed up: don't consider the non `#define' lines. 22001 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 22002 # Work around the forget-to-reset-the-flag bug. 22003 echo 't clr' >>$CONFIG_STATUS 22004 echo ': clr' >>$CONFIG_STATUS 22005 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 22006 echo 'CEOF 22007 sed -f $tmp/defines.sed $tmp/in >$tmp/out 22008 rm -f $tmp/in 22009 mv $tmp/out $tmp/in 22010' >>$CONFIG_STATUS 22011 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 22012 rm -f conftest.defines 22013 mv conftest.tail conftest.defines 22014done 22015rm -f conftest.defines 22016echo ' fi # egrep' >>$CONFIG_STATUS 22017echo >>$CONFIG_STATUS 22018 22019# Break up conftest.undefs because some shells have a limit on the size 22020# of here documents, and old seds have small limits too (100 cmds). 22021echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 22022rm -f conftest.tail 22023while grep . conftest.undefs >/dev/null 22024do 22025 # Write a limited-size here document to $tmp/undefs.sed. 22026 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 22027 # Speed up: don't consider the non `#undef' 22028 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 22029 # Work around the forget-to-reset-the-flag bug. 22030 echo 't clr' >>$CONFIG_STATUS 22031 echo ': clr' >>$CONFIG_STATUS 22032 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 22033 echo 'CEOF 22034 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 22035 rm -f $tmp/in 22036 mv $tmp/out $tmp/in 22037' >>$CONFIG_STATUS 22038 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 22039 rm -f conftest.undefs 22040 mv conftest.tail conftest.undefs 22041done 22042rm -f conftest.undefs 22043 22044cat >>$CONFIG_STATUS <<\EOF 22045 # Let's still pretend it is `configure' which instantiates (i.e., don't 22046 # use $as_me), people would be surprised to read: 22047 # /* config.h. Generated automatically by config.status. */ 22048 if test x"$ac_file" = x-; then 22049 echo "/* Generated automatically by configure. */" >$tmp/config.h 22050 else 22051 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 22052 fi 22053 cat $tmp/in >>$tmp/config.h 22054 rm -f $tmp/in 22055 if test x"$ac_file" != x-; then 22056 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 22057 { echo "$as_me:22057: $ac_file is unchanged" >&5 22058echo "$as_me: $ac_file is unchanged" >&6;} 22059 else 22060 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22061 X"$ac_file" : 'X\(//\)[^/]' \| \ 22062 X"$ac_file" : 'X\(//\)$' \| \ 22063 X"$ac_file" : 'X\(/\)' \| \ 22064 . : '\(.\)' 2>/dev/null || 22065echo X"$ac_file" | 22066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22067 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22068 /^X\(\/\/\)$/{ s//\1/; q; } 22069 /^X\(\/\).*/{ s//\1/; q; } 22070 s/.*/./; q'` 22071 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 22072 { case "$ac_dir" in 22073 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 22074 *) as_incr_dir=.;; 22075esac 22076as_dummy="$ac_dir" 22077for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 22078 case $as_mkdir_dir in 22079 # Skip DOS drivespec 22080 ?:) as_incr_dir=$as_mkdir_dir ;; 22081 *) 22082 as_incr_dir=$as_incr_dir/$as_mkdir_dir 22083 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 22084 ;; 22085 esac 22086done; } 22087 22088 fi 22089 rm -f $ac_file 22090 mv $tmp/config.h $ac_file 22091 fi 22092 else 22093 cat $tmp/config.h 22094 rm -f $tmp/config.h 22095 fi 22096done 22097EOF 22098 22099cat >>$CONFIG_STATUS <<\EOF 22100 22101{ (exit 0); exit 0; } 22102EOF 22103chmod +x $CONFIG_STATUS 22104ac_clean_files=$ac_clean_files_save 22105 22106# configure is writing to config.log, and then calls config.status. 22107# config.status does its own redirection, appending to config.log. 22108# Unfortunately, on DOS this fails, as config.log is still kept open 22109# by configure, so config.status won't be able to write to it; its 22110# output is simply discarded. So we exec the FD to /dev/null, 22111# effectively closing config.log, so it can be properly (re)opened and 22112# appended to by config.status. When coming back to configure, we 22113# need to make the FD available again. 22114if test "$no_create" != yes; then 22115 ac_cs_success=: 22116 exec 5>/dev/null 22117 $SHELL $CONFIG_STATUS || ac_cs_success=false 22118 exec 5>>config.log 22119 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22120 # would make configure fail if this is the last instruction. 22121 $ac_cs_success || { (exit 1); exit 1; } 22122fi 22123 22124