1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.60 for brutalchess 0.5. 4# 5# Report bugs to <brutalchess-devel@lists.sourceforge.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 Bourne compatible 16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17 emulate sh 18 NULLCMD=: 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 # is contrary to our usage. Disable this feature. 21 alias -g '${1+"$@"}'='"$@"' 22 setopt NO_GLOB_SUBST 23else 24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 25fi 26BIN_SH=xpg4; export BIN_SH # for Tru64 27DUALCASE=1; export DUALCASE # for MKS sh 28 29 30# PATH needs CR 31# Avoid depending upon Character Ranges. 32as_cr_letters='abcdefghijklmnopqrstuvwxyz' 33as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 34as_cr_Letters=$as_cr_letters$as_cr_LETTERS 35as_cr_digits='0123456789' 36as_cr_alnum=$as_cr_Letters$as_cr_digits 37 38# The user is always right. 39if test "${PATH_SEPARATOR+set}" != set; then 40 echo "#! /bin/sh" >conf$$.sh 41 echo "exit 0" >>conf$$.sh 42 chmod +x conf$$.sh 43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 44 PATH_SEPARATOR=';' 45 else 46 PATH_SEPARATOR=: 47 fi 48 rm -f conf$$.sh 49fi 50 51# Support unset when possible. 52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 53 as_unset=unset 54else 55 as_unset=false 56fi 57 58 59# IFS 60# We need space, tab and new line, in precisely that order. Quoting is 61# there to prevent editors from complaining about space-tab. 62# (If _AS_PATH_WALK were called with IFS unset, it would disable word 63# splitting by setting IFS to empty value.) 64as_nl=' 65' 66IFS=" "" $as_nl" 67 68# Find who we are. Look in the path if we contain no directory separator. 69case $0 in 70 *[\\/]* ) as_myself=$0 ;; 71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 72for as_dir in $PATH 73do 74 IFS=$as_save_IFS 75 test -z "$as_dir" && as_dir=. 76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 77done 78IFS=$as_save_IFS 79 80 ;; 81esac 82# We did not find ourselves, most probably we were run as `sh COMMAND' 83# in which case we are not to be found in the path. 84if test "x$as_myself" = x; then 85 as_myself=$0 86fi 87if test ! -f "$as_myself"; then 88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 89 { (exit 1); exit 1; } 90fi 91 92# Work around bugs in pre-3.0 UWIN ksh. 93for as_var in ENV MAIL MAILPATH 94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 95done 96PS1='$ ' 97PS2='> ' 98PS4='+ ' 99 100# NLS nuisances. 101for as_var in \ 102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 104 LC_TELEPHONE LC_TIME 105do 106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 107 eval $as_var=C; export $as_var 108 else 109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 110 fi 111done 112 113# Required to use basename. 114if expr a : '\(a\)' >/dev/null 2>&1 && 115 test "X`expr 00001 : '.*\(...\)'`" = X001; then 116 as_expr=expr 117else 118 as_expr=false 119fi 120 121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 122 as_basename=basename 123else 124 as_basename=false 125fi 126 127 128# Name of the executable. 129as_me=`$as_basename -- "$0" || 130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 131 X"$0" : 'X\(//\)$' \| \ 132 X"$0" : 'X\(/\)' \| . 2>/dev/null || 133echo X/"$0" | 134 sed '/^.*\/\([^/][^/]*\)\/*$/{ 135 s//\1/ 136 q 137 } 138 /^X\/\(\/\/\)$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\).*/{ 143 s//\1/ 144 q 145 } 146 s/.*/./; q'` 147 148# CDPATH. 149$as_unset CDPATH 150 151 152if test "x$CONFIG_SHELL" = x; then 153 if (eval ":") 2>/dev/null; then 154 as_have_required=yes 155else 156 as_have_required=no 157fi 158 159 if test $as_have_required = yes && (eval ": 160(as_func_return () { 161 (exit \$1) 162} 163as_func_success () { 164 as_func_return 0 165} 166as_func_failure () { 167 as_func_return 1 168} 169as_func_ret_success () { 170 return 0 171} 172as_func_ret_failure () { 173 return 1 174} 175 176exitcode=0 177if as_func_success; then 178 : 179else 180 exitcode=1 181 echo as_func_success failed. 182fi 183 184if as_func_failure; then 185 exitcode=1 186 echo as_func_failure succeeded. 187fi 188 189if as_func_ret_success; then 190 : 191else 192 exitcode=1 193 echo as_func_ret_success failed. 194fi 195 196if as_func_ret_failure; then 197 exitcode=1 198 echo as_func_ret_failure succeeded. 199fi 200 201if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 202 : 203else 204 exitcode=1 205 echo positional parameters were not saved. 206fi 207 208test \$exitcode = 0) || { (exit 1); exit 1; } 209 210( 211 as_lineno_1=\$LINENO 212 as_lineno_2=\$LINENO 213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 215") 2> /dev/null; then 216 : 217else 218 as_candidate_shells= 219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 case $as_dir in 225 /*) 226 for as_base in sh bash ksh sh5; do 227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 228 done;; 229 esac 230done 231IFS=$as_save_IFS 232 233 234 for as_shell in $as_candidate_shells $SHELL; do 235 # Try only shells that exist, to save several forks. 236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 237 { ("$as_shell") 2> /dev/null <<\_ASEOF 238# Be Bourne compatible 239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 240 emulate sh 241 NULLCMD=: 242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 243 # is contrary to our usage. Disable this feature. 244 alias -g '${1+"$@"}'='"$@"' 245 setopt NO_GLOB_SUBST 246else 247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 248fi 249BIN_SH=xpg4; export BIN_SH # for Tru64 250DUALCASE=1; export DUALCASE # for MKS sh 251 252: 253_ASEOF 254}; then 255 CONFIG_SHELL=$as_shell 256 as_have_required=yes 257 if { "$as_shell" 2> /dev/null <<\_ASEOF 258# Be Bourne compatible 259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 260 emulate sh 261 NULLCMD=: 262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 263 # is contrary to our usage. Disable this feature. 264 alias -g '${1+"$@"}'='"$@"' 265 setopt NO_GLOB_SUBST 266else 267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 268fi 269BIN_SH=xpg4; export BIN_SH # for Tru64 270DUALCASE=1; export DUALCASE # for MKS sh 271 272: 273(as_func_return () { 274 (exit $1) 275} 276as_func_success () { 277 as_func_return 0 278} 279as_func_failure () { 280 as_func_return 1 281} 282as_func_ret_success () { 283 return 0 284} 285as_func_ret_failure () { 286 return 1 287} 288 289exitcode=0 290if as_func_success; then 291 : 292else 293 exitcode=1 294 echo as_func_success failed. 295fi 296 297if as_func_failure; then 298 exitcode=1 299 echo as_func_failure succeeded. 300fi 301 302if as_func_ret_success; then 303 : 304else 305 exitcode=1 306 echo as_func_ret_success failed. 307fi 308 309if as_func_ret_failure; then 310 exitcode=1 311 echo as_func_ret_failure succeeded. 312fi 313 314if ( set x; as_func_ret_success y && test x = "$1" ); then 315 : 316else 317 exitcode=1 318 echo positional parameters were not saved. 319fi 320 321test $exitcode = 0) || { (exit 1); exit 1; } 322 323( 324 as_lineno_1=$LINENO 325 as_lineno_2=$LINENO 326 test "x$as_lineno_1" != "x$as_lineno_2" && 327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 328 329_ASEOF 330}; then 331 break 332fi 333 334fi 335 336 done 337 338 if test "x$CONFIG_SHELL" != x; then 339 for as_var in BASH_ENV ENV 340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 341 done 342 export CONFIG_SHELL 343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 344fi 345 346 347 if test $as_have_required = no; then 348 echo This script requires a shell more modern than all the 349 echo shells that I found on your system. Please install a 350 echo modern shell, or manually run the script under such a 351 echo shell if you do have one. 352 { (exit 1); exit 1; } 353fi 354 355 356fi 357 358fi 359 360 361 362(eval "as_func_return () { 363 (exit \$1) 364} 365as_func_success () { 366 as_func_return 0 367} 368as_func_failure () { 369 as_func_return 1 370} 371as_func_ret_success () { 372 return 0 373} 374as_func_ret_failure () { 375 return 1 376} 377 378exitcode=0 379if as_func_success; then 380 : 381else 382 exitcode=1 383 echo as_func_success failed. 384fi 385 386if as_func_failure; then 387 exitcode=1 388 echo as_func_failure succeeded. 389fi 390 391if as_func_ret_success; then 392 : 393else 394 exitcode=1 395 echo as_func_ret_success failed. 396fi 397 398if as_func_ret_failure; then 399 exitcode=1 400 echo as_func_ret_failure succeeded. 401fi 402 403if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 404 : 405else 406 exitcode=1 407 echo positional parameters were not saved. 408fi 409 410test \$exitcode = 0") || { 411 echo No shell found that supports shell functions. 412 echo Please tell autoconf@gnu.org about your system, 413 echo including any error possibly output before this 414 echo message 415} 416 417 418 419 as_lineno_1=$LINENO 420 as_lineno_2=$LINENO 421 test "x$as_lineno_1" != "x$as_lineno_2" && 422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 423 424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 425 # uniformly replaced by the line number. The first 'sed' inserts a 426 # line-number line after each line using $LINENO; the second 'sed' 427 # does the real work. The second script uses 'N' to pair each 428 # line-number line with the line containing $LINENO, and appends 429 # trailing '-' during substitution so that $LINENO is not a special 430 # case at line end. 431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 432 # scripts with optimization help from Paolo Bonzini. Blame Lee 433 # E. McMahon (1931-1989) for sed's syntax. :-) 434 sed -n ' 435 p 436 /[$]LINENO/= 437 ' <$as_myself | 438 sed ' 439 s/[$]LINENO.*/&-/ 440 t lineno 441 b 442 :lineno 443 N 444 :loop 445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 446 t loop 447 s/-\n.*// 448 ' >$as_me.lineno && 449 chmod +x "$as_me.lineno" || 450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 451 { (exit 1); exit 1; }; } 452 453 # Don't try to exec as it changes $[0], causing all sort of problems 454 # (the dirname of $[0] is not the place where we might find the 455 # original and so on. Autoconf is especially sensitive to this). 456 . "./$as_me.lineno" 457 # Exit status is that of the last command. 458 exit 459} 460 461 462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 463 as_dirname=dirname 464else 465 as_dirname=false 466fi 467 468ECHO_C= ECHO_N= ECHO_T= 469case `echo -n x` in 470-n*) 471 case `echo 'x\c'` in 472 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 473 *) ECHO_C='\c';; 474 esac;; 475*) 476 ECHO_N='-n';; 477esac 478 479if expr a : '\(a\)' >/dev/null 2>&1 && 480 test "X`expr 00001 : '.*\(...\)'`" = X001; then 481 as_expr=expr 482else 483 as_expr=false 484fi 485 486rm -f conf$$ conf$$.exe conf$$.file 487if test -d conf$$.dir; then 488 rm -f conf$$.dir/conf$$.file 489else 490 rm -f conf$$.dir 491 mkdir conf$$.dir 492fi 493echo >conf$$.file 494if ln -s conf$$.file conf$$ 2>/dev/null; then 495 as_ln_s='ln -s' 496 # ... but there are two gotchas: 497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 499 # In both cases, we have to default to `cp -p'. 500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 501 as_ln_s='cp -p' 502elif ln conf$$.file conf$$ 2>/dev/null; then 503 as_ln_s=ln 504else 505 as_ln_s='cp -p' 506fi 507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 508rmdir conf$$.dir 2>/dev/null 509 510if mkdir -p . 2>/dev/null; then 511 as_mkdir_p=: 512else 513 test -d ./-p && rmdir ./-p 514 as_mkdir_p=false 515fi 516 517# Find out whether ``test -x'' works. Don't use a zero-byte file, as 518# systems may use methods other than mode bits to determine executability. 519cat >conf$$.file <<_ASEOF 520#! /bin/sh 521exit 0 522_ASEOF 523chmod +x conf$$.file 524if test -x conf$$.file >/dev/null 2>&1; then 525 as_executable_p="test -x" 526else 527 as_executable_p=: 528fi 529rm -f conf$$.file 530 531# Sed expression to map a string onto a valid CPP name. 532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 533 534# Sed expression to map a string onto a valid variable name. 535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 536 537 538 539exec 7<&0 </dev/null 6>&1 540 541# Name of the host. 542# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 543# so uname gets run too. 544ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 545 546# 547# Initializations. 548# 549ac_default_prefix=/usr/local 550ac_clean_files= 551ac_config_libobj_dir=. 552LIBOBJS= 553cross_compiling=no 554subdirs= 555MFLAGS= 556MAKEFLAGS= 557SHELL=${CONFIG_SHELL-/bin/sh} 558 559# Identity of this package. 560PACKAGE_NAME='brutalchess' 561PACKAGE_TARNAME='brutalchess' 562PACKAGE_VERSION='0.5' 563PACKAGE_STRING='brutalchess 0.5' 564PACKAGE_BUGREPORT='brutalchess-devel@lists.sourceforge.net' 565 566ac_unique_file="src/" 567# Factoring default headers for most tests. 568ac_includes_default="\ 569#include <stdio.h> 570#if HAVE_SYS_TYPES_H 571# include <sys/types.h> 572#endif 573#if HAVE_SYS_STAT_H 574# include <sys/stat.h> 575#endif 576#if STDC_HEADERS 577# include <stdlib.h> 578# include <stddef.h> 579#else 580# if HAVE_STDLIB_H 581# include <stdlib.h> 582# endif 583#endif 584#if HAVE_STRING_H 585# if !STDC_HEADERS && HAVE_MEMORY_H 586# include <memory.h> 587# endif 588# include <string.h> 589#endif 590#if HAVE_STRINGS_H 591# include <strings.h> 592#endif 593#if HAVE_INTTYPES_H 594# include <inttypes.h> 595#endif 596#if HAVE_STDINT_H 597# include <stdint.h> 598#endif 599#if HAVE_UNISTD_H 600# include <unistd.h> 601#endif" 602 603ac_subst_vars='SHELL 604PATH_SEPARATOR 605PACKAGE_NAME 606PACKAGE_TARNAME 607PACKAGE_VERSION 608PACKAGE_STRING 609PACKAGE_BUGREPORT 610exec_prefix 611prefix 612program_transform_name 613bindir 614sbindir 615libexecdir 616datarootdir 617datadir 618sysconfdir 619sharedstatedir 620localstatedir 621includedir 622oldincludedir 623docdir 624infodir 625htmldir 626dvidir 627pdfdir 628psdir 629libdir 630localedir 631mandir 632DEFS 633ECHO_C 634ECHO_N 635ECHO_T 636LIBS 637build_alias 638host_alias 639target_alias 640build 641build_cpu 642build_vendor 643build_os 644host 645host_cpu 646host_vendor 647host_os 648INSTALL_PROGRAM 649INSTALL_SCRIPT 650INSTALL_DATA 651CYGPATH_W 652PACKAGE 653VERSION 654ACLOCAL 655AUTOCONF 656AUTOMAKE 657AUTOHEADER 658MAKEINFO 659AMTAR 660install_sh 661STRIP 662INSTALL_STRIP_PROGRAM 663mkdir_p 664AWK 665SET_MAKE 666am__leading_dot 667CXX 668CXXFLAGS 669LDFLAGS 670CPPFLAGS 671ac_ct_CXX 672EXEEXT 673OBJEXT 674DEPDIR 675am__include 676am__quote 677AMDEP_TRUE 678AMDEP_FALSE 679AMDEPBACKSLASH 680CXXDEPMODE 681am__fastdepCXX_TRUE 682am__fastdepCXX_FALSE 683CC 684CFLAGS 685ac_ct_CC 686CCDEPMODE 687am__fastdepCC_TRUE 688am__fastdepCC_FALSE 689CPP 690GREP 691EGREP 692XMKMF 693X_CFLAGS 694X_PRE_LIBS 695X_LIBS 696X_EXTRA_LIBS 697GL_CFLAGS 698GL_LIBS 699SDL_CONFIG 700SDL_CFLAGS 701SDL_LIBS 702FT2_CONFIG 703FT2_CFLAGS 704FT2_LIBS 705prefixdir 706modelsdir 707artdir 708fontsdir 709LIBOBJS 710LTLIBOBJS' 711ac_subst_files='' 712 ac_precious_vars='build_alias 713host_alias 714target_alias 715CXX 716CXXFLAGS 717LDFLAGS 718CPPFLAGS 719CCC 720CC 721CFLAGS 722CPP 723XMKMF' 724 725 726# Initialize some variables set by options. 727ac_init_help= 728ac_init_version=false 729# The variables have the same names as the options, with 730# dashes changed to underlines. 731cache_file=/dev/null 732exec_prefix=NONE 733no_create= 734no_recursion= 735prefix=NONE 736program_prefix=NONE 737program_suffix=NONE 738program_transform_name=s,x,x, 739silent= 740site= 741srcdir= 742verbose= 743x_includes=NONE 744x_libraries=NONE 745 746# Installation directory options. 747# These are left unexpanded so users can "make install exec_prefix=/foo" 748# and all the variables that are supposed to be based on exec_prefix 749# by default will actually change. 750# Use braces instead of parens because sh, perl, etc. also accept them. 751# (The list follows the same order as the GNU Coding Standards.) 752bindir='${exec_prefix}/bin' 753sbindir='${exec_prefix}/sbin' 754libexecdir='${exec_prefix}/libexec' 755datarootdir='${prefix}/share' 756datadir='${datarootdir}' 757sysconfdir='${prefix}/etc' 758sharedstatedir='${prefix}/com' 759localstatedir='${prefix}/var' 760includedir='${prefix}/include' 761oldincludedir='/usr/include' 762docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 763infodir='${datarootdir}/info' 764htmldir='${docdir}' 765dvidir='${docdir}' 766pdfdir='${docdir}' 767psdir='${docdir}' 768libdir='${exec_prefix}/lib' 769localedir='${datarootdir}/locale' 770mandir='${datarootdir}/man' 771 772ac_prev= 773ac_dashdash= 774for ac_option 775do 776 # If the previous option needs an argument, assign it. 777 if test -n "$ac_prev"; then 778 eval $ac_prev=\$ac_option 779 ac_prev= 780 continue 781 fi 782 783 case $ac_option in 784 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 785 *) ac_optarg=yes ;; 786 esac 787 788 # Accept the important Cygnus configure options, so we can diagnose typos. 789 790 case $ac_dashdash$ac_option in 791 --) 792 ac_dashdash=yes ;; 793 794 -bindir | --bindir | --bindi | --bind | --bin | --bi) 795 ac_prev=bindir ;; 796 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 797 bindir=$ac_optarg ;; 798 799 -build | --build | --buil | --bui | --bu) 800 ac_prev=build_alias ;; 801 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 802 build_alias=$ac_optarg ;; 803 804 -cache-file | --cache-file | --cache-fil | --cache-fi \ 805 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 806 ac_prev=cache_file ;; 807 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 808 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 809 cache_file=$ac_optarg ;; 810 811 --config-cache | -C) 812 cache_file=config.cache ;; 813 814 -datadir | --datadir | --datadi | --datad) 815 ac_prev=datadir ;; 816 -datadir=* | --datadir=* | --datadi=* | --datad=*) 817 datadir=$ac_optarg ;; 818 819 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 820 | --dataroo | --dataro | --datar) 821 ac_prev=datarootdir ;; 822 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 823 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 824 datarootdir=$ac_optarg ;; 825 826 -disable-* | --disable-*) 827 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 828 # Reject names that are not valid shell variable names. 829 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 830 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 831 { (exit 1); exit 1; }; } 832 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 833 eval enable_$ac_feature=no ;; 834 835 -docdir | --docdir | --docdi | --doc | --do) 836 ac_prev=docdir ;; 837 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 838 docdir=$ac_optarg ;; 839 840 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 841 ac_prev=dvidir ;; 842 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 843 dvidir=$ac_optarg ;; 844 845 -enable-* | --enable-*) 846 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 847 # Reject names that are not valid shell variable names. 848 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 849 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 850 { (exit 1); exit 1; }; } 851 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 852 eval enable_$ac_feature=\$ac_optarg ;; 853 854 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 855 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 856 | --exec | --exe | --ex) 857 ac_prev=exec_prefix ;; 858 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 859 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 860 | --exec=* | --exe=* | --ex=*) 861 exec_prefix=$ac_optarg ;; 862 863 -gas | --gas | --ga | --g) 864 # Obsolete; use --with-gas. 865 with_gas=yes ;; 866 867 -help | --help | --hel | --he | -h) 868 ac_init_help=long ;; 869 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 870 ac_init_help=recursive ;; 871 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 872 ac_init_help=short ;; 873 874 -host | --host | --hos | --ho) 875 ac_prev=host_alias ;; 876 -host=* | --host=* | --hos=* | --ho=*) 877 host_alias=$ac_optarg ;; 878 879 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 880 ac_prev=htmldir ;; 881 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 882 | --ht=*) 883 htmldir=$ac_optarg ;; 884 885 -includedir | --includedir | --includedi | --included | --include \ 886 | --includ | --inclu | --incl | --inc) 887 ac_prev=includedir ;; 888 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 889 | --includ=* | --inclu=* | --incl=* | --inc=*) 890 includedir=$ac_optarg ;; 891 892 -infodir | --infodir | --infodi | --infod | --info | --inf) 893 ac_prev=infodir ;; 894 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 895 infodir=$ac_optarg ;; 896 897 -libdir | --libdir | --libdi | --libd) 898 ac_prev=libdir ;; 899 -libdir=* | --libdir=* | --libdi=* | --libd=*) 900 libdir=$ac_optarg ;; 901 902 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 903 | --libexe | --libex | --libe) 904 ac_prev=libexecdir ;; 905 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 906 | --libexe=* | --libex=* | --libe=*) 907 libexecdir=$ac_optarg ;; 908 909 -localedir | --localedir | --localedi | --localed | --locale) 910 ac_prev=localedir ;; 911 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 912 localedir=$ac_optarg ;; 913 914 -localstatedir | --localstatedir | --localstatedi | --localstated \ 915 | --localstate | --localstat | --localsta | --localst | --locals) 916 ac_prev=localstatedir ;; 917 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 918 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 919 localstatedir=$ac_optarg ;; 920 921 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 922 ac_prev=mandir ;; 923 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 924 mandir=$ac_optarg ;; 925 926 -nfp | --nfp | --nf) 927 # Obsolete; use --without-fp. 928 with_fp=no ;; 929 930 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 931 | --no-cr | --no-c | -n) 932 no_create=yes ;; 933 934 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 935 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 936 no_recursion=yes ;; 937 938 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 939 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 940 | --oldin | --oldi | --old | --ol | --o) 941 ac_prev=oldincludedir ;; 942 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 943 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 944 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 945 oldincludedir=$ac_optarg ;; 946 947 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 948 ac_prev=prefix ;; 949 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 950 prefix=$ac_optarg ;; 951 952 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 953 | --program-pre | --program-pr | --program-p) 954 ac_prev=program_prefix ;; 955 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 956 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 957 program_prefix=$ac_optarg ;; 958 959 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 960 | --program-suf | --program-su | --program-s) 961 ac_prev=program_suffix ;; 962 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 963 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 964 program_suffix=$ac_optarg ;; 965 966 -program-transform-name | --program-transform-name \ 967 | --program-transform-nam | --program-transform-na \ 968 | --program-transform-n | --program-transform- \ 969 | --program-transform | --program-transfor \ 970 | --program-transfo | --program-transf \ 971 | --program-trans | --program-tran \ 972 | --progr-tra | --program-tr | --program-t) 973 ac_prev=program_transform_name ;; 974 -program-transform-name=* | --program-transform-name=* \ 975 | --program-transform-nam=* | --program-transform-na=* \ 976 | --program-transform-n=* | --program-transform-=* \ 977 | --program-transform=* | --program-transfor=* \ 978 | --program-transfo=* | --program-transf=* \ 979 | --program-trans=* | --program-tran=* \ 980 | --progr-tra=* | --program-tr=* | --program-t=*) 981 program_transform_name=$ac_optarg ;; 982 983 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 984 ac_prev=pdfdir ;; 985 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 986 pdfdir=$ac_optarg ;; 987 988 -psdir | --psdir | --psdi | --psd | --ps) 989 ac_prev=psdir ;; 990 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 991 psdir=$ac_optarg ;; 992 993 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 994 | -silent | --silent | --silen | --sile | --sil) 995 silent=yes ;; 996 997 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 998 ac_prev=sbindir ;; 999 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1000 | --sbi=* | --sb=*) 1001 sbindir=$ac_optarg ;; 1002 1003 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1004 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1005 | --sharedst | --shareds | --shared | --share | --shar \ 1006 | --sha | --sh) 1007 ac_prev=sharedstatedir ;; 1008 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1009 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1010 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1011 | --sha=* | --sh=*) 1012 sharedstatedir=$ac_optarg ;; 1013 1014 -site | --site | --sit) 1015 ac_prev=site ;; 1016 -site=* | --site=* | --sit=*) 1017 site=$ac_optarg ;; 1018 1019 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1020 ac_prev=srcdir ;; 1021 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1022 srcdir=$ac_optarg ;; 1023 1024 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1025 | --syscon | --sysco | --sysc | --sys | --sy) 1026 ac_prev=sysconfdir ;; 1027 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1028 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1029 sysconfdir=$ac_optarg ;; 1030 1031 -target | --target | --targe | --targ | --tar | --ta | --t) 1032 ac_prev=target_alias ;; 1033 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1034 target_alias=$ac_optarg ;; 1035 1036 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1037 verbose=yes ;; 1038 1039 -version | --version | --versio | --versi | --vers | -V) 1040 ac_init_version=: ;; 1041 1042 -with-* | --with-*) 1043 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1044 # Reject names that are not valid shell variable names. 1045 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1046 { echo "$as_me: error: invalid package name: $ac_package" >&2 1047 { (exit 1); exit 1; }; } 1048 ac_package=`echo $ac_package| sed 's/-/_/g'` 1049 eval with_$ac_package=\$ac_optarg ;; 1050 1051 -without-* | --without-*) 1052 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1053 # Reject names that are not valid shell variable names. 1054 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1055 { echo "$as_me: error: invalid package name: $ac_package" >&2 1056 { (exit 1); exit 1; }; } 1057 ac_package=`echo $ac_package | sed 's/-/_/g'` 1058 eval with_$ac_package=no ;; 1059 1060 --x) 1061 # Obsolete; use --with-x. 1062 with_x=yes ;; 1063 1064 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1065 | --x-incl | --x-inc | --x-in | --x-i) 1066 ac_prev=x_includes ;; 1067 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1068 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1069 x_includes=$ac_optarg ;; 1070 1071 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1072 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1073 ac_prev=x_libraries ;; 1074 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1075 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1076 x_libraries=$ac_optarg ;; 1077 1078 -*) { echo "$as_me: error: unrecognized option: $ac_option 1079Try \`$0 --help' for more information." >&2 1080 { (exit 1); exit 1; }; } 1081 ;; 1082 1083 *=*) 1084 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1085 # Reject names that are not valid shell variable names. 1086 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1087 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1088 { (exit 1); exit 1; }; } 1089 eval $ac_envvar=\$ac_optarg 1090 export $ac_envvar ;; 1091 1092 *) 1093 # FIXME: should be removed in autoconf 3.0. 1094 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1095 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1096 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1097 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1098 ;; 1099 1100 esac 1101done 1102 1103if test -n "$ac_prev"; then 1104 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1105 { echo "$as_me: error: missing argument to $ac_option" >&2 1106 { (exit 1); exit 1; }; } 1107fi 1108 1109# Be sure to have absolute directory names. 1110for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1111 datadir sysconfdir sharedstatedir localstatedir includedir \ 1112 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1113 libdir localedir mandir 1114do 1115 eval ac_val=\$$ac_var 1116 case $ac_val in 1117 [\\/$]* | ?:[\\/]* ) continue;; 1118 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1119 esac 1120 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1121 { (exit 1); exit 1; }; } 1122done 1123 1124# There might be people who depend on the old broken behavior: `$host' 1125# used to hold the argument of --host etc. 1126# FIXME: To remove some day. 1127build=$build_alias 1128host=$host_alias 1129target=$target_alias 1130 1131# FIXME: To remove some day. 1132if test "x$host_alias" != x; then 1133 if test "x$build_alias" = x; then 1134 cross_compiling=maybe 1135 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1136 If a cross compiler is detected then cross compile mode will be used." >&2 1137 elif test "x$build_alias" != "x$host_alias"; then 1138 cross_compiling=yes 1139 fi 1140fi 1141 1142ac_tool_prefix= 1143test -n "$host_alias" && ac_tool_prefix=$host_alias- 1144 1145test "$silent" = yes && exec 6>/dev/null 1146 1147 1148ac_pwd=`pwd` && test -n "$ac_pwd" && 1149ac_ls_di=`ls -di .` && 1150ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1151 { echo "$as_me: error: Working directory cannot be determined" >&2 1152 { (exit 1); exit 1; }; } 1153test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1154 { echo "$as_me: error: pwd does not report name of working directory" >&2 1155 { (exit 1); exit 1; }; } 1156 1157 1158# Find the source files, if location was not specified. 1159if test -z "$srcdir"; then 1160 ac_srcdir_defaulted=yes 1161 # Try the directory containing this script, then the parent directory. 1162 ac_confdir=`$as_dirname -- "$0" || 1163$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1164 X"$0" : 'X\(//\)[^/]' \| \ 1165 X"$0" : 'X\(//\)$' \| \ 1166 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1167echo X"$0" | 1168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1169 s//\1/ 1170 q 1171 } 1172 /^X\(\/\/\)[^/].*/{ 1173 s//\1/ 1174 q 1175 } 1176 /^X\(\/\/\)$/{ 1177 s//\1/ 1178 q 1179 } 1180 /^X\(\/\).*/{ 1181 s//\1/ 1182 q 1183 } 1184 s/.*/./; q'` 1185 srcdir=$ac_confdir 1186 if test ! -r "$srcdir/$ac_unique_file"; then 1187 srcdir=.. 1188 fi 1189else 1190 ac_srcdir_defaulted=no 1191fi 1192if test ! -r "$srcdir/$ac_unique_file"; then 1193 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1194 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1195 { (exit 1); exit 1; }; } 1196fi 1197ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1198ac_abs_confdir=`( 1199 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1200 { (exit 1); exit 1; }; } 1201 pwd)` 1202# When building in place, set srcdir=. 1203if test "$ac_abs_confdir" = "$ac_pwd"; then 1204 srcdir=. 1205fi 1206# Remove unnecessary trailing slashes from srcdir. 1207# Double slashes in file names in object file debugging info 1208# mess up M-x gdb in Emacs. 1209case $srcdir in 1210*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1211esac 1212for ac_var in $ac_precious_vars; do 1213 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1214 eval ac_env_${ac_var}_value=\$${ac_var} 1215 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1216 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1217done 1218 1219# 1220# Report the --help message. 1221# 1222if test "$ac_init_help" = "long"; then 1223 # Omit some internal or obsolete options to make the list less imposing. 1224 # This message is too long to be a string in the A/UX 3.1 sh. 1225 cat <<_ACEOF 1226\`configure' configures brutalchess 0.5 to adapt to many kinds of systems. 1227 1228Usage: $0 [OPTION]... [VAR=VALUE]... 1229 1230To assign environment variables (e.g., CC, CFLAGS...), specify them as 1231VAR=VALUE. See below for descriptions of some of the useful variables. 1232 1233Defaults for the options are specified in brackets. 1234 1235Configuration: 1236 -h, --help display this help and exit 1237 --help=short display options specific to this package 1238 --help=recursive display the short help of all the included packages 1239 -V, --version display version information and exit 1240 -q, --quiet, --silent do not print \`checking...' messages 1241 --cache-file=FILE cache test results in FILE [disabled] 1242 -C, --config-cache alias for \`--cache-file=config.cache' 1243 -n, --no-create do not create output files 1244 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1245 1246Installation directories: 1247 --prefix=PREFIX install architecture-independent files in PREFIX 1248 [$ac_default_prefix] 1249 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1250 [PREFIX] 1251 1252By default, \`make install' will install all the files in 1253\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1254an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1255for instance \`--prefix=\$HOME'. 1256 1257For better control, use the options below. 1258 1259Fine tuning of the installation directories: 1260 --bindir=DIR user executables [EPREFIX/bin] 1261 --sbindir=DIR system admin executables [EPREFIX/sbin] 1262 --libexecdir=DIR program executables [EPREFIX/libexec] 1263 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1264 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1265 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1266 --libdir=DIR object code libraries [EPREFIX/lib] 1267 --includedir=DIR C header files [PREFIX/include] 1268 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1269 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1270 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1271 --infodir=DIR info documentation [DATAROOTDIR/info] 1272 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1273 --mandir=DIR man documentation [DATAROOTDIR/man] 1274 --docdir=DIR documentation root [DATAROOTDIR/doc/brutalchess] 1275 --htmldir=DIR html documentation [DOCDIR] 1276 --dvidir=DIR dvi documentation [DOCDIR] 1277 --pdfdir=DIR pdf documentation [DOCDIR] 1278 --psdir=DIR ps documentation [DOCDIR] 1279_ACEOF 1280 1281 cat <<\_ACEOF 1282 1283Program names: 1284 --program-prefix=PREFIX prepend PREFIX to installed program names 1285 --program-suffix=SUFFIX append SUFFIX to installed program names 1286 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1287 1288X features: 1289 --x-includes=DIR X include files are in DIR 1290 --x-libraries=DIR X library files are in DIR 1291 1292System types: 1293 --build=BUILD configure for building on BUILD [guessed] 1294 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1295_ACEOF 1296fi 1297 1298if test -n "$ac_init_help"; then 1299 case $ac_init_help in 1300 short | recursive ) echo "Configuration of brutalchess 0.5:";; 1301 esac 1302 cat <<\_ACEOF 1303 1304Optional Features: 1305 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1306 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1307 --disable-dependency-tracking speeds up one-time build 1308 --enable-dependency-tracking do not reject slow dependency extractors 1309 --disable-sdltest Do not try to compile and run a test SDL program 1310 --disable-freetypetest Do not try to compile and run a test FreeType 1311 program 1312 1313Optional Packages: 1314 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1315 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1316 --with-x use the X Window System 1317 --with-sdl-prefix=PFX Prefix where SDL is installed (optional) 1318 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) 1319 --with-ft-prefix=PREFIX Prefix where FreeType is installed (optional) 1320 --with-ft-exec-prefix=PREFIX 1321 Exec prefix where FreeType is installed (optional) 1322 1323Some influential environment variables: 1324 CXX C++ compiler command 1325 CXXFLAGS C++ compiler flags 1326 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1327 nonstandard directory <lib dir> 1328 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1329 you have headers in a nonstandard directory <include dir> 1330 CC C compiler command 1331 CFLAGS C compiler flags 1332 CPP C preprocessor 1333 XMKMF Path to xmkmf, Makefile generator for X Window System 1334 1335Use these variables to override the choices made by `configure' or to help 1336it to find libraries and programs with nonstandard names/locations. 1337 1338Report bugs to <brutalchess-devel@lists.sourceforge.net>. 1339_ACEOF 1340ac_status=$? 1341fi 1342 1343if test "$ac_init_help" = "recursive"; then 1344 # If there are subdirs, report their specific --help. 1345 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1346 test -d "$ac_dir" || continue 1347 ac_builddir=. 1348 1349case "$ac_dir" in 1350.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1351*) 1352 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1353 # A ".." for each directory in $ac_dir_suffix. 1354 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1355 case $ac_top_builddir_sub in 1356 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1357 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1358 esac ;; 1359esac 1360ac_abs_top_builddir=$ac_pwd 1361ac_abs_builddir=$ac_pwd$ac_dir_suffix 1362# for backward compatibility: 1363ac_top_builddir=$ac_top_build_prefix 1364 1365case $srcdir in 1366 .) # We are building in place. 1367 ac_srcdir=. 1368 ac_top_srcdir=$ac_top_builddir_sub 1369 ac_abs_top_srcdir=$ac_pwd ;; 1370 [\\/]* | ?:[\\/]* ) # Absolute name. 1371 ac_srcdir=$srcdir$ac_dir_suffix; 1372 ac_top_srcdir=$srcdir 1373 ac_abs_top_srcdir=$srcdir ;; 1374 *) # Relative name. 1375 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1376 ac_top_srcdir=$ac_top_build_prefix$srcdir 1377 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1378esac 1379ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1380 1381 cd "$ac_dir" || { ac_status=$?; continue; } 1382 # Check for guested configure. 1383 if test -f "$ac_srcdir/configure.gnu"; then 1384 echo && 1385 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1386 elif test -f "$ac_srcdir/configure"; then 1387 echo && 1388 $SHELL "$ac_srcdir/configure" --help=recursive 1389 else 1390 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1391 fi || ac_status=$? 1392 cd "$ac_pwd" || { ac_status=$?; break; } 1393 done 1394fi 1395 1396test -n "$ac_init_help" && exit $ac_status 1397if $ac_init_version; then 1398 cat <<\_ACEOF 1399brutalchess configure 0.5 1400generated by GNU Autoconf 2.60 1401 1402Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 14032002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1404This configure script is free software; the Free Software Foundation 1405gives unlimited permission to copy, distribute and modify it. 1406_ACEOF 1407 exit 1408fi 1409cat >config.log <<_ACEOF 1410This file contains any messages produced by compilers while 1411running configure, to aid debugging if configure makes a mistake. 1412 1413It was created by brutalchess $as_me 0.5, which was 1414generated by GNU Autoconf 2.60. Invocation command line was 1415 1416 $ $0 $@ 1417 1418_ACEOF 1419exec 5>>config.log 1420{ 1421cat <<_ASUNAME 1422## --------- ## 1423## Platform. ## 1424## --------- ## 1425 1426hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1427uname -m = `(uname -m) 2>/dev/null || echo unknown` 1428uname -r = `(uname -r) 2>/dev/null || echo unknown` 1429uname -s = `(uname -s) 2>/dev/null || echo unknown` 1430uname -v = `(uname -v) 2>/dev/null || echo unknown` 1431 1432/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1433/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1434 1435/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1436/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1437/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1438/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1439/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1440/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1441/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1442 1443_ASUNAME 1444 1445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1446for as_dir in $PATH 1447do 1448 IFS=$as_save_IFS 1449 test -z "$as_dir" && as_dir=. 1450 echo "PATH: $as_dir" 1451done 1452IFS=$as_save_IFS 1453 1454} >&5 1455 1456cat >&5 <<_ACEOF 1457 1458 1459## ----------- ## 1460## Core tests. ## 1461## ----------- ## 1462 1463_ACEOF 1464 1465 1466# Keep a trace of the command line. 1467# Strip out --no-create and --no-recursion so they do not pile up. 1468# Strip out --silent because we don't want to record it for future runs. 1469# Also quote any args containing shell meta-characters. 1470# Make two passes to allow for proper duplicate-argument suppression. 1471ac_configure_args= 1472ac_configure_args0= 1473ac_configure_args1= 1474ac_must_keep_next=false 1475for ac_pass in 1 2 1476do 1477 for ac_arg 1478 do 1479 case $ac_arg in 1480 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1481 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1482 | -silent | --silent | --silen | --sile | --sil) 1483 continue ;; 1484 *\'*) 1485 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1486 esac 1487 case $ac_pass in 1488 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1489 2) 1490 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1491 if test $ac_must_keep_next = true; then 1492 ac_must_keep_next=false # Got value, back to normal. 1493 else 1494 case $ac_arg in 1495 *=* | --config-cache | -C | -disable-* | --disable-* \ 1496 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1497 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1498 | -with-* | --with-* | -without-* | --without-* | --x) 1499 case "$ac_configure_args0 " in 1500 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1501 esac 1502 ;; 1503 -* ) ac_must_keep_next=true ;; 1504 esac 1505 fi 1506 ac_configure_args="$ac_configure_args '$ac_arg'" 1507 ;; 1508 esac 1509 done 1510done 1511$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1512$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1513 1514# When interrupted or exit'd, cleanup temporary files, and complete 1515# config.log. We remove comments because anyway the quotes in there 1516# would cause problems or look ugly. 1517# WARNING: Use '\'' to represent an apostrophe within the trap. 1518# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1519trap 'exit_status=$? 1520 # Save into config.log some information that might help in debugging. 1521 { 1522 echo 1523 1524 cat <<\_ASBOX 1525## ---------------- ## 1526## Cache variables. ## 1527## ---------------- ## 1528_ASBOX 1529 echo 1530 # The following way of writing the cache mishandles newlines in values, 1531( 1532 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1533 eval ac_val=\$$ac_var 1534 case $ac_val in #( 1535 *${as_nl}*) 1536 case $ac_var in #( 1537 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1538echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1539 esac 1540 case $ac_var in #( 1541 _ | IFS | as_nl) ;; #( 1542 *) $as_unset $ac_var ;; 1543 esac ;; 1544 esac 1545 done 1546 (set) 2>&1 | 1547 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1548 *${as_nl}ac_space=\ *) 1549 sed -n \ 1550 "s/'\''/'\''\\\\'\'''\''/g; 1551 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1552 ;; #( 1553 *) 1554 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1555 ;; 1556 esac | 1557 sort 1558) 1559 echo 1560 1561 cat <<\_ASBOX 1562## ----------------- ## 1563## Output variables. ## 1564## ----------------- ## 1565_ASBOX 1566 echo 1567 for ac_var in $ac_subst_vars 1568 do 1569 eval ac_val=\$$ac_var 1570 case $ac_val in 1571 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1572 esac 1573 echo "$ac_var='\''$ac_val'\''" 1574 done | sort 1575 echo 1576 1577 if test -n "$ac_subst_files"; then 1578 cat <<\_ASBOX 1579## ------------------- ## 1580## File substitutions. ## 1581## ------------------- ## 1582_ASBOX 1583 echo 1584 for ac_var in $ac_subst_files 1585 do 1586 eval ac_val=\$$ac_var 1587 case $ac_val in 1588 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1589 esac 1590 echo "$ac_var='\''$ac_val'\''" 1591 done | sort 1592 echo 1593 fi 1594 1595 if test -s confdefs.h; then 1596 cat <<\_ASBOX 1597## ----------- ## 1598## confdefs.h. ## 1599## ----------- ## 1600_ASBOX 1601 echo 1602 cat confdefs.h 1603 echo 1604 fi 1605 test "$ac_signal" != 0 && 1606 echo "$as_me: caught signal $ac_signal" 1607 echo "$as_me: exit $exit_status" 1608 } >&5 1609 rm -f core *.core core.conftest.* && 1610 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1611 exit $exit_status 1612' 0 1613for ac_signal in 1 2 13 15; do 1614 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1615done 1616ac_signal=0 1617 1618# confdefs.h avoids OS command line length limits that DEFS can exceed. 1619rm -f -r conftest* confdefs.h 1620 1621# Predefined preprocessor variables. 1622 1623cat >>confdefs.h <<_ACEOF 1624#define PACKAGE_NAME "$PACKAGE_NAME" 1625_ACEOF 1626 1627 1628cat >>confdefs.h <<_ACEOF 1629#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1630_ACEOF 1631 1632 1633cat >>confdefs.h <<_ACEOF 1634#define PACKAGE_VERSION "$PACKAGE_VERSION" 1635_ACEOF 1636 1637 1638cat >>confdefs.h <<_ACEOF 1639#define PACKAGE_STRING "$PACKAGE_STRING" 1640_ACEOF 1641 1642 1643cat >>confdefs.h <<_ACEOF 1644#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1645_ACEOF 1646 1647 1648# Let the site file select an alternate cache file if it wants to. 1649# Prefer explicitly selected file to automatically selected ones. 1650if test -n "$CONFIG_SITE"; then 1651 set x "$CONFIG_SITE" 1652elif test "x$prefix" != xNONE; then 1653 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1654else 1655 set x "$ac_default_prefix/share/config.site" \ 1656 "$ac_default_prefix/etc/config.site" 1657fi 1658shift 1659for ac_site_file 1660do 1661 if test -r "$ac_site_file"; then 1662 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1663echo "$as_me: loading site script $ac_site_file" >&6;} 1664 sed 's/^/| /' "$ac_site_file" >&5 1665 . "$ac_site_file" 1666 fi 1667done 1668 1669if test -r "$cache_file"; then 1670 # Some versions of bash will fail to source /dev/null (special 1671 # files actually), so we avoid doing that. 1672 if test -f "$cache_file"; then 1673 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1674echo "$as_me: loading cache $cache_file" >&6;} 1675 case $cache_file in 1676 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1677 *) . "./$cache_file";; 1678 esac 1679 fi 1680else 1681 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1682echo "$as_me: creating cache $cache_file" >&6;} 1683 >$cache_file 1684fi 1685 1686# Check that the precious variables saved in the cache have kept the same 1687# value. 1688ac_cache_corrupted=false 1689for ac_var in $ac_precious_vars; do 1690 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1691 eval ac_new_set=\$ac_env_${ac_var}_set 1692 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1693 eval ac_new_val=\$ac_env_${ac_var}_value 1694 case $ac_old_set,$ac_new_set in 1695 set,) 1696 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1697echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1698 ac_cache_corrupted=: ;; 1699 ,set) 1700 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1701echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1702 ac_cache_corrupted=: ;; 1703 ,);; 1704 *) 1705 if test "x$ac_old_val" != "x$ac_new_val"; then 1706 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1707echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1708 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1709echo "$as_me: former value: $ac_old_val" >&2;} 1710 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1711echo "$as_me: current value: $ac_new_val" >&2;} 1712 ac_cache_corrupted=: 1713 fi;; 1714 esac 1715 # Pass precious variables to config.status. 1716 if test "$ac_new_set" = set; then 1717 case $ac_new_val in 1718 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1719 *) ac_arg=$ac_var=$ac_new_val ;; 1720 esac 1721 case " $ac_configure_args " in 1722 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1723 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1724 esac 1725 fi 1726done 1727if $ac_cache_corrupted; then 1728 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1729echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1730 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1731echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1732 { (exit 1); exit 1; }; } 1733fi 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759ac_ext=c 1760ac_cpp='$CPP $CPPFLAGS' 1761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1763ac_compiler_gnu=$ac_cv_c_compiler_gnu 1764 1765 1766 1767ac_config_headers="$ac_config_headers src/config.h" 1768 1769 1770# Check the host to determine OS 1771ac_aux_dir= 1772for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1773 if test -f "$ac_dir/install-sh"; then 1774 ac_aux_dir=$ac_dir 1775 ac_install_sh="$ac_aux_dir/install-sh -c" 1776 break 1777 elif test -f "$ac_dir/install.sh"; then 1778 ac_aux_dir=$ac_dir 1779 ac_install_sh="$ac_aux_dir/install.sh -c" 1780 break 1781 elif test -f "$ac_dir/shtool"; then 1782 ac_aux_dir=$ac_dir 1783 ac_install_sh="$ac_aux_dir/shtool install -c" 1784 break 1785 fi 1786done 1787if test -z "$ac_aux_dir"; then 1788 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1789echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1790 { (exit 1); exit 1; }; } 1791fi 1792 1793# These three variables are undocumented and unsupported, 1794# and are intended to be withdrawn in a future Autoconf release. 1795# They can cause serious problems if a builder's source tree is in a directory 1796# whose full name contains unusual characters. 1797ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1798ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1799ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1800 1801 1802# Make sure we can run config.sub. 1803$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 1804 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 1805echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 1806 { (exit 1); exit 1; }; } 1807 1808{ echo "$as_me:$LINENO: checking build system type" >&5 1809echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 1810if test "${ac_cv_build+set}" = set; then 1811 echo $ECHO_N "(cached) $ECHO_C" >&6 1812else 1813 ac_build_alias=$build_alias 1814test "x$ac_build_alias" = x && 1815 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 1816test "x$ac_build_alias" = x && 1817 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1818echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1819 { (exit 1); exit 1; }; } 1820ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 1821 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 1822echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 1823 { (exit 1); exit 1; }; } 1824 1825fi 1826{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1827echo "${ECHO_T}$ac_cv_build" >&6; } 1828case $ac_cv_build in 1829*-*-*) ;; 1830*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 1831echo "$as_me: error: invalid value of canonical build" >&2;} 1832 { (exit 1); exit 1; }; };; 1833esac 1834build=$ac_cv_build 1835ac_save_IFS=$IFS; IFS='-' 1836set x $ac_cv_build 1837shift 1838build_cpu=$1 1839build_vendor=$2 1840shift; shift 1841# Remember, the first character of IFS is used to create $*, 1842# except with old shells: 1843build_os=$* 1844IFS=$ac_save_IFS 1845case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 1846 1847 1848{ echo "$as_me:$LINENO: checking host system type" >&5 1849echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 1850if test "${ac_cv_host+set}" = set; then 1851 echo $ECHO_N "(cached) $ECHO_C" >&6 1852else 1853 if test "x$host_alias" = x; then 1854 ac_cv_host=$ac_cv_build 1855else 1856 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 1857 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 1858echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 1859 { (exit 1); exit 1; }; } 1860fi 1861 1862fi 1863{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1864echo "${ECHO_T}$ac_cv_host" >&6; } 1865case $ac_cv_host in 1866*-*-*) ;; 1867*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 1868echo "$as_me: error: invalid value of canonical host" >&2;} 1869 { (exit 1); exit 1; }; };; 1870esac 1871host=$ac_cv_host 1872ac_save_IFS=$IFS; IFS='-' 1873set x $ac_cv_host 1874shift 1875host_cpu=$1 1876host_vendor=$2 1877shift; shift 1878# Remember, the first character of IFS is used to create $*, 1879# except with old shells: 1880host_os=$* 1881IFS=$ac_save_IFS 1882case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 1883 1884 1885 1886am__api_version="1.8" 1887# Find a good install program. We prefer a C program (faster), 1888# so one script is as good as another. But avoid the broken or 1889# incompatible versions: 1890# SysV /etc/install, /usr/sbin/install 1891# SunOS /usr/etc/install 1892# IRIX /sbin/install 1893# AIX /bin/install 1894# AmigaOS /C/install, which installs bootblocks on floppy discs 1895# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1896# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1897# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1898# OS/2's system install, which has a completely different semantic 1899# ./install, which can be erroneously created by make from ./install.sh. 1900{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1901echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1902if test -z "$INSTALL"; then 1903if test "${ac_cv_path_install+set}" = set; then 1904 echo $ECHO_N "(cached) $ECHO_C" >&6 1905else 1906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1907for as_dir in $PATH 1908do 1909 IFS=$as_save_IFS 1910 test -z "$as_dir" && as_dir=. 1911 # Account for people who put trailing slashes in PATH elements. 1912case $as_dir/ in 1913 ./ | .// | /cC/* | \ 1914 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1915 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1916 /usr/ucb/* ) ;; 1917 *) 1918 # OSF1 and SCO ODT 3.0 have their own names for install. 1919 # Don't use installbsd from OSF since it installs stuff as root 1920 # by default. 1921 for ac_prog in ginstall scoinst install; do 1922 for ac_exec_ext in '' $ac_executable_extensions; do 1923 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 1924 if test $ac_prog = install && 1925 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1926 # AIX install. It has an incompatible calling convention. 1927 : 1928 elif test $ac_prog = install && 1929 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1930 # program-specific install script used by HP pwplus--don't use. 1931 : 1932 else 1933 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1934 break 3 1935 fi 1936 fi 1937 done 1938 done 1939 ;; 1940esac 1941done 1942IFS=$as_save_IFS 1943 1944 1945fi 1946 if test "${ac_cv_path_install+set}" = set; then 1947 INSTALL=$ac_cv_path_install 1948 else 1949 # As a last resort, use the slow shell script. Don't cache a 1950 # value for INSTALL within a source directory, because that will 1951 # break other packages using the cache if that directory is 1952 # removed, or if the value is a relative name. 1953 INSTALL=$ac_install_sh 1954 fi 1955fi 1956{ echo "$as_me:$LINENO: result: $INSTALL" >&5 1957echo "${ECHO_T}$INSTALL" >&6; } 1958 1959# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1960# It thinks the first close brace ends the variable substitution. 1961test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1962 1963test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1964 1965test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1966 1967{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1968echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 1969# Just in case 1970sleep 1 1971echo timestamp > conftest.file 1972# Do `set' in a subshell so we don't clobber the current shell's 1973# arguments. Must try -L first in case configure is actually a 1974# symlink; some systems play weird games with the mod time of symlinks 1975# (eg FreeBSD returns the mod time of the symlink's containing 1976# directory). 1977if ( 1978 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1979 if test "$*" = "X"; then 1980 # -L didn't work. 1981 set X `ls -t $srcdir/configure conftest.file` 1982 fi 1983 rm -f conftest.file 1984 if test "$*" != "X $srcdir/configure conftest.file" \ 1985 && test "$*" != "X conftest.file $srcdir/configure"; then 1986 1987 # If neither matched, then we have a broken ls. This can happen 1988 # if, for instance, CONFIG_SHELL is bash and it inherits a 1989 # broken ls alias from the environment. This has actually 1990 # happened. Such a system could not be considered "sane". 1991 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1992alias in your environment" >&5 1993echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1994alias in your environment" >&2;} 1995 { (exit 1); exit 1; }; } 1996 fi 1997 1998 test "$2" = conftest.file 1999 ) 2000then 2001 # Ok. 2002 : 2003else 2004 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2005Check your system clock" >&5 2006echo "$as_me: error: newly created file is older than distributed files! 2007Check your system clock" >&2;} 2008 { (exit 1); exit 1; }; } 2009fi 2010{ echo "$as_me:$LINENO: result: yes" >&5 2011echo "${ECHO_T}yes" >&6; } 2012test "$program_prefix" != NONE && 2013 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2014# Use a double $ so make ignores it. 2015test "$program_suffix" != NONE && 2016 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2017# Double any \ or $. echo might interpret backslashes. 2018# By default was `s,x,x', remove it if useless. 2019cat <<\_ACEOF >conftest.sed 2020s/[\\$]/&&/g;s/;s,x,x,$// 2021_ACEOF 2022program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2023rm -f conftest.sed 2024 2025# expand $ac_aux_dir to an absolute path 2026am_aux_dir=`cd $ac_aux_dir && pwd` 2027 2028test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2029# Use eval to expand $SHELL 2030if eval "$MISSING --run true"; then 2031 am_missing_run="$MISSING --run " 2032else 2033 am_missing_run= 2034 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2035echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2036fi 2037 2038if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2039 # Keeping the `.' argument allows $(mkdir_p) to be used without 2040 # argument. Indeed, we sometimes output rules like 2041 # $(mkdir_p) $(somedir) 2042 # where $(somedir) is conditionally defined. 2043 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more 2044 # expensive solution, as it forces Make to start a sub-shell.) 2045 mkdir_p='mkdir -p -- .' 2046else 2047 # On NextStep and OpenStep, the `mkdir' command does not 2048 # recognize any option. It will interpret all options as 2049 # directories to create, and then abort because `.' already 2050 # exists. 2051 for d in ./-p ./--version; 2052 do 2053 test -d $d && rmdir $d 2054 done 2055 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2056 if test -f "$ac_aux_dir/mkinstalldirs"; then 2057 mkdir_p='$(mkinstalldirs)' 2058 else 2059 mkdir_p='$(install_sh) -d' 2060 fi 2061fi 2062 2063for ac_prog in gawk mawk nawk awk 2064do 2065 # Extract the first word of "$ac_prog", so it can be a program name with args. 2066set dummy $ac_prog; ac_word=$2 2067{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2069if test "${ac_cv_prog_AWK+set}" = set; then 2070 echo $ECHO_N "(cached) $ECHO_C" >&6 2071else 2072 if test -n "$AWK"; then 2073 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2074else 2075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2076for as_dir in $PATH 2077do 2078 IFS=$as_save_IFS 2079 test -z "$as_dir" && as_dir=. 2080 for ac_exec_ext in '' $ac_executable_extensions; do 2081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2082 ac_cv_prog_AWK="$ac_prog" 2083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2084 break 2 2085 fi 2086done 2087done 2088IFS=$as_save_IFS 2089 2090fi 2091fi 2092AWK=$ac_cv_prog_AWK 2093if test -n "$AWK"; then 2094 { echo "$as_me:$LINENO: result: $AWK" >&5 2095echo "${ECHO_T}$AWK" >&6; } 2096else 2097 { echo "$as_me:$LINENO: result: no" >&5 2098echo "${ECHO_T}no" >&6; } 2099fi 2100 2101 2102 test -n "$AWK" && break 2103done 2104 2105{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2106echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2107set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2108if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2109 echo $ECHO_N "(cached) $ECHO_C" >&6 2110else 2111 cat >conftest.make <<\_ACEOF 2112SHELL = /bin/sh 2113all: 2114 @echo '@@@%%%=$(MAKE)=@@@%%%' 2115_ACEOF 2116# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2117case `${MAKE-make} -f conftest.make 2>/dev/null` in 2118 *@@@%%%=?*=@@@%%%*) 2119 eval ac_cv_prog_make_${ac_make}_set=yes;; 2120 *) 2121 eval ac_cv_prog_make_${ac_make}_set=no;; 2122esac 2123rm -f conftest.make 2124fi 2125if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2126 { echo "$as_me:$LINENO: result: yes" >&5 2127echo "${ECHO_T}yes" >&6; } 2128 SET_MAKE= 2129else 2130 { echo "$as_me:$LINENO: result: no" >&5 2131echo "${ECHO_T}no" >&6; } 2132 SET_MAKE="MAKE=${MAKE-make}" 2133fi 2134 2135rm -rf .tst 2>/dev/null 2136mkdir .tst 2>/dev/null 2137if test -d .tst; then 2138 am__leading_dot=. 2139else 2140 am__leading_dot=_ 2141fi 2142rmdir .tst 2>/dev/null 2143 2144# test to see if srcdir already configured 2145if test "`cd $srcdir && pwd`" != "`pwd`" && 2146 test -f $srcdir/config.status; then 2147 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2148echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2149 { (exit 1); exit 1; }; } 2150fi 2151 2152# test whether we have cygpath 2153if test -z "$CYGPATH_W"; then 2154 if (cygpath --version) >/dev/null 2>/dev/null; then 2155 CYGPATH_W='cygpath -w' 2156 else 2157 CYGPATH_W=echo 2158 fi 2159fi 2160 2161 2162# Define the identity of the package. 2163 PACKAGE='brutalchess' 2164 VERSION='0.5' 2165 2166 2167cat >>confdefs.h <<_ACEOF 2168#define PACKAGE "$PACKAGE" 2169_ACEOF 2170 2171 2172cat >>confdefs.h <<_ACEOF 2173#define VERSION "$VERSION" 2174_ACEOF 2175 2176# Some tools Automake needs. 2177 2178ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2179 2180 2181AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2182 2183 2184AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2185 2186 2187AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2188 2189 2190MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2191 2192 2193AMTAR=${AMTAR-"${am_missing_run}tar"} 2194 2195install_sh=${install_sh-"$am_aux_dir/install-sh"} 2196 2197# Installed binaries are usually stripped using `strip' when the user 2198# run `make install-strip'. However `strip' might not be the right 2199# tool to use in cross-compilation environments, therefore Automake 2200# will honor the `STRIP' environment variable to overrule this program. 2201if test "$cross_compiling" != no; then 2202 if test -n "$ac_tool_prefix"; then 2203 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2204set dummy ${ac_tool_prefix}strip; ac_word=$2 2205{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2207if test "${ac_cv_prog_STRIP+set}" = set; then 2208 echo $ECHO_N "(cached) $ECHO_C" >&6 2209else 2210 if test -n "$STRIP"; then 2211 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2212else 2213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2214for as_dir in $PATH 2215do 2216 IFS=$as_save_IFS 2217 test -z "$as_dir" && as_dir=. 2218 for ac_exec_ext in '' $ac_executable_extensions; do 2219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2220 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2222 break 2 2223 fi 2224done 2225done 2226IFS=$as_save_IFS 2227 2228fi 2229fi 2230STRIP=$ac_cv_prog_STRIP 2231if test -n "$STRIP"; then 2232 { echo "$as_me:$LINENO: result: $STRIP" >&5 2233echo "${ECHO_T}$STRIP" >&6; } 2234else 2235 { echo "$as_me:$LINENO: result: no" >&5 2236echo "${ECHO_T}no" >&6; } 2237fi 2238 2239 2240fi 2241if test -z "$ac_cv_prog_STRIP"; then 2242 ac_ct_STRIP=$STRIP 2243 # Extract the first word of "strip", so it can be a program name with args. 2244set dummy strip; ac_word=$2 2245{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2247if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2248 echo $ECHO_N "(cached) $ECHO_C" >&6 2249else 2250 if test -n "$ac_ct_STRIP"; then 2251 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2252else 2253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2254for as_dir in $PATH 2255do 2256 IFS=$as_save_IFS 2257 test -z "$as_dir" && as_dir=. 2258 for ac_exec_ext in '' $ac_executable_extensions; do 2259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2260 ac_cv_prog_ac_ct_STRIP="strip" 2261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2262 break 2 2263 fi 2264done 2265done 2266IFS=$as_save_IFS 2267 2268fi 2269fi 2270ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2271if test -n "$ac_ct_STRIP"; then 2272 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2273echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2274else 2275 { echo "$as_me:$LINENO: result: no" >&5 2276echo "${ECHO_T}no" >&6; } 2277fi 2278 2279 if test "x$ac_ct_STRIP" = x; then 2280 STRIP=":" 2281 else 2282 case $cross_compiling:$ac_tool_warned in 2283yes:) 2284{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2285whose name does not start with the host triplet. If you think this 2286configuration is useful to you, please write to autoconf@gnu.org." >&5 2287echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2288whose name does not start with the host triplet. If you think this 2289configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2290ac_tool_warned=yes ;; 2291esac 2292 STRIP=$ac_ct_STRIP 2293 fi 2294else 2295 STRIP="$ac_cv_prog_STRIP" 2296fi 2297 2298fi 2299INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2300 2301# We need awk for the "check" target. The system "awk" is bad on 2302# some platforms. 2303 2304 2305 2306 2307# Checks for programs. 2308ac_ext=cpp 2309ac_cpp='$CXXCPP $CPPFLAGS' 2310ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2311ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2312ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2313if test -z "$CXX"; then 2314 if test -n "$CCC"; then 2315 CXX=$CCC 2316 else 2317 if test -n "$ac_tool_prefix"; then 2318 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2319 do 2320 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2321set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2322{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2324if test "${ac_cv_prog_CXX+set}" = set; then 2325 echo $ECHO_N "(cached) $ECHO_C" >&6 2326else 2327 if test -n "$CXX"; then 2328 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2329else 2330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2331for as_dir in $PATH 2332do 2333 IFS=$as_save_IFS 2334 test -z "$as_dir" && as_dir=. 2335 for ac_exec_ext in '' $ac_executable_extensions; do 2336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2337 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2339 break 2 2340 fi 2341done 2342done 2343IFS=$as_save_IFS 2344 2345fi 2346fi 2347CXX=$ac_cv_prog_CXX 2348if test -n "$CXX"; then 2349 { echo "$as_me:$LINENO: result: $CXX" >&5 2350echo "${ECHO_T}$CXX" >&6; } 2351else 2352 { echo "$as_me:$LINENO: result: no" >&5 2353echo "${ECHO_T}no" >&6; } 2354fi 2355 2356 2357 test -n "$CXX" && break 2358 done 2359fi 2360if test -z "$CXX"; then 2361 ac_ct_CXX=$CXX 2362 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2363do 2364 # Extract the first word of "$ac_prog", so it can be a program name with args. 2365set dummy $ac_prog; ac_word=$2 2366{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2368if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2369 echo $ECHO_N "(cached) $ECHO_C" >&6 2370else 2371 if test -n "$ac_ct_CXX"; then 2372 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2373else 2374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2375for as_dir in $PATH 2376do 2377 IFS=$as_save_IFS 2378 test -z "$as_dir" && as_dir=. 2379 for ac_exec_ext in '' $ac_executable_extensions; do 2380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2381 ac_cv_prog_ac_ct_CXX="$ac_prog" 2382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2383 break 2 2384 fi 2385done 2386done 2387IFS=$as_save_IFS 2388 2389fi 2390fi 2391ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2392if test -n "$ac_ct_CXX"; then 2393 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2394echo "${ECHO_T}$ac_ct_CXX" >&6; } 2395else 2396 { echo "$as_me:$LINENO: result: no" >&5 2397echo "${ECHO_T}no" >&6; } 2398fi 2399 2400 2401 test -n "$ac_ct_CXX" && break 2402done 2403 2404 if test "x$ac_ct_CXX" = x; then 2405 CXX="g++" 2406 else 2407 case $cross_compiling:$ac_tool_warned in 2408yes:) 2409{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2410whose name does not start with the host triplet. If you think this 2411configuration is useful to you, please write to autoconf@gnu.org." >&5 2412echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2413whose name does not start with the host triplet. If you think this 2414configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2415ac_tool_warned=yes ;; 2416esac 2417 CXX=$ac_ct_CXX 2418 fi 2419fi 2420 2421 fi 2422fi 2423# Provide some information about the compiler. 2424echo "$as_me:$LINENO: checking for C++ compiler version" >&5 2425ac_compiler=`set X $ac_compile; echo $2` 2426{ (ac_try="$ac_compiler --version >&5" 2427case "(($ac_try" in 2428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2429 *) ac_try_echo=$ac_try;; 2430esac 2431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2432 (eval "$ac_compiler --version >&5") 2>&5 2433 ac_status=$? 2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2435 (exit $ac_status); } 2436{ (ac_try="$ac_compiler -v >&5" 2437case "(($ac_try" in 2438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2439 *) ac_try_echo=$ac_try;; 2440esac 2441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2442 (eval "$ac_compiler -v >&5") 2>&5 2443 ac_status=$? 2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2445 (exit $ac_status); } 2446{ (ac_try="$ac_compiler -V >&5" 2447case "(($ac_try" in 2448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2449 *) ac_try_echo=$ac_try;; 2450esac 2451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2452 (eval "$ac_compiler -V >&5") 2>&5 2453 ac_status=$? 2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2455 (exit $ac_status); } 2456 2457cat >conftest.$ac_ext <<_ACEOF 2458/* confdefs.h. */ 2459_ACEOF 2460cat confdefs.h >>conftest.$ac_ext 2461cat >>conftest.$ac_ext <<_ACEOF 2462/* end confdefs.h. */ 2463 2464int 2465main () 2466{ 2467 2468 ; 2469 return 0; 2470} 2471_ACEOF 2472ac_clean_files_save=$ac_clean_files 2473ac_clean_files="$ac_clean_files a.out a.exe b.out" 2474# Try to create an executable without -o first, disregard a.out. 2475# It will help us diagnose broken compilers, and finding out an intuition 2476# of exeext. 2477{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 2478echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; } 2479ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2480# 2481# List of possible output files, starting from the most likely. 2482# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2483# only as a last resort. b.out is created by i960 compilers. 2484ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2485# 2486# The IRIX 6 linker writes into existing files which may not be 2487# executable, retaining their permissions. Remove them first so a 2488# subsequent execution test works. 2489ac_rmfiles= 2490for ac_file in $ac_files 2491do 2492 case $ac_file in 2493 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2494 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2495 esac 2496done 2497rm -f $ac_rmfiles 2498 2499if { (ac_try="$ac_link_default" 2500case "(($ac_try" in 2501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2502 *) ac_try_echo=$ac_try;; 2503esac 2504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2505 (eval "$ac_link_default") 2>&5 2506 ac_status=$? 2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2508 (exit $ac_status); }; then 2509 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2510# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2511# in a Makefile. We should not override ac_cv_exeext if it was cached, 2512# so that the user can short-circuit this test for compilers unknown to 2513# Autoconf. 2514for ac_file in $ac_files 2515do 2516 test -f "$ac_file" || continue 2517 case $ac_file in 2518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2519 ;; 2520 [ab].out ) 2521 # We found the default executable, but exeext='' is most 2522 # certainly right. 2523 break;; 2524 *.* ) 2525 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2526 then :; else 2527 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2528 fi 2529 # We set ac_cv_exeext here because the later test for it is not 2530 # safe: cross compilers may not add the suffix if given an `-o' 2531 # argument, so we may need to know it at that point already. 2532 # Even if this section looks crufty: it has the advantage of 2533 # actually working. 2534 break;; 2535 * ) 2536 break;; 2537 esac 2538done 2539test "$ac_cv_exeext" = no && ac_cv_exeext= 2540 2541else 2542 echo "$as_me: failed program was:" >&5 2543sed 's/^/| /' conftest.$ac_ext >&5 2544 2545{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables 2546See \`config.log' for more details." >&5 2547echo "$as_me: error: C++ compiler cannot create executables 2548See \`config.log' for more details." >&2;} 2549 { (exit 77); exit 77; }; } 2550fi 2551 2552ac_exeext=$ac_cv_exeext 2553{ echo "$as_me:$LINENO: result: $ac_file" >&5 2554echo "${ECHO_T}$ac_file" >&6; } 2555 2556# Check that the compiler produces executables we can run. If not, either 2557# the compiler is broken, or we cross compile. 2558{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 2559echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; } 2560# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2561# If not cross compiling, check that we can run a simple program. 2562if test "$cross_compiling" != yes; then 2563 if { ac_try='./$ac_file' 2564 { (case "(($ac_try" in 2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2566 *) ac_try_echo=$ac_try;; 2567esac 2568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2569 (eval "$ac_try") 2>&5 2570 ac_status=$? 2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2572 (exit $ac_status); }; }; then 2573 cross_compiling=no 2574 else 2575 if test "$cross_compiling" = maybe; then 2576 cross_compiling=yes 2577 else 2578 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. 2579If you meant to cross compile, use \`--host'. 2580See \`config.log' for more details." >&5 2581echo "$as_me: error: cannot run C++ compiled programs. 2582If you meant to cross compile, use \`--host'. 2583See \`config.log' for more details." >&2;} 2584 { (exit 1); exit 1; }; } 2585 fi 2586 fi 2587fi 2588{ echo "$as_me:$LINENO: result: yes" >&5 2589echo "${ECHO_T}yes" >&6; } 2590 2591rm -f a.out a.exe conftest$ac_cv_exeext b.out 2592ac_clean_files=$ac_clean_files_save 2593# Check that the compiler produces executables we can run. If not, either 2594# the compiler is broken, or we cross compile. 2595{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2596echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2597{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2598echo "${ECHO_T}$cross_compiling" >&6; } 2599 2600{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2601echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2602if { (ac_try="$ac_link" 2603case "(($ac_try" in 2604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2605 *) ac_try_echo=$ac_try;; 2606esac 2607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2608 (eval "$ac_link") 2>&5 2609 ac_status=$? 2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2611 (exit $ac_status); }; then 2612 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2613# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2614# work properly (i.e., refer to `conftest.exe'), while it won't with 2615# `rm'. 2616for ac_file in conftest.exe conftest conftest.*; do 2617 test -f "$ac_file" || continue 2618 case $ac_file in 2619 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2620 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2621 break;; 2622 * ) break;; 2623 esac 2624done 2625else 2626 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2627See \`config.log' for more details." >&5 2628echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2629See \`config.log' for more details." >&2;} 2630 { (exit 1); exit 1; }; } 2631fi 2632 2633rm -f conftest$ac_cv_exeext 2634{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2635echo "${ECHO_T}$ac_cv_exeext" >&6; } 2636 2637rm -f conftest.$ac_ext 2638EXEEXT=$ac_cv_exeext 2639ac_exeext=$EXEEXT 2640{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2641echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2642if test "${ac_cv_objext+set}" = set; then 2643 echo $ECHO_N "(cached) $ECHO_C" >&6 2644else 2645 cat >conftest.$ac_ext <<_ACEOF 2646/* confdefs.h. */ 2647_ACEOF 2648cat confdefs.h >>conftest.$ac_ext 2649cat >>conftest.$ac_ext <<_ACEOF 2650/* end confdefs.h. */ 2651 2652int 2653main () 2654{ 2655 2656 ; 2657 return 0; 2658} 2659_ACEOF 2660rm -f conftest.o conftest.obj 2661if { (ac_try="$ac_compile" 2662case "(($ac_try" in 2663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2664 *) ac_try_echo=$ac_try;; 2665esac 2666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2667 (eval "$ac_compile") 2>&5 2668 ac_status=$? 2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2670 (exit $ac_status); }; then 2671 for ac_file in conftest.o conftest.obj conftest.*; do 2672 test -f "$ac_file" || continue; 2673 case $ac_file in 2674 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2675 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2676 break;; 2677 esac 2678done 2679else 2680 echo "$as_me: failed program was:" >&5 2681sed 's/^/| /' conftest.$ac_ext >&5 2682 2683{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2684See \`config.log' for more details." >&5 2685echo "$as_me: error: cannot compute suffix of object files: cannot compile 2686See \`config.log' for more details." >&2;} 2687 { (exit 1); exit 1; }; } 2688fi 2689 2690rm -f conftest.$ac_cv_objext conftest.$ac_ext 2691fi 2692{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2693echo "${ECHO_T}$ac_cv_objext" >&6; } 2694OBJEXT=$ac_cv_objext 2695ac_objext=$OBJEXT 2696{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2697echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 2698if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2699 echo $ECHO_N "(cached) $ECHO_C" >&6 2700else 2701 cat >conftest.$ac_ext <<_ACEOF 2702/* confdefs.h. */ 2703_ACEOF 2704cat confdefs.h >>conftest.$ac_ext 2705cat >>conftest.$ac_ext <<_ACEOF 2706/* end confdefs.h. */ 2707 2708int 2709main () 2710{ 2711#ifndef __GNUC__ 2712 choke me 2713#endif 2714 2715 ; 2716 return 0; 2717} 2718_ACEOF 2719rm -f conftest.$ac_objext 2720if { (ac_try="$ac_compile" 2721case "(($ac_try" in 2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2723 *) ac_try_echo=$ac_try;; 2724esac 2725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2726 (eval "$ac_compile") 2>conftest.er1 2727 ac_status=$? 2728 grep -v '^ *+' conftest.er1 >conftest.err 2729 rm -f conftest.er1 2730 cat conftest.err >&5 2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2732 (exit $ac_status); } && 2733 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2734 { (case "(($ac_try" in 2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2736 *) ac_try_echo=$ac_try;; 2737esac 2738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2739 (eval "$ac_try") 2>&5 2740 ac_status=$? 2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2742 (exit $ac_status); }; } && 2743 { ac_try='test -s conftest.$ac_objext' 2744 { (case "(($ac_try" in 2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2746 *) ac_try_echo=$ac_try;; 2747esac 2748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2749 (eval "$ac_try") 2>&5 2750 ac_status=$? 2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2752 (exit $ac_status); }; }; then 2753 ac_compiler_gnu=yes 2754else 2755 echo "$as_me: failed program was:" >&5 2756sed 's/^/| /' conftest.$ac_ext >&5 2757 2758 ac_compiler_gnu=no 2759fi 2760 2761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2762ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2763 2764fi 2765{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 2766echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 2767GXX=`test $ac_compiler_gnu = yes && echo yes` 2768ac_test_CXXFLAGS=${CXXFLAGS+set} 2769ac_save_CXXFLAGS=$CXXFLAGS 2770{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 2771echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 2772if test "${ac_cv_prog_cxx_g+set}" = set; then 2773 echo $ECHO_N "(cached) $ECHO_C" >&6 2774else 2775 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 2776 ac_cxx_werror_flag=yes 2777 ac_cv_prog_cxx_g=no 2778 CXXFLAGS="-g" 2779 cat >conftest.$ac_ext <<_ACEOF 2780/* confdefs.h. */ 2781_ACEOF 2782cat confdefs.h >>conftest.$ac_ext 2783cat >>conftest.$ac_ext <<_ACEOF 2784/* end confdefs.h. */ 2785 2786int 2787main () 2788{ 2789 2790 ; 2791 return 0; 2792} 2793_ACEOF 2794rm -f conftest.$ac_objext 2795if { (ac_try="$ac_compile" 2796case "(($ac_try" in 2797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2798 *) ac_try_echo=$ac_try;; 2799esac 2800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2801 (eval "$ac_compile") 2>conftest.er1 2802 ac_status=$? 2803 grep -v '^ *+' conftest.er1 >conftest.err 2804 rm -f conftest.er1 2805 cat conftest.err >&5 2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2807 (exit $ac_status); } && 2808 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2809 { (case "(($ac_try" in 2810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2811 *) ac_try_echo=$ac_try;; 2812esac 2813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2814 (eval "$ac_try") 2>&5 2815 ac_status=$? 2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2817 (exit $ac_status); }; } && 2818 { ac_try='test -s conftest.$ac_objext' 2819 { (case "(($ac_try" in 2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2821 *) ac_try_echo=$ac_try;; 2822esac 2823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2824 (eval "$ac_try") 2>&5 2825 ac_status=$? 2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2827 (exit $ac_status); }; }; then 2828 ac_cv_prog_cxx_g=yes 2829else 2830 echo "$as_me: failed program was:" >&5 2831sed 's/^/| /' conftest.$ac_ext >&5 2832 2833 CXXFLAGS="" 2834 cat >conftest.$ac_ext <<_ACEOF 2835/* confdefs.h. */ 2836_ACEOF 2837cat confdefs.h >>conftest.$ac_ext 2838cat >>conftest.$ac_ext <<_ACEOF 2839/* end confdefs.h. */ 2840 2841int 2842main () 2843{ 2844 2845 ; 2846 return 0; 2847} 2848_ACEOF 2849rm -f conftest.$ac_objext 2850if { (ac_try="$ac_compile" 2851case "(($ac_try" in 2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2853 *) ac_try_echo=$ac_try;; 2854esac 2855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2856 (eval "$ac_compile") 2>conftest.er1 2857 ac_status=$? 2858 grep -v '^ *+' conftest.er1 >conftest.err 2859 rm -f conftest.er1 2860 cat conftest.err >&5 2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2862 (exit $ac_status); } && 2863 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2864 { (case "(($ac_try" in 2865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2866 *) ac_try_echo=$ac_try;; 2867esac 2868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2869 (eval "$ac_try") 2>&5 2870 ac_status=$? 2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2872 (exit $ac_status); }; } && 2873 { ac_try='test -s conftest.$ac_objext' 2874 { (case "(($ac_try" in 2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2876 *) ac_try_echo=$ac_try;; 2877esac 2878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2879 (eval "$ac_try") 2>&5 2880 ac_status=$? 2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2882 (exit $ac_status); }; }; then 2883 : 2884else 2885 echo "$as_me: failed program was:" >&5 2886sed 's/^/| /' conftest.$ac_ext >&5 2887 2888 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 2889 CXXFLAGS="-g" 2890 cat >conftest.$ac_ext <<_ACEOF 2891/* confdefs.h. */ 2892_ACEOF 2893cat confdefs.h >>conftest.$ac_ext 2894cat >>conftest.$ac_ext <<_ACEOF 2895/* end confdefs.h. */ 2896 2897int 2898main () 2899{ 2900 2901 ; 2902 return 0; 2903} 2904_ACEOF 2905rm -f conftest.$ac_objext 2906if { (ac_try="$ac_compile" 2907case "(($ac_try" in 2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2909 *) ac_try_echo=$ac_try;; 2910esac 2911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2912 (eval "$ac_compile") 2>conftest.er1 2913 ac_status=$? 2914 grep -v '^ *+' conftest.er1 >conftest.err 2915 rm -f conftest.er1 2916 cat conftest.err >&5 2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2918 (exit $ac_status); } && 2919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2920 { (case "(($ac_try" in 2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2922 *) ac_try_echo=$ac_try;; 2923esac 2924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2925 (eval "$ac_try") 2>&5 2926 ac_status=$? 2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2928 (exit $ac_status); }; } && 2929 { ac_try='test -s conftest.$ac_objext' 2930 { (case "(($ac_try" in 2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2932 *) ac_try_echo=$ac_try;; 2933esac 2934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2935 (eval "$ac_try") 2>&5 2936 ac_status=$? 2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2938 (exit $ac_status); }; }; then 2939 ac_cv_prog_cxx_g=yes 2940else 2941 echo "$as_me: failed program was:" >&5 2942sed 's/^/| /' conftest.$ac_ext >&5 2943 2944 2945fi 2946 2947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2948fi 2949 2950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2951fi 2952 2953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2954 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 2955fi 2956{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 2957echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 2958if test "$ac_test_CXXFLAGS" = set; then 2959 CXXFLAGS=$ac_save_CXXFLAGS 2960elif test $ac_cv_prog_cxx_g = yes; then 2961 if test "$GXX" = yes; then 2962 CXXFLAGS="-g -O2" 2963 else 2964 CXXFLAGS="-g" 2965 fi 2966else 2967 if test "$GXX" = yes; then 2968 CXXFLAGS="-O2" 2969 else 2970 CXXFLAGS= 2971 fi 2972fi 2973ac_ext=c 2974ac_cpp='$CPP $CPPFLAGS' 2975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2977ac_compiler_gnu=$ac_cv_c_compiler_gnu 2978DEPDIR="${am__leading_dot}deps" 2979 2980ac_config_commands="$ac_config_commands depfiles" 2981 2982 2983am_make=${MAKE-make} 2984cat > confinc << 'END' 2985am__doit: 2986 @echo done 2987.PHONY: am__doit 2988END 2989# If we don't find an include directive, just comment out the code. 2990{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2991echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 2992am__include="#" 2993am__quote= 2994_am_result=none 2995# First try GNU make style include. 2996echo "include confinc" > confmf 2997# We grep out `Entering directory' and `Leaving directory' 2998# messages which can occur if `w' ends up in MAKEFLAGS. 2999# In particular we don't look at `^make:' because GNU make might 3000# be invoked under some other name (usually "gmake"), in which 3001# case it prints its new name instead of `make'. 3002if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3003 am__include=include 3004 am__quote= 3005 _am_result=GNU 3006fi 3007# Now try BSD make style include. 3008if test "$am__include" = "#"; then 3009 echo '.include "confinc"' > confmf 3010 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3011 am__include=.include 3012 am__quote="\"" 3013 _am_result=BSD 3014 fi 3015fi 3016 3017 3018{ echo "$as_me:$LINENO: result: $_am_result" >&5 3019echo "${ECHO_T}$_am_result" >&6; } 3020rm -f confinc confmf 3021 3022# Check whether --enable-dependency-tracking was given. 3023if test "${enable_dependency_tracking+set}" = set; then 3024 enableval=$enable_dependency_tracking; 3025fi 3026 3027if test "x$enable_dependency_tracking" != xno; then 3028 am_depcomp="$ac_aux_dir/depcomp" 3029 AMDEPBACKSLASH='\' 3030fi 3031 3032 3033if test "x$enable_dependency_tracking" != xno; then 3034 AMDEP_TRUE= 3035 AMDEP_FALSE='#' 3036else 3037 AMDEP_TRUE='#' 3038 AMDEP_FALSE= 3039fi 3040 3041 3042 3043 3044depcc="$CXX" am_compiler_list= 3045 3046{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3047echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3048if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 3049 echo $ECHO_N "(cached) $ECHO_C" >&6 3050else 3051 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3052 # We make a subdir and do the tests there. Otherwise we can end up 3053 # making bogus files that we don't know about and never remove. For 3054 # instance it was reported that on HP-UX the gcc test will end up 3055 # making a dummy file named `D' -- because `-MD' means `put the output 3056 # in D'. 3057 mkdir conftest.dir 3058 # Copy depcomp to subdir because otherwise we won't find it if we're 3059 # using a relative directory. 3060 cp "$am_depcomp" conftest.dir 3061 cd conftest.dir 3062 # We will build objects and dependencies in a subdirectory because 3063 # it helps to detect inapplicable dependency modes. For instance 3064 # both Tru64's cc and ICC support -MD to output dependencies as a 3065 # side effect of compilation, but ICC will put the dependencies in 3066 # the current directory while Tru64 will put them in the object 3067 # directory. 3068 mkdir sub 3069 3070 am_cv_CXX_dependencies_compiler_type=none 3071 if test "$am_compiler_list" = ""; then 3072 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3073 fi 3074 for depmode in $am_compiler_list; do 3075 # Setup a source with many dependencies, because some compilers 3076 # like to wrap large dependency lists on column 80 (with \), and 3077 # we should not choose a depcomp mode which is confused by this. 3078 # 3079 # We need to recreate these files for each test, as the compiler may 3080 # overwrite some of them when testing with obscure command lines. 3081 # This happens at least with the AIX C compiler. 3082 : > sub/conftest.c 3083 for i in 1 2 3 4 5 6; do 3084 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3085 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3086 # Solaris 8's {/usr,}/bin/sh. 3087 touch sub/conftst$i.h 3088 done 3089 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3090 3091 case $depmode in 3092 nosideeffect) 3093 # after this tag, mechanisms are not by side-effect, so they'll 3094 # only be used when explicitly requested 3095 if test "x$enable_dependency_tracking" = xyes; then 3096 continue 3097 else 3098 break 3099 fi 3100 ;; 3101 none) break ;; 3102 esac 3103 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3104 # mode. It turns out that the SunPro C++ compiler does not properly 3105 # handle `-M -o', and we need to detect this. 3106 if depmode=$depmode \ 3107 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3108 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3109 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3110 >/dev/null 2>conftest.err && 3111 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3112 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3113 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3114 # icc doesn't choke on unknown options, it will just issue warnings 3115 # or remarks (even with -Werror). So we grep stderr for any message 3116 # that says an option was ignored or not supported. 3117 # When given -MP, icc 7.0 and 7.1 complain thusly: 3118 # icc: Command line warning: ignoring option '-M'; no argument required 3119 # The diagnosis changed in icc 8.0: 3120 # icc: Command line remark: option '-MP' not supported 3121 if (grep 'ignoring option' conftest.err || 3122 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3123 am_cv_CXX_dependencies_compiler_type=$depmode 3124 break 3125 fi 3126 fi 3127 done 3128 3129 cd .. 3130 rm -rf conftest.dir 3131else 3132 am_cv_CXX_dependencies_compiler_type=none 3133fi 3134 3135fi 3136{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 3137echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 3138CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 3139 3140 3141 3142if 3143 test "x$enable_dependency_tracking" != xno \ 3144 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 3145 am__fastdepCXX_TRUE= 3146 am__fastdepCXX_FALSE='#' 3147else 3148 am__fastdepCXX_TRUE='#' 3149 am__fastdepCXX_FALSE= 3150fi 3151 3152 3153ac_ext=c 3154ac_cpp='$CPP $CPPFLAGS' 3155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3157ac_compiler_gnu=$ac_cv_c_compiler_gnu 3158if test -n "$ac_tool_prefix"; then 3159 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3160set dummy ${ac_tool_prefix}gcc; ac_word=$2 3161{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3163if test "${ac_cv_prog_CC+set}" = set; then 3164 echo $ECHO_N "(cached) $ECHO_C" >&6 3165else 3166 if test -n "$CC"; then 3167 ac_cv_prog_CC="$CC" # Let the user override the test. 3168else 3169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3170for as_dir in $PATH 3171do 3172 IFS=$as_save_IFS 3173 test -z "$as_dir" && as_dir=. 3174 for ac_exec_ext in '' $ac_executable_extensions; do 3175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 3176 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3178 break 2 3179 fi 3180done 3181done 3182IFS=$as_save_IFS 3183 3184fi 3185fi 3186CC=$ac_cv_prog_CC 3187if test -n "$CC"; then 3188 { echo "$as_me:$LINENO: result: $CC" >&5 3189echo "${ECHO_T}$CC" >&6; } 3190else 3191 { echo "$as_me:$LINENO: result: no" >&5 3192echo "${ECHO_T}no" >&6; } 3193fi 3194 3195 3196fi 3197if test -z "$ac_cv_prog_CC"; then 3198 ac_ct_CC=$CC 3199 # Extract the first word of "gcc", so it can be a program name with args. 3200set dummy gcc; ac_word=$2 3201{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3203if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3204 echo $ECHO_N "(cached) $ECHO_C" >&6 3205else 3206 if test -n "$ac_ct_CC"; then 3207 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3208else 3209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3210for as_dir in $PATH 3211do 3212 IFS=$as_save_IFS 3213 test -z "$as_dir" && as_dir=. 3214 for ac_exec_ext in '' $ac_executable_extensions; do 3215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 3216 ac_cv_prog_ac_ct_CC="gcc" 3217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3218 break 2 3219 fi 3220done 3221done 3222IFS=$as_save_IFS 3223 3224fi 3225fi 3226ac_ct_CC=$ac_cv_prog_ac_ct_CC 3227if test -n "$ac_ct_CC"; then 3228 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3229echo "${ECHO_T}$ac_ct_CC" >&6; } 3230else 3231 { echo "$as_me:$LINENO: result: no" >&5 3232echo "${ECHO_T}no" >&6; } 3233fi 3234 3235 if test "x$ac_ct_CC" = x; then 3236 CC="" 3237 else 3238 case $cross_compiling:$ac_tool_warned in 3239yes:) 3240{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3241whose name does not start with the host triplet. If you think this 3242configuration is useful to you, please write to autoconf@gnu.org." >&5 3243echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3244whose name does not start with the host triplet. If you think this 3245configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3246ac_tool_warned=yes ;; 3247esac 3248 CC=$ac_ct_CC 3249 fi 3250else 3251 CC="$ac_cv_prog_CC" 3252fi 3253 3254if test -z "$CC"; then 3255 if test -n "$ac_tool_prefix"; then 3256 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3257set dummy ${ac_tool_prefix}cc; ac_word=$2 3258{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3260if test "${ac_cv_prog_CC+set}" = set; then 3261 echo $ECHO_N "(cached) $ECHO_C" >&6 3262else 3263 if test -n "$CC"; then 3264 ac_cv_prog_CC="$CC" # Let the user override the test. 3265else 3266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3267for as_dir in $PATH 3268do 3269 IFS=$as_save_IFS 3270 test -z "$as_dir" && as_dir=. 3271 for ac_exec_ext in '' $ac_executable_extensions; do 3272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 3273 ac_cv_prog_CC="${ac_tool_prefix}cc" 3274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3275 break 2 3276 fi 3277done 3278done 3279IFS=$as_save_IFS 3280 3281fi 3282fi 3283CC=$ac_cv_prog_CC 3284if test -n "$CC"; then 3285 { echo "$as_me:$LINENO: result: $CC" >&5 3286echo "${ECHO_T}$CC" >&6; } 3287else 3288 { echo "$as_me:$LINENO: result: no" >&5 3289echo "${ECHO_T}no" >&6; } 3290fi 3291 3292 3293 fi 3294fi 3295if test -z "$CC"; then 3296 # Extract the first word of "cc", so it can be a program name with args. 3297set dummy cc; ac_word=$2 3298{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3300if test "${ac_cv_prog_CC+set}" = set; then 3301 echo $ECHO_N "(cached) $ECHO_C" >&6 3302else 3303 if test -n "$CC"; then 3304 ac_cv_prog_CC="$CC" # Let the user override the test. 3305else 3306 ac_prog_rejected=no 3307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3308for as_dir in $PATH 3309do 3310 IFS=$as_save_IFS 3311 test -z "$as_dir" && as_dir=. 3312 for ac_exec_ext in '' $ac_executable_extensions; do 3313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 3314 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3315 ac_prog_rejected=yes 3316 continue 3317 fi 3318 ac_cv_prog_CC="cc" 3319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3320 break 2 3321 fi 3322done 3323done 3324IFS=$as_save_IFS 3325 3326if test $ac_prog_rejected = yes; then 3327 # We found a bogon in the path, so make sure we never use it. 3328 set dummy $ac_cv_prog_CC 3329 shift 3330 if test $# != 0; then 3331 # We chose a different compiler from the bogus one. 3332 # However, it has the same basename, so the bogon will be chosen 3333 # first if we set CC to just the basename; use the full file name. 3334 shift 3335 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3336 fi 3337fi 3338fi 3339fi 3340CC=$ac_cv_prog_CC 3341if test -n "$CC"; then 3342 { echo "$as_me:$LINENO: result: $CC" >&5 3343echo "${ECHO_T}$CC" >&6; } 3344else 3345 { echo "$as_me:$LINENO: result: no" >&5 3346echo "${ECHO_T}no" >&6; } 3347fi 3348 3349 3350fi 3351if test -z "$CC"; then 3352 if test -n "$ac_tool_prefix"; then 3353 for ac_prog in cl.exe 3354 do 3355 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3356set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3357{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3359if test "${ac_cv_prog_CC+set}" = set; then 3360 echo $ECHO_N "(cached) $ECHO_C" >&6 3361else 3362 if test -n "$CC"; then 3363 ac_cv_prog_CC="$CC" # Let the user override the test. 3364else 3365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3366for as_dir in $PATH 3367do 3368 IFS=$as_save_IFS 3369 test -z "$as_dir" && as_dir=. 3370 for ac_exec_ext in '' $ac_executable_extensions; do 3371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 3372 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3374 break 2 3375 fi 3376done 3377done 3378IFS=$as_save_IFS 3379 3380fi 3381fi 3382CC=$ac_cv_prog_CC 3383if test -n "$CC"; then 3384 { echo "$as_me:$LINENO: result: $CC" >&5 3385echo "${ECHO_T}$CC" >&6; } 3386else 3387 { echo "$as_me:$LINENO: result: no" >&5 3388echo "${ECHO_T}no" >&6; } 3389fi 3390 3391 3392 test -n "$CC" && break 3393 done 3394fi 3395if test -z "$CC"; then 3396 ac_ct_CC=$CC 3397 for ac_prog in cl.exe 3398do 3399 # Extract the first word of "$ac_prog", so it can be a program name with args. 3400set dummy $ac_prog; ac_word=$2 3401{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3403if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3404 echo $ECHO_N "(cached) $ECHO_C" >&6 3405else 3406 if test -n "$ac_ct_CC"; then 3407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3408else 3409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3410for as_dir in $PATH 3411do 3412 IFS=$as_save_IFS 3413 test -z "$as_dir" && as_dir=. 3414 for ac_exec_ext in '' $ac_executable_extensions; do 3415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 3416 ac_cv_prog_ac_ct_CC="$ac_prog" 3417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3418 break 2 3419 fi 3420done 3421done 3422IFS=$as_save_IFS 3423 3424fi 3425fi 3426ac_ct_CC=$ac_cv_prog_ac_ct_CC 3427if test -n "$ac_ct_CC"; then 3428 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3429echo "${ECHO_T}$ac_ct_CC" >&6; } 3430else 3431 { echo "$as_me:$LINENO: result: no" >&5 3432echo "${ECHO_T}no" >&6; } 3433fi 3434 3435 3436 test -n "$ac_ct_CC" && break 3437done 3438 3439 if test "x$ac_ct_CC" = x; then 3440 CC="" 3441 else 3442 case $cross_compiling:$ac_tool_warned in 3443yes:) 3444{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3445whose name does not start with the host triplet. If you think this 3446configuration is useful to you, please write to autoconf@gnu.org." >&5 3447echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3448whose name does not start with the host triplet. If you think this 3449configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3450ac_tool_warned=yes ;; 3451esac 3452 CC=$ac_ct_CC 3453 fi 3454fi 3455 3456fi 3457 3458 3459test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3460See \`config.log' for more details." >&5 3461echo "$as_me: error: no acceptable C compiler found in \$PATH 3462See \`config.log' for more details." >&2;} 3463 { (exit 1); exit 1; }; } 3464 3465# Provide some information about the compiler. 3466echo "$as_me:$LINENO: checking for C compiler version" >&5 3467ac_compiler=`set X $ac_compile; echo $2` 3468{ (ac_try="$ac_compiler --version >&5" 3469case "(($ac_try" in 3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3471 *) ac_try_echo=$ac_try;; 3472esac 3473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3474 (eval "$ac_compiler --version >&5") 2>&5 3475 ac_status=$? 3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3477 (exit $ac_status); } 3478{ (ac_try="$ac_compiler -v >&5" 3479case "(($ac_try" in 3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3481 *) ac_try_echo=$ac_try;; 3482esac 3483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3484 (eval "$ac_compiler -v >&5") 2>&5 3485 ac_status=$? 3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3487 (exit $ac_status); } 3488{ (ac_try="$ac_compiler -V >&5" 3489case "(($ac_try" in 3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3491 *) ac_try_echo=$ac_try;; 3492esac 3493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3494 (eval "$ac_compiler -V >&5") 2>&5 3495 ac_status=$? 3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3497 (exit $ac_status); } 3498 3499{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3500echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3501if test "${ac_cv_c_compiler_gnu+set}" = set; then 3502 echo $ECHO_N "(cached) $ECHO_C" >&6 3503else 3504 cat >conftest.$ac_ext <<_ACEOF 3505/* confdefs.h. */ 3506_ACEOF 3507cat confdefs.h >>conftest.$ac_ext 3508cat >>conftest.$ac_ext <<_ACEOF 3509/* end confdefs.h. */ 3510 3511int 3512main () 3513{ 3514#ifndef __GNUC__ 3515 choke me 3516#endif 3517 3518 ; 3519 return 0; 3520} 3521_ACEOF 3522rm -f conftest.$ac_objext 3523if { (ac_try="$ac_compile" 3524case "(($ac_try" in 3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3526 *) ac_try_echo=$ac_try;; 3527esac 3528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3529 (eval "$ac_compile") 2>conftest.er1 3530 ac_status=$? 3531 grep -v '^ *+' conftest.er1 >conftest.err 3532 rm -f conftest.er1 3533 cat conftest.err >&5 3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3535 (exit $ac_status); } && 3536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3537 { (case "(($ac_try" in 3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3539 *) ac_try_echo=$ac_try;; 3540esac 3541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3542 (eval "$ac_try") 2>&5 3543 ac_status=$? 3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3545 (exit $ac_status); }; } && 3546 { ac_try='test -s conftest.$ac_objext' 3547 { (case "(($ac_try" in 3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3549 *) ac_try_echo=$ac_try;; 3550esac 3551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3552 (eval "$ac_try") 2>&5 3553 ac_status=$? 3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3555 (exit $ac_status); }; }; then 3556 ac_compiler_gnu=yes 3557else 3558 echo "$as_me: failed program was:" >&5 3559sed 's/^/| /' conftest.$ac_ext >&5 3560 3561 ac_compiler_gnu=no 3562fi 3563 3564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3565ac_cv_c_compiler_gnu=$ac_compiler_gnu 3566 3567fi 3568{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3569echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3570GCC=`test $ac_compiler_gnu = yes && echo yes` 3571ac_test_CFLAGS=${CFLAGS+set} 3572ac_save_CFLAGS=$CFLAGS 3573{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3574echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3575if test "${ac_cv_prog_cc_g+set}" = set; then 3576 echo $ECHO_N "(cached) $ECHO_C" >&6 3577else 3578 ac_save_c_werror_flag=$ac_c_werror_flag 3579 ac_c_werror_flag=yes 3580 ac_cv_prog_cc_g=no 3581 CFLAGS="-g" 3582 cat >conftest.$ac_ext <<_ACEOF 3583/* confdefs.h. */ 3584_ACEOF 3585cat confdefs.h >>conftest.$ac_ext 3586cat >>conftest.$ac_ext <<_ACEOF 3587/* end confdefs.h. */ 3588 3589int 3590main () 3591{ 3592 3593 ; 3594 return 0; 3595} 3596_ACEOF 3597rm -f conftest.$ac_objext 3598if { (ac_try="$ac_compile" 3599case "(($ac_try" in 3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3601 *) ac_try_echo=$ac_try;; 3602esac 3603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3604 (eval "$ac_compile") 2>conftest.er1 3605 ac_status=$? 3606 grep -v '^ *+' conftest.er1 >conftest.err 3607 rm -f conftest.er1 3608 cat conftest.err >&5 3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3610 (exit $ac_status); } && 3611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3612 { (case "(($ac_try" in 3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3614 *) ac_try_echo=$ac_try;; 3615esac 3616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3617 (eval "$ac_try") 2>&5 3618 ac_status=$? 3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3620 (exit $ac_status); }; } && 3621 { ac_try='test -s conftest.$ac_objext' 3622 { (case "(($ac_try" in 3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3624 *) ac_try_echo=$ac_try;; 3625esac 3626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3627 (eval "$ac_try") 2>&5 3628 ac_status=$? 3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3630 (exit $ac_status); }; }; then 3631 ac_cv_prog_cc_g=yes 3632else 3633 echo "$as_me: failed program was:" >&5 3634sed 's/^/| /' conftest.$ac_ext >&5 3635 3636 CFLAGS="" 3637 cat >conftest.$ac_ext <<_ACEOF 3638/* confdefs.h. */ 3639_ACEOF 3640cat confdefs.h >>conftest.$ac_ext 3641cat >>conftest.$ac_ext <<_ACEOF 3642/* end confdefs.h. */ 3643 3644int 3645main () 3646{ 3647 3648 ; 3649 return 0; 3650} 3651_ACEOF 3652rm -f conftest.$ac_objext 3653if { (ac_try="$ac_compile" 3654case "(($ac_try" in 3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3656 *) ac_try_echo=$ac_try;; 3657esac 3658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3659 (eval "$ac_compile") 2>conftest.er1 3660 ac_status=$? 3661 grep -v '^ *+' conftest.er1 >conftest.err 3662 rm -f conftest.er1 3663 cat conftest.err >&5 3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3665 (exit $ac_status); } && 3666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3667 { (case "(($ac_try" in 3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3669 *) ac_try_echo=$ac_try;; 3670esac 3671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3672 (eval "$ac_try") 2>&5 3673 ac_status=$? 3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3675 (exit $ac_status); }; } && 3676 { ac_try='test -s conftest.$ac_objext' 3677 { (case "(($ac_try" in 3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3679 *) ac_try_echo=$ac_try;; 3680esac 3681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3682 (eval "$ac_try") 2>&5 3683 ac_status=$? 3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3685 (exit $ac_status); }; }; then 3686 : 3687else 3688 echo "$as_me: failed program was:" >&5 3689sed 's/^/| /' conftest.$ac_ext >&5 3690 3691 ac_c_werror_flag=$ac_save_c_werror_flag 3692 CFLAGS="-g" 3693 cat >conftest.$ac_ext <<_ACEOF 3694/* confdefs.h. */ 3695_ACEOF 3696cat confdefs.h >>conftest.$ac_ext 3697cat >>conftest.$ac_ext <<_ACEOF 3698/* end confdefs.h. */ 3699 3700int 3701main () 3702{ 3703 3704 ; 3705 return 0; 3706} 3707_ACEOF 3708rm -f conftest.$ac_objext 3709if { (ac_try="$ac_compile" 3710case "(($ac_try" in 3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3712 *) ac_try_echo=$ac_try;; 3713esac 3714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3715 (eval "$ac_compile") 2>conftest.er1 3716 ac_status=$? 3717 grep -v '^ *+' conftest.er1 >conftest.err 3718 rm -f conftest.er1 3719 cat conftest.err >&5 3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3721 (exit $ac_status); } && 3722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3723 { (case "(($ac_try" in 3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3725 *) ac_try_echo=$ac_try;; 3726esac 3727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3728 (eval "$ac_try") 2>&5 3729 ac_status=$? 3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3731 (exit $ac_status); }; } && 3732 { ac_try='test -s conftest.$ac_objext' 3733 { (case "(($ac_try" in 3734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3735 *) ac_try_echo=$ac_try;; 3736esac 3737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3738 (eval "$ac_try") 2>&5 3739 ac_status=$? 3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3741 (exit $ac_status); }; }; then 3742 ac_cv_prog_cc_g=yes 3743else 3744 echo "$as_me: failed program was:" >&5 3745sed 's/^/| /' conftest.$ac_ext >&5 3746 3747 3748fi 3749 3750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3751fi 3752 3753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3754fi 3755 3756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3757 ac_c_werror_flag=$ac_save_c_werror_flag 3758fi 3759{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3760echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3761if test "$ac_test_CFLAGS" = set; then 3762 CFLAGS=$ac_save_CFLAGS 3763elif test $ac_cv_prog_cc_g = yes; then 3764 if test "$GCC" = yes; then 3765 CFLAGS="-g -O2" 3766 else 3767 CFLAGS="-g" 3768 fi 3769else 3770 if test "$GCC" = yes; then 3771 CFLAGS="-O2" 3772 else 3773 CFLAGS= 3774 fi 3775fi 3776{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3777echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3778if test "${ac_cv_prog_cc_c89+set}" = set; then 3779 echo $ECHO_N "(cached) $ECHO_C" >&6 3780else 3781 ac_cv_prog_cc_c89=no 3782ac_save_CC=$CC 3783cat >conftest.$ac_ext <<_ACEOF 3784/* confdefs.h. */ 3785_ACEOF 3786cat confdefs.h >>conftest.$ac_ext 3787cat >>conftest.$ac_ext <<_ACEOF 3788/* end confdefs.h. */ 3789#include <stdarg.h> 3790#include <stdio.h> 3791#include <sys/types.h> 3792#include <sys/stat.h> 3793/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3794struct buf { int x; }; 3795FILE * (*rcsopen) (struct buf *, struct stat *, int); 3796static char *e (p, i) 3797 char **p; 3798 int i; 3799{ 3800 return p[i]; 3801} 3802static char *f (char * (*g) (char **, int), char **p, ...) 3803{ 3804 char *s; 3805 va_list v; 3806 va_start (v,p); 3807 s = g (p, va_arg (v,int)); 3808 va_end (v); 3809 return s; 3810} 3811 3812/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3813 function prototypes and stuff, but not '\xHH' hex character constants. 3814 These don't provoke an error unfortunately, instead are silently treated 3815 as 'x'. The following induces an error, until -std is added to get 3816 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3817 array size at least. It's necessary to write '\x00'==0 to get something 3818 that's true only with -std. */ 3819int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3820 3821/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3822 inside strings and character constants. */ 3823#define FOO(x) 'x' 3824int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3825 3826int test (int i, double x); 3827struct s1 {int (*f) (int a);}; 3828struct s2 {int (*f) (double a);}; 3829int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3830int argc; 3831char **argv; 3832int 3833main () 3834{ 3835return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3836 ; 3837 return 0; 3838} 3839_ACEOF 3840for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3841 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3842do 3843 CC="$ac_save_CC $ac_arg" 3844 rm -f conftest.$ac_objext 3845if { (ac_try="$ac_compile" 3846case "(($ac_try" in 3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3848 *) ac_try_echo=$ac_try;; 3849esac 3850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3851 (eval "$ac_compile") 2>conftest.er1 3852 ac_status=$? 3853 grep -v '^ *+' conftest.er1 >conftest.err 3854 rm -f conftest.er1 3855 cat conftest.err >&5 3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3857 (exit $ac_status); } && 3858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3859 { (case "(($ac_try" in 3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3861 *) ac_try_echo=$ac_try;; 3862esac 3863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3864 (eval "$ac_try") 2>&5 3865 ac_status=$? 3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3867 (exit $ac_status); }; } && 3868 { ac_try='test -s conftest.$ac_objext' 3869 { (case "(($ac_try" in 3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3871 *) ac_try_echo=$ac_try;; 3872esac 3873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3874 (eval "$ac_try") 2>&5 3875 ac_status=$? 3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3877 (exit $ac_status); }; }; then 3878 ac_cv_prog_cc_c89=$ac_arg 3879else 3880 echo "$as_me: failed program was:" >&5 3881sed 's/^/| /' conftest.$ac_ext >&5 3882 3883 3884fi 3885 3886rm -f core conftest.err conftest.$ac_objext 3887 test "x$ac_cv_prog_cc_c89" != "xno" && break 3888done 3889rm -f conftest.$ac_ext 3890CC=$ac_save_CC 3891 3892fi 3893# AC_CACHE_VAL 3894case "x$ac_cv_prog_cc_c89" in 3895 x) 3896 { echo "$as_me:$LINENO: result: none needed" >&5 3897echo "${ECHO_T}none needed" >&6; } ;; 3898 xno) 3899 { echo "$as_me:$LINENO: result: unsupported" >&5 3900echo "${ECHO_T}unsupported" >&6; } ;; 3901 *) 3902 CC="$CC $ac_cv_prog_cc_c89" 3903 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3904echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3905esac 3906 3907 3908ac_ext=c 3909ac_cpp='$CPP $CPPFLAGS' 3910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3912ac_compiler_gnu=$ac_cv_c_compiler_gnu 3913 3914depcc="$CC" am_compiler_list= 3915 3916{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3917echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3918if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3919 echo $ECHO_N "(cached) $ECHO_C" >&6 3920else 3921 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3922 # We make a subdir and do the tests there. Otherwise we can end up 3923 # making bogus files that we don't know about and never remove. For 3924 # instance it was reported that on HP-UX the gcc test will end up 3925 # making a dummy file named `D' -- because `-MD' means `put the output 3926 # in D'. 3927 mkdir conftest.dir 3928 # Copy depcomp to subdir because otherwise we won't find it if we're 3929 # using a relative directory. 3930 cp "$am_depcomp" conftest.dir 3931 cd conftest.dir 3932 # We will build objects and dependencies in a subdirectory because 3933 # it helps to detect inapplicable dependency modes. For instance 3934 # both Tru64's cc and ICC support -MD to output dependencies as a 3935 # side effect of compilation, but ICC will put the dependencies in 3936 # the current directory while Tru64 will put them in the object 3937 # directory. 3938 mkdir sub 3939 3940 am_cv_CC_dependencies_compiler_type=none 3941 if test "$am_compiler_list" = ""; then 3942 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3943 fi 3944 for depmode in $am_compiler_list; do 3945 # Setup a source with many dependencies, because some compilers 3946 # like to wrap large dependency lists on column 80 (with \), and 3947 # we should not choose a depcomp mode which is confused by this. 3948 # 3949 # We need to recreate these files for each test, as the compiler may 3950 # overwrite some of them when testing with obscure command lines. 3951 # This happens at least with the AIX C compiler. 3952 : > sub/conftest.c 3953 for i in 1 2 3 4 5 6; do 3954 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3955 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3956 # Solaris 8's {/usr,}/bin/sh. 3957 touch sub/conftst$i.h 3958 done 3959 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3960 3961 case $depmode in 3962 nosideeffect) 3963 # after this tag, mechanisms are not by side-effect, so they'll 3964 # only be used when explicitly requested 3965 if test "x$enable_dependency_tracking" = xyes; then 3966 continue 3967 else 3968 break 3969 fi 3970 ;; 3971 none) break ;; 3972 esac 3973 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3974 # mode. It turns out that the SunPro C++ compiler does not properly 3975 # handle `-M -o', and we need to detect this. 3976 if depmode=$depmode \ 3977 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3978 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3979 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3980 >/dev/null 2>conftest.err && 3981 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3982 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3983 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3984 # icc doesn't choke on unknown options, it will just issue warnings 3985 # or remarks (even with -Werror). So we grep stderr for any message 3986 # that says an option was ignored or not supported. 3987 # When given -MP, icc 7.0 and 7.1 complain thusly: 3988 # icc: Command line warning: ignoring option '-M'; no argument required 3989 # The diagnosis changed in icc 8.0: 3990 # icc: Command line remark: option '-MP' not supported 3991 if (grep 'ignoring option' conftest.err || 3992 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3993 am_cv_CC_dependencies_compiler_type=$depmode 3994 break 3995 fi 3996 fi 3997 done 3998 3999 cd .. 4000 rm -rf conftest.dir 4001else 4002 am_cv_CC_dependencies_compiler_type=none 4003fi 4004 4005fi 4006{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 4007echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 4008CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4009 4010 4011 4012if 4013 test "x$enable_dependency_tracking" != xno \ 4014 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4015 am__fastdepCC_TRUE= 4016 am__fastdepCC_FALSE='#' 4017else 4018 am__fastdepCC_TRUE='#' 4019 am__fastdepCC_FALSE= 4020fi 4021 4022 4023ac_ext=c 4024ac_cpp='$CPP $CPPFLAGS' 4025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4027ac_compiler_gnu=$ac_cv_c_compiler_gnu 4028{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4029echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4030# On Suns, sometimes $CPP names a directory. 4031if test -n "$CPP" && test -d "$CPP"; then 4032 CPP= 4033fi 4034if test -z "$CPP"; then 4035 if test "${ac_cv_prog_CPP+set}" = set; then 4036 echo $ECHO_N "(cached) $ECHO_C" >&6 4037else 4038 # Double quotes because CPP needs to be expanded 4039 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4040 do 4041 ac_preproc_ok=false 4042for ac_c_preproc_warn_flag in '' yes 4043do 4044 # Use a header file that comes with gcc, so configuring glibc 4045 # with a fresh cross-compiler works. 4046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4047 # <limits.h> exists even on freestanding compilers. 4048 # On the NeXT, cc -E runs the code through the compiler's parser, 4049 # not just through cpp. "Syntax error" is here to catch this case. 4050 cat >conftest.$ac_ext <<_ACEOF 4051/* confdefs.h. */ 4052_ACEOF 4053cat confdefs.h >>conftest.$ac_ext 4054cat >>conftest.$ac_ext <<_ACEOF 4055/* end confdefs.h. */ 4056#ifdef __STDC__ 4057# include <limits.h> 4058#else 4059# include <assert.h> 4060#endif 4061 Syntax error 4062_ACEOF 4063if { (ac_try="$ac_cpp conftest.$ac_ext" 4064case "(($ac_try" in 4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4066 *) ac_try_echo=$ac_try;; 4067esac 4068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4070 ac_status=$? 4071 grep -v '^ *+' conftest.er1 >conftest.err 4072 rm -f conftest.er1 4073 cat conftest.err >&5 4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4075 (exit $ac_status); } >/dev/null; then 4076 if test -s conftest.err; then 4077 ac_cpp_err=$ac_c_preproc_warn_flag 4078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4079 else 4080 ac_cpp_err= 4081 fi 4082else 4083 ac_cpp_err=yes 4084fi 4085if test -z "$ac_cpp_err"; then 4086 : 4087else 4088 echo "$as_me: failed program was:" >&5 4089sed 's/^/| /' conftest.$ac_ext >&5 4090 4091 # Broken: fails on valid input. 4092continue 4093fi 4094 4095rm -f conftest.err conftest.$ac_ext 4096 4097 # OK, works on sane cases. Now check whether nonexistent headers 4098 # can be detected and how. 4099 cat >conftest.$ac_ext <<_ACEOF 4100/* confdefs.h. */ 4101_ACEOF 4102cat confdefs.h >>conftest.$ac_ext 4103cat >>conftest.$ac_ext <<_ACEOF 4104/* end confdefs.h. */ 4105#include <ac_nonexistent.h> 4106_ACEOF 4107if { (ac_try="$ac_cpp conftest.$ac_ext" 4108case "(($ac_try" in 4109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4110 *) ac_try_echo=$ac_try;; 4111esac 4112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4114 ac_status=$? 4115 grep -v '^ *+' conftest.er1 >conftest.err 4116 rm -f conftest.er1 4117 cat conftest.err >&5 4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4119 (exit $ac_status); } >/dev/null; then 4120 if test -s conftest.err; then 4121 ac_cpp_err=$ac_c_preproc_warn_flag 4122 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4123 else 4124 ac_cpp_err= 4125 fi 4126else 4127 ac_cpp_err=yes 4128fi 4129if test -z "$ac_cpp_err"; then 4130 # Broken: success on invalid input. 4131continue 4132else 4133 echo "$as_me: failed program was:" >&5 4134sed 's/^/| /' conftest.$ac_ext >&5 4135 4136 # Passes both tests. 4137ac_preproc_ok=: 4138break 4139fi 4140 4141rm -f conftest.err conftest.$ac_ext 4142 4143done 4144# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4145rm -f conftest.err conftest.$ac_ext 4146if $ac_preproc_ok; then 4147 break 4148fi 4149 4150 done 4151 ac_cv_prog_CPP=$CPP 4152 4153fi 4154 CPP=$ac_cv_prog_CPP 4155else 4156 ac_cv_prog_CPP=$CPP 4157fi 4158{ echo "$as_me:$LINENO: result: $CPP" >&5 4159echo "${ECHO_T}$CPP" >&6; } 4160ac_preproc_ok=false 4161for ac_c_preproc_warn_flag in '' yes 4162do 4163 # Use a header file that comes with gcc, so configuring glibc 4164 # with a fresh cross-compiler works. 4165 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4166 # <limits.h> exists even on freestanding compilers. 4167 # On the NeXT, cc -E runs the code through the compiler's parser, 4168 # not just through cpp. "Syntax error" is here to catch this case. 4169 cat >conftest.$ac_ext <<_ACEOF 4170/* confdefs.h. */ 4171_ACEOF 4172cat confdefs.h >>conftest.$ac_ext 4173cat >>conftest.$ac_ext <<_ACEOF 4174/* end confdefs.h. */ 4175#ifdef __STDC__ 4176# include <limits.h> 4177#else 4178# include <assert.h> 4179#endif 4180 Syntax error 4181_ACEOF 4182if { (ac_try="$ac_cpp conftest.$ac_ext" 4183case "(($ac_try" in 4184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4185 *) ac_try_echo=$ac_try;; 4186esac 4187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4189 ac_status=$? 4190 grep -v '^ *+' conftest.er1 >conftest.err 4191 rm -f conftest.er1 4192 cat conftest.err >&5 4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4194 (exit $ac_status); } >/dev/null; then 4195 if test -s conftest.err; then 4196 ac_cpp_err=$ac_c_preproc_warn_flag 4197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4198 else 4199 ac_cpp_err= 4200 fi 4201else 4202 ac_cpp_err=yes 4203fi 4204if test -z "$ac_cpp_err"; then 4205 : 4206else 4207 echo "$as_me: failed program was:" >&5 4208sed 's/^/| /' conftest.$ac_ext >&5 4209 4210 # Broken: fails on valid input. 4211continue 4212fi 4213 4214rm -f conftest.err conftest.$ac_ext 4215 4216 # OK, works on sane cases. Now check whether nonexistent headers 4217 # can be detected and how. 4218 cat >conftest.$ac_ext <<_ACEOF 4219/* confdefs.h. */ 4220_ACEOF 4221cat confdefs.h >>conftest.$ac_ext 4222cat >>conftest.$ac_ext <<_ACEOF 4223/* end confdefs.h. */ 4224#include <ac_nonexistent.h> 4225_ACEOF 4226if { (ac_try="$ac_cpp conftest.$ac_ext" 4227case "(($ac_try" in 4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4229 *) ac_try_echo=$ac_try;; 4230esac 4231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4233 ac_status=$? 4234 grep -v '^ *+' conftest.er1 >conftest.err 4235 rm -f conftest.er1 4236 cat conftest.err >&5 4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4238 (exit $ac_status); } >/dev/null; then 4239 if test -s conftest.err; then 4240 ac_cpp_err=$ac_c_preproc_warn_flag 4241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4242 else 4243 ac_cpp_err= 4244 fi 4245else 4246 ac_cpp_err=yes 4247fi 4248if test -z "$ac_cpp_err"; then 4249 # Broken: success on invalid input. 4250continue 4251else 4252 echo "$as_me: failed program was:" >&5 4253sed 's/^/| /' conftest.$ac_ext >&5 4254 4255 # Passes both tests. 4256ac_preproc_ok=: 4257break 4258fi 4259 4260rm -f conftest.err conftest.$ac_ext 4261 4262done 4263# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4264rm -f conftest.err conftest.$ac_ext 4265if $ac_preproc_ok; then 4266 : 4267else 4268 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4269See \`config.log' for more details." >&5 4270echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4271See \`config.log' for more details." >&2;} 4272 { (exit 1); exit 1; }; } 4273fi 4274 4275ac_ext=c 4276ac_cpp='$CPP $CPPFLAGS' 4277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4279ac_compiler_gnu=$ac_cv_c_compiler_gnu 4280 4281 4282# Checks for header files. 4283 4284 4285{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4286echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4287if test "${ac_cv_path_GREP+set}" = set; then 4288 echo $ECHO_N "(cached) $ECHO_C" >&6 4289else 4290 # Extract the first word of "grep ggrep" to use in msg output 4291if test -z "$GREP"; then 4292set dummy grep ggrep; ac_prog_name=$2 4293if test "${ac_cv_path_GREP+set}" = set; then 4294 echo $ECHO_N "(cached) $ECHO_C" >&6 4295else 4296 ac_path_GREP_found=false 4297# Loop through the user's path and test for each of PROGNAME-LIST 4298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4299for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4300do 4301 IFS=$as_save_IFS 4302 test -z "$as_dir" && as_dir=. 4303 for ac_prog in grep ggrep; do 4304 for ac_exec_ext in '' $ac_executable_extensions; do 4305 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4306 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 4307 # Check for GNU ac_path_GREP and select it if it is found. 4308 # Check for GNU $ac_path_GREP 4309case `"$ac_path_GREP" --version 2>&1` in 4310*GNU*) 4311 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4312*) 4313 ac_count=0 4314 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4315 while : 4316 do 4317 cat "conftest.in" "conftest.in" >"conftest.tmp" 4318 mv "conftest.tmp" "conftest.in" 4319 cp "conftest.in" "conftest.nl" 4320 echo 'GREP' >> "conftest.nl" 4321 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4323 ac_count=`expr $ac_count + 1` 4324 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4325 # Best one so far, save it but keep looking for a better one 4326 ac_cv_path_GREP="$ac_path_GREP" 4327 ac_path_GREP_max=$ac_count 4328 fi 4329 # 10*(2^10) chars as input seems more than enough 4330 test $ac_count -gt 10 && break 4331 done 4332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4333esac 4334 4335 4336 $ac_path_GREP_found && break 3 4337 done 4338done 4339 4340done 4341IFS=$as_save_IFS 4342 4343 4344fi 4345 4346GREP="$ac_cv_path_GREP" 4347if test -z "$GREP"; then 4348 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4349echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4350 { (exit 1); exit 1; }; } 4351fi 4352 4353else 4354 ac_cv_path_GREP=$GREP 4355fi 4356 4357 4358fi 4359{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4360echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4361 GREP="$ac_cv_path_GREP" 4362 4363 4364{ echo "$as_me:$LINENO: checking for egrep" >&5 4365echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4366if test "${ac_cv_path_EGREP+set}" = set; then 4367 echo $ECHO_N "(cached) $ECHO_C" >&6 4368else 4369 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4370 then ac_cv_path_EGREP="$GREP -E" 4371 else 4372 # Extract the first word of "egrep" to use in msg output 4373if test -z "$EGREP"; then 4374set dummy egrep; ac_prog_name=$2 4375if test "${ac_cv_path_EGREP+set}" = set; then 4376 echo $ECHO_N "(cached) $ECHO_C" >&6 4377else 4378 ac_path_EGREP_found=false 4379# Loop through the user's path and test for each of PROGNAME-LIST 4380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4381for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4382do 4383 IFS=$as_save_IFS 4384 test -z "$as_dir" && as_dir=. 4385 for ac_prog in egrep; do 4386 for ac_exec_ext in '' $ac_executable_extensions; do 4387 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4388 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 4389 # Check for GNU ac_path_EGREP and select it if it is found. 4390 # Check for GNU $ac_path_EGREP 4391case `"$ac_path_EGREP" --version 2>&1` in 4392*GNU*) 4393 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4394*) 4395 ac_count=0 4396 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4397 while : 4398 do 4399 cat "conftest.in" "conftest.in" >"conftest.tmp" 4400 mv "conftest.tmp" "conftest.in" 4401 cp "conftest.in" "conftest.nl" 4402 echo 'EGREP' >> "conftest.nl" 4403 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4404 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4405 ac_count=`expr $ac_count + 1` 4406 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4407 # Best one so far, save it but keep looking for a better one 4408 ac_cv_path_EGREP="$ac_path_EGREP" 4409 ac_path_EGREP_max=$ac_count 4410 fi 4411 # 10*(2^10) chars as input seems more than enough 4412 test $ac_count -gt 10 && break 4413 done 4414 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4415esac 4416 4417 4418 $ac_path_EGREP_found && break 3 4419 done 4420done 4421 4422done 4423IFS=$as_save_IFS 4424 4425 4426fi 4427 4428EGREP="$ac_cv_path_EGREP" 4429if test -z "$EGREP"; then 4430 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4431echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4432 { (exit 1); exit 1; }; } 4433fi 4434 4435else 4436 ac_cv_path_EGREP=$EGREP 4437fi 4438 4439 4440 fi 4441fi 4442{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4443echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4444 EGREP="$ac_cv_path_EGREP" 4445 4446 4447{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4448echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4449if test "${ac_cv_header_stdc+set}" = set; then 4450 echo $ECHO_N "(cached) $ECHO_C" >&6 4451else 4452 cat >conftest.$ac_ext <<_ACEOF 4453/* confdefs.h. */ 4454_ACEOF 4455cat confdefs.h >>conftest.$ac_ext 4456cat >>conftest.$ac_ext <<_ACEOF 4457/* end confdefs.h. */ 4458#include <stdlib.h> 4459#include <stdarg.h> 4460#include <string.h> 4461#include <float.h> 4462 4463int 4464main () 4465{ 4466 4467 ; 4468 return 0; 4469} 4470_ACEOF 4471rm -f conftest.$ac_objext 4472if { (ac_try="$ac_compile" 4473case "(($ac_try" in 4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4475 *) ac_try_echo=$ac_try;; 4476esac 4477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4478 (eval "$ac_compile") 2>conftest.er1 4479 ac_status=$? 4480 grep -v '^ *+' conftest.er1 >conftest.err 4481 rm -f conftest.er1 4482 cat conftest.err >&5 4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4484 (exit $ac_status); } && 4485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4486 { (case "(($ac_try" in 4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4488 *) ac_try_echo=$ac_try;; 4489esac 4490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4491 (eval "$ac_try") 2>&5 4492 ac_status=$? 4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4494 (exit $ac_status); }; } && 4495 { ac_try='test -s conftest.$ac_objext' 4496 { (case "(($ac_try" in 4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4498 *) ac_try_echo=$ac_try;; 4499esac 4500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4501 (eval "$ac_try") 2>&5 4502 ac_status=$? 4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4504 (exit $ac_status); }; }; then 4505 ac_cv_header_stdc=yes 4506else 4507 echo "$as_me: failed program was:" >&5 4508sed 's/^/| /' conftest.$ac_ext >&5 4509 4510 ac_cv_header_stdc=no 4511fi 4512 4513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4514 4515if test $ac_cv_header_stdc = yes; then 4516 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4517 cat >conftest.$ac_ext <<_ACEOF 4518/* confdefs.h. */ 4519_ACEOF 4520cat confdefs.h >>conftest.$ac_ext 4521cat >>conftest.$ac_ext <<_ACEOF 4522/* end confdefs.h. */ 4523#include <string.h> 4524 4525_ACEOF 4526if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4527 $EGREP "memchr" >/dev/null 2>&1; then 4528 : 4529else 4530 ac_cv_header_stdc=no 4531fi 4532rm -f conftest* 4533 4534fi 4535 4536if test $ac_cv_header_stdc = yes; then 4537 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4538 cat >conftest.$ac_ext <<_ACEOF 4539/* confdefs.h. */ 4540_ACEOF 4541cat confdefs.h >>conftest.$ac_ext 4542cat >>conftest.$ac_ext <<_ACEOF 4543/* end confdefs.h. */ 4544#include <stdlib.h> 4545 4546_ACEOF 4547if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4548 $EGREP "free" >/dev/null 2>&1; then 4549 : 4550else 4551 ac_cv_header_stdc=no 4552fi 4553rm -f conftest* 4554 4555fi 4556 4557if test $ac_cv_header_stdc = yes; then 4558 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4559 if test "$cross_compiling" = yes; then 4560 : 4561else 4562 cat >conftest.$ac_ext <<_ACEOF 4563/* confdefs.h. */ 4564_ACEOF 4565cat confdefs.h >>conftest.$ac_ext 4566cat >>conftest.$ac_ext <<_ACEOF 4567/* end confdefs.h. */ 4568#include <ctype.h> 4569#include <stdlib.h> 4570#if ((' ' & 0x0FF) == 0x020) 4571# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4572# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4573#else 4574# define ISLOWER(c) \ 4575 (('a' <= (c) && (c) <= 'i') \ 4576 || ('j' <= (c) && (c) <= 'r') \ 4577 || ('s' <= (c) && (c) <= 'z')) 4578# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4579#endif 4580 4581#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4582int 4583main () 4584{ 4585 int i; 4586 for (i = 0; i < 256; i++) 4587 if (XOR (islower (i), ISLOWER (i)) 4588 || toupper (i) != TOUPPER (i)) 4589 return 2; 4590 return 0; 4591} 4592_ACEOF 4593rm -f conftest$ac_exeext 4594if { (ac_try="$ac_link" 4595case "(($ac_try" in 4596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4597 *) ac_try_echo=$ac_try;; 4598esac 4599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4600 (eval "$ac_link") 2>&5 4601 ac_status=$? 4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4603 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4604 { (case "(($ac_try" in 4605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4606 *) ac_try_echo=$ac_try;; 4607esac 4608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4609 (eval "$ac_try") 2>&5 4610 ac_status=$? 4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4612 (exit $ac_status); }; }; then 4613 : 4614else 4615 echo "$as_me: program exited with status $ac_status" >&5 4616echo "$as_me: failed program was:" >&5 4617sed 's/^/| /' conftest.$ac_ext >&5 4618 4619( exit $ac_status ) 4620ac_cv_header_stdc=no 4621fi 4622rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4623fi 4624 4625 4626fi 4627fi 4628{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4629echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4630if test $ac_cv_header_stdc = yes; then 4631 4632cat >>confdefs.h <<\_ACEOF 4633#define STDC_HEADERS 1 4634_ACEOF 4635 4636fi 4637 4638 4639# Checks for typedefs, structures, and compiler characteristics. 4640# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4651 inttypes.h stdint.h unistd.h 4652do 4653as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4654{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4655echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4656if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4657 echo $ECHO_N "(cached) $ECHO_C" >&6 4658else 4659 cat >conftest.$ac_ext <<_ACEOF 4660/* confdefs.h. */ 4661_ACEOF 4662cat confdefs.h >>conftest.$ac_ext 4663cat >>conftest.$ac_ext <<_ACEOF 4664/* end confdefs.h. */ 4665$ac_includes_default 4666 4667#include <$ac_header> 4668_ACEOF 4669rm -f conftest.$ac_objext 4670if { (ac_try="$ac_compile" 4671case "(($ac_try" in 4672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4673 *) ac_try_echo=$ac_try;; 4674esac 4675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4676 (eval "$ac_compile") 2>conftest.er1 4677 ac_status=$? 4678 grep -v '^ *+' conftest.er1 >conftest.err 4679 rm -f conftest.er1 4680 cat conftest.err >&5 4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4682 (exit $ac_status); } && 4683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4684 { (case "(($ac_try" in 4685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4686 *) ac_try_echo=$ac_try;; 4687esac 4688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4689 (eval "$ac_try") 2>&5 4690 ac_status=$? 4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4692 (exit $ac_status); }; } && 4693 { ac_try='test -s conftest.$ac_objext' 4694 { (case "(($ac_try" in 4695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4696 *) ac_try_echo=$ac_try;; 4697esac 4698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4699 (eval "$ac_try") 2>&5 4700 ac_status=$? 4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4702 (exit $ac_status); }; }; then 4703 eval "$as_ac_Header=yes" 4704else 4705 echo "$as_me: failed program was:" >&5 4706sed 's/^/| /' conftest.$ac_ext >&5 4707 4708 eval "$as_ac_Header=no" 4709fi 4710 4711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4712fi 4713ac_res=`eval echo '${'$as_ac_Header'}'` 4714 { echo "$as_me:$LINENO: result: $ac_res" >&5 4715echo "${ECHO_T}$ac_res" >&6; } 4716if test `eval echo '${'$as_ac_Header'}'` = yes; then 4717 cat >>confdefs.h <<_ACEOF 4718#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4719_ACEOF 4720 4721fi 4722 4723done 4724 4725 4726{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 4727echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; } 4728if test "${ac_cv_header_stdbool_h+set}" = set; then 4729 echo $ECHO_N "(cached) $ECHO_C" >&6 4730else 4731 cat >conftest.$ac_ext <<_ACEOF 4732/* confdefs.h. */ 4733_ACEOF 4734cat confdefs.h >>conftest.$ac_ext 4735cat >>conftest.$ac_ext <<_ACEOF 4736/* end confdefs.h. */ 4737 4738#include <stdbool.h> 4739#ifndef bool 4740 "error: bool is not defined" 4741#endif 4742#ifndef false 4743 "error: false is not defined" 4744#endif 4745#if false 4746 "error: false is not 0" 4747#endif 4748#ifndef true 4749 "error: true is not defined" 4750#endif 4751#if true != 1 4752 "error: true is not 1" 4753#endif 4754#ifndef __bool_true_false_are_defined 4755 "error: __bool_true_false_are_defined is not defined" 4756#endif 4757 4758 struct s { _Bool s: 1; _Bool t; } s; 4759 4760 char a[true == 1 ? 1 : -1]; 4761 char b[false == 0 ? 1 : -1]; 4762 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 4763 char d[(bool) 0.5 == true ? 1 : -1]; 4764 bool e = &s; 4765 char f[(_Bool) 0.0 == false ? 1 : -1]; 4766 char g[true]; 4767 char h[sizeof (_Bool)]; 4768 char i[sizeof s.t]; 4769 enum { j = false, k = true, l = false * true, m = true * 256 }; 4770 _Bool n[m]; 4771 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 4772 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 4773# if defined __xlc__ || defined __GNUC__ 4774 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 4775 reported by James Lemley on 2005-10-05; see 4776 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html 4777 This test is not quite right, since xlc is allowed to 4778 reject this program, as the initializer for xlcbug is 4779 not one of the forms that C requires support for. 4780 However, doing the test right would require a runtime 4781 test, and that would make cross-compilation harder. 4782 Let us hope that IBM fixes the xlc bug, and also adds 4783 support for this kind of constant expression. In the 4784 meantime, this test will reject xlc, which is OK, since 4785 our stdbool.h substitute should suffice. We also test 4786 this with GCC, where it should work, to detect more 4787 quickly whether someone messes up the test in the 4788 future. */ 4789 char digs[] = "0123456789"; 4790 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); 4791# endif 4792 /* Catch a bug in an HP-UX C compiler. See 4793 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 4794 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 4795 */ 4796 _Bool q = true; 4797 _Bool *pq = &q; 4798 4799int 4800main () 4801{ 4802 4803 *pq |= q; 4804 *pq |= ! q; 4805 /* Refer to every declared value, to avoid compiler optimizations. */ 4806 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 4807 + !m + !n + !o + !p + !q + !pq); 4808 4809 ; 4810 return 0; 4811} 4812_ACEOF 4813rm -f conftest.$ac_objext 4814if { (ac_try="$ac_compile" 4815case "(($ac_try" in 4816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4817 *) ac_try_echo=$ac_try;; 4818esac 4819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4820 (eval "$ac_compile") 2>conftest.er1 4821 ac_status=$? 4822 grep -v '^ *+' conftest.er1 >conftest.err 4823 rm -f conftest.er1 4824 cat conftest.err >&5 4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4826 (exit $ac_status); } && 4827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4828 { (case "(($ac_try" in 4829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4830 *) ac_try_echo=$ac_try;; 4831esac 4832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4833 (eval "$ac_try") 2>&5 4834 ac_status=$? 4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4836 (exit $ac_status); }; } && 4837 { ac_try='test -s conftest.$ac_objext' 4838 { (case "(($ac_try" in 4839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4840 *) ac_try_echo=$ac_try;; 4841esac 4842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4843 (eval "$ac_try") 2>&5 4844 ac_status=$? 4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4846 (exit $ac_status); }; }; then 4847 ac_cv_header_stdbool_h=yes 4848else 4849 echo "$as_me: failed program was:" >&5 4850sed 's/^/| /' conftest.$ac_ext >&5 4851 4852 ac_cv_header_stdbool_h=no 4853fi 4854 4855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4856fi 4857{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 4858echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; } 4859{ echo "$as_me:$LINENO: checking for _Bool" >&5 4860echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } 4861if test "${ac_cv_type__Bool+set}" = set; then 4862 echo $ECHO_N "(cached) $ECHO_C" >&6 4863else 4864 cat >conftest.$ac_ext <<_ACEOF 4865/* confdefs.h. */ 4866_ACEOF 4867cat confdefs.h >>conftest.$ac_ext 4868cat >>conftest.$ac_ext <<_ACEOF 4869/* end confdefs.h. */ 4870$ac_includes_default 4871typedef _Bool ac__type_new_; 4872int 4873main () 4874{ 4875if ((ac__type_new_ *) 0) 4876 return 0; 4877if (sizeof (ac__type_new_)) 4878 return 0; 4879 ; 4880 return 0; 4881} 4882_ACEOF 4883rm -f conftest.$ac_objext 4884if { (ac_try="$ac_compile" 4885case "(($ac_try" in 4886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4887 *) ac_try_echo=$ac_try;; 4888esac 4889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4890 (eval "$ac_compile") 2>conftest.er1 4891 ac_status=$? 4892 grep -v '^ *+' conftest.er1 >conftest.err 4893 rm -f conftest.er1 4894 cat conftest.err >&5 4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4896 (exit $ac_status); } && 4897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4898 { (case "(($ac_try" in 4899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4900 *) ac_try_echo=$ac_try;; 4901esac 4902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4903 (eval "$ac_try") 2>&5 4904 ac_status=$? 4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4906 (exit $ac_status); }; } && 4907 { ac_try='test -s conftest.$ac_objext' 4908 { (case "(($ac_try" in 4909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4910 *) ac_try_echo=$ac_try;; 4911esac 4912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4913 (eval "$ac_try") 2>&5 4914 ac_status=$? 4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4916 (exit $ac_status); }; }; then 4917 ac_cv_type__Bool=yes 4918else 4919 echo "$as_me: failed program was:" >&5 4920sed 's/^/| /' conftest.$ac_ext >&5 4921 4922 ac_cv_type__Bool=no 4923fi 4924 4925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4926fi 4927{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 4928echo "${ECHO_T}$ac_cv_type__Bool" >&6; } 4929if test $ac_cv_type__Bool = yes; then 4930 4931cat >>confdefs.h <<_ACEOF 4932#define HAVE__BOOL 1 4933_ACEOF 4934 4935 4936fi 4937 4938if test $ac_cv_header_stdbool_h = yes; then 4939 4940cat >>confdefs.h <<\_ACEOF 4941#define HAVE_STDBOOL_H 1 4942_ACEOF 4943 4944fi 4945 4946{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 4947echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 4948if test "${ac_cv_c_const+set}" = set; then 4949 echo $ECHO_N "(cached) $ECHO_C" >&6 4950else 4951 cat >conftest.$ac_ext <<_ACEOF 4952/* confdefs.h. */ 4953_ACEOF 4954cat confdefs.h >>conftest.$ac_ext 4955cat >>conftest.$ac_ext <<_ACEOF 4956/* end confdefs.h. */ 4957 4958int 4959main () 4960{ 4961/* FIXME: Include the comments suggested by Paul. */ 4962#ifndef __cplusplus 4963 /* Ultrix mips cc rejects this. */ 4964 typedef int charset[2]; 4965 const charset x; 4966 /* SunOS 4.1.1 cc rejects this. */ 4967 char const *const *ccp; 4968 char **p; 4969 /* NEC SVR4.0.2 mips cc rejects this. */ 4970 struct point {int x, y;}; 4971 static struct point const zero = {0,0}; 4972 /* AIX XL C 1.02.0.0 rejects this. 4973 It does not let you subtract one const X* pointer from another in 4974 an arm of an if-expression whose if-part is not a constant 4975 expression */ 4976 const char *g = "string"; 4977 ccp = &g + (g ? g-g : 0); 4978 /* HPUX 7.0 cc rejects these. */ 4979 ++ccp; 4980 p = (char**) ccp; 4981 ccp = (char const *const *) p; 4982 { /* SCO 3.2v4 cc rejects this. */ 4983 char *t; 4984 char const *s = 0 ? (char *) 0 : (char const *) 0; 4985 4986 *t++ = 0; 4987 if (s) return 0; 4988 } 4989 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4990 int x[] = {25, 17}; 4991 const int *foo = &x[0]; 4992 ++foo; 4993 } 4994 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4995 typedef const int *iptr; 4996 iptr p = 0; 4997 ++p; 4998 } 4999 { /* AIX XL C 1.02.0.0 rejects this saying 5000 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5001 struct s { int j; const int *ap[3]; }; 5002 struct s *b; b->j = 5; 5003 } 5004 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5005 const int foo = 10; 5006 if (!foo) return 0; 5007 } 5008 return !x[0] && !zero.x; 5009#endif 5010 5011 ; 5012 return 0; 5013} 5014_ACEOF 5015rm -f conftest.$ac_objext 5016if { (ac_try="$ac_compile" 5017case "(($ac_try" in 5018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5019 *) ac_try_echo=$ac_try;; 5020esac 5021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5022 (eval "$ac_compile") 2>conftest.er1 5023 ac_status=$? 5024 grep -v '^ *+' conftest.er1 >conftest.err 5025 rm -f conftest.er1 5026 cat conftest.err >&5 5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5028 (exit $ac_status); } && 5029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5030 { (case "(($ac_try" in 5031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5032 *) ac_try_echo=$ac_try;; 5033esac 5034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5035 (eval "$ac_try") 2>&5 5036 ac_status=$? 5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5038 (exit $ac_status); }; } && 5039 { ac_try='test -s conftest.$ac_objext' 5040 { (case "(($ac_try" in 5041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5042 *) ac_try_echo=$ac_try;; 5043esac 5044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5045 (eval "$ac_try") 2>&5 5046 ac_status=$? 5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5048 (exit $ac_status); }; }; then 5049 ac_cv_c_const=yes 5050else 5051 echo "$as_me: failed program was:" >&5 5052sed 's/^/| /' conftest.$ac_ext >&5 5053 5054 ac_cv_c_const=no 5055fi 5056 5057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5058fi 5059{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 5060echo "${ECHO_T}$ac_cv_c_const" >&6; } 5061if test $ac_cv_c_const = no; then 5062 5063cat >>confdefs.h <<\_ACEOF 5064#define const 5065_ACEOF 5066 5067fi 5068 5069{ echo "$as_me:$LINENO: checking for inline" >&5 5070echo $ECHO_N "checking for inline... $ECHO_C" >&6; } 5071if test "${ac_cv_c_inline+set}" = set; then 5072 echo $ECHO_N "(cached) $ECHO_C" >&6 5073else 5074 ac_cv_c_inline=no 5075for ac_kw in inline __inline__ __inline; do 5076 cat >conftest.$ac_ext <<_ACEOF 5077/* confdefs.h. */ 5078_ACEOF 5079cat confdefs.h >>conftest.$ac_ext 5080cat >>conftest.$ac_ext <<_ACEOF 5081/* end confdefs.h. */ 5082#ifndef __cplusplus 5083typedef int foo_t; 5084static $ac_kw foo_t static_foo () {return 0; } 5085$ac_kw foo_t foo () {return 0; } 5086#endif 5087 5088_ACEOF 5089rm -f conftest.$ac_objext 5090if { (ac_try="$ac_compile" 5091case "(($ac_try" in 5092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5093 *) ac_try_echo=$ac_try;; 5094esac 5095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5096 (eval "$ac_compile") 2>conftest.er1 5097 ac_status=$? 5098 grep -v '^ *+' conftest.er1 >conftest.err 5099 rm -f conftest.er1 5100 cat conftest.err >&5 5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5102 (exit $ac_status); } && 5103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5104 { (case "(($ac_try" in 5105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5106 *) ac_try_echo=$ac_try;; 5107esac 5108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5109 (eval "$ac_try") 2>&5 5110 ac_status=$? 5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5112 (exit $ac_status); }; } && 5113 { ac_try='test -s conftest.$ac_objext' 5114 { (case "(($ac_try" in 5115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5116 *) ac_try_echo=$ac_try;; 5117esac 5118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5119 (eval "$ac_try") 2>&5 5120 ac_status=$? 5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5122 (exit $ac_status); }; }; then 5123 ac_cv_c_inline=$ac_kw 5124else 5125 echo "$as_me: failed program was:" >&5 5126sed 's/^/| /' conftest.$ac_ext >&5 5127 5128 5129fi 5130 5131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5132 test "$ac_cv_c_inline" != no && break 5133done 5134 5135fi 5136{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 5137echo "${ECHO_T}$ac_cv_c_inline" >&6; } 5138 5139 5140case $ac_cv_c_inline in 5141 inline | yes) ;; 5142 *) 5143 case $ac_cv_c_inline in 5144 no) ac_val=;; 5145 *) ac_val=$ac_cv_c_inline;; 5146 esac 5147 cat >>confdefs.h <<_ACEOF 5148#ifndef __cplusplus 5149#define inline $ac_val 5150#endif 5151_ACEOF 5152 ;; 5153esac 5154 5155 5156 5157case $host_os in 5158 mingw21* | cygwin* | windows* ) 5159 # Include files aren't found with MDL_HAVE_OPENGL 5160 # Libs have different names 5161 LIBS="$LIBS -lOpenGl32 -lGlu32" 5162 ;; 5163 darwin* ) 5164 CFLAGS="$CFLAGS -I/System/Library/Frameworks/OpenGL.framework/Headers" 5165 CXXFLAGS="$CXXFLAGS -I/System/Library/Frameworks/OpenGL.framework/Headers" 5166 LIBS="$LIBS -framework OpenGL" 5167 # OSX wants gl.h not GL/gl.h 5168 5169 5170 5171for ac_header in gl.h glu.h glx.h 5172do 5173as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5174if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5175 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5176echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5177if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5178 echo $ECHO_N "(cached) $ECHO_C" >&6 5179fi 5180ac_res=`eval echo '${'$as_ac_Header'}'` 5181 { echo "$as_me:$LINENO: result: $ac_res" >&5 5182echo "${ECHO_T}$ac_res" >&6; } 5183else 5184 # Is the header compilable? 5185{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5186echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5187cat >conftest.$ac_ext <<_ACEOF 5188/* confdefs.h. */ 5189_ACEOF 5190cat confdefs.h >>conftest.$ac_ext 5191cat >>conftest.$ac_ext <<_ACEOF 5192/* end confdefs.h. */ 5193$ac_includes_default 5194#include <$ac_header> 5195_ACEOF 5196rm -f conftest.$ac_objext 5197if { (ac_try="$ac_compile" 5198case "(($ac_try" in 5199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5200 *) ac_try_echo=$ac_try;; 5201esac 5202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5203 (eval "$ac_compile") 2>conftest.er1 5204 ac_status=$? 5205 grep -v '^ *+' conftest.er1 >conftest.err 5206 rm -f conftest.er1 5207 cat conftest.err >&5 5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5209 (exit $ac_status); } && 5210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5211 { (case "(($ac_try" in 5212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5213 *) ac_try_echo=$ac_try;; 5214esac 5215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5216 (eval "$ac_try") 2>&5 5217 ac_status=$? 5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5219 (exit $ac_status); }; } && 5220 { ac_try='test -s conftest.$ac_objext' 5221 { (case "(($ac_try" in 5222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5223 *) ac_try_echo=$ac_try;; 5224esac 5225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5226 (eval "$ac_try") 2>&5 5227 ac_status=$? 5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5229 (exit $ac_status); }; }; then 5230 ac_header_compiler=yes 5231else 5232 echo "$as_me: failed program was:" >&5 5233sed 's/^/| /' conftest.$ac_ext >&5 5234 5235 ac_header_compiler=no 5236fi 5237 5238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5239{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5240echo "${ECHO_T}$ac_header_compiler" >&6; } 5241 5242# Is the header present? 5243{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5244echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5245cat >conftest.$ac_ext <<_ACEOF 5246/* confdefs.h. */ 5247_ACEOF 5248cat confdefs.h >>conftest.$ac_ext 5249cat >>conftest.$ac_ext <<_ACEOF 5250/* end confdefs.h. */ 5251#include <$ac_header> 5252_ACEOF 5253if { (ac_try="$ac_cpp conftest.$ac_ext" 5254case "(($ac_try" in 5255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5256 *) ac_try_echo=$ac_try;; 5257esac 5258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5260 ac_status=$? 5261 grep -v '^ *+' conftest.er1 >conftest.err 5262 rm -f conftest.er1 5263 cat conftest.err >&5 5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5265 (exit $ac_status); } >/dev/null; then 5266 if test -s conftest.err; then 5267 ac_cpp_err=$ac_c_preproc_warn_flag 5268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5269 else 5270 ac_cpp_err= 5271 fi 5272else 5273 ac_cpp_err=yes 5274fi 5275if test -z "$ac_cpp_err"; then 5276 ac_header_preproc=yes 5277else 5278 echo "$as_me: failed program was:" >&5 5279sed 's/^/| /' conftest.$ac_ext >&5 5280 5281 ac_header_preproc=no 5282fi 5283 5284rm -f conftest.err conftest.$ac_ext 5285{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5286echo "${ECHO_T}$ac_header_preproc" >&6; } 5287 5288# So? What about this header? 5289case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5290 yes:no: ) 5291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5292echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5294echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5295 ac_header_preproc=yes 5296 ;; 5297 no:yes:* ) 5298 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5299echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5300 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5301echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5302 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5303echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5304 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5305echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5307echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5308 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5309echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5310 ( cat <<\_ASBOX 5311## ------------------------------------------------------ ## 5312## Report this to brutalchess-devel@lists.sourceforge.net ## 5313## ------------------------------------------------------ ## 5314_ASBOX 5315 ) | sed "s/^/$as_me: WARNING: /" >&2 5316 ;; 5317esac 5318{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5320if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5321 echo $ECHO_N "(cached) $ECHO_C" >&6 5322else 5323 eval "$as_ac_Header=\$ac_header_preproc" 5324fi 5325ac_res=`eval echo '${'$as_ac_Header'}'` 5326 { echo "$as_me:$LINENO: result: $ac_res" >&5 5327echo "${ECHO_T}$ac_res" >&6; } 5328 5329fi 5330if test `eval echo '${'$as_ac_Header'}'` = yes; then 5331 cat >>confdefs.h <<_ACEOF 5332#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5333_ACEOF 5334 5335fi 5336 5337done 5338 5339 ;; 5340 * ) 5341 { echo "$as_me:$LINENO: checking for X" >&5 5342echo $ECHO_N "checking for X... $ECHO_C" >&6; } 5343 5344 5345# Check whether --with-x was given. 5346if test "${with_x+set}" = set; then 5347 withval=$with_x; 5348fi 5349 5350# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 5351if test "x$with_x" = xno; then 5352 # The user explicitly disabled X. 5353 have_x=disabled 5354else 5355 case $x_includes,$x_libraries in #( 5356 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 5357echo "$as_me: error: Cannot use X directory names containing '" >&2;} 5358 { (exit 1); exit 1; }; };; #( 5359 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 5360 echo $ECHO_N "(cached) $ECHO_C" >&6 5361else 5362 # One or both of the vars are not set, and there is no cached value. 5363ac_x_includes=no ac_x_libraries=no 5364rm -f -r conftest.dir 5365if mkdir conftest.dir; then 5366 cd conftest.dir 5367 cat >Imakefile <<'_ACEOF' 5368incroot: 5369 @echo incroot='${INCROOT}' 5370usrlibdir: 5371 @echo usrlibdir='${USRLIBDIR}' 5372libdir: 5373 @echo libdir='${LIBDIR}' 5374_ACEOF 5375 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 5376 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 5377 for ac_var in incroot usrlibdir libdir; do 5378 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 5379 done 5380 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 5381 for ac_extension in a so sl; do 5382 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 5383 test -f "$ac_im_libdir/libX11.$ac_extension"; then 5384 ac_im_usrlibdir=$ac_im_libdir; break 5385 fi 5386 done 5387 # Screen out bogus values from the imake configuration. They are 5388 # bogus both because they are the default anyway, and because 5389 # using them would break gcc on systems where it needs fixed includes. 5390 case $ac_im_incroot in 5391 /usr/include) ac_x_includes= ;; 5392 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 5393 esac 5394 case $ac_im_usrlibdir in 5395 /usr/lib | /lib) ;; 5396 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 5397 esac 5398 fi 5399 cd .. 5400 rm -f -r conftest.dir 5401fi 5402 5403# Standard set of common directories for X headers. 5404# Check X11 before X11Rn because it is often a symlink to the current release. 5405ac_x_header_dirs=' 5406/usr/X11/include 5407/usr/X11R6/include 5408/usr/X11R5/include 5409/usr/X11R4/include 5410 5411/usr/include/X11 5412/usr/include/X11R6 5413/usr/include/X11R5 5414/usr/include/X11R4 5415 5416/usr/local/X11/include 5417/usr/local/X11R6/include 5418/usr/local/X11R5/include 5419/usr/local/X11R4/include 5420 5421/usr/local/include/X11 5422/usr/local/include/X11R6 5423/usr/local/include/X11R5 5424/usr/local/include/X11R4 5425 5426/usr/X386/include 5427/usr/x386/include 5428/usr/XFree86/include/X11 5429 5430/usr/include 5431/usr/local/include 5432/usr/unsupported/include 5433/usr/athena/include 5434/usr/local/x11r5/include 5435/usr/lpp/Xamples/include 5436 5437/usr/openwin/include 5438/usr/openwin/share/include' 5439 5440if test "$ac_x_includes" = no; then 5441 # Guess where to find include files, by looking for Xlib.h. 5442 # First, try using that file with no special directory specified. 5443 cat >conftest.$ac_ext <<_ACEOF 5444/* confdefs.h. */ 5445_ACEOF 5446cat confdefs.h >>conftest.$ac_ext 5447cat >>conftest.$ac_ext <<_ACEOF 5448/* end confdefs.h. */ 5449#include <X11/Xlib.h> 5450_ACEOF 5451if { (ac_try="$ac_cpp conftest.$ac_ext" 5452case "(($ac_try" in 5453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5454 *) ac_try_echo=$ac_try;; 5455esac 5456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5458 ac_status=$? 5459 grep -v '^ *+' conftest.er1 >conftest.err 5460 rm -f conftest.er1 5461 cat conftest.err >&5 5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5463 (exit $ac_status); } >/dev/null; then 5464 if test -s conftest.err; then 5465 ac_cpp_err=$ac_c_preproc_warn_flag 5466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5467 else 5468 ac_cpp_err= 5469 fi 5470else 5471 ac_cpp_err=yes 5472fi 5473if test -z "$ac_cpp_err"; then 5474 # We can compile using X headers with no special include directory. 5475ac_x_includes= 5476else 5477 echo "$as_me: failed program was:" >&5 5478sed 's/^/| /' conftest.$ac_ext >&5 5479 5480 for ac_dir in $ac_x_header_dirs; do 5481 if test -r "$ac_dir/X11/Xlib.h"; then 5482 ac_x_includes=$ac_dir 5483 break 5484 fi 5485done 5486fi 5487 5488rm -f conftest.err conftest.$ac_ext 5489fi # $ac_x_includes = no 5490 5491if test "$ac_x_libraries" = no; then 5492 # Check for the libraries. 5493 # See if we find them without any special options. 5494 # Don't add to $LIBS permanently. 5495 ac_save_LIBS=$LIBS 5496 LIBS="-lXt $LIBS" 5497 cat >conftest.$ac_ext <<_ACEOF 5498/* confdefs.h. */ 5499_ACEOF 5500cat confdefs.h >>conftest.$ac_ext 5501cat >>conftest.$ac_ext <<_ACEOF 5502/* end confdefs.h. */ 5503#include <X11/Xlib.h> 5504int 5505main () 5506{ 5507XrmInitialize () 5508 ; 5509 return 0; 5510} 5511_ACEOF 5512rm -f conftest.$ac_objext conftest$ac_exeext 5513if { (ac_try="$ac_link" 5514case "(($ac_try" in 5515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5516 *) ac_try_echo=$ac_try;; 5517esac 5518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5519 (eval "$ac_link") 2>conftest.er1 5520 ac_status=$? 5521 grep -v '^ *+' conftest.er1 >conftest.err 5522 rm -f conftest.er1 5523 cat conftest.err >&5 5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5525 (exit $ac_status); } && 5526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5527 { (case "(($ac_try" in 5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5529 *) ac_try_echo=$ac_try;; 5530esac 5531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5532 (eval "$ac_try") 2>&5 5533 ac_status=$? 5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5535 (exit $ac_status); }; } && 5536 { ac_try='test -s conftest$ac_exeext' 5537 { (case "(($ac_try" in 5538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5539 *) ac_try_echo=$ac_try;; 5540esac 5541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5542 (eval "$ac_try") 2>&5 5543 ac_status=$? 5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5545 (exit $ac_status); }; }; then 5546 LIBS=$ac_save_LIBS 5547# We can link X programs with no special library path. 5548ac_x_libraries= 5549else 5550 echo "$as_me: failed program was:" >&5 5551sed 's/^/| /' conftest.$ac_ext >&5 5552 5553 LIBS=$ac_save_LIBS 5554for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 5555do 5556 # Don't even attempt the hair of trying to link an X program! 5557 for ac_extension in a so sl; do 5558 if test -r "$ac_dir/libXt.$ac_extension"; then 5559 ac_x_libraries=$ac_dir 5560 break 2 5561 fi 5562 done 5563done 5564fi 5565 5566rm -f core conftest.err conftest.$ac_objext \ 5567 conftest$ac_exeext conftest.$ac_ext 5568fi # $ac_x_libraries = no 5569 5570case $ac_x_includes,$ac_x_libraries in #( 5571 no,* | *,no | *\'*) 5572 # Didn't find X, or a directory has "'" in its name. 5573 ac_cv_have_x="have_x=no";; #( 5574 *) 5575 # Record where we found X for the cache. 5576 ac_cv_have_x="have_x=yes\ 5577 ac_x_includes='$ac_x_includes'\ 5578 ac_x_libraries='$ac_x_libraries'" 5579esac 5580fi 5581;; #( 5582 *) have_x=yes;; 5583 esac 5584 eval "$ac_cv_have_x" 5585fi # $with_x != no 5586 5587if test "$have_x" != yes; then 5588 { echo "$as_me:$LINENO: result: $have_x" >&5 5589echo "${ECHO_T}$have_x" >&6; } 5590 no_x=yes 5591else 5592 # If each of the values was on the command line, it overrides each guess. 5593 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 5594 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 5595 # Update the cache value to reflect the command line values. 5596 ac_cv_have_x="have_x=yes\ 5597 ac_x_includes='$x_includes'\ 5598 ac_x_libraries='$x_libraries'" 5599 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 5600echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } 5601fi 5602 5603if test "$no_x" = yes; then 5604 # Not all programs may use this symbol, but it does not hurt to define it. 5605 5606cat >>confdefs.h <<\_ACEOF 5607#define X_DISPLAY_MISSING 1 5608_ACEOF 5609 5610 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 5611else 5612 if test -n "$x_includes"; then 5613 X_CFLAGS="$X_CFLAGS -I$x_includes" 5614 fi 5615 5616 # It would also be nice to do this for all -L options, not just this one. 5617 if test -n "$x_libraries"; then 5618 X_LIBS="$X_LIBS -L$x_libraries" 5619 # For Solaris; some versions of Sun CC require a space after -R and 5620 # others require no space. Words are not sufficient . . . . 5621 case `(uname -sr) 2>/dev/null` in 5622 "SunOS 5"*) 5623 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 5624echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } 5625 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 5626 cat >conftest.$ac_ext <<_ACEOF 5627/* confdefs.h. */ 5628_ACEOF 5629cat confdefs.h >>conftest.$ac_ext 5630cat >>conftest.$ac_ext <<_ACEOF 5631/* end confdefs.h. */ 5632 5633int 5634main () 5635{ 5636 5637 ; 5638 return 0; 5639} 5640_ACEOF 5641rm -f conftest.$ac_objext conftest$ac_exeext 5642if { (ac_try="$ac_link" 5643case "(($ac_try" in 5644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5645 *) ac_try_echo=$ac_try;; 5646esac 5647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5648 (eval "$ac_link") 2>conftest.er1 5649 ac_status=$? 5650 grep -v '^ *+' conftest.er1 >conftest.err 5651 rm -f conftest.er1 5652 cat conftest.err >&5 5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5654 (exit $ac_status); } && 5655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5656 { (case "(($ac_try" in 5657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5658 *) ac_try_echo=$ac_try;; 5659esac 5660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5661 (eval "$ac_try") 2>&5 5662 ac_status=$? 5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5664 (exit $ac_status); }; } && 5665 { ac_try='test -s conftest$ac_exeext' 5666 { (case "(($ac_try" in 5667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5668 *) ac_try_echo=$ac_try;; 5669esac 5670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5671 (eval "$ac_try") 2>&5 5672 ac_status=$? 5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5674 (exit $ac_status); }; }; then 5675 ac_R_nospace=yes 5676else 5677 echo "$as_me: failed program was:" >&5 5678sed 's/^/| /' conftest.$ac_ext >&5 5679 5680 ac_R_nospace=no 5681fi 5682 5683rm -f core conftest.err conftest.$ac_objext \ 5684 conftest$ac_exeext conftest.$ac_ext 5685 if test $ac_R_nospace = yes; then 5686 { echo "$as_me:$LINENO: result: no" >&5 5687echo "${ECHO_T}no" >&6; } 5688 X_LIBS="$X_LIBS -R$x_libraries" 5689 else 5690 LIBS="$ac_xsave_LIBS -R $x_libraries" 5691 cat >conftest.$ac_ext <<_ACEOF 5692/* confdefs.h. */ 5693_ACEOF 5694cat confdefs.h >>conftest.$ac_ext 5695cat >>conftest.$ac_ext <<_ACEOF 5696/* end confdefs.h. */ 5697 5698int 5699main () 5700{ 5701 5702 ; 5703 return 0; 5704} 5705_ACEOF 5706rm -f conftest.$ac_objext conftest$ac_exeext 5707if { (ac_try="$ac_link" 5708case "(($ac_try" in 5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5710 *) ac_try_echo=$ac_try;; 5711esac 5712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5713 (eval "$ac_link") 2>conftest.er1 5714 ac_status=$? 5715 grep -v '^ *+' conftest.er1 >conftest.err 5716 rm -f conftest.er1 5717 cat conftest.err >&5 5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5719 (exit $ac_status); } && 5720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5721 { (case "(($ac_try" in 5722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5723 *) ac_try_echo=$ac_try;; 5724esac 5725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5726 (eval "$ac_try") 2>&5 5727 ac_status=$? 5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5729 (exit $ac_status); }; } && 5730 { ac_try='test -s conftest$ac_exeext' 5731 { (case "(($ac_try" in 5732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5733 *) ac_try_echo=$ac_try;; 5734esac 5735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5736 (eval "$ac_try") 2>&5 5737 ac_status=$? 5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5739 (exit $ac_status); }; }; then 5740 ac_R_space=yes 5741else 5742 echo "$as_me: failed program was:" >&5 5743sed 's/^/| /' conftest.$ac_ext >&5 5744 5745 ac_R_space=no 5746fi 5747 5748rm -f core conftest.err conftest.$ac_objext \ 5749 conftest$ac_exeext conftest.$ac_ext 5750 if test $ac_R_space = yes; then 5751 { echo "$as_me:$LINENO: result: yes" >&5 5752echo "${ECHO_T}yes" >&6; } 5753 X_LIBS="$X_LIBS -R $x_libraries" 5754 else 5755 { echo "$as_me:$LINENO: result: neither works" >&5 5756echo "${ECHO_T}neither works" >&6; } 5757 fi 5758 fi 5759 LIBS=$ac_xsave_LIBS 5760 esac 5761 fi 5762 5763 # Check for system-dependent libraries X programs must link with. 5764 # Do this before checking for the system-independent R6 libraries 5765 # (-lICE), since we may need -lsocket or whatever for X linking. 5766 5767 if test "$ISC" = yes; then 5768 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 5769 else 5770 # Martyn Johnson says this is needed for Ultrix, if the X 5771 # libraries were built with DECnet support. And Karl Berry says 5772 # the Alpha needs dnet_stub (dnet does not exist). 5773 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 5774 cat >conftest.$ac_ext <<_ACEOF 5775/* confdefs.h. */ 5776_ACEOF 5777cat confdefs.h >>conftest.$ac_ext 5778cat >>conftest.$ac_ext <<_ACEOF 5779/* end confdefs.h. */ 5780 5781/* Override any GCC internal prototype to avoid an error. 5782 Use char because int might match the return type of a GCC 5783 builtin and then its argument prototype would still apply. */ 5784#ifdef __cplusplus 5785extern "C" 5786#endif 5787char XOpenDisplay (); 5788int 5789main () 5790{ 5791return XOpenDisplay (); 5792 ; 5793 return 0; 5794} 5795_ACEOF 5796rm -f conftest.$ac_objext conftest$ac_exeext 5797if { (ac_try="$ac_link" 5798case "(($ac_try" in 5799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5800 *) ac_try_echo=$ac_try;; 5801esac 5802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5803 (eval "$ac_link") 2>conftest.er1 5804 ac_status=$? 5805 grep -v '^ *+' conftest.er1 >conftest.err 5806 rm -f conftest.er1 5807 cat conftest.err >&5 5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5809 (exit $ac_status); } && 5810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5811 { (case "(($ac_try" in 5812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5813 *) ac_try_echo=$ac_try;; 5814esac 5815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5816 (eval "$ac_try") 2>&5 5817 ac_status=$? 5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5819 (exit $ac_status); }; } && 5820 { ac_try='test -s conftest$ac_exeext' 5821 { (case "(($ac_try" in 5822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5823 *) ac_try_echo=$ac_try;; 5824esac 5825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5826 (eval "$ac_try") 2>&5 5827 ac_status=$? 5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5829 (exit $ac_status); }; }; then 5830 : 5831else 5832 echo "$as_me: failed program was:" >&5 5833sed 's/^/| /' conftest.$ac_ext >&5 5834 5835 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 5836echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } 5837if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 5838 echo $ECHO_N "(cached) $ECHO_C" >&6 5839else 5840 ac_check_lib_save_LIBS=$LIBS 5841LIBS="-ldnet $LIBS" 5842cat >conftest.$ac_ext <<_ACEOF 5843/* confdefs.h. */ 5844_ACEOF 5845cat confdefs.h >>conftest.$ac_ext 5846cat >>conftest.$ac_ext <<_ACEOF 5847/* end confdefs.h. */ 5848 5849/* Override any GCC internal prototype to avoid an error. 5850 Use char because int might match the return type of a GCC 5851 builtin and then its argument prototype would still apply. */ 5852#ifdef __cplusplus 5853extern "C" 5854#endif 5855char dnet_ntoa (); 5856int 5857main () 5858{ 5859return dnet_ntoa (); 5860 ; 5861 return 0; 5862} 5863_ACEOF 5864rm -f conftest.$ac_objext conftest$ac_exeext 5865if { (ac_try="$ac_link" 5866case "(($ac_try" in 5867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5868 *) ac_try_echo=$ac_try;; 5869esac 5870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5871 (eval "$ac_link") 2>conftest.er1 5872 ac_status=$? 5873 grep -v '^ *+' conftest.er1 >conftest.err 5874 rm -f conftest.er1 5875 cat conftest.err >&5 5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5877 (exit $ac_status); } && 5878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5879 { (case "(($ac_try" in 5880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5881 *) ac_try_echo=$ac_try;; 5882esac 5883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5884 (eval "$ac_try") 2>&5 5885 ac_status=$? 5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5887 (exit $ac_status); }; } && 5888 { ac_try='test -s conftest$ac_exeext' 5889 { (case "(($ac_try" in 5890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5891 *) ac_try_echo=$ac_try;; 5892esac 5893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5894 (eval "$ac_try") 2>&5 5895 ac_status=$? 5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5897 (exit $ac_status); }; }; then 5898 ac_cv_lib_dnet_dnet_ntoa=yes 5899else 5900 echo "$as_me: failed program was:" >&5 5901sed 's/^/| /' conftest.$ac_ext >&5 5902 5903 ac_cv_lib_dnet_dnet_ntoa=no 5904fi 5905 5906rm -f core conftest.err conftest.$ac_objext \ 5907 conftest$ac_exeext conftest.$ac_ext 5908LIBS=$ac_check_lib_save_LIBS 5909fi 5910{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 5911echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } 5912if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 5913 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 5914fi 5915 5916 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 5917 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 5918echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } 5919if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 5920 echo $ECHO_N "(cached) $ECHO_C" >&6 5921else 5922 ac_check_lib_save_LIBS=$LIBS 5923LIBS="-ldnet_stub $LIBS" 5924cat >conftest.$ac_ext <<_ACEOF 5925/* confdefs.h. */ 5926_ACEOF 5927cat confdefs.h >>conftest.$ac_ext 5928cat >>conftest.$ac_ext <<_ACEOF 5929/* end confdefs.h. */ 5930 5931/* Override any GCC internal prototype to avoid an error. 5932 Use char because int might match the return type of a GCC 5933 builtin and then its argument prototype would still apply. */ 5934#ifdef __cplusplus 5935extern "C" 5936#endif 5937char dnet_ntoa (); 5938int 5939main () 5940{ 5941return dnet_ntoa (); 5942 ; 5943 return 0; 5944} 5945_ACEOF 5946rm -f conftest.$ac_objext conftest$ac_exeext 5947if { (ac_try="$ac_link" 5948case "(($ac_try" in 5949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5950 *) ac_try_echo=$ac_try;; 5951esac 5952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5953 (eval "$ac_link") 2>conftest.er1 5954 ac_status=$? 5955 grep -v '^ *+' conftest.er1 >conftest.err 5956 rm -f conftest.er1 5957 cat conftest.err >&5 5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5959 (exit $ac_status); } && 5960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5961 { (case "(($ac_try" in 5962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5963 *) ac_try_echo=$ac_try;; 5964esac 5965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5966 (eval "$ac_try") 2>&5 5967 ac_status=$? 5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5969 (exit $ac_status); }; } && 5970 { ac_try='test -s conftest$ac_exeext' 5971 { (case "(($ac_try" in 5972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5973 *) ac_try_echo=$ac_try;; 5974esac 5975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5976 (eval "$ac_try") 2>&5 5977 ac_status=$? 5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5979 (exit $ac_status); }; }; then 5980 ac_cv_lib_dnet_stub_dnet_ntoa=yes 5981else 5982 echo "$as_me: failed program was:" >&5 5983sed 's/^/| /' conftest.$ac_ext >&5 5984 5985 ac_cv_lib_dnet_stub_dnet_ntoa=no 5986fi 5987 5988rm -f core conftest.err conftest.$ac_objext \ 5989 conftest$ac_exeext conftest.$ac_ext 5990LIBS=$ac_check_lib_save_LIBS 5991fi 5992{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 5993echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 5994if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 5995 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 5996fi 5997 5998 fi 5999fi 6000 6001rm -f core conftest.err conftest.$ac_objext \ 6002 conftest$ac_exeext conftest.$ac_ext 6003 LIBS="$ac_xsave_LIBS" 6004 6005 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 6006 # to get the SysV transport functions. 6007 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 6008 # needs -lnsl. 6009 # The nsl library prevents programs from opening the X display 6010 # on Irix 5.2, according to T.E. Dickey. 6011 # The functions gethostbyname, getservbyname, and inet_addr are 6012 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 6013 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 6014echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 6015if test "${ac_cv_func_gethostbyname+set}" = set; then 6016 echo $ECHO_N "(cached) $ECHO_C" >&6 6017else 6018 cat >conftest.$ac_ext <<_ACEOF 6019/* confdefs.h. */ 6020_ACEOF 6021cat confdefs.h >>conftest.$ac_ext 6022cat >>conftest.$ac_ext <<_ACEOF 6023/* end confdefs.h. */ 6024/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 6025 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6026#define gethostbyname innocuous_gethostbyname 6027 6028/* System header to define __stub macros and hopefully few prototypes, 6029 which can conflict with char gethostbyname (); below. 6030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6031 <limits.h> exists even on freestanding compilers. */ 6032 6033#ifdef __STDC__ 6034# include <limits.h> 6035#else 6036# include <assert.h> 6037#endif 6038 6039#undef gethostbyname 6040 6041/* Override any GCC internal prototype to avoid an error. 6042 Use char because int might match the return type of a GCC 6043 builtin and then its argument prototype would still apply. */ 6044#ifdef __cplusplus 6045extern "C" 6046#endif 6047char gethostbyname (); 6048/* The GNU C library defines this for functions which it implements 6049 to always fail with ENOSYS. Some functions are actually named 6050 something starting with __ and the normal name is an alias. */ 6051#if defined __stub_gethostbyname || defined __stub___gethostbyname 6052choke me 6053#endif 6054 6055int 6056main () 6057{ 6058return gethostbyname (); 6059 ; 6060 return 0; 6061} 6062_ACEOF 6063rm -f conftest.$ac_objext conftest$ac_exeext 6064if { (ac_try="$ac_link" 6065case "(($ac_try" in 6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6067 *) ac_try_echo=$ac_try;; 6068esac 6069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6070 (eval "$ac_link") 2>conftest.er1 6071 ac_status=$? 6072 grep -v '^ *+' conftest.er1 >conftest.err 6073 rm -f conftest.er1 6074 cat conftest.err >&5 6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6076 (exit $ac_status); } && 6077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6078 { (case "(($ac_try" in 6079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6080 *) ac_try_echo=$ac_try;; 6081esac 6082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6083 (eval "$ac_try") 2>&5 6084 ac_status=$? 6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6086 (exit $ac_status); }; } && 6087 { ac_try='test -s conftest$ac_exeext' 6088 { (case "(($ac_try" in 6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6090 *) ac_try_echo=$ac_try;; 6091esac 6092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6093 (eval "$ac_try") 2>&5 6094 ac_status=$? 6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6096 (exit $ac_status); }; }; then 6097 ac_cv_func_gethostbyname=yes 6098else 6099 echo "$as_me: failed program was:" >&5 6100sed 's/^/| /' conftest.$ac_ext >&5 6101 6102 ac_cv_func_gethostbyname=no 6103fi 6104 6105rm -f core conftest.err conftest.$ac_objext \ 6106 conftest$ac_exeext conftest.$ac_ext 6107fi 6108{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 6109echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 6110 6111 if test $ac_cv_func_gethostbyname = no; then 6112 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 6113echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 6114if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 6115 echo $ECHO_N "(cached) $ECHO_C" >&6 6116else 6117 ac_check_lib_save_LIBS=$LIBS 6118LIBS="-lnsl $LIBS" 6119cat >conftest.$ac_ext <<_ACEOF 6120/* confdefs.h. */ 6121_ACEOF 6122cat confdefs.h >>conftest.$ac_ext 6123cat >>conftest.$ac_ext <<_ACEOF 6124/* end confdefs.h. */ 6125 6126/* Override any GCC internal prototype to avoid an error. 6127 Use char because int might match the return type of a GCC 6128 builtin and then its argument prototype would still apply. */ 6129#ifdef __cplusplus 6130extern "C" 6131#endif 6132char gethostbyname (); 6133int 6134main () 6135{ 6136return gethostbyname (); 6137 ; 6138 return 0; 6139} 6140_ACEOF 6141rm -f conftest.$ac_objext conftest$ac_exeext 6142if { (ac_try="$ac_link" 6143case "(($ac_try" in 6144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6145 *) ac_try_echo=$ac_try;; 6146esac 6147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6148 (eval "$ac_link") 2>conftest.er1 6149 ac_status=$? 6150 grep -v '^ *+' conftest.er1 >conftest.err 6151 rm -f conftest.er1 6152 cat conftest.err >&5 6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6154 (exit $ac_status); } && 6155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6156 { (case "(($ac_try" in 6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6158 *) ac_try_echo=$ac_try;; 6159esac 6160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6161 (eval "$ac_try") 2>&5 6162 ac_status=$? 6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6164 (exit $ac_status); }; } && 6165 { ac_try='test -s conftest$ac_exeext' 6166 { (case "(($ac_try" in 6167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6168 *) ac_try_echo=$ac_try;; 6169esac 6170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6171 (eval "$ac_try") 2>&5 6172 ac_status=$? 6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6174 (exit $ac_status); }; }; then 6175 ac_cv_lib_nsl_gethostbyname=yes 6176else 6177 echo "$as_me: failed program was:" >&5 6178sed 's/^/| /' conftest.$ac_ext >&5 6179 6180 ac_cv_lib_nsl_gethostbyname=no 6181fi 6182 6183rm -f core conftest.err conftest.$ac_objext \ 6184 conftest$ac_exeext conftest.$ac_ext 6185LIBS=$ac_check_lib_save_LIBS 6186fi 6187{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 6188echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 6189if test $ac_cv_lib_nsl_gethostbyname = yes; then 6190 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 6191fi 6192 6193 if test $ac_cv_lib_nsl_gethostbyname = no; then 6194 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 6195echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } 6196if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 6197 echo $ECHO_N "(cached) $ECHO_C" >&6 6198else 6199 ac_check_lib_save_LIBS=$LIBS 6200LIBS="-lbsd $LIBS" 6201cat >conftest.$ac_ext <<_ACEOF 6202/* confdefs.h. */ 6203_ACEOF 6204cat confdefs.h >>conftest.$ac_ext 6205cat >>conftest.$ac_ext <<_ACEOF 6206/* end confdefs.h. */ 6207 6208/* Override any GCC internal prototype to avoid an error. 6209 Use char because int might match the return type of a GCC 6210 builtin and then its argument prototype would still apply. */ 6211#ifdef __cplusplus 6212extern "C" 6213#endif 6214char gethostbyname (); 6215int 6216main () 6217{ 6218return gethostbyname (); 6219 ; 6220 return 0; 6221} 6222_ACEOF 6223rm -f conftest.$ac_objext conftest$ac_exeext 6224if { (ac_try="$ac_link" 6225case "(($ac_try" in 6226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6227 *) ac_try_echo=$ac_try;; 6228esac 6229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6230 (eval "$ac_link") 2>conftest.er1 6231 ac_status=$? 6232 grep -v '^ *+' conftest.er1 >conftest.err 6233 rm -f conftest.er1 6234 cat conftest.err >&5 6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6236 (exit $ac_status); } && 6237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6238 { (case "(($ac_try" in 6239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6240 *) ac_try_echo=$ac_try;; 6241esac 6242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6243 (eval "$ac_try") 2>&5 6244 ac_status=$? 6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6246 (exit $ac_status); }; } && 6247 { ac_try='test -s conftest$ac_exeext' 6248 { (case "(($ac_try" in 6249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6250 *) ac_try_echo=$ac_try;; 6251esac 6252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6253 (eval "$ac_try") 2>&5 6254 ac_status=$? 6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6256 (exit $ac_status); }; }; then 6257 ac_cv_lib_bsd_gethostbyname=yes 6258else 6259 echo "$as_me: failed program was:" >&5 6260sed 's/^/| /' conftest.$ac_ext >&5 6261 6262 ac_cv_lib_bsd_gethostbyname=no 6263fi 6264 6265rm -f core conftest.err conftest.$ac_objext \ 6266 conftest$ac_exeext conftest.$ac_ext 6267LIBS=$ac_check_lib_save_LIBS 6268fi 6269{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 6270echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } 6271if test $ac_cv_lib_bsd_gethostbyname = yes; then 6272 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 6273fi 6274 6275 fi 6276 fi 6277 6278 # lieder@skyler.mavd.honeywell.com says without -lsocket, 6279 # socket/setsockopt and other routines are undefined under SCO ODT 6280 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 6281 # on later versions), says Simon Leinen: it contains gethostby* 6282 # variants that don't use the name server (or something). -lsocket 6283 # must be given before -lnsl if both are needed. We assume that 6284 # if connect needs -lnsl, so does gethostbyname. 6285 { echo "$as_me:$LINENO: checking for connect" >&5 6286echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 6287if test "${ac_cv_func_connect+set}" = set; then 6288 echo $ECHO_N "(cached) $ECHO_C" >&6 6289else 6290 cat >conftest.$ac_ext <<_ACEOF 6291/* confdefs.h. */ 6292_ACEOF 6293cat confdefs.h >>conftest.$ac_ext 6294cat >>conftest.$ac_ext <<_ACEOF 6295/* end confdefs.h. */ 6296/* Define connect to an innocuous variant, in case <limits.h> declares connect. 6297 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6298#define connect innocuous_connect 6299 6300/* System header to define __stub macros and hopefully few prototypes, 6301 which can conflict with char connect (); below. 6302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6303 <limits.h> exists even on freestanding compilers. */ 6304 6305#ifdef __STDC__ 6306# include <limits.h> 6307#else 6308# include <assert.h> 6309#endif 6310 6311#undef connect 6312 6313/* Override any GCC internal prototype to avoid an error. 6314 Use char because int might match the return type of a GCC 6315 builtin and then its argument prototype would still apply. */ 6316#ifdef __cplusplus 6317extern "C" 6318#endif 6319char connect (); 6320/* The GNU C library defines this for functions which it implements 6321 to always fail with ENOSYS. Some functions are actually named 6322 something starting with __ and the normal name is an alias. */ 6323#if defined __stub_connect || defined __stub___connect 6324choke me 6325#endif 6326 6327int 6328main () 6329{ 6330return connect (); 6331 ; 6332 return 0; 6333} 6334_ACEOF 6335rm -f conftest.$ac_objext conftest$ac_exeext 6336if { (ac_try="$ac_link" 6337case "(($ac_try" in 6338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6339 *) ac_try_echo=$ac_try;; 6340esac 6341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6342 (eval "$ac_link") 2>conftest.er1 6343 ac_status=$? 6344 grep -v '^ *+' conftest.er1 >conftest.err 6345 rm -f conftest.er1 6346 cat conftest.err >&5 6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6348 (exit $ac_status); } && 6349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6350 { (case "(($ac_try" in 6351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6352 *) ac_try_echo=$ac_try;; 6353esac 6354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6355 (eval "$ac_try") 2>&5 6356 ac_status=$? 6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6358 (exit $ac_status); }; } && 6359 { ac_try='test -s conftest$ac_exeext' 6360 { (case "(($ac_try" in 6361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6362 *) ac_try_echo=$ac_try;; 6363esac 6364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6365 (eval "$ac_try") 2>&5 6366 ac_status=$? 6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6368 (exit $ac_status); }; }; then 6369 ac_cv_func_connect=yes 6370else 6371 echo "$as_me: failed program was:" >&5 6372sed 's/^/| /' conftest.$ac_ext >&5 6373 6374 ac_cv_func_connect=no 6375fi 6376 6377rm -f core conftest.err conftest.$ac_objext \ 6378 conftest$ac_exeext conftest.$ac_ext 6379fi 6380{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 6381echo "${ECHO_T}$ac_cv_func_connect" >&6; } 6382 6383 if test $ac_cv_func_connect = no; then 6384 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 6385echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } 6386if test "${ac_cv_lib_socket_connect+set}" = set; then 6387 echo $ECHO_N "(cached) $ECHO_C" >&6 6388else 6389 ac_check_lib_save_LIBS=$LIBS 6390LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 6391cat >conftest.$ac_ext <<_ACEOF 6392/* confdefs.h. */ 6393_ACEOF 6394cat confdefs.h >>conftest.$ac_ext 6395cat >>conftest.$ac_ext <<_ACEOF 6396/* end confdefs.h. */ 6397 6398/* Override any GCC internal prototype to avoid an error. 6399 Use char because int might match the return type of a GCC 6400 builtin and then its argument prototype would still apply. */ 6401#ifdef __cplusplus 6402extern "C" 6403#endif 6404char connect (); 6405int 6406main () 6407{ 6408return connect (); 6409 ; 6410 return 0; 6411} 6412_ACEOF 6413rm -f conftest.$ac_objext conftest$ac_exeext 6414if { (ac_try="$ac_link" 6415case "(($ac_try" in 6416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6417 *) ac_try_echo=$ac_try;; 6418esac 6419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6420 (eval "$ac_link") 2>conftest.er1 6421 ac_status=$? 6422 grep -v '^ *+' conftest.er1 >conftest.err 6423 rm -f conftest.er1 6424 cat conftest.err >&5 6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6426 (exit $ac_status); } && 6427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6428 { (case "(($ac_try" in 6429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6430 *) ac_try_echo=$ac_try;; 6431esac 6432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6433 (eval "$ac_try") 2>&5 6434 ac_status=$? 6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6436 (exit $ac_status); }; } && 6437 { ac_try='test -s conftest$ac_exeext' 6438 { (case "(($ac_try" in 6439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6440 *) ac_try_echo=$ac_try;; 6441esac 6442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6443 (eval "$ac_try") 2>&5 6444 ac_status=$? 6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6446 (exit $ac_status); }; }; then 6447 ac_cv_lib_socket_connect=yes 6448else 6449 echo "$as_me: failed program was:" >&5 6450sed 's/^/| /' conftest.$ac_ext >&5 6451 6452 ac_cv_lib_socket_connect=no 6453fi 6454 6455rm -f core conftest.err conftest.$ac_objext \ 6456 conftest$ac_exeext conftest.$ac_ext 6457LIBS=$ac_check_lib_save_LIBS 6458fi 6459{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 6460echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } 6461if test $ac_cv_lib_socket_connect = yes; then 6462 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 6463fi 6464 6465 fi 6466 6467 # Guillermo Gomez says -lposix is necessary on A/UX. 6468 { echo "$as_me:$LINENO: checking for remove" >&5 6469echo $ECHO_N "checking for remove... $ECHO_C" >&6; } 6470if test "${ac_cv_func_remove+set}" = set; then 6471 echo $ECHO_N "(cached) $ECHO_C" >&6 6472else 6473 cat >conftest.$ac_ext <<_ACEOF 6474/* confdefs.h. */ 6475_ACEOF 6476cat confdefs.h >>conftest.$ac_ext 6477cat >>conftest.$ac_ext <<_ACEOF 6478/* end confdefs.h. */ 6479/* Define remove to an innocuous variant, in case <limits.h> declares remove. 6480 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6481#define remove innocuous_remove 6482 6483/* System header to define __stub macros and hopefully few prototypes, 6484 which can conflict with char remove (); below. 6485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6486 <limits.h> exists even on freestanding compilers. */ 6487 6488#ifdef __STDC__ 6489# include <limits.h> 6490#else 6491# include <assert.h> 6492#endif 6493 6494#undef remove 6495 6496/* Override any GCC internal prototype to avoid an error. 6497 Use char because int might match the return type of a GCC 6498 builtin and then its argument prototype would still apply. */ 6499#ifdef __cplusplus 6500extern "C" 6501#endif 6502char remove (); 6503/* The GNU C library defines this for functions which it implements 6504 to always fail with ENOSYS. Some functions are actually named 6505 something starting with __ and the normal name is an alias. */ 6506#if defined __stub_remove || defined __stub___remove 6507choke me 6508#endif 6509 6510int 6511main () 6512{ 6513return remove (); 6514 ; 6515 return 0; 6516} 6517_ACEOF 6518rm -f conftest.$ac_objext conftest$ac_exeext 6519if { (ac_try="$ac_link" 6520case "(($ac_try" in 6521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6522 *) ac_try_echo=$ac_try;; 6523esac 6524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6525 (eval "$ac_link") 2>conftest.er1 6526 ac_status=$? 6527 grep -v '^ *+' conftest.er1 >conftest.err 6528 rm -f conftest.er1 6529 cat conftest.err >&5 6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6531 (exit $ac_status); } && 6532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6533 { (case "(($ac_try" in 6534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6535 *) ac_try_echo=$ac_try;; 6536esac 6537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6538 (eval "$ac_try") 2>&5 6539 ac_status=$? 6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6541 (exit $ac_status); }; } && 6542 { ac_try='test -s conftest$ac_exeext' 6543 { (case "(($ac_try" in 6544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6545 *) ac_try_echo=$ac_try;; 6546esac 6547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6548 (eval "$ac_try") 2>&5 6549 ac_status=$? 6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6551 (exit $ac_status); }; }; then 6552 ac_cv_func_remove=yes 6553else 6554 echo "$as_me: failed program was:" >&5 6555sed 's/^/| /' conftest.$ac_ext >&5 6556 6557 ac_cv_func_remove=no 6558fi 6559 6560rm -f core conftest.err conftest.$ac_objext \ 6561 conftest$ac_exeext conftest.$ac_ext 6562fi 6563{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 6564echo "${ECHO_T}$ac_cv_func_remove" >&6; } 6565 6566 if test $ac_cv_func_remove = no; then 6567 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 6568echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } 6569if test "${ac_cv_lib_posix_remove+set}" = set; then 6570 echo $ECHO_N "(cached) $ECHO_C" >&6 6571else 6572 ac_check_lib_save_LIBS=$LIBS 6573LIBS="-lposix $LIBS" 6574cat >conftest.$ac_ext <<_ACEOF 6575/* confdefs.h. */ 6576_ACEOF 6577cat confdefs.h >>conftest.$ac_ext 6578cat >>conftest.$ac_ext <<_ACEOF 6579/* end confdefs.h. */ 6580 6581/* Override any GCC internal prototype to avoid an error. 6582 Use char because int might match the return type of a GCC 6583 builtin and then its argument prototype would still apply. */ 6584#ifdef __cplusplus 6585extern "C" 6586#endif 6587char remove (); 6588int 6589main () 6590{ 6591return remove (); 6592 ; 6593 return 0; 6594} 6595_ACEOF 6596rm -f conftest.$ac_objext conftest$ac_exeext 6597if { (ac_try="$ac_link" 6598case "(($ac_try" in 6599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6600 *) ac_try_echo=$ac_try;; 6601esac 6602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6603 (eval "$ac_link") 2>conftest.er1 6604 ac_status=$? 6605 grep -v '^ *+' conftest.er1 >conftest.err 6606 rm -f conftest.er1 6607 cat conftest.err >&5 6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6609 (exit $ac_status); } && 6610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6611 { (case "(($ac_try" in 6612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6613 *) ac_try_echo=$ac_try;; 6614esac 6615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6616 (eval "$ac_try") 2>&5 6617 ac_status=$? 6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6619 (exit $ac_status); }; } && 6620 { ac_try='test -s conftest$ac_exeext' 6621 { (case "(($ac_try" in 6622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6623 *) ac_try_echo=$ac_try;; 6624esac 6625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6626 (eval "$ac_try") 2>&5 6627 ac_status=$? 6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6629 (exit $ac_status); }; }; then 6630 ac_cv_lib_posix_remove=yes 6631else 6632 echo "$as_me: failed program was:" >&5 6633sed 's/^/| /' conftest.$ac_ext >&5 6634 6635 ac_cv_lib_posix_remove=no 6636fi 6637 6638rm -f core conftest.err conftest.$ac_objext \ 6639 conftest$ac_exeext conftest.$ac_ext 6640LIBS=$ac_check_lib_save_LIBS 6641fi 6642{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 6643echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } 6644if test $ac_cv_lib_posix_remove = yes; then 6645 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 6646fi 6647 6648 fi 6649 6650 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 6651 { echo "$as_me:$LINENO: checking for shmat" >&5 6652echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } 6653if test "${ac_cv_func_shmat+set}" = set; then 6654 echo $ECHO_N "(cached) $ECHO_C" >&6 6655else 6656 cat >conftest.$ac_ext <<_ACEOF 6657/* confdefs.h. */ 6658_ACEOF 6659cat confdefs.h >>conftest.$ac_ext 6660cat >>conftest.$ac_ext <<_ACEOF 6661/* end confdefs.h. */ 6662/* Define shmat to an innocuous variant, in case <limits.h> declares shmat. 6663 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6664#define shmat innocuous_shmat 6665 6666/* System header to define __stub macros and hopefully few prototypes, 6667 which can conflict with char shmat (); below. 6668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6669 <limits.h> exists even on freestanding compilers. */ 6670 6671#ifdef __STDC__ 6672# include <limits.h> 6673#else 6674# include <assert.h> 6675#endif 6676 6677#undef shmat 6678 6679/* Override any GCC internal prototype to avoid an error. 6680 Use char because int might match the return type of a GCC 6681 builtin and then its argument prototype would still apply. */ 6682#ifdef __cplusplus 6683extern "C" 6684#endif 6685char shmat (); 6686/* The GNU C library defines this for functions which it implements 6687 to always fail with ENOSYS. Some functions are actually named 6688 something starting with __ and the normal name is an alias. */ 6689#if defined __stub_shmat || defined __stub___shmat 6690choke me 6691#endif 6692 6693int 6694main () 6695{ 6696return shmat (); 6697 ; 6698 return 0; 6699} 6700_ACEOF 6701rm -f conftest.$ac_objext conftest$ac_exeext 6702if { (ac_try="$ac_link" 6703case "(($ac_try" in 6704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6705 *) ac_try_echo=$ac_try;; 6706esac 6707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6708 (eval "$ac_link") 2>conftest.er1 6709 ac_status=$? 6710 grep -v '^ *+' conftest.er1 >conftest.err 6711 rm -f conftest.er1 6712 cat conftest.err >&5 6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6714 (exit $ac_status); } && 6715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6716 { (case "(($ac_try" in 6717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6718 *) ac_try_echo=$ac_try;; 6719esac 6720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6721 (eval "$ac_try") 2>&5 6722 ac_status=$? 6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6724 (exit $ac_status); }; } && 6725 { ac_try='test -s conftest$ac_exeext' 6726 { (case "(($ac_try" in 6727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6728 *) ac_try_echo=$ac_try;; 6729esac 6730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6731 (eval "$ac_try") 2>&5 6732 ac_status=$? 6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6734 (exit $ac_status); }; }; then 6735 ac_cv_func_shmat=yes 6736else 6737 echo "$as_me: failed program was:" >&5 6738sed 's/^/| /' conftest.$ac_ext >&5 6739 6740 ac_cv_func_shmat=no 6741fi 6742 6743rm -f core conftest.err conftest.$ac_objext \ 6744 conftest$ac_exeext conftest.$ac_ext 6745fi 6746{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 6747echo "${ECHO_T}$ac_cv_func_shmat" >&6; } 6748 6749 if test $ac_cv_func_shmat = no; then 6750 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 6751echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } 6752if test "${ac_cv_lib_ipc_shmat+set}" = set; then 6753 echo $ECHO_N "(cached) $ECHO_C" >&6 6754else 6755 ac_check_lib_save_LIBS=$LIBS 6756LIBS="-lipc $LIBS" 6757cat >conftest.$ac_ext <<_ACEOF 6758/* confdefs.h. */ 6759_ACEOF 6760cat confdefs.h >>conftest.$ac_ext 6761cat >>conftest.$ac_ext <<_ACEOF 6762/* end confdefs.h. */ 6763 6764/* Override any GCC internal prototype to avoid an error. 6765 Use char because int might match the return type of a GCC 6766 builtin and then its argument prototype would still apply. */ 6767#ifdef __cplusplus 6768extern "C" 6769#endif 6770char shmat (); 6771int 6772main () 6773{ 6774return shmat (); 6775 ; 6776 return 0; 6777} 6778_ACEOF 6779rm -f conftest.$ac_objext conftest$ac_exeext 6780if { (ac_try="$ac_link" 6781case "(($ac_try" in 6782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6783 *) ac_try_echo=$ac_try;; 6784esac 6785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6786 (eval "$ac_link") 2>conftest.er1 6787 ac_status=$? 6788 grep -v '^ *+' conftest.er1 >conftest.err 6789 rm -f conftest.er1 6790 cat conftest.err >&5 6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6792 (exit $ac_status); } && 6793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6794 { (case "(($ac_try" in 6795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6796 *) ac_try_echo=$ac_try;; 6797esac 6798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6799 (eval "$ac_try") 2>&5 6800 ac_status=$? 6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6802 (exit $ac_status); }; } && 6803 { ac_try='test -s conftest$ac_exeext' 6804 { (case "(($ac_try" in 6805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6806 *) ac_try_echo=$ac_try;; 6807esac 6808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6809 (eval "$ac_try") 2>&5 6810 ac_status=$? 6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6812 (exit $ac_status); }; }; then 6813 ac_cv_lib_ipc_shmat=yes 6814else 6815 echo "$as_me: failed program was:" >&5 6816sed 's/^/| /' conftest.$ac_ext >&5 6817 6818 ac_cv_lib_ipc_shmat=no 6819fi 6820 6821rm -f core conftest.err conftest.$ac_objext \ 6822 conftest$ac_exeext conftest.$ac_ext 6823LIBS=$ac_check_lib_save_LIBS 6824fi 6825{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 6826echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } 6827if test $ac_cv_lib_ipc_shmat = yes; then 6828 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 6829fi 6830 6831 fi 6832 fi 6833 6834 # Check for libraries that X11R6 Xt/Xaw programs need. 6835 ac_save_LDFLAGS=$LDFLAGS 6836 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 6837 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 6838 # check for ICE first), but we must link in the order -lSM -lICE or 6839 # we get undefined symbols. So assume we have SM if we have ICE. 6840 # These have to be linked with before -lX11, unlike the other 6841 # libraries we check for below, so use a different variable. 6842 # John Interrante, Karl Berry 6843 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 6844echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } 6845if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 6846 echo $ECHO_N "(cached) $ECHO_C" >&6 6847else 6848 ac_check_lib_save_LIBS=$LIBS 6849LIBS="-lICE $X_EXTRA_LIBS $LIBS" 6850cat >conftest.$ac_ext <<_ACEOF 6851/* confdefs.h. */ 6852_ACEOF 6853cat confdefs.h >>conftest.$ac_ext 6854cat >>conftest.$ac_ext <<_ACEOF 6855/* end confdefs.h. */ 6856 6857/* Override any GCC internal prototype to avoid an error. 6858 Use char because int might match the return type of a GCC 6859 builtin and then its argument prototype would still apply. */ 6860#ifdef __cplusplus 6861extern "C" 6862#endif 6863char IceConnectionNumber (); 6864int 6865main () 6866{ 6867return IceConnectionNumber (); 6868 ; 6869 return 0; 6870} 6871_ACEOF 6872rm -f conftest.$ac_objext conftest$ac_exeext 6873if { (ac_try="$ac_link" 6874case "(($ac_try" in 6875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6876 *) ac_try_echo=$ac_try;; 6877esac 6878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6879 (eval "$ac_link") 2>conftest.er1 6880 ac_status=$? 6881 grep -v '^ *+' conftest.er1 >conftest.err 6882 rm -f conftest.er1 6883 cat conftest.err >&5 6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6885 (exit $ac_status); } && 6886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6887 { (case "(($ac_try" in 6888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6889 *) ac_try_echo=$ac_try;; 6890esac 6891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6892 (eval "$ac_try") 2>&5 6893 ac_status=$? 6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6895 (exit $ac_status); }; } && 6896 { ac_try='test -s conftest$ac_exeext' 6897 { (case "(($ac_try" in 6898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6899 *) ac_try_echo=$ac_try;; 6900esac 6901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6902 (eval "$ac_try") 2>&5 6903 ac_status=$? 6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6905 (exit $ac_status); }; }; then 6906 ac_cv_lib_ICE_IceConnectionNumber=yes 6907else 6908 echo "$as_me: failed program was:" >&5 6909sed 's/^/| /' conftest.$ac_ext >&5 6910 6911 ac_cv_lib_ICE_IceConnectionNumber=no 6912fi 6913 6914rm -f core conftest.err conftest.$ac_objext \ 6915 conftest$ac_exeext conftest.$ac_ext 6916LIBS=$ac_check_lib_save_LIBS 6917fi 6918{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 6919echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 6920if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 6921 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 6922fi 6923 6924 LDFLAGS=$ac_save_LDFLAGS 6925 6926fi 6927 6928 6929 6930 6931 6932 6933 { echo "$as_me:$LINENO: checking for OpenGL" >&5 6934echo $ECHO_N "checking for OpenGL... $ECHO_C" >&6; } 6935if test "${mdl_cv_have_OpenGL+set}" = set; then 6936 echo $ECHO_N "(cached) $ECHO_C" >&6 6937else 6938 6939 6940 GL_search_list="GL MesaGL" 6941 GLU_search_list="GLU MesaGLU" 6942 GLX_search_list="GLX MesaGLX" 6943 6944 6945 ac_ext=c 6946ac_cpp='$CPP $CPPFLAGS' 6947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6949ac_compiler_gnu=$ac_cv_c_compiler_gnu 6950 6951 6952if test x"$no_x" != xyes; then 6953 GL_CFLAGS="$X_CFLAGS" 6954 GL_X_LIBS="$X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" 6955fi 6956 GL_save_CPPFLAGS="$CPPFLAGS" 6957 CPPFLAGS="$GL_CFLAGS" 6958 6959 GL_save_LIBS="$LIBS" 6960 LIBS="$GL_X_LIBS" 6961 6962 6963 # Save the "AC_MSG_RESULT file descriptor" to FD 8. 6964 exec 8>&6 6965 6966 # Temporarily turn off AC_MSG_RESULT so that the user gets pretty 6967 # messages. 6968 exec 6>/dev/null 6969 6970 { echo "$as_me:$LINENO: checking for library containing glAccum" >&5 6971echo $ECHO_N "checking for library containing glAccum... $ECHO_C" >&6; } 6972if test "${ac_cv_search_glAccum+set}" = set; then 6973 echo $ECHO_N "(cached) $ECHO_C" >&6 6974else 6975 ac_func_search_save_LIBS=$LIBS 6976cat >conftest.$ac_ext <<_ACEOF 6977/* confdefs.h. */ 6978_ACEOF 6979cat confdefs.h >>conftest.$ac_ext 6980cat >>conftest.$ac_ext <<_ACEOF 6981/* end confdefs.h. */ 6982 6983/* Override any GCC internal prototype to avoid an error. 6984 Use char because int might match the return type of a GCC 6985 builtin and then its argument prototype would still apply. */ 6986#ifdef __cplusplus 6987extern "C" 6988#endif 6989char glAccum (); 6990int 6991main () 6992{ 6993return glAccum (); 6994 ; 6995 return 0; 6996} 6997_ACEOF 6998for ac_lib in '' $GL_search_list; do 6999 if test -z "$ac_lib"; then 7000 ac_res="none required" 7001 else 7002 ac_res=-l$ac_lib 7003 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7004 fi 7005 rm -f conftest.$ac_objext conftest$ac_exeext 7006if { (ac_try="$ac_link" 7007case "(($ac_try" in 7008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7009 *) ac_try_echo=$ac_try;; 7010esac 7011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7012 (eval "$ac_link") 2>conftest.er1 7013 ac_status=$? 7014 grep -v '^ *+' conftest.er1 >conftest.err 7015 rm -f conftest.er1 7016 cat conftest.err >&5 7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7018 (exit $ac_status); } && 7019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7020 { (case "(($ac_try" in 7021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7022 *) ac_try_echo=$ac_try;; 7023esac 7024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7025 (eval "$ac_try") 2>&5 7026 ac_status=$? 7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7028 (exit $ac_status); }; } && 7029 { ac_try='test -s conftest$ac_exeext' 7030 { (case "(($ac_try" in 7031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7032 *) ac_try_echo=$ac_try;; 7033esac 7034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7035 (eval "$ac_try") 2>&5 7036 ac_status=$? 7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7038 (exit $ac_status); }; }; then 7039 ac_cv_search_glAccum=$ac_res 7040else 7041 echo "$as_me: failed program was:" >&5 7042sed 's/^/| /' conftest.$ac_ext >&5 7043 7044 7045fi 7046 7047rm -f core conftest.err conftest.$ac_objext \ 7048 conftest$ac_exeext 7049 if test "${ac_cv_search_glAccum+set}" = set; then 7050 break 7051fi 7052done 7053if test "${ac_cv_search_glAccum+set}" = set; then 7054 : 7055else 7056 ac_cv_search_glAccum=no 7057fi 7058rm conftest.$ac_ext 7059LIBS=$ac_func_search_save_LIBS 7060fi 7061{ echo "$as_me:$LINENO: result: $ac_cv_search_glAccum" >&5 7062echo "${ECHO_T}$ac_cv_search_glAccum" >&6; } 7063ac_res=$ac_cv_search_glAccum 7064if test "$ac_res" != no; then 7065 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7066 have_GL=yes 7067else 7068 have_GL=no 7069fi 7070 7071 { echo "$as_me:$LINENO: checking for library containing gluBeginCurve" >&5 7072echo $ECHO_N "checking for library containing gluBeginCurve... $ECHO_C" >&6; } 7073if test "${ac_cv_search_gluBeginCurve+set}" = set; then 7074 echo $ECHO_N "(cached) $ECHO_C" >&6 7075else 7076 ac_func_search_save_LIBS=$LIBS 7077cat >conftest.$ac_ext <<_ACEOF 7078/* confdefs.h. */ 7079_ACEOF 7080cat confdefs.h >>conftest.$ac_ext 7081cat >>conftest.$ac_ext <<_ACEOF 7082/* end confdefs.h. */ 7083 7084/* Override any GCC internal prototype to avoid an error. 7085 Use char because int might match the return type of a GCC 7086 builtin and then its argument prototype would still apply. */ 7087#ifdef __cplusplus 7088extern "C" 7089#endif 7090char gluBeginCurve (); 7091int 7092main () 7093{ 7094return gluBeginCurve (); 7095 ; 7096 return 0; 7097} 7098_ACEOF 7099for ac_lib in '' $GLU_search_list; do 7100 if test -z "$ac_lib"; then 7101 ac_res="none required" 7102 else 7103 ac_res=-l$ac_lib 7104 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7105 fi 7106 rm -f conftest.$ac_objext conftest$ac_exeext 7107if { (ac_try="$ac_link" 7108case "(($ac_try" in 7109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7110 *) ac_try_echo=$ac_try;; 7111esac 7112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7113 (eval "$ac_link") 2>conftest.er1 7114 ac_status=$? 7115 grep -v '^ *+' conftest.er1 >conftest.err 7116 rm -f conftest.er1 7117 cat conftest.err >&5 7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7119 (exit $ac_status); } && 7120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7121 { (case "(($ac_try" in 7122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7123 *) ac_try_echo=$ac_try;; 7124esac 7125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7126 (eval "$ac_try") 2>&5 7127 ac_status=$? 7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7129 (exit $ac_status); }; } && 7130 { ac_try='test -s conftest$ac_exeext' 7131 { (case "(($ac_try" in 7132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7133 *) ac_try_echo=$ac_try;; 7134esac 7135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7136 (eval "$ac_try") 2>&5 7137 ac_status=$? 7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7139 (exit $ac_status); }; }; then 7140 ac_cv_search_gluBeginCurve=$ac_res 7141else 7142 echo "$as_me: failed program was:" >&5 7143sed 's/^/| /' conftest.$ac_ext >&5 7144 7145 7146fi 7147 7148rm -f core conftest.err conftest.$ac_objext \ 7149 conftest$ac_exeext 7150 if test "${ac_cv_search_gluBeginCurve+set}" = set; then 7151 break 7152fi 7153done 7154if test "${ac_cv_search_gluBeginCurve+set}" = set; then 7155 : 7156else 7157 ac_cv_search_gluBeginCurve=no 7158fi 7159rm conftest.$ac_ext 7160LIBS=$ac_func_search_save_LIBS 7161fi 7162{ echo "$as_me:$LINENO: result: $ac_cv_search_gluBeginCurve" >&5 7163echo "${ECHO_T}$ac_cv_search_gluBeginCurve" >&6; } 7164ac_res=$ac_cv_search_gluBeginCurve 7165if test "$ac_res" != no; then 7166 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7167 have_GLU=yes 7168else 7169 have_GLU=no 7170fi 7171 7172 { echo "$as_me:$LINENO: checking for library containing glXChooseVisual" >&5 7173echo $ECHO_N "checking for library containing glXChooseVisual... $ECHO_C" >&6; } 7174if test "${ac_cv_search_glXChooseVisual+set}" = set; then 7175 echo $ECHO_N "(cached) $ECHO_C" >&6 7176else 7177 ac_func_search_save_LIBS=$LIBS 7178cat >conftest.$ac_ext <<_ACEOF 7179/* confdefs.h. */ 7180_ACEOF 7181cat confdefs.h >>conftest.$ac_ext 7182cat >>conftest.$ac_ext <<_ACEOF 7183/* end confdefs.h. */ 7184 7185/* Override any GCC internal prototype to avoid an error. 7186 Use char because int might match the return type of a GCC 7187 builtin and then its argument prototype would still apply. */ 7188#ifdef __cplusplus 7189extern "C" 7190#endif 7191char glXChooseVisual (); 7192int 7193main () 7194{ 7195return glXChooseVisual (); 7196 ; 7197 return 0; 7198} 7199_ACEOF 7200for ac_lib in '' $GLX_search_list; do 7201 if test -z "$ac_lib"; then 7202 ac_res="none required" 7203 else 7204 ac_res=-l$ac_lib 7205 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7206 fi 7207 rm -f conftest.$ac_objext conftest$ac_exeext 7208if { (ac_try="$ac_link" 7209case "(($ac_try" in 7210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7211 *) ac_try_echo=$ac_try;; 7212esac 7213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7214 (eval "$ac_link") 2>conftest.er1 7215 ac_status=$? 7216 grep -v '^ *+' conftest.er1 >conftest.err 7217 rm -f conftest.er1 7218 cat conftest.err >&5 7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7220 (exit $ac_status); } && 7221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7222 { (case "(($ac_try" in 7223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7224 *) ac_try_echo=$ac_try;; 7225esac 7226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7227 (eval "$ac_try") 2>&5 7228 ac_status=$? 7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7230 (exit $ac_status); }; } && 7231 { ac_try='test -s conftest$ac_exeext' 7232 { (case "(($ac_try" in 7233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7234 *) ac_try_echo=$ac_try;; 7235esac 7236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7237 (eval "$ac_try") 2>&5 7238 ac_status=$? 7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7240 (exit $ac_status); }; }; then 7241 ac_cv_search_glXChooseVisual=$ac_res 7242else 7243 echo "$as_me: failed program was:" >&5 7244sed 's/^/| /' conftest.$ac_ext >&5 7245 7246 7247fi 7248 7249rm -f core conftest.err conftest.$ac_objext \ 7250 conftest$ac_exeext 7251 if test "${ac_cv_search_glXChooseVisual+set}" = set; then 7252 break 7253fi 7254done 7255if test "${ac_cv_search_glXChooseVisual+set}" = set; then 7256 : 7257else 7258 ac_cv_search_glXChooseVisual=no 7259fi 7260rm conftest.$ac_ext 7261LIBS=$ac_func_search_save_LIBS 7262fi 7263{ echo "$as_me:$LINENO: result: $ac_cv_search_glXChooseVisual" >&5 7264echo "${ECHO_T}$ac_cv_search_glXChooseVisual" >&6; } 7265ac_res=$ac_cv_search_glXChooseVisual 7266if test "$ac_res" != no; then 7267 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7268 have_GLX=yes 7269else 7270 have_GLX=no 7271fi 7272 7273 { echo "$as_me:$LINENO: checking for library containing glutInit" >&5 7274echo $ECHO_N "checking for library containing glutInit... $ECHO_C" >&6; } 7275if test "${ac_cv_search_glutInit+set}" = set; then 7276 echo $ECHO_N "(cached) $ECHO_C" >&6 7277else 7278 ac_func_search_save_LIBS=$LIBS 7279cat >conftest.$ac_ext <<_ACEOF 7280/* confdefs.h. */ 7281_ACEOF 7282cat confdefs.h >>conftest.$ac_ext 7283cat >>conftest.$ac_ext <<_ACEOF 7284/* end confdefs.h. */ 7285 7286/* Override any GCC internal prototype to avoid an error. 7287 Use char because int might match the return type of a GCC 7288 builtin and then its argument prototype would still apply. */ 7289#ifdef __cplusplus 7290extern "C" 7291#endif 7292char glutInit (); 7293int 7294main () 7295{ 7296return glutInit (); 7297 ; 7298 return 0; 7299} 7300_ACEOF 7301for ac_lib in '' glut; do 7302 if test -z "$ac_lib"; then 7303 ac_res="none required" 7304 else 7305 ac_res=-l$ac_lib 7306 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7307 fi 7308 rm -f conftest.$ac_objext conftest$ac_exeext 7309if { (ac_try="$ac_link" 7310case "(($ac_try" in 7311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7312 *) ac_try_echo=$ac_try;; 7313esac 7314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7315 (eval "$ac_link") 2>conftest.er1 7316 ac_status=$? 7317 grep -v '^ *+' conftest.er1 >conftest.err 7318 rm -f conftest.er1 7319 cat conftest.err >&5 7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7321 (exit $ac_status); } && 7322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7323 { (case "(($ac_try" in 7324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7325 *) ac_try_echo=$ac_try;; 7326esac 7327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7328 (eval "$ac_try") 2>&5 7329 ac_status=$? 7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7331 (exit $ac_status); }; } && 7332 { ac_try='test -s conftest$ac_exeext' 7333 { (case "(($ac_try" in 7334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7335 *) ac_try_echo=$ac_try;; 7336esac 7337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7338 (eval "$ac_try") 2>&5 7339 ac_status=$? 7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7341 (exit $ac_status); }; }; then 7342 ac_cv_search_glutInit=$ac_res 7343else 7344 echo "$as_me: failed program was:" >&5 7345sed 's/^/| /' conftest.$ac_ext >&5 7346 7347 7348fi 7349 7350rm -f core conftest.err conftest.$ac_objext \ 7351 conftest$ac_exeext 7352 if test "${ac_cv_search_glutInit+set}" = set; then 7353 break 7354fi 7355done 7356if test "${ac_cv_search_glutInit+set}" = set; then 7357 : 7358else 7359 ac_cv_search_glutInit=no 7360fi 7361rm conftest.$ac_ext 7362LIBS=$ac_func_search_save_LIBS 7363fi 7364{ echo "$as_me:$LINENO: result: $ac_cv_search_glutInit" >&5 7365echo "${ECHO_T}$ac_cv_search_glutInit" >&6; } 7366ac_res=$ac_cv_search_glutInit 7367if test "$ac_res" != no; then 7368 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7369 have_glut=yes 7370else 7371 have_glut=no 7372fi 7373 7374 7375 7376 7377 # Restore pretty messages. 7378 exec 6>&8 7379 7380 if test -n "$LIBS"; then 7381 mdl_cv_have_OpenGL=yes 7382 GL_LIBS="$LIBS" 7383 7384 7385 else 7386 mdl_cv_have_OpenGL=no 7387 GL_CFLAGS= 7388 fi 7389 7390 GL_X_LIBS= 7391 7392 LIBS="$GL_save_LIBS" 7393 CPPFLAGS="$GL_save_CPPFLAGS" 7394 7395 ac_ext=c 7396ac_cpp='$CPP $CPPFLAGS' 7397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7399ac_compiler_gnu=$ac_cv_c_compiler_gnu 7400 7401 7402 mdl_cv_GL_CFLAGS="$GL_CFLAGS" 7403 mdl_cv_GL_LIBS="$GL_LIBS" 7404 mdl_cv_have_GL="$have_GL" 7405 mdl_cv_have_GLU="$have_GLU" 7406 mdl_cv_have_GLX="$have_GLX" 7407 mdl_cv_have_glut="$have_glut" 7408 7409fi 7410{ echo "$as_me:$LINENO: result: $mdl_cv_have_OpenGL" >&5 7411echo "${ECHO_T}$mdl_cv_have_OpenGL" >&6; } 7412 GL_CFLAGS="$mdl_cv_GL_CFLAGS" 7413 GL_LIBS="$mdl_cv_GL_LIBS" 7414 have_GL="$mdl_cv_have_GL" 7415 have_GLU="$mdl_cv_have_GLU" 7416 have_GLX="$mdl_cv_have_GLX" 7417 have_glut="$mdl_cv_have_glut" 7418 7419 CFLAGS="$CFLAGS $GL_CFLAGS" 7420 CXXFLAGS="$CXXFLAGS $GL_CFLAGS" 7421 LIBS="$LIBS $GL_LIBS" 7422 7423for ac_header in GL/glx.h 7424do 7425as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7426if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7427 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7428echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7429if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7430 echo $ECHO_N "(cached) $ECHO_C" >&6 7431fi 7432ac_res=`eval echo '${'$as_ac_Header'}'` 7433 { echo "$as_me:$LINENO: result: $ac_res" >&5 7434echo "${ECHO_T}$ac_res" >&6; } 7435else 7436 # Is the header compilable? 7437{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 7438echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 7439cat >conftest.$ac_ext <<_ACEOF 7440/* confdefs.h. */ 7441_ACEOF 7442cat confdefs.h >>conftest.$ac_ext 7443cat >>conftest.$ac_ext <<_ACEOF 7444/* end confdefs.h. */ 7445$ac_includes_default 7446#include <$ac_header> 7447_ACEOF 7448rm -f conftest.$ac_objext 7449if { (ac_try="$ac_compile" 7450case "(($ac_try" in 7451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7452 *) ac_try_echo=$ac_try;; 7453esac 7454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7455 (eval "$ac_compile") 2>conftest.er1 7456 ac_status=$? 7457 grep -v '^ *+' conftest.er1 >conftest.err 7458 rm -f conftest.er1 7459 cat conftest.err >&5 7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7461 (exit $ac_status); } && 7462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7463 { (case "(($ac_try" in 7464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7465 *) ac_try_echo=$ac_try;; 7466esac 7467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7468 (eval "$ac_try") 2>&5 7469 ac_status=$? 7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7471 (exit $ac_status); }; } && 7472 { ac_try='test -s conftest.$ac_objext' 7473 { (case "(($ac_try" in 7474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7475 *) ac_try_echo=$ac_try;; 7476esac 7477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7478 (eval "$ac_try") 2>&5 7479 ac_status=$? 7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7481 (exit $ac_status); }; }; then 7482 ac_header_compiler=yes 7483else 7484 echo "$as_me: failed program was:" >&5 7485sed 's/^/| /' conftest.$ac_ext >&5 7486 7487 ac_header_compiler=no 7488fi 7489 7490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7491{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7492echo "${ECHO_T}$ac_header_compiler" >&6; } 7493 7494# Is the header present? 7495{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 7496echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 7497cat >conftest.$ac_ext <<_ACEOF 7498/* confdefs.h. */ 7499_ACEOF 7500cat confdefs.h >>conftest.$ac_ext 7501cat >>conftest.$ac_ext <<_ACEOF 7502/* end confdefs.h. */ 7503#include <$ac_header> 7504_ACEOF 7505if { (ac_try="$ac_cpp conftest.$ac_ext" 7506case "(($ac_try" in 7507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7508 *) ac_try_echo=$ac_try;; 7509esac 7510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7512 ac_status=$? 7513 grep -v '^ *+' conftest.er1 >conftest.err 7514 rm -f conftest.er1 7515 cat conftest.err >&5 7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7517 (exit $ac_status); } >/dev/null; then 7518 if test -s conftest.err; then 7519 ac_cpp_err=$ac_c_preproc_warn_flag 7520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7521 else 7522 ac_cpp_err= 7523 fi 7524else 7525 ac_cpp_err=yes 7526fi 7527if test -z "$ac_cpp_err"; then 7528 ac_header_preproc=yes 7529else 7530 echo "$as_me: failed program was:" >&5 7531sed 's/^/| /' conftest.$ac_ext >&5 7532 7533 ac_header_preproc=no 7534fi 7535 7536rm -f conftest.err conftest.$ac_ext 7537{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7538echo "${ECHO_T}$ac_header_preproc" >&6; } 7539 7540# So? What about this header? 7541case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7542 yes:no: ) 7543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7544echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7546echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7547 ac_header_preproc=yes 7548 ;; 7549 no:yes:* ) 7550 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7551echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7552 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7553echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7554 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7555echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7556 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7557echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7559echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7560 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7561echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7562 ( cat <<\_ASBOX 7563## ------------------------------------------------------ ## 7564## Report this to brutalchess-devel@lists.sourceforge.net ## 7565## ------------------------------------------------------ ## 7566_ASBOX 7567 ) | sed "s/^/$as_me: WARNING: /" >&2 7568 ;; 7569esac 7570{ echo "$as_me:$LINENO: checking for $ac_header" >&5 7571echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7572if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7573 echo $ECHO_N "(cached) $ECHO_C" >&6 7574else 7575 eval "$as_ac_Header=\$ac_header_preproc" 7576fi 7577ac_res=`eval echo '${'$as_ac_Header'}'` 7578 { echo "$as_me:$LINENO: result: $ac_res" >&5 7579echo "${ECHO_T}$ac_res" >&6; } 7580 7581fi 7582if test `eval echo '${'$as_ac_Header'}'` = yes; then 7583 cat >>confdefs.h <<_ACEOF 7584#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7585_ACEOF 7586 7587fi 7588 7589done 7590 7591 ;; 7592esac 7593 7594SDL_VERSION=1.2.7 7595 7596# Check whether --with-sdl-prefix was given. 7597if test "${with_sdl_prefix+set}" = set; then 7598 withval=$with_sdl_prefix; sdl_prefix="$withval" 7599else 7600 sdl_prefix="" 7601fi 7602 7603 7604# Check whether --with-sdl-exec-prefix was given. 7605if test "${with_sdl_exec_prefix+set}" = set; then 7606 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval" 7607else 7608 sdl_exec_prefix="" 7609fi 7610 7611# Check whether --enable-sdltest was given. 7612if test "${enable_sdltest+set}" = set; then 7613 enableval=$enable_sdltest; 7614else 7615 enable_sdltest=yes 7616fi 7617 7618 7619 if test x$sdl_exec_prefix != x ; then 7620 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" 7621 if test x${SDL_CONFIG+set} != xset ; then 7622 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config 7623 fi 7624 fi 7625 if test x$sdl_prefix != x ; then 7626 sdl_args="$sdl_args --prefix=$sdl_prefix" 7627 if test x${SDL_CONFIG+set} != xset ; then 7628 SDL_CONFIG=$sdl_prefix/bin/sdl-config 7629 fi 7630 fi 7631 7632 # Extract the first word of "sdl-config", so it can be a program name with args. 7633set dummy sdl-config; ac_word=$2 7634{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7636if test "${ac_cv_path_SDL_CONFIG+set}" = set; then 7637 echo $ECHO_N "(cached) $ECHO_C" >&6 7638else 7639 case $SDL_CONFIG in 7640 [\\/]* | ?:[\\/]*) 7641 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. 7642 ;; 7643 *) 7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7645for as_dir in $PATH 7646do 7647 IFS=$as_save_IFS 7648 test -z "$as_dir" && as_dir=. 7649 for ac_exec_ext in '' $ac_executable_extensions; do 7650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7651 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7653 break 2 7654 fi 7655done 7656done 7657IFS=$as_save_IFS 7658 7659 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" 7660 ;; 7661esac 7662fi 7663SDL_CONFIG=$ac_cv_path_SDL_CONFIG 7664if test -n "$SDL_CONFIG"; then 7665 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 7666echo "${ECHO_T}$SDL_CONFIG" >&6; } 7667else 7668 { echo "$as_me:$LINENO: result: no" >&5 7669echo "${ECHO_T}no" >&6; } 7670fi 7671 7672 7673 min_sdl_version=$SDL_VERSION 7674 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 7675echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; } 7676 no_sdl="" 7677 if test "$SDL_CONFIG" = "no" ; then 7678 no_sdl=yes 7679 else 7680 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` 7681 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` 7682 7683 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ 7684 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 7685 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ 7686 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 7687 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ 7688 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 7689 if test "x$enable_sdltest" = "xyes" ; then 7690 ac_save_CFLAGS="$CFLAGS" 7691 ac_save_LIBS="$LIBS" 7692 CFLAGS="$CFLAGS $SDL_CFLAGS" 7693 LIBS="$LIBS $SDL_LIBS" 7694 rm -f conf.sdltest 7695 if test "$cross_compiling" = yes; then 7696 echo $ac_n "cross compiling; assumed OK... $ac_c" 7697else 7698 cat >conftest.$ac_ext <<_ACEOF 7699/* confdefs.h. */ 7700_ACEOF 7701cat confdefs.h >>conftest.$ac_ext 7702cat >>conftest.$ac_ext <<_ACEOF 7703/* end confdefs.h. */ 7704 7705#include <stdio.h> 7706#include <stdlib.h> 7707#include <string.h> 7708#include "SDL.h" 7709 7710char* 7711my_strdup (char *str) 7712{ 7713 char *new_str; 7714 7715 if (str) 7716 { 7717 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); 7718 strcpy (new_str, str); 7719 } 7720 else 7721 new_str = NULL; 7722 7723 return new_str; 7724} 7725 7726int main (int argc, char *argv[]) 7727{ 7728 int major, minor, micro; 7729 char *tmp_version; 7730 7731 /* This hangs on some systems (?) 7732 system ("touch conf.sdltest"); 7733 */ 7734 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } 7735 7736 /* HP/UX 9 (%@#!) writes to sscanf strings */ 7737 tmp_version = my_strdup("$min_sdl_version"); 7738 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 7739 printf("%s, bad version string\n", "$min_sdl_version"); 7740 exit(1); 7741 } 7742 7743 if (($sdl_major_version > major) || 7744 (($sdl_major_version == major) && ($sdl_minor_version > minor)) || 7745 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) 7746 { 7747 return 0; 7748 } 7749 else 7750 { 7751 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); 7752 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); 7753 printf("*** best to upgrade to the required version.\n"); 7754 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); 7755 printf("*** to point to the correct copy of sdl-config, and remove the file\n"); 7756 printf("*** config.cache before re-running configure\n"); 7757 return 1; 7758 } 7759} 7760 7761 7762_ACEOF 7763rm -f conftest$ac_exeext 7764if { (ac_try="$ac_link" 7765case "(($ac_try" in 7766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7767 *) ac_try_echo=$ac_try;; 7768esac 7769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7770 (eval "$ac_link") 2>&5 7771 ac_status=$? 7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7774 { (case "(($ac_try" in 7775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7776 *) ac_try_echo=$ac_try;; 7777esac 7778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7779 (eval "$ac_try") 2>&5 7780 ac_status=$? 7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7782 (exit $ac_status); }; }; then 7783 : 7784else 7785 echo "$as_me: program exited with status $ac_status" >&5 7786echo "$as_me: failed program was:" >&5 7787sed 's/^/| /' conftest.$ac_ext >&5 7788 7789( exit $ac_status ) 7790no_sdl=yes 7791fi 7792rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7793fi 7794 7795 7796 CFLAGS="$ac_save_CFLAGS" 7797 LIBS="$ac_save_LIBS" 7798 fi 7799 fi 7800 if test "x$no_sdl" = x ; then 7801 { echo "$as_me:$LINENO: result: yes" >&5 7802echo "${ECHO_T}yes" >&6; } 7803 : 7804 else 7805 { echo "$as_me:$LINENO: result: no" >&5 7806echo "${ECHO_T}no" >&6; } 7807 if test "$SDL_CONFIG" = "no" ; then 7808 echo "*** The sdl-config script installed by SDL could not be found" 7809 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" 7810 echo "*** your path, or set the SDL_CONFIG environment variable to the" 7811 echo "*** full path to sdl-config." 7812 else 7813 if test -f conf.sdltest ; then 7814 : 7815 else 7816 echo "*** Could not run SDL test program, checking why..." 7817 CFLAGS="$CFLAGS $SDL_CFLAGS" 7818 LIBS="$LIBS $SDL_LIBS" 7819 cat >conftest.$ac_ext <<_ACEOF 7820/* confdefs.h. */ 7821_ACEOF 7822cat confdefs.h >>conftest.$ac_ext 7823cat >>conftest.$ac_ext <<_ACEOF 7824/* end confdefs.h. */ 7825 7826#include <stdio.h> 7827#include "SDL.h" 7828 7829int 7830main () 7831{ 7832 return 0; 7833 ; 7834 return 0; 7835} 7836_ACEOF 7837rm -f conftest.$ac_objext conftest$ac_exeext 7838if { (ac_try="$ac_link" 7839case "(($ac_try" in 7840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7841 *) ac_try_echo=$ac_try;; 7842esac 7843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7844 (eval "$ac_link") 2>conftest.er1 7845 ac_status=$? 7846 grep -v '^ *+' conftest.er1 >conftest.err 7847 rm -f conftest.er1 7848 cat conftest.err >&5 7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7850 (exit $ac_status); } && 7851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7852 { (case "(($ac_try" in 7853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7854 *) ac_try_echo=$ac_try;; 7855esac 7856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7857 (eval "$ac_try") 2>&5 7858 ac_status=$? 7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7860 (exit $ac_status); }; } && 7861 { ac_try='test -s conftest$ac_exeext' 7862 { (case "(($ac_try" in 7863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7864 *) ac_try_echo=$ac_try;; 7865esac 7866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7867 (eval "$ac_try") 2>&5 7868 ac_status=$? 7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7870 (exit $ac_status); }; }; then 7871 echo "*** The test program compiled, but did not run. This usually means" 7872 echo "*** that the run-time linker is not finding SDL or finding the wrong" 7873 echo "*** version of SDL. If it is not finding SDL, you'll need to set your" 7874 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 7875 echo "*** to the installed location Also, make sure you have run ldconfig if that" 7876 echo "*** is required on your system" 7877 echo "***" 7878 echo "*** If you have an old version installed, it is best to remove it, although" 7879 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 7880else 7881 echo "$as_me: failed program was:" >&5 7882sed 's/^/| /' conftest.$ac_ext >&5 7883 7884 echo "*** The test program failed to compile or link. See the file config.log for the" 7885 echo "*** exact error that occured. This usually means SDL was incorrectly installed" 7886 echo "*** or that you have moved SDL since it was installed. In the latter case, you" 7887 echo "*** may want to edit the sdl-config script: $SDL_CONFIG" 7888fi 7889 7890rm -f core conftest.err conftest.$ac_objext \ 7891 conftest$ac_exeext conftest.$ac_ext 7892 CFLAGS="$ac_save_CFLAGS" 7893 LIBS="$ac_save_LIBS" 7894 fi 7895 fi 7896 SDL_CFLAGS="" 7897 SDL_LIBS="" 7898 { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5 7899echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;} 7900 { (exit 1); exit 1; }; } 7901 fi 7902 7903 7904 rm -f conf.sdltest 7905 7906CFLAGS="$CFLAGS $SDL_CFLAGS" 7907CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 7908LIBS="$LIBS $SDL_LIBS" 7909 7910# Get the cflags and libraries from the freetype-config script 7911 # 7912 7913# Check whether --with-ft-prefix was given. 7914if test "${with_ft_prefix+set}" = set; then 7915 withval=$with_ft_prefix; ft_config_prefix="$withval" 7916else 7917 ft_config_prefix="" 7918fi 7919 7920 7921 7922# Check whether --with-ft-exec-prefix was given. 7923if test "${with_ft_exec_prefix+set}" = set; then 7924 withval=$with_ft_exec_prefix; ft_config_exec_prefix="$withval" 7925else 7926 ft_config_exec_prefix="" 7927fi 7928 7929 7930 # Check whether --enable-freetypetest was given. 7931if test "${enable_freetypetest+set}" = set; then 7932 enableval=$enable_freetypetest; 7933else 7934 enable_fttest=yes 7935fi 7936 7937 7938 if test x$ft_config_exec_prefix != x ; then 7939 ft_config_args="$ft_config_args --exec-prefix=$ft_config_exec_prefix" 7940 if test x${FT2_CONFIG+set} != xset ; then 7941 FT2_CONFIG=$ft_config_exec_prefix/bin/freetype-config 7942 fi 7943 fi 7944 7945 if test x$ft_config_prefix != x ; then 7946 ft_config_args="$ft_config_args --prefix=$ft_config_prefix" 7947 if test x${FT2_CONFIG+set} != xset ; then 7948 FT2_CONFIG=$ft_config_prefix/bin/freetype-config 7949 fi 7950 fi 7951 7952 # Extract the first word of "freetype-config", so it can be a program name with args. 7953set dummy freetype-config; ac_word=$2 7954{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7956if test "${ac_cv_path_FT2_CONFIG+set}" = set; then 7957 echo $ECHO_N "(cached) $ECHO_C" >&6 7958else 7959 case $FT2_CONFIG in 7960 [\\/]* | ?:[\\/]*) 7961 ac_cv_path_FT2_CONFIG="$FT2_CONFIG" # Let the user override the test with a path. 7962 ;; 7963 *) 7964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7965for as_dir in $PATH 7966do 7967 IFS=$as_save_IFS 7968 test -z "$as_dir" && as_dir=. 7969 for ac_exec_ext in '' $ac_executable_extensions; do 7970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7971 ac_cv_path_FT2_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7973 break 2 7974 fi 7975done 7976done 7977IFS=$as_save_IFS 7978 7979 test -z "$ac_cv_path_FT2_CONFIG" && ac_cv_path_FT2_CONFIG="no" 7980 ;; 7981esac 7982fi 7983FT2_CONFIG=$ac_cv_path_FT2_CONFIG 7984if test -n "$FT2_CONFIG"; then 7985 { echo "$as_me:$LINENO: result: $FT2_CONFIG" >&5 7986echo "${ECHO_T}$FT2_CONFIG" >&6; } 7987else 7988 { echo "$as_me:$LINENO: result: no" >&5 7989echo "${ECHO_T}no" >&6; } 7990fi 7991 7992 7993 7994 min_ft_version=7.0.1 7995 { echo "$as_me:$LINENO: checking for FreeType -- version >= $min_ft_version" >&5 7996echo $ECHO_N "checking for FreeType -- version >= $min_ft_version... $ECHO_C" >&6; } 7997 no_ft="" 7998 if test "$FT2_CONFIG" = "no" ; then 7999 no_ft=yes 8000 else 8001 FT2_CFLAGS=`pkg-config freetype2 --cflags` 8002 FT2_LIBS=`pkg-config freetype2 --libs` 8003 ft_config_major_version=`pkg-config freetype2 --modversion | \ 8004 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 8005 ft_config_minor_version=`pkg-config freetype2 --modversion | \ 8006 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 8007 ft_config_micro_version=`pkg-config freetype2 --modversion | \ 8008 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 8009 ft_min_major_version=`echo $min_ft_version | \ 8010 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 8011 ft_min_minor_version=`echo $min_ft_version | \ 8012 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 8013 ft_min_micro_version=`echo $min_ft_version | \ 8014 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 8015 if test x$enable_fttest = xyes ; then 8016 ft_config_is_lt="" 8017 if test $ft_config_major_version -lt $ft_min_major_version ; then 8018 ft_config_is_lt=yes 8019 else 8020 if test $ft_config_major_version -eq $ft_min_major_version ; then 8021 if test $ft_config_minor_version -lt $ft_min_minor_version ; then 8022 ft_config_is_lt=yes 8023 else 8024 if test $ft_config_minor_version -eq $ft_min_minor_version ; then 8025 if test $ft_config_micro_version -lt $ft_min_micro_version ; then 8026 ft_config_is_lt=yes 8027 fi 8028 fi 8029 fi 8030 fi 8031 fi 8032 if test x$ft_config_is_lt = xyes ; then 8033 no_ft=yes 8034 else 8035 ac_save_CFLAGS="$CFLAGS" 8036 ac_save_LIBS="$LIBS" 8037 CFLAGS="$CFLAGS $FT2_CFLAGS" 8038 LIBS="$FT2_LIBS $LIBS" 8039 8040 # 8041 # Sanity checks for the results of freetype-config to some extent. 8042 # 8043 if test "$cross_compiling" = yes; then 8044 echo $ECHO_N "cross compiling; assuming OK... $ECHO_C" 8045else 8046 cat >conftest.$ac_ext <<_ACEOF 8047 8048 /* confdefs.h. */ 8049_ACEOF 8050cat confdefs.h >>conftest.$ac_ext 8051cat >>conftest.$ac_ext <<_ACEOF 8052/* end confdefs.h. */ 8053 8054 8055#include <ft2build.h> 8056#include FT_FREETYPE_H 8057#include <stdio.h> 8058#include <stdlib.h> 8059 8060int 8061main() 8062{ 8063 FT_Library library; 8064 FT_Error error; 8065 8066 error = FT_Init_FreeType(&library); 8067 8068 if (error) 8069 return 1; 8070 else 8071 { 8072 FT_Done_FreeType(library); 8073 return 0; 8074 } 8075} 8076 8077 8078 8079_ACEOF 8080rm -f conftest$ac_exeext 8081if { (ac_try="$ac_link" 8082case "(($ac_try" in 8083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8084 *) ac_try_echo=$ac_try;; 8085esac 8086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8087 (eval "$ac_link") 2>&5 8088 ac_status=$? 8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8091 { (case "(($ac_try" in 8092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8093 *) ac_try_echo=$ac_try;; 8094esac 8095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8096 (eval "$ac_try") 2>&5 8097 ac_status=$? 8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8099 (exit $ac_status); }; }; then 8100 : 8101else 8102 echo "$as_me: program exited with status $ac_status" >&5 8103echo "$as_me: failed program was:" >&5 8104sed 's/^/| /' conftest.$ac_ext >&5 8105 8106( exit $ac_status ) 8107no_ft=yes 8108fi 8109rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8110fi 8111 8112 8113 8114 CFLAGS="$ac_save_CFLAGS" 8115 LIBS="$ac_save_LIBS" 8116 fi # test $ft_config_version -lt $ft_min_version 8117 fi # test x$enable_fttest = xyes 8118 fi # test "$FT2_CONFIG" = "no" 8119 8120 if test x$no_ft = x ; then 8121 { echo "$as_me:$LINENO: result: yes" >&5 8122echo "${ECHO_T}yes" >&6; } 8123 : 8124 else 8125 { echo "$as_me:$LINENO: result: no" >&5 8126echo "${ECHO_T}no" >&6; } 8127 if test "$FT2_CONFIG" = "no" ; then 8128 { echo "$as_me:$LINENO: WARNING: 8129 8130 The freetype-config script installed by FreeType 2 could not be found. 8131 If FreeType 2 was installed in PREFIX, make sure PREFIX/bin is in 8132 your path, or set the FT2_CONFIG environment variable to the 8133 full path to freetype-config. 8134 " >&5 8135echo "$as_me: WARNING: 8136 8137 The freetype-config script installed by FreeType 2 could not be found. 8138 If FreeType 2 was installed in PREFIX, make sure PREFIX/bin is in 8139 your path, or set the FT2_CONFIG environment variable to the 8140 full path to freetype-config. 8141 " >&2;} 8142 else 8143 if test x$ft_config_is_lt = xyes ; then 8144 { echo "$as_me:$LINENO: WARNING: 8145 8146 Your installed version of the FreeType 2 library is too old. 8147 If you have different versions of FreeType 2, make sure that 8148 correct values for --with-ft-prefix or --with-ft-exec-prefix 8149 are used, or set the FT2_CONFIG environment variable to the 8150 full path to freetype-config. 8151 " >&5 8152echo "$as_me: WARNING: 8153 8154 Your installed version of the FreeType 2 library is too old. 8155 If you have different versions of FreeType 2, make sure that 8156 correct values for --with-ft-prefix or --with-ft-exec-prefix 8157 are used, or set the FT2_CONFIG environment variable to the 8158 full path to freetype-config. 8159 " >&2;} 8160 else 8161 { echo "$as_me:$LINENO: WARNING: 8162 8163 The FreeType test program failed to run. If your system uses 8164 shared libraries and they are installed outside the normal 8165 system library path, make sure the variable LD_LIBRARY_PATH 8166 (or whatever is appropiate for your system) is correctly set. 8167 " >&5 8168echo "$as_me: WARNING: 8169 8170 The FreeType test program failed to run. If your system uses 8171 shared libraries and they are installed outside the normal 8172 system library path, make sure the variable LD_LIBRARY_PATH 8173 (or whatever is appropiate for your system) is correctly set. 8174 " >&2;} 8175 fi 8176 fi 8177 8178 FT2_CFLAGS="" 8179 FT2_LIBS="" 8180 : 8181 fi 8182 8183 8184 8185CFLAGS="$CFLAGS $FT2_CFLAGS" 8186CXXFLAGS="$CXXFLAGS $FT2_CFLAGS" 8187LIBS="$LIBS $FT2_LIBS" 8188 8189{ echo "$as_me:$LINENO: checking for IMG_Load in -lSDL_image" >&5 8190echo $ECHO_N "checking for IMG_Load in -lSDL_image... $ECHO_C" >&6; } 8191if test "${ac_cv_lib_SDL_image_IMG_Load+set}" = set; then 8192 echo $ECHO_N "(cached) $ECHO_C" >&6 8193else 8194 ac_check_lib_save_LIBS=$LIBS 8195LIBS="-lSDL_image $LIBS" 8196cat >conftest.$ac_ext <<_ACEOF 8197/* confdefs.h. */ 8198_ACEOF 8199cat confdefs.h >>conftest.$ac_ext 8200cat >>conftest.$ac_ext <<_ACEOF 8201/* end confdefs.h. */ 8202 8203/* Override any GCC internal prototype to avoid an error. 8204 Use char because int might match the return type of a GCC 8205 builtin and then its argument prototype would still apply. */ 8206#ifdef __cplusplus 8207extern "C" 8208#endif 8209char IMG_Load (); 8210int 8211main () 8212{ 8213return IMG_Load (); 8214 ; 8215 return 0; 8216} 8217_ACEOF 8218rm -f conftest.$ac_objext conftest$ac_exeext 8219if { (ac_try="$ac_link" 8220case "(($ac_try" in 8221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8222 *) ac_try_echo=$ac_try;; 8223esac 8224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8225 (eval "$ac_link") 2>conftest.er1 8226 ac_status=$? 8227 grep -v '^ *+' conftest.er1 >conftest.err 8228 rm -f conftest.er1 8229 cat conftest.err >&5 8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8231 (exit $ac_status); } && 8232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8233 { (case "(($ac_try" in 8234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8235 *) ac_try_echo=$ac_try;; 8236esac 8237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8238 (eval "$ac_try") 2>&5 8239 ac_status=$? 8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8241 (exit $ac_status); }; } && 8242 { ac_try='test -s conftest$ac_exeext' 8243 { (case "(($ac_try" in 8244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8245 *) ac_try_echo=$ac_try;; 8246esac 8247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8248 (eval "$ac_try") 2>&5 8249 ac_status=$? 8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8251 (exit $ac_status); }; }; then 8252 ac_cv_lib_SDL_image_IMG_Load=yes 8253else 8254 echo "$as_me: failed program was:" >&5 8255sed 's/^/| /' conftest.$ac_ext >&5 8256 8257 ac_cv_lib_SDL_image_IMG_Load=no 8258fi 8259 8260rm -f core conftest.err conftest.$ac_objext \ 8261 conftest$ac_exeext conftest.$ac_ext 8262LIBS=$ac_check_lib_save_LIBS 8263fi 8264{ echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_IMG_Load" >&5 8265echo "${ECHO_T}$ac_cv_lib_SDL_image_IMG_Load" >&6; } 8266if test $ac_cv_lib_SDL_image_IMG_Load = yes; then 8267 LIBS="$LIBS -lSDL_image" 8268else 8269 { { echo "$as_me:$LINENO: error: *** SDL_image library not found!" >&5 8270echo "$as_me: error: *** SDL_image library not found!" >&2;} 8271 { (exit 1); exit 1; }; } 8272 8273fi 8274 8275# Checks for library functions. 8276#AC_CHECK_FUNCS([sqrt]) 8277 8278# Directory where resources are installed 8279prefixdir="${datadir}/brutalchess/" 8280 8281modelsdir="${datadir}/brutalchess/models/" 8282 8283artdir="${datadir}/brutalchess/art/" 8284 8285fontsdir="${datadir}/brutalchess/fonts/" 8286 8287 8288ac_config_files="$ac_config_files Makefile src/Makefile art/Makefile fonts/Makefile models/Makefile" 8289 8290cat >confcache <<\_ACEOF 8291# This file is a shell script that caches the results of configure 8292# tests run on this system so they can be shared between configure 8293# scripts and configure runs, see configure's option --config-cache. 8294# It is not useful on other systems. If it contains results you don't 8295# want to keep, you may remove or edit it. 8296# 8297# config.status only pays attention to the cache file if you give it 8298# the --recheck option to rerun configure. 8299# 8300# `ac_cv_env_foo' variables (set or unset) will be overridden when 8301# loading this file, other *unset* `ac_cv_foo' will be assigned the 8302# following values. 8303 8304_ACEOF 8305 8306# The following way of writing the cache mishandles newlines in values, 8307# but we know of no workaround that is simple, portable, and efficient. 8308# So, we kill variables containing newlines. 8309# Ultrix sh set writes to stderr and can't be redirected directly, 8310# and sets the high bit in the cache file unless we assign to the vars. 8311( 8312 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 8313 eval ac_val=\$$ac_var 8314 case $ac_val in #( 8315 *${as_nl}*) 8316 case $ac_var in #( 8317 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 8318echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 8319 esac 8320 case $ac_var in #( 8321 _ | IFS | as_nl) ;; #( 8322 *) $as_unset $ac_var ;; 8323 esac ;; 8324 esac 8325 done 8326 8327 (set) 2>&1 | 8328 case $as_nl`(ac_space=' '; set) 2>&1` in #( 8329 *${as_nl}ac_space=\ *) 8330 # `set' does not quote correctly, so add quotes (double-quote 8331 # substitution turns \\\\ into \\, and sed turns \\ into \). 8332 sed -n \ 8333 "s/'/'\\\\''/g; 8334 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8335 ;; #( 8336 *) 8337 # `set' quotes correctly as required by POSIX, so do not add quotes. 8338 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 8339 ;; 8340 esac | 8341 sort 8342) | 8343 sed ' 8344 /^ac_cv_env_/b end 8345 t clear 8346 :clear 8347 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 8348 t end 8349 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8350 :end' >>confcache 8351if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 8352 if test -w "$cache_file"; then 8353 test "x$cache_file" != "x/dev/null" && 8354 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 8355echo "$as_me: updating cache $cache_file" >&6;} 8356 cat confcache >$cache_file 8357 else 8358 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 8359echo "$as_me: not updating unwritable cache $cache_file" >&6;} 8360 fi 8361fi 8362rm -f confcache 8363 8364test "x$prefix" = xNONE && prefix=$ac_default_prefix 8365# Let make expand exec_prefix. 8366test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8367 8368DEFS=-DHAVE_CONFIG_H 8369 8370ac_libobjs= 8371ac_ltlibobjs= 8372for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8373 # 1. Remove the extension, and $U if already installed. 8374 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 8375 ac_i=`echo "$ac_i" | sed "$ac_script"` 8376 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 8377 # will be set to the directory where LIBOBJS objects are built. 8378 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 8379 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 8380done 8381LIBOBJS=$ac_libobjs 8382 8383LTLIBOBJS=$ac_ltlibobjs 8384 8385 8386if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 8387 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 8388Usually this means the macro was only invoked conditionally." >&5 8389echo "$as_me: error: conditional \"AMDEP\" was never defined. 8390Usually this means the macro was only invoked conditionally." >&2;} 8391 { (exit 1); exit 1; }; } 8392fi 8393if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 8394 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 8395Usually this means the macro was only invoked conditionally." >&5 8396echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 8397Usually this means the macro was only invoked conditionally." >&2;} 8398 { (exit 1); exit 1; }; } 8399fi 8400if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 8401 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 8402Usually this means the macro was only invoked conditionally." >&5 8403echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 8404Usually this means the macro was only invoked conditionally." >&2;} 8405 { (exit 1); exit 1; }; } 8406fi 8407 8408: ${CONFIG_STATUS=./config.status} 8409ac_clean_files_save=$ac_clean_files 8410ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8411{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 8412echo "$as_me: creating $CONFIG_STATUS" >&6;} 8413cat >$CONFIG_STATUS <<_ACEOF 8414#! $SHELL 8415# Generated by $as_me. 8416# Run this file to recreate the current configuration. 8417# Compiler output produced by configure, useful for debugging 8418# configure, is in config.log if it exists. 8419 8420debug=false 8421ac_cs_recheck=false 8422ac_cs_silent=false 8423SHELL=\${CONFIG_SHELL-$SHELL} 8424_ACEOF 8425 8426cat >>$CONFIG_STATUS <<\_ACEOF 8427## --------------------- ## 8428## M4sh Initialization. ## 8429## --------------------- ## 8430 8431# Be Bourne compatible 8432if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 8433 emulate sh 8434 NULLCMD=: 8435 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 8436 # is contrary to our usage. Disable this feature. 8437 alias -g '${1+"$@"}'='"$@"' 8438 setopt NO_GLOB_SUBST 8439else 8440 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 8441fi 8442BIN_SH=xpg4; export BIN_SH # for Tru64 8443DUALCASE=1; export DUALCASE # for MKS sh 8444 8445 8446# PATH needs CR 8447# Avoid depending upon Character Ranges. 8448as_cr_letters='abcdefghijklmnopqrstuvwxyz' 8449as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 8450as_cr_Letters=$as_cr_letters$as_cr_LETTERS 8451as_cr_digits='0123456789' 8452as_cr_alnum=$as_cr_Letters$as_cr_digits 8453 8454# The user is always right. 8455if test "${PATH_SEPARATOR+set}" != set; then 8456 echo "#! /bin/sh" >conf$$.sh 8457 echo "exit 0" >>conf$$.sh 8458 chmod +x conf$$.sh 8459 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 8460 PATH_SEPARATOR=';' 8461 else 8462 PATH_SEPARATOR=: 8463 fi 8464 rm -f conf$$.sh 8465fi 8466 8467# Support unset when possible. 8468if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8469 as_unset=unset 8470else 8471 as_unset=false 8472fi 8473 8474 8475# IFS 8476# We need space, tab and new line, in precisely that order. Quoting is 8477# there to prevent editors from complaining about space-tab. 8478# (If _AS_PATH_WALK were called with IFS unset, it would disable word 8479# splitting by setting IFS to empty value.) 8480as_nl=' 8481' 8482IFS=" "" $as_nl" 8483 8484# Find who we are. Look in the path if we contain no directory separator. 8485case $0 in 8486 *[\\/]* ) as_myself=$0 ;; 8487 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8488for as_dir in $PATH 8489do 8490 IFS=$as_save_IFS 8491 test -z "$as_dir" && as_dir=. 8492 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 8493done 8494IFS=$as_save_IFS 8495 8496 ;; 8497esac 8498# We did not find ourselves, most probably we were run as `sh COMMAND' 8499# in which case we are not to be found in the path. 8500if test "x$as_myself" = x; then 8501 as_myself=$0 8502fi 8503if test ! -f "$as_myself"; then 8504 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 8505 { (exit 1); exit 1; } 8506fi 8507 8508# Work around bugs in pre-3.0 UWIN ksh. 8509for as_var in ENV MAIL MAILPATH 8510do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 8511done 8512PS1='$ ' 8513PS2='> ' 8514PS4='+ ' 8515 8516# NLS nuisances. 8517for as_var in \ 8518 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 8519 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 8520 LC_TELEPHONE LC_TIME 8521do 8522 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 8523 eval $as_var=C; export $as_var 8524 else 8525 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 8526 fi 8527done 8528 8529# Required to use basename. 8530if expr a : '\(a\)' >/dev/null 2>&1 && 8531 test "X`expr 00001 : '.*\(...\)'`" = X001; then 8532 as_expr=expr 8533else 8534 as_expr=false 8535fi 8536 8537if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 8538 as_basename=basename 8539else 8540 as_basename=false 8541fi 8542 8543 8544# Name of the executable. 8545as_me=`$as_basename -- "$0" || 8546$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8547 X"$0" : 'X\(//\)$' \| \ 8548 X"$0" : 'X\(/\)' \| . 2>/dev/null || 8549echo X/"$0" | 8550 sed '/^.*\/\([^/][^/]*\)\/*$/{ 8551 s//\1/ 8552 q 8553 } 8554 /^X\/\(\/\/\)$/{ 8555 s//\1/ 8556 q 8557 } 8558 /^X\/\(\/\).*/{ 8559 s//\1/ 8560 q 8561 } 8562 s/.*/./; q'` 8563 8564# CDPATH. 8565$as_unset CDPATH 8566 8567 8568 8569 as_lineno_1=$LINENO 8570 as_lineno_2=$LINENO 8571 test "x$as_lineno_1" != "x$as_lineno_2" && 8572 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 8573 8574 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 8575 # uniformly replaced by the line number. The first 'sed' inserts a 8576 # line-number line after each line using $LINENO; the second 'sed' 8577 # does the real work. The second script uses 'N' to pair each 8578 # line-number line with the line containing $LINENO, and appends 8579 # trailing '-' during substitution so that $LINENO is not a special 8580 # case at line end. 8581 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 8582 # scripts with optimization help from Paolo Bonzini. Blame Lee 8583 # E. McMahon (1931-1989) for sed's syntax. :-) 8584 sed -n ' 8585 p 8586 /[$]LINENO/= 8587 ' <$as_myself | 8588 sed ' 8589 s/[$]LINENO.*/&-/ 8590 t lineno 8591 b 8592 :lineno 8593 N 8594 :loop 8595 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 8596 t loop 8597 s/-\n.*// 8598 ' >$as_me.lineno && 8599 chmod +x "$as_me.lineno" || 8600 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 8601 { (exit 1); exit 1; }; } 8602 8603 # Don't try to exec as it changes $[0], causing all sort of problems 8604 # (the dirname of $[0] is not the place where we might find the 8605 # original and so on. Autoconf is especially sensitive to this). 8606 . "./$as_me.lineno" 8607 # Exit status is that of the last command. 8608 exit 8609} 8610 8611 8612if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 8613 as_dirname=dirname 8614else 8615 as_dirname=false 8616fi 8617 8618ECHO_C= ECHO_N= ECHO_T= 8619case `echo -n x` in 8620-n*) 8621 case `echo 'x\c'` in 8622 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 8623 *) ECHO_C='\c';; 8624 esac;; 8625*) 8626 ECHO_N='-n';; 8627esac 8628 8629if expr a : '\(a\)' >/dev/null 2>&1 && 8630 test "X`expr 00001 : '.*\(...\)'`" = X001; then 8631 as_expr=expr 8632else 8633 as_expr=false 8634fi 8635 8636rm -f conf$$ conf$$.exe conf$$.file 8637if test -d conf$$.dir; then 8638 rm -f conf$$.dir/conf$$.file 8639else 8640 rm -f conf$$.dir 8641 mkdir conf$$.dir 8642fi 8643echo >conf$$.file 8644if ln -s conf$$.file conf$$ 2>/dev/null; then 8645 as_ln_s='ln -s' 8646 # ... but there are two gotchas: 8647 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 8648 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 8649 # In both cases, we have to default to `cp -p'. 8650 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 8651 as_ln_s='cp -p' 8652elif ln conf$$.file conf$$ 2>/dev/null; then 8653 as_ln_s=ln 8654else 8655 as_ln_s='cp -p' 8656fi 8657rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 8658rmdir conf$$.dir 2>/dev/null 8659 8660if mkdir -p . 2>/dev/null; then 8661 as_mkdir_p=: 8662else 8663 test -d ./-p && rmdir ./-p 8664 as_mkdir_p=false 8665fi 8666 8667# Find out whether ``test -x'' works. Don't use a zero-byte file, as 8668# systems may use methods other than mode bits to determine executability. 8669cat >conf$$.file <<_ASEOF 8670#! /bin/sh 8671exit 0 8672_ASEOF 8673chmod +x conf$$.file 8674if test -x conf$$.file >/dev/null 2>&1; then 8675 as_executable_p="test -x" 8676else 8677 as_executable_p=: 8678fi 8679rm -f conf$$.file 8680 8681# Sed expression to map a string onto a valid CPP name. 8682as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 8683 8684# Sed expression to map a string onto a valid variable name. 8685as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 8686 8687 8688exec 6>&1 8689 8690# Save the log message, to keep $[0] and so on meaningful, and to 8691# report actual input values of CONFIG_FILES etc. instead of their 8692# values after options handling. 8693ac_log=" 8694This file was extended by brutalchess $as_me 0.5, which was 8695generated by GNU Autoconf 2.60. Invocation command line was 8696 8697 CONFIG_FILES = $CONFIG_FILES 8698 CONFIG_HEADERS = $CONFIG_HEADERS 8699 CONFIG_LINKS = $CONFIG_LINKS 8700 CONFIG_COMMANDS = $CONFIG_COMMANDS 8701 $ $0 $@ 8702 8703on `(hostname || uname -n) 2>/dev/null | sed 1q` 8704" 8705 8706_ACEOF 8707 8708cat >>$CONFIG_STATUS <<_ACEOF 8709# Files that config.status was made for. 8710config_files="$ac_config_files" 8711config_headers="$ac_config_headers" 8712config_commands="$ac_config_commands" 8713 8714_ACEOF 8715 8716cat >>$CONFIG_STATUS <<\_ACEOF 8717ac_cs_usage="\ 8718\`$as_me' instantiates files from templates according to the 8719current configuration. 8720 8721Usage: $0 [OPTIONS] [FILE]... 8722 8723 -h, --help print this help, then exit 8724 -V, --version print version number, then exit 8725 -q, --quiet do not print progress messages 8726 -d, --debug don't remove temporary files 8727 --recheck update $as_me by reconfiguring in the same conditions 8728 --file=FILE[:TEMPLATE] 8729 instantiate the configuration file FILE 8730 --header=FILE[:TEMPLATE] 8731 instantiate the configuration header FILE 8732 8733Configuration files: 8734$config_files 8735 8736Configuration headers: 8737$config_headers 8738 8739Configuration commands: 8740$config_commands 8741 8742Report bugs to <bug-autoconf@gnu.org>." 8743 8744_ACEOF 8745cat >>$CONFIG_STATUS <<_ACEOF 8746ac_cs_version="\\ 8747brutalchess config.status 0.5 8748configured by $0, generated by GNU Autoconf 2.60, 8749 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 8750 8751Copyright (C) 2006 Free Software Foundation, Inc. 8752This config.status script is free software; the Free Software Foundation 8753gives unlimited permission to copy, distribute and modify it." 8754 8755ac_pwd='$ac_pwd' 8756srcdir='$srcdir' 8757INSTALL='$INSTALL' 8758_ACEOF 8759 8760cat >>$CONFIG_STATUS <<\_ACEOF 8761# If no file are specified by the user, then we need to provide default 8762# value. By we need to know if files were specified by the user. 8763ac_need_defaults=: 8764while test $# != 0 8765do 8766 case $1 in 8767 --*=*) 8768 ac_option=`expr "X$1" : 'X\([^=]*\)='` 8769 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 8770 ac_shift=: 8771 ;; 8772 *) 8773 ac_option=$1 8774 ac_optarg=$2 8775 ac_shift=shift 8776 ;; 8777 esac 8778 8779 case $ac_option in 8780 # Handling of the options. 8781 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 8782 ac_cs_recheck=: ;; 8783 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 8784 echo "$ac_cs_version"; exit ;; 8785 --debug | --debu | --deb | --de | --d | -d ) 8786 debug=: ;; 8787 --file | --fil | --fi | --f ) 8788 $ac_shift 8789 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 8790 ac_need_defaults=false;; 8791 --header | --heade | --head | --hea ) 8792 $ac_shift 8793 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 8794 ac_need_defaults=false;; 8795 --he | --h) 8796 # Conflict between --help and --header 8797 { echo "$as_me: error: ambiguous option: $1 8798Try \`$0 --help' for more information." >&2 8799 { (exit 1); exit 1; }; };; 8800 --help | --hel | -h ) 8801 echo "$ac_cs_usage"; exit ;; 8802 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 8803 | -silent | --silent | --silen | --sile | --sil | --si | --s) 8804 ac_cs_silent=: ;; 8805 8806 # This is an error. 8807 -*) { echo "$as_me: error: unrecognized option: $1 8808Try \`$0 --help' for more information." >&2 8809 { (exit 1); exit 1; }; } ;; 8810 8811 *) ac_config_targets="$ac_config_targets $1" 8812 ac_need_defaults=false ;; 8813 8814 esac 8815 shift 8816done 8817 8818ac_configure_extra_args= 8819 8820if $ac_cs_silent; then 8821 exec 6>/dev/null 8822 ac_configure_extra_args="$ac_configure_extra_args --silent" 8823fi 8824 8825_ACEOF 8826cat >>$CONFIG_STATUS <<_ACEOF 8827if \$ac_cs_recheck; then 8828 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 8829 CONFIG_SHELL=$SHELL 8830 export CONFIG_SHELL 8831 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 8832fi 8833 8834_ACEOF 8835cat >>$CONFIG_STATUS <<\_ACEOF 8836exec 5>>config.log 8837{ 8838 echo 8839 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 8840## Running $as_me. ## 8841_ASBOX 8842 echo "$ac_log" 8843} >&5 8844 8845_ACEOF 8846cat >>$CONFIG_STATUS <<_ACEOF 8847# 8848# INIT-COMMANDS 8849# 8850AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 8851 8852_ACEOF 8853 8854cat >>$CONFIG_STATUS <<\_ACEOF 8855 8856# Handling of arguments. 8857for ac_config_target in $ac_config_targets 8858do 8859 case $ac_config_target in 8860 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 8861 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 8862 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 8863 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 8864 "art/Makefile") CONFIG_FILES="$CONFIG_FILES art/Makefile" ;; 8865 "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;; 8866 "models/Makefile") CONFIG_FILES="$CONFIG_FILES models/Makefile" ;; 8867 8868 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 8869echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 8870 { (exit 1); exit 1; }; };; 8871 esac 8872done 8873 8874 8875# If the user did not use the arguments to specify the items to instantiate, 8876# then the envvar interface is used. Set only those that are not. 8877# We use the long form for the default assignment because of an extremely 8878# bizarre bug on SunOS 4.1.3. 8879if $ac_need_defaults; then 8880 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 8881 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 8882 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 8883fi 8884 8885# Have a temporary directory for convenience. Make it in the build tree 8886# simply because there is no reason against having it here, and in addition, 8887# creating and moving files from /tmp can sometimes cause problems. 8888# Hook for its removal unless debugging. 8889# Note that there is a small window in which the directory will not be cleaned: 8890# after its creation but before its name has been assigned to `$tmp'. 8891$debug || 8892{ 8893 tmp= 8894 trap 'exit_status=$? 8895 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 8896' 0 8897 trap '{ (exit 1); exit 1; }' 1 2 13 15 8898} 8899# Create a (secure) tmp directory for tmp files. 8900 8901{ 8902 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 8903 test -n "$tmp" && test -d "$tmp" 8904} || 8905{ 8906 tmp=./conf$$-$RANDOM 8907 (umask 077 && mkdir "$tmp") 8908} || 8909{ 8910 echo "$me: cannot create a temporary directory in ." >&2 8911 { (exit 1); exit 1; } 8912} 8913 8914# 8915# Set up the sed scripts for CONFIG_FILES section. 8916# 8917 8918# No need to generate the scripts if there are no CONFIG_FILES. 8919# This happens for instance when ./config.status config.h 8920if test -n "$CONFIG_FILES"; then 8921 8922_ACEOF 8923 8924 8925 8926ac_delim='%!_!# ' 8927for ac_last_try in false false false false false :; do 8928 cat >conf$$subs.sed <<_ACEOF 8929SHELL!$SHELL$ac_delim 8930PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 8931PACKAGE_NAME!$PACKAGE_NAME$ac_delim 8932PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 8933PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 8934PACKAGE_STRING!$PACKAGE_STRING$ac_delim 8935PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 8936exec_prefix!$exec_prefix$ac_delim 8937prefix!$prefix$ac_delim 8938program_transform_name!$program_transform_name$ac_delim 8939bindir!$bindir$ac_delim 8940sbindir!$sbindir$ac_delim 8941libexecdir!$libexecdir$ac_delim 8942datarootdir!$datarootdir$ac_delim 8943datadir!$datadir$ac_delim 8944sysconfdir!$sysconfdir$ac_delim 8945sharedstatedir!$sharedstatedir$ac_delim 8946localstatedir!$localstatedir$ac_delim 8947includedir!$includedir$ac_delim 8948oldincludedir!$oldincludedir$ac_delim 8949docdir!$docdir$ac_delim 8950infodir!$infodir$ac_delim 8951htmldir!$htmldir$ac_delim 8952dvidir!$dvidir$ac_delim 8953pdfdir!$pdfdir$ac_delim 8954psdir!$psdir$ac_delim 8955libdir!$libdir$ac_delim 8956localedir!$localedir$ac_delim 8957mandir!$mandir$ac_delim 8958DEFS!$DEFS$ac_delim 8959ECHO_C!$ECHO_C$ac_delim 8960ECHO_N!$ECHO_N$ac_delim 8961ECHO_T!$ECHO_T$ac_delim 8962LIBS!$LIBS$ac_delim 8963build_alias!$build_alias$ac_delim 8964host_alias!$host_alias$ac_delim 8965target_alias!$target_alias$ac_delim 8966build!$build$ac_delim 8967build_cpu!$build_cpu$ac_delim 8968build_vendor!$build_vendor$ac_delim 8969build_os!$build_os$ac_delim 8970host!$host$ac_delim 8971host_cpu!$host_cpu$ac_delim 8972host_vendor!$host_vendor$ac_delim 8973host_os!$host_os$ac_delim 8974INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 8975INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 8976INSTALL_DATA!$INSTALL_DATA$ac_delim 8977CYGPATH_W!$CYGPATH_W$ac_delim 8978PACKAGE!$PACKAGE$ac_delim 8979VERSION!$VERSION$ac_delim 8980ACLOCAL!$ACLOCAL$ac_delim 8981AUTOCONF!$AUTOCONF$ac_delim 8982AUTOMAKE!$AUTOMAKE$ac_delim 8983AUTOHEADER!$AUTOHEADER$ac_delim 8984MAKEINFO!$MAKEINFO$ac_delim 8985AMTAR!$AMTAR$ac_delim 8986install_sh!$install_sh$ac_delim 8987STRIP!$STRIP$ac_delim 8988INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 8989mkdir_p!$mkdir_p$ac_delim 8990AWK!$AWK$ac_delim 8991SET_MAKE!$SET_MAKE$ac_delim 8992am__leading_dot!$am__leading_dot$ac_delim 8993CXX!$CXX$ac_delim 8994CXXFLAGS!$CXXFLAGS$ac_delim 8995LDFLAGS!$LDFLAGS$ac_delim 8996CPPFLAGS!$CPPFLAGS$ac_delim 8997ac_ct_CXX!$ac_ct_CXX$ac_delim 8998EXEEXT!$EXEEXT$ac_delim 8999OBJEXT!$OBJEXT$ac_delim 9000DEPDIR!$DEPDIR$ac_delim 9001am__include!$am__include$ac_delim 9002am__quote!$am__quote$ac_delim 9003AMDEP_TRUE!$AMDEP_TRUE$ac_delim 9004AMDEP_FALSE!$AMDEP_FALSE$ac_delim 9005AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 9006CXXDEPMODE!$CXXDEPMODE$ac_delim 9007am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 9008am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 9009CC!$CC$ac_delim 9010CFLAGS!$CFLAGS$ac_delim 9011ac_ct_CC!$ac_ct_CC$ac_delim 9012CCDEPMODE!$CCDEPMODE$ac_delim 9013am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 9014am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 9015CPP!$CPP$ac_delim 9016GREP!$GREP$ac_delim 9017EGREP!$EGREP$ac_delim 9018XMKMF!$XMKMF$ac_delim 9019X_CFLAGS!$X_CFLAGS$ac_delim 9020X_PRE_LIBS!$X_PRE_LIBS$ac_delim 9021X_LIBS!$X_LIBS$ac_delim 9022X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 9023GL_CFLAGS!$GL_CFLAGS$ac_delim 9024GL_LIBS!$GL_LIBS$ac_delim 9025SDL_CONFIG!$SDL_CONFIG$ac_delim 9026_ACEOF 9027 9028 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 9029 break 9030 elif $ac_last_try; then 9031 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 9032echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 9033 { (exit 1); exit 1; }; } 9034 else 9035 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 9036 fi 9037done 9038 9039ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 9040if test -n "$ac_eof"; then 9041 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 9042 ac_eof=`expr $ac_eof + 1` 9043fi 9044 9045cat >>$CONFIG_STATUS <<_ACEOF 9046cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 9047/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9048_ACEOF 9049sed ' 9050s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 9051s/^/s,@/; s/!/@,|#_!!_#|/ 9052:n 9053t n 9054s/'"$ac_delim"'$/,g/; t 9055s/$/\\/; p 9056N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 9057' >>$CONFIG_STATUS <conf$$subs.sed 9058rm -f conf$$subs.sed 9059cat >>$CONFIG_STATUS <<_ACEOF 9060CEOF$ac_eof 9061_ACEOF 9062 9063 9064ac_delim='%!_!# ' 9065for ac_last_try in false false false false false :; do 9066 cat >conf$$subs.sed <<_ACEOF 9067SDL_CFLAGS!$SDL_CFLAGS$ac_delim 9068SDL_LIBS!$SDL_LIBS$ac_delim 9069FT2_CONFIG!$FT2_CONFIG$ac_delim 9070FT2_CFLAGS!$FT2_CFLAGS$ac_delim 9071FT2_LIBS!$FT2_LIBS$ac_delim 9072prefixdir!$prefixdir$ac_delim 9073modelsdir!$modelsdir$ac_delim 9074artdir!$artdir$ac_delim 9075fontsdir!$fontsdir$ac_delim 9076LIBOBJS!$LIBOBJS$ac_delim 9077LTLIBOBJS!$LTLIBOBJS$ac_delim 9078_ACEOF 9079 9080 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then 9081 break 9082 elif $ac_last_try; then 9083 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 9084echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 9085 { (exit 1); exit 1; }; } 9086 else 9087 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 9088 fi 9089done 9090 9091ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 9092if test -n "$ac_eof"; then 9093 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 9094 ac_eof=`expr $ac_eof + 1` 9095fi 9096 9097cat >>$CONFIG_STATUS <<_ACEOF 9098cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 9099/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 9100_ACEOF 9101sed ' 9102s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 9103s/^/s,@/; s/!/@,|#_!!_#|/ 9104:n 9105t n 9106s/'"$ac_delim"'$/,g/; t 9107s/$/\\/; p 9108N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 9109' >>$CONFIG_STATUS <conf$$subs.sed 9110rm -f conf$$subs.sed 9111cat >>$CONFIG_STATUS <<_ACEOF 9112:end 9113s/|#_!!_#|//g 9114CEOF$ac_eof 9115_ACEOF 9116 9117 9118# VPATH may cause trouble with some makes, so we remove $(srcdir), 9119# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 9120# trailing colons and then remove the whole line if VPATH becomes empty 9121# (actually we leave an empty line to preserve line numbers). 9122if test "x$srcdir" = x.; then 9123 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 9124s/:*\$(srcdir):*/:/ 9125s/:*\${srcdir}:*/:/ 9126s/:*@srcdir@:*/:/ 9127s/^\([^=]*=[ ]*\):*/\1/ 9128s/:*$// 9129s/^[^=]*=[ ]*$// 9130}' 9131fi 9132 9133cat >>$CONFIG_STATUS <<\_ACEOF 9134fi # test -n "$CONFIG_FILES" 9135 9136 9137for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 9138do 9139 case $ac_tag in 9140 :[FHLC]) ac_mode=$ac_tag; continue;; 9141 esac 9142 case $ac_mode$ac_tag in 9143 :[FHL]*:*);; 9144 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 9145echo "$as_me: error: Invalid tag $ac_tag." >&2;} 9146 { (exit 1); exit 1; }; };; 9147 :[FH]-) ac_tag=-:-;; 9148 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 9149 esac 9150 ac_save_IFS=$IFS 9151 IFS=: 9152 set x $ac_tag 9153 IFS=$ac_save_IFS 9154 shift 9155 ac_file=$1 9156 shift 9157 9158 case $ac_mode in 9159 :L) ac_source=$1;; 9160 :[FH]) 9161 ac_file_inputs= 9162 for ac_f 9163 do 9164 case $ac_f in 9165 -) ac_f="$tmp/stdin";; 9166 *) # Look for the file first in the build tree, then in the source tree 9167 # (if the path is not absolute). The absolute path cannot be DOS-style, 9168 # because $ac_f cannot contain `:'. 9169 test -f "$ac_f" || 9170 case $ac_f in 9171 [\\/$]*) false;; 9172 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 9173 esac || 9174 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 9175echo "$as_me: error: cannot find input file: $ac_f" >&2;} 9176 { (exit 1); exit 1; }; };; 9177 esac 9178 ac_file_inputs="$ac_file_inputs $ac_f" 9179 done 9180 9181 # Let's still pretend it is `configure' which instantiates (i.e., don't 9182 # use $as_me), people would be surprised to read: 9183 # /* config.h. Generated by config.status. */ 9184 configure_input="Generated from "`IFS=: 9185 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 9186 if test x"$ac_file" != x-; then 9187 configure_input="$ac_file. $configure_input" 9188 { echo "$as_me:$LINENO: creating $ac_file" >&5 9189echo "$as_me: creating $ac_file" >&6;} 9190 fi 9191 9192 case $ac_tag in 9193 *:-:* | *:-) cat >"$tmp/stdin";; 9194 esac 9195 ;; 9196 esac 9197 9198 ac_dir=`$as_dirname -- "$ac_file" || 9199$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9200 X"$ac_file" : 'X\(//\)[^/]' \| \ 9201 X"$ac_file" : 'X\(//\)$' \| \ 9202 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 9203echo X"$ac_file" | 9204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9205 s//\1/ 9206 q 9207 } 9208 /^X\(\/\/\)[^/].*/{ 9209 s//\1/ 9210 q 9211 } 9212 /^X\(\/\/\)$/{ 9213 s//\1/ 9214 q 9215 } 9216 /^X\(\/\).*/{ 9217 s//\1/ 9218 q 9219 } 9220 s/.*/./; q'` 9221 { as_dir="$ac_dir" 9222 case $as_dir in #( 9223 -*) as_dir=./$as_dir;; 9224 esac 9225 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 9226 as_dirs= 9227 while :; do 9228 case $as_dir in #( 9229 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 9230 *) as_qdir=$as_dir;; 9231 esac 9232 as_dirs="'$as_qdir' $as_dirs" 9233 as_dir=`$as_dirname -- "$as_dir" || 9234$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9235 X"$as_dir" : 'X\(//\)[^/]' \| \ 9236 X"$as_dir" : 'X\(//\)$' \| \ 9237 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 9238echo X"$as_dir" | 9239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9240 s//\1/ 9241 q 9242 } 9243 /^X\(\/\/\)[^/].*/{ 9244 s//\1/ 9245 q 9246 } 9247 /^X\(\/\/\)$/{ 9248 s//\1/ 9249 q 9250 } 9251 /^X\(\/\).*/{ 9252 s//\1/ 9253 q 9254 } 9255 s/.*/./; q'` 9256 test -d "$as_dir" && break 9257 done 9258 test -z "$as_dirs" || eval "mkdir $as_dirs" 9259 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 9260echo "$as_me: error: cannot create directory $as_dir" >&2;} 9261 { (exit 1); exit 1; }; }; } 9262 ac_builddir=. 9263 9264case "$ac_dir" in 9265.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 9266*) 9267 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 9268 # A ".." for each directory in $ac_dir_suffix. 9269 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 9270 case $ac_top_builddir_sub in 9271 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 9272 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 9273 esac ;; 9274esac 9275ac_abs_top_builddir=$ac_pwd 9276ac_abs_builddir=$ac_pwd$ac_dir_suffix 9277# for backward compatibility: 9278ac_top_builddir=$ac_top_build_prefix 9279 9280case $srcdir in 9281 .) # We are building in place. 9282 ac_srcdir=. 9283 ac_top_srcdir=$ac_top_builddir_sub 9284 ac_abs_top_srcdir=$ac_pwd ;; 9285 [\\/]* | ?:[\\/]* ) # Absolute name. 9286 ac_srcdir=$srcdir$ac_dir_suffix; 9287 ac_top_srcdir=$srcdir 9288 ac_abs_top_srcdir=$srcdir ;; 9289 *) # Relative name. 9290 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 9291 ac_top_srcdir=$ac_top_build_prefix$srcdir 9292 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 9293esac 9294ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 9295 9296 9297 case $ac_mode in 9298 :F) 9299 # 9300 # CONFIG_FILE 9301 # 9302 9303 case $INSTALL in 9304 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 9305 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 9306 esac 9307_ACEOF 9308 9309cat >>$CONFIG_STATUS <<\_ACEOF 9310# If the template does not know about datarootdir, expand it. 9311# FIXME: This hack should be removed a few years after 2.60. 9312ac_datarootdir_hack=; ac_datarootdir_seen= 9313 9314case `sed -n '/datarootdir/ { 9315 p 9316 q 9317} 9318/@datadir@/p 9319/@docdir@/p 9320/@infodir@/p 9321/@localedir@/p 9322/@mandir@/p 9323' $ac_file_inputs` in 9324*datarootdir*) ac_datarootdir_seen=yes;; 9325*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 9326 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 9327echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 9328_ACEOF 9329cat >>$CONFIG_STATUS <<_ACEOF 9330 ac_datarootdir_hack=' 9331 s&@datadir@&$datadir&g 9332 s&@docdir@&$docdir&g 9333 s&@infodir@&$infodir&g 9334 s&@localedir@&$localedir&g 9335 s&@mandir@&$mandir&g 9336 s&\\\${datarootdir}&$datarootdir&g' ;; 9337esac 9338_ACEOF 9339 9340# Neutralize VPATH when `$srcdir' = `.'. 9341# Shell code in configure.ac might set extrasub. 9342# FIXME: do we really want to maintain this feature? 9343cat >>$CONFIG_STATUS <<_ACEOF 9344 sed "$ac_vpsub 9345$extrasub 9346_ACEOF 9347cat >>$CONFIG_STATUS <<\_ACEOF 9348:t 9349/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9350s&@configure_input@&$configure_input&;t t 9351s&@top_builddir@&$ac_top_builddir_sub&;t t 9352s&@srcdir@&$ac_srcdir&;t t 9353s&@abs_srcdir@&$ac_abs_srcdir&;t t 9354s&@top_srcdir@&$ac_top_srcdir&;t t 9355s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 9356s&@builddir@&$ac_builddir&;t t 9357s&@abs_builddir@&$ac_abs_builddir&;t t 9358s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 9359s&@INSTALL@&$ac_INSTALL&;t t 9360$ac_datarootdir_hack 9361" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 9362 9363test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 9364 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 9365 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 9366 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9367which seems to be undefined. Please make sure it is defined." >&5 9368echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9369which seems to be undefined. Please make sure it is defined." >&2;} 9370 9371 rm -f "$tmp/stdin" 9372 case $ac_file in 9373 -) cat "$tmp/out"; rm -f "$tmp/out";; 9374 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 9375 esac 9376 ;; 9377 :H) 9378 # 9379 # CONFIG_HEADER 9380 # 9381_ACEOF 9382 9383# Transform confdefs.h into a sed script `conftest.defines', that 9384# substitutes the proper values into config.h.in to produce config.h. 9385rm -f conftest.defines conftest.tail 9386# First, append a space to every undef/define line, to ease matching. 9387echo 's/$/ /' >conftest.defines 9388# Then, protect against being on the right side of a sed subst, or in 9389# an unquoted here document, in config.status. If some macros were 9390# called several times there might be several #defines for the same 9391# symbol, which is useless. But do not sort them, since the last 9392# AC_DEFINE must be honored. 9393ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 9394# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 9395# NAME is the cpp macro being defined, VALUE is the value it is being given. 9396# PARAMS is the parameter list in the macro definition--in most cases, it's 9397# just an empty string. 9398ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 9399ac_dB='\\)[ (].*,\\1define\\2' 9400ac_dC=' ' 9401ac_dD=' ,' 9402 9403uniq confdefs.h | 9404 sed -n ' 9405 t rset 9406 :rset 9407 s/^[ ]*#[ ]*define[ ][ ]*// 9408 t ok 9409 d 9410 :ok 9411 s/[\\&,]/\\&/g 9412 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 9413 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 9414 ' >>conftest.defines 9415 9416# Remove the space that was appended to ease matching. 9417# Then replace #undef with comments. This is necessary, for 9418# example, in the case of _POSIX_SOURCE, which is predefined and required 9419# on some systems where configure will not decide to define it. 9420# (The regexp can be short, since the line contains either #define or #undef.) 9421echo 's/ $// 9422s,^[ #]*u.*,/* & */,' >>conftest.defines 9423 9424# Break up conftest.defines: 9425ac_max_sed_lines=50 9426 9427# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 9428# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 9429# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 9430# et cetera. 9431ac_in='$ac_file_inputs' 9432ac_out='"$tmp/out1"' 9433ac_nxt='"$tmp/out2"' 9434 9435while : 9436do 9437 # Write a here document: 9438 cat >>$CONFIG_STATUS <<_ACEOF 9439 # First, check the format of the line: 9440 cat >"\$tmp/defines.sed" <<\\CEOF 9441/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 9442/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 9443b 9444:def 9445_ACEOF 9446 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 9447 echo 'CEOF 9448 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 9449 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 9450 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 9451 grep . conftest.tail >/dev/null || break 9452 rm -f conftest.defines 9453 mv conftest.tail conftest.defines 9454done 9455rm -f conftest.defines conftest.tail 9456 9457echo "ac_result=$ac_in" >>$CONFIG_STATUS 9458cat >>$CONFIG_STATUS <<\_ACEOF 9459 if test x"$ac_file" != x-; then 9460 echo "/* $configure_input */" >"$tmp/config.h" 9461 cat "$ac_result" >>"$tmp/config.h" 9462 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 9463 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 9464echo "$as_me: $ac_file is unchanged" >&6;} 9465 else 9466 rm -f $ac_file 9467 mv "$tmp/config.h" $ac_file 9468 fi 9469 else 9470 echo "/* $configure_input */" 9471 cat "$ac_result" 9472 fi 9473 rm -f "$tmp/out12" 9474# Compute $ac_file's index in $config_headers. 9475_am_stamp_count=1 9476for _am_header in $config_headers :; do 9477 case $_am_header in 9478 $ac_file | $ac_file:* ) 9479 break ;; 9480 * ) 9481 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 9482 esac 9483done 9484echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 9485$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9486 X$ac_file : 'X\(//\)[^/]' \| \ 9487 X$ac_file : 'X\(//\)$' \| \ 9488 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 9489echo X$ac_file | 9490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9491 s//\1/ 9492 q 9493 } 9494 /^X\(\/\/\)[^/].*/{ 9495 s//\1/ 9496 q 9497 } 9498 /^X\(\/\/\)$/{ 9499 s//\1/ 9500 q 9501 } 9502 /^X\(\/\).*/{ 9503 s//\1/ 9504 q 9505 } 9506 s/.*/./; q'`/stamp-h$_am_stamp_count 9507 ;; 9508 9509 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 9510echo "$as_me: executing $ac_file commands" >&6;} 9511 ;; 9512 esac 9513 9514 9515 case $ac_file$ac_mode in 9516 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 9517 # Strip MF so we end up with the name of the file. 9518 mf=`echo "$mf" | sed -e 's/:.*$//'` 9519 # Check whether this is an Automake generated Makefile or not. 9520 # We used to match only the files named `Makefile.in', but 9521 # some people rename them; so instead we look at the file content. 9522 # Grep'ing the first line is not enough: some people post-process 9523 # each Makefile.in and add a new line on top of each file to say so. 9524 # So let's grep whole file. 9525 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 9526 dirpart=`$as_dirname -- "$mf" || 9527$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9528 X"$mf" : 'X\(//\)[^/]' \| \ 9529 X"$mf" : 'X\(//\)$' \| \ 9530 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 9531echo X"$mf" | 9532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9533 s//\1/ 9534 q 9535 } 9536 /^X\(\/\/\)[^/].*/{ 9537 s//\1/ 9538 q 9539 } 9540 /^X\(\/\/\)$/{ 9541 s//\1/ 9542 q 9543 } 9544 /^X\(\/\).*/{ 9545 s//\1/ 9546 q 9547 } 9548 s/.*/./; q'` 9549 else 9550 continue 9551 fi 9552 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 9553 # Extract the definition of DEP_FILES from the Makefile without 9554 # running `make'. 9555 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 9556 test -z "$DEPDIR" && continue 9557 # When using ansi2knr, U may be empty or an underscore; expand it 9558 U=`sed -n 's/^U = //p' < "$mf"` 9559 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 9560 # We invoke sed twice because it is the simplest approach to 9561 # changing $(DEPDIR) to its actual value in the expansion. 9562 for file in `sed -n ' 9563 /^DEP_FILES = .*\\\\$/ { 9564 s/^DEP_FILES = // 9565 :loop 9566 s/\\\\$// 9567 p 9568 n 9569 /\\\\$/ b loop 9570 p 9571 } 9572 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 9573 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 9574 # Make sure the directory exists. 9575 test -f "$dirpart/$file" && continue 9576 fdir=`$as_dirname -- "$file" || 9577$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9578 X"$file" : 'X\(//\)[^/]' \| \ 9579 X"$file" : 'X\(//\)$' \| \ 9580 X"$file" : 'X\(/\)' \| . 2>/dev/null || 9581echo X"$file" | 9582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9583 s//\1/ 9584 q 9585 } 9586 /^X\(\/\/\)[^/].*/{ 9587 s//\1/ 9588 q 9589 } 9590 /^X\(\/\/\)$/{ 9591 s//\1/ 9592 q 9593 } 9594 /^X\(\/\).*/{ 9595 s//\1/ 9596 q 9597 } 9598 s/.*/./; q'` 9599 { as_dir=$dirpart/$fdir 9600 case $as_dir in #( 9601 -*) as_dir=./$as_dir;; 9602 esac 9603 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 9604 as_dirs= 9605 while :; do 9606 case $as_dir in #( 9607 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 9608 *) as_qdir=$as_dir;; 9609 esac 9610 as_dirs="'$as_qdir' $as_dirs" 9611 as_dir=`$as_dirname -- "$as_dir" || 9612$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9613 X"$as_dir" : 'X\(//\)[^/]' \| \ 9614 X"$as_dir" : 'X\(//\)$' \| \ 9615 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 9616echo X"$as_dir" | 9617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9618 s//\1/ 9619 q 9620 } 9621 /^X\(\/\/\)[^/].*/{ 9622 s//\1/ 9623 q 9624 } 9625 /^X\(\/\/\)$/{ 9626 s//\1/ 9627 q 9628 } 9629 /^X\(\/\).*/{ 9630 s//\1/ 9631 q 9632 } 9633 s/.*/./; q'` 9634 test -d "$as_dir" && break 9635 done 9636 test -z "$as_dirs" || eval "mkdir $as_dirs" 9637 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 9638echo "$as_me: error: cannot create directory $as_dir" >&2;} 9639 { (exit 1); exit 1; }; }; } 9640 # echo "creating $dirpart/$file" 9641 echo '# dummy' > "$dirpart/$file" 9642 done 9643done 9644 ;; 9645 9646 esac 9647done # for ac_tag 9648 9649 9650{ (exit 0); exit 0; } 9651_ACEOF 9652chmod +x $CONFIG_STATUS 9653ac_clean_files=$ac_clean_files_save 9654 9655 9656# configure is writing to config.log, and then calls config.status. 9657# config.status does its own redirection, appending to config.log. 9658# Unfortunately, on DOS this fails, as config.log is still kept open 9659# by configure, so config.status won't be able to write to it; its 9660# output is simply discarded. So we exec the FD to /dev/null, 9661# effectively closing config.log, so it can be properly (re)opened and 9662# appended to by config.status. When coming back to configure, we 9663# need to make the FD available again. 9664if test "$no_create" != yes; then 9665 ac_cs_success=: 9666 ac_config_status_args= 9667 test "$silent" = yes && 9668 ac_config_status_args="$ac_config_status_args --quiet" 9669 exec 5>/dev/null 9670 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 9671 exec 5>>config.log 9672 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 9673 # would make configure fail if this is the last instruction. 9674 $ac_cs_success || { (exit 1); exit 1; } 9675fi 9676 9677