1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by Autoconf 2.52.20240618. 4 # 5 # Copyright 2003-2022,2023 Thomas E. Dickey 6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 7 # Free Software Foundation, Inc. 8 # This configure script is free software; the Free Software Foundation 9 # gives unlimited permission to copy, distribute and modify it. 10 11 # Avoid depending upon Character Ranges. 12 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15 as_cr_digits='0123456789' 16 as_cr_alnum=$as_cr_Letters$as_cr_digits 17 18 # Sed expression to map a string onto a valid variable name. 19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 20 21 # Sed expression to map a string onto a valid CPP name. 22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 23 24 # Be Bourne compatible 25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 26 emulate sh 27 NULLCMD=: 28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 29 set -o posix 30 fi 31 32 # Name of the executable. 33 as_me=`echo "$0" |sed 's,.*[\\/],,'` 34 35 if expr a : '\(a\)' >/dev/null 2>&1; then 36 as_expr="expr" 37 else 38 as_expr="false" 39 fi 40 41 rm -f conf$$ conf$$.exe conf$$.file 42 echo >conf$$.file 43 if ln -s conf$$.file conf$$ 2>/dev/null; then 44 # We could just check for DJGPP; but this test a) works b) is more generic 45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 46 if test -f conf$$.exe; then 47 # Don't use ln at all; we don't have any links 48 as_ln_s='cp -p' 49 else 50 as_ln_s='ln -s' 51 fi 52 elif ln conf$$.file conf$$ 2>/dev/null; then 53 as_ln_s='ln' 54 else 55 as_ln_s='cp -p' 56 fi 57 rm -f conf$$ conf$$.exe conf$$.file 58 59 as_executable_p="test -f" 60 61 # Support unset when possible. 62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 63 as_unset="unset" 64 else 65 as_unset="false" 66 fi 67 68 # NLS nuisances. 69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 77 78 # IFS 79 # We need space, tab and new line, in precisely that order. 80 as_nl=' 81 ' 82 IFS=" $as_nl" 83 84 # CDPATH. 85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 86 87 # Name of the host. 88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 89 # so uname gets run too. 90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 91 92 exec 6>&1 93 94 # 95 # Initializations. 96 # 97 ac_default_prefix=/usr/local 98 cross_compiling=no 99 subdirs= 100 MFLAGS= 101 MAKEFLAGS= 102 SHELL=${CONFIG_SHELL-/bin/sh} 103 104 # Maximum number of lines to put in a shell here document. 105 # This variable seems obsolete. It should probably be removed, and 106 # only ac_max_sed_lines should be used. 107 : "${ac_max_here_lines=38}" 108 109 ac_unique_file="charproc.c" 110 # Factoring default headers for most tests. 111 ac_includes_default="\ 112 #include <stdio.h> 113 #if HAVE_SYS_TYPES_H 114 # include <sys/types.h> 115 #endif 116 #if HAVE_SYS_STAT_H 117 # include <sys/stat.h> 118 #endif 119 #if STDC_HEADERS 120 # include <stdlib.h> 121 # include <stddef.h> 122 #else 123 # if HAVE_STDLIB_H 124 # include <stdlib.h> 125 # endif 126 #endif 127 #if HAVE_STRING_H 128 # if !STDC_HEADERS && HAVE_MEMORY_H 129 # include <memory.h> 130 # endif 131 # include <string.h> 132 #endif 133 #if HAVE_STRINGS_H 134 # include <strings.h> 135 #endif 136 #if HAVE_INTTYPES_H 137 # include <inttypes.h> 138 #else 139 # if HAVE_STDINT_H 140 # include <stdint.h> 141 # endif 142 #endif 143 #if HAVE_UNISTD_H 144 # include <unistd.h> 145 #endif" 146 147 # Initialize some variables set by options. 148 ac_init_help= 149 ac_init_version=false 150 # The variables have the same names as the options, with 151 # dashes changed to underlines. 152 cache_file=/dev/null 153 exec_prefix=NONE 154 no_create= 155 no_recursion= 156 prefix=NONE 157 program_prefix=NONE 158 program_suffix=NONE 159 program_transform_name=s,x,x, 160 silent= 161 site= 162 srcdir= 163 verbose= 164 x_includes=NONE 165 x_libraries=NONE 166 167 # Installation directory options. 168 # These are left unexpanded so users can "make install exec_prefix=/foo" 169 # and all the variables that are supposed to be based on exec_prefix 170 # by default will actually change. 171 # Use braces instead of parens because sh, perl, etc. also accept them. 172 bindir='${exec_prefix}/bin' 173 sbindir='${exec_prefix}/sbin' 174 libexecdir='${exec_prefix}/libexec' 175 datarootdir='${prefix}/share' 176 datadir='${datarootdir}' 177 sysconfdir='${prefix}/etc' 178 sharedstatedir='${prefix}/com' 179 localstatedir='${prefix}/var' 180 runstatedir='${localstatedir}/run' 181 libdir='${exec_prefix}/lib' 182 includedir='${prefix}/include' 183 oldincludedir='/usr/include' 184 infodir='${datarootdir}/info' 185 mandir='${datarootdir}/man' 186 187 # Identity of this package. 188 PACKAGE_NAME= 189 PACKAGE_TARNAME= 190 PACKAGE_VERSION= 191 PACKAGE_STRING= 192 PACKAGE_BUGREPORT= 193 194 ac_prev= 195 for ac_option 196 do 197 # If the previous option needs an argument, assign it. 198 if test -n "$ac_prev"; then 199 eval "$ac_prev=\$ac_option" 200 ac_prev= 201 continue 202 fi 203 204 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 205 206 # Accept the important Cygnus configure options, so we can diagnose typos. 207 208 case "$ac_option" in 209 210 -bindir | --bindir | --bindi | --bind | --bin | --bi) 211 ac_prev=bindir ;; 212 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 213 bindir=$ac_optarg ;; 214 215 -build | --build | --buil | --bui | --bu) 216 ac_prev=build_alias ;; 217 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 218 build_alias=$ac_optarg ;; 219 220 -cache-file | --cache-file | --cache-fil | --cache-fi \ 221 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 222 ac_prev=cache_file ;; 223 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 224 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 225 cache_file=$ac_optarg ;; 226 227 --config-cache | -C) 228 cache_file=config.cache ;; 229 230 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 231 ac_prev=datadir ;; 232 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 233 | --da=*) 234 datadir=$ac_optarg ;; 235 236 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 237 | --dataroo | --dataro | --datar) 238 ac_prev=datarootdir ;; 239 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 240 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 241 datarootdir=$ac_optarg ;; 242 243 -disable-* | --disable-*) 244 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 245 # Reject names that are not valid shell variable names. 246 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 247 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 248 { (exit 1); exit 1; }; } 249 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'` 250 eval "enable_$ac_feature=no" ;; 251 252 -enable-* | --enable-*) 253 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 254 # Reject names that are not valid shell variable names. 255 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 256 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 257 { (exit 1); exit 1; }; } 258 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'` 259 case "$ac_option" in 260 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 261 *) ac_optarg=yes ;; 262 esac 263 eval "enable_$ac_feature='$ac_optarg'" ;; 264 265 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 266 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 267 | --exec | --exe | --ex) 268 ac_prev=exec_prefix ;; 269 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 270 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 271 | --exec=* | --exe=* | --ex=*) 272 exec_prefix=$ac_optarg ;; 273 274 -gas | --gas | --ga | --g) 275 # Obsolete; use --with-gas. 276 with_gas=yes ;; 277 278 -help | --help | --hel | --he | -h) 279 ac_init_help=long ;; 280 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 281 ac_init_help=recursive ;; 282 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 283 ac_init_help=short ;; 284 285 -host | --host | --hos | --ho) 286 ac_prev=host_alias ;; 287 -host=* | --host=* | --hos=* | --ho=*) 288 host_alias=$ac_optarg ;; 289 290 -includedir | --includedir | --includedi | --included | --include \ 291 | --includ | --inclu | --incl | --inc) 292 ac_prev=includedir ;; 293 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 294 | --includ=* | --inclu=* | --incl=* | --inc=*) 295 includedir=$ac_optarg ;; 296 297 -infodir | --infodir | --infodi | --infod | --info | --inf) 298 ac_prev=infodir ;; 299 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 300 infodir=$ac_optarg ;; 301 302 -libdir | --libdir | --libdi | --libd) 303 ac_prev=libdir ;; 304 -libdir=* | --libdir=* | --libdi=* | --libd=*) 305 libdir=$ac_optarg ;; 306 307 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 308 | --libexe | --libex | --libe) 309 ac_prev=libexecdir ;; 310 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 311 | --libexe=* | --libex=* | --libe=*) 312 libexecdir=$ac_optarg ;; 313 314 -localstatedir | --localstatedir | --localstatedi | --localstated \ 315 | --localstate | --localstat | --localsta | --localst \ 316 | --locals | --local | --loca | --loc | --lo) 317 ac_prev=localstatedir ;; 318 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 319 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 320 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 321 localstatedir=$ac_optarg ;; 322 323 -runstatedir | --runstatedir | --runstatedi | --runstated \ 324 | --runstate | --runstat | --runsta | --runst \ 325 | --runs | --run | --ru) 326 ac_prev=runstatedir ;; 327 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 328 | --runstate=* | --runstat=* | --runsta=* | --runst=* \ 329 | --runs=* | --run=* | --ru=*) 330 runstatedir=$ac_optarg ;; 331 332 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 333 ac_prev=mandir ;; 334 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 335 mandir=$ac_optarg ;; 336 337 -nfp | --nfp | --nf) 338 # Obsolete; use --without-fp. 339 with_fp=no ;; 340 341 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 342 | --no-cr | --no-c) 343 no_create=yes ;; 344 345 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 346 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 347 no_recursion=yes ;; 348 349 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 350 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 351 | --oldin | --oldi | --old | --ol | --o) 352 ac_prev=oldincludedir ;; 353 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 354 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 355 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 356 oldincludedir=$ac_optarg ;; 357 358 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 359 ac_prev=prefix ;; 360 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 361 prefix=$ac_optarg ;; 362 363 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 364 | --program-pre | --program-pr | --program-p) 365 ac_prev=program_prefix ;; 366 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 367 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 368 program_prefix=$ac_optarg ;; 369 370 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 371 | --program-suf | --program-su | --program-s) 372 ac_prev=program_suffix ;; 373 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 374 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 375 program_suffix=$ac_optarg ;; 376 377 -program-transform-name | --program-transform-name \ 378 | --program-transform-nam | --program-transform-na \ 379 | --program-transform-n | --program-transform- \ 380 | --program-transform | --program-transfor \ 381 | --program-transfo | --program-transf \ 382 | --program-trans | --program-tran \ 383 | --progr-tra | --program-tr | --program-t) 384 ac_prev=program_transform_name ;; 385 -program-transform-name=* | --program-transform-name=* \ 386 | --program-transform-nam=* | --program-transform-na=* \ 387 | --program-transform-n=* | --program-transform-=* \ 388 | --program-transform=* | --program-transfor=* \ 389 | --program-transfo=* | --program-transf=* \ 390 | --program-trans=* | --program-tran=* \ 391 | --progr-tra=* | --program-tr=* | --program-t=*) 392 program_transform_name=$ac_optarg ;; 393 394 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 395 | -silent | --silent | --silen | --sile | --sil) 396 silent=yes ;; 397 398 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 399 ac_prev=sbindir ;; 400 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 401 | --sbi=* | --sb=*) 402 sbindir=$ac_optarg ;; 403 404 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 405 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 406 | --sharedst | --shareds | --shared | --share | --shar \ 407 | --sha | --sh) 408 ac_prev=sharedstatedir ;; 409 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 410 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 411 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 412 | --sha=* | --sh=*) 413 sharedstatedir=$ac_optarg ;; 414 415 -site | --site | --sit) 416 ac_prev=site ;; 417 -site=* | --site=* | --sit=*) 418 site=$ac_optarg ;; 419 420 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 421 ac_prev=srcdir ;; 422 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 423 srcdir=$ac_optarg ;; 424 425 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 426 | --syscon | --sysco | --sysc | --sys | --sy) 427 ac_prev=sysconfdir ;; 428 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 429 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 430 sysconfdir=$ac_optarg ;; 431 432 -target | --target | --targe | --targ | --tar | --ta | --t) 433 ac_prev=target_alias ;; 434 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 435 target_alias=$ac_optarg ;; 436 437 -v | -verbose | --verbose | --verbos | --verbo | --verb) 438 verbose=yes ;; 439 440 -version | --version | --versio | --versi | --vers | -V) 441 ac_init_version=: ;; 442 443 -with-* | --with-*) 444 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 445 # Reject names that are not valid shell variable names. 446 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 447 { echo "$as_me: error: invalid package name: $ac_package" >&2 448 { (exit 1); exit 1; }; } 449 ac_package=`echo "$ac_package" | sed 's/-/_/g'` 450 case "$ac_option" in 451 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 452 *) ac_optarg=yes ;; 453 esac 454 eval "with_$ac_package='$ac_optarg'" ;; 455 456 -without-* | --without-*) 457 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 458 # Reject names that are not valid shell variable names. 459 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 460 { echo "$as_me: error: invalid package name: $ac_package" >&2 461 { (exit 1); exit 1; }; } 462 ac_package=`echo "$ac_package" | sed 's/-/_/g'` 463 eval "with_$ac_package=no" ;; 464 465 --x) 466 # Obsolete; use --with-x. 467 with_x=yes ;; 468 469 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 470 | --x-incl | --x-inc | --x-in | --x-i) 471 ac_prev=x_includes ;; 472 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 473 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 474 x_includes=$ac_optarg ;; 475 476 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 477 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 478 ac_prev=x_libraries ;; 479 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 480 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 481 x_libraries=$ac_optarg ;; 482 483 -*dir | -dvi* | -doc* | -html* | -local* | -pdf* | -ps* ) 484 echo "$as_me: WARNING: unsupported option: $ac_option" >&2 485 ;; 486 487 -*) { echo "$as_me: error: unrecognized option: $ac_option 488 Try \`$0 --help' for more information." >&2 489 { (exit 1); exit 1; }; } 490 ;; 491 492 *=*) 493 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 494 # Reject names that are not valid shell variable names. 495 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 496 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 497 { (exit 1); exit 1; }; } 498 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 499 eval "$ac_envvar='$ac_optarg'" 500 export "$ac_envvar" ;; 501 502 *) 503 # FIXME: should be removed in autoconf 3.0. 504 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 505 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 506 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 507 : "${build_alias=$ac_option}" "${host_alias=$ac_option}" "${target_alias=$ac_option}" 508 ;; 509 510 esac 511 done 512 513 if test -n "$ac_prev"; then 514 ac_option=--`echo "$ac_prev" | sed 's/_/-/g'` 515 { echo "$as_me: error: missing argument to $ac_option" >&2 516 { (exit 1); exit 1; }; } 517 fi 518 519 # Be sure to have absolute paths. 520 for ac_var in exec_prefix prefix 521 do 522 eval ac_val=$`echo "$ac_var"` 523 case "$ac_val" in 524 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 525 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 526 { (exit 1); exit 1; }; };; 527 esac 528 done 529 530 # Be sure to have absolute paths. 531 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \ 532 localstatedir libdir includedir oldincludedir infodir mandir 533 do 534 eval ac_val=$`echo "$ac_var"` 535 case "$ac_val" in 536 [\\/$]* | ?:[\\/]* ) ;; 537 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 538 { (exit 1); exit 1; }; };; 539 esac 540 done 541 542 # There might be people who depend on the old broken behavior: `$host' 543 # used to hold the argument of --host etc. 544 build=$build_alias 545 host=$host_alias 546 target=$target_alias 547 548 # FIXME: should be removed in autoconf 3.0. 549 if test "x$host_alias" != x; then 550 if test "x$build_alias" = x; then 551 cross_compiling=maybe 552 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 553 If a cross compiler is detected then cross compile mode will be used." >&2 554 elif test "x$build_alias" != "x$host_alias"; then 555 cross_compiling=yes 556 fi 557 fi 558 559 ac_tool_prefix= 560 test -n "$host_alias" && ac_tool_prefix=$host_alias- 561 562 test "$silent" = yes && exec 6>/dev/null 563 564 # Find the source files, if location was not specified. 565 if test -z "$srcdir"; then 566 ac_srcdir_defaulted=yes 567 # Try the directory containing this script, then its parent. 568 ac_prog=$0 569 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` 570 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 571 srcdir=$ac_confdir 572 if test ! -r "$srcdir/$ac_unique_file"; then 573 srcdir=.. 574 fi 575 else 576 ac_srcdir_defaulted=no 577 fi 578 if test ! -r "$srcdir/$ac_unique_file"; then 579 if test "$ac_srcdir_defaulted" = yes; then 580 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 581 { (exit 1); exit 1; }; } 582 else 583 { echo "$as_me: error: cannot find sources in $srcdir" >&2 584 { (exit 1); exit 1; }; } 585 fi 586 fi 587 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 588 ac_env_build_alias_set=${build_alias+set} 589 ac_env_build_alias_value=$build_alias 590 ac_cv_env_build_alias_set=${build_alias+set} 591 ac_cv_env_build_alias_value=$build_alias 592 ac_env_host_alias_set=${host_alias+set} 593 ac_env_host_alias_value=$host_alias 594 ac_cv_env_host_alias_set=${host_alias+set} 595 ac_cv_env_host_alias_value=$host_alias 596 ac_env_target_alias_set=${target_alias+set} 597 ac_env_target_alias_value=$target_alias 598 ac_cv_env_target_alias_set=${target_alias+set} 599 ac_cv_env_target_alias_value=$target_alias 600 ac_env_CC_set=${CC+set} 601 ac_env_CC_value=$CC 602 ac_cv_env_CC_set=${CC+set} 603 ac_cv_env_CC_value=$CC 604 ac_env_CFLAGS_set=${CFLAGS+set} 605 ac_env_CFLAGS_value=$CFLAGS 606 ac_cv_env_CFLAGS_set=${CFLAGS+set} 607 ac_cv_env_CFLAGS_value=$CFLAGS 608 ac_env_LDFLAGS_set=${LDFLAGS+set} 609 ac_env_LDFLAGS_value=$LDFLAGS 610 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 611 ac_cv_env_LDFLAGS_value=$LDFLAGS 612 ac_env_CPPFLAGS_set=${CPPFLAGS+set} 613 ac_env_CPPFLAGS_value=$CPPFLAGS 614 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 615 ac_cv_env_CPPFLAGS_value=$CPPFLAGS 616 ac_env_CPP_set=${CPP+set} 617 ac_env_CPP_value=$CPP 618 ac_cv_env_CPP_set=${CPP+set} 619 ac_cv_env_CPP_value=$CPP 620 621 # 622 # Report the --help message. 623 # 624 if test "$ac_init_help" = "long"; then 625 # Omit some internal or obsolete options to make the list less imposing. 626 # This message is too long to be a string in the A/UX 3.1 sh. 627 cat <<EOF 628 \`configure' configures this package to adapt to many kinds of systems. 629 630 Usage: $0 [OPTION]... [VAR=VALUE]... 631 632 To assign environment variables (e.g., CC, CFLAGS...), specify them as 633 VAR=VALUE. See below for descriptions of some of the useful variables. 634 635 Defaults for the options are specified in brackets. 636 637 Configuration: 638 -h, --help display this help and exit 639 --help=short display options specific to this package 640 --help=recursive display the short help of all the included packages 641 -V, --version display version information and exit 642 -q, --quiet, --silent do not print \`checking...' messages 643 --cache-file=FILE cache test results in FILE [disabled] 644 -C, --config-cache alias for \`--cache-file=config.cache' 645 -n, --no-create do not create output files 646 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 647 648 EOF 649 650 cat <<EOF 651 Installation directories: 652 --prefix=PREFIX install architecture-independent files in PREFIX 653 [$ac_default_prefix] 654 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 655 [PREFIX] 656 657 By default, \`make install' will install all the files in 658 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 659 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 660 for instance \`--prefix=\$HOME'. 661 662 For better control, use the options below. 663 664 Fine tuning of the installation directories: 665 --bindir=DIR user executables [EPREFIX/bin] 666 --sbindir=DIR system admin executables [EPREFIX/sbin] 667 --libexecdir=DIR program executables [EPREFIX/libexec] 668 --datarootdir=DIR read-only architecture-independent data [PREFIX/share] 669 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 670 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 671 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 672 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 673 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run] 674 --libdir=DIR object code libraries [EPREFIX/lib] 675 --includedir=DIR C header files [PREFIX/include] 676 --oldincludedir=DIR C header files for non-gcc [/usr/include] 677 --infodir=DIR info documentation [DATAROOTDIR/info] 678 --mandir=DIR man documentation [DATAROOTDIR/man] 679 EOF 680 681 cat <<\EOF 682 683 Program names: 684 --program-prefix=PREFIX prepend PREFIX to installed program names 685 --program-suffix=SUFFIX append SUFFIX to installed program names 686 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 687 688 X features: 689 --x-includes=DIR X include files are in DIR 690 --x-libraries=DIR X library files are in DIR 691 692 System types: 693 --build=BUILD configure for building on BUILD [guessed] 694 --host=HOST build programs to run on HOST [BUILD] 695 --target=TARGET configure for building compilers for TARGET [HOST] 696 EOF 697 fi 698 699 if test -n "$ac_init_help"; then 700 701 cat <<\EOF 702 703 Optional Features: 704 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 705 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 706 707 Optional Packages: 708 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 709 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 710 711 Compile/Install Options: 712 --disable-full-tgetent disable check for full tgetent function 713 --with-app-class=XXX override X applications class (default XTerm) 714 --with-app-defaults=DIR directory in which to install resource files (EPREFIX/lib/X11/app-defaults) 715 --with-system-type=XXX test: override derived host system-type 716 --with-icon-name[=XXX] override icon name (default: mini.xterm) 717 --with-icon-symlink[=XXX] make symbolic link for icon name (default: xterm) 718 --with-pixmapdir=DIR directory in which to install pixmaps (DATADIR/pixmaps) 719 --with-icondir=DIR directory in which to install icons for desktop 720 --with-icon-theme[=XXX] install icons into desktop theme (hicolor) 721 --disable-desktop disable install of xterm desktop files 722 --with-desktop-category=XXX one or more desktop categories or auto 723 --with-reference=XXX program to use as permissions-reference 724 --with-xterm-symlink[=XXX] make symbolic link to installed xterm 725 --disable-openpty disable openpty, prefer other interfaces 726 --disable-setuid disable setuid in xterm, do not install setuid/setgid 727 --disable-setgid disable setgid in xterm, do not install setuid/setgid 728 --with-setuid[=XXX] use the given setuid user 729 --with-utmp-setgid[=XXX] use setgid to match utmp/utmpx file 730 --with-utempter use utempter library for access to utmp 731 --with-utmp-path=XXX use XXX rather than auto for utmp path 732 --with-wtmp-path=XXX use XXX rather than auto for wtmp path 733 --with-tty-group[=XXX] use XXX for the tty-group 734 --with-x use the X Window System 735 --with-pkg-config[=CMD] enable/disable use of pkg-config and its name CMD 736 --with-xpm[=DIR] use Xpm library for colored icon, may specify path 737 --without-xinerama do not use Xinerama extension for multiscreen support 738 --with-Xaw3d link with Xaw 3d library 739 --with-Xaw3dxft link with Xaw 3d xft library 740 --with-neXtaw link with neXT Athena library 741 --with-XawPlus link with Athena-Plus library 742 --disable-xcursor disable cursorTheme resource 743 --enable-narrowproto enable narrow prototypes for X libraries 744 --enable-imake enable use of imake for definitions 745 --with-man2html[=XXX] use XXX rather than groff 746 Terminal Configuration: 747 --with-terminal-id=V set default decTerminalID (default: vt420) 748 --with-terminal-type=T set default $TERM (default: xterm) 749 --enable-backarrow-key set default backarrowKey resource (default: true) 750 --enable-backarrow-is-erase set default backarrowKeyIsErase resource (default: false) 751 --enable-delete-is-del set default deleteIsDEL resource (default: maybe) 752 --enable-pty-erase set default ptyInitialErase resource (default: maybe) 753 --enable-alt-sends-esc set default altSendsEscape resource (default: no) 754 --enable-meta-sends-esc set default metaSendsEscape resource (default: no) 755 --with-own-terminfo[=P] set default $TERMINFO (default: from environment) 756 --enable-env-terminfo setenv $TERMINFO if --with-own-terminfo gives value 757 Optional Features: 758 --disable-active-icon disable X11R6.3 active-icon feature 759 --disable-ansi-color disable ANSI color 760 --disable-16-color disable 16-color support 761 --disable-256-color disable 256-color support 762 --disable-direct-color disable direct-color support 763 --disable-88-color disable 88-color support 764 --disable-blink-cursor disable support for blinking cursor 765 --enable-block-select meta-button1 begins block-selection 766 --enable-broken-osc allow broken Linux OSC-strings 767 --disable-broken-st disallow broken string-terminators 768 --enable-builtin-xpms compile-in icon data 769 --disable-c1-print disallow -k8 option for printable 128-159 770 --disable-bold-color disable PC-style mapping of bold colors 771 --disable-color-class disable separate color class resources 772 --disable-color-mode disable default colorMode resource 773 --disable-highlighting disable support for color highlighting 774 --disable-doublechars disable support for double-size chars 775 --disable-boxchars disable fallback-support for box chars 776 --disable-exec-selection disable "exec-formatted" and "exec-selection" actions 777 --enable-exec-xterm enable "spawn-new-terminal" action 778 --enable-double-buffer enable double-buffering in default resources 779 --disable-freetype disable freetype library-support 780 --with-freetype-config configure script to use for FreeType 781 --with-freetype-cflags -D/-I options for compiling with FreeType 782 --with-freetype-libs -L/-l options to link FreeType 783 --enable-hp-fkeys enable support for HP-style function keys 784 --enable-sco-fkeys enable support for SCO-style function keys 785 --disable-sun-fkeys disable support for Sun-style function keys 786 --disable-fifo-lines disable FIFO-storage for saved-lines 787 --disable-i18n disable internationalization 788 --disable-initial-erase disable setup for stty erase 789 --disable-input-method disable input-method 790 --enable-load-vt-fonts enable load-vt-fonts() action 791 --enable-logging enable logging 792 --enable-logfile-exec enable exec'd logfile filter 793 --disable-maximize disable actions for iconify/deiconify/maximize/restore 794 --disable-num-lock disable NumLock keypad support 795 --disable-paste64 disable get/set base64 selection data 796 --disable-pty-handshake disable pty-handshake support 797 --disable-readline-mouse disable support for mouse in readline applications 798 --disable-regex disable regular-expression selections 799 --with-pcre2 use PCRE2 for regular-expressions 800 --with-pcre use PCRE for regular-expressions 801 --disable-rightbar disable right-scrollbar support 802 --disable-samename disable check for redundant name-change 803 --disable-selection-ops disable selection-action operations 804 --disable-session-mgt disable support for session management 805 --enable-status-line enable support for status-line 806 --disable-tcap-fkeys disable termcap function-keys support 807 --disable-tcap-query disable compiled-in termcap-query support 808 --disable-tek4014 disable tek4014 emulation 809 --enable-toolbar compile-in toolbar for pulldown menus 810 --disable-vt52 disable VT52 emulation 811 --disable-wide-attrs disable wide-attribute support 812 --disable-wide-chars disable wide-character support 813 --enable-16bit-chars enable 16-bit character support 814 --enable-mini-luit enable mini-luit (built-in Latin9 support) 815 --disable-luit enable luit filter (Unicode translation) 816 --enable-dabbrev enable dynamic-abbreviation support 817 --enable-dec-locator enable DECterm Locator support 818 --disable-screen-dumps disable XHTML and SVG screen dumps 819 --enable-regis-graphics enable ReGIS graphics support 820 --disable-sixel-graphics disable sixel graphics support 821 --disable-print-graphics disable screen dump to sixel support 822 --disable-rectangles disable VT420 rectangle support 823 --disable-ziconbeep disable -ziconbeep option 824 Testing/development Options: 825 --enable-trace test: set to enable debugging traces 826 --with-dmalloc test: use Gray Watson's dmalloc library 827 --with-dbmalloc test: use Conor Cahill's dbmalloc library 828 --with-valgrind test: use valgrind 829 --disable-leaks test: free permanent memory, analyze leaks 830 --disable-echo do not display "compiling" commands 831 --enable-xmc-glitch test: enable xmc magic-cookie emulation 832 --enable-warnings test: turn on gcc compiler warnings 833 --enable-stdnoreturn enable C11 _Noreturn feature for diagnostics 834 --disable-rpath-hack don't add rpath options for additional libraries 835 836 Some influential environment variables: 837 CC C compiler command 838 CFLAGS C compiler flags 839 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 840 nonstandard directory <lib dir> 841 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 842 headers in a nonstandard directory <include dir> 843 CPP C preprocessor 844 845 Use these variables to override the choices made by `configure' or to help 846 it to find libraries and programs with nonstandard names/locations. 847 848 EOF 849 fi 850 851 if test "$ac_init_help" = "recursive"; then 852 # If there are subdirs, report their specific --help. 853 ac_popdir=`pwd` 854 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 855 cd "$ac_subdir" 856 # A "../" for each directory in /$ac_subdir. 857 ac_dots=`echo "$ac_subdir" | 858 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 859 860 case "$srcdir" in 861 .) # No --srcdir option. We are building in place. 862 ac_sub_srcdir="$srcdir" ;; 863 [\\/]* | ?:[\\/]* ) # Absolute path. 864 ac_sub_srcdir="$srcdir/$ac_subdir" ;; 865 *) # Relative path. 866 ac_sub_srcdir="$ac_dots$srcdir/$ac_subdir" ;; 867 esac 868 869 # Check for guested configure; otherwise get Cygnus style configure. 870 if test -f "$ac_sub_srcdir/configure.gnu"; then 871 echo 872 $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive 873 elif test -f "$ac_sub_srcdir/configure"; then 874 echo 875 $SHELL "$ac_sub_srcdir/configure" --help=recursive 876 elif test -f "$ac_sub_srcdir/configure.ac" || 877 test -f "$ac_sub_srcdir/configure.in"; then 878 echo 879 "$ac_configure" --help 880 else 881 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 882 fi 883 cd "$ac_popdir" 884 done 885 fi 886 887 test -n "$ac_init_help" && exit 0 888 if "$ac_init_version"; then 889 cat <<\EOF 890 891 Copyright 2003-2022,2023 Thomas E. Dickey 892 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 893 Free Software Foundation, Inc. 894 This configure script is free software; the Free Software Foundation 895 gives unlimited permission to copy, distribute and modify it. 896 EOF 897 exit 0 898 fi 899 exec 5>config.log 900 cat >&5 <<EOF 901 This file contains any messages produced by compilers while 902 running configure, to aid debugging if configure makes a mistake. 903 904 It was created by $as_me, which was 905 generated by GNU Autoconf 2.52.20240618. Invocation command line was 906 907 $ $0 $@ 908 909 EOF 910 { 911 cat <<_ASUNAME 912 ## ---------- ## 913 ## Platform. ## 914 ## ---------- ## 915 916 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 917 uname -m = `(uname -m) 2>/dev/null || echo unknown` 918 uname -r = `(uname -r) 2>/dev/null || echo unknown` 919 uname -s = `(uname -s) 2>/dev/null || echo unknown` 920 uname -v = `(uname -v) 2>/dev/null || echo unknown` 921 922 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 923 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 924 925 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 926 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 927 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 928 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 929 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 930 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 931 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 932 933 PATH = $PATH 934 935 _ASUNAME 936 } >&5 937 938 cat >&5 <<EOF 939 ## ------------ ## 940 ## Core tests. ## 941 ## ------------ ## 942 943 EOF 944 945 # Keep a trace of the command line. 946 # Strip out --no-create and --no-recursion so they do not pile up. 947 # Also quote any args containing shell meta-characters. 948 ac_configure_args= 949 ac_sep= 950 for ac_arg 951 do 952 case "$ac_arg" in 953 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 954 | --no-cr | --no-c) ;; 955 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 956 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 957 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 958 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 959 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 960 ac_sep=" " ;; 961 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 962 ac_sep=" " ;; 963 esac 964 # Get rid of the leading space. 965 done 966 967 # When interrupted or exit'd, cleanup temporary files, and complete 968 # config.log. We remove comments because anyway the quotes in there 969 # would cause problems or look ugly. 970 trap 'exit_status=$? 971 # Save into config.log some information that might help in debugging. 972 echo >&5 973 echo "## ----------------- ##" >&5 974 echo "## Cache variables. ##" >&5 975 echo "## ----------------- ##" >&5 976 echo >&5 977 # The following way of writing the cache mishandles newlines in values, 978 { 979 (set) 2>&1 | 980 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 981 *ac_space=\ *) 982 sed -n \ 983 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 984 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 985 ;; 986 *) 987 sed -n \ 988 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 989 ;; 990 esac; 991 } >&5 992 sed "/^$/d" confdefs.h >conftest.log 993 if test -s conftest.log; then 994 echo >&5 995 echo "## ------------ ##" >&5 996 echo "## confdefs.h. ##" >&5 997 echo "## ------------ ##" >&5 998 echo >&5 999 cat conftest.log >&5 1000 fi 1001 (echo; echo) >&5 1002 test "$ac_signal" != 0 && 1003 echo "$as_me: caught signal $ac_signal" >&5 1004 echo "$as_me: exit $exit_status" >&5 1005 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 1006 exit $exit_status 1007 ' 0 1008 for ac_signal in 1 2 13 15; do 1009 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' "$ac_signal" 1010 done 1011 ac_signal=0 1012 1013 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1014 rm -rf conftest* confdefs.h 1015 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 1016 echo >confdefs.h 1017 1018 # Let the site file select an alternate cache file if it wants to. 1019 # Prefer explicitly selected file to automatically selected ones. 1020 if test -z "$CONFIG_SITE"; then 1021 if test "x$prefix" != xNONE; then 1022 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1023 else 1024 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1025 fi 1026 fi 1027 for ac_site_file in $CONFIG_SITE; do 1028 if test -r "$ac_site_file"; then 1029 { echo "$as_me:1029: loading site script $ac_site_file" >&5 1030 echo "$as_me: loading site script $ac_site_file" >&6;} 1031 cat "$ac_site_file" >&5 1032 . "$ac_site_file" 1033 fi 1034 done 1035 1036 if test -r "$cache_file"; then 1037 # Some versions of bash will fail to source /dev/null (special 1038 # files actually), so we avoid doing that. 1039 if test -f "$cache_file"; then 1040 { echo "$as_me:1040: loading cache $cache_file" >&5 1041 echo "$as_me: loading cache $cache_file" >&6;} 1042 case $cache_file in 1043 [\\/]* | ?:[\\/]* ) . $cache_file;; 1044 *) . ./$cache_file;; 1045 esac 1046 fi 1047 else 1048 { echo "$as_me:1048: creating cache $cache_file" >&5 1049 echo "$as_me: creating cache $cache_file" >&6;} 1050 >$cache_file 1051 fi 1052 1053 # Check that the precious variables saved in the cache have kept the same 1054 # value. 1055 ac_cache_corrupted=false 1056 for ac_var in `(set) 2>&1 | 1057 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1058 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1059 eval ac_new_set=\$ac_env_${ac_var}_set 1060 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1061 eval ac_new_val="\$ac_env_${ac_var}_value" 1062 case "$ac_old_set,$ac_new_set" in 1063 set,) 1064 { echo "$as_me:1064: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1065 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1066 ac_cache_corrupted=: ;; 1067 ,set) 1068 { echo "$as_me:1068: error: \`$ac_var' was not set in the previous run" >&5 1069 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1070 ac_cache_corrupted=: ;; 1071 ,);; 1072 *) 1073 if test "x$ac_old_val" != "x$ac_new_val"; then 1074 { echo "$as_me:1074: error: \`$ac_var' has changed since the previous run:" >&5 1075 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1076 { echo "$as_me:1076: former value: $ac_old_val" >&5 1077 echo "$as_me: former value: $ac_old_val" >&2;} 1078 { echo "$as_me:1078: current value: $ac_new_val" >&5 1079 echo "$as_me: current value: $ac_new_val" >&2;} 1080 ac_cache_corrupted=: 1081 fi;; 1082 esac 1083 # Pass precious variables to config.status. It doesn't matter if 1084 # we pass some twice (in addition to the command line arguments). 1085 if test "$ac_new_set" = set; then 1086 case "$ac_new_val" in 1087 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1088 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` 1089 ac_configure_args="$ac_configure_args '$ac_arg'" 1090 ;; 1091 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" 1092 ;; 1093 esac 1094 fi 1095 done 1096 if "$ac_cache_corrupted"; then 1097 { echo "$as_me:1097: error: changes in the environment can compromise the build" >&5 1098 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1099 { { echo "$as_me:1099: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1100 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1101 { (exit 1); exit 1; }; } 1102 fi 1103 1104 ac_ext=c 1105 ac_cpp='$CPP $CPPFLAGS' 1106 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 1107 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 1108 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1109 ac_main_return="return" 1110 1111 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in 1112 *c*,-n*) ECHO_N= 1113 ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway 1114 ECHO_T=' ' 1115 ;; 1116 *c*,* ) ECHO_N=-n 1117 ECHO_C= 1118 ECHO_T= 1119 ;; 1120 *) ECHO_N= 1121 ECHO_C='\c' 1122 ECHO_T= 1123 ;; 1124 esac 1125 echo "#! $SHELL" >conftest.sh 1126 echo "exit 0" >>conftest.sh 1127 chmod +x conftest.sh 1128 if { (echo "$as_me:1128: PATH=\".;.\"; conftest.sh") >&5 1129 (PATH=".;."; conftest.sh) 2>&5 1130 ac_status=$? 1131 echo "$as_me:1131: \$? = $ac_status" >&5 1132 (exit "$ac_status"); }; then 1133 ac_path_separator=';' 1134 else 1135 ac_path_separator=: 1136 fi 1137 PATH_SEPARATOR="$ac_path_separator" 1138 rm -f conftest.sh 1139 1140 ac_config_headers="$ac_config_headers xtermcfg.h:xtermcfg.hin" 1141 1142 ac_aux_dir= 1143 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1144 if test -f "$ac_dir/install-sh"; then 1145 ac_aux_dir=$ac_dir 1146 ac_install_sh="$ac_aux_dir/install-sh -c" 1147 break 1148 elif test -f "$ac_dir/install.sh"; then 1149 ac_aux_dir=$ac_dir 1150 ac_install_sh="$ac_aux_dir/install.sh -c" 1151 break 1152 elif test -f "$ac_dir/shtool"; then 1153 ac_aux_dir=$ac_dir 1154 ac_install_sh="$ac_aux_dir/shtool install -c" 1155 break 1156 fi 1157 done 1158 if test -z "$ac_aux_dir"; then 1159 { { echo "$as_me:1159: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1160 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1161 { (exit 1); exit 1; }; } 1162 fi 1163 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1164 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1165 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1166 1167 # Make sure we can run config.sub. 1168 $ac_config_sub sun4 >/dev/null 2>&1 || 1169 { { echo "$as_me:1169: error: cannot run $ac_config_sub" >&5 1170 echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1171 { (exit 1); exit 1; }; } 1172 1173 echo "$as_me:1173: checking build system type" >&5 1174 echo $ECHO_N "checking build system type... $ECHO_C" >&6 1175 if test "${ac_cv_build+set}" = set; then 1176 echo $ECHO_N "(cached) $ECHO_C" >&6 1177 else 1178 ac_cv_build_alias=$build_alias 1179 test -z "$ac_cv_build_alias" && 1180 ac_cv_build_alias=`$ac_config_guess` 1181 test -z "$ac_cv_build_alias" && 1182 { { echo "$as_me:1182: error: cannot guess build type; you must specify one" >&5 1183 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1184 { (exit 1); exit 1; }; } 1185 ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` || 1186 { { echo "$as_me:1186: error: $ac_config_sub $ac_cv_build_alias failed." >&5 1187 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} 1188 { (exit 1); exit 1; }; } 1189 1190 fi 1191 echo "$as_me:1191: result: $ac_cv_build" >&5 1192 echo "${ECHO_T}$ac_cv_build" >&6 1193 build=$ac_cv_build 1194 build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1195 build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1196 build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1197 1198 if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then 1199 echo "$as_me:1199: checking host system type" >&5 1200 echo $ECHO_N "checking host system type... $ECHO_C" >&6 1201 if test "${ac_cv_host+set}" = set; then 1202 echo $ECHO_N "(cached) $ECHO_C" >&6 1203 else 1204 ac_cv_host_alias=$host_alias 1205 test -z "$ac_cv_host_alias" && 1206 ac_cv_host_alias=$ac_cv_build_alias 1207 ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` || 1208 { { echo "$as_me:1208: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1209 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1210 { (exit 1); exit 1; }; } 1211 1212 fi 1213 echo "$as_me:1213: result: $ac_cv_host" >&5 1214 echo "${ECHO_T}$ac_cv_host" >&6 1215 host=$ac_cv_host 1216 host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1217 host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1218 host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1219 1220 system_name="$host_os" 1221 else 1222 system_name="`(uname -s -r) 2>/dev/null`" 1223 if test -z "$system_name" ; then 1224 system_name="`(hostname) 2>/dev/null`" 1225 fi 1226 fi 1227 test -n "$system_name" && 1228 cat >>confdefs.h <<EOF 1229 #define SYSTEM_NAME "$system_name" 1230 EOF 1231 1232 if test "${cf_cv_system_name+set}" = set; then 1233 echo $ECHO_N "(cached) $ECHO_C" >&6 1234 else 1235 cf_cv_system_name="$system_name" 1236 fi 1237 1238 test -z "$system_name" && system_name="$cf_cv_system_name" 1239 test -n "$cf_cv_system_name" && echo "$as_me:1239: result: Configuring for $cf_cv_system_name" >&5 1240 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6 1241 1242 if test ".$system_name" != ".$cf_cv_system_name" ; then 1243 echo "$as_me:1243: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5 1244 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6 1245 { { echo "$as_me:1245: error: \"Please remove config.cache and try again.\"" >&5 1246 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;} 1247 { (exit 1); exit 1; }; } 1248 fi 1249 1250 ### checks for alternative programs 1251 1252 case "$host_os" in 1253 (openedition) : "${CFLAGS=\"-O2 -Wc,dll -Wl,EDIT=NO\"}" 1254 : "${CPPFLAGS=\"-D_ALL_SOURCE\"}" 1255 : "${LIBS=\"/usr/lib/Xaw.x /usr/lib/SM.x /usr/lib/ICE.x /usr/lib/X11.x\"}" 1256 : "${CC=c89}";; 1257 (darwin*) 1258 : "${LDFLAGS}=\"${LDFLAGS} -Wl,-bind_at_load\"";; 1259 esac 1260 1261 ac_ext=c 1262 ac_cpp='$CPP $CPPFLAGS' 1263 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 1264 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 1265 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1266 ac_main_return="return" 1267 if test -n "$ac_tool_prefix"; then 1268 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1269 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1270 echo "$as_me:1270: checking for $ac_word" >&5 1271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1272 if test "${ac_cv_prog_CC+set}" = set; then 1273 echo $ECHO_N "(cached) $ECHO_C" >&6 1274 else 1275 if test -n "$CC"; then 1276 ac_cv_prog_CC="$CC" # Let the user override the test. 1277 else 1278 ac_save_IFS=$IFS; IFS=$ac_path_separator 1279 ac_dummy="$PATH" 1280 for ac_dir in $ac_dummy; do 1281 IFS=$ac_save_IFS 1282 test -z "$ac_dir" && ac_dir=. 1283 $as_executable_p "$ac_dir/$ac_word" || continue 1284 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1285 echo "$as_me:1285: found $ac_dir/$ac_word" >&5 1286 break 1287 done 1288 1289 fi 1290 fi 1291 CC=$ac_cv_prog_CC 1292 if test -n "$CC"; then 1293 echo "$as_me:1293: result: $CC" >&5 1294 echo "${ECHO_T}$CC" >&6 1295 else 1296 echo "$as_me:1296: result: no" >&5 1297 echo "${ECHO_T}no" >&6 1298 fi 1299 1300 fi 1301 if test -z "$ac_cv_prog_CC"; then 1302 ac_ct_CC=$CC 1303 # Extract the first word of "gcc", so it can be a program name with args. 1304 set dummy gcc; ac_word=$2 1305 echo "$as_me:1305: checking for $ac_word" >&5 1306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1307 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1308 echo $ECHO_N "(cached) $ECHO_C" >&6 1309 else 1310 if test -n "$ac_ct_CC"; then 1311 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1312 else 1313 ac_save_IFS=$IFS; IFS=$ac_path_separator 1314 ac_dummy="$PATH" 1315 for 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 1319 ac_cv_prog_ac_ct_CC="gcc" 1320 echo "$as_me:1320: found $ac_dir/$ac_word" >&5 1321 break 1322 done 1323 1324 fi 1325 fi 1326 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1327 if test -n "$ac_ct_CC"; then 1328 echo "$as_me:1328: result: $ac_ct_CC" >&5 1329 echo "${ECHO_T}$ac_ct_CC" >&6 1330 else 1331 echo "$as_me:1331: result: no" >&5 1332 echo "${ECHO_T}no" >&6 1333 fi 1334 1335 CC=$ac_ct_CC 1336 else 1337 CC="$ac_cv_prog_CC" 1338 fi 1339 1340 if test -z "$CC"; then 1341 if test -n "$ac_tool_prefix"; then 1342 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1343 set dummy ${ac_tool_prefix}cc; ac_word=$2 1344 echo "$as_me:1344: checking for $ac_word" >&5 1345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1346 if test "${ac_cv_prog_CC+set}" = set; then 1347 echo $ECHO_N "(cached) $ECHO_C" >&6 1348 else 1349 if test -n "$CC"; then 1350 ac_cv_prog_CC="$CC" # Let the user override the test. 1351 else 1352 ac_save_IFS=$IFS; IFS=$ac_path_separator 1353 ac_dummy="$PATH" 1354 for ac_dir in $ac_dummy; do 1355 IFS=$ac_save_IFS 1356 test -z "$ac_dir" && ac_dir=. 1357 $as_executable_p "$ac_dir/$ac_word" || continue 1358 ac_cv_prog_CC="${ac_tool_prefix}cc" 1359 echo "$as_me:1359: found $ac_dir/$ac_word" >&5 1360 break 1361 done 1362 1363 fi 1364 fi 1365 CC=$ac_cv_prog_CC 1366 if test -n "$CC"; then 1367 echo "$as_me:1367: result: $CC" >&5 1368 echo "${ECHO_T}$CC" >&6 1369 else 1370 echo "$as_me:1370: result: no" >&5 1371 echo "${ECHO_T}no" >&6 1372 fi 1373 1374 fi 1375 if test -z "$ac_cv_prog_CC"; then 1376 ac_ct_CC=$CC 1377 # Extract the first word of "cc", so it can be a program name with args. 1378 set dummy cc; ac_word=$2 1379 echo "$as_me:1379: checking for $ac_word" >&5 1380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1381 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1382 echo $ECHO_N "(cached) $ECHO_C" >&6 1383 else 1384 if test -n "$ac_ct_CC"; then 1385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1386 else 1387 ac_save_IFS=$IFS; IFS=$ac_path_separator 1388 ac_dummy="$PATH" 1389 for ac_dir in $ac_dummy; do 1390 IFS=$ac_save_IFS 1391 test -z "$ac_dir" && ac_dir=. 1392 $as_executable_p "$ac_dir/$ac_word" || continue 1393 ac_cv_prog_ac_ct_CC="cc" 1394 echo "$as_me:1394: found $ac_dir/$ac_word" >&5 1395 break 1396 done 1397 1398 fi 1399 fi 1400 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1401 if test -n "$ac_ct_CC"; then 1402 echo "$as_me:1402: result: $ac_ct_CC" >&5 1403 echo "${ECHO_T}$ac_ct_CC" >&6 1404 else 1405 echo "$as_me:1405: result: no" >&5 1406 echo "${ECHO_T}no" >&6 1407 fi 1408 1409 CC=$ac_ct_CC 1410 else 1411 CC="$ac_cv_prog_CC" 1412 fi 1413 1414 fi 1415 if test -z "$CC"; then 1416 # Extract the first word of "cc", so it can be a program name with args. 1417 set dummy cc; ac_word=$2 1418 echo "$as_me:1418: checking for $ac_word" >&5 1419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1420 if test "${ac_cv_prog_CC+set}" = set; then 1421 echo $ECHO_N "(cached) $ECHO_C" >&6 1422 else 1423 if test -n "$CC"; then 1424 ac_cv_prog_CC="$CC" # Let the user override the test. 1425 else 1426 ac_prog_rejected=no 1427 ac_save_IFS=$IFS; IFS=$ac_path_separator 1428 ac_dummy="$PATH" 1429 for ac_dir in $ac_dummy; do 1430 IFS=$ac_save_IFS 1431 test -z "$ac_dir" && ac_dir=. 1432 $as_executable_p "$ac_dir/$ac_word" || continue 1433 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1434 ac_prog_rejected=yes 1435 continue 1436 fi 1437 ac_cv_prog_CC="cc" 1438 echo "$as_me:1438: found $ac_dir/$ac_word" >&5 1439 break 1440 done 1441 1442 if test "$ac_prog_rejected" = yes; then 1443 # We found a bogon in the path, so make sure we never use it. 1444 set dummy $ac_cv_prog_CC 1445 shift 1446 if test $# != 0; then 1447 # We chose a different compiler from the bogus one. 1448 # However, it has the same basename, so the bogon will be chosen 1449 # first if we set CC to just the basename; use the full file name. 1450 shift 1451 set dummy "$ac_dir/$ac_word" ${1+"$@"} 1452 shift 1453 ac_cv_prog_CC="$@" 1454 fi 1455 fi 1456 fi 1457 fi 1458 CC=$ac_cv_prog_CC 1459 if test -n "$CC"; then 1460 echo "$as_me:1460: result: $CC" >&5 1461 echo "${ECHO_T}$CC" >&6 1462 else 1463 echo "$as_me:1463: result: no" >&5 1464 echo "${ECHO_T}no" >&6 1465 fi 1466 1467 fi 1468 if test -z "$CC"; then 1469 if test -n "$ac_tool_prefix"; then 1470 for ac_prog in cl 1471 do 1472 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1473 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1474 echo "$as_me:1474: checking for $ac_word" >&5 1475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1476 if test "${ac_cv_prog_CC+set}" = set; then 1477 echo $ECHO_N "(cached) $ECHO_C" >&6 1478 else 1479 if test -n "$CC"; then 1480 ac_cv_prog_CC="$CC" # Let the user override the test. 1481 else 1482 ac_save_IFS=$IFS; IFS=$ac_path_separator 1483 ac_dummy="$PATH" 1484 for 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 1488 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1489 echo "$as_me:1489: found $ac_dir/$ac_word" >&5 1490 break 1491 done 1492 1493 fi 1494 fi 1495 CC=$ac_cv_prog_CC 1496 if test -n "$CC"; then 1497 echo "$as_me:1497: result: $CC" >&5 1498 echo "${ECHO_T}$CC" >&6 1499 else 1500 echo "$as_me:1500: result: no" >&5 1501 echo "${ECHO_T}no" >&6 1502 fi 1503 1504 test -n "$CC" && break 1505 done 1506 fi 1507 if test -z "$CC"; then 1508 ac_ct_CC=$CC 1509 for ac_prog in cl 1510 do 1511 # Extract the first word of "$ac_prog", so it can be a program name with args. 1512 set dummy $ac_prog; ac_word=$2 1513 echo "$as_me:1513: checking for $ac_word" >&5 1514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1515 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1516 echo $ECHO_N "(cached) $ECHO_C" >&6 1517 else 1518 if test -n "$ac_ct_CC"; then 1519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1520 else 1521 ac_save_IFS=$IFS; IFS=$ac_path_separator 1522 ac_dummy="$PATH" 1523 for ac_dir in $ac_dummy; do 1524 IFS=$ac_save_IFS 1525 test -z "$ac_dir" && ac_dir=. 1526 $as_executable_p "$ac_dir/$ac_word" || continue 1527 ac_cv_prog_ac_ct_CC="$ac_prog" 1528 echo "$as_me:1528: found $ac_dir/$ac_word" >&5 1529 break 1530 done 1531 1532 fi 1533 fi 1534 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1535 if test -n "$ac_ct_CC"; then 1536 echo "$as_me:1536: result: $ac_ct_CC" >&5 1537 echo "${ECHO_T}$ac_ct_CC" >&6 1538 else 1539 echo "$as_me:1539: result: no" >&5 1540 echo "${ECHO_T}no" >&6 1541 fi 1542 1543 test -n "$ac_ct_CC" && break 1544 done 1545 1546 CC=$ac_ct_CC 1547 fi 1548 1549 fi 1550 1551 test -z "$CC" && { { echo "$as_me:1551: error: no acceptable cc found in \$PATH" >&5 1552 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1553 { (exit 1); exit 1; }; } 1554 1555 # Provide some information about the compiler. 1556 echo "$as_me:1556:" \ 1557 "checking for C compiler version" >&5 1558 ac_compiler=`set X $ac_compile; echo "$2"` 1559 { (eval echo "$as_me:1559: \"$ac_compiler --version </dev/null >&5\"") >&5 1560 (eval $ac_compiler --version </dev/null >&5) 2>&5 1561 ac_status=$? 1562 echo "$as_me:1562: \$? = $ac_status" >&5 1563 (exit "$ac_status"); } 1564 { (eval echo "$as_me:1564: \"$ac_compiler -v </dev/null >&5\"") >&5 1565 (eval $ac_compiler -v </dev/null >&5) 2>&5 1566 ac_status=$? 1567 echo "$as_me:1567: \$? = $ac_status" >&5 1568 (exit "$ac_status"); } 1569 { (eval echo "$as_me:1569: \"$ac_compiler -V </dev/null >&5\"") >&5 1570 (eval $ac_compiler -V </dev/null >&5) 2>&5 1571 ac_status=$? 1572 echo "$as_me:1572: \$? = $ac_status" >&5 1573 (exit "$ac_status"); } 1574 1575 cat >"conftest.$ac_ext" <<_ACEOF 1576 #line 1576 "configure" 1577 #include "confdefs.h" 1578 1579 int 1580 main (void) 1581 { 1582 1583 ; 1584 return 0; 1585 } 1586 _ACEOF 1587 ac_clean_files_save=$ac_clean_files 1588 ac_clean_files="$ac_clean_files a.out a.exe" 1589 # Try to create an executable without -o first, disregard a.out. 1590 # It will help us diagnose broken compilers, and finding out an intuition 1591 # of exeext. 1592 echo "$as_me:1592: checking for C compiler default output" >&5 1593 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1594 ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'` 1595 if { (eval echo "$as_me:1595: \"$ac_link_default\"") >&5 1596 (eval $ac_link_default) 2>&5 1597 ac_status=$? 1598 echo "$as_me:1598: \$? = $ac_status" >&5 1599 (exit "$ac_status"); }; then 1600 # Find the output, starting from the most likely. This scheme is 1601 # not robust to junk in `.', hence go to wildcards (a.*) only as a last 1602 # resort. 1603 for ac_file in `ls a.exe conftest.exe 2>/dev/null; 1604 ls a.out conftest 2>/dev/null; 1605 ls a.* conftest.* 2>/dev/null`; do 1606 case $ac_file in 1607 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1608 a.out ) # We found the default executable, but exeext='' is most 1609 # certainly right. 1610 break;; 1611 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1612 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 1613 export ac_cv_exeext 1614 break;; 1615 * ) break;; 1616 esac 1617 done 1618 else 1619 echo "$as_me: failed program was:" >&5 1620 cat "conftest.$ac_ext" >&5 1621 { { echo "$as_me:1621: error: C compiler cannot create executables" >&5 1622 echo "$as_me: error: C compiler cannot create executables" >&2;} 1623 { (exit 77); exit 77; }; } 1624 fi 1625 1626 ac_exeext=$ac_cv_exeext 1627 echo "$as_me:1627: result: $ac_file" >&5 1628 echo "${ECHO_T}$ac_file" >&6 1629 1630 # Check the compiler produces executables we can run. If not, either 1631 # the compiler is broken, or we cross compile. 1632 echo "$as_me:1632: checking whether the C compiler works" >&5 1633 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1634 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1635 # If not cross compiling, check that we can run a simple program. 1636 if test "$cross_compiling" != yes; then 1637 if { ac_try='./$ac_file' 1638 { (eval echo "$as_me:1638: \"$ac_try\"") >&5 1639 (eval $ac_try) 2>&5 1640 ac_status=$? 1641 echo "$as_me:1641: \$? = $ac_status" >&5 1642 (exit "$ac_status"); }; }; then 1643 cross_compiling=no 1644 else 1645 if test "$cross_compiling" = maybe; then 1646 cross_compiling=yes 1647 else 1648 { { echo "$as_me:1648: error: cannot run C compiled programs. 1649 If you meant to cross compile, use \`--host'." >&5 1650 echo "$as_me: error: cannot run C compiled programs. 1651 If you meant to cross compile, use \`--host'." >&2;} 1652 { (exit 1); exit 1; }; } 1653 fi 1654 fi 1655 fi 1656 echo "$as_me:1656: result: yes" >&5 1657 echo "${ECHO_T}yes" >&6 1658 1659 rm -f a.out a.exe "conftest$ac_cv_exeext" 1660 ac_clean_files=$ac_clean_files_save 1661 # Check the compiler produces executables we can run. If not, either 1662 # the compiler is broken, or we cross compile. 1663 echo "$as_me:1663: checking whether we are cross compiling" >&5 1664 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1665 echo "$as_me:1665: result: $cross_compiling" >&5 1666 echo "${ECHO_T}$cross_compiling" >&6 1667 1668 echo "$as_me:1668: checking for executable suffix" >&5 1669 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1670 if { (eval echo "$as_me:1670: \"$ac_link\"") >&5 1671 (eval $ac_link) 2>&5 1672 ac_status=$? 1673 echo "$as_me:1673: \$? = $ac_status" >&5 1674 (exit "$ac_status"); }; then 1675 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1676 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1677 # work properly (i.e., refer to `conftest.exe'), while it won't with 1678 # `rm'. 1679 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1680 case $ac_file in 1681 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1682 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1683 export ac_cv_exeext 1684 break;; 1685 * ) break;; 1686 esac 1687 done 1688 else 1689 { { echo "$as_me:1689: error: cannot compute EXEEXT: cannot compile and link" >&5 1690 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1691 { (exit 1); exit 1; }; } 1692 fi 1693 1694 rm -f "conftest$ac_cv_exeext" 1695 echo "$as_me:1695: result: $ac_cv_exeext" >&5 1696 echo "${ECHO_T}$ac_cv_exeext" >&6 1697 1698 rm -f "conftest.$ac_ext" 1699 EXEEXT=$ac_cv_exeext 1700 ac_exeext=$EXEEXT 1701 echo "$as_me:1701: checking for object suffix" >&5 1702 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 1703 if test "${ac_cv_objext+set}" = set; then 1704 echo $ECHO_N "(cached) $ECHO_C" >&6 1705 else 1706 cat >"conftest.$ac_ext" <<_ACEOF 1707 #line 1707 "configure" 1708 #include "confdefs.h" 1709 1710 int 1711 main (void) 1712 { 1713 1714 ; 1715 return 0; 1716 } 1717 _ACEOF 1718 rm -f conftest.o conftest.obj 1719 if { (eval echo "$as_me:1719: \"$ac_compile\"") >&5 1720 (eval $ac_compile) 2>&5 1721 ac_status=$? 1722 echo "$as_me:1722: \$? = $ac_status" >&5 1723 (exit "$ac_status"); }; then 1724 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1725 case $ac_file in 1726 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;; 1727 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1728 break;; 1729 esac 1730 done 1731 else 1732 echo "$as_me: failed program was:" >&5 1733 cat "conftest.$ac_ext" >&5 1734 { { echo "$as_me:1734: error: cannot compute OBJEXT: cannot compile" >&5 1735 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1736 { (exit 1); exit 1; }; } 1737 fi 1738 1739 rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext" 1740 fi 1741 echo "$as_me:1741: result: $ac_cv_objext" >&5 1742 echo "${ECHO_T}$ac_cv_objext" >&6 1743 OBJEXT=$ac_cv_objext 1744 ac_objext=$OBJEXT 1745 echo "$as_me:1745: checking whether we are using the GNU C compiler" >&5 1746 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1747 if test "${ac_cv_c_compiler_gnu+set}" = set; then 1748 echo $ECHO_N "(cached) $ECHO_C" >&6 1749 else 1750 cat >"conftest.$ac_ext" <<_ACEOF 1751 #line 1751 "configure" 1752 #include "confdefs.h" 1753 1754 int 1755 main (void) 1756 { 1757 #ifndef __GNUC__ 1758 choke me 1759 #endif 1760 1761 ; 1762 return 0; 1763 } 1764 _ACEOF 1765 rm -f "conftest.$ac_objext" 1766 if { (eval echo "$as_me:1766: \"$ac_compile\"") >&5 1767 (eval $ac_compile) 2>&5 1768 ac_status=$? 1769 echo "$as_me:1769: \$? = $ac_status" >&5 1770 (exit "$ac_status"); } && 1771 { ac_try='test -s "conftest.$ac_objext"' 1772 { (eval echo "$as_me:1772: \"$ac_try\"") >&5 1773 (eval $ac_try) 2>&5 1774 ac_status=$? 1775 echo "$as_me:1775: \$? = $ac_status" >&5 1776 (exit "$ac_status"); }; }; then 1777 ac_compiler_gnu=yes 1778 else 1779 echo "$as_me: failed program was:" >&5 1780 cat "conftest.$ac_ext" >&5 1781 ac_compiler_gnu=no 1782 fi 1783 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 1784 ac_cv_c_compiler_gnu=$ac_compiler_gnu 1785 1786 fi 1787 echo "$as_me:1787: result: $ac_cv_c_compiler_gnu" >&5 1788 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1789 GCC=`test $ac_compiler_gnu = yes && echo yes` 1790 ac_test_CFLAGS=${CFLAGS+set} 1791 ac_save_CFLAGS=$CFLAGS 1792 CFLAGS="-g" 1793 echo "$as_me:1793: checking whether $CC accepts -g" >&5 1794 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1795 if test "${ac_cv_prog_cc_g+set}" = set; then 1796 echo $ECHO_N "(cached) $ECHO_C" >&6 1797 else 1798 cat >"conftest.$ac_ext" <<_ACEOF 1799 #line 1799 "configure" 1800 #include "confdefs.h" 1801 1802 int 1803 main (void) 1804 { 1805 1806 ; 1807 return 0; 1808 } 1809 _ACEOF 1810 rm -f "conftest.$ac_objext" 1811 if { (eval echo "$as_me:1811: \"$ac_compile\"") >&5 1812 (eval $ac_compile) 2>&5 1813 ac_status=$? 1814 echo "$as_me:1814: \$? = $ac_status" >&5 1815 (exit "$ac_status"); } && 1816 { ac_try='test -s "conftest.$ac_objext"' 1817 { (eval echo "$as_me:1817: \"$ac_try\"") >&5 1818 (eval $ac_try) 2>&5 1819 ac_status=$? 1820 echo "$as_me:1820: \$? = $ac_status" >&5 1821 (exit "$ac_status"); }; }; then 1822 ac_cv_prog_cc_g=yes 1823 else 1824 echo "$as_me: failed program was:" >&5 1825 cat "conftest.$ac_ext" >&5 1826 ac_cv_prog_cc_g=no 1827 fi 1828 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 1829 fi 1830 echo "$as_me:1830: result: $ac_cv_prog_cc_g" >&5 1831 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1832 if test "$ac_test_CFLAGS" = set; then 1833 CFLAGS=$ac_save_CFLAGS 1834 elif test $ac_cv_prog_cc_g = yes; then 1835 if test "$GCC" = yes; then 1836 CFLAGS="-g -O2" 1837 else 1838 CFLAGS="-g" 1839 fi 1840 else 1841 if test "$GCC" = yes; then 1842 CFLAGS="-O2" 1843 else 1844 CFLAGS= 1845 fi 1846 fi 1847 # Some people use a C++ compiler to compile C. Since we use `exit', 1848 # in C++ we need to declare it. In case someone uses the same compiler 1849 # for both compiling C and C++ we need to have the C++ compiler decide 1850 # the declaration of exit, since it's the most demanding environment. 1851 cat >"conftest.$ac_ext" <<_ACEOF 1852 #ifndef __cplusplus 1853 choke me 1854 #endif 1855 _ACEOF 1856 rm -f "conftest.$ac_objext" 1857 if { (eval echo "$as_me:1857: \"$ac_compile\"") >&5 1858 (eval $ac_compile) 2>&5 1859 ac_status=$? 1860 echo "$as_me:1860: \$? = $ac_status" >&5 1861 (exit "$ac_status"); } && 1862 { ac_try='test -s "conftest.$ac_objext"' 1863 { (eval echo "$as_me:1863: \"$ac_try\"") >&5 1864 (eval $ac_try) 2>&5 1865 ac_status=$? 1866 echo "$as_me:1866: \$? = $ac_status" >&5 1867 (exit "$ac_status"); }; }; then 1868 for ac_declaration in \ 1869 ''\ 1870 '#include <stdlib.h>' \ 1871 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1872 'extern "C" void std::exit (int); using std::exit;' \ 1873 'extern "C" void exit (int) throw ();' \ 1874 'extern "C" void exit (int);' \ 1875 'void exit (int);' 1876 do 1877 cat >"conftest.$ac_ext" <<_ACEOF 1878 #line 1878 "configure" 1879 #include "confdefs.h" 1880 #include <stdlib.h> 1881 $ac_declaration 1882 int 1883 main (void) 1884 { 1885 exit (42); 1886 ; 1887 return 0; 1888 } 1889 _ACEOF 1890 rm -f "conftest.$ac_objext" 1891 if { (eval echo "$as_me:1891: \"$ac_compile\"") >&5 1892 (eval $ac_compile) 2>&5 1893 ac_status=$? 1894 echo "$as_me:1894: \$? = $ac_status" >&5 1895 (exit "$ac_status"); } && 1896 { ac_try='test -s "conftest.$ac_objext"' 1897 { (eval echo "$as_me:1897: \"$ac_try\"") >&5 1898 (eval $ac_try) 2>&5 1899 ac_status=$? 1900 echo "$as_me:1900: \$? = $ac_status" >&5 1901 (exit "$ac_status"); }; }; then 1902 : 1903 else 1904 echo "$as_me: failed program was:" >&5 1905 cat "conftest.$ac_ext" >&5 1906 continue 1907 fi 1908 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 1909 cat >"conftest.$ac_ext" <<_ACEOF 1910 #line 1910 "configure" 1911 #include "confdefs.h" 1912 $ac_declaration 1913 int 1914 main (void) 1915 { 1916 exit (42); 1917 ; 1918 return 0; 1919 } 1920 _ACEOF 1921 rm -f "conftest.$ac_objext" 1922 if { (eval echo "$as_me:1922: \"$ac_compile\"") >&5 1923 (eval $ac_compile) 2>&5 1924 ac_status=$? 1925 echo "$as_me:1925: \$? = $ac_status" >&5 1926 (exit "$ac_status"); } && 1927 { ac_try='test -s "conftest.$ac_objext"' 1928 { (eval echo "$as_me:1928: \"$ac_try\"") >&5 1929 (eval $ac_try) 2>&5 1930 ac_status=$? 1931 echo "$as_me:1931: \$? = $ac_status" >&5 1932 (exit "$ac_status"); }; }; then 1933 break 1934 else 1935 echo "$as_me: failed program was:" >&5 1936 cat "conftest.$ac_ext" >&5 1937 fi 1938 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 1939 done 1940 rm -rf conftest* 1941 if test -n "$ac_declaration"; then 1942 echo '#ifdef __cplusplus' >>confdefs.h 1943 echo "$ac_declaration" >>confdefs.h 1944 echo '#endif' >>confdefs.h 1945 fi 1946 1947 else 1948 echo "$as_me: failed program was:" >&5 1949 cat "conftest.$ac_ext" >&5 1950 fi 1951 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 1952 ac_ext=c 1953 ac_cpp='$CPP $CPPFLAGS' 1954 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 1955 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 1956 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1957 ac_main_return="return" 1958 1959 GCC_VERSION=none 1960 if test "$GCC" = yes ; then 1961 echo "$as_me:1961: checking version of $CC" >&5 1962 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 1963 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^[^(]*([^)][^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`" 1964 test -z "$GCC_VERSION" && GCC_VERSION=unknown 1965 echo "$as_me:1965: result: $GCC_VERSION" >&5 1966 echo "${ECHO_T}$GCC_VERSION" >&6 1967 fi 1968 1969 INTEL_COMPILER=no 1970 1971 if test "$GCC" = yes ; then 1972 case "$host_os" in 1973 (linux*|gnu*) 1974 echo "$as_me:1974: checking if this is really Intel C compiler" >&5 1975 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6 1976 cf_save_CFLAGS="$CFLAGS" 1977 CFLAGS="$CFLAGS -no-gcc" 1978 cat >"conftest.$ac_ext" <<_ACEOF 1979 #line 1979 "configure" 1980 #include "confdefs.h" 1981 1982 int 1983 main (void) 1984 { 1985 1986 #ifdef __INTEL_COMPILER 1987 #else 1988 #error __INTEL_COMPILER is not defined 1989 #endif 1990 1991 ; 1992 return 0; 1993 } 1994 _ACEOF 1995 rm -f "conftest.$ac_objext" 1996 if { (eval echo "$as_me:1996: \"$ac_compile\"") >&5 1997 (eval $ac_compile) 2>&5 1998 ac_status=$? 1999 echo "$as_me:1999: \$? = $ac_status" >&5 2000 (exit "$ac_status"); } && 2001 { ac_try='test -s "conftest.$ac_objext"' 2002 { (eval echo "$as_me:2002: \"$ac_try\"") >&5 2003 (eval $ac_try) 2>&5 2004 ac_status=$? 2005 echo "$as_me:2005: \$? = $ac_status" >&5 2006 (exit "$ac_status"); }; }; then 2007 INTEL_COMPILER=yes 2008 cf_save_CFLAGS="$cf_save_CFLAGS -we147" 2009 2010 else 2011 echo "$as_me: failed program was:" >&5 2012 cat "conftest.$ac_ext" >&5 2013 fi 2014 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 2015 CFLAGS="$cf_save_CFLAGS" 2016 echo "$as_me:2016: result: $INTEL_COMPILER" >&5 2017 echo "${ECHO_T}$INTEL_COMPILER" >&6 2018 ;; 2019 esac 2020 fi 2021 2022 CLANG_COMPILER=no 2023 2024 if test "$GCC" = yes ; then 2025 echo "$as_me:2025: checking if this is really Clang C compiler" >&5 2026 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6 2027 cf_save_CFLAGS="$CFLAGS" 2028 cat >"conftest.$ac_ext" <<_ACEOF 2029 #line 2029 "configure" 2030 #include "confdefs.h" 2031 2032 int 2033 main (void) 2034 { 2035 2036 #ifdef __clang__ 2037 #else 2038 #error __clang__ is not defined 2039 #endif 2040 2041 ; 2042 return 0; 2043 } 2044 _ACEOF 2045 rm -f "conftest.$ac_objext" 2046 if { (eval echo "$as_me:2046: \"$ac_compile\"") >&5 2047 (eval $ac_compile) 2>&5 2048 ac_status=$? 2049 echo "$as_me:2049: \$? = $ac_status" >&5 2050 (exit "$ac_status"); } && 2051 { ac_try='test -s "conftest.$ac_objext"' 2052 { (eval echo "$as_me:2052: \"$ac_try\"") >&5 2053 (eval $ac_try) 2>&5 2054 ac_status=$? 2055 echo "$as_me:2055: \$? = $ac_status" >&5 2056 (exit "$ac_status"); }; }; then 2057 CLANG_COMPILER=yes 2058 2059 else 2060 echo "$as_me: failed program was:" >&5 2061 cat "conftest.$ac_ext" >&5 2062 fi 2063 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 2064 CFLAGS="$cf_save_CFLAGS" 2065 echo "$as_me:2065: result: $CLANG_COMPILER" >&5 2066 echo "${ECHO_T}$CLANG_COMPILER" >&6 2067 fi 2068 2069 CLANG_VERSION=none 2070 2071 if test "x$CLANG_COMPILER" = "xyes" ; then 2072 case "$CC" in 2073 (c[1-9][0-9]|*/c[1-9][0-9]) 2074 { echo "$as_me:2074: WARNING: replacing broken compiler alias $CC" >&5 2075 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;} 2076 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`" 2077 CC=clang 2078 ;; 2079 esac 2080 2081 echo "$as_me:2081: checking version of $CC" >&5 2082 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 2083 CLANG_VERSION="`$CC --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(CLANG[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`" 2084 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown 2085 echo "$as_me:2085: result: $CLANG_VERSION" >&5 2086 echo "${ECHO_T}$CLANG_VERSION" >&6 2087 2088 for cf_clang_opt in \ 2089 -Qunused-arguments \ 2090 -Wno-error=implicit-function-declaration 2091 do 2092 echo "$as_me:2092: checking if option $cf_clang_opt works" >&5 2093 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6 2094 cf_save_CFLAGS="$CFLAGS" 2095 CFLAGS="$CFLAGS $cf_clang_opt" 2096 cat >"conftest.$ac_ext" <<_ACEOF 2097 #line 2097 "configure" 2098 #include "confdefs.h" 2099 2100 #include <stdio.h> 2101 int 2102 main (void) 2103 { 2104 2105 printf("hello!\\n"); 2106 ; 2107 return 0; 2108 } 2109 _ACEOF 2110 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 2111 if { (eval echo "$as_me:2111: \"$ac_link\"") >&5 2112 (eval $ac_link) 2>&5 2113 ac_status=$? 2114 echo "$as_me:2114: \$? = $ac_status" >&5 2115 (exit "$ac_status"); } && 2116 { ac_try='test -s "conftest$ac_exeext"' 2117 { (eval echo "$as_me:2117: \"$ac_try\"") >&5 2118 (eval $ac_try) 2>&5 2119 ac_status=$? 2120 echo "$as_me:2120: \$? = $ac_status" >&5 2121 (exit "$ac_status"); }; }; then 2122 2123 cf_clang_optok=yes 2124 else 2125 echo "$as_me: failed program was:" >&5 2126 cat "conftest.$ac_ext" >&5 2127 2128 cf_clang_optok=no 2129 fi 2130 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 2131 echo "$as_me:2131: result: $cf_clang_optok" >&5 2132 echo "${ECHO_T}$cf_clang_optok" >&6 2133 CFLAGS="$cf_save_CFLAGS" 2134 if test "$cf_clang_optok" = yes; then 2135 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6 2136 2137 echo "${as_me:-configure}:2137: testing adding option $cf_clang_opt ..." 1>&5 2138 2139 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 2140 CFLAGS="${CFLAGS}$cf_clang_opt" 2141 2142 fi 2143 done 2144 fi 2145 2146 echo "$as_me:2146: checking for $CC option to accept ANSI C" >&5 2147 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2148 if test "${ac_cv_prog_cc_stdc+set}" = set; then 2149 echo $ECHO_N "(cached) $ECHO_C" >&6 2150 else 2151 ac_cv_prog_cc_stdc=no 2152 ac_save_CC=$CC 2153 cat >"conftest.$ac_ext" <<_ACEOF 2154 #line 2154 "configure" 2155 #include "confdefs.h" 2156 #include <stdarg.h> 2157 #include <stdio.h> 2158 #include <sys/types.h> 2159 #include <sys/stat.h> 2160 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2161 struct buf { int x; }; 2162 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2163 static char *e (char **p, int i) 2164 { 2165 return p[i]; 2166 } 2167 static char *f (char * (*g) (char **, int), char **p, ...) 2168 { 2169 char *s; 2170 va_list v; 2171 va_start (v,p); 2172 s = g (p, va_arg (v,int)); 2173 va_end (v); 2174 return s; 2175 } 2176 int test (int i, double x); 2177 struct s1 {int (*f) (int a);}; 2178 struct s2 {int (*f) (double a);}; 2179 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2180 int argc; 2181 char **argv; 2182 int 2183 main (void) 2184 { 2185 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2186 ; 2187 return 0; 2188 } 2189 _ACEOF 2190 # Don't try gcc -ansi; that turns off useful extensions and 2191 # breaks some systems' header files. 2192 # AIX -qlanglvl=ansi 2193 # Ultrix and OSF/1 -std1 2194 # HP-UX 10.20 and later -Ae 2195 # HP-UX older versions -Aa -D_HPUX_SOURCE 2196 # SVR4 -Xc -D__EXTENSIONS__ 2197 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2198 do 2199 CC="$ac_save_CC $ac_arg" 2200 rm -f "conftest.$ac_objext" 2201 if { (eval echo "$as_me:2201: \"$ac_compile\"") >&5 2202 (eval $ac_compile) 2>&5 2203 ac_status=$? 2204 echo "$as_me:2204: \$? = $ac_status" >&5 2205 (exit "$ac_status"); } && 2206 { ac_try='test -s "conftest.$ac_objext"' 2207 { (eval echo "$as_me:2207: \"$ac_try\"") >&5 2208 (eval $ac_try) 2>&5 2209 ac_status=$? 2210 echo "$as_me:2210: \$? = $ac_status" >&5 2211 (exit "$ac_status"); }; }; then 2212 ac_cv_prog_cc_stdc=$ac_arg 2213 break 2214 else 2215 echo "$as_me: failed program was:" >&5 2216 cat "conftest.$ac_ext" >&5 2217 fi 2218 rm -f "conftest.$ac_objext" 2219 done 2220 rm -f "conftest.$ac_ext" "conftest.$ac_objext" 2221 CC=$ac_save_CC 2222 2223 fi 2224 2225 case "x$ac_cv_prog_cc_stdc" in 2226 x|xno) 2227 echo "$as_me:2227: result: none needed" >&5 2228 echo "${ECHO_T}none needed" >&6 ;; 2229 *) 2230 echo "$as_me:2230: result: $ac_cv_prog_cc_stdc" >&5 2231 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2232 CC="$CC $ac_cv_prog_cc_stdc" ;; 2233 esac 2234 2235 # This should have been defined by AC_PROG_CC 2236 : "${CC:=cc}" 2237 2238 echo "$as_me:2238: checking \$CFLAGS variable" >&5 2239 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6 2240 case "x$CFLAGS" in 2241 (*-[IUD]*) 2242 echo "$as_me:2242: result: broken" >&5 2243 echo "${ECHO_T}broken" >&6 2244 { echo "$as_me:2244: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5 2245 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;} 2246 cf_flags="$CFLAGS" 2247 CFLAGS= 2248 for cf_arg in $cf_flags 2249 do 2250 2251 cf_fix_cppflags=no 2252 cf_new_cflags= 2253 cf_new_cppflags= 2254 cf_new_extra_cppflags= 2255 2256 for cf_add_cflags in $cf_arg 2257 do 2258 case "$cf_fix_cppflags" in 2259 (no) 2260 case "$cf_add_cflags" in 2261 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 2262 case "$cf_add_cflags" in 2263 (-D*) 2264 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2265 2266 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2267 && test -z "${cf_tst_cflags}" \ 2268 && cf_fix_cppflags=yes 2269 2270 if test "$cf_fix_cppflags" = yes ; then 2271 2272 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2273 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2274 2275 continue 2276 elif test "${cf_tst_cflags}" = "\"'" ; then 2277 2278 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2279 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2280 2281 continue 2282 fi 2283 ;; 2284 esac 2285 case "$CPPFLAGS" in 2286 (*$cf_add_cflags) 2287 ;; 2288 (*) 2289 case "$cf_add_cflags" in 2290 (-D*) 2291 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2292 2293 CPPFLAGS=`echo "$CPPFLAGS" | \ 2294 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2295 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2296 2297 ;; 2298 esac 2299 2300 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 2301 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 2302 2303 ;; 2304 esac 2305 ;; 2306 (*) 2307 2308 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 2309 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 2310 2311 ;; 2312 esac 2313 ;; 2314 (yes) 2315 2316 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2317 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2318 2319 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 2320 2321 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2322 && test -z "${cf_tst_cflags}" \ 2323 && cf_fix_cppflags=no 2324 ;; 2325 esac 2326 done 2327 2328 if test -n "$cf_new_cflags" ; then 2329 2330 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 2331 CFLAGS="${CFLAGS}$cf_new_cflags" 2332 2333 fi 2334 2335 if test -n "$cf_new_cppflags" ; then 2336 2337 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 2338 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 2339 2340 fi 2341 2342 if test -n "$cf_new_extra_cppflags" ; then 2343 2344 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 2345 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 2346 2347 fi 2348 2349 done 2350 ;; 2351 (*) 2352 echo "$as_me:2352: result: ok" >&5 2353 echo "${ECHO_T}ok" >&6 2354 ;; 2355 esac 2356 2357 echo "$as_me:2357: checking \$CC variable" >&5 2358 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6 2359 case "$CC" in 2360 (*[\ \ ]-*) 2361 echo "$as_me:2361: result: broken" >&5 2362 echo "${ECHO_T}broken" >&6 2363 { echo "$as_me:2363: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5 2364 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;} 2365 # humor him... 2366 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'` 2367 cf_flags=`echo "$CC" | sed -e "s%^$cf_prog%%"` 2368 CC="$cf_prog" 2369 for cf_arg in $cf_flags 2370 do 2371 case "x$cf_arg" in 2372 (x-[IUDfgOW]*) 2373 2374 cf_fix_cppflags=no 2375 cf_new_cflags= 2376 cf_new_cppflags= 2377 cf_new_extra_cppflags= 2378 2379 for cf_add_cflags in $cf_arg 2380 do 2381 case "$cf_fix_cppflags" in 2382 (no) 2383 case "$cf_add_cflags" in 2384 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 2385 case "$cf_add_cflags" in 2386 (-D*) 2387 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2388 2389 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2390 && test -z "${cf_tst_cflags}" \ 2391 && cf_fix_cppflags=yes 2392 2393 if test "$cf_fix_cppflags" = yes ; then 2394 2395 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2396 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2397 2398 continue 2399 elif test "${cf_tst_cflags}" = "\"'" ; then 2400 2401 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2402 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2403 2404 continue 2405 fi 2406 ;; 2407 esac 2408 case "$CPPFLAGS" in 2409 (*$cf_add_cflags) 2410 ;; 2411 (*) 2412 case "$cf_add_cflags" in 2413 (-D*) 2414 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2415 2416 CPPFLAGS=`echo "$CPPFLAGS" | \ 2417 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2418 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2419 2420 ;; 2421 esac 2422 2423 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 2424 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 2425 2426 ;; 2427 esac 2428 ;; 2429 (*) 2430 2431 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 2432 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 2433 2434 ;; 2435 esac 2436 ;; 2437 (yes) 2438 2439 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2440 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2441 2442 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 2443 2444 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2445 && test -z "${cf_tst_cflags}" \ 2446 && cf_fix_cppflags=no 2447 ;; 2448 esac 2449 done 2450 2451 if test -n "$cf_new_cflags" ; then 2452 2453 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 2454 CFLAGS="${CFLAGS}$cf_new_cflags" 2455 2456 fi 2457 2458 if test -n "$cf_new_cppflags" ; then 2459 2460 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 2461 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 2462 2463 fi 2464 2465 if test -n "$cf_new_extra_cppflags" ; then 2466 2467 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 2468 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 2469 2470 fi 2471 2472 ;; 2473 (*) 2474 CC="$CC $cf_arg" 2475 ;; 2476 esac 2477 done 2478 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6 2479 2480 echo "${as_me:-configure}:2480: testing resulting CC: '$CC' ..." 1>&5 2481 2482 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6 2483 2484 echo "${as_me:-configure}:2484: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5 2485 2486 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6 2487 2488 echo "${as_me:-configure}:2488: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5 2489 2490 ;; 2491 (*) 2492 echo "$as_me:2492: result: ok" >&5 2493 echo "${ECHO_T}ok" >&6 2494 ;; 2495 esac 2496 2497 for ac_prog in ggrep grep 2498 do 2499 # Extract the first word of "$ac_prog", so it can be a program name with args. 2500 set dummy $ac_prog; ac_word=$2 2501 echo "$as_me:2501: checking for $ac_word" >&5 2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2503 if test "${ac_cv_prog_GREP+set}" = set; then 2504 echo $ECHO_N "(cached) $ECHO_C" >&6 2505 else 2506 if test -n "$GREP"; then 2507 ac_cv_prog_GREP="$GREP" # Let the user override the test. 2508 else 2509 ac_save_IFS=$IFS; IFS=$ac_path_separator 2510 ac_dummy="$PATH" 2511 for ac_dir in $ac_dummy; do 2512 IFS=$ac_save_IFS 2513 test -z "$ac_dir" && ac_dir=. 2514 $as_executable_p "$ac_dir/$ac_word" || continue 2515 ac_cv_prog_GREP="$ac_prog" 2516 echo "$as_me:2516: found $ac_dir/$ac_word" >&5 2517 break 2518 done 2519 2520 fi 2521 fi 2522 GREP=$ac_cv_prog_GREP 2523 if test -n "$GREP"; then 2524 echo "$as_me:2524: result: $GREP" >&5 2525 echo "${ECHO_T}$GREP" >&6 2526 else 2527 echo "$as_me:2527: result: no" >&5 2528 echo "${ECHO_T}no" >&6 2529 fi 2530 2531 test -n "$GREP" && break 2532 done 2533 test -n "$GREP" || GREP=": " 2534 2535 echo "$as_me:2535: checking for egrep" >&5 2536 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2537 if test "${ac_cv_path_EGREP+set}" = set; then 2538 echo $ECHO_N "(cached) $ECHO_C" >&6 2539 else 2540 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 2541 then ac_cv_path_EGREP="$GREP -E" 2542 else 2543 for ac_prog in gegrep egrep 2544 do 2545 # Extract the first word of "$ac_prog", so it can be a program name with args. 2546 set dummy $ac_prog; ac_word=$2 2547 echo "$as_me:2547: checking for $ac_word" >&5 2548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2549 if test "${ac_cv_path_EGREP+set}" = set; then 2550 echo $ECHO_N "(cached) $ECHO_C" >&6 2551 else 2552 case $EGREP in 2553 [\\/]* | ?:[\\/]*) 2554 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 2555 ;; 2556 *) 2557 ac_save_IFS=$IFS; IFS=$ac_path_separator 2558 ac_dummy="$PATH" 2559 for ac_dir in $ac_dummy; do 2560 IFS=$ac_save_IFS 2561 test -z "$ac_dir" && ac_dir=. 2562 if $as_executable_p "$ac_dir/$ac_word"; then 2563 ac_cv_path_EGREP="$ac_dir/$ac_word" 2564 echo "$as_me:2564: found $ac_dir/$ac_word" >&5 2565 break 2566 fi 2567 done 2568 2569 ;; 2570 esac 2571 fi 2572 EGREP=$ac_cv_path_EGREP 2573 2574 if test -n "$EGREP"; then 2575 echo "$as_me:2575: result: $EGREP" >&5 2576 echo "${ECHO_T}$EGREP" >&6 2577 else 2578 echo "$as_me:2578: result: no" >&5 2579 echo "${ECHO_T}no" >&6 2580 fi 2581 2582 test -n "$EGREP" && break 2583 done 2584 test -n "$EGREP" || EGREP=": " 2585 2586 test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:2586: error: cannot find workable egrep" >&5 2587 echo "$as_me: error: cannot find workable egrep" >&2;} 2588 { (exit 1); exit 1; }; } 2589 fi 2590 fi 2591 echo "$as_me:2591: result: $ac_cv_path_EGREP" >&5 2592 echo "${ECHO_T}$ac_cv_path_EGREP" >&6 2593 EGREP="$ac_cv_path_EGREP" 2594 2595 ac_ext=c 2596 ac_cpp='$CPP $CPPFLAGS' 2597 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 2598 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 2599 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2600 ac_main_return="return" 2601 echo "$as_me:2601: checking how to run the C preprocessor" >&5 2602 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2603 # On Suns, sometimes $CPP names a directory. 2604 if test -n "$CPP" && test -d "$CPP"; then 2605 CPP= 2606 fi 2607 if test -z "$CPP"; then 2608 if test "${ac_cv_prog_CPP+set}" = set; then 2609 echo $ECHO_N "(cached) $ECHO_C" >&6 2610 else 2611 # Double quotes because CPP needs to be expanded 2612 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2613 do 2614 ac_preproc_ok=false 2615 for ac_c_preproc_warn_flag in '' yes 2616 do 2617 # Use a header file that comes with gcc, so configuring glibc 2618 # with a fresh cross-compiler works. 2619 # On the NeXT, cc -E runs the code through the compiler's parser, 2620 # not just through cpp. "Syntax error" is here to catch this case. 2621 cat >"conftest.$ac_ext" <<_ACEOF 2622 #line 2622 "configure" 2623 #include "confdefs.h" 2624 #include <assert.h> 2625 Syntax error 2626 _ACEOF 2627 if { (eval echo "$as_me:2627: \"$ac_cpp "conftest.$ac_ext"\"") >&5 2628 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 2629 ac_status=$? 2630 $EGREP -v '^ *\+' conftest.er1 >conftest.err 2631 rm -f conftest.er1 2632 cat conftest.err >&5 2633 echo "$as_me:2633: \$? = $ac_status" >&5 2634 (exit "$ac_status"); } >/dev/null; then 2635 if test -s conftest.err; then 2636 ac_cpp_err=$ac_c_preproc_warn_flag 2637 else 2638 ac_cpp_err= 2639 fi 2640 else 2641 ac_cpp_err=yes 2642 fi 2643 if test -z "$ac_cpp_err"; then 2644 : 2645 else 2646 echo "$as_me: failed program was:" >&5 2647 cat "conftest.$ac_ext" >&5 2648 # Broken: fails on valid input. 2649 continue 2650 fi 2651 rm -f conftest.err "conftest.$ac_ext" 2652 2653 # OK, works on sane cases. Now check whether non-existent headers 2654 # can be detected and how. 2655 cat >"conftest.$ac_ext" <<_ACEOF 2656 #line 2656 "configure" 2657 #include "confdefs.h" 2658 #include <ac_nonexistent.h> 2659 _ACEOF 2660 if { (eval echo "$as_me:2660: \"$ac_cpp "conftest.$ac_ext"\"") >&5 2661 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 2662 ac_status=$? 2663 $EGREP -v '^ *\+' conftest.er1 >conftest.err 2664 rm -f conftest.er1 2665 cat conftest.err >&5 2666 echo "$as_me:2666: \$? = $ac_status" >&5 2667 (exit "$ac_status"); } >/dev/null; then 2668 if test -s conftest.err; then 2669 ac_cpp_err=$ac_c_preproc_warn_flag 2670 else 2671 ac_cpp_err= 2672 fi 2673 else 2674 ac_cpp_err=yes 2675 fi 2676 if test -z "$ac_cpp_err"; then 2677 # Broken: success on invalid input. 2678 continue 2679 else 2680 echo "$as_me: failed program was:" >&5 2681 cat "conftest.$ac_ext" >&5 2682 # Passes both tests. 2683 ac_preproc_ok=: 2684 break 2685 fi 2686 rm -f conftest.err "conftest.$ac_ext" 2687 2688 done 2689 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2690 rm -f conftest.err "conftest.$ac_ext" 2691 if $ac_preproc_ok; then 2692 break 2693 fi 2694 2695 done 2696 ac_cv_prog_CPP=$CPP 2697 2698 fi 2699 CPP=$ac_cv_prog_CPP 2700 else 2701 ac_cv_prog_CPP=$CPP 2702 fi 2703 echo "$as_me:2703: result: $CPP" >&5 2704 echo "${ECHO_T}$CPP" >&6 2705 ac_preproc_ok=false 2706 for ac_c_preproc_warn_flag in '' yes 2707 do 2708 # Use a header file that comes with gcc, so configuring glibc 2709 # with a fresh cross-compiler works. 2710 # On the NeXT, cc -E runs the code through the compiler's parser, 2711 # not just through cpp. "Syntax error" is here to catch this case. 2712 cat >"conftest.$ac_ext" <<_ACEOF 2713 #line 2713 "configure" 2714 #include "confdefs.h" 2715 #include <assert.h> 2716 Syntax error 2717 _ACEOF 2718 if { (eval echo "$as_me:2718: \"$ac_cpp "conftest.$ac_ext"\"") >&5 2719 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 2720 ac_status=$? 2721 $EGREP -v '^ *\+' conftest.er1 >conftest.err 2722 rm -f conftest.er1 2723 cat conftest.err >&5 2724 echo "$as_me:2724: \$? = $ac_status" >&5 2725 (exit "$ac_status"); } >/dev/null; then 2726 if test -s conftest.err; then 2727 ac_cpp_err=$ac_c_preproc_warn_flag 2728 else 2729 ac_cpp_err= 2730 fi 2731 else 2732 ac_cpp_err=yes 2733 fi 2734 if test -z "$ac_cpp_err"; then 2735 : 2736 else 2737 echo "$as_me: failed program was:" >&5 2738 cat "conftest.$ac_ext" >&5 2739 # Broken: fails on valid input. 2740 continue 2741 fi 2742 rm -f conftest.err "conftest.$ac_ext" 2743 2744 # OK, works on sane cases. Now check whether non-existent headers 2745 # can be detected and how. 2746 cat >"conftest.$ac_ext" <<_ACEOF 2747 #line 2747 "configure" 2748 #include "confdefs.h" 2749 #include <ac_nonexistent.h> 2750 _ACEOF 2751 if { (eval echo "$as_me:2751: \"$ac_cpp "conftest.$ac_ext"\"") >&5 2752 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 2753 ac_status=$? 2754 $EGREP -v '^ *\+' conftest.er1 >conftest.err 2755 rm -f conftest.er1 2756 cat conftest.err >&5 2757 echo "$as_me:2757: \$? = $ac_status" >&5 2758 (exit "$ac_status"); } >/dev/null; then 2759 if test -s conftest.err; then 2760 ac_cpp_err=$ac_c_preproc_warn_flag 2761 else 2762 ac_cpp_err= 2763 fi 2764 else 2765 ac_cpp_err=yes 2766 fi 2767 if test -z "$ac_cpp_err"; then 2768 # Broken: success on invalid input. 2769 continue 2770 else 2771 echo "$as_me: failed program was:" >&5 2772 cat "conftest.$ac_ext" >&5 2773 # Passes both tests. 2774 ac_preproc_ok=: 2775 break 2776 fi 2777 rm -f conftest.err "conftest.$ac_ext" 2778 2779 done 2780 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2781 rm -f conftest.err "conftest.$ac_ext" 2782 if $ac_preproc_ok; then 2783 : 2784 else 2785 { { echo "$as_me:2785: error: C preprocessor \"$CPP\" fails sanity check" >&5 2786 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 2787 { (exit 1); exit 1; }; } 2788 fi 2789 2790 ac_ext=c 2791 ac_cpp='$CPP $CPPFLAGS' 2792 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 2793 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 2794 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2795 ac_main_return="return" 2796 2797 for ac_prog in mawk gawk nawk awk 2798 do 2799 # Extract the first word of "$ac_prog", so it can be a program name with args. 2800 set dummy $ac_prog; ac_word=$2 2801 echo "$as_me:2801: checking for $ac_word" >&5 2802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2803 if test "${ac_cv_prog_AWK+set}" = set; then 2804 echo $ECHO_N "(cached) $ECHO_C" >&6 2805 else 2806 if test -n "$AWK"; then 2807 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2808 else 2809 ac_save_IFS=$IFS; IFS=$ac_path_separator 2810 ac_dummy="$PATH" 2811 for ac_dir in $ac_dummy; do 2812 IFS=$ac_save_IFS 2813 test -z "$ac_dir" && ac_dir=. 2814 $as_executable_p "$ac_dir/$ac_word" || continue 2815 ac_cv_prog_AWK="$ac_prog" 2816 echo "$as_me:2816: found $ac_dir/$ac_word" >&5 2817 break 2818 done 2819 2820 fi 2821 fi 2822 AWK=$ac_cv_prog_AWK 2823 if test -n "$AWK"; then 2824 echo "$as_me:2824: result: $AWK" >&5 2825 echo "${ECHO_T}$AWK" >&6 2826 else 2827 echo "$as_me:2827: result: no" >&5 2828 echo "${ECHO_T}no" >&6 2829 fi 2830 2831 test -n "$AWK" && break 2832 done 2833 2834 # Find a good install program. We prefer a C program (faster), 2835 # so one script is as good as another. But avoid the broken or 2836 # incompatible versions: 2837 # SysV /etc/install, /usr/sbin/install 2838 # SunOS /usr/etc/install 2839 # IRIX /sbin/install 2840 # AIX /bin/install 2841 # AmigaOS /C/install, which installs bootblocks on floppy discs 2842 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2843 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2844 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2845 # ./install, which can be erroneously created by make from ./install.sh. 2846 echo "$as_me:2846: checking for a BSD compatible install" >&5 2847 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 2848 if test -z "$INSTALL"; then 2849 if test "${ac_cv_path_install+set}" = set; then 2850 echo $ECHO_N "(cached) $ECHO_C" >&6 2851 else 2852 ac_save_IFS=$IFS; IFS=$ac_path_separator 2853 for ac_dir in $PATH; do 2854 IFS=$ac_save_IFS 2855 # Account for people who put trailing slashes in PATH elements. 2856 case $ac_dir/ in 2857 / | ./ | .// | /cC/* \ 2858 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 2859 | /usr/ucb/* ) ;; 2860 *) 2861 # OSF1 and SCO ODT 3.0 have their own names for install. 2862 # Don't use installbsd from OSF since it installs stuff as root 2863 # by default. 2864 for ac_prog in ginstall scoinst install; do 2865 if $as_executable_p "$ac_dir/$ac_prog"; then 2866 if test $ac_prog = install && 2867 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2868 # AIX install. It has an incompatible calling convention. 2869 : 2870 elif test $ac_prog = install && 2871 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2872 # program-specific install script used by HP pwplus--don't use. 2873 : 2874 else 2875 ac_cv_path_install="$ac_dir/$ac_prog -c" 2876 break 2 2877 fi 2878 fi 2879 done 2880 ;; 2881 esac 2882 done 2883 2884 fi 2885 if test "${ac_cv_path_install+set}" = set; then 2886 INSTALL=$ac_cv_path_install 2887 else 2888 # As a last resort, use the slow shell script. We don't cache a 2889 # path for INSTALL within a source directory, because that will 2890 # break other packages using the cache if that directory is 2891 # removed, or if the path is relative. 2892 INSTALL=$ac_install_sh 2893 fi 2894 fi 2895 echo "$as_me:2895: result: $INSTALL" >&5 2896 echo "${ECHO_T}$INSTALL" >&6 2897 2898 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2899 # It thinks the first close brace ends the variable substitution. 2900 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2901 2902 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2903 2904 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2905 2906 echo "$as_me:2906: checking whether ln -s works" >&5 2907 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2908 LN_S=$as_ln_s 2909 if test "$LN_S" = "ln -s"; then 2910 echo "$as_me:2910: result: yes" >&5 2911 echo "${ECHO_T}yes" >&6 2912 else 2913 echo "$as_me:2913: result: no, using $LN_S" >&5 2914 echo "${ECHO_T}no, using $LN_S" >&6 2915 fi 2916 2917 test "$program_prefix" != NONE && 2918 program_transform_name="s,^,$program_prefix,;$program_transform_name" 2919 # Use a double $ so make ignores it. 2920 test "$program_suffix" != NONE && 2921 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 2922 # Double any \ or $. echo might interpret backslashes. 2923 # By default was `s,x,x', remove it if useless. 2924 cat <<\_ACEOF >conftest.sed 2925 s/[\\$]/&&/g;s/;s,x,x,$// 2926 _ACEOF 2927 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2928 rm conftest.sed 2929 2930 for ac_prog in lint cppcheck splint 2931 do 2932 # Extract the first word of "$ac_prog", so it can be a program name with args. 2933 set dummy $ac_prog; ac_word=$2 2934 echo "$as_me:2934: checking for $ac_word" >&5 2935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2936 if test "${ac_cv_prog_LINT+set}" = set; then 2937 echo $ECHO_N "(cached) $ECHO_C" >&6 2938 else 2939 if test -n "$LINT"; then 2940 ac_cv_prog_LINT="$LINT" # Let the user override the test. 2941 else 2942 ac_save_IFS=$IFS; IFS=$ac_path_separator 2943 ac_dummy="$PATH" 2944 for ac_dir in $ac_dummy; do 2945 IFS=$ac_save_IFS 2946 test -z "$ac_dir" && ac_dir=. 2947 $as_executable_p "$ac_dir/$ac_word" || continue 2948 ac_cv_prog_LINT="$ac_prog" 2949 echo "$as_me:2949: found $ac_dir/$ac_word" >&5 2950 break 2951 done 2952 2953 fi 2954 fi 2955 LINT=$ac_cv_prog_LINT 2956 if test -n "$LINT"; then 2957 echo "$as_me:2957: result: $LINT" >&5 2958 echo "${ECHO_T}$LINT" >&6 2959 else 2960 echo "$as_me:2960: result: no" >&5 2961 echo "${ECHO_T}no" >&6 2962 fi 2963 2964 test -n "$LINT" && break 2965 done 2966 2967 case "x$LINT" in 2968 (xlint|x*/lint) # NetBSD 10 2969 test -z "$LINT_OPTS" && LINT_OPTS="-chapbrxzgFS -v -Ac11" 2970 ;; 2971 (xcppcheck|x*/cppcheck) 2972 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all -D__CPPCHECK__" 2973 ;; 2974 esac 2975 2976 ### checks for compiler characteristics 2977 2978 echo "$as_me:2978: checking if the POSIX test-macros are already defined" >&5 2979 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6 2980 if test "${cf_cv_posix_visible+set}" = set; then 2981 echo $ECHO_N "(cached) $ECHO_C" >&6 2982 else 2983 2984 cat >"conftest.$ac_ext" <<_ACEOF 2985 #line 2985 "configure" 2986 #include "confdefs.h" 2987 #include <stdio.h> 2988 int 2989 main (void) 2990 { 2991 2992 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \ 2993 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \ 2994 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \ 2995 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0) 2996 #error conflicting symbols found 2997 #endif 2998 2999 ; 3000 return 0; 3001 } 3002 _ACEOF 3003 rm -f "conftest.$ac_objext" 3004 if { (eval echo "$as_me:3004: \"$ac_compile\"") >&5 3005 (eval $ac_compile) 2>&5 3006 ac_status=$? 3007 echo "$as_me:3007: \$? = $ac_status" >&5 3008 (exit "$ac_status"); } && 3009 { ac_try='test -s "conftest.$ac_objext"' 3010 { (eval echo "$as_me:3010: \"$ac_try\"") >&5 3011 (eval $ac_try) 2>&5 3012 ac_status=$? 3013 echo "$as_me:3013: \$? = $ac_status" >&5 3014 (exit "$ac_status"); }; }; then 3015 cf_cv_posix_visible=no 3016 else 3017 echo "$as_me: failed program was:" >&5 3018 cat "conftest.$ac_ext" >&5 3019 cf_cv_posix_visible=yes 3020 fi 3021 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3022 3023 fi 3024 echo "$as_me:3024: result: $cf_cv_posix_visible" >&5 3025 echo "${ECHO_T}$cf_cv_posix_visible" >&6 3026 3027 if test "$cf_cv_posix_visible" = no; then 3028 3029 cf_XOPEN_SOURCE=700 3030 cf_POSIX_C_SOURCE=199506L 3031 cf_xopen_source= 3032 3033 case "$host_os" in 3034 (aix[4-7]*) 3035 cf_xopen_source="-D_ALL_SOURCE" 3036 ;; 3037 (darwin[0-8].*) 3038 cf_xopen_source="-D_APPLE_C_SOURCE" 3039 ;; 3040 (darwin*) 3041 cf_xopen_source="-D_DARWIN_C_SOURCE" 3042 cf_XOPEN_SOURCE= 3043 ;; 3044 (freebsd*|dragonfly*|midnightbsd*) 3045 # 5.x headers associate 3046 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L 3047 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L 3048 cf_POSIX_C_SOURCE=200112L 3049 cf_XOPEN_SOURCE=600 3050 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 3051 ;; 3052 (hpux11*) 3053 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500" 3054 ;; 3055 (hpux*) 3056 cf_xopen_source="-D_HPUX_SOURCE" 3057 ;; 3058 (irix[56].*) 3059 cf_xopen_source="-D_SGI_SOURCE" 3060 cf_XOPEN_SOURCE= 3061 ;; 3062 (linux*gnu|linux*gnuabi64|linux*gnuabin32|linux*gnueabi|linux*gnueabihf|linux*gnux32|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin|msys|mingw*|linux*uclibc) 3063 3064 cf_gnu_xopen_source=$cf_XOPEN_SOURCE 3065 3066 echo "$as_me:3066: checking if this is the GNU C library" >&5 3067 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6 3068 if test "${cf_cv_gnu_library+set}" = set; then 3069 echo $ECHO_N "(cached) $ECHO_C" >&6 3070 else 3071 3072 cat >"conftest.$ac_ext" <<_ACEOF 3073 #line 3073 "configure" 3074 #include "confdefs.h" 3075 #include <sys/types.h> 3076 int 3077 main (void) 3078 { 3079 3080 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0 3081 return 0; 3082 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0 3083 return 0; 3084 #else 3085 # error not GNU C library 3086 #endif 3087 ; 3088 return 0; 3089 } 3090 _ACEOF 3091 rm -f "conftest.$ac_objext" 3092 if { (eval echo "$as_me:3092: \"$ac_compile\"") >&5 3093 (eval $ac_compile) 2>&5 3094 ac_status=$? 3095 echo "$as_me:3095: \$? = $ac_status" >&5 3096 (exit "$ac_status"); } && 3097 { ac_try='test -s "conftest.$ac_objext"' 3098 { (eval echo "$as_me:3098: \"$ac_try\"") >&5 3099 (eval $ac_try) 2>&5 3100 ac_status=$? 3101 echo "$as_me:3101: \$? = $ac_status" >&5 3102 (exit "$ac_status"); }; }; then 3103 cf_cv_gnu_library=yes 3104 else 3105 echo "$as_me: failed program was:" >&5 3106 cat "conftest.$ac_ext" >&5 3107 cf_cv_gnu_library=no 3108 fi 3109 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3110 3111 fi 3112 echo "$as_me:3112: result: $cf_cv_gnu_library" >&5 3113 echo "${ECHO_T}$cf_cv_gnu_library" >&6 3114 3115 if test x$cf_cv_gnu_library = xyes; then 3116 3117 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE 3118 # was changed to help a little. newlib incorporated the change about 4 3119 # years later. 3120 echo "$as_me:3120: checking if _DEFAULT_SOURCE can be used as a basis" >&5 3121 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6 3122 if test "${cf_cv_gnu_library_219+set}" = set; then 3123 echo $ECHO_N "(cached) $ECHO_C" >&6 3124 else 3125 3126 cf_save="$CPPFLAGS" 3127 3128 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3129 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE" 3130 3131 cat >"conftest.$ac_ext" <<_ACEOF 3132 #line 3132 "configure" 3133 #include "confdefs.h" 3134 #include <sys/types.h> 3135 int 3136 main (void) 3137 { 3138 3139 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2) 3140 return 0; 3141 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3) 3142 return 0; 3143 #else 3144 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old 3145 #endif 3146 ; 3147 return 0; 3148 } 3149 _ACEOF 3150 rm -f "conftest.$ac_objext" 3151 if { (eval echo "$as_me:3151: \"$ac_compile\"") >&5 3152 (eval $ac_compile) 2>&5 3153 ac_status=$? 3154 echo "$as_me:3154: \$? = $ac_status" >&5 3155 (exit "$ac_status"); } && 3156 { ac_try='test -s "conftest.$ac_objext"' 3157 { (eval echo "$as_me:3157: \"$ac_try\"") >&5 3158 (eval $ac_try) 2>&5 3159 ac_status=$? 3160 echo "$as_me:3160: \$? = $ac_status" >&5 3161 (exit "$ac_status"); }; }; then 3162 cf_cv_gnu_library_219=yes 3163 else 3164 echo "$as_me: failed program was:" >&5 3165 cat "conftest.$ac_ext" >&5 3166 cf_cv_gnu_library_219=no 3167 fi 3168 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3169 CPPFLAGS="$cf_save" 3170 3171 fi 3172 echo "$as_me:3172: result: $cf_cv_gnu_library_219" >&5 3173 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6 3174 3175 if test "x$cf_cv_gnu_library_219" = xyes; then 3176 cf_save="$CPPFLAGS" 3177 echo "$as_me:3177: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5 3178 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6 3179 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then 3180 echo $ECHO_N "(cached) $ECHO_C" >&6 3181 else 3182 3183 cf_fix_cppflags=no 3184 cf_new_cflags= 3185 cf_new_cppflags= 3186 cf_new_extra_cppflags= 3187 3188 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source 3189 do 3190 case "$cf_fix_cppflags" in 3191 (no) 3192 case "$cf_add_cflags" in 3193 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 3194 case "$cf_add_cflags" in 3195 (-D*) 3196 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3197 3198 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3199 && test -z "${cf_tst_cflags}" \ 3200 && cf_fix_cppflags=yes 3201 3202 if test "$cf_fix_cppflags" = yes ; then 3203 3204 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3205 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3206 3207 continue 3208 elif test "${cf_tst_cflags}" = "\"'" ; then 3209 3210 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3211 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3212 3213 continue 3214 fi 3215 ;; 3216 esac 3217 case "$CPPFLAGS" in 3218 (*$cf_add_cflags) 3219 ;; 3220 (*) 3221 case "$cf_add_cflags" in 3222 (-D*) 3223 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3224 3225 CPPFLAGS=`echo "$CPPFLAGS" | \ 3226 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3227 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3228 3229 ;; 3230 esac 3231 3232 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 3233 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 3234 3235 ;; 3236 esac 3237 ;; 3238 (*) 3239 3240 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 3241 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 3242 3243 ;; 3244 esac 3245 ;; 3246 (yes) 3247 3248 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3249 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3250 3251 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 3252 3253 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3254 && test -z "${cf_tst_cflags}" \ 3255 && cf_fix_cppflags=no 3256 ;; 3257 esac 3258 done 3259 3260 if test -n "$cf_new_cflags" ; then 3261 3262 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 3263 CFLAGS="${CFLAGS}$cf_new_cflags" 3264 3265 fi 3266 3267 if test -n "$cf_new_cppflags" ; then 3268 3269 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3270 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 3271 3272 fi 3273 3274 if test -n "$cf_new_extra_cppflags" ; then 3275 3276 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 3277 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 3278 3279 fi 3280 3281 cat >"conftest.$ac_ext" <<_ACEOF 3282 #line 3282 "configure" 3283 #include "confdefs.h" 3284 3285 #include <limits.h> 3286 #include <sys/types.h> 3287 3288 int 3289 main (void) 3290 { 3291 3292 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1) 3293 return 0; 3294 #else 3295 # error GNU C library is too old 3296 #endif 3297 ; 3298 return 0; 3299 } 3300 _ACEOF 3301 rm -f "conftest.$ac_objext" 3302 if { (eval echo "$as_me:3302: \"$ac_compile\"") >&5 3303 (eval $ac_compile) 2>&5 3304 ac_status=$? 3305 echo "$as_me:3305: \$? = $ac_status" >&5 3306 (exit "$ac_status"); } && 3307 { ac_try='test -s "conftest.$ac_objext"' 3308 { (eval echo "$as_me:3308: \"$ac_try\"") >&5 3309 (eval $ac_try) 2>&5 3310 ac_status=$? 3311 echo "$as_me:3311: \$? = $ac_status" >&5 3312 (exit "$ac_status"); }; }; then 3313 cf_cv_gnu_dftsrc_219=yes 3314 else 3315 echo "$as_me: failed program was:" >&5 3316 cat "conftest.$ac_ext" >&5 3317 cf_cv_gnu_dftsrc_219=no 3318 fi 3319 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3320 3321 fi 3322 echo "$as_me:3322: result: $cf_cv_gnu_dftsrc_219" >&5 3323 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6 3324 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save" 3325 else 3326 cf_cv_gnu_dftsrc_219=maybe 3327 fi 3328 3329 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then 3330 3331 echo "$as_me:3331: checking if we must define _GNU_SOURCE" >&5 3332 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6 3333 if test "${cf_cv_gnu_source+set}" = set; then 3334 echo $ECHO_N "(cached) $ECHO_C" >&6 3335 else 3336 3337 cat >"conftest.$ac_ext" <<_ACEOF 3338 #line 3338 "configure" 3339 #include "confdefs.h" 3340 #include <sys/types.h> 3341 int 3342 main (void) 3343 { 3344 3345 #ifndef _XOPEN_SOURCE 3346 #error expected _XOPEN_SOURCE to be defined 3347 #endif 3348 ; 3349 return 0; 3350 } 3351 _ACEOF 3352 rm -f "conftest.$ac_objext" 3353 if { (eval echo "$as_me:3353: \"$ac_compile\"") >&5 3354 (eval $ac_compile) 2>&5 3355 ac_status=$? 3356 echo "$as_me:3356: \$? = $ac_status" >&5 3357 (exit "$ac_status"); } && 3358 { ac_try='test -s "conftest.$ac_objext"' 3359 { (eval echo "$as_me:3359: \"$ac_try\"") >&5 3360 (eval $ac_try) 2>&5 3361 ac_status=$? 3362 echo "$as_me:3362: \$? = $ac_status" >&5 3363 (exit "$ac_status"); }; }; then 3364 cf_cv_gnu_source=no 3365 else 3366 echo "$as_me: failed program was:" >&5 3367 cat "conftest.$ac_ext" >&5 3368 cf_save="$CPPFLAGS" 3369 3370 cf_fix_cppflags=no 3371 cf_new_cflags= 3372 cf_new_cppflags= 3373 cf_new_extra_cppflags= 3374 3375 for cf_add_cflags in -D_GNU_SOURCE 3376 do 3377 case "$cf_fix_cppflags" in 3378 (no) 3379 case "$cf_add_cflags" in 3380 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 3381 case "$cf_add_cflags" in 3382 (-D*) 3383 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3384 3385 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3386 && test -z "${cf_tst_cflags}" \ 3387 && cf_fix_cppflags=yes 3388 3389 if test "$cf_fix_cppflags" = yes ; then 3390 3391 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3392 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3393 3394 continue 3395 elif test "${cf_tst_cflags}" = "\"'" ; then 3396 3397 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3398 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3399 3400 continue 3401 fi 3402 ;; 3403 esac 3404 case "$CPPFLAGS" in 3405 (*$cf_add_cflags) 3406 ;; 3407 (*) 3408 case "$cf_add_cflags" in 3409 (-D*) 3410 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3411 3412 CPPFLAGS=`echo "$CPPFLAGS" | \ 3413 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3414 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3415 3416 ;; 3417 esac 3418 3419 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 3420 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 3421 3422 ;; 3423 esac 3424 ;; 3425 (*) 3426 3427 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 3428 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 3429 3430 ;; 3431 esac 3432 ;; 3433 (yes) 3434 3435 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3436 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3437 3438 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 3439 3440 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3441 && test -z "${cf_tst_cflags}" \ 3442 && cf_fix_cppflags=no 3443 ;; 3444 esac 3445 done 3446 3447 if test -n "$cf_new_cflags" ; then 3448 3449 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 3450 CFLAGS="${CFLAGS}$cf_new_cflags" 3451 3452 fi 3453 3454 if test -n "$cf_new_cppflags" ; then 3455 3456 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3457 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 3458 3459 fi 3460 3461 if test -n "$cf_new_extra_cppflags" ; then 3462 3463 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 3464 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 3465 3466 fi 3467 3468 cat >"conftest.$ac_ext" <<_ACEOF 3469 #line 3469 "configure" 3470 #include "confdefs.h" 3471 #include <sys/types.h> 3472 int 3473 main (void) 3474 { 3475 3476 #ifdef _XOPEN_SOURCE 3477 #error expected _XOPEN_SOURCE to be undefined 3478 #endif 3479 ; 3480 return 0; 3481 } 3482 _ACEOF 3483 rm -f "conftest.$ac_objext" 3484 if { (eval echo "$as_me:3484: \"$ac_compile\"") >&5 3485 (eval $ac_compile) 2>&5 3486 ac_status=$? 3487 echo "$as_me:3487: \$? = $ac_status" >&5 3488 (exit "$ac_status"); } && 3489 { ac_try='test -s "conftest.$ac_objext"' 3490 { (eval echo "$as_me:3490: \"$ac_try\"") >&5 3491 (eval $ac_try) 2>&5 3492 ac_status=$? 3493 echo "$as_me:3493: \$? = $ac_status" >&5 3494 (exit "$ac_status"); }; }; then 3495 cf_cv_gnu_source=no 3496 else 3497 echo "$as_me: failed program was:" >&5 3498 cat "conftest.$ac_ext" >&5 3499 cf_cv_gnu_source=yes 3500 fi 3501 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3502 CPPFLAGS="$cf_save" 3503 3504 fi 3505 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3506 3507 fi 3508 echo "$as_me:3508: result: $cf_cv_gnu_source" >&5 3509 echo "${ECHO_T}$cf_cv_gnu_source" >&6 3510 3511 if test "$cf_cv_gnu_source" = yes 3512 then 3513 echo "$as_me:3513: checking if we should also define _DEFAULT_SOURCE" >&5 3514 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6 3515 if test "${cf_cv_default_source+set}" = set; then 3516 echo $ECHO_N "(cached) $ECHO_C" >&6 3517 else 3518 3519 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3520 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE" 3521 3522 cat >"conftest.$ac_ext" <<_ACEOF 3523 #line 3523 "configure" 3524 #include "confdefs.h" 3525 #include <sys/types.h> 3526 int 3527 main (void) 3528 { 3529 3530 #ifdef _DEFAULT_SOURCE 3531 #error expected _DEFAULT_SOURCE to be undefined 3532 #endif 3533 ; 3534 return 0; 3535 } 3536 _ACEOF 3537 rm -f "conftest.$ac_objext" 3538 if { (eval echo "$as_me:3538: \"$ac_compile\"") >&5 3539 (eval $ac_compile) 2>&5 3540 ac_status=$? 3541 echo "$as_me:3541: \$? = $ac_status" >&5 3542 (exit "$ac_status"); } && 3543 { ac_try='test -s "conftest.$ac_objext"' 3544 { (eval echo "$as_me:3544: \"$ac_try\"") >&5 3545 (eval $ac_try) 2>&5 3546 ac_status=$? 3547 echo "$as_me:3547: \$? = $ac_status" >&5 3548 (exit "$ac_status"); }; }; then 3549 cf_cv_default_source=no 3550 else 3551 echo "$as_me: failed program was:" >&5 3552 cat "conftest.$ac_ext" >&5 3553 cf_cv_default_source=yes 3554 fi 3555 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3556 3557 fi 3558 echo "$as_me:3558: result: $cf_cv_default_source" >&5 3559 echo "${ECHO_T}$cf_cv_default_source" >&6 3560 if test "$cf_cv_default_source" = yes 3561 then 3562 3563 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3564 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE" 3565 3566 fi 3567 fi 3568 fi 3569 3570 fi 3571 3572 ;; 3573 linux*musl) 3574 cf_xopen_source="-D_BSD_SOURCE" 3575 ;; 3576 (minix*) 3577 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this... 3578 ;; 3579 (mirbsd*) 3580 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types 3581 cf_XOPEN_SOURCE= 3582 3583 if test "$cf_cv_posix_visible" = no; then 3584 3585 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 3586 3587 cf_save_CFLAGS="$CFLAGS" 3588 cf_save_CPPFLAGS="$CPPFLAGS" 3589 3590 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 3591 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3592 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 3593 3594 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 3595 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3596 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 3597 3598 echo "$as_me:3598: checking if we should define _POSIX_C_SOURCE" >&5 3599 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 3600 if test "${cf_cv_posix_c_source+set}" = set; then 3601 echo $ECHO_N "(cached) $ECHO_C" >&6 3602 else 3603 3604 echo "${as_me:-configure}:3604: testing if the symbol is already defined go no further ..." 1>&5 3605 3606 cat >"conftest.$ac_ext" <<_ACEOF 3607 #line 3607 "configure" 3608 #include "confdefs.h" 3609 #include <sys/types.h> 3610 int 3611 main (void) 3612 { 3613 3614 #ifndef _POSIX_C_SOURCE 3615 #error _POSIX_C_SOURCE is not defined 3616 #endif 3617 ; 3618 return 0; 3619 } 3620 _ACEOF 3621 rm -f "conftest.$ac_objext" 3622 if { (eval echo "$as_me:3622: \"$ac_compile\"") >&5 3623 (eval $ac_compile) 2>&5 3624 ac_status=$? 3625 echo "$as_me:3625: \$? = $ac_status" >&5 3626 (exit "$ac_status"); } && 3627 { ac_try='test -s "conftest.$ac_objext"' 3628 { (eval echo "$as_me:3628: \"$ac_try\"") >&5 3629 (eval $ac_try) 2>&5 3630 ac_status=$? 3631 echo "$as_me:3631: \$? = $ac_status" >&5 3632 (exit "$ac_status"); }; }; then 3633 cf_cv_posix_c_source=no 3634 else 3635 echo "$as_me: failed program was:" >&5 3636 cat "conftest.$ac_ext" >&5 3637 cf_want_posix_source=no 3638 case .$cf_POSIX_C_SOURCE in 3639 (.[12]??*) 3640 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3641 ;; 3642 (.2) 3643 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3644 cf_want_posix_source=yes 3645 ;; 3646 (.*) 3647 cf_want_posix_source=yes 3648 ;; 3649 esac 3650 if test "$cf_want_posix_source" = yes ; then 3651 cat >"conftest.$ac_ext" <<_ACEOF 3652 #line 3652 "configure" 3653 #include "confdefs.h" 3654 #include <sys/types.h> 3655 int 3656 main (void) 3657 { 3658 3659 #ifdef _POSIX_SOURCE 3660 #error _POSIX_SOURCE is defined 3661 #endif 3662 ; 3663 return 0; 3664 } 3665 _ACEOF 3666 rm -f "conftest.$ac_objext" 3667 if { (eval echo "$as_me:3667: \"$ac_compile\"") >&5 3668 (eval $ac_compile) 2>&5 3669 ac_status=$? 3670 echo "$as_me:3670: \$? = $ac_status" >&5 3671 (exit "$ac_status"); } && 3672 { ac_try='test -s "conftest.$ac_objext"' 3673 { (eval echo "$as_me:3673: \"$ac_try\"") >&5 3674 (eval $ac_try) 2>&5 3675 ac_status=$? 3676 echo "$as_me:3676: \$? = $ac_status" >&5 3677 (exit "$ac_status"); }; }; then 3678 : 3679 else 3680 echo "$as_me: failed program was:" >&5 3681 cat "conftest.$ac_ext" >&5 3682 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 3683 fi 3684 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3685 fi 3686 3687 echo "${as_me:-configure}:3687: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 3688 3689 CFLAGS="$cf_trim_CFLAGS" 3690 CPPFLAGS="$cf_trim_CPPFLAGS" 3691 3692 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3693 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source" 3694 3695 echo "${as_me:-configure}:3695: testing if the second compile does not leave our definition intact error ..." 1>&5 3696 3697 cat >"conftest.$ac_ext" <<_ACEOF 3698 #line 3698 "configure" 3699 #include "confdefs.h" 3700 #include <sys/types.h> 3701 int 3702 main (void) 3703 { 3704 3705 #ifndef _POSIX_C_SOURCE 3706 #error _POSIX_C_SOURCE is not defined 3707 #endif 3708 ; 3709 return 0; 3710 } 3711 _ACEOF 3712 rm -f "conftest.$ac_objext" 3713 if { (eval echo "$as_me:3713: \"$ac_compile\"") >&5 3714 (eval $ac_compile) 2>&5 3715 ac_status=$? 3716 echo "$as_me:3716: \$? = $ac_status" >&5 3717 (exit "$ac_status"); } && 3718 { ac_try='test -s "conftest.$ac_objext"' 3719 { (eval echo "$as_me:3719: \"$ac_try\"") >&5 3720 (eval $ac_try) 2>&5 3721 ac_status=$? 3722 echo "$as_me:3722: \$? = $ac_status" >&5 3723 (exit "$ac_status"); }; }; then 3724 : 3725 else 3726 echo "$as_me: failed program was:" >&5 3727 cat "conftest.$ac_ext" >&5 3728 cf_cv_posix_c_source=no 3729 fi 3730 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3731 CFLAGS="$cf_save_CFLAGS" 3732 CPPFLAGS="$cf_save_CPPFLAGS" 3733 3734 fi 3735 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3736 3737 fi 3738 echo "$as_me:3738: result: $cf_cv_posix_c_source" >&5 3739 echo "${ECHO_T}$cf_cv_posix_c_source" >&6 3740 3741 if test "$cf_cv_posix_c_source" != no ; then 3742 CFLAGS="$cf_trim_CFLAGS" 3743 CPPFLAGS="$cf_trim_CPPFLAGS" 3744 3745 cf_fix_cppflags=no 3746 cf_new_cflags= 3747 cf_new_cppflags= 3748 cf_new_extra_cppflags= 3749 3750 for cf_add_cflags in $cf_cv_posix_c_source 3751 do 3752 case "$cf_fix_cppflags" in 3753 (no) 3754 case "$cf_add_cflags" in 3755 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 3756 case "$cf_add_cflags" in 3757 (-D*) 3758 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3759 3760 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3761 && test -z "${cf_tst_cflags}" \ 3762 && cf_fix_cppflags=yes 3763 3764 if test "$cf_fix_cppflags" = yes ; then 3765 3766 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3767 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3768 3769 continue 3770 elif test "${cf_tst_cflags}" = "\"'" ; then 3771 3772 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3773 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3774 3775 continue 3776 fi 3777 ;; 3778 esac 3779 case "$CPPFLAGS" in 3780 (*$cf_add_cflags) 3781 ;; 3782 (*) 3783 case "$cf_add_cflags" in 3784 (-D*) 3785 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3786 3787 CPPFLAGS=`echo "$CPPFLAGS" | \ 3788 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3789 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3790 3791 ;; 3792 esac 3793 3794 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 3795 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 3796 3797 ;; 3798 esac 3799 ;; 3800 (*) 3801 3802 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 3803 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 3804 3805 ;; 3806 esac 3807 ;; 3808 (yes) 3809 3810 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 3811 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 3812 3813 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 3814 3815 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3816 && test -z "${cf_tst_cflags}" \ 3817 && cf_fix_cppflags=no 3818 ;; 3819 esac 3820 done 3821 3822 if test -n "$cf_new_cflags" ; then 3823 3824 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 3825 CFLAGS="${CFLAGS}$cf_new_cflags" 3826 3827 fi 3828 3829 if test -n "$cf_new_cppflags" ; then 3830 3831 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3832 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 3833 3834 fi 3835 3836 if test -n "$cf_new_extra_cppflags" ; then 3837 3838 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 3839 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 3840 3841 fi 3842 3843 fi 3844 3845 fi # cf_cv_posix_visible 3846 3847 ;; 3848 (netbsd*) 3849 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw 3850 ;; 3851 (openbsd[6-9]*) 3852 # OpenBSD 6.x has broken locale support, both compile-time and runtime. 3853 # see https://www.mail-archive.com/bugs@openbsd.org/msg13200.html 3854 # Abusing the conformance level is a workaround. 3855 { echo "$as_me:3855: WARNING: this system does not provide usable locale support" >&5 3856 echo "$as_me: WARNING: this system does not provide usable locale support" >&2;} 3857 cf_xopen_source="-D_BSD_SOURCE" 3858 cf_XOPEN_SOURCE=700 3859 ;; 3860 (openbsd[4-5]*) 3861 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw 3862 cf_xopen_source="-D_BSD_SOURCE" 3863 cf_XOPEN_SOURCE=600 3864 ;; 3865 (openbsd*) 3866 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw 3867 ;; 3868 (osf[45]*) 3869 cf_xopen_source="-D_OSF_SOURCE" 3870 ;; 3871 (nto-qnx*) 3872 cf_xopen_source="-D_QNX_SOURCE" 3873 ;; 3874 (sco*) 3875 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer 3876 ;; 3877 (solaris2.*) 3878 cf_xopen_source="-D__EXTENSIONS__" 3879 cf_cv_xopen_source=broken 3880 ;; 3881 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2) 3882 cf_XOPEN_SOURCE= 3883 cf_POSIX_C_SOURCE= 3884 ;; 3885 (*) 3886 3887 echo "$as_me:3887: checking if we should define _XOPEN_SOURCE" >&5 3888 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 3889 if test "${cf_cv_xopen_source+set}" = set; then 3890 echo $ECHO_N "(cached) $ECHO_C" >&6 3891 else 3892 3893 cat >"conftest.$ac_ext" <<_ACEOF 3894 #line 3894 "configure" 3895 #include "confdefs.h" 3896 3897 $ac_includes_default 3898 3899 int 3900 main (void) 3901 { 3902 3903 #ifndef _XOPEN_SOURCE 3904 #error _XOPEN_SOURCE is not defined 3905 #endif 3906 3907 ; 3908 return 0; 3909 } 3910 _ACEOF 3911 rm -f "conftest.$ac_objext" 3912 if { (eval echo "$as_me:3912: \"$ac_compile\"") >&5 3913 (eval $ac_compile) 2>&5 3914 ac_status=$? 3915 echo "$as_me:3915: \$? = $ac_status" >&5 3916 (exit "$ac_status"); } && 3917 { ac_try='test -s "conftest.$ac_objext"' 3918 { (eval echo "$as_me:3918: \"$ac_try\"") >&5 3919 (eval $ac_try) 2>&5 3920 ac_status=$? 3921 echo "$as_me:3921: \$? = $ac_status" >&5 3922 (exit "$ac_status"); }; }; then 3923 cf_cv_xopen_source=no 3924 else 3925 echo "$as_me: failed program was:" >&5 3926 cat "conftest.$ac_ext" >&5 3927 cf_save="$CPPFLAGS" 3928 3929 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3930 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 3931 3932 cat >"conftest.$ac_ext" <<_ACEOF 3933 #line 3933 "configure" 3934 #include "confdefs.h" 3935 3936 $ac_includes_default 3937 3938 int 3939 main (void) 3940 { 3941 3942 #ifndef _XOPEN_SOURCE 3943 #error _XOPEN_SOURCE is not defined 3944 #endif 3945 3946 ; 3947 return 0; 3948 } 3949 _ACEOF 3950 rm -f "conftest.$ac_objext" 3951 if { (eval echo "$as_me:3951: \"$ac_compile\"") >&5 3952 (eval $ac_compile) 2>&5 3953 ac_status=$? 3954 echo "$as_me:3954: \$? = $ac_status" >&5 3955 (exit "$ac_status"); } && 3956 { ac_try='test -s "conftest.$ac_objext"' 3957 { (eval echo "$as_me:3957: \"$ac_try\"") >&5 3958 (eval $ac_try) 2>&5 3959 ac_status=$? 3960 echo "$as_me:3960: \$? = $ac_status" >&5 3961 (exit "$ac_status"); }; }; then 3962 cf_cv_xopen_source=no 3963 else 3964 echo "$as_me: failed program was:" >&5 3965 cat "conftest.$ac_ext" >&5 3966 cf_cv_xopen_source=$cf_XOPEN_SOURCE 3967 fi 3968 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3969 CPPFLAGS="$cf_save" 3970 3971 fi 3972 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3973 3974 fi 3975 echo "$as_me:3975: result: $cf_cv_xopen_source" >&5 3976 echo "${ECHO_T}$cf_cv_xopen_source" >&6 3977 3978 if test "$cf_cv_xopen_source" != no ; then 3979 3980 CFLAGS=`echo "$CFLAGS" | \ 3981 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3982 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3983 3984 CPPFLAGS=`echo "$CPPFLAGS" | \ 3985 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3986 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3987 3988 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 3989 3990 for cf_add_cflags in $cf_temp_xopen_source 3991 do 3992 case "x$cf_add_cflags" in 3993 (x-[DU]*) 3994 3995 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'` 3996 while true 3997 do 3998 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'` 3999 test "$CFLAGS" != "$cf_old_cflag" || break 4000 4001 CFLAGS="$cf_old_cflag" 4002 done 4003 4004 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'` 4005 while true 4006 do 4007 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'` 4008 test "$CPPFLAGS" != "$cf_old_cflag" || break 4009 4010 CPPFLAGS="$cf_old_cflag" 4011 done 4012 4013 ;; 4014 esac 4015 4016 cf_fix_cppflags=no 4017 cf_new_cflags= 4018 cf_new_cppflags= 4019 cf_new_extra_cppflags= 4020 4021 for cf_add_cflags in $cf_add_cflags 4022 do 4023 case "$cf_fix_cppflags" in 4024 (no) 4025 case "$cf_add_cflags" in 4026 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 4027 case "$cf_add_cflags" in 4028 (-D*) 4029 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4030 4031 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4032 && test -z "${cf_tst_cflags}" \ 4033 && cf_fix_cppflags=yes 4034 4035 if test "$cf_fix_cppflags" = yes ; then 4036 4037 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4038 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4039 4040 continue 4041 elif test "${cf_tst_cflags}" = "\"'" ; then 4042 4043 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4044 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4045 4046 continue 4047 fi 4048 ;; 4049 esac 4050 case "$CPPFLAGS" in 4051 (*$cf_add_cflags) 4052 ;; 4053 (*) 4054 case "$cf_add_cflags" in 4055 (-D*) 4056 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4057 4058 CPPFLAGS=`echo "$CPPFLAGS" | \ 4059 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4060 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4061 4062 ;; 4063 esac 4064 4065 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 4066 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 4067 4068 ;; 4069 esac 4070 ;; 4071 (*) 4072 4073 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 4074 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 4075 4076 ;; 4077 esac 4078 ;; 4079 (yes) 4080 4081 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4082 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4083 4084 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 4085 4086 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4087 && test -z "${cf_tst_cflags}" \ 4088 && cf_fix_cppflags=no 4089 ;; 4090 esac 4091 done 4092 4093 if test -n "$cf_new_cflags" ; then 4094 4095 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 4096 CFLAGS="${CFLAGS}$cf_new_cflags" 4097 4098 fi 4099 4100 if test -n "$cf_new_cppflags" ; then 4101 4102 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4103 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 4104 4105 fi 4106 4107 if test -n "$cf_new_extra_cppflags" ; then 4108 4109 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 4110 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 4111 4112 fi 4113 4114 done 4115 4116 fi 4117 4118 cf_save_xopen_cppflags="$CPPFLAGS" 4119 4120 if test "$cf_cv_posix_visible" = no; then 4121 4122 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 4123 4124 cf_save_CFLAGS="$CFLAGS" 4125 cf_save_CPPFLAGS="$CPPFLAGS" 4126 4127 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 4128 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 4129 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 4130 4131 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 4132 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 4133 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 4134 4135 echo "$as_me:4135: checking if we should define _POSIX_C_SOURCE" >&5 4136 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 4137 if test "${cf_cv_posix_c_source+set}" = set; then 4138 echo $ECHO_N "(cached) $ECHO_C" >&6 4139 else 4140 4141 echo "${as_me:-configure}:4141: testing if the symbol is already defined go no further ..." 1>&5 4142 4143 cat >"conftest.$ac_ext" <<_ACEOF 4144 #line 4144 "configure" 4145 #include "confdefs.h" 4146 #include <sys/types.h> 4147 int 4148 main (void) 4149 { 4150 4151 #ifndef _POSIX_C_SOURCE 4152 #error _POSIX_C_SOURCE is not defined 4153 #endif 4154 ; 4155 return 0; 4156 } 4157 _ACEOF 4158 rm -f "conftest.$ac_objext" 4159 if { (eval echo "$as_me:4159: \"$ac_compile\"") >&5 4160 (eval $ac_compile) 2>&5 4161 ac_status=$? 4162 echo "$as_me:4162: \$? = $ac_status" >&5 4163 (exit "$ac_status"); } && 4164 { ac_try='test -s "conftest.$ac_objext"' 4165 { (eval echo "$as_me:4165: \"$ac_try\"") >&5 4166 (eval $ac_try) 2>&5 4167 ac_status=$? 4168 echo "$as_me:4168: \$? = $ac_status" >&5 4169 (exit "$ac_status"); }; }; then 4170 cf_cv_posix_c_source=no 4171 else 4172 echo "$as_me: failed program was:" >&5 4173 cat "conftest.$ac_ext" >&5 4174 cf_want_posix_source=no 4175 case .$cf_POSIX_C_SOURCE in 4176 (.[12]??*) 4177 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 4178 ;; 4179 (.2) 4180 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 4181 cf_want_posix_source=yes 4182 ;; 4183 (.*) 4184 cf_want_posix_source=yes 4185 ;; 4186 esac 4187 if test "$cf_want_posix_source" = yes ; then 4188 cat >"conftest.$ac_ext" <<_ACEOF 4189 #line 4189 "configure" 4190 #include "confdefs.h" 4191 #include <sys/types.h> 4192 int 4193 main (void) 4194 { 4195 4196 #ifdef _POSIX_SOURCE 4197 #error _POSIX_SOURCE is defined 4198 #endif 4199 ; 4200 return 0; 4201 } 4202 _ACEOF 4203 rm -f "conftest.$ac_objext" 4204 if { (eval echo "$as_me:4204: \"$ac_compile\"") >&5 4205 (eval $ac_compile) 2>&5 4206 ac_status=$? 4207 echo "$as_me:4207: \$? = $ac_status" >&5 4208 (exit "$ac_status"); } && 4209 { ac_try='test -s "conftest.$ac_objext"' 4210 { (eval echo "$as_me:4210: \"$ac_try\"") >&5 4211 (eval $ac_try) 2>&5 4212 ac_status=$? 4213 echo "$as_me:4213: \$? = $ac_status" >&5 4214 (exit "$ac_status"); }; }; then 4215 : 4216 else 4217 echo "$as_me: failed program was:" >&5 4218 cat "conftest.$ac_ext" >&5 4219 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 4220 fi 4221 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4222 fi 4223 4224 echo "${as_me:-configure}:4224: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 4225 4226 CFLAGS="$cf_trim_CFLAGS" 4227 CPPFLAGS="$cf_trim_CPPFLAGS" 4228 4229 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4230 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source" 4231 4232 echo "${as_me:-configure}:4232: testing if the second compile does not leave our definition intact error ..." 1>&5 4233 4234 cat >"conftest.$ac_ext" <<_ACEOF 4235 #line 4235 "configure" 4236 #include "confdefs.h" 4237 #include <sys/types.h> 4238 int 4239 main (void) 4240 { 4241 4242 #ifndef _POSIX_C_SOURCE 4243 #error _POSIX_C_SOURCE is not defined 4244 #endif 4245 ; 4246 return 0; 4247 } 4248 _ACEOF 4249 rm -f "conftest.$ac_objext" 4250 if { (eval echo "$as_me:4250: \"$ac_compile\"") >&5 4251 (eval $ac_compile) 2>&5 4252 ac_status=$? 4253 echo "$as_me:4253: \$? = $ac_status" >&5 4254 (exit "$ac_status"); } && 4255 { ac_try='test -s "conftest.$ac_objext"' 4256 { (eval echo "$as_me:4256: \"$ac_try\"") >&5 4257 (eval $ac_try) 2>&5 4258 ac_status=$? 4259 echo "$as_me:4259: \$? = $ac_status" >&5 4260 (exit "$ac_status"); }; }; then 4261 : 4262 else 4263 echo "$as_me: failed program was:" >&5 4264 cat "conftest.$ac_ext" >&5 4265 cf_cv_posix_c_source=no 4266 fi 4267 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4268 CFLAGS="$cf_save_CFLAGS" 4269 CPPFLAGS="$cf_save_CPPFLAGS" 4270 4271 fi 4272 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4273 4274 fi 4275 echo "$as_me:4275: result: $cf_cv_posix_c_source" >&5 4276 echo "${ECHO_T}$cf_cv_posix_c_source" >&6 4277 4278 if test "$cf_cv_posix_c_source" != no ; then 4279 CFLAGS="$cf_trim_CFLAGS" 4280 CPPFLAGS="$cf_trim_CPPFLAGS" 4281 4282 cf_fix_cppflags=no 4283 cf_new_cflags= 4284 cf_new_cppflags= 4285 cf_new_extra_cppflags= 4286 4287 for cf_add_cflags in $cf_cv_posix_c_source 4288 do 4289 case "$cf_fix_cppflags" in 4290 (no) 4291 case "$cf_add_cflags" in 4292 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 4293 case "$cf_add_cflags" in 4294 (-D*) 4295 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4296 4297 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4298 && test -z "${cf_tst_cflags}" \ 4299 && cf_fix_cppflags=yes 4300 4301 if test "$cf_fix_cppflags" = yes ; then 4302 4303 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4304 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4305 4306 continue 4307 elif test "${cf_tst_cflags}" = "\"'" ; then 4308 4309 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4310 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4311 4312 continue 4313 fi 4314 ;; 4315 esac 4316 case "$CPPFLAGS" in 4317 (*$cf_add_cflags) 4318 ;; 4319 (*) 4320 case "$cf_add_cflags" in 4321 (-D*) 4322 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4323 4324 CPPFLAGS=`echo "$CPPFLAGS" | \ 4325 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4326 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4327 4328 ;; 4329 esac 4330 4331 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 4332 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 4333 4334 ;; 4335 esac 4336 ;; 4337 (*) 4338 4339 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 4340 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 4341 4342 ;; 4343 esac 4344 ;; 4345 (yes) 4346 4347 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4348 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4349 4350 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 4351 4352 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4353 && test -z "${cf_tst_cflags}" \ 4354 && cf_fix_cppflags=no 4355 ;; 4356 esac 4357 done 4358 4359 if test -n "$cf_new_cflags" ; then 4360 4361 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 4362 CFLAGS="${CFLAGS}$cf_new_cflags" 4363 4364 fi 4365 4366 if test -n "$cf_new_cppflags" ; then 4367 4368 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4369 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 4370 4371 fi 4372 4373 if test -n "$cf_new_extra_cppflags" ; then 4374 4375 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 4376 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 4377 4378 fi 4379 4380 fi 4381 4382 fi # cf_cv_posix_visible 4383 4384 # Some of these niche implementations use copy/paste, double-check... 4385 if test "$cf_cv_xopen_source" = no ; then 4386 test -n "$verbose" && echo " checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE" 1>&6 4387 4388 echo "${as_me:-configure}:4388: testing checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE ..." 1>&5 4389 4390 cat >"conftest.$ac_ext" <<_ACEOF 4391 #line 4391 "configure" 4392 #include "confdefs.h" 4393 4394 $ac_includes_default 4395 4396 int 4397 main (void) 4398 { 4399 4400 #ifndef _XOPEN_SOURCE 4401 #error _XOPEN_SOURCE is not defined 4402 #endif 4403 4404 ; 4405 return 0; 4406 } 4407 _ACEOF 4408 rm -f "conftest.$ac_objext" 4409 if { (eval echo "$as_me:4409: \"$ac_compile\"") >&5 4410 (eval $ac_compile) 2>&5 4411 ac_status=$? 4412 echo "$as_me:4412: \$? = $ac_status" >&5 4413 (exit "$ac_status"); } && 4414 { ac_try='test -s "conftest.$ac_objext"' 4415 { (eval echo "$as_me:4415: \"$ac_try\"") >&5 4416 (eval $ac_try) 2>&5 4417 ac_status=$? 4418 echo "$as_me:4418: \$? = $ac_status" >&5 4419 (exit "$ac_status"); }; }; then 4420 : 4421 else 4422 echo "$as_me: failed program was:" >&5 4423 cat "conftest.$ac_ext" >&5 4424 4425 { echo "$as_me:4425: WARNING: _POSIX_C_SOURCE definition is not usable" >&5 4426 echo "$as_me: WARNING: _POSIX_C_SOURCE definition is not usable" >&2;} 4427 CPPFLAGS="$cf_save_xopen_cppflags" 4428 fi 4429 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4430 fi 4431 ;; 4432 esac 4433 4434 if test -n "$cf_xopen_source" ; then 4435 4436 for cf_add_cflags in $cf_xopen_source 4437 do 4438 case "x$cf_add_cflags" in 4439 (x-[DU]*) 4440 4441 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'` 4442 while true 4443 do 4444 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'` 4445 test "$CFLAGS" != "$cf_old_cflag" || break 4446 test -n "$verbose" && echo " removing old option $cf_add_cflags from CFLAGS" 1>&6 4447 4448 echo "${as_me:-configure}:4448: testing removing old option $cf_add_cflags from CFLAGS ..." 1>&5 4449 4450 CFLAGS="$cf_old_cflag" 4451 done 4452 4453 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'` 4454 while true 4455 do 4456 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'` 4457 test "$CPPFLAGS" != "$cf_old_cflag" || break 4458 test -n "$verbose" && echo " removing old option $cf_add_cflags from CPPFLAGS" 1>&6 4459 4460 echo "${as_me:-configure}:4460: testing removing old option $cf_add_cflags from CPPFLAGS ..." 1>&5 4461 4462 CPPFLAGS="$cf_old_cflag" 4463 done 4464 4465 ;; 4466 esac 4467 4468 cf_fix_cppflags=no 4469 cf_new_cflags= 4470 cf_new_cppflags= 4471 cf_new_extra_cppflags= 4472 4473 for cf_add_cflags in $cf_add_cflags 4474 do 4475 case "$cf_fix_cppflags" in 4476 (no) 4477 case "$cf_add_cflags" in 4478 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 4479 case "$cf_add_cflags" in 4480 (-D*) 4481 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4482 4483 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4484 && test -z "${cf_tst_cflags}" \ 4485 && cf_fix_cppflags=yes 4486 4487 if test "$cf_fix_cppflags" = yes ; then 4488 4489 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4490 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4491 4492 continue 4493 elif test "${cf_tst_cflags}" = "\"'" ; then 4494 4495 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4496 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4497 4498 continue 4499 fi 4500 ;; 4501 esac 4502 case "$CPPFLAGS" in 4503 (*$cf_add_cflags) 4504 ;; 4505 (*) 4506 case "$cf_add_cflags" in 4507 (-D*) 4508 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4509 4510 CPPFLAGS=`echo "$CPPFLAGS" | \ 4511 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4512 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4513 4514 ;; 4515 esac 4516 4517 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 4518 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 4519 4520 ;; 4521 esac 4522 ;; 4523 (*) 4524 4525 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 4526 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 4527 4528 ;; 4529 esac 4530 ;; 4531 (yes) 4532 4533 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4534 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4535 4536 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 4537 4538 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4539 && test -z "${cf_tst_cflags}" \ 4540 && cf_fix_cppflags=no 4541 ;; 4542 esac 4543 done 4544 4545 if test -n "$cf_new_cflags" ; then 4546 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 4547 4548 echo "${as_me:-configure}:4548: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 4549 4550 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 4551 CFLAGS="${CFLAGS}$cf_new_cflags" 4552 4553 fi 4554 4555 if test -n "$cf_new_cppflags" ; then 4556 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 4557 4558 echo "${as_me:-configure}:4558: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 4559 4560 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4561 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 4562 4563 fi 4564 4565 if test -n "$cf_new_extra_cppflags" ; then 4566 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6 4567 4568 echo "${as_me:-configure}:4568: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5 4569 4570 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 4571 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 4572 4573 fi 4574 4575 done 4576 4577 fi 4578 4579 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then 4580 echo "$as_me:4580: checking if _XOPEN_SOURCE really is set" >&5 4581 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6 4582 cat >"conftest.$ac_ext" <<_ACEOF 4583 #line 4583 "configure" 4584 #include "confdefs.h" 4585 #include <stdlib.h> 4586 int 4587 main (void) 4588 { 4589 4590 #ifndef _XOPEN_SOURCE 4591 #error _XOPEN_SOURCE is not defined 4592 #endif 4593 ; 4594 return 0; 4595 } 4596 _ACEOF 4597 rm -f "conftest.$ac_objext" 4598 if { (eval echo "$as_me:4598: \"$ac_compile\"") >&5 4599 (eval $ac_compile) 2>&5 4600 ac_status=$? 4601 echo "$as_me:4601: \$? = $ac_status" >&5 4602 (exit "$ac_status"); } && 4603 { ac_try='test -s "conftest.$ac_objext"' 4604 { (eval echo "$as_me:4604: \"$ac_try\"") >&5 4605 (eval $ac_try) 2>&5 4606 ac_status=$? 4607 echo "$as_me:4607: \$? = $ac_status" >&5 4608 (exit "$ac_status"); }; }; then 4609 cf_XOPEN_SOURCE_set=yes 4610 else 4611 echo "$as_me: failed program was:" >&5 4612 cat "conftest.$ac_ext" >&5 4613 cf_XOPEN_SOURCE_set=no 4614 fi 4615 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4616 echo "$as_me:4616: result: $cf_XOPEN_SOURCE_set" >&5 4617 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6 4618 if test "$cf_XOPEN_SOURCE_set" = yes 4619 then 4620 cat >"conftest.$ac_ext" <<_ACEOF 4621 #line 4621 "configure" 4622 #include "confdefs.h" 4623 #include <stdlib.h> 4624 int 4625 main (void) 4626 { 4627 4628 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE 4629 #error (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE 4630 #endif 4631 ; 4632 return 0; 4633 } 4634 _ACEOF 4635 rm -f "conftest.$ac_objext" 4636 if { (eval echo "$as_me:4636: \"$ac_compile\"") >&5 4637 (eval $ac_compile) 2>&5 4638 ac_status=$? 4639 echo "$as_me:4639: \$? = $ac_status" >&5 4640 (exit "$ac_status"); } && 4641 { ac_try='test -s "conftest.$ac_objext"' 4642 { (eval echo "$as_me:4642: \"$ac_try\"") >&5 4643 (eval $ac_try) 2>&5 4644 ac_status=$? 4645 echo "$as_me:4645: \$? = $ac_status" >&5 4646 (exit "$ac_status"); }; }; then 4647 cf_XOPEN_SOURCE_set_ok=yes 4648 else 4649 echo "$as_me: failed program was:" >&5 4650 cat "conftest.$ac_ext" >&5 4651 cf_XOPEN_SOURCE_set_ok=no 4652 fi 4653 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4654 if test "$cf_XOPEN_SOURCE_set_ok" = no 4655 then 4656 { echo "$as_me:4656: WARNING: _XOPEN_SOURCE is lower than requested" >&5 4657 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;} 4658 fi 4659 else 4660 4661 echo "$as_me:4661: checking if we should define _XOPEN_SOURCE" >&5 4662 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 4663 if test "${cf_cv_xopen_source+set}" = set; then 4664 echo $ECHO_N "(cached) $ECHO_C" >&6 4665 else 4666 4667 cat >"conftest.$ac_ext" <<_ACEOF 4668 #line 4668 "configure" 4669 #include "confdefs.h" 4670 4671 $ac_includes_default 4672 4673 int 4674 main (void) 4675 { 4676 4677 #ifndef _XOPEN_SOURCE 4678 #error _XOPEN_SOURCE is not defined 4679 #endif 4680 4681 ; 4682 return 0; 4683 } 4684 _ACEOF 4685 rm -f "conftest.$ac_objext" 4686 if { (eval echo "$as_me:4686: \"$ac_compile\"") >&5 4687 (eval $ac_compile) 2>&5 4688 ac_status=$? 4689 echo "$as_me:4689: \$? = $ac_status" >&5 4690 (exit "$ac_status"); } && 4691 { ac_try='test -s "conftest.$ac_objext"' 4692 { (eval echo "$as_me:4692: \"$ac_try\"") >&5 4693 (eval $ac_try) 2>&5 4694 ac_status=$? 4695 echo "$as_me:4695: \$? = $ac_status" >&5 4696 (exit "$ac_status"); }; }; then 4697 cf_cv_xopen_source=no 4698 else 4699 echo "$as_me: failed program was:" >&5 4700 cat "conftest.$ac_ext" >&5 4701 cf_save="$CPPFLAGS" 4702 4703 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4704 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 4705 4706 cat >"conftest.$ac_ext" <<_ACEOF 4707 #line 4707 "configure" 4708 #include "confdefs.h" 4709 4710 $ac_includes_default 4711 4712 int 4713 main (void) 4714 { 4715 4716 #ifndef _XOPEN_SOURCE 4717 #error _XOPEN_SOURCE is not defined 4718 #endif 4719 4720 ; 4721 return 0; 4722 } 4723 _ACEOF 4724 rm -f "conftest.$ac_objext" 4725 if { (eval echo "$as_me:4725: \"$ac_compile\"") >&5 4726 (eval $ac_compile) 2>&5 4727 ac_status=$? 4728 echo "$as_me:4728: \$? = $ac_status" >&5 4729 (exit "$ac_status"); } && 4730 { ac_try='test -s "conftest.$ac_objext"' 4731 { (eval echo "$as_me:4731: \"$ac_try\"") >&5 4732 (eval $ac_try) 2>&5 4733 ac_status=$? 4734 echo "$as_me:4734: \$? = $ac_status" >&5 4735 (exit "$ac_status"); }; }; then 4736 cf_cv_xopen_source=no 4737 else 4738 echo "$as_me: failed program was:" >&5 4739 cat "conftest.$ac_ext" >&5 4740 cf_cv_xopen_source=$cf_XOPEN_SOURCE 4741 fi 4742 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4743 CPPFLAGS="$cf_save" 4744 4745 fi 4746 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4747 4748 fi 4749 echo "$as_me:4749: result: $cf_cv_xopen_source" >&5 4750 echo "${ECHO_T}$cf_cv_xopen_source" >&6 4751 4752 if test "$cf_cv_xopen_source" != no ; then 4753 4754 CFLAGS=`echo "$CFLAGS" | \ 4755 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 4756 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 4757 4758 CPPFLAGS=`echo "$CPPFLAGS" | \ 4759 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 4760 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 4761 4762 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 4763 4764 for cf_add_cflags in $cf_temp_xopen_source 4765 do 4766 case "x$cf_add_cflags" in 4767 (x-[DU]*) 4768 4769 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'` 4770 while true 4771 do 4772 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'` 4773 test "$CFLAGS" != "$cf_old_cflag" || break 4774 4775 CFLAGS="$cf_old_cflag" 4776 done 4777 4778 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'` 4779 while true 4780 do 4781 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'` 4782 test "$CPPFLAGS" != "$cf_old_cflag" || break 4783 4784 CPPFLAGS="$cf_old_cflag" 4785 done 4786 4787 ;; 4788 esac 4789 4790 cf_fix_cppflags=no 4791 cf_new_cflags= 4792 cf_new_cppflags= 4793 cf_new_extra_cppflags= 4794 4795 for cf_add_cflags in $cf_add_cflags 4796 do 4797 case "$cf_fix_cppflags" in 4798 (no) 4799 case "$cf_add_cflags" in 4800 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 4801 case "$cf_add_cflags" in 4802 (-D*) 4803 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4804 4805 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4806 && test -z "${cf_tst_cflags}" \ 4807 && cf_fix_cppflags=yes 4808 4809 if test "$cf_fix_cppflags" = yes ; then 4810 4811 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4812 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4813 4814 continue 4815 elif test "${cf_tst_cflags}" = "\"'" ; then 4816 4817 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4818 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4819 4820 continue 4821 fi 4822 ;; 4823 esac 4824 case "$CPPFLAGS" in 4825 (*$cf_add_cflags) 4826 ;; 4827 (*) 4828 case "$cf_add_cflags" in 4829 (-D*) 4830 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4831 4832 CPPFLAGS=`echo "$CPPFLAGS" | \ 4833 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4834 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4835 4836 ;; 4837 esac 4838 4839 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 4840 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 4841 4842 ;; 4843 esac 4844 ;; 4845 (*) 4846 4847 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 4848 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 4849 4850 ;; 4851 esac 4852 ;; 4853 (yes) 4854 4855 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4856 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4857 4858 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 4859 4860 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4861 && test -z "${cf_tst_cflags}" \ 4862 && cf_fix_cppflags=no 4863 ;; 4864 esac 4865 done 4866 4867 if test -n "$cf_new_cflags" ; then 4868 4869 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 4870 CFLAGS="${CFLAGS}$cf_new_cflags" 4871 4872 fi 4873 4874 if test -n "$cf_new_cppflags" ; then 4875 4876 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4877 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 4878 4879 fi 4880 4881 if test -n "$cf_new_extra_cppflags" ; then 4882 4883 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 4884 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 4885 4886 fi 4887 4888 done 4889 4890 fi 4891 4892 fi 4893 fi 4894 fi # cf_cv_posix_visible 4895 4896 echo "$as_me:4896: checking if SIGWINCH is defined" >&5 4897 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6 4898 if test "${cf_cv_define_sigwinch+set}" = set; then 4899 echo $ECHO_N "(cached) $ECHO_C" >&6 4900 else 4901 4902 cat >"conftest.$ac_ext" <<_ACEOF 4903 #line 4903 "configure" 4904 #include "confdefs.h" 4905 4906 #include <sys/types.h> 4907 #include <sys/signal.h> 4908 4909 int 4910 main (void) 4911 { 4912 int x = SIGWINCH; (void)x 4913 ; 4914 return 0; 4915 } 4916 _ACEOF 4917 rm -f "conftest.$ac_objext" 4918 if { (eval echo "$as_me:4918: \"$ac_compile\"") >&5 4919 (eval $ac_compile) 2>&5 4920 ac_status=$? 4921 echo "$as_me:4921: \$? = $ac_status" >&5 4922 (exit "$ac_status"); } && 4923 { ac_try='test -s "conftest.$ac_objext"' 4924 { (eval echo "$as_me:4924: \"$ac_try\"") >&5 4925 (eval $ac_try) 2>&5 4926 ac_status=$? 4927 echo "$as_me:4927: \$? = $ac_status" >&5 4928 (exit "$ac_status"); }; }; then 4929 cf_cv_define_sigwinch=yes 4930 else 4931 echo "$as_me: failed program was:" >&5 4932 cat "conftest.$ac_ext" >&5 4933 cat >"conftest.$ac_ext" <<_ACEOF 4934 #line 4934 "configure" 4935 #include "confdefs.h" 4936 4937 #undef _XOPEN_SOURCE 4938 #undef _POSIX_SOURCE 4939 #undef _POSIX_C_SOURCE 4940 #include <sys/types.h> 4941 #include <sys/signal.h> 4942 4943 int 4944 main (void) 4945 { 4946 int x = SIGWINCH; (void)x 4947 ; 4948 return 0; 4949 } 4950 _ACEOF 4951 rm -f "conftest.$ac_objext" 4952 if { (eval echo "$as_me:4952: \"$ac_compile\"") >&5 4953 (eval $ac_compile) 2>&5 4954 ac_status=$? 4955 echo "$as_me:4955: \$? = $ac_status" >&5 4956 (exit "$ac_status"); } && 4957 { ac_try='test -s "conftest.$ac_objext"' 4958 { (eval echo "$as_me:4958: \"$ac_try\"") >&5 4959 (eval $ac_try) 2>&5 4960 ac_status=$? 4961 echo "$as_me:4961: \$? = $ac_status" >&5 4962 (exit "$ac_status"); }; }; then 4963 cf_cv_define_sigwinch=maybe 4964 else 4965 echo "$as_me: failed program was:" >&5 4966 cat "conftest.$ac_ext" >&5 4967 cf_cv_define_sigwinch=no 4968 fi 4969 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4970 4971 fi 4972 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 4973 4974 fi 4975 echo "$as_me:4975: result: $cf_cv_define_sigwinch" >&5 4976 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6 4977 4978 if test "$cf_cv_define_sigwinch" = maybe ; then 4979 echo "$as_me:4979: checking for actual SIGWINCH definition" >&5 4980 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6 4981 if test "${cf_cv_fixup_sigwinch+set}" = set; then 4982 echo $ECHO_N "(cached) $ECHO_C" >&6 4983 else 4984 4985 cf_cv_fixup_sigwinch=unknown 4986 cf_sigwinch=32 4987 while test "$cf_sigwinch" != 1 4988 do 4989 cat >"conftest.$ac_ext" <<_ACEOF 4990 #line 4990 "configure" 4991 #include "confdefs.h" 4992 4993 #undef _XOPEN_SOURCE 4994 #undef _POSIX_SOURCE 4995 #undef _POSIX_C_SOURCE 4996 #include <sys/types.h> 4997 #include <sys/signal.h> 4998 4999 int 5000 main (void) 5001 { 5002 5003 #if SIGWINCH != $cf_sigwinch 5004 #error SIGWINCH is not $cf_sigwinch 5005 #endif 5006 int x = SIGWINCH; (void)x 5007 ; 5008 return 0; 5009 } 5010 _ACEOF 5011 rm -f "conftest.$ac_objext" 5012 if { (eval echo "$as_me:5012: \"$ac_compile\"") >&5 5013 (eval $ac_compile) 2>&5 5014 ac_status=$? 5015 echo "$as_me:5015: \$? = $ac_status" >&5 5016 (exit "$ac_status"); } && 5017 { ac_try='test -s "conftest.$ac_objext"' 5018 { (eval echo "$as_me:5018: \"$ac_try\"") >&5 5019 (eval $ac_try) 2>&5 5020 ac_status=$? 5021 echo "$as_me:5021: \$? = $ac_status" >&5 5022 (exit "$ac_status"); }; }; then 5023 cf_cv_fixup_sigwinch=$cf_sigwinch 5024 break 5025 else 5026 echo "$as_me: failed program was:" >&5 5027 cat "conftest.$ac_ext" >&5 5028 fi 5029 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5030 5031 cf_sigwinch="`expr "$cf_sigwinch" - 1`" 5032 done 5033 5034 fi 5035 echo "$as_me:5035: result: $cf_cv_fixup_sigwinch" >&5 5036 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6 5037 5038 if test "$cf_cv_fixup_sigwinch" != unknown ; then 5039 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch" 5040 fi 5041 fi 5042 5043 ### checks for header files 5044 5045 echo "$as_me:5045: checking for ANSI C header files" >&5 5046 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 5047 if test "${ac_cv_header_stdc+set}" = set; then 5048 echo $ECHO_N "(cached) $ECHO_C" >&6 5049 else 5050 cat >"conftest.$ac_ext" <<_ACEOF 5051 #line 5051 "configure" 5052 #include "confdefs.h" 5053 #include <stdlib.h> 5054 #include <stdarg.h> 5055 #include <string.h> 5056 #include <float.h> 5057 5058 _ACEOF 5059 if { (eval echo "$as_me:5059: \"$ac_cpp "conftest.$ac_ext"\"") >&5 5060 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 5061 ac_status=$? 5062 $EGREP -v '^ *\+' conftest.er1 >conftest.err 5063 rm -f conftest.er1 5064 cat conftest.err >&5 5065 echo "$as_me:5065: \$? = $ac_status" >&5 5066 (exit "$ac_status"); } >/dev/null; then 5067 if test -s conftest.err; then 5068 ac_cpp_err=$ac_c_preproc_warn_flag 5069 else 5070 ac_cpp_err= 5071 fi 5072 else 5073 ac_cpp_err=yes 5074 fi 5075 if test -z "$ac_cpp_err"; then 5076 ac_cv_header_stdc=yes 5077 else 5078 echo "$as_me: failed program was:" >&5 5079 cat "conftest.$ac_ext" >&5 5080 ac_cv_header_stdc=no 5081 fi 5082 rm -f conftest.err "conftest.$ac_ext" 5083 5084 if test $ac_cv_header_stdc = yes; then 5085 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5086 cat >"conftest.$ac_ext" <<_ACEOF 5087 #line 5087 "configure" 5088 #include "confdefs.h" 5089 #include <string.h> 5090 5091 _ACEOF 5092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5093 $EGREP "memchr" >/dev/null 2>&1; then 5094 : 5095 else 5096 ac_cv_header_stdc=no 5097 fi 5098 rm -rf conftest* 5099 5100 fi 5101 5102 if test $ac_cv_header_stdc = yes; then 5103 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5104 cat >"conftest.$ac_ext" <<_ACEOF 5105 #line 5105 "configure" 5106 #include "confdefs.h" 5107 #include <stdlib.h> 5108 5109 _ACEOF 5110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5111 $EGREP "free" >/dev/null 2>&1; then 5112 : 5113 else 5114 ac_cv_header_stdc=no 5115 fi 5116 rm -rf conftest* 5117 5118 fi 5119 5120 if test $ac_cv_header_stdc = yes; then 5121 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5122 if test "$cross_compiling" = yes; then 5123 : 5124 else 5125 cat >"conftest.$ac_ext" <<_ACEOF 5126 #line 5126 "configure" 5127 #include "confdefs.h" 5128 #include <ctype.h> 5129 #if ((' ' & 0x0FF) == 0x020) 5130 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5131 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5132 #else 5133 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 5134 || ('j' <= (c) && (c) <= 'r') \ 5135 || ('s' <= (c) && (c) <= 'z')) 5136 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5137 #endif 5138 5139 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5140 int 5141 main (void) 5142 { 5143 int i; 5144 for (i = 0; i < 256; i++) 5145 if (XOR (islower (i), ISLOWER (i)) 5146 || toupper (i) != TOUPPER (i)) 5147 $ac_main_return(2); 5148 $ac_main_return (0); 5149 } 5150 _ACEOF 5151 rm -f "conftest$ac_exeext" 5152 if { (eval echo "$as_me:5152: \"$ac_link\"") >&5 5153 (eval $ac_link) 2>&5 5154 ac_status=$? 5155 echo "$as_me:5155: \$? = $ac_status" >&5 5156 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 5157 { (eval echo "$as_me:5157: \"$ac_try\"") >&5 5158 (eval $ac_try) 2>&5 5159 ac_status=$? 5160 echo "$as_me:5160: \$? = $ac_status" >&5 5161 (exit "$ac_status"); }; }; then 5162 : 5163 else 5164 echo "$as_me: program exited with status $ac_status" >&5 5165 echo "$as_me: failed program was:" >&5 5166 cat "conftest.$ac_ext" >&5 5167 ac_cv_header_stdc=no 5168 fi 5169 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 5170 fi 5171 fi 5172 fi 5173 echo "$as_me:5173: result: $ac_cv_header_stdc" >&5 5174 echo "${ECHO_T}$ac_cv_header_stdc" >&6 5175 if test $ac_cv_header_stdc = yes; then 5176 5177 cat >>confdefs.h <<\EOF 5178 #define STDC_HEADERS 1 5179 EOF 5180 5181 fi 5182 5183 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 5184 5185 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5186 inttypes.h stdint.h unistd.h 5187 do 5188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5189 echo "$as_me:5189: checking for $ac_header" >&5 5190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5191 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5192 echo $ECHO_N "(cached) $ECHO_C" >&6 5193 else 5194 cat >"conftest.$ac_ext" <<_ACEOF 5195 #line 5195 "configure" 5196 #include "confdefs.h" 5197 $ac_includes_default 5198 #include <$ac_header> 5199 _ACEOF 5200 rm -f "conftest.$ac_objext" 5201 if { (eval echo "$as_me:5201: \"$ac_compile\"") >&5 5202 (eval $ac_compile) 2>&5 5203 ac_status=$? 5204 echo "$as_me:5204: \$? = $ac_status" >&5 5205 (exit "$ac_status"); } && 5206 { ac_try='test -s "conftest.$ac_objext"' 5207 { (eval echo "$as_me:5207: \"$ac_try\"") >&5 5208 (eval $ac_try) 2>&5 5209 ac_status=$? 5210 echo "$as_me:5210: \$? = $ac_status" >&5 5211 (exit "$ac_status"); }; }; then 5212 eval "$as_ac_Header=yes" 5213 else 5214 echo "$as_me: failed program was:" >&5 5215 cat "conftest.$ac_ext" >&5 5216 eval "$as_ac_Header=no" 5217 fi 5218 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5219 fi 5220 echo "$as_me:5220: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 5221 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 5222 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 5223 cat >>confdefs.h <<EOF 5224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5225 EOF 5226 5227 fi 5228 done 5229 5230 echo "$as_me:5230: checking whether exit is declared" >&5 5231 echo $ECHO_N "checking whether exit is declared... $ECHO_C" >&6 5232 if test "${ac_cv_have_decl_exit+set}" = set; then 5233 echo $ECHO_N "(cached) $ECHO_C" >&6 5234 else 5235 cat >"conftest.$ac_ext" <<_ACEOF 5236 #line 5236 "configure" 5237 #include "confdefs.h" 5238 $ac_includes_default 5239 int 5240 main (void) 5241 { 5242 #ifndef exit 5243 (void) exit; 5244 #endif 5245 5246 ; 5247 return 0; 5248 } 5249 _ACEOF 5250 rm -f "conftest.$ac_objext" 5251 if { (eval echo "$as_me:5251: \"$ac_compile\"") >&5 5252 (eval $ac_compile) 2>&5 5253 ac_status=$? 5254 echo "$as_me:5254: \$? = $ac_status" >&5 5255 (exit "$ac_status"); } && 5256 { ac_try='test -s "conftest.$ac_objext"' 5257 { (eval echo "$as_me:5257: \"$ac_try\"") >&5 5258 (eval $ac_try) 2>&5 5259 ac_status=$? 5260 echo "$as_me:5260: \$? = $ac_status" >&5 5261 (exit "$ac_status"); }; }; then 5262 ac_cv_have_decl_exit=yes 5263 else 5264 echo "$as_me: failed program was:" >&5 5265 cat "conftest.$ac_ext" >&5 5266 ac_cv_have_decl_exit=no 5267 fi 5268 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5269 fi 5270 echo "$as_me:5270: result: $ac_cv_have_decl_exit" >&5 5271 echo "${ECHO_T}$ac_cv_have_decl_exit" >&6 5272 5273 for ac_header in \ 5274 ncurses/curses.h \ 5275 ncurses/term.h \ 5276 sys/ptem.h \ 5277 sys/ttydefaults.h \ 5278 term.h \ 5279 termios.h \ 5280 wchar.h \ 5281 5282 do 5283 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5284 echo "$as_me:5284: checking for $ac_header" >&5 5285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5286 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5287 echo $ECHO_N "(cached) $ECHO_C" >&6 5288 else 5289 cat >"conftest.$ac_ext" <<_ACEOF 5290 #line 5290 "configure" 5291 #include "confdefs.h" 5292 #include <$ac_header> 5293 _ACEOF 5294 if { (eval echo "$as_me:5294: \"$ac_cpp "conftest.$ac_ext"\"") >&5 5295 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 5296 ac_status=$? 5297 $EGREP -v '^ *\+' conftest.er1 >conftest.err 5298 rm -f conftest.er1 5299 cat conftest.err >&5 5300 echo "$as_me:5300: \$? = $ac_status" >&5 5301 (exit "$ac_status"); } >/dev/null; then 5302 if test -s conftest.err; then 5303 ac_cpp_err=$ac_c_preproc_warn_flag 5304 else 5305 ac_cpp_err= 5306 fi 5307 else 5308 ac_cpp_err=yes 5309 fi 5310 if test -z "$ac_cpp_err"; then 5311 eval "$as_ac_Header=yes" 5312 else 5313 echo "$as_me: failed program was:" >&5 5314 cat "conftest.$ac_ext" >&5 5315 eval "$as_ac_Header=no" 5316 fi 5317 rm -f conftest.err "conftest.$ac_ext" 5318 fi 5319 echo "$as_me:5319: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 5320 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 5321 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 5322 cat >>confdefs.h <<EOF 5323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5324 EOF 5325 5326 fi 5327 done 5328 5329 echo "$as_me:5329: checking whether time.h and sys/time.h may both be included" >&5 5330 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 5331 if test "${ac_cv_header_time+set}" = set; then 5332 echo $ECHO_N "(cached) $ECHO_C" >&6 5333 else 5334 cat >"conftest.$ac_ext" <<_ACEOF 5335 #line 5335 "configure" 5336 #include "confdefs.h" 5337 #include <sys/types.h> 5338 #include <sys/time.h> 5339 #include <time.h> 5340 5341 int 5342 main (void) 5343 { 5344 if ((struct tm *) 0) 5345 return 0; 5346 ; 5347 return 0; 5348 } 5349 _ACEOF 5350 rm -f "conftest.$ac_objext" 5351 if { (eval echo "$as_me:5351: \"$ac_compile\"") >&5 5352 (eval $ac_compile) 2>&5 5353 ac_status=$? 5354 echo "$as_me:5354: \$? = $ac_status" >&5 5355 (exit "$ac_status"); } && 5356 { ac_try='test -s "conftest.$ac_objext"' 5357 { (eval echo "$as_me:5357: \"$ac_try\"") >&5 5358 (eval $ac_try) 2>&5 5359 ac_status=$? 5360 echo "$as_me:5360: \$? = $ac_status" >&5 5361 (exit "$ac_status"); }; }; then 5362 ac_cv_header_time=yes 5363 else 5364 echo "$as_me: failed program was:" >&5 5365 cat "conftest.$ac_ext" >&5 5366 ac_cv_header_time=no 5367 fi 5368 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5369 fi 5370 echo "$as_me:5370: result: $ac_cv_header_time" >&5 5371 echo "${ECHO_T}$ac_cv_header_time" >&6 5372 if test $ac_cv_header_time = yes; then 5373 5374 cat >>confdefs.h <<\EOF 5375 #define TIME_WITH_SYS_TIME 1 5376 EOF 5377 5378 fi 5379 5380 echo "$as_me:5380: checking for nl_langinfo and CODESET" >&5 5381 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 5382 if test "${am_cv_langinfo_codeset+set}" = set; then 5383 echo $ECHO_N "(cached) $ECHO_C" >&6 5384 else 5385 cat >"conftest.$ac_ext" <<_ACEOF 5386 #line 5386 "configure" 5387 #include "confdefs.h" 5388 5389 $ac_includes_default 5390 #include <langinfo.h> 5391 int 5392 main (void) 5393 { 5394 char* cs = nl_langinfo(CODESET); (void)cs 5395 ; 5396 return 0; 5397 } 5398 _ACEOF 5399 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 5400 if { (eval echo "$as_me:5400: \"$ac_link\"") >&5 5401 (eval $ac_link) 2>&5 5402 ac_status=$? 5403 echo "$as_me:5403: \$? = $ac_status" >&5 5404 (exit "$ac_status"); } && 5405 { ac_try='test -s "conftest$ac_exeext"' 5406 { (eval echo "$as_me:5406: \"$ac_try\"") >&5 5407 (eval $ac_try) 2>&5 5408 ac_status=$? 5409 echo "$as_me:5409: \$? = $ac_status" >&5 5410 (exit "$ac_status"); }; }; then 5411 am_cv_langinfo_codeset=yes 5412 else 5413 echo "$as_me: failed program was:" >&5 5414 cat "conftest.$ac_ext" >&5 5415 am_cv_langinfo_codeset=no 5416 fi 5417 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 5418 5419 fi 5420 echo "$as_me:5420: result: $am_cv_langinfo_codeset" >&5 5421 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 5422 if test "$am_cv_langinfo_codeset" = yes; then 5423 5424 cat >>confdefs.h <<\EOF 5425 #define HAVE_LANGINFO_CODESET 1 5426 EOF 5427 5428 fi 5429 5430 ### checks for typedefs 5431 5432 echo "$as_me:5432: checking for signal global datatype" >&5 5433 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6 5434 if test "${cf_cv_sig_atomic_t+set}" = set; then 5435 echo $ECHO_N "(cached) $ECHO_C" >&6 5436 else 5437 5438 for cf_type in \ 5439 "volatile sig_atomic_t" \ 5440 "sig_atomic_t" \ 5441 "int" 5442 do 5443 cat >"conftest.$ac_ext" <<_ACEOF 5444 #line 5444 "configure" 5445 #include "confdefs.h" 5446 5447 #include <sys/types.h> 5448 #include <signal.h> 5449 #include <stdio.h> 5450 5451 extern $cf_type x; 5452 $cf_type x; 5453 static void handler(int sig) 5454 { 5455 (void)sig; 5456 x = 5; 5457 } 5458 int 5459 main (void) 5460 { 5461 signal(SIGINT, handler); 5462 x = 1 5463 ; 5464 return 0; 5465 } 5466 _ACEOF 5467 rm -f "conftest.$ac_objext" 5468 if { (eval echo "$as_me:5468: \"$ac_compile\"") >&5 5469 (eval $ac_compile) 2>&5 5470 ac_status=$? 5471 echo "$as_me:5471: \$? = $ac_status" >&5 5472 (exit "$ac_status"); } && 5473 { ac_try='test -s "conftest.$ac_objext"' 5474 { (eval echo "$as_me:5474: \"$ac_try\"") >&5 5475 (eval $ac_try) 2>&5 5476 ac_status=$? 5477 echo "$as_me:5477: \$? = $ac_status" >&5 5478 (exit "$ac_status"); }; }; then 5479 cf_cv_sig_atomic_t=$cf_type 5480 else 5481 echo "$as_me: failed program was:" >&5 5482 cat "conftest.$ac_ext" >&5 5483 cf_cv_sig_atomic_t=no 5484 fi 5485 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5486 test "$cf_cv_sig_atomic_t" != no && break 5487 done 5488 5489 fi 5490 5491 echo "$as_me:5491: result: $cf_cv_sig_atomic_t" >&5 5492 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6 5493 test "$cf_cv_sig_atomic_t" != no && 5494 cat >>confdefs.h <<EOF 5495 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t 5496 EOF 5497 5498 echo "$as_me:5498: checking for time_t" >&5 5499 echo $ECHO_N "checking for time_t... $ECHO_C" >&6 5500 if test "${ac_cv_type_time_t+set}" = set; then 5501 echo $ECHO_N "(cached) $ECHO_C" >&6 5502 else 5503 cat >"conftest.$ac_ext" <<_ACEOF 5504 #line 5504 "configure" 5505 #include "confdefs.h" 5506 $ac_includes_default 5507 int 5508 main (void) 5509 { 5510 if ((time_t *) 0) 5511 return 0; 5512 if (sizeof (time_t)) 5513 return 0; 5514 ; 5515 return 0; 5516 } 5517 _ACEOF 5518 rm -f "conftest.$ac_objext" 5519 if { (eval echo "$as_me:5519: \"$ac_compile\"") >&5 5520 (eval $ac_compile) 2>&5 5521 ac_status=$? 5522 echo "$as_me:5522: \$? = $ac_status" >&5 5523 (exit "$ac_status"); } && 5524 { ac_try='test -s "conftest.$ac_objext"' 5525 { (eval echo "$as_me:5525: \"$ac_try\"") >&5 5526 (eval $ac_try) 2>&5 5527 ac_status=$? 5528 echo "$as_me:5528: \$? = $ac_status" >&5 5529 (exit "$ac_status"); }; }; then 5530 ac_cv_type_time_t=yes 5531 else 5532 echo "$as_me: failed program was:" >&5 5533 cat "conftest.$ac_ext" >&5 5534 ac_cv_type_time_t=no 5535 fi 5536 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5537 fi 5538 echo "$as_me:5538: result: $ac_cv_type_time_t" >&5 5539 echo "${ECHO_T}$ac_cv_type_time_t" >&6 5540 if test "$ac_cv_type_time_t" = yes; then 5541 : 5542 else 5543 5544 cat >>confdefs.h <<EOF 5545 #define time_t long 5546 EOF 5547 5548 fi 5549 5550 echo "$as_me:5550: checking for cc_t in <termios.h> or <termio.h>" >&5 5551 echo $ECHO_N "checking for cc_t in <termios.h> or <termio.h>... $ECHO_C" >&6 5552 if test "${cf_cv_type_cc_t+set}" = set; then 5553 echo $ECHO_N "(cached) $ECHO_C" >&6 5554 else 5555 5556 cat >"conftest.$ac_ext" <<_ACEOF 5557 #line 5557 "configure" 5558 #include "confdefs.h" 5559 5560 #include <sys/types.h> 5561 #if defined(HAVE_TERMIOS_H) 5562 #include <termios.h> 5563 #else 5564 #include <termio.h> 5565 #include <sys/ioctl.h> 5566 #endif 5567 5568 int 5569 main (void) 5570 { 5571 cc_t x; (void)x 5572 ; 5573 return 0; 5574 } 5575 _ACEOF 5576 rm -f "conftest.$ac_objext" 5577 if { (eval echo "$as_me:5577: \"$ac_compile\"") >&5 5578 (eval $ac_compile) 2>&5 5579 ac_status=$? 5580 echo "$as_me:5580: \$? = $ac_status" >&5 5581 (exit "$ac_status"); } && 5582 { ac_try='test -s "conftest.$ac_objext"' 5583 { (eval echo "$as_me:5583: \"$ac_try\"") >&5 5584 (eval $ac_try) 2>&5 5585 ac_status=$? 5586 echo "$as_me:5586: \$? = $ac_status" >&5 5587 (exit "$ac_status"); }; }; then 5588 cf_cv_type_cc_t=yes 5589 else 5590 echo "$as_me: failed program was:" >&5 5591 cat "conftest.$ac_ext" >&5 5592 cf_cv_type_cc_t=no 5593 fi 5594 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5595 5596 fi 5597 5598 echo "$as_me:5598: result: $cf_cv_type_cc_t" >&5 5599 echo "${ECHO_T}$cf_cv_type_cc_t" >&6 5600 test $cf_cv_type_cc_t = no && 5601 cat >>confdefs.h <<\EOF 5602 #define cc_t unsigned char 5603 EOF 5604 5605 echo "$as_me:5605: checking for nfds_t in <poll.h>" >&5 5606 echo $ECHO_N "checking for nfds_t in <poll.h>... $ECHO_C" >&6 5607 if test "${cf_cv_type_nfds_t+set}" = set; then 5608 echo $ECHO_N "(cached) $ECHO_C" >&6 5609 else 5610 5611 cat >"conftest.$ac_ext" <<_ACEOF 5612 #line 5612 "configure" 5613 #include "confdefs.h" 5614 5615 $ac_includes_default 5616 #include <poll.h> 5617 5618 int 5619 main (void) 5620 { 5621 nfds_t x; (void)x 5622 ; 5623 return 0; 5624 } 5625 _ACEOF 5626 rm -f "conftest.$ac_objext" 5627 if { (eval echo "$as_me:5627: \"$ac_compile\"") >&5 5628 (eval $ac_compile) 2>&5 5629 ac_status=$? 5630 echo "$as_me:5630: \$? = $ac_status" >&5 5631 (exit "$ac_status"); } && 5632 { ac_try='test -s "conftest.$ac_objext"' 5633 { (eval echo "$as_me:5633: \"$ac_try\"") >&5 5634 (eval $ac_try) 2>&5 5635 ac_status=$? 5636 echo "$as_me:5636: \$? = $ac_status" >&5 5637 (exit "$ac_status"); }; }; then 5638 cf_cv_type_nfds_t=yes 5639 else 5640 echo "$as_me: failed program was:" >&5 5641 cat "conftest.$ac_ext" >&5 5642 cf_cv_type_nfds_t=no 5643 fi 5644 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5645 5646 fi 5647 5648 echo "$as_me:5648: result: $cf_cv_type_nfds_t" >&5 5649 echo "${ECHO_T}$cf_cv_type_nfds_t" >&6 5650 test $cf_cv_type_nfds_t = no && 5651 cat >>confdefs.h <<\EOF 5652 #define nfds_t unsigned 5653 EOF 5654 5655 echo "$as_me:5655: checking for mode_t" >&5 5656 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 5657 if test "${ac_cv_type_mode_t+set}" = set; then 5658 echo $ECHO_N "(cached) $ECHO_C" >&6 5659 else 5660 cat >"conftest.$ac_ext" <<_ACEOF 5661 #line 5661 "configure" 5662 #include "confdefs.h" 5663 $ac_includes_default 5664 int 5665 main (void) 5666 { 5667 if ((mode_t *) 0) 5668 return 0; 5669 if (sizeof (mode_t)) 5670 return 0; 5671 ; 5672 return 0; 5673 } 5674 _ACEOF 5675 rm -f "conftest.$ac_objext" 5676 if { (eval echo "$as_me:5676: \"$ac_compile\"") >&5 5677 (eval $ac_compile) 2>&5 5678 ac_status=$? 5679 echo "$as_me:5679: \$? = $ac_status" >&5 5680 (exit "$ac_status"); } && 5681 { ac_try='test -s "conftest.$ac_objext"' 5682 { (eval echo "$as_me:5682: \"$ac_try\"") >&5 5683 (eval $ac_try) 2>&5 5684 ac_status=$? 5685 echo "$as_me:5685: \$? = $ac_status" >&5 5686 (exit "$ac_status"); }; }; then 5687 ac_cv_type_mode_t=yes 5688 else 5689 echo "$as_me: failed program was:" >&5 5690 cat "conftest.$ac_ext" >&5 5691 ac_cv_type_mode_t=no 5692 fi 5693 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5694 fi 5695 echo "$as_me:5695: result: $ac_cv_type_mode_t" >&5 5696 echo "${ECHO_T}$ac_cv_type_mode_t" >&6 5697 if test "$ac_cv_type_mode_t" = yes; then 5698 : 5699 else 5700 5701 cat >>confdefs.h <<EOF 5702 #define mode_t int 5703 EOF 5704 5705 fi 5706 5707 echo "$as_me:5707: checking for pid_t" >&5 5708 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 5709 if test "${ac_cv_type_pid_t+set}" = set; then 5710 echo $ECHO_N "(cached) $ECHO_C" >&6 5711 else 5712 cat >"conftest.$ac_ext" <<_ACEOF 5713 #line 5713 "configure" 5714 #include "confdefs.h" 5715 $ac_includes_default 5716 int 5717 main (void) 5718 { 5719 if ((pid_t *) 0) 5720 return 0; 5721 if (sizeof (pid_t)) 5722 return 0; 5723 ; 5724 return 0; 5725 } 5726 _ACEOF 5727 rm -f "conftest.$ac_objext" 5728 if { (eval echo "$as_me:5728: \"$ac_compile\"") >&5 5729 (eval $ac_compile) 2>&5 5730 ac_status=$? 5731 echo "$as_me:5731: \$? = $ac_status" >&5 5732 (exit "$ac_status"); } && 5733 { ac_try='test -s "conftest.$ac_objext"' 5734 { (eval echo "$as_me:5734: \"$ac_try\"") >&5 5735 (eval $ac_try) 2>&5 5736 ac_status=$? 5737 echo "$as_me:5737: \$? = $ac_status" >&5 5738 (exit "$ac_status"); }; }; then 5739 ac_cv_type_pid_t=yes 5740 else 5741 echo "$as_me: failed program was:" >&5 5742 cat "conftest.$ac_ext" >&5 5743 ac_cv_type_pid_t=no 5744 fi 5745 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5746 fi 5747 echo "$as_me:5747: result: $ac_cv_type_pid_t" >&5 5748 echo "${ECHO_T}$ac_cv_type_pid_t" >&6 5749 if test "$ac_cv_type_pid_t" = yes; then 5750 : 5751 else 5752 5753 cat >>confdefs.h <<EOF 5754 #define pid_t int 5755 EOF 5756 5757 fi 5758 5759 echo "$as_me:5759: checking for uid_t in sys/types.h" >&5 5760 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 5761 if test "${ac_cv_type_uid_t+set}" = set; then 5762 echo $ECHO_N "(cached) $ECHO_C" >&6 5763 else 5764 cat >"conftest.$ac_ext" <<_ACEOF 5765 #line 5765 "configure" 5766 #include "confdefs.h" 5767 #include <sys/types.h> 5768 5769 _ACEOF 5770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5771 $EGREP "uid_t" >/dev/null 2>&1; then 5772 ac_cv_type_uid_t=yes 5773 else 5774 ac_cv_type_uid_t=no 5775 fi 5776 rm -rf conftest* 5777 5778 fi 5779 echo "$as_me:5779: result: $ac_cv_type_uid_t" >&5 5780 echo "${ECHO_T}$ac_cv_type_uid_t" >&6 5781 if test $ac_cv_type_uid_t = no; then 5782 5783 cat >>confdefs.h <<\EOF 5784 #define uid_t int 5785 EOF 5786 5787 cat >>confdefs.h <<\EOF 5788 #define gid_t int 5789 EOF 5790 5791 fi 5792 5793 echo "$as_me:5793: checking for off_t" >&5 5794 echo $ECHO_N "checking for off_t... $ECHO_C" >&6 5795 if test "${ac_cv_type_off_t+set}" = set; then 5796 echo $ECHO_N "(cached) $ECHO_C" >&6 5797 else 5798 cat >"conftest.$ac_ext" <<_ACEOF 5799 #line 5799 "configure" 5800 #include "confdefs.h" 5801 $ac_includes_default 5802 int 5803 main (void) 5804 { 5805 if ((off_t *) 0) 5806 return 0; 5807 if (sizeof (off_t)) 5808 return 0; 5809 ; 5810 return 0; 5811 } 5812 _ACEOF 5813 rm -f "conftest.$ac_objext" 5814 if { (eval echo "$as_me:5814: \"$ac_compile\"") >&5 5815 (eval $ac_compile) 2>&5 5816 ac_status=$? 5817 echo "$as_me:5817: \$? = $ac_status" >&5 5818 (exit "$ac_status"); } && 5819 { ac_try='test -s "conftest.$ac_objext"' 5820 { (eval echo "$as_me:5820: \"$ac_try\"") >&5 5821 (eval $ac_try) 2>&5 5822 ac_status=$? 5823 echo "$as_me:5823: \$? = $ac_status" >&5 5824 (exit "$ac_status"); }; }; then 5825 ac_cv_type_off_t=yes 5826 else 5827 echo "$as_me: failed program was:" >&5 5828 cat "conftest.$ac_ext" >&5 5829 ac_cv_type_off_t=no 5830 fi 5831 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 5832 fi 5833 echo "$as_me:5833: result: $ac_cv_type_off_t" >&5 5834 echo "${ECHO_T}$ac_cv_type_off_t" >&6 5835 if test "$ac_cv_type_off_t" = yes; then 5836 : 5837 else 5838 5839 cat >>confdefs.h <<EOF 5840 #define off_t long 5841 EOF 5842 5843 fi 5844 5845 ### checks for library functions 5846 5847 for ac_func in \ 5848 gethostname \ 5849 getusershell \ 5850 endusershell \ 5851 getlogin \ 5852 initgroups \ 5853 mkdtemp \ 5854 putenv \ 5855 unsetenv \ 5856 sched_yield \ 5857 setpgid \ 5858 setsid \ 5859 tcgetattr \ 5860 waitpid \ 5861 wcswidth \ 5862 wcwidth 5863 do 5864 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5865 echo "$as_me:5865: checking for $ac_func" >&5 5866 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5867 if eval "test \"\${$as_ac_var+set}\" = set"; then 5868 echo $ECHO_N "(cached) $ECHO_C" >&6 5869 else 5870 cat >"conftest.$ac_ext" <<_ACEOF 5871 #line 5871 "configure" 5872 #include "confdefs.h" 5873 #define $ac_func autoconf_temporary 5874 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 5875 #undef $ac_func 5876 5877 #ifdef __cplusplus 5878 extern "C" 5879 #endif 5880 5881 /* We use char because int might match the return type of a gcc2 5882 builtin and then its argument prototype would still apply. */ 5883 char $ac_func (void); 5884 5885 int 5886 main (void) 5887 { 5888 5889 /* The GNU C library defines stubs for functions which it implements 5890 to always fail with ENOSYS. Some functions are actually named 5891 something starting with __ and the normal name is an alias. */ 5892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5893 #error found stub for $ac_func 5894 #endif 5895 5896 return $ac_func (); 5897 ; 5898 return 0; 5899 } 5900 _ACEOF 5901 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 5902 if { (eval echo "$as_me:5902: \"$ac_link\"") >&5 5903 (eval $ac_link) 2>&5 5904 ac_status=$? 5905 echo "$as_me:5905: \$? = $ac_status" >&5 5906 (exit "$ac_status"); } && 5907 { ac_try='test -s "conftest$ac_exeext"' 5908 { (eval echo "$as_me:5908: \"$ac_try\"") >&5 5909 (eval $ac_try) 2>&5 5910 ac_status=$? 5911 echo "$as_me:5911: \$? = $ac_status" >&5 5912 (exit "$ac_status"); }; }; then 5913 eval "$as_ac_var=yes" 5914 else 5915 echo "$as_me: failed program was:" >&5 5916 cat "conftest.$ac_ext" >&5 5917 eval "$as_ac_var=no" 5918 fi 5919 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 5920 fi 5921 echo "$as_me:5921: result: `eval echo '${'"$as_ac_var"'}'`" >&5 5922 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 5923 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 5924 cat >>confdefs.h <<EOF 5925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5926 EOF 5927 5928 fi 5929 done 5930 5931 cf_save_libs="$LIBS" 5932 echo "$as_me:5932: checking for clock_gettime" >&5 5933 echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6 5934 if test "${ac_cv_func_clock_gettime+set}" = set; then 5935 echo $ECHO_N "(cached) $ECHO_C" >&6 5936 else 5937 cat >"conftest.$ac_ext" <<_ACEOF 5938 #line 5938 "configure" 5939 #include "confdefs.h" 5940 #define clock_gettime autoconf_temporary 5941 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 5942 #undef clock_gettime 5943 5944 #ifdef __cplusplus 5945 extern "C" 5946 #endif 5947 5948 /* We use char because int might match the return type of a gcc2 5949 builtin and then its argument prototype would still apply. */ 5950 char clock_gettime (void); 5951 5952 int 5953 main (void) 5954 { 5955 5956 /* The GNU C library defines stubs for functions which it implements 5957 to always fail with ENOSYS. Some functions are actually named 5958 something starting with __ and the normal name is an alias. */ 5959 #if defined (__stub_clock_gettime) || defined (__stub___clock_gettime) 5960 #error found stub for clock_gettime 5961 #endif 5962 5963 return clock_gettime (); 5964 ; 5965 return 0; 5966 } 5967 _ACEOF 5968 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 5969 if { (eval echo "$as_me:5969: \"$ac_link\"") >&5 5970 (eval $ac_link) 2>&5 5971 ac_status=$? 5972 echo "$as_me:5972: \$? = $ac_status" >&5 5973 (exit "$ac_status"); } && 5974 { ac_try='test -s "conftest$ac_exeext"' 5975 { (eval echo "$as_me:5975: \"$ac_try\"") >&5 5976 (eval $ac_try) 2>&5 5977 ac_status=$? 5978 echo "$as_me:5978: \$? = $ac_status" >&5 5979 (exit "$ac_status"); }; }; then 5980 ac_cv_func_clock_gettime=yes 5981 else 5982 echo "$as_me: failed program was:" >&5 5983 cat "conftest.$ac_ext" >&5 5984 ac_cv_func_clock_gettime=no 5985 fi 5986 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 5987 fi 5988 echo "$as_me:5988: result: $ac_cv_func_clock_gettime" >&5 5989 echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6 5990 if test "$ac_cv_func_clock_gettime" = yes; then 5991 cf_cv_test_clock_gettime=yes 5992 else 5993 echo "$as_me:5993: checking for clock_gettime in -lrt" >&5 5994 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6 5995 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then 5996 echo $ECHO_N "(cached) $ECHO_C" >&6 5997 else 5998 ac_check_lib_save_LIBS=$LIBS 5999 LIBS="-lrt $LIBS" 6000 cat >"conftest.$ac_ext" <<_ACEOF 6001 #line 6001 "configure" 6002 #include "confdefs.h" 6003 6004 /* Override any gcc2 internal prototype to avoid an error. */ 6005 #ifdef __cplusplus 6006 extern "C" 6007 #endif 6008 /* We use char because int might match the return type of a gcc2 6009 builtin and then its argument prototype would still apply. */ 6010 char clock_gettime (void); 6011 int 6012 main (void) 6013 { 6014 clock_gettime (); 6015 ; 6016 return 0; 6017 } 6018 _ACEOF 6019 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 6020 if { (eval echo "$as_me:6020: \"$ac_link\"") >&5 6021 (eval $ac_link) 2>&5 6022 ac_status=$? 6023 echo "$as_me:6023: \$? = $ac_status" >&5 6024 (exit "$ac_status"); } && 6025 { ac_try='test -s "conftest$ac_exeext"' 6026 { (eval echo "$as_me:6026: \"$ac_try\"") >&5 6027 (eval $ac_try) 2>&5 6028 ac_status=$? 6029 echo "$as_me:6029: \$? = $ac_status" >&5 6030 (exit "$ac_status"); }; }; then 6031 ac_cv_lib_rt_clock_gettime=yes 6032 else 6033 echo "$as_me: failed program was:" >&5 6034 cat "conftest.$ac_ext" >&5 6035 ac_cv_lib_rt_clock_gettime=no 6036 fi 6037 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 6038 LIBS=$ac_check_lib_save_LIBS 6039 fi 6040 echo "$as_me:6040: result: $ac_cv_lib_rt_clock_gettime" >&5 6041 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6 6042 if test "$ac_cv_lib_rt_clock_gettime" = yes; then 6043 LIBS="-lrt $LIBS" 6044 cf_cv_test_clock_gettime=yes 6045 else 6046 cf_cv_test_clock_gettime=no 6047 fi 6048 6049 fi 6050 6051 if test "$cf_cv_test_clock_gettime" = yes ; then 6052 echo "$as_me:6052: checking if clock_gettime links" >&5 6053 echo $ECHO_N "checking if clock_gettime links... $ECHO_C" >&6 6054 if test "${cf_cv_func_clock_gettime+set}" = set; then 6055 echo $ECHO_N "(cached) $ECHO_C" >&6 6056 else 6057 6058 cat >"conftest.$ac_ext" <<_ACEOF 6059 #line 6059 "configure" 6060 #include "confdefs.h" 6061 6062 $ac_includes_default 6063 #include <time.h> 6064 6065 int 6066 main (void) 6067 { 6068 struct timespec ts; 6069 int rc = clock_gettime(CLOCK_REALTIME, &ts) 6070 + clock_gettime(CLOCK_MONOTONIC, &ts); 6071 (void) rc; (void)ts 6072 ; 6073 return 0; 6074 } 6075 _ACEOF 6076 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 6077 if { (eval echo "$as_me:6077: \"$ac_link\"") >&5 6078 (eval $ac_link) 2>&5 6079 ac_status=$? 6080 echo "$as_me:6080: \$? = $ac_status" >&5 6081 (exit "$ac_status"); } && 6082 { ac_try='test -s "conftest$ac_exeext"' 6083 { (eval echo "$as_me:6083: \"$ac_try\"") >&5 6084 (eval $ac_try) 2>&5 6085 ac_status=$? 6086 echo "$as_me:6086: \$? = $ac_status" >&5 6087 (exit "$ac_status"); }; }; then 6088 cf_cv_func_clock_gettime=yes 6089 else 6090 echo "$as_me: failed program was:" >&5 6091 cat "conftest.$ac_ext" >&5 6092 cf_cv_func_clock_gettime=no 6093 fi 6094 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 6095 6096 fi 6097 echo "$as_me:6097: result: $cf_cv_func_clock_gettime" >&5 6098 echo "${ECHO_T}$cf_cv_func_clock_gettime" >&6 6099 else 6100 cf_cv_func_clock_gettime=no 6101 fi 6102 6103 if test "$cf_cv_func_clock_gettime" = yes 6104 then 6105 6106 cat >>confdefs.h <<\EOF 6107 #define HAVE_CLOCK_GETTIME 1 6108 EOF 6109 6110 else 6111 echo "$as_me:6111: checking for gettimeofday" >&5 6112 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6 6113 if test "${ac_cv_func_gettimeofday+set}" = set; then 6114 echo $ECHO_N "(cached) $ECHO_C" >&6 6115 else 6116 cat >"conftest.$ac_ext" <<_ACEOF 6117 #line 6117 "configure" 6118 #include "confdefs.h" 6119 #define gettimeofday autoconf_temporary 6120 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 6121 #undef gettimeofday 6122 6123 #ifdef __cplusplus 6124 extern "C" 6125 #endif 6126 6127 /* We use char because int might match the return type of a gcc2 6128 builtin and then its argument prototype would still apply. */ 6129 char gettimeofday (void); 6130 6131 int 6132 main (void) 6133 { 6134 6135 /* The GNU C library defines stubs for functions which it implements 6136 to always fail with ENOSYS. Some functions are actually named 6137 something starting with __ and the normal name is an alias. */ 6138 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) 6139 #error found stub for gettimeofday 6140 #endif 6141 6142 return gettimeofday (); 6143 ; 6144 return 0; 6145 } 6146 _ACEOF 6147 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 6148 if { (eval echo "$as_me:6148: \"$ac_link\"") >&5 6149 (eval $ac_link) 2>&5 6150 ac_status=$? 6151 echo "$as_me:6151: \$? = $ac_status" >&5 6152 (exit "$ac_status"); } && 6153 { ac_try='test -s "conftest$ac_exeext"' 6154 { (eval echo "$as_me:6154: \"$ac_try\"") >&5 6155 (eval $ac_try) 2>&5 6156 ac_status=$? 6157 echo "$as_me:6157: \$? = $ac_status" >&5 6158 (exit "$ac_status"); }; }; then 6159 ac_cv_func_gettimeofday=yes 6160 else 6161 echo "$as_me: failed program was:" >&5 6162 cat "conftest.$ac_ext" >&5 6163 ac_cv_func_gettimeofday=no 6164 fi 6165 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 6166 fi 6167 echo "$as_me:6167: result: $ac_cv_func_gettimeofday" >&5 6168 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6 6169 if test "$ac_cv_func_gettimeofday" = yes; then 6170 6171 cat >>confdefs.h <<\EOF 6172 #define HAVE_GETTIMEOFDAY 1 6173 EOF 6174 6175 else 6176 6177 echo "$as_me:6177: checking for gettimeofday in -lbsd" >&5 6178 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6 6179 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then 6180 echo $ECHO_N "(cached) $ECHO_C" >&6 6181 else 6182 ac_check_lib_save_LIBS=$LIBS 6183 LIBS="-lbsd $LIBS" 6184 cat >"conftest.$ac_ext" <<_ACEOF 6185 #line 6185 "configure" 6186 #include "confdefs.h" 6187 6188 /* Override any gcc2 internal prototype to avoid an error. */ 6189 #ifdef __cplusplus 6190 extern "C" 6191 #endif 6192 /* We use char because int might match the return type of a gcc2 6193 builtin and then its argument prototype would still apply. */ 6194 char gettimeofday (void); 6195 int 6196 main (void) 6197 { 6198 gettimeofday (); 6199 ; 6200 return 0; 6201 } 6202 _ACEOF 6203 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 6204 if { (eval echo "$as_me:6204: \"$ac_link\"") >&5 6205 (eval $ac_link) 2>&5 6206 ac_status=$? 6207 echo "$as_me:6207: \$? = $ac_status" >&5 6208 (exit "$ac_status"); } && 6209 { ac_try='test -s "conftest$ac_exeext"' 6210 { (eval echo "$as_me:6210: \"$ac_try\"") >&5 6211 (eval $ac_try) 2>&5 6212 ac_status=$? 6213 echo "$as_me:6213: \$? = $ac_status" >&5 6214 (exit "$ac_status"); }; }; then 6215 ac_cv_lib_bsd_gettimeofday=yes 6216 else 6217 echo "$as_me: failed program was:" >&5 6218 cat "conftest.$ac_ext" >&5 6219 ac_cv_lib_bsd_gettimeofday=no 6220 fi 6221 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 6222 LIBS=$ac_check_lib_save_LIBS 6223 fi 6224 echo "$as_me:6224: result: $ac_cv_lib_bsd_gettimeofday" >&5 6225 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6 6226 if test "$ac_cv_lib_bsd_gettimeofday" = yes; then 6227 6228 cat >>confdefs.h <<\EOF 6229 #define HAVE_GETTIMEOFDAY 1 6230 EOF 6231 6232 cf_add_libs="$LIBS" 6233 # reverse order 6234 cf_add_0lib= 6235 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 6236 # filter duplicates 6237 for cf_add_1lib in $cf_add_0lib; do 6238 for cf_add_2lib in $cf_add_libs; do 6239 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 6240 cf_add_1lib= 6241 break 6242 fi 6243 done 6244 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 6245 done 6246 LIBS="$cf_add_libs" 6247 6248 fi 6249 6250 fi 6251 fi 6252 6253 echo "$as_me:6253: checking for strftime function" >&5 6254 echo $ECHO_N "checking for strftime function... $ECHO_C" >&6 6255 if test "${cf_cv_func_strftime+set}" = set; then 6256 echo $ECHO_N "(cached) $ECHO_C" >&6 6257 else 6258 6259 cat >"conftest.$ac_ext" <<_ACEOF 6260 #line 6260 "configure" 6261 #include "confdefs.h" 6262 6263 $ac_includes_default 6264 #include <time.h> 6265 6266 int 6267 main (void) 6268 { 6269 6270 time_t now = time((time_t*)0); 6271 struct tm *tm = localtime(&now); 6272 char buffer[80]; 6273 size_t result = strftime(buffer, sizeof(buffer), "%c", tm); 6274 6275 (void)result; 6276 (void)buffer; 6277 6278 ; 6279 return 0; 6280 } 6281 _ACEOF 6282 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 6283 if { (eval echo "$as_me:6283: \"$ac_link\"") >&5 6284 (eval $ac_link) 2>&5 6285 ac_status=$? 6286 echo "$as_me:6286: \$? = $ac_status" >&5 6287 (exit "$ac_status"); } && 6288 { ac_try='test -s "conftest$ac_exeext"' 6289 { (eval echo "$as_me:6289: \"$ac_try\"") >&5 6290 (eval $ac_try) 2>&5 6291 ac_status=$? 6292 echo "$as_me:6292: \$? = $ac_status" >&5 6293 (exit "$ac_status"); }; }; then 6294 cf_cv_func_strftime=yes 6295 else 6296 echo "$as_me: failed program was:" >&5 6297 cat "conftest.$ac_ext" >&5 6298 cf_cv_func_strftime=no 6299 fi 6300 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 6301 6302 fi 6303 echo "$as_me:6303: result: $cf_cv_func_strftime" >&5 6304 echo "${ECHO_T}$cf_cv_func_strftime" >&6 6305 6306 test "$cf_cv_func_strftime" = yes && 6307 cat >>confdefs.h <<\EOF 6308 #define HAVE_STRFTIME 1 6309 EOF 6310 6311 for ac_header in \ 6312 unistd.h \ 6313 6314 do 6315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6316 echo "$as_me:6316: checking for $ac_header" >&5 6317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6318 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6319 echo $ECHO_N "(cached) $ECHO_C" >&6 6320 else 6321 cat >"conftest.$ac_ext" <<_ACEOF 6322 #line 6322 "configure" 6323 #include "confdefs.h" 6324 #include <$ac_header> 6325 _ACEOF 6326 if { (eval echo "$as_me:6326: \"$ac_cpp "conftest.$ac_ext"\"") >&5 6327 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 6328 ac_status=$? 6329 $EGREP -v '^ *\+' conftest.er1 >conftest.err 6330 rm -f conftest.er1 6331 cat conftest.err >&5 6332 echo "$as_me:6332: \$? = $ac_status" >&5 6333 (exit "$ac_status"); } >/dev/null; then 6334 if test -s conftest.err; then 6335 ac_cpp_err=$ac_c_preproc_warn_flag 6336 else 6337 ac_cpp_err= 6338 fi 6339 else 6340 ac_cpp_err=yes 6341 fi 6342 if test -z "$ac_cpp_err"; then 6343 eval "$as_ac_Header=yes" 6344 else 6345 echo "$as_me: failed program was:" >&5 6346 cat "conftest.$ac_ext" >&5 6347 eval "$as_ac_Header=no" 6348 fi 6349 rm -f conftest.err "conftest.$ac_ext" 6350 fi 6351 echo "$as_me:6351: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 6352 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 6353 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 6354 cat >>confdefs.h <<EOF 6355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6356 EOF 6357 6358 fi 6359 done 6360 6361 echo "$as_me:6361: checking for working mkstemp" >&5 6362 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6 6363 if test "${cf_cv_func_mkstemp+set}" = set; then 6364 echo $ECHO_N "(cached) $ECHO_C" >&6 6365 else 6366 6367 rm -rf ./conftest* 6368 if test "$cross_compiling" = yes; then 6369 cf_cv_func_mkstemp=maybe 6370 else 6371 cat >"conftest.$ac_ext" <<_ACEOF 6372 #line 6372 "configure" 6373 #include "confdefs.h" 6374 6375 $ac_includes_default 6376 6377 int main(void) 6378 { 6379 static char tmpl[] = "conftestXXXXXX"; 6380 char name[2][80]; 6381 int n; 6382 int result = 0; 6383 int fd; 6384 struct stat sb; 6385 6386 umask(077); 6387 for (n = 0; n < 2; ++n) { 6388 strcpy(name[n], tmpl); 6389 if ((fd = mkstemp(name[n])) >= 0) { 6390 if (!strcmp(name[n], tmpl) 6391 || stat(name[n], &sb) != 0 6392 || (sb.st_mode & S_IFMT) != S_IFREG 6393 || (sb.st_mode & 077) != 0) { 6394 result = 1; 6395 } 6396 close(fd); 6397 } 6398 } 6399 if (result == 0 6400 && !strcmp(name[0], name[1])) 6401 result = 1; 6402 ${cf_cv_main_return:-return}(result); 6403 } 6404 6405 _ACEOF 6406 rm -f "conftest$ac_exeext" 6407 if { (eval echo "$as_me:6407: \"$ac_link\"") >&5 6408 (eval $ac_link) 2>&5 6409 ac_status=$? 6410 echo "$as_me:6410: \$? = $ac_status" >&5 6411 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 6412 { (eval echo "$as_me:6412: \"$ac_try\"") >&5 6413 (eval $ac_try) 2>&5 6414 ac_status=$? 6415 echo "$as_me:6415: \$? = $ac_status" >&5 6416 (exit "$ac_status"); }; }; then 6417 cf_cv_func_mkstemp=yes 6418 6419 else 6420 echo "$as_me: program exited with status $ac_status" >&5 6421 echo "$as_me: failed program was:" >&5 6422 cat "conftest.$ac_ext" >&5 6423 cf_cv_func_mkstemp=no 6424 6425 fi 6426 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 6427 fi 6428 6429 fi 6430 echo "$as_me:6430: result: $cf_cv_func_mkstemp" >&5 6431 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6 6432 if test "x$cf_cv_func_mkstemp" = xmaybe ; then 6433 echo "$as_me:6433: checking for mkstemp" >&5 6434 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6 6435 if test "${ac_cv_func_mkstemp+set}" = set; then 6436 echo $ECHO_N "(cached) $ECHO_C" >&6 6437 else 6438 cat >"conftest.$ac_ext" <<_ACEOF 6439 #line 6439 "configure" 6440 #include "confdefs.h" 6441 #define mkstemp autoconf_temporary 6442 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 6443 #undef mkstemp 6444 6445 #ifdef __cplusplus 6446 extern "C" 6447 #endif 6448 6449 /* We use char because int might match the return type of a gcc2 6450 builtin and then its argument prototype would still apply. */ 6451 char mkstemp (void); 6452 6453 int 6454 main (void) 6455 { 6456 6457 /* The GNU C library defines stubs for functions which it implements 6458 to always fail with ENOSYS. Some functions are actually named 6459 something starting with __ and the normal name is an alias. */ 6460 #if defined (__stub_mkstemp) || defined (__stub___mkstemp) 6461 #error found stub for mkstemp 6462 #endif 6463 6464 return mkstemp (); 6465 ; 6466 return 0; 6467 } 6468 _ACEOF 6469 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 6470 if { (eval echo "$as_me:6470: \"$ac_link\"") >&5 6471 (eval $ac_link) 2>&5 6472 ac_status=$? 6473 echo "$as_me:6473: \$? = $ac_status" >&5 6474 (exit "$ac_status"); } && 6475 { ac_try='test -s "conftest$ac_exeext"' 6476 { (eval echo "$as_me:6476: \"$ac_try\"") >&5 6477 (eval $ac_try) 2>&5 6478 ac_status=$? 6479 echo "$as_me:6479: \$? = $ac_status" >&5 6480 (exit "$ac_status"); }; }; then 6481 ac_cv_func_mkstemp=yes 6482 else 6483 echo "$as_me: failed program was:" >&5 6484 cat "conftest.$ac_ext" >&5 6485 ac_cv_func_mkstemp=no 6486 fi 6487 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 6488 fi 6489 echo "$as_me:6489: result: $ac_cv_func_mkstemp" >&5 6490 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6 6491 6492 fi 6493 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then 6494 6495 cat >>confdefs.h <<\EOF 6496 #define HAVE_MKSTEMP 1 6497 EOF 6498 6499 fi 6500 6501 echo "$as_me:6501: checking if setitimer is available" >&5 6502 echo $ECHO_N "checking if setitimer is available... $ECHO_C" >&6 6503 if test "${cf_cv_func_setitimer+set}" = set; then 6504 echo $ECHO_N "(cached) $ECHO_C" >&6 6505 else 6506 6507 cat >"conftest.$ac_ext" <<_ACEOF 6508 #line 6508 "configure" 6509 #include "confdefs.h" 6510 6511 $ac_includes_default 6512 #include <sys/time.h> 6513 6514 int 6515 main (void) 6516 { 6517 6518 struct itimerval it; 6519 memset(&it, 0, sizeof(struct itimerval)); 6520 it.it_value.tv_sec = 1; 6521 setitimer(ITIMER_REAL, &it, NULL); 6522 6523 ; 6524 return 0; 6525 } 6526 _ACEOF 6527 rm -f "conftest.$ac_objext" 6528 if { (eval echo "$as_me:6528: \"$ac_compile\"") >&5 6529 (eval $ac_compile) 2>&5 6530 ac_status=$? 6531 echo "$as_me:6531: \$? = $ac_status" >&5 6532 (exit "$ac_status"); } && 6533 { ac_try='test -s "conftest.$ac_objext"' 6534 { (eval echo "$as_me:6534: \"$ac_try\"") >&5 6535 (eval $ac_try) 2>&5 6536 ac_status=$? 6537 echo "$as_me:6537: \$? = $ac_status" >&5 6538 (exit "$ac_status"); }; }; then 6539 cf_cv_func_setitimer=yes 6540 else 6541 echo "$as_me: failed program was:" >&5 6542 cat "conftest.$ac_ext" >&5 6543 cf_cv_func_setitimer=no 6544 fi 6545 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6546 6547 fi 6548 echo "$as_me:6548: result: $cf_cv_func_setitimer" >&5 6549 echo "${ECHO_T}$cf_cv_func_setitimer" >&6 6550 test "$cf_cv_func_setitimer" != no && 6551 cat >>confdefs.h <<\EOF 6552 #define HAVE_SETITIMER 1 6553 EOF 6554 6555 for ac_header in lastlog.h paths.h 6556 do 6557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6558 echo "$as_me:6558: checking for $ac_header" >&5 6559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6560 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6561 echo $ECHO_N "(cached) $ECHO_C" >&6 6562 else 6563 cat >"conftest.$ac_ext" <<_ACEOF 6564 #line 6564 "configure" 6565 #include "confdefs.h" 6566 #include <$ac_header> 6567 _ACEOF 6568 if { (eval echo "$as_me:6568: \"$ac_cpp "conftest.$ac_ext"\"") >&5 6569 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 6570 ac_status=$? 6571 $EGREP -v '^ *\+' conftest.er1 >conftest.err 6572 rm -f conftest.er1 6573 cat conftest.err >&5 6574 echo "$as_me:6574: \$? = $ac_status" >&5 6575 (exit "$ac_status"); } >/dev/null; then 6576 if test -s conftest.err; then 6577 ac_cpp_err=$ac_c_preproc_warn_flag 6578 else 6579 ac_cpp_err= 6580 fi 6581 else 6582 ac_cpp_err=yes 6583 fi 6584 if test -z "$ac_cpp_err"; then 6585 eval "$as_ac_Header=yes" 6586 else 6587 echo "$as_me: failed program was:" >&5 6588 cat "conftest.$ac_ext" >&5 6589 eval "$as_ac_Header=no" 6590 fi 6591 rm -f conftest.err "conftest.$ac_ext" 6592 fi 6593 echo "$as_me:6593: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 6594 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 6595 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 6596 cat >>confdefs.h <<EOF 6597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6598 EOF 6599 6600 fi 6601 done 6602 6603 echo "$as_me:6603: checking for lastlog path" >&5 6604 echo $ECHO_N "checking for lastlog path... $ECHO_C" >&6 6605 if test "${cf_cv_path_lastlog+set}" = set; then 6606 echo $ECHO_N "(cached) $ECHO_C" >&6 6607 else 6608 6609 cat >"conftest.$ac_ext" <<_ACEOF 6610 #line 6610 "configure" 6611 #include "confdefs.h" 6612 6613 #include <sys/types.h> 6614 #ifdef HAVE_LASTLOG_H 6615 #include <lastlog.h> 6616 #else 6617 #ifdef HAVE_PATHS_H 6618 #include <paths.h> 6619 #endif 6620 #endif 6621 int 6622 main (void) 6623 { 6624 static char path[] = _PATH_LASTLOG; (void)path 6625 ; 6626 return 0; 6627 } 6628 _ACEOF 6629 rm -f "conftest.$ac_objext" 6630 if { (eval echo "$as_me:6630: \"$ac_compile\"") >&5 6631 (eval $ac_compile) 2>&5 6632 ac_status=$? 6633 echo "$as_me:6633: \$? = $ac_status" >&5 6634 (exit "$ac_status"); } && 6635 { ac_try='test -s "conftest.$ac_objext"' 6636 { (eval echo "$as_me:6636: \"$ac_try\"") >&5 6637 (eval $ac_try) 2>&5 6638 ac_status=$? 6639 echo "$as_me:6639: \$? = $ac_status" >&5 6640 (exit "$ac_status"); }; }; then 6641 cf_cv_path_lastlog="_PATH_LASTLOG" 6642 else 6643 echo "$as_me: failed program was:" >&5 6644 cat "conftest.$ac_ext" >&5 6645 if test -f /usr/adm/lastlog ; then 6646 cf_cv_path_lastlog=/usr/adm/lastlog 6647 else 6648 cf_cv_path_lastlog=no 6649 fi 6650 fi 6651 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6652 6653 fi 6654 echo "$as_me:6654: result: $cf_cv_path_lastlog" >&5 6655 echo "${ECHO_T}$cf_cv_path_lastlog" >&6 6656 test "$cf_cv_path_lastlog" != no && 6657 cat >>confdefs.h <<\EOF 6658 #define USE_LASTLOG 1 6659 EOF 6660 6661 echo "$as_me:6661: checking for utmp implementation" >&5 6662 echo $ECHO_N "checking for utmp implementation... $ECHO_C" >&6 6663 if test "${cf_cv_have_utmp+set}" = set; then 6664 echo $ECHO_N "(cached) $ECHO_C" >&6 6665 else 6666 6667 cf_cv_have_utmp=no 6668 for cf_header in utmpx utmp ; do 6669 cf_utmp_includes=" 6670 #include <sys/types.h> 6671 #include <${cf_header}.h> 6672 #define getutent getutxent 6673 #ifdef USE_LASTLOG 6674 #include <lastlog.h> /* may conflict with utmpx.h on Linux */ 6675 #endif 6676 " 6677 cat >"conftest.$ac_ext" <<_ACEOF 6678 #line 6678 "configure" 6679 #include "confdefs.h" 6680 $cf_utmp_includes 6681 int 6682 main (void) 6683 { 6684 struct $cf_header x; 6685 char *name = x.ut_name; /* utmp.h and compatible definitions */ 6686 (void)x; 6687 (void)name; 6688 6689 ; 6690 return 0; 6691 } 6692 _ACEOF 6693 rm -f "conftest.$ac_objext" 6694 if { (eval echo "$as_me:6694: \"$ac_compile\"") >&5 6695 (eval $ac_compile) 2>&5 6696 ac_status=$? 6697 echo "$as_me:6697: \$? = $ac_status" >&5 6698 (exit "$ac_status"); } && 6699 { ac_try='test -s "conftest.$ac_objext"' 6700 { (eval echo "$as_me:6700: \"$ac_try\"") >&5 6701 (eval $ac_try) 2>&5 6702 ac_status=$? 6703 echo "$as_me:6703: \$? = $ac_status" >&5 6704 (exit "$ac_status"); }; }; then 6705 cf_cv_have_utmp=$cf_header 6706 break 6707 else 6708 echo "$as_me: failed program was:" >&5 6709 cat "conftest.$ac_ext" >&5 6710 6711 cat >"conftest.$ac_ext" <<_ACEOF 6712 #line 6712 "configure" 6713 #include "confdefs.h" 6714 $cf_utmp_includes 6715 int 6716 main (void) 6717 { 6718 struct $cf_header x; 6719 char *name = x.ut_user; /* utmpx.h must declare this */ 6720 (void)x; 6721 (void)name; 6722 6723 ; 6724 return 0; 6725 } 6726 _ACEOF 6727 rm -f "conftest.$ac_objext" 6728 if { (eval echo "$as_me:6728: \"$ac_compile\"") >&5 6729 (eval $ac_compile) 2>&5 6730 ac_status=$? 6731 echo "$as_me:6731: \$? = $ac_status" >&5 6732 (exit "$ac_status"); } && 6733 { ac_try='test -s "conftest.$ac_objext"' 6734 { (eval echo "$as_me:6734: \"$ac_try\"") >&5 6735 (eval $ac_try) 2>&5 6736 ac_status=$? 6737 echo "$as_me:6737: \$? = $ac_status" >&5 6738 (exit "$ac_status"); }; }; then 6739 cf_cv_have_utmp=$cf_header 6740 break 6741 6742 else 6743 echo "$as_me: failed program was:" >&5 6744 cat "conftest.$ac_ext" >&5 6745 fi 6746 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6747 fi 6748 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6749 done 6750 6751 fi 6752 echo "$as_me:6752: result: $cf_cv_have_utmp" >&5 6753 echo "${ECHO_T}$cf_cv_have_utmp" >&6 6754 6755 if test "$cf_cv_have_utmp" != no ; then 6756 6757 cat >>confdefs.h <<\EOF 6758 #define HAVE_UTMP 1 6759 EOF 6760 6761 test "$cf_cv_have_utmp" = utmpx && 6762 cat >>confdefs.h <<\EOF 6763 #define UTMPX_FOR_UTMP 1 6764 EOF 6765 6766 if test "$cf_cv_have_utmp" != no ; then 6767 echo "$as_me:6767: checking if ${cf_cv_have_utmp}.ut_host is declared" >&5 6768 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_host is declared... $ECHO_C" >&6 6769 if test "${cf_cv_have_utmp_ut_host+set}" = set; then 6770 echo $ECHO_N "(cached) $ECHO_C" >&6 6771 else 6772 6773 cat >"conftest.$ac_ext" <<_ACEOF 6774 #line 6774 "configure" 6775 #include "confdefs.h" 6776 6777 #include <sys/types.h> 6778 #include <${cf_cv_have_utmp}.h> 6779 int 6780 main (void) 6781 { 6782 struct $cf_cv_have_utmp x; 6783 char *y = &x.ut_host[0]; 6784 (void)x; 6785 (void)y 6786 ; 6787 return 0; 6788 } 6789 _ACEOF 6790 rm -f "conftest.$ac_objext" 6791 if { (eval echo "$as_me:6791: \"$ac_compile\"") >&5 6792 (eval $ac_compile) 2>&5 6793 ac_status=$? 6794 echo "$as_me:6794: \$? = $ac_status" >&5 6795 (exit "$ac_status"); } && 6796 { ac_try='test -s "conftest.$ac_objext"' 6797 { (eval echo "$as_me:6797: \"$ac_try\"") >&5 6798 (eval $ac_try) 2>&5 6799 ac_status=$? 6800 echo "$as_me:6800: \$? = $ac_status" >&5 6801 (exit "$ac_status"); }; }; then 6802 cf_cv_have_utmp_ut_host=yes 6803 else 6804 echo "$as_me: failed program was:" >&5 6805 cat "conftest.$ac_ext" >&5 6806 cf_cv_have_utmp_ut_host=no 6807 fi 6808 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6809 6810 fi 6811 6812 echo "$as_me:6812: result: $cf_cv_have_utmp_ut_host" >&5 6813 echo "${ECHO_T}$cf_cv_have_utmp_ut_host" >&6 6814 test "$cf_cv_have_utmp_ut_host" != no && 6815 cat >>confdefs.h <<\EOF 6816 #define HAVE_UTMP_UT_HOST 1 6817 EOF 6818 6819 fi 6820 6821 if test "$cf_cv_have_utmp" != no ; then 6822 echo "$as_me:6822: checking if ${cf_cv_have_utmp}.ut_syslen is declared" >&5 6823 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_syslen is declared... $ECHO_C" >&6 6824 if test "${cf_cv_have_utmp_ut_syslen+set}" = set; then 6825 echo $ECHO_N "(cached) $ECHO_C" >&6 6826 else 6827 6828 cat >"conftest.$ac_ext" <<_ACEOF 6829 #line 6829 "configure" 6830 #include "confdefs.h" 6831 6832 #include <sys/types.h> 6833 #include <${cf_cv_have_utmp}.h> 6834 int 6835 main (void) 6836 { 6837 struct $cf_cv_have_utmp x; 6838 int y = x.ut_syslen; 6839 (void)x; 6840 (void)y 6841 ; 6842 return 0; 6843 } 6844 _ACEOF 6845 rm -f "conftest.$ac_objext" 6846 if { (eval echo "$as_me:6846: \"$ac_compile\"") >&5 6847 (eval $ac_compile) 2>&5 6848 ac_status=$? 6849 echo "$as_me:6849: \$? = $ac_status" >&5 6850 (exit "$ac_status"); } && 6851 { ac_try='test -s "conftest.$ac_objext"' 6852 { (eval echo "$as_me:6852: \"$ac_try\"") >&5 6853 (eval $ac_try) 2>&5 6854 ac_status=$? 6855 echo "$as_me:6855: \$? = $ac_status" >&5 6856 (exit "$ac_status"); }; }; then 6857 cf_cv_have_utmp_ut_syslen=yes 6858 else 6859 echo "$as_me: failed program was:" >&5 6860 cat "conftest.$ac_ext" >&5 6861 cf_cv_have_utmp_ut_syslen=no 6862 fi 6863 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6864 6865 fi 6866 6867 echo "$as_me:6867: result: $cf_cv_have_utmp_ut_syslen" >&5 6868 echo "${ECHO_T}$cf_cv_have_utmp_ut_syslen" >&6 6869 test "$cf_cv_have_utmp_ut_syslen" != no && 6870 cat >>confdefs.h <<\EOF 6871 #define HAVE_UTMP_UT_SYSLEN 1 6872 EOF 6873 6874 fi 6875 6876 if test "$cf_cv_have_utmp" != no ; then 6877 echo "$as_me:6877: checking if ${cf_cv_have_utmp}.ut_name is declared" >&5 6878 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_name is declared... $ECHO_C" >&6 6879 if test "${cf_cv_have_utmp_ut_name+set}" = set; then 6880 echo $ECHO_N "(cached) $ECHO_C" >&6 6881 else 6882 6883 cf_cv_have_utmp_ut_name=no 6884 cf_utmp_includes=" 6885 #include <sys/types.h> 6886 #include <${cf_cv_have_utmp}.h> 6887 #define getutent getutxent 6888 #ifdef USE_LASTLOG 6889 #include <lastlog.h> /* may conflict with utmpx.h on Linux */ 6890 #endif 6891 " 6892 for cf_header in ut_name ut_user ; do 6893 cat >"conftest.$ac_ext" <<_ACEOF 6894 #line 6894 "configure" 6895 #include "confdefs.h" 6896 $cf_utmp_includes 6897 int 6898 main (void) 6899 { 6900 struct $cf_cv_have_utmp x; 6901 char *name = x.$cf_header; 6902 (void)x; 6903 (void)name; 6904 6905 ; 6906 return 0; 6907 } 6908 _ACEOF 6909 rm -f "conftest.$ac_objext" 6910 if { (eval echo "$as_me:6910: \"$ac_compile\"") >&5 6911 (eval $ac_compile) 2>&5 6912 ac_status=$? 6913 echo "$as_me:6913: \$? = $ac_status" >&5 6914 (exit "$ac_status"); } && 6915 { ac_try='test -s "conftest.$ac_objext"' 6916 { (eval echo "$as_me:6916: \"$ac_try\"") >&5 6917 (eval $ac_try) 2>&5 6918 ac_status=$? 6919 echo "$as_me:6919: \$? = $ac_status" >&5 6920 (exit "$ac_status"); }; }; then 6921 cf_cv_have_utmp_ut_name=$cf_header 6922 break 6923 else 6924 echo "$as_me: failed program was:" >&5 6925 cat "conftest.$ac_ext" >&5 6926 fi 6927 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6928 done 6929 6930 fi 6931 echo "$as_me:6931: result: $cf_cv_have_utmp_ut_name" >&5 6932 echo "${ECHO_T}$cf_cv_have_utmp_ut_name" >&6 6933 6934 case "$cf_cv_have_utmp_ut_name" in 6935 (no) 6936 { { echo "$as_me:6936: error: Cannot find declaration for ut.ut_name" >&5 6937 echo "$as_me: error: Cannot find declaration for ut.ut_name" >&2;} 6938 { (exit 1); exit 1; }; } 6939 ;; 6940 (ut_user) 6941 6942 cat >>confdefs.h <<\EOF 6943 #define ut_name ut_user 6944 EOF 6945 6946 ;; 6947 esac 6948 fi 6949 6950 if test "$cf_cv_have_utmp" != no ; then 6951 echo "$as_me:6951: checking for exit-status in $cf_cv_have_utmp" >&5 6952 echo $ECHO_N "checking for exit-status in $cf_cv_have_utmp... $ECHO_C" >&6 6953 if test "${cf_cv_have_utmp_ut_xstatus+set}" = set; then 6954 echo $ECHO_N "(cached) $ECHO_C" >&6 6955 else 6956 6957 for cf_result in \ 6958 ut_exit.__e_exit \ 6959 ut_exit.e_exit \ 6960 ut_exit.ut_e_exit \ 6961 ut_exit.ut_exit 6962 do 6963 cat >"conftest.$ac_ext" <<_ACEOF 6964 #line 6964 "configure" 6965 #include "confdefs.h" 6966 6967 #include <sys/types.h> 6968 #include <${cf_cv_have_utmp}.h> 6969 int 6970 main (void) 6971 { 6972 struct $cf_cv_have_utmp x; 6973 long y = x.$cf_result = 0; 6974 (void)x; 6975 (void)y 6976 ; 6977 return 0; 6978 } 6979 _ACEOF 6980 rm -f "conftest.$ac_objext" 6981 if { (eval echo "$as_me:6981: \"$ac_compile\"") >&5 6982 (eval $ac_compile) 2>&5 6983 ac_status=$? 6984 echo "$as_me:6984: \$? = $ac_status" >&5 6985 (exit "$ac_status"); } && 6986 { ac_try='test -s "conftest.$ac_objext"' 6987 { (eval echo "$as_me:6987: \"$ac_try\"") >&5 6988 (eval $ac_try) 2>&5 6989 ac_status=$? 6990 echo "$as_me:6990: \$? = $ac_status" >&5 6991 (exit "$ac_status"); }; }; then 6992 cf_cv_have_utmp_ut_xstatus=$cf_result 6993 break 6994 else 6995 echo "$as_me: failed program was:" >&5 6996 cat "conftest.$ac_ext" >&5 6997 cf_cv_have_utmp_ut_xstatus=no 6998 fi 6999 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 7000 done 7001 7002 fi 7003 echo "$as_me:7003: result: $cf_cv_have_utmp_ut_xstatus" >&5 7004 echo "${ECHO_T}$cf_cv_have_utmp_ut_xstatus" >&6 7005 if test "$cf_cv_have_utmp_ut_xstatus" != no ; then 7006 7007 cat >>confdefs.h <<\EOF 7008 #define HAVE_UTMP_UT_XSTATUS 1 7009 EOF 7010 7011 cat >>confdefs.h <<EOF 7012 #define ut_xstatus $cf_cv_have_utmp_ut_xstatus 7013 EOF 7014 7015 fi 7016 fi 7017 7018 if test "$cf_cv_have_utmp" != no ; then 7019 echo "$as_me:7019: checking if ${cf_cv_have_utmp}.ut_xtime is declared" >&5 7020 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_xtime is declared... $ECHO_C" >&6 7021 if test "${cf_cv_have_utmp_ut_xtime+set}" = set; then 7022 echo $ECHO_N "(cached) $ECHO_C" >&6 7023 else 7024 7025 cat >"conftest.$ac_ext" <<_ACEOF 7026 #line 7026 "configure" 7027 #include "confdefs.h" 7028 7029 #include <sys/types.h> 7030 #include <${cf_cv_have_utmp}.h> 7031 int 7032 main (void) 7033 { 7034 struct $cf_cv_have_utmp x; 7035 long y = x.ut_xtime = 0; 7036 (void)x; 7037 (void)y 7038 ; 7039 return 0; 7040 } 7041 _ACEOF 7042 rm -f "conftest.$ac_objext" 7043 if { (eval echo "$as_me:7043: \"$ac_compile\"") >&5 7044 (eval $ac_compile) 2>&5 7045 ac_status=$? 7046 echo "$as_me:7046: \$? = $ac_status" >&5 7047 (exit "$ac_status"); } && 7048 { ac_try='test -s "conftest.$ac_objext"' 7049 { (eval echo "$as_me:7049: \"$ac_try\"") >&5 7050 (eval $ac_try) 2>&5 7051 ac_status=$? 7052 echo "$as_me:7052: \$? = $ac_status" >&5 7053 (exit "$ac_status"); }; }; then 7054 cf_cv_have_utmp_ut_xtime=yes 7055 else 7056 echo "$as_me: failed program was:" >&5 7057 cat "conftest.$ac_ext" >&5 7058 cat >"conftest.$ac_ext" <<_ACEOF 7059 #line 7059 "configure" 7060 #include "confdefs.h" 7061 7062 #include <sys/types.h> 7063 #include <${cf_cv_have_utmp}.h> 7064 int 7065 main (void) 7066 { 7067 struct $cf_cv_have_utmp x; 7068 long y = x.ut_tv.tv_sec; 7069 (void)x; 7070 (void)y 7071 ; 7072 return 0; 7073 } 7074 _ACEOF 7075 rm -f "conftest.$ac_objext" 7076 if { (eval echo "$as_me:7076: \"$ac_compile\"") >&5 7077 (eval $ac_compile) 2>&5 7078 ac_status=$? 7079 echo "$as_me:7079: \$? = $ac_status" >&5 7080 (exit "$ac_status"); } && 7081 { ac_try='test -s "conftest.$ac_objext"' 7082 { (eval echo "$as_me:7082: \"$ac_try\"") >&5 7083 (eval $ac_try) 2>&5 7084 ac_status=$? 7085 echo "$as_me:7085: \$? = $ac_status" >&5 7086 (exit "$ac_status"); }; }; then 7087 cf_cv_have_utmp_ut_xtime=define 7088 else 7089 echo "$as_me: failed program was:" >&5 7090 cat "conftest.$ac_ext" >&5 7091 cf_cv_have_utmp_ut_xtime=no 7092 fi 7093 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 7094 7095 fi 7096 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 7097 7098 fi 7099 echo "$as_me:7099: result: $cf_cv_have_utmp_ut_xtime" >&5 7100 echo "${ECHO_T}$cf_cv_have_utmp_ut_xtime" >&6 7101 if test "$cf_cv_have_utmp_ut_xtime" != no ; then 7102 7103 cat >>confdefs.h <<\EOF 7104 #define HAVE_UTMP_UT_XTIME 1 7105 EOF 7106 7107 if test "$cf_cv_have_utmp_ut_xtime" = define ; then 7108 7109 cat >>confdefs.h <<\EOF 7110 #define ut_xtime ut_tv.tv_sec 7111 EOF 7112 7113 fi 7114 fi 7115 fi 7116 7117 if test "$cf_cv_have_utmp" != no ; then 7118 echo "$as_me:7118: checking if ${cf_cv_have_utmp}.ut_session is declared" >&5 7119 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_session is declared... $ECHO_C" >&6 7120 if test "${cf_cv_have_utmp_ut_session+set}" = set; then 7121 echo $ECHO_N "(cached) $ECHO_C" >&6 7122 else 7123 7124 cat >"conftest.$ac_ext" <<_ACEOF 7125 #line 7125 "configure" 7126 #include "confdefs.h" 7127 7128 #include <sys/types.h> 7129 #include <${cf_cv_have_utmp}.h> 7130 int 7131 main (void) 7132 { 7133 static struct $cf_cv_have_utmp x; 7134 long y = x.ut_session; 7135 (void)x; 7136 (void)y 7137 ; 7138 return 0; 7139 } 7140 _ACEOF 7141 rm -f "conftest.$ac_objext" 7142 if { (eval echo "$as_me:7142: \"$ac_compile\"") >&5 7143 (eval $ac_compile) 2>&5 7144 ac_status=$? 7145 echo "$as_me:7145: \$? = $ac_status" >&5 7146 (exit "$ac_status"); } && 7147 { ac_try='test -s "conftest.$ac_objext"' 7148 { (eval echo "$as_me:7148: \"$ac_try\"") >&5 7149 (eval $ac_try) 2>&5 7150 ac_status=$? 7151 echo "$as_me:7151: \$? = $ac_status" >&5 7152 (exit "$ac_status"); }; }; then 7153 cf_cv_have_utmp_ut_session=yes 7154 else 7155 echo "$as_me: failed program was:" >&5 7156 cat "conftest.$ac_ext" >&5 7157 cf_cv_have_utmp_ut_session=no 7158 fi 7159 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 7160 7161 fi 7162 echo "$as_me:7162: result: $cf_cv_have_utmp_ut_session" >&5 7163 echo "${ECHO_T}$cf_cv_have_utmp_ut_session" >&6 7164 if test "$cf_cv_have_utmp_ut_session" != no ; then 7165 7166 cat >>confdefs.h <<\EOF 7167 #define HAVE_UTMP_UT_SESSION 1 7168 EOF 7169 7170 fi 7171 fi 7172 7173 echo "$as_me:7173: checking if $cf_cv_have_utmp is SYSV flavor" >&5 7174 echo $ECHO_N "checking if $cf_cv_have_utmp is SYSV flavor... $ECHO_C" >&6 7175 if test "${cf_cv_sysv_utmp+set}" = set; then 7176 echo $ECHO_N "(cached) $ECHO_C" >&6 7177 else 7178 7179 test "$cf_cv_have_utmp" = "utmp" && cf_prefix="ut" || cf_prefix="utx" 7180 cat >"conftest.$ac_ext" <<_ACEOF 7181 #line 7181 "configure" 7182 #include "confdefs.h" 7183 7184 #include <sys/types.h> 7185 #include <${cf_cv_have_utmp}.h> 7186 int 7187 main (void) 7188 { 7189 7190 struct $cf_cv_have_utmp x; 7191 set${cf_prefix}ent (); 7192 get${cf_prefix}id(&x); 7193 put${cf_prefix}line(&x); 7194 end${cf_prefix}ent(); 7195 ; 7196 return 0; 7197 } 7198 _ACEOF 7199 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 7200 if { (eval echo "$as_me:7200: \"$ac_link\"") >&5 7201 (eval $ac_link) 2>&5 7202 ac_status=$? 7203 echo "$as_me:7203: \$? = $ac_status" >&5 7204 (exit "$ac_status"); } && 7205 { ac_try='test -s "conftest$ac_exeext"' 7206 { (eval echo "$as_me:7206: \"$ac_try\"") >&5 7207 (eval $ac_try) 2>&5 7208 ac_status=$? 7209 echo "$as_me:7209: \$? = $ac_status" >&5 7210 (exit "$ac_status"); }; }; then 7211 cf_cv_sysv_utmp=yes 7212 else 7213 echo "$as_me: failed program was:" >&5 7214 cat "conftest.$ac_ext" >&5 7215 cf_cv_sysv_utmp=no 7216 fi 7217 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 7218 7219 fi 7220 echo "$as_me:7220: result: $cf_cv_sysv_utmp" >&5 7221 echo "${ECHO_T}$cf_cv_sysv_utmp" >&6 7222 test "$cf_cv_sysv_utmp" = yes && 7223 cat >>confdefs.h <<\EOF 7224 #define USE_SYSV_UTMP 1 7225 EOF 7226 7227 fi 7228 7229 for ac_header in lastlog.h 7230 do 7231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7232 echo "$as_me:7232: checking for $ac_header" >&5 7233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7234 if eval "test \"\${$as_ac_Header+set}\" = set"; then 7235 echo $ECHO_N "(cached) $ECHO_C" >&6 7236 else 7237 cat >"conftest.$ac_ext" <<_ACEOF 7238 #line 7238 "configure" 7239 #include "confdefs.h" 7240 #include <$ac_header> 7241 _ACEOF 7242 if { (eval echo "$as_me:7242: \"$ac_cpp "conftest.$ac_ext"\"") >&5 7243 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 7244 ac_status=$? 7245 $EGREP -v '^ *\+' conftest.er1 >conftest.err 7246 rm -f conftest.er1 7247 cat conftest.err >&5 7248 echo "$as_me:7248: \$? = $ac_status" >&5 7249 (exit "$ac_status"); } >/dev/null; then 7250 if test -s conftest.err; then 7251 ac_cpp_err=$ac_c_preproc_warn_flag 7252 else 7253 ac_cpp_err= 7254 fi 7255 else 7256 ac_cpp_err=yes 7257 fi 7258 if test -z "$ac_cpp_err"; then 7259 eval "$as_ac_Header=yes" 7260 else 7261 echo "$as_me: failed program was:" >&5 7262 cat "conftest.$ac_ext" >&5 7263 eval "$as_ac_Header=no" 7264 fi 7265 rm -f conftest.err "conftest.$ac_ext" 7266 fi 7267 echo "$as_me:7267: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 7268 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 7269 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 7270 cat >>confdefs.h <<EOF 7271 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7272 EOF 7273 7274 fi 7275 done 7276 7277 echo "$as_me:7277: checking for struct lastlog" >&5 7278 echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 7279 if test "${cf_cv_struct_lastlog+set}" = set; then 7280 echo $ECHO_N "(cached) $ECHO_C" >&6 7281 else 7282 7283 if test "$cross_compiling" = yes; then 7284 7285 cf_cv_struct_lastlog=unknown 7286 else 7287 cat >"conftest.$ac_ext" <<_ACEOF 7288 #line 7288 "configure" 7289 #include "confdefs.h" 7290 7291 $ac_includes_default 7292 7293 #include <time.h> 7294 #include <lastlog.h> 7295 7296 int main(void) 7297 { 7298 struct lastlog data; 7299 return (sizeof(data.ll_time) != sizeof(time_t)); 7300 } 7301 _ACEOF 7302 rm -f "conftest$ac_exeext" 7303 if { (eval echo "$as_me:7303: \"$ac_link\"") >&5 7304 (eval $ac_link) 2>&5 7305 ac_status=$? 7306 echo "$as_me:7306: \$? = $ac_status" >&5 7307 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 7308 { (eval echo "$as_me:7308: \"$ac_try\"") >&5 7309 (eval $ac_try) 2>&5 7310 ac_status=$? 7311 echo "$as_me:7311: \$? = $ac_status" >&5 7312 (exit "$ac_status"); }; }; then 7313 7314 cf_cv_struct_lastlog=yes 7315 else 7316 echo "$as_me: program exited with status $ac_status" >&5 7317 echo "$as_me: failed program was:" >&5 7318 cat "conftest.$ac_ext" >&5 7319 7320 cf_cv_struct_lastlog=no 7321 fi 7322 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 7323 fi 7324 fi 7325 echo "$as_me:7325: result: $cf_cv_struct_lastlog" >&5 7326 echo "${ECHO_T}$cf_cv_struct_lastlog" >&6 7327 7328 test $cf_cv_struct_lastlog != no && 7329 cat >>confdefs.h <<\EOF 7330 #define USE_STRUCT_LASTLOG 1 7331 EOF 7332 7333 for ac_header in \ 7334 sys/param.h \ 7335 7336 do 7337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7338 echo "$as_me:7338: checking for $ac_header" >&5 7339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7340 if eval "test \"\${$as_ac_Header+set}\" = set"; then 7341 echo $ECHO_N "(cached) $ECHO_C" >&6 7342 else 7343 cat >"conftest.$ac_ext" <<_ACEOF 7344 #line 7344 "configure" 7345 #include "confdefs.h" 7346 #include <$ac_header> 7347 _ACEOF 7348 if { (eval echo "$as_me:7348: \"$ac_cpp "conftest.$ac_ext"\"") >&5 7349 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 7350 ac_status=$? 7351 $EGREP -v '^ *\+' conftest.er1 >conftest.err 7352 rm -f conftest.er1 7353 cat conftest.err >&5 7354 echo "$as_me:7354: \$? = $ac_status" >&5 7355 (exit "$ac_status"); } >/dev/null; then 7356 if test -s conftest.err; then 7357 ac_cpp_err=$ac_c_preproc_warn_flag 7358 else 7359 ac_cpp_err= 7360 fi 7361 else 7362 ac_cpp_err=yes 7363 fi 7364 if test -z "$ac_cpp_err"; then 7365 eval "$as_ac_Header=yes" 7366 else 7367 echo "$as_me: failed program was:" >&5 7368 cat "conftest.$ac_ext" >&5 7369 eval "$as_ac_Header=no" 7370 fi 7371 rm -f conftest.err "conftest.$ac_ext" 7372 fi 7373 echo "$as_me:7373: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 7374 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 7375 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 7376 cat >>confdefs.h <<EOF 7377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7378 EOF 7379 7380 fi 7381 done 7382 7383 echo "$as_me:7383: checking if POSIX saved-ids are supported" >&5 7384 echo $ECHO_N "checking if POSIX saved-ids are supported... $ECHO_C" >&6 7385 if test "${cf_cv_posix_saved_ids+set}" = set; then 7386 echo $ECHO_N "(cached) $ECHO_C" >&6 7387 else 7388 7389 cat >"conftest.$ac_ext" <<_ACEOF 7390 #line 7390 "configure" 7391 #include "confdefs.h" 7392 7393 #include <unistd.h> 7394 #ifdef HAVE_SYS_PARAM_H 7395 #include <sys/param.h> /* this may define "BSD" */ 7396 #endif 7397 7398 int 7399 main (void) 7400 { 7401 7402 #if defined(_POSIX_SAVED_IDS) && (_POSIX_SAVED_IDS > 0) 7403 int (*my_seteuid)(uid_t) = seteuid; 7404 int x = my_seteuid(geteuid()); 7405 (void)x; 7406 #elif defined(BSD) && (BSD >= 199103) 7407 /* The BSD's may implement the runtime check - and it fails. 7408 * However, saved-ids work almost like POSIX (close enough for most uses). 7409 */ 7410 #else 7411 #error no saved-ids found 7412 #endif 7413 7414 ; 7415 return 0; 7416 } 7417 _ACEOF 7418 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 7419 if { (eval echo "$as_me:7419: \"$ac_link\"") >&5 7420 (eval $ac_link) 2>&5 7421 ac_status=$? 7422 echo "$as_me:7422: \$? = $ac_status" >&5 7423 (exit "$ac_status"); } && 7424 { ac_try='test -s "conftest$ac_exeext"' 7425 { (eval echo "$as_me:7425: \"$ac_try\"") >&5 7426 (eval $ac_try) 2>&5 7427 ac_status=$? 7428 echo "$as_me:7428: \$? = $ac_status" >&5 7429 (exit "$ac_status"); }; }; then 7430 cf_cv_posix_saved_ids=yes 7431 7432 else 7433 echo "$as_me: failed program was:" >&5 7434 cat "conftest.$ac_ext" >&5 7435 7436 if test "$cross_compiling" = yes; then 7437 cf_cv_posix_saved_ids=unknown 7438 else 7439 cat >"conftest.$ac_ext" <<_ACEOF 7440 #line 7440 "configure" 7441 #include "confdefs.h" 7442 7443 $ac_includes_default 7444 7445 int main(void) 7446 { 7447 void *p = (void *) seteuid; 7448 long code = sysconf(_SC_SAVED_IDS); 7449 (void)p; 7450 ${cf_cv_main_return:-return} ((code > 0) ? 0 : 1); 7451 } 7452 _ACEOF 7453 rm -f "conftest$ac_exeext" 7454 if { (eval echo "$as_me:7454: \"$ac_link\"") >&5 7455 (eval $ac_link) 2>&5 7456 ac_status=$? 7457 echo "$as_me:7457: \$? = $ac_status" >&5 7458 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 7459 { (eval echo "$as_me:7459: \"$ac_try\"") >&5 7460 (eval $ac_try) 2>&5 7461 ac_status=$? 7462 echo "$as_me:7462: \$? = $ac_status" >&5 7463 (exit "$ac_status"); }; }; then 7464 cf_cv_posix_saved_ids=yes 7465 else 7466 echo "$as_me: program exited with status $ac_status" >&5 7467 echo "$as_me: failed program was:" >&5 7468 cat "conftest.$ac_ext" >&5 7469 cf_cv_posix_saved_ids=no 7470 fi 7471 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 7472 fi 7473 7474 fi 7475 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 7476 7477 fi 7478 echo "$as_me:7478: result: $cf_cv_posix_saved_ids" >&5 7479 echo "${ECHO_T}$cf_cv_posix_saved_ids" >&6 7480 7481 test "$cf_cv_posix_saved_ids" = yes && 7482 cat >>confdefs.h <<\EOF 7483 #define HAVE_POSIX_SAVED_IDS 1 7484 EOF 7485 7486 # compute a reasonable value for $TERM to give tgetent(), since we may be 7487 # running in 'screen', which sets $TERMCAP to a specific entry that is not 7488 # necessarily in /etc/termcap - unsetenv is not portable, so we cannot simply 7489 # discard $TERMCAP. 7490 cf_TERMVAR=vt100 7491 if test -n "$TERMCAP" 7492 then 7493 cf_TERMCAP=`echo "$TERMCAP" | tr '\n' ' ' | sed -e 's/^..|//' -e 's/|.*//'` 7494 case "$cf_TERMCAP" in 7495 (screen*.*) 7496 ;; 7497 (*) 7498 cf_TERMVAR="$cf_TERMCAP" 7499 ;; 7500 esac 7501 fi 7502 test -z "$cf_TERMVAR" && cf_TERMVAR=vt100 7503 7504 # BSD termcap used no header file 7505 # SVr4 provided termcap prototypes as a legacy feature in term.h 7506 # GNU termcap provided termcap prototypes in termcap.h 7507 # ncurses provides termcap prototypes in both term.h and termcap.h 7508 # 7509 # The terminfo-based termcap interfaces do not provide a full tgetent (i.e., do 7510 # not return the text of the termcap entry in the buffer), but as a special 7511 # case, FreeBSD provides ncurses' termcap.h with a modified termcap reader that 7512 # returns the termcap text. 7513 7514 for ac_header in termcap.h 7515 do 7516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7517 echo "$as_me:7517: checking for $ac_header" >&5 7518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7519 if eval "test \"\${$as_ac_Header+set}\" = set"; then 7520 echo $ECHO_N "(cached) $ECHO_C" >&6 7521 else 7522 cat >"conftest.$ac_ext" <<_ACEOF 7523 #line 7523 "configure" 7524 #include "confdefs.h" 7525 #include <$ac_header> 7526 _ACEOF 7527 if { (eval echo "$as_me:7527: \"$ac_cpp "conftest.$ac_ext"\"") >&5 7528 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 7529 ac_status=$? 7530 $EGREP -v '^ *\+' conftest.er1 >conftest.err 7531 rm -f conftest.er1 7532 cat conftest.err >&5 7533 echo "$as_me:7533: \$? = $ac_status" >&5 7534 (exit "$ac_status"); } >/dev/null; then 7535 if test -s conftest.err; then 7536 ac_cpp_err=$ac_c_preproc_warn_flag 7537 else 7538 ac_cpp_err= 7539 fi 7540 else 7541 ac_cpp_err=yes 7542 fi 7543 if test -z "$ac_cpp_err"; then 7544 eval "$as_ac_Header=yes" 7545 else 7546 echo "$as_me: failed program was:" >&5 7547 cat "conftest.$ac_ext" >&5 7548 eval "$as_ac_Header=no" 7549 fi 7550 rm -f conftest.err "conftest.$ac_ext" 7551 fi 7552 echo "$as_me:7552: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 7553 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 7554 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 7555 cat >>confdefs.h <<EOF 7556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7557 EOF 7558 7559 fi 7560 done 7561 7562 cf_termcap_h="\ 7563 #ifdef HAVE_TERMCAP_H 7564 #include <termcap.h> 7565 #else 7566 extern int tgetent(char *, const char *); 7567 #endif" 7568 7569 echo "$as_me:7569: checking if we want full tgetent function" >&5 7570 echo $ECHO_N "checking if we want full tgetent function... $ECHO_C" >&6 7571 7572 # Check whether --enable-full-tgetent or --disable-full-tgetent was given. 7573 if test "${enable_full_tgetent+set}" = set; then 7574 enableval="$enable_full_tgetent" 7575 test "$enableval" != no && enableval=yes 7576 if test "$enableval" != "yes" ; then 7577 cf_full_tgetent=no 7578 else 7579 cf_full_tgetent=yes 7580 fi 7581 else 7582 enableval=yes 7583 cf_full_tgetent=yes 7584 7585 fi; 7586 echo "$as_me:7586: result: $cf_full_tgetent" >&5 7587 echo "${ECHO_T}$cf_full_tgetent" >&6 7588 7589 if test "$cf_full_tgetent" = yes ; then 7590 cf_test_message="full tgetent" 7591 else 7592 cf_test_message="tgetent" 7593 fi 7594 7595 echo "$as_me:7595: checking for $cf_test_message function" >&5 7596 echo $ECHO_N "checking for $cf_test_message function... $ECHO_C" >&6 7597 if test "${cf_cv_lib_tgetent+set}" = set; then 7598 echo $ECHO_N "(cached) $ECHO_C" >&6 7599 else 7600 7601 cf_save_LIBS="$LIBS" 7602 cf_cv_lib_tgetent=no 7603 cf_TERMLIB="termlib ncursesw ncurses curses" 7604 if test "$cf_full_tgetent" = yes ; then 7605 cf_TERMLIB="otermcap termcap $cf_TERMLIB" 7606 cf_TERMTST="buffer[0] == 0" 7607 else 7608 cf_TERMLIB="tinfow tinfo $cf_TERMLIB" 7609 cf_TERMTST="0" 7610 fi 7611 for cf_termlib in '' $cf_TERMLIB ; do 7612 LIBS="$cf_save_LIBS" 7613 test -n "$cf_termlib" && { 7614 cf_add_libs="$LIBS" 7615 # reverse order 7616 cf_add_0lib= 7617 for cf_add_1lib in -l$cf_termlib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 7618 # filter duplicates 7619 for cf_add_1lib in $cf_add_0lib; do 7620 for cf_add_2lib in $cf_add_libs; do 7621 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 7622 cf_add_1lib= 7623 break 7624 fi 7625 done 7626 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 7627 done 7628 LIBS="$cf_add_libs" 7629 } 7630 if test "$cross_compiling" = yes; then 7631 echo "cross-compiling, cannot verify if a termcap/tgetent is present in $cf_termlib" 1>&5 7632 else 7633 cat >"conftest.$ac_ext" <<_ACEOF 7634 #line 7634 "configure" 7635 #include "confdefs.h" 7636 7637 $cf_termcap_h 7638 7639 /* terminfo implementations ignore the buffer argument, making it useless for 7640 * the xterm application, which uses this information to make a new TERMCAP 7641 * environment variable. 7642 */ 7643 int main(void) 7644 { 7645 char buffer[1024]; 7646 buffer[0] = 0; 7647 tgetent(buffer, "$cf_TERMVAR"); 7648 ${cf_cv_main_return:-return} ($cf_TERMTST); } 7649 _ACEOF 7650 rm -f "conftest$ac_exeext" 7651 if { (eval echo "$as_me:7651: \"$ac_link\"") >&5 7652 (eval $ac_link) 2>&5 7653 ac_status=$? 7654 echo "$as_me:7654: \$? = $ac_status" >&5 7655 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 7656 { (eval echo "$as_me:7656: \"$ac_try\"") >&5 7657 (eval $ac_try) 2>&5 7658 ac_status=$? 7659 echo "$as_me:7659: \$? = $ac_status" >&5 7660 (exit "$ac_status"); }; }; then 7661 echo "yes, there is a termcap/tgetent in $cf_termlib" 1>&5 7662 if test -n "$cf_termlib" ; then 7663 cf_cv_lib_tgetent="-l$cf_termlib" 7664 else 7665 cf_cv_lib_tgetent=yes 7666 fi 7667 break 7668 else 7669 echo "$as_me: program exited with status $ac_status" >&5 7670 echo "$as_me: failed program was:" >&5 7671 cat "conftest.$ac_ext" >&5 7672 echo "no, there is no termcap/tgetent in $cf_termlib" 1>&5 7673 fi 7674 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 7675 fi 7676 done 7677 LIBS="$cf_save_LIBS" 7678 7679 fi 7680 echo "$as_me:7680: result: $cf_cv_lib_tgetent" >&5 7681 echo "${ECHO_T}$cf_cv_lib_tgetent" >&6 7682 7683 # If we found a working tgetent(), set LIBS and check for termcap.h. 7684 # (LIBS cannot be set inside AC_CACHE_CHECK; the commands there should 7685 # not have side effects other than setting the cache variable, because 7686 # they are not executed when a cached value exists.) 7687 if test "x$cf_cv_lib_tgetent" != xno ; then 7688 test "x$cf_cv_lib_tgetent" != xyes && { 7689 cf_add_libs="$LIBS" 7690 # reverse order 7691 cf_add_0lib= 7692 for cf_add_1lib in $cf_cv_lib_tgetent; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 7693 # filter duplicates 7694 for cf_add_1lib in $cf_add_0lib; do 7695 for cf_add_2lib in $cf_add_libs; do 7696 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 7697 cf_add_1lib= 7698 break 7699 fi 7700 done 7701 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 7702 done 7703 LIBS="$cf_add_libs" 7704 } 7705 7706 cat >>confdefs.h <<\EOF 7707 #define USE_TERMCAP 1 7708 EOF 7709 7710 if test "$cf_full_tgetent" = no ; then 7711 cat >"conftest.$ac_ext" <<_ACEOF 7712 #line 7712 "configure" 7713 #include "confdefs.h" 7714 7715 #include <termcap.h> 7716 int 7717 main (void) 7718 { 7719 7720 #ifdef NCURSES_VERSION 7721 #error do not use ncurses termcap.h 7722 #endif 7723 ; 7724 return 0; 7725 } 7726 _ACEOF 7727 rm -f "conftest.$ac_objext" 7728 if { (eval echo "$as_me:7728: \"$ac_compile\"") >&5 7729 (eval $ac_compile) 2>&5 7730 ac_status=$? 7731 echo "$as_me:7731: \$? = $ac_status" >&5 7732 (exit "$ac_status"); } && 7733 { ac_try='test -s "conftest.$ac_objext"' 7734 { (eval echo "$as_me:7734: \"$ac_try\"") >&5 7735 (eval $ac_try) 2>&5 7736 ac_status=$? 7737 echo "$as_me:7737: \$? = $ac_status" >&5 7738 (exit "$ac_status"); }; }; then 7739 cat >>confdefs.h <<\EOF 7740 #define HAVE_TERMCAP_H 1 7741 EOF 7742 7743 else 7744 echo "$as_me: failed program was:" >&5 7745 cat "conftest.$ac_ext" >&5 7746 fi 7747 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 7748 fi 7749 else 7750 # If we didn't find a tgetent() that supports the buffer 7751 # argument, look again to see whether we can find even 7752 # a crippled one. A crippled tgetent() is still useful to 7753 # validate values for the TERM environment variable given to 7754 # child processes. 7755 echo "$as_me:7755: checking for partial tgetent function" >&5 7756 echo $ECHO_N "checking for partial tgetent function... $ECHO_C" >&6 7757 if test "${cf_cv_lib_part_tgetent+set}" = set; then 7758 echo $ECHO_N "(cached) $ECHO_C" >&6 7759 else 7760 7761 cf_cv_lib_part_tgetent=no 7762 for cf_termlib in $cf_TERMLIB ; do 7763 LIBS="$cf_save_LIBS -l$cf_termlib" 7764 cat >"conftest.$ac_ext" <<_ACEOF 7765 #line 7765 "configure" 7766 #include "confdefs.h" 7767 $cf_termcap_h 7768 int 7769 main (void) 7770 { 7771 tgetent(0, "$cf_TERMVAR") 7772 ; 7773 return 0; 7774 } 7775 _ACEOF 7776 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 7777 if { (eval echo "$as_me:7777: \"$ac_link\"") >&5 7778 (eval $ac_link) 2>&5 7779 ac_status=$? 7780 echo "$as_me:7780: \$? = $ac_status" >&5 7781 (exit "$ac_status"); } && 7782 { ac_try='test -s "conftest$ac_exeext"' 7783 { (eval echo "$as_me:7783: \"$ac_try\"") >&5 7784 (eval $ac_try) 2>&5 7785 ac_status=$? 7786 echo "$as_me:7786: \$? = $ac_status" >&5 7787 (exit "$ac_status"); }; }; then 7788 echo "there is a terminfo/tgetent in $cf_termlib" 1>&5 7789 cf_cv_lib_part_tgetent="-l$cf_termlib" 7790 break 7791 else 7792 echo "$as_me: failed program was:" >&5 7793 cat "conftest.$ac_ext" >&5 7794 fi 7795 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 7796 done 7797 LIBS="$cf_save_LIBS" 7798 7799 fi 7800 echo "$as_me:7800: result: $cf_cv_lib_part_tgetent" >&5 7801 echo "${ECHO_T}$cf_cv_lib_part_tgetent" >&6 7802 7803 if test "$cf_cv_lib_part_tgetent" != no ; then 7804 7805 cf_add_libs="$LIBS" 7806 # reverse order 7807 cf_add_0lib= 7808 for cf_add_1lib in $cf_cv_lib_part_tgetent; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 7809 # filter duplicates 7810 for cf_add_1lib in $cf_add_0lib; do 7811 for cf_add_2lib in $cf_add_libs; do 7812 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 7813 cf_add_1lib= 7814 break 7815 fi 7816 done 7817 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 7818 done 7819 LIBS="$cf_add_libs" 7820 7821 # If this is linking against ncurses, we'll trigger the 7822 # ifdef in resize.c that turns the termcap stuff back off. 7823 7824 cat >>confdefs.h <<\EOF 7825 #define USE_TERMINFO 1 7826 EOF 7827 7828 fi 7829 fi 7830 7831 echo "$as_me:7831: checking for X applications class" >&5 7832 echo $ECHO_N "checking for X applications class... $ECHO_C" >&6 7833 7834 # Check whether --with-app-class or --without-app-class was given. 7835 if test "${with_app_class+set}" = set; then 7836 withval="$with_app_class" 7837 APP_CLASS=$withval 7838 else 7839 APP_CLASS=XTerm 7840 fi; 7841 7842 case x$APP_CLASS in 7843 (*[/@,%]*) 7844 { echo "$as_me:7844: WARNING: X applications class cannot contain punctuation" >&5 7845 echo "$as_me: WARNING: X applications class cannot contain punctuation" >&2;} 7846 APP_CLASS=XTerm 7847 ;; 7848 (x[A-Z]*) 7849 ;; 7850 (*) 7851 { echo "$as_me:7851: WARNING: X applications class must start with capital, ignoring $APP_CLASS" >&5 7852 echo "$as_me: WARNING: X applications class must start with capital, ignoring $APP_CLASS" >&2;} 7853 APP_CLASS=XTerm 7854 ;; 7855 esac 7856 7857 echo "$as_me:7857: result: $APP_CLASS" >&5 7858 echo "${ECHO_T}$APP_CLASS" >&6 7859 7860 if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then 7861 echo "$as_me:7861: checking target system type" >&5 7862 echo $ECHO_N "checking target system type... $ECHO_C" >&6 7863 if test "${ac_cv_target+set}" = set; then 7864 echo $ECHO_N "(cached) $ECHO_C" >&6 7865 else 7866 ac_cv_target_alias=$target_alias 7867 test "x$ac_cv_target_alias" = "x" && 7868 ac_cv_target_alias=$ac_cv_host_alias 7869 ac_cv_target=`$ac_config_sub "$ac_cv_target_alias"` || 7870 { { echo "$as_me:7870: error: $ac_config_sub $ac_cv_target_alias failed" >&5 7871 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 7872 { (exit 1); exit 1; }; } 7873 7874 fi 7875 echo "$as_me:7875: result: $ac_cv_target" >&5 7876 echo "${ECHO_T}$ac_cv_target" >&6 7877 target=$ac_cv_target 7878 target_cpu=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 7879 target_vendor=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 7880 target_os=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 7881 7882 # The aliases save the names the user supplied, while $host etc. 7883 # will get canonicalized. 7884 test -n "$target_alias" && 7885 test "$program_prefix$program_suffix$program_transform_name" = \ 7886 NONENONEs,x,x, && 7887 program_prefix=${target_alias}- 7888 system_name="$host_os" 7889 else 7890 system_name="`(uname -s -r) 2>/dev/null`" 7891 if test -z "$system_name" ; then 7892 system_name="`(hostname) 2>/dev/null`" 7893 fi 7894 fi 7895 test -n "$system_name" && 7896 cat >>confdefs.h <<EOF 7897 #define SYSTEM_NAME "$system_name" 7898 EOF 7899 7900 if test "${cf_cv_system_name+set}" = set; then 7901 echo $ECHO_N "(cached) $ECHO_C" >&6 7902 else 7903 cf_cv_system_name="$system_name" 7904 fi 7905 7906 test -z "$system_name" && system_name="$cf_cv_system_name" 7907 test -n "$cf_cv_system_name" && echo "$as_me:7907: result: Configuring for $cf_cv_system_name" >&5 7908 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6 7909 7910 if test ".$system_name" != ".$cf_cv_system_name" ; then 7911 echo "$as_me:7911: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5 7912 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6 7913 { { echo "$as_me:7913: error: \"Please remove config.cache and try again.\"" >&5 7914 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;} 7915 { (exit 1); exit 1; }; } 7916 fi 7917 7918 # Check whether --with-system-type or --without-system-type was given. 7919 if test "${with_system_type+set}" = set; then 7920 withval="$with_system_type" 7921 { echo "$as_me:7921: WARNING: overriding system type to $withval" >&5 7922 echo "$as_me: WARNING: overriding system type to $withval" >&2;} 7923 cf_cv_system_name=$withval 7924 host_os=$withval 7925 7926 fi; 7927 7928 case "$cf_cv_system_name" in 7929 (cygwin*|msys*|mingw32*|mingw64|os2*) 7930 GLOB_FULLPATH_POSIX='/*' 7931 GLOB_FULLPATH_OTHER='[a-zA-Z]:[\\/]*' 7932 ;; 7933 (*) 7934 GLOB_FULLPATH_POSIX='/*' 7935 GLOB_FULLPATH_OTHER=$GLOB_FULLPATH_POSIX 7936 ;; 7937 esac 7938 7939 echo "$as_me:7939: checking for directory to install resource files" >&5 7940 echo $ECHO_N "checking for directory to install resource files... $ECHO_C" >&6 7941 7942 # Check whether --with-app-defaults or --without-app-defaults was given. 7943 if test "${with_app_defaults+set}" = set; then 7944 withval="$with_app_defaults" 7945 APPSDIR=$withval 7946 else 7947 APPSDIR='${exec_prefix}/lib/X11/app-defaults' 7948 fi; 7949 7950 if test "x$APPSDIR" = xauto 7951 then 7952 APPSDIR='${exec_prefix}/lib/X11/app-defaults' 7953 for cf_path in \ 7954 /opt/local/share/X11/app-defaults \ 7955 /opt/X11/share/X11/app-defaults \ 7956 /usr/share/X11/app-defaults \ 7957 /usr/X11/share/X11/app-defaults \ 7958 /usr/X11/lib/X11/app-defaults \ 7959 /usr/lib/X11/app-defaults \ 7960 /etc/X11/app-defaults \ 7961 /usr/pkg/lib/X11/app-defaults \ 7962 /usr/X11R7/lib/X11/app-defaults \ 7963 /usr/X11R6/lib/X11/app-defaults \ 7964 /usr/X11R5/lib/X11/app-defaults \ 7965 /usr/X11R4/lib/X11/app-defaults \ 7966 /usr/local/lib/X11/app-defaults \ 7967 /usr/local/share/X11/app-defaults \ 7968 /usr/lib64/X11/app-defaults 7969 do 7970 if test -d "$cf_path" ; then 7971 APPSDIR="$cf_path" 7972 break 7973 fi 7974 done 7975 else 7976 cf_path=$APPSDIR 7977 7978 if test "x$prefix" != xNONE; then 7979 cf_path_syntax="$prefix" 7980 else 7981 cf_path_syntax="$ac_default_prefix" 7982 fi 7983 7984 case "x$cf_path" in 7985 (x\$\(*\)*|x\'*\'*) 7986 ;; 7987 (x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER) 7988 ;; 7989 (x\$\{*prefix\}*|x\$\{*dir\}*) 7990 eval cf_path="$cf_path" 7991 case "x$cf_path" in 7992 (xNONE/*) 7993 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` 7994 ;; 7995 esac 7996 ;; 7997 (xno|xNONE/*) 7998 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` 7999 ;; 8000 (*) 8001 { { echo "$as_me:8001: error: expected a pathname, not \"$cf_path\"" >&5 8002 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;} 8003 { (exit 1); exit 1; }; } 8004 ;; 8005 esac 8006 8007 fi 8008 8009 echo "$as_me:8009: result: $APPSDIR" >&5 8010 echo "${ECHO_T}$APPSDIR" >&6 8011 8012 no_appsdir= 8013 if test "$APPSDIR" = no 8014 then 8015 no_appsdir="#" 8016 else 8017 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(APPSDIR)" 8018 fi 8019 8020 echo "$as_me:8020: checking for the icon name" >&5 8021 echo $ECHO_N "checking for the icon name... $ECHO_C" >&6 8022 8023 # Check whether --with-icon-name or --without-icon-name was given. 8024 if test "${with_icon_name+set}" = set; then 8025 withval="$with_icon_name" 8026 ICON_NAME="$withval" 8027 else 8028 ICON_NAME=mini.xterm 8029 fi; 8030 case "x$ICON_NAME" in 8031 (xyes|xno|x) 8032 ICON_NAME=mini.xterm 8033 ;; 8034 esac 8035 8036 echo "$as_me:8036: result: $ICON_NAME" >&5 8037 echo "${ECHO_T}$ICON_NAME" >&6 8038 8039 echo "$as_me:8039: checking for icon symlink to use" >&5 8040 echo $ECHO_N "checking for icon symlink to use... $ECHO_C" >&6 8041 8042 # Check whether --with-icon-symlink or --without-icon-symlink was given. 8043 if test "${with_icon_symlink+set}" = set; then 8044 withval="$with_icon_symlink" 8045 ICON_SYMLINK="$withval" 8046 else 8047 ICON_SYMLINK=NONE 8048 fi; 8049 case "x$ICON_SYMLINK" in 8050 (xyes) 8051 ICON_SYMLINK=xterm 8052 ;; 8053 (xno|x) 8054 ICON_SYMLINK=NONE 8055 ;; 8056 esac 8057 8058 echo "$as_me:8058: result: $ICON_SYMLINK" >&5 8059 echo "${ECHO_T}$ICON_SYMLINK" >&6 8060 8061 # Install all icons except for the overused "terminal". 8062 cf_cv_icon_list= 8063 for my_item in $srcdir/icons/*.svg 8064 do 8065 test -f "$my_item" || continue 8066 cf_icon_name=`echo "$my_item" |sed -e "s,.svg,," -e "s,^$srcdir/,,"` 8067 case $cf_icon_name in 8068 (*_48x48) 8069 continue 8070 ;; 8071 esac 8072 test -n "$verbose" && echo " adding $cf_icon_name to icon-list" 1>&6 8073 8074 echo "${as_me:-configure}:8074: testing adding $cf_icon_name to icon-list ..." 1>&5 8075 8076 cf_cv_icon_list="$cf_cv_icon_list $cf_icon_name" 8077 if test -f "${cf_icon_name}_48x48.png" 8078 then 8079 test -n "$verbose" && echo " adding ${cf_icon_name}_48x48 to icon-list" 1>&6 8080 8081 echo "${as_me:-configure}:8081: testing adding ${cf_icon_name}_48x48 to icon-list ..." 1>&5 8082 8083 cf_cv_icon_list="$cf_cv_icon_list ${cf_icon_name}_48x48" 8084 fi 8085 done 8086 8087 echo "$as_me:8087: checking for directory to install pixmaps" >&5 8088 echo $ECHO_N "checking for directory to install pixmaps... $ECHO_C" >&6 8089 8090 # Check whether --with-pixmapdir or --without-pixmapdir was given. 8091 if test "${with_pixmapdir+set}" = set; then 8092 withval="$with_pixmapdir" 8093 PIXMAPDIR=$withval 8094 else 8095 test -z "$PIXMAPDIR" && PIXMAPDIR='${datadir}/pixmaps' 8096 fi; 8097 8098 if test "x$PIXMAPDIR" = xauto 8099 then 8100 PIXMAPDIR='${datadir}/pixmaps' 8101 for cf_path in \ 8102 /usr/share/pixmaps \ 8103 /usr/X11R6/share/pixmaps 8104 do 8105 if test -d "$cf_path" ; then 8106 PIXMAPDIR="$cf_path" 8107 break 8108 fi 8109 done 8110 else 8111 cf_path=$PIXMAPDIR 8112 8113 if test "x$prefix" != xNONE; then 8114 cf_path_syntax="$prefix" 8115 else 8116 cf_path_syntax="$ac_default_prefix" 8117 fi 8118 8119 case "x$cf_path" in 8120 (x\$\(*\)*|x\'*\'*) 8121 ;; 8122 (x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER) 8123 ;; 8124 (x\$\{*prefix\}*|x\$\{*dir\}*) 8125 eval cf_path="$cf_path" 8126 case "x$cf_path" in 8127 (xNONE/*) 8128 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` 8129 ;; 8130 esac 8131 ;; 8132 (xno|xNONE/*) 8133 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` 8134 ;; 8135 (*) 8136 { { echo "$as_me:8136: error: expected a pathname, not \"$cf_path\"" >&5 8137 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;} 8138 { (exit 1); exit 1; }; } 8139 ;; 8140 esac 8141 8142 fi 8143 echo "$as_me:8143: result: $PIXMAPDIR" >&5 8144 echo "${ECHO_T}$PIXMAPDIR" >&6 8145 8146 no_pixmapdir= 8147 if test "$PIXMAPDIR" = no 8148 then 8149 no_pixmapdir="#" 8150 else 8151 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(PIXMAPDIR)" 8152 fi 8153 8154 echo "$as_me:8154: checking for directory to install icons" >&5 8155 echo $ECHO_N "checking for directory to install icons... $ECHO_C" >&6 8156 8157 # Check whether --with-icondir or --without-icondir was given. 8158 if test "${with_icondir+set}" = set; then 8159 withval="$with_icondir" 8160 ICONDIR=$withval 8161 else 8162 test -z "$ICONDIR" && ICONDIR=no 8163 fi; 8164 8165 if test "x$ICONDIR" = xauto 8166 then 8167 ICONDIR='${datadir}/icons' 8168 for cf_path in \ 8169 /usr/share/icons \ 8170 /usr/X11R6/share/icons 8171 do 8172 if test -d "$cf_path" ; then 8173 ICONDIR="$cf_path" 8174 break 8175 fi 8176 done 8177 else 8178 cf_path=$ICONDIR 8179 8180 if test "x$prefix" != xNONE; then 8181 cf_path_syntax="$prefix" 8182 else 8183 cf_path_syntax="$ac_default_prefix" 8184 fi 8185 8186 case "x$cf_path" in 8187 (x\$\(*\)*|x\'*\'*) 8188 ;; 8189 (x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER) 8190 ;; 8191 (x\$\{*prefix\}*|x\$\{*dir\}*) 8192 eval cf_path="$cf_path" 8193 case "x$cf_path" in 8194 (xNONE/*) 8195 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` 8196 ;; 8197 esac 8198 ;; 8199 (xno|xNONE/*) 8200 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` 8201 ;; 8202 (*) 8203 { { echo "$as_me:8203: error: expected a pathname, not \"$cf_path\"" >&5 8204 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;} 8205 { (exit 1); exit 1; }; } 8206 ;; 8207 esac 8208 8209 fi 8210 echo "$as_me:8210: result: $ICONDIR" >&5 8211 echo "${ECHO_T}$ICONDIR" >&6 8212 8213 no_icondir= 8214 if test "$ICONDIR" = no 8215 then 8216 no_icondir="#" 8217 else 8218 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(ICONDIR)" 8219 fi 8220 8221 echo "$as_me:8221: checking if icon theme should be used" >&5 8222 echo $ECHO_N "checking if icon theme should be used... $ECHO_C" >&6 8223 8224 # Check whether --with-icon-theme or --without-icon-theme was given. 8225 if test "${with_icon_theme+set}" = set; then 8226 withval="$with_icon_theme" 8227 ICON_THEME=$withval 8228 else 8229 ICON_THEME=no 8230 fi; 8231 8232 case "x$ICON_THEME" in 8233 (xno) 8234 ;; 8235 (x|xyes) 8236 ICON_THEME=hicolor 8237 ;; 8238 esac 8239 echo "$as_me:8239: result: $ICON_THEME" >&5 8240 echo "${ECHO_T}$ICON_THEME" >&6 8241 8242 if test "x$ICON_THEME" = xno 8243 then 8244 if test "x$ICONDIR" != xno 8245 then 8246 test -n "$verbose" && echo " ignoring icondir without theme" 1>&6 8247 8248 echo "${as_me:-configure}:8248: testing ignoring icondir without theme ..." 1>&5 8249 8250 no_icondir="#" 8251 fi 8252 else 8253 if test "x$ICONDIR" = xno 8254 then 8255 { { echo "$as_me:8255: error: icondir must be set for icon theme" >&5 8256 echo "$as_me: error: icondir must be set for icon theme" >&2;} 8257 { (exit 1); exit 1; }; } 8258 fi 8259 fi 8260 8261 : ${ICON_FORMAT:=".svg .png .xpm"} 8262 8263 ICON_LIST= 8264 8265 if test "x$ICON_THEME" != xno 8266 then 8267 cf_icon_list="$cf_cv_icon_list" 8268 else 8269 cf_icon_list="icons/${ICON_NAME}_48x48" 8270 fi 8271 8272 echo "$as_me:8272: checking for icon(s) to install" >&5 8273 echo $ECHO_N "checking for icon(s) to install... $ECHO_C" >&6 8274 for cf_name in $cf_icon_list 8275 do 8276 test -n "$verbose" && echo " using $ICON_FORMAT" 1>&6 8277 8278 echo "${as_me:-configure}:8278: testing using $ICON_FORMAT ..." 1>&5 8279 8280 for cf_suffix in $ICON_FORMAT 8281 do 8282 cf_icon="${cf_name}${cf_suffix}" 8283 cf_left=`echo "$cf_icon" | sed -e 's/:.*//'` 8284 if test ! -f "${cf_left}" 8285 then 8286 if test "x$srcdir" != "x." 8287 then 8288 cf_icon="${srcdir}/${cf_left}" 8289 cf_left=`echo "$cf_icon" | sed -e 's/:.*//'` 8290 if test ! -f "${cf_left}" 8291 then 8292 continue 8293 fi 8294 else 8295 continue 8296 fi 8297 fi 8298 if test "x$ICON_THEME" != xno 8299 then 8300 cf_base=`basename "$cf_left"` 8301 cf_trim=`echo "$cf_base" | sed -e 's/_[0-9][0-9]x[0-9][0-9]\././'` 8302 case "x${cf_base}" in 8303 (*:*) 8304 cf_next=$cf_base 8305 # user-defined mapping 8306 ;; 8307 (*.png) 8308 cf_size=`file "$cf_left"|sed -e 's/^[^:]*://' -e 's/^.*[^0-9]\([0-9][0-9]* x [0-9][0-9]*\)[^0-9].*$/\1/' -e 's/ //g'` 8309 if test -z "$cf_size" 8310 then 8311 { echo "$as_me:8311: WARNING: cannot determine size of $cf_left" >&5 8312 echo "$as_me: WARNING: cannot determine size of $cf_left" >&2;} 8313 continue 8314 fi 8315 cf_next="$cf_size/apps/$cf_trim" 8316 ;; 8317 (*.svg) 8318 cf_next="scalable/apps/$cf_trim" 8319 ;; 8320 (*.xpm) 8321 test -n "$verbose" && echo " ignored XPM file in icon theme" 1>&6 8322 8323 echo "${as_me:-configure}:8323: testing ignored XPM file in icon theme ..." 1>&5 8324 8325 continue 8326 ;; 8327 (*_[0-9][0-9]*x[0-9][0-9]*.*) 8328 cf_size=`echo "$cf_left"|sed -e 's/^.*_\([0-9][0-9]*x[0-9][0-9]*\)\..*$/\1/'` 8329 cf_left=`echo "$cf_left"|sed -e 's/^\(.*\)_\([0-9][0-9]*x[0-9][0-9]*\)\(\..*\)$/\1\3/'` 8330 cf_next="$cf_size/apps/$cf_base" 8331 ;; 8332 esac 8333 test -n "$verbose" && echo " adding $cf_next" 1>&6 8334 8335 echo "${as_me:-configure}:8335: testing adding $cf_next ..." 1>&5 8336 8337 cf_icon="${cf_icon}:${cf_next}" 8338 fi 8339 test -n "$ICON_LIST" && ICON_LIST="$ICON_LIST " 8340 ICON_LIST="$ICON_LIST${cf_icon}" 8341 if test -z "$ICON_NAME" 8342 then 8343 ICON_NAME=`basename "$cf_icon" | sed -e 's/[.:].*//'` 8344 fi 8345 done 8346 done 8347 8348 if test -n "$verbose" 8349 then 8350 echo "$as_me:8350: checking result" >&5 8351 echo $ECHO_N "checking result... $ECHO_C" >&6 8352 fi 8353 echo "$as_me:8353: result: $ICON_LIST" >&5 8354 echo "${ECHO_T}$ICON_LIST" >&6 8355 8356 if test -z "$ICON_LIST" 8357 then 8358 { { echo "$as_me:8358: error: no icons found" >&5 8359 echo "$as_me: error: no icons found" >&2;} 8360 { (exit 1); exit 1; }; } 8361 fi 8362 8363 echo "$as_me:8363: checking for icon name" >&5 8364 echo $ECHO_N "checking for icon name... $ECHO_C" >&6 8365 echo "$as_me:8365: result: $ICON_NAME" >&5 8366 echo "${ECHO_T}$ICON_NAME" >&6 8367 8368 # Comment-out the install-desktop rule if the desktop-utils are not found. 8369 echo "$as_me:8369: checking if you want to install desktop files" >&5 8370 echo $ECHO_N "checking if you want to install desktop files... $ECHO_C" >&6 8371 8372 # Check whether --enable-desktop or --disable-desktop was given. 8373 if test "${enable_desktop+set}" = set; then 8374 enableval="$enable_desktop" 8375 test "$enableval" != no && enableval=yes 8376 if test "$enableval" != "yes" ; then 8377 enable_desktop=$enableval 8378 else 8379 enable_desktop=$enableval 8380 fi 8381 else 8382 enableval=yes 8383 enable_desktop=$enableval 8384 8385 fi; 8386 echo "$as_me:8386: result: $enable_desktop" >&5 8387 echo "${ECHO_T}$enable_desktop" >&6 8388 8389 desktop_utils= 8390 if test "$enable_desktop" = yes ; then 8391 # Extract the first word of "desktop-file-install", so it can be a program name with args. 8392 set dummy desktop-file-install; ac_word=$2 8393 echo "$as_me:8393: checking for $ac_word" >&5 8394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8395 if test "${ac_cv_prog_desktop_utils+set}" = set; then 8396 echo $ECHO_N "(cached) $ECHO_C" >&6 8397 else 8398 if test -n "$desktop_utils"; then 8399 ac_cv_prog_desktop_utils="$desktop_utils" # Let the user override the test. 8400 else 8401 ac_save_IFS=$IFS; IFS=$ac_path_separator 8402 ac_dummy="$PATH" 8403 for ac_dir in $ac_dummy; do 8404 IFS=$ac_save_IFS 8405 test -z "$ac_dir" && ac_dir=. 8406 $as_executable_p "$ac_dir/$ac_word" || continue 8407 ac_cv_prog_desktop_utils="yes" 8408 echo "$as_me:8408: found $ac_dir/$ac_word" >&5 8409 break 8410 done 8411 8412 test -z "$ac_cv_prog_desktop_utils" && ac_cv_prog_desktop_utils="no" 8413 fi 8414 fi 8415 desktop_utils=$ac_cv_prog_desktop_utils 8416 if test -n "$desktop_utils"; then 8417 echo "$as_me:8417: result: $desktop_utils" >&5 8418 echo "${ECHO_T}$desktop_utils" >&6 8419 else 8420 echo "$as_me:8420: result: no" >&5 8421 echo "${ECHO_T}no" >&6 8422 fi 8423 8424 fi 8425 8426 test "$desktop_utils" = yes && desktop_utils= || desktop_utils="#" 8427 8428 if test -z "$desktop_utils" 8429 then 8430 echo "$as_me:8430: checking for requested desktop-category" >&5 8431 echo $ECHO_N "checking for requested desktop-category... $ECHO_C" >&6 8432 8433 # Check whether --with-desktop-category or --without-desktop-category was given. 8434 if test "${with_desktop_category+set}" = set; then 8435 withval="$with_desktop_category" 8436 cf_desktop_want=$withval 8437 else 8438 cf_desktop_want=auto 8439 fi; 8440 echo "$as_me:8440: result: $cf_desktop_want" >&5 8441 echo "${ECHO_T}$cf_desktop_want" >&6 8442 8443 if test "$cf_desktop_want" = auto 8444 then 8445 rm -rf conftest* 8446 cf_desktop_also= 8447 for cf_desktop_dir in \ 8448 /usr/share/app-install \ 8449 /usr/share/applications 8450 do 8451 if test -d $cf_desktop_dir 8452 then 8453 find $cf_desktop_dir -name '*.desktop' | \ 8454 while true 8455 do 8456 read cf_desktop_path 8457 test -z "$cf_desktop_path" && break 8458 cf_desktop_name=`basename "$cf_desktop_path" .desktop` 8459 case $cf_desktop_name in 8460 (xterm|*-xterm|*rxvt*|*konsole|*[Tt]erminal) 8461 test -n "$verbose" && echo " inspect $cf_desktop_path" 1>&6 8462 8463 echo "${as_me:-configure}:8463: testing inspect $cf_desktop_path ..." 1>&5 8464 8465 ${EGREP-egrep} '^Categories=' "$cf_desktop_path" | \ 8466 tr ';' '\n' | \ 8467 sed -e 's%^.*=%%' -e '/^$/d' >>conftest.1 8468 ;; 8469 esac 8470 done 8471 fi 8472 done 8473 if test -s conftest.1 8474 then 8475 cf_desktop_last= 8476 sort conftest.1 | \ 8477 while true 8478 do 8479 read cf_desktop_this 8480 test -z "$cf_desktop_this" && break 8481 if test -s conftest.2 8482 then 8483 grep -w "$cf_desktop_this" conftest.2 >/dev/null && continue 8484 elif test -s conftest.3 8485 then 8486 grep -w "$cf_desktop_this" conftest.3 >/dev/null && continue 8487 fi 8488 case "$cf_desktop_this" in 8489 (-*) 8490 ;; 8491 (Qt*|*Xfce*|*[ABCDEFGHIJKLMNOPQRSTUVWXYZ][ABCDEFGHIJKLMNOPQRSTUVWXYZ]*) 8492 test -n "$verbose" && echo " ignored $cf_desktop_this" 1>&6 8493 8494 echo "${as_me:-configure}:8494: testing ignored $cf_desktop_this ..." 1>&5 8495 8496 echo "$cf_desktop_this" >> conftest.3 8497 ;; 8498 (System|TerminalEmulator|*) 8499 test -n "$verbose" && echo " applied $cf_desktop_this" 1>&6 8500 8501 echo "${as_me:-configure}:8501: testing applied $cf_desktop_this ..." 1>&5 8502 8503 test "x$cf_desktop_last" != "x$cf_desktop_this" && echo "$cf_desktop_this" >>conftest.2 8504 ;; 8505 esac 8506 cf_desktop_last=$cf_desktop_this 8507 done 8508 cf_desktop_want="`tr '\n' ';' < conftest.2`" 8509 fi 8510 if test -n "$cf_desktop_want" 8511 then 8512 if test "$cf_desktop_want" = auto 8513 then 8514 cf_desktop_want= 8515 else 8516 # do a sanity check on the semicolon-separated list, ignore on failure 8517 cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/[^;]//g'` 8518 test -z "$cf_desktop_test" && cf_desktop_want= 8519 cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/^.*;$/./g'` 8520 test -z "$cf_desktop_test" && cf_desktop_want= 8521 fi 8522 fi 8523 if test -z "$cf_desktop_want" 8524 then 8525 cf_desktop_want="`echo "System|TerminalEmulator|*" | sed -e 's/\*//g' -e 's/|/;/g' -e 's/;*$/;/g'`" 8526 test -n "$verbose" && echo " no usable value found for desktop category" 1>&6 8527 8528 echo "${as_me:-configure}:8528: testing no usable value found for desktop category ..." 1>&5 8529 8530 fi 8531 fi 8532 DESKTOP_CATEGORY=`echo "$cf_desktop_want" | sed -e 's/[ ,]/;/g'` 8533 test -n "$verbose" && echo " will use Categories=$DESKTOP_CATEGORY" 1>&6 8534 8535 echo "${as_me:-configure}:8535: testing will use Categories=$DESKTOP_CATEGORY ..." 1>&5 8536 8537 fi 8538 8539 echo "$as_me:8539: checking for install-permissions reference" >&5 8540 echo $ECHO_N "checking for install-permissions reference... $ECHO_C" >&6 8541 8542 # Check whether --with-reference or --without-reference was given. 8543 if test "${with_reference+set}" = set; then 8544 withval="$with_reference" 8545 with_reference=$withval 8546 else 8547 with_reference=xterm 8548 fi; 8549 echo "$as_me:8549: result: $with_reference" >&5 8550 echo "${ECHO_T}$with_reference" >&6 8551 8552 with_full_paths=yes 8553 8554 echo "$as_me:8554: checking for PATH separator" >&5 8555 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6 8556 case "$cf_cv_system_name" in 8557 (os2*) PATH_SEPARATOR=';' ;; 8558 (*) ${PATH_SEPARATOR:=':'} ;; 8559 esac 8560 8561 echo "$as_me:8561: result: $PATH_SEPARATOR" >&5 8562 echo "${ECHO_T}$PATH_SEPARATOR" >&6 8563 8564 test -z "$XTERM_PATH" && XTERM_PATH="$with_reference" 8565 for ac_prog in $XTERM_PATH $with_reference 8566 do 8567 # Extract the first word of "$ac_prog", so it can be a program name with args. 8568 set dummy $ac_prog; ac_word=$2 8569 echo "$as_me:8569: checking for $ac_word" >&5 8570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8571 if test "${ac_cv_path_XTERM_PATH+set}" = set; then 8572 echo $ECHO_N "(cached) $ECHO_C" >&6 8573 else 8574 case $XTERM_PATH in 8575 [\\/]* | ?:[\\/]*) 8576 ac_cv_path_XTERM_PATH="$XTERM_PATH" # Let the user override the test with a path. 8577 ;; 8578 *) 8579 ac_save_IFS=$IFS; IFS=$ac_path_separator 8580 ac_dummy="$PATH" 8581 for ac_dir in $ac_dummy; do 8582 IFS=$ac_save_IFS 8583 test -z "$ac_dir" && ac_dir=. 8584 if $as_executable_p "$ac_dir/$ac_word"; then 8585 ac_cv_path_XTERM_PATH="$ac_dir/$ac_word" 8586 echo "$as_me:8586: found $ac_dir/$ac_word" >&5 8587 break 8588 fi 8589 done 8590 8591 ;; 8592 esac 8593 fi 8594 XTERM_PATH=$ac_cv_path_XTERM_PATH 8595 8596 if test -n "$XTERM_PATH"; then 8597 echo "$as_me:8597: result: $XTERM_PATH" >&5 8598 echo "${ECHO_T}$XTERM_PATH" >&6 8599 else 8600 echo "$as_me:8600: result: no" >&5 8601 echo "${ECHO_T}no" >&6 8602 fi 8603 8604 test -n "$XTERM_PATH" && break 8605 done 8606 test -n "$XTERM_PATH" || XTERM_PATH="$XTERM_PATH" 8607 8608 cf_path_prog="" 8609 cf_path_args="" 8610 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" 8611 for cf_temp in $ac_cv_path_XTERM_PATH 8612 do 8613 if test -z "$cf_path_prog" ; then 8614 if test "$with_full_paths" = yes ; then 8615 8616 if test "x$prefix" != xNONE; then 8617 cf_path_syntax="$prefix" 8618 else 8619 cf_path_syntax="$ac_default_prefix" 8620 fi 8621 8622 case "x$cf_temp" in 8623 (x\$\(*\)*|x\'*\'*) 8624 ;; 8625 (x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER) 8626 ;; 8627 (x\$\{*prefix\}*|x\$\{*dir\}*) 8628 eval cf_temp="$cf_temp" 8629 case "x$cf_temp" in 8630 (xNONE/*) 8631 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` 8632 ;; 8633 esac 8634 ;; 8635 (xno|xNONE/*) 8636 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` 8637 ;; 8638 (*) 8639 break 8640 ;; 8641 esac 8642 8643 cf_path_prog="$cf_temp" 8644 else 8645 cf_path_prog="`basename "$cf_temp"`" 8646 fi 8647 elif test -z "$cf_path_args" ; then 8648 cf_path_args="$cf_temp" 8649 else 8650 cf_path_args="$cf_path_args $cf_temp" 8651 fi 8652 done 8653 IFS="$cf_save_ifs" 8654 8655 if test -n "$cf_path_prog" ; then 8656 8657 echo "${as_me:-configure}:8657: testing defining path for ${cf_path_prog} ..." 1>&5 8658 8659 cat >>confdefs.h <<EOF 8660 #define XTERM_PATH_PATH "$cf_path_prog" 8661 EOF 8662 8663 test -n "$cf_path_args" && 8664 cat >>confdefs.h <<EOF 8665 #define XTERM_PATH_ARGS "$cf_path_args" 8666 EOF 8667 8668 fi 8669 8670 # If any of --program-prefix, --program-suffix or --program-transform-name is 8671 # given, accept an option tell the makefile to create a symbolic link, e.g., 8672 # to "xterm" on install. 8673 XTERM_SYMLINK=NONE 8674 8675 if test "$program_transform_name" != "'s,,,'" ; then 8676 cf_name=`echo "$program_transform_name" | sed -e 's,\\$\\$,$,g'` 8677 cf_name=`echo xterm |sed -e "$cf_name"` 8678 echo "$as_me:8678: checking for symbolic link to create to $cf_name" >&5 8679 echo $ECHO_N "checking for symbolic link to create to $cf_name... $ECHO_C" >&6 8680 8681 # Check whether --with-xterm-symlink or --without-xterm-symlink was given. 8682 if test "${with_xterm_symlink+set}" = set; then 8683 withval="$with_xterm_symlink" 8684 with_symlink=$withval 8685 else 8686 with_symlink=xterm 8687 fi; 8688 echo "$as_me:8688: result: $with_symlink" >&5 8689 echo "${ECHO_T}$with_symlink" >&6 8690 test "$with_symlink" = yes && with_symlink=xterm 8691 test -n "$with_symlink" && \ 8692 test "$with_symlink" != no && \ 8693 test "$with_symlink" != "$cf_name" && \ 8694 XTERM_SYMLINK="$with_symlink" 8695 fi 8696 8697 echo "$as_me:8697: checking if you want to disable openpty" >&5 8698 echo $ECHO_N "checking if you want to disable openpty... $ECHO_C" >&6 8699 8700 # Check whether --enable-openpty or --disable-openpty was given. 8701 if test "${enable_openpty+set}" = set; then 8702 enableval="$enable_openpty" 8703 test "$enableval" != no && enableval=yes 8704 if test "$enableval" != "yes" ; then 8705 disable_openpty=yes 8706 else 8707 disable_openpty=no 8708 fi 8709 else 8710 enableval=yes 8711 disable_openpty=no 8712 8713 fi; 8714 echo "$as_me:8714: result: $disable_openpty" >&5 8715 echo "${ECHO_T}$disable_openpty" >&6 8716 8717 echo "$as_me:8717: checking if you want to disable setuid" >&5 8718 echo $ECHO_N "checking if you want to disable setuid... $ECHO_C" >&6 8719 8720 # Check whether --enable-setuid or --disable-setuid was given. 8721 if test "${enable_setuid+set}" = set; then 8722 enableval="$enable_setuid" 8723 test "$enableval" != no && enableval=yes 8724 if test "$enableval" != "yes" ; then 8725 disable_setuid=yes 8726 else 8727 disable_setuid=no 8728 fi 8729 else 8730 enableval=yes 8731 disable_setuid=no 8732 8733 fi; 8734 echo "$as_me:8734: result: $disable_setuid" >&5 8735 echo "${ECHO_T}$disable_setuid" >&6 8736 8737 echo "$as_me:8737: checking if you want to disable setgid" >&5 8738 echo $ECHO_N "checking if you want to disable setgid... $ECHO_C" >&6 8739 8740 # Check whether --enable-setgid or --disable-setgid was given. 8741 if test "${enable_setgid+set}" = set; then 8742 enableval="$enable_setgid" 8743 test "$enableval" != no && enableval=yes 8744 if test "$enableval" != "yes" ; then 8745 disable_setgid=yes 8746 else 8747 disable_setgid=no 8748 fi 8749 else 8750 enableval=yes 8751 disable_setgid=no 8752 8753 fi; 8754 echo "$as_me:8754: result: $disable_setgid" >&5 8755 echo "${ECHO_T}$disable_setgid" >&6 8756 8757 echo "$as_me:8757: checking if you want to run xterm setuid to a given user" >&5 8758 echo $ECHO_N "checking if you want to run xterm setuid to a given user... $ECHO_C" >&6 8759 8760 # Check whether --with-setuid or --without-setuid was given. 8761 if test "${with_setuid+set}" = set; then 8762 withval="$with_setuid" 8763 use_given_setuid=$withval 8764 else 8765 use_given_setuid=no 8766 fi; 8767 echo "$as_me:8767: result: $use_given_setuid" >&5 8768 echo "${ECHO_T}$use_given_setuid" >&6 8769 8770 if test "$use_given_setuid" != no ; then 8771 if test "$use_given_setuid" = yes ; then 8772 cf_cv_given_setuid=root 8773 else 8774 cf_cv_given_setuid=$use_given_setuid 8775 fi 8776 # inherit SINSTALL_OPTS from environment to allow packager to customize it. 8777 SINSTALL_OPTS="$SINSTALL_OPTS u+s -u $cf_cv_given_setuid" 8778 fi 8779 8780 echo "$as_me:8780: checking if you want to run xterm setgid to match utmp/utmpx file" >&5 8781 echo $ECHO_N "checking if you want to run xterm setgid to match utmp/utmpx file... $ECHO_C" >&6 8782 8783 # Check whether --with-utmp-setgid or --without-utmp-setgid was given. 8784 if test "${with_utmp_setgid+set}" = set; then 8785 withval="$with_utmp_setgid" 8786 use_utmp_setgid=$withval 8787 else 8788 use_utmp_setgid=no 8789 fi; 8790 echo "$as_me:8790: result: $use_utmp_setgid" >&5 8791 echo "${ECHO_T}$use_utmp_setgid" >&6 8792 8793 if test "$use_utmp_setgid" != no ; then 8794 if test "$use_utmp_setgid" = yes ; then 8795 8796 if test $cf_cv_have_utmp != no ; then 8797 echo "$as_me:8797: checking for utmp/utmpx group" >&5 8798 echo $ECHO_N "checking for utmp/utmpx group... $ECHO_C" >&6 8799 if test "${cf_cv_utmp_group+set}" = set; then 8800 echo $ECHO_N "(cached) $ECHO_C" >&6 8801 else 8802 8803 for cf_utmp_path in /var/adm /var/run 8804 do 8805 for cf_utmp_file in utmpx utmp 8806 do 8807 if test -f $cf_utmp_path/$cf_utmp_file 8808 then 8809 cf_cv_utmp_group=root 8810 8811 cf_option="-lL" 8812 8813 # Expect listing to have fields like this: 8814 #-r--r--r-- 1 user group 34293 Jul 18 16:29 pathname 8815 ls "$cf_option" "$cf_utmp_path/$cf_utmp_file" >conftest 8816 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest 8817 if test -z "$cf_rest" ; then 8818 cf_option="${cf_option}g" 8819 ls "$cf_option" "$cf_utmp_path/$cf_utmp_file" >conftest 8820 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest 8821 fi 8822 rm -f conftest 8823 8824 # If we have a pathname, and the date fields look right, assume we've 8825 # captured the group as well. 8826 if test -n "$cf_rest" ; then 8827 cf_test=`echo "${cf_date2}${cf_date3}" | sed -e 's/[0-9:]//g'` 8828 if test -z "$cf_test" ; then 8829 cf_cv_utmp_group=$cf_grp; 8830 fi 8831 fi 8832 break 8833 fi 8834 done 8835 test -n "$cf_cv_utmp_group" && break 8836 done 8837 8838 fi 8839 echo "$as_me:8839: result: $cf_cv_utmp_group" >&5 8840 echo "${ECHO_T}$cf_cv_utmp_group" >&6 8841 else 8842 { { echo "$as_me:8842: error: cannot find utmp group" >&5 8843 echo "$as_me: error: cannot find utmp group" >&2;} 8844 { (exit 1); exit 1; }; } 8845 fi 8846 8847 else 8848 cf_cv_utmp_group=$use_utmp_setgid 8849 fi 8850 if test "$cf_cv_posix_saved_ids" != yes ; then 8851 { { echo "$as_me:8851: error: Your system does not support POSIX saved-ids" >&5 8852 echo "$as_me: error: Your system does not support POSIX saved-ids" >&2;} 8853 { (exit 1); exit 1; }; } 8854 fi 8855 8856 cat >>confdefs.h <<\EOF 8857 #define USE_UTMP_SETGID 1 8858 EOF 8859 8860 SINSTALL_OPTS="$SINSTALL_OPTS g+s -g $cf_cv_utmp_group" 8861 fi 8862 8863 echo "$as_me:8863: checking if you want to link with utempter" >&5 8864 echo $ECHO_N "checking if you want to link with utempter... $ECHO_C" >&6 8865 8866 # Check whether --with-utempter or --without-utempter was given. 8867 if test "${with_utempter+set}" = set; then 8868 withval="$with_utempter" 8869 use_utempter=$withval 8870 else 8871 use_utempter=no 8872 fi; 8873 echo "$as_me:8873: result: $use_utempter" >&5 8874 echo "${ECHO_T}$use_utempter" >&6 8875 8876 if test "$use_utempter" = yes ; then 8877 8878 echo "$as_me:8878: checking if we can link with utempter library" >&5 8879 echo $ECHO_N "checking if we can link with utempter library... $ECHO_C" >&6 8880 if test "${cf_cv_have_utempter+set}" = set; then 8881 echo $ECHO_N "(cached) $ECHO_C" >&6 8882 else 8883 8884 cf_save_LIBS="$LIBS" 8885 8886 cf_add_libs="$LIBS" 8887 # reverse order 8888 cf_add_0lib= 8889 for cf_add_1lib in -lutempter; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 8890 # filter duplicates 8891 for cf_add_1lib in $cf_add_0lib; do 8892 for cf_add_2lib in $cf_add_libs; do 8893 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 8894 cf_add_1lib= 8895 break 8896 fi 8897 done 8898 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 8899 done 8900 LIBS="$cf_add_libs" 8901 8902 cat >"conftest.$ac_ext" <<_ACEOF 8903 #line 8903 "configure" 8904 #include "confdefs.h" 8905 8906 #include <utempter.h> 8907 8908 int 8909 main (void) 8910 { 8911 8912 addToUtmp("/dev/tty", 0, 1); 8913 removeFromUtmp(); 8914 8915 ; 8916 return 0; 8917 } 8918 _ACEOF 8919 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 8920 if { (eval echo "$as_me:8920: \"$ac_link\"") >&5 8921 (eval $ac_link) 2>&5 8922 ac_status=$? 8923 echo "$as_me:8923: \$? = $ac_status" >&5 8924 (exit "$ac_status"); } && 8925 { ac_try='test -s "conftest$ac_exeext"' 8926 { (eval echo "$as_me:8926: \"$ac_try\"") >&5 8927 (eval $ac_try) 2>&5 8928 ac_status=$? 8929 echo "$as_me:8929: \$? = $ac_status" >&5 8930 (exit "$ac_status"); }; }; then 8931 8932 cf_cv_have_utempter=yes 8933 else 8934 echo "$as_me: failed program was:" >&5 8935 cat "conftest.$ac_ext" >&5 8936 8937 cf_cv_have_utempter=no 8938 fi 8939 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 8940 LIBS="$cf_save_LIBS" 8941 8942 fi 8943 echo "$as_me:8943: result: $cf_cv_have_utempter" >&5 8944 echo "${ECHO_T}$cf_cv_have_utempter" >&6 8945 if test "$cf_cv_have_utempter" = yes ; then 8946 8947 cat >>confdefs.h <<\EOF 8948 #define USE_UTEMPTER 1 8949 EOF 8950 8951 cf_add_libs="$LIBS" 8952 # reverse order 8953 cf_add_0lib= 8954 for cf_add_1lib in -lutempter; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 8955 # filter duplicates 8956 for cf_add_1lib in $cf_add_0lib; do 8957 for cf_add_2lib in $cf_add_libs; do 8958 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 8959 cf_add_1lib= 8960 break 8961 fi 8962 done 8963 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 8964 done 8965 LIBS="$cf_add_libs" 8966 8967 fi 8968 8969 test "$cf_cv_have_utempter" != yes && use_utempter=no 8970 else 8971 use_utempter=no 8972 fi 8973 8974 # Some configurations permit (or require) either setuid or setgid mode. 8975 # Let the user decide. 8976 if test "$use_utempter" = yes ; then 8977 if test "${enable_setuid+set}" != set ; then 8978 disable_setuid=yes 8979 test -n "$verbose" && echo " No --disable-setuid option given, force to yes" 1>&6 8980 8981 echo "${as_me:-configure}:8981: testing No --disable-setuid option given, force to yes ..." 1>&5 8982 8983 fi 8984 fi 8985 8986 # We use these for the manpage: 8987 8988 # Check whether --with-utmp-path or --without-utmp-path was given. 8989 if test "${with_utmp_path+set}" = set; then 8990 withval="$with_utmp_path" 8991 cf_utmp_path=$withval 8992 else 8993 cf_utmp_path=auto 8994 fi; 8995 if test "$cf_utmp_path" = auto ; then 8996 for cf_utmp_path in /etc/utmp /var/adm/utmp /var/log/utmp /var/run/utmp 8997 do 8998 if test -f ${cf_utmp_path}x ; then 8999 cf_utmp_path=${cf_utmp_path}x 9000 break 9001 elif test -f $cf_utmp_path ; then 9002 break 9003 fi 9004 done 9005 else 9006 9007 if test "x$prefix" != xNONE; then 9008 cf_path_syntax="$prefix" 9009 else 9010 cf_path_syntax="$ac_default_prefix" 9011 fi 9012 9013 case "x$cf_utmp_path" in 9014 (x\$\(*\)*|x\'*\'*) 9015 ;; 9016 (x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER) 9017 ;; 9018 (x\$\{*prefix\}*|x\$\{*dir\}*) 9019 eval cf_utmp_path="$cf_utmp_path" 9020 case "x$cf_utmp_path" in 9021 (xNONE/*) 9022 cf_utmp_path=`echo "$cf_utmp_path" | sed -e s%NONE%$cf_path_syntax%` 9023 ;; 9024 esac 9025 ;; 9026 (xno|xNONE/*) 9027 cf_utmp_path=`echo "$cf_utmp_path" | sed -e s%NONE%$cf_path_syntax%` 9028 ;; 9029 (*) 9030 { { echo "$as_me:9030: error: expected a pathname, not \"$cf_utmp_path\"" >&5 9031 echo "$as_me: error: expected a pathname, not \"$cf_utmp_path\"" >&2;} 9032 { (exit 1); exit 1; }; } 9033 ;; 9034 esac 9035 9036 fi 9037 UTMP_PATH=$cf_utmp_path 9038 UTMP_NAME=`echo "$cf_utmp_path" | sed -e 's,^.*/,,'` 9039 9040 # Check whether --with-wtmp-path or --without-wtmp-path was given. 9041 if test "${with_wtmp_path+set}" = set; then 9042 withval="$with_wtmp_path" 9043 cf_wtmp_path=$withval 9044 else 9045 cf_wtmp_path=auto 9046 fi; 9047 if test "$cf_wtmp_path" = auto ; then 9048 for cf_wtmp_path in /etc/wtmp /var/adm/wtmp /var/run/wtmp /var/log/wtmp 9049 do 9050 if test -f ${cf_wtmp_path}x ; then 9051 cf_wtmp_path=${cf_wtmp_path}x 9052 break 9053 elif test -f $cf_wtmp_path/wtmp ; then 9054 break 9055 fi 9056 done 9057 else 9058 9059 if test "x$prefix" != xNONE; then 9060 cf_path_syntax="$prefix" 9061 else 9062 cf_path_syntax="$ac_default_prefix" 9063 fi 9064 9065 case "x$cf_wtmp_path" in 9066 (x\$\(*\)*|x\'*\'*) 9067 ;; 9068 (x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER) 9069 ;; 9070 (x\$\{*prefix\}*|x\$\{*dir\}*) 9071 eval cf_wtmp_path="$cf_wtmp_path" 9072 case "x$cf_wtmp_path" in 9073 (xNONE/*) 9074 cf_wtmp_path=`echo "$cf_wtmp_path" | sed -e s%NONE%$cf_path_syntax%` 9075 ;; 9076 esac 9077 ;; 9078 (xno|xNONE/*) 9079 cf_wtmp_path=`echo "$cf_wtmp_path" | sed -e s%NONE%$cf_path_syntax%` 9080 ;; 9081 (*) 9082 { { echo "$as_me:9082: error: expected a pathname, not \"$cf_wtmp_path\"" >&5 9083 echo "$as_me: error: expected a pathname, not \"$cf_wtmp_path\"" >&2;} 9084 { (exit 1); exit 1; }; } 9085 ;; 9086 esac 9087 9088 fi 9089 WTMP_PATH=$cf_wtmp_path 9090 WTMP_NAME=`echo "$cf_wtmp_path" | sed -e 's,^.*/,,'` 9091 9092 ### checks for external data 9093 9094 echo "$as_me:9094: checking if external errno is declared" >&5 9095 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6 9096 if test "${cf_cv_dcl_errno+set}" = set; then 9097 echo $ECHO_N "(cached) $ECHO_C" >&6 9098 else 9099 9100 cat >"conftest.$ac_ext" <<_ACEOF 9101 #line 9101 "configure" 9102 #include "confdefs.h" 9103 9104 $ac_includes_default 9105 #include <errno.h> 9106 int 9107 main (void) 9108 { 9109 int x = (int) errno; (void)x 9110 ; 9111 return 0; 9112 } 9113 _ACEOF 9114 rm -f "conftest.$ac_objext" 9115 if { (eval echo "$as_me:9115: \"$ac_compile\"") >&5 9116 (eval $ac_compile) 2>&5 9117 ac_status=$? 9118 echo "$as_me:9118: \$? = $ac_status" >&5 9119 (exit "$ac_status"); } && 9120 { ac_try='test -s "conftest.$ac_objext"' 9121 { (eval echo "$as_me:9121: \"$ac_try\"") >&5 9122 (eval $ac_try) 2>&5 9123 ac_status=$? 9124 echo "$as_me:9124: \$? = $ac_status" >&5 9125 (exit "$ac_status"); }; }; then 9126 cf_cv_dcl_errno=yes 9127 else 9128 echo "$as_me: failed program was:" >&5 9129 cat "conftest.$ac_ext" >&5 9130 cf_cv_dcl_errno=no 9131 fi 9132 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 9133 9134 fi 9135 echo "$as_me:9135: result: $cf_cv_dcl_errno" >&5 9136 echo "${ECHO_T}$cf_cv_dcl_errno" >&6 9137 9138 if test "$cf_cv_dcl_errno" = no ; then 9139 9140 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 9141 9142 cat >>confdefs.h <<EOF 9143 #define $cf_result 1 9144 EOF 9145 9146 fi 9147 9148 # It's possible (for near-UNIX clones) that the data doesn't exist 9149 9150 echo "$as_me:9150: checking if external errno exists" >&5 9151 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6 9152 if test "${cf_cv_have_errno+set}" = set; then 9153 echo $ECHO_N "(cached) $ECHO_C" >&6 9154 else 9155 9156 cat >"conftest.$ac_ext" <<_ACEOF 9157 #line 9157 "configure" 9158 #include "confdefs.h" 9159 9160 #undef errno 9161 extern int errno; 9162 9163 int 9164 main (void) 9165 { 9166 errno = 2 9167 ; 9168 return 0; 9169 } 9170 _ACEOF 9171 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9172 if { (eval echo "$as_me:9172: \"$ac_link\"") >&5 9173 (eval $ac_link) 2>&5 9174 ac_status=$? 9175 echo "$as_me:9175: \$? = $ac_status" >&5 9176 (exit "$ac_status"); } && 9177 { ac_try='test -s "conftest$ac_exeext"' 9178 { (eval echo "$as_me:9178: \"$ac_try\"") >&5 9179 (eval $ac_try) 2>&5 9180 ac_status=$? 9181 echo "$as_me:9181: \$? = $ac_status" >&5 9182 (exit "$ac_status"); }; }; then 9183 cf_cv_have_errno=yes 9184 else 9185 echo "$as_me: failed program was:" >&5 9186 cat "conftest.$ac_ext" >&5 9187 cf_cv_have_errno=no 9188 fi 9189 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9190 9191 fi 9192 echo "$as_me:9192: result: $cf_cv_have_errno" >&5 9193 echo "${ECHO_T}$cf_cv_have_errno" >&6 9194 9195 if test "$cf_cv_have_errno" = yes ; then 9196 9197 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 9198 9199 cat >>confdefs.h <<EOF 9200 #define $cf_result 1 9201 EOF 9202 9203 fi 9204 9205 echo "$as_me:9205: checking for explicit tty group name" >&5 9206 echo $ECHO_N "checking for explicit tty group name... $ECHO_C" >&6 9207 9208 # Check whether --with-tty-group or --without-tty-group was given. 9209 if test "${with_tty_group+set}" = set; then 9210 withval="$with_tty_group" 9211 cf_tty_group=$withval 9212 else 9213 cf_tty_group=auto... 9214 fi; 9215 test -z "$cf_tty_group" && cf_tty_group=auto... 9216 test "$cf_tty_group" = yes && cf_tty_group=auto... 9217 echo "$as_me:9217: result: $cf_tty_group" >&5 9218 echo "${ECHO_T}$cf_tty_group" >&6 9219 9220 if test "$cf_tty_group" = "auto..." ; then 9221 echo "$as_me:9221: checking for tty group name" >&5 9222 echo $ECHO_N "checking for tty group name... $ECHO_C" >&6 9223 if test "${cf_cv_tty_group_name+set}" = set; then 9224 echo $ECHO_N "(cached) $ECHO_C" >&6 9225 else 9226 9227 # If we are configuring as root, it is hard to get a clue about the tty group. 9228 # But we'll guess based on how our connection is set up - assuming it is done 9229 # properly. 9230 9231 cf_uid="`id | sed -e 's/^^=*=//' -e 's/(.*$//'`" 9232 # )vi 9233 if test "$cf_uid" != 0 ; then 9234 cf_cv_tty_group_name= 9235 cf_tty_name="`tty`" 9236 test "$cf_tty_name" = "not a tty" && cf_tty_name=/dev/tty 9237 test -z "$cf_tty_name" && cf_tty_name=/dev/tty 9238 if test -c "$cf_tty_name" 9239 then 9240 cf_option="-lL" 9241 9242 # Expect listing to have fields like this: 9243 #-rwxrwxrwx 1 user group 34293 Jul 18 16:29 pathname 9244 ls $cf_option "$cf_tty_name" >conftest.out 9245 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out 9246 if test -z "$cf_rest" ; then 9247 cf_option="${cf_option}g" 9248 ls "$cf_option" "$cf_tty_name" >conftest.out 9249 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out 9250 fi 9251 rm -f conftest.out 9252 cf_cv_tty_group_name=$cf_grp 9253 fi 9254 fi 9255 9256 # If we cannot deduce the tty group, fall back on hardcoded cases 9257 9258 if test -z "$cf_cv_tty_group_name" 9259 then 9260 case $host_os in 9261 (osf*) 9262 cf_cv_tty_group_name="terminal" 9263 ;; 9264 (*) 9265 cf_cv_tty_group_name="unknown" 9266 if ( ${EGREP-egrep} '^tty:' /etc/group 2>/dev/null 1>/dev/null ) then 9267 cf_cv_tty_group_name="tty" 9268 fi 9269 ;; 9270 esac 9271 fi 9272 9273 fi 9274 echo "$as_me:9274: result: $cf_cv_tty_group_name" >&5 9275 echo "${ECHO_T}$cf_cv_tty_group_name" >&6 9276 cf_tty_group="$cf_cv_tty_group_name" 9277 else 9278 # if configure option, always do this 9279 9280 cat >>confdefs.h <<\EOF 9281 #define USE_TTY_GROUP 1 9282 EOF 9283 9284 fi 9285 9286 cat >>confdefs.h <<EOF 9287 #define TTY_GROUP_NAME "$cf_tty_group" 9288 EOF 9289 9290 # This is only a double-check that the group-name we obtained above really 9291 # does apply to the device. We cannot perform this test if we are in batch 9292 # mode, or if we are cross-compiling. 9293 9294 echo "$as_me:9294: checking if we may use the $cf_tty_group group" >&5 9295 echo $ECHO_N "checking if we may use the $cf_tty_group group... $ECHO_C" >&6 9296 if test "${cf_cv_tty_group+set}" = set; then 9297 echo $ECHO_N "(cached) $ECHO_C" >&6 9298 else 9299 9300 cf_tty_name="`tty`" 9301 if test "$cf_tty_name" != "not a tty" 9302 then 9303 if test "$cross_compiling" = yes; then 9304 cf_cv_tty_group=unknown 9305 else 9306 cat >"conftest.$ac_ext" <<_ACEOF 9307 #line 9307 "configure" 9308 #include "confdefs.h" 9309 9310 $ac_includes_default 9311 9312 #include <grp.h> 9313 9314 int main(void) 9315 { 9316 static char default_tty[] = "/dev/tty"; 9317 struct stat sb; 9318 struct group *ttygrp; 9319 int fd; 9320 char *name; 9321 9322 for (fd = 0; fd < 3; ++fd) { 9323 if ((name = ttyname(fd)) != 0) 9324 break; 9325 } 9326 if (name == 0) 9327 name = default_tty; 9328 9329 ttygrp = getgrnam(TTY_GROUP_NAME); 9330 endgrent(); 9331 9332 if (ttygrp != 0 9333 && name != 0 9334 && stat(name, &sb) == 0 9335 && sb.st_gid != getgid() 9336 && sb.st_gid == ttygrp->gr_gid) { 9337 ${cf_cv_main_return:-return} (0); 9338 } 9339 ${cf_cv_main_return:-return} (1); 9340 } 9341 9342 _ACEOF 9343 rm -f "conftest$ac_exeext" 9344 if { (eval echo "$as_me:9344: \"$ac_link\"") >&5 9345 (eval $ac_link) 2>&5 9346 ac_status=$? 9347 echo "$as_me:9347: \$? = $ac_status" >&5 9348 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 9349 { (eval echo "$as_me:9349: \"$ac_try\"") >&5 9350 (eval $ac_try) 2>&5 9351 ac_status=$? 9352 echo "$as_me:9352: \$? = $ac_status" >&5 9353 (exit "$ac_status"); }; }; then 9354 cf_cv_tty_group=yes 9355 else 9356 echo "$as_me: program exited with status $ac_status" >&5 9357 echo "$as_me: failed program was:" >&5 9358 cat "conftest.$ac_ext" >&5 9359 cf_cv_tty_group=no 9360 fi 9361 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 9362 fi 9363 elif test "$cross_compiling" = yes; then 9364 cf_cv_tty_group=unknown 9365 else 9366 cf_cv_tty_group=yes 9367 fi 9368 9369 fi 9370 echo "$as_me:9370: result: $cf_cv_tty_group" >&5 9371 echo "${ECHO_T}$cf_cv_tty_group" >&6 9372 9373 if test $cf_cv_tty_group = no ; then 9374 { echo "$as_me:9374: WARNING: Cannot use $cf_tty_group group" >&5 9375 echo "$as_me: WARNING: Cannot use $cf_tty_group group" >&2;} 9376 else 9377 cat >>confdefs.h <<\EOF 9378 #define USE_TTY_GROUP 1 9379 EOF 9380 9381 fi 9382 9383 ### checks for system services and user specified options 9384 9385 echo "$as_me:9385: checking for X" >&5 9386 echo $ECHO_N "checking for X... $ECHO_C" >&6 9387 9388 # Check whether --with-x or --without-x was given. 9389 if test "${with_x+set}" = set; then 9390 withval="$with_x" 9391 9392 fi; 9393 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 9394 if test "x$with_x" = xno; then 9395 # The user explicitly disabled X. 9396 have_x=disabled 9397 else 9398 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 9399 # Both variables are already set. 9400 have_x=yes 9401 else 9402 if test "${ac_cv_have_x+set}" = set; then 9403 echo $ECHO_N "(cached) $ECHO_C" >&6 9404 else 9405 # One or both of the vars are not set, and there is no cached value. 9406 ac_x_includes=no ac_x_libraries=no 9407 rm -fr conftest.dir 9408 if mkdir conftest.dir; then 9409 cd conftest.dir 9410 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 9411 cat >Imakefile <<'EOF' 9412 acfindx: 9413 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 9414 EOF 9415 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 9416 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 9417 eval "`${MAKE-make} acfindx 2>/dev/null | grep -v make`" 9418 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 9419 for ac_extension in a so sl dylib dll; do 9420 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 9421 test -f "$ac_im_libdir/libX11.$ac_extension"; then 9422 ac_im_usrlibdir=$ac_im_libdir; break 9423 fi 9424 done 9425 # Screen out bogus values from the imake configuration. They are 9426 # bogus both because they are the default anyway, and because 9427 # using them would break gcc on systems where it needs fixed includes. 9428 case $ac_im_incroot in 9429 /usr/include) ;; 9430 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 9431 esac 9432 case $ac_im_usrlibdir in 9433 /usr/lib | /lib) ;; 9434 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 9435 esac 9436 fi 9437 cd .. 9438 rm -fr conftest.dir 9439 fi 9440 9441 # Standard set of common directories for X headers. 9442 # Check X11 before X11Rn because it is often a symlink to the current release. 9443 ac_x_header_dirs=' 9444 /usr/X11/include 9445 /usr/X11R7/include 9446 /usr/X11R6/include 9447 /usr/X11R5/include 9448 /usr/X11R4/include 9449 9450 /opt/local/include 9451 /opt/X11/include 9452 9453 /usr/include/X11 9454 /usr/include/X11R7 9455 /usr/include/X11R6 9456 /usr/include/X11R5 9457 /usr/include/X11R4 9458 9459 /usr/local/X11/include 9460 /usr/local/X11R7/include 9461 /usr/local/X11R6/include 9462 /usr/local/X11R5/include 9463 /usr/local/X11R4/include 9464 9465 /usr/local/include/X11 9466 /usr/local/include/X11R7 9467 /usr/local/include/X11R6 9468 /usr/local/include/X11R5 9469 /usr/local/include/X11R4 9470 9471 /usr/X386/include 9472 /usr/x386/include 9473 /usr/XFree86/include/X11 9474 9475 /usr/include 9476 /usr/local/include 9477 /usr/unsupported/include 9478 /usr/athena/include 9479 /usr/local/x11r5/include 9480 /usr/lpp/Xamples/include 9481 9482 /usr/openwin/include 9483 /usr/openwin/share/include' 9484 9485 if test "$ac_x_includes" = no; then 9486 # Guess where to find include files, by looking for Intrinsic.h. 9487 # First, try using that file with no special directory specified. 9488 cat >"conftest.$ac_ext" <<_ACEOF 9489 #line 9489 "configure" 9490 #include "confdefs.h" 9491 #include <X11/Intrinsic.h> 9492 _ACEOF 9493 if { (eval echo "$as_me:9493: \"$ac_cpp "conftest.$ac_ext"\"") >&5 9494 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 9495 ac_status=$? 9496 $EGREP -v '^ *\+' conftest.er1 >conftest.err 9497 rm -f conftest.er1 9498 cat conftest.err >&5 9499 echo "$as_me:9499: \$? = $ac_status" >&5 9500 (exit "$ac_status"); } >/dev/null; then 9501 if test -s conftest.err; then 9502 ac_cpp_err=$ac_c_preproc_warn_flag 9503 else 9504 ac_cpp_err= 9505 fi 9506 else 9507 ac_cpp_err=yes 9508 fi 9509 if test -z "$ac_cpp_err"; then 9510 # We can compile using X headers with no special include directory. 9511 ac_x_includes= 9512 else 9513 echo "$as_me: failed program was:" >&5 9514 cat "conftest.$ac_ext" >&5 9515 for ac_dir in $ac_x_header_dirs; do 9516 if test -r "$ac_dir/X11/Intrinsic.h"; then 9517 ac_x_includes=$ac_dir 9518 break 9519 fi 9520 done 9521 fi 9522 rm -f conftest.err "conftest.$ac_ext" 9523 fi # $ac_x_includes = no 9524 9525 if test "$ac_x_libraries" = no; then 9526 # Check for the libraries. 9527 # See if we find them without any special options. 9528 # Don't add to $LIBS permanently. 9529 ac_save_LIBS=$LIBS 9530 LIBS="-lXt $LIBS" 9531 cat >"conftest.$ac_ext" <<_ACEOF 9532 #line 9532 "configure" 9533 #include "confdefs.h" 9534 #include <X11/Intrinsic.h> 9535 int 9536 main (void) 9537 { 9538 XtMalloc (0) 9539 ; 9540 return 0; 9541 } 9542 _ACEOF 9543 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9544 if { (eval echo "$as_me:9544: \"$ac_link\"") >&5 9545 (eval $ac_link) 2>&5 9546 ac_status=$? 9547 echo "$as_me:9547: \$? = $ac_status" >&5 9548 (exit "$ac_status"); } && 9549 { ac_try='test -s "conftest$ac_exeext"' 9550 { (eval echo "$as_me:9550: \"$ac_try\"") >&5 9551 (eval $ac_try) 2>&5 9552 ac_status=$? 9553 echo "$as_me:9553: \$? = $ac_status" >&5 9554 (exit "$ac_status"); }; }; then 9555 LIBS=$ac_save_LIBS 9556 # We can link X programs with no special library path. 9557 ac_x_libraries= 9558 else 9559 echo "$as_me: failed program was:" >&5 9560 cat "conftest.$ac_ext" >&5 9561 LIBS=$ac_save_LIBS 9562 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 9563 do 9564 # Don't even attempt the hair of trying to link an X program! 9565 for ac_extension in a so sl dylib dll; do 9566 if test -r "$ac_dir/libXt.$ac_extension"; then 9567 ac_x_libraries=$ac_dir 9568 break 2 9569 fi 9570 done 9571 done 9572 fi 9573 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9574 fi # $ac_x_libraries = no 9575 9576 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 9577 # Didn't find X anywhere. Cache the known absence of X. 9578 ac_cv_have_x="have_x=no" 9579 else 9580 # Record where we found X for the cache. 9581 ac_cv_have_x="have_x=yes \ 9582 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 9583 fi 9584 fi 9585 9586 fi 9587 eval "$ac_cv_have_x" 9588 fi # $with_x != no 9589 9590 if test "$have_x" != yes; then 9591 echo "$as_me:9591: result: $have_x" >&5 9592 echo "${ECHO_T}$have_x" >&6 9593 no_x=yes 9594 else 9595 # If each of the values was on the command line, it overrides each guess. 9596 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 9597 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 9598 # Update the cache value to reflect the command line values. 9599 ac_cv_have_x="have_x=yes \ 9600 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 9601 echo "$as_me:9601: result: libraries $x_libraries, headers $x_includes" >&5 9602 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 9603 fi 9604 9605 if test "$no_x" = yes; then 9606 # Not all programs may use this symbol, but it does not hurt to define it. 9607 9608 cat >>confdefs.h <<\EOF 9609 #define X_DISPLAY_MISSING 1 9610 EOF 9611 9612 X_CFLAGS= 9613 X_PRE_LIBS= 9614 X_LIBS= 9615 X_EXTRA_LIBS= 9616 else 9617 if test -n "$x_includes"; then 9618 X_CFLAGS="$X_CFLAGS -I$x_includes" 9619 fi 9620 9621 # It would also be nice to do this for all -L options, not just this one. 9622 if test -n "$x_libraries"; then 9623 X_LIBS="$X_LIBS -L$x_libraries" 9624 # For Solaris; some versions of Sun CC require a space after -R and 9625 # others require no space. Words are not sufficient . . . . 9626 case `(uname -sr) 2>/dev/null` in 9627 "SunOS 5"*) 9628 echo "$as_me:9628: checking whether -R must be followed by a space" >&5 9629 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 9630 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 9631 cat >"conftest.$ac_ext" <<_ACEOF 9632 #line 9632 "configure" 9633 #include "confdefs.h" 9634 9635 int 9636 main (void) 9637 { 9638 9639 ; 9640 return 0; 9641 } 9642 _ACEOF 9643 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9644 if { (eval echo "$as_me:9644: \"$ac_link\"") >&5 9645 (eval $ac_link) 2>&5 9646 ac_status=$? 9647 echo "$as_me:9647: \$? = $ac_status" >&5 9648 (exit "$ac_status"); } && 9649 { ac_try='test -s "conftest$ac_exeext"' 9650 { (eval echo "$as_me:9650: \"$ac_try\"") >&5 9651 (eval $ac_try) 2>&5 9652 ac_status=$? 9653 echo "$as_me:9653: \$? = $ac_status" >&5 9654 (exit "$ac_status"); }; }; then 9655 ac_R_nospace=yes 9656 else 9657 echo "$as_me: failed program was:" >&5 9658 cat "conftest.$ac_ext" >&5 9659 ac_R_nospace=no 9660 fi 9661 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9662 if test $ac_R_nospace = yes; then 9663 echo "$as_me:9663: result: no" >&5 9664 echo "${ECHO_T}no" >&6 9665 X_LIBS="$X_LIBS -R$x_libraries" 9666 else 9667 LIBS="$ac_xsave_LIBS -R $x_libraries" 9668 cat >"conftest.$ac_ext" <<_ACEOF 9669 #line 9669 "configure" 9670 #include "confdefs.h" 9671 9672 int 9673 main (void) 9674 { 9675 9676 ; 9677 return 0; 9678 } 9679 _ACEOF 9680 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9681 if { (eval echo "$as_me:9681: \"$ac_link\"") >&5 9682 (eval $ac_link) 2>&5 9683 ac_status=$? 9684 echo "$as_me:9684: \$? = $ac_status" >&5 9685 (exit "$ac_status"); } && 9686 { ac_try='test -s "conftest$ac_exeext"' 9687 { (eval echo "$as_me:9687: \"$ac_try\"") >&5 9688 (eval $ac_try) 2>&5 9689 ac_status=$? 9690 echo "$as_me:9690: \$? = $ac_status" >&5 9691 (exit "$ac_status"); }; }; then 9692 ac_R_space=yes 9693 else 9694 echo "$as_me: failed program was:" >&5 9695 cat "conftest.$ac_ext" >&5 9696 ac_R_space=no 9697 fi 9698 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9699 if test $ac_R_space = yes; then 9700 echo "$as_me:9700: result: yes" >&5 9701 echo "${ECHO_T}yes" >&6 9702 X_LIBS="$X_LIBS -R $x_libraries" 9703 else 9704 echo "$as_me:9704: result: neither works" >&5 9705 echo "${ECHO_T}neither works" >&6 9706 fi 9707 fi 9708 LIBS=$ac_xsave_LIBS 9709 esac 9710 fi 9711 9712 # Check for system-dependent libraries X programs must link with. 9713 # Do this before checking for the system-independent R6 libraries 9714 # (-lICE), since we may need -lsocket or whatever for X linking. 9715 9716 if test "$ISC" = yes; then 9717 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 9718 else 9719 # Martyn Johnson says this is needed for Ultrix, if the X 9720 # libraries were built with DECnet support. And Karl Berry says 9721 # the Alpha needs dnet_stub (dnet does not exist). 9722 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 9723 cat >"conftest.$ac_ext" <<_ACEOF 9724 #line 9724 "configure" 9725 #include "confdefs.h" 9726 9727 /* Override any gcc2 internal prototype to avoid an error. */ 9728 #ifdef __cplusplus 9729 extern "C" 9730 #endif 9731 /* We use char because int might match the return type of a gcc2 9732 builtin and then its argument prototype would still apply. */ 9733 char XOpenDisplay (void); 9734 int 9735 main (void) 9736 { 9737 XOpenDisplay (); 9738 ; 9739 return 0; 9740 } 9741 _ACEOF 9742 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9743 if { (eval echo "$as_me:9743: \"$ac_link\"") >&5 9744 (eval $ac_link) 2>&5 9745 ac_status=$? 9746 echo "$as_me:9746: \$? = $ac_status" >&5 9747 (exit "$ac_status"); } && 9748 { ac_try='test -s "conftest$ac_exeext"' 9749 { (eval echo "$as_me:9749: \"$ac_try\"") >&5 9750 (eval $ac_try) 2>&5 9751 ac_status=$? 9752 echo "$as_me:9752: \$? = $ac_status" >&5 9753 (exit "$ac_status"); }; }; then 9754 : 9755 else 9756 echo "$as_me: failed program was:" >&5 9757 cat "conftest.$ac_ext" >&5 9758 echo "$as_me:9758: checking for dnet_ntoa in -ldnet" >&5 9759 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 9760 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 9761 echo $ECHO_N "(cached) $ECHO_C" >&6 9762 else 9763 ac_check_lib_save_LIBS=$LIBS 9764 LIBS="-ldnet $LIBS" 9765 cat >"conftest.$ac_ext" <<_ACEOF 9766 #line 9766 "configure" 9767 #include "confdefs.h" 9768 9769 /* Override any gcc2 internal prototype to avoid an error. */ 9770 #ifdef __cplusplus 9771 extern "C" 9772 #endif 9773 /* We use char because int might match the return type of a gcc2 9774 builtin and then its argument prototype would still apply. */ 9775 char dnet_ntoa (void); 9776 int 9777 main (void) 9778 { 9779 dnet_ntoa (); 9780 ; 9781 return 0; 9782 } 9783 _ACEOF 9784 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9785 if { (eval echo "$as_me:9785: \"$ac_link\"") >&5 9786 (eval $ac_link) 2>&5 9787 ac_status=$? 9788 echo "$as_me:9788: \$? = $ac_status" >&5 9789 (exit "$ac_status"); } && 9790 { ac_try='test -s "conftest$ac_exeext"' 9791 { (eval echo "$as_me:9791: \"$ac_try\"") >&5 9792 (eval $ac_try) 2>&5 9793 ac_status=$? 9794 echo "$as_me:9794: \$? = $ac_status" >&5 9795 (exit "$ac_status"); }; }; then 9796 ac_cv_lib_dnet_dnet_ntoa=yes 9797 else 9798 echo "$as_me: failed program was:" >&5 9799 cat "conftest.$ac_ext" >&5 9800 ac_cv_lib_dnet_dnet_ntoa=no 9801 fi 9802 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9803 LIBS=$ac_check_lib_save_LIBS 9804 fi 9805 echo "$as_me:9805: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 9806 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 9807 if test "$ac_cv_lib_dnet_dnet_ntoa" = yes; then 9808 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 9809 fi 9810 9811 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 9812 echo "$as_me:9812: checking for dnet_ntoa in -ldnet_stub" >&5 9813 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 9814 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 9815 echo $ECHO_N "(cached) $ECHO_C" >&6 9816 else 9817 ac_check_lib_save_LIBS=$LIBS 9818 LIBS="-ldnet_stub $LIBS" 9819 cat >"conftest.$ac_ext" <<_ACEOF 9820 #line 9820 "configure" 9821 #include "confdefs.h" 9822 9823 /* Override any gcc2 internal prototype to avoid an error. */ 9824 #ifdef __cplusplus 9825 extern "C" 9826 #endif 9827 /* We use char because int might match the return type of a gcc2 9828 builtin and then its argument prototype would still apply. */ 9829 char dnet_ntoa (void); 9830 int 9831 main (void) 9832 { 9833 dnet_ntoa (); 9834 ; 9835 return 0; 9836 } 9837 _ACEOF 9838 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9839 if { (eval echo "$as_me:9839: \"$ac_link\"") >&5 9840 (eval $ac_link) 2>&5 9841 ac_status=$? 9842 echo "$as_me:9842: \$? = $ac_status" >&5 9843 (exit "$ac_status"); } && 9844 { ac_try='test -s "conftest$ac_exeext"' 9845 { (eval echo "$as_me:9845: \"$ac_try\"") >&5 9846 (eval $ac_try) 2>&5 9847 ac_status=$? 9848 echo "$as_me:9848: \$? = $ac_status" >&5 9849 (exit "$ac_status"); }; }; then 9850 ac_cv_lib_dnet_stub_dnet_ntoa=yes 9851 else 9852 echo "$as_me: failed program was:" >&5 9853 cat "conftest.$ac_ext" >&5 9854 ac_cv_lib_dnet_stub_dnet_ntoa=no 9855 fi 9856 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9857 LIBS=$ac_check_lib_save_LIBS 9858 fi 9859 echo "$as_me:9859: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 9860 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 9861 if test "$ac_cv_lib_dnet_stub_dnet_ntoa" = yes; then 9862 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 9863 fi 9864 9865 fi 9866 fi 9867 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9868 LIBS="$ac_xsave_LIBS" 9869 9870 # msh (at] cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 9871 # to get the SysV transport functions. 9872 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 9873 # needs -lnsl. 9874 # The nsl library prevents programs from opening the X display 9875 # on Irix 5.2, according to T.E. Dickey. 9876 # The functions gethostbyname, getservbyname, and inet_addr are 9877 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 9878 echo "$as_me:9878: checking for gethostbyname" >&5 9879 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 9880 if test "${ac_cv_func_gethostbyname+set}" = set; then 9881 echo $ECHO_N "(cached) $ECHO_C" >&6 9882 else 9883 cat >"conftest.$ac_ext" <<_ACEOF 9884 #line 9884 "configure" 9885 #include "confdefs.h" 9886 #define gethostbyname autoconf_temporary 9887 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 9888 #undef gethostbyname 9889 9890 #ifdef __cplusplus 9891 extern "C" 9892 #endif 9893 9894 /* We use char because int might match the return type of a gcc2 9895 builtin and then its argument prototype would still apply. */ 9896 char gethostbyname (void); 9897 9898 int 9899 main (void) 9900 { 9901 9902 /* The GNU C library defines stubs for functions which it implements 9903 to always fail with ENOSYS. Some functions are actually named 9904 something starting with __ and the normal name is an alias. */ 9905 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 9906 #error found stub for gethostbyname 9907 #endif 9908 9909 return gethostbyname (); 9910 ; 9911 return 0; 9912 } 9913 _ACEOF 9914 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9915 if { (eval echo "$as_me:9915: \"$ac_link\"") >&5 9916 (eval $ac_link) 2>&5 9917 ac_status=$? 9918 echo "$as_me:9918: \$? = $ac_status" >&5 9919 (exit "$ac_status"); } && 9920 { ac_try='test -s "conftest$ac_exeext"' 9921 { (eval echo "$as_me:9921: \"$ac_try\"") >&5 9922 (eval $ac_try) 2>&5 9923 ac_status=$? 9924 echo "$as_me:9924: \$? = $ac_status" >&5 9925 (exit "$ac_status"); }; }; then 9926 ac_cv_func_gethostbyname=yes 9927 else 9928 echo "$as_me: failed program was:" >&5 9929 cat "conftest.$ac_ext" >&5 9930 ac_cv_func_gethostbyname=no 9931 fi 9932 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9933 fi 9934 echo "$as_me:9934: result: $ac_cv_func_gethostbyname" >&5 9935 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 9936 9937 if test $ac_cv_func_gethostbyname = no; then 9938 echo "$as_me:9938: checking for gethostbyname in -lnsl" >&5 9939 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 9940 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 9941 echo $ECHO_N "(cached) $ECHO_C" >&6 9942 else 9943 ac_check_lib_save_LIBS=$LIBS 9944 LIBS="-lnsl $LIBS" 9945 cat >"conftest.$ac_ext" <<_ACEOF 9946 #line 9946 "configure" 9947 #include "confdefs.h" 9948 9949 /* Override any gcc2 internal prototype to avoid an error. */ 9950 #ifdef __cplusplus 9951 extern "C" 9952 #endif 9953 /* We use char because int might match the return type of a gcc2 9954 builtin and then its argument prototype would still apply. */ 9955 char gethostbyname (void); 9956 int 9957 main (void) 9958 { 9959 gethostbyname (); 9960 ; 9961 return 0; 9962 } 9963 _ACEOF 9964 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9965 if { (eval echo "$as_me:9965: \"$ac_link\"") >&5 9966 (eval $ac_link) 2>&5 9967 ac_status=$? 9968 echo "$as_me:9968: \$? = $ac_status" >&5 9969 (exit "$ac_status"); } && 9970 { ac_try='test -s "conftest$ac_exeext"' 9971 { (eval echo "$as_me:9971: \"$ac_try\"") >&5 9972 (eval $ac_try) 2>&5 9973 ac_status=$? 9974 echo "$as_me:9974: \$? = $ac_status" >&5 9975 (exit "$ac_status"); }; }; then 9976 ac_cv_lib_nsl_gethostbyname=yes 9977 else 9978 echo "$as_me: failed program was:" >&5 9979 cat "conftest.$ac_ext" >&5 9980 ac_cv_lib_nsl_gethostbyname=no 9981 fi 9982 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9983 LIBS=$ac_check_lib_save_LIBS 9984 fi 9985 echo "$as_me:9985: result: $ac_cv_lib_nsl_gethostbyname" >&5 9986 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 9987 if test "$ac_cv_lib_nsl_gethostbyname" = yes; then 9988 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 9989 fi 9990 9991 if test $ac_cv_lib_nsl_gethostbyname = no; then 9992 echo "$as_me:9992: checking for gethostbyname in -lbsd" >&5 9993 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 9994 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 9995 echo $ECHO_N "(cached) $ECHO_C" >&6 9996 else 9997 ac_check_lib_save_LIBS=$LIBS 9998 LIBS="-lbsd $LIBS" 9999 cat >"conftest.$ac_ext" <<_ACEOF 10000 #line 10000 "configure" 10001 #include "confdefs.h" 10002 10003 /* Override any gcc2 internal prototype to avoid an error. */ 10004 #ifdef __cplusplus 10005 extern "C" 10006 #endif 10007 /* We use char because int might match the return type of a gcc2 10008 builtin and then its argument prototype would still apply. */ 10009 char gethostbyname (void); 10010 int 10011 main (void) 10012 { 10013 gethostbyname (); 10014 ; 10015 return 0; 10016 } 10017 _ACEOF 10018 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 10019 if { (eval echo "$as_me:10019: \"$ac_link\"") >&5 10020 (eval $ac_link) 2>&5 10021 ac_status=$? 10022 echo "$as_me:10022: \$? = $ac_status" >&5 10023 (exit "$ac_status"); } && 10024 { ac_try='test -s "conftest$ac_exeext"' 10025 { (eval echo "$as_me:10025: \"$ac_try\"") >&5 10026 (eval $ac_try) 2>&5 10027 ac_status=$? 10028 echo "$as_me:10028: \$? = $ac_status" >&5 10029 (exit "$ac_status"); }; }; then 10030 ac_cv_lib_bsd_gethostbyname=yes 10031 else 10032 echo "$as_me: failed program was:" >&5 10033 cat "conftest.$ac_ext" >&5 10034 ac_cv_lib_bsd_gethostbyname=no 10035 fi 10036 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 10037 LIBS=$ac_check_lib_save_LIBS 10038 fi 10039 echo "$as_me:10039: result: $ac_cv_lib_bsd_gethostbyname" >&5 10040 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 10041 if test "$ac_cv_lib_bsd_gethostbyname" = yes; then 10042 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 10043 fi 10044 10045 fi 10046 fi 10047 10048 # lieder (at] skyler.mavd.honeywell.com says without -lsocket, 10049 # socket/setsockopt and other routines are undefined under SCO ODT 10050 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 10051 # on later versions), says Simon Leinen: it contains gethostby* 10052 # variants that don't use the nameserver (or something). -lsocket 10053 # must be given before -lnsl if both are needed. We assume that 10054 # if connect needs -lnsl, so does gethostbyname. 10055 echo "$as_me:10055: checking for connect" >&5 10056 echo $ECHO_N "checking for connect... $ECHO_C" >&6 10057 if test "${ac_cv_func_connect+set}" = set; then 10058 echo $ECHO_N "(cached) $ECHO_C" >&6 10059 else 10060 cat >"conftest.$ac_ext" <<_ACEOF 10061 #line 10061 "configure" 10062 #include "confdefs.h" 10063 #define connect autoconf_temporary 10064 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 10065 #undef connect 10066 10067 #ifdef __cplusplus 10068 extern "C" 10069 #endif 10070 10071 /* We use char because int might match the return type of a gcc2 10072 builtin and then its argument prototype would still apply. */ 10073 char connect (void); 10074 10075 int 10076 main (void) 10077 { 10078 10079 /* The GNU C library defines stubs for functions which it implements 10080 to always fail with ENOSYS. Some functions are actually named 10081 something starting with __ and the normal name is an alias. */ 10082 #if defined (__stub_connect) || defined (__stub___connect) 10083 #error found stub for connect 10084 #endif 10085 10086 return connect (); 10087 ; 10088 return 0; 10089 } 10090 _ACEOF 10091 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 10092 if { (eval echo "$as_me:10092: \"$ac_link\"") >&5 10093 (eval $ac_link) 2>&5 10094 ac_status=$? 10095 echo "$as_me:10095: \$? = $ac_status" >&5 10096 (exit "$ac_status"); } && 10097 { ac_try='test -s "conftest$ac_exeext"' 10098 { (eval echo "$as_me:10098: \"$ac_try\"") >&5 10099 (eval $ac_try) 2>&5 10100 ac_status=$? 10101 echo "$as_me:10101: \$? = $ac_status" >&5 10102 (exit "$ac_status"); }; }; then 10103 ac_cv_func_connect=yes 10104 else 10105 echo "$as_me: failed program was:" >&5 10106 cat "conftest.$ac_ext" >&5 10107 ac_cv_func_connect=no 10108 fi 10109 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 10110 fi 10111 echo "$as_me:10111: result: $ac_cv_func_connect" >&5 10112 echo "${ECHO_T}$ac_cv_func_connect" >&6 10113 10114 if test $ac_cv_func_connect = no; then 10115 echo "$as_me:10115: checking for connect in -lsocket" >&5 10116 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 10117 if test "${ac_cv_lib_socket_connect+set}" = set; then 10118 echo $ECHO_N "(cached) $ECHO_C" >&6 10119 else 10120 ac_check_lib_save_LIBS=$LIBS 10121 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 10122 cat >"conftest.$ac_ext" <<_ACEOF 10123 #line 10123 "configure" 10124 #include "confdefs.h" 10125 10126 /* Override any gcc2 internal prototype to avoid an error. */ 10127 #ifdef __cplusplus 10128 extern "C" 10129 #endif 10130 /* We use char because int might match the return type of a gcc2 10131 builtin and then its argument prototype would still apply. */ 10132 char connect (void); 10133 int 10134 main (void) 10135 { 10136 connect (); 10137 ; 10138 return 0; 10139 } 10140 _ACEOF 10141 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 10142 if { (eval echo "$as_me:10142: \"$ac_link\"") >&5 10143 (eval $ac_link) 2>&5 10144 ac_status=$? 10145 echo "$as_me:10145: \$? = $ac_status" >&5 10146 (exit "$ac_status"); } && 10147 { ac_try='test -s "conftest$ac_exeext"' 10148 { (eval echo "$as_me:10148: \"$ac_try\"") >&5 10149 (eval $ac_try) 2>&5 10150 ac_status=$? 10151 echo "$as_me:10151: \$? = $ac_status" >&5 10152 (exit "$ac_status"); }; }; then 10153 ac_cv_lib_socket_connect=yes 10154 else 10155 echo "$as_me: failed program was:" >&5 10156 cat "conftest.$ac_ext" >&5 10157 ac_cv_lib_socket_connect=no 10158 fi 10159 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 10160 LIBS=$ac_check_lib_save_LIBS 10161 fi 10162 echo "$as_me:10162: result: $ac_cv_lib_socket_connect" >&5 10163 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 10164 if test "$ac_cv_lib_socket_connect" = yes; then 10165 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 10166 fi 10167 10168 fi 10169 10170 # Guillermo Gomez says -lposix is necessary on A/UX. 10171 echo "$as_me:10171: checking for remove" >&5 10172 echo $ECHO_N "checking for remove... $ECHO_C" >&6 10173 if test "${ac_cv_func_remove+set}" = set; then 10174 echo $ECHO_N "(cached) $ECHO_C" >&6 10175 else 10176 cat >"conftest.$ac_ext" <<_ACEOF 10177 #line 10177 "configure" 10178 #include "confdefs.h" 10179 #define remove autoconf_temporary 10180 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 10181 #undef remove 10182 10183 #ifdef __cplusplus 10184 extern "C" 10185 #endif 10186 10187 /* We use char because int might match the return type of a gcc2 10188 builtin and then its argument prototype would still apply. */ 10189 char remove (void); 10190 10191 int 10192 main (void) 10193 { 10194 10195 /* The GNU C library defines stubs for functions which it implements 10196 to always fail with ENOSYS. Some functions are actually named 10197 something starting with __ and the normal name is an alias. */ 10198 #if defined (__stub_remove) || defined (__stub___remove) 10199 #error found stub for remove 10200 #endif 10201 10202 return remove (); 10203 ; 10204 return 0; 10205 } 10206 _ACEOF 10207 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 10208 if { (eval echo "$as_me:10208: \"$ac_link\"") >&5 10209 (eval $ac_link) 2>&5 10210 ac_status=$? 10211 echo "$as_me:10211: \$? = $ac_status" >&5 10212 (exit "$ac_status"); } && 10213 { ac_try='test -s "conftest$ac_exeext"' 10214 { (eval echo "$as_me:10214: \"$ac_try\"") >&5 10215 (eval $ac_try) 2>&5 10216 ac_status=$? 10217 echo "$as_me:10217: \$? = $ac_status" >&5 10218 (exit "$ac_status"); }; }; then 10219 ac_cv_func_remove=yes 10220 else 10221 echo "$as_me: failed program was:" >&5 10222 cat "conftest.$ac_ext" >&5 10223 ac_cv_func_remove=no 10224 fi 10225 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 10226 fi 10227 echo "$as_me:10227: result: $ac_cv_func_remove" >&5 10228 echo "${ECHO_T}$ac_cv_func_remove" >&6 10229 10230 if test $ac_cv_func_remove = no; then 10231 echo "$as_me:10231: checking for remove in -lposix" >&5 10232 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 10233 if test "${ac_cv_lib_posix_remove+set}" = set; then 10234 echo $ECHO_N "(cached) $ECHO_C" >&6 10235 else 10236 ac_check_lib_save_LIBS=$LIBS 10237 LIBS="-lposix $LIBS" 10238 cat >"conftest.$ac_ext" <<_ACEOF 10239 #line 10239 "configure" 10240 #include "confdefs.h" 10241 10242 /* Override any gcc2 internal prototype to avoid an error. */ 10243 #ifdef __cplusplus 10244 extern "C" 10245 #endif 10246 /* We use char because int might match the return type of a gcc2 10247 builtin and then its argument prototype would still apply. */ 10248 char remove (void); 10249 int 10250 main (void) 10251 { 10252 remove (); 10253 ; 10254 return 0; 10255 } 10256 _ACEOF 10257 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 10258 if { (eval echo "$as_me:10258: \"$ac_link\"") >&5 10259 (eval $ac_link) 2>&5 10260 ac_status=$? 10261 echo "$as_me:10261: \$? = $ac_status" >&5 10262 (exit "$ac_status"); } && 10263 { ac_try='test -s "conftest$ac_exeext"' 10264 { (eval echo "$as_me:10264: \"$ac_try\"") >&5 10265 (eval $ac_try) 2>&5 10266 ac_status=$? 10267 echo "$as_me:10267: \$? = $ac_status" >&5 10268 (exit "$ac_status"); }; }; then 10269 ac_cv_lib_posix_remove=yes 10270 else 10271 echo "$as_me: failed program was:" >&5 10272 cat "conftest.$ac_ext" >&5 10273 ac_cv_lib_posix_remove=no 10274 fi 10275 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 10276 LIBS=$ac_check_lib_save_LIBS 10277 fi 10278 echo "$as_me:10278: result: $ac_cv_lib_posix_remove" >&5 10279 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 10280 if test "$ac_cv_lib_posix_remove" = yes; then 10281 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 10282 fi 10283 10284 fi 10285 10286 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 10287 echo "$as_me:10287: checking for shmat" >&5 10288 echo $ECHO_N "checking for shmat... $ECHO_C" >&6 10289 if test "${ac_cv_func_shmat+set}" = set; then 10290 echo $ECHO_N "(cached) $ECHO_C" >&6 10291 else 10292 cat >"conftest.$ac_ext" <<_ACEOF 10293 #line 10293 "configure" 10294 #include "confdefs.h" 10295 #define shmat autoconf_temporary 10296 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 10297 #undef shmat 10298 10299 #ifdef __cplusplus 10300 extern "C" 10301 #endif 10302 10303 /* We use char because int might match the return type of a gcc2 10304 builtin and then its argument prototype would still apply. */ 10305 char shmat (void); 10306 10307 int 10308 main (void) 10309 { 10310 10311 /* The GNU C library defines stubs for functions which it implements 10312 to always fail with ENOSYS. Some functions are actually named 10313 something starting with __ and the normal name is an alias. */ 10314 #if defined (__stub_shmat) || defined (__stub___shmat) 10315 #error found stub for shmat 10316 #endif 10317 10318 return shmat (); 10319 ; 10320 return 0; 10321 } 10322 _ACEOF 10323 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 10324 if { (eval echo "$as_me:10324: \"$ac_link\"") >&5 10325 (eval $ac_link) 2>&5 10326 ac_status=$? 10327 echo "$as_me:10327: \$? = $ac_status" >&5 10328 (exit "$ac_status"); } && 10329 { ac_try='test -s "conftest$ac_exeext"' 10330 { (eval echo "$as_me:10330: \"$ac_try\"") >&5 10331 (eval $ac_try) 2>&5 10332 ac_status=$? 10333 echo "$as_me:10333: \$? = $ac_status" >&5 10334 (exit "$ac_status"); }; }; then 10335 ac_cv_func_shmat=yes 10336 else 10337 echo "$as_me: failed program was:" >&5 10338 cat "conftest.$ac_ext" >&5 10339 ac_cv_func_shmat=no 10340 fi 10341 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 10342 fi 10343 echo "$as_me:10343: result: $ac_cv_func_shmat" >&5 10344 echo "${ECHO_T}$ac_cv_func_shmat" >&6 10345 10346 if test $ac_cv_func_shmat = no; then 10347 echo "$as_me:10347: checking for shmat in -lipc" >&5 10348 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 10349 if test "${ac_cv_lib_ipc_shmat+set}" = set; then 10350 echo $ECHO_N "(cached) $ECHO_C" >&6 10351 else 10352 ac_check_lib_save_LIBS=$LIBS 10353 LIBS="-lipc $LIBS" 10354 cat >"conftest.$ac_ext" <<_ACEOF 10355 #line 10355 "configure" 10356 #include "confdefs.h" 10357 10358 /* Override any gcc2 internal prototype to avoid an error. */ 10359 #ifdef __cplusplus 10360 extern "C" 10361 #endif 10362 /* We use char because int might match the return type of a gcc2 10363 builtin and then its argument prototype would still apply. */ 10364 char shmat (void); 10365 int 10366 main (void) 10367 { 10368 shmat (); 10369 ; 10370 return 0; 10371 } 10372 _ACEOF 10373 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 10374 if { (eval echo "$as_me:10374: \"$ac_link\"") >&5 10375 (eval $ac_link) 2>&5 10376 ac_status=$? 10377 echo "$as_me:10377: \$? = $ac_status" >&5 10378 (exit "$ac_status"); } && 10379 { ac_try='test -s "conftest$ac_exeext"' 10380 { (eval echo "$as_me:10380: \"$ac_try\"") >&5 10381 (eval $ac_try) 2>&5 10382 ac_status=$? 10383 echo "$as_me:10383: \$? = $ac_status" >&5 10384 (exit "$ac_status"); }; }; then 10385 ac_cv_lib_ipc_shmat=yes 10386 else 10387 echo "$as_me: failed program was:" >&5 10388 cat "conftest.$ac_ext" >&5 10389 ac_cv_lib_ipc_shmat=no 10390 fi 10391 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 10392 LIBS=$ac_check_lib_save_LIBS 10393 fi 10394 echo "$as_me:10394: result: $ac_cv_lib_ipc_shmat" >&5 10395 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 10396 if test "$ac_cv_lib_ipc_shmat" = yes; then 10397 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 10398 fi 10399 10400 fi 10401 fi 10402 10403 # Check for libraries that X11R6 Xt/Xaw programs need. 10404 ac_save_LDFLAGS=$LDFLAGS 10405 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 10406 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 10407 # check for ICE first), but we must link in the order -lSM -lICE or 10408 # we get undefined symbols. So assume we have SM if we have ICE. 10409 # These have to be linked with before -lX11, unlike the other 10410 # libraries we check for below, so use a different variable. 10411 # John Interrante, Karl Berry 10412 echo "$as_me:10412: checking for IceConnectionNumber in -lICE" >&5 10413 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 10414 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 10415 echo $ECHO_N "(cached) $ECHO_C" >&6 10416 else 10417 ac_check_lib_save_LIBS=$LIBS 10418 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 10419 cat >"conftest.$ac_ext" <<_ACEOF 10420 #line 10420 "configure" 10421 #include "confdefs.h" 10422 10423 /* Override any gcc2 internal prototype to avoid an error. */ 10424 #ifdef __cplusplus 10425 extern "C" 10426 #endif 10427 /* We use char because int might match the return type of a gcc2 10428 builtin and then its argument prototype would still apply. */ 10429 char IceConnectionNumber (void); 10430 int 10431 main (void) 10432 { 10433 IceConnectionNumber (); 10434 ; 10435 return 0; 10436 } 10437 _ACEOF 10438 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 10439 if { (eval echo "$as_me:10439: \"$ac_link\"") >&5 10440 (eval $ac_link) 2>&5 10441 ac_status=$? 10442 echo "$as_me:10442: \$? = $ac_status" >&5 10443 (exit "$ac_status"); } && 10444 { ac_try='test -s "conftest$ac_exeext"' 10445 { (eval echo "$as_me:10445: \"$ac_try\"") >&5 10446 (eval $ac_try) 2>&5 10447 ac_status=$? 10448 echo "$as_me:10448: \$? = $ac_status" >&5 10449 (exit "$ac_status"); }; }; then 10450 ac_cv_lib_ICE_IceConnectionNumber=yes 10451 else 10452 echo "$as_me: failed program was:" >&5 10453 cat "conftest.$ac_ext" >&5 10454 ac_cv_lib_ICE_IceConnectionNumber=no 10455 fi 10456 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 10457 LIBS=$ac_check_lib_save_LIBS 10458 fi 10459 echo "$as_me:10459: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 10460 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 10461 if test "$ac_cv_lib_ICE_IceConnectionNumber" = yes; then 10462 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 10463 fi 10464 10465 LDFLAGS=$ac_save_LDFLAGS 10466 10467 fi 10468 10469 echo "$as_me:10469: checking for sys/wait.h that is POSIX.1 compatible" >&5 10470 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 10471 if test "${ac_cv_header_sys_wait_h+set}" = set; then 10472 echo $ECHO_N "(cached) $ECHO_C" >&6 10473 else 10474 cat >"conftest.$ac_ext" <<_ACEOF 10475 #line 10475 "configure" 10476 #include "confdefs.h" 10477 #include <sys/types.h> 10478 #include <sys/wait.h> 10479 #ifndef WEXITSTATUS 10480 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 10481 #endif 10482 #ifndef WIFEXITED 10483 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 10484 #endif 10485 10486 int 10487 main (void) 10488 { 10489 int s; 10490 wait (&s); 10491 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 10492 ; 10493 return 0; 10494 } 10495 _ACEOF 10496 rm -f "conftest.$ac_objext" 10497 if { (eval echo "$as_me:10497: \"$ac_compile\"") >&5 10498 (eval $ac_compile) 2>&5 10499 ac_status=$? 10500 echo "$as_me:10500: \$? = $ac_status" >&5 10501 (exit "$ac_status"); } && 10502 { ac_try='test -s "conftest.$ac_objext"' 10503 { (eval echo "$as_me:10503: \"$ac_try\"") >&5 10504 (eval $ac_try) 2>&5 10505 ac_status=$? 10506 echo "$as_me:10506: \$? = $ac_status" >&5 10507 (exit "$ac_status"); }; }; then 10508 ac_cv_header_sys_wait_h=yes 10509 else 10510 echo "$as_me: failed program was:" >&5 10511 cat "conftest.$ac_ext" >&5 10512 ac_cv_header_sys_wait_h=no 10513 fi 10514 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10515 fi 10516 echo "$as_me:10516: result: $ac_cv_header_sys_wait_h" >&5 10517 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 10518 if test $ac_cv_header_sys_wait_h = yes; then 10519 10520 cat >>confdefs.h <<\EOF 10521 #define HAVE_SYS_WAIT_H 1 10522 EOF 10523 10524 fi 10525 10526 echo "$as_me:10526: checking for POSIX wait functions" >&5 10527 echo $ECHO_N "checking for POSIX wait functions... $ECHO_C" >&6 10528 if test "${cf_cv_posix_wait+set}" = set; then 10529 echo $ECHO_N "(cached) $ECHO_C" >&6 10530 else 10531 10532 cat >"conftest.$ac_ext" <<_ACEOF 10533 #line 10533 "configure" 10534 #include "confdefs.h" 10535 10536 $ac_includes_default 10537 10538 #ifdef HAVE_SYS_WAIT_H 10539 #include <sys/wait.h> 10540 #endif 10541 10542 int 10543 main (void) 10544 { 10545 10546 int stat_loc; 10547 pid_t pid = waitpid(-1, &stat_loc, WNOHANG|WUNTRACED); 10548 pid_t pid2 = wait(&stat_loc); 10549 (void)pid; 10550 (void)pid2; 10551 10552 ; 10553 return 0; 10554 } 10555 _ACEOF 10556 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 10557 if { (eval echo "$as_me:10557: \"$ac_link\"") >&5 10558 (eval $ac_link) 2>&5 10559 ac_status=$? 10560 echo "$as_me:10560: \$? = $ac_status" >&5 10561 (exit "$ac_status"); } && 10562 { ac_try='test -s "conftest$ac_exeext"' 10563 { (eval echo "$as_me:10563: \"$ac_try\"") >&5 10564 (eval $ac_try) 2>&5 10565 ac_status=$? 10566 echo "$as_me:10566: \$? = $ac_status" >&5 10567 (exit "$ac_status"); }; }; then 10568 cf_cv_posix_wait=yes 10569 else 10570 echo "$as_me: failed program was:" >&5 10571 cat "conftest.$ac_ext" >&5 10572 cf_cv_posix_wait=no 10573 fi 10574 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 10575 10576 fi 10577 echo "$as_me:10577: result: $cf_cv_posix_wait" >&5 10578 echo "${ECHO_T}$cf_cv_posix_wait" >&6 10579 test "$cf_cv_posix_wait" = yes && 10580 cat >>confdefs.h <<\EOF 10581 #define USE_POSIX_WAIT 1 10582 EOF 10583 10584 echo "$as_me:10584: checking if external sys_nerr is declared" >&5 10585 echo $ECHO_N "checking if external sys_nerr is declared... $ECHO_C" >&6 10586 if test "${cf_cv_dcl_sys_nerr+set}" = set; then 10587 echo $ECHO_N "(cached) $ECHO_C" >&6 10588 else 10589 10590 cat >"conftest.$ac_ext" <<_ACEOF 10591 #line 10591 "configure" 10592 #include "confdefs.h" 10593 10594 $ac_includes_default 10595 #include <errno.h> 10596 int 10597 main (void) 10598 { 10599 int x = (int) sys_nerr; (void)x 10600 ; 10601 return 0; 10602 } 10603 _ACEOF 10604 rm -f "conftest.$ac_objext" 10605 if { (eval echo "$as_me:10605: \"$ac_compile\"") >&5 10606 (eval $ac_compile) 2>&5 10607 ac_status=$? 10608 echo "$as_me:10608: \$? = $ac_status" >&5 10609 (exit "$ac_status"); } && 10610 { ac_try='test -s "conftest.$ac_objext"' 10611 { (eval echo "$as_me:10611: \"$ac_try\"") >&5 10612 (eval $ac_try) 2>&5 10613 ac_status=$? 10614 echo "$as_me:10614: \$? = $ac_status" >&5 10615 (exit "$ac_status"); }; }; then 10616 cf_cv_dcl_sys_nerr=yes 10617 else 10618 echo "$as_me: failed program was:" >&5 10619 cat "conftest.$ac_ext" >&5 10620 cf_cv_dcl_sys_nerr=no 10621 fi 10622 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10623 10624 fi 10625 echo "$as_me:10625: result: $cf_cv_dcl_sys_nerr" >&5 10626 echo "${ECHO_T}$cf_cv_dcl_sys_nerr" >&6 10627 10628 if test "$cf_cv_dcl_sys_nerr" = no ; then 10629 10630 cf_result=`echo "decl_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 10631 10632 cat >>confdefs.h <<EOF 10633 #define $cf_result 1 10634 EOF 10635 10636 fi 10637 10638 # It's possible (for near-UNIX clones) that the data doesn't exist 10639 10640 echo "$as_me:10640: checking if external sys_nerr exists" >&5 10641 echo $ECHO_N "checking if external sys_nerr exists... $ECHO_C" >&6 10642 if test "${cf_cv_have_sys_nerr+set}" = set; then 10643 echo $ECHO_N "(cached) $ECHO_C" >&6 10644 else 10645 10646 cat >"conftest.$ac_ext" <<_ACEOF 10647 #line 10647 "configure" 10648 #include "confdefs.h" 10649 10650 #undef sys_nerr 10651 extern int sys_nerr; 10652 10653 int 10654 main (void) 10655 { 10656 sys_nerr = 2 10657 ; 10658 return 0; 10659 } 10660 _ACEOF 10661 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 10662 if { (eval echo "$as_me:10662: \"$ac_link\"") >&5 10663 (eval $ac_link) 2>&5 10664 ac_status=$? 10665 echo "$as_me:10665: \$? = $ac_status" >&5 10666 (exit "$ac_status"); } && 10667 { ac_try='test -s "conftest$ac_exeext"' 10668 { (eval echo "$as_me:10668: \"$ac_try\"") >&5 10669 (eval $ac_try) 2>&5 10670 ac_status=$? 10671 echo "$as_me:10671: \$? = $ac_status" >&5 10672 (exit "$ac_status"); }; }; then 10673 cf_cv_have_sys_nerr=yes 10674 else 10675 echo "$as_me: failed program was:" >&5 10676 cat "conftest.$ac_ext" >&5 10677 cf_cv_have_sys_nerr=no 10678 fi 10679 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 10680 10681 fi 10682 echo "$as_me:10682: result: $cf_cv_have_sys_nerr" >&5 10683 echo "${ECHO_T}$cf_cv_have_sys_nerr" >&6 10684 10685 if test "$cf_cv_have_sys_nerr" = yes ; then 10686 10687 cf_result=`echo "have_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 10688 10689 cat >>confdefs.h <<EOF 10690 #define $cf_result 1 10691 EOF 10692 10693 fi 10694 10695 echo "$as_me:10695: checking if external sys_errlist is declared" >&5 10696 echo $ECHO_N "checking if external sys_errlist is declared... $ECHO_C" >&6 10697 if test "${cf_cv_dcl_sys_errlist+set}" = set; then 10698 echo $ECHO_N "(cached) $ECHO_C" >&6 10699 else 10700 10701 cat >"conftest.$ac_ext" <<_ACEOF 10702 #line 10702 "configure" 10703 #include "confdefs.h" 10704 10705 $ac_includes_default 10706 #include <errno.h> 10707 int 10708 main (void) 10709 { 10710 int x = (int) sys_errlist; (void)x 10711 ; 10712 return 0; 10713 } 10714 _ACEOF 10715 rm -f "conftest.$ac_objext" 10716 if { (eval echo "$as_me:10716: \"$ac_compile\"") >&5 10717 (eval $ac_compile) 2>&5 10718 ac_status=$? 10719 echo "$as_me:10719: \$? = $ac_status" >&5 10720 (exit "$ac_status"); } && 10721 { ac_try='test -s "conftest.$ac_objext"' 10722 { (eval echo "$as_me:10722: \"$ac_try\"") >&5 10723 (eval $ac_try) 2>&5 10724 ac_status=$? 10725 echo "$as_me:10725: \$? = $ac_status" >&5 10726 (exit "$ac_status"); }; }; then 10727 cf_cv_dcl_sys_errlist=yes 10728 else 10729 echo "$as_me: failed program was:" >&5 10730 cat "conftest.$ac_ext" >&5 10731 cf_cv_dcl_sys_errlist=no 10732 fi 10733 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10734 10735 fi 10736 echo "$as_me:10736: result: $cf_cv_dcl_sys_errlist" >&5 10737 echo "${ECHO_T}$cf_cv_dcl_sys_errlist" >&6 10738 10739 if test "$cf_cv_dcl_sys_errlist" = no ; then 10740 10741 cf_result=`echo "decl_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 10742 10743 cat >>confdefs.h <<EOF 10744 #define $cf_result 1 10745 EOF 10746 10747 fi 10748 10749 # It's possible (for near-UNIX clones) that the data doesn't exist 10750 10751 echo "$as_me:10751: checking if external sys_errlist exists" >&5 10752 echo $ECHO_N "checking if external sys_errlist exists... $ECHO_C" >&6 10753 if test "${cf_cv_have_sys_errlist+set}" = set; then 10754 echo $ECHO_N "(cached) $ECHO_C" >&6 10755 else 10756 10757 cat >"conftest.$ac_ext" <<_ACEOF 10758 #line 10758 "configure" 10759 #include "confdefs.h" 10760 10761 #undef sys_errlist 10762 extern int sys_errlist; 10763 10764 int 10765 main (void) 10766 { 10767 sys_errlist = 2 10768 ; 10769 return 0; 10770 } 10771 _ACEOF 10772 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 10773 if { (eval echo "$as_me:10773: \"$ac_link\"") >&5 10774 (eval $ac_link) 2>&5 10775 ac_status=$? 10776 echo "$as_me:10776: \$? = $ac_status" >&5 10777 (exit "$ac_status"); } && 10778 { ac_try='test -s "conftest$ac_exeext"' 10779 { (eval echo "$as_me:10779: \"$ac_try\"") >&5 10780 (eval $ac_try) 2>&5 10781 ac_status=$? 10782 echo "$as_me:10782: \$? = $ac_status" >&5 10783 (exit "$ac_status"); }; }; then 10784 cf_cv_have_sys_errlist=yes 10785 else 10786 echo "$as_me: failed program was:" >&5 10787 cat "conftest.$ac_ext" >&5 10788 cf_cv_have_sys_errlist=no 10789 fi 10790 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 10791 10792 fi 10793 echo "$as_me:10793: result: $cf_cv_have_sys_errlist" >&5 10794 echo "${ECHO_T}$cf_cv_have_sys_errlist" >&6 10795 10796 if test "$cf_cv_have_sys_errlist" = yes ; then 10797 10798 cf_result=`echo "have_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 10799 10800 cat >>confdefs.h <<EOF 10801 #define $cf_result 1 10802 EOF 10803 10804 fi 10805 10806 cf_save_LIBS_CF_SYSV="$LIBS" 10807 cf_save_CFLAGS_CF_SYSV="$CFLAGS" 10808 cf_save_CPPFLAGS_CF_SYSV="$CPPFLAGS" 10809 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}" 10810 for cf_X_CFLAGS in $X_CFLAGS 10811 do 10812 case "x$cf_X_CFLAGS" in 10813 x-[IUD]*) 10814 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS" 10815 ;; 10816 *) 10817 CFLAGS="$CFLAGS $cf_X_CFLAGS" 10818 ;; 10819 esac 10820 done 10821 10822 for ac_header in \ 10823 termios.h \ 10824 stdlib.h \ 10825 X11/Intrinsic.h \ 10826 10827 do 10828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10829 echo "$as_me:10829: checking for $ac_header" >&5 10830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10831 if eval "test \"\${$as_ac_Header+set}\" = set"; then 10832 echo $ECHO_N "(cached) $ECHO_C" >&6 10833 else 10834 cat >"conftest.$ac_ext" <<_ACEOF 10835 #line 10835 "configure" 10836 #include "confdefs.h" 10837 #include <$ac_header> 10838 _ACEOF 10839 if { (eval echo "$as_me:10839: \"$ac_cpp "conftest.$ac_ext"\"") >&5 10840 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 10841 ac_status=$? 10842 $EGREP -v '^ *\+' conftest.er1 >conftest.err 10843 rm -f conftest.er1 10844 cat conftest.err >&5 10845 echo "$as_me:10845: \$? = $ac_status" >&5 10846 (exit "$ac_status"); } >/dev/null; then 10847 if test -s conftest.err; then 10848 ac_cpp_err=$ac_c_preproc_warn_flag 10849 else 10850 ac_cpp_err= 10851 fi 10852 else 10853 ac_cpp_err=yes 10854 fi 10855 if test -z "$ac_cpp_err"; then 10856 eval "$as_ac_Header=yes" 10857 else 10858 echo "$as_me: failed program was:" >&5 10859 cat "conftest.$ac_ext" >&5 10860 eval "$as_ac_Header=no" 10861 fi 10862 rm -f conftest.err "conftest.$ac_ext" 10863 fi 10864 echo "$as_me:10864: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 10865 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 10866 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 10867 cat >>confdefs.h <<EOF 10868 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10869 EOF 10870 10871 fi 10872 done 10873 10874 echo "$as_me:10874: checking if we should define SYSV" >&5 10875 echo $ECHO_N "checking if we should define SYSV... $ECHO_C" >&6 10876 if test "${cf_cv_sysv+set}" = set; then 10877 echo $ECHO_N "(cached) $ECHO_C" >&6 10878 else 10879 10880 cat >"conftest.$ac_ext" <<_ACEOF 10881 #line 10881 "configure" 10882 #include "confdefs.h" 10883 10884 #undef SYSV 10885 #define SYSV 1 /* get Xos.h to declare sys_errlist[] */ 10886 #ifdef HAVE_STDLIB_H 10887 #include <stdlib.h> /* look for wchar_t */ 10888 #endif 10889 #ifdef HAVE_X11_INTRINSIC_H 10890 #include <X11/Intrinsic.h> /* Intrinsic.h has other traps... */ 10891 #endif 10892 #ifdef HAVE_TERMIOS_H /* needed for HPUX 10.20 */ 10893 #include <termios.h> 10894 #define STRUCT_TERMIOS struct termios 10895 #else 10896 #define STRUCT_TERMIOS struct termio 10897 #endif 10898 #include <curses.h> 10899 #include <term.h> /* eliminate most BSD hacks */ 10900 #include <errno.h> /* declare sys_errlist on older systems */ 10901 #include <sys/termio.h> /* eliminate most of the remaining ones */ 10902 10903 int 10904 main (void) 10905 { 10906 10907 static STRUCT_TERMIOS d_tio; 10908 d_tio.c_cc[VINTR] = 0; 10909 d_tio.c_cc[VQUIT] = 0; 10910 d_tio.c_cc[VERASE] = 0; 10911 d_tio.c_cc[VKILL] = 0; 10912 d_tio.c_cc[VEOF] = 0; 10913 d_tio.c_cc[VEOL] = 0; 10914 d_tio.c_cc[VMIN] = 0; 10915 d_tio.c_cc[VTIME] = 0; 10916 #if defined(HAVE_SYS_ERRLIST) && !defined(DECL_SYS_ERRLIST) 10917 sys_errlist[0] = ""; /* Cygwin mis-declares this */ 10918 #endif 10919 10920 ; 10921 return 0; 10922 } 10923 _ACEOF 10924 rm -f "conftest.$ac_objext" 10925 if { (eval echo "$as_me:10925: \"$ac_compile\"") >&5 10926 (eval $ac_compile) 2>&5 10927 ac_status=$? 10928 echo "$as_me:10928: \$? = $ac_status" >&5 10929 (exit "$ac_status"); } && 10930 { ac_try='test -s "conftest.$ac_objext"' 10931 { (eval echo "$as_me:10931: \"$ac_try\"") >&5 10932 (eval $ac_try) 2>&5 10933 ac_status=$? 10934 echo "$as_me:10934: \$? = $ac_status" >&5 10935 (exit "$ac_status"); }; }; then 10936 cf_cv_sysv=yes 10937 else 10938 echo "$as_me: failed program was:" >&5 10939 cat "conftest.$ac_ext" >&5 10940 cf_cv_sysv=no 10941 fi 10942 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10943 10944 fi 10945 echo "$as_me:10945: result: $cf_cv_sysv" >&5 10946 echo "${ECHO_T}$cf_cv_sysv" >&6 10947 test "$cf_cv_sysv" = yes && 10948 cat >>confdefs.h <<\EOF 10949 #define SYSV 1 10950 EOF 10951 10952 LIBS="$cf_save_LIBS_CF_SYSV" 10953 CFLAGS="$cf_save_CFLAGS_CF_SYSV" 10954 CPPFLAGS="$cf_save_CPPFLAGS_CF_SYSV" 10955 10956 echo "$as_me:10956: checking for elf_begin in -lelf" >&5 10957 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 10958 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then 10959 echo $ECHO_N "(cached) $ECHO_C" >&6 10960 else 10961 ac_check_lib_save_LIBS=$LIBS 10962 LIBS="-lelf $LIBS" 10963 cat >"conftest.$ac_ext" <<_ACEOF 10964 #line 10964 "configure" 10965 #include "confdefs.h" 10966 10967 /* Override any gcc2 internal prototype to avoid an error. */ 10968 #ifdef __cplusplus 10969 extern "C" 10970 #endif 10971 /* We use char because int might match the return type of a gcc2 10972 builtin and then its argument prototype would still apply. */ 10973 char elf_begin (void); 10974 int 10975 main (void) 10976 { 10977 elf_begin (); 10978 ; 10979 return 0; 10980 } 10981 _ACEOF 10982 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 10983 if { (eval echo "$as_me:10983: \"$ac_link\"") >&5 10984 (eval $ac_link) 2>&5 10985 ac_status=$? 10986 echo "$as_me:10986: \$? = $ac_status" >&5 10987 (exit "$ac_status"); } && 10988 { ac_try='test -s "conftest$ac_exeext"' 10989 { (eval echo "$as_me:10989: \"$ac_try\"") >&5 10990 (eval $ac_try) 2>&5 10991 ac_status=$? 10992 echo "$as_me:10992: \$? = $ac_status" >&5 10993 (exit "$ac_status"); }; }; then 10994 ac_cv_lib_elf_elf_begin=yes 10995 else 10996 echo "$as_me: failed program was:" >&5 10997 cat "conftest.$ac_ext" >&5 10998 ac_cv_lib_elf_elf_begin=no 10999 fi 11000 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 11001 LIBS=$ac_check_lib_save_LIBS 11002 fi 11003 echo "$as_me:11003: result: $ac_cv_lib_elf_elf_begin" >&5 11004 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 11005 if test "$ac_cv_lib_elf_elf_begin" = yes; then 11006 11007 echo "$as_me:11007: checking if this is an SVR4 system" >&5 11008 echo $ECHO_N "checking if this is an SVR4 system... $ECHO_C" >&6 11009 if test "${cf_cv_svr4+set}" = set; then 11010 echo $ECHO_N "(cached) $ECHO_C" >&6 11011 else 11012 11013 cat >"conftest.$ac_ext" <<_ACEOF 11014 #line 11014 "configure" 11015 #include "confdefs.h" 11016 11017 #if defined(__CYGWIN__) 11018 #error Cygwin is not SVr4 11019 #endif 11020 #include <elf.h> 11021 #include <sys/termio.h> 11022 11023 int 11024 main (void) 11025 { 11026 11027 static struct termio d_tio; 11028 d_tio.c_cc[VINTR] = 0; 11029 d_tio.c_cc[VQUIT] = 0; 11030 d_tio.c_cc[VERASE] = 0; 11031 d_tio.c_cc[VKILL] = 0; 11032 d_tio.c_cc[VEOF] = 0; 11033 d_tio.c_cc[VEOL] = 0; 11034 d_tio.c_cc[VMIN] = 0; 11035 d_tio.c_cc[VTIME] = 0; 11036 d_tio.c_cc[VLNEXT] = 0; 11037 11038 ; 11039 return 0; 11040 } 11041 _ACEOF 11042 rm -f "conftest.$ac_objext" 11043 if { (eval echo "$as_me:11043: \"$ac_compile\"") >&5 11044 (eval $ac_compile) 2>&5 11045 ac_status=$? 11046 echo "$as_me:11046: \$? = $ac_status" >&5 11047 (exit "$ac_status"); } && 11048 { ac_try='test -s "conftest.$ac_objext"' 11049 { (eval echo "$as_me:11049: \"$ac_try\"") >&5 11050 (eval $ac_try) 2>&5 11051 ac_status=$? 11052 echo "$as_me:11052: \$? = $ac_status" >&5 11053 (exit "$ac_status"); }; }; then 11054 cf_cv_svr4=yes 11055 else 11056 echo "$as_me: failed program was:" >&5 11057 cat "conftest.$ac_ext" >&5 11058 cf_cv_svr4=no 11059 fi 11060 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 11061 11062 fi 11063 echo "$as_me:11063: result: $cf_cv_svr4" >&5 11064 echo "${ECHO_T}$cf_cv_svr4" >&6 11065 11066 fi 11067 11068 test "$cf_cv_svr4" = yes && 11069 cat >>confdefs.h <<\EOF 11070 #define SVR4 1 11071 EOF 11072 11073 echo "$as_me:11073: checking if you want to use pkg-config" >&5 11074 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6 11075 11076 # Check whether --with-pkg-config or --without-pkg-config was given. 11077 if test "${with_pkg_config+set}" = set; then 11078 withval="$with_pkg_config" 11079 cf_pkg_config=$withval 11080 else 11081 cf_pkg_config=yes 11082 fi; 11083 echo "$as_me:11083: result: $cf_pkg_config" >&5 11084 echo "${ECHO_T}$cf_pkg_config" >&6 11085 11086 case "$cf_pkg_config" in 11087 (no) 11088 PKG_CONFIG=none 11089 ;; 11090 (yes) 11091 11092 if test -n "$ac_tool_prefix"; then 11093 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11094 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11095 echo "$as_me:11095: checking for $ac_word" >&5 11096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 11097 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 11098 echo $ECHO_N "(cached) $ECHO_C" >&6 11099 else 11100 case $PKG_CONFIG in 11101 [\\/]* | ?:[\\/]*) 11102 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11103 ;; 11104 *) 11105 ac_save_IFS=$IFS; IFS=$ac_path_separator 11106 ac_dummy="$PATH" 11107 for ac_dir in $ac_dummy; do 11108 IFS=$ac_save_IFS 11109 test -z "$ac_dir" && ac_dir=. 11110 if $as_executable_p "$ac_dir/$ac_word"; then 11111 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" 11112 echo "$as_me:11112: found $ac_dir/$ac_word" >&5 11113 break 11114 fi 11115 done 11116 11117 ;; 11118 esac 11119 fi 11120 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11121 11122 if test -n "$PKG_CONFIG"; then 11123 echo "$as_me:11123: result: $PKG_CONFIG" >&5 11124 echo "${ECHO_T}$PKG_CONFIG" >&6 11125 else 11126 echo "$as_me:11126: result: no" >&5 11127 echo "${ECHO_T}no" >&6 11128 fi 11129 11130 fi 11131 if test -z "$ac_cv_path_PKG_CONFIG"; then 11132 ac_pt_PKG_CONFIG=$PKG_CONFIG 11133 # Extract the first word of "pkg-config", so it can be a program name with args. 11134 set dummy pkg-config; ac_word=$2 11135 echo "$as_me:11135: checking for $ac_word" >&5 11136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 11137 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 11138 echo $ECHO_N "(cached) $ECHO_C" >&6 11139 else 11140 case $ac_pt_PKG_CONFIG in 11141 [\\/]* | ?:[\\/]*) 11142 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11143 ;; 11144 *) 11145 ac_save_IFS=$IFS; IFS=$ac_path_separator 11146 ac_dummy="$PATH" 11147 for ac_dir in $ac_dummy; do 11148 IFS=$ac_save_IFS 11149 test -z "$ac_dir" && ac_dir=. 11150 if $as_executable_p "$ac_dir/$ac_word"; then 11151 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word" 11152 echo "$as_me:11152: found $ac_dir/$ac_word" >&5 11153 break 11154 fi 11155 done 11156 11157 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none" 11158 ;; 11159 esac 11160 fi 11161 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11162 11163 if test -n "$ac_pt_PKG_CONFIG"; then 11164 echo "$as_me:11164: result: $ac_pt_PKG_CONFIG" >&5 11165 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 11166 else 11167 echo "$as_me:11167: result: no" >&5 11168 echo "${ECHO_T}no" >&6 11169 fi 11170 11171 PKG_CONFIG=$ac_pt_PKG_CONFIG 11172 else 11173 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11174 fi 11175 11176 ;; 11177 (*) 11178 PKG_CONFIG=$withval 11179 ;; 11180 esac 11181 11182 test -z "$PKG_CONFIG" && PKG_CONFIG=none 11183 if test "$PKG_CONFIG" != none ; then 11184 11185 if test "x$prefix" != xNONE; then 11186 cf_path_syntax="$prefix" 11187 else 11188 cf_path_syntax="$ac_default_prefix" 11189 fi 11190 11191 case "x$PKG_CONFIG" in 11192 (x\$\(*\)*|x\'*\'*) 11193 ;; 11194 (x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER) 11195 ;; 11196 (x\$\{*prefix\}*|x\$\{*dir\}*) 11197 eval PKG_CONFIG="$PKG_CONFIG" 11198 case "x$PKG_CONFIG" in 11199 (xNONE/*) 11200 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%` 11201 ;; 11202 esac 11203 ;; 11204 (xno|xNONE/*) 11205 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%` 11206 ;; 11207 (*) 11208 { { echo "$as_me:11208: error: expected a pathname, not \"$PKG_CONFIG\"" >&5 11209 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;} 11210 { (exit 1); exit 1; }; } 11211 ;; 11212 esac 11213 11214 elif test "x$cf_pkg_config" != xno ; then 11215 { echo "$as_me:11215: WARNING: pkg-config is not installed" >&5 11216 echo "$as_me: WARNING: pkg-config is not installed" >&2;} 11217 fi 11218 11219 # OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new) (and 11220 # in some cases has installed dummy files in the former, other cases replaced 11221 # it with a link to the new location). This complicates the configure script. 11222 # Check for that pitfall, and recover using pkg-config 11223 # 11224 # If none of these are set, the configuration is almost certainly broken. 11225 if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}" 11226 then 11227 11228 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then 11229 test -n "$verbose" && echo " found package x11" 1>&6 11230 11231 echo "${as_me:-configure}:11231: testing found package x11 ..." 1>&5 11232 11233 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`" 11234 cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`" 11235 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6 11236 11237 echo "${as_me:-configure}:11237: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11238 11239 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6 11240 11241 echo "${as_me:-configure}:11241: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5 11242 11243 cf_fix_cppflags=no 11244 cf_new_cflags= 11245 cf_new_cppflags= 11246 cf_new_extra_cppflags= 11247 11248 for cf_add_cflags in $cf_pkgconfig_incs 11249 do 11250 case "$cf_fix_cppflags" in 11251 (no) 11252 case "$cf_add_cflags" in 11253 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11254 case "$cf_add_cflags" in 11255 (-D*) 11256 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11257 11258 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11259 && test -z "${cf_tst_cflags}" \ 11260 && cf_fix_cppflags=yes 11261 11262 if test "$cf_fix_cppflags" = yes ; then 11263 11264 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11265 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11266 11267 continue 11268 elif test "${cf_tst_cflags}" = "\"'" ; then 11269 11270 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11271 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11272 11273 continue 11274 fi 11275 ;; 11276 esac 11277 case "$CPPFLAGS" in 11278 (*$cf_add_cflags) 11279 ;; 11280 (*) 11281 case "$cf_add_cflags" in 11282 (-D*) 11283 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11284 11285 CPPFLAGS=`echo "$CPPFLAGS" | \ 11286 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11287 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11288 11289 ;; 11290 esac 11291 11292 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 11293 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 11294 11295 ;; 11296 esac 11297 ;; 11298 (*) 11299 11300 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 11301 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 11302 11303 ;; 11304 esac 11305 ;; 11306 (yes) 11307 11308 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11309 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11310 11311 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 11312 11313 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11314 && test -z "${cf_tst_cflags}" \ 11315 && cf_fix_cppflags=no 11316 ;; 11317 esac 11318 done 11319 11320 if test -n "$cf_new_cflags" ; then 11321 11322 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 11323 CFLAGS="${CFLAGS}$cf_new_cflags" 11324 11325 fi 11326 11327 if test -n "$cf_new_cppflags" ; then 11328 11329 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11330 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 11331 11332 fi 11333 11334 if test -n "$cf_new_extra_cppflags" ; then 11335 11336 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 11337 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 11338 11339 fi 11340 11341 cf_add_libs="$LIBS" 11342 # reverse order 11343 cf_add_0lib= 11344 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 11345 # filter duplicates 11346 for cf_add_1lib in $cf_add_0lib; do 11347 for cf_add_2lib in $cf_add_libs; do 11348 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 11349 cf_add_1lib= 11350 break 11351 fi 11352 done 11353 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 11354 done 11355 LIBS="$cf_add_libs" 11356 11357 : 11358 else 11359 cf_pkgconfig_incs= 11360 cf_pkgconfig_libs= 11361 { echo "$as_me:11361: WARNING: unable to find X11 library" >&5 11362 echo "$as_me: WARNING: unable to find X11 library" >&2;} 11363 fi 11364 11365 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then 11366 test -n "$verbose" && echo " found package ice" 1>&6 11367 11368 echo "${as_me:-configure}:11368: testing found package ice ..." 1>&5 11369 11370 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`" 11371 cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`" 11372 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6 11373 11374 echo "${as_me:-configure}:11374: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11375 11376 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6 11377 11378 echo "${as_me:-configure}:11378: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5 11379 11380 cf_fix_cppflags=no 11381 cf_new_cflags= 11382 cf_new_cppflags= 11383 cf_new_extra_cppflags= 11384 11385 for cf_add_cflags in $cf_pkgconfig_incs 11386 do 11387 case "$cf_fix_cppflags" in 11388 (no) 11389 case "$cf_add_cflags" in 11390 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11391 case "$cf_add_cflags" in 11392 (-D*) 11393 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11394 11395 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11396 && test -z "${cf_tst_cflags}" \ 11397 && cf_fix_cppflags=yes 11398 11399 if test "$cf_fix_cppflags" = yes ; then 11400 11401 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11402 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11403 11404 continue 11405 elif test "${cf_tst_cflags}" = "\"'" ; then 11406 11407 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11408 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11409 11410 continue 11411 fi 11412 ;; 11413 esac 11414 case "$CPPFLAGS" in 11415 (*$cf_add_cflags) 11416 ;; 11417 (*) 11418 case "$cf_add_cflags" in 11419 (-D*) 11420 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11421 11422 CPPFLAGS=`echo "$CPPFLAGS" | \ 11423 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11424 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11425 11426 ;; 11427 esac 11428 11429 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 11430 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 11431 11432 ;; 11433 esac 11434 ;; 11435 (*) 11436 11437 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 11438 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 11439 11440 ;; 11441 esac 11442 ;; 11443 (yes) 11444 11445 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11446 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11447 11448 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 11449 11450 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11451 && test -z "${cf_tst_cflags}" \ 11452 && cf_fix_cppflags=no 11453 ;; 11454 esac 11455 done 11456 11457 if test -n "$cf_new_cflags" ; then 11458 11459 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 11460 CFLAGS="${CFLAGS}$cf_new_cflags" 11461 11462 fi 11463 11464 if test -n "$cf_new_cppflags" ; then 11465 11466 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11467 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 11468 11469 fi 11470 11471 if test -n "$cf_new_extra_cppflags" ; then 11472 11473 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 11474 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 11475 11476 fi 11477 11478 cf_add_libs="$LIBS" 11479 # reverse order 11480 cf_add_0lib= 11481 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 11482 # filter duplicates 11483 for cf_add_1lib in $cf_add_0lib; do 11484 for cf_add_2lib in $cf_add_libs; do 11485 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 11486 cf_add_1lib= 11487 break 11488 fi 11489 done 11490 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 11491 done 11492 LIBS="$cf_add_libs" 11493 11494 : 11495 else 11496 cf_pkgconfig_incs= 11497 cf_pkgconfig_libs= 11498 { echo "$as_me:11498: WARNING: unable to find ICE library" >&5 11499 echo "$as_me: WARNING: unable to find ICE library" >&2;} 11500 fi 11501 11502 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then 11503 test -n "$verbose" && echo " found package sm" 1>&6 11504 11505 echo "${as_me:-configure}:11505: testing found package sm ..." 1>&5 11506 11507 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`" 11508 cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`" 11509 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6 11510 11511 echo "${as_me:-configure}:11511: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11512 11513 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6 11514 11515 echo "${as_me:-configure}:11515: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5 11516 11517 cf_fix_cppflags=no 11518 cf_new_cflags= 11519 cf_new_cppflags= 11520 cf_new_extra_cppflags= 11521 11522 for cf_add_cflags in $cf_pkgconfig_incs 11523 do 11524 case "$cf_fix_cppflags" in 11525 (no) 11526 case "$cf_add_cflags" in 11527 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11528 case "$cf_add_cflags" in 11529 (-D*) 11530 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11531 11532 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11533 && test -z "${cf_tst_cflags}" \ 11534 && cf_fix_cppflags=yes 11535 11536 if test "$cf_fix_cppflags" = yes ; then 11537 11538 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11539 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11540 11541 continue 11542 elif test "${cf_tst_cflags}" = "\"'" ; then 11543 11544 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11545 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11546 11547 continue 11548 fi 11549 ;; 11550 esac 11551 case "$CPPFLAGS" in 11552 (*$cf_add_cflags) 11553 ;; 11554 (*) 11555 case "$cf_add_cflags" in 11556 (-D*) 11557 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11558 11559 CPPFLAGS=`echo "$CPPFLAGS" | \ 11560 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11561 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11562 11563 ;; 11564 esac 11565 11566 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 11567 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 11568 11569 ;; 11570 esac 11571 ;; 11572 (*) 11573 11574 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 11575 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 11576 11577 ;; 11578 esac 11579 ;; 11580 (yes) 11581 11582 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11583 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11584 11585 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 11586 11587 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11588 && test -z "${cf_tst_cflags}" \ 11589 && cf_fix_cppflags=no 11590 ;; 11591 esac 11592 done 11593 11594 if test -n "$cf_new_cflags" ; then 11595 11596 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 11597 CFLAGS="${CFLAGS}$cf_new_cflags" 11598 11599 fi 11600 11601 if test -n "$cf_new_cppflags" ; then 11602 11603 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11604 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 11605 11606 fi 11607 11608 if test -n "$cf_new_extra_cppflags" ; then 11609 11610 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 11611 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 11612 11613 fi 11614 11615 cf_add_libs="$LIBS" 11616 # reverse order 11617 cf_add_0lib= 11618 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 11619 # filter duplicates 11620 for cf_add_1lib in $cf_add_0lib; do 11621 for cf_add_2lib in $cf_add_libs; do 11622 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 11623 cf_add_1lib= 11624 break 11625 fi 11626 done 11627 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 11628 done 11629 LIBS="$cf_add_libs" 11630 11631 : 11632 else 11633 cf_pkgconfig_incs= 11634 cf_pkgconfig_libs= 11635 { echo "$as_me:11635: WARNING: unable to find SM library" >&5 11636 echo "$as_me: WARNING: unable to find SM library" >&2;} 11637 fi 11638 11639 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then 11640 test -n "$verbose" && echo " found package xt" 1>&6 11641 11642 echo "${as_me:-configure}:11642: testing found package xt ..." 1>&5 11643 11644 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`" 11645 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`" 11646 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6 11647 11648 echo "${as_me:-configure}:11648: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11649 11650 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6 11651 11652 echo "${as_me:-configure}:11652: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5 11653 11654 cf_fix_cppflags=no 11655 cf_new_cflags= 11656 cf_new_cppflags= 11657 cf_new_extra_cppflags= 11658 11659 for cf_add_cflags in $cf_pkgconfig_incs 11660 do 11661 case "$cf_fix_cppflags" in 11662 (no) 11663 case "$cf_add_cflags" in 11664 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11665 case "$cf_add_cflags" in 11666 (-D*) 11667 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11668 11669 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11670 && test -z "${cf_tst_cflags}" \ 11671 && cf_fix_cppflags=yes 11672 11673 if test "$cf_fix_cppflags" = yes ; then 11674 11675 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11676 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11677 11678 continue 11679 elif test "${cf_tst_cflags}" = "\"'" ; then 11680 11681 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11682 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11683 11684 continue 11685 fi 11686 ;; 11687 esac 11688 case "$CPPFLAGS" in 11689 (*$cf_add_cflags) 11690 ;; 11691 (*) 11692 case "$cf_add_cflags" in 11693 (-D*) 11694 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11695 11696 CPPFLAGS=`echo "$CPPFLAGS" | \ 11697 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11698 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11699 11700 ;; 11701 esac 11702 11703 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 11704 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 11705 11706 ;; 11707 esac 11708 ;; 11709 (*) 11710 11711 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 11712 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 11713 11714 ;; 11715 esac 11716 ;; 11717 (yes) 11718 11719 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11720 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11721 11722 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 11723 11724 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11725 && test -z "${cf_tst_cflags}" \ 11726 && cf_fix_cppflags=no 11727 ;; 11728 esac 11729 done 11730 11731 if test -n "$cf_new_cflags" ; then 11732 11733 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 11734 CFLAGS="${CFLAGS}$cf_new_cflags" 11735 11736 fi 11737 11738 if test -n "$cf_new_cppflags" ; then 11739 11740 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11741 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 11742 11743 fi 11744 11745 if test -n "$cf_new_extra_cppflags" ; then 11746 11747 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 11748 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 11749 11750 fi 11751 11752 cf_add_libs="$LIBS" 11753 # reverse order 11754 cf_add_0lib= 11755 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 11756 # filter duplicates 11757 for cf_add_1lib in $cf_add_0lib; do 11758 for cf_add_2lib in $cf_add_libs; do 11759 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 11760 cf_add_1lib= 11761 break 11762 fi 11763 done 11764 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 11765 done 11766 LIBS="$cf_add_libs" 11767 11768 : 11769 else 11770 cf_pkgconfig_incs= 11771 cf_pkgconfig_libs= 11772 { echo "$as_me:11772: WARNING: unable to find Xt library" >&5 11773 echo "$as_me: WARNING: unable to find Xt library" >&2;} 11774 fi 11775 11776 else 11777 LIBS="$X_PRE_LIBS $LIBS $X_EXTRA_LIBS" 11778 fi 11779 11780 cf_have_X_LIBS=no 11781 11782 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then 11783 test -n "$verbose" && echo " found package xt" 1>&6 11784 11785 echo "${as_me:-configure}:11785: testing found package xt ..." 1>&5 11786 11787 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`" 11788 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`" 11789 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6 11790 11791 echo "${as_me:-configure}:11791: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11792 11793 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6 11794 11795 echo "${as_me:-configure}:11795: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5 11796 11797 cf_fix_cppflags=no 11798 cf_new_cflags= 11799 cf_new_cppflags= 11800 cf_new_extra_cppflags= 11801 11802 for cf_add_cflags in $cf_pkgconfig_incs 11803 do 11804 case "$cf_fix_cppflags" in 11805 (no) 11806 case "$cf_add_cflags" in 11807 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11808 case "$cf_add_cflags" in 11809 (-D*) 11810 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11811 11812 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11813 && test -z "${cf_tst_cflags}" \ 11814 && cf_fix_cppflags=yes 11815 11816 if test "$cf_fix_cppflags" = yes ; then 11817 11818 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11819 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11820 11821 continue 11822 elif test "${cf_tst_cflags}" = "\"'" ; then 11823 11824 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11825 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11826 11827 continue 11828 fi 11829 ;; 11830 esac 11831 case "$CPPFLAGS" in 11832 (*$cf_add_cflags) 11833 ;; 11834 (*) 11835 case "$cf_add_cflags" in 11836 (-D*) 11837 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11838 11839 CPPFLAGS=`echo "$CPPFLAGS" | \ 11840 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11841 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11842 11843 ;; 11844 esac 11845 11846 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 11847 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 11848 11849 ;; 11850 esac 11851 ;; 11852 (*) 11853 11854 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 11855 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 11856 11857 ;; 11858 esac 11859 ;; 11860 (yes) 11861 11862 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11863 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11864 11865 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 11866 11867 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11868 && test -z "${cf_tst_cflags}" \ 11869 && cf_fix_cppflags=no 11870 ;; 11871 esac 11872 done 11873 11874 if test -n "$cf_new_cflags" ; then 11875 11876 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 11877 CFLAGS="${CFLAGS}$cf_new_cflags" 11878 11879 fi 11880 11881 if test -n "$cf_new_cppflags" ; then 11882 11883 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11884 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 11885 11886 fi 11887 11888 if test -n "$cf_new_extra_cppflags" ; then 11889 11890 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 11891 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 11892 11893 fi 11894 11895 cf_add_libs="$LIBS" 11896 # reverse order 11897 cf_add_0lib= 11898 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 11899 # filter duplicates 11900 for cf_add_1lib in $cf_add_0lib; do 11901 for cf_add_2lib in $cf_add_libs; do 11902 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 11903 cf_add_1lib= 11904 break 11905 fi 11906 done 11907 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 11908 done 11909 LIBS="$cf_add_libs" 11910 11911 case "x$LIBS" in 11912 (*-lX11*) 11913 ;; 11914 (*) 11915 # we have an "xt" package, but it may omit Xt's dependency on X11 11916 echo "$as_me:11916: checking for usable X dependency" >&5 11917 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6 11918 if test "${cf_cv_xt_x11_compat+set}" = set; then 11919 echo $ECHO_N "(cached) $ECHO_C" >&6 11920 else 11921 11922 cat >"conftest.$ac_ext" <<_ACEOF 11923 #line 11923 "configure" 11924 #include "confdefs.h" 11925 11926 $ac_includes_default 11927 #include <X11/Xlib.h> 11928 11929 int 11930 main (void) 11931 { 11932 11933 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0); 11934 int rc2 = XClearWindow((Display*) 0, (Window) 0); 11935 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0); 11936 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0); 11937 11938 ; 11939 return 0; 11940 } 11941 _ACEOF 11942 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 11943 if { (eval echo "$as_me:11943: \"$ac_link\"") >&5 11944 (eval $ac_link) 2>&5 11945 ac_status=$? 11946 echo "$as_me:11946: \$? = $ac_status" >&5 11947 (exit "$ac_status"); } && 11948 { ac_try='test -s "conftest$ac_exeext"' 11949 { (eval echo "$as_me:11949: \"$ac_try\"") >&5 11950 (eval $ac_try) 2>&5 11951 ac_status=$? 11952 echo "$as_me:11952: \$? = $ac_status" >&5 11953 (exit "$ac_status"); }; }; then 11954 cf_cv_xt_x11_compat=yes 11955 else 11956 echo "$as_me: failed program was:" >&5 11957 cat "conftest.$ac_ext" >&5 11958 cf_cv_xt_x11_compat=no 11959 fi 11960 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 11961 fi 11962 echo "$as_me:11962: result: $cf_cv_xt_x11_compat" >&5 11963 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6 11964 if test "$cf_cv_xt_x11_compat" = no 11965 then 11966 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6 11967 11968 echo "${as_me:-configure}:11968: testing work around broken X11 dependency ..." 1>&5 11969 11970 # 2010/11/19 - good enough until a working Xt on Xcb is delivered. 11971 11972 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then 11973 test -n "$verbose" && echo " found package x11" 1>&6 11974 11975 echo "${as_me:-configure}:11975: testing found package x11 ..." 1>&5 11976 11977 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`" 11978 cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`" 11979 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6 11980 11981 echo "${as_me:-configure}:11981: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 11982 11983 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6 11984 11985 echo "${as_me:-configure}:11985: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5 11986 11987 cf_fix_cppflags=no 11988 cf_new_cflags= 11989 cf_new_cppflags= 11990 cf_new_extra_cppflags= 11991 11992 for cf_add_cflags in $cf_pkgconfig_incs 11993 do 11994 case "$cf_fix_cppflags" in 11995 (no) 11996 case "$cf_add_cflags" in 11997 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11998 case "$cf_add_cflags" in 11999 (-D*) 12000 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 12001 12002 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12003 && test -z "${cf_tst_cflags}" \ 12004 && cf_fix_cppflags=yes 12005 12006 if test "$cf_fix_cppflags" = yes ; then 12007 12008 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12009 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12010 12011 continue 12012 elif test "${cf_tst_cflags}" = "\"'" ; then 12013 12014 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12015 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12016 12017 continue 12018 fi 12019 ;; 12020 esac 12021 case "$CPPFLAGS" in 12022 (*$cf_add_cflags) 12023 ;; 12024 (*) 12025 case "$cf_add_cflags" in 12026 (-D*) 12027 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 12028 12029 CPPFLAGS=`echo "$CPPFLAGS" | \ 12030 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 12031 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 12032 12033 ;; 12034 esac 12035 12036 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 12037 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 12038 12039 ;; 12040 esac 12041 ;; 12042 (*) 12043 12044 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 12045 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 12046 12047 ;; 12048 esac 12049 ;; 12050 (yes) 12051 12052 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12053 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12054 12055 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 12056 12057 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12058 && test -z "${cf_tst_cflags}" \ 12059 && cf_fix_cppflags=no 12060 ;; 12061 esac 12062 done 12063 12064 if test -n "$cf_new_cflags" ; then 12065 12066 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 12067 CFLAGS="${CFLAGS}$cf_new_cflags" 12068 12069 fi 12070 12071 if test -n "$cf_new_cppflags" ; then 12072 12073 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 12074 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 12075 12076 fi 12077 12078 if test -n "$cf_new_extra_cppflags" ; then 12079 12080 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 12081 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 12082 12083 fi 12084 12085 cf_add_libs="$LIBS" 12086 # reverse order 12087 cf_add_0lib= 12088 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 12089 # filter duplicates 12090 for cf_add_1lib in $cf_add_0lib; do 12091 for cf_add_2lib in $cf_add_libs; do 12092 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 12093 cf_add_1lib= 12094 break 12095 fi 12096 done 12097 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 12098 done 12099 LIBS="$cf_add_libs" 12100 12101 : 12102 else 12103 cf_pkgconfig_incs= 12104 cf_pkgconfig_libs= 12105 12106 test -n "$verbose" && echo " ...before $LIBS" 1>&6 12107 12108 echo "${as_me:-configure}:12108: testing ...before $LIBS ..." 1>&5 12109 12110 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'` 12111 test -n "$verbose" && echo " ...after $LIBS" 1>&6 12112 12113 echo "${as_me:-configure}:12113: testing ...after $LIBS ..." 1>&5 12114 12115 fi 12116 12117 fi 12118 ;; 12119 esac 12120 12121 echo "$as_me:12121: checking for usable X Toolkit package" >&5 12122 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6 12123 if test "${cf_cv_xt_ice_compat+set}" = set; then 12124 echo $ECHO_N "(cached) $ECHO_C" >&6 12125 else 12126 12127 cat >"conftest.$ac_ext" <<_ACEOF 12128 #line 12128 "configure" 12129 #include "confdefs.h" 12130 12131 $ac_includes_default 12132 #include <X11/Shell.h> 12133 12134 int 12135 main (void) 12136 { 12137 int num = IceConnectionNumber(0); (void) num 12138 12139 ; 12140 return 0; 12141 } 12142 _ACEOF 12143 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 12144 if { (eval echo "$as_me:12144: \"$ac_link\"") >&5 12145 (eval $ac_link) 2>&5 12146 ac_status=$? 12147 echo "$as_me:12147: \$? = $ac_status" >&5 12148 (exit "$ac_status"); } && 12149 { ac_try='test -s "conftest$ac_exeext"' 12150 { (eval echo "$as_me:12150: \"$ac_try\"") >&5 12151 (eval $ac_try) 2>&5 12152 ac_status=$? 12153 echo "$as_me:12153: \$? = $ac_status" >&5 12154 (exit "$ac_status"); }; }; then 12155 cf_cv_xt_ice_compat=yes 12156 else 12157 echo "$as_me: failed program was:" >&5 12158 cat "conftest.$ac_ext" >&5 12159 cf_cv_xt_ice_compat=no 12160 fi 12161 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 12162 fi 12163 echo "$as_me:12163: result: $cf_cv_xt_ice_compat" >&5 12164 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6 12165 12166 if test "$cf_cv_xt_ice_compat" = no 12167 then 12168 # workaround for broken ".pc" files used for X Toolkit. 12169 case "x$X_PRE_LIBS" in 12170 (*-lICE*) 12171 case "x$LIBS" in 12172 (*-lICE*) 12173 ;; 12174 (*) 12175 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6 12176 12177 echo "${as_me:-configure}:12177: testing work around broken ICE dependency ..." 1>&5 12178 12179 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then 12180 test -n "$verbose" && echo " found package ice" 1>&6 12181 12182 echo "${as_me:-configure}:12182: testing found package ice ..." 1>&5 12183 12184 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`" 12185 cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`" 12186 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6 12187 12188 echo "${as_me:-configure}:12188: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5 12189 12190 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6 12191 12192 echo "${as_me:-configure}:12192: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5 12193 12194 cf_fix_cppflags=no 12195 cf_new_cflags= 12196 cf_new_cppflags= 12197 cf_new_extra_cppflags= 12198 12199 for cf_add_cflags in $cf_pkgconfig_incs 12200 do 12201 case "$cf_fix_cppflags" in 12202 (no) 12203 case "$cf_add_cflags" in 12204 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 12205 case "$cf_add_cflags" in 12206 (-D*) 12207 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 12208 12209 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12210 && test -z "${cf_tst_cflags}" \ 12211 && cf_fix_cppflags=yes 12212 12213 if test "$cf_fix_cppflags" = yes ; then 12214 12215 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12216 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12217 12218 continue 12219 elif test "${cf_tst_cflags}" = "\"'" ; then 12220 12221 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12222 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12223 12224 continue 12225 fi 12226 ;; 12227 esac 12228 case "$CPPFLAGS" in 12229 (*$cf_add_cflags) 12230 ;; 12231 (*) 12232 case "$cf_add_cflags" in 12233 (-D*) 12234 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 12235 12236 CPPFLAGS=`echo "$CPPFLAGS" | \ 12237 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 12238 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 12239 12240 ;; 12241 esac 12242 12243 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 12244 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 12245 12246 ;; 12247 esac 12248 ;; 12249 (*) 12250 12251 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 12252 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 12253 12254 ;; 12255 esac 12256 ;; 12257 (yes) 12258 12259 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12260 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12261 12262 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 12263 12264 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12265 && test -z "${cf_tst_cflags}" \ 12266 && cf_fix_cppflags=no 12267 ;; 12268 esac 12269 done 12270 12271 if test -n "$cf_new_cflags" ; then 12272 12273 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 12274 CFLAGS="${CFLAGS}$cf_new_cflags" 12275 12276 fi 12277 12278 if test -n "$cf_new_cppflags" ; then 12279 12280 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 12281 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 12282 12283 fi 12284 12285 if test -n "$cf_new_extra_cppflags" ; then 12286 12287 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 12288 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 12289 12290 fi 12291 12292 cf_add_libs="$LIBS" 12293 # reverse order 12294 cf_add_0lib= 12295 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 12296 # filter duplicates 12297 for cf_add_1lib in $cf_add_0lib; do 12298 for cf_add_2lib in $cf_add_libs; do 12299 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 12300 cf_add_1lib= 12301 break 12302 fi 12303 done 12304 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 12305 done 12306 LIBS="$cf_add_libs" 12307 12308 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then 12309 test -n "$verbose" && echo " found package sm" 1>&6 12310 12311 echo "${as_me:-configure}:12311: testing found package sm ..." 1>&5 12312 12313 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`" 12314 cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`" 12315 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6 12316 12317 echo "${as_me:-configure}:12317: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5 12318 12319 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6 12320 12321 echo "${as_me:-configure}:12321: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5 12322 12323 cf_fix_cppflags=no 12324 cf_new_cflags= 12325 cf_new_cppflags= 12326 cf_new_extra_cppflags= 12327 12328 for cf_add_cflags in $cf_pkgconfig_incs 12329 do 12330 case "$cf_fix_cppflags" in 12331 (no) 12332 case "$cf_add_cflags" in 12333 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 12334 case "$cf_add_cflags" in 12335 (-D*) 12336 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 12337 12338 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12339 && test -z "${cf_tst_cflags}" \ 12340 && cf_fix_cppflags=yes 12341 12342 if test "$cf_fix_cppflags" = yes ; then 12343 12344 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12345 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12346 12347 continue 12348 elif test "${cf_tst_cflags}" = "\"'" ; then 12349 12350 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12351 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12352 12353 continue 12354 fi 12355 ;; 12356 esac 12357 case "$CPPFLAGS" in 12358 (*$cf_add_cflags) 12359 ;; 12360 (*) 12361 case "$cf_add_cflags" in 12362 (-D*) 12363 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 12364 12365 CPPFLAGS=`echo "$CPPFLAGS" | \ 12366 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 12367 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 12368 12369 ;; 12370 esac 12371 12372 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 12373 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 12374 12375 ;; 12376 esac 12377 ;; 12378 (*) 12379 12380 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 12381 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 12382 12383 ;; 12384 esac 12385 ;; 12386 (yes) 12387 12388 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12389 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12390 12391 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 12392 12393 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12394 && test -z "${cf_tst_cflags}" \ 12395 && cf_fix_cppflags=no 12396 ;; 12397 esac 12398 done 12399 12400 if test -n "$cf_new_cflags" ; then 12401 12402 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 12403 CFLAGS="${CFLAGS}$cf_new_cflags" 12404 12405 fi 12406 12407 if test -n "$cf_new_cppflags" ; then 12408 12409 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 12410 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 12411 12412 fi 12413 12414 if test -n "$cf_new_extra_cppflags" ; then 12415 12416 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 12417 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 12418 12419 fi 12420 12421 cf_add_libs="$LIBS" 12422 # reverse order 12423 cf_add_0lib= 12424 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 12425 # filter duplicates 12426 for cf_add_1lib in $cf_add_0lib; do 12427 for cf_add_2lib in $cf_add_libs; do 12428 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 12429 cf_add_1lib= 12430 break 12431 fi 12432 done 12433 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 12434 done 12435 LIBS="$cf_add_libs" 12436 12437 : 12438 else 12439 cf_pkgconfig_incs= 12440 cf_pkgconfig_libs= 12441 : 12442 fi 12443 12444 else 12445 cf_pkgconfig_incs= 12446 cf_pkgconfig_libs= 12447 12448 test -n "$verbose" && echo " ...before $LIBS" 1>&6 12449 12450 echo "${as_me:-configure}:12450: testing ...before $LIBS ..." 1>&5 12451 12452 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'` 12453 test -n "$verbose" && echo " ...after $LIBS" 1>&6 12454 12455 echo "${as_me:-configure}:12455: testing ...after $LIBS ..." 1>&5 12456 12457 fi 12458 12459 ;; 12460 esac 12461 ;; 12462 esac 12463 fi 12464 12465 cf_have_X_LIBS=yes 12466 12467 else 12468 cf_pkgconfig_incs= 12469 cf_pkgconfig_libs= 12470 12471 LDFLAGS="$X_LIBS $LDFLAGS" 12472 12473 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6 12474 12475 echo "${as_me:-configure}:12475: testing checking additions to CFLAGS ..." 1>&5 12476 12477 cf_check_cflags="$CFLAGS" 12478 cf_check_cppflags="$CPPFLAGS" 12479 12480 cf_fix_cppflags=no 12481 cf_new_cflags= 12482 cf_new_cppflags= 12483 cf_new_extra_cppflags= 12484 12485 for cf_add_cflags in $X_CFLAGS 12486 do 12487 case "$cf_fix_cppflags" in 12488 (no) 12489 case "$cf_add_cflags" in 12490 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 12491 case "$cf_add_cflags" in 12492 (-D*) 12493 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 12494 12495 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12496 && test -z "${cf_tst_cflags}" \ 12497 && cf_fix_cppflags=yes 12498 12499 if test "$cf_fix_cppflags" = yes ; then 12500 12501 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12502 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12503 12504 continue 12505 elif test "${cf_tst_cflags}" = "\"'" ; then 12506 12507 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12508 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12509 12510 continue 12511 fi 12512 ;; 12513 esac 12514 case "$CPPFLAGS" in 12515 (*$cf_add_cflags) 12516 ;; 12517 (*) 12518 case "$cf_add_cflags" in 12519 (-D*) 12520 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 12521 12522 CPPFLAGS=`echo "$CPPFLAGS" | \ 12523 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 12524 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 12525 12526 ;; 12527 esac 12528 12529 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 12530 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 12531 12532 ;; 12533 esac 12534 ;; 12535 (*) 12536 12537 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 12538 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 12539 12540 ;; 12541 esac 12542 ;; 12543 (yes) 12544 12545 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 12546 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 12547 12548 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 12549 12550 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 12551 && test -z "${cf_tst_cflags}" \ 12552 && cf_fix_cppflags=no 12553 ;; 12554 esac 12555 done 12556 12557 if test -n "$cf_new_cflags" ; then 12558 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 12559 12560 echo "${as_me:-configure}:12560: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 12561 12562 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 12563 CFLAGS="${CFLAGS}$cf_new_cflags" 12564 12565 fi 12566 12567 if test -n "$cf_new_cppflags" ; then 12568 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 12569 12570 echo "${as_me:-configure}:12570: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 12571 12572 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 12573 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 12574 12575 fi 12576 12577 if test -n "$cf_new_extra_cppflags" ; then 12578 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6 12579 12580 echo "${as_me:-configure}:12580: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5 12581 12582 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 12583 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 12584 12585 fi 12586 12587 if test "x$cf_check_cflags" != "x$CFLAGS" ; then 12588 cat >"conftest.$ac_ext" <<_ACEOF 12589 #line 12589 "configure" 12590 #include "confdefs.h" 12591 #include <stdio.h> 12592 int 12593 main (void) 12594 { 12595 printf("Hello world"); 12596 ; 12597 return 0; 12598 } 12599 _ACEOF 12600 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 12601 if { (eval echo "$as_me:12601: \"$ac_link\"") >&5 12602 (eval $ac_link) 2>&5 12603 ac_status=$? 12604 echo "$as_me:12604: \$? = $ac_status" >&5 12605 (exit "$ac_status"); } && 12606 { ac_try='test -s "conftest$ac_exeext"' 12607 { (eval echo "$as_me:12607: \"$ac_try\"") >&5 12608 (eval $ac_try) 2>&5 12609 ac_status=$? 12610 echo "$as_me:12610: \$? = $ac_status" >&5 12611 (exit "$ac_status"); }; }; then 12612 : 12613 else 12614 echo "$as_me: failed program was:" >&5 12615 cat "conftest.$ac_ext" >&5 12616 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6 12617 12618 echo "${as_me:-configure}:12618: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5 12619 12620 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then 12621 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6 12622 12623 echo "${as_me:-configure}:12623: testing but keeping change to \$CPPFLAGS ..." 1>&5 12624 12625 fi 12626 CFLAGS="$cf_check_cflags" 12627 fi 12628 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 12629 fi 12630 12631 echo "$as_me:12631: checking for XOpenDisplay" >&5 12632 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6 12633 if test "${ac_cv_func_XOpenDisplay+set}" = set; then 12634 echo $ECHO_N "(cached) $ECHO_C" >&6 12635 else 12636 cat >"conftest.$ac_ext" <<_ACEOF 12637 #line 12637 "configure" 12638 #include "confdefs.h" 12639 #define XOpenDisplay autoconf_temporary 12640 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 12641 #undef XOpenDisplay 12642 12643 #ifdef __cplusplus 12644 extern "C" 12645 #endif 12646 12647 /* We use char because int might match the return type of a gcc2 12648 builtin and then its argument prototype would still apply. */ 12649 char XOpenDisplay (void); 12650 12651 int 12652 main (void) 12653 { 12654 12655 /* The GNU C library defines stubs for functions which it implements 12656 to always fail with ENOSYS. Some functions are actually named 12657 something starting with __ and the normal name is an alias. */ 12658 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay) 12659 #error found stub for XOpenDisplay 12660 #endif 12661 12662 return XOpenDisplay (); 12663 ; 12664 return 0; 12665 } 12666 _ACEOF 12667 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 12668 if { (eval echo "$as_me:12668: \"$ac_link\"") >&5 12669 (eval $ac_link) 2>&5 12670 ac_status=$? 12671 echo "$as_me:12671: \$? = $ac_status" >&5 12672 (exit "$ac_status"); } && 12673 { ac_try='test -s "conftest$ac_exeext"' 12674 { (eval echo "$as_me:12674: \"$ac_try\"") >&5 12675 (eval $ac_try) 2>&5 12676 ac_status=$? 12677 echo "$as_me:12677: \$? = $ac_status" >&5 12678 (exit "$ac_status"); }; }; then 12679 ac_cv_func_XOpenDisplay=yes 12680 else 12681 echo "$as_me: failed program was:" >&5 12682 cat "conftest.$ac_ext" >&5 12683 ac_cv_func_XOpenDisplay=no 12684 fi 12685 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 12686 fi 12687 echo "$as_me:12687: result: $ac_cv_func_XOpenDisplay" >&5 12688 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6 12689 if test "$ac_cv_func_XOpenDisplay" = yes; then 12690 : 12691 else 12692 12693 echo "$as_me:12693: checking for XOpenDisplay in -lX11" >&5 12694 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6 12695 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then 12696 echo $ECHO_N "(cached) $ECHO_C" >&6 12697 else 12698 ac_check_lib_save_LIBS=$LIBS 12699 LIBS="-lX11 $LIBS" 12700 cat >"conftest.$ac_ext" <<_ACEOF 12701 #line 12701 "configure" 12702 #include "confdefs.h" 12703 12704 /* Override any gcc2 internal prototype to avoid an error. */ 12705 #ifdef __cplusplus 12706 extern "C" 12707 #endif 12708 /* We use char because int might match the return type of a gcc2 12709 builtin and then its argument prototype would still apply. */ 12710 char XOpenDisplay (void); 12711 int 12712 main (void) 12713 { 12714 XOpenDisplay (); 12715 ; 12716 return 0; 12717 } 12718 _ACEOF 12719 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 12720 if { (eval echo "$as_me:12720: \"$ac_link\"") >&5 12721 (eval $ac_link) 2>&5 12722 ac_status=$? 12723 echo "$as_me:12723: \$? = $ac_status" >&5 12724 (exit "$ac_status"); } && 12725 { ac_try='test -s "conftest$ac_exeext"' 12726 { (eval echo "$as_me:12726: \"$ac_try\"") >&5 12727 (eval $ac_try) 2>&5 12728 ac_status=$? 12729 echo "$as_me:12729: \$? = $ac_status" >&5 12730 (exit "$ac_status"); }; }; then 12731 ac_cv_lib_X11_XOpenDisplay=yes 12732 else 12733 echo "$as_me: failed program was:" >&5 12734 cat "conftest.$ac_ext" >&5 12735 ac_cv_lib_X11_XOpenDisplay=no 12736 fi 12737 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 12738 LIBS=$ac_check_lib_save_LIBS 12739 fi 12740 echo "$as_me:12740: result: $ac_cv_lib_X11_XOpenDisplay" >&5 12741 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6 12742 if test "$ac_cv_lib_X11_XOpenDisplay" = yes; then 12743 12744 cf_add_libs="$LIBS" 12745 # reverse order 12746 cf_add_0lib= 12747 for cf_add_1lib in -lX11; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 12748 # filter duplicates 12749 for cf_add_1lib in $cf_add_0lib; do 12750 for cf_add_2lib in $cf_add_libs; do 12751 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 12752 cf_add_1lib= 12753 break 12754 fi 12755 done 12756 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 12757 done 12758 LIBS="$cf_add_libs" 12759 12760 fi 12761 12762 fi 12763 12764 echo "$as_me:12764: checking for XtAppInitialize" >&5 12765 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6 12766 if test "${ac_cv_func_XtAppInitialize+set}" = set; then 12767 echo $ECHO_N "(cached) $ECHO_C" >&6 12768 else 12769 cat >"conftest.$ac_ext" <<_ACEOF 12770 #line 12770 "configure" 12771 #include "confdefs.h" 12772 #define XtAppInitialize autoconf_temporary 12773 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 12774 #undef XtAppInitialize 12775 12776 #ifdef __cplusplus 12777 extern "C" 12778 #endif 12779 12780 /* We use char because int might match the return type of a gcc2 12781 builtin and then its argument prototype would still apply. */ 12782 char XtAppInitialize (void); 12783 12784 int 12785 main (void) 12786 { 12787 12788 /* The GNU C library defines stubs for functions which it implements 12789 to always fail with ENOSYS. Some functions are actually named 12790 something starting with __ and the normal name is an alias. */ 12791 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize) 12792 #error found stub for XtAppInitialize 12793 #endif 12794 12795 return XtAppInitialize (); 12796 ; 12797 return 0; 12798 } 12799 _ACEOF 12800 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 12801 if { (eval echo "$as_me:12801: \"$ac_link\"") >&5 12802 (eval $ac_link) 2>&5 12803 ac_status=$? 12804 echo "$as_me:12804: \$? = $ac_status" >&5 12805 (exit "$ac_status"); } && 12806 { ac_try='test -s "conftest$ac_exeext"' 12807 { (eval echo "$as_me:12807: \"$ac_try\"") >&5 12808 (eval $ac_try) 2>&5 12809 ac_status=$? 12810 echo "$as_me:12810: \$? = $ac_status" >&5 12811 (exit "$ac_status"); }; }; then 12812 ac_cv_func_XtAppInitialize=yes 12813 else 12814 echo "$as_me: failed program was:" >&5 12815 cat "conftest.$ac_ext" >&5 12816 ac_cv_func_XtAppInitialize=no 12817 fi 12818 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 12819 fi 12820 echo "$as_me:12820: result: $ac_cv_func_XtAppInitialize" >&5 12821 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6 12822 if test "$ac_cv_func_XtAppInitialize" = yes; then 12823 : 12824 else 12825 12826 echo "$as_me:12826: checking for XtAppInitialize in -lXt" >&5 12827 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6 12828 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then 12829 echo $ECHO_N "(cached) $ECHO_C" >&6 12830 else 12831 ac_check_lib_save_LIBS=$LIBS 12832 LIBS="-lXt $LIBS" 12833 cat >"conftest.$ac_ext" <<_ACEOF 12834 #line 12834 "configure" 12835 #include "confdefs.h" 12836 12837 /* Override any gcc2 internal prototype to avoid an error. */ 12838 #ifdef __cplusplus 12839 extern "C" 12840 #endif 12841 /* We use char because int might match the return type of a gcc2 12842 builtin and then its argument prototype would still apply. */ 12843 char XtAppInitialize (void); 12844 int 12845 main (void) 12846 { 12847 XtAppInitialize (); 12848 ; 12849 return 0; 12850 } 12851 _ACEOF 12852 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 12853 if { (eval echo "$as_me:12853: \"$ac_link\"") >&5 12854 (eval $ac_link) 2>&5 12855 ac_status=$? 12856 echo "$as_me:12856: \$? = $ac_status" >&5 12857 (exit "$ac_status"); } && 12858 { ac_try='test -s "conftest$ac_exeext"' 12859 { (eval echo "$as_me:12859: \"$ac_try\"") >&5 12860 (eval $ac_try) 2>&5 12861 ac_status=$? 12862 echo "$as_me:12862: \$? = $ac_status" >&5 12863 (exit "$ac_status"); }; }; then 12864 ac_cv_lib_Xt_XtAppInitialize=yes 12865 else 12866 echo "$as_me: failed program was:" >&5 12867 cat "conftest.$ac_ext" >&5 12868 ac_cv_lib_Xt_XtAppInitialize=no 12869 fi 12870 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 12871 LIBS=$ac_check_lib_save_LIBS 12872 fi 12873 echo "$as_me:12873: result: $ac_cv_lib_Xt_XtAppInitialize" >&5 12874 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6 12875 if test "$ac_cv_lib_Xt_XtAppInitialize" = yes; then 12876 12877 cat >>confdefs.h <<\EOF 12878 #define HAVE_LIBXT 1 12879 EOF 12880 12881 cf_have_X_LIBS=Xt 12882 LIBS="-lXt $LIBS" 12883 fi 12884 12885 fi 12886 12887 fi 12888 12889 if test "$cf_have_X_LIBS" = no ; then 12890 { echo "$as_me:12890: WARNING: Unable to successfully link X Toolkit library (-lXt) with 12891 test program. You will have to check and add the proper libraries by hand 12892 to makefile." >&5 12893 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with 12894 test program. You will have to check and add the proper libraries by hand 12895 to makefile." >&2;} 12896 fi 12897 12898 for ac_header in \ 12899 X11/DECkeysym.h \ 12900 X11/Sunkeysym.h \ 12901 X11/XF86keysym.h \ 12902 X11/XKBlib.h \ 12903 X11/TranslateI.h \ 12904 X11/Xpoll.h \ 12905 X11/extensions/XKB.h \ 12906 12907 do 12908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12909 echo "$as_me:12909: checking for $ac_header" >&5 12910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12911 if eval "test \"\${$as_ac_Header+set}\" = set"; then 12912 echo $ECHO_N "(cached) $ECHO_C" >&6 12913 else 12914 cat >"conftest.$ac_ext" <<_ACEOF 12915 #line 12915 "configure" 12916 #include "confdefs.h" 12917 #include <$ac_header> 12918 _ACEOF 12919 if { (eval echo "$as_me:12919: \"$ac_cpp "conftest.$ac_ext"\"") >&5 12920 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 12921 ac_status=$? 12922 $EGREP -v '^ *\+' conftest.er1 >conftest.err 12923 rm -f conftest.er1 12924 cat conftest.err >&5 12925 echo "$as_me:12925: \$? = $ac_status" >&5 12926 (exit "$ac_status"); } >/dev/null; then 12927 if test -s conftest.err; then 12928 ac_cpp_err=$ac_c_preproc_warn_flag 12929 else 12930 ac_cpp_err= 12931 fi 12932 else 12933 ac_cpp_err=yes 12934 fi 12935 if test -z "$ac_cpp_err"; then 12936 eval "$as_ac_Header=yes" 12937 else 12938 echo "$as_me: failed program was:" >&5 12939 cat "conftest.$ac_ext" >&5 12940 eval "$as_ac_Header=no" 12941 fi 12942 rm -f conftest.err "conftest.$ac_ext" 12943 fi 12944 echo "$as_me:12944: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 12945 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 12946 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 12947 cat >>confdefs.h <<EOF 12948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12949 EOF 12950 12951 fi 12952 done 12953 12954 ICON_SUFFIX=.xbm 12955 12956 cf_save_cppflags="${CPPFLAGS}" 12957 cf_save_ldflags="${LDFLAGS}" 12958 12959 echo "$as_me:12959: checking if you want to use the Xpm library for colored icon" >&5 12960 echo $ECHO_N "checking if you want to use the Xpm library for colored icon... $ECHO_C" >&6 12961 12962 # Check whether --with-xpm or --without-xpm was given. 12963 if test "${with_xpm+set}" = set; then 12964 withval="$with_xpm" 12965 cf_Xpm_library="$withval" 12966 else 12967 cf_Xpm_library=yes 12968 fi; 12969 echo "$as_me:12969: result: $cf_Xpm_library" >&5 12970 echo "${ECHO_T}$cf_Xpm_library" >&6 12971 12972 if test "$cf_Xpm_library" != no ; then 12973 if test "$cf_Xpm_library" != yes ; then 12974 CPPFLAGS="$CPPFLAGS -I$withval/include" 12975 LDFLAGS="$LDFLAGS -L$withval/lib" 12976 fi 12977 echo "$as_me:12977: checking for X11/xpm.h" >&5 12978 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 12979 if test "${ac_cv_header_X11_xpm_h+set}" = set; then 12980 echo $ECHO_N "(cached) $ECHO_C" >&6 12981 else 12982 cat >"conftest.$ac_ext" <<_ACEOF 12983 #line 12983 "configure" 12984 #include "confdefs.h" 12985 #include <X11/xpm.h> 12986 _ACEOF 12987 if { (eval echo "$as_me:12987: \"$ac_cpp "conftest.$ac_ext"\"") >&5 12988 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 12989 ac_status=$? 12990 $EGREP -v '^ *\+' conftest.er1 >conftest.err 12991 rm -f conftest.er1 12992 cat conftest.err >&5 12993 echo "$as_me:12993: \$? = $ac_status" >&5 12994 (exit "$ac_status"); } >/dev/null; then 12995 if test -s conftest.err; then 12996 ac_cpp_err=$ac_c_preproc_warn_flag 12997 else 12998 ac_cpp_err= 12999 fi 13000 else 13001 ac_cpp_err=yes 13002 fi 13003 if test -z "$ac_cpp_err"; then 13004 ac_cv_header_X11_xpm_h=yes 13005 else 13006 echo "$as_me: failed program was:" >&5 13007 cat "conftest.$ac_ext" >&5 13008 ac_cv_header_X11_xpm_h=no 13009 fi 13010 rm -f conftest.err "conftest.$ac_ext" 13011 fi 13012 echo "$as_me:13012: result: $ac_cv_header_X11_xpm_h" >&5 13013 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 13014 if test "$ac_cv_header_X11_xpm_h" = yes; then 13015 13016 echo "$as_me:13016: checking for XpmCreatePixmapFromData in -lXpm" >&5 13017 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6 13018 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then 13019 echo $ECHO_N "(cached) $ECHO_C" >&6 13020 else 13021 ac_check_lib_save_LIBS=$LIBS 13022 LIBS="-lXpm -lX11 $X_LIBS $LIBS" 13023 cat >"conftest.$ac_ext" <<_ACEOF 13024 #line 13024 "configure" 13025 #include "confdefs.h" 13026 13027 /* Override any gcc2 internal prototype to avoid an error. */ 13028 #ifdef __cplusplus 13029 extern "C" 13030 #endif 13031 /* We use char because int might match the return type of a gcc2 13032 builtin and then its argument prototype would still apply. */ 13033 char XpmCreatePixmapFromData (void); 13034 int 13035 main (void) 13036 { 13037 XpmCreatePixmapFromData (); 13038 ; 13039 return 0; 13040 } 13041 _ACEOF 13042 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 13043 if { (eval echo "$as_me:13043: \"$ac_link\"") >&5 13044 (eval $ac_link) 2>&5 13045 ac_status=$? 13046 echo "$as_me:13046: \$? = $ac_status" >&5 13047 (exit "$ac_status"); } && 13048 { ac_try='test -s "conftest$ac_exeext"' 13049 { (eval echo "$as_me:13049: \"$ac_try\"") >&5 13050 (eval $ac_try) 2>&5 13051 ac_status=$? 13052 echo "$as_me:13052: \$? = $ac_status" >&5 13053 (exit "$ac_status"); }; }; then 13054 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes 13055 else 13056 echo "$as_me: failed program was:" >&5 13057 cat "conftest.$ac_ext" >&5 13058 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no 13059 fi 13060 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 13061 LIBS=$ac_check_lib_save_LIBS 13062 fi 13063 echo "$as_me:13063: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 13064 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6 13065 if test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = yes; then 13066 13067 cat >>confdefs.h <<\EOF 13068 #define HAVE_LIBXPM 1 13069 EOF 13070 13071 ICON_SUFFIX=.xpm 13072 LIBS="-lXpm $LIBS" 13073 else 13074 CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}" 13075 fi 13076 13077 else 13078 CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}" 13079 fi 13080 13081 fi 13082 13083 echo "$as_me:13083: checking if you want to use the Xinerama extension" >&5 13084 echo $ECHO_N "checking if you want to use the Xinerama extension... $ECHO_C" >&6 13085 13086 # Check whether --with-xinerama or --without-xinerama was given. 13087 if test "${with_xinerama+set}" = set; then 13088 withval="$with_xinerama" 13089 cf_with_xinerama="$withval" 13090 else 13091 cf_with_xinerama=yes 13092 fi; 13093 echo "$as_me:13093: result: $cf_with_xinerama" >&5 13094 echo "${ECHO_T}$cf_with_xinerama" >&6 13095 if test "$cf_with_xinerama" = yes; then 13096 13097 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xinerama"; then 13098 test -n "$verbose" && echo " found package xinerama" 1>&6 13099 13100 echo "${as_me:-configure}:13100: testing found package xinerama ..." 1>&5 13101 13102 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xinerama" 2>/dev/null`" 13103 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xinerama" 2>/dev/null`" 13104 test -n "$verbose" && echo " package xinerama CFLAGS: $cf_pkgconfig_incs" 1>&6 13105 13106 echo "${as_me:-configure}:13106: testing package xinerama CFLAGS: $cf_pkgconfig_incs ..." 1>&5 13107 13108 test -n "$verbose" && echo " package xinerama LIBS: $cf_pkgconfig_libs" 1>&6 13109 13110 echo "${as_me:-configure}:13110: testing package xinerama LIBS: $cf_pkgconfig_libs ..." 1>&5 13111 13112 cf_fix_cppflags=no 13113 cf_new_cflags= 13114 cf_new_cppflags= 13115 cf_new_extra_cppflags= 13116 13117 for cf_add_cflags in $cf_pkgconfig_incs 13118 do 13119 case "$cf_fix_cppflags" in 13120 (no) 13121 case "$cf_add_cflags" in 13122 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 13123 case "$cf_add_cflags" in 13124 (-D*) 13125 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 13126 13127 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13128 && test -z "${cf_tst_cflags}" \ 13129 && cf_fix_cppflags=yes 13130 13131 if test "$cf_fix_cppflags" = yes ; then 13132 13133 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13134 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13135 13136 continue 13137 elif test "${cf_tst_cflags}" = "\"'" ; then 13138 13139 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13140 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13141 13142 continue 13143 fi 13144 ;; 13145 esac 13146 case "$CPPFLAGS" in 13147 (*$cf_add_cflags) 13148 ;; 13149 (*) 13150 case "$cf_add_cflags" in 13151 (-D*) 13152 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 13153 13154 CPPFLAGS=`echo "$CPPFLAGS" | \ 13155 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 13156 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 13157 13158 ;; 13159 esac 13160 13161 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 13162 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 13163 13164 ;; 13165 esac 13166 ;; 13167 (*) 13168 13169 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 13170 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 13171 13172 ;; 13173 esac 13174 ;; 13175 (yes) 13176 13177 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13178 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13179 13180 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 13181 13182 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13183 && test -z "${cf_tst_cflags}" \ 13184 && cf_fix_cppflags=no 13185 ;; 13186 esac 13187 done 13188 13189 if test -n "$cf_new_cflags" ; then 13190 13191 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 13192 CFLAGS="${CFLAGS}$cf_new_cflags" 13193 13194 fi 13195 13196 if test -n "$cf_new_cppflags" ; then 13197 13198 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 13199 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 13200 13201 fi 13202 13203 if test -n "$cf_new_extra_cppflags" ; then 13204 13205 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 13206 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 13207 13208 fi 13209 13210 cf_add_libs="$LIBS" 13211 # reverse order 13212 cf_add_0lib= 13213 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 13214 # filter duplicates 13215 for cf_add_1lib in $cf_add_0lib; do 13216 for cf_add_2lib in $cf_add_libs; do 13217 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 13218 cf_add_1lib= 13219 break 13220 fi 13221 done 13222 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 13223 done 13224 LIBS="$cf_add_libs" 13225 13226 cat >>confdefs.h <<\EOF 13227 #define HAVE_X11_EXTENSIONS_XINERAMA_H 1 13228 EOF 13229 13230 else 13231 cf_pkgconfig_incs= 13232 cf_pkgconfig_libs= 13233 13234 echo "$as_me:13234: checking for XineramaQueryScreens in -lXinerama" >&5 13235 echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6 13236 if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then 13237 echo $ECHO_N "(cached) $ECHO_C" >&6 13238 else 13239 ac_check_lib_save_LIBS=$LIBS 13240 LIBS="-lXinerama $LIBS" 13241 cat >"conftest.$ac_ext" <<_ACEOF 13242 #line 13242 "configure" 13243 #include "confdefs.h" 13244 13245 /* Override any gcc2 internal prototype to avoid an error. */ 13246 #ifdef __cplusplus 13247 extern "C" 13248 #endif 13249 /* We use char because int might match the return type of a gcc2 13250 builtin and then its argument prototype would still apply. */ 13251 char XineramaQueryScreens (void); 13252 int 13253 main (void) 13254 { 13255 XineramaQueryScreens (); 13256 ; 13257 return 0; 13258 } 13259 _ACEOF 13260 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 13261 if { (eval echo "$as_me:13261: \"$ac_link\"") >&5 13262 (eval $ac_link) 2>&5 13263 ac_status=$? 13264 echo "$as_me:13264: \$? = $ac_status" >&5 13265 (exit "$ac_status"); } && 13266 { ac_try='test -s "conftest$ac_exeext"' 13267 { (eval echo "$as_me:13267: \"$ac_try\"") >&5 13268 (eval $ac_try) 2>&5 13269 ac_status=$? 13270 echo "$as_me:13270: \$? = $ac_status" >&5 13271 (exit "$ac_status"); }; }; then 13272 ac_cv_lib_Xinerama_XineramaQueryScreens=yes 13273 else 13274 echo "$as_me: failed program was:" >&5 13275 cat "conftest.$ac_ext" >&5 13276 ac_cv_lib_Xinerama_XineramaQueryScreens=no 13277 fi 13278 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 13279 LIBS=$ac_check_lib_save_LIBS 13280 fi 13281 echo "$as_me:13281: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5 13282 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6 13283 if test "$ac_cv_lib_Xinerama_XineramaQueryScreens" = yes; then 13284 13285 cf_add_libs="$LIBS" 13286 # reverse order 13287 cf_add_0lib= 13288 for cf_add_1lib in -lXinerama; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 13289 # filter duplicates 13290 for cf_add_1lib in $cf_add_0lib; do 13291 for cf_add_2lib in $cf_add_libs; do 13292 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 13293 cf_add_1lib= 13294 break 13295 fi 13296 done 13297 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 13298 done 13299 LIBS="$cf_add_libs" 13300 13301 for ac_header in \ 13302 X11/extensions/Xinerama.h \ 13303 13304 do 13305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13306 echo "$as_me:13306: checking for $ac_header" >&5 13307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13308 if eval "test \"\${$as_ac_Header+set}\" = set"; then 13309 echo $ECHO_N "(cached) $ECHO_C" >&6 13310 else 13311 cat >"conftest.$ac_ext" <<_ACEOF 13312 #line 13312 "configure" 13313 #include "confdefs.h" 13314 #include <$ac_header> 13315 _ACEOF 13316 if { (eval echo "$as_me:13316: \"$ac_cpp "conftest.$ac_ext"\"") >&5 13317 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 13318 ac_status=$? 13319 $EGREP -v '^ *\+' conftest.er1 >conftest.err 13320 rm -f conftest.er1 13321 cat conftest.err >&5 13322 echo "$as_me:13322: \$? = $ac_status" >&5 13323 (exit "$ac_status"); } >/dev/null; then 13324 if test -s conftest.err; then 13325 ac_cpp_err=$ac_c_preproc_warn_flag 13326 else 13327 ac_cpp_err= 13328 fi 13329 else 13330 ac_cpp_err=yes 13331 fi 13332 if test -z "$ac_cpp_err"; then 13333 eval "$as_ac_Header=yes" 13334 else 13335 echo "$as_me: failed program was:" >&5 13336 cat "conftest.$ac_ext" >&5 13337 eval "$as_ac_Header=no" 13338 fi 13339 rm -f conftest.err "conftest.$ac_ext" 13340 fi 13341 echo "$as_me:13341: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 13342 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 13343 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 13344 cat >>confdefs.h <<EOF 13345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13346 EOF 13347 13348 fi 13349 done 13350 13351 fi 13352 13353 fi 13354 13355 fi 13356 13357 cf_x_athena=${cf_x_athena:-Xaw} 13358 13359 echo "$as_me:13359: checking if you want to link with Xaw 3d library" >&5 13360 echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6 13361 withval= 13362 13363 # Check whether --with-Xaw3d or --without-Xaw3d was given. 13364 if test "${with_Xaw3d+set}" = set; then 13365 withval="$with_Xaw3d" 13366 13367 fi; 13368 if test "$withval" = yes ; then 13369 cf_x_athena=Xaw3d 13370 echo "$as_me:13370: result: yes" >&5 13371 echo "${ECHO_T}yes" >&6 13372 else 13373 echo "$as_me:13373: result: no" >&5 13374 echo "${ECHO_T}no" >&6 13375 fi 13376 13377 echo "$as_me:13377: checking if you want to link with Xaw 3d xft library" >&5 13378 echo $ECHO_N "checking if you want to link with Xaw 3d xft library... $ECHO_C" >&6 13379 withval= 13380 13381 # Check whether --with-Xaw3dxft or --without-Xaw3dxft was given. 13382 if test "${with_Xaw3dxft+set}" = set; then 13383 withval="$with_Xaw3dxft" 13384 13385 fi; 13386 if test "$withval" = yes ; then 13387 cf_x_athena=Xaw3dxft 13388 echo "$as_me:13388: result: yes" >&5 13389 echo "${ECHO_T}yes" >&6 13390 else 13391 echo "$as_me:13391: result: no" >&5 13392 echo "${ECHO_T}no" >&6 13393 fi 13394 13395 echo "$as_me:13395: checking if you want to link with neXT Athena library" >&5 13396 echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6 13397 withval= 13398 13399 # Check whether --with-neXtaw or --without-neXtaw was given. 13400 if test "${with_neXtaw+set}" = set; then 13401 withval="$with_neXtaw" 13402 13403 fi; 13404 if test "$withval" = yes ; then 13405 cf_x_athena=neXtaw 13406 echo "$as_me:13406: result: yes" >&5 13407 echo "${ECHO_T}yes" >&6 13408 else 13409 echo "$as_me:13409: result: no" >&5 13410 echo "${ECHO_T}no" >&6 13411 fi 13412 13413 echo "$as_me:13413: checking if you want to link with Athena-Plus library" >&5 13414 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6 13415 withval= 13416 13417 # Check whether --with-XawPlus or --without-XawPlus was given. 13418 if test "${with_XawPlus+set}" = set; then 13419 withval="$with_XawPlus" 13420 13421 fi; 13422 if test "$withval" = yes ; then 13423 cf_x_athena=XawPlus 13424 echo "$as_me:13424: result: yes" >&5 13425 echo "${ECHO_T}yes" >&6 13426 else 13427 echo "$as_me:13427: result: no" >&5 13428 echo "${ECHO_T}no" >&6 13429 fi 13430 13431 cf_x_athena_lib="" 13432 13433 if test "$PKG_CONFIG" != none ; then 13434 cf_athena_list= 13435 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6" 13436 for cf_athena_pkg in \ 13437 $cf_athena_list \ 13438 ${cf_x_athena} \ 13439 ${cf_x_athena}-devel \ 13440 lib${cf_x_athena} \ 13441 lib${cf_x_athena}-devel 13442 do 13443 13444 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_athena_pkg"; then 13445 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6 13446 13447 echo "${as_me:-configure}:13447: testing found package $cf_athena_pkg ..." 1>&5 13448 13449 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_athena_pkg" 2>/dev/null`" 13450 cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_athena_pkg" 2>/dev/null`" 13451 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6 13452 13453 echo "${as_me:-configure}:13453: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5 13454 13455 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6 13456 13457 echo "${as_me:-configure}:13457: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5 13458 13459 cf_fix_cppflags=no 13460 cf_new_cflags= 13461 cf_new_cppflags= 13462 cf_new_extra_cppflags= 13463 13464 for cf_add_cflags in $cf_pkgconfig_incs 13465 do 13466 case "$cf_fix_cppflags" in 13467 (no) 13468 case "$cf_add_cflags" in 13469 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 13470 case "$cf_add_cflags" in 13471 (-D*) 13472 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 13473 13474 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13475 && test -z "${cf_tst_cflags}" \ 13476 && cf_fix_cppflags=yes 13477 13478 if test "$cf_fix_cppflags" = yes ; then 13479 13480 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13481 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13482 13483 continue 13484 elif test "${cf_tst_cflags}" = "\"'" ; then 13485 13486 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13487 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13488 13489 continue 13490 fi 13491 ;; 13492 esac 13493 case "$CPPFLAGS" in 13494 (*$cf_add_cflags) 13495 ;; 13496 (*) 13497 case "$cf_add_cflags" in 13498 (-D*) 13499 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 13500 13501 CPPFLAGS=`echo "$CPPFLAGS" | \ 13502 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 13503 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 13504 13505 ;; 13506 esac 13507 13508 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 13509 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 13510 13511 ;; 13512 esac 13513 ;; 13514 (*) 13515 13516 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 13517 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 13518 13519 ;; 13520 esac 13521 ;; 13522 (yes) 13523 13524 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13525 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13526 13527 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 13528 13529 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13530 && test -z "${cf_tst_cflags}" \ 13531 && cf_fix_cppflags=no 13532 ;; 13533 esac 13534 done 13535 13536 if test -n "$cf_new_cflags" ; then 13537 13538 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 13539 CFLAGS="${CFLAGS}$cf_new_cflags" 13540 13541 fi 13542 13543 if test -n "$cf_new_cppflags" ; then 13544 13545 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 13546 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 13547 13548 fi 13549 13550 if test -n "$cf_new_extra_cppflags" ; then 13551 13552 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 13553 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 13554 13555 fi 13556 13557 cf_add_libs="$LIBS" 13558 # reverse order 13559 cf_add_0lib= 13560 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 13561 # filter duplicates 13562 for cf_add_1lib in $cf_add_0lib; do 13563 for cf_add_2lib in $cf_add_libs; do 13564 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 13565 cf_add_1lib= 13566 break 13567 fi 13568 done 13569 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 13570 done 13571 LIBS="$cf_add_libs" 13572 13573 cf_x_athena_lib="$cf_pkgconfig_libs" 13574 13575 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 13576 13577 cat >>confdefs.h <<EOF 13578 #define $cf_x_athena_LIBS 1 13579 EOF 13580 13581 for cf_trim_lib in Xmu Xt X11 13582 do 13583 case "$LIBS" in 13584 (*-l$cf_trim_lib\ *-l$cf_trim_lib*) 13585 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'` 13586 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6 13587 13588 echo "${as_me:-configure}:13588: testing ..trimmed $LIBS ..." 1>&5 13589 13590 ;; 13591 esac 13592 done 13593 13594 echo "$as_me:13594: checking for usable $cf_x_athena/Xmu package" >&5 13595 echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6 13596 if test "${cf_cv_xaw_compat+set}" = set; then 13597 echo $ECHO_N "(cached) $ECHO_C" >&6 13598 else 13599 13600 cat >"conftest.$ac_ext" <<_ACEOF 13601 #line 13601 "configure" 13602 #include "confdefs.h" 13603 13604 $ac_includes_default 13605 #include <X11/Xmu/CharSet.h> 13606 13607 int 13608 main (void) 13609 { 13610 13611 int check = XmuCompareISOLatin1("big", "small"); 13612 (void)check; 13613 13614 ; 13615 return 0; 13616 } 13617 _ACEOF 13618 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 13619 if { (eval echo "$as_me:13619: \"$ac_link\"") >&5 13620 (eval $ac_link) 2>&5 13621 ac_status=$? 13622 echo "$as_me:13622: \$? = $ac_status" >&5 13623 (exit "$ac_status"); } && 13624 { ac_try='test -s "conftest$ac_exeext"' 13625 { (eval echo "$as_me:13625: \"$ac_try\"") >&5 13626 (eval $ac_try) 2>&5 13627 ac_status=$? 13628 echo "$as_me:13628: \$? = $ac_status" >&5 13629 (exit "$ac_status"); }; }; then 13630 cf_cv_xaw_compat=yes 13631 else 13632 echo "$as_me: failed program was:" >&5 13633 cat "conftest.$ac_ext" >&5 13634 cf_cv_xaw_compat=no 13635 fi 13636 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 13637 fi 13638 echo "$as_me:13638: result: $cf_cv_xaw_compat" >&5 13639 echo "${ECHO_T}$cf_cv_xaw_compat" >&6 13640 13641 if test "$cf_cv_xaw_compat" = no 13642 then 13643 # workaround for broken ".pc" files... 13644 case "$cf_x_athena_lib" in 13645 (*-lXmu*) 13646 ;; 13647 (*) 13648 test -n "$verbose" && echo " work around broken package" 1>&6 13649 13650 echo "${as_me:-configure}:13650: testing work around broken package ..." 1>&5 13651 13652 cf_save_xmu="$LIBS" 13653 cf_first_lib=`echo "$cf_save_xmu" | sed -e 's/^ *//' -e 's/ .*//'` 13654 13655 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xmu"; then 13656 test -n "$verbose" && echo " found package xmu" 1>&6 13657 13658 echo "${as_me:-configure}:13658: testing found package xmu ..." 1>&5 13659 13660 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xmu" 2>/dev/null`" 13661 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xmu" 2>/dev/null`" 13662 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6 13663 13664 echo "${as_me:-configure}:13664: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5 13665 13666 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6 13667 13668 echo "${as_me:-configure}:13668: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5 13669 13670 cf_fix_cppflags=no 13671 cf_new_cflags= 13672 cf_new_cppflags= 13673 cf_new_extra_cppflags= 13674 13675 for cf_add_cflags in $cf_pkgconfig_incs 13676 do 13677 case "$cf_fix_cppflags" in 13678 (no) 13679 case "$cf_add_cflags" in 13680 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 13681 case "$cf_add_cflags" in 13682 (-D*) 13683 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 13684 13685 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13686 && test -z "${cf_tst_cflags}" \ 13687 && cf_fix_cppflags=yes 13688 13689 if test "$cf_fix_cppflags" = yes ; then 13690 13691 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13692 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13693 13694 continue 13695 elif test "${cf_tst_cflags}" = "\"'" ; then 13696 13697 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13698 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13699 13700 continue 13701 fi 13702 ;; 13703 esac 13704 case "$CPPFLAGS" in 13705 (*$cf_add_cflags) 13706 ;; 13707 (*) 13708 case "$cf_add_cflags" in 13709 (-D*) 13710 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 13711 13712 CPPFLAGS=`echo "$CPPFLAGS" | \ 13713 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 13714 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 13715 13716 ;; 13717 esac 13718 13719 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 13720 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 13721 13722 ;; 13723 esac 13724 ;; 13725 (*) 13726 13727 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 13728 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 13729 13730 ;; 13731 esac 13732 ;; 13733 (yes) 13734 13735 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13736 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13737 13738 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 13739 13740 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13741 && test -z "${cf_tst_cflags}" \ 13742 && cf_fix_cppflags=no 13743 ;; 13744 esac 13745 done 13746 13747 if test -n "$cf_new_cflags" ; then 13748 13749 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 13750 CFLAGS="${CFLAGS}$cf_new_cflags" 13751 13752 fi 13753 13754 if test -n "$cf_new_cppflags" ; then 13755 13756 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 13757 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 13758 13759 fi 13760 13761 if test -n "$cf_new_extra_cppflags" ; then 13762 13763 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 13764 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 13765 13766 fi 13767 13768 cf_add_libs="$LIBS" 13769 # reverse order 13770 cf_add_0lib= 13771 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 13772 # filter duplicates 13773 for cf_add_1lib in $cf_add_0lib; do 13774 for cf_add_2lib in $cf_add_libs; do 13775 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 13776 cf_add_1lib= 13777 break 13778 fi 13779 done 13780 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 13781 done 13782 LIBS="$cf_add_libs" 13783 13784 LIBS="$cf_save_xmu" 13785 13786 test -n "$verbose" && echo " ...before $LIBS" 1>&6 13787 13788 echo "${as_me:-configure}:13788: testing ...before $LIBS ..." 1>&5 13789 13790 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib $cf_pkgconfig_libs %" -e 's% % %g'` 13791 test -n "$verbose" && echo " ...after $LIBS" 1>&6 13792 13793 echo "${as_me:-configure}:13793: testing ...after $LIBS ..." 1>&5 13794 13795 else 13796 cf_pkgconfig_incs= 13797 cf_pkgconfig_libs= 13798 13799 test -n "$verbose" && echo " ...before $LIBS" 1>&6 13800 13801 echo "${as_me:-configure}:13801: testing ...before $LIBS ..." 1>&5 13802 13803 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib -lXmu %" -e 's% % %g'` 13804 test -n "$verbose" && echo " ...after $LIBS" 1>&6 13805 13806 echo "${as_me:-configure}:13806: testing ...after $LIBS ..." 1>&5 13807 13808 fi 13809 13810 for cf_trim_lib in Xmu Xt X11 13811 do 13812 case "$LIBS" in 13813 (*-l$cf_trim_lib\ *-l$cf_trim_lib*) 13814 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'` 13815 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6 13816 13817 echo "${as_me:-configure}:13817: testing ..trimmed $LIBS ..." 1>&5 13818 13819 ;; 13820 esac 13821 done 13822 13823 ;; 13824 esac 13825 fi 13826 13827 break 13828 else 13829 cf_pkgconfig_incs= 13830 cf_pkgconfig_libs= 13831 : 13832 fi 13833 13834 done 13835 fi 13836 13837 if test -z "$cf_x_athena_lib" ; then 13838 13839 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "Xext"; then 13840 test -n "$verbose" && echo " found package Xext" 1>&6 13841 13842 echo "${as_me:-configure}:13842: testing found package Xext ..." 1>&5 13843 13844 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "Xext" 2>/dev/null`" 13845 cf_pkgconfig_libs="`$PKG_CONFIG --libs "Xext" 2>/dev/null`" 13846 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6 13847 13848 echo "${as_me:-configure}:13848: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5 13849 13850 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6 13851 13852 echo "${as_me:-configure}:13852: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5 13853 13854 cf_fix_cppflags=no 13855 cf_new_cflags= 13856 cf_new_cppflags= 13857 cf_new_extra_cppflags= 13858 13859 for cf_add_cflags in $cf_pkgconfig_incs 13860 do 13861 case "$cf_fix_cppflags" in 13862 (no) 13863 case "$cf_add_cflags" in 13864 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 13865 case "$cf_add_cflags" in 13866 (-D*) 13867 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 13868 13869 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13870 && test -z "${cf_tst_cflags}" \ 13871 && cf_fix_cppflags=yes 13872 13873 if test "$cf_fix_cppflags" = yes ; then 13874 13875 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13876 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13877 13878 continue 13879 elif test "${cf_tst_cflags}" = "\"'" ; then 13880 13881 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13882 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13883 13884 continue 13885 fi 13886 ;; 13887 esac 13888 case "$CPPFLAGS" in 13889 (*$cf_add_cflags) 13890 ;; 13891 (*) 13892 case "$cf_add_cflags" in 13893 (-D*) 13894 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 13895 13896 CPPFLAGS=`echo "$CPPFLAGS" | \ 13897 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 13898 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 13899 13900 ;; 13901 esac 13902 13903 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 13904 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 13905 13906 ;; 13907 esac 13908 ;; 13909 (*) 13910 13911 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 13912 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 13913 13914 ;; 13915 esac 13916 ;; 13917 (yes) 13918 13919 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 13920 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 13921 13922 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 13923 13924 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 13925 && test -z "${cf_tst_cflags}" \ 13926 && cf_fix_cppflags=no 13927 ;; 13928 esac 13929 done 13930 13931 if test -n "$cf_new_cflags" ; then 13932 13933 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 13934 CFLAGS="${CFLAGS}$cf_new_cflags" 13935 13936 fi 13937 13938 if test -n "$cf_new_cppflags" ; then 13939 13940 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 13941 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 13942 13943 fi 13944 13945 if test -n "$cf_new_extra_cppflags" ; then 13946 13947 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 13948 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 13949 13950 fi 13951 13952 cf_add_libs="$LIBS" 13953 # reverse order 13954 cf_add_0lib= 13955 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 13956 # filter duplicates 13957 for cf_add_1lib in $cf_add_0lib; do 13958 for cf_add_2lib in $cf_add_libs; do 13959 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 13960 cf_add_1lib= 13961 break 13962 fi 13963 done 13964 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 13965 done 13966 LIBS="$cf_add_libs" 13967 13968 : 13969 else 13970 cf_pkgconfig_incs= 13971 cf_pkgconfig_libs= 13972 13973 echo "$as_me:13973: checking for XextCreateExtension in -lXext" >&5 13974 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6 13975 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then 13976 echo $ECHO_N "(cached) $ECHO_C" >&6 13977 else 13978 ac_check_lib_save_LIBS=$LIBS 13979 LIBS="-lXext $LIBS" 13980 cat >"conftest.$ac_ext" <<_ACEOF 13981 #line 13981 "configure" 13982 #include "confdefs.h" 13983 13984 /* Override any gcc2 internal prototype to avoid an error. */ 13985 #ifdef __cplusplus 13986 extern "C" 13987 #endif 13988 /* We use char because int might match the return type of a gcc2 13989 builtin and then its argument prototype would still apply. */ 13990 char XextCreateExtension (void); 13991 int 13992 main (void) 13993 { 13994 XextCreateExtension (); 13995 ; 13996 return 0; 13997 } 13998 _ACEOF 13999 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 14000 if { (eval echo "$as_me:14000: \"$ac_link\"") >&5 14001 (eval $ac_link) 2>&5 14002 ac_status=$? 14003 echo "$as_me:14003: \$? = $ac_status" >&5 14004 (exit "$ac_status"); } && 14005 { ac_try='test -s "conftest$ac_exeext"' 14006 { (eval echo "$as_me:14006: \"$ac_try\"") >&5 14007 (eval $ac_try) 2>&5 14008 ac_status=$? 14009 echo "$as_me:14009: \$? = $ac_status" >&5 14010 (exit "$ac_status"); }; }; then 14011 ac_cv_lib_Xext_XextCreateExtension=yes 14012 else 14013 echo "$as_me: failed program was:" >&5 14014 cat "conftest.$ac_ext" >&5 14015 ac_cv_lib_Xext_XextCreateExtension=no 14016 fi 14017 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 14018 LIBS=$ac_check_lib_save_LIBS 14019 fi 14020 echo "$as_me:14020: result: $ac_cv_lib_Xext_XextCreateExtension" >&5 14021 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6 14022 if test "$ac_cv_lib_Xext_XextCreateExtension" = yes; then 14023 14024 cf_add_libs="$LIBS" 14025 # reverse order 14026 cf_add_0lib= 14027 for cf_add_1lib in -lXext; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 14028 # filter duplicates 14029 for cf_add_1lib in $cf_add_0lib; do 14030 for cf_add_2lib in $cf_add_libs; do 14031 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 14032 cf_add_1lib= 14033 break 14034 fi 14035 done 14036 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 14037 done 14038 LIBS="$cf_add_libs" 14039 14040 fi 14041 14042 fi 14043 14044 # OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new) (and 14045 # in some cases has installed dummy files in the former, other cases replaced 14046 # it with a link to the new location). This complicates the configure script. 14047 # Check for that pitfall, and recover using pkg-config 14048 # 14049 # If none of these are set, the configuration is almost certainly broken. 14050 if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}" 14051 then 14052 14053 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then 14054 test -n "$verbose" && echo " found package x11" 1>&6 14055 14056 echo "${as_me:-configure}:14056: testing found package x11 ..." 1>&5 14057 14058 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`" 14059 cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`" 14060 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6 14061 14062 echo "${as_me:-configure}:14062: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 14063 14064 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6 14065 14066 echo "${as_me:-configure}:14066: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5 14067 14068 cf_fix_cppflags=no 14069 cf_new_cflags= 14070 cf_new_cppflags= 14071 cf_new_extra_cppflags= 14072 14073 for cf_add_cflags in $cf_pkgconfig_incs 14074 do 14075 case "$cf_fix_cppflags" in 14076 (no) 14077 case "$cf_add_cflags" in 14078 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 14079 case "$cf_add_cflags" in 14080 (-D*) 14081 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 14082 14083 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14084 && test -z "${cf_tst_cflags}" \ 14085 && cf_fix_cppflags=yes 14086 14087 if test "$cf_fix_cppflags" = yes ; then 14088 14089 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14090 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14091 14092 continue 14093 elif test "${cf_tst_cflags}" = "\"'" ; then 14094 14095 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14096 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14097 14098 continue 14099 fi 14100 ;; 14101 esac 14102 case "$CPPFLAGS" in 14103 (*$cf_add_cflags) 14104 ;; 14105 (*) 14106 case "$cf_add_cflags" in 14107 (-D*) 14108 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 14109 14110 CPPFLAGS=`echo "$CPPFLAGS" | \ 14111 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 14112 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 14113 14114 ;; 14115 esac 14116 14117 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 14118 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 14119 14120 ;; 14121 esac 14122 ;; 14123 (*) 14124 14125 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 14126 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 14127 14128 ;; 14129 esac 14130 ;; 14131 (yes) 14132 14133 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14134 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14135 14136 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 14137 14138 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14139 && test -z "${cf_tst_cflags}" \ 14140 && cf_fix_cppflags=no 14141 ;; 14142 esac 14143 done 14144 14145 if test -n "$cf_new_cflags" ; then 14146 14147 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 14148 CFLAGS="${CFLAGS}$cf_new_cflags" 14149 14150 fi 14151 14152 if test -n "$cf_new_cppflags" ; then 14153 14154 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 14155 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 14156 14157 fi 14158 14159 if test -n "$cf_new_extra_cppflags" ; then 14160 14161 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 14162 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 14163 14164 fi 14165 14166 cf_add_libs="$LIBS" 14167 # reverse order 14168 cf_add_0lib= 14169 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 14170 # filter duplicates 14171 for cf_add_1lib in $cf_add_0lib; do 14172 for cf_add_2lib in $cf_add_libs; do 14173 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 14174 cf_add_1lib= 14175 break 14176 fi 14177 done 14178 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 14179 done 14180 LIBS="$cf_add_libs" 14181 14182 : 14183 else 14184 cf_pkgconfig_incs= 14185 cf_pkgconfig_libs= 14186 { echo "$as_me:14186: WARNING: unable to find X11 library" >&5 14187 echo "$as_me: WARNING: unable to find X11 library" >&2;} 14188 fi 14189 14190 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then 14191 test -n "$verbose" && echo " found package ice" 1>&6 14192 14193 echo "${as_me:-configure}:14193: testing found package ice ..." 1>&5 14194 14195 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`" 14196 cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`" 14197 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6 14198 14199 echo "${as_me:-configure}:14199: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5 14200 14201 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6 14202 14203 echo "${as_me:-configure}:14203: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5 14204 14205 cf_fix_cppflags=no 14206 cf_new_cflags= 14207 cf_new_cppflags= 14208 cf_new_extra_cppflags= 14209 14210 for cf_add_cflags in $cf_pkgconfig_incs 14211 do 14212 case "$cf_fix_cppflags" in 14213 (no) 14214 case "$cf_add_cflags" in 14215 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 14216 case "$cf_add_cflags" in 14217 (-D*) 14218 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 14219 14220 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14221 && test -z "${cf_tst_cflags}" \ 14222 && cf_fix_cppflags=yes 14223 14224 if test "$cf_fix_cppflags" = yes ; then 14225 14226 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14227 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14228 14229 continue 14230 elif test "${cf_tst_cflags}" = "\"'" ; then 14231 14232 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14233 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14234 14235 continue 14236 fi 14237 ;; 14238 esac 14239 case "$CPPFLAGS" in 14240 (*$cf_add_cflags) 14241 ;; 14242 (*) 14243 case "$cf_add_cflags" in 14244 (-D*) 14245 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 14246 14247 CPPFLAGS=`echo "$CPPFLAGS" | \ 14248 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 14249 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 14250 14251 ;; 14252 esac 14253 14254 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 14255 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 14256 14257 ;; 14258 esac 14259 ;; 14260 (*) 14261 14262 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 14263 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 14264 14265 ;; 14266 esac 14267 ;; 14268 (yes) 14269 14270 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14271 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14272 14273 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 14274 14275 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14276 && test -z "${cf_tst_cflags}" \ 14277 && cf_fix_cppflags=no 14278 ;; 14279 esac 14280 done 14281 14282 if test -n "$cf_new_cflags" ; then 14283 14284 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 14285 CFLAGS="${CFLAGS}$cf_new_cflags" 14286 14287 fi 14288 14289 if test -n "$cf_new_cppflags" ; then 14290 14291 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 14292 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 14293 14294 fi 14295 14296 if test -n "$cf_new_extra_cppflags" ; then 14297 14298 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 14299 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 14300 14301 fi 14302 14303 cf_add_libs="$LIBS" 14304 # reverse order 14305 cf_add_0lib= 14306 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 14307 # filter duplicates 14308 for cf_add_1lib in $cf_add_0lib; do 14309 for cf_add_2lib in $cf_add_libs; do 14310 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 14311 cf_add_1lib= 14312 break 14313 fi 14314 done 14315 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 14316 done 14317 LIBS="$cf_add_libs" 14318 14319 : 14320 else 14321 cf_pkgconfig_incs= 14322 cf_pkgconfig_libs= 14323 { echo "$as_me:14323: WARNING: unable to find ICE library" >&5 14324 echo "$as_me: WARNING: unable to find ICE library" >&2;} 14325 fi 14326 14327 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then 14328 test -n "$verbose" && echo " found package sm" 1>&6 14329 14330 echo "${as_me:-configure}:14330: testing found package sm ..." 1>&5 14331 14332 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`" 14333 cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`" 14334 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6 14335 14336 echo "${as_me:-configure}:14336: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5 14337 14338 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6 14339 14340 echo "${as_me:-configure}:14340: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5 14341 14342 cf_fix_cppflags=no 14343 cf_new_cflags= 14344 cf_new_cppflags= 14345 cf_new_extra_cppflags= 14346 14347 for cf_add_cflags in $cf_pkgconfig_incs 14348 do 14349 case "$cf_fix_cppflags" in 14350 (no) 14351 case "$cf_add_cflags" in 14352 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 14353 case "$cf_add_cflags" in 14354 (-D*) 14355 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 14356 14357 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14358 && test -z "${cf_tst_cflags}" \ 14359 && cf_fix_cppflags=yes 14360 14361 if test "$cf_fix_cppflags" = yes ; then 14362 14363 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14364 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14365 14366 continue 14367 elif test "${cf_tst_cflags}" = "\"'" ; then 14368 14369 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14370 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14371 14372 continue 14373 fi 14374 ;; 14375 esac 14376 case "$CPPFLAGS" in 14377 (*$cf_add_cflags) 14378 ;; 14379 (*) 14380 case "$cf_add_cflags" in 14381 (-D*) 14382 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 14383 14384 CPPFLAGS=`echo "$CPPFLAGS" | \ 14385 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 14386 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 14387 14388 ;; 14389 esac 14390 14391 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 14392 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 14393 14394 ;; 14395 esac 14396 ;; 14397 (*) 14398 14399 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 14400 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 14401 14402 ;; 14403 esac 14404 ;; 14405 (yes) 14406 14407 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14408 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14409 14410 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 14411 14412 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14413 && test -z "${cf_tst_cflags}" \ 14414 && cf_fix_cppflags=no 14415 ;; 14416 esac 14417 done 14418 14419 if test -n "$cf_new_cflags" ; then 14420 14421 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 14422 CFLAGS="${CFLAGS}$cf_new_cflags" 14423 14424 fi 14425 14426 if test -n "$cf_new_cppflags" ; then 14427 14428 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 14429 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 14430 14431 fi 14432 14433 if test -n "$cf_new_extra_cppflags" ; then 14434 14435 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 14436 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 14437 14438 fi 14439 14440 cf_add_libs="$LIBS" 14441 # reverse order 14442 cf_add_0lib= 14443 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 14444 # filter duplicates 14445 for cf_add_1lib in $cf_add_0lib; do 14446 for cf_add_2lib in $cf_add_libs; do 14447 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 14448 cf_add_1lib= 14449 break 14450 fi 14451 done 14452 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 14453 done 14454 LIBS="$cf_add_libs" 14455 14456 : 14457 else 14458 cf_pkgconfig_incs= 14459 cf_pkgconfig_libs= 14460 { echo "$as_me:14460: WARNING: unable to find SM library" >&5 14461 echo "$as_me: WARNING: unable to find SM library" >&2;} 14462 fi 14463 14464 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then 14465 test -n "$verbose" && echo " found package xt" 1>&6 14466 14467 echo "${as_me:-configure}:14467: testing found package xt ..." 1>&5 14468 14469 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`" 14470 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`" 14471 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6 14472 14473 echo "${as_me:-configure}:14473: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5 14474 14475 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6 14476 14477 echo "${as_me:-configure}:14477: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5 14478 14479 cf_fix_cppflags=no 14480 cf_new_cflags= 14481 cf_new_cppflags= 14482 cf_new_extra_cppflags= 14483 14484 for cf_add_cflags in $cf_pkgconfig_incs 14485 do 14486 case "$cf_fix_cppflags" in 14487 (no) 14488 case "$cf_add_cflags" in 14489 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 14490 case "$cf_add_cflags" in 14491 (-D*) 14492 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 14493 14494 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14495 && test -z "${cf_tst_cflags}" \ 14496 && cf_fix_cppflags=yes 14497 14498 if test "$cf_fix_cppflags" = yes ; then 14499 14500 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14501 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14502 14503 continue 14504 elif test "${cf_tst_cflags}" = "\"'" ; then 14505 14506 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14507 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14508 14509 continue 14510 fi 14511 ;; 14512 esac 14513 case "$CPPFLAGS" in 14514 (*$cf_add_cflags) 14515 ;; 14516 (*) 14517 case "$cf_add_cflags" in 14518 (-D*) 14519 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 14520 14521 CPPFLAGS=`echo "$CPPFLAGS" | \ 14522 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 14523 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 14524 14525 ;; 14526 esac 14527 14528 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 14529 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 14530 14531 ;; 14532 esac 14533 ;; 14534 (*) 14535 14536 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 14537 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 14538 14539 ;; 14540 esac 14541 ;; 14542 (yes) 14543 14544 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14545 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14546 14547 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 14548 14549 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14550 && test -z "${cf_tst_cflags}" \ 14551 && cf_fix_cppflags=no 14552 ;; 14553 esac 14554 done 14555 14556 if test -n "$cf_new_cflags" ; then 14557 14558 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 14559 CFLAGS="${CFLAGS}$cf_new_cflags" 14560 14561 fi 14562 14563 if test -n "$cf_new_cppflags" ; then 14564 14565 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 14566 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 14567 14568 fi 14569 14570 if test -n "$cf_new_extra_cppflags" ; then 14571 14572 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 14573 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 14574 14575 fi 14576 14577 cf_add_libs="$LIBS" 14578 # reverse order 14579 cf_add_0lib= 14580 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 14581 # filter duplicates 14582 for cf_add_1lib in $cf_add_0lib; do 14583 for cf_add_2lib in $cf_add_libs; do 14584 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 14585 cf_add_1lib= 14586 break 14587 fi 14588 done 14589 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 14590 done 14591 LIBS="$cf_add_libs" 14592 14593 : 14594 else 14595 cf_pkgconfig_incs= 14596 cf_pkgconfig_libs= 14597 { echo "$as_me:14597: WARNING: unable to find Xt library" >&5 14598 echo "$as_me: WARNING: unable to find Xt library" >&2;} 14599 fi 14600 14601 else 14602 LIBS="$X_PRE_LIBS $LIBS $X_EXTRA_LIBS" 14603 fi 14604 14605 cf_have_X_LIBS=no 14606 14607 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then 14608 test -n "$verbose" && echo " found package xt" 1>&6 14609 14610 echo "${as_me:-configure}:14610: testing found package xt ..." 1>&5 14611 14612 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`" 14613 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`" 14614 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6 14615 14616 echo "${as_me:-configure}:14616: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5 14617 14618 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6 14619 14620 echo "${as_me:-configure}:14620: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5 14621 14622 cf_fix_cppflags=no 14623 cf_new_cflags= 14624 cf_new_cppflags= 14625 cf_new_extra_cppflags= 14626 14627 for cf_add_cflags in $cf_pkgconfig_incs 14628 do 14629 case "$cf_fix_cppflags" in 14630 (no) 14631 case "$cf_add_cflags" in 14632 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 14633 case "$cf_add_cflags" in 14634 (-D*) 14635 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 14636 14637 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14638 && test -z "${cf_tst_cflags}" \ 14639 && cf_fix_cppflags=yes 14640 14641 if test "$cf_fix_cppflags" = yes ; then 14642 14643 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14644 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14645 14646 continue 14647 elif test "${cf_tst_cflags}" = "\"'" ; then 14648 14649 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14650 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14651 14652 continue 14653 fi 14654 ;; 14655 esac 14656 case "$CPPFLAGS" in 14657 (*$cf_add_cflags) 14658 ;; 14659 (*) 14660 case "$cf_add_cflags" in 14661 (-D*) 14662 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 14663 14664 CPPFLAGS=`echo "$CPPFLAGS" | \ 14665 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 14666 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 14667 14668 ;; 14669 esac 14670 14671 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 14672 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 14673 14674 ;; 14675 esac 14676 ;; 14677 (*) 14678 14679 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 14680 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 14681 14682 ;; 14683 esac 14684 ;; 14685 (yes) 14686 14687 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14688 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14689 14690 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 14691 14692 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14693 && test -z "${cf_tst_cflags}" \ 14694 && cf_fix_cppflags=no 14695 ;; 14696 esac 14697 done 14698 14699 if test -n "$cf_new_cflags" ; then 14700 14701 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 14702 CFLAGS="${CFLAGS}$cf_new_cflags" 14703 14704 fi 14705 14706 if test -n "$cf_new_cppflags" ; then 14707 14708 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 14709 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 14710 14711 fi 14712 14713 if test -n "$cf_new_extra_cppflags" ; then 14714 14715 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 14716 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 14717 14718 fi 14719 14720 cf_add_libs="$LIBS" 14721 # reverse order 14722 cf_add_0lib= 14723 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 14724 # filter duplicates 14725 for cf_add_1lib in $cf_add_0lib; do 14726 for cf_add_2lib in $cf_add_libs; do 14727 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 14728 cf_add_1lib= 14729 break 14730 fi 14731 done 14732 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 14733 done 14734 LIBS="$cf_add_libs" 14735 14736 case "x$LIBS" in 14737 (*-lX11*) 14738 ;; 14739 (*) 14740 # we have an "xt" package, but it may omit Xt's dependency on X11 14741 echo "$as_me:14741: checking for usable X dependency" >&5 14742 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6 14743 if test "${cf_cv_xt_x11_compat+set}" = set; then 14744 echo $ECHO_N "(cached) $ECHO_C" >&6 14745 else 14746 14747 cat >"conftest.$ac_ext" <<_ACEOF 14748 #line 14748 "configure" 14749 #include "confdefs.h" 14750 14751 $ac_includes_default 14752 #include <X11/Xlib.h> 14753 14754 int 14755 main (void) 14756 { 14757 14758 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0); 14759 int rc2 = XClearWindow((Display*) 0, (Window) 0); 14760 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0); 14761 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0); 14762 14763 ; 14764 return 0; 14765 } 14766 _ACEOF 14767 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 14768 if { (eval echo "$as_me:14768: \"$ac_link\"") >&5 14769 (eval $ac_link) 2>&5 14770 ac_status=$? 14771 echo "$as_me:14771: \$? = $ac_status" >&5 14772 (exit "$ac_status"); } && 14773 { ac_try='test -s "conftest$ac_exeext"' 14774 { (eval echo "$as_me:14774: \"$ac_try\"") >&5 14775 (eval $ac_try) 2>&5 14776 ac_status=$? 14777 echo "$as_me:14777: \$? = $ac_status" >&5 14778 (exit "$ac_status"); }; }; then 14779 cf_cv_xt_x11_compat=yes 14780 else 14781 echo "$as_me: failed program was:" >&5 14782 cat "conftest.$ac_ext" >&5 14783 cf_cv_xt_x11_compat=no 14784 fi 14785 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 14786 fi 14787 echo "$as_me:14787: result: $cf_cv_xt_x11_compat" >&5 14788 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6 14789 if test "$cf_cv_xt_x11_compat" = no 14790 then 14791 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6 14792 14793 echo "${as_me:-configure}:14793: testing work around broken X11 dependency ..." 1>&5 14794 14795 # 2010/11/19 - good enough until a working Xt on Xcb is delivered. 14796 14797 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then 14798 test -n "$verbose" && echo " found package x11" 1>&6 14799 14800 echo "${as_me:-configure}:14800: testing found package x11 ..." 1>&5 14801 14802 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`" 14803 cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`" 14804 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6 14805 14806 echo "${as_me:-configure}:14806: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 14807 14808 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6 14809 14810 echo "${as_me:-configure}:14810: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5 14811 14812 cf_fix_cppflags=no 14813 cf_new_cflags= 14814 cf_new_cppflags= 14815 cf_new_extra_cppflags= 14816 14817 for cf_add_cflags in $cf_pkgconfig_incs 14818 do 14819 case "$cf_fix_cppflags" in 14820 (no) 14821 case "$cf_add_cflags" in 14822 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 14823 case "$cf_add_cflags" in 14824 (-D*) 14825 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 14826 14827 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14828 && test -z "${cf_tst_cflags}" \ 14829 && cf_fix_cppflags=yes 14830 14831 if test "$cf_fix_cppflags" = yes ; then 14832 14833 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14834 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14835 14836 continue 14837 elif test "${cf_tst_cflags}" = "\"'" ; then 14838 14839 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14840 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14841 14842 continue 14843 fi 14844 ;; 14845 esac 14846 case "$CPPFLAGS" in 14847 (*$cf_add_cflags) 14848 ;; 14849 (*) 14850 case "$cf_add_cflags" in 14851 (-D*) 14852 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 14853 14854 CPPFLAGS=`echo "$CPPFLAGS" | \ 14855 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 14856 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 14857 14858 ;; 14859 esac 14860 14861 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 14862 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 14863 14864 ;; 14865 esac 14866 ;; 14867 (*) 14868 14869 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 14870 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 14871 14872 ;; 14873 esac 14874 ;; 14875 (yes) 14876 14877 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 14878 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 14879 14880 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 14881 14882 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 14883 && test -z "${cf_tst_cflags}" \ 14884 && cf_fix_cppflags=no 14885 ;; 14886 esac 14887 done 14888 14889 if test -n "$cf_new_cflags" ; then 14890 14891 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 14892 CFLAGS="${CFLAGS}$cf_new_cflags" 14893 14894 fi 14895 14896 if test -n "$cf_new_cppflags" ; then 14897 14898 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 14899 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 14900 14901 fi 14902 14903 if test -n "$cf_new_extra_cppflags" ; then 14904 14905 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 14906 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 14907 14908 fi 14909 14910 cf_add_libs="$LIBS" 14911 # reverse order 14912 cf_add_0lib= 14913 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 14914 # filter duplicates 14915 for cf_add_1lib in $cf_add_0lib; do 14916 for cf_add_2lib in $cf_add_libs; do 14917 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 14918 cf_add_1lib= 14919 break 14920 fi 14921 done 14922 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 14923 done 14924 LIBS="$cf_add_libs" 14925 14926 : 14927 else 14928 cf_pkgconfig_incs= 14929 cf_pkgconfig_libs= 14930 14931 test -n "$verbose" && echo " ...before $LIBS" 1>&6 14932 14933 echo "${as_me:-configure}:14933: testing ...before $LIBS ..." 1>&5 14934 14935 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'` 14936 test -n "$verbose" && echo " ...after $LIBS" 1>&6 14937 14938 echo "${as_me:-configure}:14938: testing ...after $LIBS ..." 1>&5 14939 14940 fi 14941 14942 fi 14943 ;; 14944 esac 14945 14946 echo "$as_me:14946: checking for usable X Toolkit package" >&5 14947 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6 14948 if test "${cf_cv_xt_ice_compat+set}" = set; then 14949 echo $ECHO_N "(cached) $ECHO_C" >&6 14950 else 14951 14952 cat >"conftest.$ac_ext" <<_ACEOF 14953 #line 14953 "configure" 14954 #include "confdefs.h" 14955 14956 $ac_includes_default 14957 #include <X11/Shell.h> 14958 14959 int 14960 main (void) 14961 { 14962 int num = IceConnectionNumber(0); (void) num 14963 14964 ; 14965 return 0; 14966 } 14967 _ACEOF 14968 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 14969 if { (eval echo "$as_me:14969: \"$ac_link\"") >&5 14970 (eval $ac_link) 2>&5 14971 ac_status=$? 14972 echo "$as_me:14972: \$? = $ac_status" >&5 14973 (exit "$ac_status"); } && 14974 { ac_try='test -s "conftest$ac_exeext"' 14975 { (eval echo "$as_me:14975: \"$ac_try\"") >&5 14976 (eval $ac_try) 2>&5 14977 ac_status=$? 14978 echo "$as_me:14978: \$? = $ac_status" >&5 14979 (exit "$ac_status"); }; }; then 14980 cf_cv_xt_ice_compat=yes 14981 else 14982 echo "$as_me: failed program was:" >&5 14983 cat "conftest.$ac_ext" >&5 14984 cf_cv_xt_ice_compat=no 14985 fi 14986 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 14987 fi 14988 echo "$as_me:14988: result: $cf_cv_xt_ice_compat" >&5 14989 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6 14990 14991 if test "$cf_cv_xt_ice_compat" = no 14992 then 14993 # workaround for broken ".pc" files used for X Toolkit. 14994 case "x$X_PRE_LIBS" in 14995 (*-lICE*) 14996 case "x$LIBS" in 14997 (*-lICE*) 14998 ;; 14999 (*) 15000 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6 15001 15002 echo "${as_me:-configure}:15002: testing work around broken ICE dependency ..." 1>&5 15003 15004 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then 15005 test -n "$verbose" && echo " found package ice" 1>&6 15006 15007 echo "${as_me:-configure}:15007: testing found package ice ..." 1>&5 15008 15009 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`" 15010 cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`" 15011 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6 15012 15013 echo "${as_me:-configure}:15013: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5 15014 15015 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6 15016 15017 echo "${as_me:-configure}:15017: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5 15018 15019 cf_fix_cppflags=no 15020 cf_new_cflags= 15021 cf_new_cppflags= 15022 cf_new_extra_cppflags= 15023 15024 for cf_add_cflags in $cf_pkgconfig_incs 15025 do 15026 case "$cf_fix_cppflags" in 15027 (no) 15028 case "$cf_add_cflags" in 15029 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 15030 case "$cf_add_cflags" in 15031 (-D*) 15032 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 15033 15034 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 15035 && test -z "${cf_tst_cflags}" \ 15036 && cf_fix_cppflags=yes 15037 15038 if test "$cf_fix_cppflags" = yes ; then 15039 15040 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 15041 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 15042 15043 continue 15044 elif test "${cf_tst_cflags}" = "\"'" ; then 15045 15046 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 15047 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 15048 15049 continue 15050 fi 15051 ;; 15052 esac 15053 case "$CPPFLAGS" in 15054 (*$cf_add_cflags) 15055 ;; 15056 (*) 15057 case "$cf_add_cflags" in 15058 (-D*) 15059 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 15060 15061 CPPFLAGS=`echo "$CPPFLAGS" | \ 15062 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 15063 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 15064 15065 ;; 15066 esac 15067 15068 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 15069 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 15070 15071 ;; 15072 esac 15073 ;; 15074 (*) 15075 15076 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 15077 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 15078 15079 ;; 15080 esac 15081 ;; 15082 (yes) 15083 15084 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 15085 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 15086 15087 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 15088 15089 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 15090 && test -z "${cf_tst_cflags}" \ 15091 && cf_fix_cppflags=no 15092 ;; 15093 esac 15094 done 15095 15096 if test -n "$cf_new_cflags" ; then 15097 15098 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 15099 CFLAGS="${CFLAGS}$cf_new_cflags" 15100 15101 fi 15102 15103 if test -n "$cf_new_cppflags" ; then 15104 15105 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 15106 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 15107 15108 fi 15109 15110 if test -n "$cf_new_extra_cppflags" ; then 15111 15112 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 15113 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 15114 15115 fi 15116 15117 cf_add_libs="$LIBS" 15118 # reverse order 15119 cf_add_0lib= 15120 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 15121 # filter duplicates 15122 for cf_add_1lib in $cf_add_0lib; do 15123 for cf_add_2lib in $cf_add_libs; do 15124 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 15125 cf_add_1lib= 15126 break 15127 fi 15128 done 15129 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 15130 done 15131 LIBS="$cf_add_libs" 15132 15133 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then 15134 test -n "$verbose" && echo " found package sm" 1>&6 15135 15136 echo "${as_me:-configure}:15136: testing found package sm ..." 1>&5 15137 15138 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`" 15139 cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`" 15140 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6 15141 15142 echo "${as_me:-configure}:15142: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5 15143 15144 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6 15145 15146 echo "${as_me:-configure}:15146: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5 15147 15148 cf_fix_cppflags=no 15149 cf_new_cflags= 15150 cf_new_cppflags= 15151 cf_new_extra_cppflags= 15152 15153 for cf_add_cflags in $cf_pkgconfig_incs 15154 do 15155 case "$cf_fix_cppflags" in 15156 (no) 15157 case "$cf_add_cflags" in 15158 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 15159 case "$cf_add_cflags" in 15160 (-D*) 15161 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 15162 15163 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 15164 && test -z "${cf_tst_cflags}" \ 15165 && cf_fix_cppflags=yes 15166 15167 if test "$cf_fix_cppflags" = yes ; then 15168 15169 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 15170 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 15171 15172 continue 15173 elif test "${cf_tst_cflags}" = "\"'" ; then 15174 15175 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 15176 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 15177 15178 continue 15179 fi 15180 ;; 15181 esac 15182 case "$CPPFLAGS" in 15183 (*$cf_add_cflags) 15184 ;; 15185 (*) 15186 case "$cf_add_cflags" in 15187 (-D*) 15188 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 15189 15190 CPPFLAGS=`echo "$CPPFLAGS" | \ 15191 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 15192 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 15193 15194 ;; 15195 esac 15196 15197 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 15198 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 15199 15200 ;; 15201 esac 15202 ;; 15203 (*) 15204 15205 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 15206 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 15207 15208 ;; 15209 esac 15210 ;; 15211 (yes) 15212 15213 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 15214 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 15215 15216 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 15217 15218 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 15219 && test -z "${cf_tst_cflags}" \ 15220 && cf_fix_cppflags=no 15221 ;; 15222 esac 15223 done 15224 15225 if test -n "$cf_new_cflags" ; then 15226 15227 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 15228 CFLAGS="${CFLAGS}$cf_new_cflags" 15229 15230 fi 15231 15232 if test -n "$cf_new_cppflags" ; then 15233 15234 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 15235 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 15236 15237 fi 15238 15239 if test -n "$cf_new_extra_cppflags" ; then 15240 15241 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 15242 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 15243 15244 fi 15245 15246 cf_add_libs="$LIBS" 15247 # reverse order 15248 cf_add_0lib= 15249 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 15250 # filter duplicates 15251 for cf_add_1lib in $cf_add_0lib; do 15252 for cf_add_2lib in $cf_add_libs; do 15253 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 15254 cf_add_1lib= 15255 break 15256 fi 15257 done 15258 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 15259 done 15260 LIBS="$cf_add_libs" 15261 15262 : 15263 else 15264 cf_pkgconfig_incs= 15265 cf_pkgconfig_libs= 15266 : 15267 fi 15268 15269 else 15270 cf_pkgconfig_incs= 15271 cf_pkgconfig_libs= 15272 15273 test -n "$verbose" && echo " ...before $LIBS" 1>&6 15274 15275 echo "${as_me:-configure}:15275: testing ...before $LIBS ..." 1>&5 15276 15277 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'` 15278 test -n "$verbose" && echo " ...after $LIBS" 1>&6 15279 15280 echo "${as_me:-configure}:15280: testing ...after $LIBS ..." 1>&5 15281 15282 fi 15283 15284 ;; 15285 esac 15286 ;; 15287 esac 15288 fi 15289 15290 cf_have_X_LIBS=yes 15291 15292 else 15293 cf_pkgconfig_incs= 15294 cf_pkgconfig_libs= 15295 15296 LDFLAGS="$X_LIBS $LDFLAGS" 15297 15298 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6 15299 15300 echo "${as_me:-configure}:15300: testing checking additions to CFLAGS ..." 1>&5 15301 15302 cf_check_cflags="$CFLAGS" 15303 cf_check_cppflags="$CPPFLAGS" 15304 15305 cf_fix_cppflags=no 15306 cf_new_cflags= 15307 cf_new_cppflags= 15308 cf_new_extra_cppflags= 15309 15310 for cf_add_cflags in $X_CFLAGS 15311 do 15312 case "$cf_fix_cppflags" in 15313 (no) 15314 case "$cf_add_cflags" in 15315 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 15316 case "$cf_add_cflags" in 15317 (-D*) 15318 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 15319 15320 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 15321 && test -z "${cf_tst_cflags}" \ 15322 && cf_fix_cppflags=yes 15323 15324 if test "$cf_fix_cppflags" = yes ; then 15325 15326 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 15327 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 15328 15329 continue 15330 elif test "${cf_tst_cflags}" = "\"'" ; then 15331 15332 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 15333 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 15334 15335 continue 15336 fi 15337 ;; 15338 esac 15339 case "$CPPFLAGS" in 15340 (*$cf_add_cflags) 15341 ;; 15342 (*) 15343 case "$cf_add_cflags" in 15344 (-D*) 15345 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 15346 15347 CPPFLAGS=`echo "$CPPFLAGS" | \ 15348 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 15349 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 15350 15351 ;; 15352 esac 15353 15354 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 15355 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 15356 15357 ;; 15358 esac 15359 ;; 15360 (*) 15361 15362 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 15363 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 15364 15365 ;; 15366 esac 15367 ;; 15368 (yes) 15369 15370 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 15371 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 15372 15373 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 15374 15375 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 15376 && test -z "${cf_tst_cflags}" \ 15377 && cf_fix_cppflags=no 15378 ;; 15379 esac 15380 done 15381 15382 if test -n "$cf_new_cflags" ; then 15383 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 15384 15385 echo "${as_me:-configure}:15385: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 15386 15387 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 15388 CFLAGS="${CFLAGS}$cf_new_cflags" 15389 15390 fi 15391 15392 if test -n "$cf_new_cppflags" ; then 15393 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 15394 15395 echo "${as_me:-configure}:15395: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 15396 15397 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 15398 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 15399 15400 fi 15401 15402 if test -n "$cf_new_extra_cppflags" ; then 15403 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6 15404 15405 echo "${as_me:-configure}:15405: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5 15406 15407 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 15408 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 15409 15410 fi 15411 15412 if test "x$cf_check_cflags" != "x$CFLAGS" ; then 15413 cat >"conftest.$ac_ext" <<_ACEOF 15414 #line 15414 "configure" 15415 #include "confdefs.h" 15416 #include <stdio.h> 15417 int 15418 main (void) 15419 { 15420 printf("Hello world"); 15421 ; 15422 return 0; 15423 } 15424 _ACEOF 15425 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 15426 if { (eval echo "$as_me:15426: \"$ac_link\"") >&5 15427 (eval $ac_link) 2>&5 15428 ac_status=$? 15429 echo "$as_me:15429: \$? = $ac_status" >&5 15430 (exit "$ac_status"); } && 15431 { ac_try='test -s "conftest$ac_exeext"' 15432 { (eval echo "$as_me:15432: \"$ac_try\"") >&5 15433 (eval $ac_try) 2>&5 15434 ac_status=$? 15435 echo "$as_me:15435: \$? = $ac_status" >&5 15436 (exit "$ac_status"); }; }; then 15437 : 15438 else 15439 echo "$as_me: failed program was:" >&5 15440 cat "conftest.$ac_ext" >&5 15441 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6 15442 15443 echo "${as_me:-configure}:15443: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5 15444 15445 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then 15446 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6 15447 15448 echo "${as_me:-configure}:15448: testing but keeping change to \$CPPFLAGS ..." 1>&5 15449 15450 fi 15451 CFLAGS="$cf_check_cflags" 15452 fi 15453 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 15454 fi 15455 15456 echo "$as_me:15456: checking for XOpenDisplay" >&5 15457 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6 15458 if test "${ac_cv_func_XOpenDisplay+set}" = set; then 15459 echo $ECHO_N "(cached) $ECHO_C" >&6 15460 else 15461 cat >"conftest.$ac_ext" <<_ACEOF 15462 #line 15462 "configure" 15463 #include "confdefs.h" 15464 #define XOpenDisplay autoconf_temporary 15465 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 15466 #undef XOpenDisplay 15467 15468 #ifdef __cplusplus 15469 extern "C" 15470 #endif 15471 15472 /* We use char because int might match the return type of a gcc2 15473 builtin and then its argument prototype would still apply. */ 15474 char XOpenDisplay (void); 15475 15476 int 15477 main (void) 15478 { 15479 15480 /* The GNU C library defines stubs for functions which it implements 15481 to always fail with ENOSYS. Some functions are actually named 15482 something starting with __ and the normal name is an alias. */ 15483 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay) 15484 #error found stub for XOpenDisplay 15485 #endif 15486 15487 return XOpenDisplay (); 15488 ; 15489 return 0; 15490 } 15491 _ACEOF 15492 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 15493 if { (eval echo "$as_me:15493: \"$ac_link\"") >&5 15494 (eval $ac_link) 2>&5 15495 ac_status=$? 15496 echo "$as_me:15496: \$? = $ac_status" >&5 15497 (exit "$ac_status"); } && 15498 { ac_try='test -s "conftest$ac_exeext"' 15499 { (eval echo "$as_me:15499: \"$ac_try\"") >&5 15500 (eval $ac_try) 2>&5 15501 ac_status=$? 15502 echo "$as_me:15502: \$? = $ac_status" >&5 15503 (exit "$ac_status"); }; }; then 15504 ac_cv_func_XOpenDisplay=yes 15505 else 15506 echo "$as_me: failed program was:" >&5 15507 cat "conftest.$ac_ext" >&5 15508 ac_cv_func_XOpenDisplay=no 15509 fi 15510 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 15511 fi 15512 echo "$as_me:15512: result: $ac_cv_func_XOpenDisplay" >&5 15513 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6 15514 if test "$ac_cv_func_XOpenDisplay" = yes; then 15515 : 15516 else 15517 15518 echo "$as_me:15518: checking for XOpenDisplay in -lX11" >&5 15519 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6 15520 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then 15521 echo $ECHO_N "(cached) $ECHO_C" >&6 15522 else 15523 ac_check_lib_save_LIBS=$LIBS 15524 LIBS="-lX11 $LIBS" 15525 cat >"conftest.$ac_ext" <<_ACEOF 15526 #line 15526 "configure" 15527 #include "confdefs.h" 15528 15529 /* Override any gcc2 internal prototype to avoid an error. */ 15530 #ifdef __cplusplus 15531 extern "C" 15532 #endif 15533 /* We use char because int might match the return type of a gcc2 15534 builtin and then its argument prototype would still apply. */ 15535 char XOpenDisplay (void); 15536 int 15537 main (void) 15538 { 15539 XOpenDisplay (); 15540 ; 15541 return 0; 15542 } 15543 _ACEOF 15544 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 15545 if { (eval echo "$as_me:15545: \"$ac_link\"") >&5 15546 (eval $ac_link) 2>&5 15547 ac_status=$? 15548 echo "$as_me:15548: \$? = $ac_status" >&5 15549 (exit "$ac_status"); } && 15550 { ac_try='test -s "conftest$ac_exeext"' 15551 { (eval echo "$as_me:15551: \"$ac_try\"") >&5 15552 (eval $ac_try) 2>&5 15553 ac_status=$? 15554 echo "$as_me:15554: \$? = $ac_status" >&5 15555 (exit "$ac_status"); }; }; then 15556 ac_cv_lib_X11_XOpenDisplay=yes 15557 else 15558 echo "$as_me: failed program was:" >&5 15559 cat "conftest.$ac_ext" >&5 15560 ac_cv_lib_X11_XOpenDisplay=no 15561 fi 15562 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 15563 LIBS=$ac_check_lib_save_LIBS 15564 fi 15565 echo "$as_me:15565: result: $ac_cv_lib_X11_XOpenDisplay" >&5 15566 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6 15567 if test "$ac_cv_lib_X11_XOpenDisplay" = yes; then 15568 15569 cf_add_libs="$LIBS" 15570 # reverse order 15571 cf_add_0lib= 15572 for cf_add_1lib in -lX11; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 15573 # filter duplicates 15574 for cf_add_1lib in $cf_add_0lib; do 15575 for cf_add_2lib in $cf_add_libs; do 15576 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 15577 cf_add_1lib= 15578 break 15579 fi 15580 done 15581 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 15582 done 15583 LIBS="$cf_add_libs" 15584 15585 fi 15586 15587 fi 15588 15589 echo "$as_me:15589: checking for XtAppInitialize" >&5 15590 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6 15591 if test "${ac_cv_func_XtAppInitialize+set}" = set; then 15592 echo $ECHO_N "(cached) $ECHO_C" >&6 15593 else 15594 cat >"conftest.$ac_ext" <<_ACEOF 15595 #line 15595 "configure" 15596 #include "confdefs.h" 15597 #define XtAppInitialize autoconf_temporary 15598 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 15599 #undef XtAppInitialize 15600 15601 #ifdef __cplusplus 15602 extern "C" 15603 #endif 15604 15605 /* We use char because int might match the return type of a gcc2 15606 builtin and then its argument prototype would still apply. */ 15607 char XtAppInitialize (void); 15608 15609 int 15610 main (void) 15611 { 15612 15613 /* The GNU C library defines stubs for functions which it implements 15614 to always fail with ENOSYS. Some functions are actually named 15615 something starting with __ and the normal name is an alias. */ 15616 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize) 15617 #error found stub for XtAppInitialize 15618 #endif 15619 15620 return XtAppInitialize (); 15621 ; 15622 return 0; 15623 } 15624 _ACEOF 15625 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 15626 if { (eval echo "$as_me:15626: \"$ac_link\"") >&5 15627 (eval $ac_link) 2>&5 15628 ac_status=$? 15629 echo "$as_me:15629: \$? = $ac_status" >&5 15630 (exit "$ac_status"); } && 15631 { ac_try='test -s "conftest$ac_exeext"' 15632 { (eval echo "$as_me:15632: \"$ac_try\"") >&5 15633 (eval $ac_try) 2>&5 15634 ac_status=$? 15635 echo "$as_me:15635: \$? = $ac_status" >&5 15636 (exit "$ac_status"); }; }; then 15637 ac_cv_func_XtAppInitialize=yes 15638 else 15639 echo "$as_me: failed program was:" >&5 15640 cat "conftest.$ac_ext" >&5 15641 ac_cv_func_XtAppInitialize=no 15642 fi 15643 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 15644 fi 15645 echo "$as_me:15645: result: $ac_cv_func_XtAppInitialize" >&5 15646 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6 15647 if test "$ac_cv_func_XtAppInitialize" = yes; then 15648 : 15649 else 15650 15651 echo "$as_me:15651: checking for XtAppInitialize in -lXt" >&5 15652 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6 15653 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then 15654 echo $ECHO_N "(cached) $ECHO_C" >&6 15655 else 15656 ac_check_lib_save_LIBS=$LIBS 15657 LIBS="-lXt $LIBS" 15658 cat >"conftest.$ac_ext" <<_ACEOF 15659 #line 15659 "configure" 15660 #include "confdefs.h" 15661 15662 /* Override any gcc2 internal prototype to avoid an error. */ 15663 #ifdef __cplusplus 15664 extern "C" 15665 #endif 15666 /* We use char because int might match the return type of a gcc2 15667 builtin and then its argument prototype would still apply. */ 15668 char XtAppInitialize (void); 15669 int 15670 main (void) 15671 { 15672 XtAppInitialize (); 15673 ; 15674 return 0; 15675 } 15676 _ACEOF 15677 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 15678 if { (eval echo "$as_me:15678: \"$ac_link\"") >&5 15679 (eval $ac_link) 2>&5 15680 ac_status=$? 15681 echo "$as_me:15681: \$? = $ac_status" >&5 15682 (exit "$ac_status"); } && 15683 { ac_try='test -s "conftest$ac_exeext"' 15684 { (eval echo "$as_me:15684: \"$ac_try\"") >&5 15685 (eval $ac_try) 2>&5 15686 ac_status=$? 15687 echo "$as_me:15687: \$? = $ac_status" >&5 15688 (exit "$ac_status"); }; }; then 15689 ac_cv_lib_Xt_XtAppInitialize=yes 15690 else 15691 echo "$as_me: failed program was:" >&5 15692 cat "conftest.$ac_ext" >&5 15693 ac_cv_lib_Xt_XtAppInitialize=no 15694 fi 15695 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 15696 LIBS=$ac_check_lib_save_LIBS 15697 fi 15698 echo "$as_me:15698: result: $ac_cv_lib_Xt_XtAppInitialize" >&5 15699 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6 15700 if test "$ac_cv_lib_Xt_XtAppInitialize" = yes; then 15701 15702 cat >>confdefs.h <<\EOF 15703 #define HAVE_LIBXT 1 15704 EOF 15705 15706 cf_have_X_LIBS=Xt 15707 LIBS="-lXt $LIBS" 15708 fi 15709 15710 fi 15711 15712 fi 15713 15714 if test "$cf_have_X_LIBS" = no ; then 15715 { echo "$as_me:15715: WARNING: Unable to successfully link X Toolkit library (-lXt) with 15716 test program. You will have to check and add the proper libraries by hand 15717 to makefile." >&5 15718 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with 15719 test program. You will have to check and add the proper libraries by hand 15720 to makefile." >&2;} 15721 fi 15722 15723 cf_x_athena_root=$cf_x_athena 15724 cf_x_athena_inc="" 15725 15726 for cf_path in default \ 15727 /usr/contrib/X11R6 \ 15728 /usr/contrib/X11R5 \ 15729 /usr/lib/X11R5 \ 15730 /usr/local 15731 do 15732 if test -z "$cf_x_athena_inc" ; then 15733 15734 cf_save_LIBS_CF_X_ATHENA_CPPFLAGS="$LIBS" 15735 cf_save_CFLAGS_CF_X_ATHENA_CPPFLAGS="$CFLAGS" 15736 cf_save_CPPFLAGS_CF_X_ATHENA_CPPFLAGS="$CPPFLAGS" 15737 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}" 15738 for cf_X_CFLAGS in $X_CFLAGS 15739 do 15740 case "x$cf_X_CFLAGS" in 15741 x-[IUD]*) 15742 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS" 15743 ;; 15744 *) 15745 CFLAGS="$CFLAGS $cf_X_CFLAGS" 15746 ;; 15747 esac 15748 done 15749 15750 cf_test=X11/$cf_x_athena_root/SimpleMenu.h 15751 if test "$cf_path" != default ; then 15752 15753 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 15754 CPPFLAGS="${CPPFLAGS}-I$cf_path/include" 15755 15756 echo "$as_me:15756: checking for $cf_test in $cf_path" >&5 15757 echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6 15758 else 15759 echo "$as_me:15759: checking for $cf_test" >&5 15760 echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6 15761 fi 15762 cat >"conftest.$ac_ext" <<_ACEOF 15763 #line 15763 "configure" 15764 #include "confdefs.h" 15765 15766 #include <X11/Intrinsic.h> 15767 #include <$cf_test> 15768 int 15769 main (void) 15770 { 15771 15772 ; 15773 return 0; 15774 } 15775 _ACEOF 15776 rm -f "conftest.$ac_objext" 15777 if { (eval echo "$as_me:15777: \"$ac_compile\"") >&5 15778 (eval $ac_compile) 2>&5 15779 ac_status=$? 15780 echo "$as_me:15780: \$? = $ac_status" >&5 15781 (exit "$ac_status"); } && 15782 { ac_try='test -s "conftest.$ac_objext"' 15783 { (eval echo "$as_me:15783: \"$ac_try\"") >&5 15784 (eval $ac_try) 2>&5 15785 ac_status=$? 15786 echo "$as_me:15786: \$? = $ac_status" >&5 15787 (exit "$ac_status"); }; }; then 15788 cf_result=yes 15789 else 15790 echo "$as_me: failed program was:" >&5 15791 cat "conftest.$ac_ext" >&5 15792 cf_result=no 15793 fi 15794 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 15795 echo "$as_me:15795: result: $cf_result" >&5 15796 echo "${ECHO_T}$cf_result" >&6 15797 15798 LIBS="$cf_save_LIBS_CF_X_ATHENA_CPPFLAGS" 15799 CFLAGS="$cf_save_CFLAGS_CF_X_ATHENA_CPPFLAGS" 15800 CPPFLAGS="$cf_save_CPPFLAGS_CF_X_ATHENA_CPPFLAGS" 15801 15802 if test "$cf_result" = yes ; then 15803 test "$cf_path" = default && cf_x_athena_inc=default 15804 test "$cf_path" != default && cf_x_athena_inc="$cf_path/include" 15805 break 15806 fi 15807 fi 15808 done 15809 15810 if test -z "$cf_x_athena_inc" ; then 15811 { echo "$as_me:15811: WARNING: Unable to find Athena header files" >&5 15812 echo "$as_me: WARNING: Unable to find Athena header files" >&2;} 15813 elif test "$cf_x_athena_inc" != default ; then 15814 15815 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 15816 CPPFLAGS="${CPPFLAGS}-I$cf_x_athena_inc" 15817 15818 fi 15819 15820 cf_x_athena_root=$cf_x_athena 15821 cf_x_athena_lib="" 15822 15823 for cf_path in default \ 15824 /usr/contrib/X11R6 \ 15825 /usr/contrib/X11R5 \ 15826 /usr/lib/X11R5 \ 15827 /usr/local 15828 do 15829 for cf_lib in \ 15830 ${cf_x_athena_root} \ 15831 ${cf_x_athena_root}7 \ 15832 ${cf_x_athena_root}6 15833 do 15834 for cf_libs in \ 15835 "-l$cf_lib -lXmu" \ 15836 "-l$cf_lib -lXpm -lXmu" \ 15837 "-l${cf_lib}_s -lXmu_s" 15838 do 15839 test -n "$cf_x_athena_lib" && break 15840 15841 cf_save_LIBS_CF_X_ATHENA_LIBS="$LIBS" 15842 cf_save_CFLAGS_CF_X_ATHENA_LIBS="$CFLAGS" 15843 cf_save_CPPFLAGS_CF_X_ATHENA_LIBS="$CPPFLAGS" 15844 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}" 15845 for cf_X_CFLAGS in $X_CFLAGS 15846 do 15847 case "x$cf_X_CFLAGS" in 15848 x-[IUD]*) 15849 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS" 15850 ;; 15851 *) 15852 CFLAGS="$CFLAGS $cf_X_CFLAGS" 15853 ;; 15854 esac 15855 done 15856 15857 cf_test=XawSimpleMenuAddGlobalActions 15858 test "$cf_path" != default && cf_libs="-L$cf_path/lib $cf_libs" 15859 15860 cf_add_libs="$LIBS" 15861 # reverse order 15862 cf_add_0lib= 15863 for cf_add_1lib in $cf_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 15864 # filter duplicates 15865 for cf_add_1lib in $cf_add_0lib; do 15866 for cf_add_2lib in $cf_add_libs; do 15867 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 15868 cf_add_1lib= 15869 break 15870 fi 15871 done 15872 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 15873 done 15874 LIBS="$cf_add_libs" 15875 15876 echo "$as_me:15876: checking for $cf_test in $cf_libs" >&5 15877 echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6 15878 cat >"conftest.$ac_ext" <<_ACEOF 15879 #line 15879 "configure" 15880 #include "confdefs.h" 15881 15882 $ac_includes_default 15883 #include <X11/Intrinsic.h> 15884 #include <X11/$cf_x_athena_root/SimpleMenu.h> 15885 15886 int 15887 main (void) 15888 { 15889 15890 $cf_test((XtAppContext) 0) 15891 ; 15892 return 0; 15893 } 15894 _ACEOF 15895 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 15896 if { (eval echo "$as_me:15896: \"$ac_link\"") >&5 15897 (eval $ac_link) 2>&5 15898 ac_status=$? 15899 echo "$as_me:15899: \$? = $ac_status" >&5 15900 (exit "$ac_status"); } && 15901 { ac_try='test -s "conftest$ac_exeext"' 15902 { (eval echo "$as_me:15902: \"$ac_try\"") >&5 15903 (eval $ac_try) 2>&5 15904 ac_status=$? 15905 echo "$as_me:15905: \$? = $ac_status" >&5 15906 (exit "$ac_status"); }; }; then 15907 cf_result=yes 15908 else 15909 echo "$as_me: failed program was:" >&5 15910 cat "conftest.$ac_ext" >&5 15911 cf_result=no 15912 fi 15913 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 15914 echo "$as_me:15914: result: $cf_result" >&5 15915 echo "${ECHO_T}$cf_result" >&6 15916 15917 LIBS="$cf_save_LIBS_CF_X_ATHENA_LIBS" 15918 CFLAGS="$cf_save_CFLAGS_CF_X_ATHENA_LIBS" 15919 CPPFLAGS="$cf_save_CPPFLAGS_CF_X_ATHENA_LIBS" 15920 15921 if test "$cf_result" = yes ; then 15922 cf_x_athena_lib="$cf_libs" 15923 break 15924 fi 15925 done # cf_libs 15926 test -n "$cf_x_athena_lib" && break 15927 done # cf_lib 15928 done 15929 15930 if test -z "$cf_x_athena_lib" ; then 15931 { { echo "$as_me:15931: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5 15932 echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;} 15933 { (exit 1); exit 1; }; } 15934 fi 15935 15936 cf_add_libs="$LIBS" 15937 # reverse order 15938 cf_add_0lib= 15939 for cf_add_1lib in $cf_x_athena_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 15940 # filter duplicates 15941 for cf_add_1lib in $cf_add_0lib; do 15942 for cf_add_2lib in $cf_add_libs; do 15943 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 15944 cf_add_1lib= 15945 break 15946 fi 15947 done 15948 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 15949 done 15950 LIBS="$cf_add_libs" 15951 15952 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 15953 15954 cat >>confdefs.h <<EOF 15955 #define $cf_x_athena_LIBS 1 15956 EOF 15957 15958 fi 15959 15960 for ac_header in X11/Xpoll.h 15961 do 15962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15963 echo "$as_me:15963: checking for $ac_header" >&5 15964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 15965 if eval "test \"\${$as_ac_Header+set}\" = set"; then 15966 echo $ECHO_N "(cached) $ECHO_C" >&6 15967 else 15968 cat >"conftest.$ac_ext" <<_ACEOF 15969 #line 15969 "configure" 15970 #include "confdefs.h" 15971 #include <$ac_header> 15972 _ACEOF 15973 if { (eval echo "$as_me:15973: \"$ac_cpp "conftest.$ac_ext"\"") >&5 15974 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 15975 ac_status=$? 15976 $EGREP -v '^ *\+' conftest.er1 >conftest.err 15977 rm -f conftest.er1 15978 cat conftest.err >&5 15979 echo "$as_me:15979: \$? = $ac_status" >&5 15980 (exit "$ac_status"); } >/dev/null; then 15981 if test -s conftest.err; then 15982 ac_cpp_err=$ac_c_preproc_warn_flag 15983 else 15984 ac_cpp_err= 15985 fi 15986 else 15987 ac_cpp_err=yes 15988 fi 15989 if test -z "$ac_cpp_err"; then 15990 eval "$as_ac_Header=yes" 15991 else 15992 echo "$as_me: failed program was:" >&5 15993 cat "conftest.$ac_ext" >&5 15994 eval "$as_ac_Header=no" 15995 fi 15996 rm -f conftest.err "conftest.$ac_ext" 15997 fi 15998 echo "$as_me:15998: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 15999 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 16000 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 16001 cat >>confdefs.h <<EOF 16002 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16003 EOF 16004 16005 fi 16006 done 16007 16008 echo "$as_me:16008: checking for declaration of fd_set" >&5 16009 echo $ECHO_N "checking for declaration of fd_set... $ECHO_C" >&6 16010 if test "${cf_cv_type_fd_set+set}" = set; then 16011 echo $ECHO_N "(cached) $ECHO_C" >&6 16012 else 16013 16014 echo "${as_me:-configure}:16014: testing sys/types alone ..." 1>&5 16015 16016 cat >"conftest.$ac_ext" <<_ACEOF 16017 #line 16017 "configure" 16018 #include "confdefs.h" 16019 16020 #include <sys/types.h> 16021 int 16022 main (void) 16023 { 16024 fd_set x; (void)x 16025 ; 16026 return 0; 16027 } 16028 _ACEOF 16029 rm -f "conftest.$ac_objext" 16030 if { (eval echo "$as_me:16030: \"$ac_compile\"") >&5 16031 (eval $ac_compile) 2>&5 16032 ac_status=$? 16033 echo "$as_me:16033: \$? = $ac_status" >&5 16034 (exit "$ac_status"); } && 16035 { ac_try='test -s "conftest.$ac_objext"' 16036 { (eval echo "$as_me:16036: \"$ac_try\"") >&5 16037 (eval $ac_try) 2>&5 16038 ac_status=$? 16039 echo "$as_me:16039: \$? = $ac_status" >&5 16040 (exit "$ac_status"); }; }; then 16041 cf_cv_type_fd_set=sys/types.h 16042 else 16043 echo "$as_me: failed program was:" >&5 16044 cat "conftest.$ac_ext" >&5 16045 16046 echo "${as_me:-configure}:16046: testing X11/Xpoll.h ..." 1>&5 16047 16048 cat >"conftest.$ac_ext" <<_ACEOF 16049 #line 16049 "configure" 16050 #include "confdefs.h" 16051 16052 #ifdef HAVE_X11_XPOLL_H 16053 #include <X11/Xpoll.h> 16054 #endif 16055 int 16056 main (void) 16057 { 16058 fd_set x; (void)x 16059 ; 16060 return 0; 16061 } 16062 _ACEOF 16063 rm -f "conftest.$ac_objext" 16064 if { (eval echo "$as_me:16064: \"$ac_compile\"") >&5 16065 (eval $ac_compile) 2>&5 16066 ac_status=$? 16067 echo "$as_me:16067: \$? = $ac_status" >&5 16068 (exit "$ac_status"); } && 16069 { ac_try='test -s "conftest.$ac_objext"' 16070 { (eval echo "$as_me:16070: \"$ac_try\"") >&5 16071 (eval $ac_try) 2>&5 16072 ac_status=$? 16073 echo "$as_me:16073: \$? = $ac_status" >&5 16074 (exit "$ac_status"); }; }; then 16075 cf_cv_type_fd_set=X11/Xpoll.h 16076 else 16077 echo "$as_me: failed program was:" >&5 16078 cat "conftest.$ac_ext" >&5 16079 16080 echo "${as_me:-configure}:16080: testing sys/select.h ..." 1>&5 16081 16082 cat >"conftest.$ac_ext" <<_ACEOF 16083 #line 16083 "configure" 16084 #include "confdefs.h" 16085 16086 #include <sys/types.h> 16087 #include <sys/select.h> 16088 int 16089 main (void) 16090 { 16091 fd_set x; (void)x 16092 ; 16093 return 0; 16094 } 16095 _ACEOF 16096 rm -f "conftest.$ac_objext" 16097 if { (eval echo "$as_me:16097: \"$ac_compile\"") >&5 16098 (eval $ac_compile) 2>&5 16099 ac_status=$? 16100 echo "$as_me:16100: \$? = $ac_status" >&5 16101 (exit "$ac_status"); } && 16102 { ac_try='test -s "conftest.$ac_objext"' 16103 { (eval echo "$as_me:16103: \"$ac_try\"") >&5 16104 (eval $ac_try) 2>&5 16105 ac_status=$? 16106 echo "$as_me:16106: \$? = $ac_status" >&5 16107 (exit "$ac_status"); }; }; then 16108 cf_cv_type_fd_set=sys/select.h 16109 else 16110 echo "$as_me: failed program was:" >&5 16111 cat "conftest.$ac_ext" >&5 16112 cf_cv_type_fd_set=unknown 16113 fi 16114 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 16115 fi 16116 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 16117 fi 16118 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 16119 fi 16120 echo "$as_me:16120: result: $cf_cv_type_fd_set" >&5 16121 echo "${ECHO_T}$cf_cv_type_fd_set" >&6 16122 if test $cf_cv_type_fd_set = sys/select.h ; then 16123 16124 cat >>confdefs.h <<\EOF 16125 #define USE_SYS_SELECT_H 1 16126 EOF 16127 16128 fi 16129 16130 echo "$as_me:16130: checking for declaration of fd_mask" >&5 16131 echo $ECHO_N "checking for declaration of fd_mask... $ECHO_C" >&6 16132 if test "${cf_cv_type_fd_mask+set}" = set; then 16133 echo $ECHO_N "(cached) $ECHO_C" >&6 16134 else 16135 16136 if test x$cf_cv_type_fd_set = xX11/Xpoll.h ; then 16137 cat >"conftest.$ac_ext" <<_ACEOF 16138 #line 16138 "configure" 16139 #include "confdefs.h" 16140 16141 #include <X11/Xpoll.h> 16142 int 16143 main (void) 16144 { 16145 fd_mask x 16146 ; 16147 return 0; 16148 } 16149 _ACEOF 16150 rm -f "conftest.$ac_objext" 16151 if { (eval echo "$as_me:16151: \"$ac_compile\"") >&5 16152 (eval $ac_compile) 2>&5 16153 ac_status=$? 16154 echo "$as_me:16154: \$? = $ac_status" >&5 16155 (exit "$ac_status"); } && 16156 { ac_try='test -s "conftest.$ac_objext"' 16157 { (eval echo "$as_me:16157: \"$ac_try\"") >&5 16158 (eval $ac_try) 2>&5 16159 ac_status=$? 16160 echo "$as_me:16160: \$? = $ac_status" >&5 16161 (exit "$ac_status"); }; }; then 16162 : 16163 else 16164 echo "$as_me: failed program was:" >&5 16165 cat "conftest.$ac_ext" >&5 16166 16167 echo "${as_me:-configure}:16167: testing if we must define CSRG_BASED ..." 1>&5 16168 16169 # Xosdefs.h on Mac OS X may not define this (but it should). 16170 cat >"conftest.$ac_ext" <<_ACEOF 16171 #line 16171 "configure" 16172 #include "confdefs.h" 16173 16174 #define CSRG_BASED 16175 #include <X11/Xpoll.h> 16176 int 16177 main (void) 16178 { 16179 fd_mask x 16180 ; 16181 return 0; 16182 } 16183 _ACEOF 16184 rm -f "conftest.$ac_objext" 16185 if { (eval echo "$as_me:16185: \"$ac_compile\"") >&5 16186 (eval $ac_compile) 2>&5 16187 ac_status=$? 16188 echo "$as_me:16188: \$? = $ac_status" >&5 16189 (exit "$ac_status"); } && 16190 { ac_try='test -s "conftest.$ac_objext"' 16191 { (eval echo "$as_me:16191: \"$ac_try\"") >&5 16192 (eval $ac_try) 2>&5 16193 ac_status=$? 16194 echo "$as_me:16194: \$? = $ac_status" >&5 16195 (exit "$ac_status"); }; }; then 16196 cf_cv_type_fd_mask=CSRG_BASED 16197 else 16198 echo "$as_me: failed program was:" >&5 16199 cat "conftest.$ac_ext" >&5 16200 fi 16201 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 16202 fi 16203 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 16204 else 16205 cf_cv_type_fd_mask=$cf_cv_type_fd_set 16206 fi 16207 16208 fi 16209 echo "$as_me:16209: result: $cf_cv_type_fd_mask" >&5 16210 echo "${ECHO_T}$cf_cv_type_fd_mask" >&6 16211 if test x$cf_cv_type_fd_mask = xCSRG_BASED ; then 16212 16213 cat >>confdefs.h <<\EOF 16214 #define CSRG_BASED 1 16215 EOF 16216 16217 fi 16218 16219 echo "$as_me:16219: checking for IRIX 6.5 baud-rate redefinitions" >&5 16220 echo $ECHO_N "checking for IRIX 6.5 baud-rate redefinitions... $ECHO_C" >&6 16221 if test "${cf_cv_termio_c_ispeed+set}" = set; then 16222 echo $ECHO_N "(cached) $ECHO_C" >&6 16223 else 16224 16225 cat >"conftest.$ac_ext" <<_ACEOF 16226 #line 16226 "configure" 16227 #include "confdefs.h" 16228 16229 #include <sys/types.h> 16230 #include <sys/termio.h> 16231 int 16232 main (void) 16233 { 16234 16235 struct termio foo; 16236 foo.c_ispeed = B38400; 16237 foo.c_ospeed = B9600; 16238 (void)foo; 16239 16240 ; 16241 return 0; 16242 } 16243 _ACEOF 16244 rm -f "conftest.$ac_objext" 16245 if { (eval echo "$as_me:16245: \"$ac_compile\"") >&5 16246 (eval $ac_compile) 2>&5 16247 ac_status=$? 16248 echo "$as_me:16248: \$? = $ac_status" >&5 16249 (exit "$ac_status"); } && 16250 { ac_try='test -s "conftest.$ac_objext"' 16251 { (eval echo "$as_me:16251: \"$ac_try\"") >&5 16252 (eval $ac_try) 2>&5 16253 ac_status=$? 16254 echo "$as_me:16254: \$? = $ac_status" >&5 16255 (exit "$ac_status"); }; }; then 16256 cf_cv_termio_c_ispeed=yes 16257 16258 else 16259 echo "$as_me: failed program was:" >&5 16260 cat "conftest.$ac_ext" >&5 16261 cf_cv_termio_c_ispeed=no 16262 fi 16263 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 16264 16265 fi 16266 echo "$as_me:16266: result: $cf_cv_termio_c_ispeed" >&5 16267 echo "${ECHO_T}$cf_cv_termio_c_ispeed" >&6 16268 test "$cf_cv_termio_c_ispeed" = yes && 16269 cat >>confdefs.h <<\EOF 16270 #define HAVE_TERMIO_C_ISPEED 1 16271 EOF 16272 16273 echo "$as_me:16273: checking for termios type tcflag_t" >&5 16274 echo $ECHO_N "checking for termios type tcflag_t... $ECHO_C" >&6 16275 if test "${cf_cv_havetype_tcflag_t+set}" = set; then 16276 echo $ECHO_N "(cached) $ECHO_C" >&6 16277 else 16278 16279 cat >"conftest.$ac_ext" <<_ACEOF 16280 #line 16280 "configure" 16281 #include "confdefs.h" 16282 #include <termios.h> 16283 int 16284 main (void) 16285 { 16286 16287 tcflag_t x = 0; (void)x 16288 ; 16289 return 0; 16290 } 16291 _ACEOF 16292 rm -f "conftest.$ac_objext" 16293 if { (eval echo "$as_me:16293: \"$ac_compile\"") >&5 16294 (eval $ac_compile) 2>&5 16295 ac_status=$? 16296 echo "$as_me:16296: \$? = $ac_status" >&5 16297 (exit "$ac_status"); } && 16298 { ac_try='test -s "conftest.$ac_objext"' 16299 { (eval echo "$as_me:16299: \"$ac_try\"") >&5 16300 (eval $ac_try) 2>&5 16301 ac_status=$? 16302 echo "$as_me:16302: \$? = $ac_status" >&5 16303 (exit "$ac_status"); }; }; then 16304 cf_cv_havetype_tcflag_t=yes 16305 else 16306 echo "$as_me: failed program was:" >&5 16307 cat "conftest.$ac_ext" >&5 16308 cf_cv_havetype_tcflag_t=no 16309 fi 16310 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 16311 16312 fi 16313 echo "$as_me:16313: result: $cf_cv_havetype_tcflag_t" >&5 16314 echo "${ECHO_T}$cf_cv_havetype_tcflag_t" >&6 16315 test "$cf_cv_havetype_tcflag_t" = no && 16316 cat >>confdefs.h <<\EOF 16317 #define tcflag_t unsigned long 16318 EOF 16319 16320 echo "$as_me:16320: checking for termios type speed_t" >&5 16321 echo $ECHO_N "checking for termios type speed_t... $ECHO_C" >&6 16322 if test "${cf_cv_havetype_speed_t+set}" = set; then 16323 echo $ECHO_N "(cached) $ECHO_C" >&6 16324 else 16325 16326 cat >"conftest.$ac_ext" <<_ACEOF 16327 #line 16327 "configure" 16328 #include "confdefs.h" 16329 #include <termios.h> 16330 int 16331 main (void) 16332 { 16333 16334 speed_t x = 0; (void)x 16335 ; 16336 return 0; 16337 } 16338 _ACEOF 16339 rm -f "conftest.$ac_objext" 16340 if { (eval echo "$as_me:16340: \"$ac_compile\"") >&5 16341 (eval $ac_compile) 2>&5 16342 ac_status=$? 16343 echo "$as_me:16343: \$? = $ac_status" >&5 16344 (exit "$ac_status"); } && 16345 { ac_try='test -s "conftest.$ac_objext"' 16346 { (eval echo "$as_me:16346: \"$ac_try\"") >&5 16347 (eval $ac_try) 2>&5 16348 ac_status=$? 16349 echo "$as_me:16349: \$? = $ac_status" >&5 16350 (exit "$ac_status"); }; }; then 16351 cf_cv_havetype_speed_t=yes 16352 else 16353 echo "$as_me: failed program was:" >&5 16354 cat "conftest.$ac_ext" >&5 16355 cf_cv_havetype_speed_t=no 16356 fi 16357 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 16358 16359 fi 16360 echo "$as_me:16360: result: $cf_cv_havetype_speed_t" >&5 16361 echo "${ECHO_T}$cf_cv_havetype_speed_t" >&6 16362 test "$cf_cv_havetype_speed_t" = no && 16363 cat >>confdefs.h <<\EOF 16364 #define speed_t unsigned short 16365 EOF 16366 16367 echo "$as_me:16367: checking for termios type cc_t" >&5 16368 echo $ECHO_N "checking for termios type cc_t... $ECHO_C" >&6 16369 if test "${cf_cv_havetype_cc_t+set}" = set; then 16370 echo $ECHO_N "(cached) $ECHO_C" >&6 16371 else 16372 16373 cat >"conftest.$ac_ext" <<_ACEOF 16374 #line 16374 "configure" 16375 #include "confdefs.h" 16376 #include <termios.h> 16377 int 16378 main (void) 16379 { 16380 16381 cc_t x = 0; (void)x 16382 ; 16383 return 0; 16384 } 16385 _ACEOF 16386 rm -f "conftest.$ac_objext" 16387 if { (eval echo "$as_me:16387: \"$ac_compile\"") >&5 16388 (eval $ac_compile) 2>&5 16389 ac_status=$? 16390 echo "$as_me:16390: \$? = $ac_status" >&5 16391 (exit "$ac_status"); } && 16392 { ac_try='test -s "conftest.$ac_objext"' 16393 { (eval echo "$as_me:16393: \"$ac_try\"") >&5 16394 (eval $ac_try) 2>&5 16395 ac_status=$? 16396 echo "$as_me:16396: \$? = $ac_status" >&5 16397 (exit "$ac_status"); }; }; then 16398 cf_cv_havetype_cc_t=yes 16399 else 16400 echo "$as_me: failed program was:" >&5 16401 cat "conftest.$ac_ext" >&5 16402 cf_cv_havetype_cc_t=no 16403 fi 16404 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 16405 16406 fi 16407 echo "$as_me:16407: result: $cf_cv_havetype_cc_t" >&5 16408 echo "${ECHO_T}$cf_cv_havetype_cc_t" >&6 16409 test "$cf_cv_havetype_cc_t" = no && 16410 cat >>confdefs.h <<\EOF 16411 #define cc_t unsigned char 16412 EOF 16413 16414 # The Xcursor library is normally (weakly) linked via the X11 library rather 16415 # than directly to applications. xterm can select a cursor theme; users can 16416 # also use environment variables to select cursor size. We would only notice 16417 # the library if there are development files for it. Provide a way to disable 16418 # the feature if it is unwanted. 16419 echo "$as_me:16419: checking if we expect to use the Xcursor library" >&5 16420 echo $ECHO_N "checking if we expect to use the Xcursor library... $ECHO_C" >&6 16421 16422 # Check whether --enable-xcursor or --disable-xcursor was given. 16423 if test "${enable_xcursor+set}" = set; then 16424 enableval="$enable_xcursor" 16425 test "$enableval" != no && enableval=yes 16426 if test "$enableval" != "yes" ; then 16427 enable_xcursor=no 16428 else 16429 enable_xcursor=yes 16430 fi 16431 else 16432 enableval=yes 16433 enable_xcursor=yes 16434 16435 fi; 16436 echo "$as_me:16436: result: $enable_xcursor" >&5 16437 echo "${ECHO_T}$enable_xcursor" >&6 16438 if test "$enable_xcursor" = yes; then 16439 16440 cat >>confdefs.h <<\EOF 16441 #define HAVE_LIB_XCURSOR 1 16442 EOF 16443 16444 fi 16445 16446 LIBS="$LIBS $X_EXTRA_LIBS" 16447 16448 for ac_header in \ 16449 stropts.h \ 16450 16451 do 16452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16453 echo "$as_me:16453: checking for $ac_header" >&5 16454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 16455 if eval "test \"\${$as_ac_Header+set}\" = set"; then 16456 echo $ECHO_N "(cached) $ECHO_C" >&6 16457 else 16458 cat >"conftest.$ac_ext" <<_ACEOF 16459 #line 16459 "configure" 16460 #include "confdefs.h" 16461 #include <$ac_header> 16462 _ACEOF 16463 if { (eval echo "$as_me:16463: \"$ac_cpp "conftest.$ac_ext"\"") >&5 16464 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 16465 ac_status=$? 16466 $EGREP -v '^ *\+' conftest.er1 >conftest.err 16467 rm -f conftest.er1 16468 cat conftest.err >&5 16469 echo "$as_me:16469: \$? = $ac_status" >&5 16470 (exit "$ac_status"); } >/dev/null; then 16471 if test -s conftest.err; then 16472 ac_cpp_err=$ac_c_preproc_warn_flag 16473 else 16474 ac_cpp_err= 16475 fi 16476 else 16477 ac_cpp_err=yes 16478 fi 16479 if test -z "$ac_cpp_err"; then 16480 eval "$as_ac_Header=yes" 16481 else 16482 echo "$as_me: failed program was:" >&5 16483 cat "conftest.$ac_ext" >&5 16484 eval "$as_ac_Header=no" 16485 fi 16486 rm -f conftest.err "conftest.$ac_ext" 16487 fi 16488 echo "$as_me:16488: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 16489 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 16490 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 16491 cat >>confdefs.h <<EOF 16492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16493 EOF 16494 16495 fi 16496 done 16497 16498 cf_func_grantpt="grantpt ptsname" 16499 cf_prefer_openpt=no 16500 case $host_os in 16501 (darwin[0-9].*) 16502 ;; 16503 (openbsd[0-9].*) 16504 # The POSIX entrypoints exist, but have never worked. 16505 ;; 16506 (linux*) 16507 cf_func_grantpt="$cf_func_grantpt posix_openpt" 16508 cf_prefer_openpt=yes 16509 ;; 16510 (*) 16511 cf_func_grantpt="$cf_func_grantpt posix_openpt" 16512 ;; 16513 esac 16514 16515 for ac_func in $cf_func_grantpt 16516 do 16517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16518 echo "$as_me:16518: checking for $ac_func" >&5 16519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16520 if eval "test \"\${$as_ac_var+set}\" = set"; then 16521 echo $ECHO_N "(cached) $ECHO_C" >&6 16522 else 16523 cat >"conftest.$ac_ext" <<_ACEOF 16524 #line 16524 "configure" 16525 #include "confdefs.h" 16526 #define $ac_func autoconf_temporary 16527 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 16528 #undef $ac_func 16529 16530 #ifdef __cplusplus 16531 extern "C" 16532 #endif 16533 16534 /* We use char because int might match the return type of a gcc2 16535 builtin and then its argument prototype would still apply. */ 16536 char $ac_func (void); 16537 16538 int 16539 main (void) 16540 { 16541 16542 /* The GNU C library defines stubs for functions which it implements 16543 to always fail with ENOSYS. Some functions are actually named 16544 something starting with __ and the normal name is an alias. */ 16545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16546 #error found stub for $ac_func 16547 #endif 16548 16549 return $ac_func (); 16550 ; 16551 return 0; 16552 } 16553 _ACEOF 16554 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 16555 if { (eval echo "$as_me:16555: \"$ac_link\"") >&5 16556 (eval $ac_link) 2>&5 16557 ac_status=$? 16558 echo "$as_me:16558: \$? = $ac_status" >&5 16559 (exit "$ac_status"); } && 16560 { ac_try='test -s "conftest$ac_exeext"' 16561 { (eval echo "$as_me:16561: \"$ac_try\"") >&5 16562 (eval $ac_try) 2>&5 16563 ac_status=$? 16564 echo "$as_me:16564: \$? = $ac_status" >&5 16565 (exit "$ac_status"); }; }; then 16566 eval "$as_ac_var=yes" 16567 else 16568 echo "$as_me: failed program was:" >&5 16569 cat "conftest.$ac_ext" >&5 16570 eval "$as_ac_var=no" 16571 fi 16572 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 16573 fi 16574 echo "$as_me:16574: result: `eval echo '${'"$as_ac_var"'}'`" >&5 16575 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 16576 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 16577 cat >>confdefs.h <<EOF 16578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16579 EOF 16580 16581 fi 16582 done 16583 16584 cf_grantpt_opts= 16585 if test "x$ac_cv_func_grantpt" = "xyes" ; then 16586 echo "$as_me:16586: checking if grantpt really works" >&5 16587 echo $ECHO_N "checking if grantpt really works... $ECHO_C" >&6 16588 cat >"conftest.$ac_ext" <<_ACEOF 16589 #line 16589 "configure" 16590 #include "confdefs.h" 16591 16592 #include <stdlib.h> 16593 #include <stdio.h> 16594 #include <termios.h> 16595 #include <unistd.h> 16596 #include <signal.h> 16597 #include <fcntl.h> 16598 #include <errno.h> 16599 16600 #ifndef HAVE_POSIX_OPENPT 16601 #undef posix_openpt 16602 #define posix_openpt(mode) open("/dev/ptmx", mode) 16603 #endif 16604 16605 #ifdef HAVE_STROPTS_H 16606 #include <stropts.h> 16607 #endif 16608 16609 static void failed(int code) 16610 { 16611 perror("conftest"); 16612 exit(code); 16613 } 16614 16615 static void my_timeout(int sig) 16616 { 16617 (void)sig; 16618 exit(99); 16619 } 16620 16621 int 16622 main (void) 16623 { 16624 16625 int code = 0; 16626 int pty; 16627 int tty; 16628 char *slave; 16629 struct termios tio; 16630 16631 (void)tio; 16632 signal(SIGALRM, my_timeout); 16633 16634 if (alarm(2) == 9) 16635 failed(9); 16636 else if ((pty = posix_openpt(O_RDWR)) < 0) 16637 failed(1); 16638 else if (grantpt(pty) < 0) 16639 failed(2); 16640 else if (unlockpt(pty) < 0) 16641 failed(3); 16642 else if ((slave = ptsname(pty)) == 0) 16643 failed(4); 16644 #if (CONFTEST == 3) || defined(CONFTEST_isatty) 16645 else if (!isatty(pty)) 16646 failed(4); 16647 #endif 16648 #if CONFTEST >= 4 16649 else if (tcgetattr(pty, &tio) < 0) 16650 failed(20); 16651 else if (tcsetattr(pty, TCSAFLUSH, &tio) < 0) 16652 failed(21); 16653 #endif 16654 /* BSD posix_openpt does not treat pty as a terminal until slave is opened. 16655 * Linux does treat it that way. 16656 */ 16657 else if ((tty = open(slave, O_RDWR)) < 0) 16658 failed(5); 16659 #ifdef CONFTEST 16660 #ifdef I_PUSH 16661 #if (CONFTEST == 0) || defined(CONFTEST_ptem) 16662 else if (ioctl(tty, I_PUSH, "ptem") < 0) 16663 failed(10); 16664 #endif 16665 #if (CONFTEST == 1) || defined(CONFTEST_ldterm) 16666 else if (ioctl(tty, I_PUSH, "ldterm") < 0) 16667 failed(11); 16668 #endif 16669 #if (CONFTEST == 2) || defined(CONFTEST_ttcompat) 16670 else if (ioctl(tty, I_PUSH, "ttcompat") < 0) 16671 failed(12); 16672 #endif 16673 #endif /* I_PUSH */ 16674 #if CONFTEST >= 5 16675 else if (tcgetattr(tty, &tio) < 0) 16676 failed(30); 16677 else if (tcsetattr(tty, TCSAFLUSH, &tio) < 0) 16678 failed(31); 16679 #endif 16680 #endif /* CONFTEST */ 16681 (void) tty; 16682 ${cf_cv_main_return:-return}(code); 16683 16684 ; 16685 return 0; 16686 } 16687 _ACEOF 16688 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 16689 if { (eval echo "$as_me:16689: \"$ac_link\"") >&5 16690 (eval $ac_link) 2>&5 16691 ac_status=$? 16692 echo "$as_me:16692: \$? = $ac_status" >&5 16693 (exit "$ac_status"); } && 16694 { ac_try='test -s "conftest$ac_exeext"' 16695 { (eval echo "$as_me:16695: \"$ac_try\"") >&5 16696 (eval $ac_try) 2>&5 16697 ac_status=$? 16698 echo "$as_me:16698: \$? = $ac_status" >&5 16699 (exit "$ac_status"); }; }; then 16700 16701 if test "$cross_compiling" = yes; then 16702 ac_cv_func_grantpt=maybe 16703 else 16704 cat >"conftest.$ac_ext" <<_ACEOF 16705 #line 16705 "configure" 16706 #include "confdefs.h" 16707 16708 #include <stdlib.h> 16709 #include <stdio.h> 16710 #include <termios.h> 16711 #include <unistd.h> 16712 #include <signal.h> 16713 #include <fcntl.h> 16714 #include <errno.h> 16715 16716 #ifndef HAVE_POSIX_OPENPT 16717 #undef posix_openpt 16718 #define posix_openpt(mode) open("/dev/ptmx", mode) 16719 #endif 16720 16721 #ifdef HAVE_STROPTS_H 16722 #include <stropts.h> 16723 #endif 16724 16725 static void failed(int code) 16726 { 16727 perror("conftest"); 16728 exit(code); 16729 } 16730 16731 static void my_timeout(int sig) 16732 { 16733 (void)sig; 16734 exit(99); 16735 } 16736 16737 int main(void) 16738 { 16739 16740 int code = 0; 16741 int pty; 16742 int tty; 16743 char *slave; 16744 struct termios tio; 16745 16746 (void)tio; 16747 signal(SIGALRM, my_timeout); 16748 16749 if (alarm(2) == 9) 16750 failed(9); 16751 else if ((pty = posix_openpt(O_RDWR)) < 0) 16752 failed(1); 16753 else if (grantpt(pty) < 0) 16754 failed(2); 16755 else if (unlockpt(pty) < 0) 16756 failed(3); 16757 else if ((slave = ptsname(pty)) == 0) 16758 failed(4); 16759 #if (CONFTEST == 3) || defined(CONFTEST_isatty) 16760 else if (!isatty(pty)) 16761 failed(4); 16762 #endif 16763 #if CONFTEST >= 4 16764 else if (tcgetattr(pty, &tio) < 0) 16765 failed(20); 16766 else if (tcsetattr(pty, TCSAFLUSH, &tio) < 0) 16767 failed(21); 16768 #endif 16769 /* BSD posix_openpt does not treat pty as a terminal until slave is opened. 16770 * Linux does treat it that way. 16771 */ 16772 else if ((tty = open(slave, O_RDWR)) < 0) 16773 failed(5); 16774 #ifdef CONFTEST 16775 #ifdef I_PUSH 16776 #if (CONFTEST == 0) || defined(CONFTEST_ptem) 16777 else if (ioctl(tty, I_PUSH, "ptem") < 0) 16778 failed(10); 16779 #endif 16780 #if (CONFTEST == 1) || defined(CONFTEST_ldterm) 16781 else if (ioctl(tty, I_PUSH, "ldterm") < 0) 16782 failed(11); 16783 #endif 16784 #if (CONFTEST == 2) || defined(CONFTEST_ttcompat) 16785 else if (ioctl(tty, I_PUSH, "ttcompat") < 0) 16786 failed(12); 16787 #endif 16788 #endif /* I_PUSH */ 16789 #if CONFTEST >= 5 16790 else if (tcgetattr(tty, &tio) < 0) 16791 failed(30); 16792 else if (tcsetattr(tty, TCSAFLUSH, &tio) < 0) 16793 failed(31); 16794 #endif 16795 #endif /* CONFTEST */ 16796 (void) tty; 16797 ${cf_cv_main_return:-return}(code); 16798 16799 } 16800 16801 _ACEOF 16802 rm -f "conftest$ac_exeext" 16803 if { (eval echo "$as_me:16803: \"$ac_link\"") >&5 16804 (eval $ac_link) 2>&5 16805 ac_status=$? 16806 echo "$as_me:16806: \$? = $ac_status" >&5 16807 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 16808 { (eval echo "$as_me:16808: \"$ac_try\"") >&5 16809 (eval $ac_try) 2>&5 16810 ac_status=$? 16811 echo "$as_me:16811: \$? = $ac_status" >&5 16812 (exit "$ac_status"); }; }; then 16813 : 16814 else 16815 echo "$as_me: program exited with status $ac_status" >&5 16816 echo "$as_me: failed program was:" >&5 16817 cat "conftest.$ac_ext" >&5 16818 ac_cv_func_grantpt=no 16819 16820 fi 16821 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 16822 fi 16823 16824 else 16825 echo "$as_me: failed program was:" >&5 16826 cat "conftest.$ac_ext" >&5 16827 ac_cv_func_grantpt=no 16828 fi 16829 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 16830 echo "$as_me:16830: result: $ac_cv_func_grantpt" >&5 16831 echo "${ECHO_T}$ac_cv_func_grantpt" >&6 16832 16833 if test "x$ac_cv_func_grantpt" != "xno" ; then 16834 16835 if test "x$ac_cv_func_grantpt" = "xyes" ; then 16836 echo "$as_me:16836: checking for pty features" >&5 16837 echo $ECHO_N "checking for pty features... $ECHO_C" >&6 16838 if test "x$ac_cv_header_stropts_h" = xyes 16839 then 16840 cf_pty_this=0 16841 else 16842 cf_pty_this=3 16843 fi 16844 16845 cf_pty_defines= 16846 while test $cf_pty_this != 6 16847 do 16848 16849 cf_pty_feature= 16850 cf_pty_next="`expr $cf_pty_this + 1`" 16851 16852 echo "${as_me:-configure}:16852: testing pty feature test $cf_pty_next:5 ..." 1>&5 16853 16854 if test "$cross_compiling" = yes; then 16855 { { echo "$as_me:16855: error: cannot run test program while cross compiling" >&5 16856 echo "$as_me: error: cannot run test program while cross compiling" >&2;} 16857 { (exit 1); exit 1; }; } 16858 else 16859 cat >"conftest.$ac_ext" <<_ACEOF 16860 #line 16860 "configure" 16861 #include "confdefs.h" 16862 #define CONFTEST $cf_pty_this 16863 $cf_pty_defines 16864 16865 #include <stdlib.h> 16866 #include <stdio.h> 16867 #include <termios.h> 16868 #include <unistd.h> 16869 #include <signal.h> 16870 #include <fcntl.h> 16871 #include <errno.h> 16872 16873 #ifndef HAVE_POSIX_OPENPT 16874 #undef posix_openpt 16875 #define posix_openpt(mode) open("/dev/ptmx", mode) 16876 #endif 16877 16878 #ifdef HAVE_STROPTS_H 16879 #include <stropts.h> 16880 #endif 16881 16882 static void failed(int code) 16883 { 16884 perror("conftest"); 16885 exit(code); 16886 } 16887 16888 static void my_timeout(int sig) 16889 { 16890 (void)sig; 16891 exit(99); 16892 } 16893 16894 int main(void) 16895 { 16896 16897 int code = 0; 16898 int pty; 16899 int tty; 16900 char *slave; 16901 struct termios tio; 16902 16903 (void)tio; 16904 signal(SIGALRM, my_timeout); 16905 16906 if (alarm(2) == 9) 16907 failed(9); 16908 else if ((pty = posix_openpt(O_RDWR)) < 0) 16909 failed(1); 16910 else if (grantpt(pty) < 0) 16911 failed(2); 16912 else if (unlockpt(pty) < 0) 16913 failed(3); 16914 else if ((slave = ptsname(pty)) == 0) 16915 failed(4); 16916 #if (CONFTEST == 3) || defined(CONFTEST_isatty) 16917 else if (!isatty(pty)) 16918 failed(4); 16919 #endif 16920 #if CONFTEST >= 4 16921 else if (tcgetattr(pty, &tio) < 0) 16922 failed(20); 16923 else if (tcsetattr(pty, TCSAFLUSH, &tio) < 0) 16924 failed(21); 16925 #endif 16926 /* BSD posix_openpt does not treat pty as a terminal until slave is opened. 16927 * Linux does treat it that way. 16928 */ 16929 else if ((tty = open(slave, O_RDWR)) < 0) 16930 failed(5); 16931 #ifdef CONFTEST 16932 #ifdef I_PUSH 16933 #if (CONFTEST == 0) || defined(CONFTEST_ptem) 16934 else if (ioctl(tty, I_PUSH, "ptem") < 0) 16935 failed(10); 16936 #endif 16937 #if (CONFTEST == 1) || defined(CONFTEST_ldterm) 16938 else if (ioctl(tty, I_PUSH, "ldterm") < 0) 16939 failed(11); 16940 #endif 16941 #if (CONFTEST == 2) || defined(CONFTEST_ttcompat) 16942 else if (ioctl(tty, I_PUSH, "ttcompat") < 0) 16943 failed(12); 16944 #endif 16945 #endif /* I_PUSH */ 16946 #if CONFTEST >= 5 16947 else if (tcgetattr(tty, &tio) < 0) 16948 failed(30); 16949 else if (tcsetattr(tty, TCSAFLUSH, &tio) < 0) 16950 failed(31); 16951 #endif 16952 #endif /* CONFTEST */ 16953 (void) tty; 16954 ${cf_cv_main_return:-return}(code); 16955 16956 } 16957 16958 _ACEOF 16959 rm -f "conftest$ac_exeext" 16960 if { (eval echo "$as_me:16960: \"$ac_link\"") >&5 16961 (eval $ac_link) 2>&5 16962 ac_status=$? 16963 echo "$as_me:16963: \$? = $ac_status" >&5 16964 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 16965 { (eval echo "$as_me:16965: \"$ac_try\"") >&5 16966 (eval $ac_try) 2>&5 16967 ac_status=$? 16968 echo "$as_me:16968: \$? = $ac_status" >&5 16969 (exit "$ac_status"); }; }; then 16970 16971 case $cf_pty_next in 16972 (1) # - streams 16973 cf_pty_feature=ptem 16974 ;; 16975 (2) # - streams 16976 cf_pty_feature=ldterm 16977 ;; 16978 (3) # - streams 16979 cf_pty_feature=ttcompat 16980 ;; 16981 (4) 16982 cf_pty_feature=pty_isatty 16983 ;; 16984 (5) 16985 cf_pty_feature=pty_tcsetattr 16986 ;; 16987 (6) 16988 cf_pty_feature=tty_tcsetattr 16989 ;; 16990 esac 16991 16992 else 16993 echo "$as_me: program exited with status $ac_status" >&5 16994 echo "$as_me: failed program was:" >&5 16995 cat "conftest.$ac_ext" >&5 16996 16997 case $cf_pty_next in 16998 (1|2|3) 16999 17000 echo "${as_me:-configure}:17000: testing skipping remaining streams features $cf_pty_this..2 ..." 1>&5 17001 17002 cf_pty_next=3 17003 ;; 17004 esac 17005 17006 fi 17007 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 17008 fi 17009 if test -n "$cf_pty_feature" 17010 then 17011 cf_pty_defines="$cf_pty_defines 17012 #define CONFTEST_$cf_pty_feature 1 17013 " 17014 cf_grantpt_opts="$cf_grantpt_opts $cf_pty_feature" 17015 fi 17016 17017 cf_pty_this=$cf_pty_next 17018 done 17019 echo "$as_me:17019: result: $cf_grantpt_opts" >&5 17020 echo "${ECHO_T}$cf_grantpt_opts" >&6 17021 cf_grantpt_opts=`echo "$cf_grantpt_opts" | sed -e 's/ isatty//'` 17022 fi 17023 fi 17024 fi 17025 17026 if test "x$cf_prefer_posix_openpt" = "xyes" && test "x$ac_cv_func_posix_openpt" = "xyes" ; then 17027 test -n "$verbose" && echo " prefer posix_openpt over openpty" 1>&6 17028 17029 echo "${as_me:-configure}:17029: testing prefer posix_openpt over openpty ..." 1>&5 17030 17031 elif test "x$disable_openpty" != "xyes" || test -z "$cf_grantpt_opts" ; then 17032 echo "$as_me:17032: checking for openpty in -lutil" >&5 17033 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 17034 if test "${ac_cv_lib_util_openpty+set}" = set; then 17035 echo $ECHO_N "(cached) $ECHO_C" >&6 17036 else 17037 ac_check_lib_save_LIBS=$LIBS 17038 LIBS="-lutil $LIBS" 17039 cat >"conftest.$ac_ext" <<_ACEOF 17040 #line 17040 "configure" 17041 #include "confdefs.h" 17042 17043 /* Override any gcc2 internal prototype to avoid an error. */ 17044 #ifdef __cplusplus 17045 extern "C" 17046 #endif 17047 /* We use char because int might match the return type of a gcc2 17048 builtin and then its argument prototype would still apply. */ 17049 char openpty (void); 17050 int 17051 main (void) 17052 { 17053 openpty (); 17054 ; 17055 return 0; 17056 } 17057 _ACEOF 17058 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 17059 if { (eval echo "$as_me:17059: \"$ac_link\"") >&5 17060 (eval $ac_link) 2>&5 17061 ac_status=$? 17062 echo "$as_me:17062: \$? = $ac_status" >&5 17063 (exit "$ac_status"); } && 17064 { ac_try='test -s "conftest$ac_exeext"' 17065 { (eval echo "$as_me:17065: \"$ac_try\"") >&5 17066 (eval $ac_try) 2>&5 17067 ac_status=$? 17068 echo "$as_me:17068: \$? = $ac_status" >&5 17069 (exit "$ac_status"); }; }; then 17070 ac_cv_lib_util_openpty=yes 17071 else 17072 echo "$as_me: failed program was:" >&5 17073 cat "conftest.$ac_ext" >&5 17074 ac_cv_lib_util_openpty=no 17075 fi 17076 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 17077 LIBS=$ac_check_lib_save_LIBS 17078 fi 17079 echo "$as_me:17079: result: $ac_cv_lib_util_openpty" >&5 17080 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 17081 if test "$ac_cv_lib_util_openpty" = yes; then 17082 cf_have_openpty=yes 17083 else 17084 cf_have_openpty=no 17085 fi 17086 17087 if test "$cf_have_openpty" = yes ; then 17088 ac_cv_func_grantpt=no 17089 LIBS="-lutil $LIBS" 17090 17091 cat >>confdefs.h <<\EOF 17092 #define HAVE_OPENPTY 1 17093 EOF 17094 17095 for ac_header in \ 17096 util.h \ 17097 libutil.h \ 17098 pty.h \ 17099 17100 do 17101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 17102 echo "$as_me:17102: checking for $ac_header" >&5 17103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 17104 if eval "test \"\${$as_ac_Header+set}\" = set"; then 17105 echo $ECHO_N "(cached) $ECHO_C" >&6 17106 else 17107 cat >"conftest.$ac_ext" <<_ACEOF 17108 #line 17108 "configure" 17109 #include "confdefs.h" 17110 #include <$ac_header> 17111 _ACEOF 17112 if { (eval echo "$as_me:17112: \"$ac_cpp "conftest.$ac_ext"\"") >&5 17113 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 17114 ac_status=$? 17115 $EGREP -v '^ *\+' conftest.er1 >conftest.err 17116 rm -f conftest.er1 17117 cat conftest.err >&5 17118 echo "$as_me:17118: \$? = $ac_status" >&5 17119 (exit "$ac_status"); } >/dev/null; then 17120 if test -s conftest.err; then 17121 ac_cpp_err=$ac_c_preproc_warn_flag 17122 else 17123 ac_cpp_err= 17124 fi 17125 else 17126 ac_cpp_err=yes 17127 fi 17128 if test -z "$ac_cpp_err"; then 17129 eval "$as_ac_Header=yes" 17130 else 17131 echo "$as_me: failed program was:" >&5 17132 cat "conftest.$ac_ext" >&5 17133 eval "$as_ac_Header=no" 17134 fi 17135 rm -f conftest.err "conftest.$ac_ext" 17136 fi 17137 echo "$as_me:17137: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 17138 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 17139 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 17140 cat >>confdefs.h <<EOF 17141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 17142 EOF 17143 17144 fi 17145 done 17146 17147 fi 17148 fi 17149 17150 if test "x$ac_cv_func_grantpt" != xno 17151 then 17152 test -n "$verbose" && echo " will rely upon grantpt" 1>&6 17153 17154 echo "${as_me:-configure}:17154: testing will rely upon grantpt ..." 1>&5 17155 17156 cat >>confdefs.h <<\EOF 17157 #define HAVE_WORKING_GRANTPT 1 17158 EOF 17159 17160 for cf_feature in $cf_grantpt_opts 17161 do 17162 cf_feature=`echo "$cf_feature" | sed -e 's/ //g'` 17163 17164 cf_FEATURE=`echo "$cf_feature" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 17165 17166 cat >>confdefs.h <<EOF 17167 #define HAVE_GRANTPT_$cf_FEATURE 1 17168 EOF 17169 17170 done 17171 elif test "x$cf_have_openpty" = xno 17172 then 17173 test -n "$verbose" && echo " will rely upon BSD-pseudoterminals" 1>&6 17174 17175 echo "${as_me:-configure}:17175: testing will rely upon BSD-pseudoterminals ..." 1>&5 17176 17177 else 17178 test -n "$verbose" && echo " will rely upon openpty" 1>&6 17179 17180 echo "${as_me:-configure}:17180: testing will rely upon openpty ..." 1>&5 17181 17182 fi 17183 17184 echo "$as_me:17184: checking if we can use XkbQueryExtension" >&5 17185 echo $ECHO_N "checking if we can use XkbQueryExtension... $ECHO_C" >&6 17186 if test "${cf_cv_xkb_query_extension+set}" = set; then 17187 echo $ECHO_N "(cached) $ECHO_C" >&6 17188 else 17189 17190 cat >"conftest.$ac_ext" <<_ACEOF 17191 #line 17191 "configure" 17192 #include "confdefs.h" 17193 17194 #include <X11/Xlib.h> 17195 #include <X11/extensions/XKB.h> 17196 #include <X11/XKBlib.h> 17197 17198 int 17199 main (void) 17200 { 17201 17202 int xkbmajor = XkbMajorVersion; 17203 int xkbminor = XkbMinorVersion; 17204 int xkbopcode, xkbevent, xkberror; 17205 17206 if (XkbLibraryVersion(&xkbmajor, &xkbminor) 17207 && XkbQueryExtension((Display *)0, 17208 &xkbopcode, 17209 &xkbevent, 17210 &xkberror, 17211 &xkbmajor, 17212 &xkbminor)) 17213 return 0; 17214 17215 ; 17216 return 0; 17217 } 17218 _ACEOF 17219 rm -f "conftest.$ac_objext" 17220 if { (eval echo "$as_me:17220: \"$ac_compile\"") >&5 17221 (eval $ac_compile) 2>&5 17222 ac_status=$? 17223 echo "$as_me:17223: \$? = $ac_status" >&5 17224 (exit "$ac_status"); } && 17225 { ac_try='test -s "conftest.$ac_objext"' 17226 { (eval echo "$as_me:17226: \"$ac_try\"") >&5 17227 (eval $ac_try) 2>&5 17228 ac_status=$? 17229 echo "$as_me:17229: \$? = $ac_status" >&5 17230 (exit "$ac_status"); }; }; then 17231 17232 cf_cv_xkb_query_extension=yes 17233 17234 else 17235 echo "$as_me: failed program was:" >&5 17236 cat "conftest.$ac_ext" >&5 17237 17238 cf_cv_xkb_query_extension=no 17239 17240 fi 17241 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 17242 17243 fi 17244 echo "$as_me:17244: result: $cf_cv_xkb_query_extension" >&5 17245 echo "${ECHO_T}$cf_cv_xkb_query_extension" >&6 17246 17247 if test $cf_cv_xkb_query_extension = yes 17248 then 17249 17250 for ac_func in XkbQueryExtension 17251 do 17252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17253 echo "$as_me:17253: checking for $ac_func" >&5 17254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 17255 if eval "test \"\${$as_ac_var+set}\" = set"; then 17256 echo $ECHO_N "(cached) $ECHO_C" >&6 17257 else 17258 cat >"conftest.$ac_ext" <<_ACEOF 17259 #line 17259 "configure" 17260 #include "confdefs.h" 17261 #define $ac_func autoconf_temporary 17262 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 17263 #undef $ac_func 17264 17265 #ifdef __cplusplus 17266 extern "C" 17267 #endif 17268 17269 /* We use char because int might match the return type of a gcc2 17270 builtin and then its argument prototype would still apply. */ 17271 char $ac_func (void); 17272 17273 int 17274 main (void) 17275 { 17276 17277 /* The GNU C library defines stubs for functions which it implements 17278 to always fail with ENOSYS. Some functions are actually named 17279 something starting with __ and the normal name is an alias. */ 17280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17281 #error found stub for $ac_func 17282 #endif 17283 17284 return $ac_func (); 17285 ; 17286 return 0; 17287 } 17288 _ACEOF 17289 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 17290 if { (eval echo "$as_me:17290: \"$ac_link\"") >&5 17291 (eval $ac_link) 2>&5 17292 ac_status=$? 17293 echo "$as_me:17293: \$? = $ac_status" >&5 17294 (exit "$ac_status"); } && 17295 { ac_try='test -s "conftest$ac_exeext"' 17296 { (eval echo "$as_me:17296: \"$ac_try\"") >&5 17297 (eval $ac_try) 2>&5 17298 ac_status=$? 17299 echo "$as_me:17299: \$? = $ac_status" >&5 17300 (exit "$ac_status"); }; }; then 17301 eval "$as_ac_var=yes" 17302 else 17303 echo "$as_me: failed program was:" >&5 17304 cat "conftest.$ac_ext" >&5 17305 eval "$as_ac_var=no" 17306 fi 17307 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 17308 fi 17309 echo "$as_me:17309: result: `eval echo '${'"$as_ac_var"'}'`" >&5 17310 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 17311 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 17312 cat >>confdefs.h <<EOF 17313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17314 EOF 17315 17316 fi 17317 done 17318 17319 fi 17320 17321 echo "$as_me:17321: checking if we can use XkbKeycodeToKeysym" >&5 17322 echo $ECHO_N "checking if we can use XkbKeycodeToKeysym... $ECHO_C" >&6 17323 if test "${cf_cv_xkb_keycode_to_keysym+set}" = set; then 17324 echo $ECHO_N "(cached) $ECHO_C" >&6 17325 else 17326 17327 cat >"conftest.$ac_ext" <<_ACEOF 17328 #line 17328 "configure" 17329 #include "confdefs.h" 17330 17331 #include <X11/Xlib.h> 17332 #include <X11/XKBlib.h> 17333 17334 int 17335 main (void) 17336 { 17337 17338 KeySym keysym = XkbKeycodeToKeysym((Display *)0, 0, 0, 0); 17339 (void)keysym; 17340 17341 ; 17342 return 0; 17343 } 17344 _ACEOF 17345 rm -f "conftest.$ac_objext" 17346 if { (eval echo "$as_me:17346: \"$ac_compile\"") >&5 17347 (eval $ac_compile) 2>&5 17348 ac_status=$? 17349 echo "$as_me:17349: \$? = $ac_status" >&5 17350 (exit "$ac_status"); } && 17351 { ac_try='test -s "conftest.$ac_objext"' 17352 { (eval echo "$as_me:17352: \"$ac_try\"") >&5 17353 (eval $ac_try) 2>&5 17354 ac_status=$? 17355 echo "$as_me:17355: \$? = $ac_status" >&5 17356 (exit "$ac_status"); }; }; then 17357 17358 cf_cv_xkb_keycode_to_keysym=yes 17359 17360 else 17361 echo "$as_me: failed program was:" >&5 17362 cat "conftest.$ac_ext" >&5 17363 17364 cf_cv_xkb_keycode_to_keysym=no 17365 17366 fi 17367 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 17368 17369 fi 17370 echo "$as_me:17370: result: $cf_cv_xkb_keycode_to_keysym" >&5 17371 echo "${ECHO_T}$cf_cv_xkb_keycode_to_keysym" >&6 17372 17373 if test $cf_cv_xkb_keycode_to_keysym = yes 17374 then 17375 17376 for ac_func in XkbKeycodeToKeysym 17377 do 17378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17379 echo "$as_me:17379: checking for $ac_func" >&5 17380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 17381 if eval "test \"\${$as_ac_var+set}\" = set"; then 17382 echo $ECHO_N "(cached) $ECHO_C" >&6 17383 else 17384 cat >"conftest.$ac_ext" <<_ACEOF 17385 #line 17385 "configure" 17386 #include "confdefs.h" 17387 #define $ac_func autoconf_temporary 17388 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 17389 #undef $ac_func 17390 17391 #ifdef __cplusplus 17392 extern "C" 17393 #endif 17394 17395 /* We use char because int might match the return type of a gcc2 17396 builtin and then its argument prototype would still apply. */ 17397 char $ac_func (void); 17398 17399 int 17400 main (void) 17401 { 17402 17403 /* The GNU C library defines stubs for functions which it implements 17404 to always fail with ENOSYS. Some functions are actually named 17405 something starting with __ and the normal name is an alias. */ 17406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17407 #error found stub for $ac_func 17408 #endif 17409 17410 return $ac_func (); 17411 ; 17412 return 0; 17413 } 17414 _ACEOF 17415 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 17416 if { (eval echo "$as_me:17416: \"$ac_link\"") >&5 17417 (eval $ac_link) 2>&5 17418 ac_status=$? 17419 echo "$as_me:17419: \$? = $ac_status" >&5 17420 (exit "$ac_status"); } && 17421 { ac_try='test -s "conftest$ac_exeext"' 17422 { (eval echo "$as_me:17422: \"$ac_try\"") >&5 17423 (eval $ac_try) 2>&5 17424 ac_status=$? 17425 echo "$as_me:17425: \$? = $ac_status" >&5 17426 (exit "$ac_status"); }; }; then 17427 eval "$as_ac_var=yes" 17428 else 17429 echo "$as_me: failed program was:" >&5 17430 cat "conftest.$ac_ext" >&5 17431 eval "$as_ac_var=no" 17432 fi 17433 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 17434 fi 17435 echo "$as_me:17435: result: `eval echo '${'"$as_ac_var"'}'`" >&5 17436 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 17437 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 17438 cat >>confdefs.h <<EOF 17439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17440 EOF 17441 17442 fi 17443 done 17444 17445 fi 17446 17447 cf_save_LIBS_CF_XKB_BELL_EXT="$LIBS" 17448 cf_save_CFLAGS_CF_XKB_BELL_EXT="$CFLAGS" 17449 cf_save_CPPFLAGS_CF_XKB_BELL_EXT="$CPPFLAGS" 17450 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}" 17451 for cf_X_CFLAGS in $X_CFLAGS 17452 do 17453 case "x$cf_X_CFLAGS" in 17454 x-[IUD]*) 17455 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS" 17456 ;; 17457 *) 17458 CFLAGS="$CFLAGS $cf_X_CFLAGS" 17459 ;; 17460 esac 17461 done 17462 17463 echo "$as_me:17463: checking for XKB Bell extension" >&5 17464 echo $ECHO_N "checking for XKB Bell extension... $ECHO_C" >&6 17465 if test "${cf_cv_xkb_bell_ext+set}" = set; then 17466 echo $ECHO_N "(cached) $ECHO_C" >&6 17467 else 17468 17469 cat >"conftest.$ac_ext" <<_ACEOF 17470 #line 17470 "configure" 17471 #include "confdefs.h" 17472 17473 #include <X11/Intrinsic.h> 17474 #include <X11/XKBlib.h> /* has the prototype */ 17475 #include <X11/extensions/XKBbells.h> /* has the XkbBI_xxx definitions */ 17476 17477 int 17478 main (void) 17479 { 17480 17481 int x = (XkbBI_Info |XkbBI_MinorError |XkbBI_MajorError |XkbBI_TerminalBell |XkbBI_MarginBell); 17482 Atom y = 0; 17483 (void)x; 17484 XkbBell((Display *)0, (Window)0, 0, y); 17485 17486 ; 17487 return 0; 17488 } 17489 _ACEOF 17490 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 17491 if { (eval echo "$as_me:17491: \"$ac_link\"") >&5 17492 (eval $ac_link) 2>&5 17493 ac_status=$? 17494 echo "$as_me:17494: \$? = $ac_status" >&5 17495 (exit "$ac_status"); } && 17496 { ac_try='test -s "conftest$ac_exeext"' 17497 { (eval echo "$as_me:17497: \"$ac_try\"") >&5 17498 (eval $ac_try) 2>&5 17499 ac_status=$? 17500 echo "$as_me:17500: \$? = $ac_status" >&5 17501 (exit "$ac_status"); }; }; then 17502 cf_cv_xkb_bell_ext=yes 17503 else 17504 echo "$as_me: failed program was:" >&5 17505 cat "conftest.$ac_ext" >&5 17506 cf_cv_xkb_bell_ext=no 17507 fi 17508 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 17509 17510 fi 17511 echo "$as_me:17511: result: $cf_cv_xkb_bell_ext" >&5 17512 echo "${ECHO_T}$cf_cv_xkb_bell_ext" >&6 17513 test "$cf_cv_xkb_bell_ext" = yes && 17514 cat >>confdefs.h <<\EOF 17515 #define HAVE_XKB_BELL_EXT 1 17516 EOF 17517 17518 LIBS="$cf_save_LIBS_CF_XKB_BELL_EXT" 17519 CFLAGS="$cf_save_CFLAGS_CF_XKB_BELL_EXT" 17520 CPPFLAGS="$cf_save_CPPFLAGS_CF_XKB_BELL_EXT" 17521 17522 for ac_func in Xutf8LookupString 17523 do 17524 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17525 echo "$as_me:17525: checking for $ac_func" >&5 17526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 17527 if eval "test \"\${$as_ac_var+set}\" = set"; then 17528 echo $ECHO_N "(cached) $ECHO_C" >&6 17529 else 17530 cat >"conftest.$ac_ext" <<_ACEOF 17531 #line 17531 "configure" 17532 #include "confdefs.h" 17533 #define $ac_func autoconf_temporary 17534 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 17535 #undef $ac_func 17536 17537 #ifdef __cplusplus 17538 extern "C" 17539 #endif 17540 17541 /* We use char because int might match the return type of a gcc2 17542 builtin and then its argument prototype would still apply. */ 17543 char $ac_func (void); 17544 17545 int 17546 main (void) 17547 { 17548 17549 /* The GNU C library defines stubs for functions which it implements 17550 to always fail with ENOSYS. Some functions are actually named 17551 something starting with __ and the normal name is an alias. */ 17552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17553 #error found stub for $ac_func 17554 #endif 17555 17556 return $ac_func (); 17557 ; 17558 return 0; 17559 } 17560 _ACEOF 17561 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 17562 if { (eval echo "$as_me:17562: \"$ac_link\"") >&5 17563 (eval $ac_link) 2>&5 17564 ac_status=$? 17565 echo "$as_me:17565: \$? = $ac_status" >&5 17566 (exit "$ac_status"); } && 17567 { ac_try='test -s "conftest$ac_exeext"' 17568 { (eval echo "$as_me:17568: \"$ac_try\"") >&5 17569 (eval $ac_try) 2>&5 17570 ac_status=$? 17571 echo "$as_me:17571: \$? = $ac_status" >&5 17572 (exit "$ac_status"); }; }; then 17573 eval "$as_ac_var=yes" 17574 else 17575 echo "$as_me: failed program was:" >&5 17576 cat "conftest.$ac_ext" >&5 17577 eval "$as_ac_var=no" 17578 fi 17579 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 17580 fi 17581 echo "$as_me:17581: result: `eval echo '${'"$as_ac_var"'}'`" >&5 17582 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 17583 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 17584 cat >>confdefs.h <<EOF 17585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17586 EOF 17587 17588 else 17589 17590 EXTRAHDRS="$EXTRAHDRS xutf8.h" 17591 EXTRASRCS="$EXTRASRCS xutf8.c" 17592 EXTRAOBJS="$EXTRAOBJS xutf8.o" 17593 17594 fi 17595 done 17596 17597 echo "$as_me:17597: checking if you want narrow prototypes for X libraries" >&5 17598 echo $ECHO_N "checking if you want narrow prototypes for X libraries... $ECHO_C" >&6 17599 17600 case `$ac_config_guess` in 17601 (*freebsd*|*gnu*|*irix5*|*irix6*|*netbsd*|*openbsd*|*qnx*|*sco*|*sgi*) 17602 cf_default_narrowproto=yes 17603 ;; 17604 (*) 17605 cf_default_narrowproto=no 17606 ;; 17607 esac 17608 17609 # Check whether --enable-narrowproto or --disable-narrowproto was given. 17610 if test "${enable_narrowproto+set}" = set; then 17611 enableval="$enable_narrowproto" 17612 test "$enableval" != no && enableval=yes 17613 if test "$enableval" != "$cf_default_narrowproto" ; then 17614 enable_narrowproto=$enableval 17615 else 17616 enable_narrowproto=$cf_default_narrowproto 17617 fi 17618 else 17619 enableval=$cf_default_narrowproto 17620 enable_narrowproto=$cf_default_narrowproto 17621 17622 fi; 17623 echo "$as_me:17623: result: $enable_narrowproto" >&5 17624 echo "${ECHO_T}$enable_narrowproto" >&6 17625 17626 echo "$as_me:17626: checking if we should use imake to help" >&5 17627 echo $ECHO_N "checking if we should use imake to help... $ECHO_C" >&6 17628 17629 # Check whether --enable-imake or --disable-imake was given. 17630 if test "${enable_imake+set}" = set; then 17631 enableval="$enable_imake" 17632 test "$enableval" != yes && enableval=no 17633 if test "$enableval" != "no" ; then 17634 enable_imake=yes 17635 else 17636 enable_imake=no 17637 fi 17638 else 17639 enableval=no 17640 enable_imake=no 17641 17642 fi; 17643 echo "$as_me:17643: result: $enable_imake" >&5 17644 echo "${ECHO_T}$enable_imake" >&6 17645 17646 if test "$enable_imake" = yes ; then 17647 17648 for ac_prog in xmkmf imake 17649 do 17650 # Extract the first word of "$ac_prog", so it can be a program name with args. 17651 set dummy $ac_prog; ac_word=$2 17652 echo "$as_me:17652: checking for $ac_word" >&5 17653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 17654 if test "${ac_cv_path_IMAKE+set}" = set; then 17655 echo $ECHO_N "(cached) $ECHO_C" >&6 17656 else 17657 case $IMAKE in 17658 [\\/]* | ?:[\\/]*) 17659 ac_cv_path_IMAKE="$IMAKE" # Let the user override the test with a path. 17660 ;; 17661 *) 17662 ac_save_IFS=$IFS; IFS=$ac_path_separator 17663 ac_dummy="$PATH" 17664 for ac_dir in $ac_dummy; do 17665 IFS=$ac_save_IFS 17666 test -z "$ac_dir" && ac_dir=. 17667 if $as_executable_p "$ac_dir/$ac_word"; then 17668 ac_cv_path_IMAKE="$ac_dir/$ac_word" 17669 echo "$as_me:17669: found $ac_dir/$ac_word" >&5 17670 break 17671 fi 17672 done 17673 17674 ;; 17675 esac 17676 fi 17677 IMAKE=$ac_cv_path_IMAKE 17678 17679 if test -n "$IMAKE"; then 17680 echo "$as_me:17680: result: $IMAKE" >&5 17681 echo "${ECHO_T}$IMAKE" >&6 17682 else 17683 echo "$as_me:17683: result: no" >&5 17684 echo "${ECHO_T}no" >&6 17685 fi 17686 17687 test -n "$IMAKE" && break 17688 done 17689 17690 if test -n "$IMAKE" ; then 17691 17692 case $IMAKE in 17693 (*/imake) 17694 cf_imake_opts="-DUseInstalled=YES" 17695 ;; 17696 (*/util/xmkmf) 17697 # A single parameter tells xmkmf where the config-files are: 17698 cf_imake_opts="`echo "$IMAKE"|sed -e s,/config/util/xmkmf,,`" 17699 ;; 17700 (*) 17701 cf_imake_opts= 17702 ;; 17703 esac 17704 17705 # If it's installed properly, imake (or its wrapper, xmkmf) will point to the 17706 # config directory. 17707 if mkdir conftestdir; then 17708 CDPATH=; export CDPATH 17709 cf_makefile=`cd "$srcdir" || exit;pwd`/Imakefile 17710 cd conftestdir 17711 17712 cat >fix_cflags.sed <<'CF_EOF' 17713 s/\\//g 17714 s/[ ][ ]*/ /g 17715 s/"//g 17716 :pack 17717 s/\(=[^ ][^ ]*\) \([^-]\)/\1 \2/g 17718 t pack 17719 s/\(-D[a-zA-Z0-9_][a-zA-Z0-9_]*\)=\([^\'0-9 ][^ ]*\)/\1='\\"\2\\"'/g 17720 s/^IMAKE[ ]/IMAKE_CFLAGS="/ 17721 s/ / /g 17722 s/$/"/ 17723 CF_EOF 17724 17725 cat >fix_lflags.sed <<'CF_EOF' 17726 s/^IMAKE[ ]*/IMAKE_LOADFLAGS="/ 17727 s/$/"/ 17728 CF_EOF 17729 17730 echo >./Imakefile 17731 test -f "$cf_makefile" && cat "$cf_makefile" >>./Imakefile 17732 17733 cat >> ./Imakefile <<'CF_EOF' 17734 findstddefs: 17735 @echo IMAKE ${ALLDEFINES} $(MAIN_DEFINES) $(VENDORMANDEFS) | sed -f fix_cflags.sed 17736 @echo IMAKE ${EXTRA_LOAD_FLAGS} | sed -f fix_lflags.sed 17737 CF_EOF 17738 17739 if ( $IMAKE "$cf_imake_opts" 1>/dev/null 2>&5 && test -f Makefile) 17740 then 17741 test -n "$verbose" && echo " Using $IMAKE $cf_imake_opts" 1>&6 17742 17743 echo "${as_me:-configure}:17743: testing Using $IMAKE $cf_imake_opts ..." 1>&5 17744 17745 else 17746 # sometimes imake doesn't have the config path compiled in. Find it. 17747 cf_config= 17748 for cf_libpath in $X_LIBS $LIBS ; do 17749 case "$cf_libpath" in 17750 (-L*) 17751 cf_libpath=`echo ".$cf_libpath" | sed -e 's/^...//'` 17752 cf_libpath="$cf_libpath/X11/config" 17753 if test -d "$cf_libpath" ; then 17754 cf_config="$cf_libpath" 17755 break 17756 fi 17757 ;; 17758 esac 17759 done 17760 if test -z "$cf_config" ; then 17761 { echo "$as_me:17761: WARNING: Could not find imake config-directory" >&5 17762 echo "$as_me: WARNING: Could not find imake config-directory" >&2;} 17763 else 17764 cf_imake_opts="$cf_imake_opts -I$cf_config" 17765 if ( "$IMAKE" -v "$cf_imake_opts" 2>&5) 17766 then 17767 test -n "$verbose" && echo " Using $IMAKE $cf_config" 1>&6 17768 17769 echo "${as_me:-configure}:17769: testing Using $IMAKE $cf_config ..." 1>&5 17770 17771 else 17772 { echo "$as_me:17772: WARNING: Cannot run $IMAKE" >&5 17773 echo "$as_me: WARNING: Cannot run $IMAKE" >&2;} 17774 fi 17775 fi 17776 fi 17777 17778 # GNU make sometimes prints "make[1]: Entering...", which 17779 # would confuse us. 17780 eval "`make findstddefs 2>/dev/null | grep -v make`" 17781 17782 cd .. 17783 rm -rf conftestdir 17784 17785 # We use ${ALLDEFINES} rather than ${STD_DEFINES} because the former 17786 # declares XTFUNCPROTO there. However, some vendors (e.g., SGI) have 17787 # modified it to support site.cf, adding a kludge for the /usr/include 17788 # directory. Try to filter that out, otherwise gcc won't find its 17789 # headers. 17790 if test -n "$GCC" ; then 17791 if test -n "$IMAKE_CFLAGS" ; then 17792 cf_nostdinc="" 17793 cf_std_incl="" 17794 cf_cpp_opts="" 17795 for cf_opt in $IMAKE_CFLAGS 17796 do 17797 case "$cf_opt" in 17798 (-nostdinc) 17799 cf_nostdinc="$cf_opt" 17800 ;; 17801 (-I/usr/include) 17802 cf_std_incl="$cf_opt" 17803 ;; 17804 (*) 17805 cf_cpp_opts="$cf_cpp_opts $cf_opt" 17806 ;; 17807 esac 17808 done 17809 if test -z "$cf_nostdinc" ; then 17810 IMAKE_CFLAGS="$cf_cpp_opts $cf_std_incl" 17811 elif test -z "$cf_std_incl" ; then 17812 IMAKE_CFLAGS="$cf_cpp_opts $cf_nostdinc" 17813 else 17814 test -n "$verbose" && echo " suppressed \"$cf_nostdinc\" and \"$cf_std_incl\"" 1>&6 17815 17816 echo "${as_me:-configure}:17816: testing suppressed \"$cf_nostdinc\" and \"$cf_std_incl\" ..." 1>&5 17817 17818 IMAKE_CFLAGS="$cf_cpp_opts" 17819 fi 17820 fi 17821 fi 17822 fi 17823 17824 # Some imake configurations define PROJECTROOT with an empty value. Remove 17825 # the empty definition. 17826 case $IMAKE_CFLAGS in 17827 (*-DPROJECTROOT=/*) 17828 ;; 17829 (*) 17830 IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" |sed -e "s,-DPROJECTROOT=[ ], ,"` 17831 ;; 17832 esac 17833 17834 fi 17835 17836 test -n "$verbose" && echo " IMAKE_CFLAGS $IMAKE_CFLAGS" 1>&6 17837 17838 echo "${as_me:-configure}:17838: testing IMAKE_CFLAGS $IMAKE_CFLAGS ..." 1>&5 17839 17840 test -n "$verbose" && echo " IMAKE_LOADFLAGS $IMAKE_LOADFLAGS" 1>&6 17841 17842 echo "${as_me:-configure}:17842: testing IMAKE_LOADFLAGS $IMAKE_LOADFLAGS ..." 1>&5 17843 17844 fi 17845 17846 if test -n "$IMAKE" && test -n "$IMAKE_CFLAGS" ; then 17847 17848 cf_fix_cppflags=no 17849 cf_new_cflags= 17850 cf_new_cppflags= 17851 cf_new_extra_cppflags= 17852 17853 for cf_add_cflags in $IMAKE_CFLAGS 17854 do 17855 case "$cf_fix_cppflags" in 17856 (no) 17857 case "$cf_add_cflags" in 17858 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 17859 case "$cf_add_cflags" in 17860 (-D*) 17861 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 17862 17863 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 17864 && test -z "${cf_tst_cflags}" \ 17865 && cf_fix_cppflags=yes 17866 17867 if test "$cf_fix_cppflags" = yes ; then 17868 17869 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 17870 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 17871 17872 continue 17873 elif test "${cf_tst_cflags}" = "\"'" ; then 17874 17875 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 17876 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 17877 17878 continue 17879 fi 17880 ;; 17881 esac 17882 case "$CPPFLAGS" in 17883 (*$cf_add_cflags) 17884 ;; 17885 (*) 17886 case "$cf_add_cflags" in 17887 (-D*) 17888 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 17889 17890 CPPFLAGS=`echo "$CPPFLAGS" | \ 17891 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 17892 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 17893 17894 ;; 17895 esac 17896 17897 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 17898 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 17899 17900 ;; 17901 esac 17902 ;; 17903 (*) 17904 17905 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 17906 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 17907 17908 ;; 17909 esac 17910 ;; 17911 (yes) 17912 17913 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 17914 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 17915 17916 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 17917 17918 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 17919 && test -z "${cf_tst_cflags}" \ 17920 && cf_fix_cppflags=no 17921 ;; 17922 esac 17923 done 17924 17925 if test -n "$cf_new_cflags" ; then 17926 17927 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 17928 CFLAGS="${CFLAGS}$cf_new_cflags" 17929 17930 fi 17931 17932 if test -n "$cf_new_cppflags" ; then 17933 17934 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 17935 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 17936 17937 fi 17938 17939 if test -n "$cf_new_extra_cppflags" ; then 17940 17941 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 17942 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 17943 17944 fi 17945 17946 else 17947 IMAKE_CFLAGS= 17948 IMAKE_LOADFLAGS= 17949 test -n "$verbose" && echo " make fallback definitions" 1>&6 17950 17951 echo "${as_me:-configure}:17951: testing make fallback definitions ..." 1>&5 17952 17953 # We prefer config.guess' values when we can get them, to avoid 17954 # inconsistent results with uname (AIX for instance). However, 17955 # config.guess is not always consistent either. 17956 case $host_os in 17957 (*[0-9].[0-9]*) 17958 UNAME_RELEASE="$host_os" 17959 ;; 17960 (*) 17961 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown 17962 ;; 17963 esac 17964 17965 case .$UNAME_RELEASE in 17966 (*[0-9].[0-9]*) 17967 OSMAJORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/\..*//'` 17968 OSMINORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/^[^.]*\.//' -e 's/\..*//' -e 's/[^0-9].*//' ` 17969 test -z "$OSMAJORVERSION" && OSMAJORVERSION=1 17970 test -z "$OSMINORVERSION" && OSMINORVERSION=0 17971 IMAKE_CFLAGS="-DOSMAJORVERSION=$OSMAJORVERSION -DOSMINORVERSION=$OSMINORVERSION $IMAKE_CFLAGS" 17972 ;; 17973 esac 17974 17975 # FUNCPROTO is standard with X11R6, but XFree86 drops it, leaving some 17976 # fallback/fragments for NeedPrototypes, etc. 17977 IMAKE_CFLAGS="-DFUNCPROTO=15 $IMAKE_CFLAGS" 17978 17979 # If this is not set properly, Xaw's scrollbars will not work 17980 if test "$enable_narrowproto" = yes ; then 17981 IMAKE_CFLAGS="-DNARROWPROTO=1 $IMAKE_CFLAGS" 17982 fi 17983 17984 # Other special definitions: 17985 case $host_os in 17986 (aix*) 17987 # imake on AIX 5.1 defines AIXV3. really. 17988 IMAKE_CFLAGS="-DAIXV3 -DAIXV4 $IMAKE_CFLAGS" 17989 ;; 17990 (irix[56].*) 17991 # these are needed to make SIGWINCH work in xterm 17992 IMAKE_CFLAGS="-DSYSV -DSVR4 $IMAKE_CFLAGS" 17993 ;; 17994 esac 17995 17996 # "modern" systems install X applications in /usr/bin. Other systems may 17997 # use one of the X release-based directories. 17998 case "$CFLAGS $CPPFLAGS $IMAKE_CFLAGS" in 17999 (*-DPROJECTROOT*) 18000 ;; 18001 (*) 18002 for cf_dir in /usr/X11R7 /usr/X11R6 /usr/X11R5 18003 do 18004 if test -d "$cf_dir/bin" 18005 then 18006 IMAKE_CFLAGS="$IMAKE_CFLAGS -DPROJECTROOT=\\\"$cf_dir\\\"" 18007 break 18008 fi 18009 done 18010 ;; 18011 esac 18012 18013 cf_fix_cppflags=no 18014 cf_new_cflags= 18015 cf_new_cppflags= 18016 cf_new_extra_cppflags= 18017 18018 for cf_add_cflags in $IMAKE_CFLAGS 18019 do 18020 case "$cf_fix_cppflags" in 18021 (no) 18022 case "$cf_add_cflags" in 18023 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 18024 case "$cf_add_cflags" in 18025 (-D*) 18026 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 18027 18028 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 18029 && test -z "${cf_tst_cflags}" \ 18030 && cf_fix_cppflags=yes 18031 18032 if test "$cf_fix_cppflags" = yes ; then 18033 18034 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 18035 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 18036 18037 continue 18038 elif test "${cf_tst_cflags}" = "\"'" ; then 18039 18040 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 18041 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 18042 18043 continue 18044 fi 18045 ;; 18046 esac 18047 case "$CPPFLAGS" in 18048 (*$cf_add_cflags) 18049 ;; 18050 (*) 18051 case "$cf_add_cflags" in 18052 (-D*) 18053 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 18054 18055 CPPFLAGS=`echo "$CPPFLAGS" | \ 18056 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 18057 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 18058 18059 ;; 18060 esac 18061 18062 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 18063 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 18064 18065 ;; 18066 esac 18067 ;; 18068 (*) 18069 18070 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 18071 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 18072 18073 ;; 18074 esac 18075 ;; 18076 (yes) 18077 18078 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 18079 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 18080 18081 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 18082 18083 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 18084 && test -z "${cf_tst_cflags}" \ 18085 && cf_fix_cppflags=no 18086 ;; 18087 esac 18088 done 18089 18090 if test -n "$cf_new_cflags" ; then 18091 18092 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 18093 CFLAGS="${CFLAGS}$cf_new_cflags" 18094 18095 fi 18096 18097 if test -n "$cf_new_cppflags" ; then 18098 18099 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 18100 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 18101 18102 fi 18103 18104 if test -n "$cf_new_extra_cppflags" ; then 18105 18106 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 18107 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 18108 18109 fi 18110 18111 fi 18112 18113 # Extract the first word of "groff", so it can be a program name with args. 18114 set dummy groff; ac_word=$2 18115 echo "$as_me:18115: checking for $ac_word" >&5 18116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18117 if test "${ac_cv_path_GROFF_PATH+set}" = set; then 18118 echo $ECHO_N "(cached) $ECHO_C" >&6 18119 else 18120 case $GROFF_PATH in 18121 [\\/]* | ?:[\\/]*) 18122 ac_cv_path_GROFF_PATH="$GROFF_PATH" # Let the user override the test with a path. 18123 ;; 18124 *) 18125 ac_save_IFS=$IFS; IFS=$ac_path_separator 18126 ac_dummy="$PATH" 18127 for ac_dir in $ac_dummy; do 18128 IFS=$ac_save_IFS 18129 test -z "$ac_dir" && ac_dir=. 18130 if $as_executable_p "$ac_dir/$ac_word"; then 18131 ac_cv_path_GROFF_PATH="$ac_dir/$ac_word" 18132 echo "$as_me:18132: found $ac_dir/$ac_word" >&5 18133 break 18134 fi 18135 done 18136 18137 test -z "$ac_cv_path_GROFF_PATH" && ac_cv_path_GROFF_PATH="no" 18138 ;; 18139 esac 18140 fi 18141 GROFF_PATH=$ac_cv_path_GROFF_PATH 18142 18143 if test -n "$GROFF_PATH"; then 18144 echo "$as_me:18144: result: $GROFF_PATH" >&5 18145 echo "${ECHO_T}$GROFF_PATH" >&6 18146 else 18147 echo "$as_me:18147: result: no" >&5 18148 echo "${ECHO_T}no" >&6 18149 fi 18150 18151 for ac_prog in nroff mandoc 18152 do 18153 # Extract the first word of "$ac_prog", so it can be a program name with args. 18154 set dummy $ac_prog; ac_word=$2 18155 echo "$as_me:18155: checking for $ac_word" >&5 18156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18157 if test "${ac_cv_path_NROFF_PATH+set}" = set; then 18158 echo $ECHO_N "(cached) $ECHO_C" >&6 18159 else 18160 case $NROFF_PATH in 18161 [\\/]* | ?:[\\/]*) 18162 ac_cv_path_NROFF_PATH="$NROFF_PATH" # Let the user override the test with a path. 18163 ;; 18164 *) 18165 ac_save_IFS=$IFS; IFS=$ac_path_separator 18166 ac_dummy="$PATH" 18167 for ac_dir in $ac_dummy; do 18168 IFS=$ac_save_IFS 18169 test -z "$ac_dir" && ac_dir=. 18170 if $as_executable_p "$ac_dir/$ac_word"; then 18171 ac_cv_path_NROFF_PATH="$ac_dir/$ac_word" 18172 echo "$as_me:18172: found $ac_dir/$ac_word" >&5 18173 break 18174 fi 18175 done 18176 18177 ;; 18178 esac 18179 fi 18180 NROFF_PATH=$ac_cv_path_NROFF_PATH 18181 18182 if test -n "$NROFF_PATH"; then 18183 echo "$as_me:18183: result: $NROFF_PATH" >&5 18184 echo "${ECHO_T}$NROFF_PATH" >&6 18185 else 18186 echo "$as_me:18186: result: no" >&5 18187 echo "${ECHO_T}no" >&6 18188 fi 18189 18190 test -n "$NROFF_PATH" && break 18191 done 18192 test -n "$NROFF_PATH" || NROFF_PATH="no" 18193 18194 # Extract the first word of "tbl", so it can be a program name with args. 18195 set dummy tbl; ac_word=$2 18196 echo "$as_me:18196: checking for $ac_word" >&5 18197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18198 if test "${ac_cv_path_TBL_PATH+set}" = set; then 18199 echo $ECHO_N "(cached) $ECHO_C" >&6 18200 else 18201 case $TBL_PATH in 18202 [\\/]* | ?:[\\/]*) 18203 ac_cv_path_TBL_PATH="$TBL_PATH" # Let the user override the test with a path. 18204 ;; 18205 *) 18206 ac_save_IFS=$IFS; IFS=$ac_path_separator 18207 ac_dummy="$PATH" 18208 for ac_dir in $ac_dummy; do 18209 IFS=$ac_save_IFS 18210 test -z "$ac_dir" && ac_dir=. 18211 if $as_executable_p "$ac_dir/$ac_word"; then 18212 ac_cv_path_TBL_PATH="$ac_dir/$ac_word" 18213 echo "$as_me:18213: found $ac_dir/$ac_word" >&5 18214 break 18215 fi 18216 done 18217 18218 test -z "$ac_cv_path_TBL_PATH" && ac_cv_path_TBL_PATH="cat" 18219 ;; 18220 esac 18221 fi 18222 TBL_PATH=$ac_cv_path_TBL_PATH 18223 18224 if test -n "$TBL_PATH"; then 18225 echo "$as_me:18225: result: $TBL_PATH" >&5 18226 echo "${ECHO_T}$TBL_PATH" >&6 18227 else 18228 echo "$as_me:18228: result: no" >&5 18229 echo "${ECHO_T}no" >&6 18230 fi 18231 18232 if test "x$GROFF_PATH" = xno 18233 then 18234 NROFF_NOTE= 18235 GROFF_NOTE="#" 18236 else 18237 NROFF_NOTE="#" 18238 GROFF_NOTE= 18239 fi 18240 18241 echo "$as_me:18241: checking for fgrep" >&5 18242 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6 18243 if test "${ac_cv_path_FGREP+set}" = set; then 18244 echo $ECHO_N "(cached) $ECHO_C" >&6 18245 else 18246 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 18247 then ac_cv_path_FGREP="$GREP -F" 18248 else 18249 for ac_prog in gfgrep fgrep 18250 do 18251 # Extract the first word of "$ac_prog", so it can be a program name with args. 18252 set dummy $ac_prog; ac_word=$2 18253 echo "$as_me:18253: checking for $ac_word" >&5 18254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18255 if test "${ac_cv_path_FGREP+set}" = set; then 18256 echo $ECHO_N "(cached) $ECHO_C" >&6 18257 else 18258 case $FGREP in 18259 [\\/]* | ?:[\\/]*) 18260 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 18261 ;; 18262 *) 18263 ac_save_IFS=$IFS; IFS=$ac_path_separator 18264 ac_dummy="$PATH" 18265 for ac_dir in $ac_dummy; do 18266 IFS=$ac_save_IFS 18267 test -z "$ac_dir" && ac_dir=. 18268 if $as_executable_p "$ac_dir/$ac_word"; then 18269 ac_cv_path_FGREP="$ac_dir/$ac_word" 18270 echo "$as_me:18270: found $ac_dir/$ac_word" >&5 18271 break 18272 fi 18273 done 18274 18275 ;; 18276 esac 18277 fi 18278 FGREP=$ac_cv_path_FGREP 18279 18280 if test -n "$FGREP"; then 18281 echo "$as_me:18281: result: $FGREP" >&5 18282 echo "${ECHO_T}$FGREP" >&6 18283 else 18284 echo "$as_me:18284: result: no" >&5 18285 echo "${ECHO_T}no" >&6 18286 fi 18287 18288 test -n "$FGREP" && break 18289 done 18290 test -n "$FGREP" || FGREP=": " 18291 18292 test "x$ac_cv_path_FGREP" = "x:" && { { echo "$as_me:18292: error: cannot find workable fgrep" >&5 18293 echo "$as_me: error: cannot find workable fgrep" >&2;} 18294 { (exit 1); exit 1; }; } 18295 fi 18296 fi 18297 echo "$as_me:18297: result: $ac_cv_path_FGREP" >&5 18298 echo "${ECHO_T}$ac_cv_path_FGREP" >&6 18299 FGREP="$ac_cv_path_FGREP" 18300 18301 case "x${with_man2html}" in 18302 (xno) 18303 cf_man2html=no 18304 ;; 18305 (x|xyes) 18306 # Extract the first word of "man2html", so it can be a program name with args. 18307 set dummy man2html; ac_word=$2 18308 echo "$as_me:18308: checking for $ac_word" >&5 18309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18310 if test "${ac_cv_path_cf_man2html+set}" = set; then 18311 echo $ECHO_N "(cached) $ECHO_C" >&6 18312 else 18313 case $cf_man2html in 18314 [\\/]* | ?:[\\/]*) 18315 ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path. 18316 ;; 18317 *) 18318 ac_save_IFS=$IFS; IFS=$ac_path_separator 18319 ac_dummy="$PATH" 18320 for ac_dir in $ac_dummy; do 18321 IFS=$ac_save_IFS 18322 test -z "$ac_dir" && ac_dir=. 18323 if $as_executable_p "$ac_dir/$ac_word"; then 18324 ac_cv_path_cf_man2html="$ac_dir/$ac_word" 18325 echo "$as_me:18325: found $ac_dir/$ac_word" >&5 18326 break 18327 fi 18328 done 18329 18330 test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no" 18331 ;; 18332 esac 18333 fi 18334 cf_man2html=$ac_cv_path_cf_man2html 18335 18336 if test -n "$cf_man2html"; then 18337 echo "$as_me:18337: result: $cf_man2html" >&5 18338 echo "${ECHO_T}$cf_man2html" >&6 18339 else 18340 echo "$as_me:18340: result: no" >&5 18341 echo "${ECHO_T}no" >&6 18342 fi 18343 18344 case "x$cf_man2html" in 18345 (x/*) 18346 echo "$as_me:18346: checking for the modified Earl Hood script" >&5 18347 echo $ECHO_N "checking for the modified Earl Hood script... $ECHO_C" >&6 18348 if ( $cf_man2html -help 2>&1 | grep 'Make an index of headers at the end' >/dev/null ) 18349 then 18350 cf_man2html_ok=yes 18351 else 18352 cf_man2html=no 18353 cf_man2html_ok=no 18354 fi 18355 echo "$as_me:18355: result: $cf_man2html_ok" >&5 18356 echo "${ECHO_T}$cf_man2html_ok" >&6 18357 ;; 18358 (*) 18359 cf_man2html=no 18360 ;; 18361 esac 18362 esac 18363 18364 echo "$as_me:18364: checking for program to convert manpage to html" >&5 18365 echo $ECHO_N "checking for program to convert manpage to html... $ECHO_C" >&6 18366 18367 # Check whether --with-man2html or --without-man2html was given. 18368 if test "${with_man2html+set}" = set; then 18369 withval="$with_man2html" 18370 cf_man2html=$withval 18371 else 18372 cf_man2html=$cf_man2html 18373 fi; 18374 18375 cf_with_groff=no 18376 18377 case $cf_man2html in 18378 (yes) 18379 echo "$as_me:18379: result: man2html" >&5 18380 echo "${ECHO_T}man2html" >&6 18381 # Extract the first word of "man2html", so it can be a program name with args. 18382 set dummy man2html; ac_word=$2 18383 echo "$as_me:18383: checking for $ac_word" >&5 18384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18385 if test "${ac_cv_path_cf_man2html+set}" = set; then 18386 echo $ECHO_N "(cached) $ECHO_C" >&6 18387 else 18388 case $cf_man2html in 18389 [\\/]* | ?:[\\/]*) 18390 ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path. 18391 ;; 18392 *) 18393 ac_save_IFS=$IFS; IFS=$ac_path_separator 18394 ac_dummy="$PATH" 18395 for ac_dir in $ac_dummy; do 18396 IFS=$ac_save_IFS 18397 test -z "$ac_dir" && ac_dir=. 18398 if $as_executable_p "$ac_dir/$ac_word"; then 18399 ac_cv_path_cf_man2html="$ac_dir/$ac_word" 18400 echo "$as_me:18400: found $ac_dir/$ac_word" >&5 18401 break 18402 fi 18403 done 18404 18405 test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no" 18406 ;; 18407 esac 18408 fi 18409 cf_man2html=$ac_cv_path_cf_man2html 18410 18411 if test -n "$cf_man2html"; then 18412 echo "$as_me:18412: result: $cf_man2html" >&5 18413 echo "${ECHO_T}$cf_man2html" >&6 18414 else 18415 echo "$as_me:18415: result: no" >&5 18416 echo "${ECHO_T}no" >&6 18417 fi 18418 18419 ;; 18420 (no|groff|*/groff*) 18421 cf_with_groff=yes 18422 cf_man2html=$GROFF_PATH 18423 echo "$as_me:18423: result: $cf_man2html" >&5 18424 echo "${ECHO_T}$cf_man2html" >&6 18425 ;; 18426 (*) 18427 echo "$as_me:18427: result: $cf_man2html" >&5 18428 echo "${ECHO_T}$cf_man2html" >&6 18429 ;; 18430 esac 18431 18432 MAN2HTML_TEMP="man2html.tmp" 18433 cat >$MAN2HTML_TEMP <<CF_EOF 18434 #!$SHELL 18435 # Temporary script generated by CF_WITH_MAN2HTML 18436 # Convert inputs to html, sending result to standard output. 18437 # 18438 # Parameters: 18439 # \${1} = rootname of file to convert 18440 # \${2} = suffix of file to convert, e.g., "1" 18441 # \${3} = macros to use, e.g., "man" 18442 # 18443 ROOT=\$1 18444 TYPE=\$2 18445 MACS=\$3 18446 18447 unset LANG 18448 unset LC_ALL 18449 unset LC_CTYPE 18450 unset LANGUAGE 18451 GROFF_NO_SGR=stupid 18452 export GROFF_NO_SGR 18453 18454 CF_EOF 18455 18456 NROFF_OPTS= 18457 if test "x$cf_with_groff" = xyes 18458 then 18459 MAN2HTML_NOTE="$GROFF_NOTE" 18460 MAN2HTML_PATH="$GROFF_PATH" 18461 cat >>$MAN2HTML_TEMP <<CF_EOF 18462 $SHELL -c "$TBL_PATH \${ROOT}.\${TYPE} | $GROFF_PATH -P -o0 -I\${ROOT}_ -Thtml -\${MACS}" 18463 CF_EOF 18464 else 18465 # disable hyphenation if this is groff 18466 if test "x$GROFF_PATH" != xno 18467 then 18468 echo "$as_me:18468: checking if nroff is really groff" >&5 18469 echo $ECHO_N "checking if nroff is really groff... $ECHO_C" >&6 18470 cf_check_groff="`$NROFF_PATH --version 2>/dev/null | grep groff`" 18471 test -n "$cf_check_groff" && cf_check_groff=yes 18472 test -n "$cf_check_groff" || cf_check_groff=no 18473 echo "$as_me:18473: result: $cf_check_groff" >&5 18474 echo "${ECHO_T}$cf_check_groff" >&6 18475 test "x$cf_check_groff" = xyes && NROFF_OPTS="-rHY=0" 18476 fi 18477 MAN2HTML_NOTE="" 18478 18479 if test "x$prefix" != xNONE; then 18480 cf_path_syntax="$prefix" 18481 else 18482 cf_path_syntax="$ac_default_prefix" 18483 fi 18484 18485 case "x$cf_man2html" in 18486 (x\$\(*\)*|x\'*\'*) 18487 ;; 18488 (x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER) 18489 ;; 18490 (x\$\{*prefix\}*|x\$\{*dir\}*) 18491 eval cf_man2html="$cf_man2html" 18492 case "x$cf_man2html" in 18493 (xNONE/*) 18494 cf_man2html=`echo "$cf_man2html" | sed -e s%NONE%$cf_path_syntax%` 18495 ;; 18496 esac 18497 ;; 18498 (xno|xNONE/*) 18499 cf_man2html=`echo "$cf_man2html" | sed -e s%NONE%$cf_path_syntax%` 18500 ;; 18501 (*) 18502 { { echo "$as_me:18502: error: expected a pathname, not \"$cf_man2html\"" >&5 18503 echo "$as_me: error: expected a pathname, not \"$cf_man2html\"" >&2;} 18504 { (exit 1); exit 1; }; } 18505 ;; 18506 esac 18507 18508 MAN2HTML_PATH="$cf_man2html" 18509 echo "$as_me:18509: checking for $cf_man2html top/bottom margins" >&5 18510 echo $ECHO_N "checking for $cf_man2html top/bottom margins... $ECHO_C" >&6 18511 18512 # for this example, expect 3 lines of content, the remainder is head/foot 18513 cat >conftest.in <<CF_EOF 18514 .TH HEAD1 HEAD2 HEAD3 HEAD4 HEAD5 18515 .SH SECTION 18516 MARKER 18517 CF_EOF 18518 18519 LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out 18520 18521 cf_man2html_1st="`${FGREP-fgrep} -n MARKER conftest.out |sed -e 's/^[^0-9]*://' -e 's/:.*//'`" 18522 cf_man2html_top=`expr "$cf_man2html_1st" - 2` 18523 cf_man2html_bot="`wc -l conftest.out |sed -e 's/[^0-9]//g'`" 18524 cf_man2html_bot=`expr "$cf_man2html_bot" - 2 - "$cf_man2html_top"` 18525 cf_man2html_top_bot="-topm=$cf_man2html_top -botm=$cf_man2html_bot" 18526 18527 echo "$as_me:18527: result: $cf_man2html_top_bot" >&5 18528 echo "${ECHO_T}$cf_man2html_top_bot" >&6 18529 18530 echo "$as_me:18530: checking for pagesize to use" >&5 18531 echo $ECHO_N "checking for pagesize to use... $ECHO_C" >&6 18532 for cf_block in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 18533 do 18534 cat >>conftest.in <<CF_EOF 18535 .nf 18536 0 18537 1 18538 2 18539 3 18540 4 18541 5 18542 6 18543 7 18544 8 18545 9 18546 CF_EOF 18547 done 18548 18549 LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out 18550 cf_man2html_page="`${FGREP-fgrep} -n HEAD1 conftest.out |sed -n '$p' |sed -e 's/^[^0-9]*://' -e 's/:.*//'`" 18551 test -z "$cf_man2html_page" && cf_man2html_page=99999 18552 test "$cf_man2html_page" -gt 100 && cf_man2html_page=99999 18553 18554 rm -rf conftest* 18555 echo "$as_me:18555: result: $cf_man2html_page" >&5 18556 echo "${ECHO_T}$cf_man2html_page" >&6 18557 18558 cat >>$MAN2HTML_TEMP <<CF_EOF 18559 : \${MAN2HTML_PATH=$MAN2HTML_PATH} 18560 MAN2HTML_OPTS="\$MAN2HTML_OPTS -index -title=\"\$ROOT(\$TYPE)\" -compress -pgsize $cf_man2html_page" 18561 case \${TYPE} in 18562 (ms) 18563 $TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH $NROFF_OPTS -\${MACS} | \$MAN2HTML_PATH -topm=0 -botm=0 \$MAN2HTML_OPTS 18564 ;; 18565 (*) 18566 $TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH $NROFF_OPTS -\${MACS} | \$MAN2HTML_PATH $cf_man2html_top_bot \$MAN2HTML_OPTS 18567 ;; 18568 esac 18569 CF_EOF 18570 fi 18571 18572 chmod 700 $MAN2HTML_TEMP 18573 18574 # If we have already established that there is a full termcap implementation, 18575 # suppress the definitions for terminfo that we make have imported from the 18576 # imake-file. 18577 if test "x$cf_cv_lib_tgetent" != xno || test "x$cf_cv_lib_part_tgetent" != xno ; then 18578 case "$IMAKE_CFLAGS" in 18579 (*-DUSE_TERMINFO\ -DHAVE_TIGETSTR*) 18580 18581 test -n "$verbose" && echo " removing terminfo flags from IMAKE_CFLAGS" 1>&6 18582 18583 echo "${as_me:-configure}:18583: testing removing terminfo flags from IMAKE_CFLAGS ..." 1>&5 18584 18585 IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" | sed -e 's/-DUSE_TERMINFO[ ]*-DHAVE_TIGETSTR[ ]*//'` 18586 test -n "$verbose" && echo " ...result $IMAKE_CFLAGS" 1>&6 18587 18588 echo "${as_me:-configure}:18588: testing ...result $IMAKE_CFLAGS ..." 1>&5 18589 18590 test -n "$verbose" && echo " removing terminfo flags from CPPFLAGS" 1>&6 18591 18592 echo "${as_me:-configure}:18592: testing removing terminfo flags from CPPFLAGS ..." 1>&5 18593 18594 CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/-DUSE_TERMINFO[ ]*-DHAVE_TIGETSTR[ ]*//'` 18595 test -n "$verbose" && echo " ...result $CPPFLAGS" 1>&6 18596 18597 echo "${as_me:-configure}:18597: testing ...result $CPPFLAGS ..." 1>&5 18598 18599 ;; 18600 esac 18601 fi 18602 18603 echo "$as_me:18603: checking for default terminal-id" >&5 18604 echo $ECHO_N "checking for default terminal-id... $ECHO_C" >&6 18605 18606 # Check whether --with-terminal-id or --without-terminal-id was given. 18607 if test "${with_terminal_id+set}" = set; then 18608 withval="$with_terminal_id" 18609 default_termid=$withval 18610 else 18611 default_termid=vt420 18612 fi; 18613 echo "$as_me:18613: result: $default_termid" >&5 18614 echo "${ECHO_T}$default_termid" >&6 18615 case $default_termid in 18616 (vt*) default_termid=`echo $default_termid | sed -e 's/^..//'` 18617 ;; 18618 ([1-9][0-9][0-9]|[1-9][0-9]) 18619 ;; 18620 (*) 18621 { { echo "$as_me:18621: error: expected a number, not $default_termid" >&5 18622 echo "$as_me: error: expected a number, not $default_termid" >&2;} 18623 { (exit 1); exit 1; }; } 18624 ;; 18625 esac 18626 18627 cat >>confdefs.h <<EOF 18628 #define DFT_DECID "$default_termid" 18629 EOF 18630 18631 echo "$as_me:18631: checking for default terminal-type" >&5 18632 echo $ECHO_N "checking for default terminal-type... $ECHO_C" >&6 18633 18634 # Check whether --with-terminal-type or --without-terminal-type was given. 18635 if test "${with_terminal_type+set}" = set; then 18636 withval="$with_terminal_type" 18637 default_TERM=$withval 18638 else 18639 default_TERM=xterm 18640 fi; 18641 echo "$as_me:18641: result: $default_TERM" >&5 18642 echo "${ECHO_T}$default_TERM" >&6 18643 18644 cat >>confdefs.h <<EOF 18645 #define DFT_TERMTYPE "$default_TERM" 18646 EOF 18647 18648 ############################################################################### 18649 echo "$as_me:18649: checking if backarrow-key should be BS" >&5 18650 echo $ECHO_N "checking if backarrow-key should be BS... $ECHO_C" >&6 18651 18652 # Check whether --enable-backarrow-key or --disable-backarrow-key was given. 18653 if test "${enable_backarrow_key+set}" = set; then 18654 enableval="$enable_backarrow_key" 18655 test "$enableval" != no && enableval=yes 18656 if test "$enableval" != "yes" ; then 18657 backarrow_is_bs=$enableval 18658 else 18659 backarrow_is_bs=yes 18660 fi 18661 else 18662 enableval=yes 18663 backarrow_is_bs=yes 18664 18665 fi; 18666 18667 echo "$as_me:18667: result: $backarrow_is_bs" >&5 18668 echo "${ECHO_T}$backarrow_is_bs" >&6 18669 case $backarrow_is_bs in 18670 (yes) 18671 backarrow_is_bs=true 18672 ;; 18673 (no) 18674 backarrow_is_bs=false 18675 ;; 18676 esac 18677 cf_xbool1=`echo "$backarrow_is_bs"|sed -e 's/^\(.\).*/\1/'` 18678 18679 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 18680 18681 cf_xbool2=`echo "$backarrow_is_bs"|sed -e 's/^.//'` 18682 backarrow_is_bs=${cf_xbool1}${cf_xbool2} 18683 18684 cat >>confdefs.h <<EOF 18685 #define DEF_BACKARO_BS $backarrow_is_bs 18686 EOF 18687 18688 echo "$as_me:18688: checking if backarrow-key should be treated as erase" >&5 18689 echo $ECHO_N "checking if backarrow-key should be treated as erase... $ECHO_C" >&6 18690 18691 # Check whether --enable-backarrow-is-erase or --disable-backarrow-is-erase was given. 18692 if test "${enable_backarrow_is_erase+set}" = set; then 18693 enableval="$enable_backarrow_is_erase" 18694 test "$enableval" != yes && enableval=no 18695 if test "$enableval" != "no" ; then 18696 backarrow_is_erase=$enableval 18697 else 18698 backarrow_is_erase=no 18699 fi 18700 else 18701 enableval=no 18702 backarrow_is_erase=no 18703 18704 fi; 18705 18706 echo "$as_me:18706: result: $backarrow_is_erase" >&5 18707 echo "${ECHO_T}$backarrow_is_erase" >&6 18708 case $backarrow_is_erase in 18709 (yes) 18710 backarrow_is_erase=true 18711 ;; 18712 (no) 18713 backarrow_is_erase=false 18714 ;; 18715 esac 18716 cf_xbool1=`echo "$backarrow_is_erase"|sed -e 's/^\(.\).*/\1/'` 18717 18718 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 18719 18720 cf_xbool2=`echo "$backarrow_is_erase"|sed -e 's/^.//'` 18721 backarrow_is_erase=${cf_xbool1}${cf_xbool2} 18722 18723 cat >>confdefs.h <<EOF 18724 #define DEF_BACKARO_ERASE $backarrow_is_erase 18725 EOF 18726 18727 echo "$as_me:18727: checking for default backspace/DEL setting" >&5 18728 echo $ECHO_N "checking for default backspace/DEL setting... $ECHO_C" >&6 18729 18730 # Check whether --enable-delete-is-del or --disable-delete-is-del was given. 18731 if test "${enable_delete_is_del+set}" = set; then 18732 enableval="$enable_delete_is_del" 18733 delete_is_del=$enableval 18734 else 18735 delete_is_del=maybe 18736 fi; 18737 18738 echo "$as_me:18738: result: $delete_is_del" >&5 18739 echo "${ECHO_T}$delete_is_del" >&6 18740 case $delete_is_del in 18741 (yes) 18742 delete_is_del=true 18743 ;; 18744 (no) 18745 delete_is_del=false 18746 ;; 18747 esac 18748 cf_xbool1=`echo "$delete_is_del"|sed -e 's/^\(.\).*/\1/'` 18749 18750 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 18751 18752 cf_xbool2=`echo "$delete_is_del"|sed -e 's/^.//'` 18753 delete_is_del=${cf_xbool1}${cf_xbool2} 18754 18755 cat >>confdefs.h <<EOF 18756 #define DEFDELETE_DEL $delete_is_del 18757 EOF 18758 18759 echo "$as_me:18759: checking for default pty initial erase setting" >&5 18760 echo $ECHO_N "checking for default pty initial erase setting... $ECHO_C" >&6 18761 18762 # Check whether --enable-pty-erase or --disable-pty-erase was given. 18763 if test "${enable_pty_erase+set}" = set; then 18764 enableval="$enable_pty_erase" 18765 initial_erase=$enableval 18766 else 18767 initial_erase=False 18768 fi; 18769 18770 echo "$as_me:18770: result: $initial_erase" >&5 18771 echo "${ECHO_T}$initial_erase" >&6 18772 case $initial_erase in 18773 (yes) 18774 initial_erase=true 18775 ;; 18776 (no) 18777 initial_erase=false 18778 ;; 18779 esac 18780 cf_xbool1=`echo "$initial_erase"|sed -e 's/^\(.\).*/\1/'` 18781 18782 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 18783 18784 cf_xbool2=`echo "$initial_erase"|sed -e 's/^.//'` 18785 initial_erase=${cf_xbool1}${cf_xbool2} 18786 18787 cat >>confdefs.h <<EOF 18788 #define DEF_INITIAL_ERASE $initial_erase 18789 EOF 18790 18791 echo "$as_me:18791: checking if alt should send ESC" >&5 18792 echo $ECHO_N "checking if alt should send ESC... $ECHO_C" >&6 18793 18794 # Check whether --enable-alt-sends-esc or --disable-alt-sends-esc was given. 18795 if test "${enable_alt_sends_esc+set}" = set; then 18796 enableval="$enable_alt_sends_esc" 18797 test "$enableval" != yes && enableval=no 18798 if test "$enableval" != "no" ; then 18799 alt_sends_esc=$enableval 18800 else 18801 alt_sends_esc=no 18802 fi 18803 else 18804 enableval=no 18805 alt_sends_esc=no 18806 18807 fi; 18808 18809 echo "$as_me:18809: result: $alt_sends_esc" >&5 18810 echo "${ECHO_T}$alt_sends_esc" >&6 18811 case $alt_sends_esc in 18812 (yes) 18813 alt_sends_esc=true 18814 ;; 18815 (no) 18816 alt_sends_esc=false 18817 ;; 18818 esac 18819 cf_xbool1=`echo "$alt_sends_esc"|sed -e 's/^\(.\).*/\1/'` 18820 18821 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 18822 18823 cf_xbool2=`echo "$alt_sends_esc"|sed -e 's/^.//'` 18824 alt_sends_esc=${cf_xbool1}${cf_xbool2} 18825 18826 cat >>confdefs.h <<EOF 18827 #define DEF_ALT_SENDS_ESC $alt_sends_esc 18828 EOF 18829 18830 echo "$as_me:18830: checking if meta should send ESC" >&5 18831 echo $ECHO_N "checking if meta should send ESC... $ECHO_C" >&6 18832 18833 # Check whether --enable-meta-sends-esc or --disable-meta-sends-esc was given. 18834 if test "${enable_meta_sends_esc+set}" = set; then 18835 enableval="$enable_meta_sends_esc" 18836 test "$enableval" != yes && enableval=no 18837 if test "$enableval" != "no" ; then 18838 meta_sends_esc=$enableval 18839 else 18840 meta_sends_esc=no 18841 fi 18842 else 18843 enableval=no 18844 meta_sends_esc=no 18845 18846 fi; 18847 18848 echo "$as_me:18848: result: $meta_sends_esc" >&5 18849 echo "${ECHO_T}$meta_sends_esc" >&6 18850 case $meta_sends_esc in 18851 (yes) 18852 meta_sends_esc=true 18853 ;; 18854 (no) 18855 meta_sends_esc=false 18856 ;; 18857 esac 18858 cf_xbool1=`echo "$meta_sends_esc"|sed -e 's/^\(.\).*/\1/'` 18859 18860 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 18861 18862 cf_xbool2=`echo "$meta_sends_esc"|sed -e 's/^.//'` 18863 meta_sends_esc=${cf_xbool1}${cf_xbool2} 18864 18865 cat >>confdefs.h <<EOF 18866 #define DEF_META_SENDS_ESC $meta_sends_esc 18867 EOF 18868 18869 ############################################################################### 18870 # Extract the first word of "tic", so it can be a program name with args. 18871 set dummy tic; ac_word=$2 18872 echo "$as_me:18872: checking for $ac_word" >&5 18873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18874 if test "${ac_cv_prog_cf_tic_prog+set}" = set; then 18875 echo $ECHO_N "(cached) $ECHO_C" >&6 18876 else 18877 if test -n "$cf_tic_prog"; then 18878 ac_cv_prog_cf_tic_prog="$cf_tic_prog" # Let the user override the test. 18879 else 18880 ac_save_IFS=$IFS; IFS=$ac_path_separator 18881 ac_dummy="$PATH" 18882 for ac_dir in $ac_dummy; do 18883 IFS=$ac_save_IFS 18884 test -z "$ac_dir" && ac_dir=. 18885 $as_executable_p "$ac_dir/$ac_word" || continue 18886 ac_cv_prog_cf_tic_prog="yes" 18887 echo "$as_me:18887: found $ac_dir/$ac_word" >&5 18888 break 18889 done 18890 18891 test -z "$ac_cv_prog_cf_tic_prog" && ac_cv_prog_cf_tic_prog="no" 18892 fi 18893 fi 18894 cf_tic_prog=$ac_cv_prog_cf_tic_prog 18895 if test -n "$cf_tic_prog"; then 18896 echo "$as_me:18896: result: $cf_tic_prog" >&5 18897 echo "${ECHO_T}$cf_tic_prog" >&6 18898 else 18899 echo "$as_me:18899: result: no" >&5 18900 echo "${ECHO_T}no" >&6 18901 fi 18902 18903 if test "$cf_tic_prog" = yes ; then 18904 if test -n "$TERMINFO" 18905 then 18906 case "$TERMINFO" in 18907 (/*) 18908 test -d "$TERMINFO" || unset TERMINFO 18909 ;; 18910 (*) 18911 unset TERMINFO 18912 ;; 18913 esac 18914 fi 18915 echo "$as_me:18915: checking for private terminfo-directory" >&5 18916 echo $ECHO_N "checking for private terminfo-directory... $ECHO_C" >&6 18917 18918 # Check whether --with-own-terminfo or --without-own-terminfo was given. 18919 if test "${with_own_terminfo+set}" = set; then 18920 withval="$with_own_terminfo" 18921 TERMINFO_DIR=$withval 18922 else 18923 TERMINFO_DIR=${TERMINFO-none} 18924 fi; 18925 echo "$as_me:18925: result: $TERMINFO_DIR" >&5 18926 echo "${ECHO_T}$TERMINFO_DIR" >&6 18927 if test "$TERMINFO_DIR" = yes ; then 18928 { echo "$as_me:18928: WARNING: no value given" >&5 18929 echo "$as_me: WARNING: no value given" >&2;} 18930 elif test "$TERMINFO_DIR" != none ; then 18931 if test -d "$TERMINFO_DIR" ; then 18932 18933 cat >>confdefs.h <<EOF 18934 #define OWN_TERMINFO_DIR "$TERMINFO_DIR" 18935 EOF 18936 18937 echo "$as_me:18937: checking if \$TERMINFO should also be set" >&5 18938 echo $ECHO_N "checking if \$TERMINFO should also be set... $ECHO_C" >&6 18939 18940 # Check whether --enable-env-terminfo or --disable-env-terminfo was given. 18941 if test "${enable_env_terminfo+set}" = set; then 18942 enableval="$enable_env_terminfo" 18943 cf_env_terminfo=yes 18944 else 18945 cf_env_terminfo=no 18946 fi; 18947 echo "$as_me:18947: result: $cf_env_terminfo" >&5 18948 echo "${ECHO_T}$cf_env_terminfo" >&6 18949 test $cf_env_terminfo = yes && 18950 18951 cat >>confdefs.h <<\EOF 18952 #define OWN_TERMINFO_ENV 1 18953 EOF 18954 18955 else 18956 { echo "$as_me:18956: WARNING: not a directory" >&5 18957 echo "$as_me: WARNING: not a directory" >&2;} 18958 fi 18959 elif test "$prefix" != NONE ; then 18960 TERMINFO_DIR='${prefix}/lib/terminfo' 18961 elif test -d /usr/lib/terminfo ; then 18962 TERMINFO_DIR=/usr/lib/terminfo 18963 else 18964 TERMINFO_DIR= 18965 fi 18966 SET_TERMINFO= 18967 if test -n "$TERMINFO_DIR" ; then 18968 TERMINFO_DIR='${DESTDIR}'$TERMINFO_DIR 18969 SET_TERMINFO='TERMINFO=${TERMINFO_DIR}' 18970 fi 18971 no_ticprog= 18972 else 18973 no_ticprog="#" 18974 TERMINFO_DIR= 18975 SET_TERMINFO= 18976 fi 18977 18978 ############################################################################### 18979 18980 echo "$as_me:18980: checking if you want active-icons" >&5 18981 echo $ECHO_N "checking if you want active-icons... $ECHO_C" >&6 18982 18983 # Check whether --enable-active-icon or --disable-active-icon was given. 18984 if test "${enable_active_icon+set}" = set; then 18985 enableval="$enable_active_icon" 18986 test "$enableval" != no && enableval=yes 18987 if test "$enableval" != "yes" ; then 18988 enable_active_icon=no 18989 else 18990 enable_active_icon=yes 18991 fi 18992 else 18993 enableval=yes 18994 enable_active_icon=yes 18995 18996 fi; 18997 echo "$as_me:18997: result: $enable_active_icon" >&5 18998 echo "${ECHO_T}$enable_active_icon" >&6 18999 if test "$enable_active_icon" = no ; then 19000 19001 cat >>confdefs.h <<\EOF 19002 #define NO_ACTIVE_ICON 1 19003 EOF 19004 19005 fi 19006 19007 echo "$as_me:19007: checking if you want ANSI color" >&5 19008 echo $ECHO_N "checking if you want ANSI color... $ECHO_C" >&6 19009 19010 # Check whether --enable-ansi-color or --disable-ansi-color was given. 19011 if test "${enable_ansi_color+set}" = set; then 19012 enableval="$enable_ansi_color" 19013 test "$enableval" != no && enableval=yes 19014 if test "$enableval" != "yes" ; then 19015 enable_ansi_color=no 19016 else 19017 enable_ansi_color=yes 19018 fi 19019 else 19020 enableval=yes 19021 enable_ansi_color=yes 19022 19023 fi; 19024 echo "$as_me:19024: result: $enable_ansi_color" >&5 19025 echo "${ECHO_T}$enable_ansi_color" >&6 19026 test "$enable_ansi_color" = no && 19027 cat >>confdefs.h <<\EOF 19028 #define OPT_ISO_COLORS 0 19029 EOF 19030 19031 if test "$enable_ansi_color" = yes ; then 19032 19033 echo "$as_me:19033: checking if you want 16 colors like aixterm" >&5 19034 echo $ECHO_N "checking if you want 16 colors like aixterm... $ECHO_C" >&6 19035 19036 # Check whether --enable-16-color or --disable-16-color was given. 19037 if test "${enable_16_color+set}" = set; then 19038 enableval="$enable_16_color" 19039 test "$enableval" != no && enableval=yes 19040 if test "$enableval" != "yes" ; then 19041 enable_16_color=no 19042 else 19043 enable_16_color=yes 19044 fi 19045 else 19046 enableval=yes 19047 enable_16_color=yes 19048 19049 fi; 19050 echo "$as_me:19050: result: $enable_16_color" >&5 19051 echo "${ECHO_T}$enable_16_color" >&6 19052 test "$enable_16_color" = no && 19053 cat >>confdefs.h <<\EOF 19054 #define OPT_AIX_COLORS 0 19055 EOF 19056 19057 echo "$as_me:19057: checking if you want 256 colors" >&5 19058 echo $ECHO_N "checking if you want 256 colors... $ECHO_C" >&6 19059 19060 # Check whether --enable-256-color or --disable-256-color was given. 19061 if test "${enable_256_color+set}" = set; then 19062 enableval="$enable_256_color" 19063 test "$enableval" != no && enableval=yes 19064 if test "$enableval" != "yes" ; then 19065 enable_256_color=no 19066 else 19067 enable_256_color=yes 19068 fi 19069 else 19070 enableval=yes 19071 enable_256_color=yes 19072 19073 fi; 19074 echo "$as_me:19074: result: $enable_256_color" >&5 19075 echo "${ECHO_T}$enable_256_color" >&6 19076 19077 if test "$enable_256_color" = yes ; then 19078 19079 CHARPROC_DEPS="$CHARPROC_DEPS 256colres.h" 19080 EXTRAHDRS="$EXTRAHDRS 256colres.h" 19081 19082 cat >>confdefs.h <<\EOF 19083 #define OPT_256_COLORS 1 19084 EOF 19085 19086 echo "$as_me:19086: checking if you want direct-color support" >&5 19087 echo $ECHO_N "checking if you want direct-color support... $ECHO_C" >&6 19088 19089 # Check whether --enable-direct-color or --disable-direct-color was given. 19090 if test "${enable_direct_color+set}" = set; then 19091 enableval="$enable_direct_color" 19092 test "$enableval" != no && enableval=yes 19093 if test "$enableval" != "yes" ; then 19094 enable_direct_color=no 19095 else 19096 enable_direct_color=yes 19097 fi 19098 else 19099 enableval=yes 19100 enable_direct_color=yes 19101 19102 fi; 19103 echo "$as_me:19103: result: $enable_direct_color" >&5 19104 echo "${ECHO_T}$enable_direct_color" >&6 19105 if test "$enable_direct_color" = yes ; then 19106 19107 cat >>confdefs.h <<\EOF 19108 #define OPT_DIRECT_COLOR 1 19109 EOF 19110 19111 fi 19112 19113 else 19114 19115 echo "$as_me:19115: checking if you want 88 colors" >&5 19116 echo $ECHO_N "checking if you want 88 colors... $ECHO_C" >&6 19117 19118 # Check whether --enable-88-color or --disable-88-color was given. 19119 if test "${enable_88_color+set}" = set; then 19120 enableval="$enable_88_color" 19121 test "$enableval" != no && enableval=yes 19122 if test "$enableval" != "yes" ; then 19123 enable_88_color=no 19124 else 19125 enable_88_color=yes 19126 fi 19127 else 19128 enableval=yes 19129 enable_88_color=yes 19130 19131 fi; 19132 echo "$as_me:19132: result: $enable_88_color" >&5 19133 echo "${ECHO_T}$enable_88_color" >&6 19134 if test "$enable_88_color" = yes ; then 19135 CHARPROC_DEPS="$CHARPROC_DEPS 88colres.h" 19136 EXTRAHDRS="$EXTRAHDRS 88colres.h" 19137 19138 cat >>confdefs.h <<\EOF 19139 #define OPT_88_COLORS 1 19140 EOF 19141 19142 fi 19143 19144 fi 19145 19146 fi 19147 19148 echo "$as_me:19148: checking if you want blinking cursor" >&5 19149 echo $ECHO_N "checking if you want blinking cursor... $ECHO_C" >&6 19150 19151 # Check whether --enable-blink-cursor or --disable-blink-cursor was given. 19152 if test "${enable_blink_cursor+set}" = set; then 19153 enableval="$enable_blink_cursor" 19154 test "$enableval" != no && enableval=yes 19155 if test "$enableval" != "yes" ; then 19156 enable_blink_curs=no 19157 else 19158 enable_blink_curs=yes 19159 fi 19160 else 19161 enableval=yes 19162 enable_blink_curs=yes 19163 19164 fi; 19165 echo "$as_me:19165: result: $enable_blink_curs" >&5 19166 echo "${ECHO_T}$enable_blink_curs" >&6 19167 test "$enable_blink_curs" = no && 19168 cat >>confdefs.h <<\EOF 19169 #define OPT_BLINK_CURS 0 19170 EOF 19171 19172 echo "$as_me:19172: checking if you want support for block-selection" >&5 19173 echo $ECHO_N "checking if you want support for block-selection... $ECHO_C" >&6 19174 19175 # Check whether --enable-block-select or --disable-block-select was given. 19176 if test "${enable_block_select+set}" = set; then 19177 enableval="$enable_block_select" 19178 test "$enableval" != no && enableval=yes 19179 if test "$enableval" != "$assume_broken_osc" ; then 19180 enable_block_select=$enableval 19181 else 19182 enable_block_select=$enableval 19183 fi 19184 else 19185 enableval=$assume_broken_osc 19186 enable_block_select=$enableval 19187 19188 fi; 19189 echo "$as_me:19189: result: $enable_block_select" >&5 19190 echo "${ECHO_T}$enable_block_select" >&6 19191 if test "$enable_block_select" = yes ; then 19192 19193 cat >>confdefs.h <<\EOF 19194 #define OPT_BLOCK_SELECT 1 19195 EOF 19196 19197 else 19198 19199 cat >>confdefs.h <<\EOF 19200 #define OPT_BLOCK_SELECT 0 19201 EOF 19202 19203 fi 19204 19205 echo "$as_me:19205: checking if you want to ignore Linux's broken palette-strings" >&5 19206 echo $ECHO_N "checking if you want to ignore Linux's broken palette-strings... $ECHO_C" >&6 19207 19208 case $host_os in 19209 (linux*) 19210 assume_broken_osc=yes ;; 19211 (*) 19212 assume_broken_osc=no ;; 19213 esac 19214 19215 # Check whether --enable-broken-osc or --disable-broken-osc was given. 19216 if test "${enable_broken_osc+set}" = set; then 19217 enableval="$enable_broken_osc" 19218 test "$enableval" != no && enableval=yes 19219 if test "$enableval" != "$assume_broken_osc" ; then 19220 enable_broken_osc=$enableval 19221 else 19222 enable_broken_osc=$enableval 19223 fi 19224 else 19225 enableval=$assume_broken_osc 19226 enable_broken_osc=$enableval 19227 19228 fi; 19229 echo "$as_me:19229: result: $enable_broken_osc" >&5 19230 echo "${ECHO_T}$enable_broken_osc" >&6 19231 if test "$enable_broken_osc" = yes ; then 19232 19233 cat >>confdefs.h <<\EOF 19234 #define OPT_BROKEN_OSC 1 19235 EOF 19236 19237 else 19238 19239 cat >>confdefs.h <<\EOF 19240 #define OPT_BROKEN_OSC 0 19241 EOF 19242 19243 fi 19244 19245 echo "$as_me:19245: checking if you want to allow broken string-terminators" >&5 19246 echo $ECHO_N "checking if you want to allow broken string-terminators... $ECHO_C" >&6 19247 19248 # Check whether --enable-broken-st or --disable-broken-st was given. 19249 if test "${enable_broken_st+set}" = set; then 19250 enableval="$enable_broken_st" 19251 test "$enableval" != yes && enableval=no 19252 if test "$enableval" != "no" ; then 19253 enable_broken_st=no 19254 else 19255 enable_broken_st=yes 19256 fi 19257 else 19258 enableval=no 19259 enable_broken_st=yes 19260 19261 fi; 19262 echo "$as_me:19262: result: $enable_broken_st" >&5 19263 echo "${ECHO_T}$enable_broken_st" >&6 19264 test "$enable_broken_st" = no && 19265 cat >>confdefs.h <<\EOF 19266 #define OPT_BROKEN_ST 0 19267 EOF 19268 19269 echo "$as_me:19269: checking if you want to compile-in icon data" >&5 19270 echo $ECHO_N "checking if you want to compile-in icon data... $ECHO_C" >&6 19271 19272 # Check whether --enable-builtin-xpms or --disable-builtin-xpms was given. 19273 if test "${enable_builtin_xpms+set}" = set; then 19274 enableval="$enable_builtin_xpms" 19275 test "$enableval" != yes && enableval=no 19276 if test "$enableval" != "no" ; then 19277 enable_builtin_xpms=yes 19278 else 19279 enable_builtin_xpms=no 19280 fi 19281 else 19282 enableval=no 19283 enable_builtin_xpms=no 19284 19285 fi; 19286 echo "$as_me:19286: result: $enable_builtin_xpms" >&5 19287 echo "${ECHO_T}$enable_builtin_xpms" >&6 19288 test "$enable_builtin_xpms" = yes && 19289 cat >>confdefs.h <<\EOF 19290 #define OPT_BUILTIN_XPMS 1 19291 EOF 19292 19293 echo "$as_me:19293: checking if you want printable 128-159" >&5 19294 echo $ECHO_N "checking if you want printable 128-159... $ECHO_C" >&6 19295 19296 # Check whether --enable-c1-print or --disable-c1-print was given. 19297 if test "${enable_c1_print+set}" = set; then 19298 enableval="$enable_c1_print" 19299 test "$enableval" != no && enableval=yes 19300 if test "$enableval" != "yes" ; then 19301 enable_c1_print=no 19302 else 19303 enable_c1_print=yes 19304 fi 19305 else 19306 enableval=yes 19307 enable_c1_print=yes 19308 19309 fi; 19310 echo "$as_me:19310: result: $enable_c1_print" >&5 19311 echo "${ECHO_T}$enable_c1_print" >&6 19312 test "$enable_c1_print" = no && 19313 cat >>confdefs.h <<\EOF 19314 #define OPT_C1_PRINT 0 19315 EOF 19316 19317 if test "$enable_ansi_color" = yes ; then 19318 19319 echo "$as_me:19319: checking if you want bold colors mapped like IBM PC" >&5 19320 echo $ECHO_N "checking if you want bold colors mapped like IBM PC... $ECHO_C" >&6 19321 19322 # Check whether --enable-bold-color or --disable-bold-color was given. 19323 if test "${enable_bold_color+set}" = set; then 19324 enableval="$enable_bold_color" 19325 test "$enableval" != no && enableval=yes 19326 if test "$enableval" != "yes" ; then 19327 enable_pc_color=no 19328 else 19329 enable_pc_color=yes 19330 fi 19331 else 19332 enableval=yes 19333 enable_pc_color=yes 19334 19335 fi; 19336 echo "$as_me:19336: result: $enable_pc_color" >&5 19337 echo "${ECHO_T}$enable_pc_color" >&6 19338 test "$enable_pc_color" = no && 19339 cat >>confdefs.h <<\EOF 19340 #define OPT_PC_COLORS 0 19341 EOF 19342 19343 echo "$as_me:19343: checking if you want separate color-classes" >&5 19344 echo $ECHO_N "checking if you want separate color-classes... $ECHO_C" >&6 19345 19346 # Check whether --enable-color-class or --disable-color-class was given. 19347 if test "${enable_color_class+set}" = set; then 19348 enableval="$enable_color_class" 19349 test "$enableval" != no && enableval=yes 19350 if test "$enableval" != "yes" ; then 19351 enable_color_class=no 19352 else 19353 enable_color_class=yes 19354 fi 19355 else 19356 enableval=yes 19357 enable_color_class=yes 19358 19359 fi; 19360 echo "$as_me:19360: result: $enable_color_class" >&5 19361 echo "${ECHO_T}$enable_color_class" >&6 19362 test "$enable_color_class" = no && 19363 cat >>confdefs.h <<\EOF 19364 #define OPT_COLOR_CLASS 0 19365 EOF 19366 19367 echo "$as_me:19367: checking if you want color-mode enabled by default" >&5 19368 echo $ECHO_N "checking if you want color-mode enabled by default... $ECHO_C" >&6 19369 19370 # Check whether --enable-color-mode or --disable-color-mode was given. 19371 if test "${enable_color_mode+set}" = set; then 19372 enableval="$enable_color_mode" 19373 test "$enableval" != no && enableval=yes 19374 if test "$enableval" != "yes" ; then 19375 default_colormode=no 19376 else 19377 default_colormode=yes 19378 fi 19379 else 19380 enableval=yes 19381 default_colormode=yes 19382 19383 fi; 19384 echo "$as_me:19384: result: $default_colormode" >&5 19385 echo "${ECHO_T}$default_colormode" >&6 19386 test "$default_colormode" = no && 19387 cat >>confdefs.h <<\EOF 19388 #define DFT_COLORMODE 0 19389 EOF 19390 19391 fi 19392 19393 echo "$as_me:19393: checking if you want support for color highlighting" >&5 19394 echo $ECHO_N "checking if you want support for color highlighting... $ECHO_C" >&6 19395 19396 # Check whether --enable-highlighting or --disable-highlighting was given. 19397 if test "${enable_highlighting+set}" = set; then 19398 enableval="$enable_highlighting" 19399 test "$enableval" != no && enableval=yes 19400 if test "$enableval" != "yes" ; then 19401 default_highlight=no 19402 else 19403 default_highlight=yes 19404 fi 19405 else 19406 enableval=yes 19407 default_highlight=yes 19408 19409 fi; 19410 echo "$as_me:19410: result: $default_highlight" >&5 19411 echo "${ECHO_T}$default_highlight" >&6 19412 test "$default_highlight" = no && 19413 cat >>confdefs.h <<\EOF 19414 #define OPT_HIGHLIGHT_COLOR 0 19415 EOF 19416 19417 echo "$as_me:19417: checking if you want support for doublesize characters" >&5 19418 echo $ECHO_N "checking if you want support for doublesize characters... $ECHO_C" >&6 19419 19420 # Check whether --enable-doublechars or --disable-doublechars was given. 19421 if test "${enable_doublechars+set}" = set; then 19422 enableval="$enable_doublechars" 19423 test "$enableval" != no && enableval=yes 19424 if test "$enableval" != "yes" ; then 19425 enable_doublechars=no 19426 else 19427 enable_doublechars=yes 19428 fi 19429 else 19430 enableval=yes 19431 enable_doublechars=yes 19432 19433 fi; 19434 echo "$as_me:19434: result: $enable_doublechars" >&5 19435 echo "${ECHO_T}$enable_doublechars" >&6 19436 test "$enable_doublechars" = no && 19437 cat >>confdefs.h <<\EOF 19438 #define OPT_DEC_CHRSET 0 19439 EOF 19440 19441 echo "$as_me:19441: checking if you want fallback-support for box characters" >&5 19442 echo $ECHO_N "checking if you want fallback-support for box characters... $ECHO_C" >&6 19443 19444 # Check whether --enable-boxchars or --disable-boxchars was given. 19445 if test "${enable_boxchars+set}" = set; then 19446 enableval="$enable_boxchars" 19447 test "$enableval" != no && enableval=yes 19448 if test "$enableval" != "yes" ; then 19449 enable_boxchars=no 19450 else 19451 enable_boxchars=yes 19452 fi 19453 else 19454 enableval=yes 19455 enable_boxchars=yes 19456 19457 fi; 19458 echo "$as_me:19458: result: $enable_boxchars" >&5 19459 echo "${ECHO_T}$enable_boxchars" >&6 19460 test "$enable_boxchars" = no && 19461 cat >>confdefs.h <<\EOF 19462 #define OPT_BOX_CHARS 0 19463 EOF 19464 19465 echo "$as_me:19465: checking if you want to allow spawning commands to process selections" >&5 19466 echo $ECHO_N "checking if you want to allow spawning commands to process selections... $ECHO_C" >&6 19467 19468 # Check whether --enable-exec-selection or --disable-exec-selection was given. 19469 if test "${enable_exec_selection+set}" = set; then 19470 enableval="$enable_exec_selection" 19471 test "$enableval" != no && enableval=yes 19472 if test "$enableval" != "yes" ; then 19473 enable_exec_selection=no 19474 else 19475 enable_exec_selection=yes 19476 fi 19477 else 19478 enableval=yes 19479 enable_exec_selection=yes 19480 19481 fi; 19482 echo "$as_me:19482: result: $enable_exec_selection" >&5 19483 echo "${ECHO_T}$enable_exec_selection" >&6 19484 if test "$enable_exec_selection" = no ; then 19485 19486 cat >>confdefs.h <<\EOF 19487 #define OPT_EXEC_SELECTION 0 19488 EOF 19489 19490 fi 19491 19492 echo "$as_me:19492: checking if you want to allow spawning new xterms" >&5 19493 echo $ECHO_N "checking if you want to allow spawning new xterms... $ECHO_C" >&6 19494 19495 # Check whether --enable-exec-xterm or --disable-exec-xterm was given. 19496 if test "${enable_exec_xterm+set}" = set; then 19497 enableval="$enable_exec_xterm" 19498 test "$enableval" != yes && enableval=no 19499 if test "$enableval" != "no" ; then 19500 enable_exec_xterm=yes 19501 else 19502 enable_exec_xterm=no 19503 fi 19504 else 19505 enableval=no 19506 enable_exec_xterm=no 19507 19508 fi; 19509 echo "$as_me:19509: result: $enable_exec_xterm" >&5 19510 echo "${ECHO_T}$enable_exec_xterm" >&6 19511 if test "$enable_exec_xterm" = yes ; then 19512 19513 echo "$as_me:19513: checking for proc tree with cwd-support" >&5 19514 echo $ECHO_N "checking for proc tree with cwd-support... $ECHO_C" >&6 19515 if test "${cf_cv_procfs_cwd+set}" = set; then 19516 echo $ECHO_N "(cached) $ECHO_C" >&6 19517 else 19518 19519 cf_cv_procfs_cwd=no 19520 for cf_path in /proc /compat/linux/proc /usr/compat/linux/proc 19521 do 19522 if test -d "$cf_path" && \ 19523 test -d "$cf_path"/$$ && \ 19524 { test -d "$cf_path"/$$/cwd || \ 19525 test -L "$cf_path"/$$/cwd; }; then 19526 cf_cv_procfs_cwd="$cf_path" 19527 break 19528 fi 19529 done 19530 19531 fi 19532 echo "$as_me:19532: result: $cf_cv_procfs_cwd" >&5 19533 echo "${ECHO_T}$cf_cv_procfs_cwd" >&6 19534 19535 if test "$cf_cv_procfs_cwd" = no ; then 19536 { echo "$as_me:19536: WARNING: no suitable proc filesystem found" >&5 19537 echo "$as_me: WARNING: no suitable proc filesystem found" >&2;} 19538 else 19539 19540 cat >>confdefs.h <<EOF 19541 #define PROCFS_ROOT "$cf_cv_procfs_cwd" 19542 EOF 19543 19544 cat >>confdefs.h <<\EOF 19545 #define OPT_EXEC_XTERM 1 19546 EOF 19547 19548 fi 19549 fi 19550 19551 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "Xext"; then 19552 test -n "$verbose" && echo " found package Xext" 1>&6 19553 19554 echo "${as_me:-configure}:19554: testing found package Xext ..." 1>&5 19555 19556 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "Xext" 2>/dev/null`" 19557 cf_pkgconfig_libs="`$PKG_CONFIG --libs "Xext" 2>/dev/null`" 19558 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6 19559 19560 echo "${as_me:-configure}:19560: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5 19561 19562 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6 19563 19564 echo "${as_me:-configure}:19564: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5 19565 19566 cf_fix_cppflags=no 19567 cf_new_cflags= 19568 cf_new_cppflags= 19569 cf_new_extra_cppflags= 19570 19571 for cf_add_cflags in $cf_pkgconfig_incs 19572 do 19573 case "$cf_fix_cppflags" in 19574 (no) 19575 case "$cf_add_cflags" in 19576 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 19577 case "$cf_add_cflags" in 19578 (-D*) 19579 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 19580 19581 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 19582 && test -z "${cf_tst_cflags}" \ 19583 && cf_fix_cppflags=yes 19584 19585 if test "$cf_fix_cppflags" = yes ; then 19586 19587 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 19588 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 19589 19590 continue 19591 elif test "${cf_tst_cflags}" = "\"'" ; then 19592 19593 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 19594 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 19595 19596 continue 19597 fi 19598 ;; 19599 esac 19600 case "$CPPFLAGS" in 19601 (*$cf_add_cflags) 19602 ;; 19603 (*) 19604 case "$cf_add_cflags" in 19605 (-D*) 19606 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 19607 19608 CPPFLAGS=`echo "$CPPFLAGS" | \ 19609 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 19610 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 19611 19612 ;; 19613 esac 19614 19615 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 19616 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 19617 19618 ;; 19619 esac 19620 ;; 19621 (*) 19622 19623 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 19624 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 19625 19626 ;; 19627 esac 19628 ;; 19629 (yes) 19630 19631 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 19632 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 19633 19634 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 19635 19636 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 19637 && test -z "${cf_tst_cflags}" \ 19638 && cf_fix_cppflags=no 19639 ;; 19640 esac 19641 done 19642 19643 if test -n "$cf_new_cflags" ; then 19644 19645 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 19646 CFLAGS="${CFLAGS}$cf_new_cflags" 19647 19648 fi 19649 19650 if test -n "$cf_new_cppflags" ; then 19651 19652 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 19653 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 19654 19655 fi 19656 19657 if test -n "$cf_new_extra_cppflags" ; then 19658 19659 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 19660 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 19661 19662 fi 19663 19664 cf_add_libs="$LIBS" 19665 # reverse order 19666 cf_add_0lib= 19667 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 19668 # filter duplicates 19669 for cf_add_1lib in $cf_add_0lib; do 19670 for cf_add_2lib in $cf_add_libs; do 19671 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 19672 cf_add_1lib= 19673 break 19674 fi 19675 done 19676 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 19677 done 19678 LIBS="$cf_add_libs" 19679 19680 : 19681 else 19682 cf_pkgconfig_incs= 19683 cf_pkgconfig_libs= 19684 19685 echo "$as_me:19685: checking for XextCreateExtension in -lXext" >&5 19686 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6 19687 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then 19688 echo $ECHO_N "(cached) $ECHO_C" >&6 19689 else 19690 ac_check_lib_save_LIBS=$LIBS 19691 LIBS="-lXext $LIBS" 19692 cat >"conftest.$ac_ext" <<_ACEOF 19693 #line 19693 "configure" 19694 #include "confdefs.h" 19695 19696 /* Override any gcc2 internal prototype to avoid an error. */ 19697 #ifdef __cplusplus 19698 extern "C" 19699 #endif 19700 /* We use char because int might match the return type of a gcc2 19701 builtin and then its argument prototype would still apply. */ 19702 char XextCreateExtension (void); 19703 int 19704 main (void) 19705 { 19706 XextCreateExtension (); 19707 ; 19708 return 0; 19709 } 19710 _ACEOF 19711 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19712 if { (eval echo "$as_me:19712: \"$ac_link\"") >&5 19713 (eval $ac_link) 2>&5 19714 ac_status=$? 19715 echo "$as_me:19715: \$? = $ac_status" >&5 19716 (exit "$ac_status"); } && 19717 { ac_try='test -s "conftest$ac_exeext"' 19718 { (eval echo "$as_me:19718: \"$ac_try\"") >&5 19719 (eval $ac_try) 2>&5 19720 ac_status=$? 19721 echo "$as_me:19721: \$? = $ac_status" >&5 19722 (exit "$ac_status"); }; }; then 19723 ac_cv_lib_Xext_XextCreateExtension=yes 19724 else 19725 echo "$as_me: failed program was:" >&5 19726 cat "conftest.$ac_ext" >&5 19727 ac_cv_lib_Xext_XextCreateExtension=no 19728 fi 19729 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19730 LIBS=$ac_check_lib_save_LIBS 19731 fi 19732 echo "$as_me:19732: result: $ac_cv_lib_Xext_XextCreateExtension" >&5 19733 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6 19734 if test "$ac_cv_lib_Xext_XextCreateExtension" = yes; then 19735 19736 cf_add_libs="$LIBS" 19737 # reverse order 19738 cf_add_0lib= 19739 for cf_add_1lib in -lXext; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 19740 # filter duplicates 19741 for cf_add_1lib in $cf_add_0lib; do 19742 for cf_add_2lib in $cf_add_libs; do 19743 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 19744 cf_add_1lib= 19745 break 19746 fi 19747 done 19748 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 19749 done 19750 LIBS="$cf_add_libs" 19751 19752 fi 19753 19754 fi 19755 19756 echo "$as_me:19756: checking for X11/extensions/Xdbe.h" >&5 19757 echo $ECHO_N "checking for X11/extensions/Xdbe.h... $ECHO_C" >&6 19758 if test "${ac_cv_header_X11_extensions_Xdbe_h+set}" = set; then 19759 echo $ECHO_N "(cached) $ECHO_C" >&6 19760 else 19761 cat >"conftest.$ac_ext" <<_ACEOF 19762 #line 19762 "configure" 19763 #include "confdefs.h" 19764 #include <X11/extensions/Xdbe.h> 19765 _ACEOF 19766 if { (eval echo "$as_me:19766: \"$ac_cpp "conftest.$ac_ext"\"") >&5 19767 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 19768 ac_status=$? 19769 $EGREP -v '^ *\+' conftest.er1 >conftest.err 19770 rm -f conftest.er1 19771 cat conftest.err >&5 19772 echo "$as_me:19772: \$? = $ac_status" >&5 19773 (exit "$ac_status"); } >/dev/null; then 19774 if test -s conftest.err; then 19775 ac_cpp_err=$ac_c_preproc_warn_flag 19776 else 19777 ac_cpp_err= 19778 fi 19779 else 19780 ac_cpp_err=yes 19781 fi 19782 if test -z "$ac_cpp_err"; then 19783 ac_cv_header_X11_extensions_Xdbe_h=yes 19784 else 19785 echo "$as_me: failed program was:" >&5 19786 cat "conftest.$ac_ext" >&5 19787 ac_cv_header_X11_extensions_Xdbe_h=no 19788 fi 19789 rm -f conftest.err "conftest.$ac_ext" 19790 fi 19791 echo "$as_me:19791: result: $ac_cv_header_X11_extensions_Xdbe_h" >&5 19792 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xdbe_h" >&6 19793 if test "$ac_cv_header_X11_extensions_Xdbe_h" = yes; then 19794 19795 cat >>confdefs.h <<\EOF 19796 #define HAVE_X11_EXTENSIONS_XDBE_H 1 19797 EOF 19798 19799 echo "$as_me:19799: checking for XdbeSwapBuffers" >&5 19800 echo $ECHO_N "checking for XdbeSwapBuffers... $ECHO_C" >&6 19801 if test "${ac_cv_func_XdbeSwapBuffers+set}" = set; then 19802 echo $ECHO_N "(cached) $ECHO_C" >&6 19803 else 19804 cat >"conftest.$ac_ext" <<_ACEOF 19805 #line 19805 "configure" 19806 #include "confdefs.h" 19807 #define XdbeSwapBuffers autoconf_temporary 19808 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 19809 #undef XdbeSwapBuffers 19810 19811 #ifdef __cplusplus 19812 extern "C" 19813 #endif 19814 19815 /* We use char because int might match the return type of a gcc2 19816 builtin and then its argument prototype would still apply. */ 19817 char XdbeSwapBuffers (void); 19818 19819 int 19820 main (void) 19821 { 19822 19823 /* The GNU C library defines stubs for functions which it implements 19824 to always fail with ENOSYS. Some functions are actually named 19825 something starting with __ and the normal name is an alias. */ 19826 #if defined (__stub_XdbeSwapBuffers) || defined (__stub___XdbeSwapBuffers) 19827 #error found stub for XdbeSwapBuffers 19828 #endif 19829 19830 return XdbeSwapBuffers (); 19831 ; 19832 return 0; 19833 } 19834 _ACEOF 19835 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19836 if { (eval echo "$as_me:19836: \"$ac_link\"") >&5 19837 (eval $ac_link) 2>&5 19838 ac_status=$? 19839 echo "$as_me:19839: \$? = $ac_status" >&5 19840 (exit "$ac_status"); } && 19841 { ac_try='test -s "conftest$ac_exeext"' 19842 { (eval echo "$as_me:19842: \"$ac_try\"") >&5 19843 (eval $ac_try) 2>&5 19844 ac_status=$? 19845 echo "$as_me:19845: \$? = $ac_status" >&5 19846 (exit "$ac_status"); }; }; then 19847 ac_cv_func_XdbeSwapBuffers=yes 19848 else 19849 echo "$as_me: failed program was:" >&5 19850 cat "conftest.$ac_ext" >&5 19851 ac_cv_func_XdbeSwapBuffers=no 19852 fi 19853 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19854 fi 19855 echo "$as_me:19855: result: $ac_cv_func_XdbeSwapBuffers" >&5 19856 echo "${ECHO_T}$ac_cv_func_XdbeSwapBuffers" >&6 19857 if test "$ac_cv_func_XdbeSwapBuffers" = yes; then 19858 19859 cat >>confdefs.h <<\EOF 19860 #define HAVE_XDBESWAPBUFFERS 1 19861 EOF 19862 19863 cf_x_ext_double_buffer=yes 19864 fi 19865 19866 fi 19867 19868 double_buffer=False 19869 if test "$cf_x_ext_double_buffer" = yes ; then 19870 echo "$as_me:19870: checking if you want to enable double-buffering in default resources" >&5 19871 echo $ECHO_N "checking if you want to enable double-buffering in default resources... $ECHO_C" >&6 19872 19873 # Check whether --enable-double-buffer or --disable-double-buffer was given. 19874 if test "${enable_double_buffer+set}" = set; then 19875 enableval="$enable_double_buffer" 19876 test "$enableval" != yes && enableval=no 19877 if test "$enableval" != "no" ; then 19878 enable_double_bfr=yes 19879 else 19880 enable_double_bfr=no 19881 fi 19882 else 19883 enableval=no 19884 enable_double_bfr=no 19885 19886 fi; 19887 echo "$as_me:19887: result: $enable_double_bfr" >&5 19888 echo "${ECHO_T}$enable_double_bfr" >&6 19889 if test "$enable_double_bfr" = yes ; then 19890 19891 cat >>confdefs.h <<\EOF 19892 #define OPT_DOUBLE_BUFFER 1 19893 EOF 19894 19895 double_buffer=True 19896 fi 19897 fi 19898 19899 echo "$as_me:19899: checking if you want to use FreeType library" >&5 19900 echo $ECHO_N "checking if you want to use FreeType library... $ECHO_C" >&6 19901 19902 # Check whether --enable-freetype or --disable-freetype was given. 19903 if test "${enable_freetype+set}" = set; then 19904 enableval="$enable_freetype" 19905 test "$enableval" != no && enableval=yes 19906 if test "$enableval" != "yes" ; then 19907 enable_freetype=no 19908 else 19909 enable_freetype=yes 19910 fi 19911 else 19912 enableval=yes 19913 enable_freetype=yes 19914 19915 fi; 19916 echo "$as_me:19916: result: $enable_freetype" >&5 19917 echo "${ECHO_T}$enable_freetype" >&6 19918 if test "$enable_freetype" = yes ; then 19919 19920 cf_cv_x_freetype_incs=no 19921 cf_cv_x_freetype_libs=no 19922 cf_extra_freetype_libs= 19923 FREETYPE_CONFIG=none 19924 FREETYPE_PARAMS= 19925 19926 echo "$as_me:19926: checking for FreeType configuration script" >&5 19927 echo $ECHO_N "checking for FreeType configuration script... $ECHO_C" >&6 19928 19929 # Check whether --with-freetype-config or --without-freetype-config was given. 19930 if test "${with_freetype_config+set}" = set; then 19931 withval="$with_freetype_config" 19932 cf_cv_x_freetype_cfgs="$withval" 19933 else 19934 cf_cv_x_freetype_cfgs=auto 19935 fi; 19936 test -z $cf_cv_x_freetype_cfgs && cf_cv_x_freetype_cfgs=auto 19937 test $cf_cv_x_freetype_cfgs = no && cf_cv_x_freetype_cfgs=none 19938 echo "$as_me:19938: result: $cf_cv_x_freetype_cfgs" >&5 19939 echo "${ECHO_T}$cf_cv_x_freetype_cfgs" >&6 19940 19941 case $cf_cv_x_freetype_cfgs in 19942 (none) 19943 echo "$as_me:19943: checking if you specified -D/-I options for FreeType" >&5 19944 echo $ECHO_N "checking if you specified -D/-I options for FreeType... $ECHO_C" >&6 19945 19946 # Check whether --with-freetype-cflags or --without-freetype-cflags was given. 19947 if test "${with_freetype_cflags+set}" = set; then 19948 withval="$with_freetype_cflags" 19949 cf_cv_x_freetype_incs="$with_freetype_cflags" 19950 else 19951 cf_cv_x_freetype_incs=no 19952 fi; 19953 echo "$as_me:19953: result: $cf_cv_x_freetype_incs" >&5 19954 echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6 19955 19956 echo "$as_me:19956: checking if you specified -L/-l options for FreeType" >&5 19957 echo $ECHO_N "checking if you specified -L/-l options for FreeType... $ECHO_C" >&6 19958 19959 # Check whether --with-freetype-libs or --without-freetype-libs was given. 19960 if test "${with_freetype_libs+set}" = set; then 19961 withval="$with_freetype_libs" 19962 cf_cv_x_freetype_libs="$with_freetype_libs" 19963 else 19964 cf_cv_x_freetype_libs=no 19965 fi; 19966 echo "$as_me:19966: result: $cf_cv_x_freetype_libs" >&5 19967 echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6 19968 ;; 19969 (auto) 19970 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then 19971 FREETYPE_CONFIG=$PKG_CONFIG 19972 FREETYPE_PARAMS=xft 19973 else 19974 # Extract the first word of "freetype-config", so it can be a program name with args. 19975 set dummy freetype-config; ac_word=$2 19976 echo "$as_me:19976: checking for $ac_word" >&5 19977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19978 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then 19979 echo $ECHO_N "(cached) $ECHO_C" >&6 19980 else 19981 case $FREETYPE_CONFIG in 19982 [\\/]* | ?:[\\/]*) 19983 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path. 19984 ;; 19985 *) 19986 ac_save_IFS=$IFS; IFS=$ac_path_separator 19987 ac_dummy="$PATH" 19988 for ac_dir in $ac_dummy; do 19989 IFS=$ac_save_IFS 19990 test -z "$ac_dir" && ac_dir=. 19991 if $as_executable_p "$ac_dir/$ac_word"; then 19992 ac_cv_path_FREETYPE_CONFIG="$ac_dir/$ac_word" 19993 echo "$as_me:19993: found $ac_dir/$ac_word" >&5 19994 break 19995 fi 19996 done 19997 19998 test -z "$ac_cv_path_FREETYPE_CONFIG" && ac_cv_path_FREETYPE_CONFIG="none" 19999 ;; 20000 esac 20001 fi 20002 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG 20003 20004 if test -n "$FREETYPE_CONFIG"; then 20005 echo "$as_me:20005: result: $FREETYPE_CONFIG" >&5 20006 echo "${ECHO_T}$FREETYPE_CONFIG" >&6 20007 else 20008 echo "$as_me:20008: result: no" >&5 20009 echo "${ECHO_T}no" >&6 20010 fi 20011 20012 if test "$FREETYPE_CONFIG" != none; then 20013 FREETYPE_CONFIG=$FREETYPE_CONFIG 20014 cf_extra_freetype_libs="-lXft" 20015 else 20016 # Extract the first word of "xft-config", so it can be a program name with args. 20017 set dummy xft-config; ac_word=$2 20018 echo "$as_me:20018: checking for $ac_word" >&5 20019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20020 if test "${ac_cv_path_FREETYPE_OLD_CONFIG+set}" = set; then 20021 echo $ECHO_N "(cached) $ECHO_C" >&6 20022 else 20023 case $FREETYPE_OLD_CONFIG in 20024 [\\/]* | ?:[\\/]*) 20025 ac_cv_path_FREETYPE_OLD_CONFIG="$FREETYPE_OLD_CONFIG" # Let the user override the test with a path. 20026 ;; 20027 *) 20028 ac_save_IFS=$IFS; IFS=$ac_path_separator 20029 ac_dummy="$PATH" 20030 for ac_dir in $ac_dummy; do 20031 IFS=$ac_save_IFS 20032 test -z "$ac_dir" && ac_dir=. 20033 if $as_executable_p "$ac_dir/$ac_word"; then 20034 ac_cv_path_FREETYPE_OLD_CONFIG="$ac_dir/$ac_word" 20035 echo "$as_me:20035: found $ac_dir/$ac_word" >&5 20036 break 20037 fi 20038 done 20039 20040 test -z "$ac_cv_path_FREETYPE_OLD_CONFIG" && ac_cv_path_FREETYPE_OLD_CONFIG="none" 20041 ;; 20042 esac 20043 fi 20044 FREETYPE_OLD_CONFIG=$ac_cv_path_FREETYPE_OLD_CONFIG 20045 20046 if test -n "$FREETYPE_OLD_CONFIG"; then 20047 echo "$as_me:20047: result: $FREETYPE_OLD_CONFIG" >&5 20048 echo "${ECHO_T}$FREETYPE_OLD_CONFIG" >&6 20049 else 20050 echo "$as_me:20050: result: no" >&5 20051 echo "${ECHO_T}no" >&6 20052 fi 20053 20054 if test "$FREETYPE_OLD_CONFIG" != none; then 20055 FREETYPE_CONFIG=$FREETYPE_OLD_CONFIG 20056 fi 20057 fi 20058 fi 20059 ;; 20060 (pkg*) 20061 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then 20062 FREETYPE_CONFIG=$cf_cv_x_freetype_cfgs 20063 FREETYPE_PARAMS=xft 20064 else 20065 { echo "$as_me:20065: WARNING: cannot find pkg-config for Xft" >&5 20066 echo "$as_me: WARNING: cannot find pkg-config for Xft" >&2;} 20067 fi 20068 ;; 20069 (*) 20070 # Extract the first word of "$cf_cv_x_freetype_cfgs", so it can be a program name with args. 20071 set dummy $cf_cv_x_freetype_cfgs; ac_word=$2 20072 echo "$as_me:20072: checking for $ac_word" >&5 20073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20074 if test "${ac_cv_path_FREETYPE_XFT_CONFIG+set}" = set; then 20075 echo $ECHO_N "(cached) $ECHO_C" >&6 20076 else 20077 case $FREETYPE_XFT_CONFIG in 20078 [\\/]* | ?:[\\/]*) 20079 ac_cv_path_FREETYPE_XFT_CONFIG="$FREETYPE_XFT_CONFIG" # Let the user override the test with a path. 20080 ;; 20081 *) 20082 ac_save_IFS=$IFS; IFS=$ac_path_separator 20083 ac_dummy="$PATH" 20084 for ac_dir in $ac_dummy; do 20085 IFS=$ac_save_IFS 20086 test -z "$ac_dir" && ac_dir=. 20087 if $as_executable_p "$ac_dir/$ac_word"; then 20088 ac_cv_path_FREETYPE_XFT_CONFIG="$ac_dir/$ac_word" 20089 echo "$as_me:20089: found $ac_dir/$ac_word" >&5 20090 break 20091 fi 20092 done 20093 20094 test -z "$ac_cv_path_FREETYPE_XFT_CONFIG" && ac_cv_path_FREETYPE_XFT_CONFIG="none" 20095 ;; 20096 esac 20097 fi 20098 FREETYPE_XFT_CONFIG=$ac_cv_path_FREETYPE_XFT_CONFIG 20099 20100 if test -n "$FREETYPE_XFT_CONFIG"; then 20101 echo "$as_me:20101: result: $FREETYPE_XFT_CONFIG" >&5 20102 echo "${ECHO_T}$FREETYPE_XFT_CONFIG" >&6 20103 else 20104 echo "$as_me:20104: result: no" >&5 20105 echo "${ECHO_T}no" >&6 20106 fi 20107 20108 if test "$FREETYPE_XFT_CONFIG" != none; then 20109 FREETYPE_CONFIG=$FREETYPE_XFT_CONFIG 20110 else 20111 { echo "$as_me:20111: WARNING: cannot find config script for Xft" >&5 20112 echo "$as_me: WARNING: cannot find config script for Xft" >&2;} 20113 fi 20114 ;; 20115 esac 20116 20117 if test "$FREETYPE_CONFIG" != none ; then 20118 echo "$as_me:20118: checking for FreeType config" >&5 20119 echo $ECHO_N "checking for FreeType config... $ECHO_C" >&6 20120 echo "$as_me:20120: result: $FREETYPE_CONFIG $FREETYPE_PARAMS" >&5 20121 echo "${ECHO_T}$FREETYPE_CONFIG $FREETYPE_PARAMS" >&6 20122 20123 if test "$cf_cv_x_freetype_incs" = no ; then 20124 echo "$as_me:20124: checking for $FREETYPE_CONFIG cflags" >&5 20125 echo $ECHO_N "checking for $FREETYPE_CONFIG cflags... $ECHO_C" >&6 20126 cf_cv_x_freetype_incs="`$FREETYPE_CONFIG $FREETYPE_PARAMS --cflags 2>/dev/null`" 20127 echo "$as_me:20127: result: $cf_cv_x_freetype_incs" >&5 20128 echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6 20129 fi 20130 20131 if test "$cf_cv_x_freetype_libs" = no ; then 20132 echo "$as_me:20132: checking for $FREETYPE_CONFIG libs" >&5 20133 echo $ECHO_N "checking for $FREETYPE_CONFIG libs... $ECHO_C" >&6 20134 cf_cv_x_freetype_libs="$cf_extra_freetype_libs `$FREETYPE_CONFIG $FREETYPE_PARAMS --libs 2>/dev/null`" 20135 echo "$as_me:20135: result: $cf_cv_x_freetype_libs" >&5 20136 echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6 20137 fi 20138 fi 20139 20140 if test "$cf_cv_x_freetype_incs" = no ; then 20141 cf_cv_x_freetype_incs= 20142 fi 20143 20144 if test "$cf_cv_x_freetype_libs" = no ; then 20145 cf_cv_x_freetype_libs=-lXft 20146 fi 20147 20148 echo "$as_me:20148: checking if we can link with FreeType libraries" >&5 20149 echo $ECHO_N "checking if we can link with FreeType libraries... $ECHO_C" >&6 20150 20151 cf_save_LIBS="$LIBS" 20152 cf_save_INCS="$CPPFLAGS" 20153 20154 cf_add_libs="$LIBS" 20155 # reverse order 20156 cf_add_0lib= 20157 for cf_add_1lib in $cf_cv_x_freetype_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 20158 # filter duplicates 20159 for cf_add_1lib in $cf_add_0lib; do 20160 for cf_add_2lib in $cf_add_libs; do 20161 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 20162 cf_add_1lib= 20163 break 20164 fi 20165 done 20166 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 20167 done 20168 LIBS="$cf_add_libs" 20169 20170 CPPFLAGS="$CPPFLAGS $cf_cv_x_freetype_incs" 20171 20172 cat >"conftest.$ac_ext" <<_ACEOF 20173 #line 20173 "configure" 20174 #include "confdefs.h" 20175 20176 #include <X11/Xlib.h> 20177 #include <X11/extensions/Xrender.h> 20178 #include <X11/Xft/Xft.h> 20179 int 20180 main (void) 20181 { 20182 20183 XftPattern *pat = XftNameParse ("name"); (void)pat 20184 ; 20185 return 0; 20186 } 20187 _ACEOF 20188 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 20189 if { (eval echo "$as_me:20189: \"$ac_link\"") >&5 20190 (eval $ac_link) 2>&5 20191 ac_status=$? 20192 echo "$as_me:20192: \$? = $ac_status" >&5 20193 (exit "$ac_status"); } && 20194 { ac_try='test -s "conftest$ac_exeext"' 20195 { (eval echo "$as_me:20195: \"$ac_try\"") >&5 20196 (eval $ac_try) 2>&5 20197 ac_status=$? 20198 echo "$as_me:20198: \$? = $ac_status" >&5 20199 (exit "$ac_status"); }; }; then 20200 cf_cv_found_freetype=yes 20201 else 20202 echo "$as_me: failed program was:" >&5 20203 cat "conftest.$ac_ext" >&5 20204 cf_cv_found_freetype=no 20205 fi 20206 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 20207 echo "$as_me:20207: result: $cf_cv_found_freetype" >&5 20208 echo "${ECHO_T}$cf_cv_found_freetype" >&6 20209 20210 LIBS="$cf_save_LIBS" 20211 CPPFLAGS="$cf_save_INCS" 20212 20213 if test "$cf_cv_found_freetype" = yes ; then 20214 20215 cf_add_libs="$LIBS" 20216 # reverse order 20217 cf_add_0lib= 20218 for cf_add_1lib in $cf_cv_x_freetype_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 20219 # filter duplicates 20220 for cf_add_1lib in $cf_add_0lib; do 20221 for cf_add_2lib in $cf_add_libs; do 20222 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 20223 cf_add_1lib= 20224 break 20225 fi 20226 done 20227 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 20228 done 20229 LIBS="$cf_add_libs" 20230 20231 cf_fix_cppflags=no 20232 cf_new_cflags= 20233 cf_new_cppflags= 20234 cf_new_extra_cppflags= 20235 20236 for cf_add_cflags in $cf_cv_x_freetype_incs 20237 do 20238 case "$cf_fix_cppflags" in 20239 (no) 20240 case "$cf_add_cflags" in 20241 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 20242 case "$cf_add_cflags" in 20243 (-D*) 20244 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 20245 20246 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 20247 && test -z "${cf_tst_cflags}" \ 20248 && cf_fix_cppflags=yes 20249 20250 if test "$cf_fix_cppflags" = yes ; then 20251 20252 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20253 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20254 20255 continue 20256 elif test "${cf_tst_cflags}" = "\"'" ; then 20257 20258 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20259 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20260 20261 continue 20262 fi 20263 ;; 20264 esac 20265 case "$CPPFLAGS" in 20266 (*$cf_add_cflags) 20267 ;; 20268 (*) 20269 case "$cf_add_cflags" in 20270 (-D*) 20271 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 20272 20273 CPPFLAGS=`echo "$CPPFLAGS" | \ 20274 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 20275 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 20276 20277 ;; 20278 esac 20279 20280 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 20281 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 20282 20283 ;; 20284 esac 20285 ;; 20286 (*) 20287 20288 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 20289 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 20290 20291 ;; 20292 esac 20293 ;; 20294 (yes) 20295 20296 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20297 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20298 20299 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 20300 20301 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 20302 && test -z "${cf_tst_cflags}" \ 20303 && cf_fix_cppflags=no 20304 ;; 20305 esac 20306 done 20307 20308 if test -n "$cf_new_cflags" ; then 20309 20310 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 20311 CFLAGS="${CFLAGS}$cf_new_cflags" 20312 20313 fi 20314 20315 if test -n "$cf_new_cppflags" ; then 20316 20317 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 20318 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 20319 20320 fi 20321 20322 if test -n "$cf_new_extra_cppflags" ; then 20323 20324 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 20325 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 20326 20327 fi 20328 20329 cat >>confdefs.h <<\EOF 20330 #define XRENDERFONT 1 20331 EOF 20332 20333 for ac_func in \ 20334 XftDrawCharSpec \ 20335 XftDrawSetClip \ 20336 XftDrawSetClipRectangles \ 20337 20338 do 20339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20340 echo "$as_me:20340: checking for $ac_func" >&5 20341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 20342 if eval "test \"\${$as_ac_var+set}\" = set"; then 20343 echo $ECHO_N "(cached) $ECHO_C" >&6 20344 else 20345 cat >"conftest.$ac_ext" <<_ACEOF 20346 #line 20346 "configure" 20347 #include "confdefs.h" 20348 #define $ac_func autoconf_temporary 20349 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 20350 #undef $ac_func 20351 20352 #ifdef __cplusplus 20353 extern "C" 20354 #endif 20355 20356 /* We use char because int might match the return type of a gcc2 20357 builtin and then its argument prototype would still apply. */ 20358 char $ac_func (void); 20359 20360 int 20361 main (void) 20362 { 20363 20364 /* The GNU C library defines stubs for functions which it implements 20365 to always fail with ENOSYS. Some functions are actually named 20366 something starting with __ and the normal name is an alias. */ 20367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 20368 #error found stub for $ac_func 20369 #endif 20370 20371 return $ac_func (); 20372 ; 20373 return 0; 20374 } 20375 _ACEOF 20376 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 20377 if { (eval echo "$as_me:20377: \"$ac_link\"") >&5 20378 (eval $ac_link) 2>&5 20379 ac_status=$? 20380 echo "$as_me:20380: \$? = $ac_status" >&5 20381 (exit "$ac_status"); } && 20382 { ac_try='test -s "conftest$ac_exeext"' 20383 { (eval echo "$as_me:20383: \"$ac_try\"") >&5 20384 (eval $ac_try) 2>&5 20385 ac_status=$? 20386 echo "$as_me:20386: \$? = $ac_status" >&5 20387 (exit "$ac_status"); }; }; then 20388 eval "$as_ac_var=yes" 20389 else 20390 echo "$as_me: failed program was:" >&5 20391 cat "conftest.$ac_ext" >&5 20392 eval "$as_ac_var=no" 20393 fi 20394 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 20395 fi 20396 echo "$as_me:20396: result: `eval echo '${'"$as_ac_var"'}'`" >&5 20397 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 20398 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 20399 cat >>confdefs.h <<EOF 20400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20401 EOF 20402 20403 fi 20404 done 20405 20406 else 20407 { echo "$as_me:20407: WARNING: No libraries found for FreeType" >&5 20408 echo "$as_me: WARNING: No libraries found for FreeType" >&2;} 20409 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//` 20410 fi 20411 20412 # FIXME: revisit this if needed 20413 20414 if test "$cf_cv_found_freetype" = yes ; then 20415 echo "$as_me:20415: checking for usable Xft/fontconfig package" >&5 20416 echo $ECHO_N "checking for usable Xft/fontconfig package... $ECHO_C" >&6 20417 if test "${cf_cv_xft_compat+set}" = set; then 20418 echo $ECHO_N "(cached) $ECHO_C" >&6 20419 else 20420 20421 cat >"conftest.$ac_ext" <<_ACEOF 20422 #line 20422 "configure" 20423 #include "confdefs.h" 20424 20425 #include <X11/Xlib.h> 20426 #include <X11/Xft/Xft.h> 20427 20428 int 20429 main (void) 20430 { 20431 20432 XftPattern *pat = 0; 20433 XftPatternBuild(pat, 20434 XFT_FAMILY, XftTypeString, "mono", 20435 (void *) 0); 20436 20437 ; 20438 return 0; 20439 } 20440 _ACEOF 20441 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 20442 if { (eval echo "$as_me:20442: \"$ac_link\"") >&5 20443 (eval $ac_link) 2>&5 20444 ac_status=$? 20445 echo "$as_me:20445: \$? = $ac_status" >&5 20446 (exit "$ac_status"); } && 20447 { ac_try='test -s "conftest$ac_exeext"' 20448 { (eval echo "$as_me:20448: \"$ac_try\"") >&5 20449 (eval $ac_try) 2>&5 20450 ac_status=$? 20451 echo "$as_me:20451: \$? = $ac_status" >&5 20452 (exit "$ac_status"); }; }; then 20453 cf_cv_xft_compat=yes 20454 else 20455 echo "$as_me: failed program was:" >&5 20456 cat "conftest.$ac_ext" >&5 20457 cf_cv_xft_compat=no 20458 fi 20459 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 20460 20461 fi 20462 echo "$as_me:20462: result: $cf_cv_xft_compat" >&5 20463 echo "${ECHO_T}$cf_cv_xft_compat" >&6 20464 20465 if test "$cf_cv_xft_compat" = no 20466 then 20467 # workaround for broken ".pc" files used for Xft. 20468 case "$cf_cv_x_freetype_libs" in 20469 (*-lfontconfig*) 20470 ;; 20471 (*) 20472 test -n "$verbose" && echo " work around broken package" 1>&6 20473 20474 echo "${as_me:-configure}:20474: testing work around broken package ..." 1>&5 20475 20476 cf_save_fontconfig="$LIBS" 20477 20478 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "fontconfig"; then 20479 test -n "$verbose" && echo " found package fontconfig" 1>&6 20480 20481 echo "${as_me:-configure}:20481: testing found package fontconfig ..." 1>&5 20482 20483 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`" 20484 cf_pkgconfig_libs="`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`" 20485 test -n "$verbose" && echo " package fontconfig CFLAGS: $cf_pkgconfig_incs" 1>&6 20486 20487 echo "${as_me:-configure}:20487: testing package fontconfig CFLAGS: $cf_pkgconfig_incs ..." 1>&5 20488 20489 test -n "$verbose" && echo " package fontconfig LIBS: $cf_pkgconfig_libs" 1>&6 20490 20491 echo "${as_me:-configure}:20491: testing package fontconfig LIBS: $cf_pkgconfig_libs ..." 1>&5 20492 20493 cf_fix_cppflags=no 20494 cf_new_cflags= 20495 cf_new_cppflags= 20496 cf_new_extra_cppflags= 20497 20498 for cf_add_cflags in $cf_pkgconfig_incs 20499 do 20500 case "$cf_fix_cppflags" in 20501 (no) 20502 case "$cf_add_cflags" in 20503 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 20504 case "$cf_add_cflags" in 20505 (-D*) 20506 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 20507 20508 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 20509 && test -z "${cf_tst_cflags}" \ 20510 && cf_fix_cppflags=yes 20511 20512 if test "$cf_fix_cppflags" = yes ; then 20513 20514 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20515 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20516 20517 continue 20518 elif test "${cf_tst_cflags}" = "\"'" ; then 20519 20520 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20521 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20522 20523 continue 20524 fi 20525 ;; 20526 esac 20527 case "$CPPFLAGS" in 20528 (*$cf_add_cflags) 20529 ;; 20530 (*) 20531 case "$cf_add_cflags" in 20532 (-D*) 20533 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 20534 20535 CPPFLAGS=`echo "$CPPFLAGS" | \ 20536 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 20537 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 20538 20539 ;; 20540 esac 20541 20542 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 20543 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 20544 20545 ;; 20546 esac 20547 ;; 20548 (*) 20549 20550 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 20551 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 20552 20553 ;; 20554 esac 20555 ;; 20556 (yes) 20557 20558 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20559 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20560 20561 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 20562 20563 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 20564 && test -z "${cf_tst_cflags}" \ 20565 && cf_fix_cppflags=no 20566 ;; 20567 esac 20568 done 20569 20570 if test -n "$cf_new_cflags" ; then 20571 20572 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 20573 CFLAGS="${CFLAGS}$cf_new_cflags" 20574 20575 fi 20576 20577 if test -n "$cf_new_cppflags" ; then 20578 20579 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 20580 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 20581 20582 fi 20583 20584 if test -n "$cf_new_extra_cppflags" ; then 20585 20586 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 20587 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 20588 20589 fi 20590 20591 cf_add_libs="$LIBS" 20592 # reverse order 20593 cf_add_0lib= 20594 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 20595 # filter duplicates 20596 for cf_add_1lib in $cf_add_0lib; do 20597 for cf_add_2lib in $cf_add_libs; do 20598 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 20599 cf_add_1lib= 20600 break 20601 fi 20602 done 20603 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 20604 done 20605 LIBS="$cf_add_libs" 20606 20607 cf_fix_cppflags=no 20608 cf_new_cflags= 20609 cf_new_cppflags= 20610 cf_new_extra_cppflags= 20611 20612 for cf_add_cflags in $cf_pkgconfig_incs 20613 do 20614 case "$cf_fix_cppflags" in 20615 (no) 20616 case "$cf_add_cflags" in 20617 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 20618 case "$cf_add_cflags" in 20619 (-D*) 20620 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 20621 20622 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 20623 && test -z "${cf_tst_cflags}" \ 20624 && cf_fix_cppflags=yes 20625 20626 if test "$cf_fix_cppflags" = yes ; then 20627 20628 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20629 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20630 20631 continue 20632 elif test "${cf_tst_cflags}" = "\"'" ; then 20633 20634 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20635 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20636 20637 continue 20638 fi 20639 ;; 20640 esac 20641 case "$CPPFLAGS" in 20642 (*$cf_add_cflags) 20643 ;; 20644 (*) 20645 case "$cf_add_cflags" in 20646 (-D*) 20647 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 20648 20649 CPPFLAGS=`echo "$CPPFLAGS" | \ 20650 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 20651 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 20652 20653 ;; 20654 esac 20655 20656 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 20657 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 20658 20659 ;; 20660 esac 20661 ;; 20662 (*) 20663 20664 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 20665 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 20666 20667 ;; 20668 esac 20669 ;; 20670 (yes) 20671 20672 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20673 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20674 20675 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 20676 20677 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 20678 && test -z "${cf_tst_cflags}" \ 20679 && cf_fix_cppflags=no 20680 ;; 20681 esac 20682 done 20683 20684 if test -n "$cf_new_cflags" ; then 20685 20686 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 20687 CFLAGS="${CFLAGS}$cf_new_cflags" 20688 20689 fi 20690 20691 if test -n "$cf_new_cppflags" ; then 20692 20693 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 20694 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 20695 20696 fi 20697 20698 if test -n "$cf_new_extra_cppflags" ; then 20699 20700 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 20701 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 20702 20703 fi 20704 20705 LIBS="$cf_save_fontconfig" 20706 20707 test -n "$verbose" && echo " ...before $LIBS" 1>&6 20708 20709 echo "${as_me:-configure}:20709: testing ...before $LIBS ..." 1>&5 20710 20711 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXft %-lXft $cf_pkgconfig_libs %" -e 's% % %g'` 20712 test -n "$verbose" && echo " ...after $LIBS" 1>&6 20713 20714 echo "${as_me:-configure}:20714: testing ...after $LIBS ..." 1>&5 20715 20716 else 20717 cf_pkgconfig_incs= 20718 cf_pkgconfig_libs= 20719 20720 test -n "$verbose" && echo " ...before $LIBS" 1>&6 20721 20722 echo "${as_me:-configure}:20722: testing ...before $LIBS ..." 1>&5 20723 20724 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXft %-lXft -lfontconfig %" -e 's% % %g'` 20725 test -n "$verbose" && echo " ...after $LIBS" 1>&6 20726 20727 echo "${as_me:-configure}:20727: testing ...after $LIBS ..." 1>&5 20728 20729 fi 20730 20731 ;; 20732 esac 20733 fi 20734 fi 20735 20736 else 20737 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//` 20738 fi 20739 20740 echo "$as_me:20740: checking if you want support for HP-style function keys" >&5 20741 echo $ECHO_N "checking if you want support for HP-style function keys... $ECHO_C" >&6 20742 20743 # Check whether --enable-hp-fkeys or --disable-hp-fkeys was given. 20744 if test "${enable_hp_fkeys+set}" = set; then 20745 enableval="$enable_hp_fkeys" 20746 test "$enableval" != yes && enableval=no 20747 if test "$enableval" != "no" ; then 20748 enable_hp_fkeys=yes 20749 else 20750 enable_hp_fkeys=no 20751 fi 20752 else 20753 enableval=no 20754 enable_hp_fkeys=no 20755 20756 fi; 20757 echo "$as_me:20757: result: $enable_hp_fkeys" >&5 20758 echo "${ECHO_T}$enable_hp_fkeys" >&6 20759 if test "$enable_hp_fkeys" = yes ; then 20760 20761 cat >>confdefs.h <<\EOF 20762 #define OPT_HP_FUNC_KEYS 1 20763 EOF 20764 20765 fi 20766 20767 echo "$as_me:20767: checking if you want support for SCO-style function keys" >&5 20768 echo $ECHO_N "checking if you want support for SCO-style function keys... $ECHO_C" >&6 20769 20770 # Check whether --enable-sco-fkeys or --disable-sco-fkeys was given. 20771 if test "${enable_sco_fkeys+set}" = set; then 20772 enableval="$enable_sco_fkeys" 20773 test "$enableval" != yes && enableval=no 20774 if test "$enableval" != "no" ; then 20775 enable_sco_fkeys=yes 20776 else 20777 enable_sco_fkeys=no 20778 fi 20779 else 20780 enableval=no 20781 enable_sco_fkeys=no 20782 20783 fi; 20784 echo "$as_me:20784: result: $enable_sco_fkeys" >&5 20785 echo "${ECHO_T}$enable_sco_fkeys" >&6 20786 if test "$enable_sco_fkeys" = yes ; then 20787 20788 cat >>confdefs.h <<\EOF 20789 #define OPT_SCO_FUNC_KEYS 1 20790 EOF 20791 20792 fi 20793 20794 echo "$as_me:20794: checking if you want support for Sun-style function keys" >&5 20795 echo $ECHO_N "checking if you want support for Sun-style function keys... $ECHO_C" >&6 20796 20797 # Check whether --enable-sun-fkeys or --disable-sun-fkeys was given. 20798 if test "${enable_sun_fkeys+set}" = set; then 20799 enableval="$enable_sun_fkeys" 20800 test "$enableval" != no && enableval=yes 20801 if test "$enableval" != "yes" ; then 20802 enable_sun_fkeys=no 20803 else 20804 enable_sun_fkeys=yes 20805 fi 20806 else 20807 enableval=yes 20808 enable_sun_fkeys=yes 20809 20810 fi; 20811 echo "$as_me:20811: result: $enable_sun_fkeys" >&5 20812 echo "${ECHO_T}$enable_sun_fkeys" >&6 20813 if test "$enable_sun_fkeys" = no ; then 20814 20815 cat >>confdefs.h <<\EOF 20816 #define OPT_SUN_FUNC_KEYS 0 20817 EOF 20818 20819 fi 20820 20821 echo "$as_me:20821: checking if you want saved-lines stored as a FIFO" >&5 20822 echo $ECHO_N "checking if you want saved-lines stored as a FIFO... $ECHO_C" >&6 20823 20824 # Check whether --enable-fifo-lines or --disable-fifo-lines was given. 20825 if test "${enable_fifo_lines+set}" = set; then 20826 enableval="$enable_fifo_lines" 20827 test "$enableval" != no && enableval=yes 20828 if test "$enableval" != "yes" ; then 20829 enable_fifo_lines=no 20830 else 20831 enable_fifo_lines=yes 20832 fi 20833 else 20834 enableval=yes 20835 enable_fifo_lines=yes 20836 20837 fi; 20838 echo "$as_me:20838: result: $enable_fifo_lines" >&5 20839 echo "${ECHO_T}$enable_fifo_lines" >&6 20840 if test "$enable_fifo_lines" != yes ; then 20841 { echo "$as_me:20841: WARNING: this option has been deprecated" >&5 20842 echo "$as_me: WARNING: this option has been deprecated" >&2;} 20843 fi 20844 20845 echo "$as_me:20845: checking if you want support for internationalization" >&5 20846 echo $ECHO_N "checking if you want support for internationalization... $ECHO_C" >&6 20847 20848 # Check whether --enable-i18n or --disable-i18n was given. 20849 if test "${enable_i18n+set}" = set; then 20850 enableval="$enable_i18n" 20851 test "$enableval" != no && enableval=yes 20852 if test "$enableval" != "yes" ; then 20853 enable_i18n=no 20854 else 20855 enable_i18n=yes 20856 fi 20857 else 20858 enableval=yes 20859 enable_i18n=yes 20860 20861 fi; 20862 echo "$as_me:20862: result: $enable_i18n" >&5 20863 echo "${ECHO_T}$enable_i18n" >&6 20864 if test "$enable_i18n" = no ; then 20865 20866 cat >>confdefs.h <<\EOF 20867 #define OPT_I18N_SUPPORT 0 20868 EOF 20869 20870 fi 20871 20872 echo "$as_me:20872: checking if you want support for initial-erase setup" >&5 20873 echo $ECHO_N "checking if you want support for initial-erase setup... $ECHO_C" >&6 20874 20875 # Check whether --enable-initial-erase or --disable-initial-erase was given. 20876 if test "${enable_initial_erase+set}" = set; then 20877 enableval="$enable_initial_erase" 20878 test "$enableval" != no && enableval=yes 20879 if test "$enableval" != "yes" ; then 20880 enable_ie=no 20881 else 20882 enable_ie=yes 20883 fi 20884 else 20885 enableval=yes 20886 enable_ie=yes 20887 20888 fi; 20889 echo "$as_me:20889: result: $enable_ie" >&5 20890 echo "${ECHO_T}$enable_ie" >&6 20891 if test "$enable_ie" = no ; then 20892 20893 cat >>confdefs.h <<\EOF 20894 #define OPT_INITIAL_ERASE 0 20895 EOF 20896 20897 fi 20898 20899 echo "$as_me:20899: checking if you want support for input-method" >&5 20900 echo $ECHO_N "checking if you want support for input-method... $ECHO_C" >&6 20901 20902 # Check whether --enable-input-method or --disable-input-method was given. 20903 if test "${enable_input_method+set}" = set; then 20904 enableval="$enable_input_method" 20905 test "$enableval" != no && enableval=yes 20906 if test "$enableval" != "yes" ; then 20907 enable_ximp=no 20908 else 20909 enable_ximp=$enable_i18n 20910 fi 20911 else 20912 enableval=yes 20913 enable_ximp=$enable_i18n 20914 20915 fi; 20916 echo "$as_me:20916: result: $enable_ximp" >&5 20917 echo "${ECHO_T}$enable_ximp" >&6 20918 20919 echo "$as_me:20919: checking if X libraries support input-method" >&5 20920 echo $ECHO_N "checking if X libraries support input-method... $ECHO_C" >&6 20921 if test "${cf_cv_input_method+set}" = set; then 20922 echo $ECHO_N "(cached) $ECHO_C" >&6 20923 else 20924 20925 cat >"conftest.$ac_ext" <<_ACEOF 20926 #line 20926 "configure" 20927 #include "confdefs.h" 20928 20929 #include <X11/IntrinsicP.h> 20930 #include <X11/Xatom.h> 20931 #include <X11/Xutil.h> 20932 #include <X11/Xmu/Atoms.h> 20933 #include <X11/Xmu/Converters.h> 20934 #include <X11/Xaw/XawImP.h> 20935 20936 int 20937 main (void) 20938 { 20939 20940 { 20941 XIM xim; 20942 XIMStyles *xim_styles = 0; 20943 XIMStyle input_style; 20944 Widget w = XtCreateWidget("none", (WidgetClass)0, None, (ArgList)0, 0); 20945 20946 XSetLocaleModifiers("@im=none"); 20947 xim = XOpenIM(XtDisplay(w), NULL, NULL, NULL); 20948 XGetIMValues(xim, XNQueryInputStyle, &xim_styles, NULL); 20949 XCloseIM(xim); 20950 input_style = (XIMPreeditNothing | XIMStatusNothing); 20951 (void)xim_styles; 20952 (void)input_style; 20953 } 20954 20955 ; 20956 return 0; 20957 } 20958 _ACEOF 20959 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 20960 if { (eval echo "$as_me:20960: \"$ac_link\"") >&5 20961 (eval $ac_link) 2>&5 20962 ac_status=$? 20963 echo "$as_me:20963: \$? = $ac_status" >&5 20964 (exit "$ac_status"); } && 20965 { ac_try='test -s "conftest$ac_exeext"' 20966 { (eval echo "$as_me:20966: \"$ac_try\"") >&5 20967 (eval $ac_try) 2>&5 20968 ac_status=$? 20969 echo "$as_me:20969: \$? = $ac_status" >&5 20970 (exit "$ac_status"); }; }; then 20971 cf_cv_input_method=yes 20972 else 20973 echo "$as_me: failed program was:" >&5 20974 cat "conftest.$ac_ext" >&5 20975 cf_cv_input_method=no 20976 fi 20977 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 20978 fi 20979 echo "$as_me:20979: result: $cf_cv_input_method" >&5 20980 echo "${ECHO_T}$cf_cv_input_method" >&6 20981 20982 test "$cf_cv_input_method" = no && enable_ximp=no 20983 if test "$enable_ximp" != no ; then 20984 if test "$enable_i18n" = no ; then 20985 { echo "$as_me:20985: WARNING: input-method relies upon internationalization" >&5 20986 echo "$as_me: WARNING: input-method relies upon internationalization" >&2;} 20987 enable_ximp=no 20988 fi 20989 fi 20990 if test "$enable_ximp" = no ; then 20991 20992 cat >>confdefs.h <<\EOF 20993 #define OPT_INPUT_METHOD 0 20994 EOF 20995 20996 fi 20997 20998 echo "$as_me:20998: checking if you want support for load-vt-fonts" >&5 20999 echo $ECHO_N "checking if you want support for load-vt-fonts... $ECHO_C" >&6 21000 21001 # Check whether --enable-load-vt-fonts or --disable-load-vt-fonts was given. 21002 if test "${enable_load_vt_fonts+set}" = set; then 21003 enableval="$enable_load_vt_fonts" 21004 test "$enableval" != yes && enableval=no 21005 if test "$enableval" != "no" ; then 21006 enable_load_vt_fonts=yes 21007 else 21008 enable_load_vt_fonts=no 21009 fi 21010 else 21011 enableval=no 21012 enable_load_vt_fonts=no 21013 21014 fi; 21015 echo "$as_me:21015: result: $enable_load_vt_fonts" >&5 21016 echo "${ECHO_T}$enable_load_vt_fonts" >&6 21017 if test "$enable_load_vt_fonts" = yes ; then 21018 21019 cat >>confdefs.h <<\EOF 21020 #define OPT_LOAD_VTFONTS 1 21021 EOF 21022 21023 fi 21024 21025 echo "$as_me:21025: checking if you want support for logging" >&5 21026 echo $ECHO_N "checking if you want support for logging... $ECHO_C" >&6 21027 21028 # Check whether --enable-logging or --disable-logging was given. 21029 if test "${enable_logging+set}" = set; then 21030 enableval="$enable_logging" 21031 test "$enableval" != yes && enableval=no 21032 if test "$enableval" != "no" ; then 21033 enable_logging=yes 21034 else 21035 enable_logging=no 21036 fi 21037 else 21038 enableval=no 21039 enable_logging=no 21040 21041 fi; 21042 echo "$as_me:21042: result: $enable_logging" >&5 21043 echo "${ECHO_T}$enable_logging" >&6 21044 if test "$enable_logging" = yes ; then 21045 21046 cat >>confdefs.h <<\EOF 21047 #define ALLOWLOGGING 1 21048 EOF 21049 21050 echo "$as_me:21050: checking if you want to allow logging via a pipe" >&5 21051 echo $ECHO_N "checking if you want to allow logging via a pipe... $ECHO_C" >&6 21052 21053 # Check whether --enable-logfile-exec or --disable-logfile-exec was given. 21054 if test "${enable_logfile_exec+set}" = set; then 21055 enableval="$enable_logfile_exec" 21056 test "$enableval" != yes && enableval=no 21057 if test "$enableval" != "no" ; then 21058 enable_log_exec=yes 21059 else 21060 enable_log_exec=no 21061 fi 21062 else 21063 enableval=no 21064 enable_log_exec=no 21065 21066 fi; 21067 echo "$as_me:21067: result: $enable_log_exec" >&5 21068 echo "${ECHO_T}$enable_log_exec" >&6 21069 if test "$enable_log_exec" = yes ; then 21070 21071 cat >>confdefs.h <<\EOF 21072 #define ALLOWLOGFILEEXEC 1 21073 EOF 21074 21075 fi 21076 fi 21077 21078 echo "$as_me:21078: checking if you want support for iconify/maximize translations" >&5 21079 echo $ECHO_N "checking if you want support for iconify/maximize translations... $ECHO_C" >&6 21080 21081 # Check whether --enable-maximize or --disable-maximize was given. 21082 if test "${enable_maximize+set}" = set; then 21083 enableval="$enable_maximize" 21084 test "$enableval" != no && enableval=yes 21085 if test "$enableval" != "yes" ; then 21086 enable_maximize=no 21087 else 21088 enable_maximize=yes 21089 fi 21090 else 21091 enableval=yes 21092 enable_maximize=yes 21093 21094 fi; 21095 echo "$as_me:21095: result: $enable_maximize" >&5 21096 echo "${ECHO_T}$enable_maximize" >&6 21097 test "$enable_maximize" = no && 21098 cat >>confdefs.h <<\EOF 21099 #define OPT_MAXIMIZE 0 21100 EOF 21101 21102 echo "$as_me:21102: checking if you want NumLock to override keyboard tables" >&5 21103 echo $ECHO_N "checking if you want NumLock to override keyboard tables... $ECHO_C" >&6 21104 21105 # Check whether --enable-num-lock or --disable-num-lock was given. 21106 if test "${enable_num_lock+set}" = set; then 21107 enableval="$enable_num_lock" 21108 test "$enableval" != no && enableval=yes 21109 if test "$enableval" != "yes" ; then 21110 enable_numlock=no 21111 else 21112 enable_numlock=yes 21113 fi 21114 else 21115 enableval=yes 21116 enable_numlock=yes 21117 21118 fi; 21119 echo "$as_me:21119: result: $enable_numlock" >&5 21120 echo "${ECHO_T}$enable_numlock" >&6 21121 test "$enable_numlock" = no && 21122 cat >>confdefs.h <<\EOF 21123 #define OPT_NUM_LOCK 0 21124 EOF 21125 21126 echo "$as_me:21126: checking if you want support for get/set of base64 selection data" >&5 21127 echo $ECHO_N "checking if you want support for get/set of base64 selection data... $ECHO_C" >&6 21128 21129 # Check whether --enable-paste64 or --disable-paste64 was given. 21130 if test "${enable_paste64+set}" = set; then 21131 enableval="$enable_paste64" 21132 test "$enableval" != no && enableval=yes 21133 if test "$enableval" != "yes" ; then 21134 enable_paste64=no 21135 else 21136 enable_paste64=yes 21137 fi 21138 else 21139 enableval=yes 21140 enable_paste64=yes 21141 21142 fi; 21143 echo "$as_me:21143: result: $enable_paste64" >&5 21144 echo "${ECHO_T}$enable_paste64" >&6 21145 if test "$enable_paste64" = yes ; then 21146 21147 cat >>confdefs.h <<\EOF 21148 #define OPT_PASTE64 1 21149 EOF 21150 21151 else 21152 21153 cat >>confdefs.h <<\EOF 21154 #define OPT_PASTE64 0 21155 EOF 21156 21157 fi 21158 21159 echo "$as_me:21159: checking if you want support for pty-handshaking" >&5 21160 echo $ECHO_N "checking if you want support for pty-handshaking... $ECHO_C" >&6 21161 21162 # Check whether --enable-pty-handshake or --disable-pty-handshake was given. 21163 if test "${enable_pty_handshake+set}" = set; then 21164 enableval="$enable_pty_handshake" 21165 test "$enableval" != no && enableval=yes 21166 if test "$enableval" != "yes" ; then 21167 enable_pty_handshake=no 21168 else 21169 enable_pty_handshake=yes 21170 fi 21171 else 21172 enableval=yes 21173 enable_pty_handshake=yes 21174 21175 fi; 21176 echo "$as_me:21176: result: $enable_pty_handshake" >&5 21177 echo "${ECHO_T}$enable_pty_handshake" >&6 21178 if test "$enable_pty_handshake" = yes ; then 21179 21180 cat >>confdefs.h <<\EOF 21181 #define OPT_PTY_HANDSHAKE 1 21182 EOF 21183 21184 else 21185 21186 cat >>confdefs.h <<\EOF 21187 #define OPT_PTY_HANDSHAKE 0 21188 EOF 21189 21190 fi 21191 21192 echo "$as_me:21192: checking if you want support for mouse in readline applications" >&5 21193 echo $ECHO_N "checking if you want support for mouse in readline applications... $ECHO_C" >&6 21194 21195 # Check whether --enable-readline-mouse or --disable-readline-mouse was given. 21196 if test "${enable_readline_mouse+set}" = set; then 21197 enableval="$enable_readline_mouse" 21198 test "$enableval" != no && enableval=yes 21199 if test "$enableval" != "yes" ; then 21200 enable_readline_mouse=no 21201 else 21202 enable_readline_mouse=yes 21203 fi 21204 else 21205 enableval=yes 21206 enable_readline_mouse=yes 21207 21208 fi; 21209 echo "$as_me:21209: result: $enable_readline_mouse" >&5 21210 echo "${ECHO_T}$enable_readline_mouse" >&6 21211 if test "$enable_readline_mouse" = yes ; then 21212 21213 cat >>confdefs.h <<\EOF 21214 #define OPT_READLINE 1 21215 EOF 21216 21217 fi 21218 21219 echo "$as_me:21219: checking if you want support for regular-expression selections" >&5 21220 echo $ECHO_N "checking if you want support for regular-expression selections... $ECHO_C" >&6 21221 21222 # Check whether --enable-regex or --disable-regex was given. 21223 if test "${enable_regex+set}" = set; then 21224 enableval="$enable_regex" 21225 test "$enableval" != no && enableval=yes 21226 if test "$enableval" != "yes" ; then 21227 enable_regex=no 21228 else 21229 enable_regex=yes 21230 fi 21231 else 21232 enableval=yes 21233 enable_regex=yes 21234 21235 fi; 21236 echo "$as_me:21236: result: $enable_regex" >&5 21237 echo "${ECHO_T}$enable_regex" >&6 21238 if test "$enable_regex" = yes ; then 21239 21240 echo "$as_me:21240: checking if you want to use PCRE2 for regular-expressions" >&5 21241 echo $ECHO_N "checking if you want to use PCRE2 for regular-expressions... $ECHO_C" >&6 21242 21243 # Check whether --with-pcre2 or --without-pcre2 was given. 21244 if test "${with_pcre2+set}" = set; then 21245 withval="$with_pcre2" 21246 21247 fi; 21248 test -z "$with_pcre2" && with_pcre2=no 21249 echo "$as_me:21249: result: $with_pcre2" >&5 21250 echo "${ECHO_T}$with_pcre2" >&6 21251 21252 if test "x$with_pcre2" != xno ; then 21253 cf_with_pcre2_ok=no 21254 for cf_with_pcre2 in libpcre2 libpcre2-posix libpcre 21255 do 21256 21257 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_with_pcre2"; then 21258 test -n "$verbose" && echo " found package $cf_with_pcre2" 1>&6 21259 21260 echo "${as_me:-configure}:21260: testing found package $cf_with_pcre2 ..." 1>&5 21261 21262 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_with_pcre2" 2>/dev/null`" 21263 cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_with_pcre2" 2>/dev/null`" 21264 test -n "$verbose" && echo " package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs" 1>&6 21265 21266 echo "${as_me:-configure}:21266: testing package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 21267 21268 test -n "$verbose" && echo " package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs" 1>&6 21269 21270 echo "${as_me:-configure}:21270: testing package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs ..." 1>&5 21271 21272 cf_fix_cppflags=no 21273 cf_new_cflags= 21274 cf_new_cppflags= 21275 cf_new_extra_cppflags= 21276 21277 for cf_add_cflags in $cf_pkgconfig_incs 21278 do 21279 case "$cf_fix_cppflags" in 21280 (no) 21281 case "$cf_add_cflags" in 21282 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 21283 case "$cf_add_cflags" in 21284 (-D*) 21285 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 21286 21287 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 21288 && test -z "${cf_tst_cflags}" \ 21289 && cf_fix_cppflags=yes 21290 21291 if test "$cf_fix_cppflags" = yes ; then 21292 21293 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 21294 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 21295 21296 continue 21297 elif test "${cf_tst_cflags}" = "\"'" ; then 21298 21299 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 21300 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 21301 21302 continue 21303 fi 21304 ;; 21305 esac 21306 case "$CPPFLAGS" in 21307 (*$cf_add_cflags) 21308 ;; 21309 (*) 21310 case "$cf_add_cflags" in 21311 (-D*) 21312 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 21313 21314 CPPFLAGS=`echo "$CPPFLAGS" | \ 21315 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 21316 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 21317 21318 ;; 21319 esac 21320 21321 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 21322 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 21323 21324 ;; 21325 esac 21326 ;; 21327 (*) 21328 21329 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 21330 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 21331 21332 ;; 21333 esac 21334 ;; 21335 (yes) 21336 21337 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 21338 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 21339 21340 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 21341 21342 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 21343 && test -z "${cf_tst_cflags}" \ 21344 && cf_fix_cppflags=no 21345 ;; 21346 esac 21347 done 21348 21349 if test -n "$cf_new_cflags" ; then 21350 21351 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 21352 CFLAGS="${CFLAGS}$cf_new_cflags" 21353 21354 fi 21355 21356 if test -n "$cf_new_cppflags" ; then 21357 21358 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 21359 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 21360 21361 fi 21362 21363 if test -n "$cf_new_extra_cppflags" ; then 21364 21365 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 21366 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 21367 21368 fi 21369 21370 cf_add_libs="$LIBS" 21371 # reverse order 21372 cf_add_0lib= 21373 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 21374 # filter duplicates 21375 for cf_add_1lib in $cf_add_0lib; do 21376 for cf_add_2lib in $cf_add_libs; do 21377 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 21378 cf_add_1lib= 21379 break 21380 fi 21381 done 21382 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 21383 done 21384 LIBS="$cf_add_libs" 21385 21386 cf_with_pcre2_ok=yes; break 21387 else 21388 cf_pkgconfig_incs= 21389 cf_pkgconfig_libs= 21390 : 21391 fi 21392 21393 done 21394 cf_with_pcre2_ok=yes || { { echo "$as_me:21394: error: Cannot find PCRE2 library" >&5 21395 echo "$as_me: error: Cannot find PCRE2 library" >&2;} 21396 { (exit 1); exit 1; }; } 21397 21398 cat >>confdefs.h <<\EOF 21399 #define HAVE_LIB_PCRE2 1 21400 EOF 21401 21402 # if pkgconfig gave no results, look for the libraries directly 21403 case "$LIBS" in 21404 (*pcre2-posix*|*pcreposix*) 21405 ;; 21406 (*) 21407 echo "$as_me:21407: checking for regcomp in -lpcre2-posix" >&5 21408 echo $ECHO_N "checking for regcomp in -lpcre2-posix... $ECHO_C" >&6 21409 if test "${ac_cv_lib_pcre2_posix_regcomp+set}" = set; then 21410 echo $ECHO_N "(cached) $ECHO_C" >&6 21411 else 21412 ac_check_lib_save_LIBS=$LIBS 21413 LIBS="-lpcre2-posix $LIBS" 21414 cat >"conftest.$ac_ext" <<_ACEOF 21415 #line 21415 "configure" 21416 #include "confdefs.h" 21417 21418 /* Override any gcc2 internal prototype to avoid an error. */ 21419 #ifdef __cplusplus 21420 extern "C" 21421 #endif 21422 /* We use char because int might match the return type of a gcc2 21423 builtin and then its argument prototype would still apply. */ 21424 char regcomp (void); 21425 int 21426 main (void) 21427 { 21428 regcomp (); 21429 ; 21430 return 0; 21431 } 21432 _ACEOF 21433 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21434 if { (eval echo "$as_me:21434: \"$ac_link\"") >&5 21435 (eval $ac_link) 2>&5 21436 ac_status=$? 21437 echo "$as_me:21437: \$? = $ac_status" >&5 21438 (exit "$ac_status"); } && 21439 { ac_try='test -s "conftest$ac_exeext"' 21440 { (eval echo "$as_me:21440: \"$ac_try\"") >&5 21441 (eval $ac_try) 2>&5 21442 ac_status=$? 21443 echo "$as_me:21443: \$? = $ac_status" >&5 21444 (exit "$ac_status"); }; }; then 21445 ac_cv_lib_pcre2_posix_regcomp=yes 21446 else 21447 echo "$as_me: failed program was:" >&5 21448 cat "conftest.$ac_ext" >&5 21449 ac_cv_lib_pcre2_posix_regcomp=no 21450 fi 21451 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21452 LIBS=$ac_check_lib_save_LIBS 21453 fi 21454 echo "$as_me:21454: result: $ac_cv_lib_pcre2_posix_regcomp" >&5 21455 echo "${ECHO_T}$ac_cv_lib_pcre2_posix_regcomp" >&6 21456 if test "$ac_cv_lib_pcre2_posix_regcomp" = yes; then 21457 21458 cf_add_libs="$LIBS" 21459 # reverse order 21460 cf_add_0lib= 21461 for cf_add_1lib in -lpcre2-posix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 21462 # filter duplicates 21463 for cf_add_1lib in $cf_add_0lib; do 21464 for cf_add_2lib in $cf_add_libs; do 21465 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 21466 cf_add_1lib= 21467 break 21468 fi 21469 done 21470 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 21471 done 21472 LIBS="$cf_add_libs" 21473 21474 else 21475 echo "$as_me:21475: checking for regcomp in -lpcreposix" >&5 21476 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6 21477 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then 21478 echo $ECHO_N "(cached) $ECHO_C" >&6 21479 else 21480 ac_check_lib_save_LIBS=$LIBS 21481 LIBS="-lpcreposix $LIBS" 21482 cat >"conftest.$ac_ext" <<_ACEOF 21483 #line 21483 "configure" 21484 #include "confdefs.h" 21485 21486 /* Override any gcc2 internal prototype to avoid an error. */ 21487 #ifdef __cplusplus 21488 extern "C" 21489 #endif 21490 /* We use char because int might match the return type of a gcc2 21491 builtin and then its argument prototype would still apply. */ 21492 char regcomp (void); 21493 int 21494 main (void) 21495 { 21496 regcomp (); 21497 ; 21498 return 0; 21499 } 21500 _ACEOF 21501 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21502 if { (eval echo "$as_me:21502: \"$ac_link\"") >&5 21503 (eval $ac_link) 2>&5 21504 ac_status=$? 21505 echo "$as_me:21505: \$? = $ac_status" >&5 21506 (exit "$ac_status"); } && 21507 { ac_try='test -s "conftest$ac_exeext"' 21508 { (eval echo "$as_me:21508: \"$ac_try\"") >&5 21509 (eval $ac_try) 2>&5 21510 ac_status=$? 21511 echo "$as_me:21511: \$? = $ac_status" >&5 21512 (exit "$ac_status"); }; }; then 21513 ac_cv_lib_pcreposix_regcomp=yes 21514 else 21515 echo "$as_me: failed program was:" >&5 21516 cat "conftest.$ac_ext" >&5 21517 ac_cv_lib_pcreposix_regcomp=no 21518 fi 21519 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21520 LIBS=$ac_check_lib_save_LIBS 21521 fi 21522 echo "$as_me:21522: result: $ac_cv_lib_pcreposix_regcomp" >&5 21523 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6 21524 if test "$ac_cv_lib_pcreposix_regcomp" = yes; then 21525 21526 cf_add_libs="$LIBS" 21527 # reverse order 21528 cf_add_0lib= 21529 for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 21530 # filter duplicates 21531 for cf_add_1lib in $cf_add_0lib; do 21532 for cf_add_2lib in $cf_add_libs; do 21533 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 21534 cf_add_1lib= 21535 break 21536 fi 21537 done 21538 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 21539 done 21540 LIBS="$cf_add_libs" 21541 21542 else 21543 { { echo "$as_me:21543: error: Cannot find PCRE2 POSIX library" >&5 21544 echo "$as_me: error: Cannot find PCRE2 POSIX library" >&2;} 21545 { (exit 1); exit 1; }; } 21546 fi 21547 21548 fi 21549 21550 ;; 21551 esac 21552 21553 # either way, check for the library header files 21554 21555 for ac_header in pcre2posix.h pcreposix.h 21556 do 21557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21558 echo "$as_me:21558: checking for $ac_header" >&5 21559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21560 if eval "test \"\${$as_ac_Header+set}\" = set"; then 21561 echo $ECHO_N "(cached) $ECHO_C" >&6 21562 else 21563 cat >"conftest.$ac_ext" <<_ACEOF 21564 #line 21564 "configure" 21565 #include "confdefs.h" 21566 #include <$ac_header> 21567 _ACEOF 21568 if { (eval echo "$as_me:21568: \"$ac_cpp "conftest.$ac_ext"\"") >&5 21569 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 21570 ac_status=$? 21571 $EGREP -v '^ *\+' conftest.er1 >conftest.err 21572 rm -f conftest.er1 21573 cat conftest.err >&5 21574 echo "$as_me:21574: \$? = $ac_status" >&5 21575 (exit "$ac_status"); } >/dev/null; then 21576 if test -s conftest.err; then 21577 ac_cpp_err=$ac_c_preproc_warn_flag 21578 else 21579 ac_cpp_err= 21580 fi 21581 else 21582 ac_cpp_err=yes 21583 fi 21584 if test -z "$ac_cpp_err"; then 21585 eval "$as_ac_Header=yes" 21586 else 21587 echo "$as_me: failed program was:" >&5 21588 cat "conftest.$ac_ext" >&5 21589 eval "$as_ac_Header=no" 21590 fi 21591 rm -f conftest.err "conftest.$ac_ext" 21592 fi 21593 echo "$as_me:21593: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 21594 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 21595 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 21596 cat >>confdefs.h <<EOF 21597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21598 EOF 21599 21600 fi 21601 done 21602 21603 for ac_func in PCRE2regcomp 21604 do 21605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21606 echo "$as_me:21606: checking for $ac_func" >&5 21607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 21608 if eval "test \"\${$as_ac_var+set}\" = set"; then 21609 echo $ECHO_N "(cached) $ECHO_C" >&6 21610 else 21611 cat >"conftest.$ac_ext" <<_ACEOF 21612 #line 21612 "configure" 21613 #include "confdefs.h" 21614 #define $ac_func autoconf_temporary 21615 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 21616 #undef $ac_func 21617 21618 #ifdef __cplusplus 21619 extern "C" 21620 #endif 21621 21622 /* We use char because int might match the return type of a gcc2 21623 builtin and then its argument prototype would still apply. */ 21624 char $ac_func (void); 21625 21626 int 21627 main (void) 21628 { 21629 21630 /* The GNU C library defines stubs for functions which it implements 21631 to always fail with ENOSYS. Some functions are actually named 21632 something starting with __ and the normal name is an alias. */ 21633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21634 #error found stub for $ac_func 21635 #endif 21636 21637 return $ac_func (); 21638 ; 21639 return 0; 21640 } 21641 _ACEOF 21642 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21643 if { (eval echo "$as_me:21643: \"$ac_link\"") >&5 21644 (eval $ac_link) 2>&5 21645 ac_status=$? 21646 echo "$as_me:21646: \$? = $ac_status" >&5 21647 (exit "$ac_status"); } && 21648 { ac_try='test -s "conftest$ac_exeext"' 21649 { (eval echo "$as_me:21649: \"$ac_try\"") >&5 21650 (eval $ac_try) 2>&5 21651 ac_status=$? 21652 echo "$as_me:21652: \$? = $ac_status" >&5 21653 (exit "$ac_status"); }; }; then 21654 eval "$as_ac_var=yes" 21655 else 21656 echo "$as_me: failed program was:" >&5 21657 cat "conftest.$ac_ext" >&5 21658 eval "$as_ac_var=no" 21659 fi 21660 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21661 fi 21662 echo "$as_me:21662: result: `eval echo '${'"$as_ac_var"'}'`" >&5 21663 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 21664 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 21665 cat >>confdefs.h <<EOF 21666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21667 EOF 21668 21669 fi 21670 done 21671 21672 fi 21673 21674 if test "$with_pcre2" = no ; then 21675 21676 echo "$as_me:21676: checking if you want to use PCRE for regular-expressions" >&5 21677 echo $ECHO_N "checking if you want to use PCRE for regular-expressions... $ECHO_C" >&6 21678 21679 # Check whether --with-pcre or --without-pcre was given. 21680 if test "${with_pcre+set}" = set; then 21681 withval="$with_pcre" 21682 21683 fi; 21684 test -z "$with_pcre" && with_pcre=no 21685 echo "$as_me:21685: result: $with_pcre" >&5 21686 echo "${ECHO_T}$with_pcre" >&6 21687 21688 if test "$with_pcre" != no ; then 21689 21690 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "libpcre"; then 21691 test -n "$verbose" && echo " found package libpcre" 1>&6 21692 21693 echo "${as_me:-configure}:21693: testing found package libpcre ..." 1>&5 21694 21695 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "libpcre" 2>/dev/null`" 21696 cf_pkgconfig_libs="`$PKG_CONFIG --libs "libpcre" 2>/dev/null`" 21697 test -n "$verbose" && echo " package libpcre CFLAGS: $cf_pkgconfig_incs" 1>&6 21698 21699 echo "${as_me:-configure}:21699: testing package libpcre CFLAGS: $cf_pkgconfig_incs ..." 1>&5 21700 21701 test -n "$verbose" && echo " package libpcre LIBS: $cf_pkgconfig_libs" 1>&6 21702 21703 echo "${as_me:-configure}:21703: testing package libpcre LIBS: $cf_pkgconfig_libs ..." 1>&5 21704 21705 cf_fix_cppflags=no 21706 cf_new_cflags= 21707 cf_new_cppflags= 21708 cf_new_extra_cppflags= 21709 21710 for cf_add_cflags in $cf_pkgconfig_incs 21711 do 21712 case "$cf_fix_cppflags" in 21713 (no) 21714 case "$cf_add_cflags" in 21715 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 21716 case "$cf_add_cflags" in 21717 (-D*) 21718 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 21719 21720 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 21721 && test -z "${cf_tst_cflags}" \ 21722 && cf_fix_cppflags=yes 21723 21724 if test "$cf_fix_cppflags" = yes ; then 21725 21726 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 21727 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 21728 21729 continue 21730 elif test "${cf_tst_cflags}" = "\"'" ; then 21731 21732 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 21733 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 21734 21735 continue 21736 fi 21737 ;; 21738 esac 21739 case "$CPPFLAGS" in 21740 (*$cf_add_cflags) 21741 ;; 21742 (*) 21743 case "$cf_add_cflags" in 21744 (-D*) 21745 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 21746 21747 CPPFLAGS=`echo "$CPPFLAGS" | \ 21748 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 21749 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 21750 21751 ;; 21752 esac 21753 21754 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 21755 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 21756 21757 ;; 21758 esac 21759 ;; 21760 (*) 21761 21762 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 21763 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 21764 21765 ;; 21766 esac 21767 ;; 21768 (yes) 21769 21770 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 21771 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 21772 21773 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 21774 21775 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 21776 && test -z "${cf_tst_cflags}" \ 21777 && cf_fix_cppflags=no 21778 ;; 21779 esac 21780 done 21781 21782 if test -n "$cf_new_cflags" ; then 21783 21784 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 21785 CFLAGS="${CFLAGS}$cf_new_cflags" 21786 21787 fi 21788 21789 if test -n "$cf_new_cppflags" ; then 21790 21791 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 21792 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 21793 21794 fi 21795 21796 if test -n "$cf_new_extra_cppflags" ; then 21797 21798 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 21799 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 21800 21801 fi 21802 21803 cf_add_libs="$LIBS" 21804 # reverse order 21805 cf_add_0lib= 21806 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 21807 # filter duplicates 21808 for cf_add_1lib in $cf_add_0lib; do 21809 for cf_add_2lib in $cf_add_libs; do 21810 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 21811 cf_add_1lib= 21812 break 21813 fi 21814 done 21815 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 21816 done 21817 LIBS="$cf_add_libs" 21818 21819 : 21820 else 21821 cf_pkgconfig_incs= 21822 cf_pkgconfig_libs= 21823 21824 echo "$as_me:21824: checking for pcre_compile in -lpcre" >&5 21825 echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6 21826 if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then 21827 echo $ECHO_N "(cached) $ECHO_C" >&6 21828 else 21829 ac_check_lib_save_LIBS=$LIBS 21830 LIBS="-lpcre $LIBS" 21831 cat >"conftest.$ac_ext" <<_ACEOF 21832 #line 21832 "configure" 21833 #include "confdefs.h" 21834 21835 /* Override any gcc2 internal prototype to avoid an error. */ 21836 #ifdef __cplusplus 21837 extern "C" 21838 #endif 21839 /* We use char because int might match the return type of a gcc2 21840 builtin and then its argument prototype would still apply. */ 21841 char pcre_compile (void); 21842 int 21843 main (void) 21844 { 21845 pcre_compile (); 21846 ; 21847 return 0; 21848 } 21849 _ACEOF 21850 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21851 if { (eval echo "$as_me:21851: \"$ac_link\"") >&5 21852 (eval $ac_link) 2>&5 21853 ac_status=$? 21854 echo "$as_me:21854: \$? = $ac_status" >&5 21855 (exit "$ac_status"); } && 21856 { ac_try='test -s "conftest$ac_exeext"' 21857 { (eval echo "$as_me:21857: \"$ac_try\"") >&5 21858 (eval $ac_try) 2>&5 21859 ac_status=$? 21860 echo "$as_me:21860: \$? = $ac_status" >&5 21861 (exit "$ac_status"); }; }; then 21862 ac_cv_lib_pcre_pcre_compile=yes 21863 else 21864 echo "$as_me: failed program was:" >&5 21865 cat "conftest.$ac_ext" >&5 21866 ac_cv_lib_pcre_pcre_compile=no 21867 fi 21868 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21869 LIBS=$ac_check_lib_save_LIBS 21870 fi 21871 echo "$as_me:21871: result: $ac_cv_lib_pcre_pcre_compile" >&5 21872 echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6 21873 if test "$ac_cv_lib_pcre_pcre_compile" = yes; then 21874 cat >>confdefs.h <<EOF 21875 #define HAVE_LIBPCRE 1 21876 EOF 21877 21878 LIBS="-lpcre $LIBS" 21879 21880 else 21881 { { echo "$as_me:21881: error: Cannot find PCRE library" >&5 21882 echo "$as_me: error: Cannot find PCRE library" >&2;} 21883 { (exit 1); exit 1; }; } 21884 fi 21885 21886 fi 21887 21888 cat >>confdefs.h <<\EOF 21889 #define HAVE_LIB_PCRE 1 21890 EOF 21891 21892 case $LIBS in 21893 (*pcreposix*) 21894 ;; 21895 (*) 21896 echo "$as_me:21896: checking for pcreposix_regcomp in -lpcreposix" >&5 21897 echo $ECHO_N "checking for pcreposix_regcomp in -lpcreposix... $ECHO_C" >&6 21898 if test "${ac_cv_lib_pcreposix_pcreposix_regcomp+set}" = set; then 21899 echo $ECHO_N "(cached) $ECHO_C" >&6 21900 else 21901 ac_check_lib_save_LIBS=$LIBS 21902 LIBS="-lpcreposix $LIBS" 21903 cat >"conftest.$ac_ext" <<_ACEOF 21904 #line 21904 "configure" 21905 #include "confdefs.h" 21906 21907 /* Override any gcc2 internal prototype to avoid an error. */ 21908 #ifdef __cplusplus 21909 extern "C" 21910 #endif 21911 /* We use char because int might match the return type of a gcc2 21912 builtin and then its argument prototype would still apply. */ 21913 char pcreposix_regcomp (void); 21914 int 21915 main (void) 21916 { 21917 pcreposix_regcomp (); 21918 ; 21919 return 0; 21920 } 21921 _ACEOF 21922 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21923 if { (eval echo "$as_me:21923: \"$ac_link\"") >&5 21924 (eval $ac_link) 2>&5 21925 ac_status=$? 21926 echo "$as_me:21926: \$? = $ac_status" >&5 21927 (exit "$ac_status"); } && 21928 { ac_try='test -s "conftest$ac_exeext"' 21929 { (eval echo "$as_me:21929: \"$ac_try\"") >&5 21930 (eval $ac_try) 2>&5 21931 ac_status=$? 21932 echo "$as_me:21932: \$? = $ac_status" >&5 21933 (exit "$ac_status"); }; }; then 21934 ac_cv_lib_pcreposix_pcreposix_regcomp=yes 21935 else 21936 echo "$as_me: failed program was:" >&5 21937 cat "conftest.$ac_ext" >&5 21938 ac_cv_lib_pcreposix_pcreposix_regcomp=no 21939 fi 21940 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21941 LIBS=$ac_check_lib_save_LIBS 21942 fi 21943 echo "$as_me:21943: result: $ac_cv_lib_pcreposix_pcreposix_regcomp" >&5 21944 echo "${ECHO_T}$ac_cv_lib_pcreposix_pcreposix_regcomp" >&6 21945 if test "$ac_cv_lib_pcreposix_pcreposix_regcomp" = yes; then 21946 21947 cat >>confdefs.h <<\EOF 21948 #define HAVE_PCREPOSIX_H 1 21949 EOF 21950 21951 cf_add_libs="$LIBS" 21952 # reverse order 21953 cf_add_0lib= 21954 for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 21955 # filter duplicates 21956 for cf_add_1lib in $cf_add_0lib; do 21957 for cf_add_2lib in $cf_add_libs; do 21958 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 21959 cf_add_1lib= 21960 break 21961 fi 21962 done 21963 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 21964 done 21965 LIBS="$cf_add_libs" 21966 21967 else 21968 echo "$as_me:21968: checking for regcomp in -lpcreposix" >&5 21969 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6 21970 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then 21971 echo $ECHO_N "(cached) $ECHO_C" >&6 21972 else 21973 ac_check_lib_save_LIBS=$LIBS 21974 LIBS="-lpcreposix $LIBS" 21975 cat >"conftest.$ac_ext" <<_ACEOF 21976 #line 21976 "configure" 21977 #include "confdefs.h" 21978 21979 /* Override any gcc2 internal prototype to avoid an error. */ 21980 #ifdef __cplusplus 21981 extern "C" 21982 #endif 21983 /* We use char because int might match the return type of a gcc2 21984 builtin and then its argument prototype would still apply. */ 21985 char regcomp (void); 21986 int 21987 main (void) 21988 { 21989 regcomp (); 21990 ; 21991 return 0; 21992 } 21993 _ACEOF 21994 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21995 if { (eval echo "$as_me:21995: \"$ac_link\"") >&5 21996 (eval $ac_link) 2>&5 21997 ac_status=$? 21998 echo "$as_me:21998: \$? = $ac_status" >&5 21999 (exit "$ac_status"); } && 22000 { ac_try='test -s "conftest$ac_exeext"' 22001 { (eval echo "$as_me:22001: \"$ac_try\"") >&5 22002 (eval $ac_try) 2>&5 22003 ac_status=$? 22004 echo "$as_me:22004: \$? = $ac_status" >&5 22005 (exit "$ac_status"); }; }; then 22006 ac_cv_lib_pcreposix_regcomp=yes 22007 else 22008 echo "$as_me: failed program was:" >&5 22009 cat "conftest.$ac_ext" >&5 22010 ac_cv_lib_pcreposix_regcomp=no 22011 fi 22012 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22013 LIBS=$ac_check_lib_save_LIBS 22014 fi 22015 echo "$as_me:22015: result: $ac_cv_lib_pcreposix_regcomp" >&5 22016 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6 22017 if test "$ac_cv_lib_pcreposix_regcomp" = yes; then 22018 22019 cat >>confdefs.h <<\EOF 22020 #define HAVE_PCREPOSIX_H 1 22021 EOF 22022 22023 cf_add_libs="$LIBS" 22024 # reverse order 22025 cf_add_0lib= 22026 for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 22027 # filter duplicates 22028 for cf_add_1lib in $cf_add_0lib; do 22029 for cf_add_2lib in $cf_add_libs; do 22030 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 22031 cf_add_1lib= 22032 break 22033 fi 22034 done 22035 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 22036 done 22037 LIBS="$cf_add_libs" 22038 22039 else 22040 { { echo "$as_me:22040: error: Cannot find PCRE POSIX library" >&5 22041 echo "$as_me: error: Cannot find PCRE POSIX library" >&2;} 22042 { (exit 1); exit 1; }; } 22043 fi 22044 22045 fi 22046 22047 ;; 22048 esac 22049 fi 22050 22051 if test "$with_pcre" = no ; then 22052 22053 cf_regex_func=no 22054 cf_regex_libs= 22055 case "$host_os" in 22056 (mingw*) 22057 # -lsystre -ltre -lintl -liconv 22058 echo "$as_me:22058: checking for regcomp in -lsystre" >&5 22059 echo $ECHO_N "checking for regcomp in -lsystre... $ECHO_C" >&6 22060 if test "${ac_cv_lib_systre_regcomp+set}" = set; then 22061 echo $ECHO_N "(cached) $ECHO_C" >&6 22062 else 22063 ac_check_lib_save_LIBS=$LIBS 22064 LIBS="-lsystre $LIBS" 22065 cat >"conftest.$ac_ext" <<_ACEOF 22066 #line 22066 "configure" 22067 #include "confdefs.h" 22068 22069 /* Override any gcc2 internal prototype to avoid an error. */ 22070 #ifdef __cplusplus 22071 extern "C" 22072 #endif 22073 /* We use char because int might match the return type of a gcc2 22074 builtin and then its argument prototype would still apply. */ 22075 char regcomp (void); 22076 int 22077 main (void) 22078 { 22079 regcomp (); 22080 ; 22081 return 0; 22082 } 22083 _ACEOF 22084 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22085 if { (eval echo "$as_me:22085: \"$ac_link\"") >&5 22086 (eval $ac_link) 2>&5 22087 ac_status=$? 22088 echo "$as_me:22088: \$? = $ac_status" >&5 22089 (exit "$ac_status"); } && 22090 { ac_try='test -s "conftest$ac_exeext"' 22091 { (eval echo "$as_me:22091: \"$ac_try\"") >&5 22092 (eval $ac_try) 2>&5 22093 ac_status=$? 22094 echo "$as_me:22094: \$? = $ac_status" >&5 22095 (exit "$ac_status"); }; }; then 22096 ac_cv_lib_systre_regcomp=yes 22097 else 22098 echo "$as_me: failed program was:" >&5 22099 cat "conftest.$ac_ext" >&5 22100 ac_cv_lib_systre_regcomp=no 22101 fi 22102 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22103 LIBS=$ac_check_lib_save_LIBS 22104 fi 22105 echo "$as_me:22105: result: $ac_cv_lib_systre_regcomp" >&5 22106 echo "${ECHO_T}$ac_cv_lib_systre_regcomp" >&6 22107 if test "$ac_cv_lib_systre_regcomp" = yes; then 22108 22109 echo "$as_me:22109: checking for libiconv_open in -liconv" >&5 22110 echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6 22111 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then 22112 echo $ECHO_N "(cached) $ECHO_C" >&6 22113 else 22114 ac_check_lib_save_LIBS=$LIBS 22115 LIBS="-liconv $LIBS" 22116 cat >"conftest.$ac_ext" <<_ACEOF 22117 #line 22117 "configure" 22118 #include "confdefs.h" 22119 22120 /* Override any gcc2 internal prototype to avoid an error. */ 22121 #ifdef __cplusplus 22122 extern "C" 22123 #endif 22124 /* We use char because int might match the return type of a gcc2 22125 builtin and then its argument prototype would still apply. */ 22126 char libiconv_open (void); 22127 int 22128 main (void) 22129 { 22130 libiconv_open (); 22131 ; 22132 return 0; 22133 } 22134 _ACEOF 22135 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22136 if { (eval echo "$as_me:22136: \"$ac_link\"") >&5 22137 (eval $ac_link) 2>&5 22138 ac_status=$? 22139 echo "$as_me:22139: \$? = $ac_status" >&5 22140 (exit "$ac_status"); } && 22141 { ac_try='test -s "conftest$ac_exeext"' 22142 { (eval echo "$as_me:22142: \"$ac_try\"") >&5 22143 (eval $ac_try) 2>&5 22144 ac_status=$? 22145 echo "$as_me:22145: \$? = $ac_status" >&5 22146 (exit "$ac_status"); }; }; then 22147 ac_cv_lib_iconv_libiconv_open=yes 22148 else 22149 echo "$as_me: failed program was:" >&5 22150 cat "conftest.$ac_ext" >&5 22151 ac_cv_lib_iconv_libiconv_open=no 22152 fi 22153 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22154 LIBS=$ac_check_lib_save_LIBS 22155 fi 22156 echo "$as_me:22156: result: $ac_cv_lib_iconv_libiconv_open" >&5 22157 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6 22158 if test "$ac_cv_lib_iconv_libiconv_open" = yes; then 22159 22160 cf_add_libs="$LIBS" 22161 # reverse order 22162 cf_add_0lib= 22163 for cf_add_1lib in -liconv; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 22164 # filter duplicates 22165 for cf_add_1lib in $cf_add_0lib; do 22166 for cf_add_2lib in $cf_add_libs; do 22167 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 22168 cf_add_1lib= 22169 break 22170 fi 22171 done 22172 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 22173 done 22174 LIBS="$cf_add_libs" 22175 22176 fi 22177 22178 echo "$as_me:22178: checking for libintl_gettext in -lintl" >&5 22179 echo $ECHO_N "checking for libintl_gettext in -lintl... $ECHO_C" >&6 22180 if test "${ac_cv_lib_intl_libintl_gettext+set}" = set; then 22181 echo $ECHO_N "(cached) $ECHO_C" >&6 22182 else 22183 ac_check_lib_save_LIBS=$LIBS 22184 LIBS="-lintl $LIBS" 22185 cat >"conftest.$ac_ext" <<_ACEOF 22186 #line 22186 "configure" 22187 #include "confdefs.h" 22188 22189 /* Override any gcc2 internal prototype to avoid an error. */ 22190 #ifdef __cplusplus 22191 extern "C" 22192 #endif 22193 /* We use char because int might match the return type of a gcc2 22194 builtin and then its argument prototype would still apply. */ 22195 char libintl_gettext (void); 22196 int 22197 main (void) 22198 { 22199 libintl_gettext (); 22200 ; 22201 return 0; 22202 } 22203 _ACEOF 22204 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22205 if { (eval echo "$as_me:22205: \"$ac_link\"") >&5 22206 (eval $ac_link) 2>&5 22207 ac_status=$? 22208 echo "$as_me:22208: \$? = $ac_status" >&5 22209 (exit "$ac_status"); } && 22210 { ac_try='test -s "conftest$ac_exeext"' 22211 { (eval echo "$as_me:22211: \"$ac_try\"") >&5 22212 (eval $ac_try) 2>&5 22213 ac_status=$? 22214 echo "$as_me:22214: \$? = $ac_status" >&5 22215 (exit "$ac_status"); }; }; then 22216 ac_cv_lib_intl_libintl_gettext=yes 22217 else 22218 echo "$as_me: failed program was:" >&5 22219 cat "conftest.$ac_ext" >&5 22220 ac_cv_lib_intl_libintl_gettext=no 22221 fi 22222 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22223 LIBS=$ac_check_lib_save_LIBS 22224 fi 22225 echo "$as_me:22225: result: $ac_cv_lib_intl_libintl_gettext" >&5 22226 echo "${ECHO_T}$ac_cv_lib_intl_libintl_gettext" >&6 22227 if test "$ac_cv_lib_intl_libintl_gettext" = yes; then 22228 22229 cf_add_libs="$LIBS" 22230 # reverse order 22231 cf_add_0lib= 22232 for cf_add_1lib in -lintl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 22233 # filter duplicates 22234 for cf_add_1lib in $cf_add_0lib; do 22235 for cf_add_2lib in $cf_add_libs; do 22236 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 22237 cf_add_1lib= 22238 break 22239 fi 22240 done 22241 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 22242 done 22243 LIBS="$cf_add_libs" 22244 22245 fi 22246 22247 echo "$as_me:22247: checking for tre_regcomp in -ltre" >&5 22248 echo $ECHO_N "checking for tre_regcomp in -ltre... $ECHO_C" >&6 22249 if test "${ac_cv_lib_tre_tre_regcomp+set}" = set; then 22250 echo $ECHO_N "(cached) $ECHO_C" >&6 22251 else 22252 ac_check_lib_save_LIBS=$LIBS 22253 LIBS="-ltre $LIBS" 22254 cat >"conftest.$ac_ext" <<_ACEOF 22255 #line 22255 "configure" 22256 #include "confdefs.h" 22257 22258 /* Override any gcc2 internal prototype to avoid an error. */ 22259 #ifdef __cplusplus 22260 extern "C" 22261 #endif 22262 /* We use char because int might match the return type of a gcc2 22263 builtin and then its argument prototype would still apply. */ 22264 char tre_regcomp (void); 22265 int 22266 main (void) 22267 { 22268 tre_regcomp (); 22269 ; 22270 return 0; 22271 } 22272 _ACEOF 22273 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22274 if { (eval echo "$as_me:22274: \"$ac_link\"") >&5 22275 (eval $ac_link) 2>&5 22276 ac_status=$? 22277 echo "$as_me:22277: \$? = $ac_status" >&5 22278 (exit "$ac_status"); } && 22279 { ac_try='test -s "conftest$ac_exeext"' 22280 { (eval echo "$as_me:22280: \"$ac_try\"") >&5 22281 (eval $ac_try) 2>&5 22282 ac_status=$? 22283 echo "$as_me:22283: \$? = $ac_status" >&5 22284 (exit "$ac_status"); }; }; then 22285 ac_cv_lib_tre_tre_regcomp=yes 22286 else 22287 echo "$as_me: failed program was:" >&5 22288 cat "conftest.$ac_ext" >&5 22289 ac_cv_lib_tre_tre_regcomp=no 22290 fi 22291 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22292 LIBS=$ac_check_lib_save_LIBS 22293 fi 22294 echo "$as_me:22294: result: $ac_cv_lib_tre_tre_regcomp" >&5 22295 echo "${ECHO_T}$ac_cv_lib_tre_tre_regcomp" >&6 22296 if test "$ac_cv_lib_tre_tre_regcomp" = yes; then 22297 22298 cf_add_libs="$LIBS" 22299 # reverse order 22300 cf_add_0lib= 22301 for cf_add_1lib in -ltre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 22302 # filter duplicates 22303 for cf_add_1lib in $cf_add_0lib; do 22304 for cf_add_2lib in $cf_add_libs; do 22305 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 22306 cf_add_1lib= 22307 break 22308 fi 22309 done 22310 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 22311 done 22312 LIBS="$cf_add_libs" 22313 22314 fi 22315 22316 cf_add_libs="$LIBS" 22317 # reverse order 22318 cf_add_0lib= 22319 for cf_add_1lib in -lsystre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 22320 # filter duplicates 22321 for cf_add_1lib in $cf_add_0lib; do 22322 for cf_add_2lib in $cf_add_libs; do 22323 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 22324 cf_add_1lib= 22325 break 22326 fi 22327 done 22328 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 22329 done 22330 LIBS="$cf_add_libs" 22331 22332 cf_regex_func=regcomp 22333 22334 else 22335 22336 echo "$as_me:22336: checking for regcomp in -lgnurx" >&5 22337 echo $ECHO_N "checking for regcomp in -lgnurx... $ECHO_C" >&6 22338 if test "${ac_cv_lib_gnurx_regcomp+set}" = set; then 22339 echo $ECHO_N "(cached) $ECHO_C" >&6 22340 else 22341 ac_check_lib_save_LIBS=$LIBS 22342 LIBS="-lgnurx $LIBS" 22343 cat >"conftest.$ac_ext" <<_ACEOF 22344 #line 22344 "configure" 22345 #include "confdefs.h" 22346 22347 /* Override any gcc2 internal prototype to avoid an error. */ 22348 #ifdef __cplusplus 22349 extern "C" 22350 #endif 22351 /* We use char because int might match the return type of a gcc2 22352 builtin and then its argument prototype would still apply. */ 22353 char regcomp (void); 22354 int 22355 main (void) 22356 { 22357 regcomp (); 22358 ; 22359 return 0; 22360 } 22361 _ACEOF 22362 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22363 if { (eval echo "$as_me:22363: \"$ac_link\"") >&5 22364 (eval $ac_link) 2>&5 22365 ac_status=$? 22366 echo "$as_me:22366: \$? = $ac_status" >&5 22367 (exit "$ac_status"); } && 22368 { ac_try='test -s "conftest$ac_exeext"' 22369 { (eval echo "$as_me:22369: \"$ac_try\"") >&5 22370 (eval $ac_try) 2>&5 22371 ac_status=$? 22372 echo "$as_me:22372: \$? = $ac_status" >&5 22373 (exit "$ac_status"); }; }; then 22374 ac_cv_lib_gnurx_regcomp=yes 22375 else 22376 echo "$as_me: failed program was:" >&5 22377 cat "conftest.$ac_ext" >&5 22378 ac_cv_lib_gnurx_regcomp=no 22379 fi 22380 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22381 LIBS=$ac_check_lib_save_LIBS 22382 fi 22383 echo "$as_me:22383: result: $ac_cv_lib_gnurx_regcomp" >&5 22384 echo "${ECHO_T}$ac_cv_lib_gnurx_regcomp" >&6 22385 if test "$ac_cv_lib_gnurx_regcomp" = yes; then 22386 22387 cf_add_libs="$LIBS" 22388 # reverse order 22389 cf_add_0lib= 22390 for cf_add_1lib in -lgnurx; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 22391 # filter duplicates 22392 for cf_add_1lib in $cf_add_0lib; do 22393 for cf_add_2lib in $cf_add_libs; do 22394 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 22395 cf_add_1lib= 22396 break 22397 fi 22398 done 22399 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 22400 done 22401 LIBS="$cf_add_libs" 22402 22403 cf_regex_func=regcomp 22404 fi 22405 22406 fi 22407 22408 ;; 22409 (*) 22410 cf_regex_libs="regex re" 22411 echo "$as_me:22411: checking for regcomp" >&5 22412 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6 22413 if test "${ac_cv_func_regcomp+set}" = set; then 22414 echo $ECHO_N "(cached) $ECHO_C" >&6 22415 else 22416 cat >"conftest.$ac_ext" <<_ACEOF 22417 #line 22417 "configure" 22418 #include "confdefs.h" 22419 #define regcomp autoconf_temporary 22420 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 22421 #undef regcomp 22422 22423 #ifdef __cplusplus 22424 extern "C" 22425 #endif 22426 22427 /* We use char because int might match the return type of a gcc2 22428 builtin and then its argument prototype would still apply. */ 22429 char regcomp (void); 22430 22431 int 22432 main (void) 22433 { 22434 22435 /* The GNU C library defines stubs for functions which it implements 22436 to always fail with ENOSYS. Some functions are actually named 22437 something starting with __ and the normal name is an alias. */ 22438 #if defined (__stub_regcomp) || defined (__stub___regcomp) 22439 #error found stub for regcomp 22440 #endif 22441 22442 return regcomp (); 22443 ; 22444 return 0; 22445 } 22446 _ACEOF 22447 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22448 if { (eval echo "$as_me:22448: \"$ac_link\"") >&5 22449 (eval $ac_link) 2>&5 22450 ac_status=$? 22451 echo "$as_me:22451: \$? = $ac_status" >&5 22452 (exit "$ac_status"); } && 22453 { ac_try='test -s "conftest$ac_exeext"' 22454 { (eval echo "$as_me:22454: \"$ac_try\"") >&5 22455 (eval $ac_try) 2>&5 22456 ac_status=$? 22457 echo "$as_me:22457: \$? = $ac_status" >&5 22458 (exit "$ac_status"); }; }; then 22459 ac_cv_func_regcomp=yes 22460 else 22461 echo "$as_me: failed program was:" >&5 22462 cat "conftest.$ac_ext" >&5 22463 ac_cv_func_regcomp=no 22464 fi 22465 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22466 fi 22467 echo "$as_me:22467: result: $ac_cv_func_regcomp" >&5 22468 echo "${ECHO_T}$ac_cv_func_regcomp" >&6 22469 if test "$ac_cv_func_regcomp" = yes; then 22470 cf_regex_func=regcomp 22471 else 22472 22473 for cf_regex_lib in $cf_regex_libs 22474 do 22475 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh` 22476 echo "$as_me:22476: checking for regcomp in -l$cf_regex_lib" >&5 22477 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6 22478 if eval "test \"\${$as_ac_Lib+set}\" = set"; then 22479 echo $ECHO_N "(cached) $ECHO_C" >&6 22480 else 22481 ac_check_lib_save_LIBS=$LIBS 22482 LIBS="-l$cf_regex_lib $LIBS" 22483 cat >"conftest.$ac_ext" <<_ACEOF 22484 #line 22484 "configure" 22485 #include "confdefs.h" 22486 22487 /* Override any gcc2 internal prototype to avoid an error. */ 22488 #ifdef __cplusplus 22489 extern "C" 22490 #endif 22491 /* We use char because int might match the return type of a gcc2 22492 builtin and then its argument prototype would still apply. */ 22493 char regcomp (void); 22494 int 22495 main (void) 22496 { 22497 regcomp (); 22498 ; 22499 return 0; 22500 } 22501 _ACEOF 22502 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22503 if { (eval echo "$as_me:22503: \"$ac_link\"") >&5 22504 (eval $ac_link) 2>&5 22505 ac_status=$? 22506 echo "$as_me:22506: \$? = $ac_status" >&5 22507 (exit "$ac_status"); } && 22508 { ac_try='test -s "conftest$ac_exeext"' 22509 { (eval echo "$as_me:22509: \"$ac_try\"") >&5 22510 (eval $ac_try) 2>&5 22511 ac_status=$? 22512 echo "$as_me:22512: \$? = $ac_status" >&5 22513 (exit "$ac_status"); }; }; then 22514 eval "$as_ac_Lib=yes" 22515 else 22516 echo "$as_me: failed program was:" >&5 22517 cat "conftest.$ac_ext" >&5 22518 eval "$as_ac_Lib=no" 22519 fi 22520 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22521 LIBS=$ac_check_lib_save_LIBS 22522 fi 22523 echo "$as_me:22523: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5 22524 echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6 22525 if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then 22526 22527 cf_add_libs="$LIBS" 22528 # reverse order 22529 cf_add_0lib= 22530 for cf_add_1lib in -l$cf_regex_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 22531 # filter duplicates 22532 for cf_add_1lib in $cf_add_0lib; do 22533 for cf_add_2lib in $cf_add_libs; do 22534 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 22535 cf_add_1lib= 22536 break 22537 fi 22538 done 22539 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 22540 done 22541 LIBS="$cf_add_libs" 22542 22543 cf_regex_func=regcomp 22544 break 22545 fi 22546 22547 done 22548 22549 fi 22550 22551 ;; 22552 esac 22553 22554 if test "$cf_regex_func" = no ; then 22555 echo "$as_me:22555: checking for compile" >&5 22556 echo $ECHO_N "checking for compile... $ECHO_C" >&6 22557 if test "${ac_cv_func_compile+set}" = set; then 22558 echo $ECHO_N "(cached) $ECHO_C" >&6 22559 else 22560 cat >"conftest.$ac_ext" <<_ACEOF 22561 #line 22561 "configure" 22562 #include "confdefs.h" 22563 #define compile autoconf_temporary 22564 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 22565 #undef compile 22566 22567 #ifdef __cplusplus 22568 extern "C" 22569 #endif 22570 22571 /* We use char because int might match the return type of a gcc2 22572 builtin and then its argument prototype would still apply. */ 22573 char compile (void); 22574 22575 int 22576 main (void) 22577 { 22578 22579 /* The GNU C library defines stubs for functions which it implements 22580 to always fail with ENOSYS. Some functions are actually named 22581 something starting with __ and the normal name is an alias. */ 22582 #if defined (__stub_compile) || defined (__stub___compile) 22583 #error found stub for compile 22584 #endif 22585 22586 return compile (); 22587 ; 22588 return 0; 22589 } 22590 _ACEOF 22591 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22592 if { (eval echo "$as_me:22592: \"$ac_link\"") >&5 22593 (eval $ac_link) 2>&5 22594 ac_status=$? 22595 echo "$as_me:22595: \$? = $ac_status" >&5 22596 (exit "$ac_status"); } && 22597 { ac_try='test -s "conftest$ac_exeext"' 22598 { (eval echo "$as_me:22598: \"$ac_try\"") >&5 22599 (eval $ac_try) 2>&5 22600 ac_status=$? 22601 echo "$as_me:22601: \$? = $ac_status" >&5 22602 (exit "$ac_status"); }; }; then 22603 ac_cv_func_compile=yes 22604 else 22605 echo "$as_me: failed program was:" >&5 22606 cat "conftest.$ac_ext" >&5 22607 ac_cv_func_compile=no 22608 fi 22609 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22610 fi 22611 echo "$as_me:22611: result: $ac_cv_func_compile" >&5 22612 echo "${ECHO_T}$ac_cv_func_compile" >&6 22613 if test "$ac_cv_func_compile" = yes; then 22614 cf_regex_func=compile 22615 else 22616 22617 echo "$as_me:22617: checking for compile in -lgen" >&5 22618 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6 22619 if test "${ac_cv_lib_gen_compile+set}" = set; then 22620 echo $ECHO_N "(cached) $ECHO_C" >&6 22621 else 22622 ac_check_lib_save_LIBS=$LIBS 22623 LIBS="-lgen $LIBS" 22624 cat >"conftest.$ac_ext" <<_ACEOF 22625 #line 22625 "configure" 22626 #include "confdefs.h" 22627 22628 /* Override any gcc2 internal prototype to avoid an error. */ 22629 #ifdef __cplusplus 22630 extern "C" 22631 #endif 22632 /* We use char because int might match the return type of a gcc2 22633 builtin and then its argument prototype would still apply. */ 22634 char compile (void); 22635 int 22636 main (void) 22637 { 22638 compile (); 22639 ; 22640 return 0; 22641 } 22642 _ACEOF 22643 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22644 if { (eval echo "$as_me:22644: \"$ac_link\"") >&5 22645 (eval $ac_link) 2>&5 22646 ac_status=$? 22647 echo "$as_me:22647: \$? = $ac_status" >&5 22648 (exit "$ac_status"); } && 22649 { ac_try='test -s "conftest$ac_exeext"' 22650 { (eval echo "$as_me:22650: \"$ac_try\"") >&5 22651 (eval $ac_try) 2>&5 22652 ac_status=$? 22653 echo "$as_me:22653: \$? = $ac_status" >&5 22654 (exit "$ac_status"); }; }; then 22655 ac_cv_lib_gen_compile=yes 22656 else 22657 echo "$as_me: failed program was:" >&5 22658 cat "conftest.$ac_ext" >&5 22659 ac_cv_lib_gen_compile=no 22660 fi 22661 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22662 LIBS=$ac_check_lib_save_LIBS 22663 fi 22664 echo "$as_me:22664: result: $ac_cv_lib_gen_compile" >&5 22665 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6 22666 if test "$ac_cv_lib_gen_compile" = yes; then 22667 22668 cf_add_libs="$LIBS" 22669 # reverse order 22670 cf_add_0lib= 22671 for cf_add_1lib in -lgen; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 22672 # filter duplicates 22673 for cf_add_1lib in $cf_add_0lib; do 22674 for cf_add_2lib in $cf_add_libs; do 22675 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 22676 cf_add_1lib= 22677 break 22678 fi 22679 done 22680 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 22681 done 22682 LIBS="$cf_add_libs" 22683 22684 cf_regex_func=compile 22685 fi 22686 22687 fi 22688 22689 fi 22690 22691 if test "$cf_regex_func" = no ; then 22692 { echo "$as_me:22692: WARNING: cannot find regular expression library" >&5 22693 echo "$as_me: WARNING: cannot find regular expression library" >&2;} 22694 fi 22695 22696 echo "$as_me:22696: checking for regular-expression headers" >&5 22697 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6 22698 if test "${cf_cv_regex_hdrs+set}" = set; then 22699 echo $ECHO_N "(cached) $ECHO_C" >&6 22700 else 22701 22702 cf_cv_regex_hdrs=no 22703 case "$cf_regex_func" in 22704 (compile) 22705 for cf_regex_hdr in regexp.h regexpr.h 22706 do 22707 cat >"conftest.$ac_ext" <<_ACEOF 22708 #line 22708 "configure" 22709 #include "confdefs.h" 22710 #include <$cf_regex_hdr> 22711 int 22712 main (void) 22713 { 22714 22715 char *p = compile("", "", "", 0); 22716 int x = step("", ""); 22717 (void)p; 22718 (void)x; 22719 22720 ; 22721 return 0; 22722 } 22723 _ACEOF 22724 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22725 if { (eval echo "$as_me:22725: \"$ac_link\"") >&5 22726 (eval $ac_link) 2>&5 22727 ac_status=$? 22728 echo "$as_me:22728: \$? = $ac_status" >&5 22729 (exit "$ac_status"); } && 22730 { ac_try='test -s "conftest$ac_exeext"' 22731 { (eval echo "$as_me:22731: \"$ac_try\"") >&5 22732 (eval $ac_try) 2>&5 22733 ac_status=$? 22734 echo "$as_me:22734: \$? = $ac_status" >&5 22735 (exit "$ac_status"); }; }; then 22736 22737 cf_cv_regex_hdrs=$cf_regex_hdr 22738 break 22739 22740 else 22741 echo "$as_me: failed program was:" >&5 22742 cat "conftest.$ac_ext" >&5 22743 fi 22744 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22745 done 22746 ;; 22747 (*) 22748 for cf_regex_hdr in regex.h 22749 do 22750 cat >"conftest.$ac_ext" <<_ACEOF 22751 #line 22751 "configure" 22752 #include "confdefs.h" 22753 #include <sys/types.h> 22754 #include <stdio.h> 22755 #include <$cf_regex_hdr> 22756 int 22757 main (void) 22758 { 22759 22760 regex_t *p = NULL; 22761 int x = regcomp(p, "", 0); 22762 int y = regexec(p, "", 0, 0, 0); 22763 (void)x; 22764 (void)y; 22765 regfree(p); 22766 22767 ; 22768 return 0; 22769 } 22770 _ACEOF 22771 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22772 if { (eval echo "$as_me:22772: \"$ac_link\"") >&5 22773 (eval $ac_link) 2>&5 22774 ac_status=$? 22775 echo "$as_me:22775: \$? = $ac_status" >&5 22776 (exit "$ac_status"); } && 22777 { ac_try='test -s "conftest$ac_exeext"' 22778 { (eval echo "$as_me:22778: \"$ac_try\"") >&5 22779 (eval $ac_try) 2>&5 22780 ac_status=$? 22781 echo "$as_me:22781: \$? = $ac_status" >&5 22782 (exit "$ac_status"); }; }; then 22783 22784 cf_cv_regex_hdrs=$cf_regex_hdr 22785 break 22786 22787 else 22788 echo "$as_me: failed program was:" >&5 22789 cat "conftest.$ac_ext" >&5 22790 fi 22791 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22792 done 22793 ;; 22794 esac 22795 22796 fi 22797 echo "$as_me:22797: result: $cf_cv_regex_hdrs" >&5 22798 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6 22799 22800 case "$cf_cv_regex_hdrs" in 22801 (no) { echo "$as_me:22801: WARNING: no regular expression header found" >&5 22802 echo "$as_me: WARNING: no regular expression header found" >&2;} ;; 22803 (regex.h) 22804 cat >>confdefs.h <<\EOF 22805 #define HAVE_REGEX_H_FUNCS 1 22806 EOF 22807 ;; 22808 (regexp.h) 22809 cat >>confdefs.h <<\EOF 22810 #define HAVE_REGEXP_H_FUNCS 1 22811 EOF 22812 ;; 22813 (regexpr.h) 22814 cat >>confdefs.h <<\EOF 22815 #define HAVE_REGEXPR_H_FUNCS 1 22816 EOF 22817 ;; 22818 esac 22819 22820 if test "X$cf_cv_regex_hdrs" != "Xregex.h" ; then 22821 { { echo "$as_me:22821: error: Only POSIX, PCRE, or PCRE2 regular expressions are supported" >&5 22822 echo "$as_me: error: Only POSIX, PCRE, or PCRE2 regular expressions are supported" >&2;} 22823 { (exit 1); exit 1; }; } 22824 fi 22825 fi 22826 fi 22827 22828 cat >>confdefs.h <<\EOF 22829 #define OPT_SELECT_REGEX 1 22830 EOF 22831 22832 fi 22833 22834 echo "$as_me:22834: checking if you want support for right-scrollbar" >&5 22835 echo $ECHO_N "checking if you want support for right-scrollbar... $ECHO_C" >&6 22836 22837 # Check whether --enable-rightbar or --disable-rightbar was given. 22838 if test "${enable_rightbar+set}" = set; then 22839 enableval="$enable_rightbar" 22840 test "$enableval" != no && enableval=yes 22841 if test "$enableval" != "yes" ; then 22842 enable_rightbar=no 22843 else 22844 enable_rightbar=yes 22845 fi 22846 else 22847 enableval=yes 22848 enable_rightbar=yes 22849 22850 fi; 22851 echo "$as_me:22851: result: $enable_rightbar" >&5 22852 echo "${ECHO_T}$enable_rightbar" >&6 22853 if test "$enable_rightbar" = yes ; then 22854 22855 cat >>confdefs.h <<\EOF 22856 #define SCROLLBAR_RIGHT 1 22857 EOF 22858 22859 fi 22860 22861 echo "$as_me:22861: checking if you want check for redundant name-change" >&5 22862 echo $ECHO_N "checking if you want check for redundant name-change... $ECHO_C" >&6 22863 22864 # Check whether --enable-samename or --disable-samename was given. 22865 if test "${enable_samename+set}" = set; then 22866 enableval="$enable_samename" 22867 test "$enableval" != no && enableval=yes 22868 if test "$enableval" != "yes" ; then 22869 enable_samename=no 22870 else 22871 enable_samename=yes 22872 fi 22873 else 22874 enableval=yes 22875 enable_samename=yes 22876 22877 fi; 22878 echo "$as_me:22878: result: $enable_samename" >&5 22879 echo "${ECHO_T}$enable_samename" >&6 22880 test "$enable_samename" = no && 22881 cat >>confdefs.h <<\EOF 22882 #define OPT_SAME_NAME 0 22883 EOF 22884 22885 echo "$as_me:22885: checking if you want support for selection-actions" >&5 22886 echo $ECHO_N "checking if you want support for selection-actions... $ECHO_C" >&6 22887 22888 # Check whether --enable-selection-ops or --disable-selection-ops was given. 22889 if test "${enable_selection_ops+set}" = set; then 22890 enableval="$enable_selection_ops" 22891 test "$enableval" != no && enableval=yes 22892 if test "$enableval" != "yes" ; then 22893 enable_selection_ops=no 22894 else 22895 enable_selection_ops=yes 22896 fi 22897 else 22898 enableval=yes 22899 enable_selection_ops=yes 22900 22901 fi; 22902 echo "$as_me:22902: result: $enable_selection_ops" >&5 22903 echo "${ECHO_T}$enable_selection_ops" >&6 22904 test "$enable_selection_ops" = no && 22905 cat >>confdefs.h <<\EOF 22906 #define OPT_SELECTION_OPS 0 22907 EOF 22908 22909 echo "$as_me:22909: checking if you want support for session management" >&5 22910 echo $ECHO_N "checking if you want support for session management... $ECHO_C" >&6 22911 22912 # Check whether --enable-session-mgt or --disable-session-mgt was given. 22913 if test "${enable_session_mgt+set}" = set; then 22914 enableval="$enable_session_mgt" 22915 test "$enableval" != no && enableval=yes 22916 if test "$enableval" != "yes" ; then 22917 enable_session_mgt=no 22918 else 22919 enable_session_mgt=yes 22920 fi 22921 else 22922 enableval=yes 22923 enable_session_mgt=yes 22924 22925 fi; 22926 echo "$as_me:22926: result: $enable_session_mgt" >&5 22927 echo "${ECHO_T}$enable_session_mgt" >&6 22928 test "$enable_session_mgt" = no && 22929 cat >>confdefs.h <<\EOF 22930 #define OPT_SESSION_MGT 0 22931 EOF 22932 22933 echo "$as_me:22933: checking if you want support for status-line" >&5 22934 echo $ECHO_N "checking if you want support for status-line... $ECHO_C" >&6 22935 22936 # Check whether --enable-status-line or --disable-status-line was given. 22937 if test "${enable_status_line+set}" = set; then 22938 enableval="$enable_status_line" 22939 test "$enableval" != yes && enableval=no 22940 if test "$enableval" != "no" ; then 22941 enable_status_line=yes 22942 else 22943 enable_status_line=no 22944 fi 22945 else 22946 enableval=no 22947 enable_status_line=no 22948 22949 fi; 22950 echo "$as_me:22950: result: $enable_status_line" >&5 22951 echo "${ECHO_T}$enable_status_line" >&6 22952 test "$enable_status_line" = yes && 22953 cat >>confdefs.h <<\EOF 22954 #define OPT_STATUS_LINE 1 22955 EOF 22956 22957 echo "$as_me:22957: checking if you want to use termcap function-keys" >&5 22958 echo $ECHO_N "checking if you want to use termcap function-keys... $ECHO_C" >&6 22959 22960 # Check whether --enable-tcap-fkeys or --disable-tcap-fkeys was given. 22961 if test "${enable_tcap_fkeys+set}" = set; then 22962 enableval="$enable_tcap_fkeys" 22963 test "$enableval" != no && enableval=yes 22964 if test "$enableval" != "yes" ; then 22965 enable_tcap_fkeys=no 22966 else 22967 enable_tcap_fkeys=yes 22968 fi 22969 else 22970 enableval=yes 22971 enable_tcap_fkeys=yes 22972 22973 fi; 22974 echo "$as_me:22974: result: $enable_tcap_fkeys" >&5 22975 echo "${ECHO_T}$enable_tcap_fkeys" >&6 22976 test "$enable_tcap_fkeys" = no && 22977 cat >>confdefs.h <<\EOF 22978 #define OPT_TCAP_FKEYS 0 22979 EOF 22980 22981 echo "$as_me:22981: checking if you want to use termcap-query/report" >&5 22982 echo $ECHO_N "checking if you want to use termcap-query/report... $ECHO_C" >&6 22983 22984 # Check whether --enable-tcap-query or --disable-tcap-query was given. 22985 if test "${enable_tcap_query+set}" = set; then 22986 enableval="$enable_tcap_query" 22987 test "$enableval" != no && enableval=yes 22988 if test "$enableval" != "yes" ; then 22989 enable_tcap_query=no 22990 else 22991 enable_tcap_query=yes 22992 fi 22993 else 22994 enableval=yes 22995 enable_tcap_query=yes 22996 22997 fi; 22998 echo "$as_me:22998: result: $enable_tcap_query" >&5 22999 echo "${ECHO_T}$enable_tcap_query" >&6 23000 test "$enable_tcap_query" = no && 23001 cat >>confdefs.h <<\EOF 23002 #define OPT_TCAP_QUERY 0 23003 EOF 23004 23005 echo "$as_me:23005: checking if you want support for tek4014" >&5 23006 echo $ECHO_N "checking if you want support for tek4014... $ECHO_C" >&6 23007 23008 # Check whether --enable-tek4014 or --disable-tek4014 was given. 23009 if test "${enable_tek4014+set}" = set; then 23010 enableval="$enable_tek4014" 23011 test "$enableval" != no && enableval=yes 23012 if test "$enableval" != "yes" ; then 23013 enable_tek4014=no 23014 else 23015 enable_tek4014=yes 23016 fi 23017 else 23018 enableval=yes 23019 enable_tek4014=yes 23020 23021 fi; 23022 echo "$as_me:23022: result: $enable_tek4014" >&5 23023 echo "${ECHO_T}$enable_tek4014" >&6 23024 if test "$enable_tek4014" = no ; then 23025 23026 cat >>confdefs.h <<\EOF 23027 #define OPT_TEK4014 0 23028 EOF 23029 23030 else 23031 EXTRAHDRS="$EXTRAHDRS Tekparse.h" 23032 EXTRASRCS="$EXTRASRCS TekPrsTbl.c Tekproc.c" 23033 EXTRAOBJS="$EXTRAOBJS TekPrsTbl.o Tekproc.o" 23034 fi 23035 23036 echo "$as_me:23036: checking if you want pulldown menus with a toolbar" >&5 23037 echo $ECHO_N "checking if you want pulldown menus with a toolbar... $ECHO_C" >&6 23038 23039 # Check whether --enable-toolbar or --disable-toolbar was given. 23040 if test "${enable_toolbar+set}" = set; then 23041 enableval="$enable_toolbar" 23042 test "$enableval" != yes && enableval=no 23043 if test "$enableval" != "no" ; then 23044 enable_toolbar=yes 23045 else 23046 enable_toolbar=no 23047 fi 23048 else 23049 enableval=no 23050 enable_toolbar=no 23051 23052 fi; 23053 echo "$as_me:23053: result: $enable_toolbar" >&5 23054 echo "${ECHO_T}$enable_toolbar" >&6 23055 if test "$enable_toolbar" = yes ; then 23056 23057 cat >>confdefs.h <<\EOF 23058 #define OPT_TOOLBAR 1 23059 EOF 23060 23061 fi 23062 23063 echo "$as_me:23063: checking if you want VT52 emulation" >&5 23064 echo $ECHO_N "checking if you want VT52 emulation... $ECHO_C" >&6 23065 23066 # Check whether --enable-vt52 or --disable-vt52 was given. 23067 if test "${enable_vt52+set}" = set; then 23068 enableval="$enable_vt52" 23069 test "$enableval" != no && enableval=yes 23070 if test "$enableval" != "yes" ; then 23071 enable_vt52=no 23072 else 23073 enable_vt52=yes 23074 fi 23075 else 23076 enableval=yes 23077 enable_vt52=yes 23078 23079 fi; 23080 echo "$as_me:23080: result: $enable_vt52" >&5 23081 echo "${ECHO_T}$enable_vt52" >&6 23082 test "$enable_vt52" = no && 23083 cat >>confdefs.h <<\EOF 23084 #define OPT_VT52_MODE 0 23085 EOF 23086 23087 echo "$as_me:23087: checking if you want wide-attribute support" >&5 23088 echo $ECHO_N "checking if you want wide-attribute support... $ECHO_C" >&6 23089 23090 # Check whether --enable-wide-attrs or --disable-wide-attrs was given. 23091 if test "${enable_wide_attrs+set}" = set; then 23092 enableval="$enable_wide_attrs" 23093 test "$enableval" != no && enableval=yes 23094 if test "$enableval" != "yes" ; then 23095 enable_wattr=no 23096 else 23097 enable_wattr=yes 23098 fi 23099 else 23100 enableval=yes 23101 enable_wattr=yes 23102 23103 fi; 23104 echo "$as_me:23104: result: $enable_wattr" >&5 23105 echo "${ECHO_T}$enable_wattr" >&6 23106 23107 if test x$enable_wattr = xno && test x$enable_direct_color = xyes ; then 23108 { echo "$as_me:23108: WARNING: overriding wide-attributes to support direct color" >&5 23109 echo "$as_me: WARNING: overriding wide-attributes to support direct color" >&2;} 23110 enable_wattr=yes 23111 fi 23112 23113 echo "$as_me:23113: checking if you want wide-character support" >&5 23114 echo $ECHO_N "checking if you want wide-character support... $ECHO_C" >&6 23115 23116 # Check whether --enable-wide-chars or --disable-wide-chars was given. 23117 if test "${enable_wide_chars+set}" = set; then 23118 enableval="$enable_wide_chars" 23119 test "$enableval" != no && enableval=yes 23120 if test "$enableval" != "yes" ; then 23121 enable_wchar=no 23122 else 23123 enable_wchar=yes 23124 fi 23125 else 23126 enableval=yes 23127 enable_wchar=yes 23128 23129 fi; 23130 echo "$as_me:23130: result: $enable_wchar" >&5 23131 echo "${ECHO_T}$enable_wchar" >&6 23132 test "x$enable_wattr" = xno && 23133 cat >>confdefs.h <<\EOF 23134 #define OPT_WIDE_ATTRS 0 23135 EOF 23136 23137 echo "$as_me:23137: checking if you want only 16-bit character support" >&5 23138 echo $ECHO_N "checking if you want only 16-bit character support... $ECHO_C" >&6 23139 23140 # Check whether --enable-16bit-chars or --disable-16bit-chars was given. 23141 if test "${enable_16bit_chars+set}" = set; then 23142 enableval="$enable_16bit_chars" 23143 test "$enableval" != yes && enableval=no 23144 if test "$enableval" != "no" ; then 23145 enable_16bit_chars=yes 23146 else 23147 enable_16bit_chars=no 23148 fi 23149 else 23150 enableval=no 23151 enable_16bit_chars=no 23152 23153 fi; 23154 echo "$as_me:23154: result: $enable_16bit_chars" >&5 23155 echo "${ECHO_T}$enable_16bit_chars" >&6 23156 23157 if test "$enable_16bit_chars" = yes ; then 23158 23159 cat >>confdefs.h <<\EOF 23160 #define OPT_WIDER_ICHAR 0 23161 EOF 23162 23163 enable_wchar=yes 23164 fi 23165 23166 if test "$enable_wchar" = yes ; then 23167 23168 echo "$as_me:23168: checking if you want to use mini-luit/Latin9 built-in support" >&5 23169 echo $ECHO_N "checking if you want to use mini-luit/Latin9 built-in support... $ECHO_C" >&6 23170 23171 # Check whether --enable-mini-luit or --disable-mini-luit was given. 23172 if test "${enable_mini_luit+set}" = set; then 23173 enableval="$enable_mini_luit" 23174 test "$enableval" != yes && enableval=no 23175 if test "$enableval" != "no" ; then 23176 enable_mini_luit=yes 23177 else 23178 enable_mini_luit=no 23179 fi 23180 else 23181 enableval=no 23182 enable_mini_luit=no 23183 23184 fi; 23185 echo "$as_me:23185: result: $enable_mini_luit" >&5 23186 echo "${ECHO_T}$enable_mini_luit" >&6 23187 if test "$enable_mini_luit" = yes ; then 23188 23189 cat >>confdefs.h <<\EOF 23190 #define OPT_MINI_LUIT 1 23191 EOF 23192 23193 fi 23194 23195 echo "$as_me:23195: checking if you want to use luit" >&5 23196 echo $ECHO_N "checking if you want to use luit... $ECHO_C" >&6 23197 23198 # Check whether --enable-luit or --disable-luit was given. 23199 if test "${enable_luit+set}" = set; then 23200 enableval="$enable_luit" 23201 test "$enableval" != no && enableval=yes 23202 if test "$enableval" != "yes" ; then 23203 enable_luit=no 23204 else 23205 enable_luit=yes 23206 fi 23207 else 23208 enableval=yes 23209 enable_luit=yes 23210 23211 fi; 23212 echo "$as_me:23212: result: $enable_luit" >&5 23213 echo "${ECHO_T}$enable_luit" >&6 23214 if test "$enable_luit" = yes ; then 23215 23216 cat >>confdefs.h <<\EOF 23217 #define OPT_LUIT_PROG 1 23218 EOF 23219 23220 test -z "$LUIT" && LUIT="xterm-filter" 23221 for ac_prog in $LUIT xterm-filter bluit luit 23222 do 23223 # Extract the first word of "$ac_prog", so it can be a program name with args. 23224 set dummy $ac_prog; ac_word=$2 23225 echo "$as_me:23225: checking for $ac_word" >&5 23226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 23227 if test "${ac_cv_path_LUIT+set}" = set; then 23228 echo $ECHO_N "(cached) $ECHO_C" >&6 23229 else 23230 case $LUIT in 23231 [\\/]* | ?:[\\/]*) 23232 ac_cv_path_LUIT="$LUIT" # Let the user override the test with a path. 23233 ;; 23234 *) 23235 ac_save_IFS=$IFS; IFS=$ac_path_separator 23236 ac_dummy="$PATH" 23237 for ac_dir in $ac_dummy; do 23238 IFS=$ac_save_IFS 23239 test -z "$ac_dir" && ac_dir=. 23240 if $as_executable_p "$ac_dir/$ac_word"; then 23241 ac_cv_path_LUIT="$ac_dir/$ac_word" 23242 echo "$as_me:23242: found $ac_dir/$ac_word" >&5 23243 break 23244 fi 23245 done 23246 23247 ;; 23248 esac 23249 fi 23250 LUIT=$ac_cv_path_LUIT 23251 23252 if test -n "$LUIT"; then 23253 echo "$as_me:23253: result: $LUIT" >&5 23254 echo "${ECHO_T}$LUIT" >&6 23255 else 23256 echo "$as_me:23256: result: no" >&5 23257 echo "${ECHO_T}no" >&6 23258 fi 23259 23260 test -n "$LUIT" && break 23261 done 23262 test -n "$LUIT" || LUIT="$LUIT" 23263 23264 cf_path_prog="" 23265 cf_path_args="" 23266 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" 23267 for cf_temp in $ac_cv_path_LUIT 23268 do 23269 if test -z "$cf_path_prog" ; then 23270 if test "$with_full_paths" = yes ; then 23271 23272 if test "x$prefix" != xNONE; then 23273 cf_path_syntax="$prefix" 23274 else 23275 cf_path_syntax="$ac_default_prefix" 23276 fi 23277 23278 case "x$cf_temp" in 23279 (x\$\(*\)*|x\'*\'*) 23280 ;; 23281 (x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER) 23282 ;; 23283 (x\$\{*prefix\}*|x\$\{*dir\}*) 23284 eval cf_temp="$cf_temp" 23285 case "x$cf_temp" in 23286 (xNONE/*) 23287 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` 23288 ;; 23289 esac 23290 ;; 23291 (xno|xNONE/*) 23292 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` 23293 ;; 23294 (*) 23295 break 23296 ;; 23297 esac 23298 23299 cf_path_prog="$cf_temp" 23300 else 23301 cf_path_prog="`basename "$cf_temp"`" 23302 fi 23303 elif test -z "$cf_path_args" ; then 23304 cf_path_args="$cf_temp" 23305 else 23306 cf_path_args="$cf_path_args $cf_temp" 23307 fi 23308 done 23309 IFS="$cf_save_ifs" 23310 23311 if test -n "$cf_path_prog" ; then 23312 23313 echo "${as_me:-configure}:23313: testing defining path for ${cf_path_prog} ..." 1>&5 23314 23315 cat >>confdefs.h <<EOF 23316 #define LUIT_PATH "$cf_path_prog" 23317 EOF 23318 23319 test -n "$cf_path_args" && 23320 cat >>confdefs.h <<EOF 23321 #define LUIT_ARGS "$cf_path_args" 23322 EOF 23323 23324 fi 23325 23326 fi 23327 23328 cat >>confdefs.h <<\EOF 23329 #define OPT_WIDE_CHARS 1 23330 EOF 23331 23332 EXTRAHDRS="$EXTRAHDRS charclass.h precompose.h wcwidth.h" 23333 EXTRASRCS="$EXTRASRCS charclass.c precompose.c wcwidth.c" 23334 EXTRAOBJS="$EXTRAOBJS charclass.o precompose.o wcwidth.o" 23335 fi 23336 23337 echo "$as_me:23337: checking if you want dynamic-abbreviation support" >&5 23338 echo $ECHO_N "checking if you want dynamic-abbreviation support... $ECHO_C" >&6 23339 23340 # Check whether --enable-dabbrev or --disable-dabbrev was given. 23341 if test "${enable_dabbrev+set}" = set; then 23342 enableval="$enable_dabbrev" 23343 test "$enableval" != yes && enableval=no 23344 if test "$enableval" != "no" ; then 23345 enable_dabbrev=yes 23346 else 23347 enable_dabbrev=no 23348 fi 23349 else 23350 enableval=no 23351 enable_dabbrev=no 23352 23353 fi; 23354 echo "$as_me:23354: result: $enable_dabbrev" >&5 23355 echo "${ECHO_T}$enable_dabbrev" >&6 23356 if test "$enable_dabbrev" = yes ; then 23357 23358 cat >>confdefs.h <<\EOF 23359 #define OPT_DABBREV 1 23360 EOF 23361 23362 fi 23363 23364 echo "$as_me:23364: checking if you want DECterm Locator support" >&5 23365 echo $ECHO_N "checking if you want DECterm Locator support... $ECHO_C" >&6 23366 23367 # Check whether --enable-dec-locator or --disable-dec-locator was given. 23368 if test "${enable_dec_locator+set}" = set; then 23369 enableval="$enable_dec_locator" 23370 test "$enableval" != yes && enableval=no 23371 if test "$enableval" != "no" ; then 23372 enable_dec_locator=yes 23373 else 23374 enable_dec_locator=no 23375 fi 23376 else 23377 enableval=no 23378 enable_dec_locator=no 23379 23380 fi; 23381 echo "$as_me:23381: result: $enable_dec_locator" >&5 23382 echo "${ECHO_T}$enable_dec_locator" >&6 23383 if test "$enable_dec_locator" = yes ; then 23384 23385 cat >>confdefs.h <<\EOF 23386 #define OPT_DEC_LOCATOR 1 23387 EOF 23388 23389 fi 23390 23391 echo "$as_me:23391: checking if you want XHTML and SVG screen dump support" >&5 23392 echo $ECHO_N "checking if you want XHTML and SVG screen dump support... $ECHO_C" >&6 23393 23394 # Check whether --enable-screen-dumps or --disable-screen-dumps was given. 23395 if test "${enable_screen_dumps+set}" = set; then 23396 enableval="$enable_screen_dumps" 23397 test "$enableval" != no && enableval=yes 23398 if test "$enableval" != "yes" ; then 23399 enable_screen_dumps=no 23400 else 23401 enable_screen_dumps=yes 23402 fi 23403 else 23404 enableval=yes 23405 enable_screen_dumps=yes 23406 23407 fi; 23408 echo "$as_me:23408: result: $enable_screen_dumps" >&5 23409 echo "${ECHO_T}$enable_screen_dumps" >&6 23410 if test "$enable_screen_dumps" = yes ; then 23411 EXTRASRCS="$EXTRASRCS html.c svg.c" 23412 EXTRAOBJS="$EXTRAOBJS html.o svg.o" 23413 else 23414 23415 cat >>confdefs.h <<\EOF 23416 #define OPT_SCREEN_DUMPS 0 23417 EOF 23418 23419 fi 23420 23421 echo "$as_me:23421: checking if you want ReGIS graphics support" >&5 23422 echo $ECHO_N "checking if you want ReGIS graphics support... $ECHO_C" >&6 23423 23424 # Check whether --enable-regis-graphics or --disable-regis-graphics was given. 23425 if test "${enable_regis_graphics+set}" = set; then 23426 enableval="$enable_regis_graphics" 23427 test "$enableval" != yes && enableval=no 23428 if test "$enableval" != "no" ; then 23429 enable_regis_graphics=yes 23430 else 23431 enable_regis_graphics=no 23432 fi 23433 else 23434 enableval=no 23435 enable_regis_graphics=no 23436 23437 fi; 23438 echo "$as_me:23438: result: $enable_regis_graphics" >&5 23439 echo "${ECHO_T}$enable_regis_graphics" >&6 23440 if test "$enable_regis_graphics" = yes ; then 23441 23442 cat >>confdefs.h <<\EOF 23443 #define OPT_REGIS_GRAPHICS 1 23444 EOF 23445 23446 EXTRAHDRS="$EXTRAHDRS graphics_regis.h" 23447 EXTRASRCS="$EXTRASRCS graphics_regis.c" 23448 EXTRAOBJS="$EXTRAOBJS graphics_regis.o" 23449 23450 echo "$as_me:23450: checking if -lm needed for math functions" >&5 23451 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6 23452 if test "${cf_cv_need_libm+set}" = set; then 23453 echo $ECHO_N "(cached) $ECHO_C" >&6 23454 else 23455 23456 cat >"conftest.$ac_ext" <<_ACEOF 23457 #line 23457 "configure" 23458 #include "confdefs.h" 23459 23460 #include <stdio.h> 23461 #include <stdlib.h> 23462 #include <math.h> 23463 23464 int 23465 main (void) 23466 { 23467 double x = rand(); printf("result = %g\\n", sin(x)) 23468 ; 23469 return 0; 23470 } 23471 _ACEOF 23472 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 23473 if { (eval echo "$as_me:23473: \"$ac_link\"") >&5 23474 (eval $ac_link) 2>&5 23475 ac_status=$? 23476 echo "$as_me:23476: \$? = $ac_status" >&5 23477 (exit "$ac_status"); } && 23478 { ac_try='test -s "conftest$ac_exeext"' 23479 { (eval echo "$as_me:23479: \"$ac_try\"") >&5 23480 (eval $ac_try) 2>&5 23481 ac_status=$? 23482 echo "$as_me:23482: \$? = $ac_status" >&5 23483 (exit "$ac_status"); }; }; then 23484 cf_cv_need_libm=no 23485 else 23486 echo "$as_me: failed program was:" >&5 23487 cat "conftest.$ac_ext" >&5 23488 cf_cv_need_libm=yes 23489 fi 23490 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 23491 fi 23492 echo "$as_me:23492: result: $cf_cv_need_libm" >&5 23493 echo "${ECHO_T}$cf_cv_need_libm" >&6 23494 23495 if test "$cf_cv_need_libm" = yes 23496 then 23497 23498 cf_save_LIBS="$LIBS" 23499 LIBS="$LIBS -lm" 23500 echo "$as_me:23500: checking if -lm is available for math functions" >&5 23501 echo $ECHO_N "checking if -lm is available for math functions... $ECHO_C" >&6 23502 if test "${cf_cv_have_libm+set}" = set; then 23503 echo $ECHO_N "(cached) $ECHO_C" >&6 23504 else 23505 23506 cat >"conftest.$ac_ext" <<_ACEOF 23507 #line 23507 "configure" 23508 #include "confdefs.h" 23509 23510 #include <stdio.h> 23511 #include <stdlib.h> 23512 #include <math.h> 23513 23514 int 23515 main (void) 23516 { 23517 double x = rand(); printf("result = %g\\n", sin(x)) 23518 ; 23519 return 0; 23520 } 23521 _ACEOF 23522 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 23523 if { (eval echo "$as_me:23523: \"$ac_link\"") >&5 23524 (eval $ac_link) 2>&5 23525 ac_status=$? 23526 echo "$as_me:23526: \$? = $ac_status" >&5 23527 (exit "$ac_status"); } && 23528 { ac_try='test -s "conftest$ac_exeext"' 23529 { (eval echo "$as_me:23529: \"$ac_try\"") >&5 23530 (eval $ac_try) 2>&5 23531 ac_status=$? 23532 echo "$as_me:23532: \$? = $ac_status" >&5 23533 (exit "$ac_status"); }; }; then 23534 cf_cv_have_libm=yes 23535 else 23536 echo "$as_me: failed program was:" >&5 23537 cat "conftest.$ac_ext" >&5 23538 cf_cv_have_libm=no 23539 fi 23540 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 23541 fi 23542 echo "$as_me:23542: result: $cf_cv_have_libm" >&5 23543 echo "${ECHO_T}$cf_cv_have_libm" >&6 23544 LIBS="$cf_save_LIBS" 23545 23546 if test "$cf_cv_have_libm" = yes 23547 then 23548 23549 cf_add_libs="$LIBS" 23550 # reverse order 23551 cf_add_0lib= 23552 for cf_add_1lib in -lm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 23553 # filter duplicates 23554 for cf_add_1lib in $cf_add_0lib; do 23555 for cf_add_2lib in $cf_add_libs; do 23556 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 23557 cf_add_1lib= 23558 break 23559 fi 23560 done 23561 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 23562 done 23563 LIBS="$cf_add_libs" 23564 23565 fi 23566 else 23567 cf_cv_have_libm=yes 23568 fi 23569 23570 if test "$cf_cv_have_libm" = yes 23571 then 23572 23573 cat >>confdefs.h <<\EOF 23574 #define HAVE_MATH_FUNCS 1 23575 EOF 23576 23577 fi 23578 23579 fi 23580 23581 echo "$as_me:23581: checking if you want sixel graphics support" >&5 23582 echo $ECHO_N "checking if you want sixel graphics support... $ECHO_C" >&6 23583 23584 # Check whether --enable-sixel-graphics or --disable-sixel-graphics was given. 23585 if test "${enable_sixel_graphics+set}" = set; then 23586 enableval="$enable_sixel_graphics" 23587 test "$enableval" != no && enableval=yes 23588 if test "$enableval" != "yes" ; then 23589 enable_sixel_graphics=no 23590 else 23591 enable_sixel_graphics=yes 23592 fi 23593 else 23594 enableval=yes 23595 enable_sixel_graphics=yes 23596 23597 fi; 23598 echo "$as_me:23598: result: $enable_sixel_graphics" >&5 23599 echo "${ECHO_T}$enable_sixel_graphics" >&6 23600 if test "$enable_sixel_graphics" = yes ; then 23601 23602 cat >>confdefs.h <<\EOF 23603 #define OPT_SIXEL_GRAPHICS 1 23604 EOF 23605 23606 EXTRAHDRS="$EXTRAHDRS graphics_sixel.h" 23607 EXTRASRCS="$EXTRASRCS graphics_sixel.c" 23608 EXTRAOBJS="$EXTRAOBJS graphics_sixel.o" 23609 fi 23610 23611 if test "$enable_regis_graphics" = yes || test "$enable_sixel_graphics" = yes ; then 23612 23613 cat >>confdefs.h <<\EOF 23614 #define OPT_GRAPHICS 1 23615 EOF 23616 23617 EXTRAHDRS="$EXTRAHDRS graphics.h" 23618 EXTRASRCS="$EXTRASRCS graphics.c" 23619 EXTRAOBJS="$EXTRAOBJS graphics.o" 23620 STRINGS_MAX=600000 23621 else 23622 STRINGS_MAX=20000 23623 fi 23624 23625 echo "$as_me:23625: checking if you want sixel screen dump support" >&5 23626 echo $ECHO_N "checking if you want sixel screen dump support... $ECHO_C" >&6 23627 23628 # Check whether --enable-print-graphics or --disable-print-graphics was given. 23629 if test "${enable_print_graphics+set}" = set; then 23630 enableval="$enable_print_graphics" 23631 test "$enableval" != no && enableval=yes 23632 if test "$enableval" != "yes" ; then 23633 enable_print_graphics=no 23634 else 23635 enable_print_graphics=$enable_regis_graphics 23636 fi 23637 else 23638 enableval=yes 23639 enable_print_graphics=$enable_regis_graphics 23640 23641 fi; 23642 echo "$as_me:23642: result: $enable_print_graphics" >&5 23643 echo "${ECHO_T}$enable_print_graphics" >&6 23644 if test "$enable_print_graphics" = yes ; then 23645 23646 cat >>confdefs.h <<\EOF 23647 #define OPT_PRINT_GRAPHICS 1 23648 EOF 23649 23650 fi 23651 23652 echo "$as_me:23652: checking if you want VT420 rectangle support" >&5 23653 echo $ECHO_N "checking if you want VT420 rectangle support... $ECHO_C" >&6 23654 23655 # Check whether --enable-rectangles or --disable-rectangles was given. 23656 if test "${enable_rectangles+set}" = set; then 23657 enableval="$enable_rectangles" 23658 test "$enableval" != no && enableval=yes 23659 if test "$enableval" != "yes" ; then 23660 enable_rectangles=no 23661 else 23662 enable_rectangles=yes 23663 fi 23664 else 23665 enableval=yes 23666 enable_rectangles=yes 23667 23668 fi; 23669 echo "$as_me:23669: result: $enable_rectangles" >&5 23670 echo "${ECHO_T}$enable_rectangles" >&6 23671 if test "$enable_rectangles" = no ; then 23672 23673 cat >>confdefs.h <<\EOF 23674 #define OPT_DEC_RECTOPS 0 23675 EOF 23676 23677 fi 23678 23679 echo "$as_me:23679: checking if you want -ziconbeep option" >&5 23680 echo $ECHO_N "checking if you want -ziconbeep option... $ECHO_C" >&6 23681 23682 # Check whether --enable-ziconbeep or --disable-ziconbeep was given. 23683 if test "${enable_ziconbeep+set}" = set; then 23684 enableval="$enable_ziconbeep" 23685 test "$enableval" != no && enableval=yes 23686 if test "$enableval" != "yes" ; then 23687 enable_ziconbeep=no 23688 else 23689 enable_ziconbeep=yes 23690 fi 23691 else 23692 enableval=yes 23693 enable_ziconbeep=yes 23694 23695 fi; 23696 echo "$as_me:23696: result: $enable_ziconbeep" >&5 23697 echo "${ECHO_T}$enable_ziconbeep" >&6 23698 test "$enable_ziconbeep" = no && 23699 cat >>confdefs.h <<\EOF 23700 #define OPT_ZICONBEEP 0 23701 EOF 23702 23703 ############################################################################### 23704 23705 echo "$as_me:23705: checking if you want debugging traces" >&5 23706 echo $ECHO_N "checking if you want debugging traces... $ECHO_C" >&6 23707 23708 # Check whether --enable-trace or --disable-trace was given. 23709 if test "${enable_trace+set}" = set; then 23710 enableval="$enable_trace" 23711 test "$enableval" != yes && enableval=no 23712 if test "$enableval" != "no" ; then 23713 enable_trace=yes 23714 else 23715 enable_trace=no 23716 fi 23717 else 23718 enableval=no 23719 enable_trace=no 23720 23721 fi; 23722 echo "$as_me:23722: result: $enable_trace" >&5 23723 echo "${ECHO_T}$enable_trace" >&6 23724 if test "$enable_trace" = yes ; then 23725 23726 cat >>confdefs.h <<\EOF 23727 #define OPT_TRACE 1 23728 EOF 23729 23730 EXTRASRCS="$EXTRASRCS trace.c" 23731 EXTRAOBJS="$EXTRAOBJS trace.o" 23732 fi 23733 23734 echo "$as_me:23734: checking if you want to use dmalloc for testing" >&5 23735 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6 23736 23737 # Check whether --with-dmalloc or --without-dmalloc was given. 23738 if test "${with_dmalloc+set}" = set; then 23739 withval="$with_dmalloc" 23740 case "x$withval" in 23741 (x|xno) ;; 23742 (*) 23743 : "${with_cflags:=-g}" 23744 : "${enable_leaks:=no}" 23745 with_dmalloc=yes 23746 23747 cat >>confdefs.h <<EOF 23748 #define USE_DMALLOC 1 23749 EOF 23750 23751 ;; 23752 esac 23753 else 23754 with_dmalloc= 23755 fi; 23756 echo "$as_me:23756: result: ${with_dmalloc:-no}" >&5 23757 echo "${ECHO_T}${with_dmalloc:-no}" >&6 23758 23759 case ".$with_cflags" in 23760 (.*-g*) 23761 case .$CFLAGS in 23762 (.*-g*) 23763 ;; 23764 (*) 23765 23766 cf_fix_cppflags=no 23767 cf_new_cflags= 23768 cf_new_cppflags= 23769 cf_new_extra_cppflags= 23770 23771 for cf_add_cflags in -g 23772 do 23773 case "$cf_fix_cppflags" in 23774 (no) 23775 case "$cf_add_cflags" in 23776 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 23777 case "$cf_add_cflags" in 23778 (-D*) 23779 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 23780 23781 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 23782 && test -z "${cf_tst_cflags}" \ 23783 && cf_fix_cppflags=yes 23784 23785 if test "$cf_fix_cppflags" = yes ; then 23786 23787 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 23788 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 23789 23790 continue 23791 elif test "${cf_tst_cflags}" = "\"'" ; then 23792 23793 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 23794 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 23795 23796 continue 23797 fi 23798 ;; 23799 esac 23800 case "$CPPFLAGS" in 23801 (*$cf_add_cflags) 23802 ;; 23803 (*) 23804 case "$cf_add_cflags" in 23805 (-D*) 23806 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 23807 23808 CPPFLAGS=`echo "$CPPFLAGS" | \ 23809 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 23810 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 23811 23812 ;; 23813 esac 23814 23815 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 23816 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 23817 23818 ;; 23819 esac 23820 ;; 23821 (*) 23822 23823 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 23824 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 23825 23826 ;; 23827 esac 23828 ;; 23829 (yes) 23830 23831 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 23832 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 23833 23834 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 23835 23836 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 23837 && test -z "${cf_tst_cflags}" \ 23838 && cf_fix_cppflags=no 23839 ;; 23840 esac 23841 done 23842 23843 if test -n "$cf_new_cflags" ; then 23844 23845 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 23846 CFLAGS="${CFLAGS}$cf_new_cflags" 23847 23848 fi 23849 23850 if test -n "$cf_new_cppflags" ; then 23851 23852 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 23853 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 23854 23855 fi 23856 23857 if test -n "$cf_new_extra_cppflags" ; then 23858 23859 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 23860 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 23861 23862 fi 23863 23864 ;; 23865 esac 23866 ;; 23867 esac 23868 23869 if test "$with_dmalloc" = yes ; then 23870 echo "$as_me:23870: checking for dmalloc.h" >&5 23871 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6 23872 if test "${ac_cv_header_dmalloc_h+set}" = set; then 23873 echo $ECHO_N "(cached) $ECHO_C" >&6 23874 else 23875 cat >"conftest.$ac_ext" <<_ACEOF 23876 #line 23876 "configure" 23877 #include "confdefs.h" 23878 #include <dmalloc.h> 23879 _ACEOF 23880 if { (eval echo "$as_me:23880: \"$ac_cpp "conftest.$ac_ext"\"") >&5 23881 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 23882 ac_status=$? 23883 $EGREP -v '^ *\+' conftest.er1 >conftest.err 23884 rm -f conftest.er1 23885 cat conftest.err >&5 23886 echo "$as_me:23886: \$? = $ac_status" >&5 23887 (exit "$ac_status"); } >/dev/null; then 23888 if test -s conftest.err; then 23889 ac_cpp_err=$ac_c_preproc_warn_flag 23890 else 23891 ac_cpp_err= 23892 fi 23893 else 23894 ac_cpp_err=yes 23895 fi 23896 if test -z "$ac_cpp_err"; then 23897 ac_cv_header_dmalloc_h=yes 23898 else 23899 echo "$as_me: failed program was:" >&5 23900 cat "conftest.$ac_ext" >&5 23901 ac_cv_header_dmalloc_h=no 23902 fi 23903 rm -f conftest.err "conftest.$ac_ext" 23904 fi 23905 echo "$as_me:23905: result: $ac_cv_header_dmalloc_h" >&5 23906 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6 23907 if test "$ac_cv_header_dmalloc_h" = yes; then 23908 23909 echo "$as_me:23909: checking for dmalloc_debug in -ldmalloc" >&5 23910 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6 23911 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then 23912 echo $ECHO_N "(cached) $ECHO_C" >&6 23913 else 23914 ac_check_lib_save_LIBS=$LIBS 23915 LIBS="-ldmalloc $LIBS" 23916 cat >"conftest.$ac_ext" <<_ACEOF 23917 #line 23917 "configure" 23918 #include "confdefs.h" 23919 23920 /* Override any gcc2 internal prototype to avoid an error. */ 23921 #ifdef __cplusplus 23922 extern "C" 23923 #endif 23924 /* We use char because int might match the return type of a gcc2 23925 builtin and then its argument prototype would still apply. */ 23926 char dmalloc_debug (void); 23927 int 23928 main (void) 23929 { 23930 dmalloc_debug (); 23931 ; 23932 return 0; 23933 } 23934 _ACEOF 23935 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 23936 if { (eval echo "$as_me:23936: \"$ac_link\"") >&5 23937 (eval $ac_link) 2>&5 23938 ac_status=$? 23939 echo "$as_me:23939: \$? = $ac_status" >&5 23940 (exit "$ac_status"); } && 23941 { ac_try='test -s "conftest$ac_exeext"' 23942 { (eval echo "$as_me:23942: \"$ac_try\"") >&5 23943 (eval $ac_try) 2>&5 23944 ac_status=$? 23945 echo "$as_me:23945: \$? = $ac_status" >&5 23946 (exit "$ac_status"); }; }; then 23947 ac_cv_lib_dmalloc_dmalloc_debug=yes 23948 else 23949 echo "$as_me: failed program was:" >&5 23950 cat "conftest.$ac_ext" >&5 23951 ac_cv_lib_dmalloc_dmalloc_debug=no 23952 fi 23953 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 23954 LIBS=$ac_check_lib_save_LIBS 23955 fi 23956 echo "$as_me:23956: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5 23957 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6 23958 if test "$ac_cv_lib_dmalloc_dmalloc_debug" = yes; then 23959 cat >>confdefs.h <<EOF 23960 #define HAVE_LIBDMALLOC 1 23961 EOF 23962 23963 LIBS="-ldmalloc $LIBS" 23964 23965 fi 23966 23967 fi 23968 23969 fi 23970 23971 echo "$as_me:23971: checking if you want to use dbmalloc for testing" >&5 23972 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6 23973 23974 # Check whether --with-dbmalloc or --without-dbmalloc was given. 23975 if test "${with_dbmalloc+set}" = set; then 23976 withval="$with_dbmalloc" 23977 case "x$withval" in 23978 (x|xno) ;; 23979 (*) 23980 : "${with_cflags:=-g}" 23981 : "${enable_leaks:=no}" 23982 with_dbmalloc=yes 23983 23984 cat >>confdefs.h <<EOF 23985 #define USE_DBMALLOC 1 23986 EOF 23987 23988 ;; 23989 esac 23990 else 23991 with_dbmalloc= 23992 fi; 23993 echo "$as_me:23993: result: ${with_dbmalloc:-no}" >&5 23994 echo "${ECHO_T}${with_dbmalloc:-no}" >&6 23995 23996 case ".$with_cflags" in 23997 (.*-g*) 23998 case .$CFLAGS in 23999 (.*-g*) 24000 ;; 24001 (*) 24002 24003 cf_fix_cppflags=no 24004 cf_new_cflags= 24005 cf_new_cppflags= 24006 cf_new_extra_cppflags= 24007 24008 for cf_add_cflags in -g 24009 do 24010 case "$cf_fix_cppflags" in 24011 (no) 24012 case "$cf_add_cflags" in 24013 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 24014 case "$cf_add_cflags" in 24015 (-D*) 24016 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 24017 24018 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 24019 && test -z "${cf_tst_cflags}" \ 24020 && cf_fix_cppflags=yes 24021 24022 if test "$cf_fix_cppflags" = yes ; then 24023 24024 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 24025 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 24026 24027 continue 24028 elif test "${cf_tst_cflags}" = "\"'" ; then 24029 24030 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 24031 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 24032 24033 continue 24034 fi 24035 ;; 24036 esac 24037 case "$CPPFLAGS" in 24038 (*$cf_add_cflags) 24039 ;; 24040 (*) 24041 case "$cf_add_cflags" in 24042 (-D*) 24043 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 24044 24045 CPPFLAGS=`echo "$CPPFLAGS" | \ 24046 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 24047 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 24048 24049 ;; 24050 esac 24051 24052 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 24053 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 24054 24055 ;; 24056 esac 24057 ;; 24058 (*) 24059 24060 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 24061 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 24062 24063 ;; 24064 esac 24065 ;; 24066 (yes) 24067 24068 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 24069 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 24070 24071 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 24072 24073 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 24074 && test -z "${cf_tst_cflags}" \ 24075 && cf_fix_cppflags=no 24076 ;; 24077 esac 24078 done 24079 24080 if test -n "$cf_new_cflags" ; then 24081 24082 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 24083 CFLAGS="${CFLAGS}$cf_new_cflags" 24084 24085 fi 24086 24087 if test -n "$cf_new_cppflags" ; then 24088 24089 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 24090 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 24091 24092 fi 24093 24094 if test -n "$cf_new_extra_cppflags" ; then 24095 24096 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 24097 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 24098 24099 fi 24100 24101 ;; 24102 esac 24103 ;; 24104 esac 24105 24106 if test "$with_dbmalloc" = yes ; then 24107 echo "$as_me:24107: checking for dbmalloc.h" >&5 24108 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6 24109 if test "${ac_cv_header_dbmalloc_h+set}" = set; then 24110 echo $ECHO_N "(cached) $ECHO_C" >&6 24111 else 24112 cat >"conftest.$ac_ext" <<_ACEOF 24113 #line 24113 "configure" 24114 #include "confdefs.h" 24115 #include <dbmalloc.h> 24116 _ACEOF 24117 if { (eval echo "$as_me:24117: \"$ac_cpp "conftest.$ac_ext"\"") >&5 24118 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 24119 ac_status=$? 24120 $EGREP -v '^ *\+' conftest.er1 >conftest.err 24121 rm -f conftest.er1 24122 cat conftest.err >&5 24123 echo "$as_me:24123: \$? = $ac_status" >&5 24124 (exit "$ac_status"); } >/dev/null; then 24125 if test -s conftest.err; then 24126 ac_cpp_err=$ac_c_preproc_warn_flag 24127 else 24128 ac_cpp_err= 24129 fi 24130 else 24131 ac_cpp_err=yes 24132 fi 24133 if test -z "$ac_cpp_err"; then 24134 ac_cv_header_dbmalloc_h=yes 24135 else 24136 echo "$as_me: failed program was:" >&5 24137 cat "conftest.$ac_ext" >&5 24138 ac_cv_header_dbmalloc_h=no 24139 fi 24140 rm -f conftest.err "conftest.$ac_ext" 24141 fi 24142 echo "$as_me:24142: result: $ac_cv_header_dbmalloc_h" >&5 24143 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6 24144 if test "$ac_cv_header_dbmalloc_h" = yes; then 24145 24146 echo "$as_me:24146: checking for debug_malloc in -ldbmalloc" >&5 24147 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6 24148 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then 24149 echo $ECHO_N "(cached) $ECHO_C" >&6 24150 else 24151 ac_check_lib_save_LIBS=$LIBS 24152 LIBS="-ldbmalloc $LIBS" 24153 cat >"conftest.$ac_ext" <<_ACEOF 24154 #line 24154 "configure" 24155 #include "confdefs.h" 24156 24157 /* Override any gcc2 internal prototype to avoid an error. */ 24158 #ifdef __cplusplus 24159 extern "C" 24160 #endif 24161 /* We use char because int might match the return type of a gcc2 24162 builtin and then its argument prototype would still apply. */ 24163 char debug_malloc (void); 24164 int 24165 main (void) 24166 { 24167 debug_malloc (); 24168 ; 24169 return 0; 24170 } 24171 _ACEOF 24172 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 24173 if { (eval echo "$as_me:24173: \"$ac_link\"") >&5 24174 (eval $ac_link) 2>&5 24175 ac_status=$? 24176 echo "$as_me:24176: \$? = $ac_status" >&5 24177 (exit "$ac_status"); } && 24178 { ac_try='test -s "conftest$ac_exeext"' 24179 { (eval echo "$as_me:24179: \"$ac_try\"") >&5 24180 (eval $ac_try) 2>&5 24181 ac_status=$? 24182 echo "$as_me:24182: \$? = $ac_status" >&5 24183 (exit "$ac_status"); }; }; then 24184 ac_cv_lib_dbmalloc_debug_malloc=yes 24185 else 24186 echo "$as_me: failed program was:" >&5 24187 cat "conftest.$ac_ext" >&5 24188 ac_cv_lib_dbmalloc_debug_malloc=no 24189 fi 24190 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 24191 LIBS=$ac_check_lib_save_LIBS 24192 fi 24193 echo "$as_me:24193: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5 24194 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6 24195 if test "$ac_cv_lib_dbmalloc_debug_malloc" = yes; then 24196 cat >>confdefs.h <<EOF 24197 #define HAVE_LIBDBMALLOC 1 24198 EOF 24199 24200 LIBS="-ldbmalloc $LIBS" 24201 24202 fi 24203 24204 fi 24205 24206 fi 24207 24208 echo "$as_me:24208: checking if you want to use valgrind for testing" >&5 24209 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6 24210 24211 # Check whether --with-valgrind or --without-valgrind was given. 24212 if test "${with_valgrind+set}" = set; then 24213 withval="$with_valgrind" 24214 case "x$withval" in 24215 (x|xno) ;; 24216 (*) 24217 : "${with_cflags:=-g}" 24218 : "${enable_leaks:=no}" 24219 with_valgrind=yes 24220 24221 cat >>confdefs.h <<EOF 24222 #define USE_VALGRIND 1 24223 EOF 24224 24225 ;; 24226 esac 24227 else 24228 with_valgrind= 24229 fi; 24230 echo "$as_me:24230: result: ${with_valgrind:-no}" >&5 24231 echo "${ECHO_T}${with_valgrind:-no}" >&6 24232 24233 case ".$with_cflags" in 24234 (.*-g*) 24235 case .$CFLAGS in 24236 (.*-g*) 24237 ;; 24238 (*) 24239 24240 cf_fix_cppflags=no 24241 cf_new_cflags= 24242 cf_new_cppflags= 24243 cf_new_extra_cppflags= 24244 24245 for cf_add_cflags in -g 24246 do 24247 case "$cf_fix_cppflags" in 24248 (no) 24249 case "$cf_add_cflags" in 24250 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 24251 case "$cf_add_cflags" in 24252 (-D*) 24253 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 24254 24255 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 24256 && test -z "${cf_tst_cflags}" \ 24257 && cf_fix_cppflags=yes 24258 24259 if test "$cf_fix_cppflags" = yes ; then 24260 24261 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 24262 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 24263 24264 continue 24265 elif test "${cf_tst_cflags}" = "\"'" ; then 24266 24267 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 24268 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 24269 24270 continue 24271 fi 24272 ;; 24273 esac 24274 case "$CPPFLAGS" in 24275 (*$cf_add_cflags) 24276 ;; 24277 (*) 24278 case "$cf_add_cflags" in 24279 (-D*) 24280 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 24281 24282 CPPFLAGS=`echo "$CPPFLAGS" | \ 24283 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 24284 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 24285 24286 ;; 24287 esac 24288 24289 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 24290 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 24291 24292 ;; 24293 esac 24294 ;; 24295 (*) 24296 24297 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 24298 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 24299 24300 ;; 24301 esac 24302 ;; 24303 (yes) 24304 24305 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 24306 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 24307 24308 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 24309 24310 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 24311 && test -z "${cf_tst_cflags}" \ 24312 && cf_fix_cppflags=no 24313 ;; 24314 esac 24315 done 24316 24317 if test -n "$cf_new_cflags" ; then 24318 24319 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 24320 CFLAGS="${CFLAGS}$cf_new_cflags" 24321 24322 fi 24323 24324 if test -n "$cf_new_cppflags" ; then 24325 24326 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 24327 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 24328 24329 fi 24330 24331 if test -n "$cf_new_extra_cppflags" ; then 24332 24333 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 24334 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 24335 24336 fi 24337 24338 ;; 24339 esac 24340 ;; 24341 esac 24342 24343 echo "$as_me:24343: checking if you want to perform memory-leak testing" >&5 24344 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6 24345 24346 # Check whether --enable-leaks or --disable-leaks was given. 24347 if test "${enable_leaks+set}" = set; then 24348 enableval="$enable_leaks" 24349 enable_leaks=$enableval 24350 else 24351 enable_leaks=yes 24352 fi; 24353 if test "x$enable_leaks" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi 24354 echo "$as_me:24354: result: $with_no_leaks" >&5 24355 echo "${ECHO_T}$with_no_leaks" >&6 24356 24357 if test "$enable_leaks" = no ; then 24358 24359 cat >>confdefs.h <<\EOF 24360 #define NO_LEAKS 1 24361 EOF 24362 24363 cat >>confdefs.h <<\EOF 24364 #define YY_NO_LEAKS 1 24365 EOF 24366 24367 fi 24368 24369 echo "$as_me:24369: checking if you want to see long compiling messages" >&5 24370 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6 24371 24372 # Check whether --enable-echo or --disable-echo was given. 24373 if test "${enable_echo+set}" = set; then 24374 enableval="$enable_echo" 24375 test "$enableval" != no && enableval=yes 24376 if test "$enableval" != "yes" ; then 24377 24378 ECHO_LT='--silent' 24379 ECHO_LD='@echo linking $@;' 24380 RULE_CC='@echo compiling $<' 24381 SHOW_CC='@echo compiling $@' 24382 ECHO_CC='@' 24383 24384 else 24385 24386 ECHO_LT='' 24387 ECHO_LD='' 24388 RULE_CC='' 24389 SHOW_CC='' 24390 ECHO_CC='' 24391 24392 fi 24393 else 24394 enableval=yes 24395 24396 ECHO_LT='' 24397 ECHO_LD='' 24398 RULE_CC='' 24399 SHOW_CC='' 24400 ECHO_CC='' 24401 24402 fi; 24403 echo "$as_me:24403: result: $enableval" >&5 24404 echo "${ECHO_T}$enableval" >&6 24405 24406 echo "$as_me:24406: checking if you want magic cookie emulation" >&5 24407 echo $ECHO_N "checking if you want magic cookie emulation... $ECHO_C" >&6 24408 24409 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given. 24410 if test "${enable_xmc_glitch+set}" = set; then 24411 enableval="$enable_xmc_glitch" 24412 test "$enableval" != yes && enableval=no 24413 if test "$enableval" != "no" ; then 24414 enable_xmc=yes 24415 else 24416 enable_xmc=no 24417 fi 24418 else 24419 enableval=no 24420 enable_xmc=no 24421 24422 fi; 24423 echo "$as_me:24423: result: $enable_xmc" >&5 24424 echo "${ECHO_T}$enable_xmc" >&6 24425 if test "$enable_xmc" = yes ; then 24426 24427 cat >>confdefs.h <<\EOF 24428 #define OPT_XMC_GLITCH 1 24429 EOF 24430 24431 EXTRASRCS="$EXTRASRCS testxmc.c" 24432 EXTRAOBJS="$EXTRAOBJS testxmc.o" 24433 fi 24434 24435 for ac_func in tigetstr 24436 do 24437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 24438 echo "$as_me:24438: checking for $ac_func" >&5 24439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 24440 if eval "test \"\${$as_ac_var+set}\" = set"; then 24441 echo $ECHO_N "(cached) $ECHO_C" >&6 24442 else 24443 cat >"conftest.$ac_ext" <<_ACEOF 24444 #line 24444 "configure" 24445 #include "confdefs.h" 24446 #define $ac_func autoconf_temporary 24447 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 24448 #undef $ac_func 24449 24450 #ifdef __cplusplus 24451 extern "C" 24452 #endif 24453 24454 /* We use char because int might match the return type of a gcc2 24455 builtin and then its argument prototype would still apply. */ 24456 char $ac_func (void); 24457 24458 int 24459 main (void) 24460 { 24461 24462 /* The GNU C library defines stubs for functions which it implements 24463 to always fail with ENOSYS. Some functions are actually named 24464 something starting with __ and the normal name is an alias. */ 24465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 24466 #error found stub for $ac_func 24467 #endif 24468 24469 return $ac_func (); 24470 ; 24471 return 0; 24472 } 24473 _ACEOF 24474 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 24475 if { (eval echo "$as_me:24475: \"$ac_link\"") >&5 24476 (eval $ac_link) 2>&5 24477 ac_status=$? 24478 echo "$as_me:24478: \$? = $ac_status" >&5 24479 (exit "$ac_status"); } && 24480 { ac_try='test -s "conftest$ac_exeext"' 24481 { (eval echo "$as_me:24481: \"$ac_try\"") >&5 24482 (eval $ac_try) 2>&5 24483 ac_status=$? 24484 echo "$as_me:24484: \$? = $ac_status" >&5 24485 (exit "$ac_status"); }; }; then 24486 eval "$as_ac_var=yes" 24487 else 24488 echo "$as_me: failed program was:" >&5 24489 cat "conftest.$ac_ext" >&5 24490 eval "$as_ac_var=no" 24491 fi 24492 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 24493 fi 24494 echo "$as_me:24494: result: `eval echo '${'"$as_ac_var"'}'`" >&5 24495 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 24496 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 24497 cat >>confdefs.h <<EOF 24498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 24499 EOF 24500 24501 fi 24502 done 24503 24504 if test -n "$cf_cv_lib_part_tgetent"; then 24505 24506 for ac_func in use_extended_names 24507 do 24508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 24509 echo "$as_me:24509: checking for $ac_func" >&5 24510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 24511 if eval "test \"\${$as_ac_var+set}\" = set"; then 24512 echo $ECHO_N "(cached) $ECHO_C" >&6 24513 else 24514 cat >"conftest.$ac_ext" <<_ACEOF 24515 #line 24515 "configure" 24516 #include "confdefs.h" 24517 #define $ac_func autoconf_temporary 24518 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 24519 #undef $ac_func 24520 24521 #ifdef __cplusplus 24522 extern "C" 24523 #endif 24524 24525 /* We use char because int might match the return type of a gcc2 24526 builtin and then its argument prototype would still apply. */ 24527 char $ac_func (void); 24528 24529 int 24530 main (void) 24531 { 24532 24533 /* The GNU C library defines stubs for functions which it implements 24534 to always fail with ENOSYS. Some functions are actually named 24535 something starting with __ and the normal name is an alias. */ 24536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 24537 #error found stub for $ac_func 24538 #endif 24539 24540 return $ac_func (); 24541 ; 24542 return 0; 24543 } 24544 _ACEOF 24545 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 24546 if { (eval echo "$as_me:24546: \"$ac_link\"") >&5 24547 (eval $ac_link) 2>&5 24548 ac_status=$? 24549 echo "$as_me:24549: \$? = $ac_status" >&5 24550 (exit "$ac_status"); } && 24551 { ac_try='test -s "conftest$ac_exeext"' 24552 { (eval echo "$as_me:24552: \"$ac_try\"") >&5 24553 (eval $ac_try) 2>&5 24554 ac_status=$? 24555 echo "$as_me:24555: \$? = $ac_status" >&5 24556 (exit "$ac_status"); }; }; then 24557 eval "$as_ac_var=yes" 24558 else 24559 echo "$as_me: failed program was:" >&5 24560 cat "conftest.$ac_ext" >&5 24561 eval "$as_ac_var=no" 24562 fi 24563 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 24564 fi 24565 echo "$as_me:24565: result: `eval echo '${'"$as_ac_var"'}'`" >&5 24566 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 24567 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 24568 cat >>confdefs.h <<EOF 24569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 24570 EOF 24571 24572 fi 24573 done 24574 24575 fi 24576 24577 echo "$as_me:24577: checking if you want to use C11 _Noreturn feature" >&5 24578 echo $ECHO_N "checking if you want to use C11 _Noreturn feature... $ECHO_C" >&6 24579 24580 # Check whether --enable-stdnoreturn or --disable-stdnoreturn was given. 24581 if test "${enable_stdnoreturn+set}" = set; then 24582 enableval="$enable_stdnoreturn" 24583 test "$enableval" != yes && enableval=no 24584 if test "$enableval" != "no" ; then 24585 enable_stdnoreturn=yes 24586 else 24587 enable_stdnoreturn=no 24588 fi 24589 else 24590 enableval=no 24591 enable_stdnoreturn=no 24592 24593 fi; 24594 echo "$as_me:24594: result: $enable_stdnoreturn" >&5 24595 echo "${ECHO_T}$enable_stdnoreturn" >&6 24596 24597 if test $enable_stdnoreturn = yes; then 24598 echo "$as_me:24598: checking for C11 _Noreturn feature" >&5 24599 echo $ECHO_N "checking for C11 _Noreturn feature... $ECHO_C" >&6 24600 if test "${cf_cv_c11_noreturn+set}" = set; then 24601 echo $ECHO_N "(cached) $ECHO_C" >&6 24602 else 24603 cat >"conftest.$ac_ext" <<_ACEOF 24604 #line 24604 "configure" 24605 #include "confdefs.h" 24606 24607 $ac_includes_default 24608 #include <stdnoreturn.h> 24609 static _Noreturn void giveup(void) { exit(0); } 24610 24611 int 24612 main (void) 24613 { 24614 if (feof(stdin)) giveup() 24615 ; 24616 return 0; 24617 } 24618 _ACEOF 24619 rm -f "conftest.$ac_objext" 24620 if { (eval echo "$as_me:24620: \"$ac_compile\"") >&5 24621 (eval $ac_compile) 2>&5 24622 ac_status=$? 24623 echo "$as_me:24623: \$? = $ac_status" >&5 24624 (exit "$ac_status"); } && 24625 { ac_try='test -s "conftest.$ac_objext"' 24626 { (eval echo "$as_me:24626: \"$ac_try\"") >&5 24627 (eval $ac_try) 2>&5 24628 ac_status=$? 24629 echo "$as_me:24629: \$? = $ac_status" >&5 24630 (exit "$ac_status"); }; }; then 24631 cf_cv_c11_noreturn=yes 24632 else 24633 echo "$as_me: failed program was:" >&5 24634 cat "conftest.$ac_ext" >&5 24635 cf_cv_c11_noreturn=no 24636 fi 24637 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 24638 24639 fi 24640 echo "$as_me:24640: result: $cf_cv_c11_noreturn" >&5 24641 echo "${ECHO_T}$cf_cv_c11_noreturn" >&6 24642 else 24643 cf_cv_c11_noreturn=no, 24644 fi 24645 24646 if test "$cf_cv_c11_noreturn" = yes; then 24647 24648 cat >>confdefs.h <<\EOF 24649 #define HAVE_STDNORETURN_H 1 24650 EOF 24651 24652 cat >>confdefs.h <<EOF 24653 #define STDC_NORETURN _Noreturn 24654 EOF 24655 24656 HAVE_STDNORETURN_H=1 24657 else 24658 HAVE_STDNORETURN_H=0 24659 fi 24660 24661 if test "$GCC" = yes || test "$GXX" = yes 24662 then 24663 24664 if test "$GCC" = yes || test "$GXX" = yes 24665 then 24666 case $CFLAGS in 24667 (*-Werror=*) 24668 cf_temp_flags= 24669 for cf_temp_scan in $CFLAGS 24670 do 24671 case "x$cf_temp_scan" in 24672 (x-Werror=format*) 24673 24674 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags " 24675 cf_temp_flags="${cf_temp_flags}$cf_temp_scan" 24676 24677 ;; 24678 (x-Werror=*) 24679 24680 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS " 24681 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan" 24682 24683 ;; 24684 (*) 24685 24686 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags " 24687 cf_temp_flags="${cf_temp_flags}$cf_temp_scan" 24688 24689 ;; 24690 esac 24691 done 24692 if test "x$CFLAGS" != "x$cf_temp_flags" 24693 then 24694 test -n "$verbose" && echo " repairing CFLAGS: $CFLAGS" 1>&6 24695 24696 echo "${as_me:-configure}:24696: testing repairing CFLAGS: $CFLAGS ..." 1>&5 24697 24698 CFLAGS="$cf_temp_flags" 24699 test -n "$verbose" && echo " ... fixed $CFLAGS" 1>&6 24700 24701 echo "${as_me:-configure}:24701: testing ... fixed $CFLAGS ..." 1>&5 24702 24703 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6 24704 24705 echo "${as_me:-configure}:24705: testing ... extra $EXTRA_CFLAGS ..." 1>&5 24706 24707 fi 24708 ;; 24709 esac 24710 fi 24711 24712 if test "$GCC" = yes || test "$GXX" = yes 24713 then 24714 case $CPPFLAGS in 24715 (*-Werror=*) 24716 cf_temp_flags= 24717 for cf_temp_scan in $CPPFLAGS 24718 do 24719 case "x$cf_temp_scan" in 24720 (x-Werror=format*) 24721 24722 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags " 24723 cf_temp_flags="${cf_temp_flags}$cf_temp_scan" 24724 24725 ;; 24726 (x-Werror=*) 24727 24728 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS " 24729 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan" 24730 24731 ;; 24732 (*) 24733 24734 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags " 24735 cf_temp_flags="${cf_temp_flags}$cf_temp_scan" 24736 24737 ;; 24738 esac 24739 done 24740 if test "x$CPPFLAGS" != "x$cf_temp_flags" 24741 then 24742 test -n "$verbose" && echo " repairing CPPFLAGS: $CPPFLAGS" 1>&6 24743 24744 echo "${as_me:-configure}:24744: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5 24745 24746 CPPFLAGS="$cf_temp_flags" 24747 test -n "$verbose" && echo " ... fixed $CPPFLAGS" 1>&6 24748 24749 echo "${as_me:-configure}:24749: testing ... fixed $CPPFLAGS ..." 1>&5 24750 24751 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6 24752 24753 echo "${as_me:-configure}:24753: testing ... extra $EXTRA_CFLAGS ..." 1>&5 24754 24755 fi 24756 ;; 24757 esac 24758 fi 24759 24760 if test "$GCC" = yes || test "$GXX" = yes 24761 then 24762 case $LDFLAGS in 24763 (*-Werror=*) 24764 cf_temp_flags= 24765 for cf_temp_scan in $LDFLAGS 24766 do 24767 case "x$cf_temp_scan" in 24768 (x-Werror=format*) 24769 24770 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags " 24771 cf_temp_flags="${cf_temp_flags}$cf_temp_scan" 24772 24773 ;; 24774 (x-Werror=*) 24775 24776 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS " 24777 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan" 24778 24779 ;; 24780 (*) 24781 24782 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags " 24783 cf_temp_flags="${cf_temp_flags}$cf_temp_scan" 24784 24785 ;; 24786 esac 24787 done 24788 if test "x$LDFLAGS" != "x$cf_temp_flags" 24789 then 24790 test -n "$verbose" && echo " repairing LDFLAGS: $LDFLAGS" 1>&6 24791 24792 echo "${as_me:-configure}:24792: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5 24793 24794 LDFLAGS="$cf_temp_flags" 24795 test -n "$verbose" && echo " ... fixed $LDFLAGS" 1>&6 24796 24797 echo "${as_me:-configure}:24797: testing ... fixed $LDFLAGS ..." 1>&5 24798 24799 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6 24800 24801 echo "${as_me:-configure}:24801: testing ... extra $EXTRA_CFLAGS ..." 1>&5 24802 24803 fi 24804 ;; 24805 esac 24806 fi 24807 24808 echo "$as_me:24808: checking if you want to turn on gcc warnings" >&5 24809 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6 24810 24811 # Check whether --enable-warnings or --disable-warnings was given. 24812 if test "${enable_warnings+set}" = set; then 24813 enableval="$enable_warnings" 24814 test "$enableval" != yes && enableval=no 24815 if test "$enableval" != "no" ; then 24816 enable_warnings=yes 24817 else 24818 enable_warnings=no 24819 fi 24820 else 24821 enableval=no 24822 enable_warnings=no 24823 24824 fi; 24825 echo "$as_me:24825: result: $enable_warnings" >&5 24826 echo "${ECHO_T}$enable_warnings" >&6 24827 if test "$enable_warnings" = "yes" 24828 then 24829 24830 if test "x$have_x" = xyes; then 24831 24832 cf_save_LIBS_CF_CONST_X_STRING="$LIBS" 24833 cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS" 24834 cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS" 24835 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}" 24836 for cf_X_CFLAGS in $X_CFLAGS 24837 do 24838 case "x$cf_X_CFLAGS" in 24839 x-[IUD]*) 24840 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS" 24841 ;; 24842 *) 24843 CFLAGS="$CFLAGS $cf_X_CFLAGS" 24844 ;; 24845 esac 24846 done 24847 24848 cat >"conftest.$ac_ext" <<_ACEOF 24849 #line 24849 "configure" 24850 #include "confdefs.h" 24851 24852 $ac_includes_default 24853 #include <X11/Intrinsic.h> 24854 24855 int 24856 main (void) 24857 { 24858 String foo = malloc(1); free((void*)foo) 24859 ; 24860 return 0; 24861 } 24862 _ACEOF 24863 rm -f "conftest.$ac_objext" 24864 if { (eval echo "$as_me:24864: \"$ac_compile\"") >&5 24865 (eval $ac_compile) 2>&5 24866 ac_status=$? 24867 echo "$as_me:24867: \$? = $ac_status" >&5 24868 (exit "$ac_status"); } && 24869 { ac_try='test -s "conftest.$ac_objext"' 24870 { (eval echo "$as_me:24870: \"$ac_try\"") >&5 24871 (eval $ac_try) 2>&5 24872 ac_status=$? 24873 echo "$as_me:24873: \$? = $ac_status" >&5 24874 (exit "$ac_status"); }; }; then 24875 24876 echo "$as_me:24876: checking for X11/Xt const-feature" >&5 24877 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6 24878 if test "${cf_cv_const_x_string+set}" = set; then 24879 echo $ECHO_N "(cached) $ECHO_C" >&6 24880 else 24881 24882 cat >"conftest.$ac_ext" <<_ACEOF 24883 #line 24883 "configure" 24884 #include "confdefs.h" 24885 24886 #undef _CONST_X_STRING 24887 #define _CONST_X_STRING /* X11R7.8 (perhaps) */ 24888 #undef XTSTRINGDEFINES /* X11R5 and later */ 24889 $ac_includes_default 24890 #include <X11/Intrinsic.h> 24891 24892 int 24893 main (void) 24894 { 24895 String foo = malloc(1); *foo = 0 24896 ; 24897 return 0; 24898 } 24899 _ACEOF 24900 rm -f "conftest.$ac_objext" 24901 if { (eval echo "$as_me:24901: \"$ac_compile\"") >&5 24902 (eval $ac_compile) 2>&5 24903 ac_status=$? 24904 echo "$as_me:24904: \$? = $ac_status" >&5 24905 (exit "$ac_status"); } && 24906 { ac_try='test -s "conftest.$ac_objext"' 24907 { (eval echo "$as_me:24907: \"$ac_try\"") >&5 24908 (eval $ac_try) 2>&5 24909 ac_status=$? 24910 echo "$as_me:24910: \$? = $ac_status" >&5 24911 (exit "$ac_status"); }; }; then 24912 24913 cf_cv_const_x_string=no 24914 24915 else 24916 echo "$as_me: failed program was:" >&5 24917 cat "conftest.$ac_ext" >&5 24918 24919 cf_cv_const_x_string=yes 24920 24921 fi 24922 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 24923 24924 fi 24925 echo "$as_me:24925: result: $cf_cv_const_x_string" >&5 24926 echo "${ECHO_T}$cf_cv_const_x_string" >&6 24927 24928 LIBS="$cf_save_LIBS_CF_CONST_X_STRING" 24929 CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING" 24930 CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING" 24931 24932 case "$cf_cv_const_x_string" in 24933 (no) 24934 24935 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 24936 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES" 24937 24938 ;; 24939 (*) 24940 24941 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 24942 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING" 24943 24944 ;; 24945 esac 24946 24947 else 24948 echo "$as_me: failed program was:" >&5 24949 cat "conftest.$ac_ext" >&5 24950 fi 24951 rm -f "conftest.$ac_objext" "conftest.$ac_ext" 24952 fi 24953 cat > "conftest.$ac_ext" <<EOF 24954 #line 24954 "${as_me:-configure}" 24955 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; } 24956 EOF 24957 if test "$INTEL_COMPILER" = yes 24958 then 24959 # The "-wdXXX" options suppress warnings: 24960 # remark #1419: external declaration in primary source file 24961 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem) 24962 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem) 24963 # remark #193: zero used for undefined preprocessing identifier 24964 # remark #593: variable "curs_sb_left_arrow" was set but never used 24965 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits 24966 # remark #869: parameter "tw" was never referenced 24967 # remark #981: operands are evaluated in unspecified order 24968 # warning #279: controlling expression is constant 24969 24970 { echo "$as_me:24970: checking for $CC warning options..." >&5 24971 echo "$as_me: checking for $CC warning options..." >&6;} 24972 cf_save_CFLAGS="$CFLAGS" 24973 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall" 24974 for cf_opt in \ 24975 wd1419 \ 24976 wd1683 \ 24977 wd1684 \ 24978 wd193 \ 24979 wd593 \ 24980 wd279 \ 24981 wd810 \ 24982 wd869 \ 24983 wd981 24984 do 24985 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 24986 if { (eval echo "$as_me:24986: \"$ac_compile\"") >&5 24987 (eval $ac_compile) 2>&5 24988 ac_status=$? 24989 echo "$as_me:24989: \$? = $ac_status" >&5 24990 (exit "$ac_status"); }; then 24991 test -n "$verbose" && echo "$as_me:24991: result: ... -$cf_opt" >&5 24992 echo "${ECHO_T}... -$cf_opt" >&6 24993 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 24994 fi 24995 done 24996 CFLAGS="$cf_save_CFLAGS" 24997 elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown" 24998 then 24999 { echo "$as_me:24999: checking for $CC warning options..." >&5 25000 echo "$as_me: checking for $CC warning options..." >&6;} 25001 cf_save_CFLAGS="$CFLAGS" 25002 cf_warn_CONST="" 25003 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings" 25004 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs" 25005 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings= 25006 for cf_opt in W Wall \ 25007 Wbad-function-cast \ 25008 Wcast-align \ 25009 Wcast-qual \ 25010 Wdeclaration-after-statement \ 25011 Wextra \ 25012 Winline \ 25013 Wmissing-declarations \ 25014 Wmissing-prototypes \ 25015 Wnested-externs \ 25016 Wpointer-arith \ 25017 Wshadow \ 25018 Wstrict-prototypes \ 25019 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum Wno-cast-qual 25020 do 25021 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 25022 if { (eval echo "$as_me:25022: \"$ac_compile\"") >&5 25023 (eval $ac_compile) 2>&5 25024 ac_status=$? 25025 echo "$as_me:25025: \$? = $ac_status" >&5 25026 (exit "$ac_status"); }; then 25027 test -n "$verbose" && echo "$as_me:25027: result: ... -$cf_opt" >&5 25028 echo "${ECHO_T}... -$cf_opt" >&6 25029 case "$cf_opt" in 25030 (Winline) 25031 case "$GCC_VERSION" in 25032 ([34].*) 25033 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 25034 25035 echo "${as_me:-configure}:25035: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 25036 25037 continue;; 25038 esac 25039 ;; 25040 (Wpointer-arith) 25041 case "$GCC_VERSION" in 25042 ([12].*) 25043 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 25044 25045 echo "${as_me:-configure}:25045: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 25046 25047 continue;; 25048 esac 25049 ;; 25050 esac 25051 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 25052 fi 25053 done 25054 CFLAGS="$cf_save_CFLAGS" 25055 fi 25056 rm -rf ./conftest* 25057 25058 fi 25059 25060 if test "$GCC" = yes || test "$GXX" = yes 25061 then 25062 cat > conftest.i <<EOF 25063 #ifndef GCC_PRINTF 25064 #define GCC_PRINTF 0 25065 #endif 25066 #ifndef GCC_SCANF 25067 #define GCC_SCANF 0 25068 #endif 25069 #ifndef GCC_NORETURN 25070 #define GCC_NORETURN /* nothing */ 25071 #endif 25072 #ifndef GCC_UNUSED 25073 #define GCC_UNUSED /* nothing */ 25074 #endif 25075 EOF 25076 if test "$GCC" = yes 25077 then 25078 { echo "$as_me:25078: checking for $CC __attribute__ directives..." >&5 25079 echo "$as_me: checking for $CC __attribute__ directives..." >&6;} 25080 cat > "conftest.$ac_ext" <<EOF 25081 #line 25081 "${as_me:-configure}" 25082 #include <stdio.h> 25083 #include "confdefs.h" 25084 #include "conftest.h" 25085 #include "conftest.i" 25086 #if GCC_PRINTF 25087 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) 25088 #else 25089 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/ 25090 #endif 25091 #if GCC_SCANF 25092 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) 25093 #else 25094 #define GCC_SCANFLIKE(fmt,var) /*nothing*/ 25095 #endif 25096 extern void wow(char *,...) GCC_SCANFLIKE(1,2); 25097 extern GCC_NORETURN void oops(char *,...) GCC_PRINTFLIKE(1,2); 25098 extern GCC_NORETURN void foo(void); 25099 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; } 25100 EOF 25101 cf_printf_attribute=no 25102 cf_scanf_attribute=no 25103 for cf_attribute in scanf printf unused noreturn 25104 do 25105 25106 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 25107 25108 cf_directive="__attribute__(($cf_attribute))" 25109 echo "checking for $CC $cf_directive" 1>&5 25110 25111 case "$cf_attribute" in 25112 (printf) 25113 cf_printf_attribute=yes 25114 cat >conftest.h <<EOF 25115 #define GCC_$cf_ATTRIBUTE 1 25116 EOF 25117 ;; 25118 (scanf) 25119 cf_scanf_attribute=yes 25120 cat >conftest.h <<EOF 25121 #define GCC_$cf_ATTRIBUTE 1 25122 EOF 25123 ;; 25124 (*) 25125 cat >conftest.h <<EOF 25126 #define GCC_$cf_ATTRIBUTE $cf_directive 25127 EOF 25128 ;; 25129 esac 25130 25131 if { (eval echo "$as_me:25131: \"$ac_compile\"") >&5 25132 (eval $ac_compile) 2>&5 25133 ac_status=$? 25134 echo "$as_me:25134: \$? = $ac_status" >&5 25135 (exit "$ac_status"); }; then 25136 test -n "$verbose" && echo "$as_me:25136: result: ... $cf_attribute" >&5 25137 echo "${ECHO_T}... $cf_attribute" >&6 25138 cat conftest.h >>confdefs.h 25139 case "$cf_attribute" in 25140 (noreturn) 25141 25142 cat >>confdefs.h <<EOF 25143 #define GCC_NORETURN $cf_directive 25144 EOF 25145 25146 ;; 25147 (printf) 25148 cf_value='/* nothing */' 25149 if test "$cf_printf_attribute" != no ; then 25150 cf_value='__attribute__((format(printf,fmt,var)))' 25151 25152 cat >>confdefs.h <<\EOF 25153 #define GCC_PRINTF 1 25154 EOF 25155 25156 fi 25157 25158 cat >>confdefs.h <<EOF 25159 #define GCC_PRINTFLIKE(fmt,var) $cf_value 25160 EOF 25161 25162 ;; 25163 (scanf) 25164 cf_value='/* nothing */' 25165 if test "$cf_scanf_attribute" != no ; then 25166 cf_value='__attribute__((format(scanf,fmt,var)))' 25167 25168 cat >>confdefs.h <<\EOF 25169 #define GCC_SCANF 1 25170 EOF 25171 25172 fi 25173 25174 cat >>confdefs.h <<EOF 25175 #define GCC_SCANFLIKE(fmt,var) $cf_value 25176 EOF 25177 25178 ;; 25179 (unused) 25180 25181 cat >>confdefs.h <<EOF 25182 #define GCC_UNUSED $cf_directive 25183 EOF 25184 25185 ;; 25186 esac 25187 fi 25188 done 25189 else 25190 ${FGREP-fgrep} define conftest.i >>confdefs.h 25191 fi 25192 rm -rf ./conftest* 25193 fi 25194 25195 fi 25196 25197 test "$disable_setuid" = yes && 25198 cat >>confdefs.h <<\EOF 25199 #define DISABLE_SETUID 1 25200 EOF 25201 25202 test "$disable_setgid" = yes && 25203 cat >>confdefs.h <<\EOF 25204 #define DISABLE_SETGID 1 25205 EOF 25206 25207 if test $disable_setuid = yes ; then 25208 MAY_SETUID="#" 25209 NOT_SETUID= 25210 elif test $disable_setgid = yes ; then 25211 MAY_SETUID="#" 25212 NOT_SETUID= 25213 else 25214 MAY_SETUID= 25215 NOT_SETUID="#" 25216 fi 25217 25218 ### remove from CPPFLAGS the optional features we define in xtermcfg.h 25219 ### or other conflicting symbols that may be defined via imake: 25220 for cf_def in \ 25221 __STDC__ \ 25222 ALLOWLOGGING \ 25223 ALLOWLOGFILEEXEC \ 25224 OPT_LUIT_PROG \ 25225 OPT_WIDE_CHARS \ 25226 SCROLLBAR_RIGHT \ 25227 USE_TTY_GROUP \ 25228 USE_UTEMPTER \ 25229 XRENDERFONT 25230 do 25231 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-D$cf_def//` 25232 done 25233 25234 echo "$as_me:25234: checking if filesystem supports mixed-case filenames" >&5 25235 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6 25236 if test "${cf_cv_mixedcase+set}" = set; then 25237 echo $ECHO_N "(cached) $ECHO_C" >&6 25238 else 25239 25240 if test "$cross_compiling" = yes ; then 25241 case "$target_alias" in 25242 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*) 25243 cf_cv_mixedcase=no 25244 ;; 25245 (*) 25246 cf_cv_mixedcase=yes 25247 ;; 25248 esac 25249 else 25250 rm -f conftest CONFTEST 25251 echo test >conftest 25252 if test -f CONFTEST ; then 25253 cf_cv_mixedcase=no 25254 else 25255 cf_cv_mixedcase=yes 25256 fi 25257 rm -f conftest CONFTEST 25258 fi 25259 25260 fi 25261 echo "$as_me:25261: result: $cf_cv_mixedcase" >&5 25262 echo "${ECHO_T}$cf_cv_mixedcase" >&6 25263 test "$cf_cv_mixedcase" = yes && 25264 cat >>confdefs.h <<\EOF 25265 #define MIXEDCASE_FILENAMES 1 25266 EOF 25267 25268 for ac_prog in exctags ctags 25269 do 25270 # Extract the first word of "$ac_prog", so it can be a program name with args. 25271 set dummy $ac_prog; ac_word=$2 25272 echo "$as_me:25272: checking for $ac_word" >&5 25273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 25274 if test "${ac_cv_prog_CTAGS+set}" = set; then 25275 echo $ECHO_N "(cached) $ECHO_C" >&6 25276 else 25277 if test -n "$CTAGS"; then 25278 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test. 25279 else 25280 ac_save_IFS=$IFS; IFS=$ac_path_separator 25281 ac_dummy="$PATH" 25282 for ac_dir in $ac_dummy; do 25283 IFS=$ac_save_IFS 25284 test -z "$ac_dir" && ac_dir=. 25285 $as_executable_p "$ac_dir/$ac_word" || continue 25286 ac_cv_prog_CTAGS="$ac_prog" 25287 echo "$as_me:25287: found $ac_dir/$ac_word" >&5 25288 break 25289 done 25290 25291 fi 25292 fi 25293 CTAGS=$ac_cv_prog_CTAGS 25294 if test -n "$CTAGS"; then 25295 echo "$as_me:25295: result: $CTAGS" >&5 25296 echo "${ECHO_T}$CTAGS" >&6 25297 else 25298 echo "$as_me:25298: result: no" >&5 25299 echo "${ECHO_T}no" >&6 25300 fi 25301 25302 test -n "$CTAGS" && break 25303 done 25304 25305 for ac_prog in exetags etags 25306 do 25307 # Extract the first word of "$ac_prog", so it can be a program name with args. 25308 set dummy $ac_prog; ac_word=$2 25309 echo "$as_me:25309: checking for $ac_word" >&5 25310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 25311 if test "${ac_cv_prog_ETAGS+set}" = set; then 25312 echo $ECHO_N "(cached) $ECHO_C" >&6 25313 else 25314 if test -n "$ETAGS"; then 25315 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test. 25316 else 25317 ac_save_IFS=$IFS; IFS=$ac_path_separator 25318 ac_dummy="$PATH" 25319 for ac_dir in $ac_dummy; do 25320 IFS=$ac_save_IFS 25321 test -z "$ac_dir" && ac_dir=. 25322 $as_executable_p "$ac_dir/$ac_word" || continue 25323 ac_cv_prog_ETAGS="$ac_prog" 25324 echo "$as_me:25324: found $ac_dir/$ac_word" >&5 25325 break 25326 done 25327 25328 fi 25329 fi 25330 ETAGS=$ac_cv_prog_ETAGS 25331 if test -n "$ETAGS"; then 25332 echo "$as_me:25332: result: $ETAGS" >&5 25333 echo "${ECHO_T}$ETAGS" >&6 25334 else 25335 echo "$as_me:25335: result: no" >&5 25336 echo "${ECHO_T}no" >&6 25337 fi 25338 25339 test -n "$ETAGS" && break 25340 done 25341 25342 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args. 25343 set dummy ${CTAGS:-ctags}; ac_word=$2 25344 echo "$as_me:25344: checking for $ac_word" >&5 25345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 25346 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then 25347 echo $ECHO_N "(cached) $ECHO_C" >&6 25348 else 25349 if test -n "$MAKE_LOWER_TAGS"; then 25350 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test. 25351 else 25352 ac_save_IFS=$IFS; IFS=$ac_path_separator 25353 ac_dummy="$PATH" 25354 for ac_dir in $ac_dummy; do 25355 IFS=$ac_save_IFS 25356 test -z "$ac_dir" && ac_dir=. 25357 $as_executable_p "$ac_dir/$ac_word" || continue 25358 ac_cv_prog_MAKE_LOWER_TAGS="yes" 25359 echo "$as_me:25359: found $ac_dir/$ac_word" >&5 25360 break 25361 done 25362 25363 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no" 25364 fi 25365 fi 25366 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS 25367 if test -n "$MAKE_LOWER_TAGS"; then 25368 echo "$as_me:25368: result: $MAKE_LOWER_TAGS" >&5 25369 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6 25370 else 25371 echo "$as_me:25371: result: no" >&5 25372 echo "${ECHO_T}no" >&6 25373 fi 25374 25375 if test "$cf_cv_mixedcase" = yes ; then 25376 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args. 25377 set dummy ${ETAGS:-etags}; ac_word=$2 25378 echo "$as_me:25378: checking for $ac_word" >&5 25379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 25380 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then 25381 echo $ECHO_N "(cached) $ECHO_C" >&6 25382 else 25383 if test -n "$MAKE_UPPER_TAGS"; then 25384 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test. 25385 else 25386 ac_save_IFS=$IFS; IFS=$ac_path_separator 25387 ac_dummy="$PATH" 25388 for ac_dir in $ac_dummy; do 25389 IFS=$ac_save_IFS 25390 test -z "$ac_dir" && ac_dir=. 25391 $as_executable_p "$ac_dir/$ac_word" || continue 25392 ac_cv_prog_MAKE_UPPER_TAGS="yes" 25393 echo "$as_me:25393: found $ac_dir/$ac_word" >&5 25394 break 25395 done 25396 25397 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no" 25398 fi 25399 fi 25400 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS 25401 if test -n "$MAKE_UPPER_TAGS"; then 25402 echo "$as_me:25402: result: $MAKE_UPPER_TAGS" >&5 25403 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6 25404 else 25405 echo "$as_me:25405: result: no" >&5 25406 echo "${ECHO_T}no" >&6 25407 fi 25408 25409 else 25410 MAKE_UPPER_TAGS=no 25411 fi 25412 25413 if test "$MAKE_UPPER_TAGS" = yes ; then 25414 MAKE_UPPER_TAGS= 25415 else 25416 MAKE_UPPER_TAGS="#" 25417 fi 25418 25419 if test "$MAKE_LOWER_TAGS" = yes ; then 25420 MAKE_LOWER_TAGS= 25421 else 25422 MAKE_LOWER_TAGS="#" 25423 fi 25424 25425 LD_RPATH_OPT= 25426 if test "x$cf_cv_enable_rpath" != xno 25427 then 25428 echo "$as_me:25428: checking for an rpath option" >&5 25429 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6 25430 case "$cf_cv_system_name" in 25431 (irix*) 25432 if test "$GCC" = yes; then 25433 LD_RPATH_OPT="-Wl,-rpath," 25434 else 25435 LD_RPATH_OPT="-rpath " 25436 fi 25437 ;; 25438 (linux*|gnu*|k*bsd*-gnu|freebsd*) 25439 LD_RPATH_OPT="-Wl,-rpath," 25440 ;; 25441 (openbsd[2-9].*|mirbsd*) 25442 LD_RPATH_OPT="-Wl,-rpath," 25443 ;; 25444 (dragonfly*) 25445 LD_RPATH_OPT="-rpath " 25446 ;; 25447 (netbsd*) 25448 LD_RPATH_OPT="-Wl,-rpath," 25449 ;; 25450 (osf*|mls+*) 25451 LD_RPATH_OPT="-rpath " 25452 ;; 25453 (solaris2*) 25454 LD_RPATH_OPT="-R" 25455 ;; 25456 (*) 25457 ;; 25458 esac 25459 echo "$as_me:25459: result: $LD_RPATH_OPT" >&5 25460 echo "${ECHO_T}$LD_RPATH_OPT" >&6 25461 25462 case "x$LD_RPATH_OPT" in 25463 (x-R*) 25464 echo "$as_me:25464: checking if we need a space after rpath option" >&5 25465 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6 25466 cf_save_LIBS="$LIBS" 25467 25468 cf_add_libs="$LIBS" 25469 # reverse order 25470 cf_add_0lib= 25471 for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 25472 # filter duplicates 25473 for cf_add_1lib in $cf_add_0lib; do 25474 for cf_add_2lib in $cf_add_libs; do 25475 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 25476 cf_add_1lib= 25477 break 25478 fi 25479 done 25480 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 25481 done 25482 LIBS="$cf_add_libs" 25483 25484 cat >"conftest.$ac_ext" <<_ACEOF 25485 #line 25485 "configure" 25486 #include "confdefs.h" 25487 25488 int 25489 main (void) 25490 { 25491 25492 ; 25493 return 0; 25494 } 25495 _ACEOF 25496 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 25497 if { (eval echo "$as_me:25497: \"$ac_link\"") >&5 25498 (eval $ac_link) 2>&5 25499 ac_status=$? 25500 echo "$as_me:25500: \$? = $ac_status" >&5 25501 (exit "$ac_status"); } && 25502 { ac_try='test -s "conftest$ac_exeext"' 25503 { (eval echo "$as_me:25503: \"$ac_try\"") >&5 25504 (eval $ac_try) 2>&5 25505 ac_status=$? 25506 echo "$as_me:25506: \$? = $ac_status" >&5 25507 (exit "$ac_status"); }; }; then 25508 cf_rpath_space=no 25509 else 25510 echo "$as_me: failed program was:" >&5 25511 cat "conftest.$ac_ext" >&5 25512 cf_rpath_space=yes 25513 fi 25514 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 25515 LIBS="$cf_save_LIBS" 25516 echo "$as_me:25516: result: $cf_rpath_space" >&5 25517 echo "${ECHO_T}$cf_rpath_space" >&6 25518 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT " 25519 ;; 25520 esac 25521 fi 25522 25523 echo "$as_me:25523: checking if rpath-hack should be disabled" >&5 25524 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6 25525 25526 # Check whether --enable-rpath-hack or --disable-rpath-hack was given. 25527 if test "${enable_rpath_hack+set}" = set; then 25528 enableval="$enable_rpath_hack" 25529 test "$enableval" != no && enableval=yes 25530 if test "$enableval" != "yes" ; then 25531 enable_rpath_hack=no 25532 else 25533 enable_rpath_hack=yes 25534 fi 25535 else 25536 enableval=yes 25537 enable_rpath_hack=yes 25538 25539 fi; 25540 if test "x$enable_rpath_hack" = xno; then cf_disable_rpath_hack=yes; else cf_disable_rpath_hack=no; fi 25541 echo "$as_me:25541: result: $cf_disable_rpath_hack" >&5 25542 echo "${ECHO_T}$cf_disable_rpath_hack" >&6 25543 25544 if test "$enable_rpath_hack" = yes ; then 25545 25546 echo "$as_me:25546: checking for updated LDFLAGS" >&5 25547 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6 25548 if test -n "$LD_RPATH_OPT" ; then 25549 echo "$as_me:25549: result: maybe" >&5 25550 echo "${ECHO_T}maybe" >&6 25551 25552 for ac_prog in ldd 25553 do 25554 # Extract the first word of "$ac_prog", so it can be a program name with args. 25555 set dummy $ac_prog; ac_word=$2 25556 echo "$as_me:25556: checking for $ac_word" >&5 25557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 25558 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then 25559 echo $ECHO_N "(cached) $ECHO_C" >&6 25560 else 25561 if test -n "$cf_ldd_prog"; then 25562 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test. 25563 else 25564 ac_save_IFS=$IFS; IFS=$ac_path_separator 25565 ac_dummy="$PATH" 25566 for ac_dir in $ac_dummy; do 25567 IFS=$ac_save_IFS 25568 test -z "$ac_dir" && ac_dir=. 25569 $as_executable_p "$ac_dir/$ac_word" || continue 25570 ac_cv_prog_cf_ldd_prog="$ac_prog" 25571 echo "$as_me:25571: found $ac_dir/$ac_word" >&5 25572 break 25573 done 25574 25575 fi 25576 fi 25577 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog 25578 if test -n "$cf_ldd_prog"; then 25579 echo "$as_me:25579: result: $cf_ldd_prog" >&5 25580 echo "${ECHO_T}$cf_ldd_prog" >&6 25581 else 25582 echo "$as_me:25582: result: no" >&5 25583 echo "${ECHO_T}no" >&6 25584 fi 25585 25586 test -n "$cf_ldd_prog" && break 25587 done 25588 test -n "$cf_ldd_prog" || cf_ldd_prog="no" 25589 25590 cf_rpath_list="/usr/lib /lib" 25591 if test "$cf_ldd_prog" != no 25592 then 25593 cf_rpath_oops= 25594 25595 cat >"conftest.$ac_ext" <<_ACEOF 25596 #line 25596 "configure" 25597 #include "confdefs.h" 25598 #include <stdio.h> 25599 int 25600 main (void) 25601 { 25602 printf("Hello"); 25603 ; 25604 return 0; 25605 } 25606 _ACEOF 25607 rm -f "conftest.$ac_objext" "conftest$ac_exeext" 25608 if { (eval echo "$as_me:25608: \"$ac_link\"") >&5 25609 (eval $ac_link) 2>&5 25610 ac_status=$? 25611 echo "$as_me:25611: \$? = $ac_status" >&5 25612 (exit "$ac_status"); } && 25613 { ac_try='test -s "conftest$ac_exeext"' 25614 { (eval echo "$as_me:25614: \"$ac_try\"") >&5 25615 (eval $ac_try) 2>&5 25616 ac_status=$? 25617 echo "$as_me:25617: \$? = $ac_status" >&5 25618 (exit "$ac_status"); }; }; then 25619 cf_rpath_oops=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} ' not found' | sed -e 's% =>.*$%%' |sort | uniq` 25620 cf_rpath_list=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq` 25621 else 25622 echo "$as_me: failed program was:" >&5 25623 cat "conftest.$ac_ext" >&5 25624 fi 25625 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 25626 25627 # If we passed the link-test, but get a "not found" on a given library, 25628 # this could be due to inept reconfiguration of gcc to make it only 25629 # partly honor /usr/local/lib (or whatever). Sometimes this behavior 25630 # is intentional, e.g., installing gcc in /usr/bin and suppressing the 25631 # /usr/local libraries. 25632 if test -n "$cf_rpath_oops" 25633 then 25634 for cf_rpath_src in $cf_rpath_oops 25635 do 25636 for cf_rpath_dir in \ 25637 /usr/local \ 25638 /usr/pkg \ 25639 /opt/sfw 25640 do 25641 if test -f "$cf_rpath_dir/lib/$cf_rpath_src" 25642 then 25643 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6 25644 25645 echo "${as_me:-configure}:25645: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5 25646 25647 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib" 25648 break 25649 fi 25650 done 25651 done 25652 fi 25653 fi 25654 25655 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6 25656 25657 echo "${as_me:-configure}:25657: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5 25658 25659 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6 25660 25661 echo "${as_me:-configure}:25661: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5 25662 25663 cf_rpath_dst= 25664 for cf_rpath_src in $LDFLAGS 25665 do 25666 case "$cf_rpath_src" in 25667 (-L*) 25668 25669 # check if this refers to a directory which we will ignore 25670 cf_rpath_skip=no 25671 if test -n "$cf_rpath_list" 25672 then 25673 for cf_rpath_item in $cf_rpath_list 25674 do 25675 if test "x$cf_rpath_src" = "x-L$cf_rpath_item" 25676 then 25677 cf_rpath_skip=yes 25678 break 25679 fi 25680 done 25681 fi 25682 25683 if test "$cf_rpath_skip" = no 25684 then 25685 # transform the option 25686 if test "$LD_RPATH_OPT" = "-R " ; then 25687 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"` 25688 else 25689 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"` 25690 fi 25691 25692 # if we have not already added this, add it now 25693 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"` 25694 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS" 25695 then 25696 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6 25697 25698 echo "${as_me:-configure}:25698: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5 25699 25700 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS" 25701 fi 25702 fi 25703 ;; 25704 esac 25705 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src" 25706 done 25707 LDFLAGS=$cf_rpath_dst 25708 25709 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6 25710 25711 echo "${as_me:-configure}:25711: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5 25712 25713 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6 25714 25715 echo "${as_me:-configure}:25715: testing ...checking LIBS $LIBS ..." 1>&5 25716 25717 cf_rpath_dst= 25718 for cf_rpath_src in $LIBS 25719 do 25720 case "$cf_rpath_src" in 25721 (-L*) 25722 25723 # check if this refers to a directory which we will ignore 25724 cf_rpath_skip=no 25725 if test -n "$cf_rpath_list" 25726 then 25727 for cf_rpath_item in $cf_rpath_list 25728 do 25729 if test "x$cf_rpath_src" = "x-L$cf_rpath_item" 25730 then 25731 cf_rpath_skip=yes 25732 break 25733 fi 25734 done 25735 fi 25736 25737 if test "$cf_rpath_skip" = no 25738 then 25739 # transform the option 25740 if test "$LD_RPATH_OPT" = "-R " ; then 25741 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"` 25742 else 25743 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"` 25744 fi 25745 25746 # if we have not already added this, add it now 25747 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"` 25748 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS" 25749 then 25750 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6 25751 25752 echo "${as_me:-configure}:25752: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5 25753 25754 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS" 25755 fi 25756 fi 25757 ;; 25758 esac 25759 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src" 25760 done 25761 LIBS=$cf_rpath_dst 25762 25763 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6 25764 25765 echo "${as_me:-configure}:25765: testing ...checked LIBS $LIBS ..." 1>&5 25766 25767 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6 25768 25769 echo "${as_me:-configure}:25769: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5 25770 25771 else 25772 echo "$as_me:25772: result: no" >&5 25773 echo "${ECHO_T}no" >&6 25774 fi 25775 25776 fi 25777 25778 # Force plink.sh to not trim pcre's libraries, which have the same symbol 25779 # names as the system regexp. 25780 if test "$with_pcre" != no 25781 then 25782 LIBS=`echo "$LIBS" | sed -e 's/-lpcre/-kpcre/g'` 25783 fi 25784 25785 ### output xtermcfg.h, etc 25786 ac_config_files="$ac_config_files Makefile df-install minstall:minstall.in run-tic.sh:run-tic.in" 25787 25788 cat >confcache <<\_ACEOF 25789 # This file is a shell script that caches the results of configure 25790 # tests run on this system so they can be shared between configure 25791 # scripts and configure runs, see configure's option --config-cache. 25792 # It is not useful on other systems. If it contains results you don't 25793 # want to keep, you may remove or edit it. 25794 # 25795 # config.status only pays attention to the cache file if you give it 25796 # the --recheck option to rerun configure. 25797 # 25798 # `ac_cv_env_foo' variables (set or unset) will be overridden when 25799 # loading this file, other *unset* `ac_cv_foo' will be assigned the 25800 # following values. 25801 25802 _ACEOF 25803 25804 # The following way of writing the cache mishandles newlines in values, 25805 # but we know of no workaround that is simple, portable, and efficient. 25806 # So, don't put newlines in cache variables' values. 25807 # Ultrix sh set writes to stderr and can't be redirected directly, 25808 # and sets the high bit in the cache file unless we assign to the vars. 25809 { 25810 (set) 2>&1 | 25811 case `(ac_space=' '; set | grep ac_space) 2>&1` in 25812 *ac_space=\ *) 25813 # `set' does not quote correctly, so add quotes (double-quote 25814 # substitution turns \\\\ into \\, and sed turns \\ into \). 25815 sed -n \ 25816 "s/'/'\\\\''/g; 25817 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 25818 ;; 25819 *) 25820 # `set' quotes correctly as required by POSIX, so do not add quotes. 25821 sed -n \ 25822 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 25823 ;; 25824 esac; 25825 } | 25826 sed ' 25827 t clear 25828 : clear 25829 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 25830 t end 25831 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 25832 : end' >>confcache 25833 if cmp -s $cache_file confcache; then :; else 25834 if test -w $cache_file; then 25835 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 25836 cat confcache >$cache_file 25837 else 25838 echo "not updating unwritable cache $cache_file" 25839 fi 25840 fi 25841 rm -f confcache 25842 25843 test "x$prefix" = xNONE && prefix=$ac_default_prefix 25844 # Let make expand exec_prefix. 25845 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 25846 25847 # VPATH may cause trouble with some makes, so we remove $(srcdir), 25848 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 25849 # trailing colons and then remove the whole line if VPATH becomes empty 25850 # (actually we leave an empty line to preserve line numbers). 25851 if test "x$srcdir" = x.; then 25852 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 25853 s/:*\$(srcdir):*/:/; 25854 s/:*\${srcdir}:*/:/; 25855 s/:*@srcdir@:*/:/; 25856 s/^\([^=]*=[ ]*\):*/\1/; 25857 s/:*$//; 25858 s/^[^=]*=[ ]*$//; 25859 }' 25860 fi 25861 25862 DEFS=-DHAVE_CONFIG_H 25863 25864 : "${CONFIG_STATUS=./config.status}" 25865 ac_clean_files_save=$ac_clean_files 25866 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 25867 { echo "$as_me:25867: creating $CONFIG_STATUS" >&5 25868 echo "$as_me: creating $CONFIG_STATUS" >&6;} 25869 cat >"$CONFIG_STATUS" <<_ACEOF 25870 #! $SHELL 25871 # Generated automatically by configure. 25872 # Run this file to recreate the current configuration. 25873 # Compiler output produced by configure, useful for debugging 25874 # configure, is in config.log if it exists. 25875 25876 me=\`echo "\$0" | sed -e 's,.*\\/,,'\` 25877 25878 debug=false 25879 SHELL=\${CONFIG_SHELL-$SHELL} 25880 ac_cs_invocation="\$0 \$@" 25881 25882 CLICOLOR_FORCE= GREP_OPTIONS= 25883 unset CLICOLOR_FORCE GREP_OPTIONS 25884 _ACEOF 25885 25886 cat >>"$CONFIG_STATUS" <<\_ACEOF 25887 # Be Bourne compatible 25888 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 25889 emulate sh 25890 NULLCMD=: 25891 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 25892 set -o posix 25893 fi 25894 25895 # Name of the executable. 25896 as_me=`echo "$0" |sed 's,.*[\\/],,'` 25897 25898 if expr a : '\(a\)' >/dev/null 2>&1; then 25899 as_expr="expr" 25900 else 25901 as_expr="false" 25902 fi 25903 25904 rm -f conf$$ conf$$.exe conf$$.file 25905 echo >conf$$.file 25906 if ln -s conf$$.file conf$$ 2>/dev/null; then 25907 # We could just check for DJGPP; but this test a) works b) is more generic 25908 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 25909 if test -f conf$$.exe; then 25910 # Don't use ln at all; we don't have any links 25911 as_ln_s='cp -p' 25912 else 25913 as_ln_s='ln -s' 25914 fi 25915 elif ln conf$$.file conf$$ 2>/dev/null; then 25916 as_ln_s='ln' 25917 else 25918 as_ln_s='cp -p' 25919 fi 25920 rm -f conf$$ conf$$.exe conf$$.file 25921 25922 as_executable_p="test -f" 25923 25924 # Support unset when possible. 25925 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 25926 as_unset="unset" 25927 else 25928 as_unset="false" 25929 fi 25930 25931 # NLS nuisances. 25932 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 25933 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 25934 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 25935 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 25936 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 25937 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 25938 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 25939 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 25940 25941 # IFS 25942 # We need space, tab and new line, in precisely that order. 25943 as_nl=' 25944 ' 25945 IFS=" $as_nl" 25946 25947 # CDPATH. 25948 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 25949 25950 exec 6>&1 25951 25952 _ACEOF 25953 25954 # Files that config.status was made for. 25955 if test -n "$ac_config_files"; then 25956 echo "config_files=\"$ac_config_files\"" >>"$CONFIG_STATUS" 25957 fi 25958 25959 if test -n "$ac_config_headers"; then 25960 echo "config_headers=\"$ac_config_headers\"" >>"$CONFIG_STATUS" 25961 fi 25962 25963 if test -n "$ac_config_links"; then 25964 echo "config_links=\"$ac_config_links\"" >>"$CONFIG_STATUS" 25965 fi 25966 25967 if test -n "$ac_config_commands"; then 25968 echo "config_commands=\"$ac_config_commands\"" >>"$CONFIG_STATUS" 25969 fi 25970 25971 cat >>"$CONFIG_STATUS" <<\EOF 25972 25973 ac_cs_usage="\ 25974 \`$as_me' instantiates files from templates according to the 25975 current configuration. 25976 25977 Usage: $0 [OPTIONS] [FILE]... 25978 25979 -h, --help print this help, then exit 25980 -V, --version print version number, then exit 25981 -d, --debug don't remove temporary files 25982 --recheck update $as_me by reconfiguring in the same conditions 25983 --file=FILE[:TEMPLATE] 25984 instantiate the configuration file FILE 25985 --header=FILE[:TEMPLATE] 25986 instantiate the configuration header FILE 25987 25988 Configuration files: 25989 $config_files 25990 25991 Configuration headers: 25992 $config_headers 25993 25994 Report bugs to <dickey@invisible-island.net>." 25995 EOF 25996 25997 cat >>"$CONFIG_STATUS" <<EOF 25998 ac_cs_version="\\ 25999 config.status 26000 configured by $0, generated by GNU Autoconf 2.52.20240618, 26001 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 26002 26003 Copyright 2003-2022,2023 Thomas E. Dickey 26004 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 26005 Free Software Foundation, Inc. 26006 This config.status script is free software; the Free Software Foundation 26007 gives unlimited permission to copy, distribute and modify it." 26008 srcdir="$srcdir" 26009 INSTALL="$INSTALL" 26010 EOF 26011 26012 cat >>"$CONFIG_STATUS" <<\EOF 26013 # If no file are specified by the user, then we need to provide default 26014 # value. By we need to know if files were specified by the user. 26015 ac_need_defaults=: 26016 while test $# != 0 26017 do 26018 case $1 in 26019 --*=*) 26020 ac_option=`expr "x$1" : 'x\([^=]*\)='` 26021 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 26022 shift 26023 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 26024 shift 26025 ;; 26026 -*);; 26027 *) # This is not an option, so the user has probably given explicit 26028 # arguments. 26029 ac_need_defaults=false;; 26030 esac 26031 26032 case $1 in 26033 # Handling of the options. 26034 EOF 26035 cat >>"$CONFIG_STATUS" <<EOF 26036 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 26037 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 26038 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 26039 EOF 26040 cat >>"$CONFIG_STATUS" <<\EOF 26041 --version | --vers* | -V ) 26042 echo "$ac_cs_version"; exit 0 ;; 26043 --he | --h) 26044 # Conflict between --help and --header 26045 { { echo "$as_me:26045: error: ambiguous option: $1 26046 Try \`$0 --help' for more information." >&5 26047 echo "$as_me: error: ambiguous option: $1 26048 Try \`$0 --help' for more information." >&2;} 26049 { (exit 1); exit 1; }; };; 26050 --help | --hel | -h ) 26051 echo "$ac_cs_usage"; exit 0 ;; 26052 --debug | --d* | -d ) 26053 debug=: ;; 26054 --file | --fil | --fi | --f ) 26055 shift 26056 CONFIG_FILES="$CONFIG_FILES $1" 26057 ac_need_defaults=false;; 26058 --header | --heade | --head | --hea ) 26059 shift 26060 CONFIG_HEADERS="$CONFIG_HEADERS $1" 26061 ac_need_defaults=false;; 26062 26063 # This is an error. 26064 -*) { { echo "$as_me:26064: error: unrecognized option: $1 26065 Try \`$0 --help' for more information." >&5 26066 echo "$as_me: error: unrecognized option: $1 26067 Try \`$0 --help' for more information." >&2;} 26068 { (exit 1); exit 1; }; } ;; 26069 26070 *) ac_config_targets="$ac_config_targets $1" ;; 26071 26072 esac 26073 shift 26074 done 26075 26076 exec 5>>config.log 26077 cat >&5 << _ACEOF 26078 26079 ## ----------------------- ## 26080 ## Running config.status. ## 26081 ## ----------------------- ## 26082 26083 This file was extended by $as_me 2.52.20240618, executed with 26084 CONFIG_FILES = $CONFIG_FILES 26085 CONFIG_HEADERS = $CONFIG_HEADERS 26086 CONFIG_LINKS = $CONFIG_LINKS 26087 CONFIG_COMMANDS = $CONFIG_COMMANDS 26088 > "$ac_cs_invocation" 26089 on `(hostname || uname -n) 2>/dev/null | sed 1q` 26090 26091 _ACEOF 26092 EOF 26093 26094 cat >>"$CONFIG_STATUS" <<\EOF 26095 for ac_config_target in $ac_config_targets 26096 do 26097 case "$ac_config_target" in 26098 # Handling of arguments. 26099 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 26100 "df-install" ) CONFIG_FILES="$CONFIG_FILES df-install" ;; 26101 "minstall" ) CONFIG_FILES="$CONFIG_FILES minstall:minstall.in" ;; 26102 "run-tic.sh" ) CONFIG_FILES="$CONFIG_FILES run-tic.sh:run-tic.in" ;; 26103 "xtermcfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS xtermcfg.h:xtermcfg.hin" ;; 26104 *) { { echo "$as_me:26104: error: invalid argument: $ac_config_target" >&5 26105 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 26106 { (exit 1); exit 1; }; };; 26107 esac 26108 done 26109 26110 # If the user did not use the arguments to specify the items to instantiate, 26111 # then the envvar interface is used. Set only those that are not. 26112 # We use the long form for the default assignment because of an extremely 26113 # bizarre bug on SunOS 4.1.3. 26114 if "$ac_need_defaults"; then 26115 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 26116 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 26117 fi 26118 26119 # Create a temporary directory, and hook for its removal unless debugging. 26120 $debug || 26121 { 26122 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 26123 trap '{ (exit 1); exit 1; }' 1 2 13 15 26124 } 26125 26126 # Create a (secure) tmp directory for tmp files. 26127 : "${TMPDIR=/tmp}" 26128 { 26129 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 26130 test -n "$tmp" && test -d "$tmp" 26131 } || 26132 { 26133 tmp=$TMPDIR/cs$$-$RANDOM 26134 (umask 077 && mkdir "$tmp") 26135 } || 26136 { 26137 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 26138 { (exit 1); exit 1; } 26139 } 26140 26141 EOF 26142 26143 cat >>"$CONFIG_STATUS" <<EOF 26144 26145 # 26146 # CONFIG_FILES section. 26147 # 26148 26149 # No need to generate the scripts if there are no CONFIG_FILES. 26150 # This happens for instance when ./config.status config.h 26151 if test -n "\$CONFIG_FILES"; then 26152 # Protect against being on the right side of a sed subst in config.status. 26153 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 26154 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >"\$tmp"/subs.sed <<\\CEOF 26155 s,@SHELL@,$SHELL,;t t 26156 s,@exec_prefix@,$exec_prefix,;t t 26157 s,@prefix@,$prefix,;t t 26158 s,@program_transform_name@,$program_transform_name,;t t 26159 s,@bindir@,$bindir,;t t 26160 s,@sbindir@,$sbindir,;t t 26161 s,@libexecdir@,$libexecdir,;t t 26162 s,@datarootdir@,$datarootdir,;t t 26163 s,@datadir@,$datadir,;t t 26164 s,@sysconfdir@,$sysconfdir,;t t 26165 s,@sharedstatedir@,$sharedstatedir,;t t 26166 s,@localstatedir@,$localstatedir,;t t 26167 s,@runstatedir@,$runstatedir,;t t 26168 s,@libdir@,$libdir,;t t 26169 s,@includedir@,$includedir,;t t 26170 s,@oldincludedir@,$oldincludedir,;t t 26171 s,@infodir@,$infodir,;t t 26172 s,@mandir@,$mandir,;t t 26173 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 26174 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 26175 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 26176 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 26177 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 26178 s,@build_alias@,$build_alias,;t t 26179 s,@host_alias@,$host_alias,;t t 26180 s,@target_alias@,$target_alias,;t t 26181 s,@ECHO_C@,$ECHO_C,;t t 26182 s,@ECHO_N@,$ECHO_N,;t t 26183 s,@ECHO_T@,$ECHO_T,;t t 26184 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 26185 s,@DEFS@,$DEFS,;t t 26186 s,@LIBS@,$LIBS,;t t 26187 s,@build@,$build,;t t 26188 s,@build_cpu@,$build_cpu,;t t 26189 s,@build_vendor@,$build_vendor,;t t 26190 s,@build_os@,$build_os,;t t 26191 s,@host@,$host,;t t 26192 s,@host_cpu@,$host_cpu,;t t 26193 s,@host_vendor@,$host_vendor,;t t 26194 s,@host_os@,$host_os,;t t 26195 s,@CC@,$CC,;t t 26196 s,@CFLAGS@,$CFLAGS,;t t 26197 s,@LDFLAGS@,$LDFLAGS,;t t 26198 s,@CPPFLAGS@,$CPPFLAGS,;t t 26199 s,@ac_ct_CC@,$ac_ct_CC,;t t 26200 s,@EXEEXT@,$EXEEXT,;t t 26201 s,@OBJEXT@,$OBJEXT,;t t 26202 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t 26203 s,@CPP@,$CPP,;t t 26204 s,@GREP@,$GREP,;t t 26205 s,@EGREP@,$EGREP,;t t 26206 s,@AWK@,$AWK,;t t 26207 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 26208 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 26209 s,@INSTALL_DATA@,$INSTALL_DATA,;t t 26210 s,@LN_S@,$LN_S,;t t 26211 s,@LINT@,$LINT,;t t 26212 s,@LINT_OPTS@,$LINT_OPTS,;t t 26213 s,@LINT_LIBS@,$LINT_LIBS,;t t 26214 s,@APP_CLASS@,$APP_CLASS,;t t 26215 s,@target@,$target,;t t 26216 s,@target_cpu@,$target_cpu,;t t 26217 s,@target_vendor@,$target_vendor,;t t 26218 s,@target_os@,$target_os,;t t 26219 s,@GLOB_FULLPATH_POSIX@,$GLOB_FULLPATH_POSIX,;t t 26220 s,@GLOB_FULLPATH_OTHER@,$GLOB_FULLPATH_OTHER,;t t 26221 s,@APPSDIR@,$APPSDIR,;t t 26222 s,@no_appsdir@,$no_appsdir,;t t 26223 s,@ICON_NAME@,$ICON_NAME,;t t 26224 s,@ICON_SYMLINK@,$ICON_SYMLINK,;t t 26225 s,@PIXMAPDIR@,$PIXMAPDIR,;t t 26226 s,@no_pixmapdir@,$no_pixmapdir,;t t 26227 s,@ICONDIR@,$ICONDIR,;t t 26228 s,@no_icondir@,$no_icondir,;t t 26229 s,@ICON_FORMAT@,$ICON_FORMAT,;t t 26230 s,@ICON_THEME@,$ICON_THEME,;t t 26231 s,@ICON_LIST@,$ICON_LIST,;t t 26232 s,@desktop_utils@,$desktop_utils,;t t 26233 s,@DESKTOP_FLAGS@,$DESKTOP_FLAGS,;t t 26234 s,@DESKTOP_CATEGORY@,$DESKTOP_CATEGORY,;t t 26235 s,@XTERM_PATH@,$XTERM_PATH,;t t 26236 s,@XTERM_SYMLINK@,$XTERM_SYMLINK,;t t 26237 s,@SINSTALL_OPTS@,$SINSTALL_OPTS,;t t 26238 s,@UTMP_NAME@,$UTMP_NAME,;t t 26239 s,@UTMP_PATH@,$UTMP_PATH,;t t 26240 s,@WTMP_NAME@,$WTMP_NAME,;t t 26241 s,@WTMP_PATH@,$WTMP_PATH,;t t 26242 s,@X_CFLAGS@,$X_CFLAGS,;t t 26243 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 26244 s,@X_LIBS@,$X_LIBS,;t t 26245 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 26246 s,@PKG_CONFIG@,$PKG_CONFIG,;t t 26247 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t 26248 s,@ICON_SUFFIX@,$ICON_SUFFIX,;t t 26249 s,@IMAKE@,$IMAKE,;t t 26250 s,@IMAKE_CFLAGS@,$IMAKE_CFLAGS,;t t 26251 s,@IMAKE_LOADFLAGS@,$IMAKE_LOADFLAGS,;t t 26252 s,@GROFF_PATH@,$GROFF_PATH,;t t 26253 s,@NROFF_PATH@,$NROFF_PATH,;t t 26254 s,@TBL_PATH@,$TBL_PATH,;t t 26255 s,@GROFF_NOTE@,$GROFF_NOTE,;t t 26256 s,@NROFF_NOTE@,$NROFF_NOTE,;t t 26257 s,@FGREP@,$FGREP,;t t 26258 s,@cf_man2html@,$cf_man2html,;t t 26259 s,@MAN2HTML_NOTE@,$MAN2HTML_NOTE,;t t 26260 s,@MAN2HTML_PATH@,$MAN2HTML_PATH,;t t 26261 s,@MAN2HTML_TEMP@,$MAN2HTML_TEMP,;t t 26262 s,@default_termid@,$default_termid,;t t 26263 s,@default_TERM@,$default_TERM,;t t 26264 s,@backarrow_is_bs@,$backarrow_is_bs,;t t 26265 s,@backarrow_is_erase@,$backarrow_is_erase,;t t 26266 s,@delete_is_del@,$delete_is_del,;t t 26267 s,@initial_erase@,$initial_erase,;t t 26268 s,@alt_sends_esc@,$alt_sends_esc,;t t 26269 s,@meta_sends_esc@,$meta_sends_esc,;t t 26270 s,@cf_tic_prog@,$cf_tic_prog,;t t 26271 s,@no_ticprog@,$no_ticprog,;t t 26272 s,@TERMINFO_DIR@,$TERMINFO_DIR,;t t 26273 s,@SET_TERMINFO@,$SET_TERMINFO,;t t 26274 s,@double_buffer@,$double_buffer,;t t 26275 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t 26276 s,@FREETYPE_OLD_CONFIG@,$FREETYPE_OLD_CONFIG,;t t 26277 s,@FREETYPE_XFT_CONFIG@,$FREETYPE_XFT_CONFIG,;t t 26278 s,@HAVE_TYPE_FCCHAR32@,$HAVE_TYPE_FCCHAR32,;t t 26279 s,@HAVE_TYPE_XFTCHARSPEC@,$HAVE_TYPE_XFTCHARSPEC,;t t 26280 s,@LUIT@,$LUIT,;t t 26281 s,@STRINGS_MAX@,$STRINGS_MAX,;t t 26282 s,@ECHO_LT@,$ECHO_LT,;t t 26283 s,@ECHO_LD@,$ECHO_LD,;t t 26284 s,@RULE_CC@,$RULE_CC,;t t 26285 s,@SHOW_CC@,$SHOW_CC,;t t 26286 s,@ECHO_CC@,$ECHO_CC,;t t 26287 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t 26288 s,@HAVE_STDNORETURN_H@,$HAVE_STDNORETURN_H,;t t 26289 s,@STDC_NORETURN@,$STDC_NORETURN,;t t 26290 s,@CHARPROC_DEPS@,$CHARPROC_DEPS,;t t 26291 s,@EXTRAHDRS@,$EXTRAHDRS,;t t 26292 s,@EXTRASRCS@,$EXTRASRCS,;t t 26293 s,@EXTRAOBJS@,$EXTRAOBJS,;t t 26294 s,@MAY_SETUID@,$MAY_SETUID,;t t 26295 s,@NOT_SETUID@,$NOT_SETUID,;t t 26296 s,@CTAGS@,$CTAGS,;t t 26297 s,@ETAGS@,$ETAGS,;t t 26298 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t 26299 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t 26300 s,@cf_ldd_prog@,$cf_ldd_prog,;t t 26301 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t 26302 CEOF 26303 26304 EOF 26305 26306 cat >>"$CONFIG_STATUS" <<\EOF 26307 # Split the substitutions into bite-sized pieces for seds with 26308 # small command number limits, like on Digital OSF/1 and HP-UX. 26309 ac_max_sed_lines=48 26310 ac_sed_frag=1 # Number of current file. 26311 ac_beg=1 # First line for current file. 26312 ac_end=$ac_max_sed_lines # Line after last line for current file. 26313 ac_more_lines=: 26314 ac_sed_cmds= 26315 while "$ac_more_lines"; do 26316 if test "$ac_beg" -gt 1; then 26317 sed "1,${ac_beg}d; ${ac_end}q" "$tmp"/subs.sed >"$tmp"/subs.frag 26318 else 26319 sed "${ac_end}q" "$tmp"/subs.sed >"$tmp"/subs.frag 26320 fi 26321 if test ! -s "$tmp"/subs.frag; then 26322 ac_more_lines=false 26323 else 26324 # The purpose of the label and of the branching condition is to 26325 # speed up the sed processing (if there are no `@' at all, there 26326 # is no need to browse any of the substitutions). 26327 # These are the two extra sed commands mentioned above. 26328 (echo ':t 26329 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && sed -e 's/\\\\*$//g' -e 's/$/\\/' -e 's/;t t\\/;t t/' -e 't' -e '3,'$ac_max_sed_lines's/$/\\/' "$tmp"/subs.frag) >"$tmp"/subs-$ac_sed_frag.sed 26330 # It is possible to make a multiline substitution using escaped newlines. 26331 # Ensure that we do not split the substitution between script fragments. 26332 ac_BEG=$ac_end 26333 ac_END=`expr "$ac_end" + "$ac_max_sed_lines"` 26334 sed "1,${ac_BEG}d; ${ac_END}p; q" "$tmp"/subs.sed >"$tmp"/subs.next 26335 if test -s "$tmp"/subs.next; then 26336 grep '^s,@[^@,][^@,]*@,.*$' "$tmp"/subs.next | grep -v '^s,@.*;t t$' >"$tmp"/subs.edit 26337 if test ! -s "$tmp"/subs.edit; then 26338 grep "^s,@[^@,][^@,]*@,.*,;t t$" "$tmp"/subs.next >"$tmp"/subs.edit 26339 if test ! -s "$tmp"/subs.edit; then 26340 if test "$ac_beg" -gt 1; then 26341 ac_end=`expr "$ac_end" - 1` 26342 continue 26343 fi 26344 fi 26345 fi 26346 fi 26347 26348 if test -z "$ac_sed_cmds"; then 26349 ac_sed_cmds="sed -f \"$tmp\"/subs-$ac_sed_frag.sed" 26350 else 26351 ac_sed_cmds="$ac_sed_cmds | sed -f \"$tmp\"/subs-$ac_sed_frag.sed" 26352 fi 26353 ac_sed_frag=`expr "$ac_sed_frag" + 1` 26354 ac_beg=$ac_end 26355 ac_end=`expr "$ac_end" + "$ac_max_sed_lines"` 26356 fi 26357 done 26358 if test -z "$ac_sed_cmds"; then 26359 ac_sed_cmds="cat" 26360 fi 26361 fi # test -n "$CONFIG_FILES" 26362 26363 EOF 26364 cat >>"$CONFIG_STATUS" <<\EOF 26365 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 26366 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 26367 case "$ac_file" in 26368 - | *:- | *:-:* ) # input from stdin 26369 cat >"$tmp"/stdin 26370 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 26371 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 26372 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 26373 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 26374 * ) ac_file_in=$ac_file.in ;; 26375 esac 26376 26377 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 26378 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26379 X"$ac_file" : 'X\(//\)[^/]' \| \ 26380 X"$ac_file" : 'X\(//\)$' \| \ 26381 X"$ac_file" : 'X\(/\)' \| \ 26382 . : '\(.\)' 2>/dev/null || 26383 echo X"$ac_file" | 26384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 26385 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 26386 /^X\(\/\/\)$/{ s//\1/; q; } 26387 /^X\(\/\).*/{ s//\1/; q; } 26388 s/.*/./; q'` 26389 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 26390 { case "$ac_dir" in 26391 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 26392 *) as_incr_dir=.;; 26393 esac 26394 as_dummy="$ac_dir" 26395 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 26396 case $as_mkdir_dir in 26397 # Skip DOS drivespec 26398 ?:) as_incr_dir=$as_mkdir_dir ;; 26399 *) 26400 as_incr_dir=$as_incr_dir/$as_mkdir_dir 26401 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 26402 ;; 26403 esac 26404 done; } 26405 26406 ac_dir_suffix="/`echo "$ac_dir"|sed 's,^\./,,'`" 26407 # A "../" for each directory in $ac_dir_suffix. 26408 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 26409 else 26410 ac_dir_suffix= ac_dots= 26411 fi 26412 26413 case "$srcdir" in 26414 .) ac_srcdir=. 26415 if test -z "$ac_dots"; then 26416 ac_top_srcdir=. 26417 else 26418 ac_top_srcdir=`echo "$ac_dots" | sed 's,/$,,'` 26419 fi ;; 26420 [\\/]* | ?:[\\/]* ) 26421 ac_srcdir="$srcdir$ac_dir_suffix"; 26422 ac_top_srcdir="$srcdir" ;; 26423 *) # Relative path. 26424 ac_srcdir="$ac_dots$srcdir$ac_dir_suffix" 26425 ac_top_srcdir="$ac_dots$srcdir" ;; 26426 esac 26427 26428 case $INSTALL in 26429 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 26430 *) ac_INSTALL=$ac_dots$INSTALL ;; 26431 esac 26432 26433 if test x"$ac_file" != x-; then 26434 { echo "$as_me:26434: creating $ac_file" >&5 26435 echo "$as_me: creating $ac_file" >&6;} 26436 rm -f "$ac_file" 26437 fi 26438 # Let's still pretend it is `configure' which instantiates (i.e., don't 26439 # use $as_me), people would be surprised to read: 26440 # /* config.h. Generated automatically by config.status. */ 26441 configure_input="Generated automatically from `echo $ac_file_in | 26442 sed 's,.*/,,'` by configure." 26443 26444 # First look for the input files in the build tree, otherwise in the 26445 # src tree. 26446 ac_file_inputs=`IFS=: 26447 for f in $ac_file_in; do 26448 case $f in 26449 -) echo "$tmp"/stdin ;; 26450 [\\/$]*) 26451 # Absolute (can't be DOS-style, as IFS=:) 26452 test -f "$f" || { { echo "$as_me:26452: error: cannot find input file: $f" >&5 26453 echo "$as_me: error: cannot find input file: $f" >&2;} 26454 { (exit 1); exit 1; }; } 26455 echo "$f";; 26456 *) # Relative 26457 if test -f "$f"; then 26458 # Build tree 26459 echo "$f" 26460 elif test -f "$srcdir/$f"; then 26461 # Source tree 26462 echo "$srcdir/$f" 26463 else 26464 # /dev/null tree 26465 { { echo "$as_me:26465: error: cannot find input file: $f" >&5 26466 echo "$as_me: error: cannot find input file: $f" >&2;} 26467 { (exit 1); exit 1; }; } 26468 fi;; 26469 esac 26470 done` || { (exit 1); exit 1; } 26471 EOF 26472 cat >>"$CONFIG_STATUS" <<\EOF 26473 ac_warn_datarootdir=no 26474 if test x"$ac_file" != x-; then 26475 for ac_item in $ac_file_inputs 26476 do 26477 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' "$ac_item"` 26478 if test -n "$ac_seen"; then 26479 ac_used=`grep '@datarootdir@' "$ac_item"` 26480 if test -z "$ac_used"; then 26481 { echo "$as_me:26481: WARNING: datarootdir was used implicitly but not set: 26482 $ac_seen" >&5 26483 echo "$as_me: WARNING: datarootdir was used implicitly but not set: 26484 $ac_seen" >&2;} 26485 ac_warn_datarootdir=yes 26486 fi 26487 fi 26488 ac_seen=`grep '${datarootdir}' "$ac_item"` 26489 if test -n "$ac_seen"; then 26490 { echo "$as_me:26490: WARNING: datarootdir was used explicitly but not set: 26491 $ac_seen" >&5 26492 echo "$as_me: WARNING: datarootdir was used explicitly but not set: 26493 $ac_seen" >&2;} 26494 ac_warn_datarootdir=yes 26495 fi 26496 done 26497 fi 26498 26499 if test "x$ac_warn_datarootdir" = xyes; then 26500 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'" 26501 fi 26502 26503 EOF 26504 cat >>"$CONFIG_STATUS" <<EOF 26505 sed "$ac_vpsub 26506 $extrasub 26507 EOF 26508 cat >>"$CONFIG_STATUS" <<\EOF 26509 :t 26510 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 26511 s,@configure_input@,$configure_input,;t t 26512 s,@srcdir@,$ac_srcdir,;t t 26513 s,@top_srcdir@,$ac_top_srcdir,;t t 26514 s,@INSTALL@,$ac_INSTALL,;t t 26515 " $ac_file_inputs | (eval "$ac_sed_cmds") >"$tmp"/out 26516 rm -f "$tmp"/stdin 26517 EOF 26518 test -n "${FGREP}" || FGREP="grep -F" 26519 test -n "${EGREP}" || EGREP="grep -E" 26520 cat >>"$CONFIG_STATUS" <<EOF 26521 test -n "\${FGREP}" || FGREP="$FGREP" 26522 test -n "\${EGREP}" || EGREP="$EGREP" 26523 EOF 26524 cat >>"$CONFIG_STATUS" <<\EOF 26525 if test x"$ac_file" != x-; then 26526 cp "$tmp/out" "$ac_file" 26527 26528 for ac_name in prefix exec_prefix datarootdir 26529 do 26530 ac_seen=`$FGREP -n '${'$ac_name'[:=].*}' "$ac_file"` 26531 if test -n "$ac_seen"; then 26532 ac_init=`$EGREP '[ ]*'$ac_name'[ ]*=' "$ac_file"` 26533 if test -z "$ac_init"; then 26534 ac_seen=`echo "$ac_seen" |sed -e 's,^,'"$ac_file"':,'` 26535 { echo "$as_me:26535: WARNING: Variable $ac_name is used but was not set: 26536 $ac_seen" >&5 26537 echo "$as_me: WARNING: Variable $ac_name is used but was not set: 26538 $ac_seen" >&2;} 26539 fi 26540 fi 26541 done 26542 $EGREP -n '@[a-z_][a-z_0-9]+@' "$ac_file" >"$tmp"/out 26543 $EGREP -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>"$tmp"/out 26544 if test -s "$tmp"/out; then 26545 ac_seen=`sed -e 's,^,'"$ac_file"':,' < "$tmp"/out` 26546 { echo "$as_me:26546: WARNING: Some variables may not be substituted: 26547 $ac_seen" >&5 26548 echo "$as_me: WARNING: Some variables may not be substituted: 26549 $ac_seen" >&2;} 26550 fi 26551 else 26552 cat "$tmp"/out 26553 fi 26554 rm -f "$tmp"/out 26555 26556 done 26557 EOF 26558 cat >>"$CONFIG_STATUS" <<\EOF 26559 26560 # 26561 # CONFIG_HEADER section. 26562 # 26563 26564 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 26565 # NAME is the cpp macro being defined and VALUE is the value it is being given. 26566 # 26567 # ac_d sets the value in "#define NAME VALUE" lines. 26568 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 26569 ac_dB='[ ].*$,\1#\2' 26570 ac_dC=' ' 26571 ac_dD=',;t' 26572 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 26573 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 26574 ac_iB='\([ ]\),\1#\2define\3' 26575 ac_iC=' ' 26576 ac_iD='\4,;t' 26577 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 26578 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 26579 ac_uB='$,\1#\2define\3' 26580 ac_uC=' ' 26581 ac_uD=',;t' 26582 26583 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 26584 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 26585 case "$ac_file" in 26586 - | *:- | *:-:* ) # input from stdin 26587 cat >"$tmp"/stdin 26588 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 26589 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 26590 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 26591 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 26592 * ) ac_file_in=$ac_file.in ;; 26593 esac 26594 26595 test x"$ac_file" != x- && { echo "$as_me:26595: creating $ac_file" >&5 26596 echo "$as_me: creating $ac_file" >&6;} 26597 26598 # First look for the input files in the build tree, otherwise in the 26599 # src tree. 26600 ac_file_inputs=`IFS=: 26601 for f in $ac_file_in; do 26602 case $f in 26603 -) echo "$tmp"/stdin ;; 26604 [\\/$]*) 26605 # Absolute (can't be DOS-style, as IFS=:) 26606 test -f "$f" || { { echo "$as_me:26606: error: cannot find input file: $f" >&5 26607 echo "$as_me: error: cannot find input file: $f" >&2;} 26608 { (exit 1); exit 1; }; } 26609 echo $f;; 26610 *) # Relative 26611 if test -f "$f"; then 26612 # Build tree 26613 echo $f 26614 elif test -f "$srcdir/$f"; then 26615 # Source tree 26616 echo "$srcdir/$f" 26617 else 26618 # /dev/null tree 26619 { { echo "$as_me:26619: error: cannot find input file: $f" >&5 26620 echo "$as_me: error: cannot find input file: $f" >&2;} 26621 { (exit 1); exit 1; }; } 26622 fi;; 26623 esac 26624 done` || { (exit 1); exit 1; } 26625 # Remove the trailing spaces. 26626 sed 's/[ ]*$//' $ac_file_inputs >"$tmp"/in 26627 26628 EOF 26629 26630 # Transform confdefs.h into two sed scripts, `conftest.defines' and 26631 # `conftest.undefs', that substitutes the proper values into 26632 # config.h.in to produce config.h. The first handles `#define' 26633 # templates, and the second `#undef' templates. 26634 # And first: Protect against being on the right side of a sed subst in 26635 # config.status. Protect against being in an unquoted here document 26636 # in config.status. 26637 rm -f conftest.defines conftest.undefs 26638 # Using a here document instead of a string reduces the quoting nightmare. 26639 # Putting comments in sed scripts is not portable. 26640 # 26641 # `end' is used to avoid that the second main sed command (meant for 26642 # 0-ary CPP macros) applies to n-ary macro definitions. 26643 # See the Autoconf documentation for `clear'. 26644 cat >confdef2sed.sed <<\EOF 26645 s/[\\&,]/\\&/g 26646 s,[\\$`],\\&,g 26647 t clear 26648 : clear 26649 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp 26650 t end 26651 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 26652 : end 26653 EOF 26654 # If some macros were called several times there might be several times 26655 # the same #defines, which is useless. Nevertheless, we may not want to 26656 # sort them, since we want the *last* AC-DEFINE to be honored. 26657 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 26658 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 26659 sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs 26660 rm -f confdef2sed.sed 26661 26662 # This sed command replaces #undef with comments. This is necessary, for 26663 # example, in the case of _POSIX_SOURCE, which is predefined and required 26664 # on some systems where configure will not decide to define it. 26665 cat >>conftest.undefs <<\EOF 26666 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 26667 EOF 26668 26669 # Break up conftest.defines because some shells have a limit on the size 26670 # of here documents, and old seds have small limits too (100 cmds). 26671 echo ' # Handle all the #define templates only if necessary.' >>"$CONFIG_STATUS" 26672 echo ' test -n "${EGREP}" || EGREP="grep -E"' >>"$CONFIG_STATUS" 26673 echo ' if ${EGREP} "^[ ]*#[ ]*define" "$tmp"/in >/dev/null; then' >>"$CONFIG_STATUS" 26674 echo ' # If there are no defines, we may have an empty if/fi' >>"$CONFIG_STATUS" 26675 echo ' :' >>"$CONFIG_STATUS" 26676 rm -f conftest.tail 26677 while grep . conftest.defines >/dev/null 26678 do 26679 # Write a limited-size here document to "$tmp"/defines.sed. 26680 echo ' cat >"$tmp"/defines.sed <<CEOF' >>"$CONFIG_STATUS" 26681 # Speed up: don't consider the non `#define' lines. 26682 echo '/^[ ]*#[ ]*define/!b' >>"$CONFIG_STATUS" 26683 # Work around the forget-to-reset-the-flag bug. 26684 echo 't clr' >>"$CONFIG_STATUS" 26685 echo ': clr' >>"$CONFIG_STATUS" 26686 sed "${ac_max_here_lines}q" conftest.defines >>"$CONFIG_STATUS" 26687 echo 'CEOF 26688 sed -f "$tmp"/defines.sed "$tmp"/in >"$tmp"/out 26689 rm -f "$tmp"/in 26690 mv "$tmp"/out "$tmp"/in 26691 ' >>"$CONFIG_STATUS" 26692 sed "1,${ac_max_here_lines}d" conftest.defines >conftest.tail 26693 rm -f conftest.defines 26694 mv conftest.tail conftest.defines 26695 done 26696 rm -f conftest.defines 26697 echo ' fi # grep' >>"$CONFIG_STATUS" 26698 echo >>"$CONFIG_STATUS" 26699 26700 # Break up conftest.undefs because some shells have a limit on the size 26701 # of here documents, and old seds have small limits too (100 cmds). 26702 echo ' # Handle all the #undef templates' >>"$CONFIG_STATUS" 26703 rm -f conftest.tail 26704 while grep . conftest.undefs >/dev/null 26705 do 26706 # Write a limited-size here document to "$tmp"/undefs.sed. 26707 echo ' cat >"$tmp"/undefs.sed <<CEOF' >>"$CONFIG_STATUS" 26708 # Speed up: don't consider the non `#undef' 26709 echo '/^[ ]*#[ ]*undef/!b' >>"$CONFIG_STATUS" 26710 # Work around the forget-to-reset-the-flag bug. 26711 echo 't clr' >>"$CONFIG_STATUS" 26712 echo ': clr' >>"$CONFIG_STATUS" 26713 sed "${ac_max_here_lines}q" conftest.undefs >>"$CONFIG_STATUS" 26714 echo 'CEOF 26715 sed -f "$tmp"/undefs.sed "$tmp"/in >"$tmp"/out 26716 rm -f "$tmp"/in 26717 mv "$tmp"/out "$tmp"/in 26718 ' >>"$CONFIG_STATUS" 26719 sed "1,${ac_max_here_lines}d" conftest.undefs >conftest.tail 26720 rm -f conftest.undefs 26721 mv conftest.tail conftest.undefs 26722 done 26723 rm -f conftest.undefs 26724 26725 cat >>"$CONFIG_STATUS" <<\EOF 26726 # Let's still pretend it is `configure' which instantiates (i.e., don't 26727 # use $as_me), people would be surprised to read: 26728 # /* config.h. Generated automatically by config.status. */ 26729 if test x"$ac_file" = x-; then 26730 echo "/* Generated automatically by configure. */" >"$tmp"/config.h 26731 else 26732 echo "/* $ac_file. Generated automatically by configure. */" >"$tmp"/config.h 26733 fi 26734 cat "$tmp"/in >>"$tmp"/config.h 26735 rm -f "$tmp"/in 26736 if test x"$ac_file" != x-; then 26737 if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then 26738 { echo "$as_me:26738: $ac_file is unchanged" >&5 26739 echo "$as_me: $ac_file is unchanged" >&6;} 26740 else 26741 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26742 X"$ac_file" : 'X\(//\)[^/]' \| \ 26743 X"$ac_file" : 'X\(//\)$' \| \ 26744 X"$ac_file" : 'X\(/\)' \| \ 26745 . : '\(.\)' 2>/dev/null || 26746 echo X"$ac_file" | 26747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 26748 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 26749 /^X\(\/\/\)$/{ s//\1/; q; } 26750 /^X\(\/\).*/{ s//\1/; q; } 26751 s/.*/./; q'` 26752 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 26753 { case "$ac_dir" in 26754 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 26755 *) as_incr_dir=.;; 26756 esac 26757 as_dummy="$ac_dir" 26758 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 26759 case $as_mkdir_dir in 26760 # Skip DOS drivespec 26761 ?:) as_incr_dir=$as_mkdir_dir ;; 26762 *) 26763 as_incr_dir=$as_incr_dir/$as_mkdir_dir 26764 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 26765 ;; 26766 esac 26767 done; } 26768 26769 fi 26770 rm -f "$ac_file" 26771 mv "$tmp/config.h" "$ac_file" 26772 fi 26773 else 26774 cat "$tmp"/config.h 26775 rm -f "$tmp"/config.h 26776 fi 26777 done 26778 EOF 26779 26780 cat >>"$CONFIG_STATUS" <<\EOF 26781 26782 { (exit 0); exit 0; } 26783 EOF 26784 chmod +x "$CONFIG_STATUS" 26785 ac_clean_files=$ac_clean_files_save 26786 26787 # configure is writing to config.log, and then calls config.status. 26788 # config.status does its own redirection, appending to config.log. 26789 # Unfortunately, on DOS this fails, as config.log is still kept open 26790 # by configure, so config.status won't be able to write to it; its 26791 # output is simply discarded. So we exec the FD to /dev/null, 26792 # effectively closing config.log, so it can be properly (re)opened and 26793 # appended to by config.status. When coming back to configure, we 26794 # need to make the FD available again. 26795 if test "$no_create" != yes; then 26796 ac_cs_success=: 26797 exec 5>/dev/null 26798 $SHELL "$CONFIG_STATUS" || ac_cs_success=false 26799 exec 5>>config.log 26800 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 26801 # would make configure fail if this is the last instruction. 26802 "$ac_cs_success" || { (exit 1); exit 1; } 26803 fi 26804 26805