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