1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by Autoconf 2.52.20100320. 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-libiconv-prefix=DIR 684 search for libiconv in DIR/include and DIR/lib 685 --enable-nls use Native Language Support 686 --with-included-gettext use the GNU gettext library included here 687 --disable-included-msgs use included messages, for i18n support 688 --with-dmalloc test: use Gray Watson's dmalloc library 689 --with-dbmalloc test: use Conor Cahill's dbmalloc library 690 --with-purify test: use Purify 691 --with-valgrind test: use valgrind 692 --with-no-leaks test: free permanent memory, analyze leaks 693 --disable-trace do not support --trace option 694 --with-libtool generate libraries with libtool 695 --with-libtool-opts=XXX specify additional libtool options 696 --with-ncurses compile/link with ncurses library 697 --with-ncursesw compile/link with wide-char ncurses library 698 --with-curses-dir=DIR directory in which (n)curses is installed 699 --disable-extras do not include extra dialogs 700 --disable-rc-file do not include config-file support 701 --disable-Xdialog do not include Xdialog-style dialogs 702 --disable-form do not include the form dialog 703 --disable-gauge do not include the gauge dialogs 704 --disable-tailbox do not include the tailbox dialog 705 --disable-mixedform do not include the mixedform dialog 706 --disable-mixedgauge do not include the mixedgauge dialog 707 --enable-widec enable wide-curses features 708 --disable-rpath-hack don't add rpath options for additional libraries 709 710Some influential environment variables: 711 CC C compiler command 712 CFLAGS C compiler flags 713 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 714 nonstandard directory <lib dir> 715 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 716 headers in a nonstandard directory <include dir> 717 CPP C preprocessor 718 719Use these variables to override the choices made by `configure' or to help 720it to find libraries and programs with nonstandard names/locations. 721 722EOF 723fi 724 725if test "$ac_init_help" = "recursive"; then 726 # If there are subdirs, report their specific --help. 727 ac_popdir=`pwd` 728 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 729 cd $ac_subdir 730 # A "../" for each directory in /$ac_subdir. 731 ac_dots=`echo $ac_subdir | 732 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 733 734 case $srcdir in 735 .) # No --srcdir option. We are building in place. 736 ac_sub_srcdir=$srcdir ;; 737 [\\/]* | ?:[\\/]* ) # Absolute path. 738 ac_sub_srcdir=$srcdir/$ac_subdir ;; 739 *) # Relative path. 740 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; 741 esac 742 743 # Check for guested configure; otherwise get Cygnus style configure. 744 if test -f $ac_sub_srcdir/configure.gnu; then 745 echo 746 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive 747 elif test -f $ac_sub_srcdir/configure; then 748 echo 749 $SHELL $ac_sub_srcdir/configure --help=recursive 750 elif test -f $ac_sub_srcdir/configure.ac || 751 test -f $ac_sub_srcdir/configure.in; then 752 echo 753 $ac_configure --help 754 else 755 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 756 fi 757 cd $ac_popdir 758 done 759fi 760 761test -n "$ac_init_help" && exit 0 762if $ac_init_version; then 763 cat <<\EOF 764 765Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 766Free Software Foundation, Inc. 767This configure script is free software; the Free Software Foundation 768gives unlimited permission to copy, distribute and modify it. 769EOF 770 exit 0 771fi 772exec 5>config.log 773cat >&5 <<EOF 774This file contains any messages produced by compilers while 775running configure, to aid debugging if configure makes a mistake. 776 777It was created by $as_me, which was 778generated by GNU Autoconf 2.52.20100320. Invocation command line was 779 780 $ $0 $@ 781 782EOF 783{ 784cat <<_ASUNAME 785## ---------- ## 786## Platform. ## 787## ---------- ## 788 789hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 790uname -m = `(uname -m) 2>/dev/null || echo unknown` 791uname -r = `(uname -r) 2>/dev/null || echo unknown` 792uname -s = `(uname -s) 2>/dev/null || echo unknown` 793uname -v = `(uname -v) 2>/dev/null || echo unknown` 794 795/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 796/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 797 798/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 799/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 800/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 801hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 802/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 803/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 804/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 805 806PATH = $PATH 807 808_ASUNAME 809} >&5 810 811cat >&5 <<EOF 812## ------------ ## 813## Core tests. ## 814## ------------ ## 815 816EOF 817 818# Keep a trace of the command line. 819# Strip out --no-create and --no-recursion so they do not pile up. 820# Also quote any args containing shell meta-characters. 821ac_configure_args= 822ac_sep= 823for ac_arg 824do 825 case $ac_arg in 826 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 827 | --no-cr | --no-c) ;; 828 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 829 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 830 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 831 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 832 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 833 ac_sep=" " ;; 834 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 835 ac_sep=" " ;; 836 esac 837 # Get rid of the leading space. 838done 839 840# When interrupted or exit'd, cleanup temporary files, and complete 841# config.log. We remove comments because anyway the quotes in there 842# would cause problems or look ugly. 843trap 'exit_status=$? 844 # Save into config.log some information that might help in debugging. 845 echo >&5 846 echo "## ----------------- ##" >&5 847 echo "## Cache variables. ##" >&5 848 echo "## ----------------- ##" >&5 849 echo >&5 850 # The following way of writing the cache mishandles newlines in values, 851{ 852 (set) 2>&1 | 853 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 854 *ac_space=\ *) 855 sed -n \ 856 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 857 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 858 ;; 859 *) 860 sed -n \ 861 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 862 ;; 863 esac; 864} >&5 865 sed "/^$/d" confdefs.h >conftest.log 866 if test -s conftest.log; then 867 echo >&5 868 echo "## ------------ ##" >&5 869 echo "## confdefs.h. ##" >&5 870 echo "## ------------ ##" >&5 871 echo >&5 872 cat conftest.log >&5 873 fi 874 (echo; echo) >&5 875 test "$ac_signal" != 0 && 876 echo "$as_me: caught signal $ac_signal" >&5 877 echo "$as_me: exit $exit_status" >&5 878 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 879 exit $exit_status 880 ' 0 881for ac_signal in 1 2 13 15; do 882 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 883done 884ac_signal=0 885 886# confdefs.h avoids OS command line length limits that DEFS can exceed. 887rm -rf conftest* confdefs.h 888# AIX cpp loses on an empty file, so make sure it contains at least a newline. 889echo >confdefs.h 890 891# Let the site file select an alternate cache file if it wants to. 892# Prefer explicitly selected file to automatically selected ones. 893if test -z "$CONFIG_SITE"; then 894 if test "x$prefix" != xNONE; then 895 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 896 else 897 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 898 fi 899fi 900for ac_site_file in $CONFIG_SITE; do 901 if test -r "$ac_site_file"; then 902 { echo "$as_me:902: loading site script $ac_site_file" >&5 903echo "$as_me: loading site script $ac_site_file" >&6;} 904 cat "$ac_site_file" >&5 905 . "$ac_site_file" 906 fi 907done 908 909if test -r "$cache_file"; then 910 # Some versions of bash will fail to source /dev/null (special 911 # files actually), so we avoid doing that. 912 if test -f "$cache_file"; then 913 { echo "$as_me:913: loading cache $cache_file" >&5 914echo "$as_me: loading cache $cache_file" >&6;} 915 case $cache_file in 916 [\\/]* | ?:[\\/]* ) . $cache_file;; 917 *) . ./$cache_file;; 918 esac 919 fi 920else 921 { echo "$as_me:921: creating cache $cache_file" >&5 922echo "$as_me: creating cache $cache_file" >&6;} 923 >$cache_file 924fi 925 926# Check that the precious variables saved in the cache have kept the same 927# value. 928ac_cache_corrupted=false 929for ac_var in `(set) 2>&1 | 930 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 931 eval ac_old_set=\$ac_cv_env_${ac_var}_set 932 eval ac_new_set=\$ac_env_${ac_var}_set 933 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 934 eval ac_new_val="\$ac_env_${ac_var}_value" 935 case $ac_old_set,$ac_new_set in 936 set,) 937 { echo "$as_me:937: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 938echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 939 ac_cache_corrupted=: ;; 940 ,set) 941 { echo "$as_me:941: error: \`$ac_var' was not set in the previous run" >&5 942echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 943 ac_cache_corrupted=: ;; 944 ,);; 945 *) 946 if test "x$ac_old_val" != "x$ac_new_val"; then 947 { echo "$as_me:947: error: \`$ac_var' has changed since the previous run:" >&5 948echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 949 { echo "$as_me:949: former value: $ac_old_val" >&5 950echo "$as_me: former value: $ac_old_val" >&2;} 951 { echo "$as_me:951: current value: $ac_new_val" >&5 952echo "$as_me: current value: $ac_new_val" >&2;} 953 ac_cache_corrupted=: 954 fi;; 955 esac 956 # Pass precious variables to config.status. It doesn't matter if 957 # we pass some twice (in addition to the command line arguments). 958 if test "$ac_new_set" = set; then 959 case $ac_new_val in 960 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 961 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` 962 ac_configure_args="$ac_configure_args '$ac_arg'" 963 ;; 964 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" 965 ;; 966 esac 967 fi 968done 969if $ac_cache_corrupted; then 970 { echo "$as_me:970: error: changes in the environment can compromise the build" >&5 971echo "$as_me: error: changes in the environment can compromise the build" >&2;} 972 { { echo "$as_me:972: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 973echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 974 { (exit 1); exit 1; }; } 975fi 976 977ac_ext=c 978ac_cpp='$CPP $CPPFLAGS' 979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 981ac_compiler_gnu=$ac_cv_c_compiler_gnu 982ac_main_return=return 983 984case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 985 *c*,-n*) ECHO_N= ECHO_C=' 986' ECHO_T=' ' ;; 987 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 988 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 989esac 990echo "#! $SHELL" >conftest.sh 991echo "exit 0" >>conftest.sh 992chmod +x conftest.sh 993if { (echo "$as_me:993: PATH=\".;.\"; conftest.sh") >&5 994 (PATH=".;."; conftest.sh) 2>&5 995 ac_status=$? 996 echo "$as_me:996: \$? = $ac_status" >&5 997 (exit $ac_status); }; then 998 ac_path_separator=';' 999else 1000 ac_path_separator=: 1001fi 1002PATH_SEPARATOR="$ac_path_separator" 1003rm -f conftest.sh 1004 1005ac_config_headers="$ac_config_headers dlg_config.h:config.hin" 1006 1007if test -f $srcdir/VERSION ; then 1008 echo "$as_me:1008: checking for package version" >&5 1009echo $ECHO_N "checking for package version... $ECHO_C" >&6 1010 1011 # if there are not enough fields, cut returns the last one... 1012 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1` 1013 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2` 1014 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3` 1015 1016 # this is how CF_BUNDLED_INTL uses $VERSION: 1017 VERSION="$cf_field1" 1018 1019 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'` 1020 test -z "$VERSION_MAJOR" && { { echo "$as_me:1020: error: missing major-version" >&5 1021echo "$as_me: error: missing major-version" >&2;} 1022 { (exit 1); exit 1; }; } 1023 1024 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'` 1025 test -z "$VERSION_MINOR" && { { echo "$as_me:1025: error: missing minor-version" >&5 1026echo "$as_me: error: missing minor-version" >&2;} 1027 { (exit 1); exit 1; }; } 1028 1029 echo "$as_me:1029: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5 1030echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6 1031 1032 echo "$as_me:1032: checking for package patch date" >&5 1033echo $ECHO_N "checking for package patch date... $ECHO_C" >&6 1034 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'` 1035 case .$VERSION_PATCH in 1036 .) 1037 { { echo "$as_me:1037: error: missing patch-date $VERSION_PATCH" >&5 1038echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;} 1039 { (exit 1); exit 1; }; } 1040 ;; 1041 .[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]) 1042 ;; 1043 *) 1044 { { echo "$as_me:1044: error: illegal patch-date $VERSION_PATCH" >&5 1045echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;} 1046 { (exit 1); exit 1; }; } 1047 ;; 1048 esac 1049 echo "$as_me:1049: result: $VERSION_PATCH" >&5 1050echo "${ECHO_T}$VERSION_PATCH" >&6 1051else 1052 { { echo "$as_me:1052: error: did not find $srcdir/VERSION" >&5 1053echo "$as_me: error: did not find $srcdir/VERSION" >&2;} 1054 { (exit 1); exit 1; }; } 1055fi 1056 1057# show the actual data that we have for versions: 1058test -n "$verbose" && echo " VERSION $VERSION" 1>&6 1059 1060echo "${as_me-configure}:1060: testing VERSION $VERSION ..." 1>&5 1061 1062test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6 1063 1064echo "${as_me-configure}:1064: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5 1065 1066test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6 1067 1068echo "${as_me-configure}:1068: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5 1069 1070test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6 1071 1072echo "${as_me-configure}:1072: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5 1073 1074 PACKAGE=dialog 1075 cat >>confdefs.h <<EOF 1076#define PACKAGE "$PACKAGE" 1077EOF 1078 1079cf_PACKAGE=`echo "$PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 1080 1081 cat >>confdefs.h <<EOF 1082#define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}" 1083EOF 1084 1085 cat >>confdefs.h <<EOF 1086#define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH} 1087EOF 1088 1089test "$program_prefix" != NONE && 1090 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1091# Use a double $ so make ignores it. 1092test "$program_suffix" != NONE && 1093 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1094# Double any \ or $. echo might interpret backslashes. 1095# By default was `s,x,x', remove it if useless. 1096cat <<\_ACEOF >conftest.sed 1097s/[\\$]/&&/g;s/;s,x,x,$// 1098_ACEOF 1099program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1100rm conftest.sed 1101 1102DESTDIR= 1103 1104ac_ext=c 1105ac_cpp='$CPP $CPPFLAGS' 1106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1108ac_compiler_gnu=$ac_cv_c_compiler_gnu 1109ac_main_return=return 1110if test -n "$ac_tool_prefix"; then 1111 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1112set dummy ${ac_tool_prefix}gcc; ac_word=$2 1113echo "$as_me:1113: checking for $ac_word" >&5 1114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1115if test "${ac_cv_prog_CC+set}" = set; then 1116 echo $ECHO_N "(cached) $ECHO_C" >&6 1117else 1118 if test -n "$CC"; then 1119 ac_cv_prog_CC="$CC" # Let the user override the test. 1120else 1121 ac_save_IFS=$IFS; IFS=$ac_path_separator 1122ac_dummy="$PATH" 1123for ac_dir in $ac_dummy; do 1124 IFS=$ac_save_IFS 1125 test -z "$ac_dir" && ac_dir=. 1126 $as_executable_p "$ac_dir/$ac_word" || continue 1127ac_cv_prog_CC="${ac_tool_prefix}gcc" 1128echo "$as_me:1128: found $ac_dir/$ac_word" >&5 1129break 1130done 1131 1132fi 1133fi 1134CC=$ac_cv_prog_CC 1135if test -n "$CC"; then 1136 echo "$as_me:1136: result: $CC" >&5 1137echo "${ECHO_T}$CC" >&6 1138else 1139 echo "$as_me:1139: result: no" >&5 1140echo "${ECHO_T}no" >&6 1141fi 1142 1143fi 1144if test -z "$ac_cv_prog_CC"; then 1145 ac_ct_CC=$CC 1146 # Extract the first word of "gcc", so it can be a program name with args. 1147set dummy gcc; ac_word=$2 1148echo "$as_me:1148: checking for $ac_word" >&5 1149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1150if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1151 echo $ECHO_N "(cached) $ECHO_C" >&6 1152else 1153 if test -n "$ac_ct_CC"; then 1154 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1155else 1156 ac_save_IFS=$IFS; IFS=$ac_path_separator 1157ac_dummy="$PATH" 1158for ac_dir in $ac_dummy; do 1159 IFS=$ac_save_IFS 1160 test -z "$ac_dir" && ac_dir=. 1161 $as_executable_p "$ac_dir/$ac_word" || continue 1162ac_cv_prog_ac_ct_CC="gcc" 1163echo "$as_me:1163: found $ac_dir/$ac_word" >&5 1164break 1165done 1166 1167fi 1168fi 1169ac_ct_CC=$ac_cv_prog_ac_ct_CC 1170if test -n "$ac_ct_CC"; then 1171 echo "$as_me:1171: result: $ac_ct_CC" >&5 1172echo "${ECHO_T}$ac_ct_CC" >&6 1173else 1174 echo "$as_me:1174: result: no" >&5 1175echo "${ECHO_T}no" >&6 1176fi 1177 1178 CC=$ac_ct_CC 1179else 1180 CC="$ac_cv_prog_CC" 1181fi 1182 1183if test -z "$CC"; then 1184 if test -n "$ac_tool_prefix"; then 1185 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1186set dummy ${ac_tool_prefix}cc; ac_word=$2 1187echo "$as_me:1187: checking for $ac_word" >&5 1188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1189if test "${ac_cv_prog_CC+set}" = set; then 1190 echo $ECHO_N "(cached) $ECHO_C" >&6 1191else 1192 if test -n "$CC"; then 1193 ac_cv_prog_CC="$CC" # Let the user override the test. 1194else 1195 ac_save_IFS=$IFS; IFS=$ac_path_separator 1196ac_dummy="$PATH" 1197for ac_dir in $ac_dummy; do 1198 IFS=$ac_save_IFS 1199 test -z "$ac_dir" && ac_dir=. 1200 $as_executable_p "$ac_dir/$ac_word" || continue 1201ac_cv_prog_CC="${ac_tool_prefix}cc" 1202echo "$as_me:1202: found $ac_dir/$ac_word" >&5 1203break 1204done 1205 1206fi 1207fi 1208CC=$ac_cv_prog_CC 1209if test -n "$CC"; then 1210 echo "$as_me:1210: result: $CC" >&5 1211echo "${ECHO_T}$CC" >&6 1212else 1213 echo "$as_me:1213: result: no" >&5 1214echo "${ECHO_T}no" >&6 1215fi 1216 1217fi 1218if test -z "$ac_cv_prog_CC"; then 1219 ac_ct_CC=$CC 1220 # Extract the first word of "cc", so it can be a program name with args. 1221set dummy cc; ac_word=$2 1222echo "$as_me:1222: checking for $ac_word" >&5 1223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1224if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1225 echo $ECHO_N "(cached) $ECHO_C" >&6 1226else 1227 if test -n "$ac_ct_CC"; then 1228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1229else 1230 ac_save_IFS=$IFS; IFS=$ac_path_separator 1231ac_dummy="$PATH" 1232for ac_dir in $ac_dummy; do 1233 IFS=$ac_save_IFS 1234 test -z "$ac_dir" && ac_dir=. 1235 $as_executable_p "$ac_dir/$ac_word" || continue 1236ac_cv_prog_ac_ct_CC="cc" 1237echo "$as_me:1237: found $ac_dir/$ac_word" >&5 1238break 1239done 1240 1241fi 1242fi 1243ac_ct_CC=$ac_cv_prog_ac_ct_CC 1244if test -n "$ac_ct_CC"; then 1245 echo "$as_me:1245: result: $ac_ct_CC" >&5 1246echo "${ECHO_T}$ac_ct_CC" >&6 1247else 1248 echo "$as_me:1248: result: no" >&5 1249echo "${ECHO_T}no" >&6 1250fi 1251 1252 CC=$ac_ct_CC 1253else 1254 CC="$ac_cv_prog_CC" 1255fi 1256 1257fi 1258if test -z "$CC"; then 1259 # Extract the first word of "cc", so it can be a program name with args. 1260set dummy cc; ac_word=$2 1261echo "$as_me:1261: checking for $ac_word" >&5 1262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1263if test "${ac_cv_prog_CC+set}" = set; then 1264 echo $ECHO_N "(cached) $ECHO_C" >&6 1265else 1266 if test -n "$CC"; then 1267 ac_cv_prog_CC="$CC" # Let the user override the test. 1268else 1269 ac_prog_rejected=no 1270 ac_save_IFS=$IFS; IFS=$ac_path_separator 1271ac_dummy="$PATH" 1272for ac_dir in $ac_dummy; do 1273 IFS=$ac_save_IFS 1274 test -z "$ac_dir" && ac_dir=. 1275 $as_executable_p "$ac_dir/$ac_word" || continue 1276if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1277 ac_prog_rejected=yes 1278 continue 1279fi 1280ac_cv_prog_CC="cc" 1281echo "$as_me:1281: found $ac_dir/$ac_word" >&5 1282break 1283done 1284 1285if test $ac_prog_rejected = yes; then 1286 # We found a bogon in the path, so make sure we never use it. 1287 set dummy $ac_cv_prog_CC 1288 shift 1289 if test $# != 0; then 1290 # We chose a different compiler from the bogus one. 1291 # However, it has the same basename, so the bogon will be chosen 1292 # first if we set CC to just the basename; use the full file name. 1293 shift 1294 set dummy "$ac_dir/$ac_word" ${1+"$@"} 1295 shift 1296 ac_cv_prog_CC="$@" 1297 fi 1298fi 1299fi 1300fi 1301CC=$ac_cv_prog_CC 1302if test -n "$CC"; then 1303 echo "$as_me:1303: result: $CC" >&5 1304echo "${ECHO_T}$CC" >&6 1305else 1306 echo "$as_me:1306: result: no" >&5 1307echo "${ECHO_T}no" >&6 1308fi 1309 1310fi 1311if test -z "$CC"; then 1312 if test -n "$ac_tool_prefix"; then 1313 for ac_prog in cl 1314 do 1315 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1316set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1317echo "$as_me:1317: checking for $ac_word" >&5 1318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1319if test "${ac_cv_prog_CC+set}" = set; then 1320 echo $ECHO_N "(cached) $ECHO_C" >&6 1321else 1322 if test -n "$CC"; then 1323 ac_cv_prog_CC="$CC" # Let the user override the test. 1324else 1325 ac_save_IFS=$IFS; IFS=$ac_path_separator 1326ac_dummy="$PATH" 1327for ac_dir in $ac_dummy; do 1328 IFS=$ac_save_IFS 1329 test -z "$ac_dir" && ac_dir=. 1330 $as_executable_p "$ac_dir/$ac_word" || continue 1331ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1332echo "$as_me:1332: found $ac_dir/$ac_word" >&5 1333break 1334done 1335 1336fi 1337fi 1338CC=$ac_cv_prog_CC 1339if test -n "$CC"; then 1340 echo "$as_me:1340: result: $CC" >&5 1341echo "${ECHO_T}$CC" >&6 1342else 1343 echo "$as_me:1343: result: no" >&5 1344echo "${ECHO_T}no" >&6 1345fi 1346 1347 test -n "$CC" && break 1348 done 1349fi 1350if test -z "$CC"; then 1351 ac_ct_CC=$CC 1352 for ac_prog in cl 1353do 1354 # Extract the first word of "$ac_prog", so it can be a program name with args. 1355set dummy $ac_prog; ac_word=$2 1356echo "$as_me:1356: checking for $ac_word" >&5 1357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1358if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1359 echo $ECHO_N "(cached) $ECHO_C" >&6 1360else 1361 if test -n "$ac_ct_CC"; then 1362 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1363else 1364 ac_save_IFS=$IFS; IFS=$ac_path_separator 1365ac_dummy="$PATH" 1366for ac_dir in $ac_dummy; do 1367 IFS=$ac_save_IFS 1368 test -z "$ac_dir" && ac_dir=. 1369 $as_executable_p "$ac_dir/$ac_word" || continue 1370ac_cv_prog_ac_ct_CC="$ac_prog" 1371echo "$as_me:1371: found $ac_dir/$ac_word" >&5 1372break 1373done 1374 1375fi 1376fi 1377ac_ct_CC=$ac_cv_prog_ac_ct_CC 1378if test -n "$ac_ct_CC"; then 1379 echo "$as_me:1379: result: $ac_ct_CC" >&5 1380echo "${ECHO_T}$ac_ct_CC" >&6 1381else 1382 echo "$as_me:1382: result: no" >&5 1383echo "${ECHO_T}no" >&6 1384fi 1385 1386 test -n "$ac_ct_CC" && break 1387done 1388 1389 CC=$ac_ct_CC 1390fi 1391 1392fi 1393 1394test -z "$CC" && { { echo "$as_me:1394: error: no acceptable cc found in \$PATH" >&5 1395echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1396 { (exit 1); exit 1; }; } 1397 1398# Provide some information about the compiler. 1399echo "$as_me:1399:" \ 1400 "checking for C compiler version" >&5 1401ac_compiler=`set X $ac_compile; echo $2` 1402{ (eval echo "$as_me:1402: \"$ac_compiler --version </dev/null >&5\"") >&5 1403 (eval $ac_compiler --version </dev/null >&5) 2>&5 1404 ac_status=$? 1405 echo "$as_me:1405: \$? = $ac_status" >&5 1406 (exit $ac_status); } 1407{ (eval echo "$as_me:1407: \"$ac_compiler -v </dev/null >&5\"") >&5 1408 (eval $ac_compiler -v </dev/null >&5) 2>&5 1409 ac_status=$? 1410 echo "$as_me:1410: \$? = $ac_status" >&5 1411 (exit $ac_status); } 1412{ (eval echo "$as_me:1412: \"$ac_compiler -V </dev/null >&5\"") >&5 1413 (eval $ac_compiler -V </dev/null >&5) 2>&5 1414 ac_status=$? 1415 echo "$as_me:1415: \$? = $ac_status" >&5 1416 (exit $ac_status); } 1417 1418cat >conftest.$ac_ext <<_ACEOF 1419#line 1419 "configure" 1420#include "confdefs.h" 1421 1422int 1423main () 1424{ 1425 1426 ; 1427 return 0; 1428} 1429_ACEOF 1430ac_clean_files_save=$ac_clean_files 1431ac_clean_files="$ac_clean_files a.out a.exe" 1432# Try to create an executable without -o first, disregard a.out. 1433# It will help us diagnose broken compilers, and finding out an intuition 1434# of exeext. 1435echo "$as_me:1435: checking for C compiler default output" >&5 1436echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1437ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1438if { (eval echo "$as_me:1438: \"$ac_link_default\"") >&5 1439 (eval $ac_link_default) 2>&5 1440 ac_status=$? 1441 echo "$as_me:1441: \$? = $ac_status" >&5 1442 (exit $ac_status); }; then 1443 # Find the output, starting from the most likely. This scheme is 1444# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1445# resort. 1446for ac_file in `ls a.exe conftest.exe 2>/dev/null; 1447 ls a.out conftest 2>/dev/null; 1448 ls a.* conftest.* 2>/dev/null`; do 1449 case $ac_file in 1450 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1451 a.out ) # We found the default executable, but exeext='' is most 1452 # certainly right. 1453 break;; 1454 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1455 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 1456 export ac_cv_exeext 1457 break;; 1458 * ) break;; 1459 esac 1460done 1461else 1462 echo "$as_me: failed program was:" >&5 1463cat conftest.$ac_ext >&5 1464{ { echo "$as_me:1464: error: C compiler cannot create executables" >&5 1465echo "$as_me: error: C compiler cannot create executables" >&2;} 1466 { (exit 77); exit 77; }; } 1467fi 1468 1469ac_exeext=$ac_cv_exeext 1470echo "$as_me:1470: result: $ac_file" >&5 1471echo "${ECHO_T}$ac_file" >&6 1472 1473# Check the compiler produces executables we can run. If not, either 1474# the compiler is broken, or we cross compile. 1475echo "$as_me:1475: checking whether the C compiler works" >&5 1476echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1477# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1478# If not cross compiling, check that we can run a simple program. 1479if test "$cross_compiling" != yes; then 1480 if { ac_try='./$ac_file' 1481 { (eval echo "$as_me:1481: \"$ac_try\"") >&5 1482 (eval $ac_try) 2>&5 1483 ac_status=$? 1484 echo "$as_me:1484: \$? = $ac_status" >&5 1485 (exit $ac_status); }; }; then 1486 cross_compiling=no 1487 else 1488 if test "$cross_compiling" = maybe; then 1489 cross_compiling=yes 1490 else 1491 { { echo "$as_me:1491: error: cannot run C compiled programs. 1492If you meant to cross compile, use \`--host'." >&5 1493echo "$as_me: error: cannot run C compiled programs. 1494If you meant to cross compile, use \`--host'." >&2;} 1495 { (exit 1); exit 1; }; } 1496 fi 1497 fi 1498fi 1499echo "$as_me:1499: result: yes" >&5 1500echo "${ECHO_T}yes" >&6 1501 1502rm -f a.out a.exe conftest$ac_cv_exeext 1503ac_clean_files=$ac_clean_files_save 1504# Check the compiler produces executables we can run. If not, either 1505# the compiler is broken, or we cross compile. 1506echo "$as_me:1506: checking whether we are cross compiling" >&5 1507echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1508echo "$as_me:1508: result: $cross_compiling" >&5 1509echo "${ECHO_T}$cross_compiling" >&6 1510 1511echo "$as_me:1511: checking for executable suffix" >&5 1512echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1513if { (eval echo "$as_me:1513: \"$ac_link\"") >&5 1514 (eval $ac_link) 2>&5 1515 ac_status=$? 1516 echo "$as_me:1516: \$? = $ac_status" >&5 1517 (exit $ac_status); }; then 1518 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1519# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1520# work properly (i.e., refer to `conftest.exe'), while it won't with 1521# `rm'. 1522for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1523 case $ac_file in 1524 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1525 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1526 export ac_cv_exeext 1527 break;; 1528 * ) break;; 1529 esac 1530done 1531else 1532 { { echo "$as_me:1532: error: cannot compute EXEEXT: cannot compile and link" >&5 1533echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1534 { (exit 1); exit 1; }; } 1535fi 1536 1537rm -f conftest$ac_cv_exeext 1538echo "$as_me:1538: result: $ac_cv_exeext" >&5 1539echo "${ECHO_T}$ac_cv_exeext" >&6 1540 1541rm -f conftest.$ac_ext 1542EXEEXT=$ac_cv_exeext 1543ac_exeext=$EXEEXT 1544echo "$as_me:1544: checking for object suffix" >&5 1545echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 1546if test "${ac_cv_objext+set}" = set; then 1547 echo $ECHO_N "(cached) $ECHO_C" >&6 1548else 1549 cat >conftest.$ac_ext <<_ACEOF 1550#line 1550 "configure" 1551#include "confdefs.h" 1552 1553int 1554main () 1555{ 1556 1557 ; 1558 return 0; 1559} 1560_ACEOF 1561rm -f conftest.o conftest.obj 1562if { (eval echo "$as_me:1562: \"$ac_compile\"") >&5 1563 (eval $ac_compile) 2>&5 1564 ac_status=$? 1565 echo "$as_me:1565: \$? = $ac_status" >&5 1566 (exit $ac_status); }; then 1567 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1568 case $ac_file in 1569 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;; 1570 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1571 break;; 1572 esac 1573done 1574else 1575 echo "$as_me: failed program was:" >&5 1576cat conftest.$ac_ext >&5 1577{ { echo "$as_me:1577: error: cannot compute OBJEXT: cannot compile" >&5 1578echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1579 { (exit 1); exit 1; }; } 1580fi 1581 1582rm -f conftest.$ac_cv_objext conftest.$ac_ext 1583fi 1584echo "$as_me:1584: result: $ac_cv_objext" >&5 1585echo "${ECHO_T}$ac_cv_objext" >&6 1586OBJEXT=$ac_cv_objext 1587ac_objext=$OBJEXT 1588echo "$as_me:1588: checking whether we are using the GNU C compiler" >&5 1589echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1590if test "${ac_cv_c_compiler_gnu+set}" = set; then 1591 echo $ECHO_N "(cached) $ECHO_C" >&6 1592else 1593 cat >conftest.$ac_ext <<_ACEOF 1594#line 1594 "configure" 1595#include "confdefs.h" 1596 1597int 1598main () 1599{ 1600#ifndef __GNUC__ 1601 choke me 1602#endif 1603 1604 ; 1605 return 0; 1606} 1607_ACEOF 1608rm -f conftest.$ac_objext 1609if { (eval echo "$as_me:1609: \"$ac_compile\"") >&5 1610 (eval $ac_compile) 2>&5 1611 ac_status=$? 1612 echo "$as_me:1612: \$? = $ac_status" >&5 1613 (exit $ac_status); } && 1614 { ac_try='test -s conftest.$ac_objext' 1615 { (eval echo "$as_me:1615: \"$ac_try\"") >&5 1616 (eval $ac_try) 2>&5 1617 ac_status=$? 1618 echo "$as_me:1618: \$? = $ac_status" >&5 1619 (exit $ac_status); }; }; then 1620 ac_compiler_gnu=yes 1621else 1622 echo "$as_me: failed program was:" >&5 1623cat conftest.$ac_ext >&5 1624ac_compiler_gnu=no 1625fi 1626rm -f conftest.$ac_objext conftest.$ac_ext 1627ac_cv_c_compiler_gnu=$ac_compiler_gnu 1628 1629fi 1630echo "$as_me:1630: result: $ac_cv_c_compiler_gnu" >&5 1631echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1632GCC=`test $ac_compiler_gnu = yes && echo yes` 1633ac_test_CFLAGS=${CFLAGS+set} 1634ac_save_CFLAGS=$CFLAGS 1635CFLAGS="-g" 1636echo "$as_me:1636: checking whether $CC accepts -g" >&5 1637echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1638if test "${ac_cv_prog_cc_g+set}" = set; then 1639 echo $ECHO_N "(cached) $ECHO_C" >&6 1640else 1641 cat >conftest.$ac_ext <<_ACEOF 1642#line 1642 "configure" 1643#include "confdefs.h" 1644 1645int 1646main () 1647{ 1648 1649 ; 1650 return 0; 1651} 1652_ACEOF 1653rm -f conftest.$ac_objext 1654if { (eval echo "$as_me:1654: \"$ac_compile\"") >&5 1655 (eval $ac_compile) 2>&5 1656 ac_status=$? 1657 echo "$as_me:1657: \$? = $ac_status" >&5 1658 (exit $ac_status); } && 1659 { ac_try='test -s conftest.$ac_objext' 1660 { (eval echo "$as_me:1660: \"$ac_try\"") >&5 1661 (eval $ac_try) 2>&5 1662 ac_status=$? 1663 echo "$as_me:1663: \$? = $ac_status" >&5 1664 (exit $ac_status); }; }; then 1665 ac_cv_prog_cc_g=yes 1666else 1667 echo "$as_me: failed program was:" >&5 1668cat conftest.$ac_ext >&5 1669ac_cv_prog_cc_g=no 1670fi 1671rm -f conftest.$ac_objext conftest.$ac_ext 1672fi 1673echo "$as_me:1673: result: $ac_cv_prog_cc_g" >&5 1674echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1675if test "$ac_test_CFLAGS" = set; then 1676 CFLAGS=$ac_save_CFLAGS 1677elif test $ac_cv_prog_cc_g = yes; then 1678 if test "$GCC" = yes; then 1679 CFLAGS="-g -O2" 1680 else 1681 CFLAGS="-g" 1682 fi 1683else 1684 if test "$GCC" = yes; then 1685 CFLAGS="-O2" 1686 else 1687 CFLAGS= 1688 fi 1689fi 1690# Some people use a C++ compiler to compile C. Since we use `exit', 1691# in C++ we need to declare it. In case someone uses the same compiler 1692# for both compiling C and C++ we need to have the C++ compiler decide 1693# the declaration of exit, since it's the most demanding environment. 1694cat >conftest.$ac_ext <<_ACEOF 1695#ifndef __cplusplus 1696 choke me 1697#endif 1698_ACEOF 1699rm -f conftest.$ac_objext 1700if { (eval echo "$as_me:1700: \"$ac_compile\"") >&5 1701 (eval $ac_compile) 2>&5 1702 ac_status=$? 1703 echo "$as_me:1703: \$? = $ac_status" >&5 1704 (exit $ac_status); } && 1705 { ac_try='test -s conftest.$ac_objext' 1706 { (eval echo "$as_me:1706: \"$ac_try\"") >&5 1707 (eval $ac_try) 2>&5 1708 ac_status=$? 1709 echo "$as_me:1709: \$? = $ac_status" >&5 1710 (exit $ac_status); }; }; then 1711 for ac_declaration in \ 1712 ''\ 1713 '#include <stdlib.h>' \ 1714 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1715 'extern "C" void std::exit (int); using std::exit;' \ 1716 'extern "C" void exit (int) throw ();' \ 1717 'extern "C" void exit (int);' \ 1718 'void exit (int);' 1719do 1720 cat >conftest.$ac_ext <<_ACEOF 1721#line 1721 "configure" 1722#include "confdefs.h" 1723#include <stdlib.h> 1724$ac_declaration 1725int 1726main () 1727{ 1728exit (42); 1729 ; 1730 return 0; 1731} 1732_ACEOF 1733rm -f conftest.$ac_objext 1734if { (eval echo "$as_me:1734: \"$ac_compile\"") >&5 1735 (eval $ac_compile) 2>&5 1736 ac_status=$? 1737 echo "$as_me:1737: \$? = $ac_status" >&5 1738 (exit $ac_status); } && 1739 { ac_try='test -s conftest.$ac_objext' 1740 { (eval echo "$as_me:1740: \"$ac_try\"") >&5 1741 (eval $ac_try) 2>&5 1742 ac_status=$? 1743 echo "$as_me:1743: \$? = $ac_status" >&5 1744 (exit $ac_status); }; }; then 1745 : 1746else 1747 echo "$as_me: failed program was:" >&5 1748cat conftest.$ac_ext >&5 1749continue 1750fi 1751rm -f conftest.$ac_objext conftest.$ac_ext 1752 cat >conftest.$ac_ext <<_ACEOF 1753#line 1753 "configure" 1754#include "confdefs.h" 1755$ac_declaration 1756int 1757main () 1758{ 1759exit (42); 1760 ; 1761 return 0; 1762} 1763_ACEOF 1764rm -f conftest.$ac_objext 1765if { (eval echo "$as_me:1765: \"$ac_compile\"") >&5 1766 (eval $ac_compile) 2>&5 1767 ac_status=$? 1768 echo "$as_me:1768: \$? = $ac_status" >&5 1769 (exit $ac_status); } && 1770 { ac_try='test -s conftest.$ac_objext' 1771 { (eval echo "$as_me:1771: \"$ac_try\"") >&5 1772 (eval $ac_try) 2>&5 1773 ac_status=$? 1774 echo "$as_me:1774: \$? = $ac_status" >&5 1775 (exit $ac_status); }; }; then 1776 break 1777else 1778 echo "$as_me: failed program was:" >&5 1779cat conftest.$ac_ext >&5 1780fi 1781rm -f conftest.$ac_objext conftest.$ac_ext 1782done 1783rm -f conftest* 1784if test -n "$ac_declaration"; then 1785 echo '#ifdef __cplusplus' >>confdefs.h 1786 echo $ac_declaration >>confdefs.h 1787 echo '#endif' >>confdefs.h 1788fi 1789 1790else 1791 echo "$as_me: failed program was:" >&5 1792cat conftest.$ac_ext >&5 1793fi 1794rm -f conftest.$ac_objext conftest.$ac_ext 1795ac_ext=c 1796ac_cpp='$CPP $CPPFLAGS' 1797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1799ac_compiler_gnu=$ac_cv_c_compiler_gnu 1800ac_main_return=return 1801 1802ac_ext=c 1803ac_cpp='$CPP $CPPFLAGS' 1804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1806ac_compiler_gnu=$ac_cv_c_compiler_gnu 1807ac_main_return=return 1808echo "$as_me:1808: checking how to run the C preprocessor" >&5 1809echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 1810# On Suns, sometimes $CPP names a directory. 1811if test -n "$CPP" && test -d "$CPP"; then 1812 CPP= 1813fi 1814if test -z "$CPP"; then 1815 if test "${ac_cv_prog_CPP+set}" = set; then 1816 echo $ECHO_N "(cached) $ECHO_C" >&6 1817else 1818 # Double quotes because CPP needs to be expanded 1819 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 1820 do 1821 ac_preproc_ok=false 1822for ac_c_preproc_warn_flag in '' yes 1823do 1824 # Use a header file that comes with gcc, so configuring glibc 1825 # with a fresh cross-compiler works. 1826 # On the NeXT, cc -E runs the code through the compiler's parser, 1827 # not just through cpp. "Syntax error" is here to catch this case. 1828 cat >conftest.$ac_ext <<_ACEOF 1829#line 1829 "configure" 1830#include "confdefs.h" 1831#include <assert.h> 1832 Syntax error 1833_ACEOF 1834if { (eval echo "$as_me:1834: \"$ac_cpp conftest.$ac_ext\"") >&5 1835 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 1836 ac_status=$? 1837 egrep -v '^ *\+' conftest.er1 >conftest.err 1838 rm -f conftest.er1 1839 cat conftest.err >&5 1840 echo "$as_me:1840: \$? = $ac_status" >&5 1841 (exit $ac_status); } >/dev/null; then 1842 if test -s conftest.err; then 1843 ac_cpp_err=$ac_c_preproc_warn_flag 1844 else 1845 ac_cpp_err= 1846 fi 1847else 1848 ac_cpp_err=yes 1849fi 1850if test -z "$ac_cpp_err"; then 1851 : 1852else 1853 echo "$as_me: failed program was:" >&5 1854 cat conftest.$ac_ext >&5 1855 # Broken: fails on valid input. 1856continue 1857fi 1858rm -f conftest.err conftest.$ac_ext 1859 1860 # OK, works on sane cases. Now check whether non-existent headers 1861 # can be detected and how. 1862 cat >conftest.$ac_ext <<_ACEOF 1863#line 1863 "configure" 1864#include "confdefs.h" 1865#include <ac_nonexistent.h> 1866_ACEOF 1867if { (eval echo "$as_me:1867: \"$ac_cpp conftest.$ac_ext\"") >&5 1868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 1869 ac_status=$? 1870 egrep -v '^ *\+' conftest.er1 >conftest.err 1871 rm -f conftest.er1 1872 cat conftest.err >&5 1873 echo "$as_me:1873: \$? = $ac_status" >&5 1874 (exit $ac_status); } >/dev/null; then 1875 if test -s conftest.err; then 1876 ac_cpp_err=$ac_c_preproc_warn_flag 1877 else 1878 ac_cpp_err= 1879 fi 1880else 1881 ac_cpp_err=yes 1882fi 1883if test -z "$ac_cpp_err"; then 1884 # Broken: success on invalid input. 1885continue 1886else 1887 echo "$as_me: failed program was:" >&5 1888 cat conftest.$ac_ext >&5 1889 # Passes both tests. 1890ac_preproc_ok=: 1891break 1892fi 1893rm -f conftest.err conftest.$ac_ext 1894 1895done 1896# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 1897rm -f conftest.err conftest.$ac_ext 1898if $ac_preproc_ok; then 1899 break 1900fi 1901 1902 done 1903 ac_cv_prog_CPP=$CPP 1904 1905fi 1906 CPP=$ac_cv_prog_CPP 1907else 1908 ac_cv_prog_CPP=$CPP 1909fi 1910echo "$as_me:1910: result: $CPP" >&5 1911echo "${ECHO_T}$CPP" >&6 1912ac_preproc_ok=false 1913for ac_c_preproc_warn_flag in '' yes 1914do 1915 # Use a header file that comes with gcc, so configuring glibc 1916 # with a fresh cross-compiler works. 1917 # On the NeXT, cc -E runs the code through the compiler's parser, 1918 # not just through cpp. "Syntax error" is here to catch this case. 1919 cat >conftest.$ac_ext <<_ACEOF 1920#line 1920 "configure" 1921#include "confdefs.h" 1922#include <assert.h> 1923 Syntax error 1924_ACEOF 1925if { (eval echo "$as_me:1925: \"$ac_cpp conftest.$ac_ext\"") >&5 1926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 1927 ac_status=$? 1928 egrep -v '^ *\+' conftest.er1 >conftest.err 1929 rm -f conftest.er1 1930 cat conftest.err >&5 1931 echo "$as_me:1931: \$? = $ac_status" >&5 1932 (exit $ac_status); } >/dev/null; then 1933 if test -s conftest.err; then 1934 ac_cpp_err=$ac_c_preproc_warn_flag 1935 else 1936 ac_cpp_err= 1937 fi 1938else 1939 ac_cpp_err=yes 1940fi 1941if test -z "$ac_cpp_err"; then 1942 : 1943else 1944 echo "$as_me: failed program was:" >&5 1945 cat conftest.$ac_ext >&5 1946 # Broken: fails on valid input. 1947continue 1948fi 1949rm -f conftest.err conftest.$ac_ext 1950 1951 # OK, works on sane cases. Now check whether non-existent headers 1952 # can be detected and how. 1953 cat >conftest.$ac_ext <<_ACEOF 1954#line 1954 "configure" 1955#include "confdefs.h" 1956#include <ac_nonexistent.h> 1957_ACEOF 1958if { (eval echo "$as_me:1958: \"$ac_cpp conftest.$ac_ext\"") >&5 1959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 1960 ac_status=$? 1961 egrep -v '^ *\+' conftest.er1 >conftest.err 1962 rm -f conftest.er1 1963 cat conftest.err >&5 1964 echo "$as_me:1964: \$? = $ac_status" >&5 1965 (exit $ac_status); } >/dev/null; then 1966 if test -s conftest.err; then 1967 ac_cpp_err=$ac_c_preproc_warn_flag 1968 else 1969 ac_cpp_err= 1970 fi 1971else 1972 ac_cpp_err=yes 1973fi 1974if test -z "$ac_cpp_err"; then 1975 # Broken: success on invalid input. 1976continue 1977else 1978 echo "$as_me: failed program was:" >&5 1979 cat conftest.$ac_ext >&5 1980 # Passes both tests. 1981ac_preproc_ok=: 1982break 1983fi 1984rm -f conftest.err conftest.$ac_ext 1985 1986done 1987# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 1988rm -f conftest.err conftest.$ac_ext 1989if $ac_preproc_ok; then 1990 : 1991else 1992 { { echo "$as_me:1992: error: C preprocessor \"$CPP\" fails sanity check" >&5 1993echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 1994 { (exit 1); exit 1; }; } 1995fi 1996 1997ac_ext=c 1998ac_cpp='$CPP $CPPFLAGS' 1999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2001ac_compiler_gnu=$ac_cv_c_compiler_gnu 2002ac_main_return=return 2003 2004if test $ac_cv_c_compiler_gnu = yes; then 2005 echo "$as_me:2005: checking whether $CC needs -traditional" >&5 2006echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 2007if test "${ac_cv_prog_gcc_traditional+set}" = set; then 2008 echo $ECHO_N "(cached) $ECHO_C" >&6 2009else 2010 ac_pattern="Autoconf.*'x'" 2011 cat >conftest.$ac_ext <<_ACEOF 2012#line 2012 "configure" 2013#include "confdefs.h" 2014#include <sgtty.h> 2015int Autoconf = TIOCGETP; 2016_ACEOF 2017if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2018 egrep "$ac_pattern" >/dev/null 2>&1; then 2019 ac_cv_prog_gcc_traditional=yes 2020else 2021 ac_cv_prog_gcc_traditional=no 2022fi 2023rm -f conftest* 2024 2025 if test $ac_cv_prog_gcc_traditional = no; then 2026 cat >conftest.$ac_ext <<_ACEOF 2027#line 2027 "configure" 2028#include "confdefs.h" 2029#include <termio.h> 2030int Autoconf = TCGETA; 2031_ACEOF 2032if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2033 egrep "$ac_pattern" >/dev/null 2>&1; then 2034 ac_cv_prog_gcc_traditional=yes 2035fi 2036rm -f conftest* 2037 2038 fi 2039fi 2040echo "$as_me:2040: result: $ac_cv_prog_gcc_traditional" >&5 2041echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 2042 if test $ac_cv_prog_gcc_traditional = yes; then 2043 CC="$CC -traditional" 2044 fi 2045fi 2046 2047echo "$as_me:2047: checking whether ${MAKE-make} sets \${MAKE}" >&5 2048echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 2049set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 2050if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2051 echo $ECHO_N "(cached) $ECHO_C" >&6 2052else 2053 cat >conftest.make <<\EOF 2054all: 2055 @echo 'ac_maketemp="${MAKE}"' 2056EOF 2057# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2058eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2059if test -n "$ac_maketemp"; then 2060 eval ac_cv_prog_make_${ac_make}_set=yes 2061else 2062 eval ac_cv_prog_make_${ac_make}_set=no 2063fi 2064rm -f conftest.make 2065fi 2066if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2067 echo "$as_me:2067: result: yes" >&5 2068echo "${ECHO_T}yes" >&6 2069 SET_MAKE= 2070else 2071 echo "$as_me:2071: result: no" >&5 2072echo "${ECHO_T}no" >&6 2073 SET_MAKE="MAKE=${MAKE-make}" 2074fi 2075 2076if test -n "$ac_tool_prefix"; then 2077 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2078set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2079echo "$as_me:2079: checking for $ac_word" >&5 2080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2081if test "${ac_cv_prog_RANLIB+set}" = set; then 2082 echo $ECHO_N "(cached) $ECHO_C" >&6 2083else 2084 if test -n "$RANLIB"; then 2085 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2086else 2087 ac_save_IFS=$IFS; IFS=$ac_path_separator 2088ac_dummy="$PATH" 2089for ac_dir in $ac_dummy; do 2090 IFS=$ac_save_IFS 2091 test -z "$ac_dir" && ac_dir=. 2092 $as_executable_p "$ac_dir/$ac_word" || continue 2093ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2094echo "$as_me:2094: found $ac_dir/$ac_word" >&5 2095break 2096done 2097 2098fi 2099fi 2100RANLIB=$ac_cv_prog_RANLIB 2101if test -n "$RANLIB"; then 2102 echo "$as_me:2102: result: $RANLIB" >&5 2103echo "${ECHO_T}$RANLIB" >&6 2104else 2105 echo "$as_me:2105: result: no" >&5 2106echo "${ECHO_T}no" >&6 2107fi 2108 2109fi 2110if test -z "$ac_cv_prog_RANLIB"; then 2111 ac_ct_RANLIB=$RANLIB 2112 # Extract the first word of "ranlib", so it can be a program name with args. 2113set dummy ranlib; ac_word=$2 2114echo "$as_me:2114: checking for $ac_word" >&5 2115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2116if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2117 echo $ECHO_N "(cached) $ECHO_C" >&6 2118else 2119 if test -n "$ac_ct_RANLIB"; then 2120 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2121else 2122 ac_save_IFS=$IFS; IFS=$ac_path_separator 2123ac_dummy="$PATH" 2124for ac_dir in $ac_dummy; do 2125 IFS=$ac_save_IFS 2126 test -z "$ac_dir" && ac_dir=. 2127 $as_executable_p "$ac_dir/$ac_word" || continue 2128ac_cv_prog_ac_ct_RANLIB="ranlib" 2129echo "$as_me:2129: found $ac_dir/$ac_word" >&5 2130break 2131done 2132 2133 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 2134fi 2135fi 2136ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2137if test -n "$ac_ct_RANLIB"; then 2138 echo "$as_me:2138: result: $ac_ct_RANLIB" >&5 2139echo "${ECHO_T}$ac_ct_RANLIB" >&6 2140else 2141 echo "$as_me:2141: result: no" >&5 2142echo "${ECHO_T}no" >&6 2143fi 2144 2145 RANLIB=$ac_ct_RANLIB 2146else 2147 RANLIB="$ac_cv_prog_RANLIB" 2148fi 2149 2150ac_aux_dir= 2151for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 2152 if test -f $ac_dir/install-sh; then 2153 ac_aux_dir=$ac_dir 2154 ac_install_sh="$ac_aux_dir/install-sh -c" 2155 break 2156 elif test -f $ac_dir/install.sh; then 2157 ac_aux_dir=$ac_dir 2158 ac_install_sh="$ac_aux_dir/install.sh -c" 2159 break 2160 elif test -f $ac_dir/shtool; then 2161 ac_aux_dir=$ac_dir 2162 ac_install_sh="$ac_aux_dir/shtool install -c" 2163 break 2164 fi 2165done 2166if test -z "$ac_aux_dir"; then 2167 { { echo "$as_me:2167: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2168echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2169 { (exit 1); exit 1; }; } 2170fi 2171ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2172ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2173ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 2174 2175# Find a good install program. We prefer a C program (faster), 2176# so one script is as good as another. But avoid the broken or 2177# incompatible versions: 2178# SysV /etc/install, /usr/sbin/install 2179# SunOS /usr/etc/install 2180# IRIX /sbin/install 2181# AIX /bin/install 2182# AmigaOS /C/install, which installs bootblocks on floppy discs 2183# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2184# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2185# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2186# ./install, which can be erroneously created by make from ./install.sh. 2187echo "$as_me:2187: checking for a BSD compatible install" >&5 2188echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 2189if test -z "$INSTALL"; then 2190if test "${ac_cv_path_install+set}" = set; then 2191 echo $ECHO_N "(cached) $ECHO_C" >&6 2192else 2193 ac_save_IFS=$IFS; IFS=$ac_path_separator 2194 for ac_dir in $PATH; do 2195 IFS=$ac_save_IFS 2196 # Account for people who put trailing slashes in PATH elements. 2197 case $ac_dir/ in 2198 / | ./ | .// | /cC/* \ 2199 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 2200 | /usr/ucb/* ) ;; 2201 *) 2202 # OSF1 and SCO ODT 3.0 have their own names for install. 2203 # Don't use installbsd from OSF since it installs stuff as root 2204 # by default. 2205 for ac_prog in ginstall scoinst install; do 2206 if $as_executable_p "$ac_dir/$ac_prog"; then 2207 if test $ac_prog = install && 2208 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2209 # AIX install. It has an incompatible calling convention. 2210 : 2211 elif test $ac_prog = install && 2212 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2213 # program-specific install script used by HP pwplus--don't use. 2214 : 2215 else 2216 ac_cv_path_install="$ac_dir/$ac_prog -c" 2217 break 2 2218 fi 2219 fi 2220 done 2221 ;; 2222 esac 2223 done 2224 2225fi 2226 if test "${ac_cv_path_install+set}" = set; then 2227 INSTALL=$ac_cv_path_install 2228 else 2229 # As a last resort, use the slow shell script. We don't cache a 2230 # path for INSTALL within a source directory, because that will 2231 # break other packages using the cache if that directory is 2232 # removed, or if the path is relative. 2233 INSTALL=$ac_install_sh 2234 fi 2235fi 2236echo "$as_me:2236: result: $INSTALL" >&5 2237echo "${ECHO_T}$INSTALL" >&6 2238 2239# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2240# It thinks the first close brace ends the variable substitution. 2241test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2242 2243test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2244 2245test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2246 2247if test -n "$ac_tool_prefix"; then 2248 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 2249set dummy ${ac_tool_prefix}ar; ac_word=$2 2250echo "$as_me:2250: checking for $ac_word" >&5 2251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2252if test "${ac_cv_prog_AR+set}" = set; then 2253 echo $ECHO_N "(cached) $ECHO_C" >&6 2254else 2255 if test -n "$AR"; then 2256 ac_cv_prog_AR="$AR" # Let the user override the test. 2257else 2258 ac_save_IFS=$IFS; IFS=$ac_path_separator 2259ac_dummy="$PATH" 2260for ac_dir in $ac_dummy; do 2261 IFS=$ac_save_IFS 2262 test -z "$ac_dir" && ac_dir=. 2263 $as_executable_p "$ac_dir/$ac_word" || continue 2264ac_cv_prog_AR="${ac_tool_prefix}ar" 2265echo "$as_me:2265: found $ac_dir/$ac_word" >&5 2266break 2267done 2268 2269fi 2270fi 2271AR=$ac_cv_prog_AR 2272if test -n "$AR"; then 2273 echo "$as_me:2273: result: $AR" >&5 2274echo "${ECHO_T}$AR" >&6 2275else 2276 echo "$as_me:2276: result: no" >&5 2277echo "${ECHO_T}no" >&6 2278fi 2279 2280fi 2281if test -z "$ac_cv_prog_AR"; then 2282 ac_ct_AR=$AR 2283 # Extract the first word of "ar", so it can be a program name with args. 2284set dummy ar; ac_word=$2 2285echo "$as_me:2285: checking for $ac_word" >&5 2286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2287if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 2288 echo $ECHO_N "(cached) $ECHO_C" >&6 2289else 2290 if test -n "$ac_ct_AR"; then 2291 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 2292else 2293 ac_save_IFS=$IFS; IFS=$ac_path_separator 2294ac_dummy="$PATH" 2295for ac_dir in $ac_dummy; do 2296 IFS=$ac_save_IFS 2297 test -z "$ac_dir" && ac_dir=. 2298 $as_executable_p "$ac_dir/$ac_word" || continue 2299ac_cv_prog_ac_ct_AR="ar" 2300echo "$as_me:2300: found $ac_dir/$ac_word" >&5 2301break 2302done 2303 2304 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" 2305fi 2306fi 2307ac_ct_AR=$ac_cv_prog_ac_ct_AR 2308if test -n "$ac_ct_AR"; then 2309 echo "$as_me:2309: result: $ac_ct_AR" >&5 2310echo "${ECHO_T}$ac_ct_AR" >&6 2311else 2312 echo "$as_me:2312: result: no" >&5 2313echo "${ECHO_T}no" >&6 2314fi 2315 2316 AR=$ac_ct_AR 2317else 2318 AR="$ac_cv_prog_AR" 2319fi 2320 2321echo "$as_me:2321: checking for POSIXized ISC" >&5 2322echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6 2323if test -d /etc/conf/kconfig.d && 2324 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 2325then 2326 echo "$as_me:2326: result: yes" >&5 2327echo "${ECHO_T}yes" >&6 2328 ISC=yes # If later tests want to check for ISC. 2329 2330cat >>confdefs.h <<\EOF 2331#define _POSIX_SOURCE 1 2332EOF 2333 2334 if test "$GCC" = yes; then 2335 CC="$CC -posix" 2336 else 2337 CC="$CC -Xp" 2338 fi 2339else 2340 echo "$as_me:2340: result: no" >&5 2341echo "${ECHO_T}no" >&6 2342 ISC= 2343fi 2344 2345echo "$as_me:2345: checking for $CC option to accept ANSI C" >&5 2346echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2347if test "${ac_cv_prog_cc_stdc+set}" = set; then 2348 echo $ECHO_N "(cached) $ECHO_C" >&6 2349else 2350 ac_cv_prog_cc_stdc=no 2351ac_save_CC=$CC 2352cat >conftest.$ac_ext <<_ACEOF 2353#line 2353 "configure" 2354#include "confdefs.h" 2355#include <stdarg.h> 2356#include <stdio.h> 2357#include <sys/types.h> 2358#include <sys/stat.h> 2359/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2360struct buf { int x; }; 2361FILE * (*rcsopen) (struct buf *, struct stat *, int); 2362static char *e (p, i) 2363 char **p; 2364 int i; 2365{ 2366 return p[i]; 2367} 2368static char *f (char * (*g) (char **, int), char **p, ...) 2369{ 2370 char *s; 2371 va_list v; 2372 va_start (v,p); 2373 s = g (p, va_arg (v,int)); 2374 va_end (v); 2375 return s; 2376} 2377int test (int i, double x); 2378struct s1 {int (*f) (int a);}; 2379struct s2 {int (*f) (double a);}; 2380int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2381int argc; 2382char **argv; 2383int 2384main () 2385{ 2386return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2387 ; 2388 return 0; 2389} 2390_ACEOF 2391# Don't try gcc -ansi; that turns off useful extensions and 2392# breaks some systems' header files. 2393# AIX -qlanglvl=ansi 2394# Ultrix and OSF/1 -std1 2395# HP-UX 10.20 and later -Ae 2396# HP-UX older versions -Aa -D_HPUX_SOURCE 2397# SVR4 -Xc -D__EXTENSIONS__ 2398for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2399do 2400 CC="$ac_save_CC $ac_arg" 2401 rm -f conftest.$ac_objext 2402if { (eval echo "$as_me:2402: \"$ac_compile\"") >&5 2403 (eval $ac_compile) 2>&5 2404 ac_status=$? 2405 echo "$as_me:2405: \$? = $ac_status" >&5 2406 (exit $ac_status); } && 2407 { ac_try='test -s conftest.$ac_objext' 2408 { (eval echo "$as_me:2408: \"$ac_try\"") >&5 2409 (eval $ac_try) 2>&5 2410 ac_status=$? 2411 echo "$as_me:2411: \$? = $ac_status" >&5 2412 (exit $ac_status); }; }; then 2413 ac_cv_prog_cc_stdc=$ac_arg 2414break 2415else 2416 echo "$as_me: failed program was:" >&5 2417cat conftest.$ac_ext >&5 2418fi 2419rm -f conftest.$ac_objext 2420done 2421rm -f conftest.$ac_ext conftest.$ac_objext 2422CC=$ac_save_CC 2423 2424fi 2425 2426case "x$ac_cv_prog_cc_stdc" in 2427 x|xno) 2428 echo "$as_me:2428: result: none needed" >&5 2429echo "${ECHO_T}none needed" >&6 ;; 2430 *) 2431 echo "$as_me:2431: result: $ac_cv_prog_cc_stdc" >&5 2432echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2433 CC="$CC $ac_cv_prog_cc_stdc" ;; 2434esac 2435 2436echo "$as_me:2436: checking for an ANSI C-conforming const" >&5 2437echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 2438if test "${ac_cv_c_const+set}" = set; then 2439 echo $ECHO_N "(cached) $ECHO_C" >&6 2440else 2441 cat >conftest.$ac_ext <<_ACEOF 2442#line 2442 "configure" 2443#include "confdefs.h" 2444 2445int 2446main () 2447{ 2448/* FIXME: Include the comments suggested by Paul. */ 2449#ifndef __cplusplus 2450 /* Ultrix mips cc rejects this. */ 2451 typedef int charset[2]; 2452 const charset x; 2453 /* SunOS 4.1.1 cc rejects this. */ 2454 char const *const *ccp; 2455 char **p; 2456 /* NEC SVR4.0.2 mips cc rejects this. */ 2457 struct point {int x, y;}; 2458 static struct point const zero = {0,0}; 2459 /* AIX XL C 1.02.0.0 rejects this. 2460 It does not let you subtract one const X* pointer from another in 2461 an arm of an if-expression whose if-part is not a constant 2462 expression */ 2463 const char *g = "string"; 2464 ccp = &g + (g ? g-g : 0); 2465 /* HPUX 7.0 cc rejects these. */ 2466 ++ccp; 2467 p = (char**) ccp; 2468 ccp = (char const *const *) p; 2469 { /* SCO 3.2v4 cc rejects this. */ 2470 char *t; 2471 char const *s = 0 ? (char *) 0 : (char const *) 0; 2472 2473 *t++ = 0; 2474 } 2475 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 2476 int x[] = {25, 17}; 2477 const int *foo = &x[0]; 2478 ++foo; 2479 } 2480 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 2481 typedef const int *iptr; 2482 iptr p = 0; 2483 ++p; 2484 } 2485 { /* AIX XL C 1.02.0.0 rejects this saying 2486 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 2487 struct s { int j; const int *ap[3]; }; 2488 struct s *b; b->j = 5; 2489 } 2490 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 2491 const int foo = 10; 2492 } 2493#endif 2494 2495 ; 2496 return 0; 2497} 2498_ACEOF 2499rm -f conftest.$ac_objext 2500if { (eval echo "$as_me:2500: \"$ac_compile\"") >&5 2501 (eval $ac_compile) 2>&5 2502 ac_status=$? 2503 echo "$as_me:2503: \$? = $ac_status" >&5 2504 (exit $ac_status); } && 2505 { ac_try='test -s conftest.$ac_objext' 2506 { (eval echo "$as_me:2506: \"$ac_try\"") >&5 2507 (eval $ac_try) 2>&5 2508 ac_status=$? 2509 echo "$as_me:2509: \$? = $ac_status" >&5 2510 (exit $ac_status); }; }; then 2511 ac_cv_c_const=yes 2512else 2513 echo "$as_me: failed program was:" >&5 2514cat conftest.$ac_ext >&5 2515ac_cv_c_const=no 2516fi 2517rm -f conftest.$ac_objext conftest.$ac_ext 2518fi 2519echo "$as_me:2519: result: $ac_cv_c_const" >&5 2520echo "${ECHO_T}$ac_cv_c_const" >&6 2521if test $ac_cv_c_const = no; then 2522 2523cat >>confdefs.h <<\EOF 2524#define const 2525EOF 2526 2527fi 2528 2529echo "$as_me:2529: checking for makeflags variable" >&5 2530echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6 2531if test "${cf_cv_makeflags+set}" = set; then 2532 echo $ECHO_N "(cached) $ECHO_C" >&6 2533else 2534 2535 cf_cv_makeflags='' 2536 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}' 2537 do 2538 cat >cf_makeflags.tmp <<CF_EOF 2539SHELL = /bin/sh 2540all : 2541 @ echo '.$cf_option' 2542CF_EOF 2543 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'` 2544 case "$cf_result" in 2545 .*k) 2546 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null` 2547 case "$cf_result" in 2548 .*CC=*) cf_cv_makeflags= 2549 ;; 2550 *) cf_cv_makeflags=$cf_option 2551 ;; 2552 esac 2553 break 2554 ;; 2555 .-) ;; 2556 *) echo "given option \"$cf_option\", no match \"$cf_result\"" 2557 ;; 2558 esac 2559 done 2560 rm -f cf_makeflags.tmp 2561 2562fi 2563echo "$as_me:2563: result: $cf_cv_makeflags" >&5 2564echo "${ECHO_T}$cf_cv_makeflags" >&6 2565 2566echo "$as_me:2566: checking if filesystem supports mixed-case filenames" >&5 2567echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6 2568if test "${cf_cv_mixedcase+set}" = set; then 2569 echo $ECHO_N "(cached) $ECHO_C" >&6 2570else 2571 2572if test "$cross_compiling" = yes ; then 2573 case $target_alias in #(vi 2574 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi 2575 cf_cv_mixedcase=no 2576 ;; 2577 *) 2578 cf_cv_mixedcase=yes 2579 ;; 2580 esac 2581else 2582 rm -f conftest CONFTEST 2583 echo test >conftest 2584 if test -f CONFTEST ; then 2585 cf_cv_mixedcase=no 2586 else 2587 cf_cv_mixedcase=yes 2588 fi 2589 rm -f conftest CONFTEST 2590fi 2591 2592fi 2593echo "$as_me:2593: result: $cf_cv_mixedcase" >&5 2594echo "${ECHO_T}$cf_cv_mixedcase" >&6 2595test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF 2596#define MIXEDCASE_FILENAMES 1 2597EOF 2598 2599for ac_prog in exctags ctags 2600do 2601 # Extract the first word of "$ac_prog", so it can be a program name with args. 2602set dummy $ac_prog; ac_word=$2 2603echo "$as_me:2603: checking for $ac_word" >&5 2604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2605if test "${ac_cv_prog_CTAGS+set}" = set; then 2606 echo $ECHO_N "(cached) $ECHO_C" >&6 2607else 2608 if test -n "$CTAGS"; then 2609 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test. 2610else 2611 ac_save_IFS=$IFS; IFS=$ac_path_separator 2612ac_dummy="$PATH" 2613for ac_dir in $ac_dummy; do 2614 IFS=$ac_save_IFS 2615 test -z "$ac_dir" && ac_dir=. 2616 $as_executable_p "$ac_dir/$ac_word" || continue 2617ac_cv_prog_CTAGS="$ac_prog" 2618echo "$as_me:2618: found $ac_dir/$ac_word" >&5 2619break 2620done 2621 2622fi 2623fi 2624CTAGS=$ac_cv_prog_CTAGS 2625if test -n "$CTAGS"; then 2626 echo "$as_me:2626: result: $CTAGS" >&5 2627echo "${ECHO_T}$CTAGS" >&6 2628else 2629 echo "$as_me:2629: result: no" >&5 2630echo "${ECHO_T}no" >&6 2631fi 2632 2633 test -n "$CTAGS" && break 2634done 2635 2636for ac_prog in exetags etags 2637do 2638 # Extract the first word of "$ac_prog", so it can be a program name with args. 2639set dummy $ac_prog; ac_word=$2 2640echo "$as_me:2640: checking for $ac_word" >&5 2641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2642if test "${ac_cv_prog_ETAGS+set}" = set; then 2643 echo $ECHO_N "(cached) $ECHO_C" >&6 2644else 2645 if test -n "$ETAGS"; then 2646 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test. 2647else 2648 ac_save_IFS=$IFS; IFS=$ac_path_separator 2649ac_dummy="$PATH" 2650for ac_dir in $ac_dummy; do 2651 IFS=$ac_save_IFS 2652 test -z "$ac_dir" && ac_dir=. 2653 $as_executable_p "$ac_dir/$ac_word" || continue 2654ac_cv_prog_ETAGS="$ac_prog" 2655echo "$as_me:2655: found $ac_dir/$ac_word" >&5 2656break 2657done 2658 2659fi 2660fi 2661ETAGS=$ac_cv_prog_ETAGS 2662if test -n "$ETAGS"; then 2663 echo "$as_me:2663: result: $ETAGS" >&5 2664echo "${ECHO_T}$ETAGS" >&6 2665else 2666 echo "$as_me:2666: result: no" >&5 2667echo "${ECHO_T}no" >&6 2668fi 2669 2670 test -n "$ETAGS" && break 2671done 2672 2673# Extract the first word of "${CTAGS-ctags}", so it can be a program name with args. 2674set dummy ${CTAGS-ctags}; ac_word=$2 2675echo "$as_me:2675: checking for $ac_word" >&5 2676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2677if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then 2678 echo $ECHO_N "(cached) $ECHO_C" >&6 2679else 2680 if test -n "$MAKE_LOWER_TAGS"; then 2681 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test. 2682else 2683 ac_save_IFS=$IFS; IFS=$ac_path_separator 2684ac_dummy="$PATH" 2685for ac_dir in $ac_dummy; do 2686 IFS=$ac_save_IFS 2687 test -z "$ac_dir" && ac_dir=. 2688 $as_executable_p "$ac_dir/$ac_word" || continue 2689ac_cv_prog_MAKE_LOWER_TAGS="yes" 2690echo "$as_me:2690: found $ac_dir/$ac_word" >&5 2691break 2692done 2693 2694 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no" 2695fi 2696fi 2697MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS 2698if test -n "$MAKE_LOWER_TAGS"; then 2699 echo "$as_me:2699: result: $MAKE_LOWER_TAGS" >&5 2700echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6 2701else 2702 echo "$as_me:2702: result: no" >&5 2703echo "${ECHO_T}no" >&6 2704fi 2705 2706if test "$cf_cv_mixedcase" = yes ; then 2707 # Extract the first word of "${ETAGS-etags}", so it can be a program name with args. 2708set dummy ${ETAGS-etags}; ac_word=$2 2709echo "$as_me:2709: checking for $ac_word" >&5 2710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2711if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then 2712 echo $ECHO_N "(cached) $ECHO_C" >&6 2713else 2714 if test -n "$MAKE_UPPER_TAGS"; then 2715 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test. 2716else 2717 ac_save_IFS=$IFS; IFS=$ac_path_separator 2718ac_dummy="$PATH" 2719for ac_dir in $ac_dummy; do 2720 IFS=$ac_save_IFS 2721 test -z "$ac_dir" && ac_dir=. 2722 $as_executable_p "$ac_dir/$ac_word" || continue 2723ac_cv_prog_MAKE_UPPER_TAGS="yes" 2724echo "$as_me:2724: found $ac_dir/$ac_word" >&5 2725break 2726done 2727 2728 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no" 2729fi 2730fi 2731MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS 2732if test -n "$MAKE_UPPER_TAGS"; then 2733 echo "$as_me:2733: result: $MAKE_UPPER_TAGS" >&5 2734echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6 2735else 2736 echo "$as_me:2736: result: no" >&5 2737echo "${ECHO_T}no" >&6 2738fi 2739 2740else 2741 MAKE_UPPER_TAGS=no 2742fi 2743 2744if test "$MAKE_UPPER_TAGS" = yes ; then 2745 MAKE_UPPER_TAGS= 2746else 2747 MAKE_UPPER_TAGS="#" 2748fi 2749 2750if test "$MAKE_LOWER_TAGS" = yes ; then 2751 MAKE_LOWER_TAGS= 2752else 2753 MAKE_LOWER_TAGS="#" 2754fi 2755 2756echo "$as_me:2756: checking if you want to see long compiling messages" >&5 2757echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6 2758 2759# Check whether --enable-echo or --disable-echo was given. 2760if test "${enable_echo+set}" = set; then 2761 enableval="$enable_echo" 2762 test "$enableval" != no && enableval=yes 2763 if test "$enableval" != "yes" ; then 2764 2765 ECHO_LT='--silent' 2766 ECHO_LD='@echo linking $@;' 2767 RULE_CC='@echo compiling $<' 2768 SHOW_CC='@echo compiling $@' 2769 ECHO_CC='@' 2770 2771 else 2772 2773 ECHO_LT='' 2774 ECHO_LD='' 2775 RULE_CC='' 2776 SHOW_CC='' 2777 ECHO_CC='' 2778 2779 fi 2780else 2781 enableval=yes 2782 2783 ECHO_LT='' 2784 ECHO_LD='' 2785 RULE_CC='' 2786 SHOW_CC='' 2787 ECHO_CC='' 2788 2789fi; 2790echo "$as_me:2790: result: $enableval" >&5 2791echo "${ECHO_T}$enableval" >&6 2792 2793# Make sure we can run config.sub. 2794$ac_config_sub sun4 >/dev/null 2>&1 || 2795 { { echo "$as_me:2795: error: cannot run $ac_config_sub" >&5 2796echo "$as_me: error: cannot run $ac_config_sub" >&2;} 2797 { (exit 1); exit 1; }; } 2798 2799echo "$as_me:2799: checking build system type" >&5 2800echo $ECHO_N "checking build system type... $ECHO_C" >&6 2801if test "${ac_cv_build+set}" = set; then 2802 echo $ECHO_N "(cached) $ECHO_C" >&6 2803else 2804 ac_cv_build_alias=$build_alias 2805test -z "$ac_cv_build_alias" && 2806 ac_cv_build_alias=`$ac_config_guess` 2807test -z "$ac_cv_build_alias" && 2808 { { echo "$as_me:2808: error: cannot guess build type; you must specify one" >&5 2809echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2810 { (exit 1); exit 1; }; } 2811ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 2812 { { echo "$as_me:2812: error: $ac_config_sub $ac_cv_build_alias failed." >&5 2813echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} 2814 { (exit 1); exit 1; }; } 2815 2816fi 2817echo "$as_me:2817: result: $ac_cv_build" >&5 2818echo "${ECHO_T}$ac_cv_build" >&6 2819build=$ac_cv_build 2820build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2821build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2822build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2823 2824if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then 2825 echo "$as_me:2825: checking host system type" >&5 2826echo $ECHO_N "checking host system type... $ECHO_C" >&6 2827if test "${ac_cv_host+set}" = set; then 2828 echo $ECHO_N "(cached) $ECHO_C" >&6 2829else 2830 ac_cv_host_alias=$host_alias 2831test -z "$ac_cv_host_alias" && 2832 ac_cv_host_alias=$ac_cv_build_alias 2833ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 2834 { { echo "$as_me:2834: error: $ac_config_sub $ac_cv_host_alias failed" >&5 2835echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 2836 { (exit 1); exit 1; }; } 2837 2838fi 2839echo "$as_me:2839: result: $ac_cv_host" >&5 2840echo "${ECHO_T}$ac_cv_host" >&6 2841host=$ac_cv_host 2842host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2843host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2844host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2845 2846 system_name="$host_os" 2847else 2848 system_name="`(uname -s -r) 2>/dev/null`" 2849 if test -z "$system_name" ; then 2850 system_name="`(hostname) 2>/dev/null`" 2851 fi 2852fi 2853test -n "$system_name" && cat >>confdefs.h <<EOF 2854#define SYSTEM_NAME "$system_name" 2855EOF 2856 2857if test "${cf_cv_system_name+set}" = set; then 2858 echo $ECHO_N "(cached) $ECHO_C" >&6 2859else 2860 cf_cv_system_name="$system_name" 2861fi 2862 2863test -z "$system_name" && system_name="$cf_cv_system_name" 2864test -n "$cf_cv_system_name" && echo "$as_me:2864: result: Configuring for $cf_cv_system_name" >&5 2865echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6 2866 2867if test ".$system_name" != ".$cf_cv_system_name" ; then 2868 echo "$as_me:2868: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5 2869echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6 2870 { { echo "$as_me:2870: error: \"Please remove config.cache and try again.\"" >&5 2871echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;} 2872 { (exit 1); exit 1; }; } 2873fi 2874 2875case $cf_cv_system_name in 2876os2*) 2877 CFLAGS="$CFLAGS -Zmt" 2878 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__" 2879 CXXFLAGS="$CXXFLAGS -Zmt" 2880 # autoconf's macro sets -Zexe and suffix both, which conflict:w 2881 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll" 2882 ac_cv_exeext=.exe 2883 ;; 2884esac 2885 2886PROG_EXT="$EXEEXT" 2887 2888test -n "$PROG_EXT" && cat >>confdefs.h <<EOF 2889#define PROG_EXT "$PROG_EXT" 2890EOF 2891 2892 case $cf_cv_system_name in 2893 os2*) PATH_SEPARATOR=';' ;; 2894 *) PATH_SEPARATOR=':' ;; 2895 esac 2896 2897 case $cf_cv_system_name in #(vi 2898 OS/2*|os2*) #(vi 2899 LIB_PREFIX='' 2900 ;; 2901 *) LIB_PREFIX='lib' 2902 ;; 2903 esac 2904 2905cf_XOPEN_SOURCE=500 2906cf_POSIX_C_SOURCE=199506L 2907cf_xopen_source= 2908 2909case $host_os in #(vi 2910aix[456]*) #(vi 2911 cf_xopen_source="-D_ALL_SOURCE" 2912 ;; 2913darwin[0-8].*) #(vi 2914 cf_xopen_source="-D_APPLE_C_SOURCE" 2915 ;; 2916darwin*) #(vi 2917 cf_xopen_source="-D_DARWIN_C_SOURCE" 2918 ;; 2919freebsd*|dragonfly*) #(vi 2920 # 5.x headers associate 2921 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L 2922 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L 2923 cf_POSIX_C_SOURCE=200112L 2924 cf_XOPEN_SOURCE=600 2925 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 2926 ;; 2927hpux11*) #(vi 2928 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500" 2929 ;; 2930hpux*) #(vi 2931 cf_xopen_source="-D_HPUX_SOURCE" 2932 ;; 2933irix[56].*) #(vi 2934 cf_xopen_source="-D_SGI_SOURCE" 2935 ;; 2936linux*|gnu*|mint*|k*bsd*-gnu) #(vi 2937 2938echo "$as_me:2938: checking if we must define _GNU_SOURCE" >&5 2939echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6 2940if test "${cf_cv_gnu_source+set}" = set; then 2941 echo $ECHO_N "(cached) $ECHO_C" >&6 2942else 2943 2944cat >conftest.$ac_ext <<_ACEOF 2945#line 2945 "configure" 2946#include "confdefs.h" 2947#include <sys/types.h> 2948int 2949main () 2950{ 2951 2952#ifndef _XOPEN_SOURCE 2953make an error 2954#endif 2955 ; 2956 return 0; 2957} 2958_ACEOF 2959rm -f conftest.$ac_objext 2960if { (eval echo "$as_me:2960: \"$ac_compile\"") >&5 2961 (eval $ac_compile) 2>&5 2962 ac_status=$? 2963 echo "$as_me:2963: \$? = $ac_status" >&5 2964 (exit $ac_status); } && 2965 { ac_try='test -s conftest.$ac_objext' 2966 { (eval echo "$as_me:2966: \"$ac_try\"") >&5 2967 (eval $ac_try) 2>&5 2968 ac_status=$? 2969 echo "$as_me:2969: \$? = $ac_status" >&5 2970 (exit $ac_status); }; }; then 2971 cf_cv_gnu_source=no 2972else 2973 echo "$as_me: failed program was:" >&5 2974cat conftest.$ac_ext >&5 2975cf_save="$CPPFLAGS" 2976 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 2977 cat >conftest.$ac_ext <<_ACEOF 2978#line 2978 "configure" 2979#include "confdefs.h" 2980#include <sys/types.h> 2981int 2982main () 2983{ 2984 2985#ifdef _XOPEN_SOURCE 2986make an error 2987#endif 2988 ; 2989 return 0; 2990} 2991_ACEOF 2992rm -f conftest.$ac_objext 2993if { (eval echo "$as_me:2993: \"$ac_compile\"") >&5 2994 (eval $ac_compile) 2>&5 2995 ac_status=$? 2996 echo "$as_me:2996: \$? = $ac_status" >&5 2997 (exit $ac_status); } && 2998 { ac_try='test -s conftest.$ac_objext' 2999 { (eval echo "$as_me:2999: \"$ac_try\"") >&5 3000 (eval $ac_try) 2>&5 3001 ac_status=$? 3002 echo "$as_me:3002: \$? = $ac_status" >&5 3003 (exit $ac_status); }; }; then 3004 cf_cv_gnu_source=no 3005else 3006 echo "$as_me: failed program was:" >&5 3007cat conftest.$ac_ext >&5 3008cf_cv_gnu_source=yes 3009fi 3010rm -f conftest.$ac_objext conftest.$ac_ext 3011 CPPFLAGS="$cf_save" 3012 3013fi 3014rm -f conftest.$ac_objext conftest.$ac_ext 3015 3016fi 3017echo "$as_me:3017: result: $cf_cv_gnu_source" >&5 3018echo "${ECHO_T}$cf_cv_gnu_source" >&6 3019test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 3020 3021 ;; 3022mirbsd*) #(vi 3023 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h> 3024 ;; 3025netbsd*) #(vi 3026 # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw 3027 ;; 3028openbsd*) #(vi 3029 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw 3030 ;; 3031osf[45]*) #(vi 3032 cf_xopen_source="-D_OSF_SOURCE" 3033 ;; 3034nto-qnx*) #(vi 3035 cf_xopen_source="-D_QNX_SOURCE" 3036 ;; 3037sco*) #(vi 3038 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer 3039 ;; 3040solaris2.1[0-9]) #(vi 3041 cf_xopen_source="-D__EXTENSIONS__ -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 3042 ;; 3043solaris2.[1-9]) #(vi 3044 cf_xopen_source="-D__EXTENSIONS__" 3045 ;; 3046*) 3047 echo "$as_me:3047: checking if we should define _XOPEN_SOURCE" >&5 3048echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 3049if test "${cf_cv_xopen_source+set}" = set; then 3050 echo $ECHO_N "(cached) $ECHO_C" >&6 3051else 3052 3053 cat >conftest.$ac_ext <<_ACEOF 3054#line 3054 "configure" 3055#include "confdefs.h" 3056#include <sys/types.h> 3057int 3058main () 3059{ 3060 3061#ifndef _XOPEN_SOURCE 3062make an error 3063#endif 3064 ; 3065 return 0; 3066} 3067_ACEOF 3068rm -f conftest.$ac_objext 3069if { (eval echo "$as_me:3069: \"$ac_compile\"") >&5 3070 (eval $ac_compile) 2>&5 3071 ac_status=$? 3072 echo "$as_me:3072: \$? = $ac_status" >&5 3073 (exit $ac_status); } && 3074 { ac_try='test -s conftest.$ac_objext' 3075 { (eval echo "$as_me:3075: \"$ac_try\"") >&5 3076 (eval $ac_try) 2>&5 3077 ac_status=$? 3078 echo "$as_me:3078: \$? = $ac_status" >&5 3079 (exit $ac_status); }; }; then 3080 cf_cv_xopen_source=no 3081else 3082 echo "$as_me: failed program was:" >&5 3083cat conftest.$ac_ext >&5 3084cf_save="$CPPFLAGS" 3085 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 3086 cat >conftest.$ac_ext <<_ACEOF 3087#line 3087 "configure" 3088#include "confdefs.h" 3089#include <sys/types.h> 3090int 3091main () 3092{ 3093 3094#ifdef _XOPEN_SOURCE 3095make an error 3096#endif 3097 ; 3098 return 0; 3099} 3100_ACEOF 3101rm -f conftest.$ac_objext 3102if { (eval echo "$as_me:3102: \"$ac_compile\"") >&5 3103 (eval $ac_compile) 2>&5 3104 ac_status=$? 3105 echo "$as_me:3105: \$? = $ac_status" >&5 3106 (exit $ac_status); } && 3107 { ac_try='test -s conftest.$ac_objext' 3108 { (eval echo "$as_me:3108: \"$ac_try\"") >&5 3109 (eval $ac_try) 2>&5 3110 ac_status=$? 3111 echo "$as_me:3111: \$? = $ac_status" >&5 3112 (exit $ac_status); }; }; then 3113 cf_cv_xopen_source=no 3114else 3115 echo "$as_me: failed program was:" >&5 3116cat conftest.$ac_ext >&5 3117cf_cv_xopen_source=$cf_XOPEN_SOURCE 3118fi 3119rm -f conftest.$ac_objext conftest.$ac_ext 3120 CPPFLAGS="$cf_save" 3121 3122fi 3123rm -f conftest.$ac_objext conftest.$ac_ext 3124 3125fi 3126echo "$as_me:3126: result: $cf_cv_xopen_source" >&5 3127echo "${ECHO_T}$cf_cv_xopen_source" >&6 3128 if test "$cf_cv_xopen_source" != no ; then 3129 3130CFLAGS=`echo "$CFLAGS" | \ 3131 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3132 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3133 3134CPPFLAGS=`echo "$CPPFLAGS" | \ 3135 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3136 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3137 3138 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 3139 3140cf_fix_cppflags=no 3141cf_new_cflags= 3142cf_new_cppflags= 3143cf_new_extra_cppflags= 3144 3145for cf_add_cflags in $cf_temp_xopen_source 3146do 3147case $cf_fix_cppflags in 3148no) 3149 case $cf_add_cflags in #(vi 3150 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 3151 case $cf_add_cflags in 3152 -D*) 3153 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3154 3155 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3156 && test -z "${cf_tst_cflags}" \ 3157 && cf_fix_cppflags=yes 3158 3159 if test $cf_fix_cppflags = yes ; then 3160 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3161 continue 3162 elif test "${cf_tst_cflags}" = "\"'" ; then 3163 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3164 continue 3165 fi 3166 ;; 3167 esac 3168 case "$CPPFLAGS" in 3169 *$cf_add_cflags) #(vi 3170 ;; 3171 *) #(vi 3172 case $cf_add_cflags in #(vi 3173 -D*) 3174 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3175 3176CPPFLAGS=`echo "$CPPFLAGS" | \ 3177 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3178 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3179 3180 ;; 3181 esac 3182 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3183 ;; 3184 esac 3185 ;; 3186 *) 3187 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3188 ;; 3189 esac 3190 ;; 3191yes) 3192 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3193 3194 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3195 3196 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3197 && test -z "${cf_tst_cflags}" \ 3198 && cf_fix_cppflags=no 3199 ;; 3200esac 3201done 3202 3203if test -n "$cf_new_cflags" ; then 3204 3205 CFLAGS="$CFLAGS $cf_new_cflags" 3206fi 3207 3208if test -n "$cf_new_cppflags" ; then 3209 3210 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3211fi 3212 3213if test -n "$cf_new_extra_cppflags" ; then 3214 3215 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3216fi 3217 3218 fi 3219 3220cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 3221 3222cf_save_CFLAGS="$CFLAGS" 3223cf_save_CPPFLAGS="$CPPFLAGS" 3224 3225cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 3226 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3227 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 3228 3229cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 3230 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3231 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 3232 3233echo "$as_me:3233: checking if we should define _POSIX_C_SOURCE" >&5 3234echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 3235if test "${cf_cv_posix_c_source+set}" = set; then 3236 echo $ECHO_N "(cached) $ECHO_C" >&6 3237else 3238 3239echo "${as_me-configure}:3239: testing if the symbol is already defined go no further ..." 1>&5 3240 3241 cat >conftest.$ac_ext <<_ACEOF 3242#line 3242 "configure" 3243#include "confdefs.h" 3244#include <sys/types.h> 3245int 3246main () 3247{ 3248 3249#ifndef _POSIX_C_SOURCE 3250make an error 3251#endif 3252 ; 3253 return 0; 3254} 3255_ACEOF 3256rm -f conftest.$ac_objext 3257if { (eval echo "$as_me:3257: \"$ac_compile\"") >&5 3258 (eval $ac_compile) 2>&5 3259 ac_status=$? 3260 echo "$as_me:3260: \$? = $ac_status" >&5 3261 (exit $ac_status); } && 3262 { ac_try='test -s conftest.$ac_objext' 3263 { (eval echo "$as_me:3263: \"$ac_try\"") >&5 3264 (eval $ac_try) 2>&5 3265 ac_status=$? 3266 echo "$as_me:3266: \$? = $ac_status" >&5 3267 (exit $ac_status); }; }; then 3268 cf_cv_posix_c_source=no 3269else 3270 echo "$as_me: failed program was:" >&5 3271cat conftest.$ac_ext >&5 3272cf_want_posix_source=no 3273 case .$cf_POSIX_C_SOURCE in #(vi 3274 .[12]??*) #(vi 3275 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3276 ;; 3277 .2) #(vi 3278 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3279 cf_want_posix_source=yes 3280 ;; 3281 .*) 3282 cf_want_posix_source=yes 3283 ;; 3284 esac 3285 if test "$cf_want_posix_source" = yes ; then 3286 cat >conftest.$ac_ext <<_ACEOF 3287#line 3287 "configure" 3288#include "confdefs.h" 3289#include <sys/types.h> 3290int 3291main () 3292{ 3293 3294#ifdef _POSIX_SOURCE 3295make an error 3296#endif 3297 ; 3298 return 0; 3299} 3300_ACEOF 3301rm -f conftest.$ac_objext 3302if { (eval echo "$as_me:3302: \"$ac_compile\"") >&5 3303 (eval $ac_compile) 2>&5 3304 ac_status=$? 3305 echo "$as_me:3305: \$? = $ac_status" >&5 3306 (exit $ac_status); } && 3307 { ac_try='test -s conftest.$ac_objext' 3308 { (eval echo "$as_me:3308: \"$ac_try\"") >&5 3309 (eval $ac_try) 2>&5 3310 ac_status=$? 3311 echo "$as_me:3311: \$? = $ac_status" >&5 3312 (exit $ac_status); }; }; then 3313 : 3314else 3315 echo "$as_me: failed program was:" >&5 3316cat conftest.$ac_ext >&5 3317cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 3318fi 3319rm -f conftest.$ac_objext conftest.$ac_ext 3320 fi 3321 3322echo "${as_me-configure}:3322: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 3323 3324 CFLAGS="$cf_trim_CFLAGS" 3325 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source" 3326 3327echo "${as_me-configure}:3327: testing if the second compile does not leave our definition intact error ..." 1>&5 3328 3329 cat >conftest.$ac_ext <<_ACEOF 3330#line 3330 "configure" 3331#include "confdefs.h" 3332#include <sys/types.h> 3333int 3334main () 3335{ 3336 3337#ifndef _POSIX_C_SOURCE 3338make an error 3339#endif 3340 ; 3341 return 0; 3342} 3343_ACEOF 3344rm -f conftest.$ac_objext 3345if { (eval echo "$as_me:3345: \"$ac_compile\"") >&5 3346 (eval $ac_compile) 2>&5 3347 ac_status=$? 3348 echo "$as_me:3348: \$? = $ac_status" >&5 3349 (exit $ac_status); } && 3350 { ac_try='test -s conftest.$ac_objext' 3351 { (eval echo "$as_me:3351: \"$ac_try\"") >&5 3352 (eval $ac_try) 2>&5 3353 ac_status=$? 3354 echo "$as_me:3354: \$? = $ac_status" >&5 3355 (exit $ac_status); }; }; then 3356 : 3357else 3358 echo "$as_me: failed program was:" >&5 3359cat conftest.$ac_ext >&5 3360cf_cv_posix_c_source=no 3361fi 3362rm -f conftest.$ac_objext conftest.$ac_ext 3363 CFLAGS="$cf_save_CFLAGS" 3364 CPPFLAGS="$cf_save_CPPFLAGS" 3365 3366fi 3367rm -f conftest.$ac_objext conftest.$ac_ext 3368 3369fi 3370echo "$as_me:3370: result: $cf_cv_posix_c_source" >&5 3371echo "${ECHO_T}$cf_cv_posix_c_source" >&6 3372 3373if test "$cf_cv_posix_c_source" != no ; then 3374 CFLAGS="$cf_trim_CFLAGS" 3375 CPPFLAGS="$cf_trim_CPPFLAGS" 3376 3377cf_fix_cppflags=no 3378cf_new_cflags= 3379cf_new_cppflags= 3380cf_new_extra_cppflags= 3381 3382for cf_add_cflags in $cf_cv_posix_c_source 3383do 3384case $cf_fix_cppflags in 3385no) 3386 case $cf_add_cflags in #(vi 3387 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 3388 case $cf_add_cflags in 3389 -D*) 3390 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3391 3392 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3393 && test -z "${cf_tst_cflags}" \ 3394 && cf_fix_cppflags=yes 3395 3396 if test $cf_fix_cppflags = yes ; then 3397 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3398 continue 3399 elif test "${cf_tst_cflags}" = "\"'" ; then 3400 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3401 continue 3402 fi 3403 ;; 3404 esac 3405 case "$CPPFLAGS" in 3406 *$cf_add_cflags) #(vi 3407 ;; 3408 *) #(vi 3409 case $cf_add_cflags in #(vi 3410 -D*) 3411 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3412 3413CPPFLAGS=`echo "$CPPFLAGS" | \ 3414 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3415 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3416 3417 ;; 3418 esac 3419 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3420 ;; 3421 esac 3422 ;; 3423 *) 3424 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3425 ;; 3426 esac 3427 ;; 3428yes) 3429 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3430 3431 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3432 3433 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3434 && test -z "${cf_tst_cflags}" \ 3435 && cf_fix_cppflags=no 3436 ;; 3437esac 3438done 3439 3440if test -n "$cf_new_cflags" ; then 3441 3442 CFLAGS="$CFLAGS $cf_new_cflags" 3443fi 3444 3445if test -n "$cf_new_cppflags" ; then 3446 3447 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3448fi 3449 3450if test -n "$cf_new_extra_cppflags" ; then 3451 3452 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3453fi 3454 3455fi 3456 3457 ;; 3458esac 3459 3460if test -n "$cf_xopen_source" ; then 3461 3462cf_fix_cppflags=no 3463cf_new_cflags= 3464cf_new_cppflags= 3465cf_new_extra_cppflags= 3466 3467for cf_add_cflags in $cf_xopen_source 3468do 3469case $cf_fix_cppflags in 3470no) 3471 case $cf_add_cflags in #(vi 3472 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 3473 case $cf_add_cflags in 3474 -D*) 3475 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3476 3477 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3478 && test -z "${cf_tst_cflags}" \ 3479 && cf_fix_cppflags=yes 3480 3481 if test $cf_fix_cppflags = yes ; then 3482 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3483 continue 3484 elif test "${cf_tst_cflags}" = "\"'" ; then 3485 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3486 continue 3487 fi 3488 ;; 3489 esac 3490 case "$CPPFLAGS" in 3491 *$cf_add_cflags) #(vi 3492 ;; 3493 *) #(vi 3494 case $cf_add_cflags in #(vi 3495 -D*) 3496 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3497 3498CPPFLAGS=`echo "$CPPFLAGS" | \ 3499 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3500 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3501 3502 ;; 3503 esac 3504 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3505 ;; 3506 esac 3507 ;; 3508 *) 3509 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3510 ;; 3511 esac 3512 ;; 3513yes) 3514 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3515 3516 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3517 3518 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3519 && test -z "${cf_tst_cflags}" \ 3520 && cf_fix_cppflags=no 3521 ;; 3522esac 3523done 3524 3525if test -n "$cf_new_cflags" ; then 3526 3527 CFLAGS="$CFLAGS $cf_new_cflags" 3528fi 3529 3530if test -n "$cf_new_cppflags" ; then 3531 3532 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3533fi 3534 3535if test -n "$cf_new_extra_cppflags" ; then 3536 3537 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3538fi 3539 3540fi 3541 3542# Check whether --enable-largefile or --disable-largefile was given. 3543if test "${enable_largefile+set}" = set; then 3544 enableval="$enable_largefile" 3545 3546fi; 3547if test "$enable_largefile" != no; then 3548 3549 echo "$as_me:3549: checking for special C compiler options needed for large files" >&5 3550echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 3551if test "${ac_cv_sys_largefile_CC+set}" = set; then 3552 echo $ECHO_N "(cached) $ECHO_C" >&6 3553else 3554 ac_cv_sys_largefile_CC=no 3555 if test "$GCC" != yes; then 3556 ac_save_CC=$CC 3557 while :; do 3558 # IRIX 6.2 and later do not support large files by default, 3559 # so use the C compiler's -n32 option if that helps. 3560 cat >conftest.$ac_ext <<_ACEOF 3561#line 3561 "configure" 3562#include "confdefs.h" 3563#include <sys/types.h> 3564 /* Check that off_t can represent 2**63 - 1 correctly. 3565 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3566 since some C++ compilers masquerading as C compilers 3567 incorrectly reject 9223372036854775807. */ 3568#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3569 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3570 && LARGE_OFF_T % 2147483647 == 1) 3571 ? 1 : -1]; 3572int 3573main () 3574{ 3575 3576 ; 3577 return 0; 3578} 3579_ACEOF 3580 rm -f conftest.$ac_objext 3581if { (eval echo "$as_me:3581: \"$ac_compile\"") >&5 3582 (eval $ac_compile) 2>&5 3583 ac_status=$? 3584 echo "$as_me:3584: \$? = $ac_status" >&5 3585 (exit $ac_status); } && 3586 { ac_try='test -s conftest.$ac_objext' 3587 { (eval echo "$as_me:3587: \"$ac_try\"") >&5 3588 (eval $ac_try) 2>&5 3589 ac_status=$? 3590 echo "$as_me:3590: \$? = $ac_status" >&5 3591 (exit $ac_status); }; }; then 3592 break 3593else 3594 echo "$as_me: failed program was:" >&5 3595cat conftest.$ac_ext >&5 3596fi 3597rm -f conftest.$ac_objext 3598 CC="$CC -n32" 3599 rm -f conftest.$ac_objext 3600if { (eval echo "$as_me:3600: \"$ac_compile\"") >&5 3601 (eval $ac_compile) 2>&5 3602 ac_status=$? 3603 echo "$as_me:3603: \$? = $ac_status" >&5 3604 (exit $ac_status); } && 3605 { ac_try='test -s conftest.$ac_objext' 3606 { (eval echo "$as_me:3606: \"$ac_try\"") >&5 3607 (eval $ac_try) 2>&5 3608 ac_status=$? 3609 echo "$as_me:3609: \$? = $ac_status" >&5 3610 (exit $ac_status); }; }; then 3611 ac_cv_sys_largefile_CC=' -n32'; break 3612else 3613 echo "$as_me: failed program was:" >&5 3614cat conftest.$ac_ext >&5 3615fi 3616rm -f conftest.$ac_objext 3617 break 3618 done 3619 CC=$ac_save_CC 3620 rm -f conftest.$ac_ext 3621 fi 3622fi 3623echo "$as_me:3623: result: $ac_cv_sys_largefile_CC" >&5 3624echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 3625 if test "$ac_cv_sys_largefile_CC" != no; then 3626 CC=$CC$ac_cv_sys_largefile_CC 3627 fi 3628 3629 echo "$as_me:3629: checking for _FILE_OFFSET_BITS value needed for large files" >&5 3630echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 3631if test "${ac_cv_sys_file_offset_bits+set}" = set; then 3632 echo $ECHO_N "(cached) $ECHO_C" >&6 3633else 3634 while :; do 3635 ac_cv_sys_file_offset_bits=no 3636 cat >conftest.$ac_ext <<_ACEOF 3637#line 3637 "configure" 3638#include "confdefs.h" 3639#include <sys/types.h> 3640 /* Check that off_t can represent 2**63 - 1 correctly. 3641 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3642 since some C++ compilers masquerading as C compilers 3643 incorrectly reject 9223372036854775807. */ 3644#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3645 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3646 && LARGE_OFF_T % 2147483647 == 1) 3647 ? 1 : -1]; 3648int 3649main () 3650{ 3651 3652 ; 3653 return 0; 3654} 3655_ACEOF 3656rm -f conftest.$ac_objext 3657if { (eval echo "$as_me:3657: \"$ac_compile\"") >&5 3658 (eval $ac_compile) 2>&5 3659 ac_status=$? 3660 echo "$as_me:3660: \$? = $ac_status" >&5 3661 (exit $ac_status); } && 3662 { ac_try='test -s conftest.$ac_objext' 3663 { (eval echo "$as_me:3663: \"$ac_try\"") >&5 3664 (eval $ac_try) 2>&5 3665 ac_status=$? 3666 echo "$as_me:3666: \$? = $ac_status" >&5 3667 (exit $ac_status); }; }; then 3668 break 3669else 3670 echo "$as_me: failed program was:" >&5 3671cat conftest.$ac_ext >&5 3672fi 3673rm -f conftest.$ac_objext conftest.$ac_ext 3674 cat >conftest.$ac_ext <<_ACEOF 3675#line 3675 "configure" 3676#include "confdefs.h" 3677#define _FILE_OFFSET_BITS 64 3678#include <sys/types.h> 3679 /* Check that off_t can represent 2**63 - 1 correctly. 3680 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3681 since some C++ compilers masquerading as C compilers 3682 incorrectly reject 9223372036854775807. */ 3683#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3684 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3685 && LARGE_OFF_T % 2147483647 == 1) 3686 ? 1 : -1]; 3687int 3688main () 3689{ 3690 3691 ; 3692 return 0; 3693} 3694_ACEOF 3695rm -f conftest.$ac_objext 3696if { (eval echo "$as_me:3696: \"$ac_compile\"") >&5 3697 (eval $ac_compile) 2>&5 3698 ac_status=$? 3699 echo "$as_me:3699: \$? = $ac_status" >&5 3700 (exit $ac_status); } && 3701 { ac_try='test -s conftest.$ac_objext' 3702 { (eval echo "$as_me:3702: \"$ac_try\"") >&5 3703 (eval $ac_try) 2>&5 3704 ac_status=$? 3705 echo "$as_me:3705: \$? = $ac_status" >&5 3706 (exit $ac_status); }; }; then 3707 ac_cv_sys_file_offset_bits=64; break 3708else 3709 echo "$as_me: failed program was:" >&5 3710cat conftest.$ac_ext >&5 3711fi 3712rm -f conftest.$ac_objext conftest.$ac_ext 3713 break 3714done 3715fi 3716echo "$as_me:3716: result: $ac_cv_sys_file_offset_bits" >&5 3717echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 3718if test "$ac_cv_sys_file_offset_bits" != no; then 3719 3720cat >>confdefs.h <<EOF 3721#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 3722EOF 3723 3724fi 3725rm -f conftest* 3726 echo "$as_me:3726: checking for _LARGE_FILES value needed for large files" >&5 3727echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 3728if test "${ac_cv_sys_large_files+set}" = set; then 3729 echo $ECHO_N "(cached) $ECHO_C" >&6 3730else 3731 while :; do 3732 ac_cv_sys_large_files=no 3733 cat >conftest.$ac_ext <<_ACEOF 3734#line 3734 "configure" 3735#include "confdefs.h" 3736#include <sys/types.h> 3737 /* Check that off_t can represent 2**63 - 1 correctly. 3738 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3739 since some C++ compilers masquerading as C compilers 3740 incorrectly reject 9223372036854775807. */ 3741#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3742 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3743 && LARGE_OFF_T % 2147483647 == 1) 3744 ? 1 : -1]; 3745int 3746main () 3747{ 3748 3749 ; 3750 return 0; 3751} 3752_ACEOF 3753rm -f conftest.$ac_objext 3754if { (eval echo "$as_me:3754: \"$ac_compile\"") >&5 3755 (eval $ac_compile) 2>&5 3756 ac_status=$? 3757 echo "$as_me:3757: \$? = $ac_status" >&5 3758 (exit $ac_status); } && 3759 { ac_try='test -s conftest.$ac_objext' 3760 { (eval echo "$as_me:3760: \"$ac_try\"") >&5 3761 (eval $ac_try) 2>&5 3762 ac_status=$? 3763 echo "$as_me:3763: \$? = $ac_status" >&5 3764 (exit $ac_status); }; }; then 3765 break 3766else 3767 echo "$as_me: failed program was:" >&5 3768cat conftest.$ac_ext >&5 3769fi 3770rm -f conftest.$ac_objext conftest.$ac_ext 3771 cat >conftest.$ac_ext <<_ACEOF 3772#line 3772 "configure" 3773#include "confdefs.h" 3774#define _LARGE_FILES 1 3775#include <sys/types.h> 3776 /* Check that off_t can represent 2**63 - 1 correctly. 3777 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3778 since some C++ compilers masquerading as C compilers 3779 incorrectly reject 9223372036854775807. */ 3780#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3781 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3782 && LARGE_OFF_T % 2147483647 == 1) 3783 ? 1 : -1]; 3784int 3785main () 3786{ 3787 3788 ; 3789 return 0; 3790} 3791_ACEOF 3792rm -f conftest.$ac_objext 3793if { (eval echo "$as_me:3793: \"$ac_compile\"") >&5 3794 (eval $ac_compile) 2>&5 3795 ac_status=$? 3796 echo "$as_me:3796: \$? = $ac_status" >&5 3797 (exit $ac_status); } && 3798 { ac_try='test -s conftest.$ac_objext' 3799 { (eval echo "$as_me:3799: \"$ac_try\"") >&5 3800 (eval $ac_try) 2>&5 3801 ac_status=$? 3802 echo "$as_me:3802: \$? = $ac_status" >&5 3803 (exit $ac_status); }; }; then 3804 ac_cv_sys_large_files=1; break 3805else 3806 echo "$as_me: failed program was:" >&5 3807cat conftest.$ac_ext >&5 3808fi 3809rm -f conftest.$ac_objext conftest.$ac_ext 3810 break 3811done 3812fi 3813echo "$as_me:3813: result: $ac_cv_sys_large_files" >&5 3814echo "${ECHO_T}$ac_cv_sys_large_files" >&6 3815if test "$ac_cv_sys_large_files" != no; then 3816 3817cat >>confdefs.h <<EOF 3818#define _LARGE_FILES $ac_cv_sys_large_files 3819EOF 3820 3821fi 3822rm -f conftest* 3823fi 3824 3825 if test "$enable_largefile" != no ; then 3826 echo "$as_me:3826: checking for _LARGEFILE_SOURCE value needed for large files" >&5 3827echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 3828if test "${ac_cv_sys_largefile_source+set}" = set; then 3829 echo $ECHO_N "(cached) $ECHO_C" >&6 3830else 3831 while :; do 3832 ac_cv_sys_largefile_source=no 3833 cat >conftest.$ac_ext <<_ACEOF 3834#line 3834 "configure" 3835#include "confdefs.h" 3836#include <stdio.h> 3837int 3838main () 3839{ 3840return !fseeko; 3841 ; 3842 return 0; 3843} 3844_ACEOF 3845rm -f conftest.$ac_objext 3846if { (eval echo "$as_me:3846: \"$ac_compile\"") >&5 3847 (eval $ac_compile) 2>&5 3848 ac_status=$? 3849 echo "$as_me:3849: \$? = $ac_status" >&5 3850 (exit $ac_status); } && 3851 { ac_try='test -s conftest.$ac_objext' 3852 { (eval echo "$as_me:3852: \"$ac_try\"") >&5 3853 (eval $ac_try) 2>&5 3854 ac_status=$? 3855 echo "$as_me:3855: \$? = $ac_status" >&5 3856 (exit $ac_status); }; }; then 3857 break 3858else 3859 echo "$as_me: failed program was:" >&5 3860cat conftest.$ac_ext >&5 3861fi 3862rm -f conftest.$ac_objext conftest.$ac_ext 3863 cat >conftest.$ac_ext <<_ACEOF 3864#line 3864 "configure" 3865#include "confdefs.h" 3866#define _LARGEFILE_SOURCE 1 3867#include <stdio.h> 3868int 3869main () 3870{ 3871return !fseeko; 3872 ; 3873 return 0; 3874} 3875_ACEOF 3876rm -f conftest.$ac_objext 3877if { (eval echo "$as_me:3877: \"$ac_compile\"") >&5 3878 (eval $ac_compile) 2>&5 3879 ac_status=$? 3880 echo "$as_me:3880: \$? = $ac_status" >&5 3881 (exit $ac_status); } && 3882 { ac_try='test -s conftest.$ac_objext' 3883 { (eval echo "$as_me:3883: \"$ac_try\"") >&5 3884 (eval $ac_try) 2>&5 3885 ac_status=$? 3886 echo "$as_me:3886: \$? = $ac_status" >&5 3887 (exit $ac_status); }; }; then 3888 ac_cv_sys_largefile_source=1; break 3889else 3890 echo "$as_me: failed program was:" >&5 3891cat conftest.$ac_ext >&5 3892fi 3893rm -f conftest.$ac_objext conftest.$ac_ext 3894 break 3895done 3896fi 3897echo "$as_me:3897: result: $ac_cv_sys_largefile_source" >&5 3898echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 3899if test "$ac_cv_sys_largefile_source" != no; then 3900 3901cat >>confdefs.h <<EOF 3902#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 3903EOF 3904 3905fi 3906rm -f conftest* 3907 3908# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 3909# in glibc 2.1.3, but that breaks too many other things. 3910# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 3911echo "$as_me:3911: checking for fseeko" >&5 3912echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 3913if test "${ac_cv_func_fseeko+set}" = set; then 3914 echo $ECHO_N "(cached) $ECHO_C" >&6 3915else 3916 cat >conftest.$ac_ext <<_ACEOF 3917#line 3917 "configure" 3918#include "confdefs.h" 3919#include <stdio.h> 3920int 3921main () 3922{ 3923return fseeko && fseeko (stdin, 0, 0); 3924 ; 3925 return 0; 3926} 3927_ACEOF 3928rm -f conftest.$ac_objext conftest$ac_exeext 3929if { (eval echo "$as_me:3929: \"$ac_link\"") >&5 3930 (eval $ac_link) 2>&5 3931 ac_status=$? 3932 echo "$as_me:3932: \$? = $ac_status" >&5 3933 (exit $ac_status); } && 3934 { ac_try='test -s conftest$ac_exeext' 3935 { (eval echo "$as_me:3935: \"$ac_try\"") >&5 3936 (eval $ac_try) 2>&5 3937 ac_status=$? 3938 echo "$as_me:3938: \$? = $ac_status" >&5 3939 (exit $ac_status); }; }; then 3940 ac_cv_func_fseeko=yes 3941else 3942 echo "$as_me: failed program was:" >&5 3943cat conftest.$ac_ext >&5 3944ac_cv_func_fseeko=no 3945fi 3946rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3947fi 3948echo "$as_me:3948: result: $ac_cv_func_fseeko" >&5 3949echo "${ECHO_T}$ac_cv_func_fseeko" >&6 3950if test $ac_cv_func_fseeko = yes; then 3951 3952cat >>confdefs.h <<\EOF 3953#define HAVE_FSEEKO 1 3954EOF 3955 3956fi 3957 3958 # Normally we would collect these definitions in the config.h, 3959 # but (like _XOPEN_SOURCE), some environments rely on having these 3960 # defined before any of the system headers are included. Another 3961 # case comes up with C++, e.g., on AIX the compiler compiles the 3962 # header files by themselves before looking at the body files it is 3963 # told to compile. For ncurses, those header files do not include 3964 # the config.h 3965 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES " 3966 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE " 3967 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits " 3968 3969 echo "$as_me:3969: checking whether to use struct dirent64" >&5 3970echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6 3971if test "${cf_cv_struct_dirent64+set}" = set; then 3972 echo $ECHO_N "(cached) $ECHO_C" >&6 3973else 3974 3975 cat >conftest.$ac_ext <<_ACEOF 3976#line 3976 "configure" 3977#include "confdefs.h" 3978 3979#include <sys/types.h> 3980#include <dirent.h> 3981 3982int 3983main () 3984{ 3985 3986 /* if transitional largefile support is setup, this is true */ 3987 extern struct dirent64 * readdir(DIR *); 3988 struct dirent64 *x = readdir((DIR *)0); 3989 struct dirent *y = readdir((DIR *)0); 3990 int z = x - y; 3991 3992 ; 3993 return 0; 3994} 3995_ACEOF 3996rm -f conftest.$ac_objext 3997if { (eval echo "$as_me:3997: \"$ac_compile\"") >&5 3998 (eval $ac_compile) 2>&5 3999 ac_status=$? 4000 echo "$as_me:4000: \$? = $ac_status" >&5 4001 (exit $ac_status); } && 4002 { ac_try='test -s conftest.$ac_objext' 4003 { (eval echo "$as_me:4003: \"$ac_try\"") >&5 4004 (eval $ac_try) 2>&5 4005 ac_status=$? 4006 echo "$as_me:4006: \$? = $ac_status" >&5 4007 (exit $ac_status); }; }; then 4008 cf_cv_struct_dirent64=yes 4009else 4010 echo "$as_me: failed program was:" >&5 4011cat conftest.$ac_ext >&5 4012cf_cv_struct_dirent64=no 4013fi 4014rm -f conftest.$ac_objext conftest.$ac_ext 4015 4016fi 4017echo "$as_me:4017: result: $cf_cv_struct_dirent64" >&5 4018echo "${ECHO_T}$cf_cv_struct_dirent64" >&6 4019 test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF 4020#define HAVE_STRUCT_DIRENT64 1 4021EOF 4022 4023 fi 4024 4025GCC_VERSION=none 4026if test "$GCC" = yes ; then 4027 echo "$as_me:4027: checking version of $CC" >&5 4028echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 4029 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`" 4030 test -z "$GCC_VERSION" && GCC_VERSION=unknown 4031 echo "$as_me:4031: result: $GCC_VERSION" >&5 4032echo "${ECHO_T}$GCC_VERSION" >&6 4033fi 4034 4035if ( test "$GCC" = yes || test "$GXX" = yes ) 4036then 4037echo "$as_me:4037: checking if you want to check for gcc warnings" >&5 4038echo $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6 4039 4040# Check whether --with-warnings or --without-warnings was given. 4041if test "${with_warnings+set}" = set; then 4042 withval="$with_warnings" 4043 cf_opt_with_warnings=$withval 4044else 4045 cf_opt_with_warnings=no 4046fi; 4047echo "$as_me:4047: result: $cf_opt_with_warnings" >&5 4048echo "${ECHO_T}$cf_opt_with_warnings" >&6 4049if test "$cf_opt_with_warnings" != no ; then 4050 4051if test "$GCC" = yes 4052then 4053cat > conftest.i <<EOF 4054#ifndef GCC_PRINTF 4055#define GCC_PRINTF 0 4056#endif 4057#ifndef GCC_SCANF 4058#define GCC_SCANF 0 4059#endif 4060#ifndef GCC_NORETURN 4061#define GCC_NORETURN /* nothing */ 4062#endif 4063#ifndef GCC_UNUSED 4064#define GCC_UNUSED /* nothing */ 4065#endif 4066EOF 4067if test "$GCC" = yes 4068then 4069 { echo "$as_me:4069: checking for $CC __attribute__ directives..." >&5 4070echo "$as_me: checking for $CC __attribute__ directives..." >&6;} 4071cat > conftest.$ac_ext <<EOF 4072#line 4072 "${as_me-configure}" 4073#include "confdefs.h" 4074#include "conftest.h" 4075#include "conftest.i" 4076#if GCC_PRINTF 4077#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) 4078#else 4079#define GCC_PRINTFLIKE(fmt,var) /*nothing*/ 4080#endif 4081#if GCC_SCANF 4082#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) 4083#else 4084#define GCC_SCANFLIKE(fmt,var) /*nothing*/ 4085#endif 4086extern void wow(char *,...) GCC_SCANFLIKE(1,2); 4087extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN; 4088extern void foo(void) GCC_NORETURN; 4089int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; } 4090EOF 4091 cf_printf_attribute=no 4092 cf_scanf_attribute=no 4093 for cf_attribute in scanf printf unused noreturn 4094 do 4095 4096cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 4097 4098 cf_directive="__attribute__(($cf_attribute))" 4099 echo "checking for $CC $cf_directive" 1>&5 4100 4101 case $cf_attribute in #(vi 4102 printf) #(vi 4103 cf_printf_attribute=yes 4104 cat >conftest.h <<EOF 4105#define GCC_$cf_ATTRIBUTE 1 4106EOF 4107 ;; 4108 scanf) #(vi 4109 cf_scanf_attribute=yes 4110 cat >conftest.h <<EOF 4111#define GCC_$cf_ATTRIBUTE 1 4112EOF 4113 ;; 4114 *) #(vi 4115 cat >conftest.h <<EOF 4116#define GCC_$cf_ATTRIBUTE $cf_directive 4117EOF 4118 ;; 4119 esac 4120 4121 if { (eval echo "$as_me:4121: \"$ac_compile\"") >&5 4122 (eval $ac_compile) 2>&5 4123 ac_status=$? 4124 echo "$as_me:4124: \$? = $ac_status" >&5 4125 (exit $ac_status); }; then 4126 test -n "$verbose" && echo "$as_me:4126: result: ... $cf_attribute" >&5 4127echo "${ECHO_T}... $cf_attribute" >&6 4128 cat conftest.h >>confdefs.h 4129 case $cf_attribute in #(vi 4130 printf) #(vi 4131 if test "$cf_printf_attribute" = no ; then 4132 cat >>confdefs.h <<EOF 4133#define GCC_PRINTFLIKE(fmt,var) /* nothing */ 4134EOF 4135 else 4136 cat >>confdefs.h <<EOF 4137#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) 4138EOF 4139 fi 4140 ;; 4141 scanf) #(vi 4142 if test "$cf_scanf_attribute" = no ; then 4143 cat >>confdefs.h <<EOF 4144#define GCC_SCANFLIKE(fmt,var) /* nothing */ 4145EOF 4146 else 4147 cat >>confdefs.h <<EOF 4148#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) 4149EOF 4150 fi 4151 ;; 4152 esac 4153 fi 4154 done 4155else 4156 fgrep define conftest.i >>confdefs.h 4157fi 4158rm -rf conftest* 4159fi 4160 4161INTEL_COMPILER=no 4162 4163if test "$GCC" = yes ; then 4164 case $host_os in 4165 linux*|gnu*) 4166 echo "$as_me:4166: checking if this is really Intel C compiler" >&5 4167echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6 4168 cf_save_CFLAGS="$CFLAGS" 4169 CFLAGS="$CFLAGS -no-gcc" 4170 cat >conftest.$ac_ext <<_ACEOF 4171#line 4171 "configure" 4172#include "confdefs.h" 4173 4174int 4175main () 4176{ 4177 4178#ifdef __INTEL_COMPILER 4179#else 4180make an error 4181#endif 4182 4183 ; 4184 return 0; 4185} 4186_ACEOF 4187rm -f conftest.$ac_objext 4188if { (eval echo "$as_me:4188: \"$ac_compile\"") >&5 4189 (eval $ac_compile) 2>&5 4190 ac_status=$? 4191 echo "$as_me:4191: \$? = $ac_status" >&5 4192 (exit $ac_status); } && 4193 { ac_try='test -s conftest.$ac_objext' 4194 { (eval echo "$as_me:4194: \"$ac_try\"") >&5 4195 (eval $ac_try) 2>&5 4196 ac_status=$? 4197 echo "$as_me:4197: \$? = $ac_status" >&5 4198 (exit $ac_status); }; }; then 4199 INTEL_COMPILER=yes 4200cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc" 4201 4202else 4203 echo "$as_me: failed program was:" >&5 4204cat conftest.$ac_ext >&5 4205fi 4206rm -f conftest.$ac_objext conftest.$ac_ext 4207 CFLAGS="$cf_save_CFLAGS" 4208 echo "$as_me:4208: result: $INTEL_COMPILER" >&5 4209echo "${ECHO_T}$INTEL_COMPILER" >&6 4210 ;; 4211 esac 4212fi 4213 4214cat > conftest.$ac_ext <<EOF 4215#line 4215 "${as_me-configure}" 4216int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; } 4217EOF 4218 4219if test "$INTEL_COMPILER" = yes 4220then 4221# The "-wdXXX" options suppress warnings: 4222# remark #1419: external declaration in primary source file 4223# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem) 4224# remark #1684: conversion from pointer to same-sized integral type (potential portability problem) 4225# remark #193: zero used for undefined preprocessing identifier 4226# remark #593: variable "curs_sb_left_arrow" was set but never used 4227# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits 4228# remark #869: parameter "tw" was never referenced 4229# remark #981: operands are evaluated in unspecified order 4230# warning #279: controlling expression is constant 4231 4232 { echo "$as_me:4232: checking for $CC warning options..." >&5 4233echo "$as_me: checking for $CC warning options..." >&6;} 4234 cf_save_CFLAGS="$CFLAGS" 4235 EXTRA_CFLAGS="-Wall" 4236 for cf_opt in \ 4237 wd1419 \ 4238 wd1683 \ 4239 wd1684 \ 4240 wd193 \ 4241 wd593 \ 4242 wd279 \ 4243 wd810 \ 4244 wd869 \ 4245 wd981 4246 do 4247 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 4248 if { (eval echo "$as_me:4248: \"$ac_compile\"") >&5 4249 (eval $ac_compile) 2>&5 4250 ac_status=$? 4251 echo "$as_me:4251: \$? = $ac_status" >&5 4252 (exit $ac_status); }; then 4253 test -n "$verbose" && echo "$as_me:4253: result: ... -$cf_opt" >&5 4254echo "${ECHO_T}... -$cf_opt" >&6 4255 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 4256 fi 4257 done 4258 CFLAGS="$cf_save_CFLAGS" 4259 4260elif test "$GCC" = yes 4261then 4262 { echo "$as_me:4262: checking for $CC warning options..." >&5 4263echo "$as_me: checking for $CC warning options..." >&6;} 4264 cf_save_CFLAGS="$CFLAGS" 4265 EXTRA_CFLAGS= 4266 cf_warn_CONST="" 4267 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings" 4268 for cf_opt in W Wall \ 4269 Wbad-function-cast \ 4270 Wcast-align \ 4271 Wcast-qual \ 4272 Winline \ 4273 Wmissing-declarations \ 4274 Wmissing-prototypes \ 4275 Wnested-externs \ 4276 Wpointer-arith \ 4277 Wshadow \ 4278 Wstrict-prototypes \ 4279 Wundef $cf_warn_CONST 4280 do 4281 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 4282 if { (eval echo "$as_me:4282: \"$ac_compile\"") >&5 4283 (eval $ac_compile) 2>&5 4284 ac_status=$? 4285 echo "$as_me:4285: \$? = $ac_status" >&5 4286 (exit $ac_status); }; then 4287 test -n "$verbose" && echo "$as_me:4287: result: ... -$cf_opt" >&5 4288echo "${ECHO_T}... -$cf_opt" >&6 4289 case $cf_opt in #(vi 4290 Wcast-qual) #(vi 4291 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES" 4292 ;; 4293 Winline) #(vi 4294 case $GCC_VERSION in 4295 [34].*) 4296 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 4297 4298echo "${as_me-configure}:4298: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 4299 4300 continue;; 4301 esac 4302 ;; 4303 esac 4304 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 4305 fi 4306 done 4307 CFLAGS="$cf_save_CFLAGS" 4308fi 4309rm -f conftest* 4310 4311fi 4312fi 4313 4314EXTRAOBJS="" 4315echo "$as_me:4315: checking for ANSI C header files" >&5 4316echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4317if test "${ac_cv_header_stdc+set}" = set; then 4318 echo $ECHO_N "(cached) $ECHO_C" >&6 4319else 4320 cat >conftest.$ac_ext <<_ACEOF 4321#line 4321 "configure" 4322#include "confdefs.h" 4323#include <stdlib.h> 4324#include <stdarg.h> 4325#include <string.h> 4326#include <float.h> 4327 4328_ACEOF 4329if { (eval echo "$as_me:4329: \"$ac_cpp conftest.$ac_ext\"") >&5 4330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4331 ac_status=$? 4332 egrep -v '^ *\+' conftest.er1 >conftest.err 4333 rm -f conftest.er1 4334 cat conftest.err >&5 4335 echo "$as_me:4335: \$? = $ac_status" >&5 4336 (exit $ac_status); } >/dev/null; then 4337 if test -s conftest.err; then 4338 ac_cpp_err=$ac_c_preproc_warn_flag 4339 else 4340 ac_cpp_err= 4341 fi 4342else 4343 ac_cpp_err=yes 4344fi 4345if test -z "$ac_cpp_err"; then 4346 ac_cv_header_stdc=yes 4347else 4348 echo "$as_me: failed program was:" >&5 4349 cat conftest.$ac_ext >&5 4350 ac_cv_header_stdc=no 4351fi 4352rm -f conftest.err conftest.$ac_ext 4353 4354if test $ac_cv_header_stdc = yes; then 4355 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4356 cat >conftest.$ac_ext <<_ACEOF 4357#line 4357 "configure" 4358#include "confdefs.h" 4359#include <string.h> 4360 4361_ACEOF 4362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4363 egrep "memchr" >/dev/null 2>&1; then 4364 : 4365else 4366 ac_cv_header_stdc=no 4367fi 4368rm -f conftest* 4369 4370fi 4371 4372if test $ac_cv_header_stdc = yes; then 4373 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4374 cat >conftest.$ac_ext <<_ACEOF 4375#line 4375 "configure" 4376#include "confdefs.h" 4377#include <stdlib.h> 4378 4379_ACEOF 4380if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4381 egrep "free" >/dev/null 2>&1; then 4382 : 4383else 4384 ac_cv_header_stdc=no 4385fi 4386rm -f conftest* 4387 4388fi 4389 4390if test $ac_cv_header_stdc = yes; then 4391 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4392 if test "$cross_compiling" = yes; then 4393 : 4394else 4395 cat >conftest.$ac_ext <<_ACEOF 4396#line 4396 "configure" 4397#include "confdefs.h" 4398#include <ctype.h> 4399#if ((' ' & 0x0FF) == 0x020) 4400# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4401# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4402#else 4403# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 4404 || ('j' <= (c) && (c) <= 'r') \ 4405 || ('s' <= (c) && (c) <= 'z')) 4406# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4407#endif 4408 4409#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4410int 4411main () 4412{ 4413 int i; 4414 for (i = 0; i < 256; i++) 4415 if (XOR (islower (i), ISLOWER (i)) 4416 || toupper (i) != TOUPPER (i)) 4417 $ac_main_return(2); 4418 $ac_main_return (0); 4419} 4420_ACEOF 4421rm -f conftest$ac_exeext 4422if { (eval echo "$as_me:4422: \"$ac_link\"") >&5 4423 (eval $ac_link) 2>&5 4424 ac_status=$? 4425 echo "$as_me:4425: \$? = $ac_status" >&5 4426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4427 { (eval echo "$as_me:4427: \"$ac_try\"") >&5 4428 (eval $ac_try) 2>&5 4429 ac_status=$? 4430 echo "$as_me:4430: \$? = $ac_status" >&5 4431 (exit $ac_status); }; }; then 4432 : 4433else 4434 echo "$as_me: program exited with status $ac_status" >&5 4435echo "$as_me: failed program was:" >&5 4436cat conftest.$ac_ext >&5 4437ac_cv_header_stdc=no 4438fi 4439rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4440fi 4441fi 4442fi 4443echo "$as_me:4443: result: $ac_cv_header_stdc" >&5 4444echo "${ECHO_T}$ac_cv_header_stdc" >&6 4445if test $ac_cv_header_stdc = yes; then 4446 4447cat >>confdefs.h <<\EOF 4448#define STDC_HEADERS 1 4449EOF 4450 4451fi 4452 4453echo "$as_me:4453: checking for inline" >&5 4454echo $ECHO_N "checking for inline... $ECHO_C" >&6 4455if test "${ac_cv_c_inline+set}" = set; then 4456 echo $ECHO_N "(cached) $ECHO_C" >&6 4457else 4458 ac_cv_c_inline=no 4459for ac_kw in inline __inline__ __inline; do 4460 cat >conftest.$ac_ext <<_ACEOF 4461#line 4461 "configure" 4462#include "confdefs.h" 4463#ifndef __cplusplus 4464static $ac_kw int static_foo () {return 0; } 4465$ac_kw int foo () {return 0; } 4466#endif 4467 4468_ACEOF 4469rm -f conftest.$ac_objext 4470if { (eval echo "$as_me:4470: \"$ac_compile\"") >&5 4471 (eval $ac_compile) 2>&5 4472 ac_status=$? 4473 echo "$as_me:4473: \$? = $ac_status" >&5 4474 (exit $ac_status); } && 4475 { ac_try='test -s conftest.$ac_objext' 4476 { (eval echo "$as_me:4476: \"$ac_try\"") >&5 4477 (eval $ac_try) 2>&5 4478 ac_status=$? 4479 echo "$as_me:4479: \$? = $ac_status" >&5 4480 (exit $ac_status); }; }; then 4481 ac_cv_c_inline=$ac_kw; break 4482else 4483 echo "$as_me: failed program was:" >&5 4484cat conftest.$ac_ext >&5 4485fi 4486rm -f conftest.$ac_objext conftest.$ac_ext 4487done 4488 4489fi 4490echo "$as_me:4490: result: $ac_cv_c_inline" >&5 4491echo "${ECHO_T}$ac_cv_c_inline" >&6 4492case $ac_cv_c_inline in 4493 inline | yes) ;; 4494 no) 4495cat >>confdefs.h <<\EOF 4496#define inline 4497EOF 4498 ;; 4499 *) cat >>confdefs.h <<EOF 4500#define inline $ac_cv_c_inline 4501EOF 4502 ;; 4503esac 4504 4505# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4506 4507for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4508 inttypes.h stdint.h unistd.h 4509do 4510as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4511echo "$as_me:4511: checking for $ac_header" >&5 4512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4513if eval "test \"\${$as_ac_Header+set}\" = set"; then 4514 echo $ECHO_N "(cached) $ECHO_C" >&6 4515else 4516 cat >conftest.$ac_ext <<_ACEOF 4517#line 4517 "configure" 4518#include "confdefs.h" 4519$ac_includes_default 4520#include <$ac_header> 4521_ACEOF 4522rm -f conftest.$ac_objext 4523if { (eval echo "$as_me:4523: \"$ac_compile\"") >&5 4524 (eval $ac_compile) 2>&5 4525 ac_status=$? 4526 echo "$as_me:4526: \$? = $ac_status" >&5 4527 (exit $ac_status); } && 4528 { ac_try='test -s conftest.$ac_objext' 4529 { (eval echo "$as_me:4529: \"$ac_try\"") >&5 4530 (eval $ac_try) 2>&5 4531 ac_status=$? 4532 echo "$as_me:4532: \$? = $ac_status" >&5 4533 (exit $ac_status); }; }; then 4534 eval "$as_ac_Header=yes" 4535else 4536 echo "$as_me: failed program was:" >&5 4537cat conftest.$ac_ext >&5 4538eval "$as_ac_Header=no" 4539fi 4540rm -f conftest.$ac_objext conftest.$ac_ext 4541fi 4542echo "$as_me:4542: result: `eval echo '${'$as_ac_Header'}'`" >&5 4543echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4544if test `eval echo '${'$as_ac_Header'}'` = yes; then 4545 cat >>confdefs.h <<EOF 4546#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4547EOF 4548 4549fi 4550done 4551 4552echo "$as_me:4552: checking for off_t" >&5 4553echo $ECHO_N "checking for off_t... $ECHO_C" >&6 4554if test "${ac_cv_type_off_t+set}" = set; then 4555 echo $ECHO_N "(cached) $ECHO_C" >&6 4556else 4557 cat >conftest.$ac_ext <<_ACEOF 4558#line 4558 "configure" 4559#include "confdefs.h" 4560$ac_includes_default 4561int 4562main () 4563{ 4564if ((off_t *) 0) 4565 return 0; 4566if (sizeof (off_t)) 4567 return 0; 4568 ; 4569 return 0; 4570} 4571_ACEOF 4572rm -f conftest.$ac_objext 4573if { (eval echo "$as_me:4573: \"$ac_compile\"") >&5 4574 (eval $ac_compile) 2>&5 4575 ac_status=$? 4576 echo "$as_me:4576: \$? = $ac_status" >&5 4577 (exit $ac_status); } && 4578 { ac_try='test -s conftest.$ac_objext' 4579 { (eval echo "$as_me:4579: \"$ac_try\"") >&5 4580 (eval $ac_try) 2>&5 4581 ac_status=$? 4582 echo "$as_me:4582: \$? = $ac_status" >&5 4583 (exit $ac_status); }; }; then 4584 ac_cv_type_off_t=yes 4585else 4586 echo "$as_me: failed program was:" >&5 4587cat conftest.$ac_ext >&5 4588ac_cv_type_off_t=no 4589fi 4590rm -f conftest.$ac_objext conftest.$ac_ext 4591fi 4592echo "$as_me:4592: result: $ac_cv_type_off_t" >&5 4593echo "${ECHO_T}$ac_cv_type_off_t" >&6 4594if test $ac_cv_type_off_t = yes; then 4595 : 4596else 4597 4598cat >>confdefs.h <<EOF 4599#define off_t long 4600EOF 4601 4602fi 4603 4604echo "$as_me:4604: checking for size_t" >&5 4605echo $ECHO_N "checking for size_t... $ECHO_C" >&6 4606if test "${ac_cv_type_size_t+set}" = set; then 4607 echo $ECHO_N "(cached) $ECHO_C" >&6 4608else 4609 cat >conftest.$ac_ext <<_ACEOF 4610#line 4610 "configure" 4611#include "confdefs.h" 4612$ac_includes_default 4613int 4614main () 4615{ 4616if ((size_t *) 0) 4617 return 0; 4618if (sizeof (size_t)) 4619 return 0; 4620 ; 4621 return 0; 4622} 4623_ACEOF 4624rm -f conftest.$ac_objext 4625if { (eval echo "$as_me:4625: \"$ac_compile\"") >&5 4626 (eval $ac_compile) 2>&5 4627 ac_status=$? 4628 echo "$as_me:4628: \$? = $ac_status" >&5 4629 (exit $ac_status); } && 4630 { ac_try='test -s conftest.$ac_objext' 4631 { (eval echo "$as_me:4631: \"$ac_try\"") >&5 4632 (eval $ac_try) 2>&5 4633 ac_status=$? 4634 echo "$as_me:4634: \$? = $ac_status" >&5 4635 (exit $ac_status); }; }; then 4636 ac_cv_type_size_t=yes 4637else 4638 echo "$as_me: failed program was:" >&5 4639cat conftest.$ac_ext >&5 4640ac_cv_type_size_t=no 4641fi 4642rm -f conftest.$ac_objext conftest.$ac_ext 4643fi 4644echo "$as_me:4644: result: $ac_cv_type_size_t" >&5 4645echo "${ECHO_T}$ac_cv_type_size_t" >&6 4646if test $ac_cv_type_size_t = yes; then 4647 : 4648else 4649 4650cat >>confdefs.h <<EOF 4651#define size_t unsigned 4652EOF 4653 4654fi 4655 4656# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 4657# for constant arguments. Useless! 4658echo "$as_me:4658: checking for working alloca.h" >&5 4659echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 4660if test "${ac_cv_working_alloca_h+set}" = set; then 4661 echo $ECHO_N "(cached) $ECHO_C" >&6 4662else 4663 cat >conftest.$ac_ext <<_ACEOF 4664#line 4664 "configure" 4665#include "confdefs.h" 4666#include <alloca.h> 4667int 4668main () 4669{ 4670char *p = (char *) alloca (2 * sizeof (int)); 4671 ; 4672 return 0; 4673} 4674_ACEOF 4675rm -f conftest.$ac_objext conftest$ac_exeext 4676if { (eval echo "$as_me:4676: \"$ac_link\"") >&5 4677 (eval $ac_link) 2>&5 4678 ac_status=$? 4679 echo "$as_me:4679: \$? = $ac_status" >&5 4680 (exit $ac_status); } && 4681 { ac_try='test -s conftest$ac_exeext' 4682 { (eval echo "$as_me:4682: \"$ac_try\"") >&5 4683 (eval $ac_try) 2>&5 4684 ac_status=$? 4685 echo "$as_me:4685: \$? = $ac_status" >&5 4686 (exit $ac_status); }; }; then 4687 ac_cv_working_alloca_h=yes 4688else 4689 echo "$as_me: failed program was:" >&5 4690cat conftest.$ac_ext >&5 4691ac_cv_working_alloca_h=no 4692fi 4693rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4694fi 4695echo "$as_me:4695: result: $ac_cv_working_alloca_h" >&5 4696echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 4697if test $ac_cv_working_alloca_h = yes; then 4698 4699cat >>confdefs.h <<\EOF 4700#define HAVE_ALLOCA_H 1 4701EOF 4702 4703fi 4704 4705echo "$as_me:4705: checking for alloca" >&5 4706echo $ECHO_N "checking for alloca... $ECHO_C" >&6 4707if test "${ac_cv_func_alloca_works+set}" = set; then 4708 echo $ECHO_N "(cached) $ECHO_C" >&6 4709else 4710 cat >conftest.$ac_ext <<_ACEOF 4711#line 4711 "configure" 4712#include "confdefs.h" 4713#ifdef __GNUC__ 4714# define alloca __builtin_alloca 4715#else 4716# ifdef _MSC_VER 4717# include <malloc.h> 4718# define alloca _alloca 4719# else 4720# if HAVE_ALLOCA_H 4721# include <alloca.h> 4722# else 4723# ifdef _AIX 4724 #pragma alloca 4725# else 4726# ifndef alloca /* predefined by HP cc +Olibcalls */ 4727char *alloca (); 4728# endif 4729# endif 4730# endif 4731# endif 4732#endif 4733 4734int 4735main () 4736{ 4737char *p = (char *) alloca (1); 4738 ; 4739 return 0; 4740} 4741_ACEOF 4742rm -f conftest.$ac_objext conftest$ac_exeext 4743if { (eval echo "$as_me:4743: \"$ac_link\"") >&5 4744 (eval $ac_link) 2>&5 4745 ac_status=$? 4746 echo "$as_me:4746: \$? = $ac_status" >&5 4747 (exit $ac_status); } && 4748 { ac_try='test -s conftest$ac_exeext' 4749 { (eval echo "$as_me:4749: \"$ac_try\"") >&5 4750 (eval $ac_try) 2>&5 4751 ac_status=$? 4752 echo "$as_me:4752: \$? = $ac_status" >&5 4753 (exit $ac_status); }; }; then 4754 ac_cv_func_alloca_works=yes 4755else 4756 echo "$as_me: failed program was:" >&5 4757cat conftest.$ac_ext >&5 4758ac_cv_func_alloca_works=no 4759fi 4760rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4761fi 4762echo "$as_me:4762: result: $ac_cv_func_alloca_works" >&5 4763echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 4764 4765if test $ac_cv_func_alloca_works = yes; then 4766 4767cat >>confdefs.h <<\EOF 4768#define HAVE_ALLOCA 1 4769EOF 4770 4771else 4772 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 4773# that cause trouble. Some versions do not even contain alloca or 4774# contain a buggy version. If you still want to use their alloca, 4775# use ar to extract alloca.o from them instead of compiling alloca.c. 4776 4777ALLOCA=alloca.$ac_objext 4778 4779cat >>confdefs.h <<\EOF 4780#define C_ALLOCA 1 4781EOF 4782 4783echo "$as_me:4783: checking whether \`alloca.c' needs Cray hooks" >&5 4784echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 4785if test "${ac_cv_os_cray+set}" = set; then 4786 echo $ECHO_N "(cached) $ECHO_C" >&6 4787else 4788 cat >conftest.$ac_ext <<_ACEOF 4789#line 4789 "configure" 4790#include "confdefs.h" 4791#if defined(CRAY) && ! defined(CRAY2) 4792webecray 4793#else 4794wenotbecray 4795#endif 4796 4797_ACEOF 4798if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4799 egrep "webecray" >/dev/null 2>&1; then 4800 ac_cv_os_cray=yes 4801else 4802 ac_cv_os_cray=no 4803fi 4804rm -f conftest* 4805 4806fi 4807echo "$as_me:4807: result: $ac_cv_os_cray" >&5 4808echo "${ECHO_T}$ac_cv_os_cray" >&6 4809if test $ac_cv_os_cray = yes; then 4810 for ac_func in _getb67 GETB67 getb67; do 4811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4812echo "$as_me:4812: checking for $ac_func" >&5 4813echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4814if eval "test \"\${$as_ac_var+set}\" = set"; then 4815 echo $ECHO_N "(cached) $ECHO_C" >&6 4816else 4817 cat >conftest.$ac_ext <<_ACEOF 4818#line 4818 "configure" 4819#include "confdefs.h" 4820/* System header to define __stub macros and hopefully few prototypes, 4821 which can conflict with char $ac_func (); below. */ 4822#include <assert.h> 4823/* Override any gcc2 internal prototype to avoid an error. */ 4824#ifdef __cplusplus 4825extern "C" 4826#endif 4827/* We use char because int might match the return type of a gcc2 4828 builtin and then its argument prototype would still apply. */ 4829char $ac_func (); 4830char (*f) (); 4831 4832int 4833main () 4834{ 4835/* The GNU C library defines this for functions which it implements 4836 to always fail with ENOSYS. Some functions are actually named 4837 something starting with __ and the normal name is an alias. */ 4838#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4839choke me 4840#else 4841f = $ac_func; 4842#endif 4843 4844 ; 4845 return 0; 4846} 4847_ACEOF 4848rm -f conftest.$ac_objext conftest$ac_exeext 4849if { (eval echo "$as_me:4849: \"$ac_link\"") >&5 4850 (eval $ac_link) 2>&5 4851 ac_status=$? 4852 echo "$as_me:4852: \$? = $ac_status" >&5 4853 (exit $ac_status); } && 4854 { ac_try='test -s conftest$ac_exeext' 4855 { (eval echo "$as_me:4855: \"$ac_try\"") >&5 4856 (eval $ac_try) 2>&5 4857 ac_status=$? 4858 echo "$as_me:4858: \$? = $ac_status" >&5 4859 (exit $ac_status); }; }; then 4860 eval "$as_ac_var=yes" 4861else 4862 echo "$as_me: failed program was:" >&5 4863cat conftest.$ac_ext >&5 4864eval "$as_ac_var=no" 4865fi 4866rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4867fi 4868echo "$as_me:4868: result: `eval echo '${'$as_ac_var'}'`" >&5 4869echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4870if test `eval echo '${'$as_ac_var'}'` = yes; then 4871 4872cat >>confdefs.h <<EOF 4873#define CRAY_STACKSEG_END $ac_func 4874EOF 4875 4876 break 4877fi 4878 4879 done 4880fi 4881 4882echo "$as_me:4882: checking stack direction for C alloca" >&5 4883echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 4884if test "${ac_cv_c_stack_direction+set}" = set; then 4885 echo $ECHO_N "(cached) $ECHO_C" >&6 4886else 4887 if test "$cross_compiling" = yes; then 4888 ac_cv_c_stack_direction=0 4889else 4890 cat >conftest.$ac_ext <<_ACEOF 4891#line 4891 "configure" 4892#include "confdefs.h" 4893int 4894find_stack_direction () 4895{ 4896 static char *addr = 0; 4897 auto char dummy; 4898 if (addr == 0) 4899 { 4900 addr = &dummy; 4901 return find_stack_direction (); 4902 } 4903 else 4904 return (&dummy > addr) ? 1 : -1; 4905} 4906 4907int 4908main () 4909{ 4910 $ac_main_return (find_stack_direction () < 0); 4911} 4912_ACEOF 4913rm -f conftest$ac_exeext 4914if { (eval echo "$as_me:4914: \"$ac_link\"") >&5 4915 (eval $ac_link) 2>&5 4916 ac_status=$? 4917 echo "$as_me:4917: \$? = $ac_status" >&5 4918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4919 { (eval echo "$as_me:4919: \"$ac_try\"") >&5 4920 (eval $ac_try) 2>&5 4921 ac_status=$? 4922 echo "$as_me:4922: \$? = $ac_status" >&5 4923 (exit $ac_status); }; }; then 4924 ac_cv_c_stack_direction=1 4925else 4926 echo "$as_me: program exited with status $ac_status" >&5 4927echo "$as_me: failed program was:" >&5 4928cat conftest.$ac_ext >&5 4929ac_cv_c_stack_direction=-1 4930fi 4931rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4932fi 4933fi 4934echo "$as_me:4934: result: $ac_cv_c_stack_direction" >&5 4935echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 4936 4937cat >>confdefs.h <<EOF 4938#define STACK_DIRECTION $ac_cv_c_stack_direction 4939EOF 4940 4941fi 4942 4943for ac_header in stdlib.h unistd.h 4944do 4945as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4946echo "$as_me:4946: checking for $ac_header" >&5 4947echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4948if eval "test \"\${$as_ac_Header+set}\" = set"; then 4949 echo $ECHO_N "(cached) $ECHO_C" >&6 4950else 4951 cat >conftest.$ac_ext <<_ACEOF 4952#line 4952 "configure" 4953#include "confdefs.h" 4954#include <$ac_header> 4955_ACEOF 4956if { (eval echo "$as_me:4956: \"$ac_cpp conftest.$ac_ext\"") >&5 4957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4958 ac_status=$? 4959 egrep -v '^ *\+' conftest.er1 >conftest.err 4960 rm -f conftest.er1 4961 cat conftest.err >&5 4962 echo "$as_me:4962: \$? = $ac_status" >&5 4963 (exit $ac_status); } >/dev/null; then 4964 if test -s conftest.err; then 4965 ac_cpp_err=$ac_c_preproc_warn_flag 4966 else 4967 ac_cpp_err= 4968 fi 4969else 4970 ac_cpp_err=yes 4971fi 4972if test -z "$ac_cpp_err"; then 4973 eval "$as_ac_Header=yes" 4974else 4975 echo "$as_me: failed program was:" >&5 4976 cat conftest.$ac_ext >&5 4977 eval "$as_ac_Header=no" 4978fi 4979rm -f conftest.err conftest.$ac_ext 4980fi 4981echo "$as_me:4981: result: `eval echo '${'$as_ac_Header'}'`" >&5 4982echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4983if test `eval echo '${'$as_ac_Header'}'` = yes; then 4984 cat >>confdefs.h <<EOF 4985#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4986EOF 4987 4988fi 4989done 4990 4991for ac_func in getpagesize 4992do 4993as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4994echo "$as_me:4994: checking for $ac_func" >&5 4995echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4996if eval "test \"\${$as_ac_var+set}\" = set"; then 4997 echo $ECHO_N "(cached) $ECHO_C" >&6 4998else 4999 cat >conftest.$ac_ext <<_ACEOF 5000#line 5000 "configure" 5001#include "confdefs.h" 5002/* System header to define __stub macros and hopefully few prototypes, 5003 which can conflict with char $ac_func (); below. */ 5004#include <assert.h> 5005/* Override any gcc2 internal prototype to avoid an error. */ 5006#ifdef __cplusplus 5007extern "C" 5008#endif 5009/* We use char because int might match the return type of a gcc2 5010 builtin and then its argument prototype would still apply. */ 5011char $ac_func (); 5012char (*f) (); 5013 5014int 5015main () 5016{ 5017/* The GNU C library defines this for functions which it implements 5018 to always fail with ENOSYS. Some functions are actually named 5019 something starting with __ and the normal name is an alias. */ 5020#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5021choke me 5022#else 5023f = $ac_func; 5024#endif 5025 5026 ; 5027 return 0; 5028} 5029_ACEOF 5030rm -f conftest.$ac_objext conftest$ac_exeext 5031if { (eval echo "$as_me:5031: \"$ac_link\"") >&5 5032 (eval $ac_link) 2>&5 5033 ac_status=$? 5034 echo "$as_me:5034: \$? = $ac_status" >&5 5035 (exit $ac_status); } && 5036 { ac_try='test -s conftest$ac_exeext' 5037 { (eval echo "$as_me:5037: \"$ac_try\"") >&5 5038 (eval $ac_try) 2>&5 5039 ac_status=$? 5040 echo "$as_me:5040: \$? = $ac_status" >&5 5041 (exit $ac_status); }; }; then 5042 eval "$as_ac_var=yes" 5043else 5044 echo "$as_me: failed program was:" >&5 5045cat conftest.$ac_ext >&5 5046eval "$as_ac_var=no" 5047fi 5048rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5049fi 5050echo "$as_me:5050: result: `eval echo '${'$as_ac_var'}'`" >&5 5051echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5052if test `eval echo '${'$as_ac_var'}'` = yes; then 5053 cat >>confdefs.h <<EOF 5054#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5055EOF 5056 5057fi 5058done 5059 5060echo "$as_me:5060: checking for working mmap" >&5 5061echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 5062if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 5063 echo $ECHO_N "(cached) $ECHO_C" >&6 5064else 5065 if test "$cross_compiling" = yes; then 5066 ac_cv_func_mmap_fixed_mapped=no 5067else 5068 cat >conftest.$ac_ext <<_ACEOF 5069#line 5069 "configure" 5070#include "confdefs.h" 5071$ac_includes_default 5072/* Thanks to Mike Haertel and Jim Avera for this test. 5073 Here is a matrix of mmap possibilities: 5074 mmap private not fixed 5075 mmap private fixed at somewhere currently unmapped 5076 mmap private fixed at somewhere already mapped 5077 mmap shared not fixed 5078 mmap shared fixed at somewhere currently unmapped 5079 mmap shared fixed at somewhere already mapped 5080 For private mappings, we should verify that changes cannot be read() 5081 back from the file, nor mmap's back from the file at a different 5082 address. (There have been systems where private was not correctly 5083 implemented like the infamous i386 svr4.0, and systems where the 5084 VM page cache was not coherent with the file system buffer cache 5085 like early versions of FreeBSD and possibly contemporary NetBSD.) 5086 For shared mappings, we should conversely verify that changes get 5087 propogated back to all the places they're supposed to be. 5088 5089 Grep wants private fixed already mapped. 5090 The main things grep needs to know about mmap are: 5091 * does it exist and is it safe to write into the mmap'd area 5092 * how to use it (BSD variants) */ 5093 5094#include <fcntl.h> 5095#include <sys/mman.h> 5096 5097#if !STDC_HEADERS && !HAVE_STDLIB_H 5098char *malloc (); 5099#endif 5100 5101/* This mess was copied from the GNU getpagesize.h. */ 5102#if !HAVE_GETPAGESIZE 5103/* Assume that all systems that can run configure have sys/param.h. */ 5104# if !HAVE_SYS_PARAM_H 5105# define HAVE_SYS_PARAM_H 1 5106# endif 5107 5108# ifdef _SC_PAGESIZE 5109# define getpagesize() sysconf(_SC_PAGESIZE) 5110# else /* no _SC_PAGESIZE */ 5111# if HAVE_SYS_PARAM_H 5112# include <sys/param.h> 5113# ifdef EXEC_PAGESIZE 5114# define getpagesize() EXEC_PAGESIZE 5115# else /* no EXEC_PAGESIZE */ 5116# ifdef NBPG 5117# define getpagesize() NBPG * CLSIZE 5118# ifndef CLSIZE 5119# define CLSIZE 1 5120# endif /* no CLSIZE */ 5121# else /* no NBPG */ 5122# ifdef NBPC 5123# define getpagesize() NBPC 5124# else /* no NBPC */ 5125# ifdef PAGESIZE 5126# define getpagesize() PAGESIZE 5127# endif /* PAGESIZE */ 5128# endif /* no NBPC */ 5129# endif /* no NBPG */ 5130# endif /* no EXEC_PAGESIZE */ 5131# else /* no HAVE_SYS_PARAM_H */ 5132# define getpagesize() 8192 /* punt totally */ 5133# endif /* no HAVE_SYS_PARAM_H */ 5134# endif /* no _SC_PAGESIZE */ 5135 5136#endif /* no HAVE_GETPAGESIZE */ 5137 5138int 5139main () 5140{ 5141 char *data, *data2, *data3; 5142 int i, pagesize; 5143 int fd; 5144 5145 pagesize = getpagesize (); 5146 5147 /* First, make a file with some known garbage in it. */ 5148 data = (char *) malloc (pagesize); 5149 if (!data) 5150 $ac_main_return (1); 5151 for (i = 0; i < pagesize; ++i) 5152 *(data + i) = rand (); 5153 umask (0); 5154 fd = creat ("conftest.mmap", 0600); 5155 if (fd < 0) 5156 $ac_main_return (1); 5157 if (write (fd, data, pagesize) != pagesize) 5158 $ac_main_return (1); 5159 close (fd); 5160 5161 /* Next, try to mmap the file at a fixed address which already has 5162 something else allocated at it. If we can, also make sure that 5163 we see the same garbage. */ 5164 fd = open ("conftest.mmap", O_RDWR); 5165 if (fd < 0) 5166 $ac_main_return (1); 5167 data2 = (char *) malloc (2 * pagesize); 5168 if (!data2) 5169 $ac_main_return (1); 5170 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 5171 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 5172 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 5173 $ac_main_return (1); 5174 for (i = 0; i < pagesize; ++i) 5175 if (*(data + i) != *(data2 + i)) 5176 $ac_main_return (1); 5177 5178 /* Finally, make sure that changes to the mapped area do not 5179 percolate back to the file as seen by read(). (This is a bug on 5180 some variants of i386 svr4.0.) */ 5181 for (i = 0; i < pagesize; ++i) 5182 *(data2 + i) = *(data2 + i) + 1; 5183 data3 = (char *) malloc (pagesize); 5184 if (!data3) 5185 $ac_main_return (1); 5186 if (read (fd, data3, pagesize) != pagesize) 5187 $ac_main_return (1); 5188 for (i = 0; i < pagesize; ++i) 5189 if (*(data + i) != *(data3 + i)) 5190 $ac_main_return (1); 5191 close (fd); 5192 $ac_main_return (0); 5193} 5194_ACEOF 5195rm -f conftest$ac_exeext 5196if { (eval echo "$as_me:5196: \"$ac_link\"") >&5 5197 (eval $ac_link) 2>&5 5198 ac_status=$? 5199 echo "$as_me:5199: \$? = $ac_status" >&5 5200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5201 { (eval echo "$as_me:5201: \"$ac_try\"") >&5 5202 (eval $ac_try) 2>&5 5203 ac_status=$? 5204 echo "$as_me:5204: \$? = $ac_status" >&5 5205 (exit $ac_status); }; }; then 5206 ac_cv_func_mmap_fixed_mapped=yes 5207else 5208 echo "$as_me: program exited with status $ac_status" >&5 5209echo "$as_me: failed program was:" >&5 5210cat conftest.$ac_ext >&5 5211ac_cv_func_mmap_fixed_mapped=no 5212fi 5213rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5214fi 5215fi 5216echo "$as_me:5216: result: $ac_cv_func_mmap_fixed_mapped" >&5 5217echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 5218if test $ac_cv_func_mmap_fixed_mapped = yes; then 5219 5220cat >>confdefs.h <<\EOF 5221#define HAVE_MMAP 1 5222EOF 5223 5224fi 5225rm -f conftest.mmap 5226 5227 echo "$as_me:5227: checking whether we are using the GNU C Library 2.1 or newer" >&5 5228echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6 5229if test "${ac_cv_gnu_library_2_1+set}" = set; then 5230 echo $ECHO_N "(cached) $ECHO_C" >&6 5231else 5232 cat >conftest.$ac_ext <<_ACEOF 5233#line 5233 "configure" 5234#include "confdefs.h" 5235 5236#include <features.h> 5237#ifdef __GNU_LIBRARY__ 5238 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 5239 Lucky GNU user 5240 #endif 5241#endif 5242 5243_ACEOF 5244if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5245 egrep "Lucky GNU user" >/dev/null 2>&1; then 5246 ac_cv_gnu_library_2_1=yes 5247else 5248 ac_cv_gnu_library_2_1=no 5249fi 5250rm -f conftest* 5251 5252fi 5253echo "$as_me:5253: result: $ac_cv_gnu_library_2_1" >&5 5254echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6 5255 5256 GLIBC21="$ac_cv_gnu_library_2_1" 5257 5258cf_makefile=makefile 5259 5260test -z "$ALL_LINGUAS" && ALL_LINGUAS=`test -d $srcdir/po && cd $srcdir/po && echo *.po|sed -e 's/\.po//g' -e 's/*//'` 5261 5262# Allow override of "config.h" definition: 5263: ${CONFIG_H=config.h} 5264 5265if test -z "$VERSION" ; then 5266if test -f $srcdir/VERSION ; then 5267 VERSION=`sed -e '2,$d' $srcdir/VERSION|cut -f1` 5268else 5269 VERSION=unknown 5270fi 5271fi 5272 5273for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ 5274stdlib.h string.h unistd.h sys/param.h 5275do 5276as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5277echo "$as_me:5277: checking for $ac_header" >&5 5278echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5279if eval "test \"\${$as_ac_Header+set}\" = set"; then 5280 echo $ECHO_N "(cached) $ECHO_C" >&6 5281else 5282 cat >conftest.$ac_ext <<_ACEOF 5283#line 5283 "configure" 5284#include "confdefs.h" 5285#include <$ac_header> 5286_ACEOF 5287if { (eval echo "$as_me:5287: \"$ac_cpp conftest.$ac_ext\"") >&5 5288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5289 ac_status=$? 5290 egrep -v '^ *\+' conftest.er1 >conftest.err 5291 rm -f conftest.er1 5292 cat conftest.err >&5 5293 echo "$as_me:5293: \$? = $ac_status" >&5 5294 (exit $ac_status); } >/dev/null; then 5295 if test -s conftest.err; then 5296 ac_cpp_err=$ac_c_preproc_warn_flag 5297 else 5298 ac_cpp_err= 5299 fi 5300else 5301 ac_cpp_err=yes 5302fi 5303if test -z "$ac_cpp_err"; then 5304 eval "$as_ac_Header=yes" 5305else 5306 echo "$as_me: failed program was:" >&5 5307 cat conftest.$ac_ext >&5 5308 eval "$as_ac_Header=no" 5309fi 5310rm -f conftest.err conftest.$ac_ext 5311fi 5312echo "$as_me:5312: result: `eval echo '${'$as_ac_Header'}'`" >&5 5313echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5314if test `eval echo '${'$as_ac_Header'}'` = yes; then 5315 cat >>confdefs.h <<EOF 5316#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5317EOF 5318 5319fi 5320done 5321 5322for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \ 5323getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \ 5324strdup strtoul tsearch __argz_count __argz_stringify __argz_next 5325do 5326as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5327echo "$as_me:5327: checking for $ac_func" >&5 5328echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5329if eval "test \"\${$as_ac_var+set}\" = set"; then 5330 echo $ECHO_N "(cached) $ECHO_C" >&6 5331else 5332 cat >conftest.$ac_ext <<_ACEOF 5333#line 5333 "configure" 5334#include "confdefs.h" 5335/* System header to define __stub macros and hopefully few prototypes, 5336 which can conflict with char $ac_func (); below. */ 5337#include <assert.h> 5338/* Override any gcc2 internal prototype to avoid an error. */ 5339#ifdef __cplusplus 5340extern "C" 5341#endif 5342/* We use char because int might match the return type of a gcc2 5343 builtin and then its argument prototype would still apply. */ 5344char $ac_func (); 5345char (*f) (); 5346 5347int 5348main () 5349{ 5350/* The GNU C library defines this for functions which it implements 5351 to always fail with ENOSYS. Some functions are actually named 5352 something starting with __ and the normal name is an alias. */ 5353#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5354choke me 5355#else 5356f = $ac_func; 5357#endif 5358 5359 ; 5360 return 0; 5361} 5362_ACEOF 5363rm -f conftest.$ac_objext conftest$ac_exeext 5364if { (eval echo "$as_me:5364: \"$ac_link\"") >&5 5365 (eval $ac_link) 2>&5 5366 ac_status=$? 5367 echo "$as_me:5367: \$? = $ac_status" >&5 5368 (exit $ac_status); } && 5369 { ac_try='test -s conftest$ac_exeext' 5370 { (eval echo "$as_me:5370: \"$ac_try\"") >&5 5371 (eval $ac_try) 2>&5 5372 ac_status=$? 5373 echo "$as_me:5373: \$? = $ac_status" >&5 5374 (exit $ac_status); }; }; then 5375 eval "$as_ac_var=yes" 5376else 5377 echo "$as_me: failed program was:" >&5 5378cat conftest.$ac_ext >&5 5379eval "$as_ac_var=no" 5380fi 5381rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5382fi 5383echo "$as_me:5383: result: `eval echo '${'$as_ac_var'}'`" >&5 5384echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5385if test `eval echo '${'$as_ac_var'}'` = yes; then 5386 cat >>confdefs.h <<EOF 5387#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5388EOF 5389 5390fi 5391done 5392 5393# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. 5394if test "${with_libiconv_prefix+set}" = set; then 5395 withval="$with_libiconv_prefix" 5396 5397 case "$withval" in #(vi 5398 no) #(vi 5399 ;; 5400 yes) #(vi 5401 ;; 5402 *) 5403 5404for cf_searchpath in `echo "$withval" | tr $PATH_SEPARATOR ' '`; do 5405 if test -d $cf_searchpath/include; then 5406 5407if test -n "$cf_searchpath/include" ; then 5408 for cf_add_incdir in $cf_searchpath/include 5409 do 5410 while test $cf_add_incdir != /usr/include 5411 do 5412 if test -d $cf_add_incdir 5413 then 5414 cf_have_incdir=no 5415 if test -n "$CFLAGS$CPPFLAGS" ; then 5416 # a loop is needed to ensure we can add subdirs of existing dirs 5417 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 5418 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 5419 cf_have_incdir=yes; break 5420 fi 5421 done 5422 fi 5423 5424 if test "$cf_have_incdir" = no ; then 5425 if test "$cf_add_incdir" = /usr/local/include ; then 5426 if test "$GCC" = yes 5427 then 5428 cf_save_CPPFLAGS=$CPPFLAGS 5429 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 5430 cat >conftest.$ac_ext <<_ACEOF 5431#line 5431 "configure" 5432#include "confdefs.h" 5433#include <stdio.h> 5434int 5435main () 5436{ 5437printf("Hello") 5438 ; 5439 return 0; 5440} 5441_ACEOF 5442rm -f conftest.$ac_objext 5443if { (eval echo "$as_me:5443: \"$ac_compile\"") >&5 5444 (eval $ac_compile) 2>&5 5445 ac_status=$? 5446 echo "$as_me:5446: \$? = $ac_status" >&5 5447 (exit $ac_status); } && 5448 { ac_try='test -s conftest.$ac_objext' 5449 { (eval echo "$as_me:5449: \"$ac_try\"") >&5 5450 (eval $ac_try) 2>&5 5451 ac_status=$? 5452 echo "$as_me:5452: \$? = $ac_status" >&5 5453 (exit $ac_status); }; }; then 5454 : 5455else 5456 echo "$as_me: failed program was:" >&5 5457cat conftest.$ac_ext >&5 5458cf_have_incdir=yes 5459fi 5460rm -f conftest.$ac_objext conftest.$ac_ext 5461 CPPFLAGS=$cf_save_CPPFLAGS 5462 fi 5463 fi 5464 fi 5465 5466 if test "$cf_have_incdir" = no ; then 5467 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 5468 5469echo "${as_me-configure}:5469: testing adding $cf_add_incdir to include-path ..." 1>&5 5470 5471 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 5472 5473 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 5474 test "$cf_top_incdir" = "$cf_add_incdir" && break 5475 cf_add_incdir="$cf_top_incdir" 5476 else 5477 break 5478 fi 5479 fi 5480 done 5481 done 5482fi 5483 5484 elif test -d $cf_searchpath/../include ; then 5485 5486if test -n "$cf_searchpath/../include" ; then 5487 for cf_add_incdir in $cf_searchpath/../include 5488 do 5489 while test $cf_add_incdir != /usr/include 5490 do 5491 if test -d $cf_add_incdir 5492 then 5493 cf_have_incdir=no 5494 if test -n "$CFLAGS$CPPFLAGS" ; then 5495 # a loop is needed to ensure we can add subdirs of existing dirs 5496 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 5497 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 5498 cf_have_incdir=yes; break 5499 fi 5500 done 5501 fi 5502 5503 if test "$cf_have_incdir" = no ; then 5504 if test "$cf_add_incdir" = /usr/local/include ; then 5505 if test "$GCC" = yes 5506 then 5507 cf_save_CPPFLAGS=$CPPFLAGS 5508 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 5509 cat >conftest.$ac_ext <<_ACEOF 5510#line 5510 "configure" 5511#include "confdefs.h" 5512#include <stdio.h> 5513int 5514main () 5515{ 5516printf("Hello") 5517 ; 5518 return 0; 5519} 5520_ACEOF 5521rm -f conftest.$ac_objext 5522if { (eval echo "$as_me:5522: \"$ac_compile\"") >&5 5523 (eval $ac_compile) 2>&5 5524 ac_status=$? 5525 echo "$as_me:5525: \$? = $ac_status" >&5 5526 (exit $ac_status); } && 5527 { ac_try='test -s conftest.$ac_objext' 5528 { (eval echo "$as_me:5528: \"$ac_try\"") >&5 5529 (eval $ac_try) 2>&5 5530 ac_status=$? 5531 echo "$as_me:5531: \$? = $ac_status" >&5 5532 (exit $ac_status); }; }; then 5533 : 5534else 5535 echo "$as_me: failed program was:" >&5 5536cat conftest.$ac_ext >&5 5537cf_have_incdir=yes 5538fi 5539rm -f conftest.$ac_objext conftest.$ac_ext 5540 CPPFLAGS=$cf_save_CPPFLAGS 5541 fi 5542 fi 5543 fi 5544 5545 if test "$cf_have_incdir" = no ; then 5546 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 5547 5548echo "${as_me-configure}:5548: testing adding $cf_add_incdir to include-path ..." 1>&5 5549 5550 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 5551 5552 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 5553 test "$cf_top_incdir" = "$cf_add_incdir" && break 5554 cf_add_incdir="$cf_top_incdir" 5555 else 5556 break 5557 fi 5558 fi 5559 done 5560 done 5561fi 5562 5563 else 5564{ { echo "$as_me:5564: error: cannot find libiconv under $withval" >&5 5565echo "$as_me: error: cannot find libiconv under $withval" >&2;} 5566 { (exit 1); exit 1; }; } 5567 fi 5568 if test -d $cf_searchpath/lib; then 5569 5570if test -n "$cf_searchpath/lib" ; then 5571 for cf_add_libdir in $cf_searchpath/lib 5572 do 5573 if test $cf_add_libdir = /usr/lib ; then 5574 : 5575 elif test -d $cf_add_libdir 5576 then 5577 cf_have_libdir=no 5578 if test -n "$LDFLAGS$LIBS" ; then 5579 # a loop is needed to ensure we can add subdirs of existing dirs 5580 for cf_test_libdir in $LDFLAGS $LIBS ; do 5581 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 5582 cf_have_libdir=yes; break 5583 fi 5584 done 5585 fi 5586 if test "$cf_have_libdir" = no ; then 5587 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 5588 5589echo "${as_me-configure}:5589: testing adding $cf_add_libdir to library-path ..." 1>&5 5590 5591 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 5592 fi 5593 fi 5594 done 5595fi 5596 5597 elif test -d $cf_searchpath ; then 5598 5599if test -n "$cf_searchpath" ; then 5600 for cf_add_libdir in $cf_searchpath 5601 do 5602 if test $cf_add_libdir = /usr/lib ; then 5603 : 5604 elif test -d $cf_add_libdir 5605 then 5606 cf_have_libdir=no 5607 if test -n "$LDFLAGS$LIBS" ; then 5608 # a loop is needed to ensure we can add subdirs of existing dirs 5609 for cf_test_libdir in $LDFLAGS $LIBS ; do 5610 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 5611 cf_have_libdir=yes; break 5612 fi 5613 done 5614 fi 5615 if test "$cf_have_libdir" = no ; then 5616 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 5617 5618echo "${as_me-configure}:5618: testing adding $cf_add_libdir to library-path ..." 1>&5 5619 5620 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 5621 fi 5622 fi 5623 done 5624fi 5625 5626 else 5627{ { echo "$as_me:5627: error: cannot find libiconv under $withval" >&5 5628echo "$as_me: error: cannot find libiconv under $withval" >&2;} 5629 { (exit 1); exit 1; }; } 5630 fi 5631done 5632 5633 ;; 5634 esac 5635 5636fi; 5637 5638 echo "$as_me:5638: checking for iconv" >&5 5639echo $ECHO_N "checking for iconv... $ECHO_C" >&6 5640if test "${am_cv_func_iconv+set}" = set; then 5641 echo $ECHO_N "(cached) $ECHO_C" >&6 5642else 5643 5644# If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these 5645# will be set on completion of the AC_TRY_LINK below. 5646cf_cv_header_path_iconv= 5647cf_cv_library_path_iconv= 5648 5649echo "${as_me-configure}:5649: testing Starting FIND_LINKAGE(iconv,) ..." 1>&5 5650 5651cat >conftest.$ac_ext <<_ACEOF 5652#line 5652 "configure" 5653#include "confdefs.h" 5654 5655#include <stdlib.h> 5656#include <iconv.h> 5657 5658int 5659main () 5660{ 5661 5662 iconv_t cd = iconv_open("",""); 5663 iconv(cd,NULL,NULL,NULL,NULL); 5664 iconv_close(cd); 5665 5666 ; 5667 return 0; 5668} 5669_ACEOF 5670rm -f conftest.$ac_objext conftest$ac_exeext 5671if { (eval echo "$as_me:5671: \"$ac_link\"") >&5 5672 (eval $ac_link) 2>&5 5673 ac_status=$? 5674 echo "$as_me:5674: \$? = $ac_status" >&5 5675 (exit $ac_status); } && 5676 { ac_try='test -s conftest$ac_exeext' 5677 { (eval echo "$as_me:5677: \"$ac_try\"") >&5 5678 (eval $ac_try) 2>&5 5679 ac_status=$? 5680 echo "$as_me:5680: \$? = $ac_status" >&5 5681 (exit $ac_status); }; }; then 5682 5683 cf_cv_find_linkage_iconv=yes 5684 5685else 5686 echo "$as_me: failed program was:" >&5 5687cat conftest.$ac_ext >&5 5688 5689cf_save_LIBS="$LIBS" 5690LIBS="-liconv $cf_save_LIBS" 5691 5692cat >conftest.$ac_ext <<_ACEOF 5693#line 5693 "configure" 5694#include "confdefs.h" 5695 5696#include <stdlib.h> 5697#include <iconv.h> 5698 5699int 5700main () 5701{ 5702 5703 iconv_t cd = iconv_open("",""); 5704 iconv(cd,NULL,NULL,NULL,NULL); 5705 iconv_close(cd); 5706 5707 ; 5708 return 0; 5709} 5710_ACEOF 5711rm -f conftest.$ac_objext conftest$ac_exeext 5712if { (eval echo "$as_me:5712: \"$ac_link\"") >&5 5713 (eval $ac_link) 2>&5 5714 ac_status=$? 5715 echo "$as_me:5715: \$? = $ac_status" >&5 5716 (exit $ac_status); } && 5717 { ac_try='test -s conftest$ac_exeext' 5718 { (eval echo "$as_me:5718: \"$ac_try\"") >&5 5719 (eval $ac_try) 2>&5 5720 ac_status=$? 5721 echo "$as_me:5721: \$? = $ac_status" >&5 5722 (exit $ac_status); }; }; then 5723 5724 cf_cv_find_linkage_iconv=yes 5725 cf_cv_library_file_iconv="-liconv" 5726 5727else 5728 echo "$as_me: failed program was:" >&5 5729cat conftest.$ac_ext >&5 5730 5731 cf_cv_find_linkage_iconv=no 5732 LIBS="$cf_save_LIBS" 5733 5734 test -n "$verbose" && echo " find linkage for iconv library" 1>&6 5735 5736echo "${as_me-configure}:5736: testing find linkage for iconv library ..." 1>&5 5737 5738echo "${as_me-configure}:5738: testing Searching for headers in FIND_LINKAGE(iconv,) ..." 1>&5 5739 5740 cf_save_CPPFLAGS="$CPPFLAGS" 5741 cf_test_CPPFLAGS="$CPPFLAGS" 5742 5743cf_search= 5744 5745# collect the current set of include-directories from compiler flags 5746cf_header_path_list="" 5747if test -n "${CFLAGS}${CPPFLAGS}" ; then 5748 for cf_header_path in $CPPFLAGS $CFLAGS 5749 do 5750 case $cf_header_path in #(vi 5751 -I*) 5752 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'` 5753 cf_header_path_list="$cf_header_path_list $cf_header_path" 5754 ;; 5755 esac 5756 done 5757fi 5758 5759# add the variations for the package we are looking for 5760 5761cf_search= 5762 5763test "/usr" != "$prefix" && \ 5764test -d "/usr" && \ 5765(test $prefix = NONE || test -d $prefix) && { 5766 test -n "$verbose" && echo " ... testing for include-directories under /usr" 5767 test -d /usr/include && cf_search="$cf_search /usr/include" 5768 test -d /usr/include/iconv && cf_search="$cf_search /usr/include/iconv" 5769 test -d /usr/include/iconv/include && cf_search="$cf_search /usr/include/iconv/include" 5770 test -d /usr/iconv/include && cf_search="$cf_search /usr/iconv/include" 5771 test -d /usr/iconv/include/iconv && cf_search="$cf_search /usr/iconv/include/iconv" 5772} 5773 5774test "$prefix" != "NONE" && \ 5775test -d "$prefix" && \ 5776 { 5777 test -n "$verbose" && echo " ... testing for include-directories under $prefix" 5778 test -d $prefix/include && cf_search="$cf_search $prefix/include" 5779 test -d $prefix/include/iconv && cf_search="$cf_search $prefix/include/iconv" 5780 test -d $prefix/include/iconv/include && cf_search="$cf_search $prefix/include/iconv/include" 5781 test -d $prefix/iconv/include && cf_search="$cf_search $prefix/iconv/include" 5782 test -d $prefix/iconv/include/iconv && cf_search="$cf_search $prefix/iconv/include/iconv" 5783} 5784 5785test "/usr/local" != "$prefix" && \ 5786test -d "/usr/local" && \ 5787(test $prefix = NONE || test -d $prefix) && { 5788 test -n "$verbose" && echo " ... testing for include-directories under /usr/local" 5789 test -d /usr/local/include && cf_search="$cf_search /usr/local/include" 5790 test -d /usr/local/include/iconv && cf_search="$cf_search /usr/local/include/iconv" 5791 test -d /usr/local/include/iconv/include && cf_search="$cf_search /usr/local/include/iconv/include" 5792 test -d /usr/local/iconv/include && cf_search="$cf_search /usr/local/iconv/include" 5793 test -d /usr/local/iconv/include/iconv && cf_search="$cf_search /usr/local/iconv/include/iconv" 5794} 5795 5796test "/opt" != "$prefix" && \ 5797test -d "/opt" && \ 5798(test $prefix = NONE || test -d $prefix) && { 5799 test -n "$verbose" && echo " ... testing for include-directories under /opt" 5800 test -d /opt/include && cf_search="$cf_search /opt/include" 5801 test -d /opt/include/iconv && cf_search="$cf_search /opt/include/iconv" 5802 test -d /opt/include/iconv/include && cf_search="$cf_search /opt/include/iconv/include" 5803 test -d /opt/iconv/include && cf_search="$cf_search /opt/iconv/include" 5804 test -d /opt/iconv/include/iconv && cf_search="$cf_search /opt/iconv/include/iconv" 5805} 5806 5807test "$HOME" != "$prefix" && \ 5808test -d "$HOME" && \ 5809(test $prefix = NONE || test -d $prefix) && { 5810 test -n "$verbose" && echo " ... testing for include-directories under $HOME" 5811 test -d $HOME/include && cf_search="$cf_search $HOME/include" 5812 test -d $HOME/include/iconv && cf_search="$cf_search $HOME/include/iconv" 5813 test -d $HOME/include/iconv/include && cf_search="$cf_search $HOME/include/iconv/include" 5814 test -d $HOME/iconv/include && cf_search="$cf_search $HOME/iconv/include" 5815 test -d $HOME/iconv/include/iconv && cf_search="$cf_search $HOME/iconv/include/iconv" 5816} 5817 5818test "$includedir" != NONE && \ 5819test "$includedir" != "/usr/include" && \ 5820test -d "$includedir" && { 5821 test -d $includedir && cf_search="$cf_search $includedir" 5822 test -d $includedir/iconv && cf_search="$cf_search $includedir/iconv" 5823} 5824 5825test "$oldincludedir" != NONE && \ 5826test "$oldincludedir" != "/usr/include" && \ 5827test -d "$oldincludedir" && { 5828 test -d $oldincludedir && cf_search="$cf_search $oldincludedir" 5829 test -d $oldincludedir/iconv && cf_search="$cf_search $oldincludedir/iconv" 5830} 5831 5832cf_search="$cf_search $cf_header_path_list" 5833 5834 for cf_cv_header_path_iconv in $cf_search 5835 do 5836 if test -d $cf_cv_header_path_iconv ; then 5837 test -n "$verbose" && echo " ... testing $cf_cv_header_path_iconv" 1>&6 5838 5839echo "${as_me-configure}:5839: testing ... testing $cf_cv_header_path_iconv ..." 1>&5 5840 5841 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_iconv" 5842 cat >conftest.$ac_ext <<_ACEOF 5843#line 5843 "configure" 5844#include "confdefs.h" 5845 5846#include <stdlib.h> 5847#include <iconv.h> 5848 5849int 5850main () 5851{ 5852 5853 iconv_t cd = iconv_open("",""); 5854 iconv(cd,NULL,NULL,NULL,NULL); 5855 iconv_close(cd); 5856 5857 ; 5858 return 0; 5859} 5860_ACEOF 5861rm -f conftest.$ac_objext 5862if { (eval echo "$as_me:5862: \"$ac_compile\"") >&5 5863 (eval $ac_compile) 2>&5 5864 ac_status=$? 5865 echo "$as_me:5865: \$? = $ac_status" >&5 5866 (exit $ac_status); } && 5867 { ac_try='test -s conftest.$ac_objext' 5868 { (eval echo "$as_me:5868: \"$ac_try\"") >&5 5869 (eval $ac_try) 2>&5 5870 ac_status=$? 5871 echo "$as_me:5871: \$? = $ac_status" >&5 5872 (exit $ac_status); }; }; then 5873 5874 test -n "$verbose" && echo " ... found iconv headers in $cf_cv_header_path_iconv" 1>&6 5875 5876echo "${as_me-configure}:5876: testing ... found iconv headers in $cf_cv_header_path_iconv ..." 1>&5 5877 5878 cf_cv_find_linkage_iconv=maybe 5879 cf_test_CPPFLAGS="$CPPFLAGS" 5880 break 5881else 5882 echo "$as_me: failed program was:" >&5 5883cat conftest.$ac_ext >&5 5884 5885 CPPFLAGS="$cf_save_CPPFLAGS" 5886 5887fi 5888rm -f conftest.$ac_objext conftest.$ac_ext 5889 fi 5890 done 5891 5892 if test "$cf_cv_find_linkage_iconv" = maybe ; then 5893 5894echo "${as_me-configure}:5894: testing Searching for iconv library in FIND_LINKAGE(iconv,) ..." 1>&5 5895 5896 cf_save_LIBS="$LIBS" 5897 cf_save_LDFLAGS="$LDFLAGS" 5898 5899 if test "$cf_cv_find_linkage_iconv" != yes ; then 5900 5901cf_search= 5902cf_library_path_list="" 5903if test -n "${LDFLAGS}${LIBS}" ; then 5904 for cf_library_path in $LDFLAGS $LIBS 5905 do 5906 case $cf_library_path in #(vi 5907 -L*) 5908 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'` 5909 5910test "$cf_library_path" != "NONE" && \ 5911test -d "$cf_library_path" && \ 5912 { 5913 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path" 5914 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib" 5915 test -d $cf_library_path/lib/iconv && cf_search="$cf_search $cf_library_path/lib/iconv" 5916 test -d $cf_library_path/lib/iconv/lib && cf_search="$cf_search $cf_library_path/lib/iconv/lib" 5917 test -d $cf_library_path/iconv/lib && cf_search="$cf_search $cf_library_path/iconv/lib" 5918 test -d $cf_library_path/iconv/lib/iconv && cf_search="$cf_search $cf_library_path/iconv/lib/iconv" 5919} 5920 5921 cf_library_path_list="$cf_library_path_list $cf_search" 5922 ;; 5923 esac 5924 done 5925fi 5926 5927cf_search= 5928 5929test "/usr" != "$prefix" && \ 5930test -d "/usr" && \ 5931(test $prefix = NONE || test -d $prefix) && { 5932 test -n "$verbose" && echo " ... testing for lib-directories under /usr" 5933 test -d /usr/lib && cf_search="$cf_search /usr/lib" 5934 test -d /usr/lib/iconv && cf_search="$cf_search /usr/lib/iconv" 5935 test -d /usr/lib/iconv/lib && cf_search="$cf_search /usr/lib/iconv/lib" 5936 test -d /usr/iconv/lib && cf_search="$cf_search /usr/iconv/lib" 5937 test -d /usr/iconv/lib/iconv && cf_search="$cf_search /usr/iconv/lib/iconv" 5938} 5939 5940test "$prefix" != "NONE" && \ 5941test -d "$prefix" && \ 5942 { 5943 test -n "$verbose" && echo " ... testing for lib-directories under $prefix" 5944 test -d $prefix/lib && cf_search="$cf_search $prefix/lib" 5945 test -d $prefix/lib/iconv && cf_search="$cf_search $prefix/lib/iconv" 5946 test -d $prefix/lib/iconv/lib && cf_search="$cf_search $prefix/lib/iconv/lib" 5947 test -d $prefix/iconv/lib && cf_search="$cf_search $prefix/iconv/lib" 5948 test -d $prefix/iconv/lib/iconv && cf_search="$cf_search $prefix/iconv/lib/iconv" 5949} 5950 5951test "/usr/local" != "$prefix" && \ 5952test -d "/usr/local" && \ 5953(test $prefix = NONE || test -d $prefix) && { 5954 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local" 5955 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib" 5956 test -d /usr/local/lib/iconv && cf_search="$cf_search /usr/local/lib/iconv" 5957 test -d /usr/local/lib/iconv/lib && cf_search="$cf_search /usr/local/lib/iconv/lib" 5958 test -d /usr/local/iconv/lib && cf_search="$cf_search /usr/local/iconv/lib" 5959 test -d /usr/local/iconv/lib/iconv && cf_search="$cf_search /usr/local/iconv/lib/iconv" 5960} 5961 5962test "/opt" != "$prefix" && \ 5963test -d "/opt" && \ 5964(test $prefix = NONE || test -d $prefix) && { 5965 test -n "$verbose" && echo " ... testing for lib-directories under /opt" 5966 test -d /opt/lib && cf_search="$cf_search /opt/lib" 5967 test -d /opt/lib/iconv && cf_search="$cf_search /opt/lib/iconv" 5968 test -d /opt/lib/iconv/lib && cf_search="$cf_search /opt/lib/iconv/lib" 5969 test -d /opt/iconv/lib && cf_search="$cf_search /opt/iconv/lib" 5970 test -d /opt/iconv/lib/iconv && cf_search="$cf_search /opt/iconv/lib/iconv" 5971} 5972 5973test "$HOME" != "$prefix" && \ 5974test -d "$HOME" && \ 5975(test $prefix = NONE || test -d $prefix) && { 5976 test -n "$verbose" && echo " ... testing for lib-directories under $HOME" 5977 test -d $HOME/lib && cf_search="$cf_search $HOME/lib" 5978 test -d $HOME/lib/iconv && cf_search="$cf_search $HOME/lib/iconv" 5979 test -d $HOME/lib/iconv/lib && cf_search="$cf_search $HOME/lib/iconv/lib" 5980 test -d $HOME/iconv/lib && cf_search="$cf_search $HOME/iconv/lib" 5981 test -d $HOME/iconv/lib/iconv && cf_search="$cf_search $HOME/iconv/lib/iconv" 5982} 5983 5984cf_search="$cf_library_path_list $cf_search" 5985 5986 for cf_cv_library_path_iconv in $cf_search 5987 do 5988 if test -d $cf_cv_library_path_iconv ; then 5989 test -n "$verbose" && echo " ... testing $cf_cv_library_path_iconv" 1>&6 5990 5991echo "${as_me-configure}:5991: testing ... testing $cf_cv_library_path_iconv ..." 1>&5 5992 5993 CPPFLAGS="$cf_test_CPPFLAGS" 5994 LIBS="-liconv $cf_save_LIBS" 5995 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_iconv" 5996 cat >conftest.$ac_ext <<_ACEOF 5997#line 5997 "configure" 5998#include "confdefs.h" 5999 6000#include <stdlib.h> 6001#include <iconv.h> 6002 6003int 6004main () 6005{ 6006 6007 iconv_t cd = iconv_open("",""); 6008 iconv(cd,NULL,NULL,NULL,NULL); 6009 iconv_close(cd); 6010 6011 ; 6012 return 0; 6013} 6014_ACEOF 6015rm -f conftest.$ac_objext conftest$ac_exeext 6016if { (eval echo "$as_me:6016: \"$ac_link\"") >&5 6017 (eval $ac_link) 2>&5 6018 ac_status=$? 6019 echo "$as_me:6019: \$? = $ac_status" >&5 6020 (exit $ac_status); } && 6021 { ac_try='test -s conftest$ac_exeext' 6022 { (eval echo "$as_me:6022: \"$ac_try\"") >&5 6023 (eval $ac_try) 2>&5 6024 ac_status=$? 6025 echo "$as_me:6025: \$? = $ac_status" >&5 6026 (exit $ac_status); }; }; then 6027 6028 test -n "$verbose" && echo " ... found iconv library in $cf_cv_library_path_iconv" 1>&6 6029 6030echo "${as_me-configure}:6030: testing ... found iconv library in $cf_cv_library_path_iconv ..." 1>&5 6031 6032 cf_cv_find_linkage_iconv=yes 6033 cf_cv_library_file_iconv="-liconv" 6034 break 6035else 6036 echo "$as_me: failed program was:" >&5 6037cat conftest.$ac_ext >&5 6038 6039 CPPFLAGS="$cf_save_CPPFLAGS" 6040 LIBS="$cf_save_LIBS" 6041 LDFLAGS="$cf_save_LDFLAGS" 6042 6043fi 6044rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6045 fi 6046 done 6047 LIBS="$cf_save_LIBS" 6048 CPPFLAGS="$cf_save_CPPFLAGS" 6049 LDFLAGS="$cf_save_LDFLAGS" 6050 fi 6051 6052 else 6053 cf_cv_find_linkage_iconv=no 6054 fi 6055 6056fi 6057rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6058 6059fi 6060rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6061 6062if test "$cf_cv_find_linkage_iconv" = yes ; then 6063am_cv_func_iconv=yes 6064else 6065am_cv_func_iconv="no, consider installing GNU libiconv" 6066fi 6067 6068fi 6069echo "$as_me:6069: result: $am_cv_func_iconv" >&5 6070echo "${ECHO_T}$am_cv_func_iconv" >&6 6071 6072 if test "$am_cv_func_iconv" = yes; then 6073 6074cat >>confdefs.h <<\EOF 6075#define HAVE_ICONV 1 6076EOF 6077 6078 echo "$as_me:6078: checking if the declaration of iconv() needs const." >&5 6079echo $ECHO_N "checking if the declaration of iconv() needs const.... $ECHO_C" >&6 6080if test "${am_cv_proto_iconv_const+set}" = set; then 6081 echo $ECHO_N "(cached) $ECHO_C" >&6 6082else 6083 6084 cat >conftest.$ac_ext <<_ACEOF 6085#line 6085 "configure" 6086#include "confdefs.h" 6087 6088#include <stdlib.h> 6089#include <iconv.h> 6090 6091extern 6092#ifdef __cplusplus 6093"C" 6094#endif 6095#if defined(__STDC__) || defined(__cplusplus) 6096size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 6097#else 6098size_t iconv(); 6099#endif 6100 6101int 6102main () 6103{ 6104 6105 ; 6106 return 0; 6107} 6108_ACEOF 6109rm -f conftest.$ac_objext 6110if { (eval echo "$as_me:6110: \"$ac_compile\"") >&5 6111 (eval $ac_compile) 2>&5 6112 ac_status=$? 6113 echo "$as_me:6113: \$? = $ac_status" >&5 6114 (exit $ac_status); } && 6115 { ac_try='test -s conftest.$ac_objext' 6116 { (eval echo "$as_me:6116: \"$ac_try\"") >&5 6117 (eval $ac_try) 2>&5 6118 ac_status=$? 6119 echo "$as_me:6119: \$? = $ac_status" >&5 6120 (exit $ac_status); }; }; then 6121 am_cv_proto_iconv_const=no 6122else 6123 echo "$as_me: failed program was:" >&5 6124cat conftest.$ac_ext >&5 6125am_cv_proto_iconv_const=yes 6126fi 6127rm -f conftest.$ac_objext conftest.$ac_ext 6128fi 6129echo "$as_me:6129: result: $am_cv_proto_iconv_const" >&5 6130echo "${ECHO_T}$am_cv_proto_iconv_const" >&6 6131 6132 if test "$am_cv_proto_iconv_const" = yes ; then 6133 am_cv_proto_iconv_arg1="const" 6134 else 6135 am_cv_proto_iconv_arg1="" 6136 fi 6137 6138cat >>confdefs.h <<EOF 6139#define ICONV_CONST $am_cv_proto_iconv_arg1 6140EOF 6141 6142 fi 6143 6144 LIBICONV= 6145 if test "$cf_cv_find_linkage_iconv" = yes; then 6146 6147if test -n "$cf_cv_header_path_iconv" ; then 6148 for cf_add_incdir in $cf_cv_header_path_iconv 6149 do 6150 while test $cf_add_incdir != /usr/include 6151 do 6152 if test -d $cf_add_incdir 6153 then 6154 cf_have_incdir=no 6155 if test -n "$CFLAGS$CPPFLAGS" ; then 6156 # a loop is needed to ensure we can add subdirs of existing dirs 6157 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 6158 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 6159 cf_have_incdir=yes; break 6160 fi 6161 done 6162 fi 6163 6164 if test "$cf_have_incdir" = no ; then 6165 if test "$cf_add_incdir" = /usr/local/include ; then 6166 if test "$GCC" = yes 6167 then 6168 cf_save_CPPFLAGS=$CPPFLAGS 6169 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 6170 cat >conftest.$ac_ext <<_ACEOF 6171#line 6171 "configure" 6172#include "confdefs.h" 6173#include <stdio.h> 6174int 6175main () 6176{ 6177printf("Hello") 6178 ; 6179 return 0; 6180} 6181_ACEOF 6182rm -f conftest.$ac_objext 6183if { (eval echo "$as_me:6183: \"$ac_compile\"") >&5 6184 (eval $ac_compile) 2>&5 6185 ac_status=$? 6186 echo "$as_me:6186: \$? = $ac_status" >&5 6187 (exit $ac_status); } && 6188 { ac_try='test -s conftest.$ac_objext' 6189 { (eval echo "$as_me:6189: \"$ac_try\"") >&5 6190 (eval $ac_try) 2>&5 6191 ac_status=$? 6192 echo "$as_me:6192: \$? = $ac_status" >&5 6193 (exit $ac_status); }; }; then 6194 : 6195else 6196 echo "$as_me: failed program was:" >&5 6197cat conftest.$ac_ext >&5 6198cf_have_incdir=yes 6199fi 6200rm -f conftest.$ac_objext conftest.$ac_ext 6201 CPPFLAGS=$cf_save_CPPFLAGS 6202 fi 6203 fi 6204 fi 6205 6206 if test "$cf_have_incdir" = no ; then 6207 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 6208 6209echo "${as_me-configure}:6209: testing adding $cf_add_incdir to include-path ..." 1>&5 6210 6211 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 6212 6213 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 6214 test "$cf_top_incdir" = "$cf_add_incdir" && break 6215 cf_add_incdir="$cf_top_incdir" 6216 else 6217 break 6218 fi 6219 fi 6220 done 6221 done 6222fi 6223 6224 if test -n "$cf_cv_library_file_iconv" ; then 6225 LIBICONV="-liconv" 6226 6227if test -n "$cf_cv_library_path_iconv" ; then 6228 for cf_add_libdir in $cf_cv_library_path_iconv 6229 do 6230 if test $cf_add_libdir = /usr/lib ; then 6231 : 6232 elif test -d $cf_add_libdir 6233 then 6234 cf_have_libdir=no 6235 if test -n "$LDFLAGS$LIBS" ; then 6236 # a loop is needed to ensure we can add subdirs of existing dirs 6237 for cf_test_libdir in $LDFLAGS $LIBS ; do 6238 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 6239 cf_have_libdir=yes; break 6240 fi 6241 done 6242 fi 6243 if test "$cf_have_libdir" = no ; then 6244 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 6245 6246echo "${as_me-configure}:6246: testing adding $cf_add_libdir to library-path ..." 1>&5 6247 6248 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 6249 fi 6250 fi 6251 done 6252fi 6253 6254 fi 6255 fi 6256 6257 echo "$as_me:6257: checking for nl_langinfo and CODESET" >&5 6258echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 6259if test "${am_cv_langinfo_codeset+set}" = set; then 6260 echo $ECHO_N "(cached) $ECHO_C" >&6 6261else 6262 cat >conftest.$ac_ext <<_ACEOF 6263#line 6263 "configure" 6264#include "confdefs.h" 6265#include <langinfo.h> 6266int 6267main () 6268{ 6269char* cs = nl_langinfo(CODESET); 6270 ; 6271 return 0; 6272} 6273_ACEOF 6274rm -f conftest.$ac_objext conftest$ac_exeext 6275if { (eval echo "$as_me:6275: \"$ac_link\"") >&5 6276 (eval $ac_link) 2>&5 6277 ac_status=$? 6278 echo "$as_me:6278: \$? = $ac_status" >&5 6279 (exit $ac_status); } && 6280 { ac_try='test -s conftest$ac_exeext' 6281 { (eval echo "$as_me:6281: \"$ac_try\"") >&5 6282 (eval $ac_try) 2>&5 6283 ac_status=$? 6284 echo "$as_me:6284: \$? = $ac_status" >&5 6285 (exit $ac_status); }; }; then 6286 am_cv_langinfo_codeset=yes 6287else 6288 echo "$as_me: failed program was:" >&5 6289cat conftest.$ac_ext >&5 6290am_cv_langinfo_codeset=no 6291fi 6292rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6293 6294fi 6295echo "$as_me:6295: result: $am_cv_langinfo_codeset" >&5 6296echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 6297 if test $am_cv_langinfo_codeset = yes; then 6298 6299cat >>confdefs.h <<\EOF 6300#define HAVE_LANGINFO_CODESET 1 6301EOF 6302 6303 fi 6304 6305 if test $ac_cv_header_locale_h = yes; then 6306 echo "$as_me:6306: checking for LC_MESSAGES" >&5 6307echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 6308if test "${am_cv_val_LC_MESSAGES+set}" = set; then 6309 echo $ECHO_N "(cached) $ECHO_C" >&6 6310else 6311 cat >conftest.$ac_ext <<_ACEOF 6312#line 6312 "configure" 6313#include "confdefs.h" 6314#include <locale.h> 6315int 6316main () 6317{ 6318return LC_MESSAGES 6319 ; 6320 return 0; 6321} 6322_ACEOF 6323rm -f conftest.$ac_objext conftest$ac_exeext 6324if { (eval echo "$as_me:6324: \"$ac_link\"") >&5 6325 (eval $ac_link) 2>&5 6326 ac_status=$? 6327 echo "$as_me:6327: \$? = $ac_status" >&5 6328 (exit $ac_status); } && 6329 { ac_try='test -s conftest$ac_exeext' 6330 { (eval echo "$as_me:6330: \"$ac_try\"") >&5 6331 (eval $ac_try) 2>&5 6332 ac_status=$? 6333 echo "$as_me:6333: \$? = $ac_status" >&5 6334 (exit $ac_status); }; }; then 6335 am_cv_val_LC_MESSAGES=yes 6336else 6337 echo "$as_me: failed program was:" >&5 6338cat conftest.$ac_ext >&5 6339am_cv_val_LC_MESSAGES=no 6340fi 6341rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6342fi 6343echo "$as_me:6343: result: $am_cv_val_LC_MESSAGES" >&5 6344echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 6345 if test $am_cv_val_LC_MESSAGES = yes; then 6346 6347cat >>confdefs.h <<\EOF 6348#define HAVE_LC_MESSAGES 1 6349EOF 6350 6351 fi 6352 fi 6353 echo "$as_me:6353: checking whether NLS is requested" >&5 6354echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 6355 6356# Check whether --enable-nls or --disable-nls was given. 6357if test "${enable_nls+set}" = set; then 6358 enableval="$enable_nls" 6359 USE_NLS=$enableval 6360else 6361 USE_NLS=no 6362fi; 6363 echo "$as_me:6363: result: $USE_NLS" >&5 6364echo "${ECHO_T}$USE_NLS" >&6 6365 6366 BUILD_INCLUDED_LIBINTL=no 6367 USE_INCLUDED_LIBINTL=no 6368 INTLLIBS= 6369 6370 if test "$USE_NLS" = "yes"; then 6371 6372cat >>confdefs.h <<\EOF 6373#define ENABLE_NLS 1 6374EOF 6375 6376 echo "$as_me:6376: checking whether included gettext is requested" >&5 6377echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 6378 6379# Check whether --with-included-gettext or --without-included-gettext was given. 6380if test "${with_included_gettext+set}" = set; then 6381 withval="$with_included_gettext" 6382 nls_cv_force_use_gnu_gettext=$withval 6383else 6384 nls_cv_force_use_gnu_gettext=no 6385fi; 6386 echo "$as_me:6386: result: $nls_cv_force_use_gnu_gettext" >&5 6387echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 6388 6389 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 6390 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 6391 CATOBJEXT=NONE 6392 6393 cf_save_LIBS_1="$LIBS" 6394 LIBS="$LIBICONV $LIBS" 6395 echo "$as_me:6395: checking for libintl.h and gettext()" >&5 6396echo $ECHO_N "checking for libintl.h and gettext()... $ECHO_C" >&6 6397if test "${cf_cv_func_gettext+set}" = set; then 6398 echo $ECHO_N "(cached) $ECHO_C" >&6 6399else 6400 6401# If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these 6402# will be set on completion of the AC_TRY_LINK below. 6403cf_cv_header_path_intl= 6404cf_cv_library_path_intl= 6405 6406echo "${as_me-configure}:6406: testing Starting FIND_LINKAGE(intl,) ..." 1>&5 6407 6408cat >conftest.$ac_ext <<_ACEOF 6409#line 6409 "configure" 6410#include "confdefs.h" 6411 6412#include <libintl.h> 6413extern int _nl_msg_cat_cntr; 6414 6415int 6416main () 6417{ 6418 6419 bindtextdomain ("", ""); 6420 return (int) gettext ("") 6421 6422 + _nl_msg_cat_cntr 6423 6424 ; 6425 return 0; 6426} 6427_ACEOF 6428rm -f conftest.$ac_objext conftest$ac_exeext 6429if { (eval echo "$as_me:6429: \"$ac_link\"") >&5 6430 (eval $ac_link) 2>&5 6431 ac_status=$? 6432 echo "$as_me:6432: \$? = $ac_status" >&5 6433 (exit $ac_status); } && 6434 { ac_try='test -s conftest$ac_exeext' 6435 { (eval echo "$as_me:6435: \"$ac_try\"") >&5 6436 (eval $ac_try) 2>&5 6437 ac_status=$? 6438 echo "$as_me:6438: \$? = $ac_status" >&5 6439 (exit $ac_status); }; }; then 6440 6441 cf_cv_find_linkage_intl=yes 6442 6443else 6444 echo "$as_me: failed program was:" >&5 6445cat conftest.$ac_ext >&5 6446 6447cf_save_LIBS="$LIBS" 6448LIBS="-lintl $cf_save_LIBS" 6449 6450cat >conftest.$ac_ext <<_ACEOF 6451#line 6451 "configure" 6452#include "confdefs.h" 6453 6454#include <libintl.h> 6455extern int _nl_msg_cat_cntr; 6456 6457int 6458main () 6459{ 6460 6461 bindtextdomain ("", ""); 6462 return (int) gettext ("") 6463 6464 + _nl_msg_cat_cntr 6465 6466 ; 6467 return 0; 6468} 6469_ACEOF 6470rm -f conftest.$ac_objext conftest$ac_exeext 6471if { (eval echo "$as_me:6471: \"$ac_link\"") >&5 6472 (eval $ac_link) 2>&5 6473 ac_status=$? 6474 echo "$as_me:6474: \$? = $ac_status" >&5 6475 (exit $ac_status); } && 6476 { ac_try='test -s conftest$ac_exeext' 6477 { (eval echo "$as_me:6477: \"$ac_try\"") >&5 6478 (eval $ac_try) 2>&5 6479 ac_status=$? 6480 echo "$as_me:6480: \$? = $ac_status" >&5 6481 (exit $ac_status); }; }; then 6482 6483 cf_cv_find_linkage_intl=yes 6484 cf_cv_library_file_intl="-lintl" 6485 6486else 6487 echo "$as_me: failed program was:" >&5 6488cat conftest.$ac_ext >&5 6489 6490 cf_cv_find_linkage_intl=no 6491 LIBS="$cf_save_LIBS" 6492 6493 test -n "$verbose" && echo " find linkage for intl library" 1>&6 6494 6495echo "${as_me-configure}:6495: testing find linkage for intl library ..." 1>&5 6496 6497echo "${as_me-configure}:6497: testing Searching for headers in FIND_LINKAGE(intl,) ..." 1>&5 6498 6499 cf_save_CPPFLAGS="$CPPFLAGS" 6500 cf_test_CPPFLAGS="$CPPFLAGS" 6501 6502cf_search= 6503 6504# collect the current set of include-directories from compiler flags 6505cf_header_path_list="" 6506if test -n "${CFLAGS}${CPPFLAGS}" ; then 6507 for cf_header_path in $CPPFLAGS $CFLAGS 6508 do 6509 case $cf_header_path in #(vi 6510 -I*) 6511 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'` 6512 cf_header_path_list="$cf_header_path_list $cf_header_path" 6513 ;; 6514 esac 6515 done 6516fi 6517 6518# add the variations for the package we are looking for 6519 6520cf_search= 6521 6522test "/usr" != "$prefix" && \ 6523test -d "/usr" && \ 6524(test $prefix = NONE || test -d $prefix) && { 6525 test -n "$verbose" && echo " ... testing for include-directories under /usr" 6526 test -d /usr/include && cf_search="$cf_search /usr/include" 6527 test -d /usr/include/intl && cf_search="$cf_search /usr/include/intl" 6528 test -d /usr/include/intl/include && cf_search="$cf_search /usr/include/intl/include" 6529 test -d /usr/intl/include && cf_search="$cf_search /usr/intl/include" 6530 test -d /usr/intl/include/intl && cf_search="$cf_search /usr/intl/include/intl" 6531} 6532 6533test "$prefix" != "NONE" && \ 6534test -d "$prefix" && \ 6535 { 6536 test -n "$verbose" && echo " ... testing for include-directories under $prefix" 6537 test -d $prefix/include && cf_search="$cf_search $prefix/include" 6538 test -d $prefix/include/intl && cf_search="$cf_search $prefix/include/intl" 6539 test -d $prefix/include/intl/include && cf_search="$cf_search $prefix/include/intl/include" 6540 test -d $prefix/intl/include && cf_search="$cf_search $prefix/intl/include" 6541 test -d $prefix/intl/include/intl && cf_search="$cf_search $prefix/intl/include/intl" 6542} 6543 6544test "/usr/local" != "$prefix" && \ 6545test -d "/usr/local" && \ 6546(test $prefix = NONE || test -d $prefix) && { 6547 test -n "$verbose" && echo " ... testing for include-directories under /usr/local" 6548 test -d /usr/local/include && cf_search="$cf_search /usr/local/include" 6549 test -d /usr/local/include/intl && cf_search="$cf_search /usr/local/include/intl" 6550 test -d /usr/local/include/intl/include && cf_search="$cf_search /usr/local/include/intl/include" 6551 test -d /usr/local/intl/include && cf_search="$cf_search /usr/local/intl/include" 6552 test -d /usr/local/intl/include/intl && cf_search="$cf_search /usr/local/intl/include/intl" 6553} 6554 6555test "/opt" != "$prefix" && \ 6556test -d "/opt" && \ 6557(test $prefix = NONE || test -d $prefix) && { 6558 test -n "$verbose" && echo " ... testing for include-directories under /opt" 6559 test -d /opt/include && cf_search="$cf_search /opt/include" 6560 test -d /opt/include/intl && cf_search="$cf_search /opt/include/intl" 6561 test -d /opt/include/intl/include && cf_search="$cf_search /opt/include/intl/include" 6562 test -d /opt/intl/include && cf_search="$cf_search /opt/intl/include" 6563 test -d /opt/intl/include/intl && cf_search="$cf_search /opt/intl/include/intl" 6564} 6565 6566test "$HOME" != "$prefix" && \ 6567test -d "$HOME" && \ 6568(test $prefix = NONE || test -d $prefix) && { 6569 test -n "$verbose" && echo " ... testing for include-directories under $HOME" 6570 test -d $HOME/include && cf_search="$cf_search $HOME/include" 6571 test -d $HOME/include/intl && cf_search="$cf_search $HOME/include/intl" 6572 test -d $HOME/include/intl/include && cf_search="$cf_search $HOME/include/intl/include" 6573 test -d $HOME/intl/include && cf_search="$cf_search $HOME/intl/include" 6574 test -d $HOME/intl/include/intl && cf_search="$cf_search $HOME/intl/include/intl" 6575} 6576 6577test "$includedir" != NONE && \ 6578test "$includedir" != "/usr/include" && \ 6579test -d "$includedir" && { 6580 test -d $includedir && cf_search="$cf_search $includedir" 6581 test -d $includedir/intl && cf_search="$cf_search $includedir/intl" 6582} 6583 6584test "$oldincludedir" != NONE && \ 6585test "$oldincludedir" != "/usr/include" && \ 6586test -d "$oldincludedir" && { 6587 test -d $oldincludedir && cf_search="$cf_search $oldincludedir" 6588 test -d $oldincludedir/intl && cf_search="$cf_search $oldincludedir/intl" 6589} 6590 6591cf_search="$cf_search $cf_header_path_list" 6592 6593 for cf_cv_header_path_intl in $cf_search 6594 do 6595 if test -d $cf_cv_header_path_intl ; then 6596 test -n "$verbose" && echo " ... testing $cf_cv_header_path_intl" 1>&6 6597 6598echo "${as_me-configure}:6598: testing ... testing $cf_cv_header_path_intl ..." 1>&5 6599 6600 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_intl" 6601 cat >conftest.$ac_ext <<_ACEOF 6602#line 6602 "configure" 6603#include "confdefs.h" 6604 6605#include <libintl.h> 6606extern int _nl_msg_cat_cntr; 6607 6608int 6609main () 6610{ 6611 6612 bindtextdomain ("", ""); 6613 return (int) gettext ("") 6614 6615 + _nl_msg_cat_cntr 6616 6617 ; 6618 return 0; 6619} 6620_ACEOF 6621rm -f conftest.$ac_objext 6622if { (eval echo "$as_me:6622: \"$ac_compile\"") >&5 6623 (eval $ac_compile) 2>&5 6624 ac_status=$? 6625 echo "$as_me:6625: \$? = $ac_status" >&5 6626 (exit $ac_status); } && 6627 { ac_try='test -s conftest.$ac_objext' 6628 { (eval echo "$as_me:6628: \"$ac_try\"") >&5 6629 (eval $ac_try) 2>&5 6630 ac_status=$? 6631 echo "$as_me:6631: \$? = $ac_status" >&5 6632 (exit $ac_status); }; }; then 6633 6634 test -n "$verbose" && echo " ... found intl headers in $cf_cv_header_path_intl" 1>&6 6635 6636echo "${as_me-configure}:6636: testing ... found intl headers in $cf_cv_header_path_intl ..." 1>&5 6637 6638 cf_cv_find_linkage_intl=maybe 6639 cf_test_CPPFLAGS="$CPPFLAGS" 6640 break 6641else 6642 echo "$as_me: failed program was:" >&5 6643cat conftest.$ac_ext >&5 6644 6645 CPPFLAGS="$cf_save_CPPFLAGS" 6646 6647fi 6648rm -f conftest.$ac_objext conftest.$ac_ext 6649 fi 6650 done 6651 6652 if test "$cf_cv_find_linkage_intl" = maybe ; then 6653 6654echo "${as_me-configure}:6654: testing Searching for intl library in FIND_LINKAGE(intl,) ..." 1>&5 6655 6656 cf_save_LIBS="$LIBS" 6657 cf_save_LDFLAGS="$LDFLAGS" 6658 6659 if test "$cf_cv_find_linkage_intl" != yes ; then 6660 6661cf_search= 6662cf_library_path_list="" 6663if test -n "${LDFLAGS}${LIBS}" ; then 6664 for cf_library_path in $LDFLAGS $LIBS 6665 do 6666 case $cf_library_path in #(vi 6667 -L*) 6668 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'` 6669 6670test "$cf_library_path" != "NONE" && \ 6671test -d "$cf_library_path" && \ 6672 { 6673 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path" 6674 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib" 6675 test -d $cf_library_path/lib/intl && cf_search="$cf_search $cf_library_path/lib/intl" 6676 test -d $cf_library_path/lib/intl/lib && cf_search="$cf_search $cf_library_path/lib/intl/lib" 6677 test -d $cf_library_path/intl/lib && cf_search="$cf_search $cf_library_path/intl/lib" 6678 test -d $cf_library_path/intl/lib/intl && cf_search="$cf_search $cf_library_path/intl/lib/intl" 6679} 6680 6681 cf_library_path_list="$cf_library_path_list $cf_search" 6682 ;; 6683 esac 6684 done 6685fi 6686 6687cf_search= 6688 6689test "/usr" != "$prefix" && \ 6690test -d "/usr" && \ 6691(test $prefix = NONE || test -d $prefix) && { 6692 test -n "$verbose" && echo " ... testing for lib-directories under /usr" 6693 test -d /usr/lib && cf_search="$cf_search /usr/lib" 6694 test -d /usr/lib/intl && cf_search="$cf_search /usr/lib/intl" 6695 test -d /usr/lib/intl/lib && cf_search="$cf_search /usr/lib/intl/lib" 6696 test -d /usr/intl/lib && cf_search="$cf_search /usr/intl/lib" 6697 test -d /usr/intl/lib/intl && cf_search="$cf_search /usr/intl/lib/intl" 6698} 6699 6700test "$prefix" != "NONE" && \ 6701test -d "$prefix" && \ 6702 { 6703 test -n "$verbose" && echo " ... testing for lib-directories under $prefix" 6704 test -d $prefix/lib && cf_search="$cf_search $prefix/lib" 6705 test -d $prefix/lib/intl && cf_search="$cf_search $prefix/lib/intl" 6706 test -d $prefix/lib/intl/lib && cf_search="$cf_search $prefix/lib/intl/lib" 6707 test -d $prefix/intl/lib && cf_search="$cf_search $prefix/intl/lib" 6708 test -d $prefix/intl/lib/intl && cf_search="$cf_search $prefix/intl/lib/intl" 6709} 6710 6711test "/usr/local" != "$prefix" && \ 6712test -d "/usr/local" && \ 6713(test $prefix = NONE || test -d $prefix) && { 6714 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local" 6715 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib" 6716 test -d /usr/local/lib/intl && cf_search="$cf_search /usr/local/lib/intl" 6717 test -d /usr/local/lib/intl/lib && cf_search="$cf_search /usr/local/lib/intl/lib" 6718 test -d /usr/local/intl/lib && cf_search="$cf_search /usr/local/intl/lib" 6719 test -d /usr/local/intl/lib/intl && cf_search="$cf_search /usr/local/intl/lib/intl" 6720} 6721 6722test "/opt" != "$prefix" && \ 6723test -d "/opt" && \ 6724(test $prefix = NONE || test -d $prefix) && { 6725 test -n "$verbose" && echo " ... testing for lib-directories under /opt" 6726 test -d /opt/lib && cf_search="$cf_search /opt/lib" 6727 test -d /opt/lib/intl && cf_search="$cf_search /opt/lib/intl" 6728 test -d /opt/lib/intl/lib && cf_search="$cf_search /opt/lib/intl/lib" 6729 test -d /opt/intl/lib && cf_search="$cf_search /opt/intl/lib" 6730 test -d /opt/intl/lib/intl && cf_search="$cf_search /opt/intl/lib/intl" 6731} 6732 6733test "$HOME" != "$prefix" && \ 6734test -d "$HOME" && \ 6735(test $prefix = NONE || test -d $prefix) && { 6736 test -n "$verbose" && echo " ... testing for lib-directories under $HOME" 6737 test -d $HOME/lib && cf_search="$cf_search $HOME/lib" 6738 test -d $HOME/lib/intl && cf_search="$cf_search $HOME/lib/intl" 6739 test -d $HOME/lib/intl/lib && cf_search="$cf_search $HOME/lib/intl/lib" 6740 test -d $HOME/intl/lib && cf_search="$cf_search $HOME/intl/lib" 6741 test -d $HOME/intl/lib/intl && cf_search="$cf_search $HOME/intl/lib/intl" 6742} 6743 6744cf_search="$cf_library_path_list $cf_search" 6745 6746 for cf_cv_library_path_intl in $cf_search 6747 do 6748 if test -d $cf_cv_library_path_intl ; then 6749 test -n "$verbose" && echo " ... testing $cf_cv_library_path_intl" 1>&6 6750 6751echo "${as_me-configure}:6751: testing ... testing $cf_cv_library_path_intl ..." 1>&5 6752 6753 CPPFLAGS="$cf_test_CPPFLAGS" 6754 LIBS="-lintl $cf_save_LIBS" 6755 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_intl" 6756 cat >conftest.$ac_ext <<_ACEOF 6757#line 6757 "configure" 6758#include "confdefs.h" 6759 6760#include <libintl.h> 6761extern int _nl_msg_cat_cntr; 6762 6763int 6764main () 6765{ 6766 6767 bindtextdomain ("", ""); 6768 return (int) gettext ("") 6769 6770 + _nl_msg_cat_cntr 6771 6772 ; 6773 return 0; 6774} 6775_ACEOF 6776rm -f conftest.$ac_objext conftest$ac_exeext 6777if { (eval echo "$as_me:6777: \"$ac_link\"") >&5 6778 (eval $ac_link) 2>&5 6779 ac_status=$? 6780 echo "$as_me:6780: \$? = $ac_status" >&5 6781 (exit $ac_status); } && 6782 { ac_try='test -s conftest$ac_exeext' 6783 { (eval echo "$as_me:6783: \"$ac_try\"") >&5 6784 (eval $ac_try) 2>&5 6785 ac_status=$? 6786 echo "$as_me:6786: \$? = $ac_status" >&5 6787 (exit $ac_status); }; }; then 6788 6789 test -n "$verbose" && echo " ... found intl library in $cf_cv_library_path_intl" 1>&6 6790 6791echo "${as_me-configure}:6791: testing ... found intl library in $cf_cv_library_path_intl ..." 1>&5 6792 6793 cf_cv_find_linkage_intl=yes 6794 cf_cv_library_file_intl="-lintl" 6795 break 6796else 6797 echo "$as_me: failed program was:" >&5 6798cat conftest.$ac_ext >&5 6799 6800 CPPFLAGS="$cf_save_CPPFLAGS" 6801 LIBS="$cf_save_LIBS" 6802 LDFLAGS="$cf_save_LDFLAGS" 6803 6804fi 6805rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6806 fi 6807 done 6808 LIBS="$cf_save_LIBS" 6809 CPPFLAGS="$cf_save_CPPFLAGS" 6810 LDFLAGS="$cf_save_LDFLAGS" 6811 fi 6812 6813 else 6814 cf_cv_find_linkage_intl=no 6815 fi 6816 6817fi 6818rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6819 6820fi 6821rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6822 6823if test "$cf_cv_find_linkage_intl" = yes ; then 6824cf_cv_func_gettext=yes 6825else 6826cf_cv_func_gettext=no 6827fi 6828 6829fi 6830echo "$as_me:6830: result: $cf_cv_func_gettext" >&5 6831echo "${ECHO_T}$cf_cv_func_gettext" >&6 6832 LIBS="$cf_save_LIBS_1" 6833 6834 if test "$cf_cv_func_gettext" = yes ; then 6835 cat >>confdefs.h <<\EOF 6836#define HAVE_LIBINTL_H 1 6837EOF 6838 6839 if test "$PACKAGE" != gettext; then 6840 6841cat >>confdefs.h <<\EOF 6842#define HAVE_GETTEXT 1 6843EOF 6844 6845if test -n "$cf_cv_header_path_intl" ; then 6846 for cf_add_incdir in $cf_cv_header_path_intl 6847 do 6848 while test $cf_add_incdir != /usr/include 6849 do 6850 if test -d $cf_add_incdir 6851 then 6852 cf_have_incdir=no 6853 if test -n "$CFLAGS$CPPFLAGS" ; then 6854 # a loop is needed to ensure we can add subdirs of existing dirs 6855 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 6856 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 6857 cf_have_incdir=yes; break 6858 fi 6859 done 6860 fi 6861 6862 if test "$cf_have_incdir" = no ; then 6863 if test "$cf_add_incdir" = /usr/local/include ; then 6864 if test "$GCC" = yes 6865 then 6866 cf_save_CPPFLAGS=$CPPFLAGS 6867 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 6868 cat >conftest.$ac_ext <<_ACEOF 6869#line 6869 "configure" 6870#include "confdefs.h" 6871#include <stdio.h> 6872int 6873main () 6874{ 6875printf("Hello") 6876 ; 6877 return 0; 6878} 6879_ACEOF 6880rm -f conftest.$ac_objext 6881if { (eval echo "$as_me:6881: \"$ac_compile\"") >&5 6882 (eval $ac_compile) 2>&5 6883 ac_status=$? 6884 echo "$as_me:6884: \$? = $ac_status" >&5 6885 (exit $ac_status); } && 6886 { ac_try='test -s conftest.$ac_objext' 6887 { (eval echo "$as_me:6887: \"$ac_try\"") >&5 6888 (eval $ac_try) 2>&5 6889 ac_status=$? 6890 echo "$as_me:6890: \$? = $ac_status" >&5 6891 (exit $ac_status); }; }; then 6892 : 6893else 6894 echo "$as_me: failed program was:" >&5 6895cat conftest.$ac_ext >&5 6896cf_have_incdir=yes 6897fi 6898rm -f conftest.$ac_objext conftest.$ac_ext 6899 CPPFLAGS=$cf_save_CPPFLAGS 6900 fi 6901 fi 6902 fi 6903 6904 if test "$cf_have_incdir" = no ; then 6905 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 6906 6907echo "${as_me-configure}:6907: testing adding $cf_add_incdir to include-path ..." 1>&5 6908 6909 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 6910 6911 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 6912 test "$cf_top_incdir" = "$cf_add_incdir" && break 6913 cf_add_incdir="$cf_top_incdir" 6914 else 6915 break 6916 fi 6917 fi 6918 done 6919 done 6920fi 6921 6922 if test -n "$cf_cv_library_file_intl" ; then 6923 INTLLIBS="$cf_cv_library_file_intl $LIBICONV" 6924 6925if test -n "$cf_cv_library_path_intl" ; then 6926 for cf_add_libdir in $cf_cv_library_path_intl 6927 do 6928 if test $cf_add_libdir = /usr/lib ; then 6929 : 6930 elif test -d $cf_add_libdir 6931 then 6932 cf_have_libdir=no 6933 if test -n "$LDFLAGS$LIBS" ; then 6934 # a loop is needed to ensure we can add subdirs of existing dirs 6935 for cf_test_libdir in $LDFLAGS $LIBS ; do 6936 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 6937 cf_have_libdir=yes; break 6938 fi 6939 done 6940 fi 6941 if test "$cf_have_libdir" = no ; then 6942 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 6943 6944echo "${as_me-configure}:6944: testing adding $cf_add_libdir to library-path ..." 1>&5 6945 6946 INTLLIBS="-L$cf_add_libdir $INTLLIBS" 6947 fi 6948 fi 6949 done 6950fi 6951 6952 fi 6953 6954 gt_save_LIBS="$LIBS" 6955 LIBS="$LIBS $INTLLIBS" 6956 6957for ac_func in dcgettext 6958do 6959as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6960echo "$as_me:6960: checking for $ac_func" >&5 6961echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6962if eval "test \"\${$as_ac_var+set}\" = set"; then 6963 echo $ECHO_N "(cached) $ECHO_C" >&6 6964else 6965 cat >conftest.$ac_ext <<_ACEOF 6966#line 6966 "configure" 6967#include "confdefs.h" 6968/* System header to define __stub macros and hopefully few prototypes, 6969 which can conflict with char $ac_func (); below. */ 6970#include <assert.h> 6971/* Override any gcc2 internal prototype to avoid an error. */ 6972#ifdef __cplusplus 6973extern "C" 6974#endif 6975/* We use char because int might match the return type of a gcc2 6976 builtin and then its argument prototype would still apply. */ 6977char $ac_func (); 6978char (*f) (); 6979 6980int 6981main () 6982{ 6983/* The GNU C library defines this for functions which it implements 6984 to always fail with ENOSYS. Some functions are actually named 6985 something starting with __ and the normal name is an alias. */ 6986#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6987choke me 6988#else 6989f = $ac_func; 6990#endif 6991 6992 ; 6993 return 0; 6994} 6995_ACEOF 6996rm -f conftest.$ac_objext conftest$ac_exeext 6997if { (eval echo "$as_me:6997: \"$ac_link\"") >&5 6998 (eval $ac_link) 2>&5 6999 ac_status=$? 7000 echo "$as_me:7000: \$? = $ac_status" >&5 7001 (exit $ac_status); } && 7002 { ac_try='test -s conftest$ac_exeext' 7003 { (eval echo "$as_me:7003: \"$ac_try\"") >&5 7004 (eval $ac_try) 2>&5 7005 ac_status=$? 7006 echo "$as_me:7006: \$? = $ac_status" >&5 7007 (exit $ac_status); }; }; then 7008 eval "$as_ac_var=yes" 7009else 7010 echo "$as_me: failed program was:" >&5 7011cat conftest.$ac_ext >&5 7012eval "$as_ac_var=no" 7013fi 7014rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7015fi 7016echo "$as_me:7016: result: `eval echo '${'$as_ac_var'}'`" >&5 7017echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7018if test `eval echo '${'$as_ac_var'}'` = yes; then 7019 cat >>confdefs.h <<EOF 7020#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7021EOF 7022 7023fi 7024done 7025 7026 LIBS="$gt_save_LIBS" 7027 7028 # Extract the first word of "msgfmt", so it can be a program name with args. 7029 7030set dummy msgfmt; ac_word=$2 7031echo "$as_me:7031: checking for $ac_word" >&5 7032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7033if test "${ac_cv_path_MSGFMT+set}" = set; then 7034 echo $ECHO_N "(cached) $ECHO_C" >&6 7035else 7036 case "$MSGFMT" in 7037 [\\/]*|?:[\\/]*) 7038 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 7039 ;; 7040 *) 7041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" 7042 for ac_dir in $PATH; do 7043 test -z "$ac_dir" && ac_dir=. 7044 if test -f $ac_dir/$ac_word$ac_exeext; then 7045 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then 7046 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exeext" 7047 break 7048 fi 7049 fi 7050 done 7051 IFS="$ac_save_ifs" 7052 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 7053 ;; 7054esac 7055fi 7056MSGFMT="$ac_cv_path_MSGFMT" 7057if test "$MSGFMT" != ":"; then 7058 echo "$as_me:7058: result: $MSGFMT" >&5 7059echo "${ECHO_T}$MSGFMT" >&6 7060else 7061 echo "$as_me:7061: result: no" >&5 7062echo "${ECHO_T}no" >&6 7063fi 7064 7065 # Extract the first word of "gmsgfmt", so it can be a program name with args. 7066set dummy gmsgfmt; ac_word=$2 7067echo "$as_me:7067: checking for $ac_word" >&5 7068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7069if test "${ac_cv_path_GMSGFMT+set}" = set; then 7070 echo $ECHO_N "(cached) $ECHO_C" >&6 7071else 7072 case $GMSGFMT in 7073 [\\/]* | ?:[\\/]*) 7074 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 7075 ;; 7076 *) 7077 ac_save_IFS=$IFS; IFS=$ac_path_separator 7078ac_dummy="$PATH" 7079for ac_dir in $ac_dummy; do 7080 IFS=$ac_save_IFS 7081 test -z "$ac_dir" && ac_dir=. 7082 if $as_executable_p "$ac_dir/$ac_word"; then 7083 ac_cv_path_GMSGFMT="$ac_dir/$ac_word" 7084 echo "$as_me:7084: found $ac_dir/$ac_word" >&5 7085 break 7086fi 7087done 7088 7089 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 7090 ;; 7091esac 7092fi 7093GMSGFMT=$ac_cv_path_GMSGFMT 7094 7095if test -n "$GMSGFMT"; then 7096 echo "$as_me:7096: result: $GMSGFMT" >&5 7097echo "${ECHO_T}$GMSGFMT" >&6 7098else 7099 echo "$as_me:7099: result: no" >&5 7100echo "${ECHO_T}no" >&6 7101fi 7102 7103 # Extract the first word of "xgettext", so it can be a program name with args. 7104 7105set dummy xgettext; ac_word=$2 7106echo "$as_me:7106: checking for $ac_word" >&5 7107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7108if test "${ac_cv_path_XGETTEXT+set}" = set; then 7109 echo $ECHO_N "(cached) $ECHO_C" >&6 7110else 7111 case "$XGETTEXT" in 7112 [\\/]*|?:[\\/]*) 7113 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 7114 ;; 7115 *) 7116 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" 7117 for ac_dir in $PATH; do 7118 test -z "$ac_dir" && ac_dir=. 7119 if test -f $ac_dir/$ac_word$ac_exeext; then 7120 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then 7121 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exeext" 7122 break 7123 fi 7124 fi 7125 done 7126 IFS="$ac_save_ifs" 7127 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 7128 ;; 7129esac 7130fi 7131XGETTEXT="$ac_cv_path_XGETTEXT" 7132if test "$XGETTEXT" != ":"; then 7133 echo "$as_me:7133: result: $XGETTEXT" >&5 7134echo "${ECHO_T}$XGETTEXT" >&6 7135else 7136 echo "$as_me:7136: result: no" >&5 7137echo "${ECHO_T}no" >&6 7138fi 7139 7140 CATOBJEXT=.gmo 7141 fi 7142 fi 7143 7144 if test "$CATOBJEXT" = "NONE"; then 7145 nls_cv_use_gnu_gettext=yes 7146 fi 7147 fi 7148 7149 if test "$nls_cv_use_gnu_gettext" = "yes"; then 7150 if test ! -d $srcdir/intl ; then 7151 { { echo "$as_me:7151: error: no NLS library is packaged with this application" >&5 7152echo "$as_me: error: no NLS library is packaged with this application" >&2;} 7153 { (exit 1); exit 1; }; } 7154 fi 7155 INTLOBJS="\$(GETTOBJS)" 7156 # Extract the first word of "msgfmt", so it can be a program name with args. 7157 7158set dummy msgfmt; ac_word=$2 7159echo "$as_me:7159: checking for $ac_word" >&5 7160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7161if test "${ac_cv_path_MSGFMT+set}" = set; then 7162 echo $ECHO_N "(cached) $ECHO_C" >&6 7163else 7164 case "$MSGFMT" in 7165 [\\/]*|?:[\\/]*) 7166 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 7167 ;; 7168 *) 7169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" 7170 for ac_dir in $PATH; do 7171 test -z "$ac_dir" && ac_dir=. 7172 if test -f $ac_dir/$ac_word$ac_exeext; then 7173 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then 7174 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exeext" 7175 break 7176 fi 7177 fi 7178 done 7179 IFS="$ac_save_ifs" 7180 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 7181 ;; 7182esac 7183fi 7184MSGFMT="$ac_cv_path_MSGFMT" 7185if test "$MSGFMT" != ":"; then 7186 echo "$as_me:7186: result: $MSGFMT" >&5 7187echo "${ECHO_T}$MSGFMT" >&6 7188else 7189 echo "$as_me:7189: result: no" >&5 7190echo "${ECHO_T}no" >&6 7191fi 7192 7193 # Extract the first word of "gmsgfmt", so it can be a program name with args. 7194set dummy gmsgfmt; ac_word=$2 7195echo "$as_me:7195: checking for $ac_word" >&5 7196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7197if test "${ac_cv_path_GMSGFMT+set}" = set; then 7198 echo $ECHO_N "(cached) $ECHO_C" >&6 7199else 7200 case $GMSGFMT in 7201 [\\/]* | ?:[\\/]*) 7202 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 7203 ;; 7204 *) 7205 ac_save_IFS=$IFS; IFS=$ac_path_separator 7206ac_dummy="$PATH" 7207for ac_dir in $ac_dummy; do 7208 IFS=$ac_save_IFS 7209 test -z "$ac_dir" && ac_dir=. 7210 if $as_executable_p "$ac_dir/$ac_word"; then 7211 ac_cv_path_GMSGFMT="$ac_dir/$ac_word" 7212 echo "$as_me:7212: found $ac_dir/$ac_word" >&5 7213 break 7214fi 7215done 7216 7217 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 7218 ;; 7219esac 7220fi 7221GMSGFMT=$ac_cv_path_GMSGFMT 7222 7223if test -n "$GMSGFMT"; then 7224 echo "$as_me:7224: result: $GMSGFMT" >&5 7225echo "${ECHO_T}$GMSGFMT" >&6 7226else 7227 echo "$as_me:7227: result: no" >&5 7228echo "${ECHO_T}no" >&6 7229fi 7230 7231 # Extract the first word of "xgettext", so it can be a program name with args. 7232 7233set dummy xgettext; ac_word=$2 7234echo "$as_me:7234: checking for $ac_word" >&5 7235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7236if test "${ac_cv_path_XGETTEXT+set}" = set; then 7237 echo $ECHO_N "(cached) $ECHO_C" >&6 7238else 7239 case "$XGETTEXT" in 7240 [\\/]*|?:[\\/]*) 7241 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 7242 ;; 7243 *) 7244 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" 7245 for ac_dir in $PATH; do 7246 test -z "$ac_dir" && ac_dir=. 7247 if test -f $ac_dir/$ac_word$ac_exeext; then 7248 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then 7249 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exeext" 7250 break 7251 fi 7252 fi 7253 done 7254 IFS="$ac_save_ifs" 7255 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 7256 ;; 7257esac 7258fi 7259XGETTEXT="$ac_cv_path_XGETTEXT" 7260if test "$XGETTEXT" != ":"; then 7261 echo "$as_me:7261: result: $XGETTEXT" >&5 7262echo "${ECHO_T}$XGETTEXT" >&6 7263else 7264 echo "$as_me:7264: result: no" >&5 7265echo "${ECHO_T}no" >&6 7266fi 7267 7268 BUILD_INCLUDED_LIBINTL=yes 7269 USE_INCLUDED_LIBINTL=yes 7270 CATOBJEXT=.gmo 7271 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV" 7272 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 7273 fi 7274 7275 if test "$GMSGFMT" != ":"; then 7276 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then 7277 : ; 7278 else 7279 echo "$as_me:7279: result: found msgfmt program is not GNU msgfmt; ignore it" >&5 7280echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6 7281 GMSGFMT=":" 7282 fi 7283 fi 7284 7285 if test "$XGETTEXT" != ":"; then 7286 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then 7287 : ; 7288 else 7289 echo "$as_me:7289: result: found xgettext program is not GNU xgettext; ignore it" >&5 7290echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 7291 XGETTEXT=":" 7292 fi 7293 fi 7294 7295 POSUB=po 7296 fi 7297 7298 ac_config_commands="$ac_config_commands default-1" 7299 7300 if test "$PACKAGE" = gettext; then 7301 BUILD_INCLUDED_LIBINTL=yes 7302 fi 7303 7304 if test "$nls_cv_use_gnu_gettext" = "yes"; then 7305 for ac_prog in bison 7306do 7307 # Extract the first word of "$ac_prog", so it can be a program name with args. 7308set dummy $ac_prog; ac_word=$2 7309echo "$as_me:7309: checking for $ac_word" >&5 7310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7311if test "${ac_cv_prog_INTLBISON+set}" = set; then 7312 echo $ECHO_N "(cached) $ECHO_C" >&6 7313else 7314 if test -n "$INTLBISON"; then 7315 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 7316else 7317 ac_save_IFS=$IFS; IFS=$ac_path_separator 7318ac_dummy="$PATH" 7319for ac_dir in $ac_dummy; do 7320 IFS=$ac_save_IFS 7321 test -z "$ac_dir" && ac_dir=. 7322 $as_executable_p "$ac_dir/$ac_word" || continue 7323ac_cv_prog_INTLBISON="$ac_prog" 7324echo "$as_me:7324: found $ac_dir/$ac_word" >&5 7325break 7326done 7327 7328fi 7329fi 7330INTLBISON=$ac_cv_prog_INTLBISON 7331if test -n "$INTLBISON"; then 7332 echo "$as_me:7332: result: $INTLBISON" >&5 7333echo "${ECHO_T}$INTLBISON" >&6 7334else 7335 echo "$as_me:7335: result: no" >&5 7336echo "${ECHO_T}no" >&6 7337fi 7338 7339 test -n "$INTLBISON" && break 7340done 7341 7342 if test -z "$INTLBISON"; then 7343 ac_verc_fail=yes 7344 else 7345 echo "$as_me:7345: checking version of bison" >&5 7346echo $ECHO_N "checking version of bison... $ECHO_C" >&6 7347 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 7348 case $ac_prog_version in 7349 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 7350 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) 7351 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 7352 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 7353 esac 7354 echo "$as_me:7354: result: $ac_prog_version" >&5 7355echo "${ECHO_T}$ac_prog_version" >&6 7356 fi 7357 if test $ac_verc_fail = yes; then 7358 INTLBISON=: 7359 fi 7360 fi 7361 7362 for lang in $ALL_LINGUAS; do 7363 GMOFILES="$GMOFILES $lang.gmo" 7364 POFILES="$POFILES $lang.po" 7365 done 7366 7367 nls_cv_header_intl= 7368 nls_cv_header_libgt= 7369 7370 DATADIRNAME=share 7371 7372 INSTOBJEXT=.mo 7373 7374 GENCAT=gencat 7375 7376 if test "x$CATOBJEXT" != "x"; then 7377 if test "x$ALL_LINGUAS" = "x"; then 7378 LINGUAS= 7379 else 7380 echo "$as_me:7380: checking for catalogs to be installed" >&5 7381echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 7382 NEW_LINGUAS= 7383 for presentlang in $ALL_LINGUAS; do 7384 useit=no 7385 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do 7386 # Use the presentlang catalog if desiredlang is 7387 # a. equal to presentlang, or 7388 # b. a variant of presentlang (because in this case, 7389 # presentlang can be used as a fallback for messages 7390 # which are not translated in the desiredlang catalog). 7391 case "$desiredlang" in 7392 "$presentlang"*) useit=yes;; 7393 esac 7394 done 7395 if test $useit = yes; then 7396 NEW_LINGUAS="$NEW_LINGUAS $presentlang" 7397 fi 7398 done 7399 LINGUAS=$NEW_LINGUAS 7400 echo "$as_me:7400: result: $LINGUAS" >&5 7401echo "${ECHO_T}$LINGUAS" >&6 7402 fi 7403 7404 if test -n "$LINGUAS"; then 7405 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 7406 fi 7407 fi 7408 7409 MKINSTALLDIRS= 7410 if test -n "$ac_aux_dir"; then 7411 MKINSTALLDIRS="$ac_aux_dir/mkdirs.sh" 7412 fi 7413 if test -z "$MKINSTALLDIRS"; then 7414 MKINSTALLDIRS="\$(top_srcdir)/mkdirs.sh" 7415 fi 7416 if test -n "$GNUSYSTEM_AUX_DIR" ; then 7417 if test -e "${GNUSYSTEM_AUX_DIR}/mkinstalldirs"; then 7418 MKINSTALLDIRS="${GNUSYSTEM_AUX_DIR}/mkinstalldirs" 7419 fi 7420 fi 7421 7422 INTL_LIBTOOL_SUFFIX_PREFIX= 7423 7424INTLDIR_MAKE= 7425MSG_DIR_MAKE= 7426SUB_MAKEFILE= 7427 7428cf_makefile=makefile 7429 7430use_our_messages=no 7431if test "$USE_NLS" = yes ; then 7432if test -d $srcdir/po ; then 7433echo "$as_me:7433: checking if we should use included message-library" >&5 7434echo $ECHO_N "checking if we should use included message-library... $ECHO_C" >&6 7435 7436# Check whether --enable-included-msgs or --disable-included-msgs was given. 7437if test "${enable_included_msgs+set}" = set; then 7438 enableval="$enable_included_msgs" 7439 use_our_messages=$enableval 7440else 7441 use_our_messages=yes 7442fi; 7443fi 7444echo "$as_me:7444: result: $use_our_messages" >&5 7445echo "${ECHO_T}$use_our_messages" >&6 7446fi 7447 7448MSG_DIR_MAKE="#" 7449if test "$use_our_messages" = yes 7450then 7451 SUB_MAKEFILE="$SUB_MAKEFILE po/$cf_makefile.in:$srcdir/po/$cf_makefile.inn" 7452 MSG_DIR_MAKE= 7453fi 7454 7455if test "$USE_INCLUDED_LIBINTL" = yes ; then 7456 if test "$nls_cv_force_use_gnu_gettext" = yes ; then 7457 : 7458 elif test "$nls_cv_use_gnu_gettext" = yes ; then 7459 : 7460 else 7461 INTLDIR_MAKE="#" 7462 fi 7463 if test -z "$INTLDIR_MAKE"; then 7464 cat >>confdefs.h <<\EOF 7465#define HAVE_LIBGETTEXT_H 1 7466EOF 7467 7468 for cf_makefile in \ 7469 $srcdir/intl/Makefile.in \ 7470 $srcdir/intl/makefile.in 7471 do 7472 if test -f "$cf_makefile" ; then 7473 SUB_MAKEFILE="$SUB_MAKEFILE `echo \"${cf_makefile}\"|sed -e 's,^'$srcdir/',,' -e 's/\.in$//'`:${cf_makefile}" 7474 break 7475 fi 7476 done 7477 fi 7478else 7479 INTLDIR_MAKE="#" 7480 if test "$USE_NLS" = yes ; then 7481 7482for ac_header in libintl.h 7483do 7484as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7485echo "$as_me:7485: checking for $ac_header" >&5 7486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7487if eval "test \"\${$as_ac_Header+set}\" = set"; then 7488 echo $ECHO_N "(cached) $ECHO_C" >&6 7489else 7490 cat >conftest.$ac_ext <<_ACEOF 7491#line 7491 "configure" 7492#include "confdefs.h" 7493#include <$ac_header> 7494_ACEOF 7495if { (eval echo "$as_me:7495: \"$ac_cpp conftest.$ac_ext\"") >&5 7496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7497 ac_status=$? 7498 egrep -v '^ *\+' conftest.er1 >conftest.err 7499 rm -f conftest.er1 7500 cat conftest.err >&5 7501 echo "$as_me:7501: \$? = $ac_status" >&5 7502 (exit $ac_status); } >/dev/null; then 7503 if test -s conftest.err; then 7504 ac_cpp_err=$ac_c_preproc_warn_flag 7505 else 7506 ac_cpp_err= 7507 fi 7508else 7509 ac_cpp_err=yes 7510fi 7511if test -z "$ac_cpp_err"; then 7512 eval "$as_ac_Header=yes" 7513else 7514 echo "$as_me: failed program was:" >&5 7515 cat conftest.$ac_ext >&5 7516 eval "$as_ac_Header=no" 7517fi 7518rm -f conftest.err conftest.$ac_ext 7519fi 7520echo "$as_me:7520: result: `eval echo '${'$as_ac_Header'}'`" >&5 7521echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7522if test `eval echo '${'$as_ac_Header'}'` = yes; then 7523 cat >>confdefs.h <<EOF 7524#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7525EOF 7526 7527fi 7528done 7529 7530 fi 7531fi 7532 7533if test -z "$INTLDIR_MAKE" ; then 7534 CPPFLAGS="$CPPFLAGS -I../intl" 7535fi 7536 7537if test "$BUILD_INCLUDED_LIBINTL" = yes ; then 7538 GT_YES="#" 7539 GT_NO= 7540else 7541 GT_YES= 7542 GT_NO="#" 7543fi 7544 7545if test "$USE_INCLUDED_LIBINTL" = yes ; then 7546 if test "$nls_cv_force_use_gnu_gettext" = yes ; then 7547 cat >>confdefs.h <<\EOF 7548#define HAVE_GETTEXT 1 7549EOF 7550 7551 elif test "$nls_cv_use_gnu_gettext" = yes ; then 7552 cat >>confdefs.h <<\EOF 7553#define HAVE_GETTEXT 1 7554EOF 7555 7556 fi 7557 if test -n "$nls_cv_header_intl" ; then 7558 cat >>confdefs.h <<\EOF 7559#define HAVE_LIBINTL_H 1 7560EOF 7561 7562 fi 7563fi 7564 7565echo "$as_me:7565: checking if -lm needed for math functions" >&5 7566echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6 7567if test "${cf_cv_need_libm+set}" = set; then 7568 echo $ECHO_N "(cached) $ECHO_C" >&6 7569else 7570 7571 cat >conftest.$ac_ext <<_ACEOF 7572#line 7572 "configure" 7573#include "confdefs.h" 7574 7575 #include <stdio.h> 7576 #include <math.h> 7577 7578int 7579main () 7580{ 7581double x = rand(); printf("result = %g\n", sqrt(x)) 7582 ; 7583 return 0; 7584} 7585_ACEOF 7586rm -f conftest.$ac_objext conftest$ac_exeext 7587if { (eval echo "$as_me:7587: \"$ac_link\"") >&5 7588 (eval $ac_link) 2>&5 7589 ac_status=$? 7590 echo "$as_me:7590: \$? = $ac_status" >&5 7591 (exit $ac_status); } && 7592 { ac_try='test -s conftest$ac_exeext' 7593 { (eval echo "$as_me:7593: \"$ac_try\"") >&5 7594 (eval $ac_try) 2>&5 7595 ac_status=$? 7596 echo "$as_me:7596: \$? = $ac_status" >&5 7597 (exit $ac_status); }; }; then 7598 cf_cv_need_libm=no 7599else 7600 echo "$as_me: failed program was:" >&5 7601cat conftest.$ac_ext >&5 7602cf_cv_need_libm=yes 7603fi 7604rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7605fi 7606echo "$as_me:7606: result: $cf_cv_need_libm" >&5 7607echo "${ECHO_T}$cf_cv_need_libm" >&6 7608if test "$cf_cv_need_libm" = yes 7609then 7610 7611 LIBS="-lm $LIBS" 7612 7613fi 7614 7615echo "$as_me:7615: checking if you want to use dmalloc for testing" >&5 7616echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6 7617 7618# Check whether --with-dmalloc or --without-dmalloc was given. 7619if test "${with_dmalloc+set}" = set; then 7620 withval="$with_dmalloc" 7621 cat >>confdefs.h <<\EOF 7622#define USE_DMALLOC 1 7623EOF 7624 7625 : ${with_cflags:=-g} 7626 : ${with_no_leaks:=yes} 7627 with_dmalloc=yes 7628else 7629 with_dmalloc= 7630fi; 7631echo "$as_me:7631: result: ${with_dmalloc:-no}" >&5 7632echo "${ECHO_T}${with_dmalloc:-no}" >&6 7633 7634case .$with_cflags in #(vi 7635.*-g*) 7636 case .$CFLAGS in #(vi 7637 .*-g*) #(vi 7638 ;; 7639 *) 7640 7641cf_fix_cppflags=no 7642cf_new_cflags= 7643cf_new_cppflags= 7644cf_new_extra_cppflags= 7645 7646for cf_add_cflags in -g 7647do 7648case $cf_fix_cppflags in 7649no) 7650 case $cf_add_cflags in #(vi 7651 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 7652 case $cf_add_cflags in 7653 -D*) 7654 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 7655 7656 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 7657 && test -z "${cf_tst_cflags}" \ 7658 && cf_fix_cppflags=yes 7659 7660 if test $cf_fix_cppflags = yes ; then 7661 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 7662 continue 7663 elif test "${cf_tst_cflags}" = "\"'" ; then 7664 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 7665 continue 7666 fi 7667 ;; 7668 esac 7669 case "$CPPFLAGS" in 7670 *$cf_add_cflags) #(vi 7671 ;; 7672 *) #(vi 7673 case $cf_add_cflags in #(vi 7674 -D*) 7675 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 7676 7677CPPFLAGS=`echo "$CPPFLAGS" | \ 7678 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 7679 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 7680 7681 ;; 7682 esac 7683 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 7684 ;; 7685 esac 7686 ;; 7687 *) 7688 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 7689 ;; 7690 esac 7691 ;; 7692yes) 7693 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 7694 7695 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 7696 7697 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 7698 && test -z "${cf_tst_cflags}" \ 7699 && cf_fix_cppflags=no 7700 ;; 7701esac 7702done 7703 7704if test -n "$cf_new_cflags" ; then 7705 7706 CFLAGS="$CFLAGS $cf_new_cflags" 7707fi 7708 7709if test -n "$cf_new_cppflags" ; then 7710 7711 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 7712fi 7713 7714if test -n "$cf_new_extra_cppflags" ; then 7715 7716 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 7717fi 7718 7719 ;; 7720 esac 7721 ;; 7722esac 7723 7724if test "$with_dmalloc" = yes ; then 7725 echo "$as_me:7725: checking for dmalloc.h" >&5 7726echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6 7727if test "${ac_cv_header_dmalloc_h+set}" = set; then 7728 echo $ECHO_N "(cached) $ECHO_C" >&6 7729else 7730 cat >conftest.$ac_ext <<_ACEOF 7731#line 7731 "configure" 7732#include "confdefs.h" 7733#include <dmalloc.h> 7734_ACEOF 7735if { (eval echo "$as_me:7735: \"$ac_cpp conftest.$ac_ext\"") >&5 7736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7737 ac_status=$? 7738 egrep -v '^ *\+' conftest.er1 >conftest.err 7739 rm -f conftest.er1 7740 cat conftest.err >&5 7741 echo "$as_me:7741: \$? = $ac_status" >&5 7742 (exit $ac_status); } >/dev/null; then 7743 if test -s conftest.err; then 7744 ac_cpp_err=$ac_c_preproc_warn_flag 7745 else 7746 ac_cpp_err= 7747 fi 7748else 7749 ac_cpp_err=yes 7750fi 7751if test -z "$ac_cpp_err"; then 7752 ac_cv_header_dmalloc_h=yes 7753else 7754 echo "$as_me: failed program was:" >&5 7755 cat conftest.$ac_ext >&5 7756 ac_cv_header_dmalloc_h=no 7757fi 7758rm -f conftest.err conftest.$ac_ext 7759fi 7760echo "$as_me:7760: result: $ac_cv_header_dmalloc_h" >&5 7761echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6 7762if test $ac_cv_header_dmalloc_h = yes; then 7763 7764echo "$as_me:7764: checking for dmalloc_debug in -ldmalloc" >&5 7765echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6 7766if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then 7767 echo $ECHO_N "(cached) $ECHO_C" >&6 7768else 7769 ac_check_lib_save_LIBS=$LIBS 7770LIBS="-ldmalloc $LIBS" 7771cat >conftest.$ac_ext <<_ACEOF 7772#line 7772 "configure" 7773#include "confdefs.h" 7774 7775/* Override any gcc2 internal prototype to avoid an error. */ 7776#ifdef __cplusplus 7777extern "C" 7778#endif 7779/* We use char because int might match the return type of a gcc2 7780 builtin and then its argument prototype would still apply. */ 7781char dmalloc_debug (); 7782int 7783main () 7784{ 7785dmalloc_debug (); 7786 ; 7787 return 0; 7788} 7789_ACEOF 7790rm -f conftest.$ac_objext conftest$ac_exeext 7791if { (eval echo "$as_me:7791: \"$ac_link\"") >&5 7792 (eval $ac_link) 2>&5 7793 ac_status=$? 7794 echo "$as_me:7794: \$? = $ac_status" >&5 7795 (exit $ac_status); } && 7796 { ac_try='test -s conftest$ac_exeext' 7797 { (eval echo "$as_me:7797: \"$ac_try\"") >&5 7798 (eval $ac_try) 2>&5 7799 ac_status=$? 7800 echo "$as_me:7800: \$? = $ac_status" >&5 7801 (exit $ac_status); }; }; then 7802 ac_cv_lib_dmalloc_dmalloc_debug=yes 7803else 7804 echo "$as_me: failed program was:" >&5 7805cat conftest.$ac_ext >&5 7806ac_cv_lib_dmalloc_dmalloc_debug=no 7807fi 7808rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7809LIBS=$ac_check_lib_save_LIBS 7810fi 7811echo "$as_me:7811: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5 7812echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6 7813if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then 7814 cat >>confdefs.h <<EOF 7815#define HAVE_LIBDMALLOC 1 7816EOF 7817 7818 LIBS="-ldmalloc $LIBS" 7819 7820fi 7821 7822fi 7823 7824fi 7825 7826echo "$as_me:7826: checking if you want to use dbmalloc for testing" >&5 7827echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6 7828 7829# Check whether --with-dbmalloc or --without-dbmalloc was given. 7830if test "${with_dbmalloc+set}" = set; then 7831 withval="$with_dbmalloc" 7832 cat >>confdefs.h <<\EOF 7833#define USE_DBMALLOC 1 7834EOF 7835 7836 : ${with_cflags:=-g} 7837 : ${with_no_leaks:=yes} 7838 with_dbmalloc=yes 7839else 7840 with_dbmalloc= 7841fi; 7842echo "$as_me:7842: result: ${with_dbmalloc:-no}" >&5 7843echo "${ECHO_T}${with_dbmalloc:-no}" >&6 7844 7845case .$with_cflags in #(vi 7846.*-g*) 7847 case .$CFLAGS in #(vi 7848 .*-g*) #(vi 7849 ;; 7850 *) 7851 7852cf_fix_cppflags=no 7853cf_new_cflags= 7854cf_new_cppflags= 7855cf_new_extra_cppflags= 7856 7857for cf_add_cflags in -g 7858do 7859case $cf_fix_cppflags in 7860no) 7861 case $cf_add_cflags in #(vi 7862 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 7863 case $cf_add_cflags in 7864 -D*) 7865 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 7866 7867 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 7868 && test -z "${cf_tst_cflags}" \ 7869 && cf_fix_cppflags=yes 7870 7871 if test $cf_fix_cppflags = yes ; then 7872 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 7873 continue 7874 elif test "${cf_tst_cflags}" = "\"'" ; then 7875 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 7876 continue 7877 fi 7878 ;; 7879 esac 7880 case "$CPPFLAGS" in 7881 *$cf_add_cflags) #(vi 7882 ;; 7883 *) #(vi 7884 case $cf_add_cflags in #(vi 7885 -D*) 7886 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 7887 7888CPPFLAGS=`echo "$CPPFLAGS" | \ 7889 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 7890 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 7891 7892 ;; 7893 esac 7894 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 7895 ;; 7896 esac 7897 ;; 7898 *) 7899 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 7900 ;; 7901 esac 7902 ;; 7903yes) 7904 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 7905 7906 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 7907 7908 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 7909 && test -z "${cf_tst_cflags}" \ 7910 && cf_fix_cppflags=no 7911 ;; 7912esac 7913done 7914 7915if test -n "$cf_new_cflags" ; then 7916 7917 CFLAGS="$CFLAGS $cf_new_cflags" 7918fi 7919 7920if test -n "$cf_new_cppflags" ; then 7921 7922 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 7923fi 7924 7925if test -n "$cf_new_extra_cppflags" ; then 7926 7927 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 7928fi 7929 7930 ;; 7931 esac 7932 ;; 7933esac 7934 7935if test "$with_dbmalloc" = yes ; then 7936 echo "$as_me:7936: checking for dbmalloc.h" >&5 7937echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6 7938if test "${ac_cv_header_dbmalloc_h+set}" = set; then 7939 echo $ECHO_N "(cached) $ECHO_C" >&6 7940else 7941 cat >conftest.$ac_ext <<_ACEOF 7942#line 7942 "configure" 7943#include "confdefs.h" 7944#include <dbmalloc.h> 7945_ACEOF 7946if { (eval echo "$as_me:7946: \"$ac_cpp conftest.$ac_ext\"") >&5 7947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7948 ac_status=$? 7949 egrep -v '^ *\+' conftest.er1 >conftest.err 7950 rm -f conftest.er1 7951 cat conftest.err >&5 7952 echo "$as_me:7952: \$? = $ac_status" >&5 7953 (exit $ac_status); } >/dev/null; then 7954 if test -s conftest.err; then 7955 ac_cpp_err=$ac_c_preproc_warn_flag 7956 else 7957 ac_cpp_err= 7958 fi 7959else 7960 ac_cpp_err=yes 7961fi 7962if test -z "$ac_cpp_err"; then 7963 ac_cv_header_dbmalloc_h=yes 7964else 7965 echo "$as_me: failed program was:" >&5 7966 cat conftest.$ac_ext >&5 7967 ac_cv_header_dbmalloc_h=no 7968fi 7969rm -f conftest.err conftest.$ac_ext 7970fi 7971echo "$as_me:7971: result: $ac_cv_header_dbmalloc_h" >&5 7972echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6 7973if test $ac_cv_header_dbmalloc_h = yes; then 7974 7975echo "$as_me:7975: checking for debug_malloc in -ldbmalloc" >&5 7976echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6 7977if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then 7978 echo $ECHO_N "(cached) $ECHO_C" >&6 7979else 7980 ac_check_lib_save_LIBS=$LIBS 7981LIBS="-ldbmalloc $LIBS" 7982cat >conftest.$ac_ext <<_ACEOF 7983#line 7983 "configure" 7984#include "confdefs.h" 7985 7986/* Override any gcc2 internal prototype to avoid an error. */ 7987#ifdef __cplusplus 7988extern "C" 7989#endif 7990/* We use char because int might match the return type of a gcc2 7991 builtin and then its argument prototype would still apply. */ 7992char debug_malloc (); 7993int 7994main () 7995{ 7996debug_malloc (); 7997 ; 7998 return 0; 7999} 8000_ACEOF 8001rm -f conftest.$ac_objext conftest$ac_exeext 8002if { (eval echo "$as_me:8002: \"$ac_link\"") >&5 8003 (eval $ac_link) 2>&5 8004 ac_status=$? 8005 echo "$as_me:8005: \$? = $ac_status" >&5 8006 (exit $ac_status); } && 8007 { ac_try='test -s conftest$ac_exeext' 8008 { (eval echo "$as_me:8008: \"$ac_try\"") >&5 8009 (eval $ac_try) 2>&5 8010 ac_status=$? 8011 echo "$as_me:8011: \$? = $ac_status" >&5 8012 (exit $ac_status); }; }; then 8013 ac_cv_lib_dbmalloc_debug_malloc=yes 8014else 8015 echo "$as_me: failed program was:" >&5 8016cat conftest.$ac_ext >&5 8017ac_cv_lib_dbmalloc_debug_malloc=no 8018fi 8019rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8020LIBS=$ac_check_lib_save_LIBS 8021fi 8022echo "$as_me:8022: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5 8023echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6 8024if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then 8025 cat >>confdefs.h <<EOF 8026#define HAVE_LIBDBMALLOC 1 8027EOF 8028 8029 LIBS="-ldbmalloc $LIBS" 8030 8031fi 8032 8033fi 8034 8035fi 8036 8037echo "$as_me:8037: checking if you want to use purify for testing" >&5 8038echo $ECHO_N "checking if you want to use purify for testing... $ECHO_C" >&6 8039 8040# Check whether --with-purify or --without-purify was given. 8041if test "${with_purify+set}" = set; then 8042 withval="$with_purify" 8043 cat >>confdefs.h <<\EOF 8044#define USE_PURIFY 1 8045EOF 8046 8047 : ${with_cflags:=-g} 8048 : ${with_no_leaks:=yes} 8049 with_purify=yes 8050else 8051 with_purify= 8052fi; 8053echo "$as_me:8053: result: ${with_purify:-no}" >&5 8054echo "${ECHO_T}${with_purify:-no}" >&6 8055 8056case .$with_cflags in #(vi 8057.*-g*) 8058 case .$CFLAGS in #(vi 8059 .*-g*) #(vi 8060 ;; 8061 *) 8062 8063cf_fix_cppflags=no 8064cf_new_cflags= 8065cf_new_cppflags= 8066cf_new_extra_cppflags= 8067 8068for cf_add_cflags in -g 8069do 8070case $cf_fix_cppflags in 8071no) 8072 case $cf_add_cflags in #(vi 8073 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 8074 case $cf_add_cflags in 8075 -D*) 8076 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 8077 8078 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 8079 && test -z "${cf_tst_cflags}" \ 8080 && cf_fix_cppflags=yes 8081 8082 if test $cf_fix_cppflags = yes ; then 8083 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 8084 continue 8085 elif test "${cf_tst_cflags}" = "\"'" ; then 8086 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 8087 continue 8088 fi 8089 ;; 8090 esac 8091 case "$CPPFLAGS" in 8092 *$cf_add_cflags) #(vi 8093 ;; 8094 *) #(vi 8095 case $cf_add_cflags in #(vi 8096 -D*) 8097 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 8098 8099CPPFLAGS=`echo "$CPPFLAGS" | \ 8100 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 8101 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 8102 8103 ;; 8104 esac 8105 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 8106 ;; 8107 esac 8108 ;; 8109 *) 8110 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 8111 ;; 8112 esac 8113 ;; 8114yes) 8115 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 8116 8117 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 8118 8119 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 8120 && test -z "${cf_tst_cflags}" \ 8121 && cf_fix_cppflags=no 8122 ;; 8123esac 8124done 8125 8126if test -n "$cf_new_cflags" ; then 8127 8128 CFLAGS="$CFLAGS $cf_new_cflags" 8129fi 8130 8131if test -n "$cf_new_cppflags" ; then 8132 8133 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 8134fi 8135 8136if test -n "$cf_new_extra_cppflags" ; then 8137 8138 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 8139fi 8140 8141 ;; 8142 esac 8143 ;; 8144esac 8145 8146echo "$as_me:8146: checking if you want to use valgrind for testing" >&5 8147echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6 8148 8149# Check whether --with-valgrind or --without-valgrind was given. 8150if test "${with_valgrind+set}" = set; then 8151 withval="$with_valgrind" 8152 cat >>confdefs.h <<\EOF 8153#define USE_VALGRIND 1 8154EOF 8155 8156 : ${with_cflags:=-g} 8157 : ${with_no_leaks:=yes} 8158 with_valgrind=yes 8159else 8160 with_valgrind= 8161fi; 8162echo "$as_me:8162: result: ${with_valgrind:-no}" >&5 8163echo "${ECHO_T}${with_valgrind:-no}" >&6 8164 8165case .$with_cflags in #(vi 8166.*-g*) 8167 case .$CFLAGS in #(vi 8168 .*-g*) #(vi 8169 ;; 8170 *) 8171 8172cf_fix_cppflags=no 8173cf_new_cflags= 8174cf_new_cppflags= 8175cf_new_extra_cppflags= 8176 8177for cf_add_cflags in -g 8178do 8179case $cf_fix_cppflags in 8180no) 8181 case $cf_add_cflags in #(vi 8182 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 8183 case $cf_add_cflags in 8184 -D*) 8185 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 8186 8187 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 8188 && test -z "${cf_tst_cflags}" \ 8189 && cf_fix_cppflags=yes 8190 8191 if test $cf_fix_cppflags = yes ; then 8192 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 8193 continue 8194 elif test "${cf_tst_cflags}" = "\"'" ; then 8195 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 8196 continue 8197 fi 8198 ;; 8199 esac 8200 case "$CPPFLAGS" in 8201 *$cf_add_cflags) #(vi 8202 ;; 8203 *) #(vi 8204 case $cf_add_cflags in #(vi 8205 -D*) 8206 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 8207 8208CPPFLAGS=`echo "$CPPFLAGS" | \ 8209 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 8210 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 8211 8212 ;; 8213 esac 8214 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 8215 ;; 8216 esac 8217 ;; 8218 *) 8219 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 8220 ;; 8221 esac 8222 ;; 8223yes) 8224 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 8225 8226 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 8227 8228 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 8229 && test -z "${cf_tst_cflags}" \ 8230 && cf_fix_cppflags=no 8231 ;; 8232esac 8233done 8234 8235if test -n "$cf_new_cflags" ; then 8236 8237 CFLAGS="$CFLAGS $cf_new_cflags" 8238fi 8239 8240if test -n "$cf_new_cppflags" ; then 8241 8242 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 8243fi 8244 8245if test -n "$cf_new_extra_cppflags" ; then 8246 8247 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 8248fi 8249 8250 ;; 8251 esac 8252 ;; 8253esac 8254 8255echo "$as_me:8255: checking if you want to perform memory-leak testing" >&5 8256echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6 8257 8258# Check whether --with-no-leaks or --without-no-leaks was given. 8259if test "${with_no_leaks+set}" = set; then 8260 withval="$with_no_leaks" 8261 cat >>confdefs.h <<\EOF 8262#define NO_LEAKS 1 8263EOF 8264 8265 cf_doalloc=".${with_dmalloc}${with_dbmalloc}${with_purify}${with_valgrind}" 8266 case ${cf_doalloc} in #(vi 8267 *yes*) ;; 8268 *) cat >>confdefs.h <<\EOF 8269#define DOALLOC 10000 8270EOF 8271 ;; 8272 esac 8273 with_no_leaks=yes 8274else 8275 with_no_leaks= 8276fi; 8277echo "$as_me:8277: result: $with_no_leaks" >&5 8278echo "${ECHO_T}$with_no_leaks" >&6 8279 8280echo "$as_me:8280: checking if you want --trace option" >&5 8281echo $ECHO_N "checking if you want --trace option... $ECHO_C" >&6 8282 8283# Check whether --enable-trace or --disable-trace was given. 8284if test "${enable_trace+set}" = set; then 8285 enableval="$enable_trace" 8286 8287else 8288 enableval=yes 8289fi; 8290echo "$as_me:8290: result: $enableval" >&5 8291echo "${ECHO_T}$enableval" >&6 8292if test "$enableval" != no ; then 8293EXTRAOBJS="$EXTRAOBJS trace\$o" 8294 cat >>confdefs.h <<\EOF 8295#define HAVE_DLG_TRACE 1 8296EOF 8297 8298else 8299 : 8300fi 8301 8302LIBTOOL_MAKE="#" 8303 8304LIBTOOL= 8305 8306# common library maintenance symbols that are convenient for libtool scripts: 8307LIB_CREATE='${AR} -cr' 8308LIB_OBJECT='${OBJECTS}' 8309LIB_SUFFIX=.a 8310LIB_PREP="$RANLIB" 8311 8312# symbols used to prop libtool up to enable it to determine what it should be 8313# doing: 8314LIB_CLEAN= 8315LIB_COMPILE= 8316LIB_LINK='${CC}' 8317LIB_INSTALL= 8318LIB_UNINSTALL= 8319 8320echo "$as_me:8320: checking if you want to build libraries with libtool" >&5 8321echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6 8322 8323# Check whether --with-libtool or --without-libtool was given. 8324if test "${with_libtool+set}" = set; then 8325 withval="$with_libtool" 8326 with_libtool=$withval 8327else 8328 with_libtool=no 8329fi; 8330echo "$as_me:8330: result: $with_libtool" >&5 8331echo "${ECHO_T}$with_libtool" >&6 8332if test "$with_libtool" != "no"; then 8333 8334 if test "$with_libtool" != "yes" ; then 8335 8336if test "x$prefix" != xNONE; then 8337 cf_path_syntax="$prefix" 8338else 8339 cf_path_syntax="$ac_default_prefix" 8340fi 8341 8342case ".$with_libtool" in #(vi 8343.\$\(*\)*|.\'*\'*) #(vi 8344 ;; 8345..|./*|.\\*) #(vi 8346 ;; 8347.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 8348 ;; 8349.\${*prefix}*) #(vi 8350 eval with_libtool="$with_libtool" 8351 case ".$with_libtool" in #(vi 8352 .NONE/*) 8353 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%` 8354 ;; 8355 esac 8356 ;; #(vi 8357.no|.NONE/*) 8358 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%` 8359 ;; 8360*) 8361 { { echo "$as_me:8361: error: expected a pathname, not \"$with_libtool\"" >&5 8362echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;} 8363 { (exit 1); exit 1; }; } 8364 ;; 8365esac 8366 8367 LIBTOOL=$with_libtool 8368 else 8369 # Extract the first word of "libtool", so it can be a program name with args. 8370set dummy libtool; ac_word=$2 8371echo "$as_me:8371: checking for $ac_word" >&5 8372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8373if test "${ac_cv_path_LIBTOOL+set}" = set; then 8374 echo $ECHO_N "(cached) $ECHO_C" >&6 8375else 8376 case $LIBTOOL in 8377 [\\/]* | ?:[\\/]*) 8378 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path. 8379 ;; 8380 *) 8381 ac_save_IFS=$IFS; IFS=$ac_path_separator 8382ac_dummy="$PATH" 8383for ac_dir in $ac_dummy; do 8384 IFS=$ac_save_IFS 8385 test -z "$ac_dir" && ac_dir=. 8386 if $as_executable_p "$ac_dir/$ac_word"; then 8387 ac_cv_path_LIBTOOL="$ac_dir/$ac_word" 8388 echo "$as_me:8388: found $ac_dir/$ac_word" >&5 8389 break 8390fi 8391done 8392 8393 ;; 8394esac 8395fi 8396LIBTOOL=$ac_cv_path_LIBTOOL 8397 8398if test -n "$LIBTOOL"; then 8399 echo "$as_me:8399: result: $LIBTOOL" >&5 8400echo "${ECHO_T}$LIBTOOL" >&6 8401else 8402 echo "$as_me:8402: result: no" >&5 8403echo "${ECHO_T}no" >&6 8404fi 8405 8406 fi 8407 if test -z "$LIBTOOL" ; then 8408 { { echo "$as_me:8408: error: Cannot find libtool" >&5 8409echo "$as_me: error: Cannot find libtool" >&2;} 8410 { (exit 1); exit 1; }; } 8411 fi 8412 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} -version-info `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} -o' 8413 LIB_OBJECT='${OBJECTS:.o=.lo}' 8414 LIB_SUFFIX=.la 8415 LIB_CLEAN='${LIBTOOL} --mode=clean' 8416 LIB_COMPILE='${LIBTOOL} --mode=compile' 8417 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}' 8418 LIB_INSTALL='${LIBTOOL} --mode=install' 8419 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall' 8420 LIB_PREP=: 8421 8422 # Show the version of libtool 8423 echo "$as_me:8423: checking version of libtool" >&5 8424echo $ECHO_N "checking version of libtool... $ECHO_C" >&6 8425 8426 # Save the version in a cache variable - this is not entirely a good 8427 # thing, but the version string from libtool is very ugly, and for 8428 # bug reports it might be useful to have the original string. "(" 8429 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.].*//'` 8430 echo "$as_me:8430: result: $cf_cv_libtool_version" >&5 8431echo "${ECHO_T}$cf_cv_libtool_version" >&6 8432 if test -z "$cf_cv_libtool_version" ; then 8433 { { echo "$as_me:8433: error: This is not GNU libtool" >&5 8434echo "$as_me: error: This is not GNU libtool" >&2;} 8435 { (exit 1); exit 1; }; } 8436 fi 8437 8438 # special hack to add -no-undefined (which libtool should do for itself) 8439 LT_UNDEF= 8440 case "$cf_cv_system_name" in #(vi 8441 cygwin*|mingw32*|uwin*|aix[456]) #(vi 8442 LT_UNDEF=-no-undefined 8443 ;; 8444 esac 8445 8446 # special hack to add --tag option for C++ compiler 8447 case $cf_cv_libtool_version in #(vi 8448 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi 8449 LIBTOOL_CXX="$LIBTOOL --tag=CXX" 8450 LIBTOOL="$LIBTOOL --tag=CC" 8451 ;; 8452 *) 8453 LIBTOOL_CXX="$LIBTOOL" 8454 ;; 8455 esac 8456else 8457 LIBTOOL="" 8458 LIBTOOL_CXX="" 8459fi 8460 8461test -z "$LIBTOOL" && ECHO_LT= 8462 8463if test "$with_libtool" = "yes" ; then 8464 OBJEXT="lo" 8465 LIBTOOL_MAKE= 8466 8467echo "$as_me:8467: checking for additional libtool options" >&5 8468echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6 8469 8470# Check whether --with-libtool-opts or --without-libtool-opts was given. 8471if test "${with_libtool_opts+set}" = set; then 8472 withval="$with_libtool_opts" 8473 with_libtool_opts=$withval 8474else 8475 with_libtool_opts=no 8476fi; 8477echo "$as_me:8477: result: $with_libtool_opts" >&5 8478echo "${ECHO_T}$with_libtool_opts" >&6 8479 8480case .$with_libtool_opts in 8481.yes|.no|.) 8482 ;; 8483*) 8484 LIBTOOL_OPTS=$with_libtool_opts 8485 ;; 8486esac 8487 8488fi 8489 8490use_ncurses=no 8491 8492# Check whether --with-ncurses or --without-ncurses was given. 8493if test "${with_ncurses+set}" = set; then 8494 withval="$with_ncurses" 8495 use_ncurses=ncurses 8496fi; 8497 8498# Check whether --with-ncursesw or --without-ncursesw was given. 8499if test "${with_ncursesw+set}" = set; then 8500 withval="$with_ncursesw" 8501 use_ncurses=ncursesw 8502fi; 8503if test $use_ncurses != no ; then 8504 cf_wide_curses=yes 8505 if test $use_ncurses = ncursesw ; then 8506 8507echo "$as_me:8507: checking for multibyte character support" >&5 8508echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6 8509if test "${cf_cv_utf8_lib+set}" = set; then 8510 echo $ECHO_N "(cached) $ECHO_C" >&6 8511else 8512 8513 cf_save_LIBS="$LIBS" 8514 cat >conftest.$ac_ext <<_ACEOF 8515#line 8515 "configure" 8516#include "confdefs.h" 8517 8518#include <stdlib.h> 8519int 8520main () 8521{ 8522putwc(0,0); 8523 ; 8524 return 0; 8525} 8526_ACEOF 8527rm -f conftest.$ac_objext conftest$ac_exeext 8528if { (eval echo "$as_me:8528: \"$ac_link\"") >&5 8529 (eval $ac_link) 2>&5 8530 ac_status=$? 8531 echo "$as_me:8531: \$? = $ac_status" >&5 8532 (exit $ac_status); } && 8533 { ac_try='test -s conftest$ac_exeext' 8534 { (eval echo "$as_me:8534: \"$ac_try\"") >&5 8535 (eval $ac_try) 2>&5 8536 ac_status=$? 8537 echo "$as_me:8537: \$? = $ac_status" >&5 8538 (exit $ac_status); }; }; then 8539 cf_cv_utf8_lib=yes 8540else 8541 echo "$as_me: failed program was:" >&5 8542cat conftest.$ac_ext >&5 8543 8544# If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these 8545# will be set on completion of the AC_TRY_LINK below. 8546cf_cv_header_path_utf8= 8547cf_cv_library_path_utf8= 8548 8549echo "${as_me-configure}:8549: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5 8550 8551cat >conftest.$ac_ext <<_ACEOF 8552#line 8552 "configure" 8553#include "confdefs.h" 8554 8555#include <libutf8.h> 8556int 8557main () 8558{ 8559putwc(0,0); 8560 ; 8561 return 0; 8562} 8563_ACEOF 8564rm -f conftest.$ac_objext conftest$ac_exeext 8565if { (eval echo "$as_me:8565: \"$ac_link\"") >&5 8566 (eval $ac_link) 2>&5 8567 ac_status=$? 8568 echo "$as_me:8568: \$? = $ac_status" >&5 8569 (exit $ac_status); } && 8570 { ac_try='test -s conftest$ac_exeext' 8571 { (eval echo "$as_me:8571: \"$ac_try\"") >&5 8572 (eval $ac_try) 2>&5 8573 ac_status=$? 8574 echo "$as_me:8574: \$? = $ac_status" >&5 8575 (exit $ac_status); }; }; then 8576 8577 cf_cv_find_linkage_utf8=yes 8578 8579else 8580 echo "$as_me: failed program was:" >&5 8581cat conftest.$ac_ext >&5 8582 8583cf_save_LIBS="$LIBS" 8584LIBS="-lutf8 $cf_save_LIBS" 8585 8586cat >conftest.$ac_ext <<_ACEOF 8587#line 8587 "configure" 8588#include "confdefs.h" 8589 8590#include <libutf8.h> 8591int 8592main () 8593{ 8594putwc(0,0); 8595 ; 8596 return 0; 8597} 8598_ACEOF 8599rm -f conftest.$ac_objext conftest$ac_exeext 8600if { (eval echo "$as_me:8600: \"$ac_link\"") >&5 8601 (eval $ac_link) 2>&5 8602 ac_status=$? 8603 echo "$as_me:8603: \$? = $ac_status" >&5 8604 (exit $ac_status); } && 8605 { ac_try='test -s conftest$ac_exeext' 8606 { (eval echo "$as_me:8606: \"$ac_try\"") >&5 8607 (eval $ac_try) 2>&5 8608 ac_status=$? 8609 echo "$as_me:8609: \$? = $ac_status" >&5 8610 (exit $ac_status); }; }; then 8611 8612 cf_cv_find_linkage_utf8=yes 8613 cf_cv_library_file_utf8="-lutf8" 8614 8615else 8616 echo "$as_me: failed program was:" >&5 8617cat conftest.$ac_ext >&5 8618 8619 cf_cv_find_linkage_utf8=no 8620 LIBS="$cf_save_LIBS" 8621 8622 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6 8623 8624echo "${as_me-configure}:8624: testing find linkage for utf8 library ..." 1>&5 8625 8626echo "${as_me-configure}:8626: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5 8627 8628 cf_save_CPPFLAGS="$CPPFLAGS" 8629 cf_test_CPPFLAGS="$CPPFLAGS" 8630 8631cf_search= 8632 8633# collect the current set of include-directories from compiler flags 8634cf_header_path_list="" 8635if test -n "${CFLAGS}${CPPFLAGS}" ; then 8636 for cf_header_path in $CPPFLAGS $CFLAGS 8637 do 8638 case $cf_header_path in #(vi 8639 -I*) 8640 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'` 8641 cf_header_path_list="$cf_header_path_list $cf_header_path" 8642 ;; 8643 esac 8644 done 8645fi 8646 8647# add the variations for the package we are looking for 8648 8649cf_search= 8650 8651test "/usr" != "$prefix" && \ 8652test -d "/usr" && \ 8653(test $prefix = NONE || test -d $prefix) && { 8654 test -n "$verbose" && echo " ... testing for include-directories under /usr" 8655 test -d /usr/include && cf_search="$cf_search /usr/include" 8656 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8" 8657 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include" 8658 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include" 8659 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8" 8660} 8661 8662test "$prefix" != "NONE" && \ 8663test -d "$prefix" && \ 8664 { 8665 test -n "$verbose" && echo " ... testing for include-directories under $prefix" 8666 test -d $prefix/include && cf_search="$cf_search $prefix/include" 8667 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8" 8668 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include" 8669 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include" 8670 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8" 8671} 8672 8673test "/usr/local" != "$prefix" && \ 8674test -d "/usr/local" && \ 8675(test $prefix = NONE || test -d $prefix) && { 8676 test -n "$verbose" && echo " ... testing for include-directories under /usr/local" 8677 test -d /usr/local/include && cf_search="$cf_search /usr/local/include" 8678 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8" 8679 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include" 8680 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include" 8681 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8" 8682} 8683 8684test "/opt" != "$prefix" && \ 8685test -d "/opt" && \ 8686(test $prefix = NONE || test -d $prefix) && { 8687 test -n "$verbose" && echo " ... testing for include-directories under /opt" 8688 test -d /opt/include && cf_search="$cf_search /opt/include" 8689 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8" 8690 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include" 8691 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include" 8692 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8" 8693} 8694 8695test "$HOME" != "$prefix" && \ 8696test -d "$HOME" && \ 8697(test $prefix = NONE || test -d $prefix) && { 8698 test -n "$verbose" && echo " ... testing for include-directories under $HOME" 8699 test -d $HOME/include && cf_search="$cf_search $HOME/include" 8700 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8" 8701 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include" 8702 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include" 8703 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8" 8704} 8705 8706test "$includedir" != NONE && \ 8707test "$includedir" != "/usr/include" && \ 8708test -d "$includedir" && { 8709 test -d $includedir && cf_search="$cf_search $includedir" 8710 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8" 8711} 8712 8713test "$oldincludedir" != NONE && \ 8714test "$oldincludedir" != "/usr/include" && \ 8715test -d "$oldincludedir" && { 8716 test -d $oldincludedir && cf_search="$cf_search $oldincludedir" 8717 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8" 8718} 8719 8720cf_search="$cf_search $cf_header_path_list" 8721 8722 for cf_cv_header_path_utf8 in $cf_search 8723 do 8724 if test -d $cf_cv_header_path_utf8 ; then 8725 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6 8726 8727echo "${as_me-configure}:8727: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5 8728 8729 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8" 8730 cat >conftest.$ac_ext <<_ACEOF 8731#line 8731 "configure" 8732#include "confdefs.h" 8733 8734#include <libutf8.h> 8735int 8736main () 8737{ 8738putwc(0,0); 8739 ; 8740 return 0; 8741} 8742_ACEOF 8743rm -f conftest.$ac_objext 8744if { (eval echo "$as_me:8744: \"$ac_compile\"") >&5 8745 (eval $ac_compile) 2>&5 8746 ac_status=$? 8747 echo "$as_me:8747: \$? = $ac_status" >&5 8748 (exit $ac_status); } && 8749 { ac_try='test -s conftest.$ac_objext' 8750 { (eval echo "$as_me:8750: \"$ac_try\"") >&5 8751 (eval $ac_try) 2>&5 8752 ac_status=$? 8753 echo "$as_me:8753: \$? = $ac_status" >&5 8754 (exit $ac_status); }; }; then 8755 8756 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6 8757 8758echo "${as_me-configure}:8758: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5 8759 8760 cf_cv_find_linkage_utf8=maybe 8761 cf_test_CPPFLAGS="$CPPFLAGS" 8762 break 8763else 8764 echo "$as_me: failed program was:" >&5 8765cat conftest.$ac_ext >&5 8766 8767 CPPFLAGS="$cf_save_CPPFLAGS" 8768 8769fi 8770rm -f conftest.$ac_objext conftest.$ac_ext 8771 fi 8772 done 8773 8774 if test "$cf_cv_find_linkage_utf8" = maybe ; then 8775 8776echo "${as_me-configure}:8776: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5 8777 8778 cf_save_LIBS="$LIBS" 8779 cf_save_LDFLAGS="$LDFLAGS" 8780 8781 if test "$cf_cv_find_linkage_utf8" != yes ; then 8782 8783cf_search= 8784cf_library_path_list="" 8785if test -n "${LDFLAGS}${LIBS}" ; then 8786 for cf_library_path in $LDFLAGS $LIBS 8787 do 8788 case $cf_library_path in #(vi 8789 -L*) 8790 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'` 8791 8792test "$cf_library_path" != "NONE" && \ 8793test -d "$cf_library_path" && \ 8794 { 8795 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path" 8796 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib" 8797 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8" 8798 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib" 8799 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib" 8800 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8" 8801} 8802 8803 cf_library_path_list="$cf_library_path_list $cf_search" 8804 ;; 8805 esac 8806 done 8807fi 8808 8809cf_search= 8810 8811test "/usr" != "$prefix" && \ 8812test -d "/usr" && \ 8813(test $prefix = NONE || test -d $prefix) && { 8814 test -n "$verbose" && echo " ... testing for lib-directories under /usr" 8815 test -d /usr/lib && cf_search="$cf_search /usr/lib" 8816 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8" 8817 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib" 8818 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib" 8819 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8" 8820} 8821 8822test "$prefix" != "NONE" && \ 8823test -d "$prefix" && \ 8824 { 8825 test -n "$verbose" && echo " ... testing for lib-directories under $prefix" 8826 test -d $prefix/lib && cf_search="$cf_search $prefix/lib" 8827 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8" 8828 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib" 8829 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib" 8830 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8" 8831} 8832 8833test "/usr/local" != "$prefix" && \ 8834test -d "/usr/local" && \ 8835(test $prefix = NONE || test -d $prefix) && { 8836 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local" 8837 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib" 8838 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8" 8839 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib" 8840 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib" 8841 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8" 8842} 8843 8844test "/opt" != "$prefix" && \ 8845test -d "/opt" && \ 8846(test $prefix = NONE || test -d $prefix) && { 8847 test -n "$verbose" && echo " ... testing for lib-directories under /opt" 8848 test -d /opt/lib && cf_search="$cf_search /opt/lib" 8849 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8" 8850 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib" 8851 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib" 8852 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8" 8853} 8854 8855test "$HOME" != "$prefix" && \ 8856test -d "$HOME" && \ 8857(test $prefix = NONE || test -d $prefix) && { 8858 test -n "$verbose" && echo " ... testing for lib-directories under $HOME" 8859 test -d $HOME/lib && cf_search="$cf_search $HOME/lib" 8860 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8" 8861 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib" 8862 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib" 8863 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8" 8864} 8865 8866cf_search="$cf_library_path_list $cf_search" 8867 8868 for cf_cv_library_path_utf8 in $cf_search 8869 do 8870 if test -d $cf_cv_library_path_utf8 ; then 8871 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6 8872 8873echo "${as_me-configure}:8873: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5 8874 8875 CPPFLAGS="$cf_test_CPPFLAGS" 8876 LIBS="-lutf8 $cf_save_LIBS" 8877 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8" 8878 cat >conftest.$ac_ext <<_ACEOF 8879#line 8879 "configure" 8880#include "confdefs.h" 8881 8882#include <libutf8.h> 8883int 8884main () 8885{ 8886putwc(0,0); 8887 ; 8888 return 0; 8889} 8890_ACEOF 8891rm -f conftest.$ac_objext conftest$ac_exeext 8892if { (eval echo "$as_me:8892: \"$ac_link\"") >&5 8893 (eval $ac_link) 2>&5 8894 ac_status=$? 8895 echo "$as_me:8895: \$? = $ac_status" >&5 8896 (exit $ac_status); } && 8897 { ac_try='test -s conftest$ac_exeext' 8898 { (eval echo "$as_me:8898: \"$ac_try\"") >&5 8899 (eval $ac_try) 2>&5 8900 ac_status=$? 8901 echo "$as_me:8901: \$? = $ac_status" >&5 8902 (exit $ac_status); }; }; then 8903 8904 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6 8905 8906echo "${as_me-configure}:8906: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5 8907 8908 cf_cv_find_linkage_utf8=yes 8909 cf_cv_library_file_utf8="-lutf8" 8910 break 8911else 8912 echo "$as_me: failed program was:" >&5 8913cat conftest.$ac_ext >&5 8914 8915 CPPFLAGS="$cf_save_CPPFLAGS" 8916 LIBS="$cf_save_LIBS" 8917 LDFLAGS="$cf_save_LDFLAGS" 8918 8919fi 8920rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8921 fi 8922 done 8923 LIBS="$cf_save_LIBS" 8924 CPPFLAGS="$cf_save_CPPFLAGS" 8925 LDFLAGS="$cf_save_LDFLAGS" 8926 fi 8927 8928 else 8929 cf_cv_find_linkage_utf8=no 8930 fi 8931 8932fi 8933rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8934 8935fi 8936rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8937 8938if test "$cf_cv_find_linkage_utf8" = yes ; then 8939cf_cv_utf8_lib=add-on 8940else 8941cf_cv_utf8_lib=no 8942fi 8943 8944fi 8945rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8946fi 8947echo "$as_me:8947: result: $cf_cv_utf8_lib" >&5 8948echo "${ECHO_T}$cf_cv_utf8_lib" >&6 8949 8950# HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between 8951# ncurses/ncursesw: 8952if test "$cf_cv_utf8_lib" = "add-on" ; then 8953 cat >>confdefs.h <<\EOF 8954#define HAVE_LIBUTF8_H 1 8955EOF 8956 8957if test -n "$cf_cv_header_path_utf8" ; then 8958 for cf_add_incdir in $cf_cv_header_path_utf8 8959 do 8960 while test $cf_add_incdir != /usr/include 8961 do 8962 if test -d $cf_add_incdir 8963 then 8964 cf_have_incdir=no 8965 if test -n "$CFLAGS$CPPFLAGS" ; then 8966 # a loop is needed to ensure we can add subdirs of existing dirs 8967 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 8968 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 8969 cf_have_incdir=yes; break 8970 fi 8971 done 8972 fi 8973 8974 if test "$cf_have_incdir" = no ; then 8975 if test "$cf_add_incdir" = /usr/local/include ; then 8976 if test "$GCC" = yes 8977 then 8978 cf_save_CPPFLAGS=$CPPFLAGS 8979 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 8980 cat >conftest.$ac_ext <<_ACEOF 8981#line 8981 "configure" 8982#include "confdefs.h" 8983#include <stdio.h> 8984int 8985main () 8986{ 8987printf("Hello") 8988 ; 8989 return 0; 8990} 8991_ACEOF 8992rm -f conftest.$ac_objext 8993if { (eval echo "$as_me:8993: \"$ac_compile\"") >&5 8994 (eval $ac_compile) 2>&5 8995 ac_status=$? 8996 echo "$as_me:8996: \$? = $ac_status" >&5 8997 (exit $ac_status); } && 8998 { ac_try='test -s conftest.$ac_objext' 8999 { (eval echo "$as_me:8999: \"$ac_try\"") >&5 9000 (eval $ac_try) 2>&5 9001 ac_status=$? 9002 echo "$as_me:9002: \$? = $ac_status" >&5 9003 (exit $ac_status); }; }; then 9004 : 9005else 9006 echo "$as_me: failed program was:" >&5 9007cat conftest.$ac_ext >&5 9008cf_have_incdir=yes 9009fi 9010rm -f conftest.$ac_objext conftest.$ac_ext 9011 CPPFLAGS=$cf_save_CPPFLAGS 9012 fi 9013 fi 9014 fi 9015 9016 if test "$cf_have_incdir" = no ; then 9017 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 9018 9019echo "${as_me-configure}:9019: testing adding $cf_add_incdir to include-path ..." 1>&5 9020 9021 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 9022 9023 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 9024 test "$cf_top_incdir" = "$cf_add_incdir" && break 9025 cf_add_incdir="$cf_top_incdir" 9026 else 9027 break 9028 fi 9029 fi 9030 done 9031 done 9032fi 9033 9034if test -n "$cf_cv_library_path_utf8" ; then 9035 for cf_add_libdir in $cf_cv_library_path_utf8 9036 do 9037 if test $cf_add_libdir = /usr/lib ; then 9038 : 9039 elif test -d $cf_add_libdir 9040 then 9041 cf_have_libdir=no 9042 if test -n "$LDFLAGS$LIBS" ; then 9043 # a loop is needed to ensure we can add subdirs of existing dirs 9044 for cf_test_libdir in $LDFLAGS $LIBS ; do 9045 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 9046 cf_have_libdir=yes; break 9047 fi 9048 done 9049 fi 9050 if test "$cf_have_libdir" = no ; then 9051 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 9052 9053echo "${as_me-configure}:9053: testing adding $cf_add_libdir to library-path ..." 1>&5 9054 9055 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 9056 fi 9057 fi 9058 done 9059fi 9060 9061 LIBS="$cf_cv_library_file_utf8 $LIBS" 9062fi 9063 9064 fi 9065 9066# Check whether --with-curses-dir or --without-curses-dir was given. 9067if test "${with_curses_dir+set}" = set; then 9068 withval="$with_curses_dir" 9069 9070if test "x$prefix" != xNONE; then 9071 cf_path_syntax="$prefix" 9072else 9073 cf_path_syntax="$ac_default_prefix" 9074fi 9075 9076case ".$withval" in #(vi 9077.\$\(*\)*|.\'*\'*) #(vi 9078 ;; 9079..|./*|.\\*) #(vi 9080 ;; 9081.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX 9082 ;; 9083.\${*prefix}*) #(vi 9084 eval withval="$withval" 9085 case ".$withval" in #(vi 9086 .NONE/*) 9087 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%` 9088 ;; 9089 esac 9090 ;; #(vi 9091.no|.NONE/*) 9092 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%` 9093 ;; 9094*) 9095 { { echo "$as_me:9095: error: expected a pathname, not \"$withval\"" >&5 9096echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;} 9097 { (exit 1); exit 1; }; } 9098 ;; 9099esac 9100 9101 cf_cv_curses_dir=$withval 9102else 9103 cf_cv_curses_dir=no 9104fi; 9105 9106cf_ncuconfig_root=$use_ncurses 9107 9108echo "Looking for ${cf_ncuconfig_root}-config" 9109for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config 9110do 9111 # Extract the first word of "$ac_prog", so it can be a program name with args. 9112set dummy $ac_prog; ac_word=$2 9113echo "$as_me:9113: checking for $ac_word" >&5 9114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9115if test "${ac_cv_path_NCURSES_CONFIG+set}" = set; then 9116 echo $ECHO_N "(cached) $ECHO_C" >&6 9117else 9118 case $NCURSES_CONFIG in 9119 [\\/]* | ?:[\\/]*) 9120 ac_cv_path_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test with a path. 9121 ;; 9122 *) 9123 ac_save_IFS=$IFS; IFS=$ac_path_separator 9124ac_dummy="$PATH" 9125for ac_dir in $ac_dummy; do 9126 IFS=$ac_save_IFS 9127 test -z "$ac_dir" && ac_dir=. 9128 if $as_executable_p "$ac_dir/$ac_word"; then 9129 ac_cv_path_NCURSES_CONFIG="$ac_dir/$ac_word" 9130 echo "$as_me:9130: found $ac_dir/$ac_word" >&5 9131 break 9132fi 9133done 9134 9135 ;; 9136esac 9137fi 9138NCURSES_CONFIG=$ac_cv_path_NCURSES_CONFIG 9139 9140if test -n "$NCURSES_CONFIG"; then 9141 echo "$as_me:9141: result: $NCURSES_CONFIG" >&5 9142echo "${ECHO_T}$NCURSES_CONFIG" >&6 9143else 9144 echo "$as_me:9144: result: no" >&5 9145echo "${ECHO_T}no" >&6 9146fi 9147 9148 test -n "$NCURSES_CONFIG" && break 9149done 9150test -n "$NCURSES_CONFIG" || NCURSES_CONFIG="none" 9151 9152if test "$NCURSES_CONFIG" != none ; then 9153 9154CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`" 9155LIBS="`$NCURSES_CONFIG --libs` $LIBS" 9156 9157# even with config script, some packages use no-override for curses.h 9158 9159echo "$as_me:9159: checking if we have identified curses headers" >&5 9160echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6 9161if test "${cf_cv_ncurses_header+set}" = set; then 9162 echo $ECHO_N "(cached) $ECHO_C" >&6 9163else 9164 9165cf_cv_ncurses_header=none 9166for cf_header in \ 9167 $use_ncurses/curses.h \ 9168 $use_ncurses/ncurses.h \ 9169 curses.h \ 9170 ncurses.h 9171do 9172cat >conftest.$ac_ext <<_ACEOF 9173#line 9173 "configure" 9174#include "confdefs.h" 9175#include <${cf_header}> 9176int 9177main () 9178{ 9179initscr(); tgoto("?", 0,0) 9180 ; 9181 return 0; 9182} 9183_ACEOF 9184rm -f conftest.$ac_objext 9185if { (eval echo "$as_me:9185: \"$ac_compile\"") >&5 9186 (eval $ac_compile) 2>&5 9187 ac_status=$? 9188 echo "$as_me:9188: \$? = $ac_status" >&5 9189 (exit $ac_status); } && 9190 { ac_try='test -s conftest.$ac_objext' 9191 { (eval echo "$as_me:9191: \"$ac_try\"") >&5 9192 (eval $ac_try) 2>&5 9193 ac_status=$? 9194 echo "$as_me:9194: \$? = $ac_status" >&5 9195 (exit $ac_status); }; }; then 9196 cf_cv_ncurses_header=$cf_header; break 9197else 9198 echo "$as_me: failed program was:" >&5 9199cat conftest.$ac_ext >&5 9200fi 9201rm -f conftest.$ac_objext conftest.$ac_ext 9202done 9203 9204fi 9205echo "$as_me:9205: result: $cf_cv_ncurses_header" >&5 9206echo "${ECHO_T}$cf_cv_ncurses_header" >&6 9207 9208if test "$cf_cv_ncurses_header" = none ; then 9209 { { echo "$as_me:9209: error: No curses header-files found" >&5 9210echo "$as_me: error: No curses header-files found" >&2;} 9211 { (exit 1); exit 1; }; } 9212fi 9213 9214# cheat, to get the right #define's for HAVE_NCURSES_H, etc. 9215 9216for ac_header in $cf_cv_ncurses_header 9217do 9218as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9219echo "$as_me:9219: checking for $ac_header" >&5 9220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9221if eval "test \"\${$as_ac_Header+set}\" = set"; then 9222 echo $ECHO_N "(cached) $ECHO_C" >&6 9223else 9224 cat >conftest.$ac_ext <<_ACEOF 9225#line 9225 "configure" 9226#include "confdefs.h" 9227#include <$ac_header> 9228_ACEOF 9229if { (eval echo "$as_me:9229: \"$ac_cpp conftest.$ac_ext\"") >&5 9230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9231 ac_status=$? 9232 egrep -v '^ *\+' conftest.er1 >conftest.err 9233 rm -f conftest.er1 9234 cat conftest.err >&5 9235 echo "$as_me:9235: \$? = $ac_status" >&5 9236 (exit $ac_status); } >/dev/null; then 9237 if test -s conftest.err; then 9238 ac_cpp_err=$ac_c_preproc_warn_flag 9239 else 9240 ac_cpp_err= 9241 fi 9242else 9243 ac_cpp_err=yes 9244fi 9245if test -z "$ac_cpp_err"; then 9246 eval "$as_ac_Header=yes" 9247else 9248 echo "$as_me: failed program was:" >&5 9249 cat conftest.$ac_ext >&5 9250 eval "$as_ac_Header=no" 9251fi 9252rm -f conftest.err conftest.$ac_ext 9253fi 9254echo "$as_me:9254: result: `eval echo '${'$as_ac_Header'}'`" >&5 9255echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9256if test `eval echo '${'$as_ac_Header'}'` = yes; then 9257 cat >>confdefs.h <<EOF 9258#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9259EOF 9260 9261fi 9262done 9263 9264cat >>confdefs.h <<\EOF 9265#define NCURSES 1 9266EOF 9267 9268cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 9269 9270cat >>confdefs.h <<EOF 9271#define $cf_nculib_ROOT 1 9272EOF 9273 9274cf_cv_ncurses_version=`$NCURSES_CONFIG --version` 9275 9276else 9277 9278cf_ncuhdr_root=$use_ncurses 9279 9280test -n "$cf_cv_curses_dir" && \ 9281test "$cf_cv_curses_dir" != "no" && { \ 9282 9283if test -n "$cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then 9284 for cf_add_incdir in $cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root 9285 do 9286 while test $cf_add_incdir != /usr/include 9287 do 9288 if test -d $cf_add_incdir 9289 then 9290 cf_have_incdir=no 9291 if test -n "$CFLAGS$CPPFLAGS" ; then 9292 # a loop is needed to ensure we can add subdirs of existing dirs 9293 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 9294 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 9295 cf_have_incdir=yes; break 9296 fi 9297 done 9298 fi 9299 9300 if test "$cf_have_incdir" = no ; then 9301 if test "$cf_add_incdir" = /usr/local/include ; then 9302 if test "$GCC" = yes 9303 then 9304 cf_save_CPPFLAGS=$CPPFLAGS 9305 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 9306 cat >conftest.$ac_ext <<_ACEOF 9307#line 9307 "configure" 9308#include "confdefs.h" 9309#include <stdio.h> 9310int 9311main () 9312{ 9313printf("Hello") 9314 ; 9315 return 0; 9316} 9317_ACEOF 9318rm -f conftest.$ac_objext 9319if { (eval echo "$as_me:9319: \"$ac_compile\"") >&5 9320 (eval $ac_compile) 2>&5 9321 ac_status=$? 9322 echo "$as_me:9322: \$? = $ac_status" >&5 9323 (exit $ac_status); } && 9324 { ac_try='test -s conftest.$ac_objext' 9325 { (eval echo "$as_me:9325: \"$ac_try\"") >&5 9326 (eval $ac_try) 2>&5 9327 ac_status=$? 9328 echo "$as_me:9328: \$? = $ac_status" >&5 9329 (exit $ac_status); }; }; then 9330 : 9331else 9332 echo "$as_me: failed program was:" >&5 9333cat conftest.$ac_ext >&5 9334cf_have_incdir=yes 9335fi 9336rm -f conftest.$ac_objext conftest.$ac_ext 9337 CPPFLAGS=$cf_save_CPPFLAGS 9338 fi 9339 fi 9340 fi 9341 9342 if test "$cf_have_incdir" = no ; then 9343 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 9344 9345echo "${as_me-configure}:9345: testing adding $cf_add_incdir to include-path ..." 1>&5 9346 9347 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 9348 9349 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 9350 test "$cf_top_incdir" = "$cf_add_incdir" && break 9351 cf_add_incdir="$cf_top_incdir" 9352 else 9353 break 9354 fi 9355 fi 9356 done 9357 done 9358fi 9359 9360} 9361 9362echo "$as_me:9362: checking for $cf_ncuhdr_root header in include-path" >&5 9363echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6 9364if test "${cf_cv_ncurses_h+set}" = set; then 9365 echo $ECHO_N "(cached) $ECHO_C" >&6 9366else 9367 9368 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h" 9369 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h" 9370 for cf_header in $cf_header_list 9371 do 9372 9373 cat >conftest.$ac_ext <<_ACEOF 9374#line 9374 "configure" 9375#include "confdefs.h" 9376 9377#include <$cf_header> 9378int 9379main () 9380{ 9381 9382#ifdef NCURSES_VERSION 9383 9384printf("%s\n", NCURSES_VERSION); 9385#else 9386#ifdef __NCURSES_H 9387printf("old\n"); 9388#else 9389 make an error 9390#endif 9391#endif 9392 9393 ; 9394 return 0; 9395} 9396_ACEOF 9397rm -f conftest.$ac_objext 9398if { (eval echo "$as_me:9398: \"$ac_compile\"") >&5 9399 (eval $ac_compile) 2>&5 9400 ac_status=$? 9401 echo "$as_me:9401: \$? = $ac_status" >&5 9402 (exit $ac_status); } && 9403 { ac_try='test -s conftest.$ac_objext' 9404 { (eval echo "$as_me:9404: \"$ac_try\"") >&5 9405 (eval $ac_try) 2>&5 9406 ac_status=$? 9407 echo "$as_me:9407: \$? = $ac_status" >&5 9408 (exit $ac_status); }; }; then 9409 cf_cv_ncurses_h=$cf_header 9410 9411else 9412 echo "$as_me: failed program was:" >&5 9413cat conftest.$ac_ext >&5 9414cf_cv_ncurses_h=no 9415fi 9416rm -f conftest.$ac_objext conftest.$ac_ext 9417 9418 test "$cf_cv_ncurses_h" != no && break 9419 done 9420 9421fi 9422echo "$as_me:9422: result: $cf_cv_ncurses_h" >&5 9423echo "${ECHO_T}$cf_cv_ncurses_h" >&6 9424 9425if test "$cf_cv_ncurses_h" != no ; then 9426 cf_cv_ncurses_header=$cf_cv_ncurses_h 9427else 9428 9429echo "$as_me:9429: checking for $cf_ncuhdr_root include-path" >&5 9430echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6 9431if test "${cf_cv_ncurses_h2+set}" = set; then 9432 echo $ECHO_N "(cached) $ECHO_C" >&6 9433else 9434 9435 test -n "$verbose" && echo 9436 9437cf_search= 9438 9439# collect the current set of include-directories from compiler flags 9440cf_header_path_list="" 9441if test -n "${CFLAGS}${CPPFLAGS}" ; then 9442 for cf_header_path in $CPPFLAGS $CFLAGS 9443 do 9444 case $cf_header_path in #(vi 9445 -I*) 9446 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'` 9447 cf_header_path_list="$cf_header_path_list $cf_header_path" 9448 ;; 9449 esac 9450 done 9451fi 9452 9453# add the variations for the package we are looking for 9454 9455cf_search= 9456 9457test "/usr" != "$prefix" && \ 9458test -d "/usr" && \ 9459(test $prefix = NONE || test -d $prefix) && { 9460 test -n "$verbose" && echo " ... testing for include-directories under /usr" 9461 test -d /usr/include && cf_search="$cf_search /usr/include" 9462 test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root" 9463 test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include" 9464 test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include" 9465 test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root" 9466} 9467 9468test "$prefix" != "NONE" && \ 9469test -d "$prefix" && \ 9470 { 9471 test -n "$verbose" && echo " ... testing for include-directories under $prefix" 9472 test -d $prefix/include && cf_search="$cf_search $prefix/include" 9473 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root" 9474 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include" 9475 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include" 9476 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root" 9477} 9478 9479test "/usr/local" != "$prefix" && \ 9480test -d "/usr/local" && \ 9481(test $prefix = NONE || test -d $prefix) && { 9482 test -n "$verbose" && echo " ... testing for include-directories under /usr/local" 9483 test -d /usr/local/include && cf_search="$cf_search /usr/local/include" 9484 test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root" 9485 test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include" 9486 test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include" 9487 test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root" 9488} 9489 9490test "/opt" != "$prefix" && \ 9491test -d "/opt" && \ 9492(test $prefix = NONE || test -d $prefix) && { 9493 test -n "$verbose" && echo " ... testing for include-directories under /opt" 9494 test -d /opt/include && cf_search="$cf_search /opt/include" 9495 test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root" 9496 test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include" 9497 test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include" 9498 test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root" 9499} 9500 9501test "$HOME" != "$prefix" && \ 9502test -d "$HOME" && \ 9503(test $prefix = NONE || test -d $prefix) && { 9504 test -n "$verbose" && echo " ... testing for include-directories under $HOME" 9505 test -d $HOME/include && cf_search="$cf_search $HOME/include" 9506 test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root" 9507 test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include" 9508 test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include" 9509 test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root" 9510} 9511 9512test "$includedir" != NONE && \ 9513test "$includedir" != "/usr/include" && \ 9514test -d "$includedir" && { 9515 test -d $includedir && cf_search="$cf_search $includedir" 9516 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root" 9517} 9518 9519test "$oldincludedir" != NONE && \ 9520test "$oldincludedir" != "/usr/include" && \ 9521test -d "$oldincludedir" && { 9522 test -d $oldincludedir && cf_search="$cf_search $oldincludedir" 9523 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root" 9524} 9525 9526cf_search="$cf_search $cf_header_path_list" 9527 9528 test -n "$verbose" && echo search path $cf_search 9529 cf_save2_CPPFLAGS="$CPPFLAGS" 9530 for cf_incdir in $cf_search 9531 do 9532 9533if test -n "$cf_incdir" ; then 9534 for cf_add_incdir in $cf_incdir 9535 do 9536 while test $cf_add_incdir != /usr/include 9537 do 9538 if test -d $cf_add_incdir 9539 then 9540 cf_have_incdir=no 9541 if test -n "$CFLAGS$CPPFLAGS" ; then 9542 # a loop is needed to ensure we can add subdirs of existing dirs 9543 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 9544 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 9545 cf_have_incdir=yes; break 9546 fi 9547 done 9548 fi 9549 9550 if test "$cf_have_incdir" = no ; then 9551 if test "$cf_add_incdir" = /usr/local/include ; then 9552 if test "$GCC" = yes 9553 then 9554 cf_save_CPPFLAGS=$CPPFLAGS 9555 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 9556 cat >conftest.$ac_ext <<_ACEOF 9557#line 9557 "configure" 9558#include "confdefs.h" 9559#include <stdio.h> 9560int 9561main () 9562{ 9563printf("Hello") 9564 ; 9565 return 0; 9566} 9567_ACEOF 9568rm -f conftest.$ac_objext 9569if { (eval echo "$as_me:9569: \"$ac_compile\"") >&5 9570 (eval $ac_compile) 2>&5 9571 ac_status=$? 9572 echo "$as_me:9572: \$? = $ac_status" >&5 9573 (exit $ac_status); } && 9574 { ac_try='test -s conftest.$ac_objext' 9575 { (eval echo "$as_me:9575: \"$ac_try\"") >&5 9576 (eval $ac_try) 2>&5 9577 ac_status=$? 9578 echo "$as_me:9578: \$? = $ac_status" >&5 9579 (exit $ac_status); }; }; then 9580 : 9581else 9582 echo "$as_me: failed program was:" >&5 9583cat conftest.$ac_ext >&5 9584cf_have_incdir=yes 9585fi 9586rm -f conftest.$ac_objext conftest.$ac_ext 9587 CPPFLAGS=$cf_save_CPPFLAGS 9588 fi 9589 fi 9590 fi 9591 9592 if test "$cf_have_incdir" = no ; then 9593 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 9594 9595echo "${as_me-configure}:9595: testing adding $cf_add_incdir to include-path ..." 1>&5 9596 9597 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 9598 9599 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 9600 test "$cf_top_incdir" = "$cf_add_incdir" && break 9601 cf_add_incdir="$cf_top_incdir" 9602 else 9603 break 9604 fi 9605 fi 9606 done 9607 done 9608fi 9609 9610 for cf_header in \ 9611 ncurses.h \ 9612 curses.h 9613 do 9614 9615 cat >conftest.$ac_ext <<_ACEOF 9616#line 9616 "configure" 9617#include "confdefs.h" 9618 9619#include <$cf_header> 9620int 9621main () 9622{ 9623 9624#ifdef NCURSES_VERSION 9625 9626printf("%s\n", NCURSES_VERSION); 9627#else 9628#ifdef __NCURSES_H 9629printf("old\n"); 9630#else 9631 make an error 9632#endif 9633#endif 9634 9635 ; 9636 return 0; 9637} 9638_ACEOF 9639rm -f conftest.$ac_objext 9640if { (eval echo "$as_me:9640: \"$ac_compile\"") >&5 9641 (eval $ac_compile) 2>&5 9642 ac_status=$? 9643 echo "$as_me:9643: \$? = $ac_status" >&5 9644 (exit $ac_status); } && 9645 { ac_try='test -s conftest.$ac_objext' 9646 { (eval echo "$as_me:9646: \"$ac_try\"") >&5 9647 (eval $ac_try) 2>&5 9648 ac_status=$? 9649 echo "$as_me:9649: \$? = $ac_status" >&5 9650 (exit $ac_status); }; }; then 9651 cf_cv_ncurses_h2=$cf_header 9652 9653else 9654 echo "$as_me: failed program was:" >&5 9655cat conftest.$ac_ext >&5 9656cf_cv_ncurses_h2=no 9657fi 9658rm -f conftest.$ac_objext conftest.$ac_ext 9659 9660 if test "$cf_cv_ncurses_h2" != no ; then 9661 cf_cv_ncurses_h2=$cf_incdir/$cf_header 9662 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6 9663 break 9664 fi 9665 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6 9666 done 9667 CPPFLAGS="$cf_save2_CPPFLAGS" 9668 test "$cf_cv_ncurses_h2" != no && break 9669 done 9670 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:9670: error: not found" >&5 9671echo "$as_me: error: not found" >&2;} 9672 { (exit 1); exit 1; }; } 9673 9674fi 9675echo "$as_me:9675: result: $cf_cv_ncurses_h2" >&5 9676echo "${ECHO_T}$cf_cv_ncurses_h2" >&6 9677 9678 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'` 9679 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2` 9680 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then 9681 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header 9682 fi 9683 9684if test -n "$cf_1st_incdir" ; then 9685 for cf_add_incdir in $cf_1st_incdir 9686 do 9687 while test $cf_add_incdir != /usr/include 9688 do 9689 if test -d $cf_add_incdir 9690 then 9691 cf_have_incdir=no 9692 if test -n "$CFLAGS$CPPFLAGS" ; then 9693 # a loop is needed to ensure we can add subdirs of existing dirs 9694 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 9695 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 9696 cf_have_incdir=yes; break 9697 fi 9698 done 9699 fi 9700 9701 if test "$cf_have_incdir" = no ; then 9702 if test "$cf_add_incdir" = /usr/local/include ; then 9703 if test "$GCC" = yes 9704 then 9705 cf_save_CPPFLAGS=$CPPFLAGS 9706 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 9707 cat >conftest.$ac_ext <<_ACEOF 9708#line 9708 "configure" 9709#include "confdefs.h" 9710#include <stdio.h> 9711int 9712main () 9713{ 9714printf("Hello") 9715 ; 9716 return 0; 9717} 9718_ACEOF 9719rm -f conftest.$ac_objext 9720if { (eval echo "$as_me:9720: \"$ac_compile\"") >&5 9721 (eval $ac_compile) 2>&5 9722 ac_status=$? 9723 echo "$as_me:9723: \$? = $ac_status" >&5 9724 (exit $ac_status); } && 9725 { ac_try='test -s conftest.$ac_objext' 9726 { (eval echo "$as_me:9726: \"$ac_try\"") >&5 9727 (eval $ac_try) 2>&5 9728 ac_status=$? 9729 echo "$as_me:9729: \$? = $ac_status" >&5 9730 (exit $ac_status); }; }; then 9731 : 9732else 9733 echo "$as_me: failed program was:" >&5 9734cat conftest.$ac_ext >&5 9735cf_have_incdir=yes 9736fi 9737rm -f conftest.$ac_objext conftest.$ac_ext 9738 CPPFLAGS=$cf_save_CPPFLAGS 9739 fi 9740 fi 9741 fi 9742 9743 if test "$cf_have_incdir" = no ; then 9744 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 9745 9746echo "${as_me-configure}:9746: testing adding $cf_add_incdir to include-path ..." 1>&5 9747 9748 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 9749 9750 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` 9751 test "$cf_top_incdir" = "$cf_add_incdir" && break 9752 cf_add_incdir="$cf_top_incdir" 9753 else 9754 break 9755 fi 9756 fi 9757 done 9758 done 9759fi 9760 9761fi 9762 9763# Set definitions to allow ifdef'ing for ncurses.h 9764 9765case $cf_cv_ncurses_header in # (vi 9766*ncurses.h) 9767 cat >>confdefs.h <<\EOF 9768#define HAVE_NCURSES_H 1 9769EOF 9770 9771 ;; 9772esac 9773 9774case $cf_cv_ncurses_header in # (vi 9775ncurses/curses.h|ncurses/ncurses.h) 9776 cat >>confdefs.h <<\EOF 9777#define HAVE_NCURSES_NCURSES_H 1 9778EOF 9779 9780 ;; 9781ncursesw/curses.h|ncursesw/ncurses.h) 9782 cat >>confdefs.h <<\EOF 9783#define HAVE_NCURSESW_NCURSES_H 1 9784EOF 9785 9786 ;; 9787esac 9788 9789echo "$as_me:9789: checking for terminfo header" >&5 9790echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6 9791if test "${cf_cv_term_header+set}" = set; then 9792 echo $ECHO_N "(cached) $ECHO_C" >&6 9793else 9794 9795case ${cf_cv_ncurses_header} in #(vi 9796*/ncurses.h|*/ncursesw.h) #(vi 9797 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'` 9798 ;; 9799*) 9800 cf_term_header=term.h 9801 ;; 9802esac 9803 9804for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h" 9805do 9806cat >conftest.$ac_ext <<_ACEOF 9807#line 9807 "configure" 9808#include "confdefs.h" 9809#include <stdio.h> 9810#include <${cf_cv_ncurses_header-curses.h}> 9811#include <$cf_test> 9812 9813int 9814main () 9815{ 9816int x = auto_left_margin 9817 ; 9818 return 0; 9819} 9820_ACEOF 9821rm -f conftest.$ac_objext 9822if { (eval echo "$as_me:9822: \"$ac_compile\"") >&5 9823 (eval $ac_compile) 2>&5 9824 ac_status=$? 9825 echo "$as_me:9825: \$? = $ac_status" >&5 9826 (exit $ac_status); } && 9827 { ac_try='test -s conftest.$ac_objext' 9828 { (eval echo "$as_me:9828: \"$ac_try\"") >&5 9829 (eval $ac_try) 2>&5 9830 ac_status=$? 9831 echo "$as_me:9831: \$? = $ac_status" >&5 9832 (exit $ac_status); }; }; then 9833 9834 cf_cv_term_header="$cf_test" 9835else 9836 echo "$as_me: failed program was:" >&5 9837cat conftest.$ac_ext >&5 9838 9839 cf_cv_term_header=unknown 9840 9841fi 9842rm -f conftest.$ac_objext conftest.$ac_ext 9843 test "$cf_cv_term_header" != unknown && break 9844done 9845 9846fi 9847echo "$as_me:9847: result: $cf_cv_term_header" >&5 9848echo "${ECHO_T}$cf_cv_term_header" >&6 9849 9850# Set definitions to allow ifdef'ing to accommodate subdirectories 9851 9852case $cf_cv_term_header in # (vi 9853*term.h) 9854 cat >>confdefs.h <<\EOF 9855#define HAVE_TERM_H 1 9856EOF 9857 9858 ;; 9859esac 9860 9861case $cf_cv_term_header in # (vi 9862ncurses/term.h) #(vi 9863 cat >>confdefs.h <<\EOF 9864#define HAVE_NCURSES_TERM_H 1 9865EOF 9866 9867 ;; 9868ncursesw/term.h) 9869 cat >>confdefs.h <<\EOF 9870#define HAVE_NCURSESW_TERM_H 1 9871EOF 9872 9873 ;; 9874esac 9875 9876# some applications need this, but should check for NCURSES_VERSION 9877cat >>confdefs.h <<\EOF 9878#define NCURSES 1 9879EOF 9880 9881echo "$as_me:9881: checking for ncurses version" >&5 9882echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6 9883if test "${cf_cv_ncurses_version+set}" = set; then 9884 echo $ECHO_N "(cached) $ECHO_C" >&6 9885else 9886 9887 cf_cv_ncurses_version=no 9888 cf_tempfile=out$$ 9889 rm -f $cf_tempfile 9890 if test "$cross_compiling" = yes; then 9891 9892 # This will not work if the preprocessor splits the line after the 9893 # Autoconf token. The 'unproto' program does that. 9894 cat > conftest.$ac_ext <<EOF 9895#include <${cf_cv_ncurses_header-curses.h}> 9896#undef Autoconf 9897#ifdef NCURSES_VERSION 9898Autoconf NCURSES_VERSION 9899#else 9900#ifdef __NCURSES_H 9901Autoconf "old" 9902#endif 9903; 9904#endif 9905EOF 9906 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out" 9907 { (eval echo "$as_me:9907: \"$cf_try\"") >&5 9908 (eval $cf_try) 2>&5 9909 ac_status=$? 9910 echo "$as_me:9910: \$? = $ac_status" >&5 9911 (exit $ac_status); } 9912 if test -f conftest.out ; then 9913 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'` 9914 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out" 9915 rm -f conftest.out 9916 fi 9917 9918else 9919 cat >conftest.$ac_ext <<_ACEOF 9920#line 9920 "configure" 9921#include "confdefs.h" 9922 9923#include <${cf_cv_ncurses_header-curses.h}> 9924#include <stdio.h> 9925int main() 9926{ 9927 FILE *fp = fopen("$cf_tempfile", "w"); 9928#ifdef NCURSES_VERSION 9929# ifdef NCURSES_VERSION_PATCH 9930 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH); 9931# else 9932 fprintf(fp, "%s\n", NCURSES_VERSION); 9933# endif 9934#else 9935# ifdef __NCURSES_H 9936 fprintf(fp, "old\n"); 9937# else 9938 make an error 9939# endif 9940#endif 9941 ${cf_cv_main_return-return}(0); 9942} 9943_ACEOF 9944rm -f conftest$ac_exeext 9945if { (eval echo "$as_me:9945: \"$ac_link\"") >&5 9946 (eval $ac_link) 2>&5 9947 ac_status=$? 9948 echo "$as_me:9948: \$? = $ac_status" >&5 9949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9950 { (eval echo "$as_me:9950: \"$ac_try\"") >&5 9951 (eval $ac_try) 2>&5 9952 ac_status=$? 9953 echo "$as_me:9953: \$? = $ac_status" >&5 9954 (exit $ac_status); }; }; then 9955 9956 cf_cv_ncurses_version=`cat $cf_tempfile` 9957else 9958 echo "$as_me: program exited with status $ac_status" >&5 9959echo "$as_me: failed program was:" >&5 9960cat conftest.$ac_ext >&5 9961fi 9962rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9963fi 9964 rm -f $cf_tempfile 9965 9966fi 9967echo "$as_me:9967: result: $cf_cv_ncurses_version" >&5 9968echo "${ECHO_T}$cf_cv_ncurses_version" >&6 9969test "$cf_cv_ncurses_version" = no || cat >>confdefs.h <<\EOF 9970#define NCURSES 1 9971EOF 9972 9973cf_nculib_root=$use_ncurses 9974 # This works, except for the special case where we find gpm, but 9975 # ncurses is in a nonstandard location via $LIBS, and we really want 9976 # to link gpm. 9977cf_ncurses_LIBS="" 9978cf_ncurses_SAVE="$LIBS" 9979echo "$as_me:9979: checking for Gpm_Open in -lgpm" >&5 9980echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6 9981if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then 9982 echo $ECHO_N "(cached) $ECHO_C" >&6 9983else 9984 ac_check_lib_save_LIBS=$LIBS 9985LIBS="-lgpm $LIBS" 9986cat >conftest.$ac_ext <<_ACEOF 9987#line 9987 "configure" 9988#include "confdefs.h" 9989 9990/* Override any gcc2 internal prototype to avoid an error. */ 9991#ifdef __cplusplus 9992extern "C" 9993#endif 9994/* We use char because int might match the return type of a gcc2 9995 builtin and then its argument prototype would still apply. */ 9996char Gpm_Open (); 9997int 9998main () 9999{ 10000Gpm_Open (); 10001 ; 10002 return 0; 10003} 10004_ACEOF 10005rm -f conftest.$ac_objext conftest$ac_exeext 10006if { (eval echo "$as_me:10006: \"$ac_link\"") >&5 10007 (eval $ac_link) 2>&5 10008 ac_status=$? 10009 echo "$as_me:10009: \$? = $ac_status" >&5 10010 (exit $ac_status); } && 10011 { ac_try='test -s conftest$ac_exeext' 10012 { (eval echo "$as_me:10012: \"$ac_try\"") >&5 10013 (eval $ac_try) 2>&5 10014 ac_status=$? 10015 echo "$as_me:10015: \$? = $ac_status" >&5 10016 (exit $ac_status); }; }; then 10017 ac_cv_lib_gpm_Gpm_Open=yes 10018else 10019 echo "$as_me: failed program was:" >&5 10020cat conftest.$ac_ext >&5 10021ac_cv_lib_gpm_Gpm_Open=no 10022fi 10023rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10024LIBS=$ac_check_lib_save_LIBS 10025fi 10026echo "$as_me:10026: result: $ac_cv_lib_gpm_Gpm_Open" >&5 10027echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6 10028if test $ac_cv_lib_gpm_Gpm_Open = yes; then 10029 echo "$as_me:10029: checking for initscr in -lgpm" >&5 10030echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6 10031if test "${ac_cv_lib_gpm_initscr+set}" = set; then 10032 echo $ECHO_N "(cached) $ECHO_C" >&6 10033else 10034 ac_check_lib_save_LIBS=$LIBS 10035LIBS="-lgpm $LIBS" 10036cat >conftest.$ac_ext <<_ACEOF 10037#line 10037 "configure" 10038#include "confdefs.h" 10039 10040/* Override any gcc2 internal prototype to avoid an error. */ 10041#ifdef __cplusplus 10042extern "C" 10043#endif 10044/* We use char because int might match the return type of a gcc2 10045 builtin and then its argument prototype would still apply. */ 10046char initscr (); 10047int 10048main () 10049{ 10050initscr (); 10051 ; 10052 return 0; 10053} 10054_ACEOF 10055rm -f conftest.$ac_objext conftest$ac_exeext 10056if { (eval echo "$as_me:10056: \"$ac_link\"") >&5 10057 (eval $ac_link) 2>&5 10058 ac_status=$? 10059 echo "$as_me:10059: \$? = $ac_status" >&5 10060 (exit $ac_status); } && 10061 { ac_try='test -s conftest$ac_exeext' 10062 { (eval echo "$as_me:10062: \"$ac_try\"") >&5 10063 (eval $ac_try) 2>&5 10064 ac_status=$? 10065 echo "$as_me:10065: \$? = $ac_status" >&5 10066 (exit $ac_status); }; }; then 10067 ac_cv_lib_gpm_initscr=yes 10068else 10069 echo "$as_me: failed program was:" >&5 10070cat conftest.$ac_ext >&5 10071ac_cv_lib_gpm_initscr=no 10072fi 10073rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10074LIBS=$ac_check_lib_save_LIBS 10075fi 10076echo "$as_me:10076: result: $ac_cv_lib_gpm_initscr" >&5 10077echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6 10078if test $ac_cv_lib_gpm_initscr = yes; then 10079 LIBS="$cf_ncurses_SAVE" 10080else 10081 cf_ncurses_LIBS="-lgpm" 10082fi 10083 10084fi 10085 10086case $host_os in #(vi 10087freebsd*) 10088 # This is only necessary if you are linking against an obsolete 10089 # version of ncurses (but it should do no harm, since it's static). 10090 if test "$cf_nculib_root" = ncurses ; then 10091 echo "$as_me:10091: checking for tgoto in -lmytinfo" >&5 10092echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6 10093if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then 10094 echo $ECHO_N "(cached) $ECHO_C" >&6 10095else 10096 ac_check_lib_save_LIBS=$LIBS 10097LIBS="-lmytinfo $LIBS" 10098cat >conftest.$ac_ext <<_ACEOF 10099#line 10099 "configure" 10100#include "confdefs.h" 10101 10102/* Override any gcc2 internal prototype to avoid an error. */ 10103#ifdef __cplusplus 10104extern "C" 10105#endif 10106/* We use char because int might match the return type of a gcc2 10107 builtin and then its argument prototype would still apply. */ 10108char tgoto (); 10109int 10110main () 10111{ 10112tgoto (); 10113 ; 10114 return 0; 10115} 10116_ACEOF 10117rm -f conftest.$ac_objext conftest$ac_exeext 10118if { (eval echo "$as_me:10118: \"$ac_link\"") >&5 10119 (eval $ac_link) 2>&5 10120 ac_status=$? 10121 echo "$as_me:10121: \$? = $ac_status" >&5 10122 (exit $ac_status); } && 10123 { ac_try='test -s conftest$ac_exeext' 10124 { (eval echo "$as_me:10124: \"$ac_try\"") >&5 10125 (eval $ac_try) 2>&5 10126 ac_status=$? 10127 echo "$as_me:10127: \$? = $ac_status" >&5 10128 (exit $ac_status); }; }; then 10129 ac_cv_lib_mytinfo_tgoto=yes 10130else 10131 echo "$as_me: failed program was:" >&5 10132cat conftest.$ac_ext >&5 10133ac_cv_lib_mytinfo_tgoto=no 10134fi 10135rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10136LIBS=$ac_check_lib_save_LIBS 10137fi 10138echo "$as_me:10138: result: $ac_cv_lib_mytinfo_tgoto" >&5 10139echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6 10140if test $ac_cv_lib_mytinfo_tgoto = yes; then 10141 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS" 10142fi 10143 10144 fi 10145 ;; 10146esac 10147 10148LIBS="$cf_ncurses_LIBS $LIBS" 10149 10150if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" ) 10151then 10152 10153if test -n "$cf_cv_curses_dir/lib" ; then 10154 for cf_add_libdir in $cf_cv_curses_dir/lib 10155 do 10156 if test $cf_add_libdir = /usr/lib ; then 10157 : 10158 elif test -d $cf_add_libdir 10159 then 10160 cf_have_libdir=no 10161 if test -n "$LDFLAGS$LIBS" ; then 10162 # a loop is needed to ensure we can add subdirs of existing dirs 10163 for cf_test_libdir in $LDFLAGS $LIBS ; do 10164 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 10165 cf_have_libdir=yes; break 10166 fi 10167 done 10168 fi 10169 if test "$cf_have_libdir" = no ; then 10170 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 10171 10172echo "${as_me-configure}:10172: testing adding $cf_add_libdir to library-path ..." 1>&5 10173 10174 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 10175 fi 10176 fi 10177 done 10178fi 10179 10180 LIBS="-l$cf_nculib_root $LIBS" 10181else 10182 10183 eval 'cf_cv_have_lib_'$cf_nculib_root'=no' 10184 cf_libdir="" 10185 echo "$as_me:10185: checking for initscr" >&5 10186echo $ECHO_N "checking for initscr... $ECHO_C" >&6 10187if test "${ac_cv_func_initscr+set}" = set; then 10188 echo $ECHO_N "(cached) $ECHO_C" >&6 10189else 10190 cat >conftest.$ac_ext <<_ACEOF 10191#line 10191 "configure" 10192#include "confdefs.h" 10193/* System header to define __stub macros and hopefully few prototypes, 10194 which can conflict with char initscr (); below. */ 10195#include <assert.h> 10196/* Override any gcc2 internal prototype to avoid an error. */ 10197#ifdef __cplusplus 10198extern "C" 10199#endif 10200/* We use char because int might match the return type of a gcc2 10201 builtin and then its argument prototype would still apply. */ 10202char initscr (); 10203char (*f) (); 10204 10205int 10206main () 10207{ 10208/* The GNU C library defines this for functions which it implements 10209 to always fail with ENOSYS. Some functions are actually named 10210 something starting with __ and the normal name is an alias. */ 10211#if defined (__stub_initscr) || defined (__stub___initscr) 10212choke me 10213#else 10214f = initscr; 10215#endif 10216 10217 ; 10218 return 0; 10219} 10220_ACEOF 10221rm -f conftest.$ac_objext conftest$ac_exeext 10222if { (eval echo "$as_me:10222: \"$ac_link\"") >&5 10223 (eval $ac_link) 2>&5 10224 ac_status=$? 10225 echo "$as_me:10225: \$? = $ac_status" >&5 10226 (exit $ac_status); } && 10227 { ac_try='test -s conftest$ac_exeext' 10228 { (eval echo "$as_me:10228: \"$ac_try\"") >&5 10229 (eval $ac_try) 2>&5 10230 ac_status=$? 10231 echo "$as_me:10231: \$? = $ac_status" >&5 10232 (exit $ac_status); }; }; then 10233 ac_cv_func_initscr=yes 10234else 10235 echo "$as_me: failed program was:" >&5 10236cat conftest.$ac_ext >&5 10237ac_cv_func_initscr=no 10238fi 10239rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10240fi 10241echo "$as_me:10241: result: $ac_cv_func_initscr" >&5 10242echo "${ECHO_T}$ac_cv_func_initscr" >&6 10243if test $ac_cv_func_initscr = yes; then 10244 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes' 10245else 10246 10247 cf_save_LIBS="$LIBS" 10248 echo "$as_me:10248: checking for initscr in -l$cf_nculib_root" >&5 10249echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6 10250 LIBS="-l$cf_nculib_root $LIBS" 10251 cat >conftest.$ac_ext <<_ACEOF 10252#line 10252 "configure" 10253#include "confdefs.h" 10254#include <${cf_cv_ncurses_header-curses.h}> 10255int 10256main () 10257{ 10258initscr() 10259 ; 10260 return 0; 10261} 10262_ACEOF 10263rm -f conftest.$ac_objext conftest$ac_exeext 10264if { (eval echo "$as_me:10264: \"$ac_link\"") >&5 10265 (eval $ac_link) 2>&5 10266 ac_status=$? 10267 echo "$as_me:10267: \$? = $ac_status" >&5 10268 (exit $ac_status); } && 10269 { ac_try='test -s conftest$ac_exeext' 10270 { (eval echo "$as_me:10270: \"$ac_try\"") >&5 10271 (eval $ac_try) 2>&5 10272 ac_status=$? 10273 echo "$as_me:10273: \$? = $ac_status" >&5 10274 (exit $ac_status); }; }; then 10275 echo "$as_me:10275: result: yes" >&5 10276echo "${ECHO_T}yes" >&6 10277 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes' 10278 10279else 10280 echo "$as_me: failed program was:" >&5 10281cat conftest.$ac_ext >&5 10282echo "$as_me:10282: result: no" >&5 10283echo "${ECHO_T}no" >&6 10284 10285cf_search= 10286cf_library_path_list="" 10287if test -n "${LDFLAGS}${LIBS}" ; then 10288 for cf_library_path in $LDFLAGS $LIBS 10289 do 10290 case $cf_library_path in #(vi 10291 -L*) 10292 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'` 10293 10294test "$cf_library_path" != "NONE" && \ 10295test -d "$cf_library_path" && \ 10296 { 10297 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path" 10298 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib" 10299 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root" 10300 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib" 10301 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib" 10302 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" 10303} 10304 10305 cf_library_path_list="$cf_library_path_list $cf_search" 10306 ;; 10307 esac 10308 done 10309fi 10310 10311cf_search= 10312 10313test "/usr" != "$prefix" && \ 10314test -d "/usr" && \ 10315(test $prefix = NONE || test -d $prefix) && { 10316 test -n "$verbose" && echo " ... testing for lib-directories under /usr" 10317 test -d /usr/lib && cf_search="$cf_search /usr/lib" 10318 test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root" 10319 test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib" 10320 test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib" 10321 test -d /usr/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/$cf_nculib_root/lib/$cf_nculib_root" 10322} 10323 10324test "$prefix" != "NONE" && \ 10325test -d "$prefix" && \ 10326 { 10327 test -n "$verbose" && echo " ... testing for lib-directories under $prefix" 10328 test -d $prefix/lib && cf_search="$cf_search $prefix/lib" 10329 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root" 10330 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib" 10331 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib" 10332 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root" 10333} 10334 10335test "/usr/local" != "$prefix" && \ 10336test -d "/usr/local" && \ 10337(test $prefix = NONE || test -d $prefix) && { 10338 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local" 10339 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib" 10340 test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root" 10341 test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib" 10342 test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib" 10343 test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root" 10344} 10345 10346test "/opt" != "$prefix" && \ 10347test -d "/opt" && \ 10348(test $prefix = NONE || test -d $prefix) && { 10349 test -n "$verbose" && echo " ... testing for lib-directories under /opt" 10350 test -d /opt/lib && cf_search="$cf_search /opt/lib" 10351 test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root" 10352 test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib" 10353 test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib" 10354 test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root" 10355} 10356 10357test "$HOME" != "$prefix" && \ 10358test -d "$HOME" && \ 10359(test $prefix = NONE || test -d $prefix) && { 10360 test -n "$verbose" && echo " ... testing for lib-directories under $HOME" 10361 test -d $HOME/lib && cf_search="$cf_search $HOME/lib" 10362 test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root" 10363 test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib" 10364 test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib" 10365 test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root" 10366} 10367 10368cf_search="$cf_library_path_list $cf_search" 10369 10370 for cf_libdir in $cf_search 10371 do 10372 echo "$as_me:10372: checking for -l$cf_nculib_root in $cf_libdir" >&5 10373echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6 10374 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS" 10375 cat >conftest.$ac_ext <<_ACEOF 10376#line 10376 "configure" 10377#include "confdefs.h" 10378#include <${cf_cv_ncurses_header-curses.h}> 10379int 10380main () 10381{ 10382initscr() 10383 ; 10384 return 0; 10385} 10386_ACEOF 10387rm -f conftest.$ac_objext conftest$ac_exeext 10388if { (eval echo "$as_me:10388: \"$ac_link\"") >&5 10389 (eval $ac_link) 2>&5 10390 ac_status=$? 10391 echo "$as_me:10391: \$? = $ac_status" >&5 10392 (exit $ac_status); } && 10393 { ac_try='test -s conftest$ac_exeext' 10394 { (eval echo "$as_me:10394: \"$ac_try\"") >&5 10395 (eval $ac_try) 2>&5 10396 ac_status=$? 10397 echo "$as_me:10397: \$? = $ac_status" >&5 10398 (exit $ac_status); }; }; then 10399 echo "$as_me:10399: result: yes" >&5 10400echo "${ECHO_T}yes" >&6 10401 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes' 10402 break 10403else 10404 echo "$as_me: failed program was:" >&5 10405cat conftest.$ac_ext >&5 10406echo "$as_me:10406: result: no" >&5 10407echo "${ECHO_T}no" >&6 10408 LIBS="$cf_save_LIBS" 10409fi 10410rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10411 done 10412 10413fi 10414rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10415 10416fi 10417 10418eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root 10419 10420if test $cf_found_library = no ; then 10421 { { echo "$as_me:10421: error: Cannot link $cf_nculib_root library" >&5 10422echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;} 10423 { (exit 1); exit 1; }; } 10424fi 10425 10426fi 10427 10428if test -n "$cf_ncurses_LIBS" ; then 10429 echo "$as_me:10429: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5 10430echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6 10431 cf_ncurses_SAVE="$LIBS" 10432 for p in $cf_ncurses_LIBS ; do 10433 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"` 10434 if test "$q" != "$LIBS" ; then 10435 LIBS="$q" 10436 fi 10437 done 10438 cat >conftest.$ac_ext <<_ACEOF 10439#line 10439 "configure" 10440#include "confdefs.h" 10441#include <${cf_cv_ncurses_header-curses.h}> 10442int 10443main () 10444{ 10445initscr(); mousemask(0,0); tgoto((char *)0, 0, 0); 10446 ; 10447 return 0; 10448} 10449_ACEOF 10450rm -f conftest.$ac_objext conftest$ac_exeext 10451if { (eval echo "$as_me:10451: \"$ac_link\"") >&5 10452 (eval $ac_link) 2>&5 10453 ac_status=$? 10454 echo "$as_me:10454: \$? = $ac_status" >&5 10455 (exit $ac_status); } && 10456 { ac_try='test -s conftest$ac_exeext' 10457 { (eval echo "$as_me:10457: \"$ac_try\"") >&5 10458 (eval $ac_try) 2>&5 10459 ac_status=$? 10460 echo "$as_me:10460: \$? = $ac_status" >&5 10461 (exit $ac_status); }; }; then 10462 echo "$as_me:10462: result: yes" >&5 10463echo "${ECHO_T}yes" >&6 10464else 10465 echo "$as_me: failed program was:" >&5 10466cat conftest.$ac_ext >&5 10467echo "$as_me:10467: result: no" >&5 10468echo "${ECHO_T}no" >&6 10469 LIBS="$cf_ncurses_SAVE" 10470fi 10471rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10472fi 10473 10474cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 10475 10476cat >>confdefs.h <<EOF 10477#define $cf_nculib_ROOT 1 10478EOF 10479 10480fi 10481 10482else 10483 cf_wide_curses=no 10484 10485echo "$as_me:10485: checking for extra include directories" >&5 10486echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6 10487if test "${cf_cv_curses_incdir+set}" = set; then 10488 echo $ECHO_N "(cached) $ECHO_C" >&6 10489else 10490 10491cf_cv_curses_incdir=no 10492case $host_os in #(vi 10493hpux10.*) #(vi 10494 test -d /usr/include/curses_colr && \ 10495 cf_cv_curses_incdir="-I/usr/include/curses_colr" 10496 ;; 10497sunos3*|sunos4*) 10498 test -d /usr/5lib && \ 10499 test -d /usr/5include && \ 10500 cf_cv_curses_incdir="-I/usr/5include" 10501 ;; 10502esac 10503 10504fi 10505echo "$as_me:10505: result: $cf_cv_curses_incdir" >&5 10506echo "${ECHO_T}$cf_cv_curses_incdir" >&6 10507test "$cf_cv_curses_incdir" != no && CPPFLAGS="$CPPFLAGS $cf_cv_curses_incdir" 10508 10509echo "$as_me:10509: checking if we have identified curses headers" >&5 10510echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6 10511if test "${cf_cv_ncurses_header+set}" = set; then 10512 echo $ECHO_N "(cached) $ECHO_C" >&6 10513else 10514 10515cf_cv_ncurses_header=none 10516for cf_header in \ 10517 curses.h \ 10518 ncurses.h ncurses/curses.h ncurses/ncurses.h 10519do 10520cat >conftest.$ac_ext <<_ACEOF 10521#line 10521 "configure" 10522#include "confdefs.h" 10523#include <${cf_header}> 10524int 10525main () 10526{ 10527initscr(); tgoto("?", 0,0) 10528 ; 10529 return 0; 10530} 10531_ACEOF 10532rm -f conftest.$ac_objext 10533if { (eval echo "$as_me:10533: \"$ac_compile\"") >&5 10534 (eval $ac_compile) 2>&5 10535 ac_status=$? 10536 echo "$as_me:10536: \$? = $ac_status" >&5 10537 (exit $ac_status); } && 10538 { ac_try='test -s conftest.$ac_objext' 10539 { (eval echo "$as_me:10539: \"$ac_try\"") >&5 10540 (eval $ac_try) 2>&5 10541 ac_status=$? 10542 echo "$as_me:10542: \$? = $ac_status" >&5 10543 (exit $ac_status); }; }; then 10544 cf_cv_ncurses_header=$cf_header; break 10545else 10546 echo "$as_me: failed program was:" >&5 10547cat conftest.$ac_ext >&5 10548fi 10549rm -f conftest.$ac_objext conftest.$ac_ext 10550done 10551 10552fi 10553echo "$as_me:10553: result: $cf_cv_ncurses_header" >&5 10554echo "${ECHO_T}$cf_cv_ncurses_header" >&6 10555 10556if test "$cf_cv_ncurses_header" = none ; then 10557 { { echo "$as_me:10557: error: No curses header-files found" >&5 10558echo "$as_me: error: No curses header-files found" >&2;} 10559 { (exit 1); exit 1; }; } 10560fi 10561 10562# cheat, to get the right #define's for HAVE_NCURSES_H, etc. 10563 10564for ac_header in $cf_cv_ncurses_header 10565do 10566as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10567echo "$as_me:10567: checking for $ac_header" >&5 10568echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10569if eval "test \"\${$as_ac_Header+set}\" = set"; then 10570 echo $ECHO_N "(cached) $ECHO_C" >&6 10571else 10572 cat >conftest.$ac_ext <<_ACEOF 10573#line 10573 "configure" 10574#include "confdefs.h" 10575#include <$ac_header> 10576_ACEOF 10577if { (eval echo "$as_me:10577: \"$ac_cpp conftest.$ac_ext\"") >&5 10578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10579 ac_status=$? 10580 egrep -v '^ *\+' conftest.er1 >conftest.err 10581 rm -f conftest.er1 10582 cat conftest.err >&5 10583 echo "$as_me:10583: \$? = $ac_status" >&5 10584 (exit $ac_status); } >/dev/null; then 10585 if test -s conftest.err; then 10586 ac_cpp_err=$ac_c_preproc_warn_flag 10587 else 10588 ac_cpp_err= 10589 fi 10590else 10591 ac_cpp_err=yes 10592fi 10593if test -z "$ac_cpp_err"; then 10594 eval "$as_ac_Header=yes" 10595else 10596 echo "$as_me: failed program was:" >&5 10597 cat conftest.$ac_ext >&5 10598 eval "$as_ac_Header=no" 10599fi 10600rm -f conftest.err conftest.$ac_ext 10601fi 10602echo "$as_me:10602: result: `eval echo '${'$as_ac_Header'}'`" >&5 10603echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10604if test `eval echo '${'$as_ac_Header'}'` = yes; then 10605 cat >>confdefs.h <<EOF 10606#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10607EOF 10608 10609fi 10610done 10611 10612echo "$as_me:10612: checking for terminfo header" >&5 10613echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6 10614if test "${cf_cv_term_header+set}" = set; then 10615 echo $ECHO_N "(cached) $ECHO_C" >&6 10616else 10617 10618case ${cf_cv_ncurses_header} in #(vi 10619*/ncurses.h|*/ncursesw.h) #(vi 10620 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'` 10621 ;; 10622*) 10623 cf_term_header=term.h 10624 ;; 10625esac 10626 10627for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h" 10628do 10629cat >conftest.$ac_ext <<_ACEOF 10630#line 10630 "configure" 10631#include "confdefs.h" 10632#include <stdio.h> 10633#include <${cf_cv_ncurses_header-curses.h}> 10634#include <$cf_test> 10635 10636int 10637main () 10638{ 10639int x = auto_left_margin 10640 ; 10641 return 0; 10642} 10643_ACEOF 10644rm -f conftest.$ac_objext 10645if { (eval echo "$as_me:10645: \"$ac_compile\"") >&5 10646 (eval $ac_compile) 2>&5 10647 ac_status=$? 10648 echo "$as_me:10648: \$? = $ac_status" >&5 10649 (exit $ac_status); } && 10650 { ac_try='test -s conftest.$ac_objext' 10651 { (eval echo "$as_me:10651: \"$ac_try\"") >&5 10652 (eval $ac_try) 2>&5 10653 ac_status=$? 10654 echo "$as_me:10654: \$? = $ac_status" >&5 10655 (exit $ac_status); }; }; then 10656 10657 cf_cv_term_header="$cf_test" 10658else 10659 echo "$as_me: failed program was:" >&5 10660cat conftest.$ac_ext >&5 10661 10662 cf_cv_term_header=unknown 10663 10664fi 10665rm -f conftest.$ac_objext conftest.$ac_ext 10666 test "$cf_cv_term_header" != unknown && break 10667done 10668 10669fi 10670echo "$as_me:10670: result: $cf_cv_term_header" >&5 10671echo "${ECHO_T}$cf_cv_term_header" >&6 10672 10673# Set definitions to allow ifdef'ing to accommodate subdirectories 10674 10675case $cf_cv_term_header in # (vi 10676*term.h) 10677 cat >>confdefs.h <<\EOF 10678#define HAVE_TERM_H 1 10679EOF 10680 10681 ;; 10682esac 10683 10684case $cf_cv_term_header in # (vi 10685ncurses/term.h) #(vi 10686 cat >>confdefs.h <<\EOF 10687#define HAVE_NCURSES_TERM_H 1 10688EOF 10689 10690 ;; 10691ncursesw/term.h) 10692 cat >>confdefs.h <<\EOF 10693#define HAVE_NCURSESW_TERM_H 1 10694EOF 10695 10696 ;; 10697esac 10698 10699echo "$as_me:10699: checking for ncurses version" >&5 10700echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6 10701if test "${cf_cv_ncurses_version+set}" = set; then 10702 echo $ECHO_N "(cached) $ECHO_C" >&6 10703else 10704 10705 cf_cv_ncurses_version=no 10706 cf_tempfile=out$$ 10707 rm -f $cf_tempfile 10708 if test "$cross_compiling" = yes; then 10709 10710 # This will not work if the preprocessor splits the line after the 10711 # Autoconf token. The 'unproto' program does that. 10712 cat > conftest.$ac_ext <<EOF 10713#include <${cf_cv_ncurses_header-curses.h}> 10714#undef Autoconf 10715#ifdef NCURSES_VERSION 10716Autoconf NCURSES_VERSION 10717#else 10718#ifdef __NCURSES_H 10719Autoconf "old" 10720#endif 10721; 10722#endif 10723EOF 10724 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out" 10725 { (eval echo "$as_me:10725: \"$cf_try\"") >&5 10726 (eval $cf_try) 2>&5 10727 ac_status=$? 10728 echo "$as_me:10728: \$? = $ac_status" >&5 10729 (exit $ac_status); } 10730 if test -f conftest.out ; then 10731 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'` 10732 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out" 10733 rm -f conftest.out 10734 fi 10735 10736else 10737 cat >conftest.$ac_ext <<_ACEOF 10738#line 10738 "configure" 10739#include "confdefs.h" 10740 10741#include <${cf_cv_ncurses_header-curses.h}> 10742#include <stdio.h> 10743int main() 10744{ 10745 FILE *fp = fopen("$cf_tempfile", "w"); 10746#ifdef NCURSES_VERSION 10747# ifdef NCURSES_VERSION_PATCH 10748 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH); 10749# else 10750 fprintf(fp, "%s\n", NCURSES_VERSION); 10751# endif 10752#else 10753# ifdef __NCURSES_H 10754 fprintf(fp, "old\n"); 10755# else 10756 make an error 10757# endif 10758#endif 10759 ${cf_cv_main_return-return}(0); 10760} 10761_ACEOF 10762rm -f conftest$ac_exeext 10763if { (eval echo "$as_me:10763: \"$ac_link\"") >&5 10764 (eval $ac_link) 2>&5 10765 ac_status=$? 10766 echo "$as_me:10766: \$? = $ac_status" >&5 10767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10768 { (eval echo "$as_me:10768: \"$ac_try\"") >&5 10769 (eval $ac_try) 2>&5 10770 ac_status=$? 10771 echo "$as_me:10771: \$? = $ac_status" >&5 10772 (exit $ac_status); }; }; then 10773 10774 cf_cv_ncurses_version=`cat $cf_tempfile` 10775else 10776 echo "$as_me: program exited with status $ac_status" >&5 10777echo "$as_me: failed program was:" >&5 10778cat conftest.$ac_ext >&5 10779fi 10780rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10781fi 10782 rm -f $cf_tempfile 10783 10784fi 10785echo "$as_me:10785: result: $cf_cv_ncurses_version" >&5 10786echo "${ECHO_T}$cf_cv_ncurses_version" >&6 10787test "$cf_cv_ncurses_version" = no || cat >>confdefs.h <<\EOF 10788#define NCURSES 1 10789EOF 10790 10791echo "$as_me:10791: checking if we have identified curses libraries" >&5 10792echo $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6 10793cat >conftest.$ac_ext <<_ACEOF 10794#line 10794 "configure" 10795#include "confdefs.h" 10796#include <${cf_cv_ncurses_header-curses.h}> 10797int 10798main () 10799{ 10800initscr(); tgoto("?", 0,0) 10801 ; 10802 return 0; 10803} 10804_ACEOF 10805rm -f conftest.$ac_objext conftest$ac_exeext 10806if { (eval echo "$as_me:10806: \"$ac_link\"") >&5 10807 (eval $ac_link) 2>&5 10808 ac_status=$? 10809 echo "$as_me:10809: \$? = $ac_status" >&5 10810 (exit $ac_status); } && 10811 { ac_try='test -s conftest$ac_exeext' 10812 { (eval echo "$as_me:10812: \"$ac_try\"") >&5 10813 (eval $ac_try) 2>&5 10814 ac_status=$? 10815 echo "$as_me:10815: \$? = $ac_status" >&5 10816 (exit $ac_status); }; }; then 10817 cf_result=yes 10818else 10819 echo "$as_me: failed program was:" >&5 10820cat conftest.$ac_ext >&5 10821cf_result=no 10822fi 10823rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10824echo "$as_me:10824: result: $cf_result" >&5 10825echo "${ECHO_T}$cf_result" >&6 10826 10827if test "$cf_result" = no ; then 10828case $host_os in #(vi 10829freebsd*) #(vi 10830 echo "$as_me:10830: checking for tgoto in -lmytinfo" >&5 10831echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6 10832if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then 10833 echo $ECHO_N "(cached) $ECHO_C" >&6 10834else 10835 ac_check_lib_save_LIBS=$LIBS 10836LIBS="-lmytinfo $LIBS" 10837cat >conftest.$ac_ext <<_ACEOF 10838#line 10838 "configure" 10839#include "confdefs.h" 10840 10841/* Override any gcc2 internal prototype to avoid an error. */ 10842#ifdef __cplusplus 10843extern "C" 10844#endif 10845/* We use char because int might match the return type of a gcc2 10846 builtin and then its argument prototype would still apply. */ 10847char tgoto (); 10848int 10849main () 10850{ 10851tgoto (); 10852 ; 10853 return 0; 10854} 10855_ACEOF 10856rm -f conftest.$ac_objext conftest$ac_exeext 10857if { (eval echo "$as_me:10857: \"$ac_link\"") >&5 10858 (eval $ac_link) 2>&5 10859 ac_status=$? 10860 echo "$as_me:10860: \$? = $ac_status" >&5 10861 (exit $ac_status); } && 10862 { ac_try='test -s conftest$ac_exeext' 10863 { (eval echo "$as_me:10863: \"$ac_try\"") >&5 10864 (eval $ac_try) 2>&5 10865 ac_status=$? 10866 echo "$as_me:10866: \$? = $ac_status" >&5 10867 (exit $ac_status); }; }; then 10868 ac_cv_lib_mytinfo_tgoto=yes 10869else 10870 echo "$as_me: failed program was:" >&5 10871cat conftest.$ac_ext >&5 10872ac_cv_lib_mytinfo_tgoto=no 10873fi 10874rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10875LIBS=$ac_check_lib_save_LIBS 10876fi 10877echo "$as_me:10877: result: $ac_cv_lib_mytinfo_tgoto" >&5 10878echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6 10879if test $ac_cv_lib_mytinfo_tgoto = yes; then 10880 LIBS="-lmytinfo $LIBS" 10881fi 10882 10883 ;; 10884hpux10.*) #(vi 10885 echo "$as_me:10885: checking for initscr in -lcur_colr" >&5 10886echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6 10887if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then 10888 echo $ECHO_N "(cached) $ECHO_C" >&6 10889else 10890 ac_check_lib_save_LIBS=$LIBS 10891LIBS="-lcur_colr $LIBS" 10892cat >conftest.$ac_ext <<_ACEOF 10893#line 10893 "configure" 10894#include "confdefs.h" 10895 10896/* Override any gcc2 internal prototype to avoid an error. */ 10897#ifdef __cplusplus 10898extern "C" 10899#endif 10900/* We use char because int might match the return type of a gcc2 10901 builtin and then its argument prototype would still apply. */ 10902char initscr (); 10903int 10904main () 10905{ 10906initscr (); 10907 ; 10908 return 0; 10909} 10910_ACEOF 10911rm -f conftest.$ac_objext conftest$ac_exeext 10912if { (eval echo "$as_me:10912: \"$ac_link\"") >&5 10913 (eval $ac_link) 2>&5 10914 ac_status=$? 10915 echo "$as_me:10915: \$? = $ac_status" >&5 10916 (exit $ac_status); } && 10917 { ac_try='test -s conftest$ac_exeext' 10918 { (eval echo "$as_me:10918: \"$ac_try\"") >&5 10919 (eval $ac_try) 2>&5 10920 ac_status=$? 10921 echo "$as_me:10921: \$? = $ac_status" >&5 10922 (exit $ac_status); }; }; then 10923 ac_cv_lib_cur_colr_initscr=yes 10924else 10925 echo "$as_me: failed program was:" >&5 10926cat conftest.$ac_ext >&5 10927ac_cv_lib_cur_colr_initscr=no 10928fi 10929rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10930LIBS=$ac_check_lib_save_LIBS 10931fi 10932echo "$as_me:10932: result: $ac_cv_lib_cur_colr_initscr" >&5 10933echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6 10934if test $ac_cv_lib_cur_colr_initscr = yes; then 10935 10936 LIBS="-lcur_colr $LIBS" 10937 ac_cv_func_initscr=yes 10938 10939else 10940 10941 echo "$as_me:10941: checking for initscr in -lHcurses" >&5 10942echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6 10943if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then 10944 echo $ECHO_N "(cached) $ECHO_C" >&6 10945else 10946 ac_check_lib_save_LIBS=$LIBS 10947LIBS="-lHcurses $LIBS" 10948cat >conftest.$ac_ext <<_ACEOF 10949#line 10949 "configure" 10950#include "confdefs.h" 10951 10952/* Override any gcc2 internal prototype to avoid an error. */ 10953#ifdef __cplusplus 10954extern "C" 10955#endif 10956/* We use char because int might match the return type of a gcc2 10957 builtin and then its argument prototype would still apply. */ 10958char initscr (); 10959int 10960main () 10961{ 10962initscr (); 10963 ; 10964 return 0; 10965} 10966_ACEOF 10967rm -f conftest.$ac_objext conftest$ac_exeext 10968if { (eval echo "$as_me:10968: \"$ac_link\"") >&5 10969 (eval $ac_link) 2>&5 10970 ac_status=$? 10971 echo "$as_me:10971: \$? = $ac_status" >&5 10972 (exit $ac_status); } && 10973 { ac_try='test -s conftest$ac_exeext' 10974 { (eval echo "$as_me:10974: \"$ac_try\"") >&5 10975 (eval $ac_try) 2>&5 10976 ac_status=$? 10977 echo "$as_me:10977: \$? = $ac_status" >&5 10978 (exit $ac_status); }; }; then 10979 ac_cv_lib_Hcurses_initscr=yes 10980else 10981 echo "$as_me: failed program was:" >&5 10982cat conftest.$ac_ext >&5 10983ac_cv_lib_Hcurses_initscr=no 10984fi 10985rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10986LIBS=$ac_check_lib_save_LIBS 10987fi 10988echo "$as_me:10988: result: $ac_cv_lib_Hcurses_initscr" >&5 10989echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6 10990if test $ac_cv_lib_Hcurses_initscr = yes; then 10991 10992 # HP's header uses __HP_CURSES, but user claims _HP_CURSES. 10993 LIBS="-lHcurses $LIBS" 10994 CPPFLAGS="$CPPFLAGS -D__HP_CURSES -D_HP_CURSES" 10995 ac_cv_func_initscr=yes 10996 10997fi 10998 10999fi 11000 11001 ;; 11002linux*) # Suse Linux does not follow /usr/lib convention 11003 11004if test -n "/lib" ; then 11005 for cf_add_libdir in /lib 11006 do 11007 if test $cf_add_libdir = /usr/lib ; then 11008 : 11009 elif test -d $cf_add_libdir 11010 then 11011 cf_have_libdir=no 11012 if test -n "$LDFLAGS$LIBS" ; then 11013 # a loop is needed to ensure we can add subdirs of existing dirs 11014 for cf_test_libdir in $LDFLAGS $LIBS ; do 11015 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 11016 cf_have_libdir=yes; break 11017 fi 11018 done 11019 fi 11020 if test "$cf_have_libdir" = no ; then 11021 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 11022 11023echo "${as_me-configure}:11023: testing adding $cf_add_libdir to library-path ..." 1>&5 11024 11025 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 11026 fi 11027 fi 11028 done 11029fi 11030 11031 ;; 11032sunos3*|sunos4*) 11033 if test -d /usr/5lib ; then 11034 11035if test -n "/usr/5lib" ; then 11036 for cf_add_libdir in /usr/5lib 11037 do 11038 if test $cf_add_libdir = /usr/lib ; then 11039 : 11040 elif test -d $cf_add_libdir 11041 then 11042 cf_have_libdir=no 11043 if test -n "$LDFLAGS$LIBS" ; then 11044 # a loop is needed to ensure we can add subdirs of existing dirs 11045 for cf_test_libdir in $LDFLAGS $LIBS ; do 11046 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 11047 cf_have_libdir=yes; break 11048 fi 11049 done 11050 fi 11051 if test "$cf_have_libdir" = no ; then 11052 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 11053 11054echo "${as_me-configure}:11054: testing adding $cf_add_libdir to library-path ..." 1>&5 11055 11056 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 11057 fi 11058 fi 11059 done 11060fi 11061 11062 LIBS="$LIBS -lcurses -ltermcap" 11063 fi 11064 ac_cv_func_initscr=yes 11065 ;; 11066esac 11067 11068if test ".$ac_cv_func_initscr" != .yes ; then 11069 cf_save_LIBS="$LIBS" 11070 cf_term_lib="" 11071 cf_curs_lib="" 11072 11073 if test ".${cf_cv_ncurses_version-no}" != .no 11074 then 11075 cf_check_list="ncurses curses cursesX" 11076 else 11077 cf_check_list="cursesX curses ncurses" 11078 fi 11079 11080 # Check for library containing tgoto. Do this before curses library 11081 # because it may be needed to link the test-case for initscr. 11082 echo "$as_me:11082: checking for tgoto" >&5 11083echo $ECHO_N "checking for tgoto... $ECHO_C" >&6 11084if test "${ac_cv_func_tgoto+set}" = set; then 11085 echo $ECHO_N "(cached) $ECHO_C" >&6 11086else 11087 cat >conftest.$ac_ext <<_ACEOF 11088#line 11088 "configure" 11089#include "confdefs.h" 11090/* System header to define __stub macros and hopefully few prototypes, 11091 which can conflict with char tgoto (); below. */ 11092#include <assert.h> 11093/* Override any gcc2 internal prototype to avoid an error. */ 11094#ifdef __cplusplus 11095extern "C" 11096#endif 11097/* We use char because int might match the return type of a gcc2 11098 builtin and then its argument prototype would still apply. */ 11099char tgoto (); 11100char (*f) (); 11101 11102int 11103main () 11104{ 11105/* The GNU C library defines this for functions which it implements 11106 to always fail with ENOSYS. Some functions are actually named 11107 something starting with __ and the normal name is an alias. */ 11108#if defined (__stub_tgoto) || defined (__stub___tgoto) 11109choke me 11110#else 11111f = tgoto; 11112#endif 11113 11114 ; 11115 return 0; 11116} 11117_ACEOF 11118rm -f conftest.$ac_objext conftest$ac_exeext 11119if { (eval echo "$as_me:11119: \"$ac_link\"") >&5 11120 (eval $ac_link) 2>&5 11121 ac_status=$? 11122 echo "$as_me:11122: \$? = $ac_status" >&5 11123 (exit $ac_status); } && 11124 { ac_try='test -s conftest$ac_exeext' 11125 { (eval echo "$as_me:11125: \"$ac_try\"") >&5 11126 (eval $ac_try) 2>&5 11127 ac_status=$? 11128 echo "$as_me:11128: \$? = $ac_status" >&5 11129 (exit $ac_status); }; }; then 11130 ac_cv_func_tgoto=yes 11131else 11132 echo "$as_me: failed program was:" >&5 11133cat conftest.$ac_ext >&5 11134ac_cv_func_tgoto=no 11135fi 11136rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11137fi 11138echo "$as_me:11138: result: $ac_cv_func_tgoto" >&5 11139echo "${ECHO_T}$ac_cv_func_tgoto" >&6 11140if test $ac_cv_func_tgoto = yes; then 11141 cf_term_lib=predefined 11142else 11143 11144 for cf_term_lib in $cf_check_list termcap termlib unknown 11145 do 11146 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh` 11147echo "$as_me:11147: checking for tgoto in -l$cf_term_lib" >&5 11148echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6 11149if eval "test \"\${$as_ac_Lib+set}\" = set"; then 11150 echo $ECHO_N "(cached) $ECHO_C" >&6 11151else 11152 ac_check_lib_save_LIBS=$LIBS 11153LIBS="-l$cf_term_lib $LIBS" 11154cat >conftest.$ac_ext <<_ACEOF 11155#line 11155 "configure" 11156#include "confdefs.h" 11157 11158/* Override any gcc2 internal prototype to avoid an error. */ 11159#ifdef __cplusplus 11160extern "C" 11161#endif 11162/* We use char because int might match the return type of a gcc2 11163 builtin and then its argument prototype would still apply. */ 11164char tgoto (); 11165int 11166main () 11167{ 11168tgoto (); 11169 ; 11170 return 0; 11171} 11172_ACEOF 11173rm -f conftest.$ac_objext conftest$ac_exeext 11174if { (eval echo "$as_me:11174: \"$ac_link\"") >&5 11175 (eval $ac_link) 2>&5 11176 ac_status=$? 11177 echo "$as_me:11177: \$? = $ac_status" >&5 11178 (exit $ac_status); } && 11179 { ac_try='test -s conftest$ac_exeext' 11180 { (eval echo "$as_me:11180: \"$ac_try\"") >&5 11181 (eval $ac_try) 2>&5 11182 ac_status=$? 11183 echo "$as_me:11183: \$? = $ac_status" >&5 11184 (exit $ac_status); }; }; then 11185 eval "$as_ac_Lib=yes" 11186else 11187 echo "$as_me: failed program was:" >&5 11188cat conftest.$ac_ext >&5 11189eval "$as_ac_Lib=no" 11190fi 11191rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11192LIBS=$ac_check_lib_save_LIBS 11193fi 11194echo "$as_me:11194: result: `eval echo '${'$as_ac_Lib'}'`" >&5 11195echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 11196if test `eval echo '${'$as_ac_Lib'}'` = yes; then 11197 break 11198fi 11199 11200 done 11201 11202fi 11203 11204 # Check for library containing initscr 11205 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS" 11206 for cf_curs_lib in $cf_check_list xcurses jcurses pdcurses unknown 11207 do 11208 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh` 11209echo "$as_me:11209: checking for initscr in -l$cf_curs_lib" >&5 11210echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6 11211if eval "test \"\${$as_ac_Lib+set}\" = set"; then 11212 echo $ECHO_N "(cached) $ECHO_C" >&6 11213else 11214 ac_check_lib_save_LIBS=$LIBS 11215LIBS="-l$cf_curs_lib $LIBS" 11216cat >conftest.$ac_ext <<_ACEOF 11217#line 11217 "configure" 11218#include "confdefs.h" 11219 11220/* Override any gcc2 internal prototype to avoid an error. */ 11221#ifdef __cplusplus 11222extern "C" 11223#endif 11224/* We use char because int might match the return type of a gcc2 11225 builtin and then its argument prototype would still apply. */ 11226char initscr (); 11227int 11228main () 11229{ 11230initscr (); 11231 ; 11232 return 0; 11233} 11234_ACEOF 11235rm -f conftest.$ac_objext conftest$ac_exeext 11236if { (eval echo "$as_me:11236: \"$ac_link\"") >&5 11237 (eval $ac_link) 2>&5 11238 ac_status=$? 11239 echo "$as_me:11239: \$? = $ac_status" >&5 11240 (exit $ac_status); } && 11241 { ac_try='test -s conftest$ac_exeext' 11242 { (eval echo "$as_me:11242: \"$ac_try\"") >&5 11243 (eval $ac_try) 2>&5 11244 ac_status=$? 11245 echo "$as_me:11245: \$? = $ac_status" >&5 11246 (exit $ac_status); }; }; then 11247 eval "$as_ac_Lib=yes" 11248else 11249 echo "$as_me: failed program was:" >&5 11250cat conftest.$ac_ext >&5 11251eval "$as_ac_Lib=no" 11252fi 11253rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11254LIBS=$ac_check_lib_save_LIBS 11255fi 11256echo "$as_me:11256: result: `eval echo '${'$as_ac_Lib'}'`" >&5 11257echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 11258if test `eval echo '${'$as_ac_Lib'}'` = yes; then 11259 break 11260fi 11261 11262 done 11263 test $cf_curs_lib = unknown && { { echo "$as_me:11263: error: no curses library found" >&5 11264echo "$as_me: error: no curses library found" >&2;} 11265 { (exit 1); exit 1; }; } 11266 11267 LIBS="-l$cf_curs_lib $cf_save_LIBS" 11268 if test "$cf_term_lib" = unknown ; then 11269 echo "$as_me:11269: checking if we can link with $cf_curs_lib library" >&5 11270echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6 11271 cat >conftest.$ac_ext <<_ACEOF 11272#line 11272 "configure" 11273#include "confdefs.h" 11274#include <${cf_cv_ncurses_header-curses.h}> 11275int 11276main () 11277{ 11278initscr() 11279 ; 11280 return 0; 11281} 11282_ACEOF 11283rm -f conftest.$ac_objext conftest$ac_exeext 11284if { (eval echo "$as_me:11284: \"$ac_link\"") >&5 11285 (eval $ac_link) 2>&5 11286 ac_status=$? 11287 echo "$as_me:11287: \$? = $ac_status" >&5 11288 (exit $ac_status); } && 11289 { ac_try='test -s conftest$ac_exeext' 11290 { (eval echo "$as_me:11290: \"$ac_try\"") >&5 11291 (eval $ac_try) 2>&5 11292 ac_status=$? 11293 echo "$as_me:11293: \$? = $ac_status" >&5 11294 (exit $ac_status); }; }; then 11295 cf_result=yes 11296else 11297 echo "$as_me: failed program was:" >&5 11298cat conftest.$ac_ext >&5 11299cf_result=no 11300fi 11301rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11302 echo "$as_me:11302: result: $cf_result" >&5 11303echo "${ECHO_T}$cf_result" >&6 11304 test $cf_result = no && { { echo "$as_me:11304: error: Cannot link curses library" >&5 11305echo "$as_me: error: Cannot link curses library" >&2;} 11306 { (exit 1); exit 1; }; } 11307 elif test "$cf_curs_lib" = "$cf_term_lib" ; then 11308 : 11309 elif test "$cf_term_lib" != predefined ; then 11310 echo "$as_me:11310: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5 11311echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6 11312 cat >conftest.$ac_ext <<_ACEOF 11313#line 11313 "configure" 11314#include "confdefs.h" 11315#include <${cf_cv_ncurses_header-curses.h}> 11316int 11317main () 11318{ 11319initscr(); tgoto((char *)0, 0, 0); 11320 ; 11321 return 0; 11322} 11323_ACEOF 11324rm -f conftest.$ac_objext conftest$ac_exeext 11325if { (eval echo "$as_me:11325: \"$ac_link\"") >&5 11326 (eval $ac_link) 2>&5 11327 ac_status=$? 11328 echo "$as_me:11328: \$? = $ac_status" >&5 11329 (exit $ac_status); } && 11330 { ac_try='test -s conftest$ac_exeext' 11331 { (eval echo "$as_me:11331: \"$ac_try\"") >&5 11332 (eval $ac_try) 2>&5 11333 ac_status=$? 11334 echo "$as_me:11334: \$? = $ac_status" >&5 11335 (exit $ac_status); }; }; then 11336 cf_result=no 11337else 11338 echo "$as_me: failed program was:" >&5 11339cat conftest.$ac_ext >&5 11340 11341 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS" 11342 cat >conftest.$ac_ext <<_ACEOF 11343#line 11343 "configure" 11344#include "confdefs.h" 11345#include <${cf_cv_ncurses_header-curses.h}> 11346int 11347main () 11348{ 11349initscr() 11350 ; 11351 return 0; 11352} 11353_ACEOF 11354rm -f conftest.$ac_objext conftest$ac_exeext 11355if { (eval echo "$as_me:11355: \"$ac_link\"") >&5 11356 (eval $ac_link) 2>&5 11357 ac_status=$? 11358 echo "$as_me:11358: \$? = $ac_status" >&5 11359 (exit $ac_status); } && 11360 { ac_try='test -s conftest$ac_exeext' 11361 { (eval echo "$as_me:11361: \"$ac_try\"") >&5 11362 (eval $ac_try) 2>&5 11363 ac_status=$? 11364 echo "$as_me:11364: \$? = $ac_status" >&5 11365 (exit $ac_status); }; }; then 11366 cf_result=yes 11367else 11368 echo "$as_me: failed program was:" >&5 11369cat conftest.$ac_ext >&5 11370cf_result=error 11371fi 11372rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11373 11374fi 11375rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11376 echo "$as_me:11376: result: $cf_result" >&5 11377echo "${ECHO_T}$cf_result" >&6 11378 fi 11379fi 11380fi 11381 11382fi 11383 11384cf_all_widgets=yes 11385 11386echo "$as_me:11386: checking if you want extra dialogs" >&5 11387echo $ECHO_N "checking if you want extra dialogs... $ECHO_C" >&6 11388 11389# Check whether --enable-extras or --disable-extras was given. 11390if test "${enable_extras+set}" = set; then 11391 enableval="$enable_extras" 11392 11393else 11394 enableval=yes 11395fi; 11396echo "$as_me:11396: result: $enableval" >&5 11397echo "${ECHO_T}$enableval" >&6 11398if test "$enableval" != no ; then 11399cf_all_widgets=yes 11400else 11401cf_all_widgets=no 11402fi 11403 11404echo "$as_me:11404: checking if you want config-file support" >&5 11405echo $ECHO_N "checking if you want config-file support... $ECHO_C" >&6 11406 11407# Check whether --enable-rc-file or --disable-rc-file was given. 11408if test "${enable_rc_file+set}" = set; then 11409 enableval="$enable_rc_file" 11410 11411else 11412 enableval=$cf_all_widgets 11413fi; 11414echo "$as_me:11414: result: $enableval" >&5 11415echo "${ECHO_T}$enableval" >&6 11416if test "$enableval" != no ; then 11417EXTRAOBJS="$EXTRAOBJS rc\$o" 11418 cat >>confdefs.h <<\EOF 11419#define HAVE_RC_FILE 1 11420EOF 11421 11422else 11423 : 11424fi 11425 11426echo "$as_me:11426: checking if you want Xdialog-style dialogs" >&5 11427echo $ECHO_N "checking if you want Xdialog-style dialogs... $ECHO_C" >&6 11428 11429# Check whether --enable-Xdialog or --disable-Xdialog was given. 11430if test "${enable_Xdialog+set}" = set; then 11431 enableval="$enable_Xdialog" 11432 11433else 11434 enableval=$cf_all_widgets 11435fi; 11436echo "$as_me:11436: result: $enableval" >&5 11437echo "${ECHO_T}$enableval" >&6 11438if test "$enableval" != no ; then 11439EXTRAOBJS="$EXTRAOBJS calendar\$o fselect\$o timebox\$o" 11440 cat >>confdefs.h <<\EOF 11441#define HAVE_XDIALOG 1 11442EOF 11443 11444else 11445 : 11446fi 11447 11448echo "$as_me:11448: checking if you want the form dialog" >&5 11449echo $ECHO_N "checking if you want the form dialog... $ECHO_C" >&6 11450 11451# Check whether --enable-form or --disable-form was given. 11452if test "${enable_form+set}" = set; then 11453 enableval="$enable_form" 11454 11455else 11456 enableval=$cf_all_widgets 11457fi; 11458echo "$as_me:11458: result: $enableval" >&5 11459echo "${ECHO_T}$enableval" >&6 11460if test "$enableval" != no ; then 11461EXTRAOBJS="$EXTRAOBJS formbox\$o" 11462 cat >>confdefs.h <<\EOF 11463#define HAVE_DLG_FORMBOX 1 11464EOF 11465 11466else 11467 : 11468fi 11469 11470echo "$as_me:11470: checking if you want the gauge dialog" >&5 11471echo $ECHO_N "checking if you want the gauge dialog... $ECHO_C" >&6 11472 11473# Check whether --enable-gauge or --disable-gauge was given. 11474if test "${enable_gauge+set}" = set; then 11475 enableval="$enable_gauge" 11476 11477else 11478 enableval=$cf_all_widgets 11479fi; 11480echo "$as_me:11480: result: $enableval" >&5 11481echo "${ECHO_T}$enableval" >&6 11482if test "$enableval" != no ; then 11483EXTRAOBJS="$EXTRAOBJS guage\$o pause\$o progressbox\$o" 11484 cat >>confdefs.h <<\EOF 11485#define HAVE_DLG_GAUGE 1 11486EOF 11487 11488else 11489 : 11490fi 11491 11492echo "$as_me:11492: checking if you want the tailbox dialog" >&5 11493echo $ECHO_N "checking if you want the tailbox dialog... $ECHO_C" >&6 11494 11495# Check whether --enable-tailbox or --disable-tailbox was given. 11496if test "${enable_tailbox+set}" = set; then 11497 enableval="$enable_tailbox" 11498 11499else 11500 enableval=$cf_all_widgets 11501fi; 11502echo "$as_me:11502: result: $enableval" >&5 11503echo "${ECHO_T}$enableval" >&6 11504if test "$enableval" != no ; then 11505EXTRAOBJS="$EXTRAOBJS tailbox\$o" 11506 cat >>confdefs.h <<\EOF 11507#define HAVE_DLG_TAILBOX 1 11508EOF 11509 11510else 11511 : 11512fi 11513 11514echo "$as_me:11514: checking if you want the mixedform dialog" >&5 11515echo $ECHO_N "checking if you want the mixedform dialog... $ECHO_C" >&6 11516 11517# Check whether --enable-mixedform or --disable-mixedform was given. 11518if test "${enable_mixedform+set}" = set; then 11519 enableval="$enable_mixedform" 11520 11521else 11522 enableval=$cf_all_widgets 11523fi; 11524echo "$as_me:11524: result: $enableval" >&5 11525echo "${ECHO_T}$enableval" >&6 11526if test "$enableval" != no ; then 11527EXTRAOBJS="$EXTRAOBJS mixedform\$o" 11528 cat >>confdefs.h <<\EOF 11529#define HAVE_DLG_MIXEDFORM 1 11530EOF 11531 11532else 11533 : 11534fi 11535 11536echo "$as_me:11536: checking if you want the mixedgauge dialog" >&5 11537echo $ECHO_N "checking if you want the mixedgauge dialog... $ECHO_C" >&6 11538 11539# Check whether --enable-mixedgauge or --disable-mixedgauge was given. 11540if test "${enable_mixedgauge+set}" = set; then 11541 enableval="$enable_mixedgauge" 11542 11543else 11544 enableval=$cf_all_widgets 11545fi; 11546echo "$as_me:11546: result: $enableval" >&5 11547echo "${ECHO_T}$enableval" >&6 11548if test "$enableval" != no ; then 11549EXTRAOBJS="$EXTRAOBJS mixedgauge\$o" 11550 cat >>confdefs.h <<\EOF 11551#define HAVE_MIXEDGAUGE 1 11552EOF 11553 11554else 11555 : 11556fi 11557 11558echo "$as_me:11558: checking if you want the wide-curses features" >&5 11559echo $ECHO_N "checking if you want the wide-curses features... $ECHO_C" >&6 11560 11561# Check whether --enable-widec or --disable-widec was given. 11562if test "${enable_widec+set}" = set; then 11563 enableval="$enable_widec" 11564 11565else 11566 enableval=$cf_wide_curses 11567fi; 11568echo "$as_me:11568: result: $enableval" >&5 11569echo "${ECHO_T}$enableval" >&6 11570if test "$enableval" != no ; then 11571cat >>confdefs.h <<\EOF 11572#define USE_WIDE_CURSES 1 11573EOF 11574 11575else 11576 : 11577fi 11578 11579echo "$as_me:11579: checking for ANSI C header files" >&5 11580echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 11581if test "${ac_cv_header_stdc+set}" = set; then 11582 echo $ECHO_N "(cached) $ECHO_C" >&6 11583else 11584 cat >conftest.$ac_ext <<_ACEOF 11585#line 11585 "configure" 11586#include "confdefs.h" 11587#include <stdlib.h> 11588#include <stdarg.h> 11589#include <string.h> 11590#include <float.h> 11591 11592_ACEOF 11593if { (eval echo "$as_me:11593: \"$ac_cpp conftest.$ac_ext\"") >&5 11594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11595 ac_status=$? 11596 egrep -v '^ *\+' conftest.er1 >conftest.err 11597 rm -f conftest.er1 11598 cat conftest.err >&5 11599 echo "$as_me:11599: \$? = $ac_status" >&5 11600 (exit $ac_status); } >/dev/null; then 11601 if test -s conftest.err; then 11602 ac_cpp_err=$ac_c_preproc_warn_flag 11603 else 11604 ac_cpp_err= 11605 fi 11606else 11607 ac_cpp_err=yes 11608fi 11609if test -z "$ac_cpp_err"; then 11610 ac_cv_header_stdc=yes 11611else 11612 echo "$as_me: failed program was:" >&5 11613 cat conftest.$ac_ext >&5 11614 ac_cv_header_stdc=no 11615fi 11616rm -f conftest.err conftest.$ac_ext 11617 11618if test $ac_cv_header_stdc = yes; then 11619 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 11620 cat >conftest.$ac_ext <<_ACEOF 11621#line 11621 "configure" 11622#include "confdefs.h" 11623#include <string.h> 11624 11625_ACEOF 11626if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11627 egrep "memchr" >/dev/null 2>&1; then 11628 : 11629else 11630 ac_cv_header_stdc=no 11631fi 11632rm -f conftest* 11633 11634fi 11635 11636if test $ac_cv_header_stdc = yes; then 11637 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 11638 cat >conftest.$ac_ext <<_ACEOF 11639#line 11639 "configure" 11640#include "confdefs.h" 11641#include <stdlib.h> 11642 11643_ACEOF 11644if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11645 egrep "free" >/dev/null 2>&1; then 11646 : 11647else 11648 ac_cv_header_stdc=no 11649fi 11650rm -f conftest* 11651 11652fi 11653 11654if test $ac_cv_header_stdc = yes; then 11655 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 11656 if test "$cross_compiling" = yes; then 11657 : 11658else 11659 cat >conftest.$ac_ext <<_ACEOF 11660#line 11660 "configure" 11661#include "confdefs.h" 11662#include <ctype.h> 11663#if ((' ' & 0x0FF) == 0x020) 11664# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 11665# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 11666#else 11667# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 11668 || ('j' <= (c) && (c) <= 'r') \ 11669 || ('s' <= (c) && (c) <= 'z')) 11670# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 11671#endif 11672 11673#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 11674int 11675main () 11676{ 11677 int i; 11678 for (i = 0; i < 256; i++) 11679 if (XOR (islower (i), ISLOWER (i)) 11680 || toupper (i) != TOUPPER (i)) 11681 $ac_main_return(2); 11682 $ac_main_return (0); 11683} 11684_ACEOF 11685rm -f conftest$ac_exeext 11686if { (eval echo "$as_me:11686: \"$ac_link\"") >&5 11687 (eval $ac_link) 2>&5 11688 ac_status=$? 11689 echo "$as_me:11689: \$? = $ac_status" >&5 11690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11691 { (eval echo "$as_me:11691: \"$ac_try\"") >&5 11692 (eval $ac_try) 2>&5 11693 ac_status=$? 11694 echo "$as_me:11694: \$? = $ac_status" >&5 11695 (exit $ac_status); }; }; then 11696 : 11697else 11698 echo "$as_me: program exited with status $ac_status" >&5 11699echo "$as_me: failed program was:" >&5 11700cat conftest.$ac_ext >&5 11701ac_cv_header_stdc=no 11702fi 11703rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11704fi 11705fi 11706fi 11707echo "$as_me:11707: result: $ac_cv_header_stdc" >&5 11708echo "${ECHO_T}$ac_cv_header_stdc" >&6 11709if test $ac_cv_header_stdc = yes; then 11710 11711cat >>confdefs.h <<\EOF 11712#define STDC_HEADERS 1 11713EOF 11714 11715fi 11716 11717echo "$as_me:11717: checking whether time.h and sys/time.h may both be included" >&5 11718echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 11719if test "${ac_cv_header_time+set}" = set; then 11720 echo $ECHO_N "(cached) $ECHO_C" >&6 11721else 11722 cat >conftest.$ac_ext <<_ACEOF 11723#line 11723 "configure" 11724#include "confdefs.h" 11725#include <sys/types.h> 11726#include <sys/time.h> 11727#include <time.h> 11728 11729int 11730main () 11731{ 11732if ((struct tm *) 0) 11733return 0; 11734 ; 11735 return 0; 11736} 11737_ACEOF 11738rm -f conftest.$ac_objext 11739if { (eval echo "$as_me:11739: \"$ac_compile\"") >&5 11740 (eval $ac_compile) 2>&5 11741 ac_status=$? 11742 echo "$as_me:11742: \$? = $ac_status" >&5 11743 (exit $ac_status); } && 11744 { ac_try='test -s conftest.$ac_objext' 11745 { (eval echo "$as_me:11745: \"$ac_try\"") >&5 11746 (eval $ac_try) 2>&5 11747 ac_status=$? 11748 echo "$as_me:11748: \$? = $ac_status" >&5 11749 (exit $ac_status); }; }; then 11750 ac_cv_header_time=yes 11751else 11752 echo "$as_me: failed program was:" >&5 11753cat conftest.$ac_ext >&5 11754ac_cv_header_time=no 11755fi 11756rm -f conftest.$ac_objext conftest.$ac_ext 11757fi 11758echo "$as_me:11758: result: $ac_cv_header_time" >&5 11759echo "${ECHO_T}$ac_cv_header_time" >&6 11760if test $ac_cv_header_time = yes; then 11761 11762cat >>confdefs.h <<\EOF 11763#define TIME_WITH_SYS_TIME 1 11764EOF 11765 11766fi 11767 11768ac_header_dirent=no 11769for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 11770 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 11771echo "$as_me:11771: checking for $ac_hdr that defines DIR" >&5 11772echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 11773if eval "test \"\${$as_ac_Header+set}\" = set"; then 11774 echo $ECHO_N "(cached) $ECHO_C" >&6 11775else 11776 cat >conftest.$ac_ext <<_ACEOF 11777#line 11777 "configure" 11778#include "confdefs.h" 11779#include <sys/types.h> 11780#include <$ac_hdr> 11781 11782int 11783main () 11784{ 11785if ((DIR *) 0) 11786return 0; 11787 ; 11788 return 0; 11789} 11790_ACEOF 11791rm -f conftest.$ac_objext 11792if { (eval echo "$as_me:11792: \"$ac_compile\"") >&5 11793 (eval $ac_compile) 2>&5 11794 ac_status=$? 11795 echo "$as_me:11795: \$? = $ac_status" >&5 11796 (exit $ac_status); } && 11797 { ac_try='test -s conftest.$ac_objext' 11798 { (eval echo "$as_me:11798: \"$ac_try\"") >&5 11799 (eval $ac_try) 2>&5 11800 ac_status=$? 11801 echo "$as_me:11801: \$? = $ac_status" >&5 11802 (exit $ac_status); }; }; then 11803 eval "$as_ac_Header=yes" 11804else 11805 echo "$as_me: failed program was:" >&5 11806cat conftest.$ac_ext >&5 11807eval "$as_ac_Header=no" 11808fi 11809rm -f conftest.$ac_objext conftest.$ac_ext 11810fi 11811echo "$as_me:11811: result: `eval echo '${'$as_ac_Header'}'`" >&5 11812echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11813if test `eval echo '${'$as_ac_Header'}'` = yes; then 11814 cat >>confdefs.h <<EOF 11815#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 11816EOF 11817 11818ac_header_dirent=$ac_hdr; break 11819fi 11820 11821done 11822# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 11823if test $ac_header_dirent = dirent.h; then 11824 echo "$as_me:11824: checking for opendir in -ldir" >&5 11825echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6 11826if test "${ac_cv_lib_dir_opendir+set}" = set; then 11827 echo $ECHO_N "(cached) $ECHO_C" >&6 11828else 11829 ac_check_lib_save_LIBS=$LIBS 11830LIBS="-ldir $LIBS" 11831cat >conftest.$ac_ext <<_ACEOF 11832#line 11832 "configure" 11833#include "confdefs.h" 11834 11835/* Override any gcc2 internal prototype to avoid an error. */ 11836#ifdef __cplusplus 11837extern "C" 11838#endif 11839/* We use char because int might match the return type of a gcc2 11840 builtin and then its argument prototype would still apply. */ 11841char opendir (); 11842int 11843main () 11844{ 11845opendir (); 11846 ; 11847 return 0; 11848} 11849_ACEOF 11850rm -f conftest.$ac_objext conftest$ac_exeext 11851if { (eval echo "$as_me:11851: \"$ac_link\"") >&5 11852 (eval $ac_link) 2>&5 11853 ac_status=$? 11854 echo "$as_me:11854: \$? = $ac_status" >&5 11855 (exit $ac_status); } && 11856 { ac_try='test -s conftest$ac_exeext' 11857 { (eval echo "$as_me:11857: \"$ac_try\"") >&5 11858 (eval $ac_try) 2>&5 11859 ac_status=$? 11860 echo "$as_me:11860: \$? = $ac_status" >&5 11861 (exit $ac_status); }; }; then 11862 ac_cv_lib_dir_opendir=yes 11863else 11864 echo "$as_me: failed program was:" >&5 11865cat conftest.$ac_ext >&5 11866ac_cv_lib_dir_opendir=no 11867fi 11868rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11869LIBS=$ac_check_lib_save_LIBS 11870fi 11871echo "$as_me:11871: result: $ac_cv_lib_dir_opendir" >&5 11872echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6 11873if test $ac_cv_lib_dir_opendir = yes; then 11874 LIBS="$LIBS -ldir" 11875fi 11876 11877else 11878 echo "$as_me:11878: checking for opendir in -lx" >&5 11879echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6 11880if test "${ac_cv_lib_x_opendir+set}" = set; then 11881 echo $ECHO_N "(cached) $ECHO_C" >&6 11882else 11883 ac_check_lib_save_LIBS=$LIBS 11884LIBS="-lx $LIBS" 11885cat >conftest.$ac_ext <<_ACEOF 11886#line 11886 "configure" 11887#include "confdefs.h" 11888 11889/* Override any gcc2 internal prototype to avoid an error. */ 11890#ifdef __cplusplus 11891extern "C" 11892#endif 11893/* We use char because int might match the return type of a gcc2 11894 builtin and then its argument prototype would still apply. */ 11895char opendir (); 11896int 11897main () 11898{ 11899opendir (); 11900 ; 11901 return 0; 11902} 11903_ACEOF 11904rm -f conftest.$ac_objext conftest$ac_exeext 11905if { (eval echo "$as_me:11905: \"$ac_link\"") >&5 11906 (eval $ac_link) 2>&5 11907 ac_status=$? 11908 echo "$as_me:11908: \$? = $ac_status" >&5 11909 (exit $ac_status); } && 11910 { ac_try='test -s conftest$ac_exeext' 11911 { (eval echo "$as_me:11911: \"$ac_try\"") >&5 11912 (eval $ac_try) 2>&5 11913 ac_status=$? 11914 echo "$as_me:11914: \$? = $ac_status" >&5 11915 (exit $ac_status); }; }; then 11916 ac_cv_lib_x_opendir=yes 11917else 11918 echo "$as_me: failed program was:" >&5 11919cat conftest.$ac_ext >&5 11920ac_cv_lib_x_opendir=no 11921fi 11922rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11923LIBS=$ac_check_lib_save_LIBS 11924fi 11925echo "$as_me:11925: result: $ac_cv_lib_x_opendir" >&5 11926echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6 11927if test $ac_cv_lib_x_opendir = yes; then 11928 LIBS="$LIBS -lx" 11929fi 11930 11931fi 11932 11933for ac_header in search.h unctrl.h unistd.h 11934do 11935as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11936echo "$as_me:11936: checking for $ac_header" >&5 11937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11938if eval "test \"\${$as_ac_Header+set}\" = set"; then 11939 echo $ECHO_N "(cached) $ECHO_C" >&6 11940else 11941 cat >conftest.$ac_ext <<_ACEOF 11942#line 11942 "configure" 11943#include "confdefs.h" 11944#include <$ac_header> 11945_ACEOF 11946if { (eval echo "$as_me:11946: \"$ac_cpp conftest.$ac_ext\"") >&5 11947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11948 ac_status=$? 11949 egrep -v '^ *\+' conftest.er1 >conftest.err 11950 rm -f conftest.er1 11951 cat conftest.err >&5 11952 echo "$as_me:11952: \$? = $ac_status" >&5 11953 (exit $ac_status); } >/dev/null; then 11954 if test -s conftest.err; then 11955 ac_cpp_err=$ac_c_preproc_warn_flag 11956 else 11957 ac_cpp_err= 11958 fi 11959else 11960 ac_cpp_err=yes 11961fi 11962if test -z "$ac_cpp_err"; then 11963 eval "$as_ac_Header=yes" 11964else 11965 echo "$as_me: failed program was:" >&5 11966 cat conftest.$ac_ext >&5 11967 eval "$as_ac_Header=no" 11968fi 11969rm -f conftest.err conftest.$ac_ext 11970fi 11971echo "$as_me:11971: result: `eval echo '${'$as_ac_Header'}'`" >&5 11972echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11973if test `eval echo '${'$as_ac_Header'}'` = yes; then 11974 cat >>confdefs.h <<EOF 11975#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11976EOF 11977 11978fi 11979done 11980 11981echo "$as_me:11981: checking for term.h" >&5 11982echo $ECHO_N "checking for term.h... $ECHO_C" >&6 11983if test "${cf_cv_term_header+set}" = set; then 11984 echo $ECHO_N "(cached) $ECHO_C" >&6 11985else 11986 11987# If we found <ncurses/curses.h>, look for <ncurses/term.h>, but always look 11988# for <term.h> if we do not find the variant. 11989for cf_header in \ 11990 `echo ${cf_cv_ncurses_header-curses.h} | sed -e 's%/.*%/%'`term.h \ 11991 term.h 11992do 11993 cat >conftest.$ac_ext <<_ACEOF 11994#line 11994 "configure" 11995#include "confdefs.h" 11996 11997#include <${cf_cv_ncurses_header-curses.h}> 11998#include <${cf_header}> 11999int 12000main () 12001{ 12002WINDOW *x 12003 ; 12004 return 0; 12005} 12006_ACEOF 12007rm -f conftest.$ac_objext 12008if { (eval echo "$as_me:12008: \"$ac_compile\"") >&5 12009 (eval $ac_compile) 2>&5 12010 ac_status=$? 12011 echo "$as_me:12011: \$? = $ac_status" >&5 12012 (exit $ac_status); } && 12013 { ac_try='test -s conftest.$ac_objext' 12014 { (eval echo "$as_me:12014: \"$ac_try\"") >&5 12015 (eval $ac_try) 2>&5 12016 ac_status=$? 12017 echo "$as_me:12017: \$? = $ac_status" >&5 12018 (exit $ac_status); }; }; then 12019 cf_cv_term_header=$cf_header 12020 break 12021else 12022 echo "$as_me: failed program was:" >&5 12023cat conftest.$ac_ext >&5 12024cf_cv_term_header=no 12025fi 12026rm -f conftest.$ac_objext conftest.$ac_ext 12027done 12028 12029case $cf_cv_term_header in #(vi 12030no) 12031 # If curses is ncurses, some packagers still mess it up by trying to make 12032 # us use GNU termcap. This handles the most common case. 12033 for cf_header in ncurses/term.h ncursesw/term.h 12034 do 12035 cat >conftest.$ac_ext <<_ACEOF 12036#line 12036 "configure" 12037#include "confdefs.h" 12038 12039#include <${cf_cv_ncurses_header-curses.h}> 12040#ifdef NCURSES_VERSION 12041#include <${cf_header}> 12042#else 12043make an error 12044#endif 12045int 12046main () 12047{ 12048WINDOW *x 12049 ; 12050 return 0; 12051} 12052_ACEOF 12053rm -f conftest.$ac_objext 12054if { (eval echo "$as_me:12054: \"$ac_compile\"") >&5 12055 (eval $ac_compile) 2>&5 12056 ac_status=$? 12057 echo "$as_me:12057: \$? = $ac_status" >&5 12058 (exit $ac_status); } && 12059 { ac_try='test -s conftest.$ac_objext' 12060 { (eval echo "$as_me:12060: \"$ac_try\"") >&5 12061 (eval $ac_try) 2>&5 12062 ac_status=$? 12063 echo "$as_me:12063: \$? = $ac_status" >&5 12064 (exit $ac_status); }; }; then 12065 cf_cv_term_header=$cf_header 12066 break 12067else 12068 echo "$as_me: failed program was:" >&5 12069cat conftest.$ac_ext >&5 12070cf_cv_term_header=no 12071fi 12072rm -f conftest.$ac_objext conftest.$ac_ext 12073 done 12074 ;; 12075esac 12076 12077fi 12078echo "$as_me:12078: result: $cf_cv_term_header" >&5 12079echo "${ECHO_T}$cf_cv_term_header" >&6 12080 12081case $cf_cv_term_header in #(vi 12082term.h) #(vi 12083 cat >>confdefs.h <<\EOF 12084#define HAVE_TERM_H 1 12085EOF 12086 12087 ;; 12088ncurses/term.h) #(vi 12089 cat >>confdefs.h <<\EOF 12090#define HAVE_NCURSES_TERM_H 1 12091EOF 12092 12093 ;; 12094ncursesw/term.h) 12095 cat >>confdefs.h <<\EOF 12096#define HAVE_NCURSESW_TERM_H 1 12097EOF 12098 12099 ;; 12100esac 12101 12102echo "$as_me:12102: checking return type of signal handlers" >&5 12103echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 12104if test "${ac_cv_type_signal+set}" = set; then 12105 echo $ECHO_N "(cached) $ECHO_C" >&6 12106else 12107 cat >conftest.$ac_ext <<_ACEOF 12108#line 12108 "configure" 12109#include "confdefs.h" 12110#include <sys/types.h> 12111#include <signal.h> 12112#ifdef signal 12113# undef signal 12114#endif 12115#ifdef __cplusplus 12116extern "C" void (*signal (int, void (*)(int)))(int); 12117#else 12118void (*signal ()) (); 12119#endif 12120 12121int 12122main () 12123{ 12124int i; 12125 ; 12126 return 0; 12127} 12128_ACEOF 12129rm -f conftest.$ac_objext 12130if { (eval echo "$as_me:12130: \"$ac_compile\"") >&5 12131 (eval $ac_compile) 2>&5 12132 ac_status=$? 12133 echo "$as_me:12133: \$? = $ac_status" >&5 12134 (exit $ac_status); } && 12135 { ac_try='test -s conftest.$ac_objext' 12136 { (eval echo "$as_me:12136: \"$ac_try\"") >&5 12137 (eval $ac_try) 2>&5 12138 ac_status=$? 12139 echo "$as_me:12139: \$? = $ac_status" >&5 12140 (exit $ac_status); }; }; then 12141 ac_cv_type_signal=void 12142else 12143 echo "$as_me: failed program was:" >&5 12144cat conftest.$ac_ext >&5 12145ac_cv_type_signal=int 12146fi 12147rm -f conftest.$ac_objext conftest.$ac_ext 12148fi 12149echo "$as_me:12149: result: $ac_cv_type_signal" >&5 12150echo "${ECHO_T}$ac_cv_type_signal" >&6 12151 12152cat >>confdefs.h <<EOF 12153#define RETSIGTYPE $ac_cv_type_signal 12154EOF 12155 12156for ac_func in \ 12157_nc_free_and_exit \ 12158strcasecmp \ 12159strftime \ 12160tsearch \ 12161waitpid \ 12162 12163do 12164as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12165echo "$as_me:12165: checking for $ac_func" >&5 12166echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 12167if eval "test \"\${$as_ac_var+set}\" = set"; then 12168 echo $ECHO_N "(cached) $ECHO_C" >&6 12169else 12170 cat >conftest.$ac_ext <<_ACEOF 12171#line 12171 "configure" 12172#include "confdefs.h" 12173/* System header to define __stub macros and hopefully few prototypes, 12174 which can conflict with char $ac_func (); below. */ 12175#include <assert.h> 12176/* Override any gcc2 internal prototype to avoid an error. */ 12177#ifdef __cplusplus 12178extern "C" 12179#endif 12180/* We use char because int might match the return type of a gcc2 12181 builtin and then its argument prototype would still apply. */ 12182char $ac_func (); 12183char (*f) (); 12184 12185int 12186main () 12187{ 12188/* The GNU C library defines this for functions which it implements 12189 to always fail with ENOSYS. Some functions are actually named 12190 something starting with __ and the normal name is an alias. */ 12191#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 12192choke me 12193#else 12194f = $ac_func; 12195#endif 12196 12197 ; 12198 return 0; 12199} 12200_ACEOF 12201rm -f conftest.$ac_objext conftest$ac_exeext 12202if { (eval echo "$as_me:12202: \"$ac_link\"") >&5 12203 (eval $ac_link) 2>&5 12204 ac_status=$? 12205 echo "$as_me:12205: \$? = $ac_status" >&5 12206 (exit $ac_status); } && 12207 { ac_try='test -s conftest$ac_exeext' 12208 { (eval echo "$as_me:12208: \"$ac_try\"") >&5 12209 (eval $ac_try) 2>&5 12210 ac_status=$? 12211 echo "$as_me:12211: \$? = $ac_status" >&5 12212 (exit $ac_status); }; }; then 12213 eval "$as_ac_var=yes" 12214else 12215 echo "$as_me: failed program was:" >&5 12216cat conftest.$ac_ext >&5 12217eval "$as_ac_var=no" 12218fi 12219rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12220fi 12221echo "$as_me:12221: result: `eval echo '${'$as_ac_var'}'`" >&5 12222echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 12223if test `eval echo '${'$as_ac_var'}'` = yes; then 12224 cat >>confdefs.h <<EOF 12225#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12226EOF 12227 12228fi 12229done 12230 12231echo "$as_me:12231: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5 12232echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6 12233if test "${cf_cv_need_xopen_extension+set}" = set; then 12234 echo $ECHO_N "(cached) $ECHO_C" >&6 12235else 12236 12237cat >conftest.$ac_ext <<_ACEOF 12238#line 12238 "configure" 12239#include "confdefs.h" 12240 12241#include <stdlib.h> 12242#include <${cf_cv_ncurses_header-curses.h}> 12243int 12244main () 12245{ 12246 12247#if defined(NCURSES_VERSION_PATCH) 12248if (NCURSES_VERSION_PATCH < 20100501) && (NCURSES_VERSION_PATCH >= 20100403) 12249 make an error 12250#endif 12251#endif 12252 long x = winnstr(stdscr, "", 0); 12253 int x1, y1; 12254 getbegyx(stdscr, y1, x1) 12255 ; 12256 return 0; 12257} 12258_ACEOF 12259rm -f conftest.$ac_objext conftest$ac_exeext 12260if { (eval echo "$as_me:12260: \"$ac_link\"") >&5 12261 (eval $ac_link) 2>&5 12262 ac_status=$? 12263 echo "$as_me:12263: \$? = $ac_status" >&5 12264 (exit $ac_status); } && 12265 { ac_try='test -s conftest$ac_exeext' 12266 { (eval echo "$as_me:12266: \"$ac_try\"") >&5 12267 (eval $ac_try) 2>&5 12268 ac_status=$? 12269 echo "$as_me:12269: \$? = $ac_status" >&5 12270 (exit $ac_status); }; }; then 12271 cf_cv_need_xopen_extension=no 12272else 12273 echo "$as_me: failed program was:" >&5 12274cat conftest.$ac_ext >&5 12275cat >conftest.$ac_ext <<_ACEOF 12276#line 12276 "configure" 12277#include "confdefs.h" 12278 12279#define _XOPEN_SOURCE_EXTENDED 12280#include <stdlib.h> 12281#include <${cf_cv_ncurses_header-curses.h}> 12282int 12283main () 12284{ 12285 12286#ifdef NCURSES_VERSION 12287 cchar_t check; 12288 int check2 = curs_set((int)sizeof(check)); 12289#endif 12290 long x = winnstr(stdscr, "", 0); 12291 int x1, y1; 12292 getbegyx(stdscr, y1, x1) 12293 ; 12294 return 0; 12295} 12296_ACEOF 12297rm -f conftest.$ac_objext conftest$ac_exeext 12298if { (eval echo "$as_me:12298: \"$ac_link\"") >&5 12299 (eval $ac_link) 2>&5 12300 ac_status=$? 12301 echo "$as_me:12301: \$? = $ac_status" >&5 12302 (exit $ac_status); } && 12303 { ac_try='test -s conftest$ac_exeext' 12304 { (eval echo "$as_me:12304: \"$ac_try\"") >&5 12305 (eval $ac_try) 2>&5 12306 ac_status=$? 12307 echo "$as_me:12307: \$? = $ac_status" >&5 12308 (exit $ac_status); }; }; then 12309 cf_cv_need_xopen_extension=yes 12310else 12311 echo "$as_me: failed program was:" >&5 12312cat conftest.$ac_ext >&5 12313cf_cv_need_xopen_extension=unknown 12314fi 12315rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12316fi 12317rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12318fi 12319echo "$as_me:12319: result: $cf_cv_need_xopen_extension" >&5 12320echo "${ECHO_T}$cf_cv_need_xopen_extension" >&6 12321test $cf_cv_need_xopen_extension = yes && CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED" 12322 12323for cf_func in \ 12324flushinp \ 12325getbegx \ 12326getbegy \ 12327getbegyx \ 12328getcurx \ 12329getcury \ 12330getmaxx \ 12331getmaxy \ 12332getmaxyx \ 12333getparx \ 12334getpary \ 12335getparyx \ 12336use_default_colors \ 12337wget_wch \ 12338 12339do 12340 12341cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 12342 12343 echo "$as_me:12343: checking for ${cf_func}" >&5 12344echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6 12345 12346echo "${as_me-configure}:12346: testing ${cf_func} ..." 1>&5 12347 12348 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then 12349 echo $ECHO_N "(cached) $ECHO_C" >&6 12350else 12351 12352 eval cf_result='$ac_cv_func_'$cf_func 12353 if test ".$cf_result" != ".no"; then 12354 cat >conftest.$ac_ext <<_ACEOF 12355#line 12355 "configure" 12356#include "confdefs.h" 12357 12358#ifdef HAVE_XCURSES 12359#include <xcurses.h> 12360char * XCursesProgramName = "test"; 12361#else 12362#include <${cf_cv_ncurses_header-curses.h}> 12363#if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H) 12364#include <ncursesw/term.h> 12365#elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H) 12366#include <ncurses/term.h> 12367#elif defined(HAVE_TERM_H) 12368#include <term.h> 12369#endif 12370#endif 12371 12372int 12373main () 12374{ 12375 12376#ifndef ${cf_func} 12377long foo = (long)(&${cf_func}); 12378${cf_cv_main_return-return}(foo == 0); 12379#endif 12380 12381 ; 12382 return 0; 12383} 12384_ACEOF 12385rm -f conftest.$ac_objext conftest$ac_exeext 12386if { (eval echo "$as_me:12386: \"$ac_link\"") >&5 12387 (eval $ac_link) 2>&5 12388 ac_status=$? 12389 echo "$as_me:12389: \$? = $ac_status" >&5 12390 (exit $ac_status); } && 12391 { ac_try='test -s conftest$ac_exeext' 12392 { (eval echo "$as_me:12392: \"$ac_try\"") >&5 12393 (eval $ac_try) 2>&5 12394 ac_status=$? 12395 echo "$as_me:12395: \$? = $ac_status" >&5 12396 (exit $ac_status); }; }; then 12397 cf_result=yes 12398else 12399 echo "$as_me: failed program was:" >&5 12400cat conftest.$ac_ext >&5 12401cf_result=no 12402fi 12403rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12404 fi 12405 eval 'cf_cv_func_'$cf_func'=$cf_result' 12406 12407fi 12408 12409 # use the computed/retrieved cache-value: 12410 eval 'cf_result=$cf_cv_func_'$cf_func 12411 echo "$as_me:12411: result: $cf_result" >&5 12412echo "${ECHO_T}$cf_result" >&6 12413 if test $cf_result != no; then 12414 cat >>confdefs.h <<EOF 12415#define HAVE_${cf_tr_func} 1 12416EOF 12417 12418 fi 12419done 12420 12421echo "$as_me:12421: checking for start_color" >&5 12422echo $ECHO_N "checking for start_color... $ECHO_C" >&6 12423if test "${ac_cv_func_start_color+set}" = set; then 12424 echo $ECHO_N "(cached) $ECHO_C" >&6 12425else 12426 cat >conftest.$ac_ext <<_ACEOF 12427#line 12427 "configure" 12428#include "confdefs.h" 12429/* System header to define __stub macros and hopefully few prototypes, 12430 which can conflict with char start_color (); below. */ 12431#include <assert.h> 12432/* Override any gcc2 internal prototype to avoid an error. */ 12433#ifdef __cplusplus 12434extern "C" 12435#endif 12436/* We use char because int might match the return type of a gcc2 12437 builtin and then its argument prototype would still apply. */ 12438char start_color (); 12439char (*f) (); 12440 12441int 12442main () 12443{ 12444/* The GNU C library defines this for functions which it implements 12445 to always fail with ENOSYS. Some functions are actually named 12446 something starting with __ and the normal name is an alias. */ 12447#if defined (__stub_start_color) || defined (__stub___start_color) 12448choke me 12449#else 12450f = start_color; 12451#endif 12452 12453 ; 12454 return 0; 12455} 12456_ACEOF 12457rm -f conftest.$ac_objext conftest$ac_exeext 12458if { (eval echo "$as_me:12458: \"$ac_link\"") >&5 12459 (eval $ac_link) 2>&5 12460 ac_status=$? 12461 echo "$as_me:12461: \$? = $ac_status" >&5 12462 (exit $ac_status); } && 12463 { ac_try='test -s conftest$ac_exeext' 12464 { (eval echo "$as_me:12464: \"$ac_try\"") >&5 12465 (eval $ac_try) 2>&5 12466 ac_status=$? 12467 echo "$as_me:12467: \$? = $ac_status" >&5 12468 (exit $ac_status); }; }; then 12469 ac_cv_func_start_color=yes 12470else 12471 echo "$as_me: failed program was:" >&5 12472cat conftest.$ac_ext >&5 12473ac_cv_func_start_color=no 12474fi 12475rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12476fi 12477echo "$as_me:12477: result: $ac_cv_func_start_color" >&5 12478echo "${ECHO_T}$ac_cv_func_start_color" >&6 12479if test $ac_cv_func_start_color = yes; then 12480 cat >>confdefs.h <<\EOF 12481#define HAVE_COLOR 1 12482EOF 12483 12484fi 12485 12486echo "$as_me:12486: checking for chtype typedef" >&5 12487echo $ECHO_N "checking for chtype typedef... $ECHO_C" >&6 12488if test "${cf_cv_chtype_decl+set}" = set; then 12489 echo $ECHO_N "(cached) $ECHO_C" >&6 12490else 12491 12492 cat >conftest.$ac_ext <<_ACEOF 12493#line 12493 "configure" 12494#include "confdefs.h" 12495#include <${cf_cv_ncurses_header-curses.h}> 12496int 12497main () 12498{ 12499chtype foo 12500 ; 12501 return 0; 12502} 12503_ACEOF 12504rm -f conftest.$ac_objext 12505if { (eval echo "$as_me:12505: \"$ac_compile\"") >&5 12506 (eval $ac_compile) 2>&5 12507 ac_status=$? 12508 echo "$as_me:12508: \$? = $ac_status" >&5 12509 (exit $ac_status); } && 12510 { ac_try='test -s conftest.$ac_objext' 12511 { (eval echo "$as_me:12511: \"$ac_try\"") >&5 12512 (eval $ac_try) 2>&5 12513 ac_status=$? 12514 echo "$as_me:12514: \$? = $ac_status" >&5 12515 (exit $ac_status); }; }; then 12516 cf_cv_chtype_decl=yes 12517else 12518 echo "$as_me: failed program was:" >&5 12519cat conftest.$ac_ext >&5 12520cf_cv_chtype_decl=no 12521fi 12522rm -f conftest.$ac_objext conftest.$ac_ext 12523fi 12524echo "$as_me:12524: result: $cf_cv_chtype_decl" >&5 12525echo "${ECHO_T}$cf_cv_chtype_decl" >&6 12526if test $cf_cv_chtype_decl = yes ; then 12527 cat >>confdefs.h <<\EOF 12528#define HAVE_TYPE_CHTYPE 1 12529EOF 12530 12531 echo "$as_me:12531: checking if chtype is scalar or struct" >&5 12532echo $ECHO_N "checking if chtype is scalar or struct... $ECHO_C" >&6 12533if test "${cf_cv_chtype_type+set}" = set; then 12534 echo $ECHO_N "(cached) $ECHO_C" >&6 12535else 12536 12537 cat >conftest.$ac_ext <<_ACEOF 12538#line 12538 "configure" 12539#include "confdefs.h" 12540#include <${cf_cv_ncurses_header-curses.h}> 12541int 12542main () 12543{ 12544chtype foo; long x = foo 12545 ; 12546 return 0; 12547} 12548_ACEOF 12549rm -f conftest.$ac_objext 12550if { (eval echo "$as_me:12550: \"$ac_compile\"") >&5 12551 (eval $ac_compile) 2>&5 12552 ac_status=$? 12553 echo "$as_me:12553: \$? = $ac_status" >&5 12554 (exit $ac_status); } && 12555 { ac_try='test -s conftest.$ac_objext' 12556 { (eval echo "$as_me:12556: \"$ac_try\"") >&5 12557 (eval $ac_try) 2>&5 12558 ac_status=$? 12559 echo "$as_me:12559: \$? = $ac_status" >&5 12560 (exit $ac_status); }; }; then 12561 cf_cv_chtype_type=scalar 12562else 12563 echo "$as_me: failed program was:" >&5 12564cat conftest.$ac_ext >&5 12565cf_cv_chtype_type=struct 12566fi 12567rm -f conftest.$ac_objext conftest.$ac_ext 12568fi 12569echo "$as_me:12569: result: $cf_cv_chtype_type" >&5 12570echo "${ECHO_T}$cf_cv_chtype_type" >&6 12571 if test $cf_cv_chtype_type = scalar ; then 12572 cat >>confdefs.h <<\EOF 12573#define TYPE_CHTYPE_IS_SCALAR 1 12574EOF 12575 12576 fi 12577fi 12578 12579for ac_header in sys/wait.h 12580do 12581as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12582echo "$as_me:12582: checking for $ac_header" >&5 12583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12584if eval "test \"\${$as_ac_Header+set}\" = set"; then 12585 echo $ECHO_N "(cached) $ECHO_C" >&6 12586else 12587 cat >conftest.$ac_ext <<_ACEOF 12588#line 12588 "configure" 12589#include "confdefs.h" 12590#include <$ac_header> 12591_ACEOF 12592if { (eval echo "$as_me:12592: \"$ac_cpp conftest.$ac_ext\"") >&5 12593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 12594 ac_status=$? 12595 egrep -v '^ *\+' conftest.er1 >conftest.err 12596 rm -f conftest.er1 12597 cat conftest.err >&5 12598 echo "$as_me:12598: \$? = $ac_status" >&5 12599 (exit $ac_status); } >/dev/null; then 12600 if test -s conftest.err; then 12601 ac_cpp_err=$ac_c_preproc_warn_flag 12602 else 12603 ac_cpp_err= 12604 fi 12605else 12606 ac_cpp_err=yes 12607fi 12608if test -z "$ac_cpp_err"; then 12609 eval "$as_ac_Header=yes" 12610else 12611 echo "$as_me: failed program was:" >&5 12612 cat conftest.$ac_ext >&5 12613 eval "$as_ac_Header=no" 12614fi 12615rm -f conftest.err conftest.$ac_ext 12616fi 12617echo "$as_me:12617: result: `eval echo '${'$as_ac_Header'}'`" >&5 12618echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12619if test `eval echo '${'$as_ac_Header'}'` = yes; then 12620 cat >>confdefs.h <<EOF 12621#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12622EOF 12623 12624fi 12625done 12626 12627cf_wait_headers="#include <sys/types.h> 12628" 12629if test $ac_cv_header_sys_wait_h = yes; then 12630cf_wait_headers="$cf_wait_headers 12631#include <sys/wait.h> 12632" 12633else 12634 12635for ac_header in wait.h 12636do 12637as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12638echo "$as_me:12638: checking for $ac_header" >&5 12639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12640if eval "test \"\${$as_ac_Header+set}\" = set"; then 12641 echo $ECHO_N "(cached) $ECHO_C" >&6 12642else 12643 cat >conftest.$ac_ext <<_ACEOF 12644#line 12644 "configure" 12645#include "confdefs.h" 12646#include <$ac_header> 12647_ACEOF 12648if { (eval echo "$as_me:12648: \"$ac_cpp conftest.$ac_ext\"") >&5 12649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 12650 ac_status=$? 12651 egrep -v '^ *\+' conftest.er1 >conftest.err 12652 rm -f conftest.er1 12653 cat conftest.err >&5 12654 echo "$as_me:12654: \$? = $ac_status" >&5 12655 (exit $ac_status); } >/dev/null; then 12656 if test -s conftest.err; then 12657 ac_cpp_err=$ac_c_preproc_warn_flag 12658 else 12659 ac_cpp_err= 12660 fi 12661else 12662 ac_cpp_err=yes 12663fi 12664if test -z "$ac_cpp_err"; then 12665 eval "$as_ac_Header=yes" 12666else 12667 echo "$as_me: failed program was:" >&5 12668 cat conftest.$ac_ext >&5 12669 eval "$as_ac_Header=no" 12670fi 12671rm -f conftest.err conftest.$ac_ext 12672fi 12673echo "$as_me:12673: result: `eval echo '${'$as_ac_Header'}'`" >&5 12674echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12675if test `eval echo '${'$as_ac_Header'}'` = yes; then 12676 cat >>confdefs.h <<EOF 12677#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12678EOF 12679 12680fi 12681done 12682 12683for ac_header in waitstatus.h 12684do 12685as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12686echo "$as_me:12686: checking for $ac_header" >&5 12687echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12688if eval "test \"\${$as_ac_Header+set}\" = set"; then 12689 echo $ECHO_N "(cached) $ECHO_C" >&6 12690else 12691 cat >conftest.$ac_ext <<_ACEOF 12692#line 12692 "configure" 12693#include "confdefs.h" 12694#include <$ac_header> 12695_ACEOF 12696if { (eval echo "$as_me:12696: \"$ac_cpp conftest.$ac_ext\"") >&5 12697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 12698 ac_status=$? 12699 egrep -v '^ *\+' conftest.er1 >conftest.err 12700 rm -f conftest.er1 12701 cat conftest.err >&5 12702 echo "$as_me:12702: \$? = $ac_status" >&5 12703 (exit $ac_status); } >/dev/null; then 12704 if test -s conftest.err; then 12705 ac_cpp_err=$ac_c_preproc_warn_flag 12706 else 12707 ac_cpp_err= 12708 fi 12709else 12710 ac_cpp_err=yes 12711fi 12712if test -z "$ac_cpp_err"; then 12713 eval "$as_ac_Header=yes" 12714else 12715 echo "$as_me: failed program was:" >&5 12716 cat conftest.$ac_ext >&5 12717 eval "$as_ac_Header=no" 12718fi 12719rm -f conftest.err conftest.$ac_ext 12720fi 12721echo "$as_me:12721: result: `eval echo '${'$as_ac_Header'}'`" >&5 12722echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12723if test `eval echo '${'$as_ac_Header'}'` = yes; then 12724 cat >>confdefs.h <<EOF 12725#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12726EOF 12727 12728fi 12729done 12730 12731if test $ac_cv_header_wait_h = yes; then 12732cf_wait_headers="$cf_wait_headers 12733#include <wait.h> 12734" 12735fi 12736if test $ac_cv_header_waitstatus_h = yes; then 12737cf_wait_headers="$cf_wait_headers 12738#include <waitstatus.h> 12739" 12740fi 12741fi 12742 12743echo "$as_me:12743: checking for union wait" >&5 12744echo $ECHO_N "checking for union wait... $ECHO_C" >&6 12745if test "${cf_cv_type_unionwait+set}" = set; then 12746 echo $ECHO_N "(cached) $ECHO_C" >&6 12747else 12748 12749 cat >conftest.$ac_ext <<_ACEOF 12750#line 12750 "configure" 12751#include "confdefs.h" 12752$cf_wait_headers 12753int 12754main () 12755{ 12756int x; 12757 int y = WEXITSTATUS(x); 12758 int z = WTERMSIG(x); 12759 wait(&x); 12760 12761 ; 12762 return 0; 12763} 12764_ACEOF 12765rm -f conftest.$ac_objext conftest$ac_exeext 12766if { (eval echo "$as_me:12766: \"$ac_link\"") >&5 12767 (eval $ac_link) 2>&5 12768 ac_status=$? 12769 echo "$as_me:12769: \$? = $ac_status" >&5 12770 (exit $ac_status); } && 12771 { ac_try='test -s conftest$ac_exeext' 12772 { (eval echo "$as_me:12772: \"$ac_try\"") >&5 12773 (eval $ac_try) 2>&5 12774 ac_status=$? 12775 echo "$as_me:12775: \$? = $ac_status" >&5 12776 (exit $ac_status); }; }; then 12777 cf_cv_type_unionwait=no 12778 echo compiles ok w/o union wait 1>&5 12779 12780else 12781 echo "$as_me: failed program was:" >&5 12782cat conftest.$ac_ext >&5 12783 12784 cat >conftest.$ac_ext <<_ACEOF 12785#line 12785 "configure" 12786#include "confdefs.h" 12787$cf_wait_headers 12788int 12789main () 12790{ 12791union wait x; 12792#ifdef WEXITSTATUS 12793 int y = WEXITSTATUS(x); 12794#endif 12795#ifdef WTERMSIG 12796 int z = WTERMSIG(x); 12797#endif 12798 wait(&x); 12799 12800 ; 12801 return 0; 12802} 12803_ACEOF 12804rm -f conftest.$ac_objext conftest$ac_exeext 12805if { (eval echo "$as_me:12805: \"$ac_link\"") >&5 12806 (eval $ac_link) 2>&5 12807 ac_status=$? 12808 echo "$as_me:12808: \$? = $ac_status" >&5 12809 (exit $ac_status); } && 12810 { ac_try='test -s conftest$ac_exeext' 12811 { (eval echo "$as_me:12811: \"$ac_try\"") >&5 12812 (eval $ac_try) 2>&5 12813 ac_status=$? 12814 echo "$as_me:12814: \$? = $ac_status" >&5 12815 (exit $ac_status); }; }; then 12816 cf_cv_type_unionwait=yes 12817 echo compiles ok with union wait and possibly macros too 1>&5 12818 12819else 12820 echo "$as_me: failed program was:" >&5 12821cat conftest.$ac_ext >&5 12822cf_cv_type_unionwait=no 12823fi 12824rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12825fi 12826rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12827fi 12828 12829echo "$as_me:12829: result: $cf_cv_type_unionwait" >&5 12830echo "${ECHO_T}$cf_cv_type_unionwait" >&6 12831test $cf_cv_type_unionwait = yes && cat >>confdefs.h <<\EOF 12832#define HAVE_TYPE_UNIONWAIT 1 12833EOF 12834 12835if test $cf_cv_type_unionwait = yes; then 12836 12837 echo "$as_me:12837: checking if union wait can be used as wait-arg" >&5 12838echo $ECHO_N "checking if union wait can be used as wait-arg... $ECHO_C" >&6 12839 if test "${cf_cv_arg_union_wait+set}" = set; then 12840 echo $ECHO_N "(cached) $ECHO_C" >&6 12841else 12842 12843 cat >conftest.$ac_ext <<_ACEOF 12844#line 12844 "configure" 12845#include "confdefs.h" 12846$cf_wait_headers 12847int 12848main () 12849{ 12850union wait x; wait(&x) 12851 ; 12852 return 0; 12853} 12854_ACEOF 12855rm -f conftest.$ac_objext 12856if { (eval echo "$as_me:12856: \"$ac_compile\"") >&5 12857 (eval $ac_compile) 2>&5 12858 ac_status=$? 12859 echo "$as_me:12859: \$? = $ac_status" >&5 12860 (exit $ac_status); } && 12861 { ac_try='test -s conftest.$ac_objext' 12862 { (eval echo "$as_me:12862: \"$ac_try\"") >&5 12863 (eval $ac_try) 2>&5 12864 ac_status=$? 12865 echo "$as_me:12865: \$? = $ac_status" >&5 12866 (exit $ac_status); }; }; then 12867 cf_cv_arg_union_wait=yes 12868else 12869 echo "$as_me: failed program was:" >&5 12870cat conftest.$ac_ext >&5 12871cf_cv_arg_union_wait=no 12872fi 12873rm -f conftest.$ac_objext conftest.$ac_ext 12874 12875fi 12876 12877 echo "$as_me:12877: result: $cf_cv_arg_union_wait" >&5 12878echo "${ECHO_T}$cf_cv_arg_union_wait" >&6 12879 test $cf_cv_arg_union_wait = yes && cat >>confdefs.h <<\EOF 12880#define WAIT_USES_UNION 1 12881EOF 12882 12883 echo "$as_me:12883: checking if union wait can be used as waitpid-arg" >&5 12884echo $ECHO_N "checking if union wait can be used as waitpid-arg... $ECHO_C" >&6 12885 if test "${cf_cv_arg_union_waitpid+set}" = set; then 12886 echo $ECHO_N "(cached) $ECHO_C" >&6 12887else 12888 12889 cat >conftest.$ac_ext <<_ACEOF 12890#line 12890 "configure" 12891#include "confdefs.h" 12892$cf_wait_headers 12893int 12894main () 12895{ 12896union wait x; waitpid(0, &x, 0) 12897 ; 12898 return 0; 12899} 12900_ACEOF 12901rm -f conftest.$ac_objext 12902if { (eval echo "$as_me:12902: \"$ac_compile\"") >&5 12903 (eval $ac_compile) 2>&5 12904 ac_status=$? 12905 echo "$as_me:12905: \$? = $ac_status" >&5 12906 (exit $ac_status); } && 12907 { ac_try='test -s conftest.$ac_objext' 12908 { (eval echo "$as_me:12908: \"$ac_try\"") >&5 12909 (eval $ac_try) 2>&5 12910 ac_status=$? 12911 echo "$as_me:12911: \$? = $ac_status" >&5 12912 (exit $ac_status); }; }; then 12913 cf_cv_arg_union_waitpid=yes 12914else 12915 echo "$as_me: failed program was:" >&5 12916cat conftest.$ac_ext >&5 12917cf_cv_arg_union_waitpid=no 12918fi 12919rm -f conftest.$ac_objext conftest.$ac_ext 12920 12921fi 12922 12923 echo "$as_me:12923: result: $cf_cv_arg_union_waitpid" >&5 12924echo "${ECHO_T}$cf_cv_arg_union_waitpid" >&6 12925 test $cf_cv_arg_union_waitpid = yes && cat >>confdefs.h <<\EOF 12926#define WAITPID_USES_UNION 1 12927EOF 12928 12929fi 12930 12931echo "$as_me:12931: checking if we must include wchar.h to declare mbstate_t" >&5 12932echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6 12933if test "${cf_cv_mbstate_t+set}" = set; then 12934 echo $ECHO_N "(cached) $ECHO_C" >&6 12935else 12936 12937cat >conftest.$ac_ext <<_ACEOF 12938#line 12938 "configure" 12939#include "confdefs.h" 12940 12941#include <stdlib.h> 12942#include <stdio.h> 12943#ifdef HAVE_LIBUTF8_H 12944#include <libutf8.h> 12945#endif 12946int 12947main () 12948{ 12949mbstate_t state 12950 ; 12951 return 0; 12952} 12953_ACEOF 12954rm -f conftest.$ac_objext 12955if { (eval echo "$as_me:12955: \"$ac_compile\"") >&5 12956 (eval $ac_compile) 2>&5 12957 ac_status=$? 12958 echo "$as_me:12958: \$? = $ac_status" >&5 12959 (exit $ac_status); } && 12960 { ac_try='test -s conftest.$ac_objext' 12961 { (eval echo "$as_me:12961: \"$ac_try\"") >&5 12962 (eval $ac_try) 2>&5 12963 ac_status=$? 12964 echo "$as_me:12964: \$? = $ac_status" >&5 12965 (exit $ac_status); }; }; then 12966 cf_cv_mbstate_t=no 12967else 12968 echo "$as_me: failed program was:" >&5 12969cat conftest.$ac_ext >&5 12970cat >conftest.$ac_ext <<_ACEOF 12971#line 12971 "configure" 12972#include "confdefs.h" 12973 12974#include <stdlib.h> 12975#include <stdio.h> 12976#include <wchar.h> 12977#ifdef HAVE_LIBUTF8_H 12978#include <libutf8.h> 12979#endif 12980int 12981main () 12982{ 12983mbstate_t value 12984 ; 12985 return 0; 12986} 12987_ACEOF 12988rm -f conftest.$ac_objext 12989if { (eval echo "$as_me:12989: \"$ac_compile\"") >&5 12990 (eval $ac_compile) 2>&5 12991 ac_status=$? 12992 echo "$as_me:12992: \$? = $ac_status" >&5 12993 (exit $ac_status); } && 12994 { ac_try='test -s conftest.$ac_objext' 12995 { (eval echo "$as_me:12995: \"$ac_try\"") >&5 12996 (eval $ac_try) 2>&5 12997 ac_status=$? 12998 echo "$as_me:12998: \$? = $ac_status" >&5 12999 (exit $ac_status); }; }; then 13000 cf_cv_mbstate_t=yes 13001else 13002 echo "$as_me: failed program was:" >&5 13003cat conftest.$ac_ext >&5 13004cf_cv_mbstate_t=unknown 13005fi 13006rm -f conftest.$ac_objext conftest.$ac_ext 13007fi 13008rm -f conftest.$ac_objext conftest.$ac_ext 13009fi 13010echo "$as_me:13010: result: $cf_cv_mbstate_t" >&5 13011echo "${ECHO_T}$cf_cv_mbstate_t" >&6 13012 13013if test "$cf_cv_mbstate_t" = yes ; then 13014 cat >>confdefs.h <<\EOF 13015#define NEED_WCHAR_H 1 13016EOF 13017 13018fi 13019 13020if test "$cf_cv_mbstate_t" != unknown ; then 13021 cat >>confdefs.h <<\EOF 13022#define HAVE_MBSTATE_T 1 13023EOF 13024 13025fi 13026 13027PACKAGE_PREFIX=DLG 13028PACKAGE_CONFIG=dlg_config.h 13029 13030EXTRA_OUTPUT="$EXTRA_OUTPUT headers-sh:$srcdir/headers-sh.in" 13031 13032cat >conftest.$ac_ext <<_ACEOF 13033#line 13033 "configure" 13034#include "confdefs.h" 13035#include <locale.h> 13036int 13037main () 13038{ 13039setlocale(LC_ALL, "") 13040 ; 13041 return 0; 13042} 13043_ACEOF 13044rm -f conftest.$ac_objext conftest$ac_exeext 13045if { (eval echo "$as_me:13045: \"$ac_link\"") >&5 13046 (eval $ac_link) 2>&5 13047 ac_status=$? 13048 echo "$as_me:13048: \$? = $ac_status" >&5 13049 (exit $ac_status); } && 13050 { ac_try='test -s conftest$ac_exeext' 13051 { (eval echo "$as_me:13051: \"$ac_try\"") >&5 13052 (eval $ac_try) 2>&5 13053 ac_status=$? 13054 echo "$as_me:13054: \$? = $ac_status" >&5 13055 (exit $ac_status); }; }; then 13056 cat >>confdefs.h <<\EOF 13057#define HAVE_SETLOCALE 1 13058EOF 13059 13060else 13061 echo "$as_me: failed program was:" >&5 13062cat conftest.$ac_ext >&5 13063fi 13064rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13065 13066LD_RPATH_OPT= 13067echo "$as_me:13067: checking for an rpath option" >&5 13068echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6 13069case $cf_cv_system_name in #(vi 13070irix*) #(vi 13071 if test "$GCC" = yes; then 13072 LD_RPATH_OPT="-Wl,-rpath," 13073 else 13074 LD_RPATH_OPT="-rpath " 13075 fi 13076 ;; 13077linux*|gnu*|k*bsd*-gnu) #(vi 13078 LD_RPATH_OPT="-Wl,-rpath," 13079 ;; 13080openbsd[2-9].*) #(vi 13081 LD_RPATH_OPT="-Wl,-rpath," 13082 ;; 13083freebsd*) #(vi 13084 LD_RPATH_OPT="-rpath " 13085 ;; 13086netbsd*) #(vi 13087 LD_RPATH_OPT="-Wl,-rpath," 13088 ;; 13089osf*|mls+*) #(vi 13090 LD_RPATH_OPT="-rpath " 13091 ;; 13092solaris2*) #(vi 13093 LD_RPATH_OPT="-R" 13094 ;; 13095*) 13096 ;; 13097esac 13098echo "$as_me:13098: result: $LD_RPATH_OPT" >&5 13099echo "${ECHO_T}$LD_RPATH_OPT" >&6 13100 13101case "x$LD_RPATH_OPT" in #(vi 13102x-R*) 13103 echo "$as_me:13103: checking if we need a space after rpath option" >&5 13104echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6 13105 cf_save_LIBS="$LIBS" 13106 LIBS="${LD_RPATH_OPT}$libdir $LIBS" 13107 cat >conftest.$ac_ext <<_ACEOF 13108#line 13108 "configure" 13109#include "confdefs.h" 13110 13111int 13112main () 13113{ 13114 13115 ; 13116 return 0; 13117} 13118_ACEOF 13119rm -f conftest.$ac_objext conftest$ac_exeext 13120if { (eval echo "$as_me:13120: \"$ac_link\"") >&5 13121 (eval $ac_link) 2>&5 13122 ac_status=$? 13123 echo "$as_me:13123: \$? = $ac_status" >&5 13124 (exit $ac_status); } && 13125 { ac_try='test -s conftest$ac_exeext' 13126 { (eval echo "$as_me:13126: \"$ac_try\"") >&5 13127 (eval $ac_try) 2>&5 13128 ac_status=$? 13129 echo "$as_me:13129: \$? = $ac_status" >&5 13130 (exit $ac_status); }; }; then 13131 cf_rpath_space=no 13132else 13133 echo "$as_me: failed program was:" >&5 13134cat conftest.$ac_ext >&5 13135cf_rpath_space=yes 13136fi 13137rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13138 LIBS="$cf_save_LIBS" 13139 echo "$as_me:13139: result: $cf_rpath_space" >&5 13140echo "${ECHO_T}$cf_rpath_space" >&6 13141 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT " 13142 ;; 13143esac 13144 13145echo "$as_me:13145: checking if rpath should be not be set" >&5 13146echo $ECHO_N "checking if rpath should be not be set... $ECHO_C" >&6 13147 13148# Check whether --enable-rpath-hack or --disable-rpath-hack was given. 13149if test "${enable_rpath_hack+set}" = set; then 13150 enableval="$enable_rpath_hack" 13151 test "$enableval" != no && enableval=yes 13152 if test "$enableval" != "yes" ; then 13153 cf_disable_rpath_hack=yes 13154 else 13155 cf_disable_rpath_hack=no 13156 fi 13157else 13158 enableval=yes 13159 cf_disable_rpath_hack=no 13160 13161fi; 13162echo "$as_me:13162: result: $cf_disable_rpath_hack" >&5 13163echo "${ECHO_T}$cf_disable_rpath_hack" >&6 13164if test "$cf_disable_rpath_hack" = no ; then 13165 13166echo "$as_me:13166: checking for updated LDFLAGS" >&5 13167echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6 13168if test -n "$LD_RPATH_OPT" ; then 13169 echo "$as_me:13169: result: maybe" >&5 13170echo "${ECHO_T}maybe" >&6 13171 13172 for ac_prog in ldd 13173do 13174 # Extract the first word of "$ac_prog", so it can be a program name with args. 13175set dummy $ac_prog; ac_word=$2 13176echo "$as_me:13176: checking for $ac_word" >&5 13177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 13178if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then 13179 echo $ECHO_N "(cached) $ECHO_C" >&6 13180else 13181 if test -n "$cf_ldd_prog"; then 13182 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test. 13183else 13184 ac_save_IFS=$IFS; IFS=$ac_path_separator 13185ac_dummy="$PATH" 13186for ac_dir in $ac_dummy; do 13187 IFS=$ac_save_IFS 13188 test -z "$ac_dir" && ac_dir=. 13189 $as_executable_p "$ac_dir/$ac_word" || continue 13190ac_cv_prog_cf_ldd_prog="$ac_prog" 13191echo "$as_me:13191: found $ac_dir/$ac_word" >&5 13192break 13193done 13194 13195fi 13196fi 13197cf_ldd_prog=$ac_cv_prog_cf_ldd_prog 13198if test -n "$cf_ldd_prog"; then 13199 echo "$as_me:13199: result: $cf_ldd_prog" >&5 13200echo "${ECHO_T}$cf_ldd_prog" >&6 13201else 13202 echo "$as_me:13202: result: no" >&5 13203echo "${ECHO_T}no" >&6 13204fi 13205 13206 test -n "$cf_ldd_prog" && break 13207done 13208test -n "$cf_ldd_prog" || cf_ldd_prog="no" 13209 13210 cf_rpath_list="/usr/lib /lib" 13211 if test "$cf_ldd_prog" != no 13212 then 13213cat >conftest.$ac_ext <<_ACEOF 13214#line 13214 "configure" 13215#include "confdefs.h" 13216#include <stdio.h> 13217int 13218main () 13219{ 13220printf("Hello"); 13221 ; 13222 return 0; 13223} 13224_ACEOF 13225rm -f conftest.$ac_objext conftest$ac_exeext 13226if { (eval echo "$as_me:13226: \"$ac_link\"") >&5 13227 (eval $ac_link) 2>&5 13228 ac_status=$? 13229 echo "$as_me:13229: \$? = $ac_status" >&5 13230 (exit $ac_status); } && 13231 { ac_try='test -s conftest$ac_exeext' 13232 { (eval echo "$as_me:13232: \"$ac_try\"") >&5 13233 (eval $ac_try) 2>&5 13234 ac_status=$? 13235 echo "$as_me:13235: \$? = $ac_status" >&5 13236 (exit $ac_status); }; }; then 13237 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort -u` 13238else 13239 echo "$as_me: failed program was:" >&5 13240cat conftest.$ac_ext >&5 13241fi 13242rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13243 fi 13244 13245 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6 13246 13247echo "${as_me-configure}:13247: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5 13248 13249test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6 13250 13251echo "${as_me-configure}:13251: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5 13252 13253cf_rpath_dst= 13254for cf_rpath_src in $LDFLAGS 13255do 13256 case $cf_rpath_src in #(vi 13257 -L*) #(vi 13258 13259 # check if this refers to a directory which we will ignore 13260 cf_rpath_skip=no 13261 if test -n "$cf_rpath_list" 13262 then 13263 for cf_rpath_item in $cf_rpath_list 13264 do 13265 if test "x$cf_rpath_src" = "x-L$cf_rpath_item" 13266 then 13267 cf_rpath_skip=yes 13268 break 13269 fi 13270 done 13271 fi 13272 13273 if test "$cf_rpath_skip" = no 13274 then 13275 # transform the option 13276 if test "$LD_RPATH_OPT" = "-R " ; then 13277 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"` 13278 else 13279 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"` 13280 fi 13281 13282 # if we have not already added this, add it now 13283 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"` 13284 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS" 13285 then 13286 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6 13287 13288echo "${as_me-configure}:13288: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5 13289 13290 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS" 13291 fi 13292 fi 13293 ;; 13294 esac 13295 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src" 13296done 13297LDFLAGS=$cf_rpath_dst 13298 13299test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6 13300 13301echo "${as_me-configure}:13301: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5 13302 13303test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6 13304 13305echo "${as_me-configure}:13305: testing ...checking LIBS $LIBS ..." 1>&5 13306 13307cf_rpath_dst= 13308for cf_rpath_src in $LIBS 13309do 13310 case $cf_rpath_src in #(vi 13311 -L*) #(vi 13312 13313 # check if this refers to a directory which we will ignore 13314 cf_rpath_skip=no 13315 if test -n "$cf_rpath_list" 13316 then 13317 for cf_rpath_item in $cf_rpath_list 13318 do 13319 if test "x$cf_rpath_src" = "x-L$cf_rpath_item" 13320 then 13321 cf_rpath_skip=yes 13322 break 13323 fi 13324 done 13325 fi 13326 13327 if test "$cf_rpath_skip" = no 13328 then 13329 # transform the option 13330 if test "$LD_RPATH_OPT" = "-R " ; then 13331 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"` 13332 else 13333 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"` 13334 fi 13335 13336 # if we have not already added this, add it now 13337 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"` 13338 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS" 13339 then 13340 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6 13341 13342echo "${as_me-configure}:13342: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5 13343 13344 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS" 13345 fi 13346 fi 13347 ;; 13348 esac 13349 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src" 13350done 13351LIBS=$cf_rpath_dst 13352 13353test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6 13354 13355echo "${as_me-configure}:13355: testing ...checked LIBS $LIBS ..." 1>&5 13356 13357 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6 13358 13359echo "${as_me-configure}:13359: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5 13360 13361fi 13362 13363fi 13364 13365ac_config_files="$ac_config_files dialog-config makefile $EXTRA_OUTPUT $SUB_MAKEFILE samples/install/makefile" 13366ac_config_commands="$ac_config_commands default" 13367cat >confcache <<\_ACEOF 13368# This file is a shell script that caches the results of configure 13369# tests run on this system so they can be shared between configure 13370# scripts and configure runs, see configure's option --config-cache. 13371# It is not useful on other systems. If it contains results you don't 13372# want to keep, you may remove or edit it. 13373# 13374# config.status only pays attention to the cache file if you give it 13375# the --recheck option to rerun configure. 13376# 13377# `ac_cv_env_foo' variables (set or unset) will be overriden when 13378# loading this file, other *unset* `ac_cv_foo' will be assigned the 13379# following values. 13380 13381_ACEOF 13382 13383# The following way of writing the cache mishandles newlines in values, 13384# but we know of no workaround that is simple, portable, and efficient. 13385# So, don't put newlines in cache variables' values. 13386# Ultrix sh set writes to stderr and can't be redirected directly, 13387# and sets the high bit in the cache file unless we assign to the vars. 13388{ 13389 (set) 2>&1 | 13390 case `(ac_space=' '; set | grep ac_space) 2>&1` in 13391 *ac_space=\ *) 13392 # `set' does not quote correctly, so add quotes (double-quote 13393 # substitution turns \\\\ into \\, and sed turns \\ into \). 13394 sed -n \ 13395 "s/'/'\\\\''/g; 13396 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13397 ;; 13398 *) 13399 # `set' quotes correctly as required by POSIX, so do not add quotes. 13400 sed -n \ 13401 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 13402 ;; 13403 esac; 13404} | 13405 sed ' 13406 t clear 13407 : clear 13408 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13409 t end 13410 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13411 : end' >>confcache 13412if cmp -s $cache_file confcache; then :; else 13413 if test -w $cache_file; then 13414 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 13415 cat confcache >$cache_file 13416 else 13417 echo "not updating unwritable cache $cache_file" 13418 fi 13419fi 13420rm -f confcache 13421 13422test "x$prefix" = xNONE && prefix=$ac_default_prefix 13423# Let make expand exec_prefix. 13424test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13425 13426# VPATH may cause trouble with some makes, so we remove $(srcdir), 13427# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 13428# trailing colons and then remove the whole line if VPATH becomes empty 13429# (actually we leave an empty line to preserve line numbers). 13430if test "x$srcdir" = x.; then 13431 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 13432s/:*\$(srcdir):*/:/; 13433s/:*\${srcdir}:*/:/; 13434s/:*@srcdir@:*/:/; 13435s/^\([^=]*=[ ]*\):*/\1/; 13436s/:*$//; 13437s/^[^=]*=[ ]*$//; 13438}' 13439fi 13440 13441DEFS=-DHAVE_CONFIG_H 13442 13443: ${CONFIG_STATUS=./config.status} 13444ac_clean_files_save=$ac_clean_files 13445ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13446{ echo "$as_me:13446: creating $CONFIG_STATUS" >&5 13447echo "$as_me: creating $CONFIG_STATUS" >&6;} 13448cat >$CONFIG_STATUS <<_ACEOF 13449#! $SHELL 13450# Generated automatically by configure. 13451# Run this file to recreate the current configuration. 13452# Compiler output produced by configure, useful for debugging 13453# configure, is in config.log if it exists. 13454 13455debug=false 13456SHELL=\${CONFIG_SHELL-$SHELL} 13457ac_cs_invocation="\$0 \$@" 13458 13459_ACEOF 13460 13461cat >>$CONFIG_STATUS <<\_ACEOF 13462# Be Bourne compatible 13463if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13464 emulate sh 13465 NULLCMD=: 13466elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 13467 set -o posix 13468fi 13469 13470# Name of the executable. 13471as_me=`echo "$0" |sed 's,.*[\\/],,'` 13472 13473if expr a : '\(a\)' >/dev/null 2>&1; then 13474 as_expr=expr 13475else 13476 as_expr=false 13477fi 13478 13479rm -f conf$$ conf$$.exe conf$$.file 13480echo >conf$$.file 13481if ln -s conf$$.file conf$$ 2>/dev/null; then 13482 # We could just check for DJGPP; but this test a) works b) is more generic 13483 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 13484 if test -f conf$$.exe; then 13485 # Don't use ln at all; we don't have any links 13486 as_ln_s='cp -p' 13487 else 13488 as_ln_s='ln -s' 13489 fi 13490elif ln conf$$.file conf$$ 2>/dev/null; then 13491 as_ln_s=ln 13492else 13493 as_ln_s='cp -p' 13494fi 13495rm -f conf$$ conf$$.exe conf$$.file 13496 13497as_executable_p="test -f" 13498 13499# Support unset when possible. 13500if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 13501 as_unset=unset 13502else 13503 as_unset=false 13504fi 13505 13506# NLS nuisances. 13507$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 13508$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 13509$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 13510$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 13511$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 13512$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 13513$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 13514$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 13515 13516# IFS 13517# We need space, tab and new line, in precisely that order. 13518as_nl=' 13519' 13520IFS=" $as_nl" 13521 13522# CDPATH. 13523$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 13524 13525exec 6>&1 13526 13527_ACEOF 13528 13529# Files that config.status was made for. 13530if test -n "$ac_config_files"; then 13531 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 13532fi 13533 13534if test -n "$ac_config_headers"; then 13535 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 13536fi 13537 13538if test -n "$ac_config_links"; then 13539 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 13540fi 13541 13542if test -n "$ac_config_commands"; then 13543 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 13544fi 13545 13546cat >>$CONFIG_STATUS <<\EOF 13547 13548ac_cs_usage="\ 13549\`$as_me' instantiates files from templates according to the 13550current configuration. 13551 13552Usage: $0 [OPTIONS] [FILE]... 13553 13554 -h, --help print this help, then exit 13555 -V, --version print version number, then exit 13556 -d, --debug don't remove temporary files 13557 --recheck update $as_me by reconfiguring in the same conditions 13558 --file=FILE[:TEMPLATE] 13559 instantiate the configuration file FILE 13560 --header=FILE[:TEMPLATE] 13561 instantiate the configuration header FILE 13562 13563Configuration files: 13564$config_files 13565 13566Configuration headers: 13567$config_headers 13568 13569Configuration commands: 13570$config_commands 13571 13572Report bugs to <bug-autoconf@gnu.org>." 13573EOF 13574 13575cat >>$CONFIG_STATUS <<EOF 13576ac_cs_version="\\ 13577config.status 13578configured by $0, generated by GNU Autoconf 2.52.20100320, 13579 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 13580 13581Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 13582Free Software Foundation, Inc. 13583This config.status script is free software; the Free Software Foundation 13584gives unlimited permission to copy, distribute and modify it." 13585srcdir=$srcdir 13586INSTALL="$INSTALL" 13587EOF 13588 13589cat >>$CONFIG_STATUS <<\EOF 13590# If no file are specified by the user, then we need to provide default 13591# value. By we need to know if files were specified by the user. 13592ac_need_defaults=: 13593while test $# != 0 13594do 13595 case $1 in 13596 --*=*) 13597 ac_option=`expr "x$1" : 'x\([^=]*\)='` 13598 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 13599 shift 13600 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 13601 shift 13602 ;; 13603 -*);; 13604 *) # This is not an option, so the user has probably given explicit 13605 # arguments. 13606 ac_need_defaults=false;; 13607 esac 13608 13609 case $1 in 13610 # Handling of the options. 13611EOF 13612cat >>$CONFIG_STATUS <<EOF 13613 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13614 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 13615 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 13616EOF 13617cat >>$CONFIG_STATUS <<\EOF 13618 --version | --vers* | -V ) 13619 echo "$ac_cs_version"; exit 0 ;; 13620 --he | --h) 13621 # Conflict between --help and --header 13622 { { echo "$as_me:13622: error: ambiguous option: $1 13623Try \`$0 --help' for more information." >&5 13624echo "$as_me: error: ambiguous option: $1 13625Try \`$0 --help' for more information." >&2;} 13626 { (exit 1); exit 1; }; };; 13627 --help | --hel | -h ) 13628 echo "$ac_cs_usage"; exit 0 ;; 13629 --debug | --d* | -d ) 13630 debug=: ;; 13631 --file | --fil | --fi | --f ) 13632 shift 13633 CONFIG_FILES="$CONFIG_FILES $1" 13634 ac_need_defaults=false;; 13635 --header | --heade | --head | --hea ) 13636 shift 13637 CONFIG_HEADERS="$CONFIG_HEADERS $1" 13638 ac_need_defaults=false;; 13639 13640 # This is an error. 13641 -*) { { echo "$as_me:13641: error: unrecognized option: $1 13642Try \`$0 --help' for more information." >&5 13643echo "$as_me: error: unrecognized option: $1 13644Try \`$0 --help' for more information." >&2;} 13645 { (exit 1); exit 1; }; } ;; 13646 13647 *) ac_config_targets="$ac_config_targets $1" ;; 13648 13649 esac 13650 shift 13651done 13652 13653exec 5>>config.log 13654cat >&5 << _ACEOF 13655 13656## ----------------------- ## 13657## Running config.status. ## 13658## ----------------------- ## 13659 13660This file was extended by $as_me 2.52.20100320, executed with 13661 CONFIG_FILES = $CONFIG_FILES 13662 CONFIG_HEADERS = $CONFIG_HEADERS 13663 CONFIG_LINKS = $CONFIG_LINKS 13664 CONFIG_COMMANDS = $CONFIG_COMMANDS 13665 > $ac_cs_invocation 13666on `(hostname || uname -n) 2>/dev/null | sed 1q` 13667 13668_ACEOF 13669EOF 13670 13671cat >>$CONFIG_STATUS <<EOF 13672# 13673# INIT-COMMANDS section. 13674# 13675 13676EOF 13677 13678cat >>$CONFIG_STATUS <<\EOF 13679for ac_config_target in $ac_config_targets 13680do 13681 case "$ac_config_target" in 13682 # Handling of arguments. 13683 "dialog-config" ) CONFIG_FILES="$CONFIG_FILES dialog-config" ;; 13684 "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;; 13685 "$EXTRA_OUTPUT" ) CONFIG_FILES="$CONFIG_FILES $EXTRA_OUTPUT" ;; 13686 "$SUB_MAKEFILE" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILE" ;; 13687 "samples/install/makefile" ) CONFIG_FILES="$CONFIG_FILES samples/install/makefile" ;; 13688 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 13689 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 13690 "dlg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS dlg_config.h:config.hin" ;; 13691 *) { { echo "$as_me:13691: error: invalid argument: $ac_config_target" >&5 13692echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 13693 { (exit 1); exit 1; }; };; 13694 esac 13695done 13696 13697# If the user did not use the arguments to specify the items to instantiate, 13698# then the envvar interface is used. Set only those that are not. 13699# We use the long form for the default assignment because of an extremely 13700# bizarre bug on SunOS 4.1.3. 13701if $ac_need_defaults; then 13702 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13703 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13704 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13705fi 13706 13707# Create a temporary directory, and hook for its removal unless debugging. 13708$debug || 13709{ 13710 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 13711 trap '{ (exit 1); exit 1; }' 1 2 13 15 13712} 13713 13714# Create a (secure) tmp directory for tmp files. 13715: ${TMPDIR=/tmp} 13716{ 13717 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 13718 test -n "$tmp" && test -d "$tmp" 13719} || 13720{ 13721 tmp=$TMPDIR/cs$$-$RANDOM 13722 (umask 077 && mkdir $tmp) 13723} || 13724{ 13725 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 13726 { (exit 1); exit 1; } 13727} 13728 13729EOF 13730 13731cat >>$CONFIG_STATUS <<EOF 13732 13733# 13734# CONFIG_FILES section. 13735# 13736 13737# No need to generate the scripts if there are no CONFIG_FILES. 13738# This happens for instance when ./config.status config.h 13739if test -n "\$CONFIG_FILES"; then 13740 # Protect against being on the right side of a sed subst in config.status. 13741 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 13742 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 13743s,@SHELL@,$SHELL,;t t 13744s,@exec_prefix@,$exec_prefix,;t t 13745s,@prefix@,$prefix,;t t 13746s,@program_transform_name@,$program_transform_name,;t t 13747s,@bindir@,$bindir,;t t 13748s,@sbindir@,$sbindir,;t t 13749s,@libexecdir@,$libexecdir,;t t 13750s,@datadir@,$datadir,;t t 13751s,@sysconfdir@,$sysconfdir,;t t 13752s,@sharedstatedir@,$sharedstatedir,;t t 13753s,@localstatedir@,$localstatedir,;t t 13754s,@libdir@,$libdir,;t t 13755s,@includedir@,$includedir,;t t 13756s,@oldincludedir@,$oldincludedir,;t t 13757s,@infodir@,$infodir,;t t 13758s,@mandir@,$mandir,;t t 13759s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 13760s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 13761s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 13762s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 13763s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 13764s,@build_alias@,$build_alias,;t t 13765s,@host_alias@,$host_alias,;t t 13766s,@target_alias@,$target_alias,;t t 13767s,@ECHO_C@,$ECHO_C,;t t 13768s,@ECHO_N@,$ECHO_N,;t t 13769s,@ECHO_T@,$ECHO_T,;t t 13770s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 13771s,@DEFS@,$DEFS,;t t 13772s,@LIBS@,$LIBS,;t t 13773s,@VERSION@,$VERSION,;t t 13774s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t 13775s,@VERSION_MINOR@,$VERSION_MINOR,;t t 13776s,@VERSION_PATCH@,$VERSION_PATCH,;t t 13777s,@PACKAGE@,$PACKAGE,;t t 13778s,@DESTDIR@,$DESTDIR,;t t 13779s,@CC@,$CC,;t t 13780s,@CFLAGS@,$CFLAGS,;t t 13781s,@LDFLAGS@,$LDFLAGS,;t t 13782s,@CPPFLAGS@,$CPPFLAGS,;t t 13783s,@ac_ct_CC@,$ac_ct_CC,;t t 13784s,@EXEEXT@,$EXEEXT,;t t 13785s,@OBJEXT@,$OBJEXT,;t t 13786s,@CPP@,$CPP,;t t 13787s,@SET_MAKE@,$SET_MAKE,;t t 13788s,@RANLIB@,$RANLIB,;t t 13789s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 13790s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 13791s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 13792s,@INSTALL_DATA@,$INSTALL_DATA,;t t 13793s,@AR@,$AR,;t t 13794s,@ac_ct_AR@,$ac_ct_AR,;t t 13795s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t 13796s,@CTAGS@,$CTAGS,;t t 13797s,@ETAGS@,$ETAGS,;t t 13798s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t 13799s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t 13800s,@ECHO_LT@,$ECHO_LT,;t t 13801s,@ECHO_LD@,$ECHO_LD,;t t 13802s,@RULE_CC@,$RULE_CC,;t t 13803s,@SHOW_CC@,$SHOW_CC,;t t 13804s,@ECHO_CC@,$ECHO_CC,;t t 13805s,@build@,$build,;t t 13806s,@build_cpu@,$build_cpu,;t t 13807s,@build_vendor@,$build_vendor,;t t 13808s,@build_os@,$build_os,;t t 13809s,@host@,$host,;t t 13810s,@host_cpu@,$host_cpu,;t t 13811s,@host_vendor@,$host_vendor,;t t 13812s,@host_os@,$host_os,;t t 13813s,@PROG_EXT@,$PROG_EXT,;t t 13814s,@LIB_PREFIX@,$LIB_PREFIX,;t t 13815s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t 13816s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t 13817s,@CONFIG_H@,$CONFIG_H,;t t 13818s,@ALLOCA@,$ALLOCA,;t t 13819s,@GLIBC21@,$GLIBC21,;t t 13820s,@LIBICONV@,$LIBICONV,;t t 13821s,@USE_NLS@,$USE_NLS,;t t 13822s,@MSGFMT@,$MSGFMT,;t t 13823s,@GMSGFMT@,$GMSGFMT,;t t 13824s,@XGETTEXT@,$XGETTEXT,;t t 13825s,@INTLBISON@,$INTLBISON,;t t 13826s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t 13827s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t 13828s,@CATALOGS@,$CATALOGS,;t t 13829s,@CATOBJEXT@,$CATOBJEXT,;t t 13830s,@GMOFILES@,$GMOFILES,;t t 13831s,@INTLLIBS@,$INTLLIBS,;t t 13832s,@INTLOBJS@,$INTLOBJS,;t t 13833s,@POFILES@,$POFILES,;t t 13834s,@POSUB@,$POSUB,;t t 13835s,@DATADIRNAME@,$DATADIRNAME,;t t 13836s,@INSTOBJEXT@,$INSTOBJEXT,;t t 13837s,@GENCAT@,$GENCAT,;t t 13838s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t 13839s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t 13840s,@MSG_DIR_MAKE@,$MSG_DIR_MAKE,;t t 13841s,@SUB_MAKEFILE@,$SUB_MAKEFILE,;t t 13842s,@INTLDIR_MAKE@,$INTLDIR_MAKE,;t t 13843s,@GT_YES@,$GT_YES,;t t 13844s,@GT_NO@,$GT_NO,;t t 13845s,@LINK_PREFIX@,$LINK_PREFIX,;t t 13846s,@LIBTOOL@,$LIBTOOL,;t t 13847s,@LT_UNDEF@,$LT_UNDEF,;t t 13848s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t 13849s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t 13850s,@LIB_CREATE@,$LIB_CREATE,;t t 13851s,@LIB_OBJECT@,$LIB_OBJECT,;t t 13852s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t 13853s,@LIB_PREP@,$LIB_PREP,;t t 13854s,@LIB_CLEAN@,$LIB_CLEAN,;t t 13855s,@LIB_COMPILE@,$LIB_COMPILE,;t t 13856s,@LIB_LINK@,$LIB_LINK,;t t 13857s,@LIB_INSTALL@,$LIB_INSTALL,;t t 13858s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t 13859s,@LIBTOOL_MAKE@,$LIBTOOL_MAKE,;t t 13860s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t 13861s,@EXTRAOBJS@,$EXTRAOBJS,;t t 13862s,@PACKAGE_PREFIX@,$PACKAGE_PREFIX,;t t 13863s,@PACKAGE_CONFIG@,$PACKAGE_CONFIG,;t t 13864s,@cf_ldd_prog@,$cf_ldd_prog,;t t 13865s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t 13866CEOF 13867 13868EOF 13869 13870 cat >>$CONFIG_STATUS <<\EOF 13871 # Split the substitutions into bite-sized pieces for seds with 13872 # small command number limits, like on Digital OSF/1 and HP-UX. 13873 ac_max_sed_lines=48 13874 ac_sed_frag=1 # Number of current file. 13875 ac_beg=1 # First line for current file. 13876 ac_end=$ac_max_sed_lines # Line after last line for current file. 13877 ac_more_lines=: 13878 ac_sed_cmds= 13879 while $ac_more_lines; do 13880 if test $ac_beg -gt 1; then 13881 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 13882 else 13883 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 13884 fi 13885 if test ! -s $tmp/subs.frag; then 13886 ac_more_lines=false 13887 else 13888 # The purpose of the label and of the branching condition is to 13889 # speed up the sed processing (if there are no `@' at all, there 13890 # is no need to browse any of the substitutions). 13891 # These are the two extra sed commands mentioned above. 13892 (echo ':t 13893 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 13894 if test -z "$ac_sed_cmds"; then 13895 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 13896 else 13897 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 13898 fi 13899 ac_sed_frag=`expr $ac_sed_frag + 1` 13900 ac_beg=$ac_end 13901 ac_end=`expr $ac_end + $ac_max_sed_lines` 13902 fi 13903 done 13904 if test -z "$ac_sed_cmds"; then 13905 ac_sed_cmds=cat 13906 fi 13907fi # test -n "$CONFIG_FILES" 13908 13909EOF 13910cat >>$CONFIG_STATUS <<\EOF 13911for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 13912 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 13913 case $ac_file in 13914 - | *:- | *:-:* ) # input from stdin 13915 cat >$tmp/stdin 13916 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 13917 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 13918 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 13919 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 13920 * ) ac_file_in=$ac_file.in ;; 13921 esac 13922 13923 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 13924 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13925 X"$ac_file" : 'X\(//\)[^/]' \| \ 13926 X"$ac_file" : 'X\(//\)$' \| \ 13927 X"$ac_file" : 'X\(/\)' \| \ 13928 . : '\(.\)' 2>/dev/null || 13929echo X"$ac_file" | 13930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 13931 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 13932 /^X\(\/\/\)$/{ s//\1/; q; } 13933 /^X\(\/\).*/{ s//\1/; q; } 13934 s/.*/./; q'` 13935 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 13936 { case "$ac_dir" in 13937 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 13938 *) as_incr_dir=.;; 13939esac 13940as_dummy="$ac_dir" 13941for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 13942 case $as_mkdir_dir in 13943 # Skip DOS drivespec 13944 ?:) as_incr_dir=$as_mkdir_dir ;; 13945 *) 13946 as_incr_dir=$as_incr_dir/$as_mkdir_dir 13947 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 13948 ;; 13949 esac 13950done; } 13951 13952 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 13953 # A "../" for each directory in $ac_dir_suffix. 13954 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 13955 else 13956 ac_dir_suffix= ac_dots= 13957 fi 13958 13959 case $srcdir in 13960 .) ac_srcdir=. 13961 if test -z "$ac_dots"; then 13962 ac_top_srcdir=. 13963 else 13964 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` 13965 fi ;; 13966 [\\/]* | ?:[\\/]* ) 13967 ac_srcdir=$srcdir$ac_dir_suffix; 13968 ac_top_srcdir=$srcdir ;; 13969 *) # Relative path. 13970 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix 13971 ac_top_srcdir=$ac_dots$srcdir ;; 13972 esac 13973 13974 case $INSTALL in 13975 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13976 *) ac_INSTALL=$ac_dots$INSTALL ;; 13977 esac 13978 13979 if test x"$ac_file" != x-; then 13980 { echo "$as_me:13980: creating $ac_file" >&5 13981echo "$as_me: creating $ac_file" >&6;} 13982 rm -f "$ac_file" 13983 fi 13984 # Let's still pretend it is `configure' which instantiates (i.e., don't 13985 # use $as_me), people would be surprised to read: 13986 # /* config.h. Generated automatically by config.status. */ 13987 configure_input="Generated automatically from `echo $ac_file_in | 13988 sed 's,.*/,,'` by configure." 13989 13990 # First look for the input files in the build tree, otherwise in the 13991 # src tree. 13992 ac_file_inputs=`IFS=: 13993 for f in $ac_file_in; do 13994 case $f in 13995 -) echo $tmp/stdin ;; 13996 [\\/$]*) 13997 # Absolute (can't be DOS-style, as IFS=:) 13998 test -f "$f" || { { echo "$as_me:13998: error: cannot find input file: $f" >&5 13999echo "$as_me: error: cannot find input file: $f" >&2;} 14000 { (exit 1); exit 1; }; } 14001 echo $f;; 14002 *) # Relative 14003 if test -f "$f"; then 14004 # Build tree 14005 echo $f 14006 elif test -f "$srcdir/$f"; then 14007 # Source tree 14008 echo $srcdir/$f 14009 else 14010 # /dev/null tree 14011 { { echo "$as_me:14011: error: cannot find input file: $f" >&5 14012echo "$as_me: error: cannot find input file: $f" >&2;} 14013 { (exit 1); exit 1; }; } 14014 fi;; 14015 esac 14016 done` || { (exit 1); exit 1; } 14017EOF 14018cat >>$CONFIG_STATUS <<EOF 14019 sed "$ac_vpsub 14020$extrasub 14021EOF 14022cat >>$CONFIG_STATUS <<\EOF 14023:t 14024/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14025s,@configure_input@,$configure_input,;t t 14026s,@srcdir@,$ac_srcdir,;t t 14027s,@top_srcdir@,$ac_top_srcdir,;t t 14028s,@INSTALL@,$ac_INSTALL,;t t 14029" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 14030 rm -f $tmp/stdin 14031 if test x"$ac_file" != x-; then 14032 mv $tmp/out $ac_file 14033 else 14034 cat $tmp/out 14035 rm -f $tmp/out 14036 fi 14037 14038done 14039EOF 14040cat >>$CONFIG_STATUS <<\EOF 14041 14042# 14043# CONFIG_HEADER section. 14044# 14045 14046# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 14047# NAME is the cpp macro being defined and VALUE is the value it is being given. 14048# 14049# ac_d sets the value in "#define NAME VALUE" lines. 14050ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 14051ac_dB='[ ].*$,\1#\2' 14052ac_dC=' ' 14053ac_dD=',;t' 14054# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 14055ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 14056ac_iB='\([ ]\),\1#\2define\3' 14057ac_iC=' ' 14058ac_iD='\4,;t' 14059# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 14060ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 14061ac_uB='$,\1#\2define\3' 14062ac_uC=' ' 14063ac_uD=',;t' 14064 14065for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 14066 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 14067 case $ac_file in 14068 - | *:- | *:-:* ) # input from stdin 14069 cat >$tmp/stdin 14070 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14071 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14072 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14073 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14074 * ) ac_file_in=$ac_file.in ;; 14075 esac 14076 14077 test x"$ac_file" != x- && { echo "$as_me:14077: creating $ac_file" >&5 14078echo "$as_me: creating $ac_file" >&6;} 14079 14080 # First look for the input files in the build tree, otherwise in the 14081 # src tree. 14082 ac_file_inputs=`IFS=: 14083 for f in $ac_file_in; do 14084 case $f in 14085 -) echo $tmp/stdin ;; 14086 [\\/$]*) 14087 # Absolute (can't be DOS-style, as IFS=:) 14088 test -f "$f" || { { echo "$as_me:14088: error: cannot find input file: $f" >&5 14089echo "$as_me: error: cannot find input file: $f" >&2;} 14090 { (exit 1); exit 1; }; } 14091 echo $f;; 14092 *) # Relative 14093 if test -f "$f"; then 14094 # Build tree 14095 echo $f 14096 elif test -f "$srcdir/$f"; then 14097 # Source tree 14098 echo $srcdir/$f 14099 else 14100 # /dev/null tree 14101 { { echo "$as_me:14101: error: cannot find input file: $f" >&5 14102echo "$as_me: error: cannot find input file: $f" >&2;} 14103 { (exit 1); exit 1; }; } 14104 fi;; 14105 esac 14106 done` || { (exit 1); exit 1; } 14107 # Remove the trailing spaces. 14108 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 14109 14110EOF 14111 14112# Transform confdefs.h into a list of #define's. We won't use it as a sed 14113# script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to 14114# be either 'cat' or 'sort'. 14115sort -u confdefs.h | uniq >conftest.vals 14116 14117# Break up conftest.vals because some shells have a limit on 14118# the size of here documents, and old seds have small limits too. 14119 14120rm -f conftest.tail 14121echo ' rm -f conftest.frag' >> $CONFIG_STATUS 14122while grep . conftest.vals >/dev/null 14123do 14124 # Write chunks of a limited-size here document to conftest.frag. 14125 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS 14126 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS 14127 echo 'CEOF' >> $CONFIG_STATUS 14128 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 14129 rm -f conftest.vals 14130 mv conftest.tail conftest.vals 14131done 14132rm -f conftest.vals 14133 14134# Run sed to substitute the contents of conftest.frag into $tmp/in at the 14135# marker @DEFS@. 14136echo ' cat >> conftest.edit <<CEOF 14137/@DEFS@/r conftest.frag 14138/@DEFS@/d 14139CEOF 14140sed -f conftest.edit $tmp/in > $tmp/out 14141rm -f $tmp/in 14142mv $tmp/out $tmp/in 14143rm -f conftest.edit conftest.frag 14144' >> $CONFIG_STATUS 14145 14146cat >>$CONFIG_STATUS <<\EOF 14147 # Let's still pretend it is `configure' which instantiates (i.e., don't 14148 # use $as_me), people would be surprised to read: 14149 # /* config.h. Generated automatically by config.status. */ 14150 if test x"$ac_file" = x-; then 14151 echo "/* Generated automatically by configure. */" >$tmp/config.h 14152 else 14153 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 14154 fi 14155 cat $tmp/in >>$tmp/config.h 14156 rm -f $tmp/in 14157 if test x"$ac_file" != x-; then 14158 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 14159 { echo "$as_me:14159: $ac_file is unchanged" >&5 14160echo "$as_me: $ac_file is unchanged" >&6;} 14161 else 14162 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14163 X"$ac_file" : 'X\(//\)[^/]' \| \ 14164 X"$ac_file" : 'X\(//\)$' \| \ 14165 X"$ac_file" : 'X\(/\)' \| \ 14166 . : '\(.\)' 2>/dev/null || 14167echo X"$ac_file" | 14168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14169 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14170 /^X\(\/\/\)$/{ s//\1/; q; } 14171 /^X\(\/\).*/{ s//\1/; q; } 14172 s/.*/./; q'` 14173 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 14174 { case "$ac_dir" in 14175 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 14176 *) as_incr_dir=.;; 14177esac 14178as_dummy="$ac_dir" 14179for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 14180 case $as_mkdir_dir in 14181 # Skip DOS drivespec 14182 ?:) as_incr_dir=$as_mkdir_dir ;; 14183 *) 14184 as_incr_dir=$as_incr_dir/$as_mkdir_dir 14185 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 14186 ;; 14187 esac 14188done; } 14189 14190 fi 14191 rm -f $ac_file 14192 mv $tmp/config.h $ac_file 14193 fi 14194 else 14195 cat $tmp/config.h 14196 rm -f $tmp/config.h 14197 fi 14198done 14199EOF 14200cat >>$CONFIG_STATUS <<\EOF 14201 14202# 14203# CONFIG_COMMANDS section. 14204# 14205for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 14206 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 14207 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 14208 14209 case $ac_dest in 14210 default-1 ) for ac_file in $CONFIG_FILES; do 14211 14212 # Support "outfile[:infile[:infile...]]" 14213 case "$ac_file" in 14214 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 14215 esac 14216 14217 # PO directories have a Makefile.in generated from Makefile.inn. 14218 case "$ac_file" in */[Mm]akefile.in) 14219 # Adjust a relative srcdir. 14220 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 14221 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 14222 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 14223 ac_base=`basename $ac_file .in` 14224 # In autoconf-2.13 it is called $ac_given_srcdir. 14225 # In autoconf-2.50 it is called $srcdir. 14226 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 14227 14228 case "$ac_given_srcdir" in 14229 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 14230 /*) top_srcdir="$ac_given_srcdir" ;; 14231 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 14232 esac 14233 14234 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 14235 rm -f "$ac_dir/POTFILES" 14236 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 14237 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES" 14238 test -n "$as_me" && echo "$as_me: creating $ac_dir/$ac_base" || echo "creating $ac_dir/$ac_base" 14239 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/$ac_base.in" > "$ac_dir/$ac_base" 14240 fi 14241 ;; 14242 esac 14243 done ;; 14244 esac 14245done 14246EOF 14247 14248cat >>$CONFIG_STATUS <<\EOF 14249 14250{ (exit 0); exit 0; } 14251EOF 14252chmod +x $CONFIG_STATUS 14253ac_clean_files=$ac_clean_files_save 14254 14255# configure is writing to config.log, and then calls config.status. 14256# config.status does its own redirection, appending to config.log. 14257# Unfortunately, on DOS this fails, as config.log is still kept open 14258# by configure, so config.status won't be able to write to it; its 14259# output is simply discarded. So we exec the FD to /dev/null, 14260# effectively closing config.log, so it can be properly (re)opened and 14261# appended to by config.status. When coming back to configure, we 14262# need to make the FD available again. 14263if test "$no_create" != yes; then 14264 ac_cs_success=: 14265 exec 5>/dev/null 14266 $SHELL $CONFIG_STATUS || ac_cs_success=false 14267 exec 5>>config.log 14268 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14269 # would make configure fail if this is the last instruction. 14270 $ac_cs_success || { (exit 1); exit 1; } 14271fi 14272 14273