1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by Autoconf 2.52.20101002. 4# 5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 6# Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10# Avoid depending upon Character Ranges. 11as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14as_cr_digits='0123456789' 15as_cr_alnum=$as_cr_Letters$as_cr_digits 16 17# Sed expression to map a string onto a valid variable name. 18as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 19 20# Sed expression to map a string onto a valid CPP name. 21as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 22 23# Be Bourne compatible 24if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 25 emulate sh 26 NULLCMD=: 27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 28 set -o posix 29fi 30 31# Name of the executable. 32as_me=`echo "$0" |sed 's,.*[\\/],,'` 33 34if expr a : '\(a\)' >/dev/null 2>&1; then 35 as_expr=expr 36else 37 as_expr=false 38fi 39 40rm -f conf$$ conf$$.exe conf$$.file 41echo >conf$$.file 42if ln -s conf$$.file conf$$ 2>/dev/null; then 43 # We could just check for DJGPP; but this test a) works b) is more generic 44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 45 if test -f conf$$.exe; then 46 # Don't use ln at all; we don't have any links 47 as_ln_s='cp -p' 48 else 49 as_ln_s='ln -s' 50 fi 51elif ln conf$$.file conf$$ 2>/dev/null; then 52 as_ln_s=ln 53else 54 as_ln_s='cp -p' 55fi 56rm -f conf$$ conf$$.exe conf$$.file 57 58as_executable_p="test -f" 59 60# Support unset when possible. 61if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 62 as_unset=unset 63else 64 as_unset=false 65fi 66 67# NLS nuisances. 68$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 69$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 70$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 71$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 72$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 73$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 74$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 75$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 76 77# IFS 78# We need space, tab and new line, in precisely that order. 79as_nl=' 80' 81IFS=" $as_nl" 82 83# CDPATH. 84$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 85 86# Name of the host. 87# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 88# so uname gets run too. 89ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 90 91exec 6>&1 92 93# 94# Initializations. 95# 96ac_default_prefix=/usr/local 97cross_compiling=no 98subdirs= 99MFLAGS= MAKEFLAGS= 100SHELL=${CONFIG_SHELL-/bin/sh} 101 102# Maximum number of lines to put in a shell here document. 103# This variable seems obsolete. It should probably be removed, and 104# only ac_max_sed_lines should be used. 105: ${ac_max_here_lines=38} 106 107ac_unique_file="dialog.h" 108# Factoring default headers for most tests. 109ac_includes_default="\ 110#include <stdio.h> 111#if HAVE_SYS_TYPES_H 112# include <sys/types.h> 113#endif 114#if HAVE_SYS_STAT_H 115# include <sys/stat.h> 116#endif 117#if STDC_HEADERS 118# include <stdlib.h> 119# include <stddef.h> 120#else 121# if HAVE_STDLIB_H 122# include <stdlib.h> 123# endif 124#endif 125#if HAVE_STRING_H 126# if !STDC_HEADERS && HAVE_MEMORY_H 127# include <memory.h> 128# endif 129# include <string.h> 130#endif 131#if HAVE_STRINGS_H 132# include <strings.h> 133#endif 134#if HAVE_INTTYPES_H 135# include <inttypes.h> 136#else 137# if HAVE_STDINT_H 138# include <stdint.h> 139# endif 140#endif 141#if HAVE_UNISTD_H 142# include <unistd.h> 143#endif" 144 145# Initialize some variables set by options. 146ac_init_help= 147ac_init_version=false 148# The variables have the same names as the options, with 149# dashes changed to underlines. 150cache_file=/dev/null 151exec_prefix=NONE 152no_create= 153no_recursion= 154prefix=NONE 155program_prefix=NONE 156program_suffix=NONE 157program_transform_name=s,x,x, 158silent= 159site= 160srcdir= 161verbose= 162x_includes=NONE 163x_libraries=NONE 164 165# Installation directory options. 166# These are left unexpanded so users can "make install exec_prefix=/foo" 167# and all the variables that are supposed to be based on exec_prefix 168# by default will actually change. 169# Use braces instead of parens because sh, perl, etc. also accept them. 170bindir='${exec_prefix}/bin' 171sbindir='${exec_prefix}/sbin' 172libexecdir='${exec_prefix}/libexec' 173datadir='${prefix}/share' 174sysconfdir='${prefix}/etc' 175sharedstatedir='${prefix}/com' 176localstatedir='${prefix}/var' 177libdir='${exec_prefix}/lib' 178includedir='${prefix}/include' 179oldincludedir='/usr/include' 180infodir='${prefix}/info' 181mandir='${prefix}/man' 182 183# Identity of this package. 184PACKAGE_NAME= 185PACKAGE_TARNAME= 186PACKAGE_VERSION= 187PACKAGE_STRING= 188PACKAGE_BUGREPORT= 189 190ac_prev= 191for ac_option 192do 193 # If the previous option needs an argument, assign it. 194 if test -n "$ac_prev"; then 195 eval "$ac_prev=\$ac_option" 196 ac_prev= 197 continue 198 fi 199 200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 201 202 # Accept the important Cygnus configure options, so we can diagnose typos. 203 204 case $ac_option in 205 206 -bindir | --bindir | --bindi | --bind | --bin | --bi) 207 ac_prev=bindir ;; 208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 209 bindir=$ac_optarg ;; 210 211 -build | --build | --buil | --bui | --bu) 212 ac_prev=build_alias ;; 213 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 214 build_alias=$ac_optarg ;; 215 216 -cache-file | --cache-file | --cache-fil | --cache-fi \ 217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 218 ac_prev=cache_file ;; 219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 221 cache_file=$ac_optarg ;; 222 223 --config-cache | -C) 224 cache_file=config.cache ;; 225 226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 227 ac_prev=datadir ;; 228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 229 | --da=*) 230 datadir=$ac_optarg ;; 231 232 -disable-* | --disable-*) 233 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 234 # Reject names that are not valid shell variable names. 235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 237 { (exit 1); exit 1; }; } 238 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 239 eval "enable_$ac_feature=no" ;; 240 241 -enable-* | --enable-*) 242 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 243 # Reject names that are not valid shell variable names. 244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 246 { (exit 1); exit 1; }; } 247 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 248 case $ac_option in 249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 250 *) ac_optarg=yes ;; 251 esac 252 eval "enable_$ac_feature='$ac_optarg'" ;; 253 254 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 255 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 256 | --exec | --exe | --ex) 257 ac_prev=exec_prefix ;; 258 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 259 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 260 | --exec=* | --exe=* | --ex=*) 261 exec_prefix=$ac_optarg ;; 262 263 -gas | --gas | --ga | --g) 264 # Obsolete; use --with-gas. 265 with_gas=yes ;; 266 267 -help | --help | --hel | --he | -h) 268 ac_init_help=long ;; 269 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 270 ac_init_help=recursive ;; 271 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 272 ac_init_help=short ;; 273 274 -host | --host | --hos | --ho) 275 ac_prev=host_alias ;; 276 -host=* | --host=* | --hos=* | --ho=*) 277 host_alias=$ac_optarg ;; 278 279 -includedir | --includedir | --includedi | --included | --include \ 280 | --includ | --inclu | --incl | --inc) 281 ac_prev=includedir ;; 282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 283 | --includ=* | --inclu=* | --incl=* | --inc=*) 284 includedir=$ac_optarg ;; 285 286 -infodir | --infodir | --infodi | --infod | --info | --inf) 287 ac_prev=infodir ;; 288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 289 infodir=$ac_optarg ;; 290 291 -libdir | --libdir | --libdi | --libd) 292 ac_prev=libdir ;; 293 -libdir=* | --libdir=* | --libdi=* | --libd=*) 294 libdir=$ac_optarg ;; 295 296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 297 | --libexe | --libex | --libe) 298 ac_prev=libexecdir ;; 299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 300 | --libexe=* | --libex=* | --libe=*) 301 libexecdir=$ac_optarg ;; 302 303 -localstatedir | --localstatedir | --localstatedi | --localstated \ 304 | --localstate | --localstat | --localsta | --localst \ 305 | --locals | --local | --loca | --loc | --lo) 306 ac_prev=localstatedir ;; 307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 310 localstatedir=$ac_optarg ;; 311 312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 313 ac_prev=mandir ;; 314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 315 mandir=$ac_optarg ;; 316 317 -nfp | --nfp | --nf) 318 # Obsolete; use --without-fp. 319 with_fp=no ;; 320 321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 322 | --no-cr | --no-c) 323 no_create=yes ;; 324 325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 327 no_recursion=yes ;; 328 329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 331 | --oldin | --oldi | --old | --ol | --o) 332 ac_prev=oldincludedir ;; 333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 336 oldincludedir=$ac_optarg ;; 337 338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 339 ac_prev=prefix ;; 340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 341 prefix=$ac_optarg ;; 342 343 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 344 | --program-pre | --program-pr | --program-p) 345 ac_prev=program_prefix ;; 346 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 348 program_prefix=$ac_optarg ;; 349 350 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 351 | --program-suf | --program-su | --program-s) 352 ac_prev=program_suffix ;; 353 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 355 program_suffix=$ac_optarg ;; 356 357 -program-transform-name | --program-transform-name \ 358 | --program-transform-nam | --program-transform-na \ 359 | --program-transform-n | --program-transform- \ 360 | --program-transform | --program-transfor \ 361 | --program-transfo | --program-transf \ 362 | --program-trans | --program-tran \ 363 | --progr-tra | --program-tr | --program-t) 364 ac_prev=program_transform_name ;; 365 -program-transform-name=* | --program-transform-name=* \ 366 | --program-transform-nam=* | --program-transform-na=* \ 367 | --program-transform-n=* | --program-transform-=* \ 368 | --program-transform=* | --program-transfor=* \ 369 | --program-transfo=* | --program-transf=* \ 370 | --program-trans=* | --program-tran=* \ 371 | --progr-tra=* | --program-tr=* | --program-t=*) 372 program_transform_name=$ac_optarg ;; 373 374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 375 | -silent | --silent | --silen | --sile | --sil) 376 silent=yes ;; 377 378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 379 ac_prev=sbindir ;; 380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 381 | --sbi=* | --sb=*) 382 sbindir=$ac_optarg ;; 383 384 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 386 | --sharedst | --shareds | --shared | --share | --shar \ 387 | --sha | --sh) 388 ac_prev=sharedstatedir ;; 389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 392 | --sha=* | --sh=*) 393 sharedstatedir=$ac_optarg ;; 394 395 -site | --site | --sit) 396 ac_prev=site ;; 397 -site=* | --site=* | --sit=*) 398 site=$ac_optarg ;; 399 400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 401 ac_prev=srcdir ;; 402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 403 srcdir=$ac_optarg ;; 404 405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 406 | --syscon | --sysco | --sysc | --sys | --sy) 407 ac_prev=sysconfdir ;; 408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 410 sysconfdir=$ac_optarg ;; 411 412 -target | --target | --targe | --targ | --tar | --ta | --t) 413 ac_prev=target_alias ;; 414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 415 target_alias=$ac_optarg ;; 416 417 -v | -verbose | --verbose | --verbos | --verbo | --verb) 418 verbose=yes ;; 419 420 -version | --version | --versio | --versi | --vers | -V) 421 ac_init_version=: ;; 422 423 -with-* | --with-*) 424 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 425 # Reject names that are not valid shell variable names. 426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 427 { echo "$as_me: error: invalid package name: $ac_package" >&2 428 { (exit 1); exit 1; }; } 429 ac_package=`echo $ac_package| sed 's/-/_/g'` 430 case $ac_option in 431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 432 *) ac_optarg=yes ;; 433 esac 434 eval "with_$ac_package='$ac_optarg'" ;; 435 436 -without-* | --without-*) 437 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 438 # Reject names that are not valid shell variable names. 439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 440 { echo "$as_me: error: invalid package name: $ac_package" >&2 441 { (exit 1); exit 1; }; } 442 ac_package=`echo $ac_package | sed 's/-/_/g'` 443 eval "with_$ac_package=no" ;; 444 445 --x) 446 # Obsolete; use --with-x. 447 with_x=yes ;; 448 449 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 450 | --x-incl | --x-inc | --x-in | --x-i) 451 ac_prev=x_includes ;; 452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 454 x_includes=$ac_optarg ;; 455 456 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 458 ac_prev=x_libraries ;; 459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 461 x_libraries=$ac_optarg ;; 462 463 -*) { echo "$as_me: error: unrecognized option: $ac_option 464Try \`$0 --help' for more information." >&2 465 { (exit 1); exit 1; }; } 466 ;; 467 468 *=*) 469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 470 # Reject names that are not valid shell variable names. 471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 473 { (exit 1); exit 1; }; } 474 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 475 eval "$ac_envvar='$ac_optarg'" 476 export $ac_envvar ;; 477 478 *) 479 # FIXME: should be removed in autoconf 3.0. 480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 484 ;; 485 486 esac 487done 488 489if test -n "$ac_prev"; then 490 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 491 { echo "$as_me: error: missing argument to $ac_option" >&2 492 { (exit 1); exit 1; }; } 493fi 494 495# Be sure to have absolute paths. 496for ac_var in exec_prefix prefix 497do 498 eval ac_val=$`echo $ac_var` 499 case $ac_val in 500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 502 { (exit 1); exit 1; }; };; 503 esac 504done 505 506# Be sure to have absolute paths. 507for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 508 localstatedir libdir includedir oldincludedir infodir mandir 509do 510 eval ac_val=$`echo $ac_var` 511 case $ac_val in 512 [\\/$]* | ?:[\\/]* ) ;; 513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 514 { (exit 1); exit 1; }; };; 515 esac 516done 517 518# There might be people who depend on the old broken behavior: `$host' 519# used to hold the argument of --host etc. 520build=$build_alias 521host=$host_alias 522target=$target_alias 523 524# FIXME: should be removed in autoconf 3.0. 525if test "x$host_alias" != x; then 526 if test "x$build_alias" = x; then 527 cross_compiling=maybe 528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 529 If a cross compiler is detected then cross compile mode will be used." >&2 530 elif test "x$build_alias" != "x$host_alias"; then 531 cross_compiling=yes 532 fi 533fi 534 535ac_tool_prefix= 536test -n "$host_alias" && ac_tool_prefix=$host_alias- 537 538test "$silent" = yes && exec 6>/dev/null 539 540# Find the source files, if location was not specified. 541if test -z "$srcdir"; then 542 ac_srcdir_defaulted=yes 543 # Try the directory containing this script, then its parent. 544 ac_prog=$0 545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` 546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 547 srcdir=$ac_confdir 548 if test ! -r $srcdir/$ac_unique_file; then 549 srcdir=.. 550 fi 551else 552 ac_srcdir_defaulted=no 553fi 554if test ! -r $srcdir/$ac_unique_file; then 555 if test "$ac_srcdir_defaulted" = yes; then 556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 557 { (exit 1); exit 1; }; } 558 else 559 { echo "$as_me: error: cannot find sources in $srcdir" >&2 560 { (exit 1); exit 1; }; } 561 fi 562fi 563srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 564ac_env_build_alias_set=${build_alias+set} 565ac_env_build_alias_value=$build_alias 566ac_cv_env_build_alias_set=${build_alias+set} 567ac_cv_env_build_alias_value=$build_alias 568ac_env_host_alias_set=${host_alias+set} 569ac_env_host_alias_value=$host_alias 570ac_cv_env_host_alias_set=${host_alias+set} 571ac_cv_env_host_alias_value=$host_alias 572ac_env_target_alias_set=${target_alias+set} 573ac_env_target_alias_value=$target_alias 574ac_cv_env_target_alias_set=${target_alias+set} 575ac_cv_env_target_alias_value=$target_alias 576ac_env_CC_set=${CC+set} 577ac_env_CC_value=$CC 578ac_cv_env_CC_set=${CC+set} 579ac_cv_env_CC_value=$CC 580ac_env_CFLAGS_set=${CFLAGS+set} 581ac_env_CFLAGS_value=$CFLAGS 582ac_cv_env_CFLAGS_set=${CFLAGS+set} 583ac_cv_env_CFLAGS_value=$CFLAGS 584ac_env_LDFLAGS_set=${LDFLAGS+set} 585ac_env_LDFLAGS_value=$LDFLAGS 586ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 587ac_cv_env_LDFLAGS_value=$LDFLAGS 588ac_env_CPPFLAGS_set=${CPPFLAGS+set} 589ac_env_CPPFLAGS_value=$CPPFLAGS 590ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 591ac_cv_env_CPPFLAGS_value=$CPPFLAGS 592ac_env_CPP_set=${CPP+set} 593ac_env_CPP_value=$CPP 594ac_cv_env_CPP_set=${CPP+set} 595ac_cv_env_CPP_value=$CPP 596 597# 598# Report the --help message. 599# 600if test "$ac_init_help" = "long"; then 601 # Omit some internal or obsolete options to make the list less imposing. 602 # This message is too long to be a string in the A/UX 3.1 sh. 603 cat <<EOF 604\`configure' configures this package to adapt to many kinds of systems. 605 606Usage: $0 [OPTION]... [VAR=VALUE]... 607 608To assign environment variables (e.g., CC, CFLAGS...), specify them as 609VAR=VALUE. See below for descriptions of some of the useful variables. 610 611Defaults for the options are specified in brackets. 612 613Configuration: 614 -h, --help display this help and exit 615 --help=short display options specific to this package 616 --help=recursive display the short help of all the included packages 617 -V, --version display version information and exit 618 -q, --quiet, --silent do not print \`checking...' messages 619 --cache-file=FILE cache test results in FILE [disabled] 620 -C, --config-cache alias for \`--cache-file=config.cache' 621 -n, --no-create do not create output files 622 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 623 624EOF 625 626 cat <<EOF 627Installation directories: 628 --prefix=PREFIX install architecture-independent files in PREFIX 629 [$ac_default_prefix] 630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 631 [PREFIX] 632 633By default, \`make install' will install all the files in 634\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 635an installation prefix other than \`$ac_default_prefix' using \`--prefix', 636for instance \`--prefix=\$HOME'. 637 638For better control, use the options below. 639 640Fine tuning of the installation directories: 641 --bindir=DIR user executables [EPREFIX/bin] 642 --sbindir=DIR system admin executables [EPREFIX/sbin] 643 --libexecdir=DIR program executables [EPREFIX/libexec] 644 --datadir=DIR read-only architecture-independent data [PREFIX/share] 645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 647 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 648 --libdir=DIR object code libraries [EPREFIX/lib] 649 --includedir=DIR C header files [PREFIX/include] 650 --oldincludedir=DIR C header files for non-gcc [/usr/include] 651 --infodir=DIR info documentation [PREFIX/info] 652 --mandir=DIR man documentation [PREFIX/man] 653EOF 654 655 cat <<\EOF 656 657Program names: 658 --program-prefix=PREFIX prepend PREFIX to installed program names 659 --program-suffix=SUFFIX append SUFFIX to installed program names 660 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 661 662System types: 663 --build=BUILD configure for building on BUILD [guessed] 664 --host=HOST build programs to run on HOST [BUILD] 665EOF 666fi 667 668if test -n "$ac_init_help"; then 669 670 cat <<\EOF 671 672Optional Features: 673 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 674 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 675 676Optional Packages: 677 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 678 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 679 680 --disable-echo display "compiling" commands 681 --disable-largefile omit support for large files 682 --with-warnings test: turn on gcc warnings 683 --with-package=XXX rename dialog to XXX, library to libXXX.a, etc 684 --enable-header-subdir install dlg_XXX headers to subdirectory 685 --with-libiconv-prefix=DIR 686 search for libiconv in DIR/include and DIR/lib 687 --enable-nls use Native Language Support 688 --with-included-gettext use the GNU gettext library included here 689 --with-textdomain=PKG NLS text-domain (default is package name) 690 --disable-included-msgs use included messages, for i18n support 691 --with-dmalloc test: use Gray Watson's dmalloc library 692 --with-dbmalloc test: use Conor Cahill's dbmalloc library 693 --with-purify test: use Purify 694 --with-valgrind test: use valgrind 695 --with-no-leaks test: free permanent memory, analyze leaks 696 --disable-trace do not support --trace option 697 --disable-libtool-version enable to use libtool's incompatible naming scheme 698 --with-libtool generate libraries with libtool 699 --with-libtool-opts=XXX specify additional libtool options 700 --with-curses-dir=DIR directory in which (n)curses is installed 701 --with-ncurses compile/link with ncurses library 702 --with-ncursesw compile/link with wide-char ncurses library 703 --disable-extras do not include extra dialogs 704 --disable-rc-file do not include config-file support 705 --disable-Xdialog do not include Xdialog-style dialogs 706 --disable-form do not include the form dialog 707 --disable-gauge do not include the gauge dialogs 708 --disable-tailbox do not include the tailbox dialog 709 --disable-mixedform do not include the mixedform dialog 710 --disable-mixedgauge do not include the mixedgauge dialog 711 --enable-widec enable wide-curses features 712 --disable-rpath-hack don't add rpath options for additional libraries 713 714Some influential environment variables: 715 CC C compiler command 716 CFLAGS C compiler flags 717 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 718 nonstandard directory <lib dir> 719 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 720 headers in a nonstandard directory <include dir> 721 CPP C preprocessor 722 723Use these variables to override the choices made by `configure' or to help 724it to find libraries and programs with nonstandard names/locations. 725 726EOF 727fi 728 729if test "$ac_init_help" = "recursive"; then 730 # If there are subdirs, report their specific --help. 731 ac_popdir=`pwd` 732 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 733 cd $ac_subdir 734 # A "../" for each directory in /$ac_subdir. 735 ac_dots=`echo $ac_subdir | 736 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 737 738 case $srcdir in 739 .) # No --srcdir option. We are building in place. 740 ac_sub_srcdir=$srcdir ;; 741 [\\/]* | ?:[\\/]* ) # Absolute path. 742 ac_sub_srcdir=$srcdir/$ac_subdir ;; 743 *) # Relative path. 744 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; 745 esac 746 747 # Check for guested configure; otherwise get Cygnus style configure. 748 if test -f $ac_sub_srcdir/configure.gnu; then 749 echo 750 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive 751 elif test -f $ac_sub_srcdir/configure; then 752 echo 753 $SHELL $ac_sub_srcdir/configure --help=recursive 754 elif test -f $ac_sub_srcdir/configure.ac || 755 test -f $ac_sub_srcdir/configure.in; then 756 echo 757 $ac_configure --help 758 else 759 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 760 fi 761 cd $ac_popdir 762 done 763fi 764 765test -n "$ac_init_help" && exit 0 766if $ac_init_version; then 767 cat <<\EOF 768 769Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 770Free Software Foundation, Inc. 771This configure script is free software; the Free Software Foundation 772gives unlimited permission to copy, distribute and modify it. 773EOF 774 exit 0 775fi 776exec 5>config.log 777cat >&5 <<EOF 778This file contains any messages produced by compilers while 779running configure, to aid debugging if configure makes a mistake. 780 781It was created by $as_me, which was 782generated by GNU Autoconf 2.52.20101002. Invocation command line was 783 784 $ $0 $@ 785 786EOF 787{ 788cat <<_ASUNAME 789## ---------- ## 790## Platform. ## 791## ---------- ## 792 793hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 794uname -m = `(uname -m) 2>/dev/null || echo unknown` 795uname -r = `(uname -r) 2>/dev/null || echo unknown` 796uname -s = `(uname -s) 2>/dev/null || echo unknown` 797uname -v = `(uname -v) 2>/dev/null || echo unknown` 798 799/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 800/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 801 802/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 803/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 804/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 805hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 806/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 807/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 808/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 809 810PATH = $PATH 811 812_ASUNAME 813} >&5 814 815cat >&5 <<EOF 816## ------------ ## 817## Core tests. ## 818## ------------ ## 819 820EOF 821 822# Keep a trace of the command line. 823# Strip out --no-create and --no-recursion so they do not pile up. 824# Also quote any args containing shell meta-characters. 825ac_configure_args= 826ac_sep= 827for ac_arg 828do 829 case $ac_arg in 830 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 831 | --no-cr | --no-c) ;; 832 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 833 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 834 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 835 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 836 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 837 ac_sep=" " ;; 838 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 839 ac_sep=" " ;; 840 esac 841 # Get rid of the leading space. 842done 843 844# When interrupted or exit'd, cleanup temporary files, and complete 845# config.log. We remove comments because anyway the quotes in there 846# would cause problems or look ugly. 847trap 'exit_status=$? 848 # Save into config.log some information that might help in debugging. 849 echo >&5 850 echo "## ----------------- ##" >&5 851 echo "## Cache variables. ##" >&5 852 echo "## ----------------- ##" >&5 853 echo >&5 854 # The following way of writing the cache mishandles newlines in values, 855{ 856 (set) 2>&1 | 857 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 858 *ac_space=\ *) 859 sed -n \ 860 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 861 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 862 ;; 863 *) 864 sed -n \ 865 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 866 ;; 867 esac; 868} >&5 869 sed "/^$/d" confdefs.h >conftest.log 870 if test -s conftest.log; then 871 echo >&5 872 echo "## ------------ ##" >&5 873 echo "## confdefs.h. ##" >&5 874 echo "## ------------ ##" >&5 875 echo >&5 876 cat conftest.log >&5 877 fi 878 (echo; echo) >&5 879 test "$ac_signal" != 0 && 880 echo "$as_me: caught signal $ac_signal" >&5 881 echo "$as_me: exit $exit_status" >&5 882 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 883 exit $exit_status 884 ' 0 885for ac_signal in 1 2 13 15; do 886 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 887done 888ac_signal=0 889 890# confdefs.h avoids OS command line length limits that DEFS can exceed. 891rm -rf conftest* confdefs.h 892# AIX cpp loses on an empty file, so make sure it contains at least a newline. 893echo >confdefs.h 894 895# Let the site file select an alternate cache file if it wants to. 896# Prefer explicitly selected file to automatically selected ones. 897if test -z "$CONFIG_SITE"; then 898 if test "x$prefix" != xNONE; then 899 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 900 else 901 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 902 fi 903fi 904for ac_site_file in $CONFIG_SITE; do 905 if test -r "$ac_site_file"; then 906 { echo "$as_me:906: loading site script $ac_site_file" >&5 907echo "$as_me: loading site script $ac_site_file" >&6;} 908 cat "$ac_site_file" >&5 909 . "$ac_site_file" 910 fi 911done 912 913if test -r "$cache_file"; then 914 # Some versions of bash will fail to source /dev/null (special 915 # files actually), so we avoid doing that. 916 if test -f "$cache_file"; then 917 { echo "$as_me:917: loading cache $cache_file" >&5 918echo "$as_me: loading cache $cache_file" >&6;} 919 case $cache_file in 920 [\\/]* | ?:[\\/]* ) . $cache_file;; 921 *) . ./$cache_file;; 922 esac 923 fi 924else 925 { echo "$as_me:925: creating cache $cache_file" >&5 926echo "$as_me: creating cache $cache_file" >&6;} 927 >$cache_file 928fi 929 930# Check that the precious variables saved in the cache have kept the same 931# value. 932ac_cache_corrupted=false 933for ac_var in `(set) 2>&1 | 934 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 935 eval ac_old_set=\$ac_cv_env_${ac_var}_set 936 eval ac_new_set=\$ac_env_${ac_var}_set 937 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 938 eval ac_new_val="\$ac_env_${ac_var}_value" 939 case $ac_old_set,$ac_new_set in 940 set,) 941 { echo "$as_me:941: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 942echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 943 ac_cache_corrupted=: ;; 944 ,set) 945 { echo "$as_me:945: error: \`$ac_var' was not set in the previous run" >&5 946echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 947 ac_cache_corrupted=: ;; 948 ,);; 949 *) 950 if test "x$ac_old_val" != "x$ac_new_val"; then 951 { echo "$as_me:951: error: \`$ac_var' has changed since the previous run:" >&5 952echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 953 { echo "$as_me:953: former value: $ac_old_val" >&5 954echo "$as_me: former value: $ac_old_val" >&2;} 955 { echo "$as_me:955: current value: $ac_new_val" >&5 956echo "$as_me: current value: $ac_new_val" >&2;} 957 ac_cache_corrupted=: 958 fi;; 959 esac 960 # Pass precious variables to config.status. It doesn't matter if 961 # we pass some twice (in addition to the command line arguments). 962 if test "$ac_new_set" = set; then 963 case $ac_new_val in 964 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 965 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` 966 ac_configure_args="$ac_configure_args '$ac_arg'" 967 ;; 968 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" 969 ;; 970 esac 971 fi 972done 973if $ac_cache_corrupted; then 974 { echo "$as_me:974: error: changes in the environment can compromise the build" >&5 975echo "$as_me: error: changes in the environment can compromise the build" >&2;} 976 { { echo "$as_me:976: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 977echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 978 { (exit 1); exit 1; }; } 979fi 980 981ac_ext=c 982ac_cpp='$CPP $CPPFLAGS' 983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 985ac_compiler_gnu=$ac_cv_c_compiler_gnu 986ac_main_return=return 987 988case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 989 *c*,-n*) ECHO_N= ECHO_C=' 990' ECHO_T=' ' ;; 991 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 992 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 993esac 994echo "#! $SHELL" >conftest.sh 995echo "exit 0" >>conftest.sh 996chmod +x conftest.sh 997if { (echo "$as_me:997: PATH=\".;.\"; conftest.sh") >&5 998 (PATH=".;."; conftest.sh) 2>&5 999 ac_status=$? 1000 echo "$as_me:1000: \$? = $ac_status" >&5 1001 (exit $ac_status); }; then 1002 ac_path_separator=';' 1003else 1004 ac_path_separator=: 1005fi 1006PATH_SEPARATOR="$ac_path_separator" 1007rm -f conftest.sh 1008 1009ac_config_headers="$ac_config_headers dlg_config.h:config.hin" 1010 1011test "$program_prefix" != NONE && 1012 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1013# Use a double $ so make ignores it. 1014test "$program_suffix" != NONE && 1015 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1016# Double any \ or $. echo might interpret backslashes. 1017# By default was `s,x,x', remove it if useless. 1018cat <<\_ACEOF >conftest.sed 1019s/[\\$]/&&/g;s/;s,x,x,$// 1020_ACEOF 1021program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1022rm conftest.sed 1023 1024DESTDIR= 1025 1026ac_ext=c 1027ac_cpp='$CPP $CPPFLAGS' 1028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1030ac_compiler_gnu=$ac_cv_c_compiler_gnu 1031ac_main_return=return 1032if test -n "$ac_tool_prefix"; then 1033 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1034set dummy ${ac_tool_prefix}gcc; ac_word=$2 1035echo "$as_me:1035: checking for $ac_word" >&5 1036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1037if test "${ac_cv_prog_CC+set}" = set; then 1038 echo $ECHO_N "(cached) $ECHO_C" >&6 1039else 1040 if test -n "$CC"; then 1041 ac_cv_prog_CC="$CC" # Let the user override the test. 1042else 1043 ac_save_IFS=$IFS; IFS=$ac_path_separator 1044ac_dummy="$PATH" 1045for ac_dir in $ac_dummy; do 1046 IFS=$ac_save_IFS 1047 test -z "$ac_dir" && ac_dir=. 1048 $as_executable_p "$ac_dir/$ac_word" || continue 1049ac_cv_prog_CC="${ac_tool_prefix}gcc" 1050echo "$as_me:1050: found $ac_dir/$ac_word" >&5 1051break 1052done 1053 1054fi 1055fi 1056CC=$ac_cv_prog_CC 1057if test -n "$CC"; then 1058 echo "$as_me:1058: result: $CC" >&5 1059echo "${ECHO_T}$CC" >&6 1060else 1061 echo "$as_me:1061: result: no" >&5 1062echo "${ECHO_T}no" >&6 1063fi 1064 1065fi 1066if test -z "$ac_cv_prog_CC"; then 1067 ac_ct_CC=$CC 1068 # Extract the first word of "gcc", so it can be a program name with args. 1069set dummy gcc; ac_word=$2 1070echo "$as_me:1070: checking for $ac_word" >&5 1071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1072if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1073 echo $ECHO_N "(cached) $ECHO_C" >&6 1074else 1075 if test -n "$ac_ct_CC"; then 1076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1077else 1078 ac_save_IFS=$IFS; IFS=$ac_path_separator 1079ac_dummy="$PATH" 1080for ac_dir in $ac_dummy; do 1081 IFS=$ac_save_IFS 1082 test -z "$ac_dir" && ac_dir=. 1083 $as_executable_p "$ac_dir/$ac_word" || continue 1084ac_cv_prog_ac_ct_CC="gcc" 1085echo "$as_me:1085: found $ac_dir/$ac_word" >&5 1086break 1087done 1088 1089fi 1090fi 1091ac_ct_CC=$ac_cv_prog_ac_ct_CC 1092if test -n "$ac_ct_CC"; then 1093 echo "$as_me:1093: result: $ac_ct_CC" >&5 1094echo "${ECHO_T}$ac_ct_CC" >&6 1095else 1096 echo "$as_me:1096: result: no" >&5 1097echo "${ECHO_T}no" >&6 1098fi 1099 1100 CC=$ac_ct_CC 1101else 1102 CC="$ac_cv_prog_CC" 1103fi 1104 1105if test -z "$CC"; then 1106 if test -n "$ac_tool_prefix"; then 1107 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1108set dummy ${ac_tool_prefix}cc; ac_word=$2 1109echo "$as_me:1109: checking for $ac_word" >&5 1110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1111if test "${ac_cv_prog_CC+set}" = set; then 1112 echo $ECHO_N "(cached) $ECHO_C" >&6 1113else 1114 if test -n "$CC"; then 1115 ac_cv_prog_CC="$CC" # Let the user override the test. 1116else 1117 ac_save_IFS=$IFS; IFS=$ac_path_separator 1118ac_dummy="$PATH" 1119for ac_dir in $ac_dummy; do 1120 IFS=$ac_save_IFS 1121 test -z "$ac_dir" && ac_dir=. 1122 $as_executable_p "$ac_dir/$ac_word" || continue 1123ac_cv_prog_CC="${ac_tool_prefix}cc" 1124echo "$as_me:1124: found $ac_dir/$ac_word" >&5 1125break 1126done 1127 1128fi 1129fi 1130CC=$ac_cv_prog_CC 1131if test -n "$CC"; then 1132 echo "$as_me:1132: result: $CC" >&5 1133echo "${ECHO_T}$CC" >&6 1134else 1135 echo "$as_me:1135: result: no" >&5 1136echo "${ECHO_T}no" >&6 1137fi 1138 1139fi 1140if test -z "$ac_cv_prog_CC"; then 1141 ac_ct_CC=$CC 1142 # Extract the first word of "cc", so it can be a program name with args. 1143set dummy cc; ac_word=$2 1144echo "$as_me:1144: checking for $ac_word" >&5 1145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1146if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1147 echo $ECHO_N "(cached) $ECHO_C" >&6 1148else 1149 if test -n "$ac_ct_CC"; then 1150 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1151else 1152 ac_save_IFS=$IFS; IFS=$ac_path_separator 1153ac_dummy="$PATH" 1154for ac_dir in $ac_dummy; do 1155 IFS=$ac_save_IFS 1156 test -z "$ac_dir" && ac_dir=. 1157 $as_executable_p "$ac_dir/$ac_word" || continue 1158ac_cv_prog_ac_ct_CC="cc" 1159echo "$as_me:1159: found $ac_dir/$ac_word" >&5 1160break 1161done 1162 1163fi 1164fi 1165ac_ct_CC=$ac_cv_prog_ac_ct_CC 1166if test -n "$ac_ct_CC"; then 1167 echo "$as_me:1167: result: $ac_ct_CC" >&5 1168echo "${ECHO_T}$ac_ct_CC" >&6 1169else 1170 echo "$as_me:1170: result: no" >&5 1171echo "${ECHO_T}no" >&6 1172fi 1173 1174 CC=$ac_ct_CC 1175else 1176 CC="$ac_cv_prog_CC" 1177fi 1178 1179fi 1180if test -z "$CC"; then 1181 # Extract the first word of "cc", so it can be a program name with args. 1182set dummy cc; ac_word=$2 1183echo "$as_me:1183: checking for $ac_word" >&5 1184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1185if test "${ac_cv_prog_CC+set}" = set; then 1186 echo $ECHO_N "(cached) $ECHO_C" >&6 1187else 1188 if test -n "$CC"; then 1189 ac_cv_prog_CC="$CC" # Let the user override the test. 1190else 1191 ac_prog_rejected=no 1192 ac_save_IFS=$IFS; IFS=$ac_path_separator 1193ac_dummy="$PATH" 1194for ac_dir in $ac_dummy; do 1195 IFS=$ac_save_IFS 1196 test -z "$ac_dir" && ac_dir=. 1197 $as_executable_p "$ac_dir/$ac_word" || continue 1198if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1199 ac_prog_rejected=yes 1200 continue 1201fi 1202ac_cv_prog_CC="cc" 1203echo "$as_me:1203: found $ac_dir/$ac_word" >&5 1204break 1205done 1206 1207if test $ac_prog_rejected = yes; then 1208 # We found a bogon in the path, so make sure we never use it. 1209 set dummy $ac_cv_prog_CC 1210 shift 1211 if test $# != 0; then 1212 # We chose a different compiler from the bogus one. 1213 # However, it has the same basename, so the bogon will be chosen 1214 # first if we set CC to just the basename; use the full file name. 1215 shift 1216 set dummy "$ac_dir/$ac_word" ${1+"$@"} 1217 shift 1218 ac_cv_prog_CC="$@" 1219 fi 1220fi 1221fi 1222fi 1223CC=$ac_cv_prog_CC 1224if test -n "$CC"; then 1225 echo "$as_me:1225: result: $CC" >&5 1226echo "${ECHO_T}$CC" >&6 1227else 1228 echo "$as_me:1228: result: no" >&5 1229echo "${ECHO_T}no" >&6 1230fi 1231 1232fi 1233if test -z "$CC"; then 1234 if test -n "$ac_tool_prefix"; then 1235 for ac_prog in cl 1236 do 1237 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1238set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1239echo "$as_me:1239: checking for $ac_word" >&5 1240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1241if test "${ac_cv_prog_CC+set}" = set; then 1242 echo $ECHO_N "(cached) $ECHO_C" >&6 1243else 1244 if test -n "$CC"; then 1245 ac_cv_prog_CC="$CC" # Let the user override the test. 1246else 1247 ac_save_IFS=$IFS; IFS=$ac_path_separator 1248ac_dummy="$PATH" 1249for ac_dir in $ac_dummy; do 1250 IFS=$ac_save_IFS 1251 test -z "$ac_dir" && ac_dir=. 1252 $as_executable_p "$ac_dir/$ac_word" || continue 1253ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1254echo "$as_me:1254: found $ac_dir/$ac_word" >&5 1255break 1256done 1257 1258fi 1259fi 1260CC=$ac_cv_prog_CC 1261if test -n "$CC"; then 1262 echo "$as_me:1262: result: $CC" >&5 1263echo "${ECHO_T}$CC" >&6 1264else 1265 echo "$as_me:1265: result: no" >&5 1266echo "${ECHO_T}no" >&6 1267fi 1268 1269 test -n "$CC" && break 1270 done 1271fi 1272if test -z "$CC"; then 1273 ac_ct_CC=$CC 1274 for ac_prog in cl 1275do 1276 # Extract the first word of "$ac_prog", so it can be a program name with args. 1277set dummy $ac_prog; ac_word=$2 1278echo "$as_me:1278: checking for $ac_word" >&5 1279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1280if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1281 echo $ECHO_N "(cached) $ECHO_C" >&6 1282else 1283 if test -n "$ac_ct_CC"; then 1284 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1285else 1286 ac_save_IFS=$IFS; IFS=$ac_path_separator 1287ac_dummy="$PATH" 1288for ac_dir in $ac_dummy; do 1289 IFS=$ac_save_IFS 1290 test -z "$ac_dir" && ac_dir=. 1291 $as_executable_p "$ac_dir/$ac_word" || continue 1292ac_cv_prog_ac_ct_CC="$ac_prog" 1293echo "$as_me:1293: found $ac_dir/$ac_word" >&5 1294break 1295done 1296 1297fi 1298fi 1299ac_ct_CC=$ac_cv_prog_ac_ct_CC 1300if test -n "$ac_ct_CC"; then 1301 echo "$as_me:1301: result: $ac_ct_CC" >&5 1302echo "${ECHO_T}$ac_ct_CC" >&6 1303else 1304 echo "$as_me:1304: result: no" >&5 1305echo "${ECHO_T}no" >&6 1306fi 1307 1308 test -n "$ac_ct_CC" && break 1309done 1310 1311 CC=$ac_ct_CC 1312fi 1313 1314fi 1315 1316test -z "$CC" && { { echo "$as_me:1316: error: no acceptable cc found in \$PATH" >&5 1317echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1318 { (exit 1); exit 1; }; } 1319 1320# Provide some information about the compiler. 1321echo "$as_me:1321:" \ 1322 "checking for C compiler version" >&5 1323ac_compiler=`set X $ac_compile; echo $2` 1324{ (eval echo "$as_me:1324: \"$ac_compiler --version </dev/null >&5\"") >&5 1325 (eval $ac_compiler --version </dev/null >&5) 2>&5 1326 ac_status=$? 1327 echo "$as_me:1327: \$? = $ac_status" >&5 1328 (exit $ac_status); } 1329{ (eval echo "$as_me:1329: \"$ac_compiler -v </dev/null >&5\"") >&5 1330 (eval $ac_compiler -v </dev/null >&5) 2>&5 1331 ac_status=$? 1332 echo "$as_me:1332: \$? = $ac_status" >&5 1333 (exit $ac_status); } 1334{ (eval echo "$as_me:1334: \"$ac_compiler -V </dev/null >&5\"") >&5 1335 (eval $ac_compiler -V </dev/null >&5) 2>&5 1336 ac_status=$? 1337 echo "$as_me:1337: \$? = $ac_status" >&5 1338 (exit $ac_status); } 1339 1340cat >conftest.$ac_ext <<_ACEOF 1341#line 1341 "configure" 1342#include "confdefs.h" 1343 1344int 1345main () 1346{ 1347 1348 ; 1349 return 0; 1350} 1351_ACEOF 1352ac_clean_files_save=$ac_clean_files 1353ac_clean_files="$ac_clean_files a.out a.exe" 1354# Try to create an executable without -o first, disregard a.out. 1355# It will help us diagnose broken compilers, and finding out an intuition 1356# of exeext. 1357echo "$as_me:1357: checking for C compiler default output" >&5 1358echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1359ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1360if { (eval echo "$as_me:1360: \"$ac_link_default\"") >&5 1361 (eval $ac_link_default) 2>&5 1362 ac_status=$? 1363 echo "$as_me:1363: \$? = $ac_status" >&5 1364 (exit $ac_status); }; then 1365 # Find the output, starting from the most likely. This scheme is 1366# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1367# resort. 1368for ac_file in `ls a.exe conftest.exe 2>/dev/null; 1369 ls a.out conftest 2>/dev/null; 1370 ls a.* conftest.* 2>/dev/null`; do 1371 case $ac_file in 1372 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1373 a.out ) # We found the default executable, but exeext='' is most 1374 # certainly right. 1375 break;; 1376 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1377 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 1378 export ac_cv_exeext 1379 break;; 1380 * ) break;; 1381 esac 1382done 1383else 1384 echo "$as_me: failed program was:" >&5 1385cat conftest.$ac_ext >&5 1386{ { echo "$as_me:1386: error: C compiler cannot create executables" >&5 1387echo "$as_me: error: C compiler cannot create executables" >&2;} 1388 { (exit 77); exit 77; }; } 1389fi 1390 1391ac_exeext=$ac_cv_exeext 1392echo "$as_me:1392: result: $ac_file" >&5 1393echo "${ECHO_T}$ac_file" >&6 1394 1395# Check the compiler produces executables we can run. If not, either 1396# the compiler is broken, or we cross compile. 1397echo "$as_me:1397: checking whether the C compiler works" >&5 1398echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1399# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1400# If not cross compiling, check that we can run a simple program. 1401if test "$cross_compiling" != yes; then 1402 if { ac_try='./$ac_file' 1403 { (eval echo "$as_me:1403: \"$ac_try\"") >&5 1404 (eval $ac_try) 2>&5 1405 ac_status=$? 1406 echo "$as_me:1406: \$? = $ac_status" >&5 1407 (exit $ac_status); }; }; then 1408 cross_compiling=no 1409 else 1410 if test "$cross_compiling" = maybe; then 1411 cross_compiling=yes 1412 else 1413 { { echo "$as_me:1413: error: cannot run C compiled programs. 1414If you meant to cross compile, use \`--host'." >&5 1415echo "$as_me: error: cannot run C compiled programs. 1416If you meant to cross compile, use \`--host'." >&2;} 1417 { (exit 1); exit 1; }; } 1418 fi 1419 fi 1420fi 1421echo "$as_me:1421: result: yes" >&5 1422echo "${ECHO_T}yes" >&6 1423 1424rm -f a.out a.exe conftest$ac_cv_exeext 1425ac_clean_files=$ac_clean_files_save 1426# Check the compiler produces executables we can run. If not, either 1427# the compiler is broken, or we cross compile. 1428echo "$as_me:1428: checking whether we are cross compiling" >&5 1429echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1430echo "$as_me:1430: result: $cross_compiling" >&5 1431echo "${ECHO_T}$cross_compiling" >&6 1432 1433echo "$as_me:1433: checking for executable suffix" >&5 1434echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1435if { (eval echo "$as_me:1435: \"$ac_link\"") >&5 1436 (eval $ac_link) 2>&5 1437 ac_status=$? 1438 echo "$as_me:1438: \$? = $ac_status" >&5 1439 (exit $ac_status); }; then 1440 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1441# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1442# work properly (i.e., refer to `conftest.exe'), while it won't with 1443# `rm'. 1444for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1445 case $ac_file in 1446 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1447 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1448 export ac_cv_exeext 1449 break;; 1450 * ) break;; 1451 esac 1452done 1453else 1454 { { echo "$as_me:1454: error: cannot compute EXEEXT: cannot compile and link" >&5 1455echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1456 { (exit 1); exit 1; }; } 1457fi 1458 1459rm -f conftest$ac_cv_exeext 1460echo "$as_me:1460: result: $ac_cv_exeext" >&5 1461echo "${ECHO_T}$ac_cv_exeext" >&6 1462 1463rm -f conftest.$ac_ext 1464EXEEXT=$ac_cv_exeext 1465ac_exeext=$EXEEXT 1466echo "$as_me:1466: checking for object suffix" >&5 1467echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 1468if test "${ac_cv_objext+set}" = set; then 1469 echo $ECHO_N "(cached) $ECHO_C" >&6 1470else 1471 cat >conftest.$ac_ext <<_ACEOF 1472#line 1472 "configure" 1473#include "confdefs.h" 1474 1475int 1476main () 1477{ 1478 1479 ; 1480 return 0; 1481} 1482_ACEOF 1483rm -f conftest.o conftest.obj 1484if { (eval echo "$as_me:1484: \"$ac_compile\"") >&5 1485 (eval $ac_compile) 2>&5 1486 ac_status=$? 1487 echo "$as_me:1487: \$? = $ac_status" >&5 1488 (exit $ac_status); }; then 1489 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1490 case $ac_file in 1491 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;; 1492 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1493 break;; 1494 esac 1495done 1496else 1497 echo "$as_me: failed program was:" >&5 1498cat conftest.$ac_ext >&5 1499{ { echo "$as_me:1499: error: cannot compute OBJEXT: cannot compile" >&5 1500echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1501 { (exit 1); exit 1; }; } 1502fi 1503 1504rm -f conftest.$ac_cv_objext conftest.$ac_ext 1505fi 1506echo "$as_me:1506: result: $ac_cv_objext" >&5 1507echo "${ECHO_T}$ac_cv_objext" >&6 1508OBJEXT=$ac_cv_objext 1509ac_objext=$OBJEXT 1510echo "$as_me:1510: checking whether we are using the GNU C compiler" >&5 1511echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1512if test "${ac_cv_c_compiler_gnu+set}" = set; then 1513 echo $ECHO_N "(cached) $ECHO_C" >&6 1514else 1515 cat >conftest.$ac_ext <<_ACEOF 1516#line 1516 "configure" 1517#include "confdefs.h" 1518 1519int 1520main () 1521{ 1522#ifndef __GNUC__ 1523 choke me 1524#endif 1525 1526 ; 1527 return 0; 1528} 1529_ACEOF 1530rm -f conftest.$ac_objext 1531if { (eval echo "$as_me:1531: \"$ac_compile\"") >&5 1532 (eval $ac_compile) 2>&5 1533 ac_status=$? 1534 echo "$as_me:1534: \$? = $ac_status" >&5 1535 (exit $ac_status); } && 1536 { ac_try='test -s conftest.$ac_objext' 1537 { (eval echo "$as_me:1537: \"$ac_try\"") >&5 1538 (eval $ac_try) 2>&5 1539 ac_status=$? 1540 echo "$as_me:1540: \$? = $ac_status" >&5 1541 (exit $ac_status); }; }; then 1542 ac_compiler_gnu=yes 1543else 1544 echo "$as_me: failed program was:" >&5 1545cat conftest.$ac_ext >&5 1546ac_compiler_gnu=no 1547fi 1548rm -f conftest.$ac_objext conftest.$ac_ext 1549ac_cv_c_compiler_gnu=$ac_compiler_gnu 1550 1551fi 1552echo "$as_me:1552: result: $ac_cv_c_compiler_gnu" >&5 1553echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1554GCC=`test $ac_compiler_gnu = yes && echo yes` 1555ac_test_CFLAGS=${CFLAGS+set} 1556ac_save_CFLAGS=$CFLAGS 1557CFLAGS="-g" 1558echo "$as_me:1558: checking whether $CC accepts -g" >&5 1559echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1560if test "${ac_cv_prog_cc_g+set}" = set; then 1561 echo $ECHO_N "(cached) $ECHO_C" >&6 1562else 1563 cat >conftest.$ac_ext <<_ACEOF 1564#line 1564 "configure" 1565#include "confdefs.h" 1566 1567int 1568main () 1569{ 1570 1571 ; 1572 return 0; 1573} 1574_ACEOF 1575rm -f conftest.$ac_objext 1576if { (eval echo "$as_me:1576: \"$ac_compile\"") >&5 1577 (eval $ac_compile) 2>&5 1578 ac_status=$? 1579 echo "$as_me:1579: \$? = $ac_status" >&5 1580 (exit $ac_status); } && 1581 { ac_try='test -s conftest.$ac_objext' 1582 { (eval echo "$as_me:1582: \"$ac_try\"") >&5 1583 (eval $ac_try) 2>&5 1584 ac_status=$? 1585 echo "$as_me:1585: \$? = $ac_status" >&5 1586 (exit $ac_status); }; }; then 1587 ac_cv_prog_cc_g=yes 1588else 1589 echo "$as_me: failed program was:" >&5 1590cat conftest.$ac_ext >&5 1591ac_cv_prog_cc_g=no 1592fi 1593rm -f conftest.$ac_objext conftest.$ac_ext 1594fi 1595echo "$as_me:1595: result: $ac_cv_prog_cc_g" >&5 1596echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1597if test "$ac_test_CFLAGS" = set; then 1598 CFLAGS=$ac_save_CFLAGS 1599elif test $ac_cv_prog_cc_g = yes; then 1600 if test "$GCC" = yes; then 1601 CFLAGS="-g -O2" 1602 else 1603 CFLAGS="-g" 1604 fi 1605else 1606 if test "$GCC" = yes; then 1607 CFLAGS="-O2" 1608 else 1609 CFLAGS= 1610 fi 1611fi 1612# Some people use a C++ compiler to compile C. Since we use `exit', 1613# in C++ we need to declare it. In case someone uses the same compiler 1614# for both compiling C and C++ we need to have the C++ compiler decide 1615# the declaration of exit, since it's the most demanding environment. 1616cat >conftest.$ac_ext <<_ACEOF 1617#ifndef __cplusplus 1618 choke me 1619#endif 1620_ACEOF 1621rm -f conftest.$ac_objext 1622if { (eval echo "$as_me:1622: \"$ac_compile\"") >&5 1623 (eval $ac_compile) 2>&5 1624 ac_status=$? 1625 echo "$as_me:1625: \$? = $ac_status" >&5 1626 (exit $ac_status); } && 1627 { ac_try='test -s conftest.$ac_objext' 1628 { (eval echo "$as_me:1628: \"$ac_try\"") >&5 1629 (eval $ac_try) 2>&5 1630 ac_status=$? 1631 echo "$as_me:1631: \$? = $ac_status" >&5 1632 (exit $ac_status); }; }; then 1633 for ac_declaration in \ 1634 ''\ 1635 '#include <stdlib.h>' \ 1636 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1637 'extern "C" void std::exit (int); using std::exit;' \ 1638 'extern "C" void exit (int) throw ();' \ 1639 'extern "C" void exit (int);' \ 1640 'void exit (int);' 1641do 1642 cat >conftest.$ac_ext <<_ACEOF 1643#line 1643 "configure" 1644#include "confdefs.h" 1645#include <stdlib.h> 1646$ac_declaration 1647int 1648main () 1649{ 1650exit (42); 1651 ; 1652 return 0; 1653} 1654_ACEOF 1655rm -f conftest.$ac_objext 1656if { (eval echo "$as_me:1656: \"$ac_compile\"") >&5 1657 (eval $ac_compile) 2>&5 1658 ac_status=$? 1659 echo "$as_me:1659: \$? = $ac_status" >&5 1660 (exit $ac_status); } && 1661 { ac_try='test -s conftest.$ac_objext' 1662 { (eval echo "$as_me:1662: \"$ac_try\"") >&5 1663 (eval $ac_try) 2>&5 1664 ac_status=$? 1665 echo "$as_me:1665: \$? = $ac_status" >&5 1666 (exit $ac_status); }; }; then 1667 : 1668else 1669 echo "$as_me: failed program was:" >&5 1670cat conftest.$ac_ext >&5 1671continue 1672fi 1673rm -f conftest.$ac_objext conftest.$ac_ext 1674 cat >conftest.$ac_ext <<_ACEOF 1675#line 1675 "configure" 1676#include "confdefs.h" 1677$ac_declaration 1678int 1679main () 1680{ 1681exit (42); 1682 ; 1683 return 0; 1684} 1685_ACEOF 1686rm -f conftest.$ac_objext 1687if { (eval echo "$as_me:1687: \"$ac_compile\"") >&5 1688 (eval $ac_compile) 2>&5 1689 ac_status=$? 1690 echo "$as_me:1690: \$? = $ac_status" >&5 1691 (exit $ac_status); } && 1692 { ac_try='test -s conftest.$ac_objext' 1693 { (eval echo "$as_me:1693: \"$ac_try\"") >&5 1694 (eval $ac_try) 2>&5 1695 ac_status=$? 1696 echo "$as_me:1696: \$? = $ac_status" >&5 1697 (exit $ac_status); }; }; then 1698 break 1699else 1700 echo "$as_me: failed program was:" >&5 1701cat conftest.$ac_ext >&5 1702fi 1703rm -f conftest.$ac_objext conftest.$ac_ext 1704done 1705rm -rf conftest* 1706if test -n "$ac_declaration"; then 1707 echo '#ifdef __cplusplus' >>confdefs.h 1708 echo $ac_declaration >>confdefs.h 1709 echo '#endif' >>confdefs.h 1710fi 1711 1712else 1713 echo "$as_me: failed program was:" >&5 1714cat conftest.$ac_ext >&5 1715fi 1716rm -f conftest.$ac_objext conftest.$ac_ext 1717ac_ext=c 1718ac_cpp='$CPP $CPPFLAGS' 1719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1721ac_compiler_gnu=$ac_cv_c_compiler_gnu 1722ac_main_return=return 1723 1724ac_ext=c 1725ac_cpp='$CPP $CPPFLAGS' 1726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1728ac_compiler_gnu=$ac_cv_c_compiler_gnu 1729ac_main_return=return 1730echo "$as_me:1730: checking how to run the C preprocessor" >&5 1731echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 1732# On Suns, sometimes $CPP names a directory. 1733if test -n "$CPP" && test -d "$CPP"; then 1734 CPP= 1735fi 1736if test -z "$CPP"; then 1737 if test "${ac_cv_prog_CPP+set}" = set; then 1738 echo $ECHO_N "(cached) $ECHO_C" >&6 1739else 1740 # Double quotes because CPP needs to be expanded 1741 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 1742 do 1743 ac_preproc_ok=false 1744for ac_c_preproc_warn_flag in '' yes 1745do 1746 # Use a header file that comes with gcc, so configuring glibc 1747 # with a fresh cross-compiler works. 1748 # On the NeXT, cc -E runs the code through the compiler's parser, 1749 # not just through cpp. "Syntax error" is here to catch this case. 1750 cat >conftest.$ac_ext <<_ACEOF 1751#line 1751 "configure" 1752#include "confdefs.h" 1753#include <assert.h> 1754 Syntax error 1755_ACEOF 1756if { (eval echo "$as_me:1756: \"$ac_cpp conftest.$ac_ext\"") >&5 1757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 1758 ac_status=$? 1759 egrep -v '^ *\+' conftest.er1 >conftest.err 1760 rm -f conftest.er1 1761 cat conftest.err >&5 1762 echo "$as_me:1762: \$? = $ac_status" >&5 1763 (exit $ac_status); } >/dev/null; then 1764 if test -s conftest.err; then 1765 ac_cpp_err=$ac_c_preproc_warn_flag 1766 else 1767 ac_cpp_err= 1768 fi 1769else 1770 ac_cpp_err=yes 1771fi 1772if test -z "$ac_cpp_err"; then 1773 : 1774else 1775 echo "$as_me: failed program was:" >&5 1776 cat conftest.$ac_ext >&5 1777 # Broken: fails on valid input. 1778continue 1779fi 1780rm -f conftest.err conftest.$ac_ext 1781 1782 # OK, works on sane cases. Now check whether non-existent headers 1783 # can be detected and how. 1784 cat >conftest.$ac_ext <<_ACEOF 1785#line 1785 "configure" 1786#include "confdefs.h" 1787#include <ac_nonexistent.h> 1788_ACEOF 1789if { (eval echo "$as_me:1789: \"$ac_cpp conftest.$ac_ext\"") >&5 1790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 1791 ac_status=$? 1792 egrep -v '^ *\+' conftest.er1 >conftest.err 1793 rm -f conftest.er1 1794 cat conftest.err >&5 1795 echo "$as_me:1795: \$? = $ac_status" >&5 1796 (exit $ac_status); } >/dev/null; then 1797 if test -s conftest.err; then 1798 ac_cpp_err=$ac_c_preproc_warn_flag 1799 else 1800 ac_cpp_err= 1801 fi 1802else 1803 ac_cpp_err=yes 1804fi 1805if test -z "$ac_cpp_err"; then 1806 # Broken: success on invalid input. 1807continue 1808else 1809 echo "$as_me: failed program was:" >&5 1810 cat conftest.$ac_ext >&5 1811 # Passes both tests. 1812ac_preproc_ok=: 1813break 1814fi 1815rm -f conftest.err conftest.$ac_ext 1816 1817done 1818# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 1819rm -f conftest.err conftest.$ac_ext 1820if $ac_preproc_ok; then 1821 break 1822fi 1823 1824 done 1825 ac_cv_prog_CPP=$CPP 1826 1827fi 1828 CPP=$ac_cv_prog_CPP 1829else 1830 ac_cv_prog_CPP=$CPP 1831fi 1832echo "$as_me:1832: result: $CPP" >&5 1833echo "${ECHO_T}$CPP" >&6 1834ac_preproc_ok=false 1835for ac_c_preproc_warn_flag in '' yes 1836do 1837 # Use a header file that comes with gcc, so configuring glibc 1838 # with a fresh cross-compiler works. 1839 # On the NeXT, cc -E runs the code through the compiler's parser, 1840 # not just through cpp. "Syntax error" is here to catch this case. 1841 cat >conftest.$ac_ext <<_ACEOF 1842#line 1842 "configure" 1843#include "confdefs.h" 1844#include <assert.h> 1845 Syntax error 1846_ACEOF 1847if { (eval echo "$as_me:1847: \"$ac_cpp conftest.$ac_ext\"") >&5 1848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 1849 ac_status=$? 1850 egrep -v '^ *\+' conftest.er1 >conftest.err 1851 rm -f conftest.er1 1852 cat conftest.err >&5 1853 echo "$as_me:1853: \$? = $ac_status" >&5 1854 (exit $ac_status); } >/dev/null; then 1855 if test -s conftest.err; then 1856 ac_cpp_err=$ac_c_preproc_warn_flag 1857 else 1858 ac_cpp_err= 1859 fi 1860else 1861 ac_cpp_err=yes 1862fi 1863if test -z "$ac_cpp_err"; then 1864 : 1865else 1866 echo "$as_me: failed program was:" >&5 1867 cat conftest.$ac_ext >&5 1868 # Broken: fails on valid input. 1869continue 1870fi 1871rm -f conftest.err conftest.$ac_ext 1872 1873 # OK, works on sane cases. Now check whether non-existent headers 1874 # can be detected and how. 1875 cat >conftest.$ac_ext <<_ACEOF 1876#line 1876 "configure" 1877#include "confdefs.h" 1878#include <ac_nonexistent.h> 1879_ACEOF 1880if { (eval echo "$as_me:1880: \"$ac_cpp conftest.$ac_ext\"") >&5 1881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 1882 ac_status=$? 1883 egrep -v '^ *\+' conftest.er1 >conftest.err 1884 rm -f conftest.er1 1885 cat conftest.err >&5 1886 echo "$as_me:1886: \$? = $ac_status" >&5 1887 (exit $ac_status); } >/dev/null; then 1888 if test -s conftest.err; then 1889 ac_cpp_err=$ac_c_preproc_warn_flag 1890 else 1891 ac_cpp_err= 1892 fi 1893else 1894 ac_cpp_err=yes 1895fi 1896if test -z "$ac_cpp_err"; then 1897 # Broken: success on invalid input. 1898continue 1899else 1900 echo "$as_me: failed program was:" >&5 1901 cat conftest.$ac_ext >&5 1902 # Passes both tests. 1903ac_preproc_ok=: 1904break 1905fi 1906rm -f conftest.err conftest.$ac_ext 1907 1908done 1909# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 1910rm -f conftest.err conftest.$ac_ext 1911if $ac_preproc_ok; then 1912 : 1913else 1914 { { echo "$as_me:1914: error: C preprocessor \"$CPP\" fails sanity check" >&5 1915echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 1916 { (exit 1); exit 1; }; } 1917fi 1918 1919ac_ext=c 1920ac_cpp='$CPP $CPPFLAGS' 1921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1923ac_compiler_gnu=$ac_cv_c_compiler_gnu 1924ac_main_return=return 1925 1926if test $ac_cv_c_compiler_gnu = yes; then 1927 echo "$as_me:1927: checking whether $CC needs -traditional" >&5 1928echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 1929if test "${ac_cv_prog_gcc_traditional+set}" = set; then 1930 echo $ECHO_N "(cached) $ECHO_C" >&6 1931else 1932 ac_pattern="Autoconf.*'x'" 1933 cat >conftest.$ac_ext <<_ACEOF 1934#line 1934 "configure" 1935#include "confdefs.h" 1936#include <sgtty.h> 1937int Autoconf = TIOCGETP; 1938_ACEOF 1939if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1940 egrep "$ac_pattern" >/dev/null 2>&1; then 1941 ac_cv_prog_gcc_traditional=yes 1942else 1943 ac_cv_prog_gcc_traditional=no 1944fi 1945rm -rf conftest* 1946 1947 if test $ac_cv_prog_gcc_traditional = no; then 1948 cat >conftest.$ac_ext <<_ACEOF 1949#line 1949 "configure" 1950#include "confdefs.h" 1951#include <termio.h> 1952int Autoconf = TCGETA; 1953_ACEOF 1954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1955 egrep "$ac_pattern" >/dev/null 2>&1; then 1956 ac_cv_prog_gcc_traditional=yes 1957fi 1958rm -rf conftest* 1959 1960 fi 1961fi 1962echo "$as_me:1962: result: $ac_cv_prog_gcc_traditional" >&5 1963echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 1964 if test $ac_cv_prog_gcc_traditional = yes; then 1965 CC="$CC -traditional" 1966 fi 1967fi 1968 1969echo "$as_me:1969: checking whether ${MAKE-make} sets \${MAKE}" >&5 1970echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 1971set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 1972if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1973 echo $ECHO_N "(cached) $ECHO_C" >&6 1974else 1975 cat >conftest.make <<\EOF 1976all: 1977 @echo 'ac_maketemp="${MAKE}"' 1978EOF 1979# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1980eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1981if test -n "$ac_maketemp"; then 1982 eval ac_cv_prog_make_${ac_make}_set=yes 1983else 1984 eval ac_cv_prog_make_${ac_make}_set=no 1985fi 1986rm -f conftest.make 1987fi 1988if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1989 echo "$as_me:1989: result: yes" >&5 1990echo "${ECHO_T}yes" >&6 1991 SET_MAKE= 1992else 1993 echo "$as_me:1993: result: no" >&5 1994echo "${ECHO_T}no" >&6 1995 SET_MAKE="MAKE=${MAKE-make}" 1996fi 1997 1998if test -n "$ac_tool_prefix"; then 1999 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2000set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2001echo "$as_me:2001: checking for $ac_word" >&5 2002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2003if test "${ac_cv_prog_RANLIB+set}" = set; then 2004 echo $ECHO_N "(cached) $ECHO_C" >&6 2005else 2006 if test -n "$RANLIB"; then 2007 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2008else 2009 ac_save_IFS=$IFS; IFS=$ac_path_separator 2010ac_dummy="$PATH" 2011for ac_dir in $ac_dummy; do 2012 IFS=$ac_save_IFS 2013 test -z "$ac_dir" && ac_dir=. 2014 $as_executable_p "$ac_dir/$ac_word" || continue 2015ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2016echo "$as_me:2016: found $ac_dir/$ac_word" >&5 2017break 2018done 2019 2020fi 2021fi 2022RANLIB=$ac_cv_prog_RANLIB 2023if test -n "$RANLIB"; then 2024 echo "$as_me:2024: result: $RANLIB" >&5 2025echo "${ECHO_T}$RANLIB" >&6 2026else 2027 echo "$as_me:2027: result: no" >&5 2028echo "${ECHO_T}no" >&6 2029fi 2030 2031fi 2032if test -z "$ac_cv_prog_RANLIB"; then 2033 ac_ct_RANLIB=$RANLIB 2034 # Extract the first word of "ranlib", so it can be a program name with args. 2035set dummy ranlib; ac_word=$2 2036echo "$as_me:2036: checking for $ac_word" >&5 2037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2038if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2039 echo $ECHO_N "(cached) $ECHO_C" >&6 2040else 2041 if test -n "$ac_ct_RANLIB"; then 2042 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2043else 2044 ac_save_IFS=$IFS; IFS=$ac_path_separator 2045ac_dummy="$PATH" 2046for ac_dir in $ac_dummy; do 2047 IFS=$ac_save_IFS 2048 test -z "$ac_dir" && ac_dir=. 2049 $as_executable_p "$ac_dir/$ac_word" || continue 2050ac_cv_prog_ac_ct_RANLIB="ranlib" 2051echo "$as_me:2051: found $ac_dir/$ac_word" >&5 2052break 2053done 2054 2055 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 2056fi 2057fi 2058ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2059if test -n "$ac_ct_RANLIB"; then 2060 echo "$as_me:2060: result: $ac_ct_RANLIB" >&5 2061echo "${ECHO_T}$ac_ct_RANLIB" >&6 2062else 2063 echo "$as_me:2063: result: no" >&5 2064echo "${ECHO_T}no" >&6 2065fi 2066 2067 RANLIB=$ac_ct_RANLIB 2068else 2069 RANLIB="$ac_cv_prog_RANLIB" 2070fi 2071 2072ac_aux_dir= 2073for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 2074 if test -f $ac_dir/install-sh; then 2075 ac_aux_dir=$ac_dir 2076 ac_install_sh="$ac_aux_dir/install-sh -c" 2077 break 2078 elif test -f $ac_dir/install.sh; then 2079 ac_aux_dir=$ac_dir 2080 ac_install_sh="$ac_aux_dir/install.sh -c" 2081 break 2082 elif test -f $ac_dir/shtool; then 2083 ac_aux_dir=$ac_dir 2084 ac_install_sh="$ac_aux_dir/shtool install -c" 2085 break 2086 fi 2087done 2088if test -z "$ac_aux_dir"; then 2089 { { echo "$as_me:2089: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2090echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2091 { (exit 1); exit 1; }; } 2092fi 2093ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2094ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2095ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 2096 2097# Find a good install program. We prefer a C program (faster), 2098# so one script is as good as another. But avoid the broken or 2099# incompatible versions: 2100# SysV /etc/install, /usr/sbin/install 2101# SunOS /usr/etc/install 2102# IRIX /sbin/install 2103# AIX /bin/install 2104# AmigaOS /C/install, which installs bootblocks on floppy discs 2105# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2106# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2107# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2108# ./install, which can be erroneously created by make from ./install.sh. 2109echo "$as_me:2109: checking for a BSD compatible install" >&5 2110echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 2111if test -z "$INSTALL"; then 2112if test "${ac_cv_path_install+set}" = set; then 2113 echo $ECHO_N "(cached) $ECHO_C" >&6 2114else 2115 ac_save_IFS=$IFS; IFS=$ac_path_separator 2116 for ac_dir in $PATH; do 2117 IFS=$ac_save_IFS 2118 # Account for people who put trailing slashes in PATH elements. 2119 case $ac_dir/ in 2120 / | ./ | .// | /cC/* \ 2121 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 2122 | /usr/ucb/* ) ;; 2123 *) 2124 # OSF1 and SCO ODT 3.0 have their own names for install. 2125 # Don't use installbsd from OSF since it installs stuff as root 2126 # by default. 2127 for ac_prog in ginstall scoinst install; do 2128 if $as_executable_p "$ac_dir/$ac_prog"; then 2129 if test $ac_prog = install && 2130 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2131 # AIX install. It has an incompatible calling convention. 2132 : 2133 elif test $ac_prog = install && 2134 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2135 # program-specific install script used by HP pwplus--don't use. 2136 : 2137 else 2138 ac_cv_path_install="$ac_dir/$ac_prog -c" 2139 break 2 2140 fi 2141 fi 2142 done 2143 ;; 2144 esac 2145 done 2146 2147fi 2148 if test "${ac_cv_path_install+set}" = set; then 2149 INSTALL=$ac_cv_path_install 2150 else 2151 # As a last resort, use the slow shell script. We don't cache a 2152 # path for INSTALL within a source directory, because that will 2153 # break other packages using the cache if that directory is 2154 # removed, or if the path is relative. 2155 INSTALL=$ac_install_sh 2156 fi 2157fi 2158echo "$as_me:2158: result: $INSTALL" >&5 2159echo "${ECHO_T}$INSTALL" >&6 2160 2161# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2162# It thinks the first close brace ends the variable substitution. 2163test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2164 2165test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2166 2167test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2168 2169if test -n "$ac_tool_prefix"; then 2170 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 2171set dummy ${ac_tool_prefix}ar; ac_word=$2 2172echo "$as_me:2172: checking for $ac_word" >&5 2173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2174if test "${ac_cv_prog_AR+set}" = set; then 2175 echo $ECHO_N "(cached) $ECHO_C" >&6 2176else 2177 if test -n "$AR"; then 2178 ac_cv_prog_AR="$AR" # Let the user override the test. 2179else 2180 ac_save_IFS=$IFS; IFS=$ac_path_separator 2181ac_dummy="$PATH" 2182for ac_dir in $ac_dummy; do 2183 IFS=$ac_save_IFS 2184 test -z "$ac_dir" && ac_dir=. 2185 $as_executable_p "$ac_dir/$ac_word" || continue 2186ac_cv_prog_AR="${ac_tool_prefix}ar" 2187echo "$as_me:2187: found $ac_dir/$ac_word" >&5 2188break 2189done 2190 2191fi 2192fi 2193AR=$ac_cv_prog_AR 2194if test -n "$AR"; then 2195 echo "$as_me:2195: result: $AR" >&5 2196echo "${ECHO_T}$AR" >&6 2197else 2198 echo "$as_me:2198: result: no" >&5 2199echo "${ECHO_T}no" >&6 2200fi 2201 2202fi 2203if test -z "$ac_cv_prog_AR"; then 2204 ac_ct_AR=$AR 2205 # Extract the first word of "ar", so it can be a program name with args. 2206set dummy ar; ac_word=$2 2207echo "$as_me:2207: checking for $ac_word" >&5 2208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2209if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 2210 echo $ECHO_N "(cached) $ECHO_C" >&6 2211else 2212 if test -n "$ac_ct_AR"; then 2213 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 2214else 2215 ac_save_IFS=$IFS; IFS=$ac_path_separator 2216ac_dummy="$PATH" 2217for ac_dir in $ac_dummy; do 2218 IFS=$ac_save_IFS 2219 test -z "$ac_dir" && ac_dir=. 2220 $as_executable_p "$ac_dir/$ac_word" || continue 2221ac_cv_prog_ac_ct_AR="ar" 2222echo "$as_me:2222: found $ac_dir/$ac_word" >&5 2223break 2224done 2225 2226 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" 2227fi 2228fi 2229ac_ct_AR=$ac_cv_prog_ac_ct_AR 2230if test -n "$ac_ct_AR"; then 2231 echo "$as_me:2231: result: $ac_ct_AR" >&5 2232echo "${ECHO_T}$ac_ct_AR" >&6 2233else 2234 echo "$as_me:2234: result: no" >&5 2235echo "${ECHO_T}no" >&6 2236fi 2237 2238 AR=$ac_ct_AR 2239else 2240 AR="$ac_cv_prog_AR" 2241fi 2242 2243echo "$as_me:2243: checking for POSIXized ISC" >&5 2244echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6 2245if test -d /etc/conf/kconfig.d && 2246 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 2247then 2248 echo "$as_me:2248: result: yes" >&5 2249echo "${ECHO_T}yes" >&6 2250 ISC=yes # If later tests want to check for ISC. 2251 2252cat >>confdefs.h <<\EOF 2253#define _POSIX_SOURCE 1 2254EOF 2255 2256 if test "$GCC" = yes; then 2257 CC="$CC -posix" 2258 else 2259 CC="$CC -Xp" 2260 fi 2261else 2262 echo "$as_me:2262: result: no" >&5 2263echo "${ECHO_T}no" >&6 2264 ISC= 2265fi 2266 2267echo "$as_me:2267: checking for $CC option to accept ANSI C" >&5 2268echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2269if test "${ac_cv_prog_cc_stdc+set}" = set; then 2270 echo $ECHO_N "(cached) $ECHO_C" >&6 2271else 2272 ac_cv_prog_cc_stdc=no 2273ac_save_CC=$CC 2274cat >conftest.$ac_ext <<_ACEOF 2275#line 2275 "configure" 2276#include "confdefs.h" 2277#include <stdarg.h> 2278#include <stdio.h> 2279#include <sys/types.h> 2280#include <sys/stat.h> 2281/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2282struct buf { int x; }; 2283FILE * (*rcsopen) (struct buf *, struct stat *, int); 2284static char *e (p, i) 2285 char **p; 2286 int i; 2287{ 2288 return p[i]; 2289} 2290static char *f (char * (*g) (char **, int), char **p, ...) 2291{ 2292 char *s; 2293 va_list v; 2294 va_start (v,p); 2295 s = g (p, va_arg (v,int)); 2296 va_end (v); 2297 return s; 2298} 2299int test (int i, double x); 2300struct s1 {int (*f) (int a);}; 2301struct s2 {int (*f) (double a);}; 2302int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2303int argc; 2304char **argv; 2305int 2306main () 2307{ 2308return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2309 ; 2310 return 0; 2311} 2312_ACEOF 2313# Don't try gcc -ansi; that turns off useful extensions and 2314# breaks some systems' header files. 2315# AIX -qlanglvl=ansi 2316# Ultrix and OSF/1 -std1 2317# HP-UX 10.20 and later -Ae 2318# HP-UX older versions -Aa -D_HPUX_SOURCE 2319# SVR4 -Xc -D__EXTENSIONS__ 2320for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2321do 2322 CC="$ac_save_CC $ac_arg" 2323 rm -f conftest.$ac_objext 2324if { (eval echo "$as_me:2324: \"$ac_compile\"") >&5 2325 (eval $ac_compile) 2>&5 2326 ac_status=$? 2327 echo "$as_me:2327: \$? = $ac_status" >&5 2328 (exit $ac_status); } && 2329 { ac_try='test -s conftest.$ac_objext' 2330 { (eval echo "$as_me:2330: \"$ac_try\"") >&5 2331 (eval $ac_try) 2>&5 2332 ac_status=$? 2333 echo "$as_me:2333: \$? = $ac_status" >&5 2334 (exit $ac_status); }; }; then 2335 ac_cv_prog_cc_stdc=$ac_arg 2336break 2337else 2338 echo "$as_me: failed program was:" >&5 2339cat conftest.$ac_ext >&5 2340fi 2341rm -f conftest.$ac_objext 2342done 2343rm -f conftest.$ac_ext conftest.$ac_objext 2344CC=$ac_save_CC 2345 2346fi 2347 2348case "x$ac_cv_prog_cc_stdc" in 2349 x|xno) 2350 echo "$as_me:2350: result: none needed" >&5 2351echo "${ECHO_T}none needed" >&6 ;; 2352 *) 2353 echo "$as_me:2353: result: $ac_cv_prog_cc_stdc" >&5 2354echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2355 CC="$CC $ac_cv_prog_cc_stdc" ;; 2356esac 2357 2358echo "$as_me:2358: checking for an ANSI C-conforming const" >&5 2359echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 2360if test "${ac_cv_c_const+set}" = set; then 2361 echo $ECHO_N "(cached) $ECHO_C" >&6 2362else 2363 cat >conftest.$ac_ext <<_ACEOF 2364#line 2364 "configure" 2365#include "confdefs.h" 2366 2367int 2368main () 2369{ 2370/* FIXME: Include the comments suggested by Paul. */ 2371#ifndef __cplusplus 2372 /* Ultrix mips cc rejects this. */ 2373 typedef int charset[2]; 2374 const charset x; 2375 /* SunOS 4.1.1 cc rejects this. */ 2376 char const *const *ccp; 2377 char **p; 2378 /* NEC SVR4.0.2 mips cc rejects this. */ 2379 struct point {int x, y;}; 2380 static struct point const zero = {0,0}; 2381 /* AIX XL C 1.02.0.0 rejects this. 2382 It does not let you subtract one const X* pointer from another in 2383 an arm of an if-expression whose if-part is not a constant 2384 expression */ 2385 const char *g = "string"; 2386 ccp = &g + (g ? g-g : 0); 2387 /* HPUX 7.0 cc rejects these. */ 2388 ++ccp; 2389 p = (char**) ccp; 2390 ccp = (char const *const *) p; 2391 { /* SCO 3.2v4 cc rejects this. */ 2392 char *t; 2393 char const *s = 0 ? (char *) 0 : (char const *) 0; 2394 2395 *t++ = 0; 2396 } 2397 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 2398 int x[] = {25, 17}; 2399 const int *foo = &x[0]; 2400 ++foo; 2401 } 2402 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 2403 typedef const int *iptr; 2404 iptr p = 0; 2405 ++p; 2406 } 2407 { /* AIX XL C 1.02.0.0 rejects this saying 2408 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 2409 struct s { int j; const int *ap[3]; }; 2410 struct s *b; b->j = 5; 2411 } 2412 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 2413 const int foo = 10; 2414 } 2415#endif 2416 2417 ; 2418 return 0; 2419} 2420_ACEOF 2421rm -f conftest.$ac_objext 2422if { (eval echo "$as_me:2422: \"$ac_compile\"") >&5 2423 (eval $ac_compile) 2>&5 2424 ac_status=$? 2425 echo "$as_me:2425: \$? = $ac_status" >&5 2426 (exit $ac_status); } && 2427 { ac_try='test -s conftest.$ac_objext' 2428 { (eval echo "$as_me:2428: \"$ac_try\"") >&5 2429 (eval $ac_try) 2>&5 2430 ac_status=$? 2431 echo "$as_me:2431: \$? = $ac_status" >&5 2432 (exit $ac_status); }; }; then 2433 ac_cv_c_const=yes 2434else 2435 echo "$as_me: failed program was:" >&5 2436cat conftest.$ac_ext >&5 2437ac_cv_c_const=no 2438fi 2439rm -f conftest.$ac_objext conftest.$ac_ext 2440fi 2441echo "$as_me:2441: result: $ac_cv_c_const" >&5 2442echo "${ECHO_T}$ac_cv_c_const" >&6 2443if test $ac_cv_c_const = no; then 2444 2445cat >>confdefs.h <<\EOF 2446#define const 2447EOF 2448 2449fi 2450 2451echo "$as_me:2451: checking for makeflags variable" >&5 2452echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6 2453if test "${cf_cv_makeflags+set}" = set; then 2454 echo $ECHO_N "(cached) $ECHO_C" >&6 2455else 2456 2457 cf_cv_makeflags='' 2458 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}' 2459 do 2460 cat >cf_makeflags.tmp <<CF_EOF 2461SHELL = /bin/sh 2462all : 2463 @ echo '.$cf_option' 2464CF_EOF 2465 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'` 2466 case "$cf_result" in 2467 .*k) 2468 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null` 2469 case "$cf_result" in 2470 .*CC=*) cf_cv_makeflags= 2471 ;; 2472 *) cf_cv_makeflags=$cf_option 2473 ;; 2474 esac 2475 break 2476 ;; 2477 .-) ;; 2478 *) echo "given option \"$cf_option\", no match \"$cf_result\"" 2479 ;; 2480 esac 2481 done 2482 rm -f cf_makeflags.tmp 2483 2484fi 2485echo "$as_me:2485: result: $cf_cv_makeflags" >&5 2486echo "${ECHO_T}$cf_cv_makeflags" >&6 2487 2488echo "$as_me:2488: checking if filesystem supports mixed-case filenames" >&5 2489echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6 2490if test "${cf_cv_mixedcase+set}" = set; then 2491 echo $ECHO_N "(cached) $ECHO_C" >&6 2492else 2493 2494if test "$cross_compiling" = yes ; then 2495 case $target_alias in #(vi 2496 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi 2497 cf_cv_mixedcase=no 2498 ;; 2499 *) 2500 cf_cv_mixedcase=yes 2501 ;; 2502 esac 2503else 2504 rm -f conftest CONFTEST 2505 echo test >conftest 2506 if test -f CONFTEST ; then 2507 cf_cv_mixedcase=no 2508 else 2509 cf_cv_mixedcase=yes 2510 fi 2511 rm -f conftest CONFTEST 2512fi 2513 2514fi 2515echo "$as_me:2515: result: $cf_cv_mixedcase" >&5 2516echo "${ECHO_T}$cf_cv_mixedcase" >&6 2517test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF 2518#define MIXEDCASE_FILENAMES 1 2519EOF 2520 2521for ac_prog in exctags ctags 2522do 2523 # Extract the first word of "$ac_prog", so it can be a program name with args. 2524set dummy $ac_prog; ac_word=$2 2525echo "$as_me:2525: checking for $ac_word" >&5 2526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2527if test "${ac_cv_prog_CTAGS+set}" = set; then 2528 echo $ECHO_N "(cached) $ECHO_C" >&6 2529else 2530 if test -n "$CTAGS"; then 2531 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test. 2532else 2533 ac_save_IFS=$IFS; IFS=$ac_path_separator 2534ac_dummy="$PATH" 2535for ac_dir in $ac_dummy; do 2536 IFS=$ac_save_IFS 2537 test -z "$ac_dir" && ac_dir=. 2538 $as_executable_p "$ac_dir/$ac_word" || continue 2539ac_cv_prog_CTAGS="$ac_prog" 2540echo "$as_me:2540: found $ac_dir/$ac_word" >&5 2541break 2542done 2543 2544fi 2545fi 2546CTAGS=$ac_cv_prog_CTAGS 2547if test -n "$CTAGS"; then 2548 echo "$as_me:2548: result: $CTAGS" >&5 2549echo "${ECHO_T}$CTAGS" >&6 2550else 2551 echo "$as_me:2551: result: no" >&5 2552echo "${ECHO_T}no" >&6 2553fi 2554 2555 test -n "$CTAGS" && break 2556done 2557 2558for ac_prog in exetags etags 2559do 2560 # Extract the first word of "$ac_prog", so it can be a program name with args. 2561set dummy $ac_prog; ac_word=$2 2562echo "$as_me:2562: checking for $ac_word" >&5 2563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2564if test "${ac_cv_prog_ETAGS+set}" = set; then 2565 echo $ECHO_N "(cached) $ECHO_C" >&6 2566else 2567 if test -n "$ETAGS"; then 2568 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test. 2569else 2570 ac_save_IFS=$IFS; IFS=$ac_path_separator 2571ac_dummy="$PATH" 2572for ac_dir in $ac_dummy; do 2573 IFS=$ac_save_IFS 2574 test -z "$ac_dir" && ac_dir=. 2575 $as_executable_p "$ac_dir/$ac_word" || continue 2576ac_cv_prog_ETAGS="$ac_prog" 2577echo "$as_me:2577: found $ac_dir/$ac_word" >&5 2578break 2579done 2580 2581fi 2582fi 2583ETAGS=$ac_cv_prog_ETAGS 2584if test -n "$ETAGS"; then 2585 echo "$as_me:2585: result: $ETAGS" >&5 2586echo "${ECHO_T}$ETAGS" >&6 2587else 2588 echo "$as_me:2588: result: no" >&5 2589echo "${ECHO_T}no" >&6 2590fi 2591 2592 test -n "$ETAGS" && break 2593done 2594 2595# Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args. 2596set dummy ${CTAGS:-ctags}; ac_word=$2 2597echo "$as_me:2597: checking for $ac_word" >&5 2598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2599if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then 2600 echo $ECHO_N "(cached) $ECHO_C" >&6 2601else 2602 if test -n "$MAKE_LOWER_TAGS"; then 2603 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test. 2604else 2605 ac_save_IFS=$IFS; IFS=$ac_path_separator 2606ac_dummy="$PATH" 2607for ac_dir in $ac_dummy; do 2608 IFS=$ac_save_IFS 2609 test -z "$ac_dir" && ac_dir=. 2610 $as_executable_p "$ac_dir/$ac_word" || continue 2611ac_cv_prog_MAKE_LOWER_TAGS="yes" 2612echo "$as_me:2612: found $ac_dir/$ac_word" >&5 2613break 2614done 2615 2616 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no" 2617fi 2618fi 2619MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS 2620if test -n "$MAKE_LOWER_TAGS"; then 2621 echo "$as_me:2621: result: $MAKE_LOWER_TAGS" >&5 2622echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6 2623else 2624 echo "$as_me:2624: result: no" >&5 2625echo "${ECHO_T}no" >&6 2626fi 2627 2628if test "$cf_cv_mixedcase" = yes ; then 2629 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args. 2630set dummy ${ETAGS:-etags}; ac_word=$2 2631echo "$as_me:2631: checking for $ac_word" >&5 2632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2633if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then 2634 echo $ECHO_N "(cached) $ECHO_C" >&6 2635else 2636 if test -n "$MAKE_UPPER_TAGS"; then 2637 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test. 2638else 2639 ac_save_IFS=$IFS; IFS=$ac_path_separator 2640ac_dummy="$PATH" 2641for ac_dir in $ac_dummy; do 2642 IFS=$ac_save_IFS 2643 test -z "$ac_dir" && ac_dir=. 2644 $as_executable_p "$ac_dir/$ac_word" || continue 2645ac_cv_prog_MAKE_UPPER_TAGS="yes" 2646echo "$as_me:2646: found $ac_dir/$ac_word" >&5 2647break 2648done 2649 2650 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no" 2651fi 2652fi 2653MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS 2654if test -n "$MAKE_UPPER_TAGS"; then 2655 echo "$as_me:2655: result: $MAKE_UPPER_TAGS" >&5 2656echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6 2657else 2658 echo "$as_me:2658: result: no" >&5 2659echo "${ECHO_T}no" >&6 2660fi 2661 2662else 2663 MAKE_UPPER_TAGS=no 2664fi 2665 2666if test "$MAKE_UPPER_TAGS" = yes ; then 2667 MAKE_UPPER_TAGS= 2668else 2669 MAKE_UPPER_TAGS="#" 2670fi 2671 2672if test "$MAKE_LOWER_TAGS" = yes ; then 2673 MAKE_LOWER_TAGS= 2674else 2675 MAKE_LOWER_TAGS="#" 2676fi 2677 2678echo "$as_me:2678: checking if you want to see long compiling messages" >&5 2679echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6 2680 2681# Check whether --enable-echo or --disable-echo was given. 2682if test "${enable_echo+set}" = set; then 2683 enableval="$enable_echo" 2684 test "$enableval" != no && enableval=yes 2685 if test "$enableval" != "yes" ; then 2686 2687 ECHO_LT='--silent' 2688 ECHO_LD='@echo linking $@;' 2689 RULE_CC='@echo compiling $<' 2690 SHOW_CC='@echo compiling $@' 2691 ECHO_CC='@' 2692 2693 else 2694 2695 ECHO_LT='' 2696 ECHO_LD='' 2697 RULE_CC='' 2698 SHOW_CC='' 2699 ECHO_CC='' 2700 2701 fi 2702else 2703 enableval=yes 2704 2705 ECHO_LT='' 2706 ECHO_LD='' 2707 RULE_CC='' 2708 SHOW_CC='' 2709 ECHO_CC='' 2710 2711fi; 2712echo "$as_me:2712: result: $enableval" >&5 2713echo "${ECHO_T}$enableval" >&6 2714 2715# Make sure we can run config.sub. 2716$ac_config_sub sun4 >/dev/null 2>&1 || 2717 { { echo "$as_me:2717: error: cannot run $ac_config_sub" >&5 2718echo "$as_me: error: cannot run $ac_config_sub" >&2;} 2719 { (exit 1); exit 1; }; } 2720 2721echo "$as_me:2721: checking build system type" >&5 2722echo $ECHO_N "checking build system type... $ECHO_C" >&6 2723if test "${ac_cv_build+set}" = set; then 2724 echo $ECHO_N "(cached) $ECHO_C" >&6 2725else 2726 ac_cv_build_alias=$build_alias 2727test -z "$ac_cv_build_alias" && 2728 ac_cv_build_alias=`$ac_config_guess` 2729test -z "$ac_cv_build_alias" && 2730 { { echo "$as_me:2730: error: cannot guess build type; you must specify one" >&5 2731echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2732 { (exit 1); exit 1; }; } 2733ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 2734 { { echo "$as_me:2734: error: $ac_config_sub $ac_cv_build_alias failed." >&5 2735echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} 2736 { (exit 1); exit 1; }; } 2737 2738fi 2739echo "$as_me:2739: result: $ac_cv_build" >&5 2740echo "${ECHO_T}$ac_cv_build" >&6 2741build=$ac_cv_build 2742build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2743build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2744build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2745 2746if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then 2747 echo "$as_me:2747: checking host system type" >&5 2748echo $ECHO_N "checking host system type... $ECHO_C" >&6 2749if test "${ac_cv_host+set}" = set; then 2750 echo $ECHO_N "(cached) $ECHO_C" >&6 2751else 2752 ac_cv_host_alias=$host_alias 2753test -z "$ac_cv_host_alias" && 2754 ac_cv_host_alias=$ac_cv_build_alias 2755ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 2756 { { echo "$as_me:2756: error: $ac_config_sub $ac_cv_host_alias failed" >&5 2757echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 2758 { (exit 1); exit 1; }; } 2759 2760fi 2761echo "$as_me:2761: result: $ac_cv_host" >&5 2762echo "${ECHO_T}$ac_cv_host" >&6 2763host=$ac_cv_host 2764host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2765host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2766host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2767 2768 system_name="$host_os" 2769else 2770 system_name="`(uname -s -r) 2>/dev/null`" 2771 if test -z "$system_name" ; then 2772 system_name="`(hostname) 2>/dev/null`" 2773 fi 2774fi 2775test -n "$system_name" && cat >>confdefs.h <<EOF 2776#define SYSTEM_NAME "$system_name" 2777EOF 2778 2779if test "${cf_cv_system_name+set}" = set; then 2780 echo $ECHO_N "(cached) $ECHO_C" >&6 2781else 2782 cf_cv_system_name="$system_name" 2783fi 2784 2785test -z "$system_name" && system_name="$cf_cv_system_name" 2786test -n "$cf_cv_system_name" && echo "$as_me:2786: result: Configuring for $cf_cv_system_name" >&5 2787echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6 2788 2789if test ".$system_name" != ".$cf_cv_system_name" ; then 2790 echo "$as_me:2790: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5 2791echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6 2792 { { echo "$as_me:2792: error: \"Please remove config.cache and try again.\"" >&5 2793echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;} 2794 { (exit 1); exit 1; }; } 2795fi 2796 2797case $cf_cv_system_name in 2798os2*) 2799 CFLAGS="$CFLAGS -Zmt" 2800 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__" 2801 CXXFLAGS="$CXXFLAGS -Zmt" 2802 # autoconf's macro sets -Zexe and suffix both, which conflict:w 2803 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll" 2804 ac_cv_exeext=.exe 2805 ;; 2806esac 2807 2808PROG_EXT="$EXEEXT" 2809 2810test -n "$PROG_EXT" && cat >>confdefs.h <<EOF 2811#define PROG_EXT "$PROG_EXT" 2812EOF 2813 2814 case $cf_cv_system_name in 2815 os2*) PATH_SEPARATOR=';' ;; 2816 *) PATH_SEPARATOR=':' ;; 2817 esac 2818 2819 case $cf_cv_system_name in #(vi 2820 OS/2*|os2*) #(vi 2821 LIB_PREFIX='' 2822 ;; 2823 *) LIB_PREFIX='lib' 2824 ;; 2825 esac 2826 2827cf_XOPEN_SOURCE=500 2828cf_POSIX_C_SOURCE=199506L 2829cf_xopen_source= 2830 2831case $host_os in #(vi 2832aix[456]*) #(vi 2833 cf_xopen_source="-D_ALL_SOURCE" 2834 ;; 2835darwin[0-8].*) #(vi 2836 cf_xopen_source="-D_APPLE_C_SOURCE" 2837 ;; 2838darwin*) #(vi 2839 cf_xopen_source="-D_DARWIN_C_SOURCE" 2840 ;; 2841freebsd*|dragonfly*) #(vi 2842 # 5.x headers associate 2843 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L 2844 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L 2845 cf_POSIX_C_SOURCE=200112L 2846 cf_XOPEN_SOURCE=600 2847 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 2848 ;; 2849hpux11*) #(vi 2850 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500" 2851 ;; 2852hpux*) #(vi 2853 cf_xopen_source="-D_HPUX_SOURCE" 2854 ;; 2855irix[56].*) #(vi 2856 cf_xopen_source="-D_SGI_SOURCE" 2857 ;; 2858linux*|gnu*|mint*|k*bsd*-gnu) #(vi 2859 2860echo "$as_me:2860: checking if we must define _GNU_SOURCE" >&5 2861echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6 2862if test "${cf_cv_gnu_source+set}" = set; then 2863 echo $ECHO_N "(cached) $ECHO_C" >&6 2864else 2865 2866cat >conftest.$ac_ext <<_ACEOF 2867#line 2867 "configure" 2868#include "confdefs.h" 2869#include <sys/types.h> 2870int 2871main () 2872{ 2873 2874#ifndef _XOPEN_SOURCE 2875make an error 2876#endif 2877 ; 2878 return 0; 2879} 2880_ACEOF 2881rm -f conftest.$ac_objext 2882if { (eval echo "$as_me:2882: \"$ac_compile\"") >&5 2883 (eval $ac_compile) 2>&5 2884 ac_status=$? 2885 echo "$as_me:2885: \$? = $ac_status" >&5 2886 (exit $ac_status); } && 2887 { ac_try='test -s conftest.$ac_objext' 2888 { (eval echo "$as_me:2888: \"$ac_try\"") >&5 2889 (eval $ac_try) 2>&5 2890 ac_status=$? 2891 echo "$as_me:2891: \$? = $ac_status" >&5 2892 (exit $ac_status); }; }; then 2893 cf_cv_gnu_source=no 2894else 2895 echo "$as_me: failed program was:" >&5 2896cat conftest.$ac_ext >&5 2897cf_save="$CPPFLAGS" 2898 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 2899 cat >conftest.$ac_ext <<_ACEOF 2900#line 2900 "configure" 2901#include "confdefs.h" 2902#include <sys/types.h> 2903int 2904main () 2905{ 2906 2907#ifdef _XOPEN_SOURCE 2908make an error 2909#endif 2910 ; 2911 return 0; 2912} 2913_ACEOF 2914rm -f conftest.$ac_objext 2915if { (eval echo "$as_me:2915: \"$ac_compile\"") >&5 2916 (eval $ac_compile) 2>&5 2917 ac_status=$? 2918 echo "$as_me:2918: \$? = $ac_status" >&5 2919 (exit $ac_status); } && 2920 { ac_try='test -s conftest.$ac_objext' 2921 { (eval echo "$as_me:2921: \"$ac_try\"") >&5 2922 (eval $ac_try) 2>&5 2923 ac_status=$? 2924 echo "$as_me:2924: \$? = $ac_status" >&5 2925 (exit $ac_status); }; }; then 2926 cf_cv_gnu_source=no 2927else 2928 echo "$as_me: failed program was:" >&5 2929cat conftest.$ac_ext >&5 2930cf_cv_gnu_source=yes 2931fi 2932rm -f conftest.$ac_objext conftest.$ac_ext 2933 CPPFLAGS="$cf_save" 2934 2935fi 2936rm -f conftest.$ac_objext conftest.$ac_ext 2937 2938fi 2939echo "$as_me:2939: result: $cf_cv_gnu_source" >&5 2940echo "${ECHO_T}$cf_cv_gnu_source" >&6 2941test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 2942 2943 ;; 2944mirbsd*) #(vi 2945 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h> 2946 ;; 2947netbsd*) #(vi 2948 # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw 2949 ;; 2950openbsd*) #(vi 2951 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw 2952 ;; 2953osf[45]*) #(vi 2954 cf_xopen_source="-D_OSF_SOURCE" 2955 ;; 2956nto-qnx*) #(vi 2957 cf_xopen_source="-D_QNX_SOURCE" 2958 ;; 2959sco*) #(vi 2960 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer 2961 ;; 2962solaris2.1[0-9]) #(vi 2963 cf_xopen_source="-D__EXTENSIONS__ -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 2964 ;; 2965solaris2.[1-9]) #(vi 2966 cf_xopen_source="-D__EXTENSIONS__" 2967 ;; 2968*) 2969 echo "$as_me:2969: checking if we should define _XOPEN_SOURCE" >&5 2970echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 2971if test "${cf_cv_xopen_source+set}" = set; then 2972 echo $ECHO_N "(cached) $ECHO_C" >&6 2973else 2974 2975 cat >conftest.$ac_ext <<_ACEOF 2976#line 2976 "configure" 2977#include "confdefs.h" 2978#include <sys/types.h> 2979int 2980main () 2981{ 2982 2983#ifndef _XOPEN_SOURCE 2984make an error 2985#endif 2986 ; 2987 return 0; 2988} 2989_ACEOF 2990rm -f conftest.$ac_objext 2991if { (eval echo "$as_me:2991: \"$ac_compile\"") >&5 2992 (eval $ac_compile) 2>&5 2993 ac_status=$? 2994 echo "$as_me:2994: \$? = $ac_status" >&5 2995 (exit $ac_status); } && 2996 { ac_try='test -s conftest.$ac_objext' 2997 { (eval echo "$as_me:2997: \"$ac_try\"") >&5 2998 (eval $ac_try) 2>&5 2999 ac_status=$? 3000 echo "$as_me:3000: \$? = $ac_status" >&5 3001 (exit $ac_status); }; }; then 3002 cf_cv_xopen_source=no 3003else 3004 echo "$as_me: failed program was:" >&5 3005cat conftest.$ac_ext >&5 3006cf_save="$CPPFLAGS" 3007 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 3008 cat >conftest.$ac_ext <<_ACEOF 3009#line 3009 "configure" 3010#include "confdefs.h" 3011#include <sys/types.h> 3012int 3013main () 3014{ 3015 3016#ifdef _XOPEN_SOURCE 3017make an error 3018#endif 3019 ; 3020 return 0; 3021} 3022_ACEOF 3023rm -f conftest.$ac_objext 3024if { (eval echo "$as_me:3024: \"$ac_compile\"") >&5 3025 (eval $ac_compile) 2>&5 3026 ac_status=$? 3027 echo "$as_me:3027: \$? = $ac_status" >&5 3028 (exit $ac_status); } && 3029 { ac_try='test -s conftest.$ac_objext' 3030 { (eval echo "$as_me:3030: \"$ac_try\"") >&5 3031 (eval $ac_try) 2>&5 3032 ac_status=$? 3033 echo "$as_me:3033: \$? = $ac_status" >&5 3034 (exit $ac_status); }; }; then 3035 cf_cv_xopen_source=no 3036else 3037 echo "$as_me: failed program was:" >&5 3038cat conftest.$ac_ext >&5 3039cf_cv_xopen_source=$cf_XOPEN_SOURCE 3040fi 3041rm -f conftest.$ac_objext conftest.$ac_ext 3042 CPPFLAGS="$cf_save" 3043 3044fi 3045rm -f conftest.$ac_objext conftest.$ac_ext 3046 3047fi 3048echo "$as_me:3048: result: $cf_cv_xopen_source" >&5 3049echo "${ECHO_T}$cf_cv_xopen_source" >&6 3050 if test "$cf_cv_xopen_source" != no ; then 3051 3052CFLAGS=`echo "$CFLAGS" | \ 3053 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3054 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3055 3056CPPFLAGS=`echo "$CPPFLAGS" | \ 3057 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3058 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3059 3060 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 3061 3062cf_fix_cppflags=no 3063cf_new_cflags= 3064cf_new_cppflags= 3065cf_new_extra_cppflags= 3066 3067for cf_add_cflags in $cf_temp_xopen_source 3068do 3069case $cf_fix_cppflags in 3070no) 3071 case $cf_add_cflags in #(vi 3072 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 3073 case $cf_add_cflags in 3074 -D*) 3075 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3076 3077 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3078 && test -z "${cf_tst_cflags}" \ 3079 && cf_fix_cppflags=yes 3080 3081 if test $cf_fix_cppflags = yes ; then 3082 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3083 continue 3084 elif test "${cf_tst_cflags}" = "\"'" ; then 3085 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3086 continue 3087 fi 3088 ;; 3089 esac 3090 case "$CPPFLAGS" in 3091 *$cf_add_cflags) #(vi 3092 ;; 3093 *) #(vi 3094 case $cf_add_cflags in #(vi 3095 -D*) 3096 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3097 3098CPPFLAGS=`echo "$CPPFLAGS" | \ 3099 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3100 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3101 3102 ;; 3103 esac 3104 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3105 ;; 3106 esac 3107 ;; 3108 *) 3109 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3110 ;; 3111 esac 3112 ;; 3113yes) 3114 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3115 3116 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3117 3118 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3119 && test -z "${cf_tst_cflags}" \ 3120 && cf_fix_cppflags=no 3121 ;; 3122esac 3123done 3124 3125if test -n "$cf_new_cflags" ; then 3126 3127 CFLAGS="$CFLAGS $cf_new_cflags" 3128fi 3129 3130if test -n "$cf_new_cppflags" ; then 3131 3132 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3133fi 3134 3135if test -n "$cf_new_extra_cppflags" ; then 3136 3137 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3138fi 3139 3140 fi 3141 3142cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 3143 3144cf_save_CFLAGS="$CFLAGS" 3145cf_save_CPPFLAGS="$CPPFLAGS" 3146 3147cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 3148 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3149 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 3150 3151cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 3152 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3153 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 3154 3155echo "$as_me:3155: checking if we should define _POSIX_C_SOURCE" >&5 3156echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 3157if test "${cf_cv_posix_c_source+set}" = set; then 3158 echo $ECHO_N "(cached) $ECHO_C" >&6 3159else 3160 3161echo "${as_me:-configure}:3161: testing if the symbol is already defined go no further ..." 1>&5 3162 3163 cat >conftest.$ac_ext <<_ACEOF 3164#line 3164 "configure" 3165#include "confdefs.h" 3166#include <sys/types.h> 3167int 3168main () 3169{ 3170 3171#ifndef _POSIX_C_SOURCE 3172make an error 3173#endif 3174 ; 3175 return 0; 3176} 3177_ACEOF 3178rm -f conftest.$ac_objext 3179if { (eval echo "$as_me:3179: \"$ac_compile\"") >&5 3180 (eval $ac_compile) 2>&5 3181 ac_status=$? 3182 echo "$as_me:3182: \$? = $ac_status" >&5 3183 (exit $ac_status); } && 3184 { ac_try='test -s conftest.$ac_objext' 3185 { (eval echo "$as_me:3185: \"$ac_try\"") >&5 3186 (eval $ac_try) 2>&5 3187 ac_status=$? 3188 echo "$as_me:3188: \$? = $ac_status" >&5 3189 (exit $ac_status); }; }; then 3190 cf_cv_posix_c_source=no 3191else 3192 echo "$as_me: failed program was:" >&5 3193cat conftest.$ac_ext >&5 3194cf_want_posix_source=no 3195 case .$cf_POSIX_C_SOURCE in #(vi 3196 .[12]??*) #(vi 3197 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3198 ;; 3199 .2) #(vi 3200 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3201 cf_want_posix_source=yes 3202 ;; 3203 .*) 3204 cf_want_posix_source=yes 3205 ;; 3206 esac 3207 if test "$cf_want_posix_source" = yes ; then 3208 cat >conftest.$ac_ext <<_ACEOF 3209#line 3209 "configure" 3210#include "confdefs.h" 3211#include <sys/types.h> 3212int 3213main () 3214{ 3215 3216#ifdef _POSIX_SOURCE 3217make an error 3218#endif 3219 ; 3220 return 0; 3221} 3222_ACEOF 3223rm -f conftest.$ac_objext 3224if { (eval echo "$as_me:3224: \"$ac_compile\"") >&5 3225 (eval $ac_compile) 2>&5 3226 ac_status=$? 3227 echo "$as_me:3227: \$? = $ac_status" >&5 3228 (exit $ac_status); } && 3229 { ac_try='test -s conftest.$ac_objext' 3230 { (eval echo "$as_me:3230: \"$ac_try\"") >&5 3231 (eval $ac_try) 2>&5 3232 ac_status=$? 3233 echo "$as_me:3233: \$? = $ac_status" >&5 3234 (exit $ac_status); }; }; then 3235 : 3236else 3237 echo "$as_me: failed program was:" >&5 3238cat conftest.$ac_ext >&5 3239cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 3240fi 3241rm -f conftest.$ac_objext conftest.$ac_ext 3242 fi 3243 3244echo "${as_me:-configure}:3244: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 3245 3246 CFLAGS="$cf_trim_CFLAGS" 3247 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source" 3248 3249echo "${as_me:-configure}:3249: testing if the second compile does not leave our definition intact error ..." 1>&5 3250 3251 cat >conftest.$ac_ext <<_ACEOF 3252#line 3252 "configure" 3253#include "confdefs.h" 3254#include <sys/types.h> 3255int 3256main () 3257{ 3258 3259#ifndef _POSIX_C_SOURCE 3260make an error 3261#endif 3262 ; 3263 return 0; 3264} 3265_ACEOF 3266rm -f conftest.$ac_objext 3267if { (eval echo "$as_me:3267: \"$ac_compile\"") >&5 3268 (eval $ac_compile) 2>&5 3269 ac_status=$? 3270 echo "$as_me:3270: \$? = $ac_status" >&5 3271 (exit $ac_status); } && 3272 { ac_try='test -s conftest.$ac_objext' 3273 { (eval echo "$as_me:3273: \"$ac_try\"") >&5 3274 (eval $ac_try) 2>&5 3275 ac_status=$? 3276 echo "$as_me:3276: \$? = $ac_status" >&5 3277 (exit $ac_status); }; }; then 3278 : 3279else 3280 echo "$as_me: failed program was:" >&5 3281cat conftest.$ac_ext >&5 3282cf_cv_posix_c_source=no 3283fi 3284rm -f conftest.$ac_objext conftest.$ac_ext 3285 CFLAGS="$cf_save_CFLAGS" 3286 CPPFLAGS="$cf_save_CPPFLAGS" 3287 3288fi 3289rm -f conftest.$ac_objext conftest.$ac_ext 3290 3291fi 3292echo "$as_me:3292: result: $cf_cv_posix_c_source" >&5 3293echo "${ECHO_T}$cf_cv_posix_c_source" >&6 3294 3295if test "$cf_cv_posix_c_source" != no ; then 3296 CFLAGS="$cf_trim_CFLAGS" 3297 CPPFLAGS="$cf_trim_CPPFLAGS" 3298 3299cf_fix_cppflags=no 3300cf_new_cflags= 3301cf_new_cppflags= 3302cf_new_extra_cppflags= 3303 3304for cf_add_cflags in $cf_cv_posix_c_source 3305do 3306case $cf_fix_cppflags in 3307no) 3308 case $cf_add_cflags in #(vi 3309 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 3310 case $cf_add_cflags in 3311 -D*) 3312 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3313 3314 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3315 && test -z "${cf_tst_cflags}" \ 3316 && cf_fix_cppflags=yes 3317 3318 if test $cf_fix_cppflags = yes ; then 3319 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3320 continue 3321 elif test "${cf_tst_cflags}" = "\"'" ; then 3322 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3323 continue 3324 fi 3325 ;; 3326 esac 3327 case "$CPPFLAGS" in 3328 *$cf_add_cflags) #(vi 3329 ;; 3330 *) #(vi 3331 case $cf_add_cflags in #(vi 3332 -D*) 3333 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3334 3335CPPFLAGS=`echo "$CPPFLAGS" | \ 3336 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3337 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3338 3339 ;; 3340 esac 3341 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3342 ;; 3343 esac 3344 ;; 3345 *) 3346 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3347 ;; 3348 esac 3349 ;; 3350yes) 3351 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3352 3353 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3354 3355 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3356 && test -z "${cf_tst_cflags}" \ 3357 && cf_fix_cppflags=no 3358 ;; 3359esac 3360done 3361 3362if test -n "$cf_new_cflags" ; then 3363 3364 CFLAGS="$CFLAGS $cf_new_cflags" 3365fi 3366 3367if test -n "$cf_new_cppflags" ; then 3368 3369 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3370fi 3371 3372if test -n "$cf_new_extra_cppflags" ; then 3373 3374 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3375fi 3376 3377fi 3378 3379 ;; 3380esac 3381 3382if test -n "$cf_xopen_source" ; then 3383 3384cf_fix_cppflags=no 3385cf_new_cflags= 3386cf_new_cppflags= 3387cf_new_extra_cppflags= 3388 3389for cf_add_cflags in $cf_xopen_source 3390do 3391case $cf_fix_cppflags in 3392no) 3393 case $cf_add_cflags in #(vi 3394 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 3395 case $cf_add_cflags in 3396 -D*) 3397 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3398 3399 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3400 && test -z "${cf_tst_cflags}" \ 3401 && cf_fix_cppflags=yes 3402 3403 if test $cf_fix_cppflags = yes ; then 3404 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3405 continue 3406 elif test "${cf_tst_cflags}" = "\"'" ; then 3407 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3408 continue 3409 fi 3410 ;; 3411 esac 3412 case "$CPPFLAGS" in 3413 *$cf_add_cflags) #(vi 3414 ;; 3415 *) #(vi 3416 case $cf_add_cflags in #(vi 3417 -D*) 3418 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3419 3420CPPFLAGS=`echo "$CPPFLAGS" | \ 3421 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3422 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3423 3424 ;; 3425 esac 3426 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3427 ;; 3428 esac 3429 ;; 3430 *) 3431 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3432 ;; 3433 esac 3434 ;; 3435yes) 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 "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3441 && test -z "${cf_tst_cflags}" \ 3442 && cf_fix_cppflags=no 3443 ;; 3444esac 3445done 3446 3447if test -n "$cf_new_cflags" ; then 3448 3449 CFLAGS="$CFLAGS $cf_new_cflags" 3450fi 3451 3452if test -n "$cf_new_cppflags" ; then 3453 3454 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3455fi 3456 3457if test -n "$cf_new_extra_cppflags" ; then 3458 3459 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3460fi 3461 3462fi 3463 3464# Check whether --enable-largefile or --disable-largefile was given. 3465if test "${enable_largefile+set}" = set; then 3466 enableval="$enable_largefile" 3467 3468fi; 3469if test "$enable_largefile" != no; then 3470 3471 echo "$as_me:3471: checking for special C compiler options needed for large files" >&5 3472echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 3473if test "${ac_cv_sys_largefile_CC+set}" = set; then 3474 echo $ECHO_N "(cached) $ECHO_C" >&6 3475else 3476 ac_cv_sys_largefile_CC=no 3477 if test "$GCC" != yes; then 3478 ac_save_CC=$CC 3479 while :; do 3480 # IRIX 6.2 and later do not support large files by default, 3481 # so use the C compiler's -n32 option if that helps. 3482 cat >conftest.$ac_ext <<_ACEOF 3483#line 3483 "configure" 3484#include "confdefs.h" 3485#include <sys/types.h> 3486 /* Check that off_t can represent 2**63 - 1 correctly. 3487 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3488 since some C++ compilers masquerading as C compilers 3489 incorrectly reject 9223372036854775807. */ 3490#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3491 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3492 && LARGE_OFF_T % 2147483647 == 1) 3493 ? 1 : -1]; 3494int 3495main () 3496{ 3497 3498 ; 3499 return 0; 3500} 3501_ACEOF 3502 rm -f conftest.$ac_objext 3503if { (eval echo "$as_me:3503: \"$ac_compile\"") >&5 3504 (eval $ac_compile) 2>&5 3505 ac_status=$? 3506 echo "$as_me:3506: \$? = $ac_status" >&5 3507 (exit $ac_status); } && 3508 { ac_try='test -s conftest.$ac_objext' 3509 { (eval echo "$as_me:3509: \"$ac_try\"") >&5 3510 (eval $ac_try) 2>&5 3511 ac_status=$? 3512 echo "$as_me:3512: \$? = $ac_status" >&5 3513 (exit $ac_status); }; }; then 3514 break 3515else 3516 echo "$as_me: failed program was:" >&5 3517cat conftest.$ac_ext >&5 3518fi 3519rm -f conftest.$ac_objext 3520 CC="$CC -n32" 3521 rm -f conftest.$ac_objext 3522if { (eval echo "$as_me:3522: \"$ac_compile\"") >&5 3523 (eval $ac_compile) 2>&5 3524 ac_status=$? 3525 echo "$as_me:3525: \$? = $ac_status" >&5 3526 (exit $ac_status); } && 3527 { ac_try='test -s conftest.$ac_objext' 3528 { (eval echo "$as_me:3528: \"$ac_try\"") >&5 3529 (eval $ac_try) 2>&5 3530 ac_status=$? 3531 echo "$as_me:3531: \$? = $ac_status" >&5 3532 (exit $ac_status); }; }; then 3533 ac_cv_sys_largefile_CC=' -n32'; break 3534else 3535 echo "$as_me: failed program was:" >&5 3536cat conftest.$ac_ext >&5 3537fi 3538rm -f conftest.$ac_objext 3539 break 3540 done 3541 CC=$ac_save_CC 3542 rm -f conftest.$ac_ext 3543 fi 3544fi 3545echo "$as_me:3545: result: $ac_cv_sys_largefile_CC" >&5 3546echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 3547 if test "$ac_cv_sys_largefile_CC" != no; then 3548 CC=$CC$ac_cv_sys_largefile_CC 3549 fi 3550 3551 echo "$as_me:3551: checking for _FILE_OFFSET_BITS value needed for large files" >&5 3552echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 3553if test "${ac_cv_sys_file_offset_bits+set}" = set; then 3554 echo $ECHO_N "(cached) $ECHO_C" >&6 3555else 3556 while :; do 3557 ac_cv_sys_file_offset_bits=no 3558 cat >conftest.$ac_ext <<_ACEOF 3559#line 3559 "configure" 3560#include "confdefs.h" 3561#include <sys/types.h> 3562 /* Check that off_t can represent 2**63 - 1 correctly. 3563 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3564 since some C++ compilers masquerading as C compilers 3565 incorrectly reject 9223372036854775807. */ 3566#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3567 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3568 && LARGE_OFF_T % 2147483647 == 1) 3569 ? 1 : -1]; 3570int 3571main () 3572{ 3573 3574 ; 3575 return 0; 3576} 3577_ACEOF 3578rm -f conftest.$ac_objext 3579if { (eval echo "$as_me:3579: \"$ac_compile\"") >&5 3580 (eval $ac_compile) 2>&5 3581 ac_status=$? 3582 echo "$as_me:3582: \$? = $ac_status" >&5 3583 (exit $ac_status); } && 3584 { ac_try='test -s conftest.$ac_objext' 3585 { (eval echo "$as_me:3585: \"$ac_try\"") >&5 3586 (eval $ac_try) 2>&5 3587 ac_status=$? 3588 echo "$as_me:3588: \$? = $ac_status" >&5 3589 (exit $ac_status); }; }; then 3590 break 3591else 3592 echo "$as_me: failed program was:" >&5 3593cat conftest.$ac_ext >&5 3594fi 3595rm -f conftest.$ac_objext conftest.$ac_ext 3596 cat >conftest.$ac_ext <<_ACEOF 3597#line 3597 "configure" 3598#include "confdefs.h" 3599#define _FILE_OFFSET_BITS 64 3600#include <sys/types.h> 3601 /* Check that off_t can represent 2**63 - 1 correctly. 3602 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3603 since some C++ compilers masquerading as C compilers 3604 incorrectly reject 9223372036854775807. */ 3605#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3606 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3607 && LARGE_OFF_T % 2147483647 == 1) 3608 ? 1 : -1]; 3609int 3610main () 3611{ 3612 3613 ; 3614 return 0; 3615} 3616_ACEOF 3617rm -f conftest.$ac_objext 3618if { (eval echo "$as_me:3618: \"$ac_compile\"") >&5 3619 (eval $ac_compile) 2>&5 3620 ac_status=$? 3621 echo "$as_me:3621: \$? = $ac_status" >&5 3622 (exit $ac_status); } && 3623 { ac_try='test -s conftest.$ac_objext' 3624 { (eval echo "$as_me:3624: \"$ac_try\"") >&5 3625 (eval $ac_try) 2>&5 3626 ac_status=$? 3627 echo "$as_me:3627: \$? = $ac_status" >&5 3628 (exit $ac_status); }; }; then 3629 ac_cv_sys_file_offset_bits=64; break 3630else 3631 echo "$as_me: failed program was:" >&5 3632cat conftest.$ac_ext >&5 3633fi 3634rm -f conftest.$ac_objext conftest.$ac_ext 3635 break 3636done 3637fi 3638echo "$as_me:3638: result: $ac_cv_sys_file_offset_bits" >&5 3639echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 3640if test "$ac_cv_sys_file_offset_bits" != no; then 3641 3642cat >>confdefs.h <<EOF 3643#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 3644EOF 3645 3646fi 3647rm -rf conftest* 3648 echo "$as_me:3648: checking for _LARGE_FILES value needed for large files" >&5 3649echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 3650if test "${ac_cv_sys_large_files+set}" = set; then 3651 echo $ECHO_N "(cached) $ECHO_C" >&6 3652else 3653 while :; do 3654 ac_cv_sys_large_files=no 3655 cat >conftest.$ac_ext <<_ACEOF 3656#line 3656 "configure" 3657#include "confdefs.h" 3658#include <sys/types.h> 3659 /* Check that off_t can represent 2**63 - 1 correctly. 3660 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3661 since some C++ compilers masquerading as C compilers 3662 incorrectly reject 9223372036854775807. */ 3663#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3664 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3665 && LARGE_OFF_T % 2147483647 == 1) 3666 ? 1 : -1]; 3667int 3668main () 3669{ 3670 3671 ; 3672 return 0; 3673} 3674_ACEOF 3675rm -f conftest.$ac_objext 3676if { (eval echo "$as_me:3676: \"$ac_compile\"") >&5 3677 (eval $ac_compile) 2>&5 3678 ac_status=$? 3679 echo "$as_me:3679: \$? = $ac_status" >&5 3680 (exit $ac_status); } && 3681 { ac_try='test -s conftest.$ac_objext' 3682 { (eval echo "$as_me:3682: \"$ac_try\"") >&5 3683 (eval $ac_try) 2>&5 3684 ac_status=$? 3685 echo "$as_me:3685: \$? = $ac_status" >&5 3686 (exit $ac_status); }; }; then 3687 break 3688else 3689 echo "$as_me: failed program was:" >&5 3690cat conftest.$ac_ext >&5 3691fi 3692rm -f conftest.$ac_objext conftest.$ac_ext 3693 cat >conftest.$ac_ext <<_ACEOF 3694#line 3694 "configure" 3695#include "confdefs.h" 3696#define _LARGE_FILES 1 3697#include <sys/types.h> 3698 /* Check that off_t can represent 2**63 - 1 correctly. 3699 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3700 since some C++ compilers masquerading as C compilers 3701 incorrectly reject 9223372036854775807. */ 3702#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3703 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3704 && LARGE_OFF_T % 2147483647 == 1) 3705 ? 1 : -1]; 3706int 3707main () 3708{ 3709 3710 ; 3711 return 0; 3712} 3713_ACEOF 3714rm -f conftest.$ac_objext 3715if { (eval echo "$as_me:3715: \"$ac_compile\"") >&5 3716 (eval $ac_compile) 2>&5 3717 ac_status=$? 3718 echo "$as_me:3718: \$? = $ac_status" >&5 3719 (exit $ac_status); } && 3720 { ac_try='test -s conftest.$ac_objext' 3721 { (eval echo "$as_me:3721: \"$ac_try\"") >&5 3722 (eval $ac_try) 2>&5 3723 ac_status=$? 3724 echo "$as_me:3724: \$? = $ac_status" >&5 3725 (exit $ac_status); }; }; then 3726 ac_cv_sys_large_files=1; break 3727else 3728 echo "$as_me: failed program was:" >&5 3729cat conftest.$ac_ext >&5 3730fi 3731rm -f conftest.$ac_objext conftest.$ac_ext 3732 break 3733done 3734fi 3735echo "$as_me:3735: result: $ac_cv_sys_large_files" >&5 3736echo "${ECHO_T}$ac_cv_sys_large_files" >&6 3737if test "$ac_cv_sys_large_files" != no; then 3738 3739cat >>confdefs.h <<EOF 3740#define _LARGE_FILES $ac_cv_sys_large_files 3741EOF 3742 3743fi 3744rm -rf conftest* 3745fi 3746 3747 if test "$enable_largefile" != no ; then 3748 echo "$as_me:3748: checking for _LARGEFILE_SOURCE value needed for large files" >&5 3749echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 3750if test "${ac_cv_sys_largefile_source+set}" = set; then 3751 echo $ECHO_N "(cached) $ECHO_C" >&6 3752else 3753 while :; do 3754 ac_cv_sys_largefile_source=no 3755 cat >conftest.$ac_ext <<_ACEOF 3756#line 3756 "configure" 3757#include "confdefs.h" 3758#include <stdio.h> 3759int 3760main () 3761{ 3762return !fseeko; 3763 ; 3764 return 0; 3765} 3766_ACEOF 3767rm -f conftest.$ac_objext 3768if { (eval echo "$as_me:3768: \"$ac_compile\"") >&5 3769 (eval $ac_compile) 2>&5 3770 ac_status=$? 3771 echo "$as_me:3771: \$? = $ac_status" >&5 3772 (exit $ac_status); } && 3773 { ac_try='test -s conftest.$ac_objext' 3774 { (eval echo "$as_me:3774: \"$ac_try\"") >&5 3775 (eval $ac_try) 2>&5 3776 ac_status=$? 3777 echo "$as_me:3777: \$? = $ac_status" >&5 3778 (exit $ac_status); }; }; then 3779 break 3780else 3781 echo "$as_me: failed program was:" >&5 3782cat conftest.$ac_ext >&5 3783fi 3784rm -f conftest.$ac_objext conftest.$ac_ext 3785 cat >conftest.$ac_ext <<_ACEOF 3786#line 3786 "configure" 3787#include "confdefs.h" 3788#define _LARGEFILE_SOURCE 1 3789#include <stdio.h> 3790int 3791main () 3792{ 3793return !fseeko; 3794 ; 3795 return 0; 3796} 3797_ACEOF 3798rm -f conftest.$ac_objext 3799if { (eval echo "$as_me:3799: \"$ac_compile\"") >&5 3800 (eval $ac_compile) 2>&5 3801 ac_status=$? 3802 echo "$as_me:3802: \$? = $ac_status" >&5 3803 (exit $ac_status); } && 3804 { ac_try='test -s conftest.$ac_objext' 3805 { (eval echo "$as_me:3805: \"$ac_try\"") >&5 3806 (eval $ac_try) 2>&5 3807 ac_status=$? 3808 echo "$as_me:3808: \$? = $ac_status" >&5 3809 (exit $ac_status); }; }; then 3810 ac_cv_sys_largefile_source=1; break 3811else 3812 echo "$as_me: failed program was:" >&5 3813cat conftest.$ac_ext >&5 3814fi 3815rm -f conftest.$ac_objext conftest.$ac_ext 3816 break 3817done 3818fi 3819echo "$as_me:3819: result: $ac_cv_sys_largefile_source" >&5 3820echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 3821if test "$ac_cv_sys_largefile_source" != no; then 3822 3823cat >>confdefs.h <<EOF 3824#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 3825EOF 3826 3827fi 3828rm -rf conftest* 3829 3830# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 3831# in glibc 2.1.3, but that breaks too many other things. 3832# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 3833echo "$as_me:3833: checking for fseeko" >&5 3834echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 3835if test "${ac_cv_func_fseeko+set}" = set; then 3836 echo $ECHO_N "(cached) $ECHO_C" >&6 3837else 3838 cat >conftest.$ac_ext <<_ACEOF 3839#line 3839 "configure" 3840#include "confdefs.h" 3841#include <stdio.h> 3842int 3843main () 3844{ 3845return fseeko && fseeko (stdin, 0, 0); 3846 ; 3847 return 0; 3848} 3849_ACEOF 3850rm -f conftest.$ac_objext conftest$ac_exeext 3851if { (eval echo "$as_me:3851: \"$ac_link\"") >&5 3852 (eval $ac_link) 2>&5 3853 ac_status=$? 3854 echo "$as_me:3854: \$? = $ac_status" >&5 3855 (exit $ac_status); } && 3856 { ac_try='test -s conftest$ac_exeext' 3857 { (eval echo "$as_me:3857: \"$ac_try\"") >&5 3858 (eval $ac_try) 2>&5 3859 ac_status=$? 3860 echo "$as_me:3860: \$? = $ac_status" >&5 3861 (exit $ac_status); }; }; then 3862 ac_cv_func_fseeko=yes 3863else 3864 echo "$as_me: failed program was:" >&5 3865cat conftest.$ac_ext >&5 3866ac_cv_func_fseeko=no 3867fi 3868rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3869fi 3870echo "$as_me:3870: result: $ac_cv_func_fseeko" >&5 3871echo "${ECHO_T}$ac_cv_func_fseeko" >&6 3872if test $ac_cv_func_fseeko = yes; then 3873 3874cat >>confdefs.h <<\EOF 3875#define HAVE_FSEEKO 1 3876EOF 3877 3878fi 3879 3880 # Normally we would collect these definitions in the config.h, 3881 # but (like _XOPEN_SOURCE), some environments rely on having these 3882 # defined before any of the system headers are included. Another 3883 # case comes up with C++, e.g., on AIX the compiler compiles the 3884 # header files by themselves before looking at the body files it is 3885 # told to compile. For ncurses, those header files do not include 3886 # the config.h 3887 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES " 3888 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE " 3889 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits " 3890 3891 echo "$as_me:3891: checking whether to use struct dirent64" >&5 3892echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6 3893if test "${cf_cv_struct_dirent64+set}" = set; then 3894 echo $ECHO_N "(cached) $ECHO_C" >&6 3895else 3896 3897 cat >conftest.$ac_ext <<_ACEOF 3898#line 3898 "configure" 3899#include "confdefs.h" 3900 3901#include <sys/types.h> 3902#include <dirent.h> 3903 3904int 3905main () 3906{ 3907 3908 /* if transitional largefile support is setup, this is true */ 3909 extern struct dirent64 * readdir(DIR *); 3910 struct dirent64 *x = readdir((DIR *)0); 3911 struct dirent *y = readdir((DIR *)0); 3912 int z = x - y; 3913 3914 ; 3915 return 0; 3916} 3917_ACEOF 3918rm -f conftest.$ac_objext 3919if { (eval echo "$as_me:3919: \"$ac_compile\"") >&5 3920 (eval $ac_compile) 2>&5 3921 ac_status=$? 3922 echo "$as_me:3922: \$? = $ac_status" >&5 3923 (exit $ac_status); } && 3924 { ac_try='test -s conftest.$ac_objext' 3925 { (eval echo "$as_me:3925: \"$ac_try\"") >&5 3926 (eval $ac_try) 2>&5 3927 ac_status=$? 3928 echo "$as_me:3928: \$? = $ac_status" >&5 3929 (exit $ac_status); }; }; then 3930 cf_cv_struct_dirent64=yes 3931else 3932 echo "$as_me: failed program was:" >&5 3933cat conftest.$ac_ext >&5 3934cf_cv_struct_dirent64=no 3935fi 3936rm -f conftest.$ac_objext conftest.$ac_ext 3937 3938fi 3939echo "$as_me:3939: result: $cf_cv_struct_dirent64" >&5 3940echo "${ECHO_T}$cf_cv_struct_dirent64" >&6 3941 test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF 3942#define HAVE_STRUCT_DIRENT64 1 3943EOF 3944 3945 fi 3946 3947GCC_VERSION=none 3948if test "$GCC" = yes ; then 3949 echo "$as_me:3949: checking version of $CC" >&5 3950echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 3951 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`" 3952 test -z "$GCC_VERSION" && GCC_VERSION=unknown 3953 echo "$as_me:3953: result: $GCC_VERSION" >&5 3954echo "${ECHO_T}$GCC_VERSION" >&6 3955fi 3956 3957if ( test "$GCC" = yes || test "$GXX" = yes ) 3958then 3959echo "$as_me:3959: checking if you want to check for gcc warnings" >&5 3960echo $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6 3961 3962# Check whether --with-warnings or --without-warnings was given. 3963if test "${with_warnings+set}" = set; then 3964 withval="$with_warnings" 3965 cf_opt_with_warnings=$withval 3966else 3967 cf_opt_with_warnings=no 3968fi; 3969echo "$as_me:3969: result: $cf_opt_with_warnings" >&5 3970echo "${ECHO_T}$cf_opt_with_warnings" >&6 3971if test "$cf_opt_with_warnings" != no ; then 3972 3973if test "$GCC" = yes 3974then 3975cat > conftest.i <<EOF 3976#ifndef GCC_PRINTF 3977#define GCC_PRINTF 0 3978#endif 3979#ifndef GCC_SCANF 3980#define GCC_SCANF 0 3981#endif 3982#ifndef GCC_NORETURN 3983#define GCC_NORETURN /* nothing */ 3984#endif 3985#ifndef GCC_UNUSED 3986#define GCC_UNUSED /* nothing */ 3987#endif 3988EOF 3989if test "$GCC" = yes 3990then 3991 { echo "$as_me:3991: checking for $CC __attribute__ directives..." >&5 3992echo "$as_me: checking for $CC __attribute__ directives..." >&6;} 3993cat > conftest.$ac_ext <<EOF 3994#line 3994 "${as_me:-configure}" 3995#include "confdefs.h" 3996#include "conftest.h" 3997#include "conftest.i" 3998#if GCC_PRINTF 3999#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) 4000#else 4001#define GCC_PRINTFLIKE(fmt,var) /*nothing*/ 4002#endif 4003#if GCC_SCANF 4004#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) 4005#else 4006#define GCC_SCANFLIKE(fmt,var) /*nothing*/ 4007#endif 4008extern void wow(char *,...) GCC_SCANFLIKE(1,2); 4009extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN; 4010extern void foo(void) GCC_NORETURN; 4011int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; } 4012EOF 4013 cf_printf_attribute=no 4014 cf_scanf_attribute=no 4015 for cf_attribute in scanf printf unused noreturn 4016 do 4017 4018cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 4019 4020 cf_directive="__attribute__(($cf_attribute))" 4021 echo "checking for $CC $cf_directive" 1>&5 4022 4023 case $cf_attribute in #(vi 4024 printf) #(vi 4025 cf_printf_attribute=yes 4026 cat >conftest.h <<EOF 4027#define GCC_$cf_ATTRIBUTE 1 4028EOF 4029 ;; 4030 scanf) #(vi 4031 cf_scanf_attribute=yes 4032 cat >conftest.h <<EOF 4033#define GCC_$cf_ATTRIBUTE 1 4034EOF 4035 ;; 4036 *) #(vi 4037 cat >conftest.h <<EOF 4038#define GCC_$cf_ATTRIBUTE $cf_directive 4039EOF 4040 ;; 4041 esac 4042 4043 if { (eval echo "$as_me:4043: \"$ac_compile\"") >&5 4044 (eval $ac_compile) 2>&5 4045 ac_status=$? 4046 echo "$as_me:4046: \$? = $ac_status" >&5 4047 (exit $ac_status); }; then 4048 test -n "$verbose" && echo "$as_me:4048: result: ... $cf_attribute" >&5 4049echo "${ECHO_T}... $cf_attribute" >&6 4050 cat conftest.h >>confdefs.h 4051 case $cf_attribute in #(vi 4052 printf) #(vi 4053 if test "$cf_printf_attribute" = no ; then 4054 cat >>confdefs.h <<EOF 4055#define GCC_PRINTFLIKE(fmt,var) /* nothing */ 4056EOF 4057 else 4058 cat >>confdefs.h <<EOF 4059#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) 4060EOF 4061 fi 4062 ;; 4063 scanf) #(vi 4064 if test "$cf_scanf_attribute" = no ; then 4065 cat >>confdefs.h <<EOF 4066#define GCC_SCANFLIKE(fmt,var) /* nothing */ 4067EOF 4068 else 4069 cat >>confdefs.h <<EOF 4070#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) 4071EOF 4072 fi 4073 ;; 4074 esac 4075 fi 4076 done 4077else 4078 fgrep define conftest.i >>confdefs.h 4079fi 4080rm -rf conftest* 4081fi 4082 4083INTEL_COMPILER=no 4084 4085if test "$GCC" = yes ; then 4086 case $host_os in 4087 linux*|gnu*) 4088 echo "$as_me:4088: checking if this is really Intel C compiler" >&5 4089echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6 4090 cf_save_CFLAGS="$CFLAGS" 4091 CFLAGS="$CFLAGS -no-gcc" 4092 cat >conftest.$ac_ext <<_ACEOF 4093#line 4093 "configure" 4094#include "confdefs.h" 4095 4096int 4097main () 4098{ 4099 4100#ifdef __INTEL_COMPILER 4101#else 4102make an error 4103#endif 4104 4105 ; 4106 return 0; 4107} 4108_ACEOF 4109rm -f conftest.$ac_objext 4110if { (eval echo "$as_me:4110: \"$ac_compile\"") >&5 4111 (eval $ac_compile) 2>&5 4112 ac_status=$? 4113 echo "$as_me:4113: \$? = $ac_status" >&5 4114 (exit $ac_status); } && 4115 { ac_try='test -s conftest.$ac_objext' 4116 { (eval echo "$as_me:4116: \"$ac_try\"") >&5 4117 (eval $ac_try) 2>&5 4118 ac_status=$? 4119 echo "$as_me:4119: \$? = $ac_status" >&5 4120 (exit $ac_status); }; }; then 4121 INTEL_COMPILER=yes 4122cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc" 4123 4124else 4125 echo "$as_me: failed program was:" >&5 4126cat conftest.$ac_ext >&5 4127fi 4128rm -f conftest.$ac_objext conftest.$ac_ext 4129 CFLAGS="$cf_save_CFLAGS" 4130 echo "$as_me:4130: result: $INTEL_COMPILER" >&5 4131echo "${ECHO_T}$INTEL_COMPILER" >&6 4132 ;; 4133 esac 4134fi 4135 4136cat > conftest.$ac_ext <<EOF 4137#line 4137 "${as_me:-configure}" 4138int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; } 4139EOF 4140 4141if test "$INTEL_COMPILER" = yes 4142then 4143# The "-wdXXX" options suppress warnings: 4144# remark #1419: external declaration in primary source file 4145# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem) 4146# remark #1684: conversion from pointer to same-sized integral type (potential portability problem) 4147# remark #193: zero used for undefined preprocessing identifier 4148# remark #593: variable "curs_sb_left_arrow" was set but never used 4149# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits 4150# remark #869: parameter "tw" was never referenced 4151# remark #981: operands are evaluated in unspecified order 4152# warning #279: controlling expression is constant 4153 4154 { echo "$as_me:4154: checking for $CC warning options..." >&5 4155echo "$as_me: checking for $CC warning options..." >&6;} 4156 cf_save_CFLAGS="$CFLAGS" 4157 EXTRA_CFLAGS="-Wall" 4158 for cf_opt in \ 4159 wd1419 \ 4160 wd1683 \ 4161 wd1684 \ 4162 wd193 \ 4163 wd593 \ 4164 wd279 \ 4165 wd810 \ 4166 wd869 \ 4167 wd981 4168 do 4169 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 4170 if { (eval echo "$as_me:4170: \"$ac_compile\"") >&5 4171 (eval $ac_compile) 2>&5 4172 ac_status=$? 4173 echo "$as_me:4173: \$? = $ac_status" >&5 4174 (exit $ac_status); }; then 4175 test -n "$verbose" && echo "$as_me:4175: result: ... -$cf_opt" >&5 4176echo "${ECHO_T}... -$cf_opt" >&6 4177 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 4178 fi 4179 done 4180 CFLAGS="$cf_save_CFLAGS" 4181 4182elif test "$GCC" = yes 4183then 4184 { echo "$as_me:4184: checking for $CC warning options..." >&5 4185echo "$as_me: checking for $CC warning options..." >&6;} 4186 cf_save_CFLAGS="$CFLAGS" 4187 EXTRA_CFLAGS= 4188 cf_warn_CONST="" 4189 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings" 4190 for cf_opt in W Wall \ 4191 Wbad-function-cast \ 4192 Wcast-align \ 4193 Wcast-qual \ 4194 Winline \ 4195 Wmissing-declarations \ 4196 Wmissing-prototypes \ 4197 Wnested-externs \ 4198 Wpointer-arith \ 4199 Wshadow \ 4200 Wstrict-prototypes \ 4201 Wundef $cf_warn_CONST 4202 do 4203 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 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); }; then 4209 test -n "$verbose" && echo "$as_me:4209: result: ... -$cf_opt" >&5 4210echo "${ECHO_T}... -$cf_opt" >&6 4211 case $cf_opt in #(vi 4212 Wcast-qual) #(vi 4213 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES" 4214 ;; 4215 Winline) #(vi 4216 case $GCC_VERSION in 4217 [34].*) 4218 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 4219 4220echo "${as_me:-configure}:4220: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 4221 4222 continue;; 4223 esac 4224 ;; 4225 esac 4226 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 4227 fi 4228 done 4229 CFLAGS="$cf_save_CFLAGS" 4230fi 4231rm -rf conftest* 4232 4233fi 4234fi 4235 4236# Check whether --with-package or --without-package was given. 4237if test "${with_package+set}" = set; then 4238 withval="$with_package" 4239 PACKAGE=$withval 4240else 4241 PACKAGE=dialog 4242fi; 4243 4244if test -f $srcdir/VERSION ; then 4245 echo "$as_me:4245: checking for package version" >&5 4246echo $ECHO_N "checking for package version... $ECHO_C" >&6 4247 4248 # if there are not enough fields, cut returns the last one... 4249 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1` 4250 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2` 4251 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3` 4252 4253 # this is how CF_BUNDLED_INTL uses $VERSION: 4254 VERSION="$cf_field1" 4255 4256 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'` 4257 test -z "$VERSION_MAJOR" && { { echo "$as_me:4257: error: missing major-version" >&5 4258echo "$as_me: error: missing major-version" >&2;} 4259 { (exit 1); exit 1; }; } 4260 4261 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'` 4262 test -z "$VERSION_MINOR" && { { echo "$as_me:4262: error: missing minor-version" >&5 4263echo "$as_me: error: missing minor-version" >&2;} 4264 { (exit 1); exit 1; }; } 4265 4266 echo "$as_me:4266: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5 4267echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6 4268 4269 echo "$as_me:4269: checking for package patch date" >&5 4270echo $ECHO_N "checking for package patch date... $ECHO_C" >&6 4271 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'` 4272 case .$VERSION_PATCH in 4273 .) 4274 { { echo "$as_me:4274: error: missing patch-date $VERSION_PATCH" >&5 4275echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;} 4276 { (exit 1); exit 1; }; } 4277 ;; 4278 .[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]) 4279 ;; 4280 *) 4281 { { echo "$as_me:4281: error: illegal patch-date $VERSION_PATCH" >&5 4282echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;} 4283 { (exit 1); exit 1; }; } 4284 ;; 4285 esac 4286 echo "$as_me:4286: result: $VERSION_PATCH" >&5 4287echo "${ECHO_T}$VERSION_PATCH" >&6 4288else 4289 { { echo "$as_me:4289: error: did not find $srcdir/VERSION" >&5 4290echo "$as_me: error: did not find $srcdir/VERSION" >&2;} 4291 { (exit 1); exit 1; }; } 4292fi 4293 4294# show the actual data that we have for versions: 4295test -n "$verbose" && echo " VERSION $VERSION" 1>&6 4296 4297echo "${as_me:-configure}:4297: testing VERSION $VERSION ..." 1>&5 4298 4299test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6 4300 4301echo "${as_me:-configure}:4301: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5 4302 4303test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6 4304 4305echo "${as_me:-configure}:4305: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5 4306 4307test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6 4308 4309echo "${as_me:-configure}:4309: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5 4310 4311 cf_PACKAGE=dialog 4312 PACKAGE=$PACKAGE 4313 cat >>confdefs.h <<EOF 4314#define PACKAGE "$PACKAGE" 4315EOF 4316 4317cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 4318 4319 cat >>confdefs.h <<EOF 4320#define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}" 4321EOF 4322 4323 cat >>confdefs.h <<EOF 4324#define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH} 4325EOF 4326 4327# Check whether --enable-header-subdir or --disable-header-subdir was given. 4328if test "${enable_header_subdir+set}" = set; then 4329 enableval="$enable_header_subdir" 4330 SUB_INC=$enableval 4331else 4332 SUB_INC=no 4333fi; 4334 4335EXTRAOBJS="" 4336echo "$as_me:4336: checking for ANSI C header files" >&5 4337echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4338if test "${ac_cv_header_stdc+set}" = set; then 4339 echo $ECHO_N "(cached) $ECHO_C" >&6 4340else 4341 cat >conftest.$ac_ext <<_ACEOF 4342#line 4342 "configure" 4343#include "confdefs.h" 4344#include <stdlib.h> 4345#include <stdarg.h> 4346#include <string.h> 4347#include <float.h> 4348 4349_ACEOF 4350if { (eval echo "$as_me:4350: \"$ac_cpp conftest.$ac_ext\"") >&5 4351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4352 ac_status=$? 4353 egrep -v '^ *\+' conftest.er1 >conftest.err 4354 rm -f conftest.er1 4355 cat conftest.err >&5 4356 echo "$as_me:4356: \$? = $ac_status" >&5 4357 (exit $ac_status); } >/dev/null; then 4358 if test -s conftest.err; then 4359 ac_cpp_err=$ac_c_preproc_warn_flag 4360 else 4361 ac_cpp_err= 4362 fi 4363else 4364 ac_cpp_err=yes 4365fi 4366if test -z "$ac_cpp_err"; then 4367 ac_cv_header_stdc=yes 4368else 4369 echo "$as_me: failed program was:" >&5 4370 cat conftest.$ac_ext >&5 4371 ac_cv_header_stdc=no 4372fi 4373rm -f conftest.err conftest.$ac_ext 4374 4375if test $ac_cv_header_stdc = yes; then 4376 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4377 cat >conftest.$ac_ext <<_ACEOF 4378#line 4378 "configure" 4379#include "confdefs.h" 4380#include <string.h> 4381 4382_ACEOF 4383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4384 egrep "memchr" >/dev/null 2>&1; then 4385 : 4386else 4387 ac_cv_header_stdc=no 4388fi 4389rm -rf conftest* 4390 4391fi 4392 4393if test $ac_cv_header_stdc = yes; then 4394 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4395 cat >conftest.$ac_ext <<_ACEOF 4396#line 4396 "configure" 4397#include "confdefs.h" 4398#include <stdlib.h> 4399 4400_ACEOF 4401if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4402 egrep "free" >/dev/null 2>&1; then 4403 : 4404else 4405 ac_cv_header_stdc=no 4406fi 4407rm -rf conftest* 4408 4409fi 4410 4411if test $ac_cv_header_stdc = yes; then 4412 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4413 if test "$cross_compiling" = yes; then 4414 : 4415else 4416 cat >conftest.$ac_ext <<_ACEOF 4417#line 4417 "configure" 4418#include "confdefs.h" 4419#include <ctype.h> 4420#if ((' ' & 0x0FF) == 0x020) 4421# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4422# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4423#else 4424# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 4425 || ('j' <= (c) && (c) <= 'r') \ 4426 || ('s' <= (c) && (c) <= 'z')) 4427# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4428#endif 4429 4430#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4431int 4432main () 4433{ 4434 int i; 4435 for (i = 0; i < 256; i++) 4436 if (XOR (islower (i), ISLOWER (i)) 4437 || toupper (i) != TOUPPER (i)) 4438 $ac_main_return(2); 4439 $ac_main_return (0); 4440} 4441_ACEOF 4442rm -f conftest$ac_exeext 4443if { (eval echo "$as_me:4443: \"$ac_link\"") >&5 4444 (eval $ac_link) 2>&5 4445 ac_status=$? 4446 echo "$as_me:4446: \$? = $ac_status" >&5 4447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4448 { (eval echo "$as_me:4448: \"$ac_try\"") >&5 4449 (eval $ac_try) 2>&5 4450 ac_status=$? 4451 echo "$as_me:4451: \$? = $ac_status" >&5 4452 (exit $ac_status); }; }; then 4453 : 4454else 4455 echo "$as_me: program exited with status $ac_status" >&5 4456echo "$as_me: failed program was:" >&5 4457cat conftest.$ac_ext >&5 4458ac_cv_header_stdc=no 4459fi 4460rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4461fi 4462fi 4463fi 4464echo "$as_me:4464: result: $ac_cv_header_stdc" >&5 4465echo "${ECHO_T}$ac_cv_header_stdc" >&6 4466if test $ac_cv_header_stdc = yes; then 4467 4468cat >>confdefs.h <<\EOF 4469#define STDC_HEADERS 1 4470EOF 4471 4472fi 4473 4474echo "$as_me:4474: checking for inline" >&5 4475echo $ECHO_N "checking for inline... $ECHO_C" >&6 4476if test "${ac_cv_c_inline+set}" = set; then 4477 echo $ECHO_N "(cached) $ECHO_C" >&6 4478else 4479 ac_cv_c_inline=no 4480for ac_kw in inline __inline__ __inline; do 4481 cat >conftest.$ac_ext <<_ACEOF 4482#line 4482 "configure" 4483#include "confdefs.h" 4484#ifndef __cplusplus 4485static $ac_kw int static_foo () {return 0; } 4486$ac_kw int foo () {return 0; } 4487#endif 4488 4489_ACEOF 4490rm -f conftest.$ac_objext 4491if { (eval echo "$as_me:4491: \"$ac_compile\"") >&5 4492 (eval $ac_compile) 2>&5 4493 ac_status=$? 4494 echo "$as_me:4494: \$? = $ac_status" >&5 4495 (exit $ac_status); } && 4496 { ac_try='test -s conftest.$ac_objext' 4497 { (eval echo "$as_me:4497: \"$ac_try\"") >&5 4498 (eval $ac_try) 2>&5 4499 ac_status=$? 4500 echo "$as_me:4500: \$? = $ac_status" >&5 4501 (exit $ac_status); }; }; then 4502 ac_cv_c_inline=$ac_kw; break 4503else 4504 echo "$as_me: failed program was:" >&5 4505cat conftest.$ac_ext >&5 4506fi 4507rm -f conftest.$ac_objext conftest.$ac_ext 4508done 4509 4510fi 4511echo "$as_me:4511: result: $ac_cv_c_inline" >&5 4512echo "${ECHO_T}$ac_cv_c_inline" >&6 4513case $ac_cv_c_inline in 4514 inline | yes) ;; 4515 no) 4516cat >>confdefs.h <<\EOF 4517#define inline 4518EOF 4519 ;; 4520 *) cat >>confdefs.h <<EOF 4521#define inline $ac_cv_c_inline 4522EOF 4523 ;; 4524esac 4525 4526# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4527 4528for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4529 inttypes.h stdint.h unistd.h 4530do 4531as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4532echo "$as_me:4532: checking for $ac_header" >&5 4533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4534if eval "test \"\${$as_ac_Header+set}\" = set"; then 4535 echo $ECHO_N "(cached) $ECHO_C" >&6 4536else 4537 cat >conftest.$ac_ext <<_ACEOF 4538#line 4538 "configure" 4539#include "confdefs.h" 4540$ac_includes_default 4541#include <$ac_header> 4542_ACEOF 4543rm -f conftest.$ac_objext 4544if { (eval echo "$as_me:4544: \"$ac_compile\"") >&5 4545 (eval $ac_compile) 2>&5 4546 ac_status=$? 4547 echo "$as_me:4547: \$? = $ac_status" >&5 4548 (exit $ac_status); } && 4549 { ac_try='test -s conftest.$ac_objext' 4550 { (eval echo "$as_me:4550: \"$ac_try\"") >&5 4551 (eval $ac_try) 2>&5 4552 ac_status=$? 4553 echo "$as_me:4553: \$? = $ac_status" >&5 4554 (exit $ac_status); }; }; then 4555 eval "$as_ac_Header=yes" 4556else 4557 echo "$as_me: failed program was:" >&5 4558cat conftest.$ac_ext >&5 4559eval "$as_ac_Header=no" 4560fi 4561rm -f conftest.$ac_objext conftest.$ac_ext 4562fi 4563echo "$as_me:4563: result: `eval echo '${'$as_ac_Header'}'`" >&5 4564echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4565if test `eval echo '${'$as_ac_Header'}'` = yes; then 4566 cat >>confdefs.h <<EOF 4567#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4568EOF 4569 4570fi 4571done 4572 4573echo "$as_me:4573: checking for off_t" >&5 4574echo $ECHO_N "checking for off_t... $ECHO_C" >&6 4575if test "${ac_cv_type_off_t+set}" = set; then 4576 echo $ECHO_N "(cached) $ECHO_C" >&6 4577else 4578 cat >conftest.$ac_ext <<_ACEOF 4579#line 4579 "configure" 4580#include "confdefs.h" 4581$ac_includes_default 4582int 4583main () 4584{ 4585if ((off_t *) 0) 4586 return 0; 4587if (sizeof (off_t)) 4588 return 0; 4589 ; 4590 return 0; 4591} 4592_ACEOF 4593rm -f conftest.$ac_objext 4594if { (eval echo "$as_me:4594: \"$ac_compile\"") >&5 4595 (eval $ac_compile) 2>&5 4596 ac_status=$? 4597 echo "$as_me:4597: \$? = $ac_status" >&5 4598 (exit $ac_status); } && 4599 { ac_try='test -s conftest.$ac_objext' 4600 { (eval echo "$as_me:4600: \"$ac_try\"") >&5 4601 (eval $ac_try) 2>&5 4602 ac_status=$? 4603 echo "$as_me:4603: \$? = $ac_status" >&5 4604 (exit $ac_status); }; }; then 4605 ac_cv_type_off_t=yes 4606else 4607 echo "$as_me: failed program was:" >&5 4608cat conftest.$ac_ext >&5 4609ac_cv_type_off_t=no 4610fi 4611rm -f conftest.$ac_objext conftest.$ac_ext 4612fi 4613echo "$as_me:4613: result: $ac_cv_type_off_t" >&5 4614echo "${ECHO_T}$ac_cv_type_off_t" >&6 4615if test $ac_cv_type_off_t = yes; then 4616 : 4617else 4618 4619cat >>confdefs.h <<EOF 4620#define off_t long 4621EOF 4622 4623fi 4624 4625echo "$as_me:4625: checking for size_t" >&5 4626echo $ECHO_N "checking for size_t... $ECHO_C" >&6 4627if test "${ac_cv_type_size_t+set}" = set; then 4628 echo $ECHO_N "(cached) $ECHO_C" >&6 4629else 4630 cat >conftest.$ac_ext <<_ACEOF 4631#line 4631 "configure" 4632#include "confdefs.h" 4633$ac_includes_default 4634int 4635main () 4636{ 4637if ((size_t *) 0) 4638 return 0; 4639if (sizeof (size_t)) 4640 return 0; 4641 ; 4642 return 0; 4643} 4644_ACEOF 4645rm -f conftest.$ac_objext 4646if { (eval echo "$as_me:4646: \"$ac_compile\"") >&5 4647 (eval $ac_compile) 2>&5 4648 ac_status=$? 4649 echo "$as_me:4649: \$? = $ac_status" >&5 4650 (exit $ac_status); } && 4651 { ac_try='test -s conftest.$ac_objext' 4652 { (eval echo "$as_me:4652: \"$ac_try\"") >&5 4653 (eval $ac_try) 2>&5 4654 ac_status=$? 4655 echo "$as_me:4655: \$? = $ac_status" >&5 4656 (exit $ac_status); }; }; then 4657 ac_cv_type_size_t=yes 4658else 4659 echo "$as_me: failed program was:" >&5 4660cat conftest.$ac_ext >&5 4661ac_cv_type_size_t=no 4662fi 4663rm -f conftest.$ac_objext conftest.$ac_ext 4664fi 4665echo "$as_me:4665: result: $ac_cv_type_size_t" >&5 4666echo "${ECHO_T}$ac_cv_type_size_t" >&6 4667if test $ac_cv_type_size_t = yes; then 4668 : 4669else 4670 4671cat >>confdefs.h <<EOF 4672#define size_t unsigned 4673EOF 4674 4675fi 4676 4677# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 4678# for constant arguments. Useless! 4679echo "$as_me:4679: checking for working alloca.h" >&5 4680echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 4681if test "${ac_cv_working_alloca_h+set}" = set; then 4682 echo $ECHO_N "(cached) $ECHO_C" >&6 4683else 4684 cat >conftest.$ac_ext <<_ACEOF 4685#line 4685 "configure" 4686#include "confdefs.h" 4687#include <alloca.h> 4688int 4689main () 4690{ 4691char *p = (char *) alloca (2 * sizeof (int)); 4692 ; 4693 return 0; 4694} 4695_ACEOF 4696rm -f conftest.$ac_objext conftest$ac_exeext 4697if { (eval echo "$as_me:4697: \"$ac_link\"") >&5 4698 (eval $ac_link) 2>&5 4699 ac_status=$? 4700 echo "$as_me:4700: \$? = $ac_status" >&5 4701 (exit $ac_status); } && 4702 { ac_try='test -s conftest$ac_exeext' 4703 { (eval echo "$as_me:4703: \"$ac_try\"") >&5 4704 (eval $ac_try) 2>&5 4705 ac_status=$? 4706 echo "$as_me:4706: \$? = $ac_status" >&5 4707 (exit $ac_status); }; }; then 4708 ac_cv_working_alloca_h=yes 4709else 4710 echo "$as_me: failed program was:" >&5 4711cat conftest.$ac_ext >&5 4712ac_cv_working_alloca_h=no 4713fi 4714rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4715fi 4716echo "$as_me:4716: result: $ac_cv_working_alloca_h" >&5 4717echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 4718if test $ac_cv_working_alloca_h = yes; then 4719 4720cat >>confdefs.h <<\EOF 4721#define HAVE_ALLOCA_H 1 4722EOF 4723 4724fi 4725 4726echo "$as_me:4726: checking for alloca" >&5 4727echo $ECHO_N "checking for alloca... $ECHO_C" >&6 4728if test "${ac_cv_func_alloca_works+set}" = set; then 4729 echo $ECHO_N "(cached) $ECHO_C" >&6 4730else 4731 cat >conftest.$ac_ext <<_ACEOF 4732#line 4732 "configure" 4733#include "confdefs.h" 4734#ifdef __GNUC__ 4735# define alloca __builtin_alloca 4736#else 4737# ifdef _MSC_VER 4738# include <malloc.h> 4739# define alloca _alloca 4740# else 4741# if HAVE_ALLOCA_H 4742# include <alloca.h> 4743# else 4744# ifdef _AIX 4745 #pragma alloca 4746# else 4747# ifndef alloca /* predefined by HP cc +Olibcalls */ 4748char *alloca (); 4749# endif 4750# endif 4751# endif 4752# endif 4753#endif 4754 4755int 4756main () 4757{ 4758char *p = (char *) alloca (1); 4759 ; 4760 return 0; 4761} 4762_ACEOF 4763rm -f conftest.$ac_objext conftest$ac_exeext 4764if { (eval echo "$as_me:4764: \"$ac_link\"") >&5 4765 (eval $ac_link) 2>&5 4766 ac_status=$? 4767 echo "$as_me:4767: \$? = $ac_status" >&5 4768 (exit $ac_status); } && 4769 { ac_try='test -s conftest$ac_exeext' 4770 { (eval echo "$as_me:4770: \"$ac_try\"") >&5 4771 (eval $ac_try) 2>&5 4772 ac_status=$? 4773 echo "$as_me:4773: \$? = $ac_status" >&5 4774 (exit $ac_status); }; }; then 4775 ac_cv_func_alloca_works=yes 4776else 4777 echo "$as_me: failed program was:" >&5 4778cat conftest.$ac_ext >&5 4779ac_cv_func_alloca_works=no 4780fi 4781rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4782fi 4783echo "$as_me:4783: result: $ac_cv_func_alloca_works" >&5 4784echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 4785 4786if test $ac_cv_func_alloca_works = yes; then 4787 4788cat >>confdefs.h <<\EOF 4789#define HAVE_ALLOCA 1 4790EOF 4791 4792else 4793 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 4794# that cause trouble. Some versions do not even contain alloca or 4795# contain a buggy version. If you still want to use their alloca, 4796# use ar to extract alloca.o from them instead of compiling alloca.c. 4797 4798ALLOCA=alloca.$ac_objext 4799 4800cat >>confdefs.h <<\EOF 4801#define C_ALLOCA 1 4802EOF 4803 4804echo "$as_me:4804: checking whether \`alloca.c' needs Cray hooks" >&5 4805echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 4806if test "${ac_cv_os_cray+set}" = set; then 4807 echo $ECHO_N "(cached) $ECHO_C" >&6 4808else 4809 cat >conftest.$ac_ext <<_ACEOF 4810#line 4810 "configure" 4811#include "confdefs.h" 4812#if defined(CRAY) && ! defined(CRAY2) 4813webecray 4814#else 4815wenotbecray 4816#endif 4817 4818_ACEOF 4819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4820 egrep "webecray" >/dev/null 2>&1; then 4821 ac_cv_os_cray=yes 4822else 4823 ac_cv_os_cray=no 4824fi 4825rm -rf conftest* 4826 4827fi 4828echo "$as_me:4828: result: $ac_cv_os_cray" >&5 4829echo "${ECHO_T}$ac_cv_os_cray" >&6 4830if test $ac_cv_os_cray = yes; then 4831 for ac_func in _getb67 GETB67 getb67; do 4832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4833echo "$as_me:4833: checking for $ac_func" >&5 4834echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4835if eval "test \"\${$as_ac_var+set}\" = set"; then 4836 echo $ECHO_N "(cached) $ECHO_C" >&6 4837else 4838 cat >conftest.$ac_ext <<_ACEOF 4839#line 4839 "configure" 4840#include "confdefs.h" 4841/* System header to define __stub macros and hopefully few prototypes, 4842 which can conflict with char $ac_func (); below. */ 4843#include <assert.h> 4844/* Override any gcc2 internal prototype to avoid an error. */ 4845#ifdef __cplusplus 4846extern "C" 4847#endif 4848/* We use char because int might match the return type of a gcc2 4849 builtin and then its argument prototype would still apply. */ 4850char $ac_func (); 4851char (*f) (); 4852 4853int 4854main () 4855{ 4856/* The GNU C library defines this for functions which it implements 4857 to always fail with ENOSYS. Some functions are actually named 4858 something starting with __ and the normal name is an alias. */ 4859#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4860choke me 4861#else 4862f = $ac_func; 4863#endif 4864 4865 ; 4866 return 0; 4867} 4868_ACEOF 4869rm -f conftest.$ac_objext conftest$ac_exeext 4870if { (eval echo "$as_me:4870: \"$ac_link\"") >&5 4871 (eval $ac_link) 2>&5 4872 ac_status=$? 4873 echo "$as_me:4873: \$? = $ac_status" >&5 4874 (exit $ac_status); } && 4875 { ac_try='test -s conftest$ac_exeext' 4876 { (eval echo "$as_me:4876: \"$ac_try\"") >&5 4877 (eval $ac_try) 2>&5 4878 ac_status=$? 4879 echo "$as_me:4879: \$? = $ac_status" >&5 4880 (exit $ac_status); }; }; then 4881 eval "$as_ac_var=yes" 4882else 4883 echo "$as_me: failed program was:" >&5 4884cat conftest.$ac_ext >&5 4885eval "$as_ac_var=no" 4886fi 4887rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4888fi 4889echo "$as_me:4889: result: `eval echo '${'$as_ac_var'}'`" >&5 4890echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4891if test `eval echo '${'$as_ac_var'}'` = yes; then 4892 4893cat >>confdefs.h <<EOF 4894#define CRAY_STACKSEG_END $ac_func 4895EOF 4896 4897 break 4898fi 4899 4900 done 4901fi 4902 4903echo "$as_me:4903: checking stack direction for C alloca" >&5 4904echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 4905if test "${ac_cv_c_stack_direction+set}" = set; then 4906 echo $ECHO_N "(cached) $ECHO_C" >&6 4907else 4908 if test "$cross_compiling" = yes; then 4909 ac_cv_c_stack_direction=0 4910else 4911 cat >conftest.$ac_ext <<_ACEOF 4912#line 4912 "configure" 4913#include "confdefs.h" 4914int 4915find_stack_direction () 4916{ 4917 static char *addr = 0; 4918 auto char dummy; 4919 if (addr == 0) 4920 { 4921 addr = &dummy; 4922 return find_stack_direction (); 4923 } 4924 else 4925 return (&dummy > addr) ? 1 : -1; 4926} 4927 4928int 4929main () 4930{ 4931 $ac_main_return (find_stack_direction () < 0); 4932} 4933_ACEOF 4934rm -f conftest$ac_exeext 4935if { (eval echo "$as_me:4935: \"$ac_link\"") >&5 4936 (eval $ac_link) 2>&5 4937 ac_status=$? 4938 echo "$as_me:4938: \$? = $ac_status" >&5 4939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4940 { (eval echo "$as_me:4940: \"$ac_try\"") >&5 4941 (eval $ac_try) 2>&5 4942 ac_status=$? 4943 echo "$as_me:4943: \$? = $ac_status" >&5 4944 (exit $ac_status); }; }; then 4945 ac_cv_c_stack_direction=1 4946else 4947 echo "$as_me: program exited with status $ac_status" >&5 4948echo "$as_me: failed program was:" >&5 4949cat conftest.$ac_ext >&5 4950ac_cv_c_stack_direction=-1 4951fi 4952rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4953fi 4954fi 4955echo "$as_me:4955: result: $ac_cv_c_stack_direction" >&5 4956echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 4957 4958cat >>confdefs.h <<EOF 4959#define STACK_DIRECTION $ac_cv_c_stack_direction 4960EOF 4961 4962fi 4963 4964for ac_header in stdlib.h unistd.h 4965do 4966as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4967echo "$as_me:4967: checking for $ac_header" >&5 4968echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4969if eval "test \"\${$as_ac_Header+set}\" = set"; then 4970 echo $ECHO_N "(cached) $ECHO_C" >&6 4971else 4972 cat >conftest.$ac_ext <<_ACEOF 4973#line 4973 "configure" 4974#include "confdefs.h" 4975#include <$ac_header> 4976_ACEOF 4977if { (eval echo "$as_me:4977: \"$ac_cpp conftest.$ac_ext\"") >&5 4978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4979 ac_status=$? 4980 egrep -v '^ *\+' conftest.er1 >conftest.err 4981 rm -f conftest.er1 4982 cat conftest.err >&5 4983 echo "$as_me:4983: \$? = $ac_status" >&5 4984 (exit $ac_status); } >/dev/null; then 4985 if test -s conftest.err; then 4986 ac_cpp_err=$ac_c_preproc_warn_flag 4987 else 4988 ac_cpp_err= 4989 fi 4990else 4991 ac_cpp_err=yes 4992fi 4993if test -z "$ac_cpp_err"; then 4994 eval "$as_ac_Header=yes" 4995else 4996 echo "$as_me: failed program was:" >&5 4997 cat conftest.$ac_ext >&5 4998 eval "$as_ac_Header=no" 4999fi 5000rm -f conftest.err conftest.$ac_ext 5001fi 5002echo "$as_me:5002: result: `eval echo '${'$as_ac_Header'}'`" >&5 5003echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5004if test `eval echo '${'$as_ac_Header'}'` = yes; then 5005 cat >>confdefs.h <<EOF 5006#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5007EOF 5008 5009fi 5010done 5011 5012for ac_func in getpagesize 5013do 5014as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5015echo "$as_me:5015: checking for $ac_func" >&5 5016echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5017if eval "test \"\${$as_ac_var+set}\" = set"; then 5018 echo $ECHO_N "(cached) $ECHO_C" >&6 5019else 5020 cat >conftest.$ac_ext <<_ACEOF 5021#line 5021 "configure" 5022#include "confdefs.h" 5023/* System header to define __stub macros and hopefully few prototypes, 5024 which can conflict with char $ac_func (); below. */ 5025#include <assert.h> 5026/* Override any gcc2 internal prototype to avoid an error. */ 5027#ifdef __cplusplus 5028extern "C" 5029#endif 5030/* We use char because int might match the return type of a gcc2 5031 builtin and then its argument prototype would still apply. */ 5032char $ac_func (); 5033char (*f) (); 5034 5035int 5036main () 5037{ 5038/* The GNU C library defines this for functions which it implements 5039 to always fail with ENOSYS. Some functions are actually named 5040 something starting with __ and the normal name is an alias. */ 5041#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5042choke me 5043#else 5044f = $ac_func; 5045#endif 5046 5047 ; 5048 return 0; 5049} 5050_ACEOF 5051rm -f conftest.$ac_objext conftest$ac_exeext 5052if { (eval echo "$as_me:5052: \"$ac_link\"") >&5 5053 (eval $ac_link) 2>&5 5054 ac_status=$? 5055 echo "$as_me:5055: \$? = $ac_status" >&5 5056 (exit $ac_status); } && 5057 { ac_try='test -s conftest$ac_exeext' 5058 { (eval echo "$as_me:5058: \"$ac_try\"") >&5 5059 (eval $ac_try) 2>&5 5060 ac_status=$? 5061 echo "$as_me:5061: \$? = $ac_status" >&5 5062 (exit $ac_status); }; }; then 5063 eval "$as_ac_var=yes" 5064else 5065 echo "$as_me: failed program was:" >&5 5066cat conftest.$ac_ext >&5 5067eval "$as_ac_var=no" 5068fi 5069rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5070fi 5071echo "$as_me:5071: result: `eval echo '${'$as_ac_var'}'`" >&5 5072echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5073if test `eval echo '${'$as_ac_var'}'` = yes; then 5074 cat >>confdefs.h <<EOF 5075#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5076EOF 5077 5078fi 5079done 5080 5081echo "$as_me:5081: checking for working mmap" >&5 5082echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 5083if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 5084 echo $ECHO_N "(cached) $ECHO_C" >&6 5085else 5086 if test "$cross_compiling" = yes; then 5087 ac_cv_func_mmap_fixed_mapped=no 5088else 5089 cat >conftest.$ac_ext <<_ACEOF 5090#line 5090 "configure" 5091#include "confdefs.h" 5092$ac_includes_default 5093/* Thanks to Mike Haertel and Jim Avera for this test. 5094 Here is a matrix of mmap possibilities: 5095 mmap private not fixed 5096 mmap private fixed at somewhere currently unmapped 5097 mmap private fixed at somewhere already mapped 5098 mmap shared not fixed 5099 mmap shared fixed at somewhere currently unmapped 5100 mmap shared fixed at somewhere already mapped 5101 For private mappings, we should verify that changes cannot be read() 5102 back from the file, nor mmap's back from the file at a different 5103 address. (There have been systems where private was not correctly 5104 implemented like the infamous i386 svr4.0, and systems where the 5105 VM page cache was not coherent with the file system buffer cache 5106 like early versions of FreeBSD and possibly contemporary NetBSD.) 5107 For shared mappings, we should conversely verify that changes get 5108 propogated back to all the places they're supposed to be. 5109 5110 Grep wants private fixed already mapped. 5111 The main things grep needs to know about mmap are: 5112 * does it exist and is it safe to write into the mmap'd area 5113 * how to use it (BSD variants) */ 5114 5115#include <fcntl.h> 5116#include <sys/mman.h> 5117 5118#if !STDC_HEADERS && !HAVE_STDLIB_H 5119char *malloc (); 5120#endif 5121 5122/* This mess was copied from the GNU getpagesize.h. */ 5123#if !HAVE_GETPAGESIZE 5124/* Assume that all systems that can run configure have sys/param.h. */ 5125# if !HAVE_SYS_PARAM_H 5126# define HAVE_SYS_PARAM_H 1 5127# endif 5128 5129# ifdef _SC_PAGESIZE 5130# define getpagesize() sysconf(_SC_PAGESIZE) 5131# else /* no _SC_PAGESIZE */ 5132# if HAVE_SYS_PARAM_H 5133# include <sys/param.h> 5134# ifdef EXEC_PAGESIZE 5135# define getpagesize() EXEC_PAGESIZE 5136# else /* no EXEC_PAGESIZE */ 5137# ifdef NBPG 5138# define getpagesize() NBPG * CLSIZE 5139# ifndef CLSIZE 5140# define CLSIZE 1 5141# endif /* no CLSIZE */ 5142# else /* no NBPG */ 5143# ifdef NBPC 5144# define getpagesize() NBPC 5145# else /* no NBPC */ 5146# ifdef PAGESIZE 5147# define getpagesize() PAGESIZE 5148# endif /* PAGESIZE */ 5149# endif /* no NBPC */ 5150# endif /* no NBPG */ 5151# endif /* no EXEC_PAGESIZE */ 5152# else /* no HAVE_SYS_PARAM_H */ 5153# define getpagesize() 8192 /* punt totally */ 5154# endif /* no HAVE_SYS_PARAM_H */ 5155# endif /* no _SC_PAGESIZE */ 5156 5157#endif /* no HAVE_GETPAGESIZE */ 5158 5159int 5160main () 5161{ 5162 char *data, *data2, *data3; 5163 int i, pagesize; 5164 int fd; 5165 5166 pagesize = getpagesize (); 5167 5168 /* First, make a file with some known garbage in it. */ 5169 data = (char *) malloc (pagesize); 5170 if (!data) 5171 $ac_main_return (1); 5172 for (i = 0; i < pagesize; ++i) 5173 *(data + i) = rand (); 5174 umask (0); 5175 fd = creat ("conftest.mmap", 0600); 5176 if (fd < 0) 5177 $ac_main_return (1); 5178 if (write (fd, data, pagesize) != pagesize) 5179 $ac_main_return (1); 5180 close (fd); 5181 5182 /* Next, try to mmap the file at a fixed address which already has 5183 something else allocated at it. If we can, also make sure that 5184 we see the same garbage. */ 5185 fd = open ("conftest.mmap", O_RDWR); 5186 if (fd < 0) 5187 $ac_main_return (1); 5188 data2 = (char *) malloc (2 * pagesize); 5189 if (!data2) 5190 $ac_main_return (1); 5191 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 5192 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 5193 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 5194 $ac_main_return (1); 5195 for (i = 0; i < pagesize; ++i) 5196 if (*(data + i) != *(data2 + i)) 5197 $ac_main_return (1); 5198 5199 /* Finally, make sure that changes to the mapped area do not 5200 percolate back to the file as seen by read(). (This is a bug on 5201 some variants of i386 svr4.0.) */ 5202 for (i = 0; i < pagesize; ++i) 5203 *(data2 + i) = *(data2 + i) + 1; 5204 data3 = (char *) malloc (pagesize); 5205 if (!data3) 5206 $ac_main_return (1); 5207 if (read (fd, data3, pagesize) != pagesize) 5208 $ac_main_return (1); 5209 for (i = 0; i < pagesize; ++i) 5210 if (*(data + i) != *(data3 + i)) 5211 $ac_main_return (1); 5212 close (fd); 5213 $ac_main_return (0); 5214} 5215_ACEOF 5216rm -f conftest$ac_exeext 5217if { (eval echo "$as_me:5217: \"$ac_link\"") >&5 5218 (eval $ac_link) 2>&5 5219 ac_status=$? 5220 echo "$as_me:5220: \$? = $ac_status" >&5 5221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5222 { (eval echo "$as_me:5222: \"$ac_try\"") >&5 5223 (eval $ac_try) 2>&5 5224 ac_status=$? 5225 echo "$as_me:5225: \$? = $ac_status" >&5 5226 (exit $ac_status); }; }; then 5227 ac_cv_func_mmap_fixed_mapped=yes 5228else 5229 echo "$as_me: program exited with status $ac_status" >&5 5230echo "$as_me: failed program was:" >&5 5231cat conftest.$ac_ext >&5 5232ac_cv_func_mmap_fixed_mapped=no 5233fi 5234rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5235fi 5236fi 5237echo "$as_me:5237: result: $ac_cv_func_mmap_fixed_mapped" >&5 5238echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 5239if test $ac_cv_func_mmap_fixed_mapped = yes; then 5240 5241cat >>confdefs.h <<\EOF 5242#define HAVE_MMAP 1 5243EOF 5244 5245fi 5246rm -f conftest.mmap 5247 5248 echo "$as_me:5248: checking whether we are using the GNU C Library 2.1 or newer" >&5 5249echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6 5250if test "${ac_cv_gnu_library_2_1+set}" = set; then 5251 echo $ECHO_N "(cached) $ECHO_C" >&6 5252else 5253 cat >conftest.$ac_ext <<_ACEOF 5254#line 5254 "configure" 5255#include "confdefs.h" 5256 5257#include <features.h> 5258#ifdef __GNU_LIBRARY__ 5259 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 5260 Lucky GNU user 5261 #endif 5262#endif 5263 5264_ACEOF 5265if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5266 egrep "Lucky GNU user" >/dev/null 2>&1; then 5267 ac_cv_gnu_library_2_1=yes 5268else 5269 ac_cv_gnu_library_2_1=no 5270fi 5271rm -rf conftest* 5272 5273fi 5274echo "$as_me:5274: result: $ac_cv_gnu_library_2_1" >&5 5275echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6 5276 5277 GLIBC21="$ac_cv_gnu_library_2_1" 5278 5279cf_makefile=makefile 5280 5281test -z "$ALL_LINGUAS" && ALL_LINGUAS=`test -d $srcdir/po && cd $srcdir/po && echo *.po|sed -e 's/\.po//g' -e 's/*//'` 5282 5283# Allow override of "config.h" definition: 5284: ${CONFIG_H:=config.h} 5285 5286if test -z "$PACKAGE" ; then 5287 { { echo "$as_me:5287: error: CF_BUNDLED_INTL used without setting PACKAGE variable" >&5 5288echo "$as_me: error: CF_BUNDLED_INTL used without setting PACKAGE variable" >&2;} 5289 { (exit 1); exit 1; }; } 5290fi 5291 5292if test -z "$VERSION" ; then 5293if test -f $srcdir/VERSION ; then 5294 VERSION=`sed -e '2,$d' $srcdir/VERSION|cut -f1` 5295else 5296 VERSION=unknown 5297fi 5298fi 5299 5300for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ 5301stdlib.h string.h unistd.h sys/param.h 5302do 5303as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5304echo "$as_me:5304: checking for $ac_header" >&5 5305echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5306if eval "test \"\${$as_ac_Header+set}\" = set"; then 5307 echo $ECHO_N "(cached) $ECHO_C" >&6 5308else 5309 cat >conftest.$ac_ext <<_ACEOF 5310#line 5310 "configure" 5311#include "confdefs.h" 5312#include <$ac_header> 5313_ACEOF 5314if { (eval echo "$as_me:5314: \"$ac_cpp conftest.$ac_ext\"") >&5 5315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5316 ac_status=$? 5317 egrep -v '^ *\+' conftest.er1 >conftest.err 5318 rm -f conftest.er1 5319 cat conftest.err >&5 5320 echo "$as_me:5320: \$? = $ac_status" >&5 5321 (exit $ac_status); } >/dev/null; then 5322 if test -s conftest.err; then 5323 ac_cpp_err=$ac_c_preproc_warn_flag 5324 else 5325 ac_cpp_err= 5326 fi 5327else 5328 ac_cpp_err=yes 5329fi 5330if test -z "$ac_cpp_err"; then 5331 eval "$as_ac_Header=yes" 5332else 5333 echo "$as_me: failed program was:" >&5 5334 cat conftest.$ac_ext >&5 5335 eval "$as_ac_Header=no" 5336fi 5337rm -f conftest.err conftest.$ac_ext 5338fi 5339echo "$as_me:5339: result: `eval echo '${'$as_ac_Header'}'`" >&5 5340echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5341if test `eval echo '${'$as_ac_Header'}'` = yes; then 5342 cat >>confdefs.h <<EOF 5343#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5344EOF 5345 5346fi 5347done 5348 5349for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \ 5350getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \ 5351strdup strtoul tsearch __argz_count __argz_stringify __argz_next 5352do 5353as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5354echo "$as_me:5354: checking for $ac_func" >&5 5355echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5356if eval "test \"\${$as_ac_var+set}\" = set"; then 5357 echo $ECHO_N "(cached) $ECHO_C" >&6 5358else 5359 cat >conftest.$ac_ext <<_ACEOF 5360#line 5360 "configure" 5361#include "confdefs.h" 5362/* System header to define __stub macros and hopefully few prototypes, 5363 which can conflict with char $ac_func (); below. */ 5364#include <assert.h> 5365/* Override any gcc2 internal prototype to avoid an error. */ 5366#ifdef __cplusplus 5367extern "C" 5368#endif 5369/* We use char because int might match the return type of a gcc2 5370 builtin and then its argument prototype would still apply. */ 5371char $ac_func (); 5372char (*f) (); 5373 5374int 5375main () 5376{ 5377/* The GNU C library defines this for functions which it implements 5378 to always fail with ENOSYS. Some functions are actually named 5379 something starting with __ and the normal name is an alias. */ 5380#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5381choke me 5382#else 5383f = $ac_func; 5384#endif 5385 5386 ; 5387 return 0; 5388} 5389_ACEOF 5390rm -f conftest.$ac_objext conftest$ac_exeext 5391if { (eval echo "$as_me:5391: \"$ac_link\"") >&5 5392 (eval $ac_link) 2>&5 5393 ac_status=$? 5394 echo "$as_me:5394: \$? = $ac_status" >&5 5395 (exit $ac_status); } && 5396 { ac_try='test -s conftest$ac_exeext' 5397 { (eval echo "$as_me:5397: \"$ac_try\"") >&5 5398 (eval $ac_try) 2>&5 5399 ac_status=$? 5400 echo "$as_me:5400: \$? = $ac_status" >&5 5401 (exit $ac_status); }; }; then 5402 eval "$as_ac_var=yes" 5403else 5404 echo "$as_me: failed program was:" >&5 5405cat conftest.$ac_ext >&5 5406eval "$as_ac_var=no" 5407fi 5408rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5409fi 5410echo "$as_me:5410: result: `eval echo '${'$as_ac_var'}'`" >&5 5411echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5412if test `eval echo '${'$as_ac_var'}'` = yes; then 5413 cat >>confdefs.h <<EOF 5414#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5415EOF 5416 5417fi 5418done 5419 5420# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. 5421if test "${with_libiconv_prefix+set}" = set; then 5422 withval="$with_libiconv_prefix" 5423 5424 case "$withval" in #(vi 5425 no) #(vi 5426 ;; 5427 yes) #(vi 5428 ;; 5429 *) 5430 5431for cf_searchpath in `echo "$withval" | tr $PATH_SEPARATOR ' '`; do 5432 if test -d $cf_searchpath/include; then 5433 5434if test -n "$cf_searchpath/include" ; then 5435 for cf_add_incdir in $cf_searchpath/include 5436 do 5437 while test $cf_add_incdir != /usr/include 5438 do 5439 if test -d $cf_add_incdir 5440 then 5441 cf_have_incdir=no 5442 if test -n "$CFLAGS$CPPFLAGS" ; then 5443 # a loop is needed to ensure we can add subdirs of existing dirs 5444 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 5445 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 5446 cf_have_incdir=yes; break 5447 fi 5448 done 5449 fi 5450 5451 if test "$cf_have_incdir" = no ; then 5452 if test "$cf_add_incdir" = /usr/local/include ; then 5453 if test "$GCC" = yes 5454 then 5455 cf_save_CPPFLAGS=$CPPFLAGS 5456 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 5457 cat >conftest.$ac_ext <<_ACEOF 5458#line 5458 "configure" 5459#include "confdefs.h" 5460#include <stdio.h> 5461int 5462main () 5463{ 5464printf("Hello") 5465 ; 5466 return 0; 5467} 5468_ACEOF 5469rm -f conftest.$ac_objext 5470if { (eval echo "$as_me:5470: \"$ac_compile\"") >&5 5471 (eval $ac_compile) 2>&5 5472 ac_status=$? 5473 echo "$as_me:5473: \$? = $ac_status" >&5 5474 (exit $ac_status); } && 5475 { ac_try='test -s conftest.$ac_objext' 5476 { (eval echo "$as_me:5476: \"$ac_try\"") >&5 5477 (eval $ac_try) 2>&5 5478 ac_status=$? 5479 echo "$as_me:5479: \$? = $ac_status" >&5 5480 (exit $ac_status); }; }; then 5481 : 5482else 5483 echo "$as_me: failed program was:" >&5 5484cat conftest.$ac_ext >&5 5485cf_have_incdir=yes 5486fi 5487rm -f conftest.$ac_objext conftest.$ac_ext 5488 CPPFLAGS=$cf_save_CPPFLAGS 5489 fi 5490 fi 5491 fi 5492 5493 if test "$cf_have_incdir" = no ; then 5494 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 5495 5496echo "${as_me:-configure}:5496: testing adding $cf_add_incdir to include-path ..." 1>&5 5497 5498 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 5499 5500 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 5501 test "$cf_top_incdir" = "$cf_add_incdir" && break 5502 cf_add_incdir="$cf_top_incdir" 5503 else 5504 break 5505 fi 5506 fi 5507 done 5508 done 5509fi 5510 5511 elif test -d $cf_searchpath/../include ; then 5512 5513if test -n "$cf_searchpath/../include" ; then 5514 for cf_add_incdir in $cf_searchpath/../include 5515 do 5516 while test $cf_add_incdir != /usr/include 5517 do 5518 if test -d $cf_add_incdir 5519 then 5520 cf_have_incdir=no 5521 if test -n "$CFLAGS$CPPFLAGS" ; then 5522 # a loop is needed to ensure we can add subdirs of existing dirs 5523 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 5524 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 5525 cf_have_incdir=yes; break 5526 fi 5527 done 5528 fi 5529 5530 if test "$cf_have_incdir" = no ; then 5531 if test "$cf_add_incdir" = /usr/local/include ; then 5532 if test "$GCC" = yes 5533 then 5534 cf_save_CPPFLAGS=$CPPFLAGS 5535 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 5536 cat >conftest.$ac_ext <<_ACEOF 5537#line 5537 "configure" 5538#include "confdefs.h" 5539#include <stdio.h> 5540int 5541main () 5542{ 5543printf("Hello") 5544 ; 5545 return 0; 5546} 5547_ACEOF 5548rm -f conftest.$ac_objext 5549if { (eval echo "$as_me:5549: \"$ac_compile\"") >&5 5550 (eval $ac_compile) 2>&5 5551 ac_status=$? 5552 echo "$as_me:5552: \$? = $ac_status" >&5 5553 (exit $ac_status); } && 5554 { ac_try='test -s conftest.$ac_objext' 5555 { (eval echo "$as_me:5555: \"$ac_try\"") >&5 5556 (eval $ac_try) 2>&5 5557 ac_status=$? 5558 echo "$as_me:5558: \$? = $ac_status" >&5 5559 (exit $ac_status); }; }; then 5560 : 5561else 5562 echo "$as_me: failed program was:" >&5 5563cat conftest.$ac_ext >&5 5564cf_have_incdir=yes 5565fi 5566rm -f conftest.$ac_objext conftest.$ac_ext 5567 CPPFLAGS=$cf_save_CPPFLAGS 5568 fi 5569 fi 5570 fi 5571 5572 if test "$cf_have_incdir" = no ; then 5573 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 5574 5575echo "${as_me:-configure}:5575: testing adding $cf_add_incdir to include-path ..." 1>&5 5576 5577 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 5578 5579 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 5580 test "$cf_top_incdir" = "$cf_add_incdir" && break 5581 cf_add_incdir="$cf_top_incdir" 5582 else 5583 break 5584 fi 5585 fi 5586 done 5587 done 5588fi 5589 5590 else 5591{ { echo "$as_me:5591: error: cannot find libiconv under $withval" >&5 5592echo "$as_me: error: cannot find libiconv under $withval" >&2;} 5593 { (exit 1); exit 1; }; } 5594 fi 5595 if test -d $cf_searchpath/lib; then 5596 5597if test -n "$cf_searchpath/lib" ; then 5598 for cf_add_libdir in $cf_searchpath/lib 5599 do 5600 if test $cf_add_libdir = /usr/lib ; then 5601 : 5602 elif test -d $cf_add_libdir 5603 then 5604 cf_have_libdir=no 5605 if test -n "$LDFLAGS$LIBS" ; then 5606 # a loop is needed to ensure we can add subdirs of existing dirs 5607 for cf_test_libdir in $LDFLAGS $LIBS ; do 5608 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 5609 cf_have_libdir=yes; break 5610 fi 5611 done 5612 fi 5613 if test "$cf_have_libdir" = no ; then 5614 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 5615 5616echo "${as_me:-configure}:5616: testing adding $cf_add_libdir to library-path ..." 1>&5 5617 5618 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 5619 fi 5620 fi 5621 done 5622fi 5623 5624 elif test -d $cf_searchpath ; then 5625 5626if test -n "$cf_searchpath" ; then 5627 for cf_add_libdir in $cf_searchpath 5628 do 5629 if test $cf_add_libdir = /usr/lib ; then 5630 : 5631 elif test -d $cf_add_libdir 5632 then 5633 cf_have_libdir=no 5634 if test -n "$LDFLAGS$LIBS" ; then 5635 # a loop is needed to ensure we can add subdirs of existing dirs 5636 for cf_test_libdir in $LDFLAGS $LIBS ; do 5637 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 5638 cf_have_libdir=yes; break 5639 fi 5640 done 5641 fi 5642 if test "$cf_have_libdir" = no ; then 5643 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 5644 5645echo "${as_me:-configure}:5645: testing adding $cf_add_libdir to library-path ..." 1>&5 5646 5647 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 5648 fi 5649 fi 5650 done 5651fi 5652 5653 else 5654{ { echo "$as_me:5654: error: cannot find libiconv under $withval" >&5 5655echo "$as_me: error: cannot find libiconv under $withval" >&2;} 5656 { (exit 1); exit 1; }; } 5657 fi 5658done 5659 5660 ;; 5661 esac 5662 5663fi; 5664 5665 echo "$as_me:5665: checking for iconv" >&5 5666echo $ECHO_N "checking for iconv... $ECHO_C" >&6 5667if test "${am_cv_func_iconv+set}" = set; then 5668 echo $ECHO_N "(cached) $ECHO_C" >&6 5669else 5670 5671# If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these 5672# will be set on completion of the AC_TRY_LINK below. 5673cf_cv_header_path_iconv= 5674cf_cv_library_path_iconv= 5675 5676echo "${as_me:-configure}:5676: testing Starting FIND_LINKAGE(iconv,) ..." 1>&5 5677 5678cf_save_LIBS="$LIBS" 5679 5680cat >conftest.$ac_ext <<_ACEOF 5681#line 5681 "configure" 5682#include "confdefs.h" 5683 5684#include <stdlib.h> 5685#include <iconv.h> 5686 5687int 5688main () 5689{ 5690 5691 iconv_t cd = iconv_open("",""); 5692 iconv(cd,NULL,NULL,NULL,NULL); 5693 iconv_close(cd); 5694 5695 ; 5696 return 0; 5697} 5698_ACEOF 5699rm -f conftest.$ac_objext conftest$ac_exeext 5700if { (eval echo "$as_me:5700: \"$ac_link\"") >&5 5701 (eval $ac_link) 2>&5 5702 ac_status=$? 5703 echo "$as_me:5703: \$? = $ac_status" >&5 5704 (exit $ac_status); } && 5705 { ac_try='test -s conftest$ac_exeext' 5706 { (eval echo "$as_me:5706: \"$ac_try\"") >&5 5707 (eval $ac_try) 2>&5 5708 ac_status=$? 5709 echo "$as_me:5709: \$? = $ac_status" >&5 5710 (exit $ac_status); }; }; then 5711 5712 cf_cv_find_linkage_iconv=yes 5713 cf_cv_header_path_iconv=/usr/include 5714 cf_cv_library_path_iconv=/usr/lib 5715 5716else 5717 echo "$as_me: failed program was:" >&5 5718cat conftest.$ac_ext >&5 5719 5720LIBS="-liconv $cf_save_LIBS" 5721 5722cat >conftest.$ac_ext <<_ACEOF 5723#line 5723 "configure" 5724#include "confdefs.h" 5725 5726#include <stdlib.h> 5727#include <iconv.h> 5728 5729int 5730main () 5731{ 5732 5733 iconv_t cd = iconv_open("",""); 5734 iconv(cd,NULL,NULL,NULL,NULL); 5735 iconv_close(cd); 5736 5737 ; 5738 return 0; 5739} 5740_ACEOF 5741rm -f conftest.$ac_objext conftest$ac_exeext 5742if { (eval echo "$as_me:5742: \"$ac_link\"") >&5 5743 (eval $ac_link) 2>&5 5744 ac_status=$? 5745 echo "$as_me:5745: \$? = $ac_status" >&5 5746 (exit $ac_status); } && 5747 { ac_try='test -s conftest$ac_exeext' 5748 { (eval echo "$as_me:5748: \"$ac_try\"") >&5 5749 (eval $ac_try) 2>&5 5750 ac_status=$? 5751 echo "$as_me:5751: \$? = $ac_status" >&5 5752 (exit $ac_status); }; }; then 5753 5754 cf_cv_find_linkage_iconv=yes 5755 cf_cv_header_path_iconv=/usr/include 5756 cf_cv_library_path_iconv=/usr/lib 5757 cf_cv_library_file_iconv="-liconv" 5758 5759else 5760 echo "$as_me: failed program was:" >&5 5761cat conftest.$ac_ext >&5 5762 5763 cf_cv_find_linkage_iconv=no 5764 LIBS="$cf_save_LIBS" 5765 5766 test -n "$verbose" && echo " find linkage for iconv library" 1>&6 5767 5768echo "${as_me:-configure}:5768: testing find linkage for iconv library ..." 1>&5 5769 5770echo "${as_me:-configure}:5770: testing Searching for headers in FIND_LINKAGE(iconv,) ..." 1>&5 5771 5772 cf_save_CPPFLAGS="$CPPFLAGS" 5773 cf_test_CPPFLAGS="$CPPFLAGS" 5774 5775cf_search= 5776 5777# collect the current set of include-directories from compiler flags 5778cf_header_path_list="" 5779if test -n "${CFLAGS}${CPPFLAGS}" ; then 5780 for cf_header_path in $CPPFLAGS $CFLAGS 5781 do 5782 case $cf_header_path in #(vi 5783 -I*) 5784 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'` 5785 5786test "$cf_header_path" != "NONE" && \ 5787test -d "$cf_header_path" && \ 5788 { 5789 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path" 5790 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include" 5791 test -d $cf_header_path/include/iconv && cf_search="$cf_search $cf_header_path/include/iconv" 5792 test -d $cf_header_path/include/iconv/include && cf_search="$cf_search $cf_header_path/include/iconv/include" 5793 test -d $cf_header_path/iconv/include && cf_search="$cf_search $cf_header_path/iconv/include" 5794 test -d $cf_header_path/iconv/include/iconv && cf_search="$cf_search $cf_header_path/iconv/include/iconv" 5795} 5796 5797 cf_header_path_list="$cf_header_path_list $cf_search" 5798 ;; 5799 esac 5800 done 5801fi 5802 5803# add the variations for the package we are looking for 5804 5805cf_search= 5806 5807test "/usr" != "$prefix" && \ 5808test -d "/usr" && \ 5809(test $prefix = NONE || test "/usr" != "$prefix") && { 5810 test -n "$verbose" && echo " ... testing for include-directories under /usr" 5811 test -d /usr/include && cf_search="$cf_search /usr/include" 5812 test -d /usr/include/iconv && cf_search="$cf_search /usr/include/iconv" 5813 test -d /usr/include/iconv/include && cf_search="$cf_search /usr/include/iconv/include" 5814 test -d /usr/iconv/include && cf_search="$cf_search /usr/iconv/include" 5815 test -d /usr/iconv/include/iconv && cf_search="$cf_search /usr/iconv/include/iconv" 5816} 5817 5818test "$prefix" != "NONE" && \ 5819test -d "$prefix" && \ 5820 { 5821 test -n "$verbose" && echo " ... testing for include-directories under $prefix" 5822 test -d $prefix/include && cf_search="$cf_search $prefix/include" 5823 test -d $prefix/include/iconv && cf_search="$cf_search $prefix/include/iconv" 5824 test -d $prefix/include/iconv/include && cf_search="$cf_search $prefix/include/iconv/include" 5825 test -d $prefix/iconv/include && cf_search="$cf_search $prefix/iconv/include" 5826 test -d $prefix/iconv/include/iconv && cf_search="$cf_search $prefix/iconv/include/iconv" 5827} 5828 5829test "/usr/local" != "$prefix" && \ 5830test -d "/usr/local" && \ 5831(test $prefix = NONE || test "/usr/local" != "$prefix") && { 5832 test -n "$verbose" && echo " ... testing for include-directories under /usr/local" 5833 test -d /usr/local/include && cf_search="$cf_search /usr/local/include" 5834 test -d /usr/local/include/iconv && cf_search="$cf_search /usr/local/include/iconv" 5835 test -d /usr/local/include/iconv/include && cf_search="$cf_search /usr/local/include/iconv/include" 5836 test -d /usr/local/iconv/include && cf_search="$cf_search /usr/local/iconv/include" 5837 test -d /usr/local/iconv/include/iconv && cf_search="$cf_search /usr/local/iconv/include/iconv" 5838} 5839 5840test "/opt" != "$prefix" && \ 5841test -d "/opt" && \ 5842(test $prefix = NONE || test "/opt" != "$prefix") && { 5843 test -n "$verbose" && echo " ... testing for include-directories under /opt" 5844 test -d /opt/include && cf_search="$cf_search /opt/include" 5845 test -d /opt/include/iconv && cf_search="$cf_search /opt/include/iconv" 5846 test -d /opt/include/iconv/include && cf_search="$cf_search /opt/include/iconv/include" 5847 test -d /opt/iconv/include && cf_search="$cf_search /opt/iconv/include" 5848 test -d /opt/iconv/include/iconv && cf_search="$cf_search /opt/iconv/include/iconv" 5849} 5850 5851test "$HOME" != "$prefix" && \ 5852test -d "$HOME" && \ 5853(test $prefix = NONE || test "$HOME" != "$prefix") && { 5854 test -n "$verbose" && echo " ... testing for include-directories under $HOME" 5855 test -d $HOME/include && cf_search="$cf_search $HOME/include" 5856 test -d $HOME/include/iconv && cf_search="$cf_search $HOME/include/iconv" 5857 test -d $HOME/include/iconv/include && cf_search="$cf_search $HOME/include/iconv/include" 5858 test -d $HOME/iconv/include && cf_search="$cf_search $HOME/iconv/include" 5859 test -d $HOME/iconv/include/iconv && cf_search="$cf_search $HOME/iconv/include/iconv" 5860} 5861 5862test "$includedir" != NONE && \ 5863test "$includedir" != "/usr/include" && \ 5864test -d "$includedir" && { 5865 test -d $includedir && cf_search="$cf_search $includedir" 5866 test -d $includedir/iconv && cf_search="$cf_search $includedir/iconv" 5867} 5868 5869test "$oldincludedir" != NONE && \ 5870test "$oldincludedir" != "/usr/include" && \ 5871test -d "$oldincludedir" && { 5872 test -d $oldincludedir && cf_search="$cf_search $oldincludedir" 5873 test -d $oldincludedir/iconv && cf_search="$cf_search $oldincludedir/iconv" 5874} 5875 5876cf_search="$cf_search $cf_header_path_list" 5877 5878 for cf_cv_header_path_iconv in $cf_search 5879 do 5880 if test -d $cf_cv_header_path_iconv ; then 5881 test -n "$verbose" && echo " ... testing $cf_cv_header_path_iconv" 1>&6 5882 5883echo "${as_me:-configure}:5883: testing ... testing $cf_cv_header_path_iconv ..." 1>&5 5884 5885 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_iconv" 5886 cat >conftest.$ac_ext <<_ACEOF 5887#line 5887 "configure" 5888#include "confdefs.h" 5889 5890#include <stdlib.h> 5891#include <iconv.h> 5892 5893int 5894main () 5895{ 5896 5897 iconv_t cd = iconv_open("",""); 5898 iconv(cd,NULL,NULL,NULL,NULL); 5899 iconv_close(cd); 5900 5901 ; 5902 return 0; 5903} 5904_ACEOF 5905rm -f conftest.$ac_objext 5906if { (eval echo "$as_me:5906: \"$ac_compile\"") >&5 5907 (eval $ac_compile) 2>&5 5908 ac_status=$? 5909 echo "$as_me:5909: \$? = $ac_status" >&5 5910 (exit $ac_status); } && 5911 { ac_try='test -s conftest.$ac_objext' 5912 { (eval echo "$as_me:5912: \"$ac_try\"") >&5 5913 (eval $ac_try) 2>&5 5914 ac_status=$? 5915 echo "$as_me:5915: \$? = $ac_status" >&5 5916 (exit $ac_status); }; }; then 5917 5918 test -n "$verbose" && echo " ... found iconv headers in $cf_cv_header_path_iconv" 1>&6 5919 5920echo "${as_me:-configure}:5920: testing ... found iconv headers in $cf_cv_header_path_iconv ..." 1>&5 5921 5922 cf_cv_find_linkage_iconv=maybe 5923 cf_test_CPPFLAGS="$CPPFLAGS" 5924 break 5925else 5926 echo "$as_me: failed program was:" >&5 5927cat conftest.$ac_ext >&5 5928 5929 CPPFLAGS="$cf_save_CPPFLAGS" 5930 5931fi 5932rm -f conftest.$ac_objext conftest.$ac_ext 5933 fi 5934 done 5935 5936 if test "$cf_cv_find_linkage_iconv" = maybe ; then 5937 5938echo "${as_me:-configure}:5938: testing Searching for iconv library in FIND_LINKAGE(iconv,) ..." 1>&5 5939 5940 cf_save_LIBS="$LIBS" 5941 cf_save_LDFLAGS="$LDFLAGS" 5942 5943 if test "$cf_cv_find_linkage_iconv" != yes ; then 5944 5945cf_search= 5946cf_library_path_list="" 5947if test -n "${LDFLAGS}${LIBS}" ; then 5948 for cf_library_path in $LDFLAGS $LIBS 5949 do 5950 case $cf_library_path in #(vi 5951 -L*) 5952 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'` 5953 5954test "$cf_library_path" != "NONE" && \ 5955test -d "$cf_library_path" && \ 5956 { 5957 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path" 5958 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib" 5959 test -d $cf_library_path/lib/iconv && cf_search="$cf_search $cf_library_path/lib/iconv" 5960 test -d $cf_library_path/lib/iconv/lib && cf_search="$cf_search $cf_library_path/lib/iconv/lib" 5961 test -d $cf_library_path/iconv/lib && cf_search="$cf_search $cf_library_path/iconv/lib" 5962 test -d $cf_library_path/iconv/lib/iconv && cf_search="$cf_search $cf_library_path/iconv/lib/iconv" 5963} 5964 5965 cf_library_path_list="$cf_library_path_list $cf_search" 5966 ;; 5967 esac 5968 done 5969fi 5970 5971cf_search= 5972 5973test "/usr" != "$prefix" && \ 5974test -d "/usr" && \ 5975(test $prefix = NONE || test "/usr" != "$prefix") && { 5976 test -n "$verbose" && echo " ... testing for lib-directories under /usr" 5977 test -d /usr/lib && cf_search="$cf_search /usr/lib" 5978 test -d /usr/lib/iconv && cf_search="$cf_search /usr/lib/iconv" 5979 test -d /usr/lib/iconv/lib && cf_search="$cf_search /usr/lib/iconv/lib" 5980 test -d /usr/iconv/lib && cf_search="$cf_search /usr/iconv/lib" 5981 test -d /usr/iconv/lib/iconv && cf_search="$cf_search /usr/iconv/lib/iconv" 5982} 5983 5984test "$prefix" != "NONE" && \ 5985test -d "$prefix" && \ 5986 { 5987 test -n "$verbose" && echo " ... testing for lib-directories under $prefix" 5988 test -d $prefix/lib && cf_search="$cf_search $prefix/lib" 5989 test -d $prefix/lib/iconv && cf_search="$cf_search $prefix/lib/iconv" 5990 test -d $prefix/lib/iconv/lib && cf_search="$cf_search $prefix/lib/iconv/lib" 5991 test -d $prefix/iconv/lib && cf_search="$cf_search $prefix/iconv/lib" 5992 test -d $prefix/iconv/lib/iconv && cf_search="$cf_search $prefix/iconv/lib/iconv" 5993} 5994 5995test "/usr/local" != "$prefix" && \ 5996test -d "/usr/local" && \ 5997(test $prefix = NONE || test "/usr/local" != "$prefix") && { 5998 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local" 5999 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib" 6000 test -d /usr/local/lib/iconv && cf_search="$cf_search /usr/local/lib/iconv" 6001 test -d /usr/local/lib/iconv/lib && cf_search="$cf_search /usr/local/lib/iconv/lib" 6002 test -d /usr/local/iconv/lib && cf_search="$cf_search /usr/local/iconv/lib" 6003 test -d /usr/local/iconv/lib/iconv && cf_search="$cf_search /usr/local/iconv/lib/iconv" 6004} 6005 6006test "/opt" != "$prefix" && \ 6007test -d "/opt" && \ 6008(test $prefix = NONE || test "/opt" != "$prefix") && { 6009 test -n "$verbose" && echo " ... testing for lib-directories under /opt" 6010 test -d /opt/lib && cf_search="$cf_search /opt/lib" 6011 test -d /opt/lib/iconv && cf_search="$cf_search /opt/lib/iconv" 6012 test -d /opt/lib/iconv/lib && cf_search="$cf_search /opt/lib/iconv/lib" 6013 test -d /opt/iconv/lib && cf_search="$cf_search /opt/iconv/lib" 6014 test -d /opt/iconv/lib/iconv && cf_search="$cf_search /opt/iconv/lib/iconv" 6015} 6016 6017test "$HOME" != "$prefix" && \ 6018test -d "$HOME" && \ 6019(test $prefix = NONE || test "$HOME" != "$prefix") && { 6020 test -n "$verbose" && echo " ... testing for lib-directories under $HOME" 6021 test -d $HOME/lib && cf_search="$cf_search $HOME/lib" 6022 test -d $HOME/lib/iconv && cf_search="$cf_search $HOME/lib/iconv" 6023 test -d $HOME/lib/iconv/lib && cf_search="$cf_search $HOME/lib/iconv/lib" 6024 test -d $HOME/iconv/lib && cf_search="$cf_search $HOME/iconv/lib" 6025 test -d $HOME/iconv/lib/iconv && cf_search="$cf_search $HOME/iconv/lib/iconv" 6026} 6027 6028cf_search="$cf_library_path_list $cf_search" 6029 6030 for cf_cv_library_path_iconv in $cf_search 6031 do 6032 if test -d $cf_cv_library_path_iconv ; then 6033 test -n "$verbose" && echo " ... testing $cf_cv_library_path_iconv" 1>&6 6034 6035echo "${as_me:-configure}:6035: testing ... testing $cf_cv_library_path_iconv ..." 1>&5 6036 6037 CPPFLAGS="$cf_test_CPPFLAGS" 6038 LIBS="-liconv $cf_save_LIBS" 6039 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_iconv" 6040 cat >conftest.$ac_ext <<_ACEOF 6041#line 6041 "configure" 6042#include "confdefs.h" 6043 6044#include <stdlib.h> 6045#include <iconv.h> 6046 6047int 6048main () 6049{ 6050 6051 iconv_t cd = iconv_open("",""); 6052 iconv(cd,NULL,NULL,NULL,NULL); 6053 iconv_close(cd); 6054 6055 ; 6056 return 0; 6057} 6058_ACEOF 6059rm -f conftest.$ac_objext conftest$ac_exeext 6060if { (eval echo "$as_me:6060: \"$ac_link\"") >&5 6061 (eval $ac_link) 2>&5 6062 ac_status=$? 6063 echo "$as_me:6063: \$? = $ac_status" >&5 6064 (exit $ac_status); } && 6065 { ac_try='test -s conftest$ac_exeext' 6066 { (eval echo "$as_me:6066: \"$ac_try\"") >&5 6067 (eval $ac_try) 2>&5 6068 ac_status=$? 6069 echo "$as_me:6069: \$? = $ac_status" >&5 6070 (exit $ac_status); }; }; then 6071 6072 test -n "$verbose" && echo " ... found iconv library in $cf_cv_library_path_iconv" 1>&6 6073 6074echo "${as_me:-configure}:6074: testing ... found iconv library in $cf_cv_library_path_iconv ..." 1>&5 6075 6076 cf_cv_find_linkage_iconv=yes 6077 cf_cv_library_file_iconv="-liconv" 6078 break 6079else 6080 echo "$as_me: failed program was:" >&5 6081cat conftest.$ac_ext >&5 6082 6083 CPPFLAGS="$cf_save_CPPFLAGS" 6084 LIBS="$cf_save_LIBS" 6085 LDFLAGS="$cf_save_LDFLAGS" 6086 6087fi 6088rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6089 fi 6090 done 6091 CPPFLAGS="$cf_save_CPPFLAGS" 6092 LDFLAGS="$cf_save_LDFLAGS" 6093 fi 6094 6095 else 6096 cf_cv_find_linkage_iconv=no 6097 fi 6098 6099fi 6100rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6101 6102fi 6103rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6104 6105LIBS="$cf_save_LIBS" 6106 6107if test "$cf_cv_find_linkage_iconv" = yes ; then 6108am_cv_func_iconv=yes 6109else 6110am_cv_func_iconv="no, consider installing GNU libiconv" 6111fi 6112 6113fi 6114echo "$as_me:6114: result: $am_cv_func_iconv" >&5 6115echo "${ECHO_T}$am_cv_func_iconv" >&6 6116 6117 if test "$am_cv_func_iconv" = yes; then 6118 6119cat >>confdefs.h <<\EOF 6120#define HAVE_ICONV 1 6121EOF 6122 6123 echo "$as_me:6123: checking if the declaration of iconv() needs const." >&5 6124echo $ECHO_N "checking if the declaration of iconv() needs const.... $ECHO_C" >&6 6125if test "${am_cv_proto_iconv_const+set}" = set; then 6126 echo $ECHO_N "(cached) $ECHO_C" >&6 6127else 6128 6129 cat >conftest.$ac_ext <<_ACEOF 6130#line 6130 "configure" 6131#include "confdefs.h" 6132 6133#include <stdlib.h> 6134#include <iconv.h> 6135 6136extern 6137#ifdef __cplusplus 6138"C" 6139#endif 6140#if defined(__STDC__) || defined(__cplusplus) 6141size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 6142#else 6143size_t iconv(); 6144#endif 6145 6146int 6147main () 6148{ 6149 6150 ; 6151 return 0; 6152} 6153_ACEOF 6154rm -f conftest.$ac_objext 6155if { (eval echo "$as_me:6155: \"$ac_compile\"") >&5 6156 (eval $ac_compile) 2>&5 6157 ac_status=$? 6158 echo "$as_me:6158: \$? = $ac_status" >&5 6159 (exit $ac_status); } && 6160 { ac_try='test -s conftest.$ac_objext' 6161 { (eval echo "$as_me:6161: \"$ac_try\"") >&5 6162 (eval $ac_try) 2>&5 6163 ac_status=$? 6164 echo "$as_me:6164: \$? = $ac_status" >&5 6165 (exit $ac_status); }; }; then 6166 am_cv_proto_iconv_const=no 6167else 6168 echo "$as_me: failed program was:" >&5 6169cat conftest.$ac_ext >&5 6170am_cv_proto_iconv_const=yes 6171fi 6172rm -f conftest.$ac_objext conftest.$ac_ext 6173fi 6174echo "$as_me:6174: result: $am_cv_proto_iconv_const" >&5 6175echo "${ECHO_T}$am_cv_proto_iconv_const" >&6 6176 6177 if test "$am_cv_proto_iconv_const" = yes ; then 6178 am_cv_proto_iconv_arg1="const" 6179 else 6180 am_cv_proto_iconv_arg1="" 6181 fi 6182 6183cat >>confdefs.h <<EOF 6184#define ICONV_CONST $am_cv_proto_iconv_arg1 6185EOF 6186 6187 fi 6188 6189 LIBICONV= 6190 if test "$cf_cv_find_linkage_iconv" = yes; then 6191 6192if test -n "$cf_cv_header_path_iconv" ; then 6193 for cf_add_incdir in $cf_cv_header_path_iconv 6194 do 6195 while test $cf_add_incdir != /usr/include 6196 do 6197 if test -d $cf_add_incdir 6198 then 6199 cf_have_incdir=no 6200 if test -n "$CFLAGS$CPPFLAGS" ; then 6201 # a loop is needed to ensure we can add subdirs of existing dirs 6202 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 6203 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 6204 cf_have_incdir=yes; break 6205 fi 6206 done 6207 fi 6208 6209 if test "$cf_have_incdir" = no ; then 6210 if test "$cf_add_incdir" = /usr/local/include ; then 6211 if test "$GCC" = yes 6212 then 6213 cf_save_CPPFLAGS=$CPPFLAGS 6214 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 6215 cat >conftest.$ac_ext <<_ACEOF 6216#line 6216 "configure" 6217#include "confdefs.h" 6218#include <stdio.h> 6219int 6220main () 6221{ 6222printf("Hello") 6223 ; 6224 return 0; 6225} 6226_ACEOF 6227rm -f conftest.$ac_objext 6228if { (eval echo "$as_me:6228: \"$ac_compile\"") >&5 6229 (eval $ac_compile) 2>&5 6230 ac_status=$? 6231 echo "$as_me:6231: \$? = $ac_status" >&5 6232 (exit $ac_status); } && 6233 { ac_try='test -s conftest.$ac_objext' 6234 { (eval echo "$as_me:6234: \"$ac_try\"") >&5 6235 (eval $ac_try) 2>&5 6236 ac_status=$? 6237 echo "$as_me:6237: \$? = $ac_status" >&5 6238 (exit $ac_status); }; }; then 6239 : 6240else 6241 echo "$as_me: failed program was:" >&5 6242cat conftest.$ac_ext >&5 6243cf_have_incdir=yes 6244fi 6245rm -f conftest.$ac_objext conftest.$ac_ext 6246 CPPFLAGS=$cf_save_CPPFLAGS 6247 fi 6248 fi 6249 fi 6250 6251 if test "$cf_have_incdir" = no ; then 6252 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 6253 6254echo "${as_me:-configure}:6254: testing adding $cf_add_incdir to include-path ..." 1>&5 6255 6256 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 6257 6258 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 6259 test "$cf_top_incdir" = "$cf_add_incdir" && break 6260 cf_add_incdir="$cf_top_incdir" 6261 else 6262 break 6263 fi 6264 fi 6265 done 6266 done 6267fi 6268 6269 if test -n "$cf_cv_library_file_iconv" ; then 6270 LIBICONV="-liconv" 6271 6272if test -n "$cf_cv_library_path_iconv" ; then 6273 for cf_add_libdir in $cf_cv_library_path_iconv 6274 do 6275 if test $cf_add_libdir = /usr/lib ; then 6276 : 6277 elif test -d $cf_add_libdir 6278 then 6279 cf_have_libdir=no 6280 if test -n "$LDFLAGS$LIBS" ; then 6281 # a loop is needed to ensure we can add subdirs of existing dirs 6282 for cf_test_libdir in $LDFLAGS $LIBS ; do 6283 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 6284 cf_have_libdir=yes; break 6285 fi 6286 done 6287 fi 6288 if test "$cf_have_libdir" = no ; then 6289 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 6290 6291echo "${as_me:-configure}:6291: testing adding $cf_add_libdir to library-path ..." 1>&5 6292 6293 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 6294 fi 6295 fi 6296 done 6297fi 6298 6299 fi 6300 fi 6301 6302 echo "$as_me:6302: checking for nl_langinfo and CODESET" >&5 6303echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 6304if test "${am_cv_langinfo_codeset+set}" = set; then 6305 echo $ECHO_N "(cached) $ECHO_C" >&6 6306else 6307 cat >conftest.$ac_ext <<_ACEOF 6308#line 6308 "configure" 6309#include "confdefs.h" 6310#include <langinfo.h> 6311int 6312main () 6313{ 6314char* cs = nl_langinfo(CODESET); 6315 ; 6316 return 0; 6317} 6318_ACEOF 6319rm -f conftest.$ac_objext conftest$ac_exeext 6320if { (eval echo "$as_me:6320: \"$ac_link\"") >&5 6321 (eval $ac_link) 2>&5 6322 ac_status=$? 6323 echo "$as_me:6323: \$? = $ac_status" >&5 6324 (exit $ac_status); } && 6325 { ac_try='test -s conftest$ac_exeext' 6326 { (eval echo "$as_me:6326: \"$ac_try\"") >&5 6327 (eval $ac_try) 2>&5 6328 ac_status=$? 6329 echo "$as_me:6329: \$? = $ac_status" >&5 6330 (exit $ac_status); }; }; then 6331 am_cv_langinfo_codeset=yes 6332else 6333 echo "$as_me: failed program was:" >&5 6334cat conftest.$ac_ext >&5 6335am_cv_langinfo_codeset=no 6336fi 6337rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6338 6339fi 6340echo "$as_me:6340: result: $am_cv_langinfo_codeset" >&5 6341echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 6342 if test $am_cv_langinfo_codeset = yes; then 6343 6344cat >>confdefs.h <<\EOF 6345#define HAVE_LANGINFO_CODESET 1 6346EOF 6347 6348 fi 6349 6350 if test $ac_cv_header_locale_h = yes; then 6351 echo "$as_me:6351: checking for LC_MESSAGES" >&5 6352echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 6353if test "${am_cv_val_LC_MESSAGES+set}" = set; then 6354 echo $ECHO_N "(cached) $ECHO_C" >&6 6355else 6356 cat >conftest.$ac_ext <<_ACEOF 6357#line 6357 "configure" 6358#include "confdefs.h" 6359#include <locale.h> 6360int 6361main () 6362{ 6363return LC_MESSAGES 6364 ; 6365 return 0; 6366} 6367_ACEOF 6368rm -f conftest.$ac_objext conftest$ac_exeext 6369if { (eval echo "$as_me:6369: \"$ac_link\"") >&5 6370 (eval $ac_link) 2>&5 6371 ac_status=$? 6372 echo "$as_me:6372: \$? = $ac_status" >&5 6373 (exit $ac_status); } && 6374 { ac_try='test -s conftest$ac_exeext' 6375 { (eval echo "$as_me:6375: \"$ac_try\"") >&5 6376 (eval $ac_try) 2>&5 6377 ac_status=$? 6378 echo "$as_me:6378: \$? = $ac_status" >&5 6379 (exit $ac_status); }; }; then 6380 am_cv_val_LC_MESSAGES=yes 6381else 6382 echo "$as_me: failed program was:" >&5 6383cat conftest.$ac_ext >&5 6384am_cv_val_LC_MESSAGES=no 6385fi 6386rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6387fi 6388echo "$as_me:6388: result: $am_cv_val_LC_MESSAGES" >&5 6389echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 6390 if test $am_cv_val_LC_MESSAGES = yes; then 6391 6392cat >>confdefs.h <<\EOF 6393#define HAVE_LC_MESSAGES 1 6394EOF 6395 6396 fi 6397 fi 6398 echo "$as_me:6398: checking whether NLS is requested" >&5 6399echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 6400 6401# Check whether --enable-nls or --disable-nls was given. 6402if test "${enable_nls+set}" = set; then 6403 enableval="$enable_nls" 6404 USE_NLS=$enableval 6405else 6406 USE_NLS=no 6407fi; 6408 echo "$as_me:6408: result: $USE_NLS" >&5 6409echo "${ECHO_T}$USE_NLS" >&6 6410 6411 BUILD_INCLUDED_LIBINTL=no 6412 USE_INCLUDED_LIBINTL=no 6413 INTLLIBS= 6414 6415 if test "$USE_NLS" = "yes"; then 6416 6417cat >>confdefs.h <<\EOF 6418#define ENABLE_NLS 1 6419EOF 6420 6421 echo "$as_me:6421: checking whether included gettext is requested" >&5 6422echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 6423 6424# Check whether --with-included-gettext or --without-included-gettext was given. 6425if test "${with_included_gettext+set}" = set; then 6426 withval="$with_included_gettext" 6427 nls_cv_force_use_gnu_gettext=$withval 6428else 6429 nls_cv_force_use_gnu_gettext=no 6430fi; 6431 echo "$as_me:6431: result: $nls_cv_force_use_gnu_gettext" >&5 6432echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 6433 6434 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 6435 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 6436 CATOBJEXT=NONE 6437 6438 cf_save_LIBS_1="$LIBS" 6439 LIBS="$LIBICONV $LIBS" 6440 echo "$as_me:6440: checking for libintl.h and gettext()" >&5 6441echo $ECHO_N "checking for libintl.h and gettext()... $ECHO_C" >&6 6442if test "${cf_cv_func_gettext+set}" = set; then 6443 echo $ECHO_N "(cached) $ECHO_C" >&6 6444else 6445 6446# If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these 6447# will be set on completion of the AC_TRY_LINK below. 6448cf_cv_header_path_intl= 6449cf_cv_library_path_intl= 6450 6451echo "${as_me:-configure}:6451: testing Starting FIND_LINKAGE(intl,) ..." 1>&5 6452 6453cf_save_LIBS="$LIBS" 6454 6455cat >conftest.$ac_ext <<_ACEOF 6456#line 6456 "configure" 6457#include "confdefs.h" 6458 6459#include <libintl.h> 6460extern int _nl_msg_cat_cntr; 6461 6462int 6463main () 6464{ 6465 6466 bindtextdomain ("", ""); 6467 return (int) gettext ("") 6468 6469 + _nl_msg_cat_cntr 6470 6471 ; 6472 return 0; 6473} 6474_ACEOF 6475rm -f conftest.$ac_objext conftest$ac_exeext 6476if { (eval echo "$as_me:6476: \"$ac_link\"") >&5 6477 (eval $ac_link) 2>&5 6478 ac_status=$? 6479 echo "$as_me:6479: \$? = $ac_status" >&5 6480 (exit $ac_status); } && 6481 { ac_try='test -s conftest$ac_exeext' 6482 { (eval echo "$as_me:6482: \"$ac_try\"") >&5 6483 (eval $ac_try) 2>&5 6484 ac_status=$? 6485 echo "$as_me:6485: \$? = $ac_status" >&5 6486 (exit $ac_status); }; }; then 6487 6488 cf_cv_find_linkage_intl=yes 6489 cf_cv_header_path_intl=/usr/include 6490 cf_cv_library_path_intl=/usr/lib 6491 6492else 6493 echo "$as_me: failed program was:" >&5 6494cat conftest.$ac_ext >&5 6495 6496LIBS="-lintl $cf_save_LIBS" 6497 6498cat >conftest.$ac_ext <<_ACEOF 6499#line 6499 "configure" 6500#include "confdefs.h" 6501 6502#include <libintl.h> 6503extern int _nl_msg_cat_cntr; 6504 6505int 6506main () 6507{ 6508 6509 bindtextdomain ("", ""); 6510 return (int) gettext ("") 6511 6512 + _nl_msg_cat_cntr 6513 6514 ; 6515 return 0; 6516} 6517_ACEOF 6518rm -f conftest.$ac_objext conftest$ac_exeext 6519if { (eval echo "$as_me:6519: \"$ac_link\"") >&5 6520 (eval $ac_link) 2>&5 6521 ac_status=$? 6522 echo "$as_me:6522: \$? = $ac_status" >&5 6523 (exit $ac_status); } && 6524 { ac_try='test -s conftest$ac_exeext' 6525 { (eval echo "$as_me:6525: \"$ac_try\"") >&5 6526 (eval $ac_try) 2>&5 6527 ac_status=$? 6528 echo "$as_me:6528: \$? = $ac_status" >&5 6529 (exit $ac_status); }; }; then 6530 6531 cf_cv_find_linkage_intl=yes 6532 cf_cv_header_path_intl=/usr/include 6533 cf_cv_library_path_intl=/usr/lib 6534 cf_cv_library_file_intl="-lintl" 6535 6536else 6537 echo "$as_me: failed program was:" >&5 6538cat conftest.$ac_ext >&5 6539 6540 cf_cv_find_linkage_intl=no 6541 LIBS="$cf_save_LIBS" 6542 6543 test -n "$verbose" && echo " find linkage for intl library" 1>&6 6544 6545echo "${as_me:-configure}:6545: testing find linkage for intl library ..." 1>&5 6546 6547echo "${as_me:-configure}:6547: testing Searching for headers in FIND_LINKAGE(intl,) ..." 1>&5 6548 6549 cf_save_CPPFLAGS="$CPPFLAGS" 6550 cf_test_CPPFLAGS="$CPPFLAGS" 6551 6552cf_search= 6553 6554# collect the current set of include-directories from compiler flags 6555cf_header_path_list="" 6556if test -n "${CFLAGS}${CPPFLAGS}" ; then 6557 for cf_header_path in $CPPFLAGS $CFLAGS 6558 do 6559 case $cf_header_path in #(vi 6560 -I*) 6561 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'` 6562 6563test "$cf_header_path" != "NONE" && \ 6564test -d "$cf_header_path" && \ 6565 { 6566 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path" 6567 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include" 6568 test -d $cf_header_path/include/intl && cf_search="$cf_search $cf_header_path/include/intl" 6569 test -d $cf_header_path/include/intl/include && cf_search="$cf_search $cf_header_path/include/intl/include" 6570 test -d $cf_header_path/intl/include && cf_search="$cf_search $cf_header_path/intl/include" 6571 test -d $cf_header_path/intl/include/intl && cf_search="$cf_search $cf_header_path/intl/include/intl" 6572} 6573 6574 cf_header_path_list="$cf_header_path_list $cf_search" 6575 ;; 6576 esac 6577 done 6578fi 6579 6580# add the variations for the package we are looking for 6581 6582cf_search= 6583 6584test "/usr" != "$prefix" && \ 6585test -d "/usr" && \ 6586(test $prefix = NONE || test "/usr" != "$prefix") && { 6587 test -n "$verbose" && echo " ... testing for include-directories under /usr" 6588 test -d /usr/include && cf_search="$cf_search /usr/include" 6589 test -d /usr/include/intl && cf_search="$cf_search /usr/include/intl" 6590 test -d /usr/include/intl/include && cf_search="$cf_search /usr/include/intl/include" 6591 test -d /usr/intl/include && cf_search="$cf_search /usr/intl/include" 6592 test -d /usr/intl/include/intl && cf_search="$cf_search /usr/intl/include/intl" 6593} 6594 6595test "$prefix" != "NONE" && \ 6596test -d "$prefix" && \ 6597 { 6598 test -n "$verbose" && echo " ... testing for include-directories under $prefix" 6599 test -d $prefix/include && cf_search="$cf_search $prefix/include" 6600 test -d $prefix/include/intl && cf_search="$cf_search $prefix/include/intl" 6601 test -d $prefix/include/intl/include && cf_search="$cf_search $prefix/include/intl/include" 6602 test -d $prefix/intl/include && cf_search="$cf_search $prefix/intl/include" 6603 test -d $prefix/intl/include/intl && cf_search="$cf_search $prefix/intl/include/intl" 6604} 6605 6606test "/usr/local" != "$prefix" && \ 6607test -d "/usr/local" && \ 6608(test $prefix = NONE || test "/usr/local" != "$prefix") && { 6609 test -n "$verbose" && echo " ... testing for include-directories under /usr/local" 6610 test -d /usr/local/include && cf_search="$cf_search /usr/local/include" 6611 test -d /usr/local/include/intl && cf_search="$cf_search /usr/local/include/intl" 6612 test -d /usr/local/include/intl/include && cf_search="$cf_search /usr/local/include/intl/include" 6613 test -d /usr/local/intl/include && cf_search="$cf_search /usr/local/intl/include" 6614 test -d /usr/local/intl/include/intl && cf_search="$cf_search /usr/local/intl/include/intl" 6615} 6616 6617test "/opt" != "$prefix" && \ 6618test -d "/opt" && \ 6619(test $prefix = NONE || test "/opt" != "$prefix") && { 6620 test -n "$verbose" && echo " ... testing for include-directories under /opt" 6621 test -d /opt/include && cf_search="$cf_search /opt/include" 6622 test -d /opt/include/intl && cf_search="$cf_search /opt/include/intl" 6623 test -d /opt/include/intl/include && cf_search="$cf_search /opt/include/intl/include" 6624 test -d /opt/intl/include && cf_search="$cf_search /opt/intl/include" 6625 test -d /opt/intl/include/intl && cf_search="$cf_search /opt/intl/include/intl" 6626} 6627 6628test "$HOME" != "$prefix" && \ 6629test -d "$HOME" && \ 6630(test $prefix = NONE || test "$HOME" != "$prefix") && { 6631 test -n "$verbose" && echo " ... testing for include-directories under $HOME" 6632 test -d $HOME/include && cf_search="$cf_search $HOME/include" 6633 test -d $HOME/include/intl && cf_search="$cf_search $HOME/include/intl" 6634 test -d $HOME/include/intl/include && cf_search="$cf_search $HOME/include/intl/include" 6635 test -d $HOME/intl/include && cf_search="$cf_search $HOME/intl/include" 6636 test -d $HOME/intl/include/intl && cf_search="$cf_search $HOME/intl/include/intl" 6637} 6638 6639test "$includedir" != NONE && \ 6640test "$includedir" != "/usr/include" && \ 6641test -d "$includedir" && { 6642 test -d $includedir && cf_search="$cf_search $includedir" 6643 test -d $includedir/intl && cf_search="$cf_search $includedir/intl" 6644} 6645 6646test "$oldincludedir" != NONE && \ 6647test "$oldincludedir" != "/usr/include" && \ 6648test -d "$oldincludedir" && { 6649 test -d $oldincludedir && cf_search="$cf_search $oldincludedir" 6650 test -d $oldincludedir/intl && cf_search="$cf_search $oldincludedir/intl" 6651} 6652 6653cf_search="$cf_search $cf_header_path_list" 6654 6655 for cf_cv_header_path_intl in $cf_search 6656 do 6657 if test -d $cf_cv_header_path_intl ; then 6658 test -n "$verbose" && echo " ... testing $cf_cv_header_path_intl" 1>&6 6659 6660echo "${as_me:-configure}:6660: testing ... testing $cf_cv_header_path_intl ..." 1>&5 6661 6662 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_intl" 6663 cat >conftest.$ac_ext <<_ACEOF 6664#line 6664 "configure" 6665#include "confdefs.h" 6666 6667#include <libintl.h> 6668extern int _nl_msg_cat_cntr; 6669 6670int 6671main () 6672{ 6673 6674 bindtextdomain ("", ""); 6675 return (int) gettext ("") 6676 6677 + _nl_msg_cat_cntr 6678 6679 ; 6680 return 0; 6681} 6682_ACEOF 6683rm -f conftest.$ac_objext 6684if { (eval echo "$as_me:6684: \"$ac_compile\"") >&5 6685 (eval $ac_compile) 2>&5 6686 ac_status=$? 6687 echo "$as_me:6687: \$? = $ac_status" >&5 6688 (exit $ac_status); } && 6689 { ac_try='test -s conftest.$ac_objext' 6690 { (eval echo "$as_me:6690: \"$ac_try\"") >&5 6691 (eval $ac_try) 2>&5 6692 ac_status=$? 6693 echo "$as_me:6693: \$? = $ac_status" >&5 6694 (exit $ac_status); }; }; then 6695 6696 test -n "$verbose" && echo " ... found intl headers in $cf_cv_header_path_intl" 1>&6 6697 6698echo "${as_me:-configure}:6698: testing ... found intl headers in $cf_cv_header_path_intl ..." 1>&5 6699 6700 cf_cv_find_linkage_intl=maybe 6701 cf_test_CPPFLAGS="$CPPFLAGS" 6702 break 6703else 6704 echo "$as_me: failed program was:" >&5 6705cat conftest.$ac_ext >&5 6706 6707 CPPFLAGS="$cf_save_CPPFLAGS" 6708 6709fi 6710rm -f conftest.$ac_objext conftest.$ac_ext 6711 fi 6712 done 6713 6714 if test "$cf_cv_find_linkage_intl" = maybe ; then 6715 6716echo "${as_me:-configure}:6716: testing Searching for intl library in FIND_LINKAGE(intl,) ..." 1>&5 6717 6718 cf_save_LIBS="$LIBS" 6719 cf_save_LDFLAGS="$LDFLAGS" 6720 6721 if test "$cf_cv_find_linkage_intl" != yes ; then 6722 6723cf_search= 6724cf_library_path_list="" 6725if test -n "${LDFLAGS}${LIBS}" ; then 6726 for cf_library_path in $LDFLAGS $LIBS 6727 do 6728 case $cf_library_path in #(vi 6729 -L*) 6730 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'` 6731 6732test "$cf_library_path" != "NONE" && \ 6733test -d "$cf_library_path" && \ 6734 { 6735 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path" 6736 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib" 6737 test -d $cf_library_path/lib/intl && cf_search="$cf_search $cf_library_path/lib/intl" 6738 test -d $cf_library_path/lib/intl/lib && cf_search="$cf_search $cf_library_path/lib/intl/lib" 6739 test -d $cf_library_path/intl/lib && cf_search="$cf_search $cf_library_path/intl/lib" 6740 test -d $cf_library_path/intl/lib/intl && cf_search="$cf_search $cf_library_path/intl/lib/intl" 6741} 6742 6743 cf_library_path_list="$cf_library_path_list $cf_search" 6744 ;; 6745 esac 6746 done 6747fi 6748 6749cf_search= 6750 6751test "/usr" != "$prefix" && \ 6752test -d "/usr" && \ 6753(test $prefix = NONE || test "/usr" != "$prefix") && { 6754 test -n "$verbose" && echo " ... testing for lib-directories under /usr" 6755 test -d /usr/lib && cf_search="$cf_search /usr/lib" 6756 test -d /usr/lib/intl && cf_search="$cf_search /usr/lib/intl" 6757 test -d /usr/lib/intl/lib && cf_search="$cf_search /usr/lib/intl/lib" 6758 test -d /usr/intl/lib && cf_search="$cf_search /usr/intl/lib" 6759 test -d /usr/intl/lib/intl && cf_search="$cf_search /usr/intl/lib/intl" 6760} 6761 6762test "$prefix" != "NONE" && \ 6763test -d "$prefix" && \ 6764 { 6765 test -n "$verbose" && echo " ... testing for lib-directories under $prefix" 6766 test -d $prefix/lib && cf_search="$cf_search $prefix/lib" 6767 test -d $prefix/lib/intl && cf_search="$cf_search $prefix/lib/intl" 6768 test -d $prefix/lib/intl/lib && cf_search="$cf_search $prefix/lib/intl/lib" 6769 test -d $prefix/intl/lib && cf_search="$cf_search $prefix/intl/lib" 6770 test -d $prefix/intl/lib/intl && cf_search="$cf_search $prefix/intl/lib/intl" 6771} 6772 6773test "/usr/local" != "$prefix" && \ 6774test -d "/usr/local" && \ 6775(test $prefix = NONE || test "/usr/local" != "$prefix") && { 6776 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local" 6777 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib" 6778 test -d /usr/local/lib/intl && cf_search="$cf_search /usr/local/lib/intl" 6779 test -d /usr/local/lib/intl/lib && cf_search="$cf_search /usr/local/lib/intl/lib" 6780 test -d /usr/local/intl/lib && cf_search="$cf_search /usr/local/intl/lib" 6781 test -d /usr/local/intl/lib/intl && cf_search="$cf_search /usr/local/intl/lib/intl" 6782} 6783 6784test "/opt" != "$prefix" && \ 6785test -d "/opt" && \ 6786(test $prefix = NONE || test "/opt" != "$prefix") && { 6787 test -n "$verbose" && echo " ... testing for lib-directories under /opt" 6788 test -d /opt/lib && cf_search="$cf_search /opt/lib" 6789 test -d /opt/lib/intl && cf_search="$cf_search /opt/lib/intl" 6790 test -d /opt/lib/intl/lib && cf_search="$cf_search /opt/lib/intl/lib" 6791 test -d /opt/intl/lib && cf_search="$cf_search /opt/intl/lib" 6792 test -d /opt/intl/lib/intl && cf_search="$cf_search /opt/intl/lib/intl" 6793} 6794 6795test "$HOME" != "$prefix" && \ 6796test -d "$HOME" && \ 6797(test $prefix = NONE || test "$HOME" != "$prefix") && { 6798 test -n "$verbose" && echo " ... testing for lib-directories under $HOME" 6799 test -d $HOME/lib && cf_search="$cf_search $HOME/lib" 6800 test -d $HOME/lib/intl && cf_search="$cf_search $HOME/lib/intl" 6801 test -d $HOME/lib/intl/lib && cf_search="$cf_search $HOME/lib/intl/lib" 6802 test -d $HOME/intl/lib && cf_search="$cf_search $HOME/intl/lib" 6803 test -d $HOME/intl/lib/intl && cf_search="$cf_search $HOME/intl/lib/intl" 6804} 6805 6806cf_search="$cf_library_path_list $cf_search" 6807 6808 for cf_cv_library_path_intl in $cf_search 6809 do 6810 if test -d $cf_cv_library_path_intl ; then 6811 test -n "$verbose" && echo " ... testing $cf_cv_library_path_intl" 1>&6 6812 6813echo "${as_me:-configure}:6813: testing ... testing $cf_cv_library_path_intl ..." 1>&5 6814 6815 CPPFLAGS="$cf_test_CPPFLAGS" 6816 LIBS="-lintl $cf_save_LIBS" 6817 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_intl" 6818 cat >conftest.$ac_ext <<_ACEOF 6819#line 6819 "configure" 6820#include "confdefs.h" 6821 6822#include <libintl.h> 6823extern int _nl_msg_cat_cntr; 6824 6825int 6826main () 6827{ 6828 6829 bindtextdomain ("", ""); 6830 return (int) gettext ("") 6831 6832 + _nl_msg_cat_cntr 6833 6834 ; 6835 return 0; 6836} 6837_ACEOF 6838rm -f conftest.$ac_objext conftest$ac_exeext 6839if { (eval echo "$as_me:6839: \"$ac_link\"") >&5 6840 (eval $ac_link) 2>&5 6841 ac_status=$? 6842 echo "$as_me:6842: \$? = $ac_status" >&5 6843 (exit $ac_status); } && 6844 { ac_try='test -s conftest$ac_exeext' 6845 { (eval echo "$as_me:6845: \"$ac_try\"") >&5 6846 (eval $ac_try) 2>&5 6847 ac_status=$? 6848 echo "$as_me:6848: \$? = $ac_status" >&5 6849 (exit $ac_status); }; }; then 6850 6851 test -n "$verbose" && echo " ... found intl library in $cf_cv_library_path_intl" 1>&6 6852 6853echo "${as_me:-configure}:6853: testing ... found intl library in $cf_cv_library_path_intl ..." 1>&5 6854 6855 cf_cv_find_linkage_intl=yes 6856 cf_cv_library_file_intl="-lintl" 6857 break 6858else 6859 echo "$as_me: failed program was:" >&5 6860cat conftest.$ac_ext >&5 6861 6862 CPPFLAGS="$cf_save_CPPFLAGS" 6863 LIBS="$cf_save_LIBS" 6864 LDFLAGS="$cf_save_LDFLAGS" 6865 6866fi 6867rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6868 fi 6869 done 6870 CPPFLAGS="$cf_save_CPPFLAGS" 6871 LDFLAGS="$cf_save_LDFLAGS" 6872 fi 6873 6874 else 6875 cf_cv_find_linkage_intl=no 6876 fi 6877 6878fi 6879rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6880 6881fi 6882rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6883 6884LIBS="$cf_save_LIBS" 6885 6886if test "$cf_cv_find_linkage_intl" = yes ; then 6887cf_cv_func_gettext=yes 6888else 6889cf_cv_func_gettext=no 6890fi 6891 6892fi 6893echo "$as_me:6893: result: $cf_cv_func_gettext" >&5 6894echo "${ECHO_T}$cf_cv_func_gettext" >&6 6895 LIBS="$cf_save_LIBS_1" 6896 6897 if test "$cf_cv_func_gettext" = yes ; then 6898 cat >>confdefs.h <<\EOF 6899#define HAVE_LIBINTL_H 1 6900EOF 6901 6902 if test "$PACKAGE" != gettext; then 6903 6904cat >>confdefs.h <<\EOF 6905#define HAVE_GETTEXT 1 6906EOF 6907 6908if test -n "$cf_cv_header_path_intl" ; then 6909 for cf_add_incdir in $cf_cv_header_path_intl 6910 do 6911 while test $cf_add_incdir != /usr/include 6912 do 6913 if test -d $cf_add_incdir 6914 then 6915 cf_have_incdir=no 6916 if test -n "$CFLAGS$CPPFLAGS" ; then 6917 # a loop is needed to ensure we can add subdirs of existing dirs 6918 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 6919 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 6920 cf_have_incdir=yes; break 6921 fi 6922 done 6923 fi 6924 6925 if test "$cf_have_incdir" = no ; then 6926 if test "$cf_add_incdir" = /usr/local/include ; then 6927 if test "$GCC" = yes 6928 then 6929 cf_save_CPPFLAGS=$CPPFLAGS 6930 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 6931 cat >conftest.$ac_ext <<_ACEOF 6932#line 6932 "configure" 6933#include "confdefs.h" 6934#include <stdio.h> 6935int 6936main () 6937{ 6938printf("Hello") 6939 ; 6940 return 0; 6941} 6942_ACEOF 6943rm -f conftest.$ac_objext 6944if { (eval echo "$as_me:6944: \"$ac_compile\"") >&5 6945 (eval $ac_compile) 2>&5 6946 ac_status=$? 6947 echo "$as_me:6947: \$? = $ac_status" >&5 6948 (exit $ac_status); } && 6949 { ac_try='test -s conftest.$ac_objext' 6950 { (eval echo "$as_me:6950: \"$ac_try\"") >&5 6951 (eval $ac_try) 2>&5 6952 ac_status=$? 6953 echo "$as_me:6953: \$? = $ac_status" >&5 6954 (exit $ac_status); }; }; then 6955 : 6956else 6957 echo "$as_me: failed program was:" >&5 6958cat conftest.$ac_ext >&5 6959cf_have_incdir=yes 6960fi 6961rm -f conftest.$ac_objext conftest.$ac_ext 6962 CPPFLAGS=$cf_save_CPPFLAGS 6963 fi 6964 fi 6965 fi 6966 6967 if test "$cf_have_incdir" = no ; then 6968 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 6969 6970echo "${as_me:-configure}:6970: testing adding $cf_add_incdir to include-path ..." 1>&5 6971 6972 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 6973 6974 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 6975 test "$cf_top_incdir" = "$cf_add_incdir" && break 6976 cf_add_incdir="$cf_top_incdir" 6977 else 6978 break 6979 fi 6980 fi 6981 done 6982 done 6983fi 6984 6985 if test -n "$cf_cv_library_file_intl" ; then 6986 INTLLIBS="$cf_cv_library_file_intl $LIBICONV" 6987 6988if test -n "$cf_cv_library_path_intl" ; then 6989 for cf_add_libdir in $cf_cv_library_path_intl 6990 do 6991 if test $cf_add_libdir = /usr/lib ; then 6992 : 6993 elif test -d $cf_add_libdir 6994 then 6995 cf_have_libdir=no 6996 if test -n "$LDFLAGS$LIBS" ; then 6997 # a loop is needed to ensure we can add subdirs of existing dirs 6998 for cf_test_libdir in $LDFLAGS $LIBS ; do 6999 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 7000 cf_have_libdir=yes; break 7001 fi 7002 done 7003 fi 7004 if test "$cf_have_libdir" = no ; then 7005 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 7006 7007echo "${as_me:-configure}:7007: testing adding $cf_add_libdir to library-path ..." 1>&5 7008 7009 INTLLIBS="-L$cf_add_libdir $INTLLIBS" 7010 fi 7011 fi 7012 done 7013fi 7014 7015 fi 7016 7017 gt_save_LIBS="$LIBS" 7018 LIBS="$LIBS $INTLLIBS" 7019 7020for ac_func in dcgettext 7021do 7022as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7023echo "$as_me:7023: checking for $ac_func" >&5 7024echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7025if eval "test \"\${$as_ac_var+set}\" = set"; then 7026 echo $ECHO_N "(cached) $ECHO_C" >&6 7027else 7028 cat >conftest.$ac_ext <<_ACEOF 7029#line 7029 "configure" 7030#include "confdefs.h" 7031/* System header to define __stub macros and hopefully few prototypes, 7032 which can conflict with char $ac_func (); below. */ 7033#include <assert.h> 7034/* Override any gcc2 internal prototype to avoid an error. */ 7035#ifdef __cplusplus 7036extern "C" 7037#endif 7038/* We use char because int might match the return type of a gcc2 7039 builtin and then its argument prototype would still apply. */ 7040char $ac_func (); 7041char (*f) (); 7042 7043int 7044main () 7045{ 7046/* The GNU C library defines this for functions which it implements 7047 to always fail with ENOSYS. Some functions are actually named 7048 something starting with __ and the normal name is an alias. */ 7049#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7050choke me 7051#else 7052f = $ac_func; 7053#endif 7054 7055 ; 7056 return 0; 7057} 7058_ACEOF 7059rm -f conftest.$ac_objext conftest$ac_exeext 7060if { (eval echo "$as_me:7060: \"$ac_link\"") >&5 7061 (eval $ac_link) 2>&5 7062 ac_status=$? 7063 echo "$as_me:7063: \$? = $ac_status" >&5 7064 (exit $ac_status); } && 7065 { ac_try='test -s conftest$ac_exeext' 7066 { (eval echo "$as_me:7066: \"$ac_try\"") >&5 7067 (eval $ac_try) 2>&5 7068 ac_status=$? 7069 echo "$as_me:7069: \$? = $ac_status" >&5 7070 (exit $ac_status); }; }; then 7071 eval "$as_ac_var=yes" 7072else 7073 echo "$as_me: failed program was:" >&5 7074cat conftest.$ac_ext >&5 7075eval "$as_ac_var=no" 7076fi 7077rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7078fi 7079echo "$as_me:7079: result: `eval echo '${'$as_ac_var'}'`" >&5 7080echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7081if test `eval echo '${'$as_ac_var'}'` = yes; then 7082 cat >>confdefs.h <<EOF 7083#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7084EOF 7085 7086fi 7087done 7088 7089 LIBS="$gt_save_LIBS" 7090 7091 # Extract the first word of "msgfmt", so it can be a program name with args. 7092 7093set dummy msgfmt; ac_word=$2 7094echo "$as_me:7094: checking for $ac_word" >&5 7095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7096if test "${ac_cv_path_MSGFMT+set}" = set; then 7097 echo $ECHO_N "(cached) $ECHO_C" >&6 7098else 7099 case "$MSGFMT" in 7100 [\\/]*|?:[\\/]*) 7101 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 7102 ;; 7103 *) 7104 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" 7105 for ac_dir in $PATH; do 7106 test -z "$ac_dir" && ac_dir=. 7107 if test -f $ac_dir/$ac_word$ac_exeext; then 7108 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then 7109 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exeext" 7110 break 7111 fi 7112 fi 7113 done 7114 IFS="$ac_save_ifs" 7115 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 7116 ;; 7117esac 7118fi 7119MSGFMT="$ac_cv_path_MSGFMT" 7120if test "$MSGFMT" != ":"; then 7121 echo "$as_me:7121: result: $MSGFMT" >&5 7122echo "${ECHO_T}$MSGFMT" >&6 7123else 7124 echo "$as_me:7124: result: no" >&5 7125echo "${ECHO_T}no" >&6 7126fi 7127 7128 # Extract the first word of "gmsgfmt", so it can be a program name with args. 7129set dummy gmsgfmt; ac_word=$2 7130echo "$as_me:7130: checking for $ac_word" >&5 7131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7132if test "${ac_cv_path_GMSGFMT+set}" = set; then 7133 echo $ECHO_N "(cached) $ECHO_C" >&6 7134else 7135 case $GMSGFMT in 7136 [\\/]* | ?:[\\/]*) 7137 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 7138 ;; 7139 *) 7140 ac_save_IFS=$IFS; IFS=$ac_path_separator 7141ac_dummy="$PATH" 7142for ac_dir in $ac_dummy; do 7143 IFS=$ac_save_IFS 7144 test -z "$ac_dir" && ac_dir=. 7145 if $as_executable_p "$ac_dir/$ac_word"; then 7146 ac_cv_path_GMSGFMT="$ac_dir/$ac_word" 7147 echo "$as_me:7147: found $ac_dir/$ac_word" >&5 7148 break 7149fi 7150done 7151 7152 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 7153 ;; 7154esac 7155fi 7156GMSGFMT=$ac_cv_path_GMSGFMT 7157 7158if test -n "$GMSGFMT"; then 7159 echo "$as_me:7159: result: $GMSGFMT" >&5 7160echo "${ECHO_T}$GMSGFMT" >&6 7161else 7162 echo "$as_me:7162: result: no" >&5 7163echo "${ECHO_T}no" >&6 7164fi 7165 7166 # Extract the first word of "xgettext", so it can be a program name with args. 7167 7168set dummy xgettext; ac_word=$2 7169echo "$as_me:7169: checking for $ac_word" >&5 7170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7171if test "${ac_cv_path_XGETTEXT+set}" = set; then 7172 echo $ECHO_N "(cached) $ECHO_C" >&6 7173else 7174 case "$XGETTEXT" in 7175 [\\/]*|?:[\\/]*) 7176 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 7177 ;; 7178 *) 7179 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" 7180 for ac_dir in $PATH; do 7181 test -z "$ac_dir" && ac_dir=. 7182 if test -f $ac_dir/$ac_word$ac_exeext; then 7183 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then 7184 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exeext" 7185 break 7186 fi 7187 fi 7188 done 7189 IFS="$ac_save_ifs" 7190 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 7191 ;; 7192esac 7193fi 7194XGETTEXT="$ac_cv_path_XGETTEXT" 7195if test "$XGETTEXT" != ":"; then 7196 echo "$as_me:7196: result: $XGETTEXT" >&5 7197echo "${ECHO_T}$XGETTEXT" >&6 7198else 7199 echo "$as_me:7199: result: no" >&5 7200echo "${ECHO_T}no" >&6 7201fi 7202 7203 CATOBJEXT=.gmo 7204 fi 7205 fi 7206 7207 if test "$CATOBJEXT" = "NONE"; then 7208 nls_cv_use_gnu_gettext=yes 7209 fi 7210 fi 7211 7212 if test "$nls_cv_use_gnu_gettext" = "yes"; then 7213 if test ! -d $srcdir/intl ; then 7214 { { echo "$as_me:7214: error: no NLS library is packaged with this application" >&5 7215echo "$as_me: error: no NLS library is packaged with this application" >&2;} 7216 { (exit 1); exit 1; }; } 7217 fi 7218 INTLOBJS="\$(GETTOBJS)" 7219 # Extract the first word of "msgfmt", so it can be a program name with args. 7220 7221set dummy msgfmt; ac_word=$2 7222echo "$as_me:7222: checking for $ac_word" >&5 7223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7224if test "${ac_cv_path_MSGFMT+set}" = set; then 7225 echo $ECHO_N "(cached) $ECHO_C" >&6 7226else 7227 case "$MSGFMT" in 7228 [\\/]*|?:[\\/]*) 7229 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 7230 ;; 7231 *) 7232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" 7233 for ac_dir in $PATH; do 7234 test -z "$ac_dir" && ac_dir=. 7235 if test -f $ac_dir/$ac_word$ac_exeext; then 7236 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then 7237 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exeext" 7238 break 7239 fi 7240 fi 7241 done 7242 IFS="$ac_save_ifs" 7243 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 7244 ;; 7245esac 7246fi 7247MSGFMT="$ac_cv_path_MSGFMT" 7248if test "$MSGFMT" != ":"; then 7249 echo "$as_me:7249: result: $MSGFMT" >&5 7250echo "${ECHO_T}$MSGFMT" >&6 7251else 7252 echo "$as_me:7252: result: no" >&5 7253echo "${ECHO_T}no" >&6 7254fi 7255 7256 # Extract the first word of "gmsgfmt", so it can be a program name with args. 7257set dummy gmsgfmt; ac_word=$2 7258echo "$as_me:7258: checking for $ac_word" >&5 7259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7260if test "${ac_cv_path_GMSGFMT+set}" = set; then 7261 echo $ECHO_N "(cached) $ECHO_C" >&6 7262else 7263 case $GMSGFMT in 7264 [\\/]* | ?:[\\/]*) 7265 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 7266 ;; 7267 *) 7268 ac_save_IFS=$IFS; IFS=$ac_path_separator 7269ac_dummy="$PATH" 7270for ac_dir in $ac_dummy; do 7271 IFS=$ac_save_IFS 7272 test -z "$ac_dir" && ac_dir=. 7273 if $as_executable_p "$ac_dir/$ac_word"; then 7274 ac_cv_path_GMSGFMT="$ac_dir/$ac_word" 7275 echo "$as_me:7275: found $ac_dir/$ac_word" >&5 7276 break 7277fi 7278done 7279 7280 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 7281 ;; 7282esac 7283fi 7284GMSGFMT=$ac_cv_path_GMSGFMT 7285 7286if test -n "$GMSGFMT"; then 7287 echo "$as_me:7287: result: $GMSGFMT" >&5 7288echo "${ECHO_T}$GMSGFMT" >&6 7289else 7290 echo "$as_me:7290: result: no" >&5 7291echo "${ECHO_T}no" >&6 7292fi 7293 7294 # Extract the first word of "xgettext", so it can be a program name with args. 7295 7296set dummy xgettext; ac_word=$2 7297echo "$as_me:7297: checking for $ac_word" >&5 7298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7299if test "${ac_cv_path_XGETTEXT+set}" = set; then 7300 echo $ECHO_N "(cached) $ECHO_C" >&6 7301else 7302 case "$XGETTEXT" in 7303 [\\/]*|?:[\\/]*) 7304 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 7305 ;; 7306 *) 7307 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" 7308 for ac_dir in $PATH; do 7309 test -z "$ac_dir" && ac_dir=. 7310 if test -f $ac_dir/$ac_word$ac_exeext; then 7311 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then 7312 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exeext" 7313 break 7314 fi 7315 fi 7316 done 7317 IFS="$ac_save_ifs" 7318 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 7319 ;; 7320esac 7321fi 7322XGETTEXT="$ac_cv_path_XGETTEXT" 7323if test "$XGETTEXT" != ":"; then 7324 echo "$as_me:7324: result: $XGETTEXT" >&5 7325echo "${ECHO_T}$XGETTEXT" >&6 7326else 7327 echo "$as_me:7327: result: no" >&5 7328echo "${ECHO_T}no" >&6 7329fi 7330 7331 BUILD_INCLUDED_LIBINTL=yes 7332 USE_INCLUDED_LIBINTL=yes 7333 CATOBJEXT=.gmo 7334 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV" 7335 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 7336 fi 7337 7338 if test "$GMSGFMT" != ":"; then 7339 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then 7340 : ; 7341 else 7342 echo "$as_me:7342: result: found msgfmt program is not GNU msgfmt; ignore it" >&5 7343echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6 7344 GMSGFMT=":" 7345 fi 7346 fi 7347 7348 if test "$XGETTEXT" != ":"; then 7349 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then 7350 : ; 7351 else 7352 echo "$as_me:7352: result: found xgettext program is not GNU xgettext; ignore it" >&5 7353echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 7354 XGETTEXT=":" 7355 fi 7356 fi 7357 7358 POSUB=po 7359 fi 7360 7361 ac_config_commands="$ac_config_commands default-1" 7362 7363 if test "$PACKAGE" = gettext; then 7364 BUILD_INCLUDED_LIBINTL=yes 7365 fi 7366 7367 if test "$nls_cv_use_gnu_gettext" = "yes"; then 7368 for ac_prog in bison 7369do 7370 # Extract the first word of "$ac_prog", so it can be a program name with args. 7371set dummy $ac_prog; ac_word=$2 7372echo "$as_me:7372: checking for $ac_word" >&5 7373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7374if test "${ac_cv_prog_INTLBISON+set}" = set; then 7375 echo $ECHO_N "(cached) $ECHO_C" >&6 7376else 7377 if test -n "$INTLBISON"; then 7378 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 7379else 7380 ac_save_IFS=$IFS; IFS=$ac_path_separator 7381ac_dummy="$PATH" 7382for ac_dir in $ac_dummy; do 7383 IFS=$ac_save_IFS 7384 test -z "$ac_dir" && ac_dir=. 7385 $as_executable_p "$ac_dir/$ac_word" || continue 7386ac_cv_prog_INTLBISON="$ac_prog" 7387echo "$as_me:7387: found $ac_dir/$ac_word" >&5 7388break 7389done 7390 7391fi 7392fi 7393INTLBISON=$ac_cv_prog_INTLBISON 7394if test -n "$INTLBISON"; then 7395 echo "$as_me:7395: result: $INTLBISON" >&5 7396echo "${ECHO_T}$INTLBISON" >&6 7397else 7398 echo "$as_me:7398: result: no" >&5 7399echo "${ECHO_T}no" >&6 7400fi 7401 7402 test -n "$INTLBISON" && break 7403done 7404 7405 if test -z "$INTLBISON"; then 7406 ac_verc_fail=yes 7407 else 7408 echo "$as_me:7408: checking version of bison" >&5 7409echo $ECHO_N "checking version of bison... $ECHO_C" >&6 7410 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 7411 case $ac_prog_version in 7412 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 7413 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) 7414 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 7415 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 7416 esac 7417 echo "$as_me:7417: result: $ac_prog_version" >&5 7418echo "${ECHO_T}$ac_prog_version" >&6 7419 fi 7420 if test $ac_verc_fail = yes; then 7421 INTLBISON=: 7422 fi 7423 fi 7424 7425 for lang in $ALL_LINGUAS; do 7426 GMOFILES="$GMOFILES $lang.gmo" 7427 POFILES="$POFILES $lang.po" 7428 done 7429 7430 nls_cv_header_intl= 7431 nls_cv_header_libgt= 7432 7433 DATADIRNAME=share 7434 7435 INSTOBJEXT=.mo 7436 7437 GENCAT=gencat 7438 7439 if test "x$CATOBJEXT" != "x"; then 7440 if test "x$ALL_LINGUAS" = "x"; then 7441 LINGUAS= 7442 else 7443 echo "$as_me:7443: checking for catalogs to be installed" >&5 7444echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 7445 NEW_LINGUAS= 7446 for presentlang in $ALL_LINGUAS; do 7447 useit=no 7448 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do 7449 # Use the presentlang catalog if desiredlang is 7450 # a. equal to presentlang, or 7451 # b. a variant of presentlang (because in this case, 7452 # presentlang can be used as a fallback for messages 7453 # which are not translated in the desiredlang catalog). 7454 case "$desiredlang" in 7455 "$presentlang"*) useit=yes;; 7456 esac 7457 done 7458 if test $useit = yes; then 7459 NEW_LINGUAS="$NEW_LINGUAS $presentlang" 7460 fi 7461 done 7462 LINGUAS=$NEW_LINGUAS 7463 echo "$as_me:7463: result: $LINGUAS" >&5 7464echo "${ECHO_T}$LINGUAS" >&6 7465 fi 7466 7467 if test -n "$LINGUAS"; then 7468 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 7469 fi 7470 fi 7471 7472 INTL_LIBTOOL_SUFFIX_PREFIX= 7473 7474if test "$USE_NLS" = yes ; then 7475 7476# Check whether --with-textdomain or --without-textdomain was given. 7477if test "${with_textdomain+set}" = set; then 7478 withval="$with_textdomain" 7479 NLS_TEXTDOMAIN=$withval 7480else 7481 NLS_TEXTDOMAIN=$PACKAGE 7482fi; 7483 cat >>confdefs.h <<EOF 7484#define NLS_TEXTDOMAIN "$NLS_TEXTDOMAIN" 7485EOF 7486 7487fi 7488 7489INTLDIR_MAKE= 7490MSG_DIR_MAKE= 7491SUB_MAKEFILE= 7492 7493cf_makefile=makefile 7494 7495use_our_messages=no 7496if test "$USE_NLS" = yes ; then 7497if test -d $srcdir/po ; then 7498echo "$as_me:7498: checking if we should use included message-library" >&5 7499echo $ECHO_N "checking if we should use included message-library... $ECHO_C" >&6 7500 7501# Check whether --enable-included-msgs or --disable-included-msgs was given. 7502if test "${enable_included_msgs+set}" = set; then 7503 enableval="$enable_included_msgs" 7504 use_our_messages=$enableval 7505else 7506 use_our_messages=yes 7507fi; 7508fi 7509echo "$as_me:7509: result: $use_our_messages" >&5 7510echo "${ECHO_T}$use_our_messages" >&6 7511fi 7512 7513MSG_DIR_MAKE="#" 7514if test "$use_our_messages" = yes 7515then 7516 SUB_MAKEFILE="$SUB_MAKEFILE po/$cf_makefile.in:$srcdir/po/$cf_makefile.inn" 7517 MSG_DIR_MAKE= 7518fi 7519 7520if test "$USE_INCLUDED_LIBINTL" = yes ; then 7521 if test "$nls_cv_force_use_gnu_gettext" = yes ; then 7522 : 7523 elif test "$nls_cv_use_gnu_gettext" = yes ; then 7524 : 7525 else 7526 INTLDIR_MAKE="#" 7527 fi 7528 if test -z "$INTLDIR_MAKE"; then 7529 cat >>confdefs.h <<\EOF 7530#define HAVE_LIBGETTEXT_H 1 7531EOF 7532 7533 for cf_makefile in \ 7534 $srcdir/intl/Makefile.in \ 7535 $srcdir/intl/makefile.in 7536 do 7537 if test -f "$cf_makefile" ; then 7538 SUB_MAKEFILE="$SUB_MAKEFILE `echo \"${cf_makefile}\"|sed -e 's,^'$srcdir/',,' -e 's/\.in$//'`:${cf_makefile}" 7539 break 7540 fi 7541 done 7542 fi 7543else 7544 INTLDIR_MAKE="#" 7545 if test "$USE_NLS" = yes ; then 7546 7547for ac_header in libintl.h 7548do 7549as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7550echo "$as_me:7550: checking for $ac_header" >&5 7551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7552if eval "test \"\${$as_ac_Header+set}\" = set"; then 7553 echo $ECHO_N "(cached) $ECHO_C" >&6 7554else 7555 cat >conftest.$ac_ext <<_ACEOF 7556#line 7556 "configure" 7557#include "confdefs.h" 7558#include <$ac_header> 7559_ACEOF 7560if { (eval echo "$as_me:7560: \"$ac_cpp conftest.$ac_ext\"") >&5 7561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7562 ac_status=$? 7563 egrep -v '^ *\+' conftest.er1 >conftest.err 7564 rm -f conftest.er1 7565 cat conftest.err >&5 7566 echo "$as_me:7566: \$? = $ac_status" >&5 7567 (exit $ac_status); } >/dev/null; then 7568 if test -s conftest.err; then 7569 ac_cpp_err=$ac_c_preproc_warn_flag 7570 else 7571 ac_cpp_err= 7572 fi 7573else 7574 ac_cpp_err=yes 7575fi 7576if test -z "$ac_cpp_err"; then 7577 eval "$as_ac_Header=yes" 7578else 7579 echo "$as_me: failed program was:" >&5 7580 cat conftest.$ac_ext >&5 7581 eval "$as_ac_Header=no" 7582fi 7583rm -f conftest.err conftest.$ac_ext 7584fi 7585echo "$as_me:7585: result: `eval echo '${'$as_ac_Header'}'`" >&5 7586echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7587if test `eval echo '${'$as_ac_Header'}'` = yes; then 7588 cat >>confdefs.h <<EOF 7589#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7590EOF 7591 7592fi 7593done 7594 7595 fi 7596fi 7597 7598if test -z "$INTLDIR_MAKE" ; then 7599 CPPFLAGS="$CPPFLAGS -I../intl" 7600fi 7601 7602if test "$BUILD_INCLUDED_LIBINTL" = yes ; then 7603 GT_YES="#" 7604 GT_NO= 7605else 7606 GT_YES= 7607 GT_NO="#" 7608fi 7609 7610if test "$USE_INCLUDED_LIBINTL" = yes ; then 7611 if test "$nls_cv_force_use_gnu_gettext" = yes ; then 7612 cat >>confdefs.h <<\EOF 7613#define HAVE_GETTEXT 1 7614EOF 7615 7616 elif test "$nls_cv_use_gnu_gettext" = yes ; then 7617 cat >>confdefs.h <<\EOF 7618#define HAVE_GETTEXT 1 7619EOF 7620 7621 fi 7622 if test -n "$nls_cv_header_intl" ; then 7623 cat >>confdefs.h <<\EOF 7624#define HAVE_LIBINTL_H 1 7625EOF 7626 7627 fi 7628fi 7629 7630echo "$as_me:7630: checking if -lm needed for math functions" >&5 7631echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6 7632if test "${cf_cv_need_libm+set}" = set; then 7633 echo $ECHO_N "(cached) $ECHO_C" >&6 7634else 7635 7636 cat >conftest.$ac_ext <<_ACEOF 7637#line 7637 "configure" 7638#include "confdefs.h" 7639 7640 #include <stdio.h> 7641 #include <math.h> 7642 7643int 7644main () 7645{ 7646double x = rand(); printf("result = %g\n", sqrt(x)) 7647 ; 7648 return 0; 7649} 7650_ACEOF 7651rm -f conftest.$ac_objext conftest$ac_exeext 7652if { (eval echo "$as_me:7652: \"$ac_link\"") >&5 7653 (eval $ac_link) 2>&5 7654 ac_status=$? 7655 echo "$as_me:7655: \$? = $ac_status" >&5 7656 (exit $ac_status); } && 7657 { ac_try='test -s conftest$ac_exeext' 7658 { (eval echo "$as_me:7658: \"$ac_try\"") >&5 7659 (eval $ac_try) 2>&5 7660 ac_status=$? 7661 echo "$as_me:7661: \$? = $ac_status" >&5 7662 (exit $ac_status); }; }; then 7663 cf_cv_need_libm=no 7664else 7665 echo "$as_me: failed program was:" >&5 7666cat conftest.$ac_ext >&5 7667cf_cv_need_libm=yes 7668fi 7669rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7670fi 7671echo "$as_me:7671: result: $cf_cv_need_libm" >&5 7672echo "${ECHO_T}$cf_cv_need_libm" >&6 7673if test "$cf_cv_need_libm" = yes 7674then 7675 7676 LIBS="-lm $LIBS" 7677 7678fi 7679 7680echo "$as_me:7680: checking if you want to use dmalloc for testing" >&5 7681echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6 7682 7683# Check whether --with-dmalloc or --without-dmalloc was given. 7684if test "${with_dmalloc+set}" = set; then 7685 withval="$with_dmalloc" 7686 cat >>confdefs.h <<\EOF 7687#define USE_DMALLOC 1 7688EOF 7689 7690 : ${with_cflags:=-g} 7691 : ${with_no_leaks:=yes} 7692 with_dmalloc=yes 7693else 7694 with_dmalloc= 7695fi; 7696echo "$as_me:7696: result: ${with_dmalloc:-no}" >&5 7697echo "${ECHO_T}${with_dmalloc:-no}" >&6 7698 7699case .$with_cflags in #(vi 7700.*-g*) 7701 case .$CFLAGS in #(vi 7702 .*-g*) #(vi 7703 ;; 7704 *) 7705 7706cf_fix_cppflags=no 7707cf_new_cflags= 7708cf_new_cppflags= 7709cf_new_extra_cppflags= 7710 7711for cf_add_cflags in -g 7712do 7713case $cf_fix_cppflags in 7714no) 7715 case $cf_add_cflags in #(vi 7716 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 7717 case $cf_add_cflags in 7718 -D*) 7719 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 7720 7721 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 7722 && test -z "${cf_tst_cflags}" \ 7723 && cf_fix_cppflags=yes 7724 7725 if test $cf_fix_cppflags = yes ; then 7726 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 7727 continue 7728 elif test "${cf_tst_cflags}" = "\"'" ; then 7729 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 7730 continue 7731 fi 7732 ;; 7733 esac 7734 case "$CPPFLAGS" in 7735 *$cf_add_cflags) #(vi 7736 ;; 7737 *) #(vi 7738 case $cf_add_cflags in #(vi 7739 -D*) 7740 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 7741 7742CPPFLAGS=`echo "$CPPFLAGS" | \ 7743 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 7744 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 7745 7746 ;; 7747 esac 7748 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 7749 ;; 7750 esac 7751 ;; 7752 *) 7753 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 7754 ;; 7755 esac 7756 ;; 7757yes) 7758 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 7759 7760 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 7761 7762 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 7763 && test -z "${cf_tst_cflags}" \ 7764 && cf_fix_cppflags=no 7765 ;; 7766esac 7767done 7768 7769if test -n "$cf_new_cflags" ; then 7770 7771 CFLAGS="$CFLAGS $cf_new_cflags" 7772fi 7773 7774if test -n "$cf_new_cppflags" ; then 7775 7776 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 7777fi 7778 7779if test -n "$cf_new_extra_cppflags" ; then 7780 7781 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 7782fi 7783 7784 ;; 7785 esac 7786 ;; 7787esac 7788 7789if test "$with_dmalloc" = yes ; then 7790 echo "$as_me:7790: checking for dmalloc.h" >&5 7791echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6 7792if test "${ac_cv_header_dmalloc_h+set}" = set; then 7793 echo $ECHO_N "(cached) $ECHO_C" >&6 7794else 7795 cat >conftest.$ac_ext <<_ACEOF 7796#line 7796 "configure" 7797#include "confdefs.h" 7798#include <dmalloc.h> 7799_ACEOF 7800if { (eval echo "$as_me:7800: \"$ac_cpp conftest.$ac_ext\"") >&5 7801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7802 ac_status=$? 7803 egrep -v '^ *\+' conftest.er1 >conftest.err 7804 rm -f conftest.er1 7805 cat conftest.err >&5 7806 echo "$as_me:7806: \$? = $ac_status" >&5 7807 (exit $ac_status); } >/dev/null; then 7808 if test -s conftest.err; then 7809 ac_cpp_err=$ac_c_preproc_warn_flag 7810 else 7811 ac_cpp_err= 7812 fi 7813else 7814 ac_cpp_err=yes 7815fi 7816if test -z "$ac_cpp_err"; then 7817 ac_cv_header_dmalloc_h=yes 7818else 7819 echo "$as_me: failed program was:" >&5 7820 cat conftest.$ac_ext >&5 7821 ac_cv_header_dmalloc_h=no 7822fi 7823rm -f conftest.err conftest.$ac_ext 7824fi 7825echo "$as_me:7825: result: $ac_cv_header_dmalloc_h" >&5 7826echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6 7827if test $ac_cv_header_dmalloc_h = yes; then 7828 7829echo "$as_me:7829: checking for dmalloc_debug in -ldmalloc" >&5 7830echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6 7831if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then 7832 echo $ECHO_N "(cached) $ECHO_C" >&6 7833else 7834 ac_check_lib_save_LIBS=$LIBS 7835LIBS="-ldmalloc $LIBS" 7836cat >conftest.$ac_ext <<_ACEOF 7837#line 7837 "configure" 7838#include "confdefs.h" 7839 7840/* Override any gcc2 internal prototype to avoid an error. */ 7841#ifdef __cplusplus 7842extern "C" 7843#endif 7844/* We use char because int might match the return type of a gcc2 7845 builtin and then its argument prototype would still apply. */ 7846char dmalloc_debug (); 7847int 7848main () 7849{ 7850dmalloc_debug (); 7851 ; 7852 return 0; 7853} 7854_ACEOF 7855rm -f conftest.$ac_objext conftest$ac_exeext 7856if { (eval echo "$as_me:7856: \"$ac_link\"") >&5 7857 (eval $ac_link) 2>&5 7858 ac_status=$? 7859 echo "$as_me:7859: \$? = $ac_status" >&5 7860 (exit $ac_status); } && 7861 { ac_try='test -s conftest$ac_exeext' 7862 { (eval echo "$as_me:7862: \"$ac_try\"") >&5 7863 (eval $ac_try) 2>&5 7864 ac_status=$? 7865 echo "$as_me:7865: \$? = $ac_status" >&5 7866 (exit $ac_status); }; }; then 7867 ac_cv_lib_dmalloc_dmalloc_debug=yes 7868else 7869 echo "$as_me: failed program was:" >&5 7870cat conftest.$ac_ext >&5 7871ac_cv_lib_dmalloc_dmalloc_debug=no 7872fi 7873rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7874LIBS=$ac_check_lib_save_LIBS 7875fi 7876echo "$as_me:7876: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5 7877echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6 7878if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then 7879 cat >>confdefs.h <<EOF 7880#define HAVE_LIBDMALLOC 1 7881EOF 7882 7883 LIBS="-ldmalloc $LIBS" 7884 7885fi 7886 7887fi 7888 7889fi 7890 7891echo "$as_me:7891: checking if you want to use dbmalloc for testing" >&5 7892echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6 7893 7894# Check whether --with-dbmalloc or --without-dbmalloc was given. 7895if test "${with_dbmalloc+set}" = set; then 7896 withval="$with_dbmalloc" 7897 cat >>confdefs.h <<\EOF 7898#define USE_DBMALLOC 1 7899EOF 7900 7901 : ${with_cflags:=-g} 7902 : ${with_no_leaks:=yes} 7903 with_dbmalloc=yes 7904else 7905 with_dbmalloc= 7906fi; 7907echo "$as_me:7907: result: ${with_dbmalloc:-no}" >&5 7908echo "${ECHO_T}${with_dbmalloc:-no}" >&6 7909 7910case .$with_cflags in #(vi 7911.*-g*) 7912 case .$CFLAGS in #(vi 7913 .*-g*) #(vi 7914 ;; 7915 *) 7916 7917cf_fix_cppflags=no 7918cf_new_cflags= 7919cf_new_cppflags= 7920cf_new_extra_cppflags= 7921 7922for cf_add_cflags in -g 7923do 7924case $cf_fix_cppflags in 7925no) 7926 case $cf_add_cflags in #(vi 7927 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 7928 case $cf_add_cflags in 7929 -D*) 7930 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 7931 7932 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 7933 && test -z "${cf_tst_cflags}" \ 7934 && cf_fix_cppflags=yes 7935 7936 if test $cf_fix_cppflags = yes ; then 7937 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 7938 continue 7939 elif test "${cf_tst_cflags}" = "\"'" ; then 7940 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 7941 continue 7942 fi 7943 ;; 7944 esac 7945 case "$CPPFLAGS" in 7946 *$cf_add_cflags) #(vi 7947 ;; 7948 *) #(vi 7949 case $cf_add_cflags in #(vi 7950 -D*) 7951 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 7952 7953CPPFLAGS=`echo "$CPPFLAGS" | \ 7954 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 7955 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 7956 7957 ;; 7958 esac 7959 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 7960 ;; 7961 esac 7962 ;; 7963 *) 7964 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 7965 ;; 7966 esac 7967 ;; 7968yes) 7969 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 7970 7971 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 7972 7973 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 7974 && test -z "${cf_tst_cflags}" \ 7975 && cf_fix_cppflags=no 7976 ;; 7977esac 7978done 7979 7980if test -n "$cf_new_cflags" ; then 7981 7982 CFLAGS="$CFLAGS $cf_new_cflags" 7983fi 7984 7985if test -n "$cf_new_cppflags" ; then 7986 7987 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 7988fi 7989 7990if test -n "$cf_new_extra_cppflags" ; then 7991 7992 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 7993fi 7994 7995 ;; 7996 esac 7997 ;; 7998esac 7999 8000if test "$with_dbmalloc" = yes ; then 8001 echo "$as_me:8001: checking for dbmalloc.h" >&5 8002echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6 8003if test "${ac_cv_header_dbmalloc_h+set}" = set; then 8004 echo $ECHO_N "(cached) $ECHO_C" >&6 8005else 8006 cat >conftest.$ac_ext <<_ACEOF 8007#line 8007 "configure" 8008#include "confdefs.h" 8009#include <dbmalloc.h> 8010_ACEOF 8011if { (eval echo "$as_me:8011: \"$ac_cpp conftest.$ac_ext\"") >&5 8012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8013 ac_status=$? 8014 egrep -v '^ *\+' conftest.er1 >conftest.err 8015 rm -f conftest.er1 8016 cat conftest.err >&5 8017 echo "$as_me:8017: \$? = $ac_status" >&5 8018 (exit $ac_status); } >/dev/null; then 8019 if test -s conftest.err; then 8020 ac_cpp_err=$ac_c_preproc_warn_flag 8021 else 8022 ac_cpp_err= 8023 fi 8024else 8025 ac_cpp_err=yes 8026fi 8027if test -z "$ac_cpp_err"; then 8028 ac_cv_header_dbmalloc_h=yes 8029else 8030 echo "$as_me: failed program was:" >&5 8031 cat conftest.$ac_ext >&5 8032 ac_cv_header_dbmalloc_h=no 8033fi 8034rm -f conftest.err conftest.$ac_ext 8035fi 8036echo "$as_me:8036: result: $ac_cv_header_dbmalloc_h" >&5 8037echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6 8038if test $ac_cv_header_dbmalloc_h = yes; then 8039 8040echo "$as_me:8040: checking for debug_malloc in -ldbmalloc" >&5 8041echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6 8042if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then 8043 echo $ECHO_N "(cached) $ECHO_C" >&6 8044else 8045 ac_check_lib_save_LIBS=$LIBS 8046LIBS="-ldbmalloc $LIBS" 8047cat >conftest.$ac_ext <<_ACEOF 8048#line 8048 "configure" 8049#include "confdefs.h" 8050 8051/* Override any gcc2 internal prototype to avoid an error. */ 8052#ifdef __cplusplus 8053extern "C" 8054#endif 8055/* We use char because int might match the return type of a gcc2 8056 builtin and then its argument prototype would still apply. */ 8057char debug_malloc (); 8058int 8059main () 8060{ 8061debug_malloc (); 8062 ; 8063 return 0; 8064} 8065_ACEOF 8066rm -f conftest.$ac_objext conftest$ac_exeext 8067if { (eval echo "$as_me:8067: \"$ac_link\"") >&5 8068 (eval $ac_link) 2>&5 8069 ac_status=$? 8070 echo "$as_me:8070: \$? = $ac_status" >&5 8071 (exit $ac_status); } && 8072 { ac_try='test -s conftest$ac_exeext' 8073 { (eval echo "$as_me:8073: \"$ac_try\"") >&5 8074 (eval $ac_try) 2>&5 8075 ac_status=$? 8076 echo "$as_me:8076: \$? = $ac_status" >&5 8077 (exit $ac_status); }; }; then 8078 ac_cv_lib_dbmalloc_debug_malloc=yes 8079else 8080 echo "$as_me: failed program was:" >&5 8081cat conftest.$ac_ext >&5 8082ac_cv_lib_dbmalloc_debug_malloc=no 8083fi 8084rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8085LIBS=$ac_check_lib_save_LIBS 8086fi 8087echo "$as_me:8087: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5 8088echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6 8089if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then 8090 cat >>confdefs.h <<EOF 8091#define HAVE_LIBDBMALLOC 1 8092EOF 8093 8094 LIBS="-ldbmalloc $LIBS" 8095 8096fi 8097 8098fi 8099 8100fi 8101 8102echo "$as_me:8102: checking if you want to use purify for testing" >&5 8103echo $ECHO_N "checking if you want to use purify for testing... $ECHO_C" >&6 8104 8105# Check whether --with-purify or --without-purify was given. 8106if test "${with_purify+set}" = set; then 8107 withval="$with_purify" 8108 cat >>confdefs.h <<\EOF 8109#define USE_PURIFY 1 8110EOF 8111 8112 : ${with_cflags:=-g} 8113 : ${with_no_leaks:=yes} 8114 with_purify=yes 8115else 8116 with_purify= 8117fi; 8118echo "$as_me:8118: result: ${with_purify:-no}" >&5 8119echo "${ECHO_T}${with_purify:-no}" >&6 8120 8121case .$with_cflags in #(vi 8122.*-g*) 8123 case .$CFLAGS in #(vi 8124 .*-g*) #(vi 8125 ;; 8126 *) 8127 8128cf_fix_cppflags=no 8129cf_new_cflags= 8130cf_new_cppflags= 8131cf_new_extra_cppflags= 8132 8133for cf_add_cflags in -g 8134do 8135case $cf_fix_cppflags in 8136no) 8137 case $cf_add_cflags in #(vi 8138 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 8139 case $cf_add_cflags in 8140 -D*) 8141 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 8142 8143 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 8144 && test -z "${cf_tst_cflags}" \ 8145 && cf_fix_cppflags=yes 8146 8147 if test $cf_fix_cppflags = yes ; then 8148 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 8149 continue 8150 elif test "${cf_tst_cflags}" = "\"'" ; then 8151 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 8152 continue 8153 fi 8154 ;; 8155 esac 8156 case "$CPPFLAGS" in 8157 *$cf_add_cflags) #(vi 8158 ;; 8159 *) #(vi 8160 case $cf_add_cflags in #(vi 8161 -D*) 8162 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 8163 8164CPPFLAGS=`echo "$CPPFLAGS" | \ 8165 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 8166 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 8167 8168 ;; 8169 esac 8170 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 8171 ;; 8172 esac 8173 ;; 8174 *) 8175 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 8176 ;; 8177 esac 8178 ;; 8179yes) 8180 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 8181 8182 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 8183 8184 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 8185 && test -z "${cf_tst_cflags}" \ 8186 && cf_fix_cppflags=no 8187 ;; 8188esac 8189done 8190 8191if test -n "$cf_new_cflags" ; then 8192 8193 CFLAGS="$CFLAGS $cf_new_cflags" 8194fi 8195 8196if test -n "$cf_new_cppflags" ; then 8197 8198 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 8199fi 8200 8201if test -n "$cf_new_extra_cppflags" ; then 8202 8203 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 8204fi 8205 8206 ;; 8207 esac 8208 ;; 8209esac 8210 8211echo "$as_me:8211: checking if you want to use valgrind for testing" >&5 8212echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6 8213 8214# Check whether --with-valgrind or --without-valgrind was given. 8215if test "${with_valgrind+set}" = set; then 8216 withval="$with_valgrind" 8217 cat >>confdefs.h <<\EOF 8218#define USE_VALGRIND 1 8219EOF 8220 8221 : ${with_cflags:=-g} 8222 : ${with_no_leaks:=yes} 8223 with_valgrind=yes 8224else 8225 with_valgrind= 8226fi; 8227echo "$as_me:8227: result: ${with_valgrind:-no}" >&5 8228echo "${ECHO_T}${with_valgrind:-no}" >&6 8229 8230case .$with_cflags in #(vi 8231.*-g*) 8232 case .$CFLAGS in #(vi 8233 .*-g*) #(vi 8234 ;; 8235 *) 8236 8237cf_fix_cppflags=no 8238cf_new_cflags= 8239cf_new_cppflags= 8240cf_new_extra_cppflags= 8241 8242for cf_add_cflags in -g 8243do 8244case $cf_fix_cppflags in 8245no) 8246 case $cf_add_cflags in #(vi 8247 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 8248 case $cf_add_cflags in 8249 -D*) 8250 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 8251 8252 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 8253 && test -z "${cf_tst_cflags}" \ 8254 && cf_fix_cppflags=yes 8255 8256 if test $cf_fix_cppflags = yes ; then 8257 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 8258 continue 8259 elif test "${cf_tst_cflags}" = "\"'" ; then 8260 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 8261 continue 8262 fi 8263 ;; 8264 esac 8265 case "$CPPFLAGS" in 8266 *$cf_add_cflags) #(vi 8267 ;; 8268 *) #(vi 8269 case $cf_add_cflags in #(vi 8270 -D*) 8271 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 8272 8273CPPFLAGS=`echo "$CPPFLAGS" | \ 8274 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 8275 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 8276 8277 ;; 8278 esac 8279 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 8280 ;; 8281 esac 8282 ;; 8283 *) 8284 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 8285 ;; 8286 esac 8287 ;; 8288yes) 8289 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 8290 8291 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 8292 8293 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 8294 && test -z "${cf_tst_cflags}" \ 8295 && cf_fix_cppflags=no 8296 ;; 8297esac 8298done 8299 8300if test -n "$cf_new_cflags" ; then 8301 8302 CFLAGS="$CFLAGS $cf_new_cflags" 8303fi 8304 8305if test -n "$cf_new_cppflags" ; then 8306 8307 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 8308fi 8309 8310if test -n "$cf_new_extra_cppflags" ; then 8311 8312 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 8313fi 8314 8315 ;; 8316 esac 8317 ;; 8318esac 8319 8320echo "$as_me:8320: checking if you want to perform memory-leak testing" >&5 8321echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6 8322 8323# Check whether --with-no-leaks or --without-no-leaks was given. 8324if test "${with_no_leaks+set}" = set; then 8325 withval="$with_no_leaks" 8326 cat >>confdefs.h <<\EOF 8327#define NO_LEAKS 1 8328EOF 8329 8330 cf_doalloc=".${with_dmalloc}${with_dbmalloc}${with_purify}${with_valgrind}" 8331 case ${cf_doalloc} in #(vi 8332 *yes*) ;; 8333 *) cat >>confdefs.h <<\EOF 8334#define DOALLOC 10000 8335EOF 8336 ;; 8337 esac 8338 with_no_leaks=yes 8339else 8340 with_no_leaks= 8341fi; 8342echo "$as_me:8342: result: $with_no_leaks" >&5 8343echo "${ECHO_T}$with_no_leaks" >&6 8344 8345echo "$as_me:8345: checking if you want --trace option" >&5 8346echo $ECHO_N "checking if you want --trace option... $ECHO_C" >&6 8347 8348# Check whether --enable-trace or --disable-trace was given. 8349if test "${enable_trace+set}" = set; then 8350 enableval="$enable_trace" 8351 8352else 8353 enableval=yes 8354fi; 8355echo "$as_me:8355: result: $enableval" >&5 8356echo "${ECHO_T}$enableval" >&6 8357if test "$enableval" != no ; then 8358EXTRAOBJS="$EXTRAOBJS trace\$o" 8359 cat >>confdefs.h <<\EOF 8360#define HAVE_DLG_TRACE 1 8361EOF 8362 8363else 8364 : 8365fi 8366 8367LIBTOOL_MAKE="#" 8368 8369echo "$as_me:8369: checking if libtool -version-number should be used" >&5 8370echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6 8371 8372# Check whether --enable-libtool-version or --disable-libtool-version was given. 8373if test "${enable_libtool_version+set}" = set; then 8374 enableval="$enable_libtool_version" 8375 test "$enableval" != no && enableval=yes 8376 if test "$enableval" != "yes" ; then 8377 cf_libtool_version=no 8378 else 8379 cf_libtool_version=yes 8380 fi 8381else 8382 enableval=yes 8383 cf_libtool_version=yes 8384 8385fi; 8386echo "$as_me:8386: result: $cf_libtool_version" >&5 8387echo "${ECHO_T}$cf_libtool_version" >&6 8388 8389if test "$cf_libtool_version" = yes ; then 8390 LIBTOOL_VERSION="-version-number" 8391else 8392 LIBTOOL_VERSION="-version-info" 8393fi 8394 8395LIBTOOL= 8396 8397# common library maintenance symbols that are convenient for libtool scripts: 8398LIB_CREATE='${AR} -cr' 8399LIB_OBJECT='${OBJECTS}' 8400LIB_SUFFIX=.a 8401LIB_PREP="$RANLIB" 8402 8403# symbols used to prop libtool up to enable it to determine what it should be 8404# doing: 8405LIB_CLEAN= 8406LIB_COMPILE= 8407LIB_LINK='${CC}' 8408LIB_INSTALL= 8409LIB_UNINSTALL= 8410 8411echo "$as_me:8411: checking if you want to build libraries with libtool" >&5 8412echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6 8413 8414# Check whether --with-libtool or --without-libtool was given. 8415if test "${with_libtool+set}" = set; then 8416 withval="$with_libtool" 8417 with_libtool=$withval 8418else 8419 with_libtool=no 8420fi; 8421echo "$as_me:8421: result: $with_libtool" >&5 8422echo "${ECHO_T}$with_libtool" >&6 8423if test "$with_libtool" != "no"; then 8424 8425 if test "$with_libtool" != "yes" ; then 8426 8427if test "x$prefix" != xNONE; then 8428 cf_path_syntax="$prefix" 8429else 8430 cf_path_syntax="$ac_default_prefix" 8431fi 8432 8433case ".$with_libtool" in #(vi 8434.\$\(*\)*|.\'*\'*) #(vi 8435 ;; 8436..|./*|.\\*) #(vi 8437 ;; 8438.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 8439 ;; 8440.\${*prefix}*) #(vi 8441 eval with_libtool="$with_libtool" 8442 case ".$with_libtool" in #(vi 8443 .NONE/*) 8444 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%` 8445 ;; 8446 esac 8447 ;; #(vi 8448.no|.NONE/*) 8449 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%` 8450 ;; 8451*) 8452 { { echo "$as_me:8452: error: expected a pathname, not \"$with_libtool\"" >&5 8453echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;} 8454 { (exit 1); exit 1; }; } 8455 ;; 8456esac 8457 8458 LIBTOOL=$with_libtool 8459 else 8460 # Extract the first word of "libtool", so it can be a program name with args. 8461set dummy libtool; ac_word=$2 8462echo "$as_me:8462: checking for $ac_word" >&5 8463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8464if test "${ac_cv_path_LIBTOOL+set}" = set; then 8465 echo $ECHO_N "(cached) $ECHO_C" >&6 8466else 8467 case $LIBTOOL in 8468 [\\/]* | ?:[\\/]*) 8469 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path. 8470 ;; 8471 *) 8472 ac_save_IFS=$IFS; IFS=$ac_path_separator 8473ac_dummy="$PATH" 8474for ac_dir in $ac_dummy; do 8475 IFS=$ac_save_IFS 8476 test -z "$ac_dir" && ac_dir=. 8477 if $as_executable_p "$ac_dir/$ac_word"; then 8478 ac_cv_path_LIBTOOL="$ac_dir/$ac_word" 8479 echo "$as_me:8479: found $ac_dir/$ac_word" >&5 8480 break 8481fi 8482done 8483 8484 ;; 8485esac 8486fi 8487LIBTOOL=$ac_cv_path_LIBTOOL 8488 8489if test -n "$LIBTOOL"; then 8490 echo "$as_me:8490: result: $LIBTOOL" >&5 8491echo "${ECHO_T}$LIBTOOL" >&6 8492else 8493 echo "$as_me:8493: result: no" >&5 8494echo "${ECHO_T}no" >&6 8495fi 8496 8497 fi 8498 if test -z "$LIBTOOL" ; then 8499 { { echo "$as_me:8499: error: Cannot find libtool" >&5 8500echo "$as_me: error: Cannot find libtool" >&2;} 8501 { (exit 1); exit 1; }; } 8502 fi 8503 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} -o' 8504 LIB_OBJECT='${OBJECTS:.o=.lo}' 8505 LIB_SUFFIX=.la 8506 LIB_CLEAN='${LIBTOOL} --mode=clean' 8507 LIB_COMPILE='${LIBTOOL} --mode=compile' 8508 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}' 8509 LIB_INSTALL='${LIBTOOL} --mode=install' 8510 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall' 8511 LIB_PREP=: 8512 8513 # Show the version of libtool 8514 echo "$as_me:8514: checking version of libtool" >&5 8515echo $ECHO_N "checking version of libtool... $ECHO_C" >&6 8516 8517 # Save the version in a cache variable - this is not entirely a good 8518 # thing, but the version string from libtool is very ugly, and for 8519 # bug reports it might be useful to have the original string. "(" 8520 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'` 8521 echo "$as_me:8521: result: $cf_cv_libtool_version" >&5 8522echo "${ECHO_T}$cf_cv_libtool_version" >&6 8523 if test -z "$cf_cv_libtool_version" ; then 8524 { { echo "$as_me:8524: error: This is not GNU libtool" >&5 8525echo "$as_me: error: This is not GNU libtool" >&2;} 8526 { (exit 1); exit 1; }; } 8527 fi 8528 8529 # special hack to add -no-undefined (which libtool should do for itself) 8530 LT_UNDEF= 8531 case "$cf_cv_system_name" in #(vi 8532 cygwin*|mingw32*|uwin*|aix[456]) #(vi 8533 LT_UNDEF=-no-undefined 8534 ;; 8535 esac 8536 8537 # special hack to add --tag option for C++ compiler 8538 case $cf_cv_libtool_version in #(vi 8539 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi 8540 LIBTOOL_CXX="$LIBTOOL --tag=CXX" 8541 LIBTOOL="$LIBTOOL --tag=CC" 8542 ;; 8543 *) 8544 LIBTOOL_CXX="$LIBTOOL" 8545 ;; 8546 esac 8547else 8548 LIBTOOL="" 8549 LIBTOOL_CXX="" 8550fi 8551 8552test -z "$LIBTOOL" && ECHO_LT= 8553 8554if test "$with_libtool" = "yes" ; then 8555 OBJEXT="lo" 8556 LIBTOOL_MAKE= 8557 8558echo "$as_me:8558: checking for additional libtool options" >&5 8559echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6 8560 8561# Check whether --with-libtool-opts or --without-libtool-opts was given. 8562if test "${with_libtool_opts+set}" = set; then 8563 withval="$with_libtool_opts" 8564 with_libtool_opts=$withval 8565else 8566 with_libtool_opts=no 8567fi; 8568echo "$as_me:8568: result: $with_libtool_opts" >&5 8569echo "${ECHO_T}$with_libtool_opts" >&6 8570 8571case .$with_libtool_opts in 8572.yes|.no|.) 8573 ;; 8574*) 8575 LIBTOOL_OPTS=$with_libtool_opts 8576 ;; 8577esac 8578 8579fi 8580 8581echo "$as_me:8581: checking for specific curses-directory" >&5 8582echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6 8583 8584# Check whether --with-curses-dir or --without-curses-dir was given. 8585if test "${with_curses_dir+set}" = set; then 8586 withval="$with_curses_dir" 8587 cf_cv_curses_dir=$withval 8588else 8589 cf_cv_curses_dir=no 8590fi; 8591echo "$as_me:8591: result: $cf_cv_curses_dir" >&5 8592echo "${ECHO_T}$cf_cv_curses_dir" >&6 8593 8594if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" ) 8595then 8596 8597if test "x$prefix" != xNONE; then 8598 cf_path_syntax="$prefix" 8599else 8600 cf_path_syntax="$ac_default_prefix" 8601fi 8602 8603case ".$withval" in #(vi 8604.\$\(*\)*|.\'*\'*) #(vi 8605 ;; 8606..|./*|.\\*) #(vi 8607 ;; 8608.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 8609 ;; 8610.\${*prefix}*) #(vi 8611 eval withval="$withval" 8612 case ".$withval" in #(vi 8613 .NONE/*) 8614 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%` 8615 ;; 8616 esac 8617 ;; #(vi 8618.no|.NONE/*) 8619 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%` 8620 ;; 8621*) 8622 { { echo "$as_me:8622: error: expected a pathname, not \"$withval\"" >&5 8623echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;} 8624 { (exit 1); exit 1; }; } 8625 ;; 8626esac 8627 8628 if test -d "$cf_cv_curses_dir" 8629 then 8630 8631if test -n "$cf_cv_curses_dir/include" ; then 8632 for cf_add_incdir in $cf_cv_curses_dir/include 8633 do 8634 while test $cf_add_incdir != /usr/include 8635 do 8636 if test -d $cf_add_incdir 8637 then 8638 cf_have_incdir=no 8639 if test -n "$CFLAGS$CPPFLAGS" ; then 8640 # a loop is needed to ensure we can add subdirs of existing dirs 8641 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 8642 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 8643 cf_have_incdir=yes; break 8644 fi 8645 done 8646 fi 8647 8648 if test "$cf_have_incdir" = no ; then 8649 if test "$cf_add_incdir" = /usr/local/include ; then 8650 if test "$GCC" = yes 8651 then 8652 cf_save_CPPFLAGS=$CPPFLAGS 8653 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 8654 cat >conftest.$ac_ext <<_ACEOF 8655#line 8655 "configure" 8656#include "confdefs.h" 8657#include <stdio.h> 8658int 8659main () 8660{ 8661printf("Hello") 8662 ; 8663 return 0; 8664} 8665_ACEOF 8666rm -f conftest.$ac_objext 8667if { (eval echo "$as_me:8667: \"$ac_compile\"") >&5 8668 (eval $ac_compile) 2>&5 8669 ac_status=$? 8670 echo "$as_me:8670: \$? = $ac_status" >&5 8671 (exit $ac_status); } && 8672 { ac_try='test -s conftest.$ac_objext' 8673 { (eval echo "$as_me:8673: \"$ac_try\"") >&5 8674 (eval $ac_try) 2>&5 8675 ac_status=$? 8676 echo "$as_me:8676: \$? = $ac_status" >&5 8677 (exit $ac_status); }; }; then 8678 : 8679else 8680 echo "$as_me: failed program was:" >&5 8681cat conftest.$ac_ext >&5 8682cf_have_incdir=yes 8683fi 8684rm -f conftest.$ac_objext conftest.$ac_ext 8685 CPPFLAGS=$cf_save_CPPFLAGS 8686 fi 8687 fi 8688 fi 8689 8690 if test "$cf_have_incdir" = no ; then 8691 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 8692 8693echo "${as_me:-configure}:8693: testing adding $cf_add_incdir to include-path ..." 1>&5 8694 8695 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 8696 8697 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 8698 test "$cf_top_incdir" = "$cf_add_incdir" && break 8699 cf_add_incdir="$cf_top_incdir" 8700 else 8701 break 8702 fi 8703 fi 8704 done 8705 done 8706fi 8707 8708if test -n "$cf_cv_curses_dir/lib" ; then 8709 for cf_add_libdir in $cf_cv_curses_dir/lib 8710 do 8711 if test $cf_add_libdir = /usr/lib ; then 8712 : 8713 elif test -d $cf_add_libdir 8714 then 8715 cf_have_libdir=no 8716 if test -n "$LDFLAGS$LIBS" ; then 8717 # a loop is needed to ensure we can add subdirs of existing dirs 8718 for cf_test_libdir in $LDFLAGS $LIBS ; do 8719 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 8720 cf_have_libdir=yes; break 8721 fi 8722 done 8723 fi 8724 if test "$cf_have_libdir" = no ; then 8725 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 8726 8727echo "${as_me:-configure}:8727: testing adding $cf_add_libdir to library-path ..." 1>&5 8728 8729 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 8730 fi 8731 fi 8732 done 8733fi 8734 8735 fi 8736fi 8737 8738use_ncurses=no 8739 8740# Check whether --with-ncurses or --without-ncurses was given. 8741if test "${with_ncurses+set}" = set; then 8742 withval="$with_ncurses" 8743 use_ncurses=ncurses 8744fi; 8745 8746# Check whether --with-ncursesw or --without-ncursesw was given. 8747if test "${with_ncursesw+set}" = set; then 8748 withval="$with_ncursesw" 8749 use_ncurses=ncursesw 8750fi; 8751if test $use_ncurses != no ; then 8752 cf_wide_curses=yes 8753 if test $use_ncurses = ncursesw ; then 8754 8755echo "$as_me:8755: checking for multibyte character support" >&5 8756echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6 8757if test "${cf_cv_utf8_lib+set}" = set; then 8758 echo $ECHO_N "(cached) $ECHO_C" >&6 8759else 8760 8761 cf_save_LIBS="$LIBS" 8762 cat >conftest.$ac_ext <<_ACEOF 8763#line 8763 "configure" 8764#include "confdefs.h" 8765 8766#include <stdlib.h> 8767int 8768main () 8769{ 8770putwc(0,0); 8771 ; 8772 return 0; 8773} 8774_ACEOF 8775rm -f conftest.$ac_objext conftest$ac_exeext 8776if { (eval echo "$as_me:8776: \"$ac_link\"") >&5 8777 (eval $ac_link) 2>&5 8778 ac_status=$? 8779 echo "$as_me:8779: \$? = $ac_status" >&5 8780 (exit $ac_status); } && 8781 { ac_try='test -s conftest$ac_exeext' 8782 { (eval echo "$as_me:8782: \"$ac_try\"") >&5 8783 (eval $ac_try) 2>&5 8784 ac_status=$? 8785 echo "$as_me:8785: \$? = $ac_status" >&5 8786 (exit $ac_status); }; }; then 8787 cf_cv_utf8_lib=yes 8788else 8789 echo "$as_me: failed program was:" >&5 8790cat conftest.$ac_ext >&5 8791 8792# If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these 8793# will be set on completion of the AC_TRY_LINK below. 8794cf_cv_header_path_utf8= 8795cf_cv_library_path_utf8= 8796 8797echo "${as_me:-configure}:8797: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5 8798 8799cf_save_LIBS="$LIBS" 8800 8801cat >conftest.$ac_ext <<_ACEOF 8802#line 8802 "configure" 8803#include "confdefs.h" 8804 8805#include <libutf8.h> 8806int 8807main () 8808{ 8809putwc(0,0); 8810 ; 8811 return 0; 8812} 8813_ACEOF 8814rm -f conftest.$ac_objext conftest$ac_exeext 8815if { (eval echo "$as_me:8815: \"$ac_link\"") >&5 8816 (eval $ac_link) 2>&5 8817 ac_status=$? 8818 echo "$as_me:8818: \$? = $ac_status" >&5 8819 (exit $ac_status); } && 8820 { ac_try='test -s conftest$ac_exeext' 8821 { (eval echo "$as_me:8821: \"$ac_try\"") >&5 8822 (eval $ac_try) 2>&5 8823 ac_status=$? 8824 echo "$as_me:8824: \$? = $ac_status" >&5 8825 (exit $ac_status); }; }; then 8826 8827 cf_cv_find_linkage_utf8=yes 8828 cf_cv_header_path_utf8=/usr/include 8829 cf_cv_library_path_utf8=/usr/lib 8830 8831else 8832 echo "$as_me: failed program was:" >&5 8833cat conftest.$ac_ext >&5 8834 8835LIBS="-lutf8 $cf_save_LIBS" 8836 8837cat >conftest.$ac_ext <<_ACEOF 8838#line 8838 "configure" 8839#include "confdefs.h" 8840 8841#include <libutf8.h> 8842int 8843main () 8844{ 8845putwc(0,0); 8846 ; 8847 return 0; 8848} 8849_ACEOF 8850rm -f conftest.$ac_objext conftest$ac_exeext 8851if { (eval echo "$as_me:8851: \"$ac_link\"") >&5 8852 (eval $ac_link) 2>&5 8853 ac_status=$? 8854 echo "$as_me:8854: \$? = $ac_status" >&5 8855 (exit $ac_status); } && 8856 { ac_try='test -s conftest$ac_exeext' 8857 { (eval echo "$as_me:8857: \"$ac_try\"") >&5 8858 (eval $ac_try) 2>&5 8859 ac_status=$? 8860 echo "$as_me:8860: \$? = $ac_status" >&5 8861 (exit $ac_status); }; }; then 8862 8863 cf_cv_find_linkage_utf8=yes 8864 cf_cv_header_path_utf8=/usr/include 8865 cf_cv_library_path_utf8=/usr/lib 8866 cf_cv_library_file_utf8="-lutf8" 8867 8868else 8869 echo "$as_me: failed program was:" >&5 8870cat conftest.$ac_ext >&5 8871 8872 cf_cv_find_linkage_utf8=no 8873 LIBS="$cf_save_LIBS" 8874 8875 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6 8876 8877echo "${as_me:-configure}:8877: testing find linkage for utf8 library ..." 1>&5 8878 8879echo "${as_me:-configure}:8879: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5 8880 8881 cf_save_CPPFLAGS="$CPPFLAGS" 8882 cf_test_CPPFLAGS="$CPPFLAGS" 8883 8884cf_search= 8885 8886# collect the current set of include-directories from compiler flags 8887cf_header_path_list="" 8888if test -n "${CFLAGS}${CPPFLAGS}" ; then 8889 for cf_header_path in $CPPFLAGS $CFLAGS 8890 do 8891 case $cf_header_path in #(vi 8892 -I*) 8893 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'` 8894 8895test "$cf_header_path" != "NONE" && \ 8896test -d "$cf_header_path" && \ 8897 { 8898 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path" 8899 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include" 8900 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8" 8901 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include" 8902 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include" 8903 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8" 8904} 8905 8906 cf_header_path_list="$cf_header_path_list $cf_search" 8907 ;; 8908 esac 8909 done 8910fi 8911 8912# add the variations for the package we are looking for 8913 8914cf_search= 8915 8916test "/usr" != "$prefix" && \ 8917test -d "/usr" && \ 8918(test $prefix = NONE || test "/usr" != "$prefix") && { 8919 test -n "$verbose" && echo " ... testing for include-directories under /usr" 8920 test -d /usr/include && cf_search="$cf_search /usr/include" 8921 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8" 8922 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include" 8923 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include" 8924 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8" 8925} 8926 8927test "$prefix" != "NONE" && \ 8928test -d "$prefix" && \ 8929 { 8930 test -n "$verbose" && echo " ... testing for include-directories under $prefix" 8931 test -d $prefix/include && cf_search="$cf_search $prefix/include" 8932 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8" 8933 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include" 8934 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include" 8935 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8" 8936} 8937 8938test "/usr/local" != "$prefix" && \ 8939test -d "/usr/local" && \ 8940(test $prefix = NONE || test "/usr/local" != "$prefix") && { 8941 test -n "$verbose" && echo " ... testing for include-directories under /usr/local" 8942 test -d /usr/local/include && cf_search="$cf_search /usr/local/include" 8943 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8" 8944 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include" 8945 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include" 8946 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8" 8947} 8948 8949test "/opt" != "$prefix" && \ 8950test -d "/opt" && \ 8951(test $prefix = NONE || test "/opt" != "$prefix") && { 8952 test -n "$verbose" && echo " ... testing for include-directories under /opt" 8953 test -d /opt/include && cf_search="$cf_search /opt/include" 8954 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8" 8955 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include" 8956 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include" 8957 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8" 8958} 8959 8960test "$HOME" != "$prefix" && \ 8961test -d "$HOME" && \ 8962(test $prefix = NONE || test "$HOME" != "$prefix") && { 8963 test -n "$verbose" && echo " ... testing for include-directories under $HOME" 8964 test -d $HOME/include && cf_search="$cf_search $HOME/include" 8965 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8" 8966 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include" 8967 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include" 8968 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8" 8969} 8970 8971test "$includedir" != NONE && \ 8972test "$includedir" != "/usr/include" && \ 8973test -d "$includedir" && { 8974 test -d $includedir && cf_search="$cf_search $includedir" 8975 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8" 8976} 8977 8978test "$oldincludedir" != NONE && \ 8979test "$oldincludedir" != "/usr/include" && \ 8980test -d "$oldincludedir" && { 8981 test -d $oldincludedir && cf_search="$cf_search $oldincludedir" 8982 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8" 8983} 8984 8985cf_search="$cf_search $cf_header_path_list" 8986 8987 for cf_cv_header_path_utf8 in $cf_search 8988 do 8989 if test -d $cf_cv_header_path_utf8 ; then 8990 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6 8991 8992echo "${as_me:-configure}:8992: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5 8993 8994 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8" 8995 cat >conftest.$ac_ext <<_ACEOF 8996#line 8996 "configure" 8997#include "confdefs.h" 8998 8999#include <libutf8.h> 9000int 9001main () 9002{ 9003putwc(0,0); 9004 ; 9005 return 0; 9006} 9007_ACEOF 9008rm -f conftest.$ac_objext 9009if { (eval echo "$as_me:9009: \"$ac_compile\"") >&5 9010 (eval $ac_compile) 2>&5 9011 ac_status=$? 9012 echo "$as_me:9012: \$? = $ac_status" >&5 9013 (exit $ac_status); } && 9014 { ac_try='test -s conftest.$ac_objext' 9015 { (eval echo "$as_me:9015: \"$ac_try\"") >&5 9016 (eval $ac_try) 2>&5 9017 ac_status=$? 9018 echo "$as_me:9018: \$? = $ac_status" >&5 9019 (exit $ac_status); }; }; then 9020 9021 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6 9022 9023echo "${as_me:-configure}:9023: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5 9024 9025 cf_cv_find_linkage_utf8=maybe 9026 cf_test_CPPFLAGS="$CPPFLAGS" 9027 break 9028else 9029 echo "$as_me: failed program was:" >&5 9030cat conftest.$ac_ext >&5 9031 9032 CPPFLAGS="$cf_save_CPPFLAGS" 9033 9034fi 9035rm -f conftest.$ac_objext conftest.$ac_ext 9036 fi 9037 done 9038 9039 if test "$cf_cv_find_linkage_utf8" = maybe ; then 9040 9041echo "${as_me:-configure}:9041: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5 9042 9043 cf_save_LIBS="$LIBS" 9044 cf_save_LDFLAGS="$LDFLAGS" 9045 9046 if test "$cf_cv_find_linkage_utf8" != yes ; then 9047 9048cf_search= 9049cf_library_path_list="" 9050if test -n "${LDFLAGS}${LIBS}" ; then 9051 for cf_library_path in $LDFLAGS $LIBS 9052 do 9053 case $cf_library_path in #(vi 9054 -L*) 9055 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'` 9056 9057test "$cf_library_path" != "NONE" && \ 9058test -d "$cf_library_path" && \ 9059 { 9060 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path" 9061 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib" 9062 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8" 9063 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib" 9064 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib" 9065 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8" 9066} 9067 9068 cf_library_path_list="$cf_library_path_list $cf_search" 9069 ;; 9070 esac 9071 done 9072fi 9073 9074cf_search= 9075 9076test "/usr" != "$prefix" && \ 9077test -d "/usr" && \ 9078(test $prefix = NONE || test "/usr" != "$prefix") && { 9079 test -n "$verbose" && echo " ... testing for lib-directories under /usr" 9080 test -d /usr/lib && cf_search="$cf_search /usr/lib" 9081 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8" 9082 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib" 9083 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib" 9084 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8" 9085} 9086 9087test "$prefix" != "NONE" && \ 9088test -d "$prefix" && \ 9089 { 9090 test -n "$verbose" && echo " ... testing for lib-directories under $prefix" 9091 test -d $prefix/lib && cf_search="$cf_search $prefix/lib" 9092 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8" 9093 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib" 9094 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib" 9095 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8" 9096} 9097 9098test "/usr/local" != "$prefix" && \ 9099test -d "/usr/local" && \ 9100(test $prefix = NONE || test "/usr/local" != "$prefix") && { 9101 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local" 9102 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib" 9103 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8" 9104 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib" 9105 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib" 9106 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8" 9107} 9108 9109test "/opt" != "$prefix" && \ 9110test -d "/opt" && \ 9111(test $prefix = NONE || test "/opt" != "$prefix") && { 9112 test -n "$verbose" && echo " ... testing for lib-directories under /opt" 9113 test -d /opt/lib && cf_search="$cf_search /opt/lib" 9114 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8" 9115 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib" 9116 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib" 9117 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8" 9118} 9119 9120test "$HOME" != "$prefix" && \ 9121test -d "$HOME" && \ 9122(test $prefix = NONE || test "$HOME" != "$prefix") && { 9123 test -n "$verbose" && echo " ... testing for lib-directories under $HOME" 9124 test -d $HOME/lib && cf_search="$cf_search $HOME/lib" 9125 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8" 9126 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib" 9127 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib" 9128 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8" 9129} 9130 9131cf_search="$cf_library_path_list $cf_search" 9132 9133 for cf_cv_library_path_utf8 in $cf_search 9134 do 9135 if test -d $cf_cv_library_path_utf8 ; then 9136 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6 9137 9138echo "${as_me:-configure}:9138: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5 9139 9140 CPPFLAGS="$cf_test_CPPFLAGS" 9141 LIBS="-lutf8 $cf_save_LIBS" 9142 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8" 9143 cat >conftest.$ac_ext <<_ACEOF 9144#line 9144 "configure" 9145#include "confdefs.h" 9146 9147#include <libutf8.h> 9148int 9149main () 9150{ 9151putwc(0,0); 9152 ; 9153 return 0; 9154} 9155_ACEOF 9156rm -f conftest.$ac_objext conftest$ac_exeext 9157if { (eval echo "$as_me:9157: \"$ac_link\"") >&5 9158 (eval $ac_link) 2>&5 9159 ac_status=$? 9160 echo "$as_me:9160: \$? = $ac_status" >&5 9161 (exit $ac_status); } && 9162 { ac_try='test -s conftest$ac_exeext' 9163 { (eval echo "$as_me:9163: \"$ac_try\"") >&5 9164 (eval $ac_try) 2>&5 9165 ac_status=$? 9166 echo "$as_me:9166: \$? = $ac_status" >&5 9167 (exit $ac_status); }; }; then 9168 9169 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6 9170 9171echo "${as_me:-configure}:9171: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5 9172 9173 cf_cv_find_linkage_utf8=yes 9174 cf_cv_library_file_utf8="-lutf8" 9175 break 9176else 9177 echo "$as_me: failed program was:" >&5 9178cat conftest.$ac_ext >&5 9179 9180 CPPFLAGS="$cf_save_CPPFLAGS" 9181 LIBS="$cf_save_LIBS" 9182 LDFLAGS="$cf_save_LDFLAGS" 9183 9184fi 9185rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9186 fi 9187 done 9188 CPPFLAGS="$cf_save_CPPFLAGS" 9189 LDFLAGS="$cf_save_LDFLAGS" 9190 fi 9191 9192 else 9193 cf_cv_find_linkage_utf8=no 9194 fi 9195 9196fi 9197rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9198 9199fi 9200rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9201 9202LIBS="$cf_save_LIBS" 9203 9204if test "$cf_cv_find_linkage_utf8" = yes ; then 9205cf_cv_utf8_lib=add-on 9206else 9207cf_cv_utf8_lib=no 9208fi 9209 9210fi 9211rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9212fi 9213echo "$as_me:9213: result: $cf_cv_utf8_lib" >&5 9214echo "${ECHO_T}$cf_cv_utf8_lib" >&6 9215 9216# HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between 9217# ncurses/ncursesw: 9218if test "$cf_cv_utf8_lib" = "add-on" ; then 9219 cat >>confdefs.h <<\EOF 9220#define HAVE_LIBUTF8_H 1 9221EOF 9222 9223if test -n "$cf_cv_header_path_utf8" ; then 9224 for cf_add_incdir in $cf_cv_header_path_utf8 9225 do 9226 while test $cf_add_incdir != /usr/include 9227 do 9228 if test -d $cf_add_incdir 9229 then 9230 cf_have_incdir=no 9231 if test -n "$CFLAGS$CPPFLAGS" ; then 9232 # a loop is needed to ensure we can add subdirs of existing dirs 9233 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 9234 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 9235 cf_have_incdir=yes; break 9236 fi 9237 done 9238 fi 9239 9240 if test "$cf_have_incdir" = no ; then 9241 if test "$cf_add_incdir" = /usr/local/include ; then 9242 if test "$GCC" = yes 9243 then 9244 cf_save_CPPFLAGS=$CPPFLAGS 9245 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 9246 cat >conftest.$ac_ext <<_ACEOF 9247#line 9247 "configure" 9248#include "confdefs.h" 9249#include <stdio.h> 9250int 9251main () 9252{ 9253printf("Hello") 9254 ; 9255 return 0; 9256} 9257_ACEOF 9258rm -f conftest.$ac_objext 9259if { (eval echo "$as_me:9259: \"$ac_compile\"") >&5 9260 (eval $ac_compile) 2>&5 9261 ac_status=$? 9262 echo "$as_me:9262: \$? = $ac_status" >&5 9263 (exit $ac_status); } && 9264 { ac_try='test -s conftest.$ac_objext' 9265 { (eval echo "$as_me:9265: \"$ac_try\"") >&5 9266 (eval $ac_try) 2>&5 9267 ac_status=$? 9268 echo "$as_me:9268: \$? = $ac_status" >&5 9269 (exit $ac_status); }; }; then 9270 : 9271else 9272 echo "$as_me: failed program was:" >&5 9273cat conftest.$ac_ext >&5 9274cf_have_incdir=yes 9275fi 9276rm -f conftest.$ac_objext conftest.$ac_ext 9277 CPPFLAGS=$cf_save_CPPFLAGS 9278 fi 9279 fi 9280 fi 9281 9282 if test "$cf_have_incdir" = no ; then 9283 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 9284 9285echo "${as_me:-configure}:9285: testing adding $cf_add_incdir to include-path ..." 1>&5 9286 9287 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 9288 9289 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 9290 test "$cf_top_incdir" = "$cf_add_incdir" && break 9291 cf_add_incdir="$cf_top_incdir" 9292 else 9293 break 9294 fi 9295 fi 9296 done 9297 done 9298fi 9299 9300if test -n "$cf_cv_library_path_utf8" ; then 9301 for cf_add_libdir in $cf_cv_library_path_utf8 9302 do 9303 if test $cf_add_libdir = /usr/lib ; then 9304 : 9305 elif test -d $cf_add_libdir 9306 then 9307 cf_have_libdir=no 9308 if test -n "$LDFLAGS$LIBS" ; then 9309 # a loop is needed to ensure we can add subdirs of existing dirs 9310 for cf_test_libdir in $LDFLAGS $LIBS ; do 9311 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 9312 cf_have_libdir=yes; break 9313 fi 9314 done 9315 fi 9316 if test "$cf_have_libdir" = no ; then 9317 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 9318 9319echo "${as_me:-configure}:9319: testing adding $cf_add_libdir to library-path ..." 1>&5 9320 9321 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 9322 fi 9323 fi 9324 done 9325fi 9326 9327 LIBS="$cf_cv_library_file_utf8 $LIBS" 9328fi 9329 9330 fi 9331 9332cf_ncuconfig_root=$use_ncurses 9333 9334echo "Looking for ${cf_ncuconfig_root}-config" 9335for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config 9336do 9337 # Extract the first word of "$ac_prog", so it can be a program name with args. 9338set dummy $ac_prog; ac_word=$2 9339echo "$as_me:9339: checking for $ac_word" >&5 9340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9341if test "${ac_cv_path_NCURSES_CONFIG+set}" = set; then 9342 echo $ECHO_N "(cached) $ECHO_C" >&6 9343else 9344 case $NCURSES_CONFIG in 9345 [\\/]* | ?:[\\/]*) 9346 ac_cv_path_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test with a path. 9347 ;; 9348 *) 9349 ac_save_IFS=$IFS; IFS=$ac_path_separator 9350ac_dummy="$PATH" 9351for ac_dir in $ac_dummy; do 9352 IFS=$ac_save_IFS 9353 test -z "$ac_dir" && ac_dir=. 9354 if $as_executable_p "$ac_dir/$ac_word"; then 9355 ac_cv_path_NCURSES_CONFIG="$ac_dir/$ac_word" 9356 echo "$as_me:9356: found $ac_dir/$ac_word" >&5 9357 break 9358fi 9359done 9360 9361 ;; 9362esac 9363fi 9364NCURSES_CONFIG=$ac_cv_path_NCURSES_CONFIG 9365 9366if test -n "$NCURSES_CONFIG"; then 9367 echo "$as_me:9367: result: $NCURSES_CONFIG" >&5 9368echo "${ECHO_T}$NCURSES_CONFIG" >&6 9369else 9370 echo "$as_me:9370: result: no" >&5 9371echo "${ECHO_T}no" >&6 9372fi 9373 9374 test -n "$NCURSES_CONFIG" && break 9375done 9376test -n "$NCURSES_CONFIG" || NCURSES_CONFIG="none" 9377 9378if test "$NCURSES_CONFIG" != none ; then 9379 9380CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`" 9381LIBS="`$NCURSES_CONFIG --libs` $LIBS" 9382 9383# even with config script, some packages use no-override for curses.h 9384 9385echo "$as_me:9385: checking if we have identified curses headers" >&5 9386echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6 9387if test "${cf_cv_ncurses_header+set}" = set; then 9388 echo $ECHO_N "(cached) $ECHO_C" >&6 9389else 9390 9391cf_cv_ncurses_header=none 9392for cf_header in \ 9393 $use_ncurses/curses.h \ 9394 $use_ncurses/ncurses.h \ 9395 curses.h \ 9396 ncurses.h 9397do 9398cat >conftest.$ac_ext <<_ACEOF 9399#line 9399 "configure" 9400#include "confdefs.h" 9401#include <${cf_header}> 9402int 9403main () 9404{ 9405initscr(); tgoto("?", 0,0) 9406 ; 9407 return 0; 9408} 9409_ACEOF 9410rm -f conftest.$ac_objext 9411if { (eval echo "$as_me:9411: \"$ac_compile\"") >&5 9412 (eval $ac_compile) 2>&5 9413 ac_status=$? 9414 echo "$as_me:9414: \$? = $ac_status" >&5 9415 (exit $ac_status); } && 9416 { ac_try='test -s conftest.$ac_objext' 9417 { (eval echo "$as_me:9417: \"$ac_try\"") >&5 9418 (eval $ac_try) 2>&5 9419 ac_status=$? 9420 echo "$as_me:9420: \$? = $ac_status" >&5 9421 (exit $ac_status); }; }; then 9422 cf_cv_ncurses_header=$cf_header; break 9423else 9424 echo "$as_me: failed program was:" >&5 9425cat conftest.$ac_ext >&5 9426fi 9427rm -f conftest.$ac_objext conftest.$ac_ext 9428done 9429 9430fi 9431echo "$as_me:9431: result: $cf_cv_ncurses_header" >&5 9432echo "${ECHO_T}$cf_cv_ncurses_header" >&6 9433 9434if test "$cf_cv_ncurses_header" = none ; then 9435 { { echo "$as_me:9435: error: No curses header-files found" >&5 9436echo "$as_me: error: No curses header-files found" >&2;} 9437 { (exit 1); exit 1; }; } 9438fi 9439 9440# cheat, to get the right #define's for HAVE_NCURSES_H, etc. 9441 9442for ac_header in $cf_cv_ncurses_header 9443do 9444as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9445echo "$as_me:9445: checking for $ac_header" >&5 9446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9447if eval "test \"\${$as_ac_Header+set}\" = set"; then 9448 echo $ECHO_N "(cached) $ECHO_C" >&6 9449else 9450 cat >conftest.$ac_ext <<_ACEOF 9451#line 9451 "configure" 9452#include "confdefs.h" 9453#include <$ac_header> 9454_ACEOF 9455if { (eval echo "$as_me:9455: \"$ac_cpp conftest.$ac_ext\"") >&5 9456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9457 ac_status=$? 9458 egrep -v '^ *\+' conftest.er1 >conftest.err 9459 rm -f conftest.er1 9460 cat conftest.err >&5 9461 echo "$as_me:9461: \$? = $ac_status" >&5 9462 (exit $ac_status); } >/dev/null; then 9463 if test -s conftest.err; then 9464 ac_cpp_err=$ac_c_preproc_warn_flag 9465 else 9466 ac_cpp_err= 9467 fi 9468else 9469 ac_cpp_err=yes 9470fi 9471if test -z "$ac_cpp_err"; then 9472 eval "$as_ac_Header=yes" 9473else 9474 echo "$as_me: failed program was:" >&5 9475 cat conftest.$ac_ext >&5 9476 eval "$as_ac_Header=no" 9477fi 9478rm -f conftest.err conftest.$ac_ext 9479fi 9480echo "$as_me:9480: result: `eval echo '${'$as_ac_Header'}'`" >&5 9481echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9482if test `eval echo '${'$as_ac_Header'}'` = yes; then 9483 cat >>confdefs.h <<EOF 9484#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9485EOF 9486 9487fi 9488done 9489 9490cat >>confdefs.h <<\EOF 9491#define NCURSES 1 9492EOF 9493 9494cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 9495 9496cat >>confdefs.h <<EOF 9497#define $cf_nculib_ROOT 1 9498EOF 9499 9500cf_cv_ncurses_version=`$NCURSES_CONFIG --version` 9501 9502else 9503 9504cf_ncuhdr_root=$use_ncurses 9505 9506test -n "$cf_cv_curses_dir" && \ 9507test "$cf_cv_curses_dir" != "no" && { \ 9508 9509if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then 9510 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root 9511 do 9512 while test $cf_add_incdir != /usr/include 9513 do 9514 if test -d $cf_add_incdir 9515 then 9516 cf_have_incdir=no 9517 if test -n "$CFLAGS$CPPFLAGS" ; then 9518 # a loop is needed to ensure we can add subdirs of existing dirs 9519 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 9520 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 9521 cf_have_incdir=yes; break 9522 fi 9523 done 9524 fi 9525 9526 if test "$cf_have_incdir" = no ; then 9527 if test "$cf_add_incdir" = /usr/local/include ; then 9528 if test "$GCC" = yes 9529 then 9530 cf_save_CPPFLAGS=$CPPFLAGS 9531 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 9532 cat >conftest.$ac_ext <<_ACEOF 9533#line 9533 "configure" 9534#include "confdefs.h" 9535#include <stdio.h> 9536int 9537main () 9538{ 9539printf("Hello") 9540 ; 9541 return 0; 9542} 9543_ACEOF 9544rm -f conftest.$ac_objext 9545if { (eval echo "$as_me:9545: \"$ac_compile\"") >&5 9546 (eval $ac_compile) 2>&5 9547 ac_status=$? 9548 echo "$as_me:9548: \$? = $ac_status" >&5 9549 (exit $ac_status); } && 9550 { ac_try='test -s conftest.$ac_objext' 9551 { (eval echo "$as_me:9551: \"$ac_try\"") >&5 9552 (eval $ac_try) 2>&5 9553 ac_status=$? 9554 echo "$as_me:9554: \$? = $ac_status" >&5 9555 (exit $ac_status); }; }; then 9556 : 9557else 9558 echo "$as_me: failed program was:" >&5 9559cat conftest.$ac_ext >&5 9560cf_have_incdir=yes 9561fi 9562rm -f conftest.$ac_objext conftest.$ac_ext 9563 CPPFLAGS=$cf_save_CPPFLAGS 9564 fi 9565 fi 9566 fi 9567 9568 if test "$cf_have_incdir" = no ; then 9569 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 9570 9571echo "${as_me:-configure}:9571: testing adding $cf_add_incdir to include-path ..." 1>&5 9572 9573 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 9574 9575 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 9576 test "$cf_top_incdir" = "$cf_add_incdir" && break 9577 cf_add_incdir="$cf_top_incdir" 9578 else 9579 break 9580 fi 9581 fi 9582 done 9583 done 9584fi 9585 9586} 9587 9588echo "$as_me:9588: checking for $cf_ncuhdr_root header in include-path" >&5 9589echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6 9590if test "${cf_cv_ncurses_h+set}" = set; then 9591 echo $ECHO_N "(cached) $ECHO_C" >&6 9592else 9593 9594 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h" 9595 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h" 9596 for cf_header in $cf_header_list 9597 do 9598 9599 cat >conftest.$ac_ext <<_ACEOF 9600#line 9600 "configure" 9601#include "confdefs.h" 9602 9603#include <$cf_header> 9604int 9605main () 9606{ 9607 9608#ifdef NCURSES_VERSION 9609 9610printf("%s\n", NCURSES_VERSION); 9611#else 9612#ifdef __NCURSES_H 9613printf("old\n"); 9614#else 9615 make an error 9616#endif 9617#endif 9618 9619 ; 9620 return 0; 9621} 9622_ACEOF 9623rm -f conftest.$ac_objext 9624if { (eval echo "$as_me:9624: \"$ac_compile\"") >&5 9625 (eval $ac_compile) 2>&5 9626 ac_status=$? 9627 echo "$as_me:9627: \$? = $ac_status" >&5 9628 (exit $ac_status); } && 9629 { ac_try='test -s conftest.$ac_objext' 9630 { (eval echo "$as_me:9630: \"$ac_try\"") >&5 9631 (eval $ac_try) 2>&5 9632 ac_status=$? 9633 echo "$as_me:9633: \$? = $ac_status" >&5 9634 (exit $ac_status); }; }; then 9635 cf_cv_ncurses_h=$cf_header 9636 9637else 9638 echo "$as_me: failed program was:" >&5 9639cat conftest.$ac_ext >&5 9640cf_cv_ncurses_h=no 9641fi 9642rm -f conftest.$ac_objext conftest.$ac_ext 9643 9644 test "$cf_cv_ncurses_h" != no && break 9645 done 9646 9647fi 9648echo "$as_me:9648: result: $cf_cv_ncurses_h" >&5 9649echo "${ECHO_T}$cf_cv_ncurses_h" >&6 9650 9651if test "$cf_cv_ncurses_h" != no ; then 9652 cf_cv_ncurses_header=$cf_cv_ncurses_h 9653else 9654 9655echo "$as_me:9655: checking for $cf_ncuhdr_root include-path" >&5 9656echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6 9657if test "${cf_cv_ncurses_h2+set}" = set; then 9658 echo $ECHO_N "(cached) $ECHO_C" >&6 9659else 9660 9661 test -n "$verbose" && echo 9662 9663cf_search= 9664 9665# collect the current set of include-directories from compiler flags 9666cf_header_path_list="" 9667if test -n "${CFLAGS}${CPPFLAGS}" ; then 9668 for cf_header_path in $CPPFLAGS $CFLAGS 9669 do 9670 case $cf_header_path in #(vi 9671 -I*) 9672 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'` 9673 9674test "$cf_header_path" != "NONE" && \ 9675test -d "$cf_header_path" && \ 9676 { 9677 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path" 9678 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include" 9679 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root" 9680 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include" 9681 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include" 9682 test -d $cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root" 9683} 9684 9685 cf_header_path_list="$cf_header_path_list $cf_search" 9686 ;; 9687 esac 9688 done 9689fi 9690 9691# add the variations for the package we are looking for 9692 9693cf_search= 9694 9695test "/usr" != "$prefix" && \ 9696test -d "/usr" && \ 9697(test $prefix = NONE || test "/usr" != "$prefix") && { 9698 test -n "$verbose" && echo " ... testing for include-directories under /usr" 9699 test -d /usr/include && cf_search="$cf_search /usr/include" 9700 test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root" 9701 test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include" 9702 test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include" 9703 test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root" 9704} 9705 9706test "$prefix" != "NONE" && \ 9707test -d "$prefix" && \ 9708 { 9709 test -n "$verbose" && echo " ... testing for include-directories under $prefix" 9710 test -d $prefix/include && cf_search="$cf_search $prefix/include" 9711 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root" 9712 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include" 9713 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include" 9714 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root" 9715} 9716 9717test "/usr/local" != "$prefix" && \ 9718test -d "/usr/local" && \ 9719(test $prefix = NONE || test "/usr/local" != "$prefix") && { 9720 test -n "$verbose" && echo " ... testing for include-directories under /usr/local" 9721 test -d /usr/local/include && cf_search="$cf_search /usr/local/include" 9722 test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root" 9723 test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include" 9724 test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include" 9725 test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root" 9726} 9727 9728test "/opt" != "$prefix" && \ 9729test -d "/opt" && \ 9730(test $prefix = NONE || test "/opt" != "$prefix") && { 9731 test -n "$verbose" && echo " ... testing for include-directories under /opt" 9732 test -d /opt/include && cf_search="$cf_search /opt/include" 9733 test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root" 9734 test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include" 9735 test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include" 9736 test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root" 9737} 9738 9739test "$HOME" != "$prefix" && \ 9740test -d "$HOME" && \ 9741(test $prefix = NONE || test "$HOME" != "$prefix") && { 9742 test -n "$verbose" && echo " ... testing for include-directories under $HOME" 9743 test -d $HOME/include && cf_search="$cf_search $HOME/include" 9744 test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root" 9745 test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include" 9746 test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include" 9747 test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root" 9748} 9749 9750test "$includedir" != NONE && \ 9751test "$includedir" != "/usr/include" && \ 9752test -d "$includedir" && { 9753 test -d $includedir && cf_search="$cf_search $includedir" 9754 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root" 9755} 9756 9757test "$oldincludedir" != NONE && \ 9758test "$oldincludedir" != "/usr/include" && \ 9759test -d "$oldincludedir" && { 9760 test -d $oldincludedir && cf_search="$cf_search $oldincludedir" 9761 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root" 9762} 9763 9764cf_search="$cf_search $cf_header_path_list" 9765 9766 test -n "$verbose" && echo search path $cf_search 9767 cf_save2_CPPFLAGS="$CPPFLAGS" 9768 for cf_incdir in $cf_search 9769 do 9770 9771if test -n "$cf_incdir" ; then 9772 for cf_add_incdir in $cf_incdir 9773 do 9774 while test $cf_add_incdir != /usr/include 9775 do 9776 if test -d $cf_add_incdir 9777 then 9778 cf_have_incdir=no 9779 if test -n "$CFLAGS$CPPFLAGS" ; then 9780 # a loop is needed to ensure we can add subdirs of existing dirs 9781 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 9782 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 9783 cf_have_incdir=yes; break 9784 fi 9785 done 9786 fi 9787 9788 if test "$cf_have_incdir" = no ; then 9789 if test "$cf_add_incdir" = /usr/local/include ; then 9790 if test "$GCC" = yes 9791 then 9792 cf_save_CPPFLAGS=$CPPFLAGS 9793 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 9794 cat >conftest.$ac_ext <<_ACEOF 9795#line 9795 "configure" 9796#include "confdefs.h" 9797#include <stdio.h> 9798int 9799main () 9800{ 9801printf("Hello") 9802 ; 9803 return 0; 9804} 9805_ACEOF 9806rm -f conftest.$ac_objext 9807if { (eval echo "$as_me:9807: \"$ac_compile\"") >&5 9808 (eval $ac_compile) 2>&5 9809 ac_status=$? 9810 echo "$as_me:9810: \$? = $ac_status" >&5 9811 (exit $ac_status); } && 9812 { ac_try='test -s conftest.$ac_objext' 9813 { (eval echo "$as_me:9813: \"$ac_try\"") >&5 9814 (eval $ac_try) 2>&5 9815 ac_status=$? 9816 echo "$as_me:9816: \$? = $ac_status" >&5 9817 (exit $ac_status); }; }; then 9818 : 9819else 9820 echo "$as_me: failed program was:" >&5 9821cat conftest.$ac_ext >&5 9822cf_have_incdir=yes 9823fi 9824rm -f conftest.$ac_objext conftest.$ac_ext 9825 CPPFLAGS=$cf_save_CPPFLAGS 9826 fi 9827 fi 9828 fi 9829 9830 if test "$cf_have_incdir" = no ; then 9831 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 9832 9833echo "${as_me:-configure}:9833: testing adding $cf_add_incdir to include-path ..." 1>&5 9834 9835 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 9836 9837 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 9838 test "$cf_top_incdir" = "$cf_add_incdir" && break 9839 cf_add_incdir="$cf_top_incdir" 9840 else 9841 break 9842 fi 9843 fi 9844 done 9845 done 9846fi 9847 9848 for cf_header in \ 9849 ncurses.h \ 9850 curses.h 9851 do 9852 9853 cat >conftest.$ac_ext <<_ACEOF 9854#line 9854 "configure" 9855#include "confdefs.h" 9856 9857#include <$cf_header> 9858int 9859main () 9860{ 9861 9862#ifdef NCURSES_VERSION 9863 9864printf("%s\n", NCURSES_VERSION); 9865#else 9866#ifdef __NCURSES_H 9867printf("old\n"); 9868#else 9869 make an error 9870#endif 9871#endif 9872 9873 ; 9874 return 0; 9875} 9876_ACEOF 9877rm -f conftest.$ac_objext 9878if { (eval echo "$as_me:9878: \"$ac_compile\"") >&5 9879 (eval $ac_compile) 2>&5 9880 ac_status=$? 9881 echo "$as_me:9881: \$? = $ac_status" >&5 9882 (exit $ac_status); } && 9883 { ac_try='test -s conftest.$ac_objext' 9884 { (eval echo "$as_me:9884: \"$ac_try\"") >&5 9885 (eval $ac_try) 2>&5 9886 ac_status=$? 9887 echo "$as_me:9887: \$? = $ac_status" >&5 9888 (exit $ac_status); }; }; then 9889 cf_cv_ncurses_h2=$cf_header 9890 9891else 9892 echo "$as_me: failed program was:" >&5 9893cat conftest.$ac_ext >&5 9894cf_cv_ncurses_h2=no 9895fi 9896rm -f conftest.$ac_objext conftest.$ac_ext 9897 9898 if test "$cf_cv_ncurses_h2" != no ; then 9899 cf_cv_ncurses_h2=$cf_incdir/$cf_header 9900 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6 9901 break 9902 fi 9903 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6 9904 done 9905 CPPFLAGS="$cf_save2_CPPFLAGS" 9906 test "$cf_cv_ncurses_h2" != no && break 9907 done 9908 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:9908: error: not found" >&5 9909echo "$as_me: error: not found" >&2;} 9910 { (exit 1); exit 1; }; } 9911 9912fi 9913echo "$as_me:9913: result: $cf_cv_ncurses_h2" >&5 9914echo "${ECHO_T}$cf_cv_ncurses_h2" >&6 9915 9916 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'` 9917 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2` 9918 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then 9919 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header 9920 fi 9921 9922if test -n "$cf_1st_incdir" ; then 9923 for cf_add_incdir in $cf_1st_incdir 9924 do 9925 while test $cf_add_incdir != /usr/include 9926 do 9927 if test -d $cf_add_incdir 9928 then 9929 cf_have_incdir=no 9930 if test -n "$CFLAGS$CPPFLAGS" ; then 9931 # a loop is needed to ensure we can add subdirs of existing dirs 9932 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 9933 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 9934 cf_have_incdir=yes; break 9935 fi 9936 done 9937 fi 9938 9939 if test "$cf_have_incdir" = no ; then 9940 if test "$cf_add_incdir" = /usr/local/include ; then 9941 if test "$GCC" = yes 9942 then 9943 cf_save_CPPFLAGS=$CPPFLAGS 9944 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 9945 cat >conftest.$ac_ext <<_ACEOF 9946#line 9946 "configure" 9947#include "confdefs.h" 9948#include <stdio.h> 9949int 9950main () 9951{ 9952printf("Hello") 9953 ; 9954 return 0; 9955} 9956_ACEOF 9957rm -f conftest.$ac_objext 9958if { (eval echo "$as_me:9958: \"$ac_compile\"") >&5 9959 (eval $ac_compile) 2>&5 9960 ac_status=$? 9961 echo "$as_me:9961: \$? = $ac_status" >&5 9962 (exit $ac_status); } && 9963 { ac_try='test -s conftest.$ac_objext' 9964 { (eval echo "$as_me:9964: \"$ac_try\"") >&5 9965 (eval $ac_try) 2>&5 9966 ac_status=$? 9967 echo "$as_me:9967: \$? = $ac_status" >&5 9968 (exit $ac_status); }; }; then 9969 : 9970else 9971 echo "$as_me: failed program was:" >&5 9972cat conftest.$ac_ext >&5 9973cf_have_incdir=yes 9974fi 9975rm -f conftest.$ac_objext conftest.$ac_ext 9976 CPPFLAGS=$cf_save_CPPFLAGS 9977 fi 9978 fi 9979 fi 9980 9981 if test "$cf_have_incdir" = no ; then 9982 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 9983 9984echo "${as_me:-configure}:9984: testing adding $cf_add_incdir to include-path ..." 1>&5 9985 9986 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 9987 9988 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 9989 test "$cf_top_incdir" = "$cf_add_incdir" && break 9990 cf_add_incdir="$cf_top_incdir" 9991 else 9992 break 9993 fi 9994 fi 9995 done 9996 done 9997fi 9998 9999fi 10000 10001# Set definitions to allow ifdef'ing for ncurses.h 10002 10003case $cf_cv_ncurses_header in # (vi 10004*ncurses.h) 10005 cat >>confdefs.h <<\EOF 10006#define HAVE_NCURSES_H 1 10007EOF 10008 10009 ;; 10010esac 10011 10012case $cf_cv_ncurses_header in # (vi 10013ncurses/curses.h|ncurses/ncurses.h) 10014 cat >>confdefs.h <<\EOF 10015#define HAVE_NCURSES_NCURSES_H 1 10016EOF 10017 10018 ;; 10019ncursesw/curses.h|ncursesw/ncurses.h) 10020 cat >>confdefs.h <<\EOF 10021#define HAVE_NCURSESW_NCURSES_H 1 10022EOF 10023 10024 ;; 10025esac 10026 10027echo "$as_me:10027: checking for terminfo header" >&5 10028echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6 10029if test "${cf_cv_term_header+set}" = set; then 10030 echo $ECHO_N "(cached) $ECHO_C" >&6 10031else 10032 10033case ${cf_cv_ncurses_header} in #(vi 10034*/ncurses.h|*/ncursesw.h) #(vi 10035 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'` 10036 ;; 10037*) 10038 cf_term_header=term.h 10039 ;; 10040esac 10041 10042for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h" 10043do 10044cat >conftest.$ac_ext <<_ACEOF 10045#line 10045 "configure" 10046#include "confdefs.h" 10047#include <stdio.h> 10048#include <${cf_cv_ncurses_header:-curses.h}> 10049#include <$cf_test> 10050 10051int 10052main () 10053{ 10054int x = auto_left_margin 10055 ; 10056 return 0; 10057} 10058_ACEOF 10059rm -f conftest.$ac_objext 10060if { (eval echo "$as_me:10060: \"$ac_compile\"") >&5 10061 (eval $ac_compile) 2>&5 10062 ac_status=$? 10063 echo "$as_me:10063: \$? = $ac_status" >&5 10064 (exit $ac_status); } && 10065 { ac_try='test -s conftest.$ac_objext' 10066 { (eval echo "$as_me:10066: \"$ac_try\"") >&5 10067 (eval $ac_try) 2>&5 10068 ac_status=$? 10069 echo "$as_me:10069: \$? = $ac_status" >&5 10070 (exit $ac_status); }; }; then 10071 10072 cf_cv_term_header="$cf_test" 10073else 10074 echo "$as_me: failed program was:" >&5 10075cat conftest.$ac_ext >&5 10076 10077 cf_cv_term_header=unknown 10078 10079fi 10080rm -f conftest.$ac_objext conftest.$ac_ext 10081 test "$cf_cv_term_header" != unknown && break 10082done 10083 10084fi 10085echo "$as_me:10085: result: $cf_cv_term_header" >&5 10086echo "${ECHO_T}$cf_cv_term_header" >&6 10087 10088# Set definitions to allow ifdef'ing to accommodate subdirectories 10089 10090case $cf_cv_term_header in # (vi 10091*term.h) 10092 cat >>confdefs.h <<\EOF 10093#define HAVE_TERM_H 1 10094EOF 10095 10096 ;; 10097esac 10098 10099case $cf_cv_term_header in # (vi 10100ncurses/term.h) #(vi 10101 cat >>confdefs.h <<\EOF 10102#define HAVE_NCURSES_TERM_H 1 10103EOF 10104 10105 ;; 10106ncursesw/term.h) 10107 cat >>confdefs.h <<\EOF 10108#define HAVE_NCURSESW_TERM_H 1 10109EOF 10110 10111 ;; 10112esac 10113 10114# some applications need this, but should check for NCURSES_VERSION 10115cat >>confdefs.h <<\EOF 10116#define NCURSES 1 10117EOF 10118 10119echo "$as_me:10119: checking for ncurses version" >&5 10120echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6 10121if test "${cf_cv_ncurses_version+set}" = set; then 10122 echo $ECHO_N "(cached) $ECHO_C" >&6 10123else 10124 10125 cf_cv_ncurses_version=no 10126 cf_tempfile=out$$ 10127 rm -f $cf_tempfile 10128 if test "$cross_compiling" = yes; then 10129 10130 # This will not work if the preprocessor splits the line after the 10131 # Autoconf token. The 'unproto' program does that. 10132 cat > conftest.$ac_ext <<EOF 10133#include <${cf_cv_ncurses_header:-curses.h}> 10134#undef Autoconf 10135#ifdef NCURSES_VERSION 10136Autoconf NCURSES_VERSION 10137#else 10138#ifdef __NCURSES_H 10139Autoconf "old" 10140#endif 10141; 10142#endif 10143EOF 10144 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out" 10145 { (eval echo "$as_me:10145: \"$cf_try\"") >&5 10146 (eval $cf_try) 2>&5 10147 ac_status=$? 10148 echo "$as_me:10148: \$? = $ac_status" >&5 10149 (exit $ac_status); } 10150 if test -f conftest.out ; then 10151 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'` 10152 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out" 10153 rm -f conftest.out 10154 fi 10155 10156else 10157 cat >conftest.$ac_ext <<_ACEOF 10158#line 10158 "configure" 10159#include "confdefs.h" 10160 10161#include <${cf_cv_ncurses_header:-curses.h}> 10162#include <stdio.h> 10163int main() 10164{ 10165 FILE *fp = fopen("$cf_tempfile", "w"); 10166#ifdef NCURSES_VERSION 10167# ifdef NCURSES_VERSION_PATCH 10168 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH); 10169# else 10170 fprintf(fp, "%s\n", NCURSES_VERSION); 10171# endif 10172#else 10173# ifdef __NCURSES_H 10174 fprintf(fp, "old\n"); 10175# else 10176 make an error 10177# endif 10178#endif 10179 ${cf_cv_main_return:-return}(0); 10180} 10181_ACEOF 10182rm -f conftest$ac_exeext 10183if { (eval echo "$as_me:10183: \"$ac_link\"") >&5 10184 (eval $ac_link) 2>&5 10185 ac_status=$? 10186 echo "$as_me:10186: \$? = $ac_status" >&5 10187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10188 { (eval echo "$as_me:10188: \"$ac_try\"") >&5 10189 (eval $ac_try) 2>&5 10190 ac_status=$? 10191 echo "$as_me:10191: \$? = $ac_status" >&5 10192 (exit $ac_status); }; }; then 10193 10194 cf_cv_ncurses_version=`cat $cf_tempfile` 10195else 10196 echo "$as_me: program exited with status $ac_status" >&5 10197echo "$as_me: failed program was:" >&5 10198cat conftest.$ac_ext >&5 10199fi 10200rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10201fi 10202 rm -f $cf_tempfile 10203 10204fi 10205echo "$as_me:10205: result: $cf_cv_ncurses_version" >&5 10206echo "${ECHO_T}$cf_cv_ncurses_version" >&6 10207test "$cf_cv_ncurses_version" = no || cat >>confdefs.h <<\EOF 10208#define NCURSES 1 10209EOF 10210 10211cf_nculib_root=$use_ncurses 10212 # This works, except for the special case where we find gpm, but 10213 # ncurses is in a nonstandard location via $LIBS, and we really want 10214 # to link gpm. 10215cf_ncurses_LIBS="" 10216cf_ncurses_SAVE="$LIBS" 10217echo "$as_me:10217: checking for Gpm_Open in -lgpm" >&5 10218echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6 10219if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then 10220 echo $ECHO_N "(cached) $ECHO_C" >&6 10221else 10222 ac_check_lib_save_LIBS=$LIBS 10223LIBS="-lgpm $LIBS" 10224cat >conftest.$ac_ext <<_ACEOF 10225#line 10225 "configure" 10226#include "confdefs.h" 10227 10228/* Override any gcc2 internal prototype to avoid an error. */ 10229#ifdef __cplusplus 10230extern "C" 10231#endif 10232/* We use char because int might match the return type of a gcc2 10233 builtin and then its argument prototype would still apply. */ 10234char Gpm_Open (); 10235int 10236main () 10237{ 10238Gpm_Open (); 10239 ; 10240 return 0; 10241} 10242_ACEOF 10243rm -f conftest.$ac_objext conftest$ac_exeext 10244if { (eval echo "$as_me:10244: \"$ac_link\"") >&5 10245 (eval $ac_link) 2>&5 10246 ac_status=$? 10247 echo "$as_me:10247: \$? = $ac_status" >&5 10248 (exit $ac_status); } && 10249 { ac_try='test -s conftest$ac_exeext' 10250 { (eval echo "$as_me:10250: \"$ac_try\"") >&5 10251 (eval $ac_try) 2>&5 10252 ac_status=$? 10253 echo "$as_me:10253: \$? = $ac_status" >&5 10254 (exit $ac_status); }; }; then 10255 ac_cv_lib_gpm_Gpm_Open=yes 10256else 10257 echo "$as_me: failed program was:" >&5 10258cat conftest.$ac_ext >&5 10259ac_cv_lib_gpm_Gpm_Open=no 10260fi 10261rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10262LIBS=$ac_check_lib_save_LIBS 10263fi 10264echo "$as_me:10264: result: $ac_cv_lib_gpm_Gpm_Open" >&5 10265echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6 10266if test $ac_cv_lib_gpm_Gpm_Open = yes; then 10267 echo "$as_me:10267: checking for initscr in -lgpm" >&5 10268echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6 10269if test "${ac_cv_lib_gpm_initscr+set}" = set; then 10270 echo $ECHO_N "(cached) $ECHO_C" >&6 10271else 10272 ac_check_lib_save_LIBS=$LIBS 10273LIBS="-lgpm $LIBS" 10274cat >conftest.$ac_ext <<_ACEOF 10275#line 10275 "configure" 10276#include "confdefs.h" 10277 10278/* Override any gcc2 internal prototype to avoid an error. */ 10279#ifdef __cplusplus 10280extern "C" 10281#endif 10282/* We use char because int might match the return type of a gcc2 10283 builtin and then its argument prototype would still apply. */ 10284char initscr (); 10285int 10286main () 10287{ 10288initscr (); 10289 ; 10290 return 0; 10291} 10292_ACEOF 10293rm -f conftest.$ac_objext conftest$ac_exeext 10294if { (eval echo "$as_me:10294: \"$ac_link\"") >&5 10295 (eval $ac_link) 2>&5 10296 ac_status=$? 10297 echo "$as_me:10297: \$? = $ac_status" >&5 10298 (exit $ac_status); } && 10299 { ac_try='test -s conftest$ac_exeext' 10300 { (eval echo "$as_me:10300: \"$ac_try\"") >&5 10301 (eval $ac_try) 2>&5 10302 ac_status=$? 10303 echo "$as_me:10303: \$? = $ac_status" >&5 10304 (exit $ac_status); }; }; then 10305 ac_cv_lib_gpm_initscr=yes 10306else 10307 echo "$as_me: failed program was:" >&5 10308cat conftest.$ac_ext >&5 10309ac_cv_lib_gpm_initscr=no 10310fi 10311rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10312LIBS=$ac_check_lib_save_LIBS 10313fi 10314echo "$as_me:10314: result: $ac_cv_lib_gpm_initscr" >&5 10315echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6 10316if test $ac_cv_lib_gpm_initscr = yes; then 10317 LIBS="$cf_ncurses_SAVE" 10318else 10319 cf_ncurses_LIBS="-lgpm" 10320fi 10321 10322fi 10323 10324case $host_os in #(vi 10325freebsd*) 10326 # This is only necessary if you are linking against an obsolete 10327 # version of ncurses (but it should do no harm, since it's static). 10328 if test "$cf_nculib_root" = ncurses ; then 10329 echo "$as_me:10329: checking for tgoto in -lmytinfo" >&5 10330echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6 10331if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then 10332 echo $ECHO_N "(cached) $ECHO_C" >&6 10333else 10334 ac_check_lib_save_LIBS=$LIBS 10335LIBS="-lmytinfo $LIBS" 10336cat >conftest.$ac_ext <<_ACEOF 10337#line 10337 "configure" 10338#include "confdefs.h" 10339 10340/* Override any gcc2 internal prototype to avoid an error. */ 10341#ifdef __cplusplus 10342extern "C" 10343#endif 10344/* We use char because int might match the return type of a gcc2 10345 builtin and then its argument prototype would still apply. */ 10346char tgoto (); 10347int 10348main () 10349{ 10350tgoto (); 10351 ; 10352 return 0; 10353} 10354_ACEOF 10355rm -f conftest.$ac_objext conftest$ac_exeext 10356if { (eval echo "$as_me:10356: \"$ac_link\"") >&5 10357 (eval $ac_link) 2>&5 10358 ac_status=$? 10359 echo "$as_me:10359: \$? = $ac_status" >&5 10360 (exit $ac_status); } && 10361 { ac_try='test -s conftest$ac_exeext' 10362 { (eval echo "$as_me:10362: \"$ac_try\"") >&5 10363 (eval $ac_try) 2>&5 10364 ac_status=$? 10365 echo "$as_me:10365: \$? = $ac_status" >&5 10366 (exit $ac_status); }; }; then 10367 ac_cv_lib_mytinfo_tgoto=yes 10368else 10369 echo "$as_me: failed program was:" >&5 10370cat conftest.$ac_ext >&5 10371ac_cv_lib_mytinfo_tgoto=no 10372fi 10373rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10374LIBS=$ac_check_lib_save_LIBS 10375fi 10376echo "$as_me:10376: result: $ac_cv_lib_mytinfo_tgoto" >&5 10377echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6 10378if test $ac_cv_lib_mytinfo_tgoto = yes; then 10379 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS" 10380fi 10381 10382 fi 10383 ;; 10384esac 10385 10386LIBS="$cf_ncurses_LIBS $LIBS" 10387 10388if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" ) 10389then 10390 LIBS="-l$cf_nculib_root $LIBS" 10391else 10392 10393 eval 'cf_cv_have_lib_'$cf_nculib_root'=no' 10394 cf_libdir="" 10395 echo "$as_me:10395: checking for initscr" >&5 10396echo $ECHO_N "checking for initscr... $ECHO_C" >&6 10397if test "${ac_cv_func_initscr+set}" = set; then 10398 echo $ECHO_N "(cached) $ECHO_C" >&6 10399else 10400 cat >conftest.$ac_ext <<_ACEOF 10401#line 10401 "configure" 10402#include "confdefs.h" 10403/* System header to define __stub macros and hopefully few prototypes, 10404 which can conflict with char initscr (); below. */ 10405#include <assert.h> 10406/* Override any gcc2 internal prototype to avoid an error. */ 10407#ifdef __cplusplus 10408extern "C" 10409#endif 10410/* We use char because int might match the return type of a gcc2 10411 builtin and then its argument prototype would still apply. */ 10412char initscr (); 10413char (*f) (); 10414 10415int 10416main () 10417{ 10418/* The GNU C library defines this for functions which it implements 10419 to always fail with ENOSYS. Some functions are actually named 10420 something starting with __ and the normal name is an alias. */ 10421#if defined (__stub_initscr) || defined (__stub___initscr) 10422choke me 10423#else 10424f = initscr; 10425#endif 10426 10427 ; 10428 return 0; 10429} 10430_ACEOF 10431rm -f conftest.$ac_objext conftest$ac_exeext 10432if { (eval echo "$as_me:10432: \"$ac_link\"") >&5 10433 (eval $ac_link) 2>&5 10434 ac_status=$? 10435 echo "$as_me:10435: \$? = $ac_status" >&5 10436 (exit $ac_status); } && 10437 { ac_try='test -s conftest$ac_exeext' 10438 { (eval echo "$as_me:10438: \"$ac_try\"") >&5 10439 (eval $ac_try) 2>&5 10440 ac_status=$? 10441 echo "$as_me:10441: \$? = $ac_status" >&5 10442 (exit $ac_status); }; }; then 10443 ac_cv_func_initscr=yes 10444else 10445 echo "$as_me: failed program was:" >&5 10446cat conftest.$ac_ext >&5 10447ac_cv_func_initscr=no 10448fi 10449rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10450fi 10451echo "$as_me:10451: result: $ac_cv_func_initscr" >&5 10452echo "${ECHO_T}$ac_cv_func_initscr" >&6 10453if test $ac_cv_func_initscr = yes; then 10454 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes' 10455else 10456 10457 cf_save_LIBS="$LIBS" 10458 echo "$as_me:10458: checking for initscr in -l$cf_nculib_root" >&5 10459echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6 10460 LIBS="-l$cf_nculib_root $LIBS" 10461 cat >conftest.$ac_ext <<_ACEOF 10462#line 10462 "configure" 10463#include "confdefs.h" 10464#include <${cf_cv_ncurses_header:-curses.h}> 10465int 10466main () 10467{ 10468initscr() 10469 ; 10470 return 0; 10471} 10472_ACEOF 10473rm -f conftest.$ac_objext conftest$ac_exeext 10474if { (eval echo "$as_me:10474: \"$ac_link\"") >&5 10475 (eval $ac_link) 2>&5 10476 ac_status=$? 10477 echo "$as_me:10477: \$? = $ac_status" >&5 10478 (exit $ac_status); } && 10479 { ac_try='test -s conftest$ac_exeext' 10480 { (eval echo "$as_me:10480: \"$ac_try\"") >&5 10481 (eval $ac_try) 2>&5 10482 ac_status=$? 10483 echo "$as_me:10483: \$? = $ac_status" >&5 10484 (exit $ac_status); }; }; then 10485 echo "$as_me:10485: result: yes" >&5 10486echo "${ECHO_T}yes" >&6 10487 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes' 10488 10489else 10490 echo "$as_me: failed program was:" >&5 10491cat conftest.$ac_ext >&5 10492echo "$as_me:10492: result: no" >&5 10493echo "${ECHO_T}no" >&6 10494 10495cf_search= 10496cf_library_path_list="" 10497if test -n "${LDFLAGS}${LIBS}" ; then 10498 for cf_library_path in $LDFLAGS $LIBS 10499 do 10500 case $cf_library_path in #(vi 10501 -L*) 10502 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'` 10503 10504test "$cf_library_path" != "NONE" && \ 10505test -d "$cf_library_path" && \ 10506 { 10507 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path" 10508 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib" 10509 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root" 10510 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib" 10511 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib" 10512 test -d $cf_library_path/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib/$cf_nculib_root" 10513} 10514 10515 cf_library_path_list="$cf_library_path_list $cf_search" 10516 ;; 10517 esac 10518 done 10519fi 10520 10521cf_search= 10522 10523test "/usr" != "$prefix" && \ 10524test -d "/usr" && \ 10525(test $prefix = NONE || test "/usr" != "$prefix") && { 10526 test -n "$verbose" && echo " ... testing for lib-directories under /usr" 10527 test -d /usr/lib && cf_search="$cf_search /usr/lib" 10528 test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root" 10529 test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib" 10530 test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib" 10531 test -d /usr/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/$cf_nculib_root/lib/$cf_nculib_root" 10532} 10533 10534test "$prefix" != "NONE" && \ 10535test -d "$prefix" && \ 10536 { 10537 test -n "$verbose" && echo " ... testing for lib-directories under $prefix" 10538 test -d $prefix/lib && cf_search="$cf_search $prefix/lib" 10539 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root" 10540 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib" 10541 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib" 10542 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root" 10543} 10544 10545test "/usr/local" != "$prefix" && \ 10546test -d "/usr/local" && \ 10547(test $prefix = NONE || test "/usr/local" != "$prefix") && { 10548 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local" 10549 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib" 10550 test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root" 10551 test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib" 10552 test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib" 10553 test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root" 10554} 10555 10556test "/opt" != "$prefix" && \ 10557test -d "/opt" && \ 10558(test $prefix = NONE || test "/opt" != "$prefix") && { 10559 test -n "$verbose" && echo " ... testing for lib-directories under /opt" 10560 test -d /opt/lib && cf_search="$cf_search /opt/lib" 10561 test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root" 10562 test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib" 10563 test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib" 10564 test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root" 10565} 10566 10567test "$HOME" != "$prefix" && \ 10568test -d "$HOME" && \ 10569(test $prefix = NONE || test "$HOME" != "$prefix") && { 10570 test -n "$verbose" && echo " ... testing for lib-directories under $HOME" 10571 test -d $HOME/lib && cf_search="$cf_search $HOME/lib" 10572 test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root" 10573 test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib" 10574 test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib" 10575 test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root" 10576} 10577 10578cf_search="$cf_library_path_list $cf_search" 10579 10580 for cf_libdir in $cf_search 10581 do 10582 echo "$as_me:10582: checking for -l$cf_nculib_root in $cf_libdir" >&5 10583echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6 10584 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS" 10585 cat >conftest.$ac_ext <<_ACEOF 10586#line 10586 "configure" 10587#include "confdefs.h" 10588#include <${cf_cv_ncurses_header:-curses.h}> 10589int 10590main () 10591{ 10592initscr() 10593 ; 10594 return 0; 10595} 10596_ACEOF 10597rm -f conftest.$ac_objext conftest$ac_exeext 10598if { (eval echo "$as_me:10598: \"$ac_link\"") >&5 10599 (eval $ac_link) 2>&5 10600 ac_status=$? 10601 echo "$as_me:10601: \$? = $ac_status" >&5 10602 (exit $ac_status); } && 10603 { ac_try='test -s conftest$ac_exeext' 10604 { (eval echo "$as_me:10604: \"$ac_try\"") >&5 10605 (eval $ac_try) 2>&5 10606 ac_status=$? 10607 echo "$as_me:10607: \$? = $ac_status" >&5 10608 (exit $ac_status); }; }; then 10609 echo "$as_me:10609: result: yes" >&5 10610echo "${ECHO_T}yes" >&6 10611 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes' 10612 break 10613else 10614 echo "$as_me: failed program was:" >&5 10615cat conftest.$ac_ext >&5 10616echo "$as_me:10616: result: no" >&5 10617echo "${ECHO_T}no" >&6 10618 LIBS="$cf_save_LIBS" 10619fi 10620rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10621 done 10622 10623fi 10624rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10625 10626fi 10627 10628eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root 10629 10630if test $cf_found_library = no ; then 10631 { { echo "$as_me:10631: error: Cannot link $cf_nculib_root library" >&5 10632echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;} 10633 { (exit 1); exit 1; }; } 10634fi 10635 10636fi 10637 10638if test -n "$cf_ncurses_LIBS" ; then 10639 echo "$as_me:10639: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5 10640echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6 10641 cf_ncurses_SAVE="$LIBS" 10642 for p in $cf_ncurses_LIBS ; do 10643 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"` 10644 if test "$q" != "$LIBS" ; then 10645 LIBS="$q" 10646 fi 10647 done 10648 cat >conftest.$ac_ext <<_ACEOF 10649#line 10649 "configure" 10650#include "confdefs.h" 10651#include <${cf_cv_ncurses_header:-curses.h}> 10652int 10653main () 10654{ 10655initscr(); mousemask(0,0); tgoto((char *)0, 0, 0); 10656 ; 10657 return 0; 10658} 10659_ACEOF 10660rm -f conftest.$ac_objext conftest$ac_exeext 10661if { (eval echo "$as_me:10661: \"$ac_link\"") >&5 10662 (eval $ac_link) 2>&5 10663 ac_status=$? 10664 echo "$as_me:10664: \$? = $ac_status" >&5 10665 (exit $ac_status); } && 10666 { ac_try='test -s conftest$ac_exeext' 10667 { (eval echo "$as_me:10667: \"$ac_try\"") >&5 10668 (eval $ac_try) 2>&5 10669 ac_status=$? 10670 echo "$as_me:10670: \$? = $ac_status" >&5 10671 (exit $ac_status); }; }; then 10672 echo "$as_me:10672: result: yes" >&5 10673echo "${ECHO_T}yes" >&6 10674else 10675 echo "$as_me: failed program was:" >&5 10676cat conftest.$ac_ext >&5 10677echo "$as_me:10677: result: no" >&5 10678echo "${ECHO_T}no" >&6 10679 LIBS="$cf_ncurses_SAVE" 10680fi 10681rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10682fi 10683 10684cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 10685 10686cat >>confdefs.h <<EOF 10687#define $cf_nculib_ROOT 1 10688EOF 10689 10690fi 10691 10692else 10693 cf_wide_curses=no 10694 10695echo "$as_me:10695: checking for extra include directories" >&5 10696echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6 10697if test "${cf_cv_curses_incdir+set}" = set; then 10698 echo $ECHO_N "(cached) $ECHO_C" >&6 10699else 10700 10701cf_cv_curses_incdir=no 10702case $host_os in #(vi 10703hpux10.*) #(vi 10704 test -d /usr/include/curses_colr && \ 10705 cf_cv_curses_incdir="-I/usr/include/curses_colr" 10706 ;; 10707sunos3*|sunos4*) 10708 test -d /usr/5lib && \ 10709 test -d /usr/5include && \ 10710 cf_cv_curses_incdir="-I/usr/5include" 10711 ;; 10712esac 10713 10714fi 10715echo "$as_me:10715: result: $cf_cv_curses_incdir" >&5 10716echo "${ECHO_T}$cf_cv_curses_incdir" >&6 10717test "$cf_cv_curses_incdir" != no && CPPFLAGS="$CPPFLAGS $cf_cv_curses_incdir" 10718 10719echo "$as_me:10719: checking if we have identified curses headers" >&5 10720echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6 10721if test "${cf_cv_ncurses_header+set}" = set; then 10722 echo $ECHO_N "(cached) $ECHO_C" >&6 10723else 10724 10725cf_cv_ncurses_header=none 10726for cf_header in \ 10727 curses.h \ 10728 ncurses.h ncurses/curses.h ncurses/ncurses.h 10729do 10730cat >conftest.$ac_ext <<_ACEOF 10731#line 10731 "configure" 10732#include "confdefs.h" 10733#include <${cf_header}> 10734int 10735main () 10736{ 10737initscr(); tgoto("?", 0,0) 10738 ; 10739 return 0; 10740} 10741_ACEOF 10742rm -f conftest.$ac_objext 10743if { (eval echo "$as_me:10743: \"$ac_compile\"") >&5 10744 (eval $ac_compile) 2>&5 10745 ac_status=$? 10746 echo "$as_me:10746: \$? = $ac_status" >&5 10747 (exit $ac_status); } && 10748 { ac_try='test -s conftest.$ac_objext' 10749 { (eval echo "$as_me:10749: \"$ac_try\"") >&5 10750 (eval $ac_try) 2>&5 10751 ac_status=$? 10752 echo "$as_me:10752: \$? = $ac_status" >&5 10753 (exit $ac_status); }; }; then 10754 cf_cv_ncurses_header=$cf_header; break 10755else 10756 echo "$as_me: failed program was:" >&5 10757cat conftest.$ac_ext >&5 10758fi 10759rm -f conftest.$ac_objext conftest.$ac_ext 10760done 10761 10762fi 10763echo "$as_me:10763: result: $cf_cv_ncurses_header" >&5 10764echo "${ECHO_T}$cf_cv_ncurses_header" >&6 10765 10766if test "$cf_cv_ncurses_header" = none ; then 10767 { { echo "$as_me:10767: error: No curses header-files found" >&5 10768echo "$as_me: error: No curses header-files found" >&2;} 10769 { (exit 1); exit 1; }; } 10770fi 10771 10772# cheat, to get the right #define's for HAVE_NCURSES_H, etc. 10773 10774for ac_header in $cf_cv_ncurses_header 10775do 10776as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10777echo "$as_me:10777: checking for $ac_header" >&5 10778echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10779if eval "test \"\${$as_ac_Header+set}\" = set"; then 10780 echo $ECHO_N "(cached) $ECHO_C" >&6 10781else 10782 cat >conftest.$ac_ext <<_ACEOF 10783#line 10783 "configure" 10784#include "confdefs.h" 10785#include <$ac_header> 10786_ACEOF 10787if { (eval echo "$as_me:10787: \"$ac_cpp conftest.$ac_ext\"") >&5 10788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10789 ac_status=$? 10790 egrep -v '^ *\+' conftest.er1 >conftest.err 10791 rm -f conftest.er1 10792 cat conftest.err >&5 10793 echo "$as_me:10793: \$? = $ac_status" >&5 10794 (exit $ac_status); } >/dev/null; then 10795 if test -s conftest.err; then 10796 ac_cpp_err=$ac_c_preproc_warn_flag 10797 else 10798 ac_cpp_err= 10799 fi 10800else 10801 ac_cpp_err=yes 10802fi 10803if test -z "$ac_cpp_err"; then 10804 eval "$as_ac_Header=yes" 10805else 10806 echo "$as_me: failed program was:" >&5 10807 cat conftest.$ac_ext >&5 10808 eval "$as_ac_Header=no" 10809fi 10810rm -f conftest.err conftest.$ac_ext 10811fi 10812echo "$as_me:10812: result: `eval echo '${'$as_ac_Header'}'`" >&5 10813echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10814if test `eval echo '${'$as_ac_Header'}'` = yes; then 10815 cat >>confdefs.h <<EOF 10816#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10817EOF 10818 10819fi 10820done 10821 10822echo "$as_me:10822: checking for terminfo header" >&5 10823echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6 10824if test "${cf_cv_term_header+set}" = set; then 10825 echo $ECHO_N "(cached) $ECHO_C" >&6 10826else 10827 10828case ${cf_cv_ncurses_header} in #(vi 10829*/ncurses.h|*/ncursesw.h) #(vi 10830 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'` 10831 ;; 10832*) 10833 cf_term_header=term.h 10834 ;; 10835esac 10836 10837for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h" 10838do 10839cat >conftest.$ac_ext <<_ACEOF 10840#line 10840 "configure" 10841#include "confdefs.h" 10842#include <stdio.h> 10843#include <${cf_cv_ncurses_header:-curses.h}> 10844#include <$cf_test> 10845 10846int 10847main () 10848{ 10849int x = auto_left_margin 10850 ; 10851 return 0; 10852} 10853_ACEOF 10854rm -f conftest.$ac_objext 10855if { (eval echo "$as_me:10855: \"$ac_compile\"") >&5 10856 (eval $ac_compile) 2>&5 10857 ac_status=$? 10858 echo "$as_me:10858: \$? = $ac_status" >&5 10859 (exit $ac_status); } && 10860 { ac_try='test -s conftest.$ac_objext' 10861 { (eval echo "$as_me:10861: \"$ac_try\"") >&5 10862 (eval $ac_try) 2>&5 10863 ac_status=$? 10864 echo "$as_me:10864: \$? = $ac_status" >&5 10865 (exit $ac_status); }; }; then 10866 10867 cf_cv_term_header="$cf_test" 10868else 10869 echo "$as_me: failed program was:" >&5 10870cat conftest.$ac_ext >&5 10871 10872 cf_cv_term_header=unknown 10873 10874fi 10875rm -f conftest.$ac_objext conftest.$ac_ext 10876 test "$cf_cv_term_header" != unknown && break 10877done 10878 10879fi 10880echo "$as_me:10880: result: $cf_cv_term_header" >&5 10881echo "${ECHO_T}$cf_cv_term_header" >&6 10882 10883# Set definitions to allow ifdef'ing to accommodate subdirectories 10884 10885case $cf_cv_term_header in # (vi 10886*term.h) 10887 cat >>confdefs.h <<\EOF 10888#define HAVE_TERM_H 1 10889EOF 10890 10891 ;; 10892esac 10893 10894case $cf_cv_term_header in # (vi 10895ncurses/term.h) #(vi 10896 cat >>confdefs.h <<\EOF 10897#define HAVE_NCURSES_TERM_H 1 10898EOF 10899 10900 ;; 10901ncursesw/term.h) 10902 cat >>confdefs.h <<\EOF 10903#define HAVE_NCURSESW_TERM_H 1 10904EOF 10905 10906 ;; 10907esac 10908 10909echo "$as_me:10909: checking for ncurses version" >&5 10910echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6 10911if test "${cf_cv_ncurses_version+set}" = set; then 10912 echo $ECHO_N "(cached) $ECHO_C" >&6 10913else 10914 10915 cf_cv_ncurses_version=no 10916 cf_tempfile=out$$ 10917 rm -f $cf_tempfile 10918 if test "$cross_compiling" = yes; then 10919 10920 # This will not work if the preprocessor splits the line after the 10921 # Autoconf token. The 'unproto' program does that. 10922 cat > conftest.$ac_ext <<EOF 10923#include <${cf_cv_ncurses_header:-curses.h}> 10924#undef Autoconf 10925#ifdef NCURSES_VERSION 10926Autoconf NCURSES_VERSION 10927#else 10928#ifdef __NCURSES_H 10929Autoconf "old" 10930#endif 10931; 10932#endif 10933EOF 10934 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out" 10935 { (eval echo "$as_me:10935: \"$cf_try\"") >&5 10936 (eval $cf_try) 2>&5 10937 ac_status=$? 10938 echo "$as_me:10938: \$? = $ac_status" >&5 10939 (exit $ac_status); } 10940 if test -f conftest.out ; then 10941 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'` 10942 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out" 10943 rm -f conftest.out 10944 fi 10945 10946else 10947 cat >conftest.$ac_ext <<_ACEOF 10948#line 10948 "configure" 10949#include "confdefs.h" 10950 10951#include <${cf_cv_ncurses_header:-curses.h}> 10952#include <stdio.h> 10953int main() 10954{ 10955 FILE *fp = fopen("$cf_tempfile", "w"); 10956#ifdef NCURSES_VERSION 10957# ifdef NCURSES_VERSION_PATCH 10958 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH); 10959# else 10960 fprintf(fp, "%s\n", NCURSES_VERSION); 10961# endif 10962#else 10963# ifdef __NCURSES_H 10964 fprintf(fp, "old\n"); 10965# else 10966 make an error 10967# endif 10968#endif 10969 ${cf_cv_main_return:-return}(0); 10970} 10971_ACEOF 10972rm -f conftest$ac_exeext 10973if { (eval echo "$as_me:10973: \"$ac_link\"") >&5 10974 (eval $ac_link) 2>&5 10975 ac_status=$? 10976 echo "$as_me:10976: \$? = $ac_status" >&5 10977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10978 { (eval echo "$as_me:10978: \"$ac_try\"") >&5 10979 (eval $ac_try) 2>&5 10980 ac_status=$? 10981 echo "$as_me:10981: \$? = $ac_status" >&5 10982 (exit $ac_status); }; }; then 10983 10984 cf_cv_ncurses_version=`cat $cf_tempfile` 10985else 10986 echo "$as_me: program exited with status $ac_status" >&5 10987echo "$as_me: failed program was:" >&5 10988cat conftest.$ac_ext >&5 10989fi 10990rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10991fi 10992 rm -f $cf_tempfile 10993 10994fi 10995echo "$as_me:10995: result: $cf_cv_ncurses_version" >&5 10996echo "${ECHO_T}$cf_cv_ncurses_version" >&6 10997test "$cf_cv_ncurses_version" = no || cat >>confdefs.h <<\EOF 10998#define NCURSES 1 10999EOF 11000 11001echo "$as_me:11001: checking if we have identified curses libraries" >&5 11002echo $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6 11003cat >conftest.$ac_ext <<_ACEOF 11004#line 11004 "configure" 11005#include "confdefs.h" 11006#include <${cf_cv_ncurses_header:-curses.h}> 11007int 11008main () 11009{ 11010initscr(); tgoto("?", 0,0) 11011 ; 11012 return 0; 11013} 11014_ACEOF 11015rm -f conftest.$ac_objext conftest$ac_exeext 11016if { (eval echo "$as_me:11016: \"$ac_link\"") >&5 11017 (eval $ac_link) 2>&5 11018 ac_status=$? 11019 echo "$as_me:11019: \$? = $ac_status" >&5 11020 (exit $ac_status); } && 11021 { ac_try='test -s conftest$ac_exeext' 11022 { (eval echo "$as_me:11022: \"$ac_try\"") >&5 11023 (eval $ac_try) 2>&5 11024 ac_status=$? 11025 echo "$as_me:11025: \$? = $ac_status" >&5 11026 (exit $ac_status); }; }; then 11027 cf_result=yes 11028else 11029 echo "$as_me: failed program was:" >&5 11030cat conftest.$ac_ext >&5 11031cf_result=no 11032fi 11033rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11034echo "$as_me:11034: result: $cf_result" >&5 11035echo "${ECHO_T}$cf_result" >&6 11036 11037if test "$cf_result" = no ; then 11038case $host_os in #(vi 11039freebsd*) #(vi 11040 echo "$as_me:11040: checking for tgoto in -lmytinfo" >&5 11041echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6 11042if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then 11043 echo $ECHO_N "(cached) $ECHO_C" >&6 11044else 11045 ac_check_lib_save_LIBS=$LIBS 11046LIBS="-lmytinfo $LIBS" 11047cat >conftest.$ac_ext <<_ACEOF 11048#line 11048 "configure" 11049#include "confdefs.h" 11050 11051/* Override any gcc2 internal prototype to avoid an error. */ 11052#ifdef __cplusplus 11053extern "C" 11054#endif 11055/* We use char because int might match the return type of a gcc2 11056 builtin and then its argument prototype would still apply. */ 11057char tgoto (); 11058int 11059main () 11060{ 11061tgoto (); 11062 ; 11063 return 0; 11064} 11065_ACEOF 11066rm -f conftest.$ac_objext conftest$ac_exeext 11067if { (eval echo "$as_me:11067: \"$ac_link\"") >&5 11068 (eval $ac_link) 2>&5 11069 ac_status=$? 11070 echo "$as_me:11070: \$? = $ac_status" >&5 11071 (exit $ac_status); } && 11072 { ac_try='test -s conftest$ac_exeext' 11073 { (eval echo "$as_me:11073: \"$ac_try\"") >&5 11074 (eval $ac_try) 2>&5 11075 ac_status=$? 11076 echo "$as_me:11076: \$? = $ac_status" >&5 11077 (exit $ac_status); }; }; then 11078 ac_cv_lib_mytinfo_tgoto=yes 11079else 11080 echo "$as_me: failed program was:" >&5 11081cat conftest.$ac_ext >&5 11082ac_cv_lib_mytinfo_tgoto=no 11083fi 11084rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11085LIBS=$ac_check_lib_save_LIBS 11086fi 11087echo "$as_me:11087: result: $ac_cv_lib_mytinfo_tgoto" >&5 11088echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6 11089if test $ac_cv_lib_mytinfo_tgoto = yes; then 11090 LIBS="-lmytinfo $LIBS" 11091fi 11092 11093 ;; 11094hpux10.*) #(vi 11095 echo "$as_me:11095: checking for initscr in -lcur_colr" >&5 11096echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6 11097if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then 11098 echo $ECHO_N "(cached) $ECHO_C" >&6 11099else 11100 ac_check_lib_save_LIBS=$LIBS 11101LIBS="-lcur_colr $LIBS" 11102cat >conftest.$ac_ext <<_ACEOF 11103#line 11103 "configure" 11104#include "confdefs.h" 11105 11106/* Override any gcc2 internal prototype to avoid an error. */ 11107#ifdef __cplusplus 11108extern "C" 11109#endif 11110/* We use char because int might match the return type of a gcc2 11111 builtin and then its argument prototype would still apply. */ 11112char initscr (); 11113int 11114main () 11115{ 11116initscr (); 11117 ; 11118 return 0; 11119} 11120_ACEOF 11121rm -f conftest.$ac_objext conftest$ac_exeext 11122if { (eval echo "$as_me:11122: \"$ac_link\"") >&5 11123 (eval $ac_link) 2>&5 11124 ac_status=$? 11125 echo "$as_me:11125: \$? = $ac_status" >&5 11126 (exit $ac_status); } && 11127 { ac_try='test -s conftest$ac_exeext' 11128 { (eval echo "$as_me:11128: \"$ac_try\"") >&5 11129 (eval $ac_try) 2>&5 11130 ac_status=$? 11131 echo "$as_me:11131: \$? = $ac_status" >&5 11132 (exit $ac_status); }; }; then 11133 ac_cv_lib_cur_colr_initscr=yes 11134else 11135 echo "$as_me: failed program was:" >&5 11136cat conftest.$ac_ext >&5 11137ac_cv_lib_cur_colr_initscr=no 11138fi 11139rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11140LIBS=$ac_check_lib_save_LIBS 11141fi 11142echo "$as_me:11142: result: $ac_cv_lib_cur_colr_initscr" >&5 11143echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6 11144if test $ac_cv_lib_cur_colr_initscr = yes; then 11145 11146 LIBS="-lcur_colr $LIBS" 11147 ac_cv_func_initscr=yes 11148 11149else 11150 11151 echo "$as_me:11151: checking for initscr in -lHcurses" >&5 11152echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6 11153if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then 11154 echo $ECHO_N "(cached) $ECHO_C" >&6 11155else 11156 ac_check_lib_save_LIBS=$LIBS 11157LIBS="-lHcurses $LIBS" 11158cat >conftest.$ac_ext <<_ACEOF 11159#line 11159 "configure" 11160#include "confdefs.h" 11161 11162/* Override any gcc2 internal prototype to avoid an error. */ 11163#ifdef __cplusplus 11164extern "C" 11165#endif 11166/* We use char because int might match the return type of a gcc2 11167 builtin and then its argument prototype would still apply. */ 11168char initscr (); 11169int 11170main () 11171{ 11172initscr (); 11173 ; 11174 return 0; 11175} 11176_ACEOF 11177rm -f conftest.$ac_objext conftest$ac_exeext 11178if { (eval echo "$as_me:11178: \"$ac_link\"") >&5 11179 (eval $ac_link) 2>&5 11180 ac_status=$? 11181 echo "$as_me:11181: \$? = $ac_status" >&5 11182 (exit $ac_status); } && 11183 { ac_try='test -s conftest$ac_exeext' 11184 { (eval echo "$as_me:11184: \"$ac_try\"") >&5 11185 (eval $ac_try) 2>&5 11186 ac_status=$? 11187 echo "$as_me:11187: \$? = $ac_status" >&5 11188 (exit $ac_status); }; }; then 11189 ac_cv_lib_Hcurses_initscr=yes 11190else 11191 echo "$as_me: failed program was:" >&5 11192cat conftest.$ac_ext >&5 11193ac_cv_lib_Hcurses_initscr=no 11194fi 11195rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11196LIBS=$ac_check_lib_save_LIBS 11197fi 11198echo "$as_me:11198: result: $ac_cv_lib_Hcurses_initscr" >&5 11199echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6 11200if test $ac_cv_lib_Hcurses_initscr = yes; then 11201 11202 # HP's header uses __HP_CURSES, but user claims _HP_CURSES. 11203 LIBS="-lHcurses $LIBS" 11204 CPPFLAGS="$CPPFLAGS -D__HP_CURSES -D_HP_CURSES" 11205 ac_cv_func_initscr=yes 11206 11207fi 11208 11209fi 11210 11211 ;; 11212linux*) 11213 case `arch` in 11214 x86_64) 11215 if test -d /lib64 11216 then 11217 11218if test -n "/lib64" ; then 11219 for cf_add_libdir in /lib64 11220 do 11221 if test $cf_add_libdir = /usr/lib ; then 11222 : 11223 elif test -d $cf_add_libdir 11224 then 11225 cf_have_libdir=no 11226 if test -n "$LDFLAGS$LIBS" ; then 11227 # a loop is needed to ensure we can add subdirs of existing dirs 11228 for cf_test_libdir in $LDFLAGS $LIBS ; do 11229 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 11230 cf_have_libdir=yes; break 11231 fi 11232 done 11233 fi 11234 if test "$cf_have_libdir" = no ; then 11235 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 11236 11237echo "${as_me:-configure}:11237: testing adding $cf_add_libdir to library-path ..." 1>&5 11238 11239 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 11240 fi 11241 fi 11242 done 11243fi 11244 11245 else 11246 11247if test -n "/lib" ; then 11248 for cf_add_libdir in /lib 11249 do 11250 if test $cf_add_libdir = /usr/lib ; then 11251 : 11252 elif test -d $cf_add_libdir 11253 then 11254 cf_have_libdir=no 11255 if test -n "$LDFLAGS$LIBS" ; then 11256 # a loop is needed to ensure we can add subdirs of existing dirs 11257 for cf_test_libdir in $LDFLAGS $LIBS ; do 11258 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 11259 cf_have_libdir=yes; break 11260 fi 11261 done 11262 fi 11263 if test "$cf_have_libdir" = no ; then 11264 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 11265 11266echo "${as_me:-configure}:11266: testing adding $cf_add_libdir to library-path ..." 1>&5 11267 11268 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 11269 fi 11270 fi 11271 done 11272fi 11273 11274 fi 11275 ;; 11276 *) 11277 11278if test -n "/lib" ; then 11279 for cf_add_libdir in /lib 11280 do 11281 if test $cf_add_libdir = /usr/lib ; then 11282 : 11283 elif test -d $cf_add_libdir 11284 then 11285 cf_have_libdir=no 11286 if test -n "$LDFLAGS$LIBS" ; then 11287 # a loop is needed to ensure we can add subdirs of existing dirs 11288 for cf_test_libdir in $LDFLAGS $LIBS ; do 11289 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 11290 cf_have_libdir=yes; break 11291 fi 11292 done 11293 fi 11294 if test "$cf_have_libdir" = no ; then 11295 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 11296 11297echo "${as_me:-configure}:11297: testing adding $cf_add_libdir to library-path ..." 1>&5 11298 11299 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 11300 fi 11301 fi 11302 done 11303fi 11304 11305 ;; 11306 esac 11307 ;; 11308sunos3*|sunos4*) 11309 if test -d /usr/5lib ; then 11310 11311if test -n "/usr/5lib" ; then 11312 for cf_add_libdir in /usr/5lib 11313 do 11314 if test $cf_add_libdir = /usr/lib ; then 11315 : 11316 elif test -d $cf_add_libdir 11317 then 11318 cf_have_libdir=no 11319 if test -n "$LDFLAGS$LIBS" ; then 11320 # a loop is needed to ensure we can add subdirs of existing dirs 11321 for cf_test_libdir in $LDFLAGS $LIBS ; do 11322 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 11323 cf_have_libdir=yes; break 11324 fi 11325 done 11326 fi 11327 if test "$cf_have_libdir" = no ; then 11328 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 11329 11330echo "${as_me:-configure}:11330: testing adding $cf_add_libdir to library-path ..." 1>&5 11331 11332 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 11333 fi 11334 fi 11335 done 11336fi 11337 11338 LIBS="-lcurses -ltermcap $LIBS" 11339 fi 11340 ac_cv_func_initscr=yes 11341 ;; 11342esac 11343 11344if test ".$ac_cv_func_initscr" != .yes ; then 11345 cf_save_LIBS="$LIBS" 11346 cf_term_lib="" 11347 cf_curs_lib="" 11348 11349 if test ".${cf_cv_ncurses_version:-no}" != .no 11350 then 11351 cf_check_list="ncurses curses cursesX" 11352 else 11353 cf_check_list="cursesX curses ncurses" 11354 fi 11355 11356 # Check for library containing tgoto. Do this before curses library 11357 # because it may be needed to link the test-case for initscr. 11358 echo "$as_me:11358: checking for tgoto" >&5 11359echo $ECHO_N "checking for tgoto... $ECHO_C" >&6 11360if test "${ac_cv_func_tgoto+set}" = set; then 11361 echo $ECHO_N "(cached) $ECHO_C" >&6 11362else 11363 cat >conftest.$ac_ext <<_ACEOF 11364#line 11364 "configure" 11365#include "confdefs.h" 11366/* System header to define __stub macros and hopefully few prototypes, 11367 which can conflict with char tgoto (); below. */ 11368#include <assert.h> 11369/* Override any gcc2 internal prototype to avoid an error. */ 11370#ifdef __cplusplus 11371extern "C" 11372#endif 11373/* We use char because int might match the return type of a gcc2 11374 builtin and then its argument prototype would still apply. */ 11375char tgoto (); 11376char (*f) (); 11377 11378int 11379main () 11380{ 11381/* The GNU C library defines this for functions which it implements 11382 to always fail with ENOSYS. Some functions are actually named 11383 something starting with __ and the normal name is an alias. */ 11384#if defined (__stub_tgoto) || defined (__stub___tgoto) 11385choke me 11386#else 11387f = tgoto; 11388#endif 11389 11390 ; 11391 return 0; 11392} 11393_ACEOF 11394rm -f conftest.$ac_objext conftest$ac_exeext 11395if { (eval echo "$as_me:11395: \"$ac_link\"") >&5 11396 (eval $ac_link) 2>&5 11397 ac_status=$? 11398 echo "$as_me:11398: \$? = $ac_status" >&5 11399 (exit $ac_status); } && 11400 { ac_try='test -s conftest$ac_exeext' 11401 { (eval echo "$as_me:11401: \"$ac_try\"") >&5 11402 (eval $ac_try) 2>&5 11403 ac_status=$? 11404 echo "$as_me:11404: \$? = $ac_status" >&5 11405 (exit $ac_status); }; }; then 11406 ac_cv_func_tgoto=yes 11407else 11408 echo "$as_me: failed program was:" >&5 11409cat conftest.$ac_ext >&5 11410ac_cv_func_tgoto=no 11411fi 11412rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11413fi 11414echo "$as_me:11414: result: $ac_cv_func_tgoto" >&5 11415echo "${ECHO_T}$ac_cv_func_tgoto" >&6 11416if test $ac_cv_func_tgoto = yes; then 11417 cf_term_lib=predefined 11418else 11419 11420 for cf_term_lib in $cf_check_list termcap termlib unknown 11421 do 11422 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh` 11423echo "$as_me:11423: checking for tgoto in -l$cf_term_lib" >&5 11424echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6 11425if eval "test \"\${$as_ac_Lib+set}\" = set"; then 11426 echo $ECHO_N "(cached) $ECHO_C" >&6 11427else 11428 ac_check_lib_save_LIBS=$LIBS 11429LIBS="-l$cf_term_lib $LIBS" 11430cat >conftest.$ac_ext <<_ACEOF 11431#line 11431 "configure" 11432#include "confdefs.h" 11433 11434/* Override any gcc2 internal prototype to avoid an error. */ 11435#ifdef __cplusplus 11436extern "C" 11437#endif 11438/* We use char because int might match the return type of a gcc2 11439 builtin and then its argument prototype would still apply. */ 11440char tgoto (); 11441int 11442main () 11443{ 11444tgoto (); 11445 ; 11446 return 0; 11447} 11448_ACEOF 11449rm -f conftest.$ac_objext conftest$ac_exeext 11450if { (eval echo "$as_me:11450: \"$ac_link\"") >&5 11451 (eval $ac_link) 2>&5 11452 ac_status=$? 11453 echo "$as_me:11453: \$? = $ac_status" >&5 11454 (exit $ac_status); } && 11455 { ac_try='test -s conftest$ac_exeext' 11456 { (eval echo "$as_me:11456: \"$ac_try\"") >&5 11457 (eval $ac_try) 2>&5 11458 ac_status=$? 11459 echo "$as_me:11459: \$? = $ac_status" >&5 11460 (exit $ac_status); }; }; then 11461 eval "$as_ac_Lib=yes" 11462else 11463 echo "$as_me: failed program was:" >&5 11464cat conftest.$ac_ext >&5 11465eval "$as_ac_Lib=no" 11466fi 11467rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11468LIBS=$ac_check_lib_save_LIBS 11469fi 11470echo "$as_me:11470: result: `eval echo '${'$as_ac_Lib'}'`" >&5 11471echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 11472if test `eval echo '${'$as_ac_Lib'}'` = yes; then 11473 break 11474fi 11475 11476 done 11477 11478fi 11479 11480 # Check for library containing initscr 11481 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS" 11482 for cf_curs_lib in $cf_check_list xcurses jcurses pdcurses unknown 11483 do 11484 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh` 11485echo "$as_me:11485: checking for initscr in -l$cf_curs_lib" >&5 11486echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6 11487if eval "test \"\${$as_ac_Lib+set}\" = set"; then 11488 echo $ECHO_N "(cached) $ECHO_C" >&6 11489else 11490 ac_check_lib_save_LIBS=$LIBS 11491LIBS="-l$cf_curs_lib $LIBS" 11492cat >conftest.$ac_ext <<_ACEOF 11493#line 11493 "configure" 11494#include "confdefs.h" 11495 11496/* Override any gcc2 internal prototype to avoid an error. */ 11497#ifdef __cplusplus 11498extern "C" 11499#endif 11500/* We use char because int might match the return type of a gcc2 11501 builtin and then its argument prototype would still apply. */ 11502char initscr (); 11503int 11504main () 11505{ 11506initscr (); 11507 ; 11508 return 0; 11509} 11510_ACEOF 11511rm -f conftest.$ac_objext conftest$ac_exeext 11512if { (eval echo "$as_me:11512: \"$ac_link\"") >&5 11513 (eval $ac_link) 2>&5 11514 ac_status=$? 11515 echo "$as_me:11515: \$? = $ac_status" >&5 11516 (exit $ac_status); } && 11517 { ac_try='test -s conftest$ac_exeext' 11518 { (eval echo "$as_me:11518: \"$ac_try\"") >&5 11519 (eval $ac_try) 2>&5 11520 ac_status=$? 11521 echo "$as_me:11521: \$? = $ac_status" >&5 11522 (exit $ac_status); }; }; then 11523 eval "$as_ac_Lib=yes" 11524else 11525 echo "$as_me: failed program was:" >&5 11526cat conftest.$ac_ext >&5 11527eval "$as_ac_Lib=no" 11528fi 11529rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11530LIBS=$ac_check_lib_save_LIBS 11531fi 11532echo "$as_me:11532: result: `eval echo '${'$as_ac_Lib'}'`" >&5 11533echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 11534if test `eval echo '${'$as_ac_Lib'}'` = yes; then 11535 break 11536fi 11537 11538 done 11539 test $cf_curs_lib = unknown && { { echo "$as_me:11539: error: no curses library found" >&5 11540echo "$as_me: error: no curses library found" >&2;} 11541 { (exit 1); exit 1; }; } 11542 11543 LIBS="-l$cf_curs_lib $cf_save_LIBS" 11544 if test "$cf_term_lib" = unknown ; then 11545 echo "$as_me:11545: checking if we can link with $cf_curs_lib library" >&5 11546echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6 11547 cat >conftest.$ac_ext <<_ACEOF 11548#line 11548 "configure" 11549#include "confdefs.h" 11550#include <${cf_cv_ncurses_header:-curses.h}> 11551int 11552main () 11553{ 11554initscr() 11555 ; 11556 return 0; 11557} 11558_ACEOF 11559rm -f conftest.$ac_objext conftest$ac_exeext 11560if { (eval echo "$as_me:11560: \"$ac_link\"") >&5 11561 (eval $ac_link) 2>&5 11562 ac_status=$? 11563 echo "$as_me:11563: \$? = $ac_status" >&5 11564 (exit $ac_status); } && 11565 { ac_try='test -s conftest$ac_exeext' 11566 { (eval echo "$as_me:11566: \"$ac_try\"") >&5 11567 (eval $ac_try) 2>&5 11568 ac_status=$? 11569 echo "$as_me:11569: \$? = $ac_status" >&5 11570 (exit $ac_status); }; }; then 11571 cf_result=yes 11572else 11573 echo "$as_me: failed program was:" >&5 11574cat conftest.$ac_ext >&5 11575cf_result=no 11576fi 11577rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11578 echo "$as_me:11578: result: $cf_result" >&5 11579echo "${ECHO_T}$cf_result" >&6 11580 test $cf_result = no && { { echo "$as_me:11580: error: Cannot link curses library" >&5 11581echo "$as_me: error: Cannot link curses library" >&2;} 11582 { (exit 1); exit 1; }; } 11583 elif test "$cf_curs_lib" = "$cf_term_lib" ; then 11584 : 11585 elif test "$cf_term_lib" != predefined ; then 11586 echo "$as_me:11586: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5 11587echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6 11588 cat >conftest.$ac_ext <<_ACEOF 11589#line 11589 "configure" 11590#include "confdefs.h" 11591#include <${cf_cv_ncurses_header:-curses.h}> 11592int 11593main () 11594{ 11595initscr(); tgoto((char *)0, 0, 0); 11596 ; 11597 return 0; 11598} 11599_ACEOF 11600rm -f conftest.$ac_objext conftest$ac_exeext 11601if { (eval echo "$as_me:11601: \"$ac_link\"") >&5 11602 (eval $ac_link) 2>&5 11603 ac_status=$? 11604 echo "$as_me:11604: \$? = $ac_status" >&5 11605 (exit $ac_status); } && 11606 { ac_try='test -s conftest$ac_exeext' 11607 { (eval echo "$as_me:11607: \"$ac_try\"") >&5 11608 (eval $ac_try) 2>&5 11609 ac_status=$? 11610 echo "$as_me:11610: \$? = $ac_status" >&5 11611 (exit $ac_status); }; }; then 11612 cf_result=no 11613else 11614 echo "$as_me: failed program was:" >&5 11615cat conftest.$ac_ext >&5 11616 11617 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS" 11618 cat >conftest.$ac_ext <<_ACEOF 11619#line 11619 "configure" 11620#include "confdefs.h" 11621#include <${cf_cv_ncurses_header:-curses.h}> 11622int 11623main () 11624{ 11625initscr() 11626 ; 11627 return 0; 11628} 11629_ACEOF 11630rm -f conftest.$ac_objext conftest$ac_exeext 11631if { (eval echo "$as_me:11631: \"$ac_link\"") >&5 11632 (eval $ac_link) 2>&5 11633 ac_status=$? 11634 echo "$as_me:11634: \$? = $ac_status" >&5 11635 (exit $ac_status); } && 11636 { ac_try='test -s conftest$ac_exeext' 11637 { (eval echo "$as_me:11637: \"$ac_try\"") >&5 11638 (eval $ac_try) 2>&5 11639 ac_status=$? 11640 echo "$as_me:11640: \$? = $ac_status" >&5 11641 (exit $ac_status); }; }; then 11642 cf_result=yes 11643else 11644 echo "$as_me: failed program was:" >&5 11645cat conftest.$ac_ext >&5 11646cf_result=error 11647fi 11648rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11649 11650fi 11651rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11652 echo "$as_me:11652: result: $cf_result" >&5 11653echo "${ECHO_T}$cf_result" >&6 11654 fi 11655fi 11656fi 11657 11658fi 11659 11660cf_all_widgets=yes 11661 11662echo "$as_me:11662: checking if you want extra dialogs" >&5 11663echo $ECHO_N "checking if you want extra dialogs... $ECHO_C" >&6 11664 11665# Check whether --enable-extras or --disable-extras was given. 11666if test "${enable_extras+set}" = set; then 11667 enableval="$enable_extras" 11668 11669else 11670 enableval=yes 11671fi; 11672echo "$as_me:11672: result: $enableval" >&5 11673echo "${ECHO_T}$enableval" >&6 11674if test "$enableval" != no ; then 11675cf_all_widgets=yes 11676else 11677cf_all_widgets=no 11678fi 11679 11680echo "$as_me:11680: checking if you want config-file support" >&5 11681echo $ECHO_N "checking if you want config-file support... $ECHO_C" >&6 11682 11683# Check whether --enable-rc-file or --disable-rc-file was given. 11684if test "${enable_rc_file+set}" = set; then 11685 enableval="$enable_rc_file" 11686 11687else 11688 enableval=$cf_all_widgets 11689fi; 11690echo "$as_me:11690: result: $enableval" >&5 11691echo "${ECHO_T}$enableval" >&6 11692if test "$enableval" != no ; then 11693EXTRAOBJS="$EXTRAOBJS rc\$o" 11694 cat >>confdefs.h <<\EOF 11695#define HAVE_RC_FILE 1 11696EOF 11697 11698else 11699 : 11700fi 11701 11702echo "$as_me:11702: checking if you want Xdialog-style dialogs" >&5 11703echo $ECHO_N "checking if you want Xdialog-style dialogs... $ECHO_C" >&6 11704 11705# Check whether --enable-Xdialog or --disable-Xdialog was given. 11706if test "${enable_Xdialog+set}" = set; then 11707 enableval="$enable_Xdialog" 11708 11709else 11710 enableval=$cf_all_widgets 11711fi; 11712echo "$as_me:11712: result: $enableval" >&5 11713echo "${ECHO_T}$enableval" >&6 11714if test "$enableval" != no ; then 11715EXTRAOBJS="$EXTRAOBJS calendar\$o fselect\$o timebox\$o" 11716 cat >>confdefs.h <<\EOF 11717#define HAVE_XDIALOG 1 11718EOF 11719 11720else 11721 : 11722fi 11723 11724echo "$as_me:11724: checking if you want the form dialog" >&5 11725echo $ECHO_N "checking if you want the form dialog... $ECHO_C" >&6 11726 11727# Check whether --enable-form or --disable-form was given. 11728if test "${enable_form+set}" = set; then 11729 enableval="$enable_form" 11730 11731else 11732 enableval=$cf_all_widgets 11733fi; 11734echo "$as_me:11734: result: $enableval" >&5 11735echo "${ECHO_T}$enableval" >&6 11736if test "$enableval" != no ; then 11737EXTRAOBJS="$EXTRAOBJS formbox\$o" 11738 cat >>confdefs.h <<\EOF 11739#define HAVE_DLG_FORMBOX 1 11740EOF 11741 11742else 11743 : 11744fi 11745 11746echo "$as_me:11746: checking if you want the gauge dialog" >&5 11747echo $ECHO_N "checking if you want the gauge dialog... $ECHO_C" >&6 11748 11749# Check whether --enable-gauge or --disable-gauge was given. 11750if test "${enable_gauge+set}" = set; then 11751 enableval="$enable_gauge" 11752 11753else 11754 enableval=$cf_all_widgets 11755fi; 11756echo "$as_me:11756: result: $enableval" >&5 11757echo "${ECHO_T}$enableval" >&6 11758if test "$enableval" != no ; then 11759EXTRAOBJS="$EXTRAOBJS guage\$o pause\$o prgbox\$o progressbox\$o" 11760 cat >>confdefs.h <<\EOF 11761#define HAVE_DLG_GAUGE 1 11762EOF 11763 11764else 11765 : 11766fi 11767 11768echo "$as_me:11768: checking if you want the tailbox dialog" >&5 11769echo $ECHO_N "checking if you want the tailbox dialog... $ECHO_C" >&6 11770 11771# Check whether --enable-tailbox or --disable-tailbox was given. 11772if test "${enable_tailbox+set}" = set; then 11773 enableval="$enable_tailbox" 11774 11775else 11776 enableval=$cf_all_widgets 11777fi; 11778echo "$as_me:11778: result: $enableval" >&5 11779echo "${ECHO_T}$enableval" >&6 11780if test "$enableval" != no ; then 11781EXTRAOBJS="$EXTRAOBJS tailbox\$o" 11782 cat >>confdefs.h <<\EOF 11783#define HAVE_DLG_TAILBOX 1 11784EOF 11785 11786else 11787 : 11788fi 11789 11790echo "$as_me:11790: checking if you want the mixedform dialog" >&5 11791echo $ECHO_N "checking if you want the mixedform dialog... $ECHO_C" >&6 11792 11793# Check whether --enable-mixedform or --disable-mixedform was given. 11794if test "${enable_mixedform+set}" = set; then 11795 enableval="$enable_mixedform" 11796 11797else 11798 enableval=$cf_all_widgets 11799fi; 11800echo "$as_me:11800: result: $enableval" >&5 11801echo "${ECHO_T}$enableval" >&6 11802if test "$enableval" != no ; then 11803EXTRAOBJS="$EXTRAOBJS mixedform\$o" 11804 cat >>confdefs.h <<\EOF 11805#define HAVE_DLG_MIXEDFORM 1 11806EOF 11807 11808else 11809 : 11810fi 11811 11812echo "$as_me:11812: checking if you want the mixedgauge dialog" >&5 11813echo $ECHO_N "checking if you want the mixedgauge dialog... $ECHO_C" >&6 11814 11815# Check whether --enable-mixedgauge or --disable-mixedgauge was given. 11816if test "${enable_mixedgauge+set}" = set; then 11817 enableval="$enable_mixedgauge" 11818 11819else 11820 enableval=$cf_all_widgets 11821fi; 11822echo "$as_me:11822: result: $enableval" >&5 11823echo "${ECHO_T}$enableval" >&6 11824if test "$enableval" != no ; then 11825EXTRAOBJS="$EXTRAOBJS mixedgauge\$o" 11826 cat >>confdefs.h <<\EOF 11827#define HAVE_MIXEDGAUGE 1 11828EOF 11829 11830else 11831 : 11832fi 11833 11834echo "$as_me:11834: checking if you want the wide-curses features" >&5 11835echo $ECHO_N "checking if you want the wide-curses features... $ECHO_C" >&6 11836 11837# Check whether --enable-widec or --disable-widec was given. 11838if test "${enable_widec+set}" = set; then 11839 enableval="$enable_widec" 11840 11841else 11842 enableval=$cf_wide_curses 11843fi; 11844echo "$as_me:11844: result: $enableval" >&5 11845echo "${ECHO_T}$enableval" >&6 11846if test "$enableval" != no ; then 11847cat >>confdefs.h <<\EOF 11848#define USE_WIDE_CURSES 1 11849EOF 11850 11851else 11852 : 11853fi 11854 11855echo "$as_me:11855: checking for ANSI C header files" >&5 11856echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 11857if test "${ac_cv_header_stdc+set}" = set; then 11858 echo $ECHO_N "(cached) $ECHO_C" >&6 11859else 11860 cat >conftest.$ac_ext <<_ACEOF 11861#line 11861 "configure" 11862#include "confdefs.h" 11863#include <stdlib.h> 11864#include <stdarg.h> 11865#include <string.h> 11866#include <float.h> 11867 11868_ACEOF 11869if { (eval echo "$as_me:11869: \"$ac_cpp conftest.$ac_ext\"") >&5 11870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11871 ac_status=$? 11872 egrep -v '^ *\+' conftest.er1 >conftest.err 11873 rm -f conftest.er1 11874 cat conftest.err >&5 11875 echo "$as_me:11875: \$? = $ac_status" >&5 11876 (exit $ac_status); } >/dev/null; then 11877 if test -s conftest.err; then 11878 ac_cpp_err=$ac_c_preproc_warn_flag 11879 else 11880 ac_cpp_err= 11881 fi 11882else 11883 ac_cpp_err=yes 11884fi 11885if test -z "$ac_cpp_err"; then 11886 ac_cv_header_stdc=yes 11887else 11888 echo "$as_me: failed program was:" >&5 11889 cat conftest.$ac_ext >&5 11890 ac_cv_header_stdc=no 11891fi 11892rm -f conftest.err conftest.$ac_ext 11893 11894if test $ac_cv_header_stdc = yes; then 11895 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 11896 cat >conftest.$ac_ext <<_ACEOF 11897#line 11897 "configure" 11898#include "confdefs.h" 11899#include <string.h> 11900 11901_ACEOF 11902if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11903 egrep "memchr" >/dev/null 2>&1; then 11904 : 11905else 11906 ac_cv_header_stdc=no 11907fi 11908rm -rf conftest* 11909 11910fi 11911 11912if test $ac_cv_header_stdc = yes; then 11913 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 11914 cat >conftest.$ac_ext <<_ACEOF 11915#line 11915 "configure" 11916#include "confdefs.h" 11917#include <stdlib.h> 11918 11919_ACEOF 11920if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11921 egrep "free" >/dev/null 2>&1; then 11922 : 11923else 11924 ac_cv_header_stdc=no 11925fi 11926rm -rf conftest* 11927 11928fi 11929 11930if test $ac_cv_header_stdc = yes; then 11931 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 11932 if test "$cross_compiling" = yes; then 11933 : 11934else 11935 cat >conftest.$ac_ext <<_ACEOF 11936#line 11936 "configure" 11937#include "confdefs.h" 11938#include <ctype.h> 11939#if ((' ' & 0x0FF) == 0x020) 11940# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 11941# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 11942#else 11943# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 11944 || ('j' <= (c) && (c) <= 'r') \ 11945 || ('s' <= (c) && (c) <= 'z')) 11946# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 11947#endif 11948 11949#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 11950int 11951main () 11952{ 11953 int i; 11954 for (i = 0; i < 256; i++) 11955 if (XOR (islower (i), ISLOWER (i)) 11956 || toupper (i) != TOUPPER (i)) 11957 $ac_main_return(2); 11958 $ac_main_return (0); 11959} 11960_ACEOF 11961rm -f conftest$ac_exeext 11962if { (eval echo "$as_me:11962: \"$ac_link\"") >&5 11963 (eval $ac_link) 2>&5 11964 ac_status=$? 11965 echo "$as_me:11965: \$? = $ac_status" >&5 11966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11967 { (eval echo "$as_me:11967: \"$ac_try\"") >&5 11968 (eval $ac_try) 2>&5 11969 ac_status=$? 11970 echo "$as_me:11970: \$? = $ac_status" >&5 11971 (exit $ac_status); }; }; then 11972 : 11973else 11974 echo "$as_me: program exited with status $ac_status" >&5 11975echo "$as_me: failed program was:" >&5 11976cat conftest.$ac_ext >&5 11977ac_cv_header_stdc=no 11978fi 11979rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11980fi 11981fi 11982fi 11983echo "$as_me:11983: result: $ac_cv_header_stdc" >&5 11984echo "${ECHO_T}$ac_cv_header_stdc" >&6 11985if test $ac_cv_header_stdc = yes; then 11986 11987cat >>confdefs.h <<\EOF 11988#define STDC_HEADERS 1 11989EOF 11990 11991fi 11992 11993echo "$as_me:11993: checking whether time.h and sys/time.h may both be included" >&5 11994echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 11995if test "${ac_cv_header_time+set}" = set; then 11996 echo $ECHO_N "(cached) $ECHO_C" >&6 11997else 11998 cat >conftest.$ac_ext <<_ACEOF 11999#line 11999 "configure" 12000#include "confdefs.h" 12001#include <sys/types.h> 12002#include <sys/time.h> 12003#include <time.h> 12004 12005int 12006main () 12007{ 12008if ((struct tm *) 0) 12009return 0; 12010 ; 12011 return 0; 12012} 12013_ACEOF 12014rm -f conftest.$ac_objext 12015if { (eval echo "$as_me:12015: \"$ac_compile\"") >&5 12016 (eval $ac_compile) 2>&5 12017 ac_status=$? 12018 echo "$as_me:12018: \$? = $ac_status" >&5 12019 (exit $ac_status); } && 12020 { ac_try='test -s conftest.$ac_objext' 12021 { (eval echo "$as_me:12021: \"$ac_try\"") >&5 12022 (eval $ac_try) 2>&5 12023 ac_status=$? 12024 echo "$as_me:12024: \$? = $ac_status" >&5 12025 (exit $ac_status); }; }; then 12026 ac_cv_header_time=yes 12027else 12028 echo "$as_me: failed program was:" >&5 12029cat conftest.$ac_ext >&5 12030ac_cv_header_time=no 12031fi 12032rm -f conftest.$ac_objext conftest.$ac_ext 12033fi 12034echo "$as_me:12034: result: $ac_cv_header_time" >&5 12035echo "${ECHO_T}$ac_cv_header_time" >&6 12036if test $ac_cv_header_time = yes; then 12037 12038cat >>confdefs.h <<\EOF 12039#define TIME_WITH_SYS_TIME 1 12040EOF 12041 12042fi 12043 12044ac_header_dirent=no 12045for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 12046 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 12047echo "$as_me:12047: checking for $ac_hdr that defines DIR" >&5 12048echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 12049if eval "test \"\${$as_ac_Header+set}\" = set"; then 12050 echo $ECHO_N "(cached) $ECHO_C" >&6 12051else 12052 cat >conftest.$ac_ext <<_ACEOF 12053#line 12053 "configure" 12054#include "confdefs.h" 12055#include <sys/types.h> 12056#include <$ac_hdr> 12057 12058int 12059main () 12060{ 12061if ((DIR *) 0) 12062return 0; 12063 ; 12064 return 0; 12065} 12066_ACEOF 12067rm -f conftest.$ac_objext 12068if { (eval echo "$as_me:12068: \"$ac_compile\"") >&5 12069 (eval $ac_compile) 2>&5 12070 ac_status=$? 12071 echo "$as_me:12071: \$? = $ac_status" >&5 12072 (exit $ac_status); } && 12073 { ac_try='test -s conftest.$ac_objext' 12074 { (eval echo "$as_me:12074: \"$ac_try\"") >&5 12075 (eval $ac_try) 2>&5 12076 ac_status=$? 12077 echo "$as_me:12077: \$? = $ac_status" >&5 12078 (exit $ac_status); }; }; then 12079 eval "$as_ac_Header=yes" 12080else 12081 echo "$as_me: failed program was:" >&5 12082cat conftest.$ac_ext >&5 12083eval "$as_ac_Header=no" 12084fi 12085rm -f conftest.$ac_objext conftest.$ac_ext 12086fi 12087echo "$as_me:12087: result: `eval echo '${'$as_ac_Header'}'`" >&5 12088echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12089if test `eval echo '${'$as_ac_Header'}'` = yes; then 12090 cat >>confdefs.h <<EOF 12091#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 12092EOF 12093 12094ac_header_dirent=$ac_hdr; break 12095fi 12096 12097done 12098# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 12099if test $ac_header_dirent = dirent.h; then 12100 echo "$as_me:12100: checking for opendir in -ldir" >&5 12101echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6 12102if test "${ac_cv_lib_dir_opendir+set}" = set; then 12103 echo $ECHO_N "(cached) $ECHO_C" >&6 12104else 12105 ac_check_lib_save_LIBS=$LIBS 12106LIBS="-ldir $LIBS" 12107cat >conftest.$ac_ext <<_ACEOF 12108#line 12108 "configure" 12109#include "confdefs.h" 12110 12111/* Override any gcc2 internal prototype to avoid an error. */ 12112#ifdef __cplusplus 12113extern "C" 12114#endif 12115/* We use char because int might match the return type of a gcc2 12116 builtin and then its argument prototype would still apply. */ 12117char opendir (); 12118int 12119main () 12120{ 12121opendir (); 12122 ; 12123 return 0; 12124} 12125_ACEOF 12126rm -f conftest.$ac_objext conftest$ac_exeext 12127if { (eval echo "$as_me:12127: \"$ac_link\"") >&5 12128 (eval $ac_link) 2>&5 12129 ac_status=$? 12130 echo "$as_me:12130: \$? = $ac_status" >&5 12131 (exit $ac_status); } && 12132 { ac_try='test -s conftest$ac_exeext' 12133 { (eval echo "$as_me:12133: \"$ac_try\"") >&5 12134 (eval $ac_try) 2>&5 12135 ac_status=$? 12136 echo "$as_me:12136: \$? = $ac_status" >&5 12137 (exit $ac_status); }; }; then 12138 ac_cv_lib_dir_opendir=yes 12139else 12140 echo "$as_me: failed program was:" >&5 12141cat conftest.$ac_ext >&5 12142ac_cv_lib_dir_opendir=no 12143fi 12144rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12145LIBS=$ac_check_lib_save_LIBS 12146fi 12147echo "$as_me:12147: result: $ac_cv_lib_dir_opendir" >&5 12148echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6 12149if test $ac_cv_lib_dir_opendir = yes; then 12150 LIBS="$LIBS -ldir" 12151fi 12152 12153else 12154 echo "$as_me:12154: checking for opendir in -lx" >&5 12155echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6 12156if test "${ac_cv_lib_x_opendir+set}" = set; then 12157 echo $ECHO_N "(cached) $ECHO_C" >&6 12158else 12159 ac_check_lib_save_LIBS=$LIBS 12160LIBS="-lx $LIBS" 12161cat >conftest.$ac_ext <<_ACEOF 12162#line 12162 "configure" 12163#include "confdefs.h" 12164 12165/* Override any gcc2 internal prototype to avoid an error. */ 12166#ifdef __cplusplus 12167extern "C" 12168#endif 12169/* We use char because int might match the return type of a gcc2 12170 builtin and then its argument prototype would still apply. */ 12171char opendir (); 12172int 12173main () 12174{ 12175opendir (); 12176 ; 12177 return 0; 12178} 12179_ACEOF 12180rm -f conftest.$ac_objext conftest$ac_exeext 12181if { (eval echo "$as_me:12181: \"$ac_link\"") >&5 12182 (eval $ac_link) 2>&5 12183 ac_status=$? 12184 echo "$as_me:12184: \$? = $ac_status" >&5 12185 (exit $ac_status); } && 12186 { ac_try='test -s conftest$ac_exeext' 12187 { (eval echo "$as_me:12187: \"$ac_try\"") >&5 12188 (eval $ac_try) 2>&5 12189 ac_status=$? 12190 echo "$as_me:12190: \$? = $ac_status" >&5 12191 (exit $ac_status); }; }; then 12192 ac_cv_lib_x_opendir=yes 12193else 12194 echo "$as_me: failed program was:" >&5 12195cat conftest.$ac_ext >&5 12196ac_cv_lib_x_opendir=no 12197fi 12198rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12199LIBS=$ac_check_lib_save_LIBS 12200fi 12201echo "$as_me:12201: result: $ac_cv_lib_x_opendir" >&5 12202echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6 12203if test $ac_cv_lib_x_opendir = yes; then 12204 LIBS="$LIBS -lx" 12205fi 12206 12207fi 12208 12209for ac_header in search.h unctrl.h unistd.h 12210do 12211as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12212echo "$as_me:12212: checking for $ac_header" >&5 12213echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12214if eval "test \"\${$as_ac_Header+set}\" = set"; then 12215 echo $ECHO_N "(cached) $ECHO_C" >&6 12216else 12217 cat >conftest.$ac_ext <<_ACEOF 12218#line 12218 "configure" 12219#include "confdefs.h" 12220#include <$ac_header> 12221_ACEOF 12222if { (eval echo "$as_me:12222: \"$ac_cpp conftest.$ac_ext\"") >&5 12223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 12224 ac_status=$? 12225 egrep -v '^ *\+' conftest.er1 >conftest.err 12226 rm -f conftest.er1 12227 cat conftest.err >&5 12228 echo "$as_me:12228: \$? = $ac_status" >&5 12229 (exit $ac_status); } >/dev/null; then 12230 if test -s conftest.err; then 12231 ac_cpp_err=$ac_c_preproc_warn_flag 12232 else 12233 ac_cpp_err= 12234 fi 12235else 12236 ac_cpp_err=yes 12237fi 12238if test -z "$ac_cpp_err"; then 12239 eval "$as_ac_Header=yes" 12240else 12241 echo "$as_me: failed program was:" >&5 12242 cat conftest.$ac_ext >&5 12243 eval "$as_ac_Header=no" 12244fi 12245rm -f conftest.err conftest.$ac_ext 12246fi 12247echo "$as_me:12247: result: `eval echo '${'$as_ac_Header'}'`" >&5 12248echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12249if test `eval echo '${'$as_ac_Header'}'` = yes; then 12250 cat >>confdefs.h <<EOF 12251#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12252EOF 12253 12254fi 12255done 12256 12257echo "$as_me:12257: checking for term.h" >&5 12258echo $ECHO_N "checking for term.h... $ECHO_C" >&6 12259if test "${cf_cv_term_header+set}" = set; then 12260 echo $ECHO_N "(cached) $ECHO_C" >&6 12261else 12262 12263# If we found <ncurses/curses.h>, look for <ncurses/term.h>, but always look 12264# for <term.h> if we do not find the variant. 12265for cf_header in \ 12266 `echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%/.*%/%'`term.h \ 12267 term.h 12268do 12269 cat >conftest.$ac_ext <<_ACEOF 12270#line 12270 "configure" 12271#include "confdefs.h" 12272 12273#include <${cf_cv_ncurses_header:-curses.h}> 12274#include <${cf_header}> 12275int 12276main () 12277{ 12278WINDOW *x 12279 ; 12280 return 0; 12281} 12282_ACEOF 12283rm -f conftest.$ac_objext 12284if { (eval echo "$as_me:12284: \"$ac_compile\"") >&5 12285 (eval $ac_compile) 2>&5 12286 ac_status=$? 12287 echo "$as_me:12287: \$? = $ac_status" >&5 12288 (exit $ac_status); } && 12289 { ac_try='test -s conftest.$ac_objext' 12290 { (eval echo "$as_me:12290: \"$ac_try\"") >&5 12291 (eval $ac_try) 2>&5 12292 ac_status=$? 12293 echo "$as_me:12293: \$? = $ac_status" >&5 12294 (exit $ac_status); }; }; then 12295 cf_cv_term_header=$cf_header 12296 break 12297else 12298 echo "$as_me: failed program was:" >&5 12299cat conftest.$ac_ext >&5 12300cf_cv_term_header=no 12301fi 12302rm -f conftest.$ac_objext conftest.$ac_ext 12303done 12304 12305case $cf_cv_term_header in #(vi 12306no) 12307 # If curses is ncurses, some packagers still mess it up by trying to make 12308 # us use GNU termcap. This handles the most common case. 12309 for cf_header in ncurses/term.h ncursesw/term.h 12310 do 12311 cat >conftest.$ac_ext <<_ACEOF 12312#line 12312 "configure" 12313#include "confdefs.h" 12314 12315#include <${cf_cv_ncurses_header:-curses.h}> 12316#ifdef NCURSES_VERSION 12317#include <${cf_header}> 12318#else 12319make an error 12320#endif 12321int 12322main () 12323{ 12324WINDOW *x 12325 ; 12326 return 0; 12327} 12328_ACEOF 12329rm -f conftest.$ac_objext 12330if { (eval echo "$as_me:12330: \"$ac_compile\"") >&5 12331 (eval $ac_compile) 2>&5 12332 ac_status=$? 12333 echo "$as_me:12333: \$? = $ac_status" >&5 12334 (exit $ac_status); } && 12335 { ac_try='test -s conftest.$ac_objext' 12336 { (eval echo "$as_me:12336: \"$ac_try\"") >&5 12337 (eval $ac_try) 2>&5 12338 ac_status=$? 12339 echo "$as_me:12339: \$? = $ac_status" >&5 12340 (exit $ac_status); }; }; then 12341 cf_cv_term_header=$cf_header 12342 break 12343else 12344 echo "$as_me: failed program was:" >&5 12345cat conftest.$ac_ext >&5 12346cf_cv_term_header=no 12347fi 12348rm -f conftest.$ac_objext conftest.$ac_ext 12349 done 12350 ;; 12351esac 12352 12353fi 12354echo "$as_me:12354: result: $cf_cv_term_header" >&5 12355echo "${ECHO_T}$cf_cv_term_header" >&6 12356 12357case $cf_cv_term_header in #(vi 12358term.h) #(vi 12359 cat >>confdefs.h <<\EOF 12360#define HAVE_TERM_H 1 12361EOF 12362 12363 ;; 12364ncurses/term.h) #(vi 12365 cat >>confdefs.h <<\EOF 12366#define HAVE_NCURSES_TERM_H 1 12367EOF 12368 12369 ;; 12370ncursesw/term.h) 12371 cat >>confdefs.h <<\EOF 12372#define HAVE_NCURSESW_TERM_H 1 12373EOF 12374 12375 ;; 12376esac 12377 12378echo "$as_me:12378: checking return type of signal handlers" >&5 12379echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 12380if test "${ac_cv_type_signal+set}" = set; then 12381 echo $ECHO_N "(cached) $ECHO_C" >&6 12382else 12383 cat >conftest.$ac_ext <<_ACEOF 12384#line 12384 "configure" 12385#include "confdefs.h" 12386#include <sys/types.h> 12387#include <signal.h> 12388#ifdef signal 12389# undef signal 12390#endif 12391#ifdef __cplusplus 12392extern "C" void (*signal (int, void (*)(int)))(int); 12393#else 12394void (*signal ()) (); 12395#endif 12396 12397int 12398main () 12399{ 12400int i; 12401 ; 12402 return 0; 12403} 12404_ACEOF 12405rm -f conftest.$ac_objext 12406if { (eval echo "$as_me:12406: \"$ac_compile\"") >&5 12407 (eval $ac_compile) 2>&5 12408 ac_status=$? 12409 echo "$as_me:12409: \$? = $ac_status" >&5 12410 (exit $ac_status); } && 12411 { ac_try='test -s conftest.$ac_objext' 12412 { (eval echo "$as_me:12412: \"$ac_try\"") >&5 12413 (eval $ac_try) 2>&5 12414 ac_status=$? 12415 echo "$as_me:12415: \$? = $ac_status" >&5 12416 (exit $ac_status); }; }; then 12417 ac_cv_type_signal=void 12418else 12419 echo "$as_me: failed program was:" >&5 12420cat conftest.$ac_ext >&5 12421ac_cv_type_signal=int 12422fi 12423rm -f conftest.$ac_objext conftest.$ac_ext 12424fi 12425echo "$as_me:12425: result: $ac_cv_type_signal" >&5 12426echo "${ECHO_T}$ac_cv_type_signal" >&6 12427 12428cat >>confdefs.h <<EOF 12429#define RETSIGTYPE $ac_cv_type_signal 12430EOF 12431 12432for ac_func in \ 12433_nc_free_and_exit \ 12434btowc \ 12435mblen \ 12436mbrlen \ 12437mbrtowc \ 12438mbtowc \ 12439strcasecmp \ 12440strftime \ 12441tsearch \ 12442waitpid \ 12443wcsrtombs \ 12444wcstombs \ 12445wctob \ 12446wctomb \ 12447 12448do 12449as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12450echo "$as_me:12450: checking for $ac_func" >&5 12451echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 12452if eval "test \"\${$as_ac_var+set}\" = set"; then 12453 echo $ECHO_N "(cached) $ECHO_C" >&6 12454else 12455 cat >conftest.$ac_ext <<_ACEOF 12456#line 12456 "configure" 12457#include "confdefs.h" 12458/* System header to define __stub macros and hopefully few prototypes, 12459 which can conflict with char $ac_func (); below. */ 12460#include <assert.h> 12461/* Override any gcc2 internal prototype to avoid an error. */ 12462#ifdef __cplusplus 12463extern "C" 12464#endif 12465/* We use char because int might match the return type of a gcc2 12466 builtin and then its argument prototype would still apply. */ 12467char $ac_func (); 12468char (*f) (); 12469 12470int 12471main () 12472{ 12473/* The GNU C library defines this for functions which it implements 12474 to always fail with ENOSYS. Some functions are actually named 12475 something starting with __ and the normal name is an alias. */ 12476#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 12477choke me 12478#else 12479f = $ac_func; 12480#endif 12481 12482 ; 12483 return 0; 12484} 12485_ACEOF 12486rm -f conftest.$ac_objext conftest$ac_exeext 12487if { (eval echo "$as_me:12487: \"$ac_link\"") >&5 12488 (eval $ac_link) 2>&5 12489 ac_status=$? 12490 echo "$as_me:12490: \$? = $ac_status" >&5 12491 (exit $ac_status); } && 12492 { ac_try='test -s conftest$ac_exeext' 12493 { (eval echo "$as_me:12493: \"$ac_try\"") >&5 12494 (eval $ac_try) 2>&5 12495 ac_status=$? 12496 echo "$as_me:12496: \$? = $ac_status" >&5 12497 (exit $ac_status); }; }; then 12498 eval "$as_ac_var=yes" 12499else 12500 echo "$as_me: failed program was:" >&5 12501cat conftest.$ac_ext >&5 12502eval "$as_ac_var=no" 12503fi 12504rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12505fi 12506echo "$as_me:12506: result: `eval echo '${'$as_ac_var'}'`" >&5 12507echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 12508if test `eval echo '${'$as_ac_var'}'` = yes; then 12509 cat >>confdefs.h <<EOF 12510#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12511EOF 12512 12513fi 12514done 12515 12516echo "$as_me:12516: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5 12517echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6 12518if test "${cf_cv_need_xopen_extension+set}" = set; then 12519 echo $ECHO_N "(cached) $ECHO_C" >&6 12520else 12521 12522cat >conftest.$ac_ext <<_ACEOF 12523#line 12523 "configure" 12524#include "confdefs.h" 12525 12526#include <stdlib.h> 12527#include <${cf_cv_ncurses_header:-curses.h}> 12528int 12529main () 12530{ 12531 12532#if defined(NCURSES_VERSION_PATCH) 12533#if (NCURSES_VERSION_PATCH < 20100501) && (NCURSES_VERSION_PATCH >= 20100403) 12534 make an error 12535#endif 12536#endif 12537 long x = winnstr(stdscr, "", 0); 12538 int x1, y1; 12539 getbegyx(stdscr, y1, x1) 12540 ; 12541 return 0; 12542} 12543_ACEOF 12544rm -f conftest.$ac_objext conftest$ac_exeext 12545if { (eval echo "$as_me:12545: \"$ac_link\"") >&5 12546 (eval $ac_link) 2>&5 12547 ac_status=$? 12548 echo "$as_me:12548: \$? = $ac_status" >&5 12549 (exit $ac_status); } && 12550 { ac_try='test -s conftest$ac_exeext' 12551 { (eval echo "$as_me:12551: \"$ac_try\"") >&5 12552 (eval $ac_try) 2>&5 12553 ac_status=$? 12554 echo "$as_me:12554: \$? = $ac_status" >&5 12555 (exit $ac_status); }; }; then 12556 cf_cv_need_xopen_extension=no 12557else 12558 echo "$as_me: failed program was:" >&5 12559cat conftest.$ac_ext >&5 12560cat >conftest.$ac_ext <<_ACEOF 12561#line 12561 "configure" 12562#include "confdefs.h" 12563 12564#define _XOPEN_SOURCE_EXTENDED 12565#include <stdlib.h> 12566#include <${cf_cv_ncurses_header:-curses.h}> 12567int 12568main () 12569{ 12570 12571#ifdef NCURSES_VERSION 12572 cchar_t check; 12573 int check2 = curs_set((int)sizeof(check)); 12574#endif 12575 long x = winnstr(stdscr, "", 0); 12576 int x1, y1; 12577 getbegyx(stdscr, y1, x1) 12578 ; 12579 return 0; 12580} 12581_ACEOF 12582rm -f conftest.$ac_objext conftest$ac_exeext 12583if { (eval echo "$as_me:12583: \"$ac_link\"") >&5 12584 (eval $ac_link) 2>&5 12585 ac_status=$? 12586 echo "$as_me:12586: \$? = $ac_status" >&5 12587 (exit $ac_status); } && 12588 { ac_try='test -s conftest$ac_exeext' 12589 { (eval echo "$as_me:12589: \"$ac_try\"") >&5 12590 (eval $ac_try) 2>&5 12591 ac_status=$? 12592 echo "$as_me:12592: \$? = $ac_status" >&5 12593 (exit $ac_status); }; }; then 12594 cf_cv_need_xopen_extension=yes 12595else 12596 echo "$as_me: failed program was:" >&5 12597cat conftest.$ac_ext >&5 12598cf_cv_need_xopen_extension=unknown 12599fi 12600rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12601fi 12602rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12603fi 12604echo "$as_me:12604: result: $cf_cv_need_xopen_extension" >&5 12605echo "${ECHO_T}$cf_cv_need_xopen_extension" >&6 12606test $cf_cv_need_xopen_extension = yes && CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED" 12607 12608for cf_func in \ 12609flushinp \ 12610getattrs \ 12611getbegx \ 12612getbegy \ 12613getbegyx \ 12614getcurx \ 12615getcury \ 12616getmaxx \ 12617getmaxy \ 12618getmaxyx \ 12619getparx \ 12620getpary \ 12621getparyx \ 12622use_default_colors \ 12623wget_wch \ 12624 12625do 12626 12627cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 12628 12629 echo "$as_me:12629: checking for ${cf_func}" >&5 12630echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6 12631 12632echo "${as_me:-configure}:12632: testing ${cf_func} ..." 1>&5 12633 12634 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then 12635 echo $ECHO_N "(cached) $ECHO_C" >&6 12636else 12637 12638 eval cf_result='$ac_cv_func_'$cf_func 12639 if test ".$cf_result" != ".no"; then 12640 cat >conftest.$ac_ext <<_ACEOF 12641#line 12641 "configure" 12642#include "confdefs.h" 12643 12644#ifdef HAVE_XCURSES 12645#include <xcurses.h> 12646char * XCursesProgramName = "test"; 12647#else 12648#include <${cf_cv_ncurses_header:-curses.h}> 12649#if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H) 12650#include <ncursesw/term.h> 12651#elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H) 12652#include <ncurses/term.h> 12653#elif defined(HAVE_TERM_H) 12654#include <term.h> 12655#endif 12656#endif 12657 12658int 12659main () 12660{ 12661 12662#ifndef ${cf_func} 12663long foo = (long)(&${cf_func}); 12664${cf_cv_main_return:-return}(foo == 0); 12665#endif 12666 12667 ; 12668 return 0; 12669} 12670_ACEOF 12671rm -f conftest.$ac_objext conftest$ac_exeext 12672if { (eval echo "$as_me:12672: \"$ac_link\"") >&5 12673 (eval $ac_link) 2>&5 12674 ac_status=$? 12675 echo "$as_me:12675: \$? = $ac_status" >&5 12676 (exit $ac_status); } && 12677 { ac_try='test -s conftest$ac_exeext' 12678 { (eval echo "$as_me:12678: \"$ac_try\"") >&5 12679 (eval $ac_try) 2>&5 12680 ac_status=$? 12681 echo "$as_me:12681: \$? = $ac_status" >&5 12682 (exit $ac_status); }; }; then 12683 cf_result=yes 12684else 12685 echo "$as_me: failed program was:" >&5 12686cat conftest.$ac_ext >&5 12687cf_result=no 12688fi 12689rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12690 fi 12691 eval 'cf_cv_func_'$cf_func'=$cf_result' 12692 12693fi 12694 12695 # use the computed/retrieved cache-value: 12696 eval 'cf_result=$cf_cv_func_'$cf_func 12697 echo "$as_me:12697: result: $cf_result" >&5 12698echo "${ECHO_T}$cf_result" >&6 12699 if test $cf_result != no; then 12700 cat >>confdefs.h <<EOF 12701#define HAVE_${cf_tr_func} 1 12702EOF 12703 12704 fi 12705done 12706 12707echo "$as_me:12707: checking for start_color" >&5 12708echo $ECHO_N "checking for start_color... $ECHO_C" >&6 12709if test "${ac_cv_func_start_color+set}" = set; then 12710 echo $ECHO_N "(cached) $ECHO_C" >&6 12711else 12712 cat >conftest.$ac_ext <<_ACEOF 12713#line 12713 "configure" 12714#include "confdefs.h" 12715/* System header to define __stub macros and hopefully few prototypes, 12716 which can conflict with char start_color (); below. */ 12717#include <assert.h> 12718/* Override any gcc2 internal prototype to avoid an error. */ 12719#ifdef __cplusplus 12720extern "C" 12721#endif 12722/* We use char because int might match the return type of a gcc2 12723 builtin and then its argument prototype would still apply. */ 12724char start_color (); 12725char (*f) (); 12726 12727int 12728main () 12729{ 12730/* The GNU C library defines this for functions which it implements 12731 to always fail with ENOSYS. Some functions are actually named 12732 something starting with __ and the normal name is an alias. */ 12733#if defined (__stub_start_color) || defined (__stub___start_color) 12734choke me 12735#else 12736f = start_color; 12737#endif 12738 12739 ; 12740 return 0; 12741} 12742_ACEOF 12743rm -f conftest.$ac_objext conftest$ac_exeext 12744if { (eval echo "$as_me:12744: \"$ac_link\"") >&5 12745 (eval $ac_link) 2>&5 12746 ac_status=$? 12747 echo "$as_me:12747: \$? = $ac_status" >&5 12748 (exit $ac_status); } && 12749 { ac_try='test -s conftest$ac_exeext' 12750 { (eval echo "$as_me:12750: \"$ac_try\"") >&5 12751 (eval $ac_try) 2>&5 12752 ac_status=$? 12753 echo "$as_me:12753: \$? = $ac_status" >&5 12754 (exit $ac_status); }; }; then 12755 ac_cv_func_start_color=yes 12756else 12757 echo "$as_me: failed program was:" >&5 12758cat conftest.$ac_ext >&5 12759ac_cv_func_start_color=no 12760fi 12761rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12762fi 12763echo "$as_me:12763: result: $ac_cv_func_start_color" >&5 12764echo "${ECHO_T}$ac_cv_func_start_color" >&6 12765if test $ac_cv_func_start_color = yes; then 12766 cat >>confdefs.h <<\EOF 12767#define HAVE_COLOR 1 12768EOF 12769 12770fi 12771 12772echo "$as_me:12772: checking for chtype typedef" >&5 12773echo $ECHO_N "checking for chtype typedef... $ECHO_C" >&6 12774if test "${cf_cv_chtype_decl+set}" = set; then 12775 echo $ECHO_N "(cached) $ECHO_C" >&6 12776else 12777 12778 cat >conftest.$ac_ext <<_ACEOF 12779#line 12779 "configure" 12780#include "confdefs.h" 12781#include <${cf_cv_ncurses_header:-curses.h}> 12782int 12783main () 12784{ 12785chtype foo 12786 ; 12787 return 0; 12788} 12789_ACEOF 12790rm -f conftest.$ac_objext 12791if { (eval echo "$as_me:12791: \"$ac_compile\"") >&5 12792 (eval $ac_compile) 2>&5 12793 ac_status=$? 12794 echo "$as_me:12794: \$? = $ac_status" >&5 12795 (exit $ac_status); } && 12796 { ac_try='test -s conftest.$ac_objext' 12797 { (eval echo "$as_me:12797: \"$ac_try\"") >&5 12798 (eval $ac_try) 2>&5 12799 ac_status=$? 12800 echo "$as_me:12800: \$? = $ac_status" >&5 12801 (exit $ac_status); }; }; then 12802 cf_cv_chtype_decl=yes 12803else 12804 echo "$as_me: failed program was:" >&5 12805cat conftest.$ac_ext >&5 12806cf_cv_chtype_decl=no 12807fi 12808rm -f conftest.$ac_objext conftest.$ac_ext 12809fi 12810echo "$as_me:12810: result: $cf_cv_chtype_decl" >&5 12811echo "${ECHO_T}$cf_cv_chtype_decl" >&6 12812if test $cf_cv_chtype_decl = yes ; then 12813 cat >>confdefs.h <<\EOF 12814#define HAVE_TYPE_CHTYPE 1 12815EOF 12816 12817 echo "$as_me:12817: checking if chtype is scalar or struct" >&5 12818echo $ECHO_N "checking if chtype is scalar or struct... $ECHO_C" >&6 12819if test "${cf_cv_chtype_type+set}" = set; then 12820 echo $ECHO_N "(cached) $ECHO_C" >&6 12821else 12822 12823 cat >conftest.$ac_ext <<_ACEOF 12824#line 12824 "configure" 12825#include "confdefs.h" 12826#include <${cf_cv_ncurses_header:-curses.h}> 12827int 12828main () 12829{ 12830chtype foo; long x = foo 12831 ; 12832 return 0; 12833} 12834_ACEOF 12835rm -f conftest.$ac_objext 12836if { (eval echo "$as_me:12836: \"$ac_compile\"") >&5 12837 (eval $ac_compile) 2>&5 12838 ac_status=$? 12839 echo "$as_me:12839: \$? = $ac_status" >&5 12840 (exit $ac_status); } && 12841 { ac_try='test -s conftest.$ac_objext' 12842 { (eval echo "$as_me:12842: \"$ac_try\"") >&5 12843 (eval $ac_try) 2>&5 12844 ac_status=$? 12845 echo "$as_me:12845: \$? = $ac_status" >&5 12846 (exit $ac_status); }; }; then 12847 cf_cv_chtype_type=scalar 12848else 12849 echo "$as_me: failed program was:" >&5 12850cat conftest.$ac_ext >&5 12851cf_cv_chtype_type=struct 12852fi 12853rm -f conftest.$ac_objext conftest.$ac_ext 12854fi 12855echo "$as_me:12855: result: $cf_cv_chtype_type" >&5 12856echo "${ECHO_T}$cf_cv_chtype_type" >&6 12857 if test $cf_cv_chtype_type = scalar ; then 12858 cat >>confdefs.h <<\EOF 12859#define TYPE_CHTYPE_IS_SCALAR 1 12860EOF 12861 12862 fi 12863fi 12864 12865echo "$as_me:12865: checking for wide alternate character set array" >&5 12866echo $ECHO_N "checking for wide alternate character set array... $ECHO_C" >&6 12867if test "${cf_cv_curses_wacs_map+set}" = set; then 12868 echo $ECHO_N "(cached) $ECHO_C" >&6 12869else 12870 12871 cf_cv_curses_wacs_map=unknown 12872 for name in wacs_map _wacs_map __wacs_map _nc_wacs _wacs_char 12873 do 12874 cat >conftest.$ac_ext <<_ACEOF 12875#line 12875 "configure" 12876#include "confdefs.h" 12877 12878#ifndef _XOPEN_SOURCE_EXTENDED 12879#define _XOPEN_SOURCE_EXTENDED 12880#endif 12881#include <${cf_cv_ncurses_header:-curses.h}> 12882int 12883main () 12884{ 12885void *foo = &($name['k']) 12886 ; 12887 return 0; 12888} 12889_ACEOF 12890rm -f conftest.$ac_objext conftest$ac_exeext 12891if { (eval echo "$as_me:12891: \"$ac_link\"") >&5 12892 (eval $ac_link) 2>&5 12893 ac_status=$? 12894 echo "$as_me:12894: \$? = $ac_status" >&5 12895 (exit $ac_status); } && 12896 { ac_try='test -s conftest$ac_exeext' 12897 { (eval echo "$as_me:12897: \"$ac_try\"") >&5 12898 (eval $ac_try) 2>&5 12899 ac_status=$? 12900 echo "$as_me:12900: \$? = $ac_status" >&5 12901 (exit $ac_status); }; }; then 12902 cf_cv_curses_wacs_map=$name 12903 break 12904else 12905 echo "$as_me: failed program was:" >&5 12906cat conftest.$ac_ext >&5 12907fi 12908rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12909 done 12910fi 12911echo "$as_me:12911: result: $cf_cv_curses_wacs_map" >&5 12912echo "${ECHO_T}$cf_cv_curses_wacs_map" >&6 12913 12914test "$cf_cv_curses_wacs_map" != unknown && cat >>confdefs.h <<EOF 12915#define CURSES_WACS_ARRAY $cf_cv_curses_wacs_map 12916EOF 12917 12918echo "$as_me:12918: checking for wide alternate character constants" >&5 12919echo $ECHO_N "checking for wide alternate character constants... $ECHO_C" >&6 12920if test "${cf_cv_curses_wacs_symbols+set}" = set; then 12921 echo $ECHO_N "(cached) $ECHO_C" >&6 12922else 12923 12924cf_cv_curses_wacs_symbols=no 12925if test "$cf_cv_curses_wacs_map" != unknown 12926then 12927 cat >conftest.$ac_ext <<_ACEOF 12928#line 12928 "configure" 12929#include "confdefs.h" 12930 12931#ifndef _XOPEN_SOURCE_EXTENDED 12932#define _XOPEN_SOURCE_EXTENDED 12933#endif 12934#include <${cf_cv_ncurses_header:-curses.h}> 12935int 12936main () 12937{ 12938cchar_t *foo = WACS_PLUS; 12939 $cf_cv_curses_wacs_map['k'] = *WACS_PLUS 12940 ; 12941 return 0; 12942} 12943_ACEOF 12944rm -f conftest.$ac_objext conftest$ac_exeext 12945if { (eval echo "$as_me:12945: \"$ac_link\"") >&5 12946 (eval $ac_link) 2>&5 12947 ac_status=$? 12948 echo "$as_me:12948: \$? = $ac_status" >&5 12949 (exit $ac_status); } && 12950 { ac_try='test -s conftest$ac_exeext' 12951 { (eval echo "$as_me:12951: \"$ac_try\"") >&5 12952 (eval $ac_try) 2>&5 12953 ac_status=$? 12954 echo "$as_me:12954: \$? = $ac_status" >&5 12955 (exit $ac_status); }; }; then 12956 cf_cv_curses_wacs_symbols=yes 12957else 12958 echo "$as_me: failed program was:" >&5 12959cat conftest.$ac_ext >&5 12960fi 12961rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12962else 12963 cat >conftest.$ac_ext <<_ACEOF 12964#line 12964 "configure" 12965#include "confdefs.h" 12966 12967#ifndef _XOPEN_SOURCE_EXTENDED 12968#define _XOPEN_SOURCE_EXTENDED 12969#endif 12970#include <${cf_cv_ncurses_header:-curses.h}> 12971int 12972main () 12973{ 12974cchar_t *foo = WACS_PLUS 12975 ; 12976 return 0; 12977} 12978_ACEOF 12979rm -f conftest.$ac_objext conftest$ac_exeext 12980if { (eval echo "$as_me:12980: \"$ac_link\"") >&5 12981 (eval $ac_link) 2>&5 12982 ac_status=$? 12983 echo "$as_me:12983: \$? = $ac_status" >&5 12984 (exit $ac_status); } && 12985 { ac_try='test -s conftest$ac_exeext' 12986 { (eval echo "$as_me:12986: \"$ac_try\"") >&5 12987 (eval $ac_try) 2>&5 12988 ac_status=$? 12989 echo "$as_me:12989: \$? = $ac_status" >&5 12990 (exit $ac_status); }; }; then 12991 cf_cv_curses_wacs_symbols=yes 12992else 12993 echo "$as_me: failed program was:" >&5 12994cat conftest.$ac_ext >&5 12995fi 12996rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12997fi 12998 12999fi 13000echo "$as_me:13000: result: $cf_cv_curses_wacs_symbols" >&5 13001echo "${ECHO_T}$cf_cv_curses_wacs_symbols" >&6 13002 13003test "$cf_cv_curses_wacs_symbols" != no && cat >>confdefs.h <<\EOF 13004#define CURSES_WACS_SYMBOLS 1 13005EOF 13006 13007for ac_header in sys/wait.h 13008do 13009as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13010echo "$as_me:13010: checking for $ac_header" >&5 13011echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13012if eval "test \"\${$as_ac_Header+set}\" = set"; then 13013 echo $ECHO_N "(cached) $ECHO_C" >&6 13014else 13015 cat >conftest.$ac_ext <<_ACEOF 13016#line 13016 "configure" 13017#include "confdefs.h" 13018#include <$ac_header> 13019_ACEOF 13020if { (eval echo "$as_me:13020: \"$ac_cpp conftest.$ac_ext\"") >&5 13021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 13022 ac_status=$? 13023 egrep -v '^ *\+' conftest.er1 >conftest.err 13024 rm -f conftest.er1 13025 cat conftest.err >&5 13026 echo "$as_me:13026: \$? = $ac_status" >&5 13027 (exit $ac_status); } >/dev/null; then 13028 if test -s conftest.err; then 13029 ac_cpp_err=$ac_c_preproc_warn_flag 13030 else 13031 ac_cpp_err= 13032 fi 13033else 13034 ac_cpp_err=yes 13035fi 13036if test -z "$ac_cpp_err"; then 13037 eval "$as_ac_Header=yes" 13038else 13039 echo "$as_me: failed program was:" >&5 13040 cat conftest.$ac_ext >&5 13041 eval "$as_ac_Header=no" 13042fi 13043rm -f conftest.err conftest.$ac_ext 13044fi 13045echo "$as_me:13045: result: `eval echo '${'$as_ac_Header'}'`" >&5 13046echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13047if test `eval echo '${'$as_ac_Header'}'` = yes; then 13048 cat >>confdefs.h <<EOF 13049#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13050EOF 13051 13052fi 13053done 13054 13055cf_wait_headers="#include <sys/types.h> 13056" 13057if test $ac_cv_header_sys_wait_h = yes; then 13058cf_wait_headers="$cf_wait_headers 13059#include <sys/wait.h> 13060" 13061else 13062 13063for ac_header in wait.h 13064do 13065as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13066echo "$as_me:13066: checking for $ac_header" >&5 13067echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13068if eval "test \"\${$as_ac_Header+set}\" = set"; then 13069 echo $ECHO_N "(cached) $ECHO_C" >&6 13070else 13071 cat >conftest.$ac_ext <<_ACEOF 13072#line 13072 "configure" 13073#include "confdefs.h" 13074#include <$ac_header> 13075_ACEOF 13076if { (eval echo "$as_me:13076: \"$ac_cpp conftest.$ac_ext\"") >&5 13077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 13078 ac_status=$? 13079 egrep -v '^ *\+' conftest.er1 >conftest.err 13080 rm -f conftest.er1 13081 cat conftest.err >&5 13082 echo "$as_me:13082: \$? = $ac_status" >&5 13083 (exit $ac_status); } >/dev/null; then 13084 if test -s conftest.err; then 13085 ac_cpp_err=$ac_c_preproc_warn_flag 13086 else 13087 ac_cpp_err= 13088 fi 13089else 13090 ac_cpp_err=yes 13091fi 13092if test -z "$ac_cpp_err"; then 13093 eval "$as_ac_Header=yes" 13094else 13095 echo "$as_me: failed program was:" >&5 13096 cat conftest.$ac_ext >&5 13097 eval "$as_ac_Header=no" 13098fi 13099rm -f conftest.err conftest.$ac_ext 13100fi 13101echo "$as_me:13101: result: `eval echo '${'$as_ac_Header'}'`" >&5 13102echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13103if test `eval echo '${'$as_ac_Header'}'` = yes; then 13104 cat >>confdefs.h <<EOF 13105#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13106EOF 13107 13108fi 13109done 13110 13111for ac_header in waitstatus.h 13112do 13113as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13114echo "$as_me:13114: checking for $ac_header" >&5 13115echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13116if eval "test \"\${$as_ac_Header+set}\" = set"; then 13117 echo $ECHO_N "(cached) $ECHO_C" >&6 13118else 13119 cat >conftest.$ac_ext <<_ACEOF 13120#line 13120 "configure" 13121#include "confdefs.h" 13122#include <$ac_header> 13123_ACEOF 13124if { (eval echo "$as_me:13124: \"$ac_cpp conftest.$ac_ext\"") >&5 13125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 13126 ac_status=$? 13127 egrep -v '^ *\+' conftest.er1 >conftest.err 13128 rm -f conftest.er1 13129 cat conftest.err >&5 13130 echo "$as_me:13130: \$? = $ac_status" >&5 13131 (exit $ac_status); } >/dev/null; then 13132 if test -s conftest.err; then 13133 ac_cpp_err=$ac_c_preproc_warn_flag 13134 else 13135 ac_cpp_err= 13136 fi 13137else 13138 ac_cpp_err=yes 13139fi 13140if test -z "$ac_cpp_err"; then 13141 eval "$as_ac_Header=yes" 13142else 13143 echo "$as_me: failed program was:" >&5 13144 cat conftest.$ac_ext >&5 13145 eval "$as_ac_Header=no" 13146fi 13147rm -f conftest.err conftest.$ac_ext 13148fi 13149echo "$as_me:13149: result: `eval echo '${'$as_ac_Header'}'`" >&5 13150echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13151if test `eval echo '${'$as_ac_Header'}'` = yes; then 13152 cat >>confdefs.h <<EOF 13153#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13154EOF 13155 13156fi 13157done 13158 13159if test $ac_cv_header_wait_h = yes; then 13160cf_wait_headers="$cf_wait_headers 13161#include <wait.h> 13162" 13163fi 13164if test $ac_cv_header_waitstatus_h = yes; then 13165cf_wait_headers="$cf_wait_headers 13166#include <waitstatus.h> 13167" 13168fi 13169fi 13170 13171echo "$as_me:13171: checking for union wait" >&5 13172echo $ECHO_N "checking for union wait... $ECHO_C" >&6 13173if test "${cf_cv_type_unionwait+set}" = set; then 13174 echo $ECHO_N "(cached) $ECHO_C" >&6 13175else 13176 13177 cat >conftest.$ac_ext <<_ACEOF 13178#line 13178 "configure" 13179#include "confdefs.h" 13180$cf_wait_headers 13181int 13182main () 13183{ 13184int x; 13185 int y = WEXITSTATUS(x); 13186 int z = WTERMSIG(x); 13187 wait(&x); 13188 13189 ; 13190 return 0; 13191} 13192_ACEOF 13193rm -f conftest.$ac_objext conftest$ac_exeext 13194if { (eval echo "$as_me:13194: \"$ac_link\"") >&5 13195 (eval $ac_link) 2>&5 13196 ac_status=$? 13197 echo "$as_me:13197: \$? = $ac_status" >&5 13198 (exit $ac_status); } && 13199 { ac_try='test -s conftest$ac_exeext' 13200 { (eval echo "$as_me:13200: \"$ac_try\"") >&5 13201 (eval $ac_try) 2>&5 13202 ac_status=$? 13203 echo "$as_me:13203: \$? = $ac_status" >&5 13204 (exit $ac_status); }; }; then 13205 cf_cv_type_unionwait=no 13206 echo compiles ok w/o union wait 1>&5 13207 13208else 13209 echo "$as_me: failed program was:" >&5 13210cat conftest.$ac_ext >&5 13211 13212 cat >conftest.$ac_ext <<_ACEOF 13213#line 13213 "configure" 13214#include "confdefs.h" 13215$cf_wait_headers 13216int 13217main () 13218{ 13219union wait x; 13220#ifdef WEXITSTATUS 13221 int y = WEXITSTATUS(x); 13222#endif 13223#ifdef WTERMSIG 13224 int z = WTERMSIG(x); 13225#endif 13226 wait(&x); 13227 13228 ; 13229 return 0; 13230} 13231_ACEOF 13232rm -f conftest.$ac_objext conftest$ac_exeext 13233if { (eval echo "$as_me:13233: \"$ac_link\"") >&5 13234 (eval $ac_link) 2>&5 13235 ac_status=$? 13236 echo "$as_me:13236: \$? = $ac_status" >&5 13237 (exit $ac_status); } && 13238 { ac_try='test -s conftest$ac_exeext' 13239 { (eval echo "$as_me:13239: \"$ac_try\"") >&5 13240 (eval $ac_try) 2>&5 13241 ac_status=$? 13242 echo "$as_me:13242: \$? = $ac_status" >&5 13243 (exit $ac_status); }; }; then 13244 cf_cv_type_unionwait=yes 13245 echo compiles ok with union wait and possibly macros too 1>&5 13246 13247else 13248 echo "$as_me: failed program was:" >&5 13249cat conftest.$ac_ext >&5 13250cf_cv_type_unionwait=no 13251fi 13252rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13253fi 13254rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13255fi 13256 13257echo "$as_me:13257: result: $cf_cv_type_unionwait" >&5 13258echo "${ECHO_T}$cf_cv_type_unionwait" >&6 13259test $cf_cv_type_unionwait = yes && cat >>confdefs.h <<\EOF 13260#define HAVE_TYPE_UNIONWAIT 1 13261EOF 13262 13263if test $cf_cv_type_unionwait = yes; then 13264 13265 echo "$as_me:13265: checking if union wait can be used as wait-arg" >&5 13266echo $ECHO_N "checking if union wait can be used as wait-arg... $ECHO_C" >&6 13267 if test "${cf_cv_arg_union_wait+set}" = set; then 13268 echo $ECHO_N "(cached) $ECHO_C" >&6 13269else 13270 13271 cat >conftest.$ac_ext <<_ACEOF 13272#line 13272 "configure" 13273#include "confdefs.h" 13274$cf_wait_headers 13275int 13276main () 13277{ 13278union wait x; wait(&x) 13279 ; 13280 return 0; 13281} 13282_ACEOF 13283rm -f conftest.$ac_objext 13284if { (eval echo "$as_me:13284: \"$ac_compile\"") >&5 13285 (eval $ac_compile) 2>&5 13286 ac_status=$? 13287 echo "$as_me:13287: \$? = $ac_status" >&5 13288 (exit $ac_status); } && 13289 { ac_try='test -s conftest.$ac_objext' 13290 { (eval echo "$as_me:13290: \"$ac_try\"") >&5 13291 (eval $ac_try) 2>&5 13292 ac_status=$? 13293 echo "$as_me:13293: \$? = $ac_status" >&5 13294 (exit $ac_status); }; }; then 13295 cf_cv_arg_union_wait=yes 13296else 13297 echo "$as_me: failed program was:" >&5 13298cat conftest.$ac_ext >&5 13299cf_cv_arg_union_wait=no 13300fi 13301rm -f conftest.$ac_objext conftest.$ac_ext 13302 13303fi 13304 13305 echo "$as_me:13305: result: $cf_cv_arg_union_wait" >&5 13306echo "${ECHO_T}$cf_cv_arg_union_wait" >&6 13307 test $cf_cv_arg_union_wait = yes && cat >>confdefs.h <<\EOF 13308#define WAIT_USES_UNION 1 13309EOF 13310 13311 echo "$as_me:13311: checking if union wait can be used as waitpid-arg" >&5 13312echo $ECHO_N "checking if union wait can be used as waitpid-arg... $ECHO_C" >&6 13313 if test "${cf_cv_arg_union_waitpid+set}" = set; then 13314 echo $ECHO_N "(cached) $ECHO_C" >&6 13315else 13316 13317 cat >conftest.$ac_ext <<_ACEOF 13318#line 13318 "configure" 13319#include "confdefs.h" 13320$cf_wait_headers 13321int 13322main () 13323{ 13324union wait x; waitpid(0, &x, 0) 13325 ; 13326 return 0; 13327} 13328_ACEOF 13329rm -f conftest.$ac_objext 13330if { (eval echo "$as_me:13330: \"$ac_compile\"") >&5 13331 (eval $ac_compile) 2>&5 13332 ac_status=$? 13333 echo "$as_me:13333: \$? = $ac_status" >&5 13334 (exit $ac_status); } && 13335 { ac_try='test -s conftest.$ac_objext' 13336 { (eval echo "$as_me:13336: \"$ac_try\"") >&5 13337 (eval $ac_try) 2>&5 13338 ac_status=$? 13339 echo "$as_me:13339: \$? = $ac_status" >&5 13340 (exit $ac_status); }; }; then 13341 cf_cv_arg_union_waitpid=yes 13342else 13343 echo "$as_me: failed program was:" >&5 13344cat conftest.$ac_ext >&5 13345cf_cv_arg_union_waitpid=no 13346fi 13347rm -f conftest.$ac_objext conftest.$ac_ext 13348 13349fi 13350 13351 echo "$as_me:13351: result: $cf_cv_arg_union_waitpid" >&5 13352echo "${ECHO_T}$cf_cv_arg_union_waitpid" >&6 13353 test $cf_cv_arg_union_waitpid = yes && cat >>confdefs.h <<\EOF 13354#define WAITPID_USES_UNION 1 13355EOF 13356 13357fi 13358 13359echo "$as_me:13359: checking if we must include wchar.h to declare mbstate_t" >&5 13360echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6 13361if test "${cf_cv_mbstate_t+set}" = set; then 13362 echo $ECHO_N "(cached) $ECHO_C" >&6 13363else 13364 13365cat >conftest.$ac_ext <<_ACEOF 13366#line 13366 "configure" 13367#include "confdefs.h" 13368 13369#include <stdlib.h> 13370#include <stdio.h> 13371#ifdef HAVE_LIBUTF8_H 13372#include <libutf8.h> 13373#endif 13374int 13375main () 13376{ 13377mbstate_t state 13378 ; 13379 return 0; 13380} 13381_ACEOF 13382rm -f conftest.$ac_objext 13383if { (eval echo "$as_me:13383: \"$ac_compile\"") >&5 13384 (eval $ac_compile) 2>&5 13385 ac_status=$? 13386 echo "$as_me:13386: \$? = $ac_status" >&5 13387 (exit $ac_status); } && 13388 { ac_try='test -s conftest.$ac_objext' 13389 { (eval echo "$as_me:13389: \"$ac_try\"") >&5 13390 (eval $ac_try) 2>&5 13391 ac_status=$? 13392 echo "$as_me:13392: \$? = $ac_status" >&5 13393 (exit $ac_status); }; }; then 13394 cf_cv_mbstate_t=no 13395else 13396 echo "$as_me: failed program was:" >&5 13397cat conftest.$ac_ext >&5 13398cat >conftest.$ac_ext <<_ACEOF 13399#line 13399 "configure" 13400#include "confdefs.h" 13401 13402#include <stdlib.h> 13403#include <stdio.h> 13404#include <wchar.h> 13405#ifdef HAVE_LIBUTF8_H 13406#include <libutf8.h> 13407#endif 13408int 13409main () 13410{ 13411mbstate_t value 13412 ; 13413 return 0; 13414} 13415_ACEOF 13416rm -f conftest.$ac_objext 13417if { (eval echo "$as_me:13417: \"$ac_compile\"") >&5 13418 (eval $ac_compile) 2>&5 13419 ac_status=$? 13420 echo "$as_me:13420: \$? = $ac_status" >&5 13421 (exit $ac_status); } && 13422 { ac_try='test -s conftest.$ac_objext' 13423 { (eval echo "$as_me:13423: \"$ac_try\"") >&5 13424 (eval $ac_try) 2>&5 13425 ac_status=$? 13426 echo "$as_me:13426: \$? = $ac_status" >&5 13427 (exit $ac_status); }; }; then 13428 cf_cv_mbstate_t=yes 13429else 13430 echo "$as_me: failed program was:" >&5 13431cat conftest.$ac_ext >&5 13432cf_cv_mbstate_t=unknown 13433fi 13434rm -f conftest.$ac_objext conftest.$ac_ext 13435fi 13436rm -f conftest.$ac_objext conftest.$ac_ext 13437fi 13438echo "$as_me:13438: result: $cf_cv_mbstate_t" >&5 13439echo "${ECHO_T}$cf_cv_mbstate_t" >&6 13440 13441if test "$cf_cv_mbstate_t" = yes ; then 13442 cat >>confdefs.h <<\EOF 13443#define NEED_WCHAR_H 1 13444EOF 13445 13446fi 13447 13448if test "$cf_cv_mbstate_t" != unknown ; then 13449 cat >>confdefs.h <<\EOF 13450#define HAVE_MBSTATE_T 1 13451EOF 13452 13453fi 13454 13455PACKAGE_PREFIX=DLG 13456PACKAGE_CONFIG=dlg_config.h 13457 13458EXTRA_OUTPUT="$EXTRA_OUTPUT headers-sh:$srcdir/headers-sh.in" 13459 13460cat >conftest.$ac_ext <<_ACEOF 13461#line 13461 "configure" 13462#include "confdefs.h" 13463#include <locale.h> 13464int 13465main () 13466{ 13467setlocale(LC_ALL, "") 13468 ; 13469 return 0; 13470} 13471_ACEOF 13472rm -f conftest.$ac_objext conftest$ac_exeext 13473if { (eval echo "$as_me:13473: \"$ac_link\"") >&5 13474 (eval $ac_link) 2>&5 13475 ac_status=$? 13476 echo "$as_me:13476: \$? = $ac_status" >&5 13477 (exit $ac_status); } && 13478 { ac_try='test -s conftest$ac_exeext' 13479 { (eval echo "$as_me:13479: \"$ac_try\"") >&5 13480 (eval $ac_try) 2>&5 13481 ac_status=$? 13482 echo "$as_me:13482: \$? = $ac_status" >&5 13483 (exit $ac_status); }; }; then 13484 cat >>confdefs.h <<\EOF 13485#define HAVE_SETLOCALE 1 13486EOF 13487 13488else 13489 echo "$as_me: failed program was:" >&5 13490cat conftest.$ac_ext >&5 13491fi 13492rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13493 13494LD_RPATH_OPT= 13495echo "$as_me:13495: checking for an rpath option" >&5 13496echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6 13497case $cf_cv_system_name in #(vi 13498irix*) #(vi 13499 if test "$GCC" = yes; then 13500 LD_RPATH_OPT="-Wl,-rpath," 13501 else 13502 LD_RPATH_OPT="-rpath " 13503 fi 13504 ;; 13505linux*|gnu*|k*bsd*-gnu) #(vi 13506 LD_RPATH_OPT="-Wl,-rpath," 13507 ;; 13508openbsd[2-9].*) #(vi 13509 LD_RPATH_OPT="-Wl,-rpath," 13510 ;; 13511freebsd*) #(vi 13512 LD_RPATH_OPT="-rpath " 13513 ;; 13514netbsd*) #(vi 13515 LD_RPATH_OPT="-Wl,-rpath," 13516 ;; 13517osf*|mls+*) #(vi 13518 LD_RPATH_OPT="-rpath " 13519 ;; 13520solaris2*) #(vi 13521 LD_RPATH_OPT="-R" 13522 ;; 13523*) 13524 ;; 13525esac 13526echo "$as_me:13526: result: $LD_RPATH_OPT" >&5 13527echo "${ECHO_T}$LD_RPATH_OPT" >&6 13528 13529case "x$LD_RPATH_OPT" in #(vi 13530x-R*) 13531 echo "$as_me:13531: checking if we need a space after rpath option" >&5 13532echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6 13533 cf_save_LIBS="$LIBS" 13534 LIBS="${LD_RPATH_OPT}$libdir $LIBS" 13535 cat >conftest.$ac_ext <<_ACEOF 13536#line 13536 "configure" 13537#include "confdefs.h" 13538 13539int 13540main () 13541{ 13542 13543 ; 13544 return 0; 13545} 13546_ACEOF 13547rm -f conftest.$ac_objext conftest$ac_exeext 13548if { (eval echo "$as_me:13548: \"$ac_link\"") >&5 13549 (eval $ac_link) 2>&5 13550 ac_status=$? 13551 echo "$as_me:13551: \$? = $ac_status" >&5 13552 (exit $ac_status); } && 13553 { ac_try='test -s conftest$ac_exeext' 13554 { (eval echo "$as_me:13554: \"$ac_try\"") >&5 13555 (eval $ac_try) 2>&5 13556 ac_status=$? 13557 echo "$as_me:13557: \$? = $ac_status" >&5 13558 (exit $ac_status); }; }; then 13559 cf_rpath_space=no 13560else 13561 echo "$as_me: failed program was:" >&5 13562cat conftest.$ac_ext >&5 13563cf_rpath_space=yes 13564fi 13565rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13566 LIBS="$cf_save_LIBS" 13567 echo "$as_me:13567: result: $cf_rpath_space" >&5 13568echo "${ECHO_T}$cf_rpath_space" >&6 13569 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT " 13570 ;; 13571esac 13572 13573echo "$as_me:13573: checking if rpath should be not be set" >&5 13574echo $ECHO_N "checking if rpath should be not be set... $ECHO_C" >&6 13575 13576# Check whether --enable-rpath-hack or --disable-rpath-hack was given. 13577if test "${enable_rpath_hack+set}" = set; then 13578 enableval="$enable_rpath_hack" 13579 test "$enableval" != no && enableval=yes 13580 if test "$enableval" != "yes" ; then 13581 cf_disable_rpath_hack=yes 13582 else 13583 cf_disable_rpath_hack=no 13584 fi 13585else 13586 enableval=yes 13587 cf_disable_rpath_hack=no 13588 13589fi; 13590echo "$as_me:13590: result: $cf_disable_rpath_hack" >&5 13591echo "${ECHO_T}$cf_disable_rpath_hack" >&6 13592if test "$cf_disable_rpath_hack" = no ; then 13593 13594echo "$as_me:13594: checking for updated LDFLAGS" >&5 13595echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6 13596if test -n "$LD_RPATH_OPT" ; then 13597 echo "$as_me:13597: result: maybe" >&5 13598echo "${ECHO_T}maybe" >&6 13599 13600 for ac_prog in ldd 13601do 13602 # Extract the first word of "$ac_prog", so it can be a program name with args. 13603set dummy $ac_prog; ac_word=$2 13604echo "$as_me:13604: checking for $ac_word" >&5 13605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 13606if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then 13607 echo $ECHO_N "(cached) $ECHO_C" >&6 13608else 13609 if test -n "$cf_ldd_prog"; then 13610 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test. 13611else 13612 ac_save_IFS=$IFS; IFS=$ac_path_separator 13613ac_dummy="$PATH" 13614for ac_dir in $ac_dummy; do 13615 IFS=$ac_save_IFS 13616 test -z "$ac_dir" && ac_dir=. 13617 $as_executable_p "$ac_dir/$ac_word" || continue 13618ac_cv_prog_cf_ldd_prog="$ac_prog" 13619echo "$as_me:13619: found $ac_dir/$ac_word" >&5 13620break 13621done 13622 13623fi 13624fi 13625cf_ldd_prog=$ac_cv_prog_cf_ldd_prog 13626if test -n "$cf_ldd_prog"; then 13627 echo "$as_me:13627: result: $cf_ldd_prog" >&5 13628echo "${ECHO_T}$cf_ldd_prog" >&6 13629else 13630 echo "$as_me:13630: result: no" >&5 13631echo "${ECHO_T}no" >&6 13632fi 13633 13634 test -n "$cf_ldd_prog" && break 13635done 13636test -n "$cf_ldd_prog" || cf_ldd_prog="no" 13637 13638 cf_rpath_list="/usr/lib /lib" 13639 if test "$cf_ldd_prog" != no 13640 then 13641cat >conftest.$ac_ext <<_ACEOF 13642#line 13642 "configure" 13643#include "confdefs.h" 13644#include <stdio.h> 13645int 13646main () 13647{ 13648printf("Hello"); 13649 ; 13650 return 0; 13651} 13652_ACEOF 13653rm -f conftest.$ac_objext conftest$ac_exeext 13654if { (eval echo "$as_me:13654: \"$ac_link\"") >&5 13655 (eval $ac_link) 2>&5 13656 ac_status=$? 13657 echo "$as_me:13657: \$? = $ac_status" >&5 13658 (exit $ac_status); } && 13659 { ac_try='test -s conftest$ac_exeext' 13660 { (eval echo "$as_me:13660: \"$ac_try\"") >&5 13661 (eval $ac_try) 2>&5 13662 ac_status=$? 13663 echo "$as_me:13663: \$? = $ac_status" >&5 13664 (exit $ac_status); }; }; then 13665 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort -u` 13666else 13667 echo "$as_me: failed program was:" >&5 13668cat conftest.$ac_ext >&5 13669fi 13670rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13671 fi 13672 13673 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6 13674 13675echo "${as_me:-configure}:13675: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5 13676 13677test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6 13678 13679echo "${as_me:-configure}:13679: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5 13680 13681cf_rpath_dst= 13682for cf_rpath_src in $LDFLAGS 13683do 13684 case $cf_rpath_src in #(vi 13685 -L*) #(vi 13686 13687 # check if this refers to a directory which we will ignore 13688 cf_rpath_skip=no 13689 if test -n "$cf_rpath_list" 13690 then 13691 for cf_rpath_item in $cf_rpath_list 13692 do 13693 if test "x$cf_rpath_src" = "x-L$cf_rpath_item" 13694 then 13695 cf_rpath_skip=yes 13696 break 13697 fi 13698 done 13699 fi 13700 13701 if test "$cf_rpath_skip" = no 13702 then 13703 # transform the option 13704 if test "$LD_RPATH_OPT" = "-R " ; then 13705 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"` 13706 else 13707 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"` 13708 fi 13709 13710 # if we have not already added this, add it now 13711 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"` 13712 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS" 13713 then 13714 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6 13715 13716echo "${as_me:-configure}:13716: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5 13717 13718 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS" 13719 fi 13720 fi 13721 ;; 13722 esac 13723 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src" 13724done 13725LDFLAGS=$cf_rpath_dst 13726 13727test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6 13728 13729echo "${as_me:-configure}:13729: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5 13730 13731test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6 13732 13733echo "${as_me:-configure}:13733: testing ...checking LIBS $LIBS ..." 1>&5 13734 13735cf_rpath_dst= 13736for cf_rpath_src in $LIBS 13737do 13738 case $cf_rpath_src in #(vi 13739 -L*) #(vi 13740 13741 # check if this refers to a directory which we will ignore 13742 cf_rpath_skip=no 13743 if test -n "$cf_rpath_list" 13744 then 13745 for cf_rpath_item in $cf_rpath_list 13746 do 13747 if test "x$cf_rpath_src" = "x-L$cf_rpath_item" 13748 then 13749 cf_rpath_skip=yes 13750 break 13751 fi 13752 done 13753 fi 13754 13755 if test "$cf_rpath_skip" = no 13756 then 13757 # transform the option 13758 if test "$LD_RPATH_OPT" = "-R " ; then 13759 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"` 13760 else 13761 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"` 13762 fi 13763 13764 # if we have not already added this, add it now 13765 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"` 13766 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS" 13767 then 13768 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6 13769 13770echo "${as_me:-configure}:13770: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5 13771 13772 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS" 13773 fi 13774 fi 13775 ;; 13776 esac 13777 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src" 13778done 13779LIBS=$cf_rpath_dst 13780 13781test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6 13782 13783echo "${as_me:-configure}:13783: testing ...checked LIBS $LIBS ..." 1>&5 13784 13785 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6 13786 13787echo "${as_me:-configure}:13787: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5 13788 13789fi 13790 13791fi 13792 13793ac_config_files="$ac_config_files dialog-config makefile $EXTRA_OUTPUT $SUB_MAKEFILE samples/install/makefile" 13794ac_config_commands="$ac_config_commands default" 13795cat >confcache <<\_ACEOF 13796# This file is a shell script that caches the results of configure 13797# tests run on this system so they can be shared between configure 13798# scripts and configure runs, see configure's option --config-cache. 13799# It is not useful on other systems. If it contains results you don't 13800# want to keep, you may remove or edit it. 13801# 13802# config.status only pays attention to the cache file if you give it 13803# the --recheck option to rerun configure. 13804# 13805# `ac_cv_env_foo' variables (set or unset) will be overriden when 13806# loading this file, other *unset* `ac_cv_foo' will be assigned the 13807# following values. 13808 13809_ACEOF 13810 13811# The following way of writing the cache mishandles newlines in values, 13812# but we know of no workaround that is simple, portable, and efficient. 13813# So, don't put newlines in cache variables' values. 13814# Ultrix sh set writes to stderr and can't be redirected directly, 13815# and sets the high bit in the cache file unless we assign to the vars. 13816{ 13817 (set) 2>&1 | 13818 case `(ac_space=' '; set | grep ac_space) 2>&1` in 13819 *ac_space=\ *) 13820 # `set' does not quote correctly, so add quotes (double-quote 13821 # substitution turns \\\\ into \\, and sed turns \\ into \). 13822 sed -n \ 13823 "s/'/'\\\\''/g; 13824 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13825 ;; 13826 *) 13827 # `set' quotes correctly as required by POSIX, so do not add quotes. 13828 sed -n \ 13829 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 13830 ;; 13831 esac; 13832} | 13833 sed ' 13834 t clear 13835 : clear 13836 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13837 t end 13838 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13839 : end' >>confcache 13840if cmp -s $cache_file confcache; then :; else 13841 if test -w $cache_file; then 13842 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 13843 cat confcache >$cache_file 13844 else 13845 echo "not updating unwritable cache $cache_file" 13846 fi 13847fi 13848rm -f confcache 13849 13850test "x$prefix" = xNONE && prefix=$ac_default_prefix 13851# Let make expand exec_prefix. 13852test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13853 13854# VPATH may cause trouble with some makes, so we remove $(srcdir), 13855# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 13856# trailing colons and then remove the whole line if VPATH becomes empty 13857# (actually we leave an empty line to preserve line numbers). 13858if test "x$srcdir" = x.; then 13859 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 13860s/:*\$(srcdir):*/:/; 13861s/:*\${srcdir}:*/:/; 13862s/:*@srcdir@:*/:/; 13863s/^\([^=]*=[ ]*\):*/\1/; 13864s/:*$//; 13865s/^[^=]*=[ ]*$//; 13866}' 13867fi 13868 13869DEFS=-DHAVE_CONFIG_H 13870 13871: ${CONFIG_STATUS=./config.status} 13872ac_clean_files_save=$ac_clean_files 13873ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13874{ echo "$as_me:13874: creating $CONFIG_STATUS" >&5 13875echo "$as_me: creating $CONFIG_STATUS" >&6;} 13876cat >$CONFIG_STATUS <<_ACEOF 13877#! $SHELL 13878# Generated automatically by configure. 13879# Run this file to recreate the current configuration. 13880# Compiler output produced by configure, useful for debugging 13881# configure, is in config.log if it exists. 13882 13883debug=false 13884SHELL=\${CONFIG_SHELL-$SHELL} 13885ac_cs_invocation="\$0 \$@" 13886 13887_ACEOF 13888 13889cat >>$CONFIG_STATUS <<\_ACEOF 13890# Be Bourne compatible 13891if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13892 emulate sh 13893 NULLCMD=: 13894elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 13895 set -o posix 13896fi 13897 13898# Name of the executable. 13899as_me=`echo "$0" |sed 's,.*[\\/],,'` 13900 13901if expr a : '\(a\)' >/dev/null 2>&1; then 13902 as_expr=expr 13903else 13904 as_expr=false 13905fi 13906 13907rm -f conf$$ conf$$.exe conf$$.file 13908echo >conf$$.file 13909if ln -s conf$$.file conf$$ 2>/dev/null; then 13910 # We could just check for DJGPP; but this test a) works b) is more generic 13911 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 13912 if test -f conf$$.exe; then 13913 # Don't use ln at all; we don't have any links 13914 as_ln_s='cp -p' 13915 else 13916 as_ln_s='ln -s' 13917 fi 13918elif ln conf$$.file conf$$ 2>/dev/null; then 13919 as_ln_s=ln 13920else 13921 as_ln_s='cp -p' 13922fi 13923rm -f conf$$ conf$$.exe conf$$.file 13924 13925as_executable_p="test -f" 13926 13927# Support unset when possible. 13928if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 13929 as_unset=unset 13930else 13931 as_unset=false 13932fi 13933 13934# NLS nuisances. 13935$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 13936$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 13937$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 13938$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 13939$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 13940$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 13941$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 13942$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 13943 13944# IFS 13945# We need space, tab and new line, in precisely that order. 13946as_nl=' 13947' 13948IFS=" $as_nl" 13949 13950# CDPATH. 13951$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 13952 13953exec 6>&1 13954 13955_ACEOF 13956 13957# Files that config.status was made for. 13958if test -n "$ac_config_files"; then 13959 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 13960fi 13961 13962if test -n "$ac_config_headers"; then 13963 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 13964fi 13965 13966if test -n "$ac_config_links"; then 13967 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 13968fi 13969 13970if test -n "$ac_config_commands"; then 13971 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 13972fi 13973 13974cat >>$CONFIG_STATUS <<\EOF 13975 13976ac_cs_usage="\ 13977\`$as_me' instantiates files from templates according to the 13978current configuration. 13979 13980Usage: $0 [OPTIONS] [FILE]... 13981 13982 -h, --help print this help, then exit 13983 -V, --version print version number, then exit 13984 -d, --debug don't remove temporary files 13985 --recheck update $as_me by reconfiguring in the same conditions 13986 --file=FILE[:TEMPLATE] 13987 instantiate the configuration file FILE 13988 --header=FILE[:TEMPLATE] 13989 instantiate the configuration header FILE 13990 13991Configuration files: 13992$config_files 13993 13994Configuration headers: 13995$config_headers 13996 13997Configuration commands: 13998$config_commands 13999 14000Report bugs to <dickey@invisible-island.net>." 14001EOF 14002 14003cat >>$CONFIG_STATUS <<EOF 14004ac_cs_version="\\ 14005config.status 14006configured by $0, generated by GNU Autoconf 2.52.20101002, 14007 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 14008 14009Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 14010Free Software Foundation, Inc. 14011This config.status script is free software; the Free Software Foundation 14012gives unlimited permission to copy, distribute and modify it." 14013srcdir=$srcdir 14014INSTALL="$INSTALL" 14015EOF 14016 14017cat >>$CONFIG_STATUS <<\EOF 14018# If no file are specified by the user, then we need to provide default 14019# value. By we need to know if files were specified by the user. 14020ac_need_defaults=: 14021while test $# != 0 14022do 14023 case $1 in 14024 --*=*) 14025 ac_option=`expr "x$1" : 'x\([^=]*\)='` 14026 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 14027 shift 14028 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 14029 shift 14030 ;; 14031 -*);; 14032 *) # This is not an option, so the user has probably given explicit 14033 # arguments. 14034 ac_need_defaults=false;; 14035 esac 14036 14037 case $1 in 14038 # Handling of the options. 14039EOF 14040cat >>$CONFIG_STATUS <<EOF 14041 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14042 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 14043 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 14044EOF 14045cat >>$CONFIG_STATUS <<\EOF 14046 --version | --vers* | -V ) 14047 echo "$ac_cs_version"; exit 0 ;; 14048 --he | --h) 14049 # Conflict between --help and --header 14050 { { echo "$as_me:14050: error: ambiguous option: $1 14051Try \`$0 --help' for more information." >&5 14052echo "$as_me: error: ambiguous option: $1 14053Try \`$0 --help' for more information." >&2;} 14054 { (exit 1); exit 1; }; };; 14055 --help | --hel | -h ) 14056 echo "$ac_cs_usage"; exit 0 ;; 14057 --debug | --d* | -d ) 14058 debug=: ;; 14059 --file | --fil | --fi | --f ) 14060 shift 14061 CONFIG_FILES="$CONFIG_FILES $1" 14062 ac_need_defaults=false;; 14063 --header | --heade | --head | --hea ) 14064 shift 14065 CONFIG_HEADERS="$CONFIG_HEADERS $1" 14066 ac_need_defaults=false;; 14067 14068 # This is an error. 14069 -*) { { echo "$as_me:14069: error: unrecognized option: $1 14070Try \`$0 --help' for more information." >&5 14071echo "$as_me: error: unrecognized option: $1 14072Try \`$0 --help' for more information." >&2;} 14073 { (exit 1); exit 1; }; } ;; 14074 14075 *) ac_config_targets="$ac_config_targets $1" ;; 14076 14077 esac 14078 shift 14079done 14080 14081exec 5>>config.log 14082cat >&5 << _ACEOF 14083 14084## ----------------------- ## 14085## Running config.status. ## 14086## ----------------------- ## 14087 14088This file was extended by $as_me 2.52.20101002, executed with 14089 CONFIG_FILES = $CONFIG_FILES 14090 CONFIG_HEADERS = $CONFIG_HEADERS 14091 CONFIG_LINKS = $CONFIG_LINKS 14092 CONFIG_COMMANDS = $CONFIG_COMMANDS 14093 > $ac_cs_invocation 14094on `(hostname || uname -n) 2>/dev/null | sed 1q` 14095 14096_ACEOF 14097EOF 14098 14099cat >>$CONFIG_STATUS <<EOF 14100# 14101# INIT-COMMANDS section. 14102# 14103 14104EOF 14105 14106cat >>$CONFIG_STATUS <<\EOF 14107for ac_config_target in $ac_config_targets 14108do 14109 case "$ac_config_target" in 14110 # Handling of arguments. 14111 "dialog-config" ) CONFIG_FILES="$CONFIG_FILES dialog-config" ;; 14112 "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;; 14113 "$EXTRA_OUTPUT" ) CONFIG_FILES="$CONFIG_FILES $EXTRA_OUTPUT" ;; 14114 "$SUB_MAKEFILE" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILE" ;; 14115 "samples/install/makefile" ) CONFIG_FILES="$CONFIG_FILES samples/install/makefile" ;; 14116 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 14117 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 14118 "dlg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS dlg_config.h:config.hin" ;; 14119 *) { { echo "$as_me:14119: error: invalid argument: $ac_config_target" >&5 14120echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14121 { (exit 1); exit 1; }; };; 14122 esac 14123done 14124 14125# If the user did not use the arguments to specify the items to instantiate, 14126# then the envvar interface is used. Set only those that are not. 14127# We use the long form for the default assignment because of an extremely 14128# bizarre bug on SunOS 4.1.3. 14129if $ac_need_defaults; then 14130 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14131 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14132 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14133fi 14134 14135# Create a temporary directory, and hook for its removal unless debugging. 14136$debug || 14137{ 14138 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 14139 trap '{ (exit 1); exit 1; }' 1 2 13 15 14140} 14141 14142# Create a (secure) tmp directory for tmp files. 14143: ${TMPDIR=/tmp} 14144{ 14145 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 14146 test -n "$tmp" && test -d "$tmp" 14147} || 14148{ 14149 tmp=$TMPDIR/cs$$-$RANDOM 14150 (umask 077 && mkdir $tmp) 14151} || 14152{ 14153 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 14154 { (exit 1); exit 1; } 14155} 14156 14157EOF 14158 14159cat >>$CONFIG_STATUS <<EOF 14160 14161# 14162# CONFIG_FILES section. 14163# 14164 14165# No need to generate the scripts if there are no CONFIG_FILES. 14166# This happens for instance when ./config.status config.h 14167if test -n "\$CONFIG_FILES"; then 14168 # Protect against being on the right side of a sed subst in config.status. 14169 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 14170 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 14171s,@SHELL@,$SHELL,;t t 14172s,@exec_prefix@,$exec_prefix,;t t 14173s,@prefix@,$prefix,;t t 14174s,@program_transform_name@,$program_transform_name,;t t 14175s,@bindir@,$bindir,;t t 14176s,@sbindir@,$sbindir,;t t 14177s,@libexecdir@,$libexecdir,;t t 14178s,@datadir@,$datadir,;t t 14179s,@sysconfdir@,$sysconfdir,;t t 14180s,@sharedstatedir@,$sharedstatedir,;t t 14181s,@localstatedir@,$localstatedir,;t t 14182s,@libdir@,$libdir,;t t 14183s,@includedir@,$includedir,;t t 14184s,@oldincludedir@,$oldincludedir,;t t 14185s,@infodir@,$infodir,;t t 14186s,@mandir@,$mandir,;t t 14187s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 14188s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 14189s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 14190s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 14191s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 14192s,@build_alias@,$build_alias,;t t 14193s,@host_alias@,$host_alias,;t t 14194s,@target_alias@,$target_alias,;t t 14195s,@ECHO_C@,$ECHO_C,;t t 14196s,@ECHO_N@,$ECHO_N,;t t 14197s,@ECHO_T@,$ECHO_T,;t t 14198s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 14199s,@DEFS@,$DEFS,;t t 14200s,@LIBS@,$LIBS,;t t 14201s,@DESTDIR@,$DESTDIR,;t t 14202s,@CC@,$CC,;t t 14203s,@CFLAGS@,$CFLAGS,;t t 14204s,@LDFLAGS@,$LDFLAGS,;t t 14205s,@CPPFLAGS@,$CPPFLAGS,;t t 14206s,@ac_ct_CC@,$ac_ct_CC,;t t 14207s,@EXEEXT@,$EXEEXT,;t t 14208s,@OBJEXT@,$OBJEXT,;t t 14209s,@CPP@,$CPP,;t t 14210s,@SET_MAKE@,$SET_MAKE,;t t 14211s,@RANLIB@,$RANLIB,;t t 14212s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 14213s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 14214s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 14215s,@INSTALL_DATA@,$INSTALL_DATA,;t t 14216s,@AR@,$AR,;t t 14217s,@ac_ct_AR@,$ac_ct_AR,;t t 14218s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t 14219s,@CTAGS@,$CTAGS,;t t 14220s,@ETAGS@,$ETAGS,;t t 14221s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t 14222s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t 14223s,@ECHO_LT@,$ECHO_LT,;t t 14224s,@ECHO_LD@,$ECHO_LD,;t t 14225s,@RULE_CC@,$RULE_CC,;t t 14226s,@SHOW_CC@,$SHOW_CC,;t t 14227s,@ECHO_CC@,$ECHO_CC,;t t 14228s,@build@,$build,;t t 14229s,@build_cpu@,$build_cpu,;t t 14230s,@build_vendor@,$build_vendor,;t t 14231s,@build_os@,$build_os,;t t 14232s,@host@,$host,;t t 14233s,@host_cpu@,$host_cpu,;t t 14234s,@host_vendor@,$host_vendor,;t t 14235s,@host_os@,$host_os,;t t 14236s,@PROG_EXT@,$PROG_EXT,;t t 14237s,@LIB_PREFIX@,$LIB_PREFIX,;t t 14238s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t 14239s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t 14240s,@VERSION@,$VERSION,;t t 14241s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t 14242s,@VERSION_MINOR@,$VERSION_MINOR,;t t 14243s,@VERSION_PATCH@,$VERSION_PATCH,;t t 14244s,@PACKAGE@,$PACKAGE,;t t 14245s,@SUB_INC@,$SUB_INC,;t t 14246s,@CONFIG_H@,$CONFIG_H,;t t 14247s,@ALLOCA@,$ALLOCA,;t t 14248s,@GLIBC21@,$GLIBC21,;t t 14249s,@LIBICONV@,$LIBICONV,;t t 14250s,@USE_NLS@,$USE_NLS,;t t 14251s,@MSGFMT@,$MSGFMT,;t t 14252s,@GMSGFMT@,$GMSGFMT,;t t 14253s,@XGETTEXT@,$XGETTEXT,;t t 14254s,@INTLBISON@,$INTLBISON,;t t 14255s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t 14256s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t 14257s,@CATALOGS@,$CATALOGS,;t t 14258s,@CATOBJEXT@,$CATOBJEXT,;t t 14259s,@GMOFILES@,$GMOFILES,;t t 14260s,@INTLLIBS@,$INTLLIBS,;t t 14261s,@INTLOBJS@,$INTLOBJS,;t t 14262s,@POFILES@,$POFILES,;t t 14263s,@POSUB@,$POSUB,;t t 14264s,@DATADIRNAME@,$DATADIRNAME,;t t 14265s,@INSTOBJEXT@,$INSTOBJEXT,;t t 14266s,@GENCAT@,$GENCAT,;t t 14267s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t 14268s,@NLS_TEXTDOMAIN@,$NLS_TEXTDOMAIN,;t t 14269s,@MSG_DIR_MAKE@,$MSG_DIR_MAKE,;t t 14270s,@SUB_MAKEFILE@,$SUB_MAKEFILE,;t t 14271s,@INTLDIR_MAKE@,$INTLDIR_MAKE,;t t 14272s,@GT_YES@,$GT_YES,;t t 14273s,@GT_NO@,$GT_NO,;t t 14274s,@LINK_PREFIX@,$LINK_PREFIX,;t t 14275s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t 14276s,@LIBTOOL@,$LIBTOOL,;t t 14277s,@LT_UNDEF@,$LT_UNDEF,;t t 14278s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t 14279s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t 14280s,@LIB_CREATE@,$LIB_CREATE,;t t 14281s,@LIB_OBJECT@,$LIB_OBJECT,;t t 14282s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t 14283s,@LIB_PREP@,$LIB_PREP,;t t 14284s,@LIB_CLEAN@,$LIB_CLEAN,;t t 14285s,@LIB_COMPILE@,$LIB_COMPILE,;t t 14286s,@LIB_LINK@,$LIB_LINK,;t t 14287s,@LIB_INSTALL@,$LIB_INSTALL,;t t 14288s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t 14289s,@LIBTOOL_MAKE@,$LIBTOOL_MAKE,;t t 14290s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t 14291s,@EXTRAOBJS@,$EXTRAOBJS,;t t 14292s,@PACKAGE_PREFIX@,$PACKAGE_PREFIX,;t t 14293s,@PACKAGE_CONFIG@,$PACKAGE_CONFIG,;t t 14294s,@cf_ldd_prog@,$cf_ldd_prog,;t t 14295s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t 14296CEOF 14297 14298EOF 14299 14300 cat >>$CONFIG_STATUS <<\EOF 14301 # Split the substitutions into bite-sized pieces for seds with 14302 # small command number limits, like on Digital OSF/1 and HP-UX. 14303 ac_max_sed_lines=48 14304 ac_sed_frag=1 # Number of current file. 14305 ac_beg=1 # First line for current file. 14306 ac_end=$ac_max_sed_lines # Line after last line for current file. 14307 ac_more_lines=: 14308 ac_sed_cmds= 14309 while $ac_more_lines; do 14310 if test $ac_beg -gt 1; then 14311 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 14312 else 14313 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 14314 fi 14315 if test ! -s $tmp/subs.frag; then 14316 ac_more_lines=false 14317 else 14318 # The purpose of the label and of the branching condition is to 14319 # speed up the sed processing (if there are no `@' at all, there 14320 # is no need to browse any of the substitutions). 14321 # These are the two extra sed commands mentioned above. 14322 (echo ':t 14323 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 14324 if test -z "$ac_sed_cmds"; then 14325 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 14326 else 14327 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 14328 fi 14329 ac_sed_frag=`expr $ac_sed_frag + 1` 14330 ac_beg=$ac_end 14331 ac_end=`expr $ac_end + $ac_max_sed_lines` 14332 fi 14333 done 14334 if test -z "$ac_sed_cmds"; then 14335 ac_sed_cmds=cat 14336 fi 14337fi # test -n "$CONFIG_FILES" 14338 14339EOF 14340cat >>$CONFIG_STATUS <<\EOF 14341for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 14342 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 14343 case $ac_file in 14344 - | *:- | *:-:* ) # input from stdin 14345 cat >$tmp/stdin 14346 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14347 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14348 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14349 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14350 * ) ac_file_in=$ac_file.in ;; 14351 esac 14352 14353 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 14354 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14355 X"$ac_file" : 'X\(//\)[^/]' \| \ 14356 X"$ac_file" : 'X\(//\)$' \| \ 14357 X"$ac_file" : 'X\(/\)' \| \ 14358 . : '\(.\)' 2>/dev/null || 14359echo X"$ac_file" | 14360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14361 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14362 /^X\(\/\/\)$/{ s//\1/; q; } 14363 /^X\(\/\).*/{ s//\1/; q; } 14364 s/.*/./; q'` 14365 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 14366 { case "$ac_dir" in 14367 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 14368 *) as_incr_dir=.;; 14369esac 14370as_dummy="$ac_dir" 14371for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 14372 case $as_mkdir_dir in 14373 # Skip DOS drivespec 14374 ?:) as_incr_dir=$as_mkdir_dir ;; 14375 *) 14376 as_incr_dir=$as_incr_dir/$as_mkdir_dir 14377 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 14378 ;; 14379 esac 14380done; } 14381 14382 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 14383 # A "../" for each directory in $ac_dir_suffix. 14384 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 14385 else 14386 ac_dir_suffix= ac_dots= 14387 fi 14388 14389 case $srcdir in 14390 .) ac_srcdir=. 14391 if test -z "$ac_dots"; then 14392 ac_top_srcdir=. 14393 else 14394 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` 14395 fi ;; 14396 [\\/]* | ?:[\\/]* ) 14397 ac_srcdir=$srcdir$ac_dir_suffix; 14398 ac_top_srcdir=$srcdir ;; 14399 *) # Relative path. 14400 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix 14401 ac_top_srcdir=$ac_dots$srcdir ;; 14402 esac 14403 14404 case $INSTALL in 14405 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14406 *) ac_INSTALL=$ac_dots$INSTALL ;; 14407 esac 14408 14409 if test x"$ac_file" != x-; then 14410 { echo "$as_me:14410: creating $ac_file" >&5 14411echo "$as_me: creating $ac_file" >&6;} 14412 rm -f "$ac_file" 14413 fi 14414 # Let's still pretend it is `configure' which instantiates (i.e., don't 14415 # use $as_me), people would be surprised to read: 14416 # /* config.h. Generated automatically by config.status. */ 14417 configure_input="Generated automatically from `echo $ac_file_in | 14418 sed 's,.*/,,'` by configure." 14419 14420 # First look for the input files in the build tree, otherwise in the 14421 # src tree. 14422 ac_file_inputs=`IFS=: 14423 for f in $ac_file_in; do 14424 case $f in 14425 -) echo $tmp/stdin ;; 14426 [\\/$]*) 14427 # Absolute (can't be DOS-style, as IFS=:) 14428 test -f "$f" || { { echo "$as_me:14428: error: cannot find input file: $f" >&5 14429echo "$as_me: error: cannot find input file: $f" >&2;} 14430 { (exit 1); exit 1; }; } 14431 echo $f;; 14432 *) # Relative 14433 if test -f "$f"; then 14434 # Build tree 14435 echo $f 14436 elif test -f "$srcdir/$f"; then 14437 # Source tree 14438 echo $srcdir/$f 14439 else 14440 # /dev/null tree 14441 { { echo "$as_me:14441: error: cannot find input file: $f" >&5 14442echo "$as_me: error: cannot find input file: $f" >&2;} 14443 { (exit 1); exit 1; }; } 14444 fi;; 14445 esac 14446 done` || { (exit 1); exit 1; } 14447EOF 14448cat >>$CONFIG_STATUS <<EOF 14449 sed "$ac_vpsub 14450$extrasub 14451EOF 14452cat >>$CONFIG_STATUS <<\EOF 14453:t 14454/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14455s,@configure_input@,$configure_input,;t t 14456s,@srcdir@,$ac_srcdir,;t t 14457s,@top_srcdir@,$ac_top_srcdir,;t t 14458s,@INSTALL@,$ac_INSTALL,;t t 14459" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 14460 rm -f $tmp/stdin 14461 if test x"$ac_file" != x-; then 14462 mv $tmp/out $ac_file 14463 else 14464 cat $tmp/out 14465 rm -f $tmp/out 14466 fi 14467 14468done 14469EOF 14470cat >>$CONFIG_STATUS <<\EOF 14471 14472# 14473# CONFIG_HEADER section. 14474# 14475 14476# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 14477# NAME is the cpp macro being defined and VALUE is the value it is being given. 14478# 14479# ac_d sets the value in "#define NAME VALUE" lines. 14480ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 14481ac_dB='[ ].*$,\1#\2' 14482ac_dC=' ' 14483ac_dD=',;t' 14484# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 14485ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 14486ac_iB='\([ ]\),\1#\2define\3' 14487ac_iC=' ' 14488ac_iD='\4,;t' 14489# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 14490ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 14491ac_uB='$,\1#\2define\3' 14492ac_uC=' ' 14493ac_uD=',;t' 14494 14495for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 14496 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 14497 case $ac_file in 14498 - | *:- | *:-:* ) # input from stdin 14499 cat >$tmp/stdin 14500 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14501 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14502 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14503 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14504 * ) ac_file_in=$ac_file.in ;; 14505 esac 14506 14507 test x"$ac_file" != x- && { echo "$as_me:14507: creating $ac_file" >&5 14508echo "$as_me: creating $ac_file" >&6;} 14509 14510 # First look for the input files in the build tree, otherwise in the 14511 # src tree. 14512 ac_file_inputs=`IFS=: 14513 for f in $ac_file_in; do 14514 case $f in 14515 -) echo $tmp/stdin ;; 14516 [\\/$]*) 14517 # Absolute (can't be DOS-style, as IFS=:) 14518 test -f "$f" || { { echo "$as_me:14518: error: cannot find input file: $f" >&5 14519echo "$as_me: error: cannot find input file: $f" >&2;} 14520 { (exit 1); exit 1; }; } 14521 echo $f;; 14522 *) # Relative 14523 if test -f "$f"; then 14524 # Build tree 14525 echo $f 14526 elif test -f "$srcdir/$f"; then 14527 # Source tree 14528 echo $srcdir/$f 14529 else 14530 # /dev/null tree 14531 { { echo "$as_me:14531: error: cannot find input file: $f" >&5 14532echo "$as_me: error: cannot find input file: $f" >&2;} 14533 { (exit 1); exit 1; }; } 14534 fi;; 14535 esac 14536 done` || { (exit 1); exit 1; } 14537 # Remove the trailing spaces. 14538 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 14539 14540EOF 14541 14542# Transform confdefs.h into a list of #define's. We won't use it as a sed 14543# script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to 14544# be either 'cat' or 'sort'. 14545sort -u confdefs.h | uniq >conftest.vals 14546 14547# Break up conftest.vals because some shells have a limit on 14548# the size of here documents, and old seds have small limits too. 14549 14550rm -f conftest.tail 14551echo ' rm -f conftest.frag' >> $CONFIG_STATUS 14552while grep . conftest.vals >/dev/null 14553do 14554 # Write chunks of a limited-size here document to conftest.frag. 14555 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS 14556 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS 14557 echo 'CEOF' >> $CONFIG_STATUS 14558 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 14559 rm -f conftest.vals 14560 mv conftest.tail conftest.vals 14561done 14562rm -f conftest.vals 14563 14564# Run sed to substitute the contents of conftest.frag into $tmp/in at the 14565# marker @DEFS@. 14566echo ' cat >> conftest.edit <<CEOF 14567/@DEFS@/r conftest.frag 14568/@DEFS@/d 14569CEOF 14570sed -f conftest.edit $tmp/in > $tmp/out 14571rm -f $tmp/in 14572mv $tmp/out $tmp/in 14573rm -f conftest.edit conftest.frag 14574' >> $CONFIG_STATUS 14575 14576cat >>$CONFIG_STATUS <<\EOF 14577 # Let's still pretend it is `configure' which instantiates (i.e., don't 14578 # use $as_me), people would be surprised to read: 14579 # /* config.h. Generated automatically by config.status. */ 14580 if test x"$ac_file" = x-; then 14581 echo "/* Generated automatically by configure. */" >$tmp/config.h 14582 else 14583 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 14584 fi 14585 cat $tmp/in >>$tmp/config.h 14586 rm -f $tmp/in 14587 if test x"$ac_file" != x-; then 14588 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 14589 { echo "$as_me:14589: $ac_file is unchanged" >&5 14590echo "$as_me: $ac_file is unchanged" >&6;} 14591 else 14592 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14593 X"$ac_file" : 'X\(//\)[^/]' \| \ 14594 X"$ac_file" : 'X\(//\)$' \| \ 14595 X"$ac_file" : 'X\(/\)' \| \ 14596 . : '\(.\)' 2>/dev/null || 14597echo X"$ac_file" | 14598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14599 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14600 /^X\(\/\/\)$/{ s//\1/; q; } 14601 /^X\(\/\).*/{ s//\1/; q; } 14602 s/.*/./; q'` 14603 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 14604 { case "$ac_dir" in 14605 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 14606 *) as_incr_dir=.;; 14607esac 14608as_dummy="$ac_dir" 14609for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 14610 case $as_mkdir_dir in 14611 # Skip DOS drivespec 14612 ?:) as_incr_dir=$as_mkdir_dir ;; 14613 *) 14614 as_incr_dir=$as_incr_dir/$as_mkdir_dir 14615 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 14616 ;; 14617 esac 14618done; } 14619 14620 fi 14621 rm -f $ac_file 14622 mv $tmp/config.h $ac_file 14623 fi 14624 else 14625 cat $tmp/config.h 14626 rm -f $tmp/config.h 14627 fi 14628done 14629EOF 14630cat >>$CONFIG_STATUS <<\EOF 14631# 14632# CONFIG_COMMANDS section. 14633# 14634for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 14635 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 14636 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 14637 14638 case $ac_dest in 14639 default-1 ) for ac_file in $CONFIG_FILES; do 14640 14641 # Support "outfile[:infile[:infile...]]" 14642 case "$ac_file" in 14643 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 14644 esac 14645 14646 # PO directories have a Makefile.in generated from Makefile.inn. 14647 case "$ac_file" in */[Mm]akefile.in) 14648 # Adjust a relative srcdir. 14649 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 14650 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 14651 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 14652 ac_base=`basename $ac_file .in` 14653 # In autoconf-2.13 it is called $ac_given_srcdir. 14654 # In autoconf-2.50 it is called $srcdir. 14655 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 14656 14657 case "$ac_given_srcdir" in 14658 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 14659 /*) top_srcdir="$ac_given_srcdir" ;; 14660 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 14661 esac 14662 14663 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 14664 rm -f "$ac_dir/POTFILES" 14665 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 14666 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES" 14667 test -n "$as_me" && echo "$as_me: creating $ac_dir/$ac_base" || echo "creating $ac_dir/$ac_base" 14668 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/$ac_base.in" > "$ac_dir/$ac_base" 14669 fi 14670 ;; 14671 esac 14672 done ;; 14673 esac 14674done 14675EOF 14676 14677cat >>$CONFIG_STATUS <<\EOF 14678 14679{ (exit 0); exit 0; } 14680EOF 14681chmod +x $CONFIG_STATUS 14682ac_clean_files=$ac_clean_files_save 14683 14684# configure is writing to config.log, and then calls config.status. 14685# config.status does its own redirection, appending to config.log. 14686# Unfortunately, on DOS this fails, as config.log is still kept open 14687# by configure, so config.status won't be able to write to it; its 14688# output is simply discarded. So we exec the FD to /dev/null, 14689# effectively closing config.log, so it can be properly (re)opened and 14690# appended to by config.status. When coming back to configure, we 14691# need to make the FD available again. 14692if test "$no_create" != yes; then 14693 ac_cs_success=: 14694 exec 5>/dev/null 14695 $SHELL $CONFIG_STATUS || ac_cs_success=false 14696 exec 5>>config.log 14697 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14698 # would make configure fail if this is the last instruction. 14699 $ac_cs_success || { (exit 1); exit 1; } 14700fi 14701 14702