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