1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for PDCurses 3.4. 4# 5# Report bugs to <wmcbrine@users.sf.net>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42# The user is always right. 43if test "${PATH_SEPARATOR+set}" != set; then 44 echo "#! /bin/sh" >conf$$.sh 45 echo "exit 0" >>conf$$.sh 46 chmod +x conf$$.sh 47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 48 PATH_SEPARATOR=';' 49 else 50 PATH_SEPARATOR=: 51 fi 52 rm -f conf$$.sh 53fi 54 55# Support unset when possible. 56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 57 as_unset=unset 58else 59 as_unset=false 60fi 61 62 63# IFS 64# We need space, tab and new line, in precisely that order. Quoting is 65# there to prevent editors from complaining about space-tab. 66# (If _AS_PATH_WALK were called with IFS unset, it would disable word 67# splitting by setting IFS to empty value.) 68as_nl=' 69' 70IFS=" "" $as_nl" 71 72# Find who we are. Look in the path if we contain no directory separator. 73case $0 in 74 *[\\/]* ) as_myself=$0 ;; 75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 76for as_dir in $PATH 77do 78 IFS=$as_save_IFS 79 test -z "$as_dir" && as_dir=. 80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 81done 82IFS=$as_save_IFS 83 84 ;; 85esac 86# We did not find ourselves, most probably we were run as `sh COMMAND' 87# in which case we are not to be found in the path. 88if test "x$as_myself" = x; then 89 as_myself=$0 90fi 91if test ! -f "$as_myself"; then 92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 93 { (exit 1); exit 1; } 94fi 95 96# Work around bugs in pre-3.0 UWIN ksh. 97for as_var in ENV MAIL MAILPATH 98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 99done 100PS1='$ ' 101PS2='> ' 102PS4='+ ' 103 104# NLS nuisances. 105for as_var in \ 106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 108 LC_TELEPHONE LC_TIME 109do 110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 111 eval $as_var=C; export $as_var 112 else 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 114 fi 115done 116 117# Required to use basename. 118if expr a : '\(a\)' >/dev/null 2>&1 && 119 test "X`expr 00001 : '.*\(...\)'`" = X001; then 120 as_expr=expr 121else 122 as_expr=false 123fi 124 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 126 as_basename=basename 127else 128 as_basename=false 129fi 130 131 132# Name of the executable. 133as_me=`$as_basename -- "$0" || 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 135 X"$0" : 'X\(//\)$' \| \ 136 X"$0" : 'X\(/\)' \| . 2>/dev/null || 137echo X/"$0" | 138 sed '/^.*\/\([^/][^/]*\)\/*$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\/\)$/{ 143 s//\1/ 144 q 145 } 146 /^X\/\(\/\).*/{ 147 s//\1/ 148 q 149 } 150 s/.*/./; q'` 151 152# CDPATH. 153$as_unset CDPATH 154 155 156if test "x$CONFIG_SHELL" = x; then 157 if (eval ":") 2>/dev/null; then 158 as_have_required=yes 159else 160 as_have_required=no 161fi 162 163 if test $as_have_required = yes && (eval ": 164(as_func_return () { 165 (exit \$1) 166} 167as_func_success () { 168 as_func_return 0 169} 170as_func_failure () { 171 as_func_return 1 172} 173as_func_ret_success () { 174 return 0 175} 176as_func_ret_failure () { 177 return 1 178} 179 180exitcode=0 181if as_func_success; then 182 : 183else 184 exitcode=1 185 echo as_func_success failed. 186fi 187 188if as_func_failure; then 189 exitcode=1 190 echo as_func_failure succeeded. 191fi 192 193if as_func_ret_success; then 194 : 195else 196 exitcode=1 197 echo as_func_ret_success failed. 198fi 199 200if as_func_ret_failure; then 201 exitcode=1 202 echo as_func_ret_failure succeeded. 203fi 204 205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 206 : 207else 208 exitcode=1 209 echo positional parameters were not saved. 210fi 211 212test \$exitcode = 0) || { (exit 1); exit 1; } 213 214( 215 as_lineno_1=\$LINENO 216 as_lineno_2=\$LINENO 217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 219") 2> /dev/null; then 220 : 221else 222 as_candidate_shells= 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 225do 226 IFS=$as_save_IFS 227 test -z "$as_dir" && as_dir=. 228 case $as_dir in 229 /*) 230 for as_base in sh bash ksh sh5; do 231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 232 done;; 233 esac 234done 235IFS=$as_save_IFS 236 237 238 for as_shell in $as_candidate_shells $SHELL; do 239 # Try only shells that exist, to save several forks. 240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 241 { ("$as_shell") 2> /dev/null <<\_ASEOF 242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 243 emulate sh 244 NULLCMD=: 245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 246 # is contrary to our usage. Disable this feature. 247 alias -g '${1+"$@"}'='"$@"' 248 setopt NO_GLOB_SUBST 249else 250 case `(set -o) 2>/dev/null` in 251 *posix*) set -o posix ;; 252esac 253 254fi 255 256 257: 258_ASEOF 259}; then 260 CONFIG_SHELL=$as_shell 261 as_have_required=yes 262 if { "$as_shell" 2> /dev/null <<\_ASEOF 263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 264 emulate sh 265 NULLCMD=: 266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 267 # is contrary to our usage. Disable this feature. 268 alias -g '${1+"$@"}'='"$@"' 269 setopt NO_GLOB_SUBST 270else 271 case `(set -o) 2>/dev/null` in 272 *posix*) set -o posix ;; 273esac 274 275fi 276 277 278: 279(as_func_return () { 280 (exit $1) 281} 282as_func_success () { 283 as_func_return 0 284} 285as_func_failure () { 286 as_func_return 1 287} 288as_func_ret_success () { 289 return 0 290} 291as_func_ret_failure () { 292 return 1 293} 294 295exitcode=0 296if as_func_success; then 297 : 298else 299 exitcode=1 300 echo as_func_success failed. 301fi 302 303if as_func_failure; then 304 exitcode=1 305 echo as_func_failure succeeded. 306fi 307 308if as_func_ret_success; then 309 : 310else 311 exitcode=1 312 echo as_func_ret_success failed. 313fi 314 315if as_func_ret_failure; then 316 exitcode=1 317 echo as_func_ret_failure succeeded. 318fi 319 320if ( set x; as_func_ret_success y && test x = "$1" ); then 321 : 322else 323 exitcode=1 324 echo positional parameters were not saved. 325fi 326 327test $exitcode = 0) || { (exit 1); exit 1; } 328 329( 330 as_lineno_1=$LINENO 331 as_lineno_2=$LINENO 332 test "x$as_lineno_1" != "x$as_lineno_2" && 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 334 335_ASEOF 336}; then 337 break 338fi 339 340fi 341 342 done 343 344 if test "x$CONFIG_SHELL" != x; then 345 for as_var in BASH_ENV ENV 346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 347 done 348 export CONFIG_SHELL 349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 350fi 351 352 353 if test $as_have_required = no; then 354 echo This script requires a shell more modern than all the 355 echo shells that I found on your system. Please install a 356 echo modern shell, or manually run the script under such a 357 echo shell if you do have one. 358 { (exit 1); exit 1; } 359fi 360 361 362fi 363 364fi 365 366 367 368(eval "as_func_return () { 369 (exit \$1) 370} 371as_func_success () { 372 as_func_return 0 373} 374as_func_failure () { 375 as_func_return 1 376} 377as_func_ret_success () { 378 return 0 379} 380as_func_ret_failure () { 381 return 1 382} 383 384exitcode=0 385if as_func_success; then 386 : 387else 388 exitcode=1 389 echo as_func_success failed. 390fi 391 392if as_func_failure; then 393 exitcode=1 394 echo as_func_failure succeeded. 395fi 396 397if as_func_ret_success; then 398 : 399else 400 exitcode=1 401 echo as_func_ret_success failed. 402fi 403 404if as_func_ret_failure; then 405 exitcode=1 406 echo as_func_ret_failure succeeded. 407fi 408 409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 410 : 411else 412 exitcode=1 413 echo positional parameters were not saved. 414fi 415 416test \$exitcode = 0") || { 417 echo No shell found that supports shell functions. 418 echo Please tell autoconf@gnu.org about your system, 419 echo including any error possibly output before this 420 echo message 421} 422 423 424 425 as_lineno_1=$LINENO 426 as_lineno_2=$LINENO 427 test "x$as_lineno_1" != "x$as_lineno_2" && 428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 429 430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 431 # uniformly replaced by the line number. The first 'sed' inserts a 432 # line-number line after each line using $LINENO; the second 'sed' 433 # does the real work. The second script uses 'N' to pair each 434 # line-number line with the line containing $LINENO, and appends 435 # trailing '-' during substitution so that $LINENO is not a special 436 # case at line end. 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 438 # scripts with optimization help from Paolo Bonzini. Blame Lee 439 # E. McMahon (1931-1989) for sed's syntax. :-) 440 sed -n ' 441 p 442 /[$]LINENO/= 443 ' <$as_myself | 444 sed ' 445 s/[$]LINENO.*/&-/ 446 t lineno 447 b 448 :lineno 449 N 450 :loop 451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 452 t loop 453 s/-\n.*// 454 ' >$as_me.lineno && 455 chmod +x "$as_me.lineno" || 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 457 { (exit 1); exit 1; }; } 458 459 # Don't try to exec as it changes $[0], causing all sort of problems 460 # (the dirname of $[0] is not the place where we might find the 461 # original and so on. Autoconf is especially sensitive to this). 462 . "./$as_me.lineno" 463 # Exit status is that of the last command. 464 exit 465} 466 467 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 469 as_dirname=dirname 470else 471 as_dirname=false 472fi 473 474ECHO_C= ECHO_N= ECHO_T= 475case `echo -n x` in 476-n*) 477 case `echo 'x\c'` in 478 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 479 *) ECHO_C='\c';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485if expr a : '\(a\)' >/dev/null 2>&1 && 486 test "X`expr 00001 : '.*\(...\)'`" = X001; then 487 as_expr=expr 488else 489 as_expr=false 490fi 491 492rm -f conf$$ conf$$.exe conf$$.file 493if test -d conf$$.dir; then 494 rm -f conf$$.dir/conf$$.file 495else 496 rm -f conf$$.dir 497 mkdir conf$$.dir 498fi 499echo >conf$$.file 500if ln -s conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s='ln -s' 502 # ... but there are two gotchas: 503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 505 # In both cases, we have to default to `cp -p'. 506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 507 as_ln_s='cp -p' 508elif ln conf$$.file conf$$ 2>/dev/null; then 509 as_ln_s=ln 510else 511 as_ln_s='cp -p' 512fi 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 514rmdir conf$$.dir 2>/dev/null 515 516if mkdir -p . 2>/dev/null; then 517 as_mkdir_p=: 518else 519 test -d ./-p && rmdir ./-p 520 as_mkdir_p=false 521fi 522 523if test -x / >/dev/null 2>&1; then 524 as_test_x='test -x' 525else 526 if ls -dL / >/dev/null 2>&1; then 527 as_ls_L_option=L 528 else 529 as_ls_L_option= 530 fi 531 as_test_x=' 532 eval sh -c '\'' 533 if test -d "$1"; then 534 test -d "$1/."; 535 else 536 case $1 in 537 -*)set "./$1";; 538 esac; 539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 540 ???[sx]*):;;*)false;;esac;fi 541 '\'' sh 542 ' 543fi 544as_executable_p=$as_test_x 545 546# Sed expression to map a string onto a valid CPP name. 547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 548 549# Sed expression to map a string onto a valid variable name. 550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 551 552 553 554exec 7<&0 </dev/null 6>&1 555 556# Name of the host. 557# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 558# so uname gets run too. 559ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 560 561# 562# Initializations. 563# 564ac_default_prefix=/usr/local 565ac_clean_files= 566ac_config_libobj_dir=. 567LIBOBJS= 568cross_compiling=no 569subdirs= 570MFLAGS= 571MAKEFLAGS= 572SHELL=${CONFIG_SHELL-/bin/sh} 573 574# Identity of this package. 575PACKAGE_NAME='PDCurses' 576PACKAGE_TARNAME='PDCurses' 577PACKAGE_VERSION='3.4' 578PACKAGE_STRING='PDCurses 3.4' 579PACKAGE_BUGREPORT='wmcbrine@users.sf.net' 580 581ac_unique_file="curspriv.h" 582# Factoring default headers for most tests. 583ac_includes_default="\ 584#include <stdio.h> 585#ifdef HAVE_SYS_TYPES_H 586# include <sys/types.h> 587#endif 588#ifdef HAVE_SYS_STAT_H 589# include <sys/stat.h> 590#endif 591#ifdef STDC_HEADERS 592# include <stdlib.h> 593# include <stddef.h> 594#else 595# ifdef HAVE_STDLIB_H 596# include <stdlib.h> 597# endif 598#endif 599#ifdef HAVE_STRING_H 600# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 601# include <memory.h> 602# endif 603# include <string.h> 604#endif 605#ifdef HAVE_STRINGS_H 606# include <strings.h> 607#endif 608#ifdef HAVE_INTTYPES_H 609# include <inttypes.h> 610#endif 611#ifdef HAVE_STDINT_H 612# include <stdint.h> 613#endif 614#ifdef HAVE_UNISTD_H 615# include <unistd.h> 616#endif" 617 618ac_subst_vars='SHELL 619PATH_SEPARATOR 620PACKAGE_NAME 621PACKAGE_TARNAME 622PACKAGE_VERSION 623PACKAGE_STRING 624PACKAGE_BUGREPORT 625exec_prefix 626prefix 627program_transform_name 628bindir 629sbindir 630libexecdir 631datarootdir 632datadir 633sysconfdir 634sharedstatedir 635localstatedir 636includedir 637oldincludedir 638docdir 639infodir 640htmldir 641dvidir 642pdfdir 643psdir 644libdir 645localedir 646mandir 647DEFS 648ECHO_C 649ECHO_N 650ECHO_T 651LIBS 652build_alias 653host_alias 654target_alias 655CC 656CFLAGS 657LDFLAGS 658CPPFLAGS 659ac_ct_CC 660EXEEXT 661OBJEXT 662build 663build_cpu 664build_vendor 665build_os 666host 667host_cpu 668host_vendor 669host_os 670target 671target_cpu 672target_vendor 673target_os 674SYS_DEFS 675RANLIB 676INSTALL_PROGRAM 677INSTALL_SCRIPT 678INSTALL_DATA 679SET_MAKE 680CPP 681GREP 682EGREP 683MH_EXTRA_LIBS 684XMKMF 685MH_XINC_DIR 686MH_XLIBS 687PURIFY 688SHLPST 689DYN_COMP 690LD_RXLIB1 691SHLPRE 692SHL_TARGETS 693O2SAVE 694CC2O 695SAVE2O 696RXPACKEXPORTS 697LIBOBJS 698LTLIBOBJS' 699ac_subst_files='' 700 ac_precious_vars='build_alias 701host_alias 702target_alias 703CC 704CFLAGS 705LDFLAGS 706LIBS 707CPPFLAGS 708CPP 709XMKMF' 710 711 712# Initialize some variables set by options. 713ac_init_help= 714ac_init_version=false 715# The variables have the same names as the options, with 716# dashes changed to underlines. 717cache_file=/dev/null 718exec_prefix=NONE 719no_create= 720no_recursion= 721prefix=NONE 722program_prefix=NONE 723program_suffix=NONE 724program_transform_name=s,x,x, 725silent= 726site= 727srcdir= 728verbose= 729x_includes=NONE 730x_libraries=NONE 731 732# Installation directory options. 733# These are left unexpanded so users can "make install exec_prefix=/foo" 734# and all the variables that are supposed to be based on exec_prefix 735# by default will actually change. 736# Use braces instead of parens because sh, perl, etc. also accept them. 737# (The list follows the same order as the GNU Coding Standards.) 738bindir='${exec_prefix}/bin' 739sbindir='${exec_prefix}/sbin' 740libexecdir='${exec_prefix}/libexec' 741datarootdir='${prefix}/share' 742datadir='${datarootdir}' 743sysconfdir='${prefix}/etc' 744sharedstatedir='${prefix}/com' 745localstatedir='${prefix}/var' 746includedir='${prefix}/include' 747oldincludedir='/usr/include' 748docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 749infodir='${datarootdir}/info' 750htmldir='${docdir}' 751dvidir='${docdir}' 752pdfdir='${docdir}' 753psdir='${docdir}' 754libdir='${exec_prefix}/lib' 755localedir='${datarootdir}/locale' 756mandir='${datarootdir}/man' 757 758ac_prev= 759ac_dashdash= 760for ac_option 761do 762 # If the previous option needs an argument, assign it. 763 if test -n "$ac_prev"; then 764 eval $ac_prev=\$ac_option 765 ac_prev= 766 continue 767 fi 768 769 case $ac_option in 770 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 771 *) ac_optarg=yes ;; 772 esac 773 774 # Accept the important Cygnus configure options, so we can diagnose typos. 775 776 case $ac_dashdash$ac_option in 777 --) 778 ac_dashdash=yes ;; 779 780 -bindir | --bindir | --bindi | --bind | --bin | --bi) 781 ac_prev=bindir ;; 782 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 783 bindir=$ac_optarg ;; 784 785 -build | --build | --buil | --bui | --bu) 786 ac_prev=build_alias ;; 787 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 788 build_alias=$ac_optarg ;; 789 790 -cache-file | --cache-file | --cache-fil | --cache-fi \ 791 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 792 ac_prev=cache_file ;; 793 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 794 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 795 cache_file=$ac_optarg ;; 796 797 --config-cache | -C) 798 cache_file=config.cache ;; 799 800 -datadir | --datadir | --datadi | --datad) 801 ac_prev=datadir ;; 802 -datadir=* | --datadir=* | --datadi=* | --datad=*) 803 datadir=$ac_optarg ;; 804 805 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 806 | --dataroo | --dataro | --datar) 807 ac_prev=datarootdir ;; 808 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 809 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 810 datarootdir=$ac_optarg ;; 811 812 -disable-* | --disable-*) 813 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 814 # Reject names that are not valid shell variable names. 815 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 816 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 817 { (exit 1); exit 1; }; } 818 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 819 eval enable_$ac_feature=no ;; 820 821 -docdir | --docdir | --docdi | --doc | --do) 822 ac_prev=docdir ;; 823 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 824 docdir=$ac_optarg ;; 825 826 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 827 ac_prev=dvidir ;; 828 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 829 dvidir=$ac_optarg ;; 830 831 -enable-* | --enable-*) 832 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 833 # Reject names that are not valid shell variable names. 834 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 835 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 836 { (exit 1); exit 1; }; } 837 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 838 eval enable_$ac_feature=\$ac_optarg ;; 839 840 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 841 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 842 | --exec | --exe | --ex) 843 ac_prev=exec_prefix ;; 844 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 845 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 846 | --exec=* | --exe=* | --ex=*) 847 exec_prefix=$ac_optarg ;; 848 849 -gas | --gas | --ga | --g) 850 # Obsolete; use --with-gas. 851 with_gas=yes ;; 852 853 -help | --help | --hel | --he | -h) 854 ac_init_help=long ;; 855 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 856 ac_init_help=recursive ;; 857 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 858 ac_init_help=short ;; 859 860 -host | --host | --hos | --ho) 861 ac_prev=host_alias ;; 862 -host=* | --host=* | --hos=* | --ho=*) 863 host_alias=$ac_optarg ;; 864 865 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 866 ac_prev=htmldir ;; 867 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 868 | --ht=*) 869 htmldir=$ac_optarg ;; 870 871 -includedir | --includedir | --includedi | --included | --include \ 872 | --includ | --inclu | --incl | --inc) 873 ac_prev=includedir ;; 874 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 875 | --includ=* | --inclu=* | --incl=* | --inc=*) 876 includedir=$ac_optarg ;; 877 878 -infodir | --infodir | --infodi | --infod | --info | --inf) 879 ac_prev=infodir ;; 880 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 881 infodir=$ac_optarg ;; 882 883 -libdir | --libdir | --libdi | --libd) 884 ac_prev=libdir ;; 885 -libdir=* | --libdir=* | --libdi=* | --libd=*) 886 libdir=$ac_optarg ;; 887 888 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 889 | --libexe | --libex | --libe) 890 ac_prev=libexecdir ;; 891 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 892 | --libexe=* | --libex=* | --libe=*) 893 libexecdir=$ac_optarg ;; 894 895 -localedir | --localedir | --localedi | --localed | --locale) 896 ac_prev=localedir ;; 897 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 898 localedir=$ac_optarg ;; 899 900 -localstatedir | --localstatedir | --localstatedi | --localstated \ 901 | --localstate | --localstat | --localsta | --localst | --locals) 902 ac_prev=localstatedir ;; 903 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 904 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 905 localstatedir=$ac_optarg ;; 906 907 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 908 ac_prev=mandir ;; 909 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 910 mandir=$ac_optarg ;; 911 912 -nfp | --nfp | --nf) 913 # Obsolete; use --without-fp. 914 with_fp=no ;; 915 916 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 917 | --no-cr | --no-c | -n) 918 no_create=yes ;; 919 920 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 921 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 922 no_recursion=yes ;; 923 924 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 925 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 926 | --oldin | --oldi | --old | --ol | --o) 927 ac_prev=oldincludedir ;; 928 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 929 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 930 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 931 oldincludedir=$ac_optarg ;; 932 933 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 934 ac_prev=prefix ;; 935 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 936 prefix=$ac_optarg ;; 937 938 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 939 | --program-pre | --program-pr | --program-p) 940 ac_prev=program_prefix ;; 941 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 942 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 943 program_prefix=$ac_optarg ;; 944 945 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 946 | --program-suf | --program-su | --program-s) 947 ac_prev=program_suffix ;; 948 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 949 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 950 program_suffix=$ac_optarg ;; 951 952 -program-transform-name | --program-transform-name \ 953 | --program-transform-nam | --program-transform-na \ 954 | --program-transform-n | --program-transform- \ 955 | --program-transform | --program-transfor \ 956 | --program-transfo | --program-transf \ 957 | --program-trans | --program-tran \ 958 | --progr-tra | --program-tr | --program-t) 959 ac_prev=program_transform_name ;; 960 -program-transform-name=* | --program-transform-name=* \ 961 | --program-transform-nam=* | --program-transform-na=* \ 962 | --program-transform-n=* | --program-transform-=* \ 963 | --program-transform=* | --program-transfor=* \ 964 | --program-transfo=* | --program-transf=* \ 965 | --program-trans=* | --program-tran=* \ 966 | --progr-tra=* | --program-tr=* | --program-t=*) 967 program_transform_name=$ac_optarg ;; 968 969 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 970 ac_prev=pdfdir ;; 971 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 972 pdfdir=$ac_optarg ;; 973 974 -psdir | --psdir | --psdi | --psd | --ps) 975 ac_prev=psdir ;; 976 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 977 psdir=$ac_optarg ;; 978 979 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 980 | -silent | --silent | --silen | --sile | --sil) 981 silent=yes ;; 982 983 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 984 ac_prev=sbindir ;; 985 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 986 | --sbi=* | --sb=*) 987 sbindir=$ac_optarg ;; 988 989 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 990 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 991 | --sharedst | --shareds | --shared | --share | --shar \ 992 | --sha | --sh) 993 ac_prev=sharedstatedir ;; 994 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 995 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 996 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 997 | --sha=* | --sh=*) 998 sharedstatedir=$ac_optarg ;; 999 1000 -site | --site | --sit) 1001 ac_prev=site ;; 1002 -site=* | --site=* | --sit=*) 1003 site=$ac_optarg ;; 1004 1005 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1006 ac_prev=srcdir ;; 1007 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1008 srcdir=$ac_optarg ;; 1009 1010 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1011 | --syscon | --sysco | --sysc | --sys | --sy) 1012 ac_prev=sysconfdir ;; 1013 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1014 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1015 sysconfdir=$ac_optarg ;; 1016 1017 -target | --target | --targe | --targ | --tar | --ta | --t) 1018 ac_prev=target_alias ;; 1019 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1020 target_alias=$ac_optarg ;; 1021 1022 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1023 verbose=yes ;; 1024 1025 -version | --version | --versio | --versi | --vers | -V) 1026 ac_init_version=: ;; 1027 1028 -with-* | --with-*) 1029 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1030 # Reject names that are not valid shell variable names. 1031 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1032 { echo "$as_me: error: invalid package name: $ac_package" >&2 1033 { (exit 1); exit 1; }; } 1034 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1035 eval with_$ac_package=\$ac_optarg ;; 1036 1037 -without-* | --without-*) 1038 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1039 # Reject names that are not valid shell variable names. 1040 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1041 { echo "$as_me: error: invalid package name: $ac_package" >&2 1042 { (exit 1); exit 1; }; } 1043 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1044 eval with_$ac_package=no ;; 1045 1046 --x) 1047 # Obsolete; use --with-x. 1048 with_x=yes ;; 1049 1050 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1051 | --x-incl | --x-inc | --x-in | --x-i) 1052 ac_prev=x_includes ;; 1053 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1054 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1055 x_includes=$ac_optarg ;; 1056 1057 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1058 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1059 ac_prev=x_libraries ;; 1060 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1061 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1062 x_libraries=$ac_optarg ;; 1063 1064 -*) { echo "$as_me: error: unrecognized option: $ac_option 1065Try \`$0 --help' for more information." >&2 1066 { (exit 1); exit 1; }; } 1067 ;; 1068 1069 *=*) 1070 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1071 # Reject names that are not valid shell variable names. 1072 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1073 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1074 { (exit 1); exit 1; }; } 1075 eval $ac_envvar=\$ac_optarg 1076 export $ac_envvar ;; 1077 1078 *) 1079 # FIXME: should be removed in autoconf 3.0. 1080 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1081 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1082 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1083 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1084 ;; 1085 1086 esac 1087done 1088 1089if test -n "$ac_prev"; then 1090 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1091 { echo "$as_me: error: missing argument to $ac_option" >&2 1092 { (exit 1); exit 1; }; } 1093fi 1094 1095# Be sure to have absolute directory names. 1096for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1097 datadir sysconfdir sharedstatedir localstatedir includedir \ 1098 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1099 libdir localedir mandir 1100do 1101 eval ac_val=\$$ac_var 1102 case $ac_val in 1103 [\\/$]* | ?:[\\/]* ) continue;; 1104 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1105 esac 1106 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1107 { (exit 1); exit 1; }; } 1108done 1109 1110# There might be people who depend on the old broken behavior: `$host' 1111# used to hold the argument of --host etc. 1112# FIXME: To remove some day. 1113build=$build_alias 1114host=$host_alias 1115target=$target_alias 1116 1117# FIXME: To remove some day. 1118if test "x$host_alias" != x; then 1119 if test "x$build_alias" = x; then 1120 cross_compiling=maybe 1121 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1122 If a cross compiler is detected then cross compile mode will be used." >&2 1123 elif test "x$build_alias" != "x$host_alias"; then 1124 cross_compiling=yes 1125 fi 1126fi 1127 1128ac_tool_prefix= 1129test -n "$host_alias" && ac_tool_prefix=$host_alias- 1130 1131test "$silent" = yes && exec 6>/dev/null 1132 1133 1134ac_pwd=`pwd` && test -n "$ac_pwd" && 1135ac_ls_di=`ls -di .` && 1136ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1137 { echo "$as_me: error: Working directory cannot be determined" >&2 1138 { (exit 1); exit 1; }; } 1139test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1140 { echo "$as_me: error: pwd does not report name of working directory" >&2 1141 { (exit 1); exit 1; }; } 1142 1143 1144# Find the source files, if location was not specified. 1145if test -z "$srcdir"; then 1146 ac_srcdir_defaulted=yes 1147 # Try the directory containing this script, then the parent directory. 1148 ac_confdir=`$as_dirname -- "$0" || 1149$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1150 X"$0" : 'X\(//\)[^/]' \| \ 1151 X"$0" : 'X\(//\)$' \| \ 1152 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1153echo X"$0" | 1154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1155 s//\1/ 1156 q 1157 } 1158 /^X\(\/\/\)[^/].*/{ 1159 s//\1/ 1160 q 1161 } 1162 /^X\(\/\/\)$/{ 1163 s//\1/ 1164 q 1165 } 1166 /^X\(\/\).*/{ 1167 s//\1/ 1168 q 1169 } 1170 s/.*/./; q'` 1171 srcdir=$ac_confdir 1172 if test ! -r "$srcdir/$ac_unique_file"; then 1173 srcdir=.. 1174 fi 1175else 1176 ac_srcdir_defaulted=no 1177fi 1178if test ! -r "$srcdir/$ac_unique_file"; then 1179 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1180 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1181 { (exit 1); exit 1; }; } 1182fi 1183ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1184ac_abs_confdir=`( 1185 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1186 { (exit 1); exit 1; }; } 1187 pwd)` 1188# When building in place, set srcdir=. 1189if test "$ac_abs_confdir" = "$ac_pwd"; then 1190 srcdir=. 1191fi 1192# Remove unnecessary trailing slashes from srcdir. 1193# Double slashes in file names in object file debugging info 1194# mess up M-x gdb in Emacs. 1195case $srcdir in 1196*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1197esac 1198for ac_var in $ac_precious_vars; do 1199 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1200 eval ac_env_${ac_var}_value=\$${ac_var} 1201 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1202 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1203done 1204 1205# 1206# Report the --help message. 1207# 1208if test "$ac_init_help" = "long"; then 1209 # Omit some internal or obsolete options to make the list less imposing. 1210 # This message is too long to be a string in the A/UX 3.1 sh. 1211 cat <<_ACEOF 1212\`configure' configures PDCurses 3.4 to adapt to many kinds of systems. 1213 1214Usage: $0 [OPTION]... [VAR=VALUE]... 1215 1216To assign environment variables (e.g., CC, CFLAGS...), specify them as 1217VAR=VALUE. See below for descriptions of some of the useful variables. 1218 1219Defaults for the options are specified in brackets. 1220 1221Configuration: 1222 -h, --help display this help and exit 1223 --help=short display options specific to this package 1224 --help=recursive display the short help of all the included packages 1225 -V, --version display version information and exit 1226 -q, --quiet, --silent do not print \`checking...' messages 1227 --cache-file=FILE cache test results in FILE [disabled] 1228 -C, --config-cache alias for \`--cache-file=config.cache' 1229 -n, --no-create do not create output files 1230 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1231 1232Installation directories: 1233 --prefix=PREFIX install architecture-independent files in PREFIX 1234 [$ac_default_prefix] 1235 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1236 [PREFIX] 1237 1238By default, \`make install' will install all the files in 1239\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1240an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1241for instance \`--prefix=\$HOME'. 1242 1243For better control, use the options below. 1244 1245Fine tuning of the installation directories: 1246 --bindir=DIR user executables [EPREFIX/bin] 1247 --sbindir=DIR system admin executables [EPREFIX/sbin] 1248 --libexecdir=DIR program executables [EPREFIX/libexec] 1249 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1250 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1251 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1252 --libdir=DIR object code libraries [EPREFIX/lib] 1253 --includedir=DIR C header files [PREFIX/include] 1254 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1255 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1256 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1257 --infodir=DIR info documentation [DATAROOTDIR/info] 1258 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1259 --mandir=DIR man documentation [DATAROOTDIR/man] 1260 --docdir=DIR documentation root [DATAROOTDIR/doc/PDCurses] 1261 --htmldir=DIR html documentation [DOCDIR] 1262 --dvidir=DIR dvi documentation [DOCDIR] 1263 --pdfdir=DIR pdf documentation [DOCDIR] 1264 --psdir=DIR ps documentation [DOCDIR] 1265_ACEOF 1266 1267 cat <<\_ACEOF 1268 1269X features: 1270 --x-includes=DIR X include files are in DIR 1271 --x-libraries=DIR X library files are in DIR 1272 1273System types: 1274 --build=BUILD configure for building on BUILD [guessed] 1275 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1276 --target=TARGET configure for building compilers for TARGET [HOST] 1277_ACEOF 1278fi 1279 1280if test -n "$ac_init_help"; then 1281 case $ac_init_help in 1282 short | recursive ) echo "Configuration of PDCurses 3.4:";; 1283 esac 1284 cat <<\_ACEOF 1285 1286Optional Features: 1287 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1288 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1289 --enable-debug turn on debugging 1290 --enable-widec include support for wide characters 1291 --enable-xim include support for XIM 1292 --enable-force-utf8 override locale settings; use UTF-8 1293 --enable-purify link with Purify (TM) 1294 1295Optional Packages: 1296 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1297 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1298 --with-x use the X Window System 1299 --with-xaw3d link with Xaw3d 1300 --with-nextaw link with neXtaw 1301 1302Some influential environment variables: 1303 CC C compiler command 1304 CFLAGS C compiler flags 1305 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1306 nonstandard directory <lib dir> 1307 LIBS libraries to pass to the linker, e.g. -l<library> 1308 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1309 you have headers in a nonstandard directory <include dir> 1310 CPP C preprocessor 1311 XMKMF Path to xmkmf, Makefile generator for X Window System 1312 1313Use these variables to override the choices made by `configure' or to help 1314it to find libraries and programs with nonstandard names/locations. 1315 1316Report bugs to <wmcbrine@users.sf.net>. 1317_ACEOF 1318ac_status=$? 1319fi 1320 1321if test "$ac_init_help" = "recursive"; then 1322 # If there are subdirs, report their specific --help. 1323 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1324 test -d "$ac_dir" || continue 1325 ac_builddir=. 1326 1327case "$ac_dir" in 1328.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1329*) 1330 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1331 # A ".." for each directory in $ac_dir_suffix. 1332 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1333 case $ac_top_builddir_sub in 1334 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1335 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1336 esac ;; 1337esac 1338ac_abs_top_builddir=$ac_pwd 1339ac_abs_builddir=$ac_pwd$ac_dir_suffix 1340# for backward compatibility: 1341ac_top_builddir=$ac_top_build_prefix 1342 1343case $srcdir in 1344 .) # We are building in place. 1345 ac_srcdir=. 1346 ac_top_srcdir=$ac_top_builddir_sub 1347 ac_abs_top_srcdir=$ac_pwd ;; 1348 [\\/]* | ?:[\\/]* ) # Absolute name. 1349 ac_srcdir=$srcdir$ac_dir_suffix; 1350 ac_top_srcdir=$srcdir 1351 ac_abs_top_srcdir=$srcdir ;; 1352 *) # Relative name. 1353 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1354 ac_top_srcdir=$ac_top_build_prefix$srcdir 1355 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1356esac 1357ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1358 1359 cd "$ac_dir" || { ac_status=$?; continue; } 1360 # Check for guested configure. 1361 if test -f "$ac_srcdir/configure.gnu"; then 1362 echo && 1363 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1364 elif test -f "$ac_srcdir/configure"; then 1365 echo && 1366 $SHELL "$ac_srcdir/configure" --help=recursive 1367 else 1368 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1369 fi || ac_status=$? 1370 cd "$ac_pwd" || { ac_status=$?; break; } 1371 done 1372fi 1373 1374test -n "$ac_init_help" && exit $ac_status 1375if $ac_init_version; then 1376 cat <<\_ACEOF 1377PDCurses configure 3.4 1378generated by GNU Autoconf 2.61 1379 1380Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 13812002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1382This configure script is free software; the Free Software Foundation 1383gives unlimited permission to copy, distribute and modify it. 1384_ACEOF 1385 exit 1386fi 1387cat >config.log <<_ACEOF 1388This file contains any messages produced by compilers while 1389running configure, to aid debugging if configure makes a mistake. 1390 1391It was created by PDCurses $as_me 3.4, which was 1392generated by GNU Autoconf 2.61. Invocation command line was 1393 1394 $ $0 $@ 1395 1396_ACEOF 1397exec 5>>config.log 1398{ 1399cat <<_ASUNAME 1400## --------- ## 1401## Platform. ## 1402## --------- ## 1403 1404hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1405uname -m = `(uname -m) 2>/dev/null || echo unknown` 1406uname -r = `(uname -r) 2>/dev/null || echo unknown` 1407uname -s = `(uname -s) 2>/dev/null || echo unknown` 1408uname -v = `(uname -v) 2>/dev/null || echo unknown` 1409 1410/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1411/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1412 1413/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1414/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1415/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1416/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1417/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1418/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1419/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1420 1421_ASUNAME 1422 1423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1424for as_dir in $PATH 1425do 1426 IFS=$as_save_IFS 1427 test -z "$as_dir" && as_dir=. 1428 echo "PATH: $as_dir" 1429done 1430IFS=$as_save_IFS 1431 1432} >&5 1433 1434cat >&5 <<_ACEOF 1435 1436 1437## ----------- ## 1438## Core tests. ## 1439## ----------- ## 1440 1441_ACEOF 1442 1443 1444# Keep a trace of the command line. 1445# Strip out --no-create and --no-recursion so they do not pile up. 1446# Strip out --silent because we don't want to record it for future runs. 1447# Also quote any args containing shell meta-characters. 1448# Make two passes to allow for proper duplicate-argument suppression. 1449ac_configure_args= 1450ac_configure_args0= 1451ac_configure_args1= 1452ac_must_keep_next=false 1453for ac_pass in 1 2 1454do 1455 for ac_arg 1456 do 1457 case $ac_arg in 1458 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1459 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1460 | -silent | --silent | --silen | --sile | --sil) 1461 continue ;; 1462 *\'*) 1463 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1464 esac 1465 case $ac_pass in 1466 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1467 2) 1468 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1469 if test $ac_must_keep_next = true; then 1470 ac_must_keep_next=false # Got value, back to normal. 1471 else 1472 case $ac_arg in 1473 *=* | --config-cache | -C | -disable-* | --disable-* \ 1474 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1475 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1476 | -with-* | --with-* | -without-* | --without-* | --x) 1477 case "$ac_configure_args0 " in 1478 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1479 esac 1480 ;; 1481 -* ) ac_must_keep_next=true ;; 1482 esac 1483 fi 1484 ac_configure_args="$ac_configure_args '$ac_arg'" 1485 ;; 1486 esac 1487 done 1488done 1489$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1490$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1491 1492# When interrupted or exit'd, cleanup temporary files, and complete 1493# config.log. We remove comments because anyway the quotes in there 1494# would cause problems or look ugly. 1495# WARNING: Use '\'' to represent an apostrophe within the trap. 1496# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1497trap 'exit_status=$? 1498 # Save into config.log some information that might help in debugging. 1499 { 1500 echo 1501 1502 cat <<\_ASBOX 1503## ---------------- ## 1504## Cache variables. ## 1505## ---------------- ## 1506_ASBOX 1507 echo 1508 # The following way of writing the cache mishandles newlines in values, 1509( 1510 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1511 eval ac_val=\$$ac_var 1512 case $ac_val in #( 1513 *${as_nl}*) 1514 case $ac_var in #( 1515 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1516echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1517 esac 1518 case $ac_var in #( 1519 _ | IFS | as_nl) ;; #( 1520 *) $as_unset $ac_var ;; 1521 esac ;; 1522 esac 1523 done 1524 (set) 2>&1 | 1525 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1526 *${as_nl}ac_space=\ *) 1527 sed -n \ 1528 "s/'\''/'\''\\\\'\'''\''/g; 1529 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1530 ;; #( 1531 *) 1532 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1533 ;; 1534 esac | 1535 sort 1536) 1537 echo 1538 1539 cat <<\_ASBOX 1540## ----------------- ## 1541## Output variables. ## 1542## ----------------- ## 1543_ASBOX 1544 echo 1545 for ac_var in $ac_subst_vars 1546 do 1547 eval ac_val=\$$ac_var 1548 case $ac_val in 1549 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1550 esac 1551 echo "$ac_var='\''$ac_val'\''" 1552 done | sort 1553 echo 1554 1555 if test -n "$ac_subst_files"; then 1556 cat <<\_ASBOX 1557## ------------------- ## 1558## File substitutions. ## 1559## ------------------- ## 1560_ASBOX 1561 echo 1562 for ac_var in $ac_subst_files 1563 do 1564 eval ac_val=\$$ac_var 1565 case $ac_val in 1566 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1567 esac 1568 echo "$ac_var='\''$ac_val'\''" 1569 done | sort 1570 echo 1571 fi 1572 1573 if test -s confdefs.h; then 1574 cat <<\_ASBOX 1575## ----------- ## 1576## confdefs.h. ## 1577## ----------- ## 1578_ASBOX 1579 echo 1580 cat confdefs.h 1581 echo 1582 fi 1583 test "$ac_signal" != 0 && 1584 echo "$as_me: caught signal $ac_signal" 1585 echo "$as_me: exit $exit_status" 1586 } >&5 1587 rm -f core *.core core.conftest.* && 1588 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1589 exit $exit_status 1590' 0 1591for ac_signal in 1 2 13 15; do 1592 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1593done 1594ac_signal=0 1595 1596# confdefs.h avoids OS command line length limits that DEFS can exceed. 1597rm -f -r conftest* confdefs.h 1598 1599# Predefined preprocessor variables. 1600 1601cat >>confdefs.h <<_ACEOF 1602#define PACKAGE_NAME "$PACKAGE_NAME" 1603_ACEOF 1604 1605 1606cat >>confdefs.h <<_ACEOF 1607#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1608_ACEOF 1609 1610 1611cat >>confdefs.h <<_ACEOF 1612#define PACKAGE_VERSION "$PACKAGE_VERSION" 1613_ACEOF 1614 1615 1616cat >>confdefs.h <<_ACEOF 1617#define PACKAGE_STRING "$PACKAGE_STRING" 1618_ACEOF 1619 1620 1621cat >>confdefs.h <<_ACEOF 1622#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1623_ACEOF 1624 1625 1626# Let the site file select an alternate cache file if it wants to. 1627# Prefer explicitly selected file to automatically selected ones. 1628if test -n "$CONFIG_SITE"; then 1629 set x "$CONFIG_SITE" 1630elif test "x$prefix" != xNONE; then 1631 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1632else 1633 set x "$ac_default_prefix/share/config.site" \ 1634 "$ac_default_prefix/etc/config.site" 1635fi 1636shift 1637for ac_site_file 1638do 1639 if test -r "$ac_site_file"; then 1640 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1641echo "$as_me: loading site script $ac_site_file" >&6;} 1642 sed 's/^/| /' "$ac_site_file" >&5 1643 . "$ac_site_file" 1644 fi 1645done 1646 1647if test -r "$cache_file"; then 1648 # Some versions of bash will fail to source /dev/null (special 1649 # files actually), so we avoid doing that. 1650 if test -f "$cache_file"; then 1651 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1652echo "$as_me: loading cache $cache_file" >&6;} 1653 case $cache_file in 1654 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1655 *) . "./$cache_file";; 1656 esac 1657 fi 1658else 1659 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1660echo "$as_me: creating cache $cache_file" >&6;} 1661 >$cache_file 1662fi 1663 1664# Check that the precious variables saved in the cache have kept the same 1665# value. 1666ac_cache_corrupted=false 1667for ac_var in $ac_precious_vars; do 1668 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1669 eval ac_new_set=\$ac_env_${ac_var}_set 1670 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1671 eval ac_new_val=\$ac_env_${ac_var}_value 1672 case $ac_old_set,$ac_new_set in 1673 set,) 1674 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1675echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1676 ac_cache_corrupted=: ;; 1677 ,set) 1678 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1679echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1680 ac_cache_corrupted=: ;; 1681 ,);; 1682 *) 1683 if test "x$ac_old_val" != "x$ac_new_val"; then 1684 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1685echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1686 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1687echo "$as_me: former value: $ac_old_val" >&2;} 1688 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1689echo "$as_me: current value: $ac_new_val" >&2;} 1690 ac_cache_corrupted=: 1691 fi;; 1692 esac 1693 # Pass precious variables to config.status. 1694 if test "$ac_new_set" = set; then 1695 case $ac_new_val in 1696 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1697 *) ac_arg=$ac_var=$ac_new_val ;; 1698 esac 1699 case " $ac_configure_args " in 1700 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1701 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1702 esac 1703 fi 1704done 1705if $ac_cache_corrupted; then 1706 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1707echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1708 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1709echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1710 { (exit 1); exit 1; }; } 1711fi 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737ac_ext=c 1738ac_cpp='$CPP $CPPFLAGS' 1739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1741ac_compiler_gnu=$ac_cv_c_compiler_gnu 1742 1743 1744 1745 1746 1747 1748ac_ext=c 1749ac_cpp='$CPP $CPPFLAGS' 1750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1752ac_compiler_gnu=$ac_cv_c_compiler_gnu 1753if test -n "$ac_tool_prefix"; then 1754 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1755set dummy ${ac_tool_prefix}gcc; ac_word=$2 1756{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1758if test "${ac_cv_prog_CC+set}" = set; then 1759 echo $ECHO_N "(cached) $ECHO_C" >&6 1760else 1761 if test -n "$CC"; then 1762 ac_cv_prog_CC="$CC" # Let the user override the test. 1763else 1764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1765for as_dir in $PATH 1766do 1767 IFS=$as_save_IFS 1768 test -z "$as_dir" && as_dir=. 1769 for ac_exec_ext in '' $ac_executable_extensions; do 1770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1771 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1773 break 2 1774 fi 1775done 1776done 1777IFS=$as_save_IFS 1778 1779fi 1780fi 1781CC=$ac_cv_prog_CC 1782if test -n "$CC"; then 1783 { echo "$as_me:$LINENO: result: $CC" >&5 1784echo "${ECHO_T}$CC" >&6; } 1785else 1786 { echo "$as_me:$LINENO: result: no" >&5 1787echo "${ECHO_T}no" >&6; } 1788fi 1789 1790 1791fi 1792if test -z "$ac_cv_prog_CC"; then 1793 ac_ct_CC=$CC 1794 # Extract the first word of "gcc", so it can be a program name with args. 1795set dummy gcc; ac_word=$2 1796{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1798if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1799 echo $ECHO_N "(cached) $ECHO_C" >&6 1800else 1801 if test -n "$ac_ct_CC"; then 1802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1803else 1804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1805for as_dir in $PATH 1806do 1807 IFS=$as_save_IFS 1808 test -z "$as_dir" && as_dir=. 1809 for ac_exec_ext in '' $ac_executable_extensions; do 1810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1811 ac_cv_prog_ac_ct_CC="gcc" 1812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1813 break 2 1814 fi 1815done 1816done 1817IFS=$as_save_IFS 1818 1819fi 1820fi 1821ac_ct_CC=$ac_cv_prog_ac_ct_CC 1822if test -n "$ac_ct_CC"; then 1823 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1824echo "${ECHO_T}$ac_ct_CC" >&6; } 1825else 1826 { echo "$as_me:$LINENO: result: no" >&5 1827echo "${ECHO_T}no" >&6; } 1828fi 1829 1830 if test "x$ac_ct_CC" = x; then 1831 CC="" 1832 else 1833 case $cross_compiling:$ac_tool_warned in 1834yes:) 1835{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 1836whose name does not start with the host triplet. If you think this 1837configuration is useful to you, please write to autoconf@gnu.org." >&5 1838echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 1839whose name does not start with the host triplet. If you think this 1840configuration is useful to you, please write to autoconf@gnu.org." >&2;} 1841ac_tool_warned=yes ;; 1842esac 1843 CC=$ac_ct_CC 1844 fi 1845else 1846 CC="$ac_cv_prog_CC" 1847fi 1848 1849if test -z "$CC"; then 1850 if test -n "$ac_tool_prefix"; then 1851 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1852set dummy ${ac_tool_prefix}cc; ac_word=$2 1853{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1855if test "${ac_cv_prog_CC+set}" = set; then 1856 echo $ECHO_N "(cached) $ECHO_C" >&6 1857else 1858 if test -n "$CC"; then 1859 ac_cv_prog_CC="$CC" # Let the user override the test. 1860else 1861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1862for as_dir in $PATH 1863do 1864 IFS=$as_save_IFS 1865 test -z "$as_dir" && as_dir=. 1866 for ac_exec_ext in '' $ac_executable_extensions; do 1867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1868 ac_cv_prog_CC="${ac_tool_prefix}cc" 1869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1870 break 2 1871 fi 1872done 1873done 1874IFS=$as_save_IFS 1875 1876fi 1877fi 1878CC=$ac_cv_prog_CC 1879if test -n "$CC"; then 1880 { echo "$as_me:$LINENO: result: $CC" >&5 1881echo "${ECHO_T}$CC" >&6; } 1882else 1883 { echo "$as_me:$LINENO: result: no" >&5 1884echo "${ECHO_T}no" >&6; } 1885fi 1886 1887 1888 fi 1889fi 1890if test -z "$CC"; then 1891 # Extract the first word of "cc", so it can be a program name with args. 1892set dummy cc; ac_word=$2 1893{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1895if test "${ac_cv_prog_CC+set}" = set; then 1896 echo $ECHO_N "(cached) $ECHO_C" >&6 1897else 1898 if test -n "$CC"; then 1899 ac_cv_prog_CC="$CC" # Let the user override the test. 1900else 1901 ac_prog_rejected=no 1902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1903for as_dir in $PATH 1904do 1905 IFS=$as_save_IFS 1906 test -z "$as_dir" && as_dir=. 1907 for ac_exec_ext in '' $ac_executable_extensions; do 1908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1909 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1910 ac_prog_rejected=yes 1911 continue 1912 fi 1913 ac_cv_prog_CC="cc" 1914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1915 break 2 1916 fi 1917done 1918done 1919IFS=$as_save_IFS 1920 1921if test $ac_prog_rejected = yes; then 1922 # We found a bogon in the path, so make sure we never use it. 1923 set dummy $ac_cv_prog_CC 1924 shift 1925 if test $# != 0; then 1926 # We chose a different compiler from the bogus one. 1927 # However, it has the same basename, so the bogon will be chosen 1928 # first if we set CC to just the basename; use the full file name. 1929 shift 1930 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1931 fi 1932fi 1933fi 1934fi 1935CC=$ac_cv_prog_CC 1936if test -n "$CC"; then 1937 { echo "$as_me:$LINENO: result: $CC" >&5 1938echo "${ECHO_T}$CC" >&6; } 1939else 1940 { echo "$as_me:$LINENO: result: no" >&5 1941echo "${ECHO_T}no" >&6; } 1942fi 1943 1944 1945fi 1946if test -z "$CC"; then 1947 if test -n "$ac_tool_prefix"; then 1948 for ac_prog in cl.exe 1949 do 1950 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1951set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1952{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1954if test "${ac_cv_prog_CC+set}" = set; then 1955 echo $ECHO_N "(cached) $ECHO_C" >&6 1956else 1957 if test -n "$CC"; then 1958 ac_cv_prog_CC="$CC" # Let the user override the test. 1959else 1960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1961for as_dir in $PATH 1962do 1963 IFS=$as_save_IFS 1964 test -z "$as_dir" && as_dir=. 1965 for ac_exec_ext in '' $ac_executable_extensions; do 1966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1967 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1969 break 2 1970 fi 1971done 1972done 1973IFS=$as_save_IFS 1974 1975fi 1976fi 1977CC=$ac_cv_prog_CC 1978if test -n "$CC"; then 1979 { echo "$as_me:$LINENO: result: $CC" >&5 1980echo "${ECHO_T}$CC" >&6; } 1981else 1982 { echo "$as_me:$LINENO: result: no" >&5 1983echo "${ECHO_T}no" >&6; } 1984fi 1985 1986 1987 test -n "$CC" && break 1988 done 1989fi 1990if test -z "$CC"; then 1991 ac_ct_CC=$CC 1992 for ac_prog in cl.exe 1993do 1994 # Extract the first word of "$ac_prog", so it can be a program name with args. 1995set dummy $ac_prog; ac_word=$2 1996{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1998if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1999 echo $ECHO_N "(cached) $ECHO_C" >&6 2000else 2001 if test -n "$ac_ct_CC"; then 2002 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2003else 2004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2005for as_dir in $PATH 2006do 2007 IFS=$as_save_IFS 2008 test -z "$as_dir" && as_dir=. 2009 for ac_exec_ext in '' $ac_executable_extensions; do 2010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2011 ac_cv_prog_ac_ct_CC="$ac_prog" 2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2013 break 2 2014 fi 2015done 2016done 2017IFS=$as_save_IFS 2018 2019fi 2020fi 2021ac_ct_CC=$ac_cv_prog_ac_ct_CC 2022if test -n "$ac_ct_CC"; then 2023 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2024echo "${ECHO_T}$ac_ct_CC" >&6; } 2025else 2026 { echo "$as_me:$LINENO: result: no" >&5 2027echo "${ECHO_T}no" >&6; } 2028fi 2029 2030 2031 test -n "$ac_ct_CC" && break 2032done 2033 2034 if test "x$ac_ct_CC" = x; then 2035 CC="" 2036 else 2037 case $cross_compiling:$ac_tool_warned in 2038yes:) 2039{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2040whose name does not start with the host triplet. If you think this 2041configuration is useful to you, please write to autoconf@gnu.org." >&5 2042echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2043whose name does not start with the host triplet. If you think this 2044configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2045ac_tool_warned=yes ;; 2046esac 2047 CC=$ac_ct_CC 2048 fi 2049fi 2050 2051fi 2052 2053 2054test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2055See \`config.log' for more details." >&5 2056echo "$as_me: error: no acceptable C compiler found in \$PATH 2057See \`config.log' for more details." >&2;} 2058 { (exit 1); exit 1; }; } 2059 2060# Provide some information about the compiler. 2061echo "$as_me:$LINENO: checking for C compiler version" >&5 2062ac_compiler=`set X $ac_compile; echo $2` 2063{ (ac_try="$ac_compiler --version >&5" 2064case "(($ac_try" in 2065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2066 *) ac_try_echo=$ac_try;; 2067esac 2068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2069 (eval "$ac_compiler --version >&5") 2>&5 2070 ac_status=$? 2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2072 (exit $ac_status); } 2073{ (ac_try="$ac_compiler -v >&5" 2074case "(($ac_try" in 2075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2076 *) ac_try_echo=$ac_try;; 2077esac 2078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2079 (eval "$ac_compiler -v >&5") 2>&5 2080 ac_status=$? 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2082 (exit $ac_status); } 2083{ (ac_try="$ac_compiler -V >&5" 2084case "(($ac_try" in 2085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2086 *) ac_try_echo=$ac_try;; 2087esac 2088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2089 (eval "$ac_compiler -V >&5") 2>&5 2090 ac_status=$? 2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2092 (exit $ac_status); } 2093 2094cat >conftest.$ac_ext <<_ACEOF 2095/* confdefs.h. */ 2096_ACEOF 2097cat confdefs.h >>conftest.$ac_ext 2098cat >>conftest.$ac_ext <<_ACEOF 2099/* end confdefs.h. */ 2100 2101int 2102main () 2103{ 2104 2105 ; 2106 return 0; 2107} 2108_ACEOF 2109ac_clean_files_save=$ac_clean_files 2110ac_clean_files="$ac_clean_files a.out a.exe b.out" 2111# Try to create an executable without -o first, disregard a.out. 2112# It will help us diagnose broken compilers, and finding out an intuition 2113# of exeext. 2114{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2115echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2116ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2117# 2118# List of possible output files, starting from the most likely. 2119# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2120# only as a last resort. b.out is created by i960 compilers. 2121ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2122# 2123# The IRIX 6 linker writes into existing files which may not be 2124# executable, retaining their permissions. Remove them first so a 2125# subsequent execution test works. 2126ac_rmfiles= 2127for ac_file in $ac_files 2128do 2129 case $ac_file in 2130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2131 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2132 esac 2133done 2134rm -f $ac_rmfiles 2135 2136if { (ac_try="$ac_link_default" 2137case "(($ac_try" in 2138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2139 *) ac_try_echo=$ac_try;; 2140esac 2141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2142 (eval "$ac_link_default") 2>&5 2143 ac_status=$? 2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2145 (exit $ac_status); }; then 2146 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2147# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2148# in a Makefile. We should not override ac_cv_exeext if it was cached, 2149# so that the user can short-circuit this test for compilers unknown to 2150# Autoconf. 2151for ac_file in $ac_files '' 2152do 2153 test -f "$ac_file" || continue 2154 case $ac_file in 2155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2156 ;; 2157 [ab].out ) 2158 # We found the default executable, but exeext='' is most 2159 # certainly right. 2160 break;; 2161 *.* ) 2162 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2163 then :; else 2164 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2165 fi 2166 # We set ac_cv_exeext here because the later test for it is not 2167 # safe: cross compilers may not add the suffix if given an `-o' 2168 # argument, so we may need to know it at that point already. 2169 # Even if this section looks crufty: it has the advantage of 2170 # actually working. 2171 break;; 2172 * ) 2173 break;; 2174 esac 2175done 2176test "$ac_cv_exeext" = no && ac_cv_exeext= 2177 2178else 2179 ac_file='' 2180fi 2181 2182{ echo "$as_me:$LINENO: result: $ac_file" >&5 2183echo "${ECHO_T}$ac_file" >&6; } 2184if test -z "$ac_file"; then 2185 echo "$as_me: failed program was:" >&5 2186sed 's/^/| /' conftest.$ac_ext >&5 2187 2188{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2189See \`config.log' for more details." >&5 2190echo "$as_me: error: C compiler cannot create executables 2191See \`config.log' for more details." >&2;} 2192 { (exit 77); exit 77; }; } 2193fi 2194 2195ac_exeext=$ac_cv_exeext 2196 2197# Check that the compiler produces executables we can run. If not, either 2198# the compiler is broken, or we cross compile. 2199{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2200echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2201# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2202# If not cross compiling, check that we can run a simple program. 2203if test "$cross_compiling" != yes; then 2204 if { ac_try='./$ac_file' 2205 { (case "(($ac_try" in 2206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2207 *) ac_try_echo=$ac_try;; 2208esac 2209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2210 (eval "$ac_try") 2>&5 2211 ac_status=$? 2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2213 (exit $ac_status); }; }; then 2214 cross_compiling=no 2215 else 2216 if test "$cross_compiling" = maybe; then 2217 cross_compiling=yes 2218 else 2219 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2220If you meant to cross compile, use \`--host'. 2221See \`config.log' for more details." >&5 2222echo "$as_me: error: cannot run C compiled programs. 2223If you meant to cross compile, use \`--host'. 2224See \`config.log' for more details." >&2;} 2225 { (exit 1); exit 1; }; } 2226 fi 2227 fi 2228fi 2229{ echo "$as_me:$LINENO: result: yes" >&5 2230echo "${ECHO_T}yes" >&6; } 2231 2232rm -f a.out a.exe conftest$ac_cv_exeext b.out 2233ac_clean_files=$ac_clean_files_save 2234# Check that the compiler produces executables we can run. If not, either 2235# the compiler is broken, or we cross compile. 2236{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2237echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2238{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2239echo "${ECHO_T}$cross_compiling" >&6; } 2240 2241{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2242echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2243if { (ac_try="$ac_link" 2244case "(($ac_try" in 2245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2246 *) ac_try_echo=$ac_try;; 2247esac 2248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2249 (eval "$ac_link") 2>&5 2250 ac_status=$? 2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2252 (exit $ac_status); }; then 2253 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2254# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2255# work properly (i.e., refer to `conftest.exe'), while it won't with 2256# `rm'. 2257for ac_file in conftest.exe conftest conftest.*; do 2258 test -f "$ac_file" || continue 2259 case $ac_file in 2260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2261 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2262 break;; 2263 * ) break;; 2264 esac 2265done 2266else 2267 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2268See \`config.log' for more details." >&5 2269echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2270See \`config.log' for more details." >&2;} 2271 { (exit 1); exit 1; }; } 2272fi 2273 2274rm -f conftest$ac_cv_exeext 2275{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2276echo "${ECHO_T}$ac_cv_exeext" >&6; } 2277 2278rm -f conftest.$ac_ext 2279EXEEXT=$ac_cv_exeext 2280ac_exeext=$EXEEXT 2281{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2282echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2283if test "${ac_cv_objext+set}" = set; then 2284 echo $ECHO_N "(cached) $ECHO_C" >&6 2285else 2286 cat >conftest.$ac_ext <<_ACEOF 2287/* confdefs.h. */ 2288_ACEOF 2289cat confdefs.h >>conftest.$ac_ext 2290cat >>conftest.$ac_ext <<_ACEOF 2291/* end confdefs.h. */ 2292 2293int 2294main () 2295{ 2296 2297 ; 2298 return 0; 2299} 2300_ACEOF 2301rm -f conftest.o conftest.obj 2302if { (ac_try="$ac_compile" 2303case "(($ac_try" in 2304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2305 *) ac_try_echo=$ac_try;; 2306esac 2307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2308 (eval "$ac_compile") 2>&5 2309 ac_status=$? 2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2311 (exit $ac_status); }; then 2312 for ac_file in conftest.o conftest.obj conftest.*; do 2313 test -f "$ac_file" || continue; 2314 case $ac_file in 2315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2316 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2317 break;; 2318 esac 2319done 2320else 2321 echo "$as_me: failed program was:" >&5 2322sed 's/^/| /' conftest.$ac_ext >&5 2323 2324{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2325See \`config.log' for more details." >&5 2326echo "$as_me: error: cannot compute suffix of object files: cannot compile 2327See \`config.log' for more details." >&2;} 2328 { (exit 1); exit 1; }; } 2329fi 2330 2331rm -f conftest.$ac_cv_objext conftest.$ac_ext 2332fi 2333{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2334echo "${ECHO_T}$ac_cv_objext" >&6; } 2335OBJEXT=$ac_cv_objext 2336ac_objext=$OBJEXT 2337{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2338echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2339if test "${ac_cv_c_compiler_gnu+set}" = set; then 2340 echo $ECHO_N "(cached) $ECHO_C" >&6 2341else 2342 cat >conftest.$ac_ext <<_ACEOF 2343/* confdefs.h. */ 2344_ACEOF 2345cat confdefs.h >>conftest.$ac_ext 2346cat >>conftest.$ac_ext <<_ACEOF 2347/* end confdefs.h. */ 2348 2349int 2350main () 2351{ 2352#ifndef __GNUC__ 2353 choke me 2354#endif 2355 2356 ; 2357 return 0; 2358} 2359_ACEOF 2360rm -f conftest.$ac_objext 2361if { (ac_try="$ac_compile" 2362case "(($ac_try" in 2363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2364 *) ac_try_echo=$ac_try;; 2365esac 2366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2367 (eval "$ac_compile") 2>conftest.er1 2368 ac_status=$? 2369 grep -v '^ *+' conftest.er1 >conftest.err 2370 rm -f conftest.er1 2371 cat conftest.err >&5 2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2373 (exit $ac_status); } && { 2374 test -z "$ac_c_werror_flag" || 2375 test ! -s conftest.err 2376 } && test -s conftest.$ac_objext; then 2377 ac_compiler_gnu=yes 2378else 2379 echo "$as_me: failed program was:" >&5 2380sed 's/^/| /' conftest.$ac_ext >&5 2381 2382 ac_compiler_gnu=no 2383fi 2384 2385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2386ac_cv_c_compiler_gnu=$ac_compiler_gnu 2387 2388fi 2389{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2390echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2391GCC=`test $ac_compiler_gnu = yes && echo yes` 2392ac_test_CFLAGS=${CFLAGS+set} 2393ac_save_CFLAGS=$CFLAGS 2394{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2395echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2396if test "${ac_cv_prog_cc_g+set}" = set; then 2397 echo $ECHO_N "(cached) $ECHO_C" >&6 2398else 2399 ac_save_c_werror_flag=$ac_c_werror_flag 2400 ac_c_werror_flag=yes 2401 ac_cv_prog_cc_g=no 2402 CFLAGS="-g" 2403 cat >conftest.$ac_ext <<_ACEOF 2404/* confdefs.h. */ 2405_ACEOF 2406cat confdefs.h >>conftest.$ac_ext 2407cat >>conftest.$ac_ext <<_ACEOF 2408/* end confdefs.h. */ 2409 2410int 2411main () 2412{ 2413 2414 ; 2415 return 0; 2416} 2417_ACEOF 2418rm -f conftest.$ac_objext 2419if { (ac_try="$ac_compile" 2420case "(($ac_try" in 2421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2422 *) ac_try_echo=$ac_try;; 2423esac 2424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2425 (eval "$ac_compile") 2>conftest.er1 2426 ac_status=$? 2427 grep -v '^ *+' conftest.er1 >conftest.err 2428 rm -f conftest.er1 2429 cat conftest.err >&5 2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2431 (exit $ac_status); } && { 2432 test -z "$ac_c_werror_flag" || 2433 test ! -s conftest.err 2434 } && test -s conftest.$ac_objext; then 2435 ac_cv_prog_cc_g=yes 2436else 2437 echo "$as_me: failed program was:" >&5 2438sed 's/^/| /' conftest.$ac_ext >&5 2439 2440 CFLAGS="" 2441 cat >conftest.$ac_ext <<_ACEOF 2442/* confdefs.h. */ 2443_ACEOF 2444cat confdefs.h >>conftest.$ac_ext 2445cat >>conftest.$ac_ext <<_ACEOF 2446/* end confdefs.h. */ 2447 2448int 2449main () 2450{ 2451 2452 ; 2453 return 0; 2454} 2455_ACEOF 2456rm -f conftest.$ac_objext 2457if { (ac_try="$ac_compile" 2458case "(($ac_try" in 2459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2460 *) ac_try_echo=$ac_try;; 2461esac 2462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2463 (eval "$ac_compile") 2>conftest.er1 2464 ac_status=$? 2465 grep -v '^ *+' conftest.er1 >conftest.err 2466 rm -f conftest.er1 2467 cat conftest.err >&5 2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2469 (exit $ac_status); } && { 2470 test -z "$ac_c_werror_flag" || 2471 test ! -s conftest.err 2472 } && test -s conftest.$ac_objext; then 2473 : 2474else 2475 echo "$as_me: failed program was:" >&5 2476sed 's/^/| /' conftest.$ac_ext >&5 2477 2478 ac_c_werror_flag=$ac_save_c_werror_flag 2479 CFLAGS="-g" 2480 cat >conftest.$ac_ext <<_ACEOF 2481/* confdefs.h. */ 2482_ACEOF 2483cat confdefs.h >>conftest.$ac_ext 2484cat >>conftest.$ac_ext <<_ACEOF 2485/* end confdefs.h. */ 2486 2487int 2488main () 2489{ 2490 2491 ; 2492 return 0; 2493} 2494_ACEOF 2495rm -f conftest.$ac_objext 2496if { (ac_try="$ac_compile" 2497case "(($ac_try" in 2498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2499 *) ac_try_echo=$ac_try;; 2500esac 2501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2502 (eval "$ac_compile") 2>conftest.er1 2503 ac_status=$? 2504 grep -v '^ *+' conftest.er1 >conftest.err 2505 rm -f conftest.er1 2506 cat conftest.err >&5 2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2508 (exit $ac_status); } && { 2509 test -z "$ac_c_werror_flag" || 2510 test ! -s conftest.err 2511 } && test -s conftest.$ac_objext; then 2512 ac_cv_prog_cc_g=yes 2513else 2514 echo "$as_me: failed program was:" >&5 2515sed 's/^/| /' conftest.$ac_ext >&5 2516 2517 2518fi 2519 2520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2521fi 2522 2523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2524fi 2525 2526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2527 ac_c_werror_flag=$ac_save_c_werror_flag 2528fi 2529{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2530echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2531if test "$ac_test_CFLAGS" = set; then 2532 CFLAGS=$ac_save_CFLAGS 2533elif test $ac_cv_prog_cc_g = yes; then 2534 if test "$GCC" = yes; then 2535 CFLAGS="-g -O2" 2536 else 2537 CFLAGS="-g" 2538 fi 2539else 2540 if test "$GCC" = yes; then 2541 CFLAGS="-O2" 2542 else 2543 CFLAGS= 2544 fi 2545fi 2546{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2547echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2548if test "${ac_cv_prog_cc_c89+set}" = set; then 2549 echo $ECHO_N "(cached) $ECHO_C" >&6 2550else 2551 ac_cv_prog_cc_c89=no 2552ac_save_CC=$CC 2553cat >conftest.$ac_ext <<_ACEOF 2554/* confdefs.h. */ 2555_ACEOF 2556cat confdefs.h >>conftest.$ac_ext 2557cat >>conftest.$ac_ext <<_ACEOF 2558/* end confdefs.h. */ 2559#include <stdarg.h> 2560#include <stdio.h> 2561#include <sys/types.h> 2562#include <sys/stat.h> 2563/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2564struct buf { int x; }; 2565FILE * (*rcsopen) (struct buf *, struct stat *, int); 2566static char *e (p, i) 2567 char **p; 2568 int i; 2569{ 2570 return p[i]; 2571} 2572static char *f (char * (*g) (char **, int), char **p, ...) 2573{ 2574 char *s; 2575 va_list v; 2576 va_start (v,p); 2577 s = g (p, va_arg (v,int)); 2578 va_end (v); 2579 return s; 2580} 2581 2582/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2583 function prototypes and stuff, but not '\xHH' hex character constants. 2584 These don't provoke an error unfortunately, instead are silently treated 2585 as 'x'. The following induces an error, until -std is added to get 2586 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2587 array size at least. It's necessary to write '\x00'==0 to get something 2588 that's true only with -std. */ 2589int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2590 2591/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2592 inside strings and character constants. */ 2593#define FOO(x) 'x' 2594int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2595 2596int test (int i, double x); 2597struct s1 {int (*f) (int a);}; 2598struct s2 {int (*f) (double a);}; 2599int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2600int argc; 2601char **argv; 2602int 2603main () 2604{ 2605return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2606 ; 2607 return 0; 2608} 2609_ACEOF 2610for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2611 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2612do 2613 CC="$ac_save_CC $ac_arg" 2614 rm -f conftest.$ac_objext 2615if { (ac_try="$ac_compile" 2616case "(($ac_try" in 2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2618 *) ac_try_echo=$ac_try;; 2619esac 2620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2621 (eval "$ac_compile") 2>conftest.er1 2622 ac_status=$? 2623 grep -v '^ *+' conftest.er1 >conftest.err 2624 rm -f conftest.er1 2625 cat conftest.err >&5 2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2627 (exit $ac_status); } && { 2628 test -z "$ac_c_werror_flag" || 2629 test ! -s conftest.err 2630 } && test -s conftest.$ac_objext; then 2631 ac_cv_prog_cc_c89=$ac_arg 2632else 2633 echo "$as_me: failed program was:" >&5 2634sed 's/^/| /' conftest.$ac_ext >&5 2635 2636 2637fi 2638 2639rm -f core conftest.err conftest.$ac_objext 2640 test "x$ac_cv_prog_cc_c89" != "xno" && break 2641done 2642rm -f conftest.$ac_ext 2643CC=$ac_save_CC 2644 2645fi 2646# AC_CACHE_VAL 2647case "x$ac_cv_prog_cc_c89" in 2648 x) 2649 { echo "$as_me:$LINENO: result: none needed" >&5 2650echo "${ECHO_T}none needed" >&6; } ;; 2651 xno) 2652 { echo "$as_me:$LINENO: result: unsupported" >&5 2653echo "${ECHO_T}unsupported" >&6; } ;; 2654 *) 2655 CC="$CC $ac_cv_prog_cc_c89" 2656 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2657echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2658esac 2659 2660 2661ac_ext=c 2662ac_cpp='$CPP $CPPFLAGS' 2663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2665ac_compiler_gnu=$ac_cv_c_compiler_gnu 2666 2667 2668ac_config_headers="$ac_config_headers config.h" 2669 2670ac_aux_dir= 2671for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2672 if test -f "$ac_dir/install-sh"; then 2673 ac_aux_dir=$ac_dir 2674 ac_install_sh="$ac_aux_dir/install-sh -c" 2675 break 2676 elif test -f "$ac_dir/install.sh"; then 2677 ac_aux_dir=$ac_dir 2678 ac_install_sh="$ac_aux_dir/install.sh -c" 2679 break 2680 elif test -f "$ac_dir/shtool"; then 2681 ac_aux_dir=$ac_dir 2682 ac_install_sh="$ac_aux_dir/shtool install -c" 2683 break 2684 fi 2685done 2686if test -z "$ac_aux_dir"; then 2687 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2688echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2689 { (exit 1); exit 1; }; } 2690fi 2691 2692# These three variables are undocumented and unsupported, 2693# and are intended to be withdrawn in a future Autoconf release. 2694# They can cause serious problems if a builder's source tree is in a directory 2695# whose full name contains unusual characters. 2696ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2697ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2698ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2699 2700 2701# Make sure we can run config.sub. 2702$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2703 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2704echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2705 { (exit 1); exit 1; }; } 2706 2707{ echo "$as_me:$LINENO: checking build system type" >&5 2708echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2709if test "${ac_cv_build+set}" = set; then 2710 echo $ECHO_N "(cached) $ECHO_C" >&6 2711else 2712 ac_build_alias=$build_alias 2713test "x$ac_build_alias" = x && 2714 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2715test "x$ac_build_alias" = x && 2716 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2717echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2718 { (exit 1); exit 1; }; } 2719ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2720 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2721echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2722 { (exit 1); exit 1; }; } 2723 2724fi 2725{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2726echo "${ECHO_T}$ac_cv_build" >&6; } 2727case $ac_cv_build in 2728*-*-*) ;; 2729*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2730echo "$as_me: error: invalid value of canonical build" >&2;} 2731 { (exit 1); exit 1; }; };; 2732esac 2733build=$ac_cv_build 2734ac_save_IFS=$IFS; IFS='-' 2735set x $ac_cv_build 2736shift 2737build_cpu=$1 2738build_vendor=$2 2739shift; shift 2740# Remember, the first character of IFS is used to create $*, 2741# except with old shells: 2742build_os=$* 2743IFS=$ac_save_IFS 2744case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2745 2746 2747{ echo "$as_me:$LINENO: checking host system type" >&5 2748echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2749if test "${ac_cv_host+set}" = set; then 2750 echo $ECHO_N "(cached) $ECHO_C" >&6 2751else 2752 if test "x$host_alias" = x; then 2753 ac_cv_host=$ac_cv_build 2754else 2755 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2756 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2757echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2758 { (exit 1); exit 1; }; } 2759fi 2760 2761fi 2762{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2763echo "${ECHO_T}$ac_cv_host" >&6; } 2764case $ac_cv_host in 2765*-*-*) ;; 2766*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2767echo "$as_me: error: invalid value of canonical host" >&2;} 2768 { (exit 1); exit 1; }; };; 2769esac 2770host=$ac_cv_host 2771ac_save_IFS=$IFS; IFS='-' 2772set x $ac_cv_host 2773shift 2774host_cpu=$1 2775host_vendor=$2 2776shift; shift 2777# Remember, the first character of IFS is used to create $*, 2778# except with old shells: 2779host_os=$* 2780IFS=$ac_save_IFS 2781case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2782 2783 2784{ echo "$as_me:$LINENO: checking target system type" >&5 2785echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 2786if test "${ac_cv_target+set}" = set; then 2787 echo $ECHO_N "(cached) $ECHO_C" >&6 2788else 2789 if test "x$target_alias" = x; then 2790 ac_cv_target=$ac_cv_host 2791else 2792 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2793 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 2794echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 2795 { (exit 1); exit 1; }; } 2796fi 2797 2798fi 2799{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 2800echo "${ECHO_T}$ac_cv_target" >&6; } 2801case $ac_cv_target in 2802*-*-*) ;; 2803*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 2804echo "$as_me: error: invalid value of canonical target" >&2;} 2805 { (exit 1); exit 1; }; };; 2806esac 2807target=$ac_cv_target 2808ac_save_IFS=$IFS; IFS='-' 2809set x $ac_cv_target 2810shift 2811target_cpu=$1 2812target_vendor=$2 2813shift; shift 2814# Remember, the first character of IFS is used to create $*, 2815# except with old shells: 2816target_os=$* 2817IFS=$ac_save_IFS 2818case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2819 2820 2821# The aliases save the names the user supplied, while $host etc. 2822# will get canonicalized. 2823test -n "$target_alias" && 2824 test "$program_prefix$program_suffix$program_transform_name" = \ 2825 NONENONEs,x,x, && 2826 program_prefix=${target_alias}- 2827 2828mymakefile="Makefile" 2829on_qnx=no 2830case "$target" in 2831 *hp-hpux*) 2832 SYS_DEFS="-D_HPUX_SOURCE" 2833 ;; 2834 *ibm-aix*) 2835 SYS_DEFS="-D_ALL_SOURCE" 2836 mymakefile="Makefile.aix" 2837 ;; 2838 *dec-osf*) 2839 SYS_DEFS="-D_XOPEN_SOURCE_EXTENDED" 2840 ;; 2841 *pc-sco*) 2842 SYS_DEFS="-UM_XENIX -b elf" 2843 ;; 2844 *qnx*) 2845 on_qnx=yes 2846 SYS_DEFS="-Q" 2847 ;; 2848 *) 2849 ;; 2850esac 2851 2852 2853 2854save_CPPFLAGS="$CPPFLAGS" 2855CPPFLAGS="$CPPFLAGS $SYS_DEFS" 2856{ echo "$as_me:$LINENO: checking for maximum signal specifier:" >&5 2857echo $ECHO_N "checking for maximum signal specifier:... $ECHO_C" >&6; } 2858if test "${mh_cv_max_signals+set}" = set; then 2859 echo $ECHO_N "(cached) $ECHO_C" >&6 2860else 2861 mh_found="no" 2862for mh_sigs in NSIG __sys_nsig; do 2863 2864cat >conftest.$ac_ext <<_ACEOF 2865/* confdefs.h. */ 2866_ACEOF 2867cat confdefs.h >>conftest.$ac_ext 2868cat >>conftest.$ac_ext <<_ACEOF 2869/* end confdefs.h. */ 2870#include <signal.h> 2871int 2872main () 2873{ 2874return $mh_sigs; 2875 ; 2876 return 0; 2877} 2878_ACEOF 2879rm -f conftest.$ac_objext 2880if { (ac_try="$ac_compile" 2881case "(($ac_try" in 2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2883 *) ac_try_echo=$ac_try;; 2884esac 2885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2886 (eval "$ac_compile") 2>conftest.er1 2887 ac_status=$? 2888 grep -v '^ *+' conftest.er1 >conftest.err 2889 rm -f conftest.er1 2890 cat conftest.err >&5 2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2892 (exit $ac_status); } && { 2893 test -z "$ac_c_werror_flag" || 2894 test ! -s conftest.err 2895 } && test -s conftest.$ac_objext; then 2896 mh_found="yes"; mh_cv_max_signals="$mh_sigs" 2897else 2898 echo "$as_me: failed program was:" >&5 2899sed 's/^/| /' conftest.$ac_ext >&5 2900 2901 2902fi 2903 2904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2905 if test "$mh_found" = "yes"; then 2906 break; 2907 fi 2908done 2909fi 2910 2911CPPFLAGS="$save_CPPFLAGS" 2912if test "$mh_found" = "no"; then 2913 { { echo "$as_me:$LINENO: error: Cannot find a system limit for number of signals. PDCurses cannot be configured on this machine." >&5 2914echo "$as_me: error: Cannot find a system limit for number of signals. PDCurses cannot be configured on this machine." >&2;} 2915 { (exit 1); exit 1; }; } 2916else 2917 cat >>confdefs.h <<_ACEOF 2918#define PDC_MAX_SIGNALS $mh_cv_max_signals 2919_ACEOF 2920 2921 { echo "$as_me:$LINENO: result: $mh_cv_max_signals" >&5 2922echo "${ECHO_T}$mh_cv_max_signals" >&6; } 2923fi 2924 2925 2926if test -n "$ac_tool_prefix"; then 2927 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2928set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2929{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2931if test "${ac_cv_prog_RANLIB+set}" = set; then 2932 echo $ECHO_N "(cached) $ECHO_C" >&6 2933else 2934 if test -n "$RANLIB"; then 2935 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2936else 2937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2938for as_dir in $PATH 2939do 2940 IFS=$as_save_IFS 2941 test -z "$as_dir" && as_dir=. 2942 for ac_exec_ext in '' $ac_executable_extensions; do 2943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2944 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2946 break 2 2947 fi 2948done 2949done 2950IFS=$as_save_IFS 2951 2952fi 2953fi 2954RANLIB=$ac_cv_prog_RANLIB 2955if test -n "$RANLIB"; then 2956 { echo "$as_me:$LINENO: result: $RANLIB" >&5 2957echo "${ECHO_T}$RANLIB" >&6; } 2958else 2959 { echo "$as_me:$LINENO: result: no" >&5 2960echo "${ECHO_T}no" >&6; } 2961fi 2962 2963 2964fi 2965if test -z "$ac_cv_prog_RANLIB"; then 2966 ac_ct_RANLIB=$RANLIB 2967 # Extract the first word of "ranlib", so it can be a program name with args. 2968set dummy ranlib; ac_word=$2 2969{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2971if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2972 echo $ECHO_N "(cached) $ECHO_C" >&6 2973else 2974 if test -n "$ac_ct_RANLIB"; then 2975 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2976else 2977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2978for as_dir in $PATH 2979do 2980 IFS=$as_save_IFS 2981 test -z "$as_dir" && as_dir=. 2982 for ac_exec_ext in '' $ac_executable_extensions; do 2983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2984 ac_cv_prog_ac_ct_RANLIB="ranlib" 2985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2986 break 2 2987 fi 2988done 2989done 2990IFS=$as_save_IFS 2991 2992fi 2993fi 2994ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2995if test -n "$ac_ct_RANLIB"; then 2996 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 2997echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 2998else 2999 { echo "$as_me:$LINENO: result: no" >&5 3000echo "${ECHO_T}no" >&6; } 3001fi 3002 3003 if test "x$ac_ct_RANLIB" = x; then 3004 RANLIB=":" 3005 else 3006 case $cross_compiling:$ac_tool_warned in 3007yes:) 3008{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3009whose name does not start with the host triplet. If you think this 3010configuration is useful to you, please write to autoconf@gnu.org." >&5 3011echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3012whose name does not start with the host triplet. If you think this 3013configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3014ac_tool_warned=yes ;; 3015esac 3016 RANLIB=$ac_ct_RANLIB 3017 fi 3018else 3019 RANLIB="$ac_cv_prog_RANLIB" 3020fi 3021 3022# Find a good install program. We prefer a C program (faster), 3023# so one script is as good as another. But avoid the broken or 3024# incompatible versions: 3025# SysV /etc/install, /usr/sbin/install 3026# SunOS /usr/etc/install 3027# IRIX /sbin/install 3028# AIX /bin/install 3029# AmigaOS /C/install, which installs bootblocks on floppy discs 3030# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3031# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3032# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3033# OS/2's system install, which has a completely different semantic 3034# ./install, which can be erroneously created by make from ./install.sh. 3035{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3036echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3037if test -z "$INSTALL"; then 3038if test "${ac_cv_path_install+set}" = set; then 3039 echo $ECHO_N "(cached) $ECHO_C" >&6 3040else 3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3042for as_dir in $PATH 3043do 3044 IFS=$as_save_IFS 3045 test -z "$as_dir" && as_dir=. 3046 # Account for people who put trailing slashes in PATH elements. 3047case $as_dir/ in 3048 ./ | .// | /cC/* | \ 3049 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3050 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3051 /usr/ucb/* ) ;; 3052 *) 3053 # OSF1 and SCO ODT 3.0 have their own names for install. 3054 # Don't use installbsd from OSF since it installs stuff as root 3055 # by default. 3056 for ac_prog in ginstall scoinst install; do 3057 for ac_exec_ext in '' $ac_executable_extensions; do 3058 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3059 if test $ac_prog = install && 3060 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3061 # AIX install. It has an incompatible calling convention. 3062 : 3063 elif test $ac_prog = install && 3064 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3065 # program-specific install script used by HP pwplus--don't use. 3066 : 3067 else 3068 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3069 break 3 3070 fi 3071 fi 3072 done 3073 done 3074 ;; 3075esac 3076done 3077IFS=$as_save_IFS 3078 3079 3080fi 3081 if test "${ac_cv_path_install+set}" = set; then 3082 INSTALL=$ac_cv_path_install 3083 else 3084 # As a last resort, use the slow shell script. Don't cache a 3085 # value for INSTALL within a source directory, because that will 3086 # break other packages using the cache if that directory is 3087 # removed, or if the value is a relative name. 3088 INSTALL=$ac_install_sh 3089 fi 3090fi 3091{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3092echo "${ECHO_T}$INSTALL" >&6; } 3093 3094# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3095# It thinks the first close brace ends the variable substitution. 3096test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3097 3098test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3099 3100test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3101 3102{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3103echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3104set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3105if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3106 echo $ECHO_N "(cached) $ECHO_C" >&6 3107else 3108 cat >conftest.make <<\_ACEOF 3109SHELL = /bin/sh 3110all: 3111 @echo '@@@%%%=$(MAKE)=@@@%%%' 3112_ACEOF 3113# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3114case `${MAKE-make} -f conftest.make 2>/dev/null` in 3115 *@@@%%%=?*=@@@%%%*) 3116 eval ac_cv_prog_make_${ac_make}_set=yes;; 3117 *) 3118 eval ac_cv_prog_make_${ac_make}_set=no;; 3119esac 3120rm -f conftest.make 3121fi 3122if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3123 { echo "$as_me:$LINENO: result: yes" >&5 3124echo "${ECHO_T}yes" >&6; } 3125 SET_MAKE= 3126else 3127 { echo "$as_me:$LINENO: result: no" >&5 3128echo "${ECHO_T}no" >&6; } 3129 SET_MAKE="MAKE=${MAKE-make}" 3130fi 3131 3132 3133ac_ext=c 3134ac_cpp='$CPP $CPPFLAGS' 3135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3137ac_compiler_gnu=$ac_cv_c_compiler_gnu 3138{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3139echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3140# On Suns, sometimes $CPP names a directory. 3141if test -n "$CPP" && test -d "$CPP"; then 3142 CPP= 3143fi 3144if test -z "$CPP"; then 3145 if test "${ac_cv_prog_CPP+set}" = set; then 3146 echo $ECHO_N "(cached) $ECHO_C" >&6 3147else 3148 # Double quotes because CPP needs to be expanded 3149 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3150 do 3151 ac_preproc_ok=false 3152for ac_c_preproc_warn_flag in '' yes 3153do 3154 # Use a header file that comes with gcc, so configuring glibc 3155 # with a fresh cross-compiler works. 3156 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3157 # <limits.h> exists even on freestanding compilers. 3158 # On the NeXT, cc -E runs the code through the compiler's parser, 3159 # not just through cpp. "Syntax error" is here to catch this case. 3160 cat >conftest.$ac_ext <<_ACEOF 3161/* confdefs.h. */ 3162_ACEOF 3163cat confdefs.h >>conftest.$ac_ext 3164cat >>conftest.$ac_ext <<_ACEOF 3165/* end confdefs.h. */ 3166#ifdef __STDC__ 3167# include <limits.h> 3168#else 3169# include <assert.h> 3170#endif 3171 Syntax error 3172_ACEOF 3173if { (ac_try="$ac_cpp conftest.$ac_ext" 3174case "(($ac_try" in 3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3176 *) ac_try_echo=$ac_try;; 3177esac 3178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3180 ac_status=$? 3181 grep -v '^ *+' conftest.er1 >conftest.err 3182 rm -f conftest.er1 3183 cat conftest.err >&5 3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3185 (exit $ac_status); } >/dev/null && { 3186 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3187 test ! -s conftest.err 3188 }; then 3189 : 3190else 3191 echo "$as_me: failed program was:" >&5 3192sed 's/^/| /' conftest.$ac_ext >&5 3193 3194 # Broken: fails on valid input. 3195continue 3196fi 3197 3198rm -f conftest.err conftest.$ac_ext 3199 3200 # OK, works on sane cases. Now check whether nonexistent headers 3201 # can be detected and how. 3202 cat >conftest.$ac_ext <<_ACEOF 3203/* confdefs.h. */ 3204_ACEOF 3205cat confdefs.h >>conftest.$ac_ext 3206cat >>conftest.$ac_ext <<_ACEOF 3207/* end confdefs.h. */ 3208#include <ac_nonexistent.h> 3209_ACEOF 3210if { (ac_try="$ac_cpp conftest.$ac_ext" 3211case "(($ac_try" in 3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3213 *) ac_try_echo=$ac_try;; 3214esac 3215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3217 ac_status=$? 3218 grep -v '^ *+' conftest.er1 >conftest.err 3219 rm -f conftest.er1 3220 cat conftest.err >&5 3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3222 (exit $ac_status); } >/dev/null && { 3223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3224 test ! -s conftest.err 3225 }; then 3226 # Broken: success on invalid input. 3227continue 3228else 3229 echo "$as_me: failed program was:" >&5 3230sed 's/^/| /' conftest.$ac_ext >&5 3231 3232 # Passes both tests. 3233ac_preproc_ok=: 3234break 3235fi 3236 3237rm -f conftest.err conftest.$ac_ext 3238 3239done 3240# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3241rm -f conftest.err conftest.$ac_ext 3242if $ac_preproc_ok; then 3243 break 3244fi 3245 3246 done 3247 ac_cv_prog_CPP=$CPP 3248 3249fi 3250 CPP=$ac_cv_prog_CPP 3251else 3252 ac_cv_prog_CPP=$CPP 3253fi 3254{ echo "$as_me:$LINENO: result: $CPP" >&5 3255echo "${ECHO_T}$CPP" >&6; } 3256ac_preproc_ok=false 3257for ac_c_preproc_warn_flag in '' yes 3258do 3259 # Use a header file that comes with gcc, so configuring glibc 3260 # with a fresh cross-compiler works. 3261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3262 # <limits.h> exists even on freestanding compilers. 3263 # On the NeXT, cc -E runs the code through the compiler's parser, 3264 # not just through cpp. "Syntax error" is here to catch this case. 3265 cat >conftest.$ac_ext <<_ACEOF 3266/* confdefs.h. */ 3267_ACEOF 3268cat confdefs.h >>conftest.$ac_ext 3269cat >>conftest.$ac_ext <<_ACEOF 3270/* end confdefs.h. */ 3271#ifdef __STDC__ 3272# include <limits.h> 3273#else 3274# include <assert.h> 3275#endif 3276 Syntax error 3277_ACEOF 3278if { (ac_try="$ac_cpp conftest.$ac_ext" 3279case "(($ac_try" in 3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3281 *) ac_try_echo=$ac_try;; 3282esac 3283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3285 ac_status=$? 3286 grep -v '^ *+' conftest.er1 >conftest.err 3287 rm -f conftest.er1 3288 cat conftest.err >&5 3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3290 (exit $ac_status); } >/dev/null && { 3291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3292 test ! -s conftest.err 3293 }; then 3294 : 3295else 3296 echo "$as_me: failed program was:" >&5 3297sed 's/^/| /' conftest.$ac_ext >&5 3298 3299 # Broken: fails on valid input. 3300continue 3301fi 3302 3303rm -f conftest.err conftest.$ac_ext 3304 3305 # OK, works on sane cases. Now check whether nonexistent headers 3306 # can be detected and how. 3307 cat >conftest.$ac_ext <<_ACEOF 3308/* confdefs.h. */ 3309_ACEOF 3310cat confdefs.h >>conftest.$ac_ext 3311cat >>conftest.$ac_ext <<_ACEOF 3312/* end confdefs.h. */ 3313#include <ac_nonexistent.h> 3314_ACEOF 3315if { (ac_try="$ac_cpp conftest.$ac_ext" 3316case "(($ac_try" in 3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3318 *) ac_try_echo=$ac_try;; 3319esac 3320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3322 ac_status=$? 3323 grep -v '^ *+' conftest.er1 >conftest.err 3324 rm -f conftest.er1 3325 cat conftest.err >&5 3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3327 (exit $ac_status); } >/dev/null && { 3328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3329 test ! -s conftest.err 3330 }; then 3331 # Broken: success on invalid input. 3332continue 3333else 3334 echo "$as_me: failed program was:" >&5 3335sed 's/^/| /' conftest.$ac_ext >&5 3336 3337 # Passes both tests. 3338ac_preproc_ok=: 3339break 3340fi 3341 3342rm -f conftest.err conftest.$ac_ext 3343 3344done 3345# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3346rm -f conftest.err conftest.$ac_ext 3347if $ac_preproc_ok; then 3348 : 3349else 3350 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3351See \`config.log' for more details." >&5 3352echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3353See \`config.log' for more details." >&2;} 3354 { (exit 1); exit 1; }; } 3355fi 3356 3357ac_ext=c 3358ac_cpp='$CPP $CPPFLAGS' 3359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3361ac_compiler_gnu=$ac_cv_c_compiler_gnu 3362 3363 3364{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3365echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3366if test "${ac_cv_path_GREP+set}" = set; then 3367 echo $ECHO_N "(cached) $ECHO_C" >&6 3368else 3369 # Extract the first word of "grep ggrep" to use in msg output 3370if test -z "$GREP"; then 3371set dummy grep ggrep; ac_prog_name=$2 3372if test "${ac_cv_path_GREP+set}" = set; then 3373 echo $ECHO_N "(cached) $ECHO_C" >&6 3374else 3375 ac_path_GREP_found=false 3376# Loop through the user's path and test for each of PROGNAME-LIST 3377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3378for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3379do 3380 IFS=$as_save_IFS 3381 test -z "$as_dir" && as_dir=. 3382 for ac_prog in grep ggrep; do 3383 for ac_exec_ext in '' $ac_executable_extensions; do 3384 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3385 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3386 # Check for GNU ac_path_GREP and select it if it is found. 3387 # Check for GNU $ac_path_GREP 3388case `"$ac_path_GREP" --version 2>&1` in 3389*GNU*) 3390 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3391*) 3392 ac_count=0 3393 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3394 while : 3395 do 3396 cat "conftest.in" "conftest.in" >"conftest.tmp" 3397 mv "conftest.tmp" "conftest.in" 3398 cp "conftest.in" "conftest.nl" 3399 echo 'GREP' >> "conftest.nl" 3400 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3401 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3402 ac_count=`expr $ac_count + 1` 3403 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3404 # Best one so far, save it but keep looking for a better one 3405 ac_cv_path_GREP="$ac_path_GREP" 3406 ac_path_GREP_max=$ac_count 3407 fi 3408 # 10*(2^10) chars as input seems more than enough 3409 test $ac_count -gt 10 && break 3410 done 3411 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3412esac 3413 3414 3415 $ac_path_GREP_found && break 3 3416 done 3417done 3418 3419done 3420IFS=$as_save_IFS 3421 3422 3423fi 3424 3425GREP="$ac_cv_path_GREP" 3426if test -z "$GREP"; then 3427 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3428echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3429 { (exit 1); exit 1; }; } 3430fi 3431 3432else 3433 ac_cv_path_GREP=$GREP 3434fi 3435 3436 3437fi 3438{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3439echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3440 GREP="$ac_cv_path_GREP" 3441 3442 3443{ echo "$as_me:$LINENO: checking for egrep" >&5 3444echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3445if test "${ac_cv_path_EGREP+set}" = set; then 3446 echo $ECHO_N "(cached) $ECHO_C" >&6 3447else 3448 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3449 then ac_cv_path_EGREP="$GREP -E" 3450 else 3451 # Extract the first word of "egrep" to use in msg output 3452if test -z "$EGREP"; then 3453set dummy egrep; ac_prog_name=$2 3454if test "${ac_cv_path_EGREP+set}" = set; then 3455 echo $ECHO_N "(cached) $ECHO_C" >&6 3456else 3457 ac_path_EGREP_found=false 3458# Loop through the user's path and test for each of PROGNAME-LIST 3459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3460for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3461do 3462 IFS=$as_save_IFS 3463 test -z "$as_dir" && as_dir=. 3464 for ac_prog in egrep; do 3465 for ac_exec_ext in '' $ac_executable_extensions; do 3466 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3467 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3468 # Check for GNU ac_path_EGREP and select it if it is found. 3469 # Check for GNU $ac_path_EGREP 3470case `"$ac_path_EGREP" --version 2>&1` in 3471*GNU*) 3472 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3473*) 3474 ac_count=0 3475 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3476 while : 3477 do 3478 cat "conftest.in" "conftest.in" >"conftest.tmp" 3479 mv "conftest.tmp" "conftest.in" 3480 cp "conftest.in" "conftest.nl" 3481 echo 'EGREP' >> "conftest.nl" 3482 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3483 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3484 ac_count=`expr $ac_count + 1` 3485 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3486 # Best one so far, save it but keep looking for a better one 3487 ac_cv_path_EGREP="$ac_path_EGREP" 3488 ac_path_EGREP_max=$ac_count 3489 fi 3490 # 10*(2^10) chars as input seems more than enough 3491 test $ac_count -gt 10 && break 3492 done 3493 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3494esac 3495 3496 3497 $ac_path_EGREP_found && break 3 3498 done 3499done 3500 3501done 3502IFS=$as_save_IFS 3503 3504 3505fi 3506 3507EGREP="$ac_cv_path_EGREP" 3508if test -z "$EGREP"; then 3509 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3510echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3511 { (exit 1); exit 1; }; } 3512fi 3513 3514else 3515 ac_cv_path_EGREP=$EGREP 3516fi 3517 3518 3519 fi 3520fi 3521{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3522echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3523 EGREP="$ac_cv_path_EGREP" 3524 3525 3526{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3527echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3528if test "${ac_cv_header_stdc+set}" = set; then 3529 echo $ECHO_N "(cached) $ECHO_C" >&6 3530else 3531 cat >conftest.$ac_ext <<_ACEOF 3532/* confdefs.h. */ 3533_ACEOF 3534cat confdefs.h >>conftest.$ac_ext 3535cat >>conftest.$ac_ext <<_ACEOF 3536/* end confdefs.h. */ 3537#include <stdlib.h> 3538#include <stdarg.h> 3539#include <string.h> 3540#include <float.h> 3541 3542int 3543main () 3544{ 3545 3546 ; 3547 return 0; 3548} 3549_ACEOF 3550rm -f conftest.$ac_objext 3551if { (ac_try="$ac_compile" 3552case "(($ac_try" in 3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3554 *) ac_try_echo=$ac_try;; 3555esac 3556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3557 (eval "$ac_compile") 2>conftest.er1 3558 ac_status=$? 3559 grep -v '^ *+' conftest.er1 >conftest.err 3560 rm -f conftest.er1 3561 cat conftest.err >&5 3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3563 (exit $ac_status); } && { 3564 test -z "$ac_c_werror_flag" || 3565 test ! -s conftest.err 3566 } && test -s conftest.$ac_objext; then 3567 ac_cv_header_stdc=yes 3568else 3569 echo "$as_me: failed program was:" >&5 3570sed 's/^/| /' conftest.$ac_ext >&5 3571 3572 ac_cv_header_stdc=no 3573fi 3574 3575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3576 3577if test $ac_cv_header_stdc = yes; then 3578 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3579 cat >conftest.$ac_ext <<_ACEOF 3580/* confdefs.h. */ 3581_ACEOF 3582cat confdefs.h >>conftest.$ac_ext 3583cat >>conftest.$ac_ext <<_ACEOF 3584/* end confdefs.h. */ 3585#include <string.h> 3586 3587_ACEOF 3588if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3589 $EGREP "memchr" >/dev/null 2>&1; then 3590 : 3591else 3592 ac_cv_header_stdc=no 3593fi 3594rm -f conftest* 3595 3596fi 3597 3598if test $ac_cv_header_stdc = yes; then 3599 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3600 cat >conftest.$ac_ext <<_ACEOF 3601/* confdefs.h. */ 3602_ACEOF 3603cat confdefs.h >>conftest.$ac_ext 3604cat >>conftest.$ac_ext <<_ACEOF 3605/* end confdefs.h. */ 3606#include <stdlib.h> 3607 3608_ACEOF 3609if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3610 $EGREP "free" >/dev/null 2>&1; then 3611 : 3612else 3613 ac_cv_header_stdc=no 3614fi 3615rm -f conftest* 3616 3617fi 3618 3619if test $ac_cv_header_stdc = yes; then 3620 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3621 if test "$cross_compiling" = yes; then 3622 : 3623else 3624 cat >conftest.$ac_ext <<_ACEOF 3625/* confdefs.h. */ 3626_ACEOF 3627cat confdefs.h >>conftest.$ac_ext 3628cat >>conftest.$ac_ext <<_ACEOF 3629/* end confdefs.h. */ 3630#include <ctype.h> 3631#include <stdlib.h> 3632#if ((' ' & 0x0FF) == 0x020) 3633# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3634# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3635#else 3636# define ISLOWER(c) \ 3637 (('a' <= (c) && (c) <= 'i') \ 3638 || ('j' <= (c) && (c) <= 'r') \ 3639 || ('s' <= (c) && (c) <= 'z')) 3640# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3641#endif 3642 3643#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3644int 3645main () 3646{ 3647 int i; 3648 for (i = 0; i < 256; i++) 3649 if (XOR (islower (i), ISLOWER (i)) 3650 || toupper (i) != TOUPPER (i)) 3651 return 2; 3652 return 0; 3653} 3654_ACEOF 3655rm -f conftest$ac_exeext 3656if { (ac_try="$ac_link" 3657case "(($ac_try" in 3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3659 *) ac_try_echo=$ac_try;; 3660esac 3661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3662 (eval "$ac_link") 2>&5 3663 ac_status=$? 3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3666 { (case "(($ac_try" in 3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3668 *) ac_try_echo=$ac_try;; 3669esac 3670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3671 (eval "$ac_try") 2>&5 3672 ac_status=$? 3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3674 (exit $ac_status); }; }; then 3675 : 3676else 3677 echo "$as_me: program exited with status $ac_status" >&5 3678echo "$as_me: failed program was:" >&5 3679sed 's/^/| /' conftest.$ac_ext >&5 3680 3681( exit $ac_status ) 3682ac_cv_header_stdc=no 3683fi 3684rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3685fi 3686 3687 3688fi 3689fi 3690{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3691echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3692if test $ac_cv_header_stdc = yes; then 3693 3694cat >>confdefs.h <<\_ACEOF 3695#define STDC_HEADERS 1 3696_ACEOF 3697 3698fi 3699 3700# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3711 inttypes.h stdint.h unistd.h 3712do 3713as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3714{ echo "$as_me:$LINENO: checking for $ac_header" >&5 3715echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3716if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3717 echo $ECHO_N "(cached) $ECHO_C" >&6 3718else 3719 cat >conftest.$ac_ext <<_ACEOF 3720/* confdefs.h. */ 3721_ACEOF 3722cat confdefs.h >>conftest.$ac_ext 3723cat >>conftest.$ac_ext <<_ACEOF 3724/* end confdefs.h. */ 3725$ac_includes_default 3726 3727#include <$ac_header> 3728_ACEOF 3729rm -f conftest.$ac_objext 3730if { (ac_try="$ac_compile" 3731case "(($ac_try" in 3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3733 *) ac_try_echo=$ac_try;; 3734esac 3735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3736 (eval "$ac_compile") 2>conftest.er1 3737 ac_status=$? 3738 grep -v '^ *+' conftest.er1 >conftest.err 3739 rm -f conftest.er1 3740 cat conftest.err >&5 3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3742 (exit $ac_status); } && { 3743 test -z "$ac_c_werror_flag" || 3744 test ! -s conftest.err 3745 } && test -s conftest.$ac_objext; then 3746 eval "$as_ac_Header=yes" 3747else 3748 echo "$as_me: failed program was:" >&5 3749sed 's/^/| /' conftest.$ac_ext >&5 3750 3751 eval "$as_ac_Header=no" 3752fi 3753 3754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3755fi 3756ac_res=`eval echo '${'$as_ac_Header'}'` 3757 { echo "$as_me:$LINENO: result: $ac_res" >&5 3758echo "${ECHO_T}$ac_res" >&6; } 3759if test `eval echo '${'$as_ac_Header'}'` = yes; then 3760 cat >>confdefs.h <<_ACEOF 3761#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3762_ACEOF 3763 3764fi 3765 3766done 3767 3768 3769 3770if test "${ac_cv_header_sys_ipc_h+set}" = set; then 3771 { echo "$as_me:$LINENO: checking for sys/ipc.h" >&5 3772echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6; } 3773if test "${ac_cv_header_sys_ipc_h+set}" = set; then 3774 echo $ECHO_N "(cached) $ECHO_C" >&6 3775fi 3776{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5 3777echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6; } 3778else 3779 # Is the header compilable? 3780{ echo "$as_me:$LINENO: checking sys/ipc.h usability" >&5 3781echo $ECHO_N "checking sys/ipc.h usability... $ECHO_C" >&6; } 3782cat >conftest.$ac_ext <<_ACEOF 3783/* confdefs.h. */ 3784_ACEOF 3785cat confdefs.h >>conftest.$ac_ext 3786cat >>conftest.$ac_ext <<_ACEOF 3787/* end confdefs.h. */ 3788$ac_includes_default 3789#include <sys/ipc.h> 3790_ACEOF 3791rm -f conftest.$ac_objext 3792if { (ac_try="$ac_compile" 3793case "(($ac_try" in 3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3795 *) ac_try_echo=$ac_try;; 3796esac 3797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3798 (eval "$ac_compile") 2>conftest.er1 3799 ac_status=$? 3800 grep -v '^ *+' conftest.er1 >conftest.err 3801 rm -f conftest.er1 3802 cat conftest.err >&5 3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3804 (exit $ac_status); } && { 3805 test -z "$ac_c_werror_flag" || 3806 test ! -s conftest.err 3807 } && test -s conftest.$ac_objext; then 3808 ac_header_compiler=yes 3809else 3810 echo "$as_me: failed program was:" >&5 3811sed 's/^/| /' conftest.$ac_ext >&5 3812 3813 ac_header_compiler=no 3814fi 3815 3816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3817{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3818echo "${ECHO_T}$ac_header_compiler" >&6; } 3819 3820# Is the header present? 3821{ echo "$as_me:$LINENO: checking sys/ipc.h presence" >&5 3822echo $ECHO_N "checking sys/ipc.h presence... $ECHO_C" >&6; } 3823cat >conftest.$ac_ext <<_ACEOF 3824/* confdefs.h. */ 3825_ACEOF 3826cat confdefs.h >>conftest.$ac_ext 3827cat >>conftest.$ac_ext <<_ACEOF 3828/* end confdefs.h. */ 3829#include <sys/ipc.h> 3830_ACEOF 3831if { (ac_try="$ac_cpp conftest.$ac_ext" 3832case "(($ac_try" in 3833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3834 *) ac_try_echo=$ac_try;; 3835esac 3836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3838 ac_status=$? 3839 grep -v '^ *+' conftest.er1 >conftest.err 3840 rm -f conftest.er1 3841 cat conftest.err >&5 3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3843 (exit $ac_status); } >/dev/null && { 3844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3845 test ! -s conftest.err 3846 }; then 3847 ac_header_preproc=yes 3848else 3849 echo "$as_me: failed program was:" >&5 3850sed 's/^/| /' conftest.$ac_ext >&5 3851 3852 ac_header_preproc=no 3853fi 3854 3855rm -f conftest.err conftest.$ac_ext 3856{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3857echo "${ECHO_T}$ac_header_preproc" >&6; } 3858 3859# So? What about this header? 3860case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3861 yes:no: ) 3862 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&5 3863echo "$as_me: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3864 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the compiler's result" >&5 3865echo "$as_me: WARNING: sys/ipc.h: proceeding with the compiler's result" >&2;} 3866 ac_header_preproc=yes 3867 ;; 3868 no:yes:* ) 3869 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: present but cannot be compiled" >&5 3870echo "$as_me: WARNING: sys/ipc.h: present but cannot be compiled" >&2;} 3871 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&5 3872echo "$as_me: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&2;} 3873 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: see the Autoconf documentation" >&5 3874echo "$as_me: WARNING: sys/ipc.h: see the Autoconf documentation" >&2;} 3875 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&5 3876echo "$as_me: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&2;} 3877 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5 3878echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2;} 3879 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&5 3880echo "$as_me: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&2;} 3881 ( cat <<\_ASBOX 3882## ------------------------------------ ## 3883## Report this to wmcbrine@users.sf.net ## 3884## ------------------------------------ ## 3885_ASBOX 3886 ) | sed "s/^/$as_me: WARNING: /" >&2 3887 ;; 3888esac 3889{ echo "$as_me:$LINENO: checking for sys/ipc.h" >&5 3890echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6; } 3891if test "${ac_cv_header_sys_ipc_h+set}" = set; then 3892 echo $ECHO_N "(cached) $ECHO_C" >&6 3893else 3894 ac_cv_header_sys_ipc_h=$ac_header_preproc 3895fi 3896{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5 3897echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6; } 3898 3899fi 3900 3901 3902if test $ac_cv_header_sys_ipc_h = no; then 3903 { { echo "$as_me:$LINENO: error: Cannot find required header file sys/ipc.h; PDCurses cannot be configured" >&5 3904echo "$as_me: error: Cannot find required header file sys/ipc.h; PDCurses cannot be configured" >&2;} 3905 { (exit 1); exit 1; }; } 3906fi 3907 3908 3909if test $ac_cv_header_stdc != yes; then 3910 { { echo "$as_me:$LINENO: error: Need ANSI C headers" >&5 3911echo "$as_me: error: Need ANSI C headers" >&2;} 3912 { (exit 1); exit 1; }; } 3913fi 3914 3915 3916 3917 3918 3919 3920 3921for ac_header in fcntl.h \ 3922 sys/time.h \ 3923 sys/select.h \ 3924 dlfcn.h \ 3925 dl.h 3926 3927do 3928as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3929if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3930 { echo "$as_me:$LINENO: checking for $ac_header" >&5 3931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3932if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3933 echo $ECHO_N "(cached) $ECHO_C" >&6 3934fi 3935ac_res=`eval echo '${'$as_ac_Header'}'` 3936 { echo "$as_me:$LINENO: result: $ac_res" >&5 3937echo "${ECHO_T}$ac_res" >&6; } 3938else 3939 # Is the header compilable? 3940{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 3941echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 3942cat >conftest.$ac_ext <<_ACEOF 3943/* confdefs.h. */ 3944_ACEOF 3945cat confdefs.h >>conftest.$ac_ext 3946cat >>conftest.$ac_ext <<_ACEOF 3947/* end confdefs.h. */ 3948$ac_includes_default 3949#include <$ac_header> 3950_ACEOF 3951rm -f conftest.$ac_objext 3952if { (ac_try="$ac_compile" 3953case "(($ac_try" in 3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3955 *) ac_try_echo=$ac_try;; 3956esac 3957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3958 (eval "$ac_compile") 2>conftest.er1 3959 ac_status=$? 3960 grep -v '^ *+' conftest.er1 >conftest.err 3961 rm -f conftest.er1 3962 cat conftest.err >&5 3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3964 (exit $ac_status); } && { 3965 test -z "$ac_c_werror_flag" || 3966 test ! -s conftest.err 3967 } && test -s conftest.$ac_objext; then 3968 ac_header_compiler=yes 3969else 3970 echo "$as_me: failed program was:" >&5 3971sed 's/^/| /' conftest.$ac_ext >&5 3972 3973 ac_header_compiler=no 3974fi 3975 3976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3977{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3978echo "${ECHO_T}$ac_header_compiler" >&6; } 3979 3980# Is the header present? 3981{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 3982echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 3983cat >conftest.$ac_ext <<_ACEOF 3984/* confdefs.h. */ 3985_ACEOF 3986cat confdefs.h >>conftest.$ac_ext 3987cat >>conftest.$ac_ext <<_ACEOF 3988/* end confdefs.h. */ 3989#include <$ac_header> 3990_ACEOF 3991if { (ac_try="$ac_cpp conftest.$ac_ext" 3992case "(($ac_try" in 3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3994 *) ac_try_echo=$ac_try;; 3995esac 3996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3998 ac_status=$? 3999 grep -v '^ *+' conftest.er1 >conftest.err 4000 rm -f conftest.er1 4001 cat conftest.err >&5 4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4003 (exit $ac_status); } >/dev/null && { 4004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4005 test ! -s conftest.err 4006 }; then 4007 ac_header_preproc=yes 4008else 4009 echo "$as_me: failed program was:" >&5 4010sed 's/^/| /' conftest.$ac_ext >&5 4011 4012 ac_header_preproc=no 4013fi 4014 4015rm -f conftest.err conftest.$ac_ext 4016{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4017echo "${ECHO_T}$ac_header_preproc" >&6; } 4018 4019# So? What about this header? 4020case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4021 yes:no: ) 4022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4023echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4025echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4026 ac_header_preproc=yes 4027 ;; 4028 no:yes:* ) 4029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4030echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4032echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4033 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4034echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4035 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4036echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4038echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4039 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4040echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4041 ( cat <<\_ASBOX 4042## ------------------------------------ ## 4043## Report this to wmcbrine@users.sf.net ## 4044## ------------------------------------ ## 4045_ASBOX 4046 ) | sed "s/^/$as_me: WARNING: /" >&2 4047 ;; 4048esac 4049{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4052 echo $ECHO_N "(cached) $ECHO_C" >&6 4053else 4054 eval "$as_ac_Header=\$ac_header_preproc" 4055fi 4056ac_res=`eval echo '${'$as_ac_Header'}'` 4057 { echo "$as_me:$LINENO: result: $ac_res" >&5 4058echo "${ECHO_T}$ac_res" >&6; } 4059 4060fi 4061if test `eval echo '${'$as_ac_Header'}'` = yes; then 4062 cat >>confdefs.h <<_ACEOF 4063#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4064_ACEOF 4065 4066fi 4067 4068done 4069 4070 4071{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 4072echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 4073if test "${ac_cv_header_time+set}" = set; then 4074 echo $ECHO_N "(cached) $ECHO_C" >&6 4075else 4076 cat >conftest.$ac_ext <<_ACEOF 4077/* confdefs.h. */ 4078_ACEOF 4079cat confdefs.h >>conftest.$ac_ext 4080cat >>conftest.$ac_ext <<_ACEOF 4081/* end confdefs.h. */ 4082#include <sys/types.h> 4083#include <sys/time.h> 4084#include <time.h> 4085 4086int 4087main () 4088{ 4089if ((struct tm *) 0) 4090return 0; 4091 ; 4092 return 0; 4093} 4094_ACEOF 4095rm -f conftest.$ac_objext 4096if { (ac_try="$ac_compile" 4097case "(($ac_try" in 4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4099 *) ac_try_echo=$ac_try;; 4100esac 4101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4102 (eval "$ac_compile") 2>conftest.er1 4103 ac_status=$? 4104 grep -v '^ *+' conftest.er1 >conftest.err 4105 rm -f conftest.er1 4106 cat conftest.err >&5 4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4108 (exit $ac_status); } && { 4109 test -z "$ac_c_werror_flag" || 4110 test ! -s conftest.err 4111 } && test -s conftest.$ac_objext; then 4112 ac_cv_header_time=yes 4113else 4114 echo "$as_me: failed program was:" >&5 4115sed 's/^/| /' conftest.$ac_ext >&5 4116 4117 ac_cv_header_time=no 4118fi 4119 4120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4121fi 4122{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 4123echo "${ECHO_T}$ac_cv_header_time" >&6; } 4124if test $ac_cv_header_time = yes; then 4125 4126cat >>confdefs.h <<\_ACEOF 4127#define TIME_WITH_SYS_TIME 1 4128_ACEOF 4129 4130fi 4131 4132 4133MH_EXTRA_LIBS='' 4134for mh_lib in socket nls; do 4135 if test "$on_qnx" = yes; then 4136 { echo "$as_me:$LINENO: checking for library -l${mh_lib}" >&5 4137echo $ECHO_N "checking for library -l${mh_lib}... $ECHO_C" >&6; } 4138 if test -r /usr/lib/${mh_lib}3r.lib; then 4139 { echo "$as_me:$LINENO: result: found" >&5 4140echo "${ECHO_T}found" >&6; } 4141 MH_EXTRA_LIBS="${MH_EXTRA_LIBS} -l${mh_lib}" 4142 else 4143 { echo "$as_me:$LINENO: result: not found" >&5 4144echo "${ECHO_T}not found" >&6; } 4145 fi 4146 else 4147 as_ac_Lib=`echo "ac_cv_lib_$mh_lib''_main" | $as_tr_sh` 4148{ echo "$as_me:$LINENO: checking for main in -l$mh_lib" >&5 4149echo $ECHO_N "checking for main in -l$mh_lib... $ECHO_C" >&6; } 4150if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then 4151 echo $ECHO_N "(cached) $ECHO_C" >&6 4152else 4153 ac_check_lib_save_LIBS=$LIBS 4154LIBS="-l$mh_lib $LIBS" 4155cat >conftest.$ac_ext <<_ACEOF 4156/* confdefs.h. */ 4157_ACEOF 4158cat confdefs.h >>conftest.$ac_ext 4159cat >>conftest.$ac_ext <<_ACEOF 4160/* end confdefs.h. */ 4161 4162 4163int 4164main () 4165{ 4166return main (); 4167 ; 4168 return 0; 4169} 4170_ACEOF 4171rm -f conftest.$ac_objext conftest$ac_exeext 4172if { (ac_try="$ac_link" 4173case "(($ac_try" in 4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4175 *) ac_try_echo=$ac_try;; 4176esac 4177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4178 (eval "$ac_link") 2>conftest.er1 4179 ac_status=$? 4180 grep -v '^ *+' conftest.er1 >conftest.err 4181 rm -f conftest.er1 4182 cat conftest.err >&5 4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4184 (exit $ac_status); } && { 4185 test -z "$ac_c_werror_flag" || 4186 test ! -s conftest.err 4187 } && test -s conftest$ac_exeext && 4188 $as_test_x conftest$ac_exeext; then 4189 eval "$as_ac_Lib=yes" 4190else 4191 echo "$as_me: failed program was:" >&5 4192sed 's/^/| /' conftest.$ac_ext >&5 4193 4194 eval "$as_ac_Lib=no" 4195fi 4196 4197rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4198 conftest$ac_exeext conftest.$ac_ext 4199LIBS=$ac_check_lib_save_LIBS 4200fi 4201ac_res=`eval echo '${'$as_ac_Lib'}'` 4202 { echo "$as_me:$LINENO: result: $ac_res" >&5 4203echo "${ECHO_T}$ac_res" >&6; } 4204if test `eval echo '${'$as_ac_Lib'}'` = yes; then 4205 mh_lib_found=yes 4206else 4207 mh_lib_found=no 4208fi 4209 4210 if test "$mh_lib_found" = yes; then 4211 MH_EXTRA_LIBS="${MH_EXTRA_LIBS} -l${mh_lib}" 4212 fi 4213 fi 4214done 4215 4216 4217 4218{ echo "$as_me:$LINENO: checking whether $CC understand -c and -o together" >&5 4219echo $ECHO_N "checking whether $CC understand -c and -o together... $ECHO_C" >&6; } 4220set dummy $CC; ac_cc="`echo $2 | 4221 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`" 4222if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then 4223 echo $ECHO_N "(cached) $ECHO_C" >&6 4224else 4225 echo 'foo(){}' > conftest.c 4226# We do the test twice because some compilers refuse to overwrite an 4227# existing .o file with -o, though they will create one. 4228eval ac_cv_prog_cc_${ac_cc}_c_o=no 4229ac_try='${CC-cc} -c conftest.c -o conftest.ooo 1>&5' 4230if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4231 (eval $ac_try) 2>&5 4232 ac_status=$? 4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4234 (exit $ac_status); } && test -f conftest.ooo && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4235 (eval $ac_try) 2>&5 4236 ac_status=$? 4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4238 (exit $ac_status); }; 4239then 4240 ac_try='${CC-cc} -c conftest.c -o conftest.ooo 1>&5' 4241 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4242 (eval $ac_try) 2>&5 4243 ac_status=$? 4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4245 (exit $ac_status); } && test -f conftest.ooo && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4246 (eval $ac_try) 2>&5 4247 ac_status=$? 4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4249 (exit $ac_status); }; 4250 then 4251 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 4252 fi 4253fi 4254rm -f conftest* 4255 4256fi 4257if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then 4258 O2SAVE="" 4259 SAVE2O="" 4260 CC2O="-o $"'@' 4261 { echo "$as_me:$LINENO: result: yes" >&5 4262echo "${ECHO_T}yes" >&6; } 4263else 4264 O2SAVE="-mv \`basename "$'@'" .sho\`.o \`basename "$'@'" .sho\`.o.save;" 4265 SAVE2O="-mv \`basename "$'@'" .sho\`.o "$'@'"; mv \`basename "$'@'" .sho\`.o.save \`basename "$'@'" .sho\`.o" 4266 CC2O="" 4267 { echo "$as_me:$LINENO: result: no" >&5 4268echo "${ECHO_T}no" >&6; } 4269fi 4270 4271 4272{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5 4273echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } 4274if test "${ac_cv_type_signal+set}" = set; then 4275 echo $ECHO_N "(cached) $ECHO_C" >&6 4276else 4277 cat >conftest.$ac_ext <<_ACEOF 4278/* confdefs.h. */ 4279_ACEOF 4280cat confdefs.h >>conftest.$ac_ext 4281cat >>conftest.$ac_ext <<_ACEOF 4282/* end confdefs.h. */ 4283#include <sys/types.h> 4284#include <signal.h> 4285 4286int 4287main () 4288{ 4289return *(signal (0, 0)) (0) == 1; 4290 ; 4291 return 0; 4292} 4293_ACEOF 4294rm -f conftest.$ac_objext 4295if { (ac_try="$ac_compile" 4296case "(($ac_try" in 4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4298 *) ac_try_echo=$ac_try;; 4299esac 4300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4301 (eval "$ac_compile") 2>conftest.er1 4302 ac_status=$? 4303 grep -v '^ *+' conftest.er1 >conftest.err 4304 rm -f conftest.er1 4305 cat conftest.err >&5 4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4307 (exit $ac_status); } && { 4308 test -z "$ac_c_werror_flag" || 4309 test ! -s conftest.err 4310 } && test -s conftest.$ac_objext; then 4311 ac_cv_type_signal=int 4312else 4313 echo "$as_me: failed program was:" >&5 4314sed 's/^/| /' conftest.$ac_ext >&5 4315 4316 ac_cv_type_signal=void 4317fi 4318 4319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4320fi 4321{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 4322echo "${ECHO_T}$ac_cv_type_signal" >&6; } 4323 4324cat >>confdefs.h <<_ACEOF 4325#define RETSIGTYPE $ac_cv_type_signal 4326_ACEOF 4327 4328 4329 4330 4331 4332 4333for ac_func in vsscanf usleep poll vsnprintf 4334do 4335as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4336{ echo "$as_me:$LINENO: checking for $ac_func" >&5 4337echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 4338if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 4339 echo $ECHO_N "(cached) $ECHO_C" >&6 4340else 4341 cat >conftest.$ac_ext <<_ACEOF 4342/* confdefs.h. */ 4343_ACEOF 4344cat confdefs.h >>conftest.$ac_ext 4345cat >>conftest.$ac_ext <<_ACEOF 4346/* end confdefs.h. */ 4347/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 4348 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4349#define $ac_func innocuous_$ac_func 4350 4351/* System header to define __stub macros and hopefully few prototypes, 4352 which can conflict with char $ac_func (); below. 4353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4354 <limits.h> exists even on freestanding compilers. */ 4355 4356#ifdef __STDC__ 4357# include <limits.h> 4358#else 4359# include <assert.h> 4360#endif 4361 4362#undef $ac_func 4363 4364/* Override any GCC internal prototype to avoid an error. 4365 Use char because int might match the return type of a GCC 4366 builtin and then its argument prototype would still apply. */ 4367#ifdef __cplusplus 4368extern "C" 4369#endif 4370char $ac_func (); 4371/* The GNU C library defines this for functions which it implements 4372 to always fail with ENOSYS. Some functions are actually named 4373 something starting with __ and the normal name is an alias. */ 4374#if defined __stub_$ac_func || defined __stub___$ac_func 4375choke me 4376#endif 4377 4378int 4379main () 4380{ 4381return $ac_func (); 4382 ; 4383 return 0; 4384} 4385_ACEOF 4386rm -f conftest.$ac_objext conftest$ac_exeext 4387if { (ac_try="$ac_link" 4388case "(($ac_try" in 4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4390 *) ac_try_echo=$ac_try;; 4391esac 4392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4393 (eval "$ac_link") 2>conftest.er1 4394 ac_status=$? 4395 grep -v '^ *+' conftest.er1 >conftest.err 4396 rm -f conftest.er1 4397 cat conftest.err >&5 4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4399 (exit $ac_status); } && { 4400 test -z "$ac_c_werror_flag" || 4401 test ! -s conftest.err 4402 } && test -s conftest$ac_exeext && 4403 $as_test_x conftest$ac_exeext; then 4404 eval "$as_ac_var=yes" 4405else 4406 echo "$as_me: failed program was:" >&5 4407sed 's/^/| /' conftest.$ac_ext >&5 4408 4409 eval "$as_ac_var=no" 4410fi 4411 4412rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4413 conftest$ac_exeext conftest.$ac_ext 4414fi 4415ac_res=`eval echo '${'$as_ac_var'}'` 4416 { echo "$as_me:$LINENO: result: $ac_res" >&5 4417echo "${ECHO_T}$ac_res" >&6; } 4418if test `eval echo '${'$as_ac_var'}'` = yes; then 4419 cat >>confdefs.h <<_ACEOF 4420#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4421_ACEOF 4422 4423fi 4424done 4425 4426 4427{ echo "$as_me:$LINENO: checking for X" >&5 4428echo $ECHO_N "checking for X... $ECHO_C" >&6; } 4429 4430 4431# Check whether --with-x was given. 4432if test "${with_x+set}" = set; then 4433 withval=$with_x; 4434fi 4435 4436# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 4437if test "x$with_x" = xno; then 4438 # The user explicitly disabled X. 4439 have_x=disabled 4440else 4441 case $x_includes,$x_libraries in #( 4442 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 4443echo "$as_me: error: Cannot use X directory names containing '" >&2;} 4444 { (exit 1); exit 1; }; };; #( 4445 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 4446 echo $ECHO_N "(cached) $ECHO_C" >&6 4447else 4448 # One or both of the vars are not set, and there is no cached value. 4449ac_x_includes=no ac_x_libraries=no 4450rm -f -r conftest.dir 4451if mkdir conftest.dir; then 4452 cd conftest.dir 4453 cat >Imakefile <<'_ACEOF' 4454incroot: 4455 @echo incroot='${INCROOT}' 4456usrlibdir: 4457 @echo usrlibdir='${USRLIBDIR}' 4458libdir: 4459 @echo libdir='${LIBDIR}' 4460_ACEOF 4461 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 4462 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4463 for ac_var in incroot usrlibdir libdir; do 4464 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 4465 done 4466 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 4467 for ac_extension in a so sl; do 4468 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 4469 test -f "$ac_im_libdir/libX11.$ac_extension"; then 4470 ac_im_usrlibdir=$ac_im_libdir; break 4471 fi 4472 done 4473 # Screen out bogus values from the imake configuration. They are 4474 # bogus both because they are the default anyway, and because 4475 # using them would break gcc on systems where it needs fixed includes. 4476 case $ac_im_incroot in 4477 /usr/include) ac_x_includes= ;; 4478 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 4479 esac 4480 case $ac_im_usrlibdir in 4481 /usr/lib | /lib) ;; 4482 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 4483 esac 4484 fi 4485 cd .. 4486 rm -f -r conftest.dir 4487fi 4488 4489# Standard set of common directories for X headers. 4490# Check X11 before X11Rn because it is often a symlink to the current release. 4491ac_x_header_dirs=' 4492/usr/X11/include 4493/usr/X11R6/include 4494/usr/X11R5/include 4495/usr/X11R4/include 4496 4497/usr/include/X11 4498/usr/include/X11R6 4499/usr/include/X11R5 4500/usr/include/X11R4 4501 4502/usr/local/X11/include 4503/usr/local/X11R6/include 4504/usr/local/X11R5/include 4505/usr/local/X11R4/include 4506 4507/usr/local/include/X11 4508/usr/local/include/X11R6 4509/usr/local/include/X11R5 4510/usr/local/include/X11R4 4511 4512/usr/X386/include 4513/usr/x386/include 4514/usr/XFree86/include/X11 4515 4516/usr/include 4517/usr/local/include 4518/usr/unsupported/include 4519/usr/athena/include 4520/usr/local/x11r5/include 4521/usr/lpp/Xamples/include 4522 4523/usr/openwin/include 4524/usr/openwin/share/include' 4525 4526if test "$ac_x_includes" = no; then 4527 # Guess where to find include files, by looking for Xlib.h. 4528 # First, try using that file with no special directory specified. 4529 cat >conftest.$ac_ext <<_ACEOF 4530/* confdefs.h. */ 4531_ACEOF 4532cat confdefs.h >>conftest.$ac_ext 4533cat >>conftest.$ac_ext <<_ACEOF 4534/* end confdefs.h. */ 4535#include <X11/Xlib.h> 4536_ACEOF 4537if { (ac_try="$ac_cpp conftest.$ac_ext" 4538case "(($ac_try" in 4539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4540 *) ac_try_echo=$ac_try;; 4541esac 4542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4544 ac_status=$? 4545 grep -v '^ *+' conftest.er1 >conftest.err 4546 rm -f conftest.er1 4547 cat conftest.err >&5 4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4549 (exit $ac_status); } >/dev/null && { 4550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4551 test ! -s conftest.err 4552 }; then 4553 # We can compile using X headers with no special include directory. 4554ac_x_includes= 4555else 4556 echo "$as_me: failed program was:" >&5 4557sed 's/^/| /' conftest.$ac_ext >&5 4558 4559 for ac_dir in $ac_x_header_dirs; do 4560 if test -r "$ac_dir/X11/Xlib.h"; then 4561 ac_x_includes=$ac_dir 4562 break 4563 fi 4564done 4565fi 4566 4567rm -f conftest.err conftest.$ac_ext 4568fi # $ac_x_includes = no 4569 4570if test "$ac_x_libraries" = no; then 4571 # Check for the libraries. 4572 # See if we find them without any special options. 4573 # Don't add to $LIBS permanently. 4574 ac_save_LIBS=$LIBS 4575 LIBS="-lX11 $LIBS" 4576 cat >conftest.$ac_ext <<_ACEOF 4577/* confdefs.h. */ 4578_ACEOF 4579cat confdefs.h >>conftest.$ac_ext 4580cat >>conftest.$ac_ext <<_ACEOF 4581/* end confdefs.h. */ 4582#include <X11/Xlib.h> 4583int 4584main () 4585{ 4586XrmInitialize () 4587 ; 4588 return 0; 4589} 4590_ACEOF 4591rm -f conftest.$ac_objext conftest$ac_exeext 4592if { (ac_try="$ac_link" 4593case "(($ac_try" in 4594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4595 *) ac_try_echo=$ac_try;; 4596esac 4597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4598 (eval "$ac_link") 2>conftest.er1 4599 ac_status=$? 4600 grep -v '^ *+' conftest.er1 >conftest.err 4601 rm -f conftest.er1 4602 cat conftest.err >&5 4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4604 (exit $ac_status); } && { 4605 test -z "$ac_c_werror_flag" || 4606 test ! -s conftest.err 4607 } && test -s conftest$ac_exeext && 4608 $as_test_x conftest$ac_exeext; then 4609 LIBS=$ac_save_LIBS 4610# We can link X programs with no special library path. 4611ac_x_libraries= 4612else 4613 echo "$as_me: failed program was:" >&5 4614sed 's/^/| /' conftest.$ac_ext >&5 4615 4616 LIBS=$ac_save_LIBS 4617for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 4618do 4619 # Don't even attempt the hair of trying to link an X program! 4620 for ac_extension in a so sl; do 4621 if test -r "$ac_dir/libX11.$ac_extension"; then 4622 ac_x_libraries=$ac_dir 4623 break 2 4624 fi 4625 done 4626done 4627fi 4628 4629rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4630 conftest$ac_exeext conftest.$ac_ext 4631fi # $ac_x_libraries = no 4632 4633case $ac_x_includes,$ac_x_libraries in #( 4634 no,* | *,no | *\'*) 4635 # Didn't find X, or a directory has "'" in its name. 4636 ac_cv_have_x="have_x=no";; #( 4637 *) 4638 # Record where we found X for the cache. 4639 ac_cv_have_x="have_x=yes\ 4640 ac_x_includes='$ac_x_includes'\ 4641 ac_x_libraries='$ac_x_libraries'" 4642esac 4643fi 4644;; #( 4645 *) have_x=yes;; 4646 esac 4647 eval "$ac_cv_have_x" 4648fi # $with_x != no 4649 4650if test "$have_x" != yes; then 4651 { echo "$as_me:$LINENO: result: $have_x" >&5 4652echo "${ECHO_T}$have_x" >&6; } 4653 no_x=yes 4654else 4655 # If each of the values was on the command line, it overrides each guess. 4656 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 4657 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 4658 # Update the cache value to reflect the command line values. 4659 ac_cv_have_x="have_x=yes\ 4660 ac_x_includes='$x_includes'\ 4661 ac_x_libraries='$x_libraries'" 4662 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 4663echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } 4664fi 4665 4666 4667mh_x11_dir="" 4668mh_x11_xaw_dir="" 4669 4670mh_inc_dirs="$ac_x_header_dirs" 4671 4672 4673if test "x$x_includes" != xNONE ; then 4674 mh_inc_dirs="$x_includes $mh_inc_dirs" 4675fi 4676 4677 4678for ac_dir in $mh_inc_dirs ; do 4679 if test -r $ac_dir/Intrinsic.h; then 4680 mh_x11_dir=$ac_dir 4681 break 4682 fi 4683 if test -r $ac_dir/X11/Intrinsic.h; then 4684 mh_x11_dir="$ac_dir/X11" 4685 break 4686 fi 4687done 4688 4689 4690if test "$with_xaw3d" = yes; then 4691 mh_xaw_dir="Xaw3d" 4692else 4693 if test "$with_nextaw" = yes; then 4694 mh_xaw_dir="neXtaw" 4695 else 4696 mh_xaw_dir="Xaw" 4697 fi 4698fi 4699for ac_dir in $mh_inc_dirs ; do 4700 if test -r $ac_dir/$mh_xaw_dir/Box.h; then 4701 mh_x11_xaw_dir=$ac_dir 4702 break 4703 fi 4704 if test -r $ac_dir/X11/$mh_xaw_dir/Box.h; then 4705 mh_x11_xaw_dir="$ac_dir/X11" 4706 break 4707 fi 4708done 4709 4710if test "x$mh_x11_dir" != "x" ; then 4711 mh_x11_dir_no_x11=`echo $mh_x11_dir | sed 's/\/X11$//'` 4712 4713 if test "$mh_x11_dir_no_x11" != "$mh_x11_dir" ; then 4714 MH_XINC_DIR="-I$mh_x11_dir -I$mh_x11_dir_no_x11" 4715 else 4716 MH_XINC_DIR="-I$mh_x11_dir" 4717 fi 4718else 4719 { { echo "$as_me:$LINENO: error: Cannot find required header file Intrinsic.h; PDCurses cannot be configured" >&5 4720echo "$as_me: error: Cannot find required header file Intrinsic.h; PDCurses cannot be configured" >&2;} 4721 { (exit 1); exit 1; }; } 4722fi 4723 4724if test "x$mh_x11_xaw_dir" != "x"; then 4725 if test "$mh_x11_xaw_dir" != "$mh_x11_dir" ; then 4726 MH_XINC_DIR="-I$mh_x11_xaw_dir $MH_XINC_DIR" 4727 fi 4728else 4729 { { echo "$as_me:$LINENO: error: Cannot find required Xaw header file Box.h; PDCurses cannot be configured" >&5 4730echo "$as_me: error: Cannot find required Xaw header file Box.h; PDCurses cannot be configured" >&2;} 4731 { (exit 1); exit 1; }; } 4732fi 4733 4734 4735 4736 4737 4738 4739mh_solaris_flag=no 4740mh_hpux9_flag=no 4741 4742case "$target" in 4743 *solaris*) 4744 mh_solaris_flag=yes 4745 ;; 4746 *pc-sco*) 4747 extra_x_libs="Xext" 4748 ;; 4749 sparc*sunos*) 4750 extra_x_libs="Xext" 4751 if test "$ac_cv_prog_CC" = "gcc" ; then 4752 extra_ld_flags="-Wl,-Bstatic" 4753 extra_ld_flags2="-Wl,-Bdynamic" 4754 else 4755 extra_ld_flags="-Bstatic" 4756 extra_ld_flags2="-Bdynamic" 4757 fi 4758 ;; 4759 *hpux9*) 4760 mh_hpux9_flag=yes 4761 ;; 4762esac 4763 4764if test "$with_xaw3d" = yes; then 4765 MH_X11_LIBS="Xaw3d Xmu Xt X11" 4766else 4767 if test "$with_nextaw" = yes; then 4768 MH_X11_LIBS="neXtaw Xmu Xt X11" 4769 else 4770 MH_X11_LIBS="Xaw Xmu Xt X11" 4771 fi 4772fi 4773MH_X11R6_LIBS="SM ICE Xext" 4774mh_x11r6=no 4775 4776mh_lib_dirs="$x_libraries `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`" 4777 4778for ac_dir in $mh_lib_dirs ; do 4779 for mh_xsm in libSM.a libSM.so libSM.sl libSM.dylib; do 4780 if test -r $ac_dir/$mh_xsm; then 4781 mh_x11r6=yes 4782 break 2 4783 fi 4784 done 4785done 4786 4787if test "$mh_x11r6" = yes ; then 4788 mh_libs="$MH_X11_LIBS $MH_X11R6_LIBS" 4789else 4790 mh_libs="$MH_X11_LIBS $extra_x_libs" 4791fi 4792 4793 4794 4795mh_prev_dir="" 4796mh_where_found="" 4797mh_where_found_dirs="" 4798mh_solaris_path="" 4799for mh_lib in $mh_libs; do 4800 mh_lib_found=no 4801 for ac_dir in $mh_lib_dirs ; do 4802 for mh_ext in a so sl dll.a dylib; do 4803 if test -r $ac_dir/lib$mh_lib.$mh_ext; then 4804 if test "x$mh_prev_dir" != "x$ac_dir" ; then 4805 if test "x$mh_prev_dir" = "x" ; then 4806 mh_where_found="$mh_where_found found in $ac_dir" 4807 else 4808 mh_where_found="$mh_where_found and in $ac_dir" 4809 fi 4810 mh_prev_dir=$ac_dir 4811 mh_where_found_dirs="$mh_where_found_dirs $ac_dir" 4812 MH_XLIBS="$MH_XLIBS -L$ac_dir" 4813 mh_solaris_path="${mh_solaris_path}:$ac_dir" 4814 fi 4815 MH_XLIBS="$MH_XLIBS -l$mh_lib" 4816 mh_lib_found=yes 4817 break 2 4818 fi 4819 done 4820 done 4821 if test "$mh_lib_found" = no; then 4822 { { echo "$as_me:$LINENO: error: Cannot find required X library; lib$mh_lib. PDCurses cannot be configured" >&5 4823echo "$as_me: error: Cannot find required X library; lib$mh_lib. PDCurses cannot be configured" >&2;} 4824 { (exit 1); exit 1; }; } 4825 fi 4826done 4827 4828mh_solaris_path=`echo $mh_solaris_path | sed 's/^://'` 4829if test "$mh_solaris_flag" = yes ; then 4830 MH_XLIBS="-R$mh_solaris_path $extra_ld_flags $MH_XLIBS $extra_libs $extra_ld_flags2" 4831else 4832 MH_XLIBS="$extra_ld_flags $MH_XLIBS $extra_libs $extra_ld_flags2" 4833fi 4834if test "$mh_hpux9_flag" = yes ; then 4835 grep -q XtSetLanguageProc $mh_x11_dir/Intrinsic.h 4836 if test $? -eq 0 ; then 4837 mh_found_xtshellstrings=no 4838 for mh_acdir in $mh_where_found_dirs ; do 4839 for mh_xaw in `ls $mh_acdir/libXaw.*` ; do 4840 nm $mh_xaw | grep XtShellStrings | grep -qv extern 4841 if test $? -eq 0 ; then 4842 mh_found_xtshellstrings=yes 4843 fi 4844 done 4845 done 4846 if test "$mh_found_xtshellstrings" = no ; then 4847 { echo "$as_me:$LINENO: WARNING: The X11 development environment has not been installed correctly." >&5 4848echo "$as_me: WARNING: The X11 development environment has not been installed correctly." >&2;} 4849 { echo "$as_me:$LINENO: WARNING: The header file; Intrinsic.h" >&5 4850echo "$as_me: WARNING: The header file; Intrinsic.h" >&2;} 4851 { echo "$as_me:$LINENO: WARNING: Set library; libXaw is for X11R4. This is a common problem with" >&5 4852echo "$as_me: WARNING: Set library; libXaw is for X11R4. This is a common problem with" >&2;} 4853 { echo "$as_me:$LINENO: WARNING: HP-UX 9.x." >&5 4854echo "$as_me: WARNING: HP-UX 9.x." >&2;} 4855 { { echo "$as_me:$LINENO: error: X11 installation incomplete; cannot continue" >&5 4856echo "$as_me: error: X11 installation incomplete; cannot continue" >&2;} 4857 { (exit 1); exit 1; }; } 4858 fi 4859 fi 4860fi 4861 4862 4863 4864 4865 4866save_CPPFLAGS="$CPPFLAGS" 4867CPPFLAGS="$CPPFLAGS $MH_XINC_DIR" 4868for mh_header in DECkeysym.h Sunkeysym.h xpm.h; do 4869 4870for ac_header in $mh_header 4871do 4872as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4873if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4874 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4875echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4876if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4877 echo $ECHO_N "(cached) $ECHO_C" >&6 4878fi 4879ac_res=`eval echo '${'$as_ac_Header'}'` 4880 { echo "$as_me:$LINENO: result: $ac_res" >&5 4881echo "${ECHO_T}$ac_res" >&6; } 4882else 4883 # Is the header compilable? 4884{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 4885echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4886cat >conftest.$ac_ext <<_ACEOF 4887/* confdefs.h. */ 4888_ACEOF 4889cat confdefs.h >>conftest.$ac_ext 4890cat >>conftest.$ac_ext <<_ACEOF 4891/* end confdefs.h. */ 4892$ac_includes_default 4893#include <$ac_header> 4894_ACEOF 4895rm -f conftest.$ac_objext 4896if { (ac_try="$ac_compile" 4897case "(($ac_try" in 4898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4899 *) ac_try_echo=$ac_try;; 4900esac 4901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4902 (eval "$ac_compile") 2>conftest.er1 4903 ac_status=$? 4904 grep -v '^ *+' conftest.er1 >conftest.err 4905 rm -f conftest.er1 4906 cat conftest.err >&5 4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4908 (exit $ac_status); } && { 4909 test -z "$ac_c_werror_flag" || 4910 test ! -s conftest.err 4911 } && test -s conftest.$ac_objext; then 4912 ac_header_compiler=yes 4913else 4914 echo "$as_me: failed program was:" >&5 4915sed 's/^/| /' conftest.$ac_ext >&5 4916 4917 ac_header_compiler=no 4918fi 4919 4920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4921{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4922echo "${ECHO_T}$ac_header_compiler" >&6; } 4923 4924# Is the header present? 4925{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 4926echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 4927cat >conftest.$ac_ext <<_ACEOF 4928/* confdefs.h. */ 4929_ACEOF 4930cat confdefs.h >>conftest.$ac_ext 4931cat >>conftest.$ac_ext <<_ACEOF 4932/* end confdefs.h. */ 4933#include <$ac_header> 4934_ACEOF 4935if { (ac_try="$ac_cpp conftest.$ac_ext" 4936case "(($ac_try" in 4937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4938 *) ac_try_echo=$ac_try;; 4939esac 4940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4942 ac_status=$? 4943 grep -v '^ *+' conftest.er1 >conftest.err 4944 rm -f conftest.er1 4945 cat conftest.err >&5 4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4947 (exit $ac_status); } >/dev/null && { 4948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4949 test ! -s conftest.err 4950 }; then 4951 ac_header_preproc=yes 4952else 4953 echo "$as_me: failed program was:" >&5 4954sed 's/^/| /' conftest.$ac_ext >&5 4955 4956 ac_header_preproc=no 4957fi 4958 4959rm -f conftest.err conftest.$ac_ext 4960{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4961echo "${ECHO_T}$ac_header_preproc" >&6; } 4962 4963# So? What about this header? 4964case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4965 yes:no: ) 4966 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4967echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4969echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4970 ac_header_preproc=yes 4971 ;; 4972 no:yes:* ) 4973 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4974echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4975 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4976echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4977 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4978echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4979 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4980echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4982echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4983 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4984echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4985 ( cat <<\_ASBOX 4986## ------------------------------------ ## 4987## Report this to wmcbrine@users.sf.net ## 4988## ------------------------------------ ## 4989_ASBOX 4990 ) | sed "s/^/$as_me: WARNING: /" >&2 4991 ;; 4992esac 4993{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4995if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4996 echo $ECHO_N "(cached) $ECHO_C" >&6 4997else 4998 eval "$as_ac_Header=\$ac_header_preproc" 4999fi 5000ac_res=`eval echo '${'$as_ac_Header'}'` 5001 { echo "$as_me:$LINENO: result: $ac_res" >&5 5002echo "${ECHO_T}$ac_res" >&6; } 5003 5004fi 5005if test `eval echo '${'$as_ac_Header'}'` = yes; then 5006 cat >>confdefs.h <<_ACEOF 5007#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5008_ACEOF 5009 5010fi 5011 5012done 5013 5014done 5015CPPFLAGS="$save_CPPFLAGS" 5016 5017 5018save_CPPFLAGS="$CPPFLAGS" 5019CPPFLAGS="$CPPFLAGS $MH_XINC_DIR" 5020for mh_keydef in XK_KP_Delete XK_KP_Insert XK_KP_End XK_KP_Down XK_KP_Next \ 5021 XK_KP_Left XK_KP_Right XK_KP_Home XK_KP_Up XK_KP_Prior XK_KP_Begin; do 5022 { echo "$as_me:$LINENO: checking for $mh_keydef in keysym.h" >&5 5023echo $ECHO_N "checking for $mh_keydef in keysym.h... $ECHO_C" >&6; } 5024 mh_upper_name="HAVE_`echo $mh_keydef | tr 'a-z' 'A-Z'`" 5025 cat >conftest.$ac_ext <<_ACEOF 5026/* confdefs.h. */ 5027_ACEOF 5028cat confdefs.h >>conftest.$ac_ext 5029cat >>conftest.$ac_ext <<_ACEOF 5030/* end confdefs.h. */ 5031#include <keysym.h> 5032int 5033main () 5034{ 5035int i = $mh_keydef; 5036 ; 5037 return 0; 5038} 5039_ACEOF 5040rm -f conftest.$ac_objext 5041if { (ac_try="$ac_compile" 5042case "(($ac_try" in 5043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5044 *) ac_try_echo=$ac_try;; 5045esac 5046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5047 (eval "$ac_compile") 2>conftest.er1 5048 ac_status=$? 5049 grep -v '^ *+' conftest.er1 >conftest.err 5050 rm -f conftest.er1 5051 cat conftest.err >&5 5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5053 (exit $ac_status); } && { 5054 test -z "$ac_c_werror_flag" || 5055 test ! -s conftest.err 5056 } && test -s conftest.$ac_objext; then 5057 mh_have_key=yes; cat >>confdefs.h <<_ACEOF 5058#define $mh_upper_name 1 5059_ACEOF 5060 5061else 5062 echo "$as_me: failed program was:" >&5 5063sed 's/^/| /' conftest.$ac_ext >&5 5064 5065 mh_have_key=no 5066fi 5067 5068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5069 { echo "$as_me:$LINENO: result: $mh_have_key" >&5 5070echo "${ECHO_T}$mh_have_key" >&6; } 5071done 5072CPPFLAGS="$save_CPPFLAGS" 5073 5074 5075save_CPPFLAGS="$CPPFLAGS" 5076CPPFLAGS="$CPPFLAGS $SYS_DEFS $MH_XINC_DIR" 5077for td in XPointer ; do 5078{ echo "$as_me:$LINENO: checking if $td is typedefed:" >&5 5079echo $ECHO_N "checking if $td is typedefed:... $ECHO_C" >&6; } 5080cat >conftest.$ac_ext <<_ACEOF 5081/* confdefs.h. */ 5082_ACEOF 5083cat confdefs.h >>conftest.$ac_ext 5084cat >>conftest.$ac_ext <<_ACEOF 5085/* end confdefs.h. */ 5086#include "X11/Xlib.h" 5087int 5088main () 5089{ 5090$td fred 5091 ; 5092 return 0; 5093} 5094_ACEOF 5095rm -f conftest.$ac_objext 5096if { (ac_try="$ac_compile" 5097case "(($ac_try" in 5098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5099 *) ac_try_echo=$ac_try;; 5100esac 5101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5102 (eval "$ac_compile") 2>conftest.er1 5103 ac_status=$? 5104 grep -v '^ *+' conftest.er1 >conftest.err 5105 rm -f conftest.er1 5106 cat conftest.err >&5 5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5108 (exit $ac_status); } && { 5109 test -z "$ac_c_werror_flag" || 5110 test ! -s conftest.err 5111 } && test -s conftest.$ac_objext; then 5112 mh_td=yes 5113else 5114 echo "$as_me: failed program was:" >&5 5115sed 's/^/| /' conftest.$ac_ext >&5 5116 5117 mh_td=no 5118 5119fi 5120 5121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5122if test "$mh_td" = yes ; then 5123 TD_upper=`echo $td | tr a-z A-Z` 5124 cat >>confdefs.h <<_ACEOF 5125#define ${TD_upper}_TYPEDEFED 1 5126_ACEOF 5127 5128fi 5129{ echo "$as_me:$LINENO: result: $mh_td" >&5 5130echo "${ECHO_T}$mh_td" >&6; } 5131done 5132CPPFLAGS="$save_CPPFLAGS" 5133 5134if test $ac_cv_header_xpm_h = yes; then 5135 MH_XLIBS="$MH_XLIBS -lXpm" 5136fi 5137# Check whether --enable-debug was given. 5138if test "${enable_debug+set}" = set; then 5139 enableval=$enable_debug; with_debug=$enableval 5140else 5141 with_debug=no 5142fi 5143 5144cflags_g="`echo $CFLAGS | grep -c '\-g'`" 5145cflags_O="`echo $CFLAGS | grep -c '\-O'`" 5146 5147if test "$with_debug" = yes; then 5148 if test "$cflags_g" = "0"; then 5149 CFLAGS="${CFLAGS} -g" 5150 fi 5151 if test "$cflags_O" != "0"; then 5152 CFLAGS="`echo ${CFLAGS} | sed -e s/-O.//`" 5153 fi 5154 CFLAGS="${CFLAGS} -DPDCDEBUG" 5155else 5156 if test "$cflags_O" = "0"; then 5157 CFLAGS="${CFLAGS} -O" 5158 fi 5159 if test "$cflags_g" != "0"; then 5160 CFLAGS="`echo ${CFLAGS} | sed -e s/-g//`" 5161 fi 5162fi 5163if test "$ac_cv_prog_CC" = "gcc"; then 5164 if test "$with_debug" = yes; then 5165 CFLAGS="${CFLAGS} -Wall" 5166 else 5167 CFLAGS="-O2 -Wall -fomit-frame-pointer" 5168 fi 5169fi 5170if test "$on_qnx" = yes; then 5171 if test "$with_debug" = yes; then 5172 CFLAGS="-g" 5173 else 5174 CFLAGS="-Otax" 5175 fi 5176fi 5177 5178# Check whether --enable-widec was given. 5179if test "${enable_widec+set}" = set; then 5180 enableval=$enable_widec; with_widec=$enableval 5181else 5182 with_widec=no 5183fi 5184 5185if test "$with_widec" = yes; then 5186 SYS_DEFS="$SYS_DEFS -DPDC_WIDE" 5187fi 5188 5189# Check whether --enable-xim was given. 5190if test "${enable_xim+set}" = set; then 5191 enableval=$enable_xim; with_xim=$enableval 5192else 5193 with_xim=no 5194fi 5195 5196if test "$with_xim" = yes; then 5197 SYS_DEFS="$SYS_DEFS -DPDC_XIM" 5198fi 5199 5200# Check whether --enable-force-utf8 was given. 5201if test "${enable_force_utf8+set}" = set; then 5202 enableval=$enable_force_utf8; force_utf8=$enableval 5203else 5204 force_utf8=no 5205fi 5206 5207if test "$force_utf8" = yes; then 5208 SYS_DEFS="$SYS_DEFS -DPDC_FORCE_UTF8" 5209fi 5210 5211# Check whether --enable-purify was given. 5212if test "${enable_purify+set}" = set; then 5213 enableval=$enable_purify; with_purify=$enableval 5214else 5215 with_purify=no 5216fi 5217 5218if test "$with_purify" = yes; then 5219 PURIFY="purify" 5220else 5221 PURIFY="" 5222fi 5223 5224 5225 5226# Check whether --with-xaw3d was given. 5227if test "${with_xaw3d+set}" = set; then 5228 withval=$with_xaw3d; with_xaw3d=$withval 5229else 5230 with_xaw3d=no 5231fi 5232 5233if test "$with_xaw3d" = yes; then 5234 5235cat >>confdefs.h <<\_ACEOF 5236#define USE_XAW3D 1 5237_ACEOF 5238 5239fi 5240 5241 5242# Check whether --with-nextaw was given. 5243if test "${with_nextaw+set}" = set; then 5244 withval=$with_nextaw; with_nextaw=$withval 5245else 5246 with_nextaw=no 5247fi 5248 5249if test "$with_nextaw" = yes; then 5250 5251cat >>confdefs.h <<\_ACEOF 5252#define USE_NEXTAW 1 5253_ACEOF 5254 5255fi 5256 5257 5258{ echo "$as_me:$LINENO: checking shared library extension" >&5 5259echo $ECHO_N "checking shared library extension... $ECHO_C" >&6; } 5260SHLPST=".so" 5261 5262case "$target" in 5263 *hp-hpux*) 5264 SHLPST=".sl" 5265 ;; 5266 *ibm-aix*) 5267 SHLPST=".a" 5268 ;; 5269 *qnx*) 5270 SHLPST="" 5271 ;; 5272 *cygwin*) 5273 SHLPST=".dll" 5274 ;; 5275 *darwin*) 5276 SHLPST=".dylib" 5277 ;; 5278esac 5279 5280{ echo "$as_me:$LINENO: result: $SHLPST" >&5 5281echo "${ECHO_T}$SHLPST" >&6; } 5282 5283 5284 5285AIX_DYN="no" 5286BEOS_DYN="no" 5287SHLFILE="XCurses" 5288SHLFILES="XCurses" 5289RXPACKEXPORTS="" 5290SHLPRE="lib" 5291LD_RXLIB1="" 5292 5293 5294case "$target" in 5295 *hp-hpux*) 5296 SYS_DEFS="-D_HPUX_SOURCE" 5297 LD_RXLIB1="ld -b -q -n" 5298 ;; 5299 *ibm-aix*) 5300 SYS_DEFS="-D_ALL_SOURCE -DAIX" 5301 AIX_DYN="yes" 5302 DYN_COMP="-DDYNAMIC" 5303 LD_RXLIB1="ld -bnoentry -bM:SRE" 5304 RXPACKEXPORTS="-bE:$SHLFILE.exp" 5305 RXPACKEXP="$SHLFILE.exp" 5306 ;; 5307 *dec-osf*) 5308 if test "$ac_cv_prog_CC" = "gcc"; then 5309 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE" 5310 else 5311 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE -Olimit 800" 5312 fi 5313 LD_RXLIB1="ld -shared" 5314 ;; 5315 *sequent-dynix*|*esix*|*dgux*) 5316 LD_RXLIB1="ld -G" 5317 ;; 5318 *solaris*) 5319 if test "$ac_cv_prog_CC" = "gcc"; then 5320 LD_RXLIB1="gcc -shared" 5321 else 5322 LD_RXLIB1="ld -G" 5323 fi 5324 ;; 5325 sparc*sunos*) 5326 SYS_DEFS="-DSUNOS -DSUNOS_STRTOD_BUG" 5327 LD_RXLIB1="ld" 5328 ;; 5329 *linux*|*atheos*|*nto-qnx*) 5330 LD_RXLIB1="${CC} -shared" 5331 ;; 5332 *freebsd*) 5333 LD_RXLIB1="ld -Bdynamic -Bshareable" 5334 ;; 5335 *pc-sco*) 5336 LD_RXLIB1="ld -dy -G" 5337 ;; 5338 *beos*) 5339 LD_RXLIB1="${CC} -Wl,-shared -nostart -Xlinker -soname=\$(@)" 5340 BEOS_DYN="yes" 5341 ;; 5342 *qnx*) 5343 SHLPRE="" 5344 DYN_COMP="-Q" # force no check for dynamic loading 5345 SHLFILE="" 5346 ;; 5347 *cygwin) 5348 SHLPRE="" 5349 DYN_COMP="-DDYNAMIC" 5350 LD_RXLIB1="dllwrap --def \$(srcdir)/../win32/pdcurses.def --target i386-cygwin32 --dllname \$(@)" 5351# cygwininstall target MUST install the shared library itself because 5352# it puts it into $(bindir) not $(libdir) as all other platforms 5353 ;; 5354 *darwin*) 5355 DYN_COMP="-fno-common" 5356 LD_RXLIB1="${CC} -flat_namespace -undefined suppress -dynamiclib -install_name=\$(@)" 5357 ;; 5358 *) 5359 ;; 5360esac 5361 5362 5363if test "$DYN_COMP" = ""; then 5364{ echo "$as_me:$LINENO: checking compiler flags for a dynamic object" >&5 5365echo $ECHO_N "checking compiler flags for a dynamic object... $ECHO_C" >&6; } 5366 5367cat > conftest.$ac_ext <<EOF 5368#line 5368 "configure" 5369int a=0 5370EOF 5371 5372 DYN_COMP="" 5373 mh_cv_stop=no 5374 save_cflags="$CFLAGS" 5375 mh_cv_flags="-fPIC -KPIC +Z" 5376 for a in $mh_cv_flags; do 5377 CFLAGS="-c $a" 5378 5379 mh_compile='${CC-cc} -c $CFLAGS conftest.$ac_ext > conftest.tmp 2>&1' 5380 if { (eval echo "$as_me:$LINENO: \"$mh_compile\"") >&5 5381 (eval $mh_compile) 2>&5 5382 ac_status=$? 5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5384 (exit $ac_status); }; then 5385 DYN_COMP="" 5386 else 5387 slash="\\" 5388 mh_dyncomp="`egrep -c $slash$a conftest.tmp`" 5389 if test "$mh_dyncomp" = "0"; then 5390 DYN_COMP="$a -DDYNAMIC" 5391 { echo "$as_me:$LINENO: result: $a" >&5 5392echo "${ECHO_T}$a" >&6; } 5393 break 5394 else 5395 DYN_COMP="" 5396 fi 5397 fi 5398 done 5399 if test "$DYN_COMP" = ""; then 5400 { echo "$as_me:$LINENO: result: none of $mh_cv_flags supported" >&5 5401echo "${ECHO_T}none of $mh_cv_flags supported" >&6; } 5402 fi 5403 if test "$LD_RXLIB1" = ""; then 5404 5405mh_compile='${CC-cc} -c $DYN_COMP conftest.$ac_ext 1>&5' 5406cat > conftest.$ac_ext <<EOF 5407#line 5407 "configure" 5408int foo() 5409{ 5410return(0); 5411} 5412EOF 5413if { (eval echo "$as_me:$LINENO: \"$mh_compile\"") >&5 5414 (eval $mh_compile) 2>&5 5415 ac_status=$? 5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5417 (exit $ac_status); } && test -s conftest.o; then 5418 mh_dyn_link='ld -shared -o conftest.rxlib conftest.o -lc 1>&5' 5419# mh_dyn_link='${CC} -Wl,-shared -o conftest.rxlib conftest.o -lc 1>&AC_FD_CC' 5420 if { (eval echo "$as_me:$LINENO: \"$mh_dyn_link\"") >&5 5421 (eval $mh_dyn_link) 2>&5 5422 ac_status=$? 5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5424 (exit $ac_status); } && test -s conftest.rxlib; then 5425 LD_RXLIB1="ld -shared" 5426# LD_RXLIB1="${CC} -Wl,-shared" 5427 SHLPRE="lib" 5428 SHLPST=".so" 5429 else 5430 mh_dyn_link='ld -G -o conftest.rxlib conftest.o 1>&5' 5431# mh_dyn_link='${CC} -Wl,-G -o conftest.rxlib conftest.o 1>&AC_FD_CC' 5432 if { (eval echo "$as_me:$LINENO: \"$mh_dyn_link\"") >&5 5433 (eval $mh_dyn_link) 2>&5 5434 ac_status=$? 5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5436 (exit $ac_status); } && test -s conftest.rxlib; then 5437 LD_RXLIB1="ld -G" 5438# LD_RXLIB1="${CC} -Wl,-G" 5439 SHLPRE="lib" 5440 SHLPST=".so" 5441 else 5442 LD_RXLIB1="" 5443 SHLPRE="" 5444 SHLPST="" 5445 fi 5446 fi 5447fi 5448rm -f conftest* 5449 5450 fi 5451 CFLAGS=$save_cflags 5452 rm -f conftest.* 5453fi 5454 5455 5456SHL_TARGETS="" 5457 5458if test "$AIX_DYN" = "yes"; then 5459 aix_exports="config.exports.aix" 5460 echo "" > $aix_exports 5461fi 5462 5463if test "$ac_cv_header_dl_h" = "yes" -o "$ac_cv_header_dlfcn_h" = "yes" -o "$AIX_DYN" = "yes" -o "$BEOS_DYN" = "yes" -o "$DLFCNINCDIR" != "" -o "$DLFCNLIBDIR" != ""; then 5464 EXPS="1,2,3,4,5,6,7,8,9" 5465 for a in $SHLFILES 5466 do 5467 SHL_TARGETS="${SHL_TARGETS} ${SHLPRE}${a}${SHLPST}" 5468 this=`echo $EXPS | cut -d, -f1` 5469 EXPS=`echo $EXPS | cut -d, -f2-` 5470 if test "$AIX_DYN" = "yes"; then 5471 echo "RXPACKEXP$this=$a.exp" >> $aix_exports 5472 echo "RXPACKEXPORTS$this=-bE:$a.exp" >> $aix_exports 5473 fi 5474 done 5475fi 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489ac_config_files="$ac_config_files Makefile x11/$mymakefile x11/xcurses-config" 5490 5491cat >confcache <<\_ACEOF 5492# This file is a shell script that caches the results of configure 5493# tests run on this system so they can be shared between configure 5494# scripts and configure runs, see configure's option --config-cache. 5495# It is not useful on other systems. If it contains results you don't 5496# want to keep, you may remove or edit it. 5497# 5498# config.status only pays attention to the cache file if you give it 5499# the --recheck option to rerun configure. 5500# 5501# `ac_cv_env_foo' variables (set or unset) will be overridden when 5502# loading this file, other *unset* `ac_cv_foo' will be assigned the 5503# following values. 5504 5505_ACEOF 5506 5507# The following way of writing the cache mishandles newlines in values, 5508# but we know of no workaround that is simple, portable, and efficient. 5509# So, we kill variables containing newlines. 5510# Ultrix sh set writes to stderr and can't be redirected directly, 5511# and sets the high bit in the cache file unless we assign to the vars. 5512( 5513 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 5514 eval ac_val=\$$ac_var 5515 case $ac_val in #( 5516 *${as_nl}*) 5517 case $ac_var in #( 5518 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 5519echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 5520 esac 5521 case $ac_var in #( 5522 _ | IFS | as_nl) ;; #( 5523 *) $as_unset $ac_var ;; 5524 esac ;; 5525 esac 5526 done 5527 5528 (set) 2>&1 | 5529 case $as_nl`(ac_space=' '; set) 2>&1` in #( 5530 *${as_nl}ac_space=\ *) 5531 # `set' does not quote correctly, so add quotes (double-quote 5532 # substitution turns \\\\ into \\, and sed turns \\ into \). 5533 sed -n \ 5534 "s/'/'\\\\''/g; 5535 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5536 ;; #( 5537 *) 5538 # `set' quotes correctly as required by POSIX, so do not add quotes. 5539 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 5540 ;; 5541 esac | 5542 sort 5543) | 5544 sed ' 5545 /^ac_cv_env_/b end 5546 t clear 5547 :clear 5548 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5549 t end 5550 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5551 :end' >>confcache 5552if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 5553 if test -w "$cache_file"; then 5554 test "x$cache_file" != "x/dev/null" && 5555 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 5556echo "$as_me: updating cache $cache_file" >&6;} 5557 cat confcache >$cache_file 5558 else 5559 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 5560echo "$as_me: not updating unwritable cache $cache_file" >&6;} 5561 fi 5562fi 5563rm -f confcache 5564 5565test "x$prefix" = xNONE && prefix=$ac_default_prefix 5566# Let make expand exec_prefix. 5567test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5568 5569DEFS=-DHAVE_CONFIG_H 5570 5571ac_libobjs= 5572ac_ltlibobjs= 5573for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 5574 # 1. Remove the extension, and $U if already installed. 5575 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 5576 ac_i=`echo "$ac_i" | sed "$ac_script"` 5577 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 5578 # will be set to the directory where LIBOBJS objects are built. 5579 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 5580 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 5581done 5582LIBOBJS=$ac_libobjs 5583 5584LTLIBOBJS=$ac_ltlibobjs 5585 5586 5587 5588: ${CONFIG_STATUS=./config.status} 5589ac_clean_files_save=$ac_clean_files 5590ac_clean_files="$ac_clean_files $CONFIG_STATUS" 5591{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 5592echo "$as_me: creating $CONFIG_STATUS" >&6;} 5593cat >$CONFIG_STATUS <<_ACEOF 5594#! $SHELL 5595# Generated by $as_me. 5596# Run this file to recreate the current configuration. 5597# Compiler output produced by configure, useful for debugging 5598# configure, is in config.log if it exists. 5599 5600debug=false 5601ac_cs_recheck=false 5602ac_cs_silent=false 5603SHELL=\${CONFIG_SHELL-$SHELL} 5604_ACEOF 5605 5606cat >>$CONFIG_STATUS <<\_ACEOF 5607## --------------------- ## 5608## M4sh Initialization. ## 5609## --------------------- ## 5610 5611# Be more Bourne compatible 5612DUALCASE=1; export DUALCASE # for MKS sh 5613if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 5614 emulate sh 5615 NULLCMD=: 5616 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 5617 # is contrary to our usage. Disable this feature. 5618 alias -g '${1+"$@"}'='"$@"' 5619 setopt NO_GLOB_SUBST 5620else 5621 case `(set -o) 2>/dev/null` in 5622 *posix*) set -o posix ;; 5623esac 5624 5625fi 5626 5627 5628 5629 5630# PATH needs CR 5631# Avoid depending upon Character Ranges. 5632as_cr_letters='abcdefghijklmnopqrstuvwxyz' 5633as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 5634as_cr_Letters=$as_cr_letters$as_cr_LETTERS 5635as_cr_digits='0123456789' 5636as_cr_alnum=$as_cr_Letters$as_cr_digits 5637 5638# The user is always right. 5639if test "${PATH_SEPARATOR+set}" != set; then 5640 echo "#! /bin/sh" >conf$$.sh 5641 echo "exit 0" >>conf$$.sh 5642 chmod +x conf$$.sh 5643 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5644 PATH_SEPARATOR=';' 5645 else 5646 PATH_SEPARATOR=: 5647 fi 5648 rm -f conf$$.sh 5649fi 5650 5651# Support unset when possible. 5652if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5653 as_unset=unset 5654else 5655 as_unset=false 5656fi 5657 5658 5659# IFS 5660# We need space, tab and new line, in precisely that order. Quoting is 5661# there to prevent editors from complaining about space-tab. 5662# (If _AS_PATH_WALK were called with IFS unset, it would disable word 5663# splitting by setting IFS to empty value.) 5664as_nl=' 5665' 5666IFS=" "" $as_nl" 5667 5668# Find who we are. Look in the path if we contain no directory separator. 5669case $0 in 5670 *[\\/]* ) as_myself=$0 ;; 5671 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5672for as_dir in $PATH 5673do 5674 IFS=$as_save_IFS 5675 test -z "$as_dir" && as_dir=. 5676 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 5677done 5678IFS=$as_save_IFS 5679 5680 ;; 5681esac 5682# We did not find ourselves, most probably we were run as `sh COMMAND' 5683# in which case we are not to be found in the path. 5684if test "x$as_myself" = x; then 5685 as_myself=$0 5686fi 5687if test ! -f "$as_myself"; then 5688 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 5689 { (exit 1); exit 1; } 5690fi 5691 5692# Work around bugs in pre-3.0 UWIN ksh. 5693for as_var in ENV MAIL MAILPATH 5694do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 5695done 5696PS1='$ ' 5697PS2='> ' 5698PS4='+ ' 5699 5700# NLS nuisances. 5701for as_var in \ 5702 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 5703 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 5704 LC_TELEPHONE LC_TIME 5705do 5706 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 5707 eval $as_var=C; export $as_var 5708 else 5709 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 5710 fi 5711done 5712 5713# Required to use basename. 5714if expr a : '\(a\)' >/dev/null 2>&1 && 5715 test "X`expr 00001 : '.*\(...\)'`" = X001; then 5716 as_expr=expr 5717else 5718 as_expr=false 5719fi 5720 5721if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 5722 as_basename=basename 5723else 5724 as_basename=false 5725fi 5726 5727 5728# Name of the executable. 5729as_me=`$as_basename -- "$0" || 5730$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 5731 X"$0" : 'X\(//\)$' \| \ 5732 X"$0" : 'X\(/\)' \| . 2>/dev/null || 5733echo X/"$0" | 5734 sed '/^.*\/\([^/][^/]*\)\/*$/{ 5735 s//\1/ 5736 q 5737 } 5738 /^X\/\(\/\/\)$/{ 5739 s//\1/ 5740 q 5741 } 5742 /^X\/\(\/\).*/{ 5743 s//\1/ 5744 q 5745 } 5746 s/.*/./; q'` 5747 5748# CDPATH. 5749$as_unset CDPATH 5750 5751 5752 5753 as_lineno_1=$LINENO 5754 as_lineno_2=$LINENO 5755 test "x$as_lineno_1" != "x$as_lineno_2" && 5756 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 5757 5758 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 5759 # uniformly replaced by the line number. The first 'sed' inserts a 5760 # line-number line after each line using $LINENO; the second 'sed' 5761 # does the real work. The second script uses 'N' to pair each 5762 # line-number line with the line containing $LINENO, and appends 5763 # trailing '-' during substitution so that $LINENO is not a special 5764 # case at line end. 5765 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 5766 # scripts with optimization help from Paolo Bonzini. Blame Lee 5767 # E. McMahon (1931-1989) for sed's syntax. :-) 5768 sed -n ' 5769 p 5770 /[$]LINENO/= 5771 ' <$as_myself | 5772 sed ' 5773 s/[$]LINENO.*/&-/ 5774 t lineno 5775 b 5776 :lineno 5777 N 5778 :loop 5779 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 5780 t loop 5781 s/-\n.*// 5782 ' >$as_me.lineno && 5783 chmod +x "$as_me.lineno" || 5784 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 5785 { (exit 1); exit 1; }; } 5786 5787 # Don't try to exec as it changes $[0], causing all sort of problems 5788 # (the dirname of $[0] is not the place where we might find the 5789 # original and so on. Autoconf is especially sensitive to this). 5790 . "./$as_me.lineno" 5791 # Exit status is that of the last command. 5792 exit 5793} 5794 5795 5796if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 5797 as_dirname=dirname 5798else 5799 as_dirname=false 5800fi 5801 5802ECHO_C= ECHO_N= ECHO_T= 5803case `echo -n x` in 5804-n*) 5805 case `echo 'x\c'` in 5806 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5807 *) ECHO_C='\c';; 5808 esac;; 5809*) 5810 ECHO_N='-n';; 5811esac 5812 5813if expr a : '\(a\)' >/dev/null 2>&1 && 5814 test "X`expr 00001 : '.*\(...\)'`" = X001; then 5815 as_expr=expr 5816else 5817 as_expr=false 5818fi 5819 5820rm -f conf$$ conf$$.exe conf$$.file 5821if test -d conf$$.dir; then 5822 rm -f conf$$.dir/conf$$.file 5823else 5824 rm -f conf$$.dir 5825 mkdir conf$$.dir 5826fi 5827echo >conf$$.file 5828if ln -s conf$$.file conf$$ 2>/dev/null; then 5829 as_ln_s='ln -s' 5830 # ... but there are two gotchas: 5831 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5832 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 5833 # In both cases, we have to default to `cp -p'. 5834 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5835 as_ln_s='cp -p' 5836elif ln conf$$.file conf$$ 2>/dev/null; then 5837 as_ln_s=ln 5838else 5839 as_ln_s='cp -p' 5840fi 5841rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5842rmdir conf$$.dir 2>/dev/null 5843 5844if mkdir -p . 2>/dev/null; then 5845 as_mkdir_p=: 5846else 5847 test -d ./-p && rmdir ./-p 5848 as_mkdir_p=false 5849fi 5850 5851if test -x / >/dev/null 2>&1; then 5852 as_test_x='test -x' 5853else 5854 if ls -dL / >/dev/null 2>&1; then 5855 as_ls_L_option=L 5856 else 5857 as_ls_L_option= 5858 fi 5859 as_test_x=' 5860 eval sh -c '\'' 5861 if test -d "$1"; then 5862 test -d "$1/."; 5863 else 5864 case $1 in 5865 -*)set "./$1";; 5866 esac; 5867 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 5868 ???[sx]*):;;*)false;;esac;fi 5869 '\'' sh 5870 ' 5871fi 5872as_executable_p=$as_test_x 5873 5874# Sed expression to map a string onto a valid CPP name. 5875as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5876 5877# Sed expression to map a string onto a valid variable name. 5878as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5879 5880 5881exec 6>&1 5882 5883# Save the log message, to keep $[0] and so on meaningful, and to 5884# report actual input values of CONFIG_FILES etc. instead of their 5885# values after options handling. 5886ac_log=" 5887This file was extended by PDCurses $as_me 3.4, which was 5888generated by GNU Autoconf 2.61. Invocation command line was 5889 5890 CONFIG_FILES = $CONFIG_FILES 5891 CONFIG_HEADERS = $CONFIG_HEADERS 5892 CONFIG_LINKS = $CONFIG_LINKS 5893 CONFIG_COMMANDS = $CONFIG_COMMANDS 5894 $ $0 $@ 5895 5896on `(hostname || uname -n) 2>/dev/null | sed 1q` 5897" 5898 5899_ACEOF 5900 5901cat >>$CONFIG_STATUS <<_ACEOF 5902# Files that config.status was made for. 5903config_files="$ac_config_files" 5904config_headers="$ac_config_headers" 5905 5906_ACEOF 5907 5908cat >>$CONFIG_STATUS <<\_ACEOF 5909ac_cs_usage="\ 5910\`$as_me' instantiates files from templates according to the 5911current configuration. 5912 5913Usage: $0 [OPTIONS] [FILE]... 5914 5915 -h, --help print this help, then exit 5916 -V, --version print version number and configuration settings, then exit 5917 -q, --quiet do not print progress messages 5918 -d, --debug don't remove temporary files 5919 --recheck update $as_me by reconfiguring in the same conditions 5920 --file=FILE[:TEMPLATE] 5921 instantiate the configuration file FILE 5922 --header=FILE[:TEMPLATE] 5923 instantiate the configuration header FILE 5924 5925Configuration files: 5926$config_files 5927 5928Configuration headers: 5929$config_headers 5930 5931Report bugs to <bug-autoconf@gnu.org>." 5932 5933_ACEOF 5934cat >>$CONFIG_STATUS <<_ACEOF 5935ac_cs_version="\\ 5936PDCurses config.status 3.4 5937configured by $0, generated by GNU Autoconf 2.61, 5938 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 5939 5940Copyright (C) 2006 Free Software Foundation, Inc. 5941This config.status script is free software; the Free Software Foundation 5942gives unlimited permission to copy, distribute and modify it." 5943 5944ac_pwd='$ac_pwd' 5945srcdir='$srcdir' 5946INSTALL='$INSTALL' 5947_ACEOF 5948 5949cat >>$CONFIG_STATUS <<\_ACEOF 5950# If no file are specified by the user, then we need to provide default 5951# value. By we need to know if files were specified by the user. 5952ac_need_defaults=: 5953while test $# != 0 5954do 5955 case $1 in 5956 --*=*) 5957 ac_option=`expr "X$1" : 'X\([^=]*\)='` 5958 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 5959 ac_shift=: 5960 ;; 5961 *) 5962 ac_option=$1 5963 ac_optarg=$2 5964 ac_shift=shift 5965 ;; 5966 esac 5967 5968 case $ac_option in 5969 # Handling of the options. 5970 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5971 ac_cs_recheck=: ;; 5972 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 5973 echo "$ac_cs_version"; exit ;; 5974 --debug | --debu | --deb | --de | --d | -d ) 5975 debug=: ;; 5976 --file | --fil | --fi | --f ) 5977 $ac_shift 5978 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 5979 ac_need_defaults=false;; 5980 --header | --heade | --head | --hea ) 5981 $ac_shift 5982 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 5983 ac_need_defaults=false;; 5984 --he | --h) 5985 # Conflict between --help and --header 5986 { echo "$as_me: error: ambiguous option: $1 5987Try \`$0 --help' for more information." >&2 5988 { (exit 1); exit 1; }; };; 5989 --help | --hel | -h ) 5990 echo "$ac_cs_usage"; exit ;; 5991 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 5992 | -silent | --silent | --silen | --sile | --sil | --si | --s) 5993 ac_cs_silent=: ;; 5994 5995 # This is an error. 5996 -*) { echo "$as_me: error: unrecognized option: $1 5997Try \`$0 --help' for more information." >&2 5998 { (exit 1); exit 1; }; } ;; 5999 6000 *) ac_config_targets="$ac_config_targets $1" 6001 ac_need_defaults=false ;; 6002 6003 esac 6004 shift 6005done 6006 6007ac_configure_extra_args= 6008 6009if $ac_cs_silent; then 6010 exec 6>/dev/null 6011 ac_configure_extra_args="$ac_configure_extra_args --silent" 6012fi 6013 6014_ACEOF 6015cat >>$CONFIG_STATUS <<_ACEOF 6016if \$ac_cs_recheck; then 6017 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 6018 CONFIG_SHELL=$SHELL 6019 export CONFIG_SHELL 6020 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 6021fi 6022 6023_ACEOF 6024cat >>$CONFIG_STATUS <<\_ACEOF 6025exec 5>>config.log 6026{ 6027 echo 6028 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 6029## Running $as_me. ## 6030_ASBOX 6031 echo "$ac_log" 6032} >&5 6033 6034_ACEOF 6035cat >>$CONFIG_STATUS <<_ACEOF 6036_ACEOF 6037 6038cat >>$CONFIG_STATUS <<\_ACEOF 6039 6040# Handling of arguments. 6041for ac_config_target in $ac_config_targets 6042do 6043 case $ac_config_target in 6044 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 6045 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 6046 "x11/$mymakefile") CONFIG_FILES="$CONFIG_FILES x11/$mymakefile" ;; 6047 "x11/xcurses-config") CONFIG_FILES="$CONFIG_FILES x11/xcurses-config" ;; 6048 6049 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 6050echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 6051 { (exit 1); exit 1; }; };; 6052 esac 6053done 6054 6055 6056# If the user did not use the arguments to specify the items to instantiate, 6057# then the envvar interface is used. Set only those that are not. 6058# We use the long form for the default assignment because of an extremely 6059# bizarre bug on SunOS 4.1.3. 6060if $ac_need_defaults; then 6061 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 6062 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 6063fi 6064 6065# Have a temporary directory for convenience. Make it in the build tree 6066# simply because there is no reason against having it here, and in addition, 6067# creating and moving files from /tmp can sometimes cause problems. 6068# Hook for its removal unless debugging. 6069# Note that there is a small window in which the directory will not be cleaned: 6070# after its creation but before its name has been assigned to `$tmp'. 6071$debug || 6072{ 6073 tmp= 6074 trap 'exit_status=$? 6075 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 6076' 0 6077 trap '{ (exit 1); exit 1; }' 1 2 13 15 6078} 6079# Create a (secure) tmp directory for tmp files. 6080 6081{ 6082 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 6083 test -n "$tmp" && test -d "$tmp" 6084} || 6085{ 6086 tmp=./conf$$-$RANDOM 6087 (umask 077 && mkdir "$tmp") 6088} || 6089{ 6090 echo "$me: cannot create a temporary directory in ." >&2 6091 { (exit 1); exit 1; } 6092} 6093 6094# 6095# Set up the sed scripts for CONFIG_FILES section. 6096# 6097 6098# No need to generate the scripts if there are no CONFIG_FILES. 6099# This happens for instance when ./config.status config.h 6100if test -n "$CONFIG_FILES"; then 6101 6102_ACEOF 6103 6104 6105 6106ac_delim='%!_!# ' 6107for ac_last_try in false false false false false :; do 6108 cat >conf$$subs.sed <<_ACEOF 6109SHELL!$SHELL$ac_delim 6110PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 6111PACKAGE_NAME!$PACKAGE_NAME$ac_delim 6112PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 6113PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 6114PACKAGE_STRING!$PACKAGE_STRING$ac_delim 6115PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 6116exec_prefix!$exec_prefix$ac_delim 6117prefix!$prefix$ac_delim 6118program_transform_name!$program_transform_name$ac_delim 6119bindir!$bindir$ac_delim 6120sbindir!$sbindir$ac_delim 6121libexecdir!$libexecdir$ac_delim 6122datarootdir!$datarootdir$ac_delim 6123datadir!$datadir$ac_delim 6124sysconfdir!$sysconfdir$ac_delim 6125sharedstatedir!$sharedstatedir$ac_delim 6126localstatedir!$localstatedir$ac_delim 6127includedir!$includedir$ac_delim 6128oldincludedir!$oldincludedir$ac_delim 6129docdir!$docdir$ac_delim 6130infodir!$infodir$ac_delim 6131htmldir!$htmldir$ac_delim 6132dvidir!$dvidir$ac_delim 6133pdfdir!$pdfdir$ac_delim 6134psdir!$psdir$ac_delim 6135libdir!$libdir$ac_delim 6136localedir!$localedir$ac_delim 6137mandir!$mandir$ac_delim 6138DEFS!$DEFS$ac_delim 6139ECHO_C!$ECHO_C$ac_delim 6140ECHO_N!$ECHO_N$ac_delim 6141ECHO_T!$ECHO_T$ac_delim 6142LIBS!$LIBS$ac_delim 6143build_alias!$build_alias$ac_delim 6144host_alias!$host_alias$ac_delim 6145target_alias!$target_alias$ac_delim 6146CC!$CC$ac_delim 6147CFLAGS!$CFLAGS$ac_delim 6148LDFLAGS!$LDFLAGS$ac_delim 6149CPPFLAGS!$CPPFLAGS$ac_delim 6150ac_ct_CC!$ac_ct_CC$ac_delim 6151EXEEXT!$EXEEXT$ac_delim 6152OBJEXT!$OBJEXT$ac_delim 6153build!$build$ac_delim 6154build_cpu!$build_cpu$ac_delim 6155build_vendor!$build_vendor$ac_delim 6156build_os!$build_os$ac_delim 6157host!$host$ac_delim 6158host_cpu!$host_cpu$ac_delim 6159host_vendor!$host_vendor$ac_delim 6160host_os!$host_os$ac_delim 6161target!$target$ac_delim 6162target_cpu!$target_cpu$ac_delim 6163target_vendor!$target_vendor$ac_delim 6164target_os!$target_os$ac_delim 6165SYS_DEFS!$SYS_DEFS$ac_delim 6166RANLIB!$RANLIB$ac_delim 6167INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 6168INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 6169INSTALL_DATA!$INSTALL_DATA$ac_delim 6170SET_MAKE!$SET_MAKE$ac_delim 6171CPP!$CPP$ac_delim 6172GREP!$GREP$ac_delim 6173EGREP!$EGREP$ac_delim 6174MH_EXTRA_LIBS!$MH_EXTRA_LIBS$ac_delim 6175XMKMF!$XMKMF$ac_delim 6176MH_XINC_DIR!$MH_XINC_DIR$ac_delim 6177MH_XLIBS!$MH_XLIBS$ac_delim 6178PURIFY!$PURIFY$ac_delim 6179SHLPST!$SHLPST$ac_delim 6180DYN_COMP!$DYN_COMP$ac_delim 6181LD_RXLIB1!$LD_RXLIB1$ac_delim 6182SHLPRE!$SHLPRE$ac_delim 6183SHL_TARGETS!$SHL_TARGETS$ac_delim 6184O2SAVE!$O2SAVE$ac_delim 6185CC2O!$CC2O$ac_delim 6186SAVE2O!$SAVE2O$ac_delim 6187RXPACKEXPORTS!$RXPACKEXPORTS$ac_delim 6188LIBOBJS!$LIBOBJS$ac_delim 6189LTLIBOBJS!$LTLIBOBJS$ac_delim 6190_ACEOF 6191 6192 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 81; then 6193 break 6194 elif $ac_last_try; then 6195 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 6196echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 6197 { (exit 1); exit 1; }; } 6198 else 6199 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6200 fi 6201done 6202 6203ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 6204if test -n "$ac_eof"; then 6205 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 6206 ac_eof=`expr $ac_eof + 1` 6207fi 6208 6209cat >>$CONFIG_STATUS <<_ACEOF 6210cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 6211/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 6212_ACEOF 6213sed ' 6214s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 6215s/^/s,@/; s/!/@,|#_!!_#|/ 6216:n 6217t n 6218s/'"$ac_delim"'$/,g/; t 6219s/$/\\/; p 6220N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 6221' >>$CONFIG_STATUS <conf$$subs.sed 6222rm -f conf$$subs.sed 6223cat >>$CONFIG_STATUS <<_ACEOF 6224:end 6225s/|#_!!_#|//g 6226CEOF$ac_eof 6227_ACEOF 6228 6229 6230# VPATH may cause trouble with some makes, so we remove $(srcdir), 6231# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 6232# trailing colons and then remove the whole line if VPATH becomes empty 6233# (actually we leave an empty line to preserve line numbers). 6234if test "x$srcdir" = x.; then 6235 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 6236s/:*\$(srcdir):*/:/ 6237s/:*\${srcdir}:*/:/ 6238s/:*@srcdir@:*/:/ 6239s/^\([^=]*=[ ]*\):*/\1/ 6240s/:*$// 6241s/^[^=]*=[ ]*$// 6242}' 6243fi 6244 6245cat >>$CONFIG_STATUS <<\_ACEOF 6246fi # test -n "$CONFIG_FILES" 6247 6248 6249for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS 6250do 6251 case $ac_tag in 6252 :[FHLC]) ac_mode=$ac_tag; continue;; 6253 esac 6254 case $ac_mode$ac_tag in 6255 :[FHL]*:*);; 6256 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 6257echo "$as_me: error: Invalid tag $ac_tag." >&2;} 6258 { (exit 1); exit 1; }; };; 6259 :[FH]-) ac_tag=-:-;; 6260 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 6261 esac 6262 ac_save_IFS=$IFS 6263 IFS=: 6264 set x $ac_tag 6265 IFS=$ac_save_IFS 6266 shift 6267 ac_file=$1 6268 shift 6269 6270 case $ac_mode in 6271 :L) ac_source=$1;; 6272 :[FH]) 6273 ac_file_inputs= 6274 for ac_f 6275 do 6276 case $ac_f in 6277 -) ac_f="$tmp/stdin";; 6278 *) # Look for the file first in the build tree, then in the source tree 6279 # (if the path is not absolute). The absolute path cannot be DOS-style, 6280 # because $ac_f cannot contain `:'. 6281 test -f "$ac_f" || 6282 case $ac_f in 6283 [\\/$]*) false;; 6284 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 6285 esac || 6286 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 6287echo "$as_me: error: cannot find input file: $ac_f" >&2;} 6288 { (exit 1); exit 1; }; };; 6289 esac 6290 ac_file_inputs="$ac_file_inputs $ac_f" 6291 done 6292 6293 # Let's still pretend it is `configure' which instantiates (i.e., don't 6294 # use $as_me), people would be surprised to read: 6295 # /* config.h. Generated by config.status. */ 6296 configure_input="Generated from "`IFS=: 6297 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 6298 if test x"$ac_file" != x-; then 6299 configure_input="$ac_file. $configure_input" 6300 { echo "$as_me:$LINENO: creating $ac_file" >&5 6301echo "$as_me: creating $ac_file" >&6;} 6302 fi 6303 6304 case $ac_tag in 6305 *:-:* | *:-) cat >"$tmp/stdin";; 6306 esac 6307 ;; 6308 esac 6309 6310 ac_dir=`$as_dirname -- "$ac_file" || 6311$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6312 X"$ac_file" : 'X\(//\)[^/]' \| \ 6313 X"$ac_file" : 'X\(//\)$' \| \ 6314 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 6315echo X"$ac_file" | 6316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6317 s//\1/ 6318 q 6319 } 6320 /^X\(\/\/\)[^/].*/{ 6321 s//\1/ 6322 q 6323 } 6324 /^X\(\/\/\)$/{ 6325 s//\1/ 6326 q 6327 } 6328 /^X\(\/\).*/{ 6329 s//\1/ 6330 q 6331 } 6332 s/.*/./; q'` 6333 { as_dir="$ac_dir" 6334 case $as_dir in #( 6335 -*) as_dir=./$as_dir;; 6336 esac 6337 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 6338 as_dirs= 6339 while :; do 6340 case $as_dir in #( 6341 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 6342 *) as_qdir=$as_dir;; 6343 esac 6344 as_dirs="'$as_qdir' $as_dirs" 6345 as_dir=`$as_dirname -- "$as_dir" || 6346$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6347 X"$as_dir" : 'X\(//\)[^/]' \| \ 6348 X"$as_dir" : 'X\(//\)$' \| \ 6349 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 6350echo X"$as_dir" | 6351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6352 s//\1/ 6353 q 6354 } 6355 /^X\(\/\/\)[^/].*/{ 6356 s//\1/ 6357 q 6358 } 6359 /^X\(\/\/\)$/{ 6360 s//\1/ 6361 q 6362 } 6363 /^X\(\/\).*/{ 6364 s//\1/ 6365 q 6366 } 6367 s/.*/./; q'` 6368 test -d "$as_dir" && break 6369 done 6370 test -z "$as_dirs" || eval "mkdir $as_dirs" 6371 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 6372echo "$as_me: error: cannot create directory $as_dir" >&2;} 6373 { (exit 1); exit 1; }; }; } 6374 ac_builddir=. 6375 6376case "$ac_dir" in 6377.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 6378*) 6379 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 6380 # A ".." for each directory in $ac_dir_suffix. 6381 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 6382 case $ac_top_builddir_sub in 6383 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 6384 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 6385 esac ;; 6386esac 6387ac_abs_top_builddir=$ac_pwd 6388ac_abs_builddir=$ac_pwd$ac_dir_suffix 6389# for backward compatibility: 6390ac_top_builddir=$ac_top_build_prefix 6391 6392case $srcdir in 6393 .) # We are building in place. 6394 ac_srcdir=. 6395 ac_top_srcdir=$ac_top_builddir_sub 6396 ac_abs_top_srcdir=$ac_pwd ;; 6397 [\\/]* | ?:[\\/]* ) # Absolute name. 6398 ac_srcdir=$srcdir$ac_dir_suffix; 6399 ac_top_srcdir=$srcdir 6400 ac_abs_top_srcdir=$srcdir ;; 6401 *) # Relative name. 6402 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 6403 ac_top_srcdir=$ac_top_build_prefix$srcdir 6404 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 6405esac 6406ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 6407 6408 6409 case $ac_mode in 6410 :F) 6411 # 6412 # CONFIG_FILE 6413 # 6414 6415 case $INSTALL in 6416 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 6417 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 6418 esac 6419_ACEOF 6420 6421cat >>$CONFIG_STATUS <<\_ACEOF 6422# If the template does not know about datarootdir, expand it. 6423# FIXME: This hack should be removed a few years after 2.60. 6424ac_datarootdir_hack=; ac_datarootdir_seen= 6425 6426case `sed -n '/datarootdir/ { 6427 p 6428 q 6429} 6430/@datadir@/p 6431/@docdir@/p 6432/@infodir@/p 6433/@localedir@/p 6434/@mandir@/p 6435' $ac_file_inputs` in 6436*datarootdir*) ac_datarootdir_seen=yes;; 6437*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 6438 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 6439echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 6440_ACEOF 6441cat >>$CONFIG_STATUS <<_ACEOF 6442 ac_datarootdir_hack=' 6443 s&@datadir@&$datadir&g 6444 s&@docdir@&$docdir&g 6445 s&@infodir@&$infodir&g 6446 s&@localedir@&$localedir&g 6447 s&@mandir@&$mandir&g 6448 s&\\\${datarootdir}&$datarootdir&g' ;; 6449esac 6450_ACEOF 6451 6452# Neutralize VPATH when `$srcdir' = `.'. 6453# Shell code in configure.ac might set extrasub. 6454# FIXME: do we really want to maintain this feature? 6455cat >>$CONFIG_STATUS <<_ACEOF 6456 sed "$ac_vpsub 6457$extrasub 6458_ACEOF 6459cat >>$CONFIG_STATUS <<\_ACEOF 6460:t 6461/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 6462s&@configure_input@&$configure_input&;t t 6463s&@top_builddir@&$ac_top_builddir_sub&;t t 6464s&@srcdir@&$ac_srcdir&;t t 6465s&@abs_srcdir@&$ac_abs_srcdir&;t t 6466s&@top_srcdir@&$ac_top_srcdir&;t t 6467s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 6468s&@builddir@&$ac_builddir&;t t 6469s&@abs_builddir@&$ac_abs_builddir&;t t 6470s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 6471s&@INSTALL@&$ac_INSTALL&;t t 6472$ac_datarootdir_hack 6473" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out 6474 6475test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 6476 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 6477 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 6478 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6479which seems to be undefined. Please make sure it is defined." >&5 6480echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6481which seems to be undefined. Please make sure it is defined." >&2;} 6482 6483 rm -f "$tmp/stdin" 6484 case $ac_file in 6485 -) cat "$tmp/out"; rm -f "$tmp/out";; 6486 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 6487 esac 6488 ;; 6489 :H) 6490 # 6491 # CONFIG_HEADER 6492 # 6493_ACEOF 6494 6495# Transform confdefs.h into a sed script `conftest.defines', that 6496# substitutes the proper values into config.h.in to produce config.h. 6497rm -f conftest.defines conftest.tail 6498# First, append a space to every undef/define line, to ease matching. 6499echo 's/$/ /' >conftest.defines 6500# Then, protect against being on the right side of a sed subst, or in 6501# an unquoted here document, in config.status. If some macros were 6502# called several times there might be several #defines for the same 6503# symbol, which is useless. But do not sort them, since the last 6504# AC_DEFINE must be honored. 6505ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 6506# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 6507# NAME is the cpp macro being defined, VALUE is the value it is being given. 6508# PARAMS is the parameter list in the macro definition--in most cases, it's 6509# just an empty string. 6510ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 6511ac_dB='\\)[ (].*,\\1define\\2' 6512ac_dC=' ' 6513ac_dD=' ,' 6514 6515uniq confdefs.h | 6516 sed -n ' 6517 t rset 6518 :rset 6519 s/^[ ]*#[ ]*define[ ][ ]*// 6520 t ok 6521 d 6522 :ok 6523 s/[\\&,]/\\&/g 6524 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 6525 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 6526 ' >>conftest.defines 6527 6528# Remove the space that was appended to ease matching. 6529# Then replace #undef with comments. This is necessary, for 6530# example, in the case of _POSIX_SOURCE, which is predefined and required 6531# on some systems where configure will not decide to define it. 6532# (The regexp can be short, since the line contains either #define or #undef.) 6533echo 's/ $// 6534s,^[ #]*u.*,/* & */,' >>conftest.defines 6535 6536# Break up conftest.defines: 6537ac_max_sed_lines=50 6538 6539# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 6540# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 6541# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 6542# et cetera. 6543ac_in='$ac_file_inputs' 6544ac_out='"$tmp/out1"' 6545ac_nxt='"$tmp/out2"' 6546 6547while : 6548do 6549 # Write a here document: 6550 cat >>$CONFIG_STATUS <<_ACEOF 6551 # First, check the format of the line: 6552 cat >"\$tmp/defines.sed" <<\\CEOF 6553/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 6554/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 6555b 6556:def 6557_ACEOF 6558 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 6559 echo 'CEOF 6560 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 6561 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 6562 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 6563 grep . conftest.tail >/dev/null || break 6564 rm -f conftest.defines 6565 mv conftest.tail conftest.defines 6566done 6567rm -f conftest.defines conftest.tail 6568 6569echo "ac_result=$ac_in" >>$CONFIG_STATUS 6570cat >>$CONFIG_STATUS <<\_ACEOF 6571 if test x"$ac_file" != x-; then 6572 echo "/* $configure_input */" >"$tmp/config.h" 6573 cat "$ac_result" >>"$tmp/config.h" 6574 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 6575 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 6576echo "$as_me: $ac_file is unchanged" >&6;} 6577 else 6578 rm -f $ac_file 6579 mv "$tmp/config.h" $ac_file 6580 fi 6581 else 6582 echo "/* $configure_input */" 6583 cat "$ac_result" 6584 fi 6585 rm -f "$tmp/out12" 6586 ;; 6587 6588 6589 esac 6590 6591done # for ac_tag 6592 6593 6594{ (exit 0); exit 0; } 6595_ACEOF 6596chmod +x $CONFIG_STATUS 6597ac_clean_files=$ac_clean_files_save 6598 6599 6600# configure is writing to config.log, and then calls config.status. 6601# config.status does its own redirection, appending to config.log. 6602# Unfortunately, on DOS this fails, as config.log is still kept open 6603# by configure, so config.status won't be able to write to it; its 6604# output is simply discarded. So we exec the FD to /dev/null, 6605# effectively closing config.log, so it can be properly (re)opened and 6606# appended to by config.status. When coming back to configure, we 6607# need to make the FD available again. 6608if test "$no_create" != yes; then 6609 ac_cs_success=: 6610 ac_config_status_args= 6611 test "$silent" = yes && 6612 ac_config_status_args="$ac_config_status_args --quiet" 6613 exec 5>/dev/null 6614 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 6615 exec 5>>config.log 6616 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 6617 # would make configure fail if this is the last instruction. 6618 $ac_cs_success || { (exit 1); exit 1; } 6619fi 6620 6621 6622case "$target" in 6623 *ibm-aix*) 6624 mv x11/Makefile.aix x11/Makefile 6625 { echo "$as_me:$LINENO: result: renaming x11/Makefile.aix to x11/Makefile" >&5 6626echo "${ECHO_T}renaming x11/Makefile.aix to x11/Makefile" >&6; } 6627 ;; 6628 *) 6629 ;; 6630esac 6631 6632 6633cat >>confdefs.h <<\_ACEOF 6634#define PDC_MAX_SIGNALS 6635_ACEOF 6636 6637 6638 6639cat >>confdefs.h <<\_ACEOF 6640#define HAVE_DECKEYSYM_H 6641_ACEOF 6642 6643 6644 6645cat >>confdefs.h <<\_ACEOF 6646#define HAVE_SUNKEYSYM_H 6647_ACEOF 6648 6649 6650 6651cat >>confdefs.h <<\_ACEOF 6652#define HAVE_XPM_H 6653_ACEOF 6654 6655 6656 6657cat >>confdefs.h <<\_ACEOF 6658#define HAVE_XK_KP_DELETE 6659_ACEOF 6660 6661 6662 6663cat >>confdefs.h <<\_ACEOF 6664#define HAVE_XK_KP_INSERT 6665_ACEOF 6666 6667 6668 6669cat >>confdefs.h <<\_ACEOF 6670#define HAVE_XK_KP_END 6671_ACEOF 6672 6673 6674 6675cat >>confdefs.h <<\_ACEOF 6676#define HAVE_XK_KP_DOWN 6677_ACEOF 6678 6679 6680 6681cat >>confdefs.h <<\_ACEOF 6682#define HAVE_XK_KP_NEXT 6683_ACEOF 6684 6685 6686 6687cat >>confdefs.h <<\_ACEOF 6688#define HAVE_XK_KP_LEFT 6689_ACEOF 6690 6691 6692 6693cat >>confdefs.h <<\_ACEOF 6694#define HAVE_XK_KP_RIGHT 6695_ACEOF 6696 6697 6698 6699cat >>confdefs.h <<\_ACEOF 6700#define HAVE_XK_KP_HOME 6701_ACEOF 6702 6703 6704 6705cat >>confdefs.h <<\_ACEOF 6706#define HAVE_XK_KP_UP 6707_ACEOF 6708 6709 6710 6711cat >>confdefs.h <<\_ACEOF 6712#define HAVE_XK_KP_PRIOR 6713_ACEOF 6714 6715 6716 6717cat >>confdefs.h <<\_ACEOF 6718#define HAVE_XK_KP_BEGIN 6719_ACEOF 6720 6721 6722 6723cat >>confdefs.h <<\_ACEOF 6724#define USE_XAW3D 6725_ACEOF 6726 6727 6728 6729cat >>confdefs.h <<\_ACEOF 6730#define USE_NEXTAW 6731_ACEOF 6732 6733 6734 6735cat >>confdefs.h <<\_ACEOF 6736#define XPOINTER_TYPEDEFED 6737_ACEOF 6738 6739